/*
Theme Name: Twenty Twenty-Five Child
Template:   twentytwentyfive
Version:    1.0.0
*/
/*
body {
    background-color: #f5f5f0;
    color: #1a1a2e;
} */

/* ── Featured Image: kein Beschnitt ── */
.single-post .wp-block-post-featured-image {
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
    margin-bottom: 2rem;
}

.single-post .wp-block-post-featured-image img {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    display: block;
    margin: 0 auto;
    border: 1px solid #333;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

.single-post figure.wp-block-post-featured-image {
    padding: 0;
    overflow: visible;
}

.wp-block-post-featured-image {
    margin-top: 1.8rem;
}

/* ── Typography ── */
/*body, p, li, a, blockquote, .entry-content {
    font-family: system-ui, sans-serif;
    line-height: 1.7;
} */


/*h1, h2, h3, h4, .wp-block-post-title {
    font-weight: 650;
} */

/*
h1 { font-size: 2.55rem; line-height: 1.15; }
h2 { font-size: 1.95rem; line-height: 1.35; }
*/


/* ── Mobile ── */
@media (max-width: 782px) {
    h1.wp-block-post-title, .wp-block-post-title { font-size: 2.1rem !important; }
    h2 { font-size: 1.65rem !important; }
}

@media (max-width: 480px) {
    h1.wp-block-post-title, .wp-block-post-title { font-size: 1.65rem !important; }
}


/* 1. Den Container zwingen, keine feste Höhe zu erzwingen */
.single-post .wp-block-post-featured-image {
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
    margin-bottom: 2rem;
}

/* 2. Das Bild selbst auf 'contain' setzen und Proportionen schützen */
.single-post .wp-block-post-featured-image img {
    width: 100% !important;
    height: auto !important;
    max-height: none !important; /* Erlaubt volle Höhe */
    object-fit: contain !important; /* Verhindert jeglichen Beschnitt */
    display: block;
    margin: 0 auto;
    border: 1px solid #333;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

/* Schatten und Rahmen für alle Beitragsbilder (Featured Images) */
.wp-block-post-featured-image img {
    border: 1px solid #333;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: block; /* Verhindert kleine Abstände unter dem Bild */
    height: auto;
    max-width: 100%;
}

/* Optional: Ein leichter Hover-Effekt für die Interaktion */
.wp-block-post-featured-image img:hover {
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}
.wp-block-template-part + * {
    margin-top: 0 !important;
}

.wp-block-group.alignfull.has-global-padding {
    padding-bottom: 2rem !important;
}

/* --- Dark Mode Menü-Link Setup --- */

/* Variablen sicherstellen */
:root {
    --bg-color: #f8f4ed;
    --text-color: #1e2a44;
}

[data-theme="dark"] {
    --bg-color: #1a1a1a;
    --text-color: #f0f0f0;
}

/* Den Body umschalten */
body {
    background-color: var(--bg-color) !important;
    color: var(--text-color) !important;
}

/* Der Menü-Link Styling */
.dark-mode-toggle, 
.dark-mode-toggle a {
    font-family: 'Fira Code', monospace !important;
    text-decoration: none !important;
    cursor: pointer;
    transition: opacity 0.2s ease;
    display: inline-block;
    min-width: 60px; /* Verhindert das Springen des Menüs */
    text-align: right;
    margin-left: 1rem; /* Der gewünschte Abstand links */
    color: var(--text-color) !important;
}

.dark-mode-toggle:hover,
.dark-mode-toggle a:hover {
    opacity: 0.7;
}
