/* =============================================================================
   New Dominion – gemeinsames Design-System  ("Erstausgabe" / Editorial One-Sheet)
   -----------------------------------------------------------------------------
   Ein kinoreifes, redaktionelles Dunkel-System. Die Markenfarbe (Koralle→Magenta→
   Violett, aus dem NDO-Logo) lebt AUSSCHLIESSLICH als 1px-"Lichtlinie" und in
   Kleinsttypo – NIE als grossflaechiger Glow/Blob (das war die alte Suende).
   Nur lokale Assets, CSP-konform: keine externen Fonts/CDNs.
   ========================================================================== */

:root {
    /* --- Flaechen (warm-dunkel, nie hartes #000) --- */
    --void: #08090c;          /* Seiten-Hintergrund */
    --surface: #0e0f13;       /* gehobene Sektion */
    --surface-2: #0b0c10;     /* tiefer gesetzt */
    --inset: #14161d;         /* eingelassene Felder */

    /* --- Haarlinien --- */
    --hair: rgba(244,241,236,.10);
    --hair-soft: rgba(244,241,236,.055);
    --hair-strong: rgba(244,241,236,.22);

    /* --- Text ("Papier"-Weiss, nie reines Weiss) --- */
    --paper: #f4f1ec;
    --paper-2: #d9d6d0;
    --dim: #a5a29c;
    --muted: #8a8884;   /* WCAG-AA: >=4.5:1 auf --void/--surface fuer Kleintext */

    /* --- Marke: die Lichtlinie (aus dem echten Logo-Verlauf) --- */
    --brand-a: #ff6a3d;       /* Koralle (Kirschblueten-Waerme) */
    --brand-b: #e0568f;       /* Magenta */
    --brand-c: #7c4dff;       /* Violett */
    --brand-line: linear-gradient(90deg, var(--brand-a) 0%, var(--brand-b) 46%, var(--brand-c) 100%);
    --rose: #d98aa8;          /* Staub-Rose, direkt aus den Kirschblueten */
    --accent-hair: rgba(224,86,143,.30); /* NUR fuer 1px-Glow, NIE als Flaeche */

    /* --- Masse --- */
    --topbar-h: 66px;
    --container: 1200px;
    --measure: 66ch;          /* komfortable Lesebreite Fliesstext */
    --ease: cubic-bezier(.16,1,.3,1);
    --dur-fast: .22s;
    --dur: .55s;
    --dur-slow: .85s;

    /* --- Fonts --- */
    --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --serif: Georgia, "Iowan Old Style", "Times New Roman", "Nimbus Roman", serif;
    --mono: ui-monospace, "Cascadia Mono", "Segoe UI Mono", "Roboto Mono", Consolas, Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--void);
    color: var(--paper);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
::selection { background: rgba(224,86,143,.30); color: #fff; }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; border-radius: 2px; }

/* Skip-Link (WCAG 2.4.1) – erst bei Tastatur-Fokus sichtbar */
.skip { position: absolute; left: -9999px; top: auto; z-index: 700; }
.skip:focus { left: 16px; top: 10px; background: var(--paper); color: #0a0a0c; padding: 10px 16px; border-radius: 7px; font-weight: 600; font-size: .9rem; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 34px; }
.measure { max-width: var(--measure); }
.mono {
    font-family: var(--mono);
    text-transform: uppercase;
    letter-spacing: .2em;
    font-size: .72rem;
    color: var(--dim);
    font-variant-numeric: tabular-nums;
}
.tnum { font-variant-numeric: tabular-nums; }

/* Die Lichtlinie – das eine Marken-Element ------------------------------------ */
.lightline {
    height: 1px;
    width: 100%;
    background: var(--brand-line);
    border: 0;
    position: relative;
    opacity: .95;
}
.lightline.center { max-width: 120px; margin: 0; }
/* dezenter Glow, aber als 1px-Schatten – keine Flaeche */
.lightline::after {
    content: "";
    position: absolute; inset: -1px 0;
    background: var(--brand-line);
    filter: blur(3px);
    opacity: .35;
    pointer-events: none;
}

/* Text im Marken-Verlauf (fuer einzelne Woerter) ------------------------------ */
.grad {
    /* etwas hellerer Violett-Stop als die Lichtlinie -> AA-tauglicher Fliesstext */
    background: linear-gradient(90deg, var(--brand-a) 0%, var(--brand-b) 46%, #9b78ff 100%);
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* =========================================================================
   Topbar
   ========================================================================= */
.topbar {
    position: fixed; inset: 0 0 auto 0; height: var(--topbar-h); z-index: 600;
    display: flex; align-items: center; gap: 18px; padding: 0 26px;
    background: rgba(8,9,12,.72);
    border-bottom: 1px solid var(--hair-soft);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
}
.topbar-logo { display: flex; align-items: center; height: 44px; flex-shrink: 0; }
.topbar-logo img { max-height: 40px; width: auto; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 30px; }
.nav-link {
    font-family: var(--mono);
    text-transform: uppercase; letter-spacing: .16em; font-size: .72rem;
    color: var(--dim); white-space: nowrap; position: relative; padding: 4px 0;
    transition: color var(--dur-fast) ease;
}
.nav-link::after {
    content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 1px;
    background: var(--brand-line); transition: right var(--dur) var(--ease);
}
.nav-link:hover { color: var(--paper); }
.nav-link:hover::after, .nav-link.active::after { right: 0; }
.nav-link.active { color: var(--paper); }

/* gefuellter, hochkontrastiger Discord-CTA (heller Block) */
.btn {
    display: inline-flex; align-items: center; gap: 9px;
    font-family: var(--sans); font-weight: 600; font-size: .92rem; letter-spacing: -.01em;
    padding: 12px 20px; border-radius: 7px; cursor: pointer; border: 1px solid transparent;
    transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), background var(--dur-fast) ease, border-color var(--dur-fast) ease, color var(--dur-fast) ease;
    white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-primary { background: var(--paper); color: #0a0a0c; }
.btn-primary:hover { background: #fff; transform: translateY(-2px); box-shadow: 0 12px 30px rgba(244,241,236,.16); }
.btn-ghost { background: transparent; color: var(--paper); border-color: var(--hair-strong); }
.btn-ghost:hover { border-color: var(--paper); transform: translateY(-2px); }
.btn-sm { padding: 9px 15px; font-size: .82rem; }
.nav .btn-primary { padding: 9px 16px; font-size: .82rem; }

.nav-toggle {
    display: none; margin-left: auto; width: 40px; height: 40px;
    align-items: center; justify-content: center; flex-direction: column; gap: 5px;
    background: transparent; border: 1px solid var(--hair); border-radius: 7px; cursor: pointer;
}
.nav-toggle span { display: block; width: 18px; height: 1.5px; background: var(--paper-2); transition: transform var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-panel {
    position: fixed; top: var(--topbar-h); left: 0; right: 0; z-index: 599;
    background: rgba(8,9,12,.98); border-bottom: 1px solid var(--hair);
    backdrop-filter: blur(18px); padding: 16px 26px 24px;
    display: flex; flex-direction: column; gap: 2px;
    transform: translateY(-10px); opacity: 0; pointer-events: none; visibility: hidden;
    transition: opacity var(--dur-fast) ease, transform var(--dur-fast) ease, visibility var(--dur-fast);
}
.mobile-panel.open { transform: none; opacity: 1; pointer-events: auto; visibility: visible; }
.mobile-panel a { font-family: var(--mono); text-transform: uppercase; letter-spacing: .14em; font-size: .82rem; color: var(--paper-2); padding: 14px 2px; border-bottom: 1px solid var(--hair-soft); }
.mobile-panel .btn { margin-top: 14px; justify-content: center; border-bottom: none; letter-spacing: -.01em; text-transform: none; font-family: var(--sans); }

/* =========================================================================
   Hero – Vollbild-One-Sheet
   ========================================================================= */
.hero {
    position: relative; min-height: 100vh; min-height: 100svh;
    display: flex; align-items: flex-end; overflow: hidden;
    padding: calc(var(--topbar-h) + 40px) 0 clamp(40px, 8vh, 92px);
}
.hero-bg {
    position: absolute; inset: 0;
    background: url('/assets/hero-screenshot.webp') center 42% / cover no-repeat;
    will-change: transform; transform: translateZ(0) scale(1.06);
}
/* Kino-Scrim: Bild bleibt oben scharf, schmilzt unten in reines Dunkel */
.hero-scrim {
    position: absolute; inset: 0; pointer-events: none;
    background:
        linear-gradient(180deg, rgba(8,9,12,.20) 0%, rgba(8,9,12,.10) 22%, rgba(8,9,12,.55) 62%, var(--void) 97%),
        radial-gradient(130% 80% at 22% 78%, rgba(8,9,12,.72) 0%, rgba(8,9,12,0) 60%);
}
/* Statisches Filmkorn (data:-SVG turbulence) – kaschiert webp-Banding */
.hero-grain, .grain {
    position: absolute; inset: 0; pointer-events: none; opacity: .04; mix-blend-mode: soft-light;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* Letterbox-Haarlinien oben/unten */
.hero::before, .hero::after { content: ""; position: absolute; left: 0; right: 0; height: 1px; background: var(--hair); z-index: 3; }
.hero::before { top: var(--topbar-h); }
.hero::after { bottom: 0; }

.hero-inner { position: relative; z-index: 4; width: 100%; }
.hero-eyebrow { color: var(--rose); font-family: var(--mono); text-transform: uppercase; letter-spacing: .3em; font-size: .72rem; }
.hero h1 {
    font-family: var(--serif); font-weight: 400;
    font-size: clamp(2.6rem, 10.5vw, 8.4rem); line-height: .94; letter-spacing: -.02em;
    margin: 18px 0 0; text-shadow: 0 2px 60px rgba(0,0,0,.6);
    overflow-wrap: break-word;
}
.hero h1 em { font-style: italic; }
.hero-tag { font-family: var(--serif); font-style: italic; font-size: clamp(1.15rem, 2.6vw, 1.65rem); color: var(--paper-2); margin-top: 16px; max-width: 24ch; }
.hero .lightline { max-width: 340px; margin: 26px 0 24px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-note { font-family: var(--mono); font-size: .66rem; letter-spacing: .18em; color: var(--muted); margin-top: 18px; }

/* Magazin-"Spine"-Folio rechts */
.hero-spine {
    position: absolute; right: 26px; top: 50%; z-index: 4;
    transform: translateY(-50%) rotate(90deg); transform-origin: right center;
    font-family: var(--mono); text-transform: uppercase; letter-spacing: .34em; font-size: .64rem; color: var(--muted);
    white-space: nowrap;
}
.scroll-cue {
    position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 4;
    width: 30px; height: 30px; border: 1px solid var(--hair-strong); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; color: var(--dim);
    animation: bob 2.6s ease-in-out infinite;
}
.scroll-cue:hover { color: var(--paper); border-color: var(--paper); }
@keyframes bob { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(6px); } }

/* =========================================================================
   Billing-Block – Modpack als Filmvorspann
   ========================================================================= */
.billing { border-bottom: 1px solid var(--hair-soft); background: var(--surface-2); }
.billing-row {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
    gap: 10px 26px; padding: 20px 34px;
    font-family: var(--mono); text-transform: uppercase; letter-spacing: .18em; font-size: .68rem; color: var(--dim);
}
.billing-row .sep { color: var(--brand-b); opacity: .8; }
.billing-row b { color: var(--paper-2); font-weight: 600; }

/* =========================================================================
   Generische Sektion
   ========================================================================= */
.section { padding: clamp(72px, 11vw, 132px) 0; position: relative; }
.kicker { color: var(--rose); font-family: var(--mono); text-transform: uppercase; letter-spacing: .26em; font-size: .7rem; display: inline-block; }
.h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.06; letter-spacing: -.02em; }
.lede { color: var(--paper-2); font-size: clamp(1.05rem, 1.6vw, 1.24rem); line-height: 1.7; }

/* Logline / Die Welt */
.logline { display: grid; grid-template-columns: 1fr; gap: 26px; }
.logline .h2 { max-width: 16ch; }
.logline .body { color: var(--dim); font-size: 1.05rem; line-height: 1.75; }
.tags { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 6px; }
.tag {
    font-family: var(--mono); text-transform: uppercase; letter-spacing: .12em; font-size: .64rem;
    color: var(--paper-2); border: 1px solid var(--hair); border-radius: 4px; padding: 7px 11px; background: var(--surface);
}

/* =========================================================================
   Kapitel-Spreads (Features)
   ========================================================================= */
.chapters { display: flex; flex-direction: column; }
.chapter {
    display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 80px);
    align-items: center; padding: clamp(44px, 7vw, 78px) 0; border-top: 1px solid var(--hair-soft);
}
.chapter:first-child { border-top: none; }
.chapter.flip .chapter-body { order: 2; }
.chapter-num { font-family: var(--serif); font-weight: 300; font-size: clamp(3rem, 7vw, 6rem); line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--hair-strong); }
.chapter-body h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 3vw, 2.4rem); letter-spacing: -.015em; margin-top: 8px; }
.chapter-body p { color: var(--dim); font-size: 1.02rem; line-height: 1.75; margin-top: 14px; max-width: 46ch; }
.chapter-body .kicker { margin-bottom: 4px; }
.chapter-figure {
    position: relative; border: 1px solid var(--hair); border-radius: 10px; background: var(--surface);
    aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.chapter-figure svg { width: 62%; height: 62%; color: var(--paper-2); opacity: .9; }
.chapter-figure .corner { position: absolute; width: 12px; height: 12px; border: 1px solid var(--hair-strong); }
.chapter-figure .corner.tl { top: 8px; left: 8px; border-right: 0; border-bottom: 0; }
.chapter-figure .corner.tr { top: 8px; right: 8px; border-left: 0; border-bottom: 0; }
.chapter-figure .corner.bl { bottom: 8px; left: 8px; border-right: 0; border-top: 0; }
.chapter-figure .corner.br { bottom: 8px; right: 8px; border-left: 0; border-top: 0; }
.chapter-figure .fig-label { position: absolute; bottom: 10px; left: 12px; }

/* Chunk-Raster im Kriegs-Kapitel – "jeder Chunk umkaempft" woertlich */
.chunkgrid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 3px; width: 78%; aspect-ratio: 1; }
.chunkgrid i { display: block; border-radius: 2px; background: var(--inset); border: 1px solid var(--hair-soft);
    transition: background-color .6s var(--ease), border-color .6s var(--ease), box-shadow .6s var(--ease); }
.chunkgrid i.own { background: rgba(124,77,255,.32); border-color: rgba(124,77,255,.5); }
.chunkgrid i.hot { background: rgba(224,86,143,.34); border-color: rgba(224,86,143,.6); }
.chunkgrid i.hold { background: rgba(255,106,61,.24); border-color: rgba(255,106,61,.45); }
/* Umkaempfte Chunks "atmen" (nur mit JS aktiv, damit statisch als Fallback) */
@keyframes chunkPulse {
    0%, 100% { background-color: rgba(224,86,143,.26); box-shadow: 0 0 0 0 rgba(224,86,143,0); }
    50%      { background-color: rgba(224,86,143,.62); box-shadow: 0 0 9px 0 rgba(224,86,143,.5); }
}
.js .chunkgrid i.hot { animation: chunkPulse 3.4s var(--ease) infinite; }
.js .chunkgrid i:nth-child(4n)   { animation-delay: -.8s; }
.js .chunkgrid i:nth-child(4n+1) { animation-delay: -1.9s; }
.js .chunkgrid i:nth-child(4n+2) { animation-delay: -2.7s; }

/* =========================================================================
   Standbild – Screenshot als Kino-Platte
   ========================================================================= */
.plate { position: relative; border: 1px solid var(--hair); border-radius: 12px; overflow: hidden; aspect-ratio: 16/9; max-height: 660px; background: var(--surface); }
.plate img { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.plate .lb { position: absolute; left: 0; right: 0; height: 34px; background: rgba(8,9,12,.9); z-index: 2; }
.plate .lb.top { top: 0; border-bottom: 1px solid var(--hair); }
.plate .lb.bot { bottom: 0; border-top: 1px solid var(--hair); }
.plate .caption {
    position: absolute; bottom: 44px; left: 20px; z-index: 3;
    font-family: var(--mono); text-transform: uppercase; letter-spacing: .18em; font-size: .64rem; color: var(--paper-2);
    background: rgba(8,9,12,.55); border: 1px solid var(--hair); border-radius: 4px; padding: 6px 10px; backdrop-filter: blur(4px);
}

/* =========================================================================
   Community / Discord – emotionaler Hoehepunkt
   ========================================================================= */
.community { text-align: center; background: var(--surface-2); border-top: 1px solid var(--hair-soft); border-bottom: 1px solid var(--hair-soft); }
.community .inner { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.community .h2 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
.community .lede { max-width: 54ch; }
.join-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; width: 100%; margin-top: 8px; text-align: left; }
.join-step { border: 1px solid var(--hair); border-radius: 9px; padding: 20px 18px; background: var(--surface); }
.join-step .n { font-family: var(--mono); font-size: .66rem; letter-spacing: .2em; color: var(--rose); }
.join-step h3 { font-family: var(--serif); font-weight: 400; font-size: 1.15rem; margin-top: 8px; }
.join-step p { color: var(--dim); font-size: .92rem; line-height: 1.6; margin-top: 6px; }
.btn-lg { padding: 16px 30px; font-size: 1.02rem; }

/* =========================================================================
   Datenblatt / Spec-Sheet
   ========================================================================= */
.spec { border: 1px solid var(--hair); border-radius: 12px; background: var(--surface); overflow: hidden; }
.spec-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding: 16px 22px; border-bottom: 1px solid var(--hair-soft); }
.spec-head .t { font-family: var(--mono); text-transform: uppercase; letter-spacing: .2em; font-size: .7rem; color: var(--dim); }
.spec-row { display: grid; grid-template-columns: 200px 1fr; gap: 12px; padding: 14px 22px; border-top: 1px solid var(--hair-soft); }
.spec-row:first-of-type { border-top: none; }
.spec-row dt { font-family: var(--mono); text-transform: uppercase; letter-spacing: .14em; font-size: .68rem; color: var(--muted); }
.spec-row dd { margin: 0; color: var(--paper-2); font-size: .96rem; }
.spec-row dd b { color: var(--paper); }

/* =========================================================================
   FAQ (native <details>, ohne JS, tastaturbedienbar)
   ========================================================================= */
.faq { display: flex; flex-direction: column; gap: 12px; max-width: 840px; }
.faq details { border: 1px solid var(--hair); border-radius: 10px; background: var(--surface); overflow: hidden; transition: border-color var(--dur-fast) ease; }
.faq details[open] { border-color: var(--hair-strong); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-family: var(--serif); font-size: 1.08rem; color: var(--paper); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--rose); font-size: 1.4rem; line-height: 1; flex-shrink: 0; transition: transform var(--dur-fast) var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { background: var(--inset); }
.faq .faq-a { padding: 0 22px 20px; color: var(--dim); font-size: .98rem; line-height: 1.7; max-width: 68ch; }
.faq .faq-a a { color: var(--rose); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--accent-hair); }
.faq .faq-a a:hover { text-decoration-color: var(--rose); }

/* =========================================================================
   Footer / Colophon
   ========================================================================= */
.footer { background: var(--surface-2); border-top: 1px solid var(--hair); padding: 66px 0 30px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 44px; }
.footer-brand img { max-height: 40px; width: auto; margin-bottom: 16px; }
.footer-brand p { color: var(--muted); font-size: .9rem; line-height: 1.65; max-width: 34ch; }
.footer-col h3 { font-family: var(--mono); font-weight: 600; text-transform: uppercase; letter-spacing: .16em; font-size: .66rem; color: var(--muted); margin-bottom: 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { color: var(--dim); font-size: .92rem; transition: color var(--dur-fast) ease; }
.footer-col a:hover { color: var(--paper); }
.footer-bottom { border-top: 1px solid var(--hair-soft); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; }
.footer-bottom .folio { font-family: var(--mono); font-size: .66rem; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; }
.copybtn {
    display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
    font-family: var(--mono); text-transform: uppercase; letter-spacing: .12em; font-size: .64rem; color: var(--dim);
    background: var(--surface); border: 1px solid var(--hair); border-radius: 6px; padding: 8px 12px;
    transition: border-color var(--dur-fast) ease, color var(--dur-fast) ease;
}
.copybtn:hover { border-color: var(--hair-strong); color: var(--paper); }
.copybtn svg { width: 13px; height: 13px; }
.copybtn.done { color: var(--rose); border-color: var(--accent-hair); }

/* =========================================================================
   Rechts-/Richtlinien-Seiten (Impressum, Datenschutz, ...)
   ========================================================================= */
.legal { padding: calc(var(--topbar-h) + 56px) 0 40px; }
.legal-head { border-bottom: 1px solid var(--hair-soft); padding-bottom: 30px; margin-bottom: 8px; }
.legal-head h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -.02em; }
.legal-head .lightline { max-width: 160px; margin: 18px 0 14px; }
.legal-head .rev { font-family: var(--mono); text-transform: uppercase; letter-spacing: .18em; font-size: .66rem; color: var(--muted); }
.legal-grid { display: grid; grid-template-columns: 220px 1fr; gap: 44px; padding-top: 34px; }
.legal-index { position: sticky; top: calc(var(--topbar-h) + 24px); align-self: start; }
.legal-index ol { list-style: none; margin: 0; padding: 0; counter-reset: idx; display: flex; flex-direction: column; gap: 4px; }
.legal-index a { display: block; font-family: var(--mono); text-transform: uppercase; letter-spacing: .1em; font-size: .66rem; color: var(--muted); padding: 7px 0 7px 26px; position: relative; border-left: 1px solid var(--hair); transition: color var(--dur-fast) ease, border-color var(--dur-fast) ease; }
.legal-index li { counter-increment: idx; }
.legal-index a::before { content: counter(idx, decimal-leading-zero); position: absolute; left: 10px; color: var(--muted); }
.legal-index a:hover, .legal-index a.active { color: var(--paper); border-color: var(--brand-b); }
.legal-body { max-width: 68ch; }
.legal-body section { padding: 22px 0; border-top: 1px solid var(--hair-soft); scroll-margin-top: calc(var(--topbar-h) + 20px); }
.legal-body section:first-child { border-top: none; padding-top: 4px; }
.legal-body h2 { font-family: var(--serif); font-weight: 400; font-size: 1.4rem; letter-spacing: -.01em; display: flex; align-items: baseline; gap: 12px; }
.legal-body h2 .s { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; color: var(--rose); }
.legal-body p, .legal-body li { color: var(--paper-2); font-size: .98rem; line-height: 1.75; }
.legal-body p { margin-top: 12px; }
.legal-body ul { margin: 12px 0; padding-left: 20px; }
.legal-body li { margin-bottom: 6px; }
.legal-body a { color: var(--rose); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--accent-hair); }
.legal-body a:hover { text-decoration-color: var(--rose); }
.legal-note { margin-top: 30px; padding: 16px 18px; border: 1px solid var(--hair); border-radius: 9px; background: var(--surface); color: var(--muted); font-size: .84rem; line-height: 1.6; }
.legal-note.warn { border-color: var(--accent-hair); }
.legal-body .placeholder { color: var(--rose); background: rgba(224,86,143,.10); border: 1px dashed var(--accent-hair); border-radius: 4px; padding: 1px 6px; font-family: var(--mono); font-size: .82em; }
.backlink { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); text-transform: uppercase; letter-spacing: .16em; font-size: .66rem; color: var(--muted); padding: 6px 0; margin-bottom: 18px; }
.backlink:hover { color: var(--paper); }

/* =========================================================================
   Scroll-Reveal (nur mit JS aktiv)
   ========================================================================= */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease); transition-delay: calc(var(--i, 0) * 65ms); }
.js .reveal.in { opacity: 1; transform: none; }
.js .lightline.draw { transform: scaleX(0); transform-origin: left; transition: transform var(--dur-slow) var(--ease); }
.js .lightline.draw.in { transform: scaleX(1); }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 1080px) {
    .footer-top { grid-template-columns: 1.4fr 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
    .nav { display: none; }
    .nav-toggle { display: flex; }
    .chapter { grid-template-columns: 1fr; gap: 20px; }
    .chapter.flip .chapter-body { order: 0; }
    .chapter-figure { max-width: 440px; justify-self: center; margin-inline: auto; }
    .legal-grid { grid-template-columns: 1fr; gap: 22px; }
    .legal-index { position: static; }
    .legal-index ol { flex-direction: row; flex-wrap: wrap; }
    .legal-index a { border-left: none; padding-left: 22px; }
}
@media (max-width: 640px) {
    :root { --topbar-h: 58px; }
    .container { padding: 0 22px; }
    .join-steps { grid-template-columns: 1fr; }
    .spec-row { grid-template-columns: 1fr; gap: 4px; }
    .footer-top { grid-template-columns: 1fr 1fr; gap: 30px; }
    .billing-row .sep { display: none; }   /* keine verwaisten Trenner beim Umbruch */
    .hero-actions { width: 100%; }
    .hero-actions .btn { flex: 1; justify-content: center; }
    .hero-spine { display: none; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 420px) {
    .footer-top { grid-template-columns: 1fr; }
    .billing-row { letter-spacing: .1em; }
}

/* =========================================================================
   Reduced Motion
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hero-bg { transform: none !important; }
    .scroll-cue { animation: none; }
    .js .reveal { opacity: 1; transform: none; transition: none; }
    .js .lightline.draw { transform: none; transition: none; }
    .js .chunkgrid i { animation: none !important; }
    * { transition: none !important; }
}

/* =========================================================================
   Druck (Rechts-Seiten wie ein echtes Dokument – weiss)
   ========================================================================= */
@media print {
    :root { --void:#fff; --paper:#000; --paper-2:#111; --dim:#333; --muted:#555; }
    body { background: #fff; color: #000; }
    .topbar, .mobile-panel, .footer, .backlink, .scroll-cue, .grain, .hero-grain, .legal-index { display: none !important; }
    .legal { padding: 0; }
    .legal-grid { grid-template-columns: 1fr; }
    .legal-body { max-width: none; }
    .lightline { background: #000; }
    .lightline::after { display: none; }
    a { color: #000; text-decoration: underline; }
}
