/* =============================================================
   Editorial — a magazine theme for Ghost
   ============================================================= */

/* Schriften liegen im Theme (assets/fonts) statt bei Google Fonts: beim Aufruf gehen keine
   IP-Adressen der Leser an Google. Newsreader und Gloock, SIL Open Font License; nur latin + latin-ext.
   Neu laden mit tools/fetch-fonts.js. */
@font-face {
    font-family: "Gloock";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/Gloock-normal-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Gloock";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/Gloock-normal-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Newsreader";
    font-style: italic;
    font-weight: 400 500;
    font-display: swap;
    src: url("../fonts/Newsreader-italic-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Newsreader";
    font-style: italic;
    font-weight: 400 500;
    font-display: swap;
    src: url("../fonts/Newsreader-italic-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Newsreader";
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
    src: url("../fonts/Newsreader-normal-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Newsreader";
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
    src: url("../fonts/Newsreader-normal-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Design tokens ---------- */
:root {
    /* Metis brand (v4): oben hell, beim Scrollen Waldgrün (Vorbild: The Ideas Letter).
       :root = heller Abschnitt; .zone-forest definiert dieselben Tokens für die grünen Abschnitte neu. */
    --metis-dot: #8b5928;     /* Walnussbraun – Punkt im Logo, Zitate, Randmarkierung */
    --metis-coral: var(--metis-dot); /* alter Name */

    --beige: #f3e8ce;         /* DAS Beige: Kopf + Newsletter-Karte, überall identisch */
    --paper: #f3e8ce;         /* helles, warmes Beige */
    --paper-tint: #eadfc1;
    --ink: #1f3a29;           /* Schrift in Waldgrün */
    --ink-soft: #3f5945;
    --ink-faint: #546856;     /* AA auf Beige */
    --rule: #dccfb0;
    --rule-strong: #1f3a29;
    --accent: #8b5928;        /* Walnussbraun */
    --accent-text: #7a4d22;   /* kleine Schrift, AA auf Hell */
    --accent-ink: #ffffff;
    --metis-green: #2c693f;
    color-scheme: light;
    /* All-serif setup. Overridden if fonts are chosen in Ghost Admin > Design. */
    --font-serif: var(--gh-font-heading, "Newsreader", Georgia, "Times New Roman", serif);
    --font-sans: var(--gh-font-body, "Newsreader", Georgia, "Times New Roman", serif); /* body + UI, kept serif */
    --font-display: "Gloock", "Newsreader", Georgia, serif;

    --measure: 48rem;         /* reine Textbreite des Leseblocks (ohne Seitenrand) */
    --wrap: 72rem;
    --gap: clamp(1.5rem, 4vw, 3rem);

    --step--1: clamp(0.82rem, 0.79rem + 0.15vw, 0.9rem);
    --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
    --step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.5rem);
    --step-2: clamp(1.45rem, 1.25rem + 1vw, 2.1rem);
    --step-3: clamp(1.8rem, 1.4rem + 2vw, 3rem);
    --step-4: clamp(2.2rem, 1.6rem + 3vw, 4rem);
}

/* Grüne Abschnitte: Rubriken-Band + Newsletter + Raster auf der Startseite,
   Newsletter/„Weiterlesen" auf Artikelseiten, Footer überall. */
.zone-forest {
    --paper: #1f3a29;
    --g1: #2e4b37;            /* Stufe 1 · Lichtung   – Diese Woche */
    --g2: #264330;            /* Stufe 2 · Unterholz  – Was ist Metis? */
    --g3: #1f3a29;            /* Stufe 3 · Waldgrün   – Archiv + Newsletter */
    --g4: #15291d;            /* Stufe 4 · Waldboden  – Footer */
    --paper-tint: #284732;
    --ink: #eeecd6;
    --ink-soft: #c7cdb5;
    --ink-faint: #b0baa6;     /* AA auch auf Stufe 1 */
    --rule: #3a5742;
    --rule-strong: #eeecd6;
    --metis-dot: #e6d09c;     /* Birkenrinde */
    --metis-coral: var(--metis-dot);
    --accent: #e6d09c;
    --accent-text: #ecd9a9;
    --accent-ink: #1f3a29;
    --metis-green: #a8d8a9;
    color-scheme: dark;
    background: var(--paper);
    color: var(--ink);
}

/* Kein eigener Dunkelmodus: Metis ist bewusst Beige + Waldgrün, auf jedem Gerät gleich.
   (Früher stand hier eine Variante, die bei dunkel eingestelltem Handy das Beige durch Schwarzgrün ersetzte.) */
@media (prefers-color-scheme: dark) {
    :root { color-scheme: light; }
}
/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
img, picture, video { max-width: 100%; display: block; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }

/* ---------- Base ---------- */
body {
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: var(--step-0);
    line-height: 1.7;
    font-feature-settings: "kern", "liga", "onum", "pnum";
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: -0.011em;
    text-wrap: balance;
}

a { text-decoration-thickness: 1px; text-underline-offset: 2px; }

::selection { background: var(--accent); color: var(--accent-ink); }

/* Consistent keyboard-focus ring across links, buttons and fields */
a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 1px;
}

.skip-link {
    position: absolute; left: -9999px; top: 0;
    background: var(--ink); color: var(--paper);
    padding: 0.6rem 1rem; z-index: 100;
}
.skip-link:focus { left: 0; }

.visually-hidden {
    position: absolute !important; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Scroll reveal — only armed when JS is running, so no-JS keeps everything visible */
.js .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.8s ease, transform 0.7s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.js .reveal.is-visible {
    opacity: 1;
    transform: none;
}
/* gentle cascade across a grid row */
.js .article-grid .reveal:nth-child(3n + 2) { transition-delay: 0.06s; }
.js .article-grid .reveal:nth-child(3n) { transition-delay: 0.12s; }

@media (prefers-reduced-motion: reduce) {
    .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Layout ---------- */
.site { overflow-clip-margin: content-box; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gap); }
.wrap-narrow { max-width: calc(var(--measure) + 2 * var(--gap)); margin-inline: auto; padding-inline: var(--gap); } /* Seitenrand kommt dazu statt die Textbreite zu schmälern */
.site-main { padding-block: clamp(2rem, 6vw, 4.5rem); }

.section-head {
    display: flex; align-items: center; gap: 1rem;
    margin: clamp(3rem, 8vw, 5rem) 0 1.75rem;
}
.section-head::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.section-head span {
    font-family: var(--font-sans);
    font-size: var(--step--1);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-weight: 600;
    color: var(--ink);
}

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    transition: box-shadow 0.2s ease;
}
.site-header.is-scrolled { box-shadow: 0 1px 12px rgba(0,0,0,0.06); }

.header-bar {
    display: flex; align-items: center; justify-content: space-between;
    max-width: var(--wrap); margin-inline: auto;
    padding: 0.5rem var(--gap);
    font-family: var(--font-sans);
    font-size: var(--step--1);
    border-bottom: 1px solid var(--rule);
}
.header-date { color: var(--ink-faint); letter-spacing: 0.02em; }
.header-subscribe {
    text-decoration: none;
    text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600;
    color: var(--accent-text);
}
.header-subscribe:hover { text-decoration: underline; }

.masthead { text-align: center; padding: clamp(1.1rem, 3vw, 2rem) var(--gap) clamp(0.8rem, 2vw, 1.2rem); }
.masthead-link {
    text-decoration: none;
    display: inline-flex; align-items: center; justify-content: center;
    gap: 0.16em;
    font-size: clamp(2.6rem, 1.7rem + 4vw, 5rem);
    line-height: 1;
}
.masthead-logo { max-height: 64px; width: auto; margin-inline: auto; }
.masthead-title {
    font-family: var(--font-display);
    font-weight: 500;
    font-style: normal;
    font-synthesis: none; /* kein künstliches Fett für Gloock (nur Regular) */
    font-size: 1em;
    letter-spacing: -0.01em;
    line-height: 0.95;
}
.masthead-tagline {
    margin-top: 0.5rem;
    font-family: var(--font-sans);
    font-style: normal;
    font-size: var(--step-0);
    letter-spacing: 0.01em;
    color: var(--ink-faint);
}
.is-scrolled .masthead { padding-block: 0.6rem; }
.is-scrolled .masthead-link { font-size: var(--step-2); }
.is-scrolled .masthead-tagline { display: none; }
.is-scrolled .masthead-logo { max-height: 34px; }

/* Metis mark: Kopf (Tinte) + Punkt (Koralle). Head follows text ink, so it inverts in dark mode. */
.metis-mark { width: 0.92em; height: 0.92em; flex: none; display: block; overflow: visible; }
.metis-mark-head { fill: var(--ink); }
.metis-mark-dot { fill: var(--metis-coral); }

.primary-nav { border-top: 1px solid var(--rule); }
.primary-nav ul {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: clamp(1rem, 3vw, 2.25rem);
    max-width: var(--wrap); margin-inline: auto;
    padding: 0.7rem var(--gap);
}
.primary-nav a {
    text-decoration: none;
    font-family: var(--font-sans);
    font-size: var(--step--1);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    color: var(--ink);
    padding-block: 0.15rem;
    border-bottom: 2px solid transparent;
}
.primary-nav a:hover, .primary-nav a[aria-current="page"] { border-color: var(--accent-text); color: var(--accent-text); }

/* Where the nav also appears as a section band at the top of the homepage:
   hide the duplicate nav in the header, and let the whole header scroll away
   so only the band stays pinned (no overlap between masthead and band). */
body:has(.primary-nav.section-nav) .site-header .primary-nav { display: none; }
body:has(.primary-nav.section-nav) .site-header { position: relative; box-shadow: none; border-bottom: 0; }
body:has(.primary-nav.section-nav) .site-main { padding-top: 0; }

/* Section band that opens the homepage, above the lead story */
.primary-nav.section-nav {
    border-top: 1px solid var(--rule-strong);
    border-bottom: 1px solid var(--rule-strong);
    margin: 0 0 clamp(2rem, 6vw, 3.5rem);
}
.primary-nav.section-nav ul { padding-block: 1rem; gap: clamp(1.25rem, 4vw, 3rem); }
.primary-nav.section-nav a { font-size: var(--step-0); letter-spacing: 0.09em; }

/* Once you scroll down to it, the section band pins to the top and travels along.
   Desktop/tablet only — on phones the sticky header keeps the menu button reachable. */
@media (min-width: 621px) {
    .primary-nav.section-nav {
        position: sticky;
        top: 0;
        z-index: 60;
        background: var(--paper);
    }
}

.nav-toggle { display: none; background: none; border: 0; padding: 0.4rem; width: 2.2rem; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); margin: 4px 0; transition: 0.2s; }

.mobile-nav { border-bottom: 1px solid var(--rule); background: var(--paper); padding: 1rem var(--gap) 1.5rem; }
.mobile-nav ul { display: flex; flex-direction: column; list-style: none; margin: 0; padding: 0; }
.mobile-nav a {
    display: block; padding: 0.75rem 0; text-decoration: none;
    font-family: var(--font-serif); font-size: var(--step-1);
    border-bottom: 1px solid var(--rule);
}
.mobile-nav-cta {
    display: inline-block; margin-top: 1rem;
    background: var(--accent); color: var(--accent-ink);
    text-decoration: none; padding: 0.65rem 1.1rem;
    font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600;
}

/* ---------- Article grid & cards ---------- */
/* Editorial mosaic: every 1st-of-3 card runs big (2 cols × 2 rows on a 6-col
   base = the width of the two small ones stacked beside it), auto-flow: dense
   lets the two small cards backfill the gap so the module tiles seamlessly. */
.article-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-flow: row dense;
    gap: var(--gap) var(--gap);
}
.article-grid > .card {
    grid-column: span 2;
    border-top: 1px solid var(--rule);
    padding-top: 1.25rem;
}
.article-grid > .card:nth-of-type(3n + 1):not(.card-lead) {
    grid-column: span 4;
    grid-row: span 2;
}
.article-grid > .card:nth-of-type(3n + 1):not(.card-lead) .card-media img { aspect-ratio: 16 / 10; }
.article-grid > .card:nth-of-type(3n + 1):not(.card-lead) .card-title { font-size: var(--step-2); }
.article-grid > .card:nth-of-type(3n + 1):not(.card-lead) .card-standfirst { display: block; }

.card-media { display: block; margin-bottom: 0.9rem; overflow: hidden; }
.card-media img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; transition: transform 0.4s ease; }
.card:hover .card-media img { transform: scale(1.03); }

.kicker {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.11em;
    font-weight: 600;
    color: var(--accent-text);
    text-decoration: none;
    margin-bottom: 0.5rem;
}
.kicker:hover { text-decoration: underline; }

.card-title { font-size: var(--step-1); margin-bottom: 0.4rem; }
.card-title a { text-decoration: none; }
.card-title a:hover { text-decoration: underline; text-decoration-color: var(--accent); }

.card-standfirst {
    color: var(--ink-soft);
    font-size: var(--step--1);
    line-height: 1.55;
    margin-bottom: 0.6rem;
}
.card-meta {
    font-family: var(--font-sans);
    font-size: 0.86rem;
    font-style: italic;
    color: var(--ink-faint);
    display: flex; gap: 0.5rem; flex-wrap: wrap;
}
.card-author { color: var(--ink-soft); font-weight: 500; }
.card-author + time::before { content: "·"; margin-right: 0.5rem; color: var(--ink-faint); }

/* Lead story — the latest post, always the hero */
.card-lead {
    grid-column: 1 / -1;
    border-top: none !important;
    padding-top: 0 !important;
    padding-bottom: clamp(1.5rem, 5vw, 2.75rem);
    margin-bottom: 0;
    border-bottom: 1px solid var(--rule);
    display: block;
    text-align: center;
}
.card-lead .card-media { margin: 0 auto 1.75rem; }
.card-lead .card-media img { aspect-ratio: 16 / 9; width: 100%; }
.card-lead .kicker { font-size: 0.8rem; margin-bottom: 0.75rem; }
.card-lead .card-title {
    font-size: var(--step-4);
    max-width: 20ch;
    margin: 0 auto 0.25rem;
}
.card-lead .card-standfirst {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: var(--step-1);
    line-height: 1.4;
    color: var(--ink-soft);
    max-width: 44ch;
    margin: 0.85rem auto 1rem;
}
.card-lead .card-meta { justify-content: center; }
.card-lead.card-textonly { max-width: var(--measure); margin-inline: auto; }

/* ---------- Archive headers ---------- */
.archive-header {
    text-align: center;
    max-width: var(--measure); margin: 0 auto clamp(2rem, 6vw, 3.5rem);
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--rule);
}
.archive-title { font-size: var(--step-3); }
.archive-description { margin-top: 0.75rem; color: var(--ink-soft); }
.archive-header .kicker { display: block; margin-bottom: 0.6rem; }
.author-header-avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; margin: 0 auto 1rem; }

/* ---------- Post ---------- */
.post-header { text-align: center; padding-top: 1rem; }
.post-header .kicker { font-size: 0.8rem; }
.post-title { font-size: var(--step-4); margin: 0.5rem 0; }
.post-standfirst {
    font-family: var(--font-serif);
    font-size: var(--step-1);
    font-style: italic;
    line-height: 1.4;
    color: var(--ink-soft);
    max-width: 34rem; margin: 0.75rem auto 0;
}
.post-byline {
    margin-top: 1.5rem;
    font-family: var(--font-sans);
    font-size: var(--step-0);
    font-style: italic;
    color: var(--ink-faint);
    display: flex; justify-content: center; flex-wrap: wrap; gap: 0.4rem 1rem;
}
.post-byline a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--accent); }
.post-author { color: var(--ink-soft); }

.post-feature {
    margin: clamp(2rem, 6vw, 3.5rem) auto;
    max-width: var(--wrap); padding-inline: var(--gap);
}
.post-feature img { width: 100%; }
.post-feature figcaption {
    margin-top: 0.6rem;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    color: var(--ink-faint);
    text-align: center;
}

/* ---------- Prose (gh-content) ---------- */
.gh-content {
    font-size: 1.2rem;
    line-height: 1.75;
    margin-top: clamp(2rem, 6vw, 3rem);
}
.gh-content > * + * { margin-top: 1.5rem; }
.gh-content p { hanging-punctuation: first last; }
.gh-content a { color: var(--ink); text-decoration-color: var(--accent); }
.gh-content a:hover { color: var(--accent-text); }

.gh-content h2 { font-size: var(--step-2); margin-top: 3rem; }
.gh-content h3 { font-size: var(--step-1); margin-top: 2.5rem; }
.gh-content h4 {
    font-family: var(--font-sans); font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.9rem;
    margin-top: 2.5rem;
}

.gh-content ul, .gh-content ol { padding-left: 1.4rem; }
.gh-content li + li { margin-top: 0.4rem; }

/* Breaking out of the column — the quote spills into the margin, the way
   the thought breaks out of the head in the Metis mark and loader. */
.gh-content blockquote {
    position: relative;
    border: none;
    max-width: none;
    width: min(60rem, 88vw);
    margin-inline: calc(50% - min(30rem, 44vw));
    margin-block: clamp(2rem, 6vw, 3rem);
    padding-left: 0;              /* kein Punkt mehr davor */
    font-family: var(--font-display);
    font-weight: 500;
    font-optical-sizing: auto;
    font-style: normal;
    font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.65rem); /* etwas größer als der Fließtext, nicht mehr plakativ */
    line-height: 1.35;
    color: var(--ink);
}
.gh-content blockquote cite,
.gh-content blockquote footer {
    display: block;
    margin-top: 0.75rem;
    font-family: var(--font-sans);
    font-size: var(--step--1);
    font-style: normal;
    color: var(--ink-faint);
}

.gh-content hr {
    border: 0; height: 1px; background: var(--rule);
    width: 40%; margin-inline: auto;
    margin-block: clamp(2.5rem, 7vw, 4rem);
}

.gh-content pre {
    background: var(--ink); color: var(--paper);
    padding: 1.25rem 1.5rem; overflow-x: auto;
    font-size: 0.9rem; line-height: 1.6;
    border-radius: 2px;
}
.gh-content :not(pre) > code {
    background: var(--paper-tint);
    padding: 0.12em 0.35em; border-radius: 2px;
    font-size: 0.9em;
}

.gh-content figure { margin-block: clamp(2rem, 6vw, 3rem); }
.gh-content figcaption {
    margin-top: 0.6rem; text-align: center;
    font-family: var(--font-sans); font-size: 0.8rem; color: var(--ink-faint);
}

/* Koenig wide / full-bleed cards */
.gh-content .kg-width-wide { width: min(85rem, 92vw); margin-inline: calc(50% - min(42.5rem, 46vw)); max-width: none; }
.gh-content .kg-width-full { width: 100vw; margin-inline: calc(50% - 50vw); max-width: none; }
.kg-width-full img { width: 100%; }

.gh-content .kg-callout-card {
    background: var(--paper-tint);
    padding: 1.25rem 1.5rem;
    border-left: 3px solid var(--accent);
    font-size: var(--step--1);
}
/* "Randmarkierung": pick the Accent background for a callout in the editor
   to mark a paragraph as the essay's central thought — a dot + hairline in
   the margin, not a boxed alert. See _uebergabe/metis-marke for the idea. */
.gh-content .kg-callout-card-accent {
    position: relative;
    background: none;
    border-left: none;
    padding: 0.1rem 0 0.1rem 1.75rem;
    font-family: var(--font-serif);
    font-size: var(--step-0);
    line-height: 1.65;
    color: var(--ink);
}
.gh-content .kg-callout-card-accent::before {
    content: "";
    position: absolute; left: 0.22rem; top: 0.4em; bottom: 0.4em;
    width: 2px;
    background: var(--metis-coral);
}
.gh-content .kg-callout-card-accent .kg-callout-emoji {
    position: absolute; left: 0; top: 0.45em;
    width: 0.5rem; height: 0.5rem;
    border-radius: 50%;
    background: var(--metis-coral);
    font-size: 0; line-height: 0; overflow: hidden;
}
.gh-content .kg-callout-card-accent .kg-callout-text { margin: 0; }
.kg-bookmark-card { border: 1px solid var(--rule); }
.kg-bookmark-container { text-decoration: none; color: inherit; display: flex; }
.kg-bookmark-content { padding: 1rem 1.25rem; }
.kg-bookmark-title { font-weight: 600; }
.kg-bookmark-description { color: var(--ink-soft); font-size: 0.9rem; }

/* Drop cap */
.has-drop-cap > p:first-of-type::first-letter {
    font-family: var(--font-serif);
    float: left;
    font-size: 4.4em;
    line-height: 0.78;
    font-weight: 500;
    padding: 0.06em 0.1em 0 0;
    color: var(--accent);
}

/* ---------- Post footer ---------- */
.post-footer { margin-top: clamp(2.5rem, 7vw, 4rem); padding-bottom: clamp(4rem, 10vw, 7rem); } /* Luft vor dem grünen Abschnitt */
.post-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.post-tags a {
    text-decoration: none;
    font-family: var(--font-sans); font-size: 0.78rem;
    text-transform: uppercase; letter-spacing: 0.1em;
    border: 1px solid var(--rule); padding: 0.3rem 0.7rem;
    color: var(--ink-soft);
}
.post-tags a:hover { border-color: var(--accent-text); color: var(--accent-text); }

.author-bio {
    display: flex; gap: 1.25rem; align-items: flex-start;
    border-top: 1px solid var(--rule); padding-top: 1.5rem;
}
.author-bio-avatar { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.author-bio-text h3 { font-size: var(--step-1); }
.author-bio-text h3 a { text-decoration: none; }
.author-bio-text p { color: var(--ink-soft); font-size: var(--step--1); margin-top: 0.3rem; }

/* ---------- Newsletter: eigenes Modul in der Kontrastfarbe, schwebt mit Schatten über dem Grün ---------- */
.newsletter {
    background: transparent;      /* der Abschnitt dahinter (Waldgrün) bleibt sichtbar */
    padding: clamp(3rem, 8vw, 5.5rem) var(--gap);
}
.newsletter--compact { padding-block: clamp(2.5rem, 6vw, 4rem); }
.newsletter-inner {
    /* Farben für die helle Karte: Schrift wieder dunkel, Grund = Kontrastfarbe (Birkenrinde) */
    --ink: #1f3a29;
    --ink-soft: #354f3b;
    --ink-faint: #455f49;
    --rule-strong: #1f3a29;
    --paper: #fbf3dd;             /* Eingabefeld */
    --accent-text: #6b4321;       /* Walnuss für das kleine Label */
    --metis-green: #245934;
    color-scheme: light;
    background: var(--beige);
    color: var(--ink);
    max-width: 58rem;
    margin-inline: auto;
    padding: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 5vw, 4rem);
    border-radius: 6px;
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.18),
        0 18px 40px -12px rgba(0, 0, 0, 0.45),
        0 40px 90px -30px rgba(0, 0, 0, 0.5);
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 0.4rem clamp(1.5rem, 4vw, 3rem);
    align-items: end;
    text-align: left;
}
.newsletter-inner > * { grid-column: 1; }
.newsletter-inner > form,
.newsletter-inner > .newsletter-note { grid-column: 2; }
.newsletter-inner > form { grid-row: 2 / span 2; align-self: center; }
.newsletter-eyebrow {
    font-family: var(--font-sans); font-size: 0.75rem;
    text-transform: uppercase; letter-spacing: 0.2em; font-weight: 600;
    color: var(--accent-text); margin-bottom: 0.4rem;
}
.newsletter h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.5rem); line-height: 1.08; }
.newsletter-lede { color: var(--ink-soft); margin-top: 0.4rem; }
.newsletter-form { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.newsletter-form input {
    flex: 1 1 14rem;
    background: var(--paper);
    border: 1px solid var(--rule-strong);
    padding: 0.85rem 1rem;
    border-radius: 3px;
    color: var(--ink);
}
.newsletter-form input::placeholder { color: var(--ink-faint); }
.newsletter-form input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.newsletter-form button {
    background: var(--ink); color: var(--paper);
    border: 1px solid var(--ink);
    border-radius: 3px;
    padding: 0.85rem 1.6rem;
    font-size: var(--step--1);
    text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600;
}
.newsletter-form button:hover { background: #2d513c; border-color: #2d513c; color: var(--paper); }
@media (max-width: 760px) {
    .newsletter-inner { grid-template-columns: 1fr; }
    .newsletter-inner > form, .newsletter-inner > .newsletter-note { grid-column: 1; }
    .newsletter-inner > form { grid-row: auto; margin-top: 1rem; }
}.newsletter-note { font-size: 0.8rem; color: var(--ink-faint); margin-top: 0.9rem; }
.newsletter-note:empty { display: none; }
.newsletter-note--success {
    color: var(--metis-green);
    font-weight: 600;
    font-size: var(--step--1);
}
.newsletter-note--success[hidden] { display: none; }
.confirm-dot {
    display: inline-block; width: 0.5rem; height: 0.5rem; border-radius: 50%;
    background: var(--metis-green); margin-right: 0.5rem; vertical-align: middle;
}

/* ---------- Related ---------- */
.related { margin-top: clamp(2rem, 6vw, 3rem); }

/* ---------- Footer ---------- */
.site-footer {
    border-top: 1px solid var(--rule);
    margin-top: clamp(3rem, 8vw, 5rem);
    padding: clamp(2.5rem, 7vw, 4rem) var(--gap) 2rem;
}
.footer-inner {
    max-width: var(--wrap); margin-inline: auto;
    display: flex; flex-wrap: wrap; gap: 2rem 4rem;
    justify-content: space-between; align-items: start;
}
.footer-title {
    font-family: var(--font-serif); font-size: var(--step-2);
    text-decoration: none; font-weight: 500;
}
.footer-brand p { color: var(--ink-soft); font-size: var(--step--1); margin-top: 0.4rem; max-width: 24rem; }
.footer-cta {
    display: inline-block; margin-top: 1.1rem;
    border-bottom: 2px solid var(--accent);
    text-decoration: none; font-weight: 600;
    font-size: var(--step--1);
}
.footer-nav ul { display: grid; gap: 0.6rem; }
.footer-nav a {
    text-decoration: none; color: var(--ink-soft);
    font-family: var(--font-sans); font-size: var(--step--1);
    text-transform: uppercase; letter-spacing: 0.08em;
}
.footer-nav a:hover { color: var(--accent-text); }
.footer-legal {
    max-width: var(--wrap); margin: 2.5rem auto 0;
    padding-top: 1.5rem; border-top: 1px solid var(--rule);
    font-size: 0.8rem; color: var(--ink-faint);
}
.footer-legal a { color: var(--ink-soft); }

/* ---------- Pagination ---------- */
.pagination {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: clamp(2.5rem, 7vw, 4rem);
    padding-top: 1.5rem; border-top: 1px solid var(--rule);
    font-family: var(--font-sans); font-size: var(--step--1);
    text-transform: uppercase; letter-spacing: 0.1em;
}
.pagination a { text-decoration: none; font-weight: 600; }
.pagination a:hover { color: var(--accent-text); }
.pagination .page-number { color: var(--ink-faint); letter-spacing: 0.05em; }

/* ---------- Error ---------- */
.error-page { text-align: center; padding-block: clamp(3rem, 12vw, 7rem); }
.error-code { font-family: var(--font-serif); font-size: var(--step-4); color: var(--accent); }
.error-title { font-size: var(--step-2); margin-top: 0.5rem; }
.error-text { color: var(--ink-soft); margin-top: 0.75rem; }
.error-home {
    display: inline-block; margin-top: 1.5rem;
    border-bottom: 2px solid var(--accent); text-decoration: none; font-weight: 600;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    /* mosaic is a desktop flourish; below this it reads better as a plain 2-up grid */
    .article-grid { grid-template-columns: repeat(2, 1fr); }
    .article-grid > .card,
    .article-grid > .card:nth-of-type(3n + 1):not(.card-lead) { grid-column: auto; grid-row: auto; }
    .article-grid > .card:nth-of-type(3n + 1):not(.card-lead) .card-media img { aspect-ratio: 3 / 2; }
    .card-lead .card-title { font-size: var(--step-3); }
    .card-lead .card-media img { aspect-ratio: 3 / 2; }
}

@media (max-width: 620px) {
    .article-grid { grid-template-columns: 1fr; gap: 0; }
    .article-grid > .card,
    .article-grid > .card:nth-of-type(3n + 1):not(.card-lead) { grid-column: auto; grid-row: auto; }
    .article-grid > .card { padding-block: 1.5rem; }
    .primary-nav { display: none; }
    .nav-toggle { display: block; }
    /* keep the homepage section band visible, scrolling sideways if needed */
    .primary-nav.section-nav { display: block; }
    .primary-nav.section-nav ul {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .primary-nav.section-nav li { flex: 0 0 auto; }
    .header-bar { justify-content: space-between; }
    .masthead-title { font-size: var(--step-3); }
    .gh-content .kg-width-wide { width: 100%; margin-inline: 0; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
    .card:hover .card-media img { transform: none; }
}


/* ---------- Metis loader: Summen → Drücken → Ausbruch (A wird zu C) ---------- */
.metis-loader {
    position: fixed; inset: 0; z-index: 999;
    display: none; place-items: center;
    background: var(--paper);
    opacity: 1; transition: opacity 0.35s ease;
}
.js .metis-loader.is-on { display: grid; }
.metis-loader.is-out { opacity: 0; }
.metis-loader-svg { width: 5.5rem; height: 5.5rem; overflow: visible; }
.metis-loader-svg .ml-head { fill: var(--ink); }
.metis-loader-svg .ml-dot,
.metis-loader-svg .ml-cut {
    transform-box: fill-box; transform-origin: center;
}
.metis-loader-svg .ml-dot {
    fill: var(--metis-coral);
    animation: ml-buzz 1.2s infinite;
}
.metis-loader-svg .ml-cut { transform: scale(0); transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }
.metis-loader-svg .ml-dot { transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }
@keyframes ml-buzz {
    0%   { transform: translate(0, 0); }
    8%   { transform: translate(1.5px, -1px); }
    16%  { transform: translate(-1px, 1px); }
    24%  { transform: translate(1px, -0.5px); }
    32%  { transform: translate(-0.5px, 0.5px); }
    40%  { transform: translate(0, 0); }
    70%  { transform: translate(-3px, 3px); }
    100% { transform: translate(0, 0); }
}
/* Ausbruch: Punkt rutscht in die Kerbe und wird kleiner (Endzustand = Logo-Variante C) */
.metis-loader.is-breaking .ml-dot { animation: none; transform: translate(-5px, 7px) scale(0.714); }
.metis-loader.is-breaking .ml-cut { transform: scale(1); }

/* Roter Punkt statt „Ende" am Schluss eines Essays */
.post-end { text-align: center; margin-top: clamp(2rem, 6vw, 3rem); }
.post-end-dot { display: inline-block; width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--metis-coral); }

@media (prefers-reduced-motion: reduce) {
    .metis-loader { display: none !important; }
}

/* Zonen-Übergänge: kein heller Streifen zwischen grünem Abschnitt und grünem Footer */
.site-main:has(> .zone-forest:last-child),
.site-main:has(> .home-issues > .zone-forest:last-child) { padding-bottom: 0; } /* Startseite: Grün steckt im Nummern-Rahmen .home-issues */
.site-footer.zone-forest { margin-top: 0; border-top: none; }
.site-main:not(:has(> .zone-forest:last-child)) + .site-footer.zone-forest { margin-top: 0; }
.zone-home { padding-bottom: 0; }

.zone-post { padding-bottom: clamp(2.5rem, 7vw, 4rem); }

/* ---------- Startseite nach Art von The Ideas Letter ---------- */
/* oben kein Extra-Abstand: das Rubriken-Band darüber bringt schon seinen eigenen mit */
.hero { padding-block: 0 clamp(2.5rem, 6vw, 4.5rem); }
/* Text links, Bild rechts daneben – der ganze Aufmacher passt auf einen Bildschirm */
.hero-text {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(1.5rem, 4vw, 3.5rem);
    align-items: center;
}
.hero--image .hero-text { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
.hero:not(.hero--image) .hero-copy { max-width: 46rem; }
.hero-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2rem, 1.25rem + 2.3vw, 3.3rem);   /* vorher bis 6rem – bei langen Titeln viel zu groß */
    line-height: 1.06;
    letter-spacing: -0.01em;
    margin-top: 0.4rem;
    text-wrap: balance;
}
.hero-copy .hero-standfirst { margin-top: 1rem; }
.hero-title a { text-decoration: none; }
.hero-title a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--accent); }
.hero-standfirst { font-size: var(--step-1); line-height: 1.45; color: var(--ink-soft); }
.hero-meta { margin-top: 1rem; font-size: var(--step--1); color: var(--ink-faint); display: flex; flex-wrap: wrap; gap: 0.25rem 0.9rem; }
.hero-author { color: var(--ink); font-weight: 600; }
.hero-more { display: inline-block; margin-top: 1.1rem; font-weight: 600; text-decoration: none; color: var(--ink); border-bottom: 2px solid var(--accent); padding-bottom: 2px; }
.hero-more::after { content: " →"; }
.hero-media { display: block; overflow: hidden; } /* Bild rechts neben dem Text */
.hero-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 0.6s ease; }
.hero-media:hover img { transform: scale(1.015); }

.issue { padding-top: clamp(3rem, 7vw, 5rem); }
.issue-head {
    display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap;
    padding-bottom: 1rem; border-bottom: 1px solid var(--rule);
    margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}
.issue-head h2 { font-family: var(--font-display); font-weight: 400; font-size: var(--step-3); }
.issue-head time, .issue-head span { font-size: var(--step--1); color: var(--ink-faint); letter-spacing: 0.08em; text-transform: uppercase; }
/* „Kopfgeburt" als Reihe: Label im Aufmacher und fortlaufende Nummern (gefüllt von main.js, nur Startseite) */
p.kicker.hero-issue:hover { text-decoration: none; }
.hero-issue a { color: inherit; text-decoration: none; }
.hero-issue a:hover { text-decoration: underline; }
.issue-nr:empty { display: none; }
.issue-nr {
    font-style: normal; font-weight: 600; letter-spacing: 0.06em;
    color: var(--accent-text); font-variant-numeric: tabular-nums;
}
.card-meta .issue-nr + .card-author::before,
.card-meta .issue-nr + time::before { content: "·"; margin-right: 0.5rem; color: var(--ink-faint); font-weight: 400; }
.issue-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2.25rem, 5vw, 3.5rem) var(--gap); }
.card-big .card-media { margin-bottom: 1.1rem; }
.card-big .card-media img { aspect-ratio: 3 / 2; }
.card-big .card-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.6rem); line-height: 1.08; letter-spacing: -0.01em; }
.card-big .card-standfirst { font-size: var(--step-0); margin-top: 0.3rem; }

.about-teaser { margin-top: clamp(3.5rem, 8vw, 6rem); padding-top: clamp(2rem, 5vw, 3rem); border-top: 1px solid var(--rule); }
.about-teaser-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: clamp(1rem, 4vw, 4rem); }
.about-label { font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600; color: var(--accent-text); padding-top: 0.5rem; }
.about-text { display: grid; gap: 1.1rem; max-width: 46rem; }
.about-text p { font-family: var(--font-serif); font-size: clamp(1.25rem, 1.05rem + 0.7vw, 1.55rem); line-height: 1.5; } /* Textschrift statt Überschriftenschrift: ruhiger */
.about-link { justify-self: start; font-weight: 600; text-decoration: none; color: var(--ink); border-bottom: 2px solid var(--accent); padding-bottom: 2px; }
.about-link::after { content: " →"; }

.more { margin-top: clamp(1rem, 3vw, 2rem); }
@media (min-width: 901px) {
    .article-grid--plain > .card:nth-of-type(3n + 1):not(.card-lead) { grid-column: span 2; grid-row: auto; }
    .article-grid--plain > .card:nth-of-type(3n + 1):not(.card-lead) .card-media img { aspect-ratio: 3 / 2; }
    .article-grid--plain > .card:nth-of-type(3n + 1):not(.card-lead) .card-title { font-size: var(--step-1); }
}
@media (max-width: 800px) {
    .hero-text, .hero--image .hero-text { grid-template-columns: 1fr; }
    .issue-grid { grid-template-columns: 1fr; }
    .about-teaser-inner { grid-template-columns: 1fr; }
}

/* ---------- Grün in Stufen (Vorschlag 2) ---------- */
.green-band { padding-block: clamp(3rem, 7vw, 5rem); }
.green-band--1 { background: var(--g1); }
.green-band--2 { background: var(--g2); }
.green-band--3 { background: var(--g3); padding-bottom: 0; }
.green-band .issue { padding-top: 0; }
.green-band .about-teaser { margin-top: 0; padding-top: 0; border-top: none; }
.green-band .more { margin-top: 0; }
.green-band .more .section-head { margin-top: 0; }
.site-footer.zone-forest { background: var(--g4); }

/* ---------- Menü in der obersten Zeile: Datum · Rubriken · Newsletter ---------- */
.header-bar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    padding-block: 0.7rem;
}
.header-bar .header-date { justify-self: start; }
.header-bar .header-subscribe { justify-self: end; }
.header-bar .primary-nav.top-nav { border-top: none; }
.header-bar .primary-nav.top-nav ul { padding: 0; gap: clamp(1rem, 2.6vw, 2.25rem); }
.header-bar .primary-nav.top-nav a { font-size: var(--step--1); letter-spacing: 0.1em; }
@media (max-width: 620px) {
    .header-bar { display: flex; justify-content: space-between; }
    .header-bar .primary-nav.top-nav { display: none; }
}

/* ---------- Oberste Leiste, minimalistisch ---------- */
.primary-nav ul { list-style: none; margin: 0; }          /* keine Aufzählungspunkte */
.topbar .header-bar {
    border-bottom: none;
    padding-block: 1rem;
    font-size: 0.95rem;
}
.header-bar .header-date { color: var(--ink-faint); letter-spacing: 0; font-size: 0.85rem; }
.header-bar .primary-nav.top-nav a {
    text-transform: none;
    letter-spacing: 0;
    font-weight: 500;
    font-size: 0.98rem;
    color: var(--ink-soft);
    border-bottom: none;
    padding-block: 0.2rem;
    text-decoration: none;
    background: linear-gradient(var(--accent), var(--accent)) left bottom / 0 1px no-repeat;
    transition: background-size 0.25s ease, color 0.2s ease;
}
.header-bar .primary-nav.top-nav a:hover,
.header-bar .primary-nav.top-nav a[aria-current="page"] { color: var(--ink); background-size: 100% 1px; }
.header-bar .header-subscribe {
    text-transform: none;
    letter-spacing: 0;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--ink);
    border: 1px solid var(--ink);
    border-radius: 999px;
    padding: 0.35rem 1rem;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}
.header-bar .header-subscribe:hover { background: var(--ink); color: var(--paper); text-decoration: none; }
.author-bio-label { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 0.25rem; }

/* ---------- Klebende Menüzeile statt schrumpfendem Kopf ---------- */
.site-header {
    position: relative;            /* Kopf mit großem Logo scrollt normal weg, schrumpft nicht mehr */
    z-index: auto;
    box-shadow: none;
}
.topbar {
    position: sticky; top: 0; z-index: 60;
    background: var(--paper);
    transition: box-shadow 0.25s ease;
}
.topbar.is-scrolled { box-shadow: 0 1px 0 var(--rule), 0 8px 20px -14px rgba(0, 0, 0, 0.35); }
.topbar-left { justify-self: start; display: grid; align-items: center; }
.topbar-left > * { grid-area: 1 / 1; transition: opacity 0.25s ease, transform 0.25s ease; }
.topbar-brand {
    display: inline-flex; align-items: center; gap: 0.3em;
    font-family: var(--font-display); font-size: 1.3rem; line-height: 1;
    color: var(--ink); text-decoration: none; white-space: nowrap;
    opacity: 0; transform: translateY(4px); pointer-events: none;
}
.topbar-brand .metis-mark { width: 0.95em; height: 0.95em; }
.topbar.is-scrolled .topbar-brand { opacity: 1; transform: none; pointer-events: auto; }
.topbar.is-scrolled .header-date { opacity: 0; }
.topbar .mobile-nav { border-top: 1px solid var(--rule); }
/* „Newsletter abonnieren" im Handy-Menü: dieselbe schlichte Pille wie oben in der Leiste
   (vorher griff die Regel für Menülinks – große Serifenschrift, Linie, volle Breite) */
.mobile-nav a.mobile-nav-cta {
    display: inline-block; margin-top: 1.25rem;
    padding: 0.5rem 1.2rem;
    border: 1px solid var(--ink); border-radius: 999px;
    background: none; color: var(--ink);
    font-family: inherit; font-size: 0.95rem; font-weight: 500;
    text-transform: none; letter-spacing: 0;
    transition: background 0.2s ease, color 0.2s ease;
}
.mobile-nav a.mobile-nav-cta:hover { background: var(--ink); color: var(--paper); }
@media (prefers-reduced-motion: reduce) { .topbar-left > * { transition: none; } }

/* ---------- Grün auf den übrigen Seiten (Artikel, Seiten, Rubriken, Autoren) ---------- */
/* Titelbereich auf Stufe 1; ein Aufmacherbild ragt halb ins Grün */
.post { --overlap: clamp(4rem, 14vw, 11rem); } /* am Artikel, damit Kopfband UND Bild (Geschwister) den Wert sehen */
.page-hero .post-header { padding-top: 0; }
.page-hero .post-title { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.015em; }
.page-hero--image { padding-bottom: calc(var(--overlap) + clamp(1.5rem, 4vw, 2.5rem)); }
.page-hero--image + .post-feature { position: relative; z-index: 1; margin-top: calc(-1 * var(--overlap)); }
.page-hero--image + .post-feature img { box-shadow: 0 24px 50px -28px rgba(0, 0, 0, 0.45); }

/* Rubrik-, Autoren- und Listenseiten: Stufe 1 Titel · Stufe 2 Beiträge · Stufe 3 Newsletter */
.zone-archive .archive-header { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.zone-archive .archive-title { font-family: var(--font-display); font-weight: 400; font-size: var(--step-4); line-height: 1.02; }
.zone-archive .archive-description { color: var(--ink-soft); }
.archive-empty { font-family: var(--font-display); font-size: var(--step-2); line-height: 1.25; max-width: 32rem; margin: 0; text-wrap: balance; }
.zone-archive .green-band--3 { padding-top: 0; }

/* Seiten, die mit Grün beginnen (Rubrik, Autor, Liste, Artikel, Seiten): kein beiger Streifen unter dem Kopf */
.site-main:has(> .zone-forest:first-child),
.site-main:has(> .post:first-child > .page-hero:first-child) { padding-top: 0; }
.zone-archive .green-band--1 { padding-block: clamp(2.25rem, 5vw, 3.5rem); }
.page-hero.green-band--1 { padding-top: clamp(2.25rem, 5vw, 3.5rem); }

/* ---------- Der Punkt bewegt sich ---------- */
/* Idee 6 – Summen: fährt man über ein Logo, summt der Punkt wie eine Fliege */
@keyframes metis-buzz {
    0%   { transform: translate(0, 0); }
    15%  { transform: translate(2.6px, -2px); }
    30%  { transform: translate(-2px, 1.6px); }
    45%  { transform: translate(1.6px, -1px); }
    60%  { transform: translate(-1.4px, 1.4px); }
    75%  { transform: translate(2.2px, 0.6px); }
    100% { transform: translate(0, 0); }
}
/* nur wenn die Maus auf dem Bildzeichen selbst ist, nicht auf dem Schriftzug */
.masthead-link .metis-mark:hover .metis-mark-dot,
.topbar-brand .metis-mark:hover .metis-mark-dot {
    animation: metis-buzz 0.3s linear infinite;
}

/* Idee 7 – Menü-Punkt statt Unterstrich */
.top-nav { position: relative; }
.header-bar .primary-nav.top-nav a,
.header-bar .primary-nav.top-nav a:hover,
.header-bar .primary-nav.top-nav a[aria-current="page"] { background-image: none; }
.header-bar .primary-nav.top-nav a[aria-current="page"] { color: var(--ink); }
.top-nav .nav-dot {
    position: absolute; left: -3.5px; bottom: -0.6rem;
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--metis-dot);
    opacity: 0; pointer-events: none;
    transition: transform 0.45s cubic-bezier(0.3, 0.7, 0.2, 1), opacity 0.2s ease;
}
.top-nav .nav-dot.is-on { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
    .metis-mark:hover .metis-mark-dot { animation: none; }
    .top-nav .nav-dot { transition: opacity 0.2s ease; }
}

/* ---------- Handy & Tablet: etwas weniger warm ---------- */
/* Viele Handybildschirme verstärken warme Farben. Auf Touch-Geräten daher nur halb so viel Wärme
   wie am Laptop. (Erzeugt mit touch-palette.js aus den ursprünglichen Farben.) */
@media (hover: none) and (pointer: coarse) {
    :root {
        --metis-dot: #8b5929;
        --beige: #f3ead5;
        --paper: #f3ead5;
        --paper-tint: #eae0c8;
        --ink: #1f3b2a;
        --ink-soft: #3f5947;
        --ink-faint: #54695a;
        --rule: #dcd0b6;
        --rule-strong: #1f3b2a;
        --accent: #8b5929;
        --accent-text: #7a4d24;
        --metis-green: #2c6a42;
    }
    .zone-forest {
        --paper: #1f3b2a;
        --g1: #2e4b39;
        --g2: #264332;
        --g3: #1f3b2a;
        --g4: #152a1e;
        --paper-tint: #284734;
        --ink: #eeeede;
        --ink-soft: #c7cebc;
        --ink-faint: #b0bcac;
        --rule: #3a5745;
        --rule-strong: #eeeede;
        --metis-dot: #e6d1a2;
        --accent: #e6d1a2;
        --accent-text: #ecdab0;
        --accent-ink: #1f3b2a;
        --metis-green: #a8d9b0;
    }
    .newsletter-inner {
        --ink: #1f3b2a;
        --ink-soft: #354f3d;
        --ink-faint: #455f4c;
        --rule-strong: #1f3b2a;
        --paper: #fbf5e6;
        --accent-text: #6b4322;
        --metis-green: #245936;
    }
    .newsletter-form button:hover { background: #2d513e; border-color: #2d513e; }
}
/* ---------- Ende Handy & Tablet ---------- */

/* ---------- Waldmodus (dunkel) per Knopf: auch Kopf und Artikel werden grün ---------- */
/* Waldmodus „einfarbig": jede Seite hat genau EINE Grundfarbe – die Startseite Waldgrün,
   alle anderen Seiten (Artikel, Rubriken, Über uns …) Waldboden. Keine Grünstufen;
   Abschnitte trennen sich nur durch feine Linien. Walnuss ist der einzige Akzent. */
html[data-theme="dark"] { --mono: #16281e; --mono-tint: #1d3226; color-scheme: dark; }  /* Waldboden */
html[data-theme="dark"] body.home-template { --mono: #1f3b2c; --mono-tint: #284836; }    /* Waldgrün */
html[data-theme="dark"] body,
html[data-theme="dark"] .zone-forest {
    --paper: var(--mono);
    --paper-tint: var(--mono-tint);
    --g1: var(--mono); --g2: var(--mono); --g3: var(--mono); --g4: var(--mono);
    --ink: #f0ebdd;            /* cremig */
    --ink-soft: #d3cdbb;
    --ink-faint: #bdb8a5;
    --rule: rgba(240, 235, 221, 0.16);
    --rule-strong: #f0ebdd;
    --metis-dot: #d9a66b;      /* Walnuss-Kupfer */
    --metis-coral: var(--metis-dot);
    --accent: #d9a66b;
    --accent-text: #e2b47f;
    --accent-ink: var(--mono);
    --metis-green: #b5d9b0;
}
/* Startseite: Kopf (Menüzeile + Logo) und Footer in Waldboden, alles dazwischen (auch der Aufmacher) Waldgrün */
html[data-theme="dark"] body.home-template .topbar,
html[data-theme="dark"] body.home-template .site-header { --paper: #16281e; --paper-tint: #1d3226; background: #16281e; }
html[data-theme="dark"] body.home-template .site-footer.zone-forest { --g4: #16281e; --paper: #16281e; }
/* statt Farbstufen: feine Linien zwischen den Abschnitten */
html[data-theme="dark"] .site-main > .zone-forest,
html[data-theme="dark"] .green-band + .green-band,
html[data-theme="dark"] .site-footer.zone-forest { border-top: 1px solid var(--rule); }
/* Die Newsletter-Karte bleibt auch im Waldmodus hell (eigene Farben in .newsletter-inner) –
   der einzige helle Fleck auf der Seite. */

/* Knopf in der Menüzeile */
.topbar-right { justify-self: end; display: flex; align-items: center; gap: 0.6rem; }
.theme-toggle {
    width: 2.15rem; height: 2.15rem; padding: 0;
    display: inline-grid; place-items: center;
    border: 1px solid var(--rule); border-radius: 50%;
    background: none; color: var(--ink); cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.theme-toggle:hover { border-color: var(--ink); }
.theme-toggle svg { width: 1.05rem; height: 1.05rem; display: block; }
.theme-toggle .i-sun { display: none; }
html[data-theme="dark"] .theme-toggle .i-sun { display: block; }
html[data-theme="dark"] .theme-toggle .i-moon { display: none; }