/* =========================================================
   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: swap; }
@font-face { font-family: "Bebas Neue"; src: url("fonts/bebas-neue-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@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; overflow-x: hidden;
}
/* 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; background: rgba(10, 11, 11, .86); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s ease, background-color .3s ease; }
.top.is-scrolled { border-bottom-color: 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; }
.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 ---------- */
.hero { position: relative; isolation: isolate; margin-top: calc(-1 * var(--kopf)); padding: calc(var(--kopf) + clamp(1rem, 4vh, 3rem)) 0 clamp(3rem, 7vw, 5rem); background: var(--bg); overflow: hidden; }
.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(12.5vw, 13.5vh, 12rem); 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; width: 100%; max-width: 1400px; margin: clamp(1rem, 3vh, 2.5rem) auto 0; }
.hero__img img { width: 100%; height: auto; background: transparent;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 8%, #000 74%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 8%, #000 74%, transparent 100%); }
.hero__spacer { display: none; }

/* 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; }

/* Leiste mit den Büchern unter dem Bild */
.strip { position: relative; z-index: 2; list-style: none; margin: clamp(.75rem, 2vw, 1.5rem) 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: center; 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; }
.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; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.sample__absatz + .sample__absatz { margin-top: .9em; }
.sample__teaser:has(.sample__absatz + .sample__absatz) .sample__absatz { -webkit-mask-image: none; mask-image: none; }
.sample__teaser:has(.sample__absatz + .sample__absatz) .sample__absatz:last-of-type { -webkit-mask-image: linear-gradient(#000 20%, transparent); mask-image: linear-gradient(#000 20%, transparent); }
.sample__teaser--karte .sample__absatz { -webkit-mask-image: linear-gradient(#000 35%, transparent); mask-image: linear-gradient(#000 35%, transparent); }
.sample__absatz:first-child::first-letter, .probe__kopf + .sample__absatz::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 .sample__absatz::first-letter { font-size: 2.6em !important; }
.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); }
.modal__close span, .modal__close span::before { position: absolute; left: 50%; top: 50%; width: 16px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%) rotate(45deg); }
.modal__close span::before { content: ""; transform: translate(-50%, -50%) rotate(90deg); }
@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 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; z-index: 40; left: max(16px, env(safe-area-inset-left)); bottom: max(16px, env(safe-area-inset-bottom)); width: min(440px, calc(100% - 32px)); pointer-events: none; }
.ew[hidden] { display: none; }
.ew__panel { position: relative; pointer-events: auto; padding: 1.3rem 1.4rem 1.2rem; background: var(--bg-hell); border: 1px solid var(--linie-stark); border-radius: 8px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .95);
  opacity: 0; transform: translate3d(0, 20px, 0); transition: opacity .4s ease, transform .5s var(--weich); }
.ew.is-open .ew__panel { opacity: 1; transform: none; }
.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 .5rem; font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 1.6rem; 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 img { max-width: 280px; }
  .js .reveal--links { transform: translate3d(-20px, 0, 0); }
  .js .reveal--rechts { transform: translate3d(20px, 0, 0); }
}
@media (max-width: 560px) {
  .hero { padding-bottom: 3.5rem; 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 { left: 0; right: 0; bottom: 0; width: 100%; }
  .ew__panel { border-radius: 10px 10px 0 0; border-bottom: 0; padding-bottom: calc(1.2rem + env(safe-area-inset-bottom)); }
  .ew__knoepfe { grid-template-columns: 1fr; }
}
/* Kopfleiste schmal: gemessen braucht sie mit drei Punkten ca. 411 px (bei 390 px zu breit).
   Bis 480 px enger, unter 385 px ohne „Geschichte“, unter 310 px kompakt.
   Der Name kürzt sich notfalls mit „…“, die Leiste läuft nie über. */
@media (max-width: 480px) {
  .top__in { gap: .5rem; }
  .brand { letter-spacing: .14em; font-size: .8rem; }
  .nav { gap: .65rem; }
  .nav a { font-size: .95rem; letter-spacing: .06em; }
  .kontrast { width: 36px; height: 36px; margin-right: -6px; }
}
@media (max-width: 384px) {
  .nav li:first-child { display: none; }
}
@media (max-width: 310px) {
  .top__in { gap: .4rem; }
  .brand { letter-spacing: .06em; font-size: .72rem; }
  .nav { gap: .5rem; }
  .nav a { font-size: .88rem; letter-spacing: .04em; }
  .kontrast { width: 34px; height: 34px; }
}
@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;
}
html[data-kontrast="hoch"] img, html[data-kontrast="hoch"] video { filter: grayscale(1) contrast(1.35) !important; }
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"] .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; }
