/* =========================================================
   Kedo Domke – Onepager
   Schriften wie die Bücher: Anton (Titel), Bebas Neue (Zeilen),
   TeX Gyre Pagella (Fließtext wie im Buchblock). Alles lokal.
   Grün ist die Markenfarbe: als Fläche und Akzent, ohne Leuchten.
   ========================================================= */

@font-face { font-family: "Anton"; src: url("fonts/anton-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: block; }
@font-face { font-family: "Bebas Neue"; src: url("fonts/bebas-neue-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: block; }
@font-face { font-family: "Pagella"; src: url("fonts/pagella-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Pagella"; src: url("fonts/pagella-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Pagella"; src: url("fonts/pagella-bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

/* ---------- Grundwerte ---------- */
:root {
  color-scheme: dark;
  --bg: #0a0b0b;            /* Kopf, Schluss-Fuß */
  --bg-tief: #060707;       /* Bücher, Fußzeile */
  --bg-hell: #111413;       /* Geschichte, Leseprobe */
  --flaeche: #161a18;       /* Karten */
  --linie: rgba(255, 255, 255, .1);
  --linie-stark: rgba(255, 255, 255, .2);
  --text: #eceeea;
  --leise: #b6bdb7;
  --gruen: #8ff5b6;
  --gruen-tief: #6fd897;
  --tinte: #04140b;         /* Text auf Grün */
  --display: "Anton", "Impact", "Arial Narrow", sans-serif;
  --label: "Bebas Neue", "Anton", "Arial Narrow", sans-serif;
  --serif: "Pagella", "Palatino Linotype", "Book Antiqua", Palatino, serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --kopf: 60px;
  --abschnitt: clamp(4.5rem, 10vw, 8.5rem);
  --weich: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; overscroll-behavior-y: none; scroll-padding-top: calc(var(--kopf) + 12px); overflow-x: hidden; }
@supports (overflow: clip) { html { overflow-x: clip; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 1.125rem/1.7 var(--serif); font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  /* KEIN overflow-x am body: das macht ihn zum Scroll-Container, dann kleben Kopfleiste und Cover nicht (html begrenzt die Breite bereits) */
}
/* Keine Silbentrennung, lange Wörter dürfen trotzdem umbrechen */
html, body, p, li, h1, h2, h3, dd, dt, span, strong, a, button { -webkit-hyphens: manual; hyphens: manual; }
p, li, dd { overflow-wrap: break-word; }
img { display: block; max-width: 100%; height: auto; }
figure, blockquote { margin: 0; }
a { color: var(--gruen); text-underline-offset: .2em; transition: color .3s ease; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--gruen); outline-offset: 3px; border-radius: 2px; }
::selection { background: rgba(143, 245, 182, .3); color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 50; background: var(--gruen); color: var(--tinte); padding: .5rem 1rem; }
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- Typografie ---------- */
h1, .h2, .book__title { margin: 0; font-family: var(--display); font-weight: 400; text-transform: uppercase; line-height: 1; letter-spacing: .005em; text-wrap: balance; }
.h2 { font-size: clamp(2.6rem, 6.4vw, 4.8rem); color: var(--text); }
.lead { margin: 1.4rem 0 0; max-width: 34em; font-size: clamp(1.15rem, 2vw, 1.35rem); line-height: 1.6; color: var(--text); text-wrap: pretty; }
.prose p { margin: 0 0 1em; max-width: 36em; color: var(--text); text-wrap: pretty; }
.prose p:last-child { margin-bottom: 0; }

/* Kleine Zeilen: Kicker, Abschnittsname, Kennzeichnung */
.kicker, .sek-kopf, .badge, .book__tag, .facts, .status, .count dd, .nav a, .btn, .sample__time, .sample__meta, .strip__meta {
  font-family: var(--label); font-weight: 400; letter-spacing: .08em; text-transform: uppercase;
}
.kicker { margin: 0 0 1rem; color: var(--gruen); font-size: 1.1rem; letter-spacing: .14em; }
.sek-kopf { margin-top: 0; margin-bottom: clamp(1.2rem, 2.6vw, 1.8rem); color: var(--gruen); font-size: clamp(1.05rem, 1.6vw, 1.2rem); letter-spacing: .16em; }

/* Hervorgehobene Wörter (==Wort==): grün und in Versalien, gleiche Größe, kein Leuchten */
.hl { color: var(--gruen); text-transform: uppercase; letter-spacing: .03em; font-size: .94em; }

/* ---------- Kopfleiste ---------- */
.top { position: sticky; top: 0; z-index: 20; height: var(--kopf); background: rgba(10, 11, 11, .86); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: box-shadow .3s ease, background-color .3s ease; }
.top.is-scrolled { box-shadow: 0 1px 0 var(--linie); }
.top__in { display: flex; align-items: center; gap: clamp(.6rem, 2vw, 1.4rem); min-height: var(--kopf); }
.brand { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-family: var(--serif); letter-spacing: .28em; font-size: .95rem; color: var(--text); text-decoration: none; white-space: nowrap; transition: color .3s ease; }
.brand { display: inline-flex; align-items: center; }
/* Logo: Wortmarke „Kedo Domke“ (Desktop), „KD“ (Handy) in Schreibmaschinenschrift */
.brand__wort { display: block; width: auto; height: 24px; filter: drop-shadow(0 0 5px rgba(143, 245, 182, .4)); transition: filter .3s ease; }
.brand__kd { display: none; width: auto; height: 28px; filter: drop-shadow(0 0 5px rgba(143, 245, 182, .45)); }
@media (hover: hover) { .brand:hover .brand__wort { filter: drop-shadow(0 0 9px rgba(143, 245, 182, .7)); } }
html[data-kontrast="hoch"] .brand__wort, html[data-kontrast="hoch"] .brand__kd { filter: brightness(0) invert(1); }

.top__in nav { flex: none; margin-left: auto; }
.nav { display: flex; gap: clamp(.9rem, 3vw, 2rem); list-style: none; margin: 0; padding: 0; }
.nav a { position: relative; display: inline-block; padding-block: .3rem; color: var(--leise); text-decoration: none; font-size: 1.1rem; transition: color .3s ease; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gruen); transform: scaleX(0); transform-origin: 0 50%; transition: transform .4s var(--weich); }
.kontrast { flex: none; display: inline-grid; place-items: center; width: 40px; height: 40px; margin-right: -8px; border-radius: 50%; border: 1px solid transparent; background: transparent; color: var(--leise); cursor: pointer; transition: color .3s ease, border-color .3s ease, background-color .3s ease; }
.kontrast svg { transition: transform .5s var(--weich); }
.kontrast[aria-pressed="true"] svg { transform: rotate(180deg); }
@media (hover: hover) {
  .brand:hover { color: var(--gruen); }
  .nav a:hover { color: var(--text); }
  .nav a:hover::after { transform: scaleX(1); }
  .kontrast:hover { color: var(--text); border-color: var(--linie-stark); }
}

/* Lesefortschritt */
.progress { position: fixed; inset: 0 0 auto 0; z-index: 21; height: 2px; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--gruen); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Knöpfe ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: .55rem 1.4rem .45rem;
  font-size: 1.2rem; text-decoration: none; color: var(--text); background: transparent; border: 1px solid var(--linie-stark); border-radius: 3px; cursor: pointer;
  transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}
.btn--solid { background: var(--gruen); color: var(--tinte); border-color: var(--gruen); }
@media (hover: hover) {
  .btn:hover { border-color: var(--gruen); color: var(--gruen); }
  .btn--solid:hover { background: #b5ffd0; border-color: #b5ffd0; color: var(--tinte); }
}

/* Text- und Fußzeilen-Links: echte Unterstreichung, überall gleich */
.status a, .foot__links a, .foot__btn, .ew__links a {
  color: var(--leise); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .28em; text-decoration-color: currentColor;
  transition: color .3s ease, text-decoration-color .3s ease;
}
.status a { color: var(--gruen); }
@media (hover: hover) {
  .status a:hover, .foot__links a:hover, .foot__btn:hover, .ew__links a:hover { color: var(--text); text-decoration-color: var(--gruen); }
}
.foot__btn { appearance: none; -webkit-appearance: none; background: none; border: 0; padding: 0; font: inherit; line-height: inherit; cursor: pointer; }

/* =========================================================
   Abschnitte – gerade Kanten, eigene Tonlage, feine Linie oben
   ========================================================= */
.story, .books, .sample { position: relative; padding-block: var(--abschnitt); border-top: 1px solid var(--linie); }
.story { background: var(--bg-hell); }
.books { background: var(--bg-tief); }
.sample { background: var(--bg-hell); }

/* ---------- Kopfbereich: Text und Knöpfe passen in den ersten Bildschirm ---------- */
/* Genau ein Bildschirm: Text oben, Bild füllt den Rest, Bücherleiste schließt unten ab */
.hero { position: relative; isolation: isolate; display: flex; flex-direction: column; height: 100vh; height: 100svh; min-height: 560px; margin-top: calc(-1 * var(--kopf)); padding: calc(var(--kopf) + clamp(.8rem, 3.2vh, 2.6rem)) 0 clamp(.8rem, 2.4vh, 1.6rem); background: var(--bg); overflow: hidden; }
.hero > .wrap { flex: none; }
.hero__text { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero .kicker { margin-bottom: clamp(.6rem, 2.2vh, 1.8rem); }
.hero__title { font-size: min(12vw, 11.5vh, 11rem); line-height: .94; }
.hero__title span { display: block; white-space: nowrap; }
.hero__z1 { color: var(--text); }
.hero__z2 { color: var(--gruen); }
.hero .lead { margin: clamp(.8rem, 2.4vh, 1.8rem) auto 0; font-size: clamp(1rem, min(2.2vw, 2.6vh), 1.35rem); }
.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin: clamp(.9rem, 2.8vh, 2rem) 0 0; }
.hero__img { position: relative; z-index: 1; flex: 1 1 0; min-height: 0; width: 100%; max-width: 1400px; margin: clamp(.6rem, 2vh, 1.6rem) auto 0; }
.hero__img { display: flex; align-items: center; justify-content: center; }
/* Untereinander (Handy, Tablet hochkant): Bild zuerst, dann „Thriller von …“ */
.hero__img { order: -1; margin: 0 auto clamp(.8rem, 2.4vh, 1.8rem); }
.hero__img img { position: static; display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; background: transparent;
  /* an allen vier Seiten weich ausblenden – das Bild hat einen eigenen dunklen Grund */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 8%, #000 72%, transparent 100%), linear-gradient(to right, transparent 0, #000 9%, #000 91%, transparent 100%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(to bottom, transparent 0, #000 8%, #000 72%, transparent 100%), linear-gradient(to right, transparent 0, #000 9%, #000 91%, transparent 100%); mask-composite: intersect; }
.hero__spacer { flex: 1 1 0; }

/* Hintergrund im Kopfbereich: Bild oder Video, Abdunkeln in 10er-Schritten */
.hero__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.hero__bg-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: transparent; }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 11, 11, .5), rgba(10, 11, 11, .25) 40%, var(--bg) 100%), var(--bg); opacity: .7; }
.hero__bg[data-dim="0"]::after { opacity: 0; } .hero__bg[data-dim="10"]::after { opacity: .1; } .hero__bg[data-dim="20"]::after { opacity: .2; }
.hero__bg[data-dim="30"]::after { opacity: .3; } .hero__bg[data-dim="40"]::after { opacity: .4; } .hero__bg[data-dim="50"]::after { opacity: .5; }
.hero__bg[data-dim="60"]::after { opacity: .6; } .hero__bg[data-dim="70"]::after { opacity: .7; } .hero__bg[data-dim="80"]::after { opacity: .8; }
.hero__bg[data-dim="90"]::after { opacity: .9; } .hero__bg[data-dim="100"]::after { opacity: .95; }

/* Breite Bildschirme im Querformat: Text links, Bild groß rechts, Leiste unten über die ganze Breite.
   Untereinander wäre das Bild hier nur ein Viertel so breit wie der Bildschirm. */
@media (min-width: 1000px) and (min-aspect-ratio: 5/4) {
  .hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto auto; align-content: center; column-gap: clamp(1.5rem, 4vw, 4rem);
    /* links bündig mit dem Namen in der Kopfleiste, rechts darf das Bild breiter laufen */
    padding-left: max(var(--gutter), env(safe-area-inset-left), calc((100% - var(--wrap)) / 2 + var(--gutter))); padding-right: max(var(--gutter), env(safe-area-inset-right), calc((100% - 1400px) / 2)); }
  .hero > .hero__text { grid-column: 1; grid-row: 1 / span 2; align-self: center; max-width: none; margin: 0; padding: 0; align-items: flex-start; text-align: left; }
  .hero__title { font-size: min(6.4vw, 12.5vh, 7rem); }
  /* Titel passt sich der Spaltenbreite an („ZWÖLF JAHRE“ ≈ 5,1 em breit) */
  @supports (container-type: inline-size) {
    .hero > .hero__text { container-type: inline-size; }
    .hero__title { font-size: min(18.5cqi, 12.5vh, 7rem); }
  }
  .hero .lead { margin-left: 0; margin-right: 0; font-size: clamp(1.05rem, min(1.5vw, 2.4vh), 1.35rem); }
  .hero__cta { justify-content: flex-start; }
  .hero__img, .hero__spacer { grid-column: 2; grid-row: 1; margin: 0; max-width: none; height: auto; }
  /* Bild + Leiste bilden einen Block, der zusammen mit dem Text senkrecht mittig steht */
  .hero__img img { max-height: calc(100vh - var(--kopf) - 15rem); max-height: calc(100svh - var(--kopf) - 15rem); }
  
  /* Bücherleiste rechts direkt unter dem Bild */
  .hero > .wrap:last-child { grid-column: 2; grid-row: 2; padding: 0; max-width: none; margin: 0; }
  .hero > .wrap:last-child .strip { width: min(100%, 760px); margin: clamp(.2rem, 1vh, .8rem) auto 0; }

}

/* Leiste mit den Büchern unter dem Bild */
.strip { position: relative; z-index: 2; list-style: none; margin: clamp(.4rem, 1.4vh, 1rem) auto 0; padding: 0; max-width: 960px; display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--linie); }
.strip--1 { grid-template-columns: 1fr; max-width: 420px; }
.strip--2 { grid-template-columns: repeat(2, 1fr); max-width: 680px; }
.strip--4 { grid-template-columns: repeat(4, 1fr); max-width: 1100px; }
.strip li + li { border-left: 1px solid var(--linie); }
.strip a { display: grid; justify-items: center; gap: .15rem; padding: 1rem .8rem 1.1rem; text-align: center; text-decoration: none; transition: background-color .3s ease; }
.strip strong { font-family: var(--display); font-weight: 400; text-transform: uppercase; color: var(--text); font-size: clamp(1.15rem, 2.2vw, 1.6rem); line-height: 1.1; transition: color .3s ease; }
.strip__meta { color: var(--leise); font-size: .95rem; }
@media (hover: hover) {
  .strip a:hover { background: rgba(255, 255, 255, .03); }
  .strip a:hover strong { color: var(--gruen); }
}

/* ---------- Laufbänder: gerade, flach ---------- */
.bands { position: relative; overflow: hidden; pointer-events: none; border-top: 1px solid var(--linie); }
.band { overflow: hidden; white-space: nowrap; }
.band--solid { background: var(--gruen); color: var(--tinte); }
.band--line { background: var(--bg-tief); color: var(--leise); border-top: 1px solid var(--linie); }
.band__track { display: inline-flex; animation: lauf 40s linear infinite; }
.band--line .band__track { animation-direction: reverse; animation-duration: 52s; }
.bands--flip .band__track { animation-direction: reverse; }
.bands--flip .band--line .band__track { animation-direction: normal; }
.band__track > span { display: inline-flex; align-items: center; font-family: var(--display); text-transform: uppercase; font-size: clamp(1.3rem, 2.8vw, 2.2rem); line-height: 1; padding: .5em 0 .45em; letter-spacing: .02em; }
.band--line .band__track > span { font-family: var(--label); letter-spacing: .1em; font-size: clamp(1.1rem, 2vw, 1.5rem); }
.band__trenner { display: inline-block; flex: none; width: .28em; height: .28em; margin: 0 .9em; background: currentColor; opacity: .55; }
.band--line .band__trenner { background: var(--gruen); opacity: 1; }
@keyframes lauf { to { transform: translateX(-50%); } }

/* ---------- Geschichte ---------- */
.story__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.story__lead { font-size: clamp(1.3rem, 2.3vw, 1.55rem); line-height: 1.45; color: var(--text); }

/* Zahlen */
.count { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 3vw, 2.5rem); margin: clamp(3.5rem, 8vw, 6rem) 0 0; }
.count--1 { grid-template-columns: 1fr; } .count--2 { grid-template-columns: repeat(2, 1fr); } .count--4 { grid-template-columns: repeat(4, 1fr); }
.count__item { padding-top: 1.2rem; border-top: 1px solid var(--linie-stark); }
.count__num { margin: 0; font-family: var(--display); font-size: clamp(4rem, 11vw, 8.5rem); line-height: .9; color: var(--text); font-variant-numeric: tabular-nums; }
.count__item:first-child .count__num { color: var(--gruen); }
.count__item--void .count__num { color: var(--leise); opacity: .55; }
.count dd { margin: .8rem 0 0; color: var(--leise); font-size: clamp(1rem, 2vw, 1.3rem); line-height: 1.2; }

/* ---------- Bücher ---------- */
.books__kopf { margin-bottom: clamp(1rem, 3vw, 2rem); }
.book { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 5.5rem); align-items: start; padding-block: clamp(3rem, 7vw, 5.5rem); border-top: 1px solid var(--linie); }
.books__kopf + .book { margin-top: clamp(1.5rem, 4vw, 3rem); }
.book--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.book--flip .book__cover { order: 2; }
/* Cover läuft beim Scrollen mit, bis der Textblock endet; Text beginnt auf Höhe des Covers */
.book__cover { position: sticky; top: calc(var(--kopf) + clamp(16px, 3vh, 32px)); }
.book__body > :first-child { margin-top: 0; }
.book__cover img { width: 100%; max-width: 420px; margin-inline: auto; border-radius: 2px 4px 4px 2px; background: var(--bg-hell);
  box-shadow: 0 2px 0 rgba(255, 255, 255, .04) inset, 0 30px 60px -24px rgba(0, 0, 0, .95), 0 0 0 1px rgba(255, 255, 255, .05);
  transition: transform .6s var(--weich); }
.badge { margin: 0 0 1rem; color: var(--gruen); font-size: 1.05rem; letter-spacing: .12em; }
.book__title { font-size: clamp(3rem, 7vw, 5.4rem); color: var(--text); }
.book__tag { margin: .7rem 0 1.6rem; font-size: clamp(1.2rem, 2.2vw, 1.5rem); color: var(--gruen); }
.quote { margin: 0 0 1.3rem; padding-left: 1rem; border-left: 2px solid var(--gruen); font-style: italic; font-size: 1.25rem; color: var(--text); }
.facts { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; list-style: none; margin: 1.6rem 0 0; padding: 1.1rem 0 0; border-top: 1px solid var(--linie); color: var(--leise); font-size: 1.1rem; }
.buy { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.6rem 0 0; }
.status { display: flex; align-items: center; flex-wrap: wrap; gap: .3rem .6rem; margin: 1.2rem 0 0; font-size: 1.2rem; color: var(--text); }
.dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--gruen); }
@media (hover: hover) { .book:hover .book__cover img { transform: translateY(-6px); } }

/* ---------- Leseprobe ---------- */
.sample__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.sample__info .h2 { font-size: clamp(2.6rem, 5.6vw, 4.4rem); }
.sample__time { margin: 1rem 0 .4rem; color: var(--leise); font-size: 1.2rem; }
.sample__meta { margin: 0; color: var(--leise); font-size: 1.05rem; }
.sample__cta { margin: 1.8rem 0 0; }
.sample--mehrere .sample__kopf { margin-bottom: clamp(1.8rem, 4vw, 3rem); }
.proben { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.4vw, 1.8rem); align-items: stretch; }
.proben > .reveal { display: flex; }

/* Anriss als Karte, öffnet das Lesefenster */
.sample__teaser {
  appearance: none; -webkit-appearance: none; position: relative; display: block; width: 100%; text-align: left; cursor: pointer;
  font: inherit; font-size: clamp(1.05rem, 1.4vw, 1.15rem); line-height: 1.8; color: var(--text);
  padding: clamp(1.5rem, 3.5vw, 2.6rem) clamp(1.4rem, 3.5vw, 2.6rem) 4.4rem;
  background: var(--flaeche); border: 1px solid var(--linie); border-radius: 6px;
  transition: border-color .35s ease, transform .5s var(--weich), background-color .35s ease;
}
.sample__teaser--karte { display: flex; flex-direction: column; padding: 1.4rem 1.4rem 4.2rem; font-size: 1.02rem; line-height: 1.7; }
.sample__absatz { display: block; }
.sample__absatz + .sample__absatz { margin-top: .9em; }
/* Text füllt die Box auf feste Höhe und blendet ab der Hälfte aus – bei allen Leseproben gleich */
.probe__text { display: block; height: 15em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 50%, transparent 96%); mask-image: linear-gradient(#000 50%, transparent 96%); }
.sample__teaser--karte .probe__text { height: 12.5em; }
.probe__text > .sample__absatz:first-child::first-letter { float: left; padding: .06em .12em 0 0; font-family: var(--display); font-size: 3.2em; line-height: .85; color: var(--gruen); }
.sample__teaser--karte .probe__text > .sample__absatz:first-child::first-letter { font-size: 2.6em; }
.sample__weiter { position: absolute; left: clamp(1.4rem, 3.5vw, 2.6rem); bottom: 1.4rem; font-family: var(--label); letter-spacing: .1em; text-transform: uppercase; color: var(--gruen); font-size: 1.15rem; }
.sample__teaser--karte .sample__weiter { left: 1.4rem; }
.sample__weiter span { display: inline-block; transition: transform .45s var(--weich); }
.probe__kopf { display: flex; gap: 1rem; align-items: center; padding-bottom: 1.1rem; margin-bottom: 1.1rem; border-bottom: 1px solid var(--linie); }
.probe__cover { flex: none; width: 56px; height: 84px; object-fit: cover; border-radius: 2px; box-shadow: 0 8px 18px -8px #000; }
.probe__titel { display: grid; gap: .2rem; min-width: 0; }
.probe__buch { font-family: var(--display); text-transform: uppercase; color: var(--text); font-size: 1.4rem; line-height: 1.05; }
.probe__name { font-family: var(--label); letter-spacing: .08em; text-transform: uppercase; color: var(--gruen); font-size: 1.05rem; }
.probe__meta { font-family: var(--label); letter-spacing: .08em; text-transform: uppercase; color: var(--leise); font-size: .9rem; }
@media (hover: hover) {
  .sample__teaser:hover { border-color: rgba(143, 245, 182, .55); transform: translateY(-4px); background: #191e1b; }
  .sample__teaser:hover .sample__weiter span { transform: translateX(6px); }
}

/* ---------- Schluss: grüne Fläche ---------- */
.outro { position: relative; padding-block: clamp(5rem, 12vw, 9rem); text-align: center; background: var(--gruen); color: var(--tinte); }
.outro .wrap { display: flex; flex-direction: column; align-items: center; }
.outro__titel { font-size: clamp(3.2rem, 10vw, 9rem); line-height: .95; color: var(--tinte); }
.outro .lead { margin: 1.6rem auto 0; color: var(--tinte); }
.outro .lead .hl { color: var(--tinte); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .18em; }
.outro p:last-child { margin-bottom: 0; }
.outro .btn { margin-top: 2rem; }
.outro .btn--solid { background: var(--tinte); color: var(--gruen); border-color: var(--tinte); }
@media (hover: hover) { .outro .btn--solid:hover { background: #000; color: #fff; border-color: #000; } }

/* ---------- Fußzeile ---------- */
.foot { background: var(--bg-tief); color: var(--leise); font-size: .95rem; padding-bottom: env(safe-area-inset-bottom); }
.foot__in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.6rem; }
.foot p { margin: 0; }
.foot__links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }

/* =========================================================
   Einblenden beim Scrollen (nur mit JS, sonst sofort sichtbar)
   Kurze Wege, kein Weichzeichnen – variiert nur die Richtung.
   ========================================================= */
.js .reveal { opacity: 0; transform: translate3d(0, 22px, 0); transition: opacity .8s var(--weich), transform .9s var(--weich); }
.js .reveal--links { transform: translate3d(-32px, 0, 0); }
.js .reveal--rechts { transform: translate3d(32px, 0, 0); }
.js .reveal--zoom { transform: scale(.97); }
.js .reveal--aufloesen { transform: none; transition-duration: 1.1s; }
.js .reveal--kippen { transform: translate3d(0, 36px, 0); }
.js .reveal--cover { transform: translate3d(0, 28px, 0); }
.js .reveal--spaet { transition-delay: .2s; }
.js .story__grid .reveal--rechts, .js .book__body.reveal { transition-delay: .12s; }
.js .count__item:nth-child(2) { transition-delay: .1s; }
.js .count__item:nth-child(3) { transition-delay: .2s; }
.js .count__item:nth-child(4) { transition-delay: .3s; }
.js .reveal.is-in { opacity: 1; transform: none; }
/* Ausblenden schneller und ohne Verzögerung */
.js .reveal:not(.is-in) { transition-duration: .45s; transition-delay: 0s; }

/* =========================================================
   Lesefenster und Rechtliches (Dialoge)
   ========================================================= */
.modal { position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: var(--text); overflow: hidden; }
.modal:not([open]) { display: none; }
.modal[open] { display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
.modal::backdrop { background: rgba(3, 4, 4, .78); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); opacity: 0; transition: opacity .4s ease; }
.modal.is-open::backdrop { opacity: 1; }
.modal__panel {
  position: relative; display: flex; flex-direction: column; width: min(820px, 100%); max-height: min(86vh, 900px); max-height: min(86dvh, 900px);
  background: var(--bg-hell); border: 1px solid var(--linie-stark); border-radius: 8px; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .9);
  opacity: 0; transform: translate3d(0, 24px, 0); transition: opacity .4s ease, transform .5s var(--weich);
}
.modal.is-open .modal__panel { opacity: 1; transform: none; }
.modal__head { position: relative; display: flex; align-items: center; flex-wrap: wrap; gap: .8rem 1.4rem; padding: 1.4rem clamp(1.2rem, 4vw, 2.4rem) 0; }
.modal .kicker { margin: 0; flex-basis: 100%; padding-right: 3.5rem; }
.modal__tabs { position: relative; display: flex; flex: 1 1 auto; border-bottom: 1px solid var(--linie); }
.modal__tab { appearance: none; -webkit-appearance: none; margin-right: 1.4rem; padding: .6rem 0 .7rem; background: none; border: 0; cursor: pointer; color: var(--leise);
  font-family: var(--display); font-size: clamp(1.6rem, 4.4vw, 2.3rem); text-transform: uppercase; line-height: 1; transition: color .3s ease; }
.modal__tab[aria-selected="true"] { color: var(--text); }
.modal__ink { position: absolute; bottom: -1px; left: 0; width: 0; height: 2px; background: var(--gruen); transition: transform .45s var(--weich), width .45s var(--weich); }
.modal__close { position: absolute; top: 1rem; right: 1rem; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--linie-stark); background: transparent; color: var(--text); cursor: pointer; transition: border-color .3s ease, color .3s ease, transform .45s var(--weich); }
/* Schließen-X: beide Striche mit festem Versatz exakt auf die Kreismitte (keine Prozent-Verschiebung, kein Subpixel-Drift) */
.modal__close span, .leit__zu span { position: absolute; inset: 0; pointer-events: none; }
.modal__close span::before, .modal__close span::after, .leit__zu span::before, .leit__zu span::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 2px; margin: -1px 0 0 -8px; border-radius: 1px; background: currentColor; transform: rotate(45deg); }
.modal__close span::after, .leit__zu span::after { transform: rotate(-45deg); }
@media (hover: hover) {
  .modal__tab:hover { color: var(--text); }
  .modal__close:hover { border-color: var(--gruen); color: var(--gruen); transform: rotate(90deg); }
}
.modal__body { position: relative; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 1.6rem clamp(1.2rem, 4vw, 2.4rem) 2.2rem; scrollbar-width: thin; scrollbar-color: #2c3430 transparent; }

/* Rechtliches */
.legal__title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.legal__aufbau { margin: 1rem 0 0; padding: 1rem 1.2rem; border-left: 2px solid var(--gruen); background: rgba(143, 245, 182, .05); }
.legal__aufbau strong { color: var(--gruen); font-weight: 400; font-family: var(--label); letter-spacing: .08em; text-transform: uppercase; margin-right: .3rem; }
.modal__titel { margin: .1rem 0 0; font-family: var(--display); font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1; text-transform: uppercase; color: var(--text); }
.nl-karte.legal--seite { width: min(920px, 100%); font-size: 1.05rem; line-height: 1.7; }
.legal--seite h3 { margin-top: 1.6rem; }
.legal__marke { color: inherit; text-decoration: none; }
.legal__stand a { color: var(--leise); text-underline-offset: .25em; }
.legal h3 { margin: 1.6rem 0 .35rem; font-family: var(--label); font-weight: 400; letter-spacing: .08em; text-transform: uppercase; color: var(--gruen); font-size: 1.15rem; }
.legal h3:first-of-type { margin-top: 0; }
.legal p { margin: 0 0 .8rem; max-width: 60ch; font-size: 1.02rem; line-height: 1.65; color: var(--text); }
.legal__stand { margin-top: 1.6rem !important; color: var(--leise) !important; font-size: .92rem !important; }
.js .legal[hidden] { display: none; }
.legal.is-entering { animation: legal-ein .45s var(--weich) both; }
@keyframes legal-ein { from { opacity: 0; transform: translate3d(0, 10px, 0); } to { opacity: 1; transform: none; } }
/* Ohne JavaScript: Abschnitt per Anker sichtbar */
.modal:has(.legal:target) { display: block; position: static; height: auto; overflow: visible; }
.modal:has(.legal:target) .modal__panel { opacity: 1; transform: none; max-height: none; margin: 2rem auto; }

/* Lesefenster */
.modal--lese .modal__panel { width: min(900px, 100%); max-height: min(92vh, 1100px); max-height: min(92dvh, 1100px); }
.modal--lese .modal__head { padding-bottom: 1rem; border-bottom: 1px solid var(--linie); }
.lese__titel { margin: 0; padding-right: 3.5rem; font-family: var(--display); font-weight: 400; text-transform: uppercase; color: var(--text); font-size: clamp(1.8rem, 4.5vw, 2.7rem); line-height: 1; }
.lese__fortschritt { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; overflow: hidden; }
.lese__fortschritt span { display: block; height: 100%; background: var(--gruen); transform-origin: 0 50%; transform: scaleX(0); transition: transform .15s linear; }
.lese__body { padding-top: 2rem; }
.lese__text { max-width: 62ch; margin: 0 auto; font-size: clamp(1.08rem, 1.6vw, 1.2rem); line-height: 1.85; color: var(--text); }
.lese__text p { margin: 0; }
.lese__text p + p { text-indent: 1.5em; }
.lese__zeit { font-family: var(--label); letter-spacing: .1em; text-transform: uppercase; color: var(--leise); font-size: 1.05rem; }
.lese__text .lese__zeit { margin: 0 0 1.6rem; text-indent: 0; }
.lese__text .lese__zeit--neu { margin: 0 0 1.2rem; }
.lese__text h3 + p, .lese__text .lese__zeit + p { text-indent: 0; }
.lese__text p:first-child:not(.lese__zeit)::first-letter, .lese__text .lese__zeit + p::first-letter { float: left; padding: .06em .12em 0 0; font-family: var(--display); font-size: 3.4em; line-height: .85; color: var(--gruen); }
.lese__kapitel { margin: 2.8rem 0 .7rem; padding-top: 1.6rem; border-top: 1px solid var(--linie); font-family: var(--display); font-weight: 400; text-transform: uppercase; color: var(--text); font-size: 1.6rem; line-height: 1.05; }
.lese__ende { max-width: 62ch; margin: 2.6rem auto .5rem; padding-top: 1.2rem; border-top: 1px solid var(--linie); text-align: center; font-family: var(--label); letter-spacing: .14em; text-transform: uppercase; color: var(--leise); font-size: 1rem; }

/* ---------- Einwilligung ---------- */
.ew { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; overflow-y: auto; overscroll-behavior: contain;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  background: rgba(4, 5, 5, .5); -webkit-backdrop-filter: blur(14px) saturate(.85); backdrop-filter: blur(14px) saturate(.85); opacity: 0; transition: opacity .45s ease; }
.ew[hidden] { display: none; }
.ew.is-open { opacity: 1; }
.ew__panel { position: relative; width: min(480px, 100%); padding: clamp(1.4rem, 4vw, 2rem); background: var(--bg-hell); border: 1px solid var(--linie-stark); border-top: 3px solid var(--gruen); border-radius: 8px; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .95);
  opacity: 0; transform: translate3d(0, 18px, 0) scale(.98); transition: opacity .45s ease, transform .55s var(--weich); }
.ew.is-open .ew__panel { opacity: 1; transform: none; }
html.ew-offen, html.ew-offen body { overflow: hidden; }
.ew__kicker { margin: 0 0 .3rem; font-family: var(--label); letter-spacing: .12em; text-transform: uppercase; color: var(--gruen); font-size: .95rem; }
.ew__titel { margin: 0 0 .6rem; font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(1.6rem, 5vw, 2rem); line-height: 1.05; color: var(--text); }
.ew__text { margin: 0 0 1rem; font-size: 1rem; line-height: 1.55; color: var(--text); }
.ew__knoepfe { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.btn--ew { min-height: 46px; padding-inline: .8rem; font-size: 1.1rem; }
@media (hover: hover) { .btn--ew:hover { background: var(--gruen); border-color: var(--gruen); color: var(--tinte); } }
.ew__links { margin: .8rem 0 0; font-size: .92rem; }

/* ---------- Träges Scrollen (Lenis) ---------- */
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto !important; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* Vorschau im Backend: ohne Scrollbalken */
html[data-vorschau] { scrollbar-width: none; }
html[data-vorschau]::-webkit-scrollbar { display: none; width: 0; height: 0; }

/* =========================================================
   Responsiv
   ========================================================= */
@media (max-width: 980px) {
  .proben { grid-template-columns: 1fr; max-width: 640px; }
}
@media (max-width: 860px) {
  .story__grid, .book, .book--flip, .sample__in { grid-template-columns: 1fr; }
  .book--flip .book__cover { order: 0; }
  .book__cover { position: static; }
  .book__cover img { max-width: 280px; }
  /* Handy: nur von unten einblenden – seitliches Verschieben würde die Seite verbreitern */
  .js .reveal--links, .js .reveal--rechts { transform: translate3d(0, 22px, 0); }
}
@media (max-width: 560px) {
  .hero { min-height: 520px; }
  .hero__cta .btn { flex: 1 1 100%; }
  .strip { margin-top: 0; }
  .strip a { gap: .1rem; padding: .6rem .3rem; }
  .strip strong { font-size: .95rem; }
  .strip__meta { font-size: .72rem; letter-spacing: .05em; }
  .strip--4 { grid-template-columns: repeat(2, 1fr); }
  .strip--4 li:nth-child(3) { border-left: 0; }
  .strip--4 li:nth-child(n+3) { border-top: 1px solid var(--linie); }
  .count { gap: .8rem; }
  .count--4 { grid-template-columns: repeat(2, 1fr); row-gap: 2rem; }
  .modal[open] { place-items: end stretch; padding: max(10px, env(safe-area-inset-top)) 0 0; }
  .modal__panel { width: 100%; max-height: 92vh; max-height: 92dvh; border-radius: 10px 10px 0 0; border-bottom: 0; padding-bottom: env(safe-area-inset-bottom); }
  .modal--lese .modal__panel { max-height: 94vh; max-height: 94dvh; }
  .modal__close { top: .8rem; right: .8rem; }
  .lese__text { font-size: 1.06rem; line-height: 1.8; }
  .ew__knoepfe { grid-template-columns: 1fr; }
}
/* App-Leiste unten auf Handy und schmalen Tablets (oben bleiben Name und Kontrast-Knopf) */
.tabbar { display: none; }
@media (max-width: 760px) {
  :root { --tabbar: calc(62px + env(safe-area-inset-bottom)); }
  .top__in nav { display: none; }
  .brand { flex: 1 1 auto; }
  .brand__wort { display: none; }
  .brand__kd { display: block; }
  .kontrast { margin-right: -6px; }
  body { padding-bottom: var(--tabbar); }
  .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: block; padding: 0 env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
    background: rgba(10, 11, 11, .9); -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2); box-shadow: 0 -1px 0 var(--linie); }
  .tabbar ul { display: flex; list-style: none; margin: 0 auto; padding: 0; max-width: 560px; }
  .tabbar li { flex: 1 1 0; min-width: 0; }
  .tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: 62px; color: var(--leise); text-decoration: none; -webkit-tap-highlight-color: transparent; transition: color .25s ease; }
  .tabbar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--weich); }
  .tabbar span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--label); letter-spacing: .06em; text-transform: uppercase; font-size: .82rem; line-height: 1; }
  .tabbar a[aria-current="true"] { color: var(--gruen); }
  .tabbar a[aria-current="true"] svg { transform: translateY(-1px); }
  .tabbar a[aria-current="true"]::before { content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 2px; border-radius: 0 0 2px 2px; background: var(--gruen); }
  .tabbar a:active svg { transform: scale(.9); }
  /* Kopfbereich füllt den Bildschirm oberhalb der Leiste */
  @media (max-height: 760px) { .hero > .wrap:last-child { display: none; } }
  .hero { height: calc(100vh - var(--tabbar)); height: calc(100svh - var(--tabbar)); }
  .foot { padding-bottom: 0; }
  .foot__in { flex-direction: column; align-items: center; gap: .9rem; padding-block: 1.8rem 1.6rem; text-align: center; }
  .foot__links { order: -1; justify-content: center; gap: .5rem 1.4rem; }
  .foot__links li:has(.foot__btn) { flex-basis: 100%; }
  .foot p { font-size: .85rem; opacity: .8; }
}
@media (max-width: 310px) {
  .brand { letter-spacing: .14em; font-size: .78rem; }
}
@media (max-height: 480px) and (orientation: landscape) {
  .hero__title { font-size: min(9vw, 15vh); }
  .hero .lead { display: none; }
}
@media (hover: none), (pointer: coarse) {
  .book__cover img { transform: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
}

/* =========================================================
   Schwarz-Weiß mit hohem Kontrast (Knopf oben rechts)
   ========================================================= */
html[data-kontrast="hoch"] {
  --bg: #000; --bg-tief: #000; --bg-hell: #000; --flaeche: #000;
  --text: #fff; --leise: #fff; --gruen: #fff; --gruen-tief: #fff; --tinte: #000;
  --linie: rgba(255, 255, 255, .75); --linie-stark: #fff;
}
/* Bilder und Videos bleiben im Kontrastmodus farbig */
html[data-kontrast="hoch"] .hero__bg::after { display: none; }
html[data-kontrast="hoch"] .hero__img img { -webkit-mask-image: none; mask-image: none; }
html[data-kontrast="hoch"] .top, html[data-kontrast="hoch"] .tabbar, html[data-kontrast="hoch"] .modal__panel, html[data-kontrast="hoch"] .ew__panel { background: #000; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
html[data-kontrast="hoch"] .story, html[data-kontrast="hoch"] .books, html[data-kontrast="hoch"] .sample, html[data-kontrast="hoch"] .bands { border-top: 2px solid #fff; }
html[data-kontrast="hoch"] .sample__teaser, html[data-kontrast="hoch"] .modal__panel, html[data-kontrast="hoch"] .ew__panel { border: 2px solid #fff; }
html[data-kontrast="hoch"] .btn { background: #000; color: #fff; border: 2px solid #fff; }
html[data-kontrast="hoch"] .btn--solid { background: #fff; color: #000; }
html[data-kontrast="hoch"] .band--solid { background: #fff; color: #000; }
html[data-kontrast="hoch"] .band--line { background: #000; color: #fff; }
html[data-kontrast="hoch"] .outro { background: #fff; color: #000; }
html[data-kontrast="hoch"] .outro__titel, html[data-kontrast="hoch"] .outro .lead { color: #000; }
html[data-kontrast="hoch"] .outro .btn--solid { background: #000; color: #fff; border-color: #000; }
html[data-kontrast="hoch"] .count__item--void .count__num { opacity: 1; }
html[data-kontrast="hoch"] .hl { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .18em; }
html[data-kontrast="hoch"] .status a, html[data-kontrast="hoch"] .foot__links a, html[data-kontrast="hoch"] .foot__btn, html[data-kontrast="hoch"] .ew__links a { color: #fff; }
html[data-kontrast="hoch"] .kontrast { color: #000; background: #fff; border-color: #fff; }
html[data-kontrast="hoch"] :focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* =========================================================
   Sag mir Bescheid – Anmeldung mit Cover
   ========================================================= */
.signup { position: relative; isolation: isolate; padding-block: clamp(4.5rem, 10vw, 8rem); background: #0b1510; color: var(--text); border-top: 1px solid rgba(143, 245, 182, .22); overflow: hidden; overflow: clip; }
.signup__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 5.5rem); align-items: center; }
.signup__in--ohne { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.signup__cover { display: flex; justify-content: center; align-items: flex-end; }
.signup__cover figure { flex: 0 1 auto; }
.signup__cover img { width: 100%; border-radius: 2px 4px 4px 2px; background: var(--bg-hell); box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .95), 0 0 0 1px rgba(255, 255, 255, .05); }
.signup__cover--1 figure { width: min(100%, 340px); }
.signup__cover--2, .signup__cover--3 { gap: clamp(.6rem, 1.6vw, 1rem); }
.signup__cover--2 figure { width: 46%; }
.signup__cover--3 figure { width: 31%; }
.signup__cover--2 figure:nth-child(2), .signup__cover--3 figure:nth-child(2) { transform: translateY(-8%); }
.signup .lead { margin-top: 1.2rem; }

.nl { display: grid; gap: .9rem; margin-top: clamp(1.6rem, 3vw, 2.2rem); max-width: 34rem; }
.nl__reihe { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.nl__feld { display: grid; gap: .35rem; min-width: 0; }
.nl__feld span { font-family: var(--label); letter-spacing: .1em; text-transform: uppercase; color: var(--leise); font-size: 1rem; }
.nl__feld input {
  width: 100%; min-height: 50px; padding: .7rem .9rem; border-radius: 3px; border: 1px solid var(--linie-stark);
  background: var(--bg-hell); color: var(--text); font: inherit; font-size: 1.05rem; /* ≥16px: kein Zoom auf iOS */
  -webkit-appearance: none; appearance: none; transition: border-color .3s ease, background-color .3s ease;
}
.nl__feld input:focus { outline: none; border-color: var(--gruen); background: #141816; }
.nl__feld input[aria-invalid="true"] { border-color: #ff8a8a; }
/* Autovervollständigung (auch die Vorschau beim Darüberfahren in Firefox) in eigenen Farben, sonst unlesbar */
.nl__feld input:autofill { filter: none; background-color: #0e1411; color: var(--text); -webkit-text-fill-color: var(--text); box-shadow: 0 0 0 100px #0e1411 inset; caret-color: var(--text); }
.nl__feld input:-webkit-autofill, .nl__feld input:-webkit-autofill:hover, .nl__feld input:-webkit-autofill:focus { -webkit-text-fill-color: var(--text); box-shadow: 0 0 0 100px #0e1411 inset; caret-color: var(--text); transition: background-color 9999s; }
.nl__feld input:-moz-autofill-preview { filter: none; background-color: #0e1411; color: var(--leise); }
.nl__feld input:-moz-autofill { filter: none; background-color: #0e1411; color: var(--text); }
.nl__knopf { justify-self: start; min-width: 14rem; }
.nl__knopf[disabled] { opacity: .6; cursor: progress; }
.nl__meldung { margin: 0; min-height: 1.5em; font-size: 1rem; line-height: 1.5; }
.nl__meldung--ok { color: var(--gruen); }
.nl__meldung--fehler { color: #ffb0b0; }
.nl__hinweis { margin: 0; font-size: .95rem; line-height: 1.55; color: var(--leise); }
.nl__hinweis a { color: var(--leise); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .28em; }
@media (hover: hover) { .nl__hinweis a:hover { color: var(--text); text-decoration-color: var(--gruen); } }
.nl[hidden], .nl__danke[hidden] { display: none; }
/* Knopf → Formular: beide Klappen ändern ihre Höhe weich (0fr ↔ 1fr), dazu Blende */
.nl-klappe--knopf { display: none; }
.js .nl-klappe { display: grid; transition: grid-template-rows .6s cubic-bezier(.2, .7, .2, 1), opacity .4s ease; }
.js .nl-klappe__in { min-height: 0; overflow: hidden; margin: -12px; padding: 12px; }
.js .nl-klappe--knopf { grid-template-rows: 1fr; opacity: 1; }
.js .nl-klappe--knopf.ist-zu { grid-template-rows: 0fr; opacity: 0; pointer-events: none; }
.js .nl-klappe--form { grid-template-rows: 0fr; opacity: 0; visibility: hidden; transition: grid-template-rows .6s cubic-bezier(.2, .7, .2, 1), opacity .45s ease .15s, visibility 0s linear .6s; }
.js .nl-klappe--form.ist-offen { grid-template-rows: 1fr; opacity: 1; visibility: visible; transition: grid-template-rows .6s cubic-bezier(.2, .7, .2, 1), opacity .45s ease .15s, visibility 0s; }
.js .nl-klappe--form.ist-fertig > .nl-klappe__in { overflow: visible; }
.js .nl-klappe--form .nl { transform: translateY(14px); transition: transform .6s cubic-bezier(.2, .7, .2, 1) .1s; }
.js .nl-klappe--form.ist-offen .nl { transform: none; }
.nl__auf { justify-self: start; min-width: 14rem; margin-top: clamp(1.6rem, 3vw, 2.2rem); }
.nl__auf[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .js .nl-klappe, .js .nl-klappe--form, .js .nl-klappe--form.ist-offen, .js .nl-klappe--form .nl { transition: none; } }
.nl__knopf-zeile { display: contents; }
/* Überschrift, Text und Knopf liegen mit dem Formular übereinander in derselben Zelle.
   Die Höhe steht von Anfang an fest (größerer Zustand), beim Klick wird nur überblendet. */
.js .signup__wechsel { display: grid; align-items: start; }
@media (max-width: 340px) { .nl__reihe { grid-template-columns: 1fr !important; } }
.js .signup__wechsel > * { grid-area: 1 / 1; min-width: 0; }
.js .signup:not(.ist-offen) .signup__nachher { pointer-events: none; }
.js .signup__vorher { transition: opacity .35s ease, transform .5s cubic-bezier(.2, .7, .2, 1), visibility 0s; }
.js .signup.ist-offen .signup__vorher { opacity: 0; transform: translateY(-10px); visibility: hidden; pointer-events: none; transition: opacity .3s ease, transform .5s cubic-bezier(.2, .7, .2, 1), visibility 0s linear .35s; }
.js .signup__wechsel .nl-klappe--knopf, .js .signup__wechsel .nl-klappe--knopf.ist-zu { grid-template-rows: 1fr; opacity: 1; }
.js .signup__wechsel .nl-klappe--form, .js .signup__wechsel .nl-klappe--form.ist-offen { grid-template-rows: 1fr; }
.js .signup__wechsel .nl-klappe--form > .nl-klappe__in { overflow: visible; }
.js .signup__wechsel .nl-klappe--form { transition: opacity .45s ease, visibility 0s linear .45s; }
.js .signup__wechsel .nl-klappe--form.ist-offen { transition: opacity .5s ease .2s, visibility 0s; }
.js .signup__wechsel .nl-klappe--form .nl { margin-top: .6rem; }
@media (prefers-reduced-motion: reduce) { .js .signup__vorher, .js .signup.ist-offen .signup__vorher, .js .nl-klappe--form, .js .nl-klappe--form.ist-offen { transition: none; } }
/* Desktop: kompaktere Abfrage mit Bild links, Eingabe rechts */
@media (min-width: 861px) {
  .signup .nl__pruef { grid-template-columns: minmax(0, 250px) minmax(0, 1fr); column-gap: 1rem; align-items: end; }
  .signup .nl__pruef-kopf { grid-column: 1 / -1; }
  .signup .nl__pruef-bild { grid-column: 1; }
  .signup .nl__pruef .nl__feld { grid-column: 2; }
  .signup .nl__pruef-hilfe { grid-column: 1 / -1; font-size: .85rem; }
}
/* Sicherheitsabfrage */
.nl__pruef { display: grid; gap: .6rem; padding: .9rem; border: 1px solid rgba(143, 245, 182, .18); border-radius: 6px; background: rgba(3, 8, 6, .45); }
.nl__pruef-kopf { display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
.nl__pruef-titel { font-family: var(--label); letter-spacing: .1em; text-transform: uppercase; color: var(--leise); font-size: 1rem; }
.nl__pruef-knoepfe { display: flex; gap: .4rem; flex: none; }
.nl__pruef-knopf { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid rgba(255, 255, 255, .16); border-radius: 50%; background: transparent; color: var(--text); cursor: pointer; transition: border-color .2s, color .2s, box-shadow .2s; }
.nl__pruef-knopf svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nl__pruef-knopf:focus-visible { outline: 2px solid var(--gruen); outline-offset: 2px; }
@media (hover: hover) { .nl__pruef-knopf:hover { border-color: var(--gruen); color: var(--gruen); box-shadow: 0 0 14px rgba(143, 245, 182, .25); } }
.nl__pruef-bild { position: relative; display: grid; place-items: center; aspect-ratio: 380 / 120; max-width: 380px; width: 100%; border-radius: 4px; overflow: hidden; background: #0b1510; }
.nl__pruef-bild img { display: block; width: 100%; height: auto; }
.nl__pruef-bild img[hidden], .nl__pruef-laden[hidden] { display: none; }
.nl__pruef-laden { padding: 0 1rem; font-size: .95rem; color: var(--leise); text-align: center; }
.nl__pruef-hilfe { margin: 0; font-size: .9rem; line-height: 1.5; color: var(--leise); }
.nl__falle { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.nl__danke { margin-top: clamp(1.6rem, 3vw, 2.2rem); padding: 1.4rem 1.5rem; max-width: 34rem; border-left: 3px solid var(--gruen); background: var(--bg-hell); }
.nl__danke p { margin: 0; }
.nl__danke-titel { font-family: var(--display); text-transform: uppercase; font-size: 1.6rem; line-height: 1.1; color: var(--gruen); margin-bottom: .4rem !important; }

/* Ende der Leseprobe: weiter zur Anmeldung */
.lese__weiter { margin: 1.4rem auto .4rem; text-align: center; }

/* Bestätigungs- und Abmeldeseite */
.nl-seite { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: max(24px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
.nl-karte { width: min(640px, 100%); padding: clamp(1.6rem, 5vw, 3rem); background: var(--bg-hell); border: 1px solid var(--linie); border-top: 3px solid var(--gruen); border-radius: 6px; }
.nl-karte .h2 { font-size: clamp(2.2rem, 7vw, 3.4rem); }
.nl-karte form { margin-top: 1.8rem; }
.nl-karte__zurueck { margin: 1.8rem 0 0; font-size: 1rem; }
.nl-karte__zurueck a { color: var(--leise); text-underline-offset: .28em; }

@media (max-width: 860px) {
  .signup__in { grid-template-columns: 1fr; }
  .signup__cover--1 figure { width: min(60%, 240px); }
  .signup__cover { max-width: 420px; margin-inline: auto; }
}
@media (max-width: 560px) {
  .nl__reihe { grid-template-columns: 1fr 1fr; gap: .7rem; }
  .nl { gap: .75rem; }
  .nl__pruef { padding: .75rem; gap: .5rem; }
  .nl__knopf { justify-self: stretch; }
}
html[data-kontrast="hoch"] .nl__feld input { background: #000; border: 2px solid #fff; }
html[data-kontrast="hoch"] .nl__meldung--ok, html[data-kontrast="hoch"] .nl__meldung--fehler, html[data-kontrast="hoch"] .nl__danke-titel { color: #fff; }
html[data-kontrast="hoch"] .nl__danke, html[data-kontrast="hoch"] .nl-karte { background: #000; border-color: #fff; }
html[data-kontrast="hoch"] .signup { border-top: 2px solid #fff; }
html[data-kontrast="hoch"] .nl__pruef { background: #000; border: 2px solid #fff; }

/* Ohne backdrop-filter (ältere Browser): dunkler statt weich */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .ew { background: rgba(4, 5, 5, .86); } }
html[data-kontrast="hoch"] .ew { background: rgba(0, 0, 0, .85); -webkit-backdrop-filter: none; backdrop-filter: none; }
html[data-kontrast="hoch"] .tabbar { box-shadow: 0 -2px 0 #fff; }
html[data-kontrast="hoch"] .tabbar a { color: #fff; }
html[data-kontrast="hoch"] .tabbar a[aria-current="true"]::before { background: #fff; height: 3px; }

/* Sicherheitsnetz gegen seitliches Scrollen, ohne Scroll-Container zu erzeugen (Sticky bleibt intakt) */
@supports (overflow: clip) { main { overflow-x: clip; } }

/* =========================================================
   Anmeldung als Abschluss („Bleib im grünen Bereich.“)
   Gedecktes Dunkelgrün mit feinem Raster statt Neon-Fläche
   ========================================================= */
.signup::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(143, 245, 182, .075) 1px, transparent 1px), linear-gradient(90deg, rgba(143, 245, 182, .075) 1px, transparent 1px);
  background-size: 56px 56px; background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 40%, #000 35%, transparent 100%); mask-image: radial-gradient(ellipse 85% 75% at 50% 40%, #000 35%, transparent 100%); }
.signup::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 40%; z-index: -1; pointer-events: none; background: linear-gradient(rgba(143, 245, 182, .06), transparent); }
.signup .sek-kopf { color: var(--gruen); }
.signup .h2 { color: var(--text); font-size: clamp(3rem, 7vw, 6rem); line-height: .95; }
.signup .lead { color: var(--text); }
.signup__cover img { box-shadow: 0 34px 60px -24px rgba(0, 0, 0, .95), 0 0 0 1px rgba(255, 255, 255, .06); }
.signup .nl__feld span { color: var(--leise); }
.signup .nl__feld input { background: rgba(3, 8, 6, .75); border-color: rgba(255, 255, 255, .16); }
.signup .nl__feld input:focus { background: #050b08; border-color: var(--gruen); box-shadow: 0 0 0 3px rgba(143, 245, 182, .15); }
.signup .nl__danke { background: rgba(3, 8, 6, .7); }
html[data-kontrast="hoch"] .signup { background: #000; border-top: 2px solid #fff; }
html[data-kontrast="hoch"] .signup::before, html[data-kontrast="hoch"] .signup::after { display: none; }
html[data-kontrast="hoch"] .signup .nl__feld input { background: #000; border: 2px solid #fff; color: #fff; }

/* ---------- Grün mit weichem Leuchten (Text, Flächen, Linien) ---------- */
:root {
  --glow-text: 0 0 .45em rgba(143, 245, 182, .38), 0 0 1.3em rgba(143, 245, 182, .16);
  --glow-box: 0 0 16px rgba(143, 245, 182, .30), 0 0 42px rgba(143, 245, 182, .12);
  --glow-linie: 0 0 8px rgba(143, 245, 182, .55);
}
.kicker, .sek-kopf, .hl, .hero__z2, .badge, .book__tag, .probe__name, .legal h3, .ew__kicker,
.nl__meldung--ok, .nl__danke-titel, .count__item:first-child .count__num, .sample__weiter,
.probe__text > .sample__absatz:first-child::first-letter,
.lese__text p:first-child:not(.lese__zeit)::first-letter, .lese__text .lese__zeit + p::first-letter { text-shadow: var(--glow-text); }
p a:not(.btn), li a:not(.btn) { text-shadow: 0 0 .5em rgba(143, 245, 182, .22); }
.btn--solid, .btn--ew:hover { box-shadow: var(--glow-box); }
@media (hover: hover) {
  .btn:not(.btn--solid):not(.btn--ew):hover { color: var(--gruen); text-shadow: var(--glow-text); box-shadow: 0 0 14px rgba(143, 245, 182, .18); }
  .btn.btn--ew:hover { color: var(--tinte); text-shadow: none; }
  .btn--solid:hover { box-shadow: 0 0 22px rgba(143, 245, 182, .42), 0 0 54px rgba(143, 245, 182, .18); }
  .brand:hover, .strip a:hover strong, .modal__close:hover { text-shadow: var(--glow-text); }
}
.progress span, .lese__fortschritt span, .modal__ink, .dot, .band--line .band__trenner, .nav a::after { box-shadow: var(--glow-linie); }
.quote, .nl__danke { box-shadow: -6px 0 14px -10px rgba(143, 245, 182, .6); }
.tabbar a[aria-current="true"] span { text-shadow: var(--glow-text); }
.tabbar a[aria-current="true"] svg { filter: drop-shadow(0 0 5px rgba(143, 245, 182, .55)); }
.tabbar a[aria-current="true"]::before { box-shadow: var(--glow-linie); }
.nl__feld input:focus, .signup .nl__feld input:focus { box-shadow: 0 0 0 3px rgba(143, 245, 182, .14), 0 0 18px rgba(143, 245, 182, .16); }
.outro .btn--solid { box-shadow: none; }
html[data-kontrast="hoch"] *, html[data-kontrast="hoch"] *::before, html[data-kontrast="hoch"] *::after, html[data-kontrast="hoch"] *::first-letter { text-shadow: none !important; }
html[data-kontrast="hoch"] .btn, html[data-kontrast="hoch"] .progress span, html[data-kontrast="hoch"] .lese__fortschritt span, html[data-kontrast="hoch"] .modal__ink, html[data-kontrast="hoch"] .dot, html[data-kontrast="hoch"] .band__trenner, html[data-kontrast="hoch"] .nav a::after, html[data-kontrast="hoch"] .quote, html[data-kontrast="hoch"] .nl__danke, html[data-kontrast="hoch"] .nl__feld input, html[data-kontrast="hoch"] .tabbar a::before { box-shadow: none !important; }
html[data-kontrast="hoch"] .tabbar svg { filter: none !important; }

/* Anfangsbuchstabe in der Titelfarbe des Covers („Die letzte Note“: Blau) */
.probe--blau .probe__text > .sample__absatz:first-child::first-letter,
.probe--blau .lese__text p:first-child:not(.lese__zeit)::first-letter, .probe--blau .lese__text .lese__zeit + p::first-letter { color: #a5e0fe; text-shadow: 0 0 .45em rgba(165, 224, 254, .45), 0 0 1.3em rgba(165, 224, 254, .2); }
html[data-kontrast="hoch"] .probe--blau .probe__text > .sample__absatz:first-child::first-letter, html[data-kontrast="hoch"] .probe--blau .lese__text p::first-letter { color: #fff; }

/* Buchnamen überall: Versalien in der Akzentfarbe des Buchs (aus dem Cover) */
.buchname { text-transform: uppercase; letter-spacing: .03em; }
.buchname--blau { color: #a5e0fe; text-shadow: 0 0 .45em rgba(165, 224, 254, .38), 0 0 1.3em rgba(165, 224, 254, .16); }
.buchname--mint { color: #c8ffdf; text-shadow: 0 0 .45em rgba(200, 255, 223, .34), 0 0 1.3em rgba(200, 255, 223, .14); }
.buchname--gruen { color: #93ffbd; text-shadow: 0 0 .45em rgba(147, 255, 189, .38), 0 0 1.3em rgba(147, 255, 189, .16); }
html[data-kontrast="hoch"] .buchname { color: #fff; text-shadow: none; }

/* Datenschutz-Einstellungen: aktuelle Wahl sichtbar */
.ew__stand { margin: .2rem 0 1rem; padding: .55rem .8rem; border-left: 2px solid var(--gruen); background: rgba(143, 245, 182, .06); font-size: .95rem; color: var(--text); }
.ew__stand[hidden] { display: none; }
.btn--ew.ist-gewaehlt { border-color: var(--gruen); color: var(--gruen); box-shadow: 0 0 0 1px var(--gruen) inset, var(--glow-box); }
.btn--ew.ist-gewaehlt::before { content: "✓"; margin-right: .1em; }
html[data-kontrast="hoch"] .btn--ew.ist-gewaehlt { border-color: #fff; color: #fff; box-shadow: 0 0 0 2px #fff inset; }
html[data-kontrast="hoch"] .ew__stand { border-left-color: #fff; background: #000; }
/* Auf grünen Flächen (Laufband, volle Knöpfe, Schluss) bleibt die Schriftfarbe der Fläche, sonst unlesbar */
.band--solid .buchname, .btn--solid .buchname, .outro .buchname, .skip .buchname { color: inherit; text-shadow: none; }

/* Tabelle „Was im Browser gespeichert wird“ – breit als Tabelle, schmal als Karten */
.speicher { margin: .8rem 0 1.4rem; }
.speicher__tabelle { width: 100%; border-collapse: collapse; font-size: .92rem; line-height: 1.5; }
.speicher__tabelle th { text-align: left; font-family: var(--label); font-weight: 400; letter-spacing: .08em; text-transform: uppercase; color: var(--leise); font-size: .85rem; padding: .5rem .6rem; border-bottom: 1px solid var(--linie-stark); }
.speicher__tabelle td { padding: .65rem .6rem; border-bottom: 1px solid var(--linie); vertical-align: top; }
.speicher__tabelle code { display: block; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .88em; color: var(--gruen); white-space: nowrap; }
.speicher__art { display: block; margin-top: .15rem; font-size: .85em; color: var(--leise); }
.speicher__tabelle th:nth-child(1) { width: 22%; } .speicher__tabelle th:nth-child(2) { width: 36%; } .speicher__tabelle th:nth-child(3) { width: 22%; }
@media (max-width: 700px) {
  .speicher__tabelle thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .speicher__tabelle, .speicher__tabelle tbody, .speicher__tabelle tr, .speicher__tabelle td { display: block; width: 100%; }
  .speicher__tabelle tr { margin-bottom: .8rem; padding: .7rem .9rem; border: 1px solid var(--linie); border-radius: 6px; background: rgba(255, 255, 255, .02); }
  .speicher__tabelle td { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: .1rem .6rem; padding: .3rem 0; border: 0; }
  .speicher__tabelle td code, .speicher__tabelle td .speicher__art { grid-column: 2; }
  .speicher__tabelle td[data-titel="Name"]::before { grid-row: span 2; }
  .speicher__tabelle td::before { content: attr(data-titel); font-family: var(--label); letter-spacing: .08em; text-transform: uppercase; color: var(--leise); font-size: .8rem; padding-top: .15em; }
}
html[data-kontrast="hoch"] .speicher__tabelle code { color: #fff; }

/* Platzhalter („Bald“): gleiche Optik, ruhig, ein Bildschirm */
.ph { min-height: 100vh; min-height: 100svh; margin: 0; display: grid; place-items: center; background: #0b1510; position: relative; isolation: isolate; overflow: hidden; }
/* Grünes Raster wie bei der Anmeldung („Bleib im grünen Bereich.“), über den ganzen Bildschirm */
.ph::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(143, 245, 182, .075) 1px, transparent 1px), linear-gradient(90deg, rgba(143, 245, 182, .075) 1px, transparent 1px);
  background-size: 56px 56px; background-position: center center;
  -webkit-mask-image: radial-gradient(ellipse 95% 85% at 50% 45%, #000 40%, transparent 100%); mask-image: radial-gradient(ellipse 95% 85% at 50% 45%, #000 40%, transparent 100%); }
.ph::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 40%; z-index: -1; pointer-events: none; background: linear-gradient(rgba(143, 245, 182, .06), transparent); }
html:has(> body.ph) { background: #0b1510; }
html[data-kontrast="hoch"] .ph { background: #000; }
html[data-kontrast="hoch"] .ph::after { display: none; }
.ph__in { width: min(820px, 100% - 2 * var(--gutter)); padding: clamp(1.4rem, 4vh, 3rem) 0 calc(clamp(2rem, 6vh, 4rem) + env(safe-area-inset-bottom)); text-align: center; display: grid; justify-items: center; }
.ph__logo { width: auto; height: 24px; filter: drop-shadow(0 0 5px rgba(143, 245, 182, .4)); }
/* Oben am Rand: Desktop ganz links, Handy zentriert (kein transform, das nutzt die Einblende-Animation) */
.ph__logo { position: absolute; top: calc((var(--kopf) - 24px) / 2 + env(safe-area-inset-top)); left: max(var(--gutter), env(safe-area-inset-left)); }
.ph__in { padding-top: calc(var(--kopf) + env(safe-area-inset-top) + clamp(.6rem, 3vh, 2rem)); } /* nie unter das Logo rutschen */
@media (max-width: 760px) {
  .ph__logo { left: 0; right: 0; margin-inline: auto; }
}

.ph__bild { width: 100%; margin-bottom: clamp(1.2rem, 3.5vh, 2.4rem); }
.ph__bild img { display: block; width: 100%; height: auto; max-height: 30vh; object-fit: contain;
  -webkit-mask-image: linear-gradient(transparent, #000 14%, #000 80%, transparent), linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-composite: source-in;
  mask-image: linear-gradient(transparent, #000 14%, #000 80%, transparent), linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-composite: intersect; }
.ph__kicker { margin-bottom: .8rem; }
.ph__titel { margin: 0; font-family: var(--display); font-weight: 400; text-transform: uppercase; line-height: .95; font-size: clamp(2.4rem, min(8vw, 6.4vh), 4.8rem); color: var(--text); }
.ph__text { max-width: 36rem; margin: clamp(1rem, 2.6vh, 1.6rem) auto 0; }
.ph__status { appearance: none; -webkit-appearance: none; background: transparent; cursor: pointer; display: inline-flex; align-items: center; gap: .6rem; margin: clamp(1.4rem, 3.5vh, 2.2rem) 0 0; padding: .45rem .9rem; border: 1px solid rgba(143, 245, 182, .28); border-radius: 999px; transition: border-color .3s ease, box-shadow .3s ease; font-family: var(--label); letter-spacing: .12em; text-transform: uppercase; font-size: .95rem; color: var(--gruen); text-shadow: var(--glow-text); }
.ph__punkt { width: 8px; height: 8px; border-radius: 50%; background: var(--gruen); box-shadow: 0 0 10px rgba(143, 245, 182, .8); animation: ph-puls 2.4s ease-in-out infinite; }
@keyframes ph-puls { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .ph__punkt { animation: none; } }

/* Geschichte: Bild unter der Überschrift, weich in den Hintergrund auslaufend */
.story__kopf { display: grid; gap: clamp(1.6rem, 4vw, 2.6rem); align-content: start; }
.story__bild { margin: 0; max-width: 520px; }
.story__bild img { display: block; width: 100%; height: auto; border-radius: 4px; filter: grayscale(1) contrast(1.05);
  -webkit-mask-image: radial-gradient(ellipse 75% 75% at 50% 45%, #000 55%, transparent 100%); mask-image: radial-gradient(ellipse 75% 75% at 50% 45%, #000 55%, transparent 100%); }
@media (min-width: 861px) { .story__kopf { position: sticky; top: calc(var(--kopf) + clamp(16px, 4vh, 40px)); } }
@media (max-width: 860px) { .story__bild { max-width: 420px; } }

/* Anmeldung im Platzhalter: Knopf mittig, Formular linksbündig in der Mitte */
.ph__anmeldung { width: 100%; max-width: 34rem; margin-top: clamp(1.2rem, 3vh, 2rem); text-align: left; }
.ph__anmeldung .nl__auf { margin: 0 auto; display: flex; width: max-content; min-width: 14rem; }
.js .ph__anmeldung .nl__auf { margin-top: 0; }
.ph__anmeldung .nl { margin: .4rem auto 0; }
.ph__anmeldung .nl__danke { margin-inline: auto; }
.ph__anmeldung .nl__feld input { background: rgba(3, 8, 6, .75); border-color: rgba(255, 255, 255, .16); }

@media (hover: hover) { .ph__status:hover { border-color: var(--gruen); box-shadow: 0 0 18px rgba(143, 245, 182, .25); } }
.ph__status:focus-visible { outline: 2px solid var(--gruen); outline-offset: 3px; }

/* Netzleitstand (Pneumion): Vollbild, Wand aus Kacheln, alles grün */
html.leit-offen, html.leit-offen body { overflow: hidden; }
.leit { position: fixed; inset: 0; z-index: 90; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: clamp(.8rem, 2vh, 1.4rem);
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  background: #020403; color: #cfe9d8; font-family: ui-monospace, Menlo, Consolas, monospace; opacity: 0; transition: opacity .35s ease; }
.leit[hidden] { display: none; }
.leit.ist-offen { opacity: 1; }
.leit::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(transparent 0 2px, rgba(143, 245, 182, .025) 2px 3px); }
.leit__kopf { position: relative; display: flex; align-items: center; gap: 1rem; padding-bottom: .7rem; border-bottom: 1px solid rgba(143, 245, 182, .18); }
.leit__marke { margin: 0; font-family: var(--label); letter-spacing: .18em; text-transform: uppercase; font-size: 1.05rem; color: var(--gruen); text-shadow: var(--glow-text); }
.leit__marke span { color: #7f9a88; text-shadow: none; }
.leit__info { margin: 0 0 0 auto; font-size: .8rem; color: #7f9a88; letter-spacing: .04em; }
.leit__zu { flex: none; position: relative; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(143, 245, 182, .3); background: transparent; color: #cfe9d8; cursor: pointer; }
.leit__zu:focus-visible { outline: 2px solid var(--gruen); outline-offset: 2px; }
.leit__wand { position: relative; display: grid; gap: 6px; align-content: start; overflow: hidden; }
.leit__kachel { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto auto; gap: 2px 6px; padding: .5rem .55rem .55rem; border: 1px solid rgba(143, 245, 182, .16); border-radius: 3px; background: rgba(143, 245, 182, .045); min-height: 74px; transition: background-color .2s ease, border-color .2s ease; }
.leit__name { grid-column: 1 / -1; font-size: .66rem; letter-spacing: .06em; color: #7f9a88; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.leit__wert { font-size: 1.05rem; color: #93ffbd; text-shadow: 0 0 8px rgba(147, 255, 189, .35); font-variant-numeric: tabular-nums; }
.leit__einheit { align-self: end; font-size: .62rem; color: #6f8a78; }
.leit__balken { grid-column: 1 / -1; height: 3px; background: rgba(143, 245, 182, .12); border-radius: 2px; overflow: hidden; }
.leit__balken i { display: block; height: 100%; background: #6fdc9b; box-shadow: 0 0 6px rgba(143, 245, 182, .6); transition: width .8s ease; }
.leit__kachel.ist-sprung { background: rgba(143, 245, 182, .12); border-color: rgba(143, 245, 182, .5); }
.leit__kachel.ist-sprung .leit__wert { color: #eafff2; text-shadow: 0 0 14px rgba(200, 255, 223, .9); }
.leit__fuss { display: grid; gap: .3rem; justify-items: start; padding-top: .7rem; border-top: 1px solid rgba(143, 245, 182, .18); }
.leit__zeile { margin: 0; min-height: 1.4em; font-size: .9rem; color: #a9c7b3; }
.leit__gross { margin: 0; font-family: var(--display); text-transform: uppercase; font-size: clamp(1.8rem, 6vw, 3.4rem); line-height: 1; color: var(--gruen); text-shadow: var(--glow-text); }
.leit__cursor { display: inline-block; width: .5em; height: .8em; margin-left: .15em; background: var(--gruen); vertical-align: baseline; animation: leit-cursor 1.1s steps(1) infinite; }
@keyframes leit-cursor { 50% { opacity: 0; } }
@media (max-width: 560px) { .leit__info { display: none; } .leit__kachel { min-height: 64px; } }
@media (prefers-reduced-motion: reduce) { .leit, .leit__balken i { transition: none; } .leit__cursor { animation: none; } }

/* Weiches Einblenden beim Laden (Klassen setzt app.js; ohne JavaScript sofort sichtbar) */
html.laedt body { opacity: 0; }
html.geladen body { opacity: 1; transition: opacity .55s ease; }
/* Platzhalter: Inhalte nacheinander */
html.geladen .ph__in > * { animation: ph-rein .9s cubic-bezier(.2, .7, .2, 1) both; }
html.geladen .ph__in > :nth-child(2) { animation-delay: .12s; }
html.geladen .ph__in > :nth-child(3) { animation-delay: .24s; }
html.geladen .ph__in > :nth-child(4) { animation-delay: .4s; }
html.geladen .ph__in > :nth-child(5) { animation-delay: .55s; }
html.geladen .ph__in > :nth-child(6) { animation-delay: .7s; }
@keyframes ph-rein { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { html.geladen body { transition: none; } html.geladen .ph__in > * { animation: none; } }
