/* ===========================================================================
   Die Weiße Sphäre – Stylesheet
   Farben und Schriften aus dem Cover: Weltraum-Nacht, Gold/Rot/Blau als
   Sphären-Akzente, Weiß als Ziel (Kaufknopf, Countdown-Null).
   Die Seite ist bewusst dunkel; nur die Leseprobe kennt einen hellen Modus.
   Schriften selbst gehostet (keine Google-Fonts-Einbindung).
   =========================================================================== */

@font-face { font-family: "Lexend Zetta"; src: url("../fonts/lexend-zetta.woff2") format("woff2"); font-weight: 100 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Lexend"; src: url("../fonts/lexend.woff2") format("woff2"); font-weight: 200 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Literata"; src: url("../fonts/literata.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Literata"; src: url("../fonts/literata-kursiv.woff2") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }

:root {
  --nacht: #070a14;
  --nacht-licht: #141c3d;
  --flaeche: rgba(255, 255, 255, .04);
  --linie: rgba(255, 255, 255, .12);
  --text: #ebe7df;
  --text-leise: #a4a3b0;
  --weiss: #ffffff;
  --gold: #f3b640; --gold-rgb: 243, 182, 64;
  --rot:  #e04a33; --rot-rgb:  224, 74, 51;
  --blau: #63c1cc; --blau-rgb: 99, 193, 204;

  --schrift-titel: "Lexend Zetta", "Lexend", system-ui, sans-serif;
  --schrift-ui: "Lexend", system-ui, -apple-system, "Segoe UI", sans-serif;
  --schrift-lesen: "Literata", Georgia, "Times New Roman", serif;

  --breite: 72rem;
  --rand: clamp(1rem, 4vw, 2.5rem);
  color-scheme: dark;
}

/* Heller Lesemodus der Leseprobe: dieselben Rollen, Papier statt Nacht */
:root[data-lesemodus="hell"] {
  --nacht: #f4efe6;
  --nacht-licht: #f4efe6;
  --flaeche: rgba(42, 37, 31, .04);
  --linie: rgba(42, 37, 31, .14);
  --text: #2a251f;
  --text-leise: #6e675d;
  --weiss: #1d1a16;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(ellipse 90% 50% at 50% 0%, var(--nacht-licht) 0%, transparent 70%) no-repeat, var(--nacht);
  color: var(--text);
  font-family: var(--schrift-ui);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.65;
}

/* Sternenhimmel – zwei versetzte Kacheln, damit sich kein Muster aufdrängt */
body::before, body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
body::before {
  background-image:
    radial-gradient(1px 1px at 20px 30px, rgba(255,255,255,.8), transparent),
    radial-gradient(1px 1px at 140px 90px, rgba(255,255,255,.5), transparent),
    radial-gradient(1.5px 1.5px at 230px 170px, rgba(255,255,255,.65), transparent),
    radial-gradient(1px 1px at 90px 210px, rgba(255,255,255,.4), transparent),
    radial-gradient(1px 1px at 300px 40px, rgba(255,255,255,.55), transparent),
    radial-gradient(1.5px 1.5px at 380px 250px, rgba(255,240,210,.6), transparent);
  background-size: 410px 290px;
  opacity: .55;
}
body::after {
  background-image:
    radial-gradient(1px 1px at 60px 120px, rgba(190,210,255,.6), transparent),
    radial-gradient(1px 1px at 250px 60px, rgba(255,255,255,.45), transparent),
    radial-gradient(1px 1px at 430px 300px, rgba(255,255,255,.5), transparent),
    radial-gradient(1.5px 1.5px at 170px 330px, rgba(255,255,255,.4), transparent);
  background-size: 530px 370px;
  opacity: .4;
}
:root[data-lesemodus="hell"] body::before,
:root[data-lesemodus="hell"] body::after { display: none; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: rgba(var(--gold-rgb), .6); text-underline-offset: .22em; }
a:hover { color: var(--weiss); text-decoration-color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
[hidden] { display: none !important; }
p { margin: 0 0 1.1em; }

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

.huelle { width: 100%; max-width: var(--breite); margin-inline: auto; padding-inline: var(--rand); }
.schmal { max-width: 42rem; }
.zentriert { text-align: center; }
.leise { color: var(--text-leise); }
.klein { font-size: .88rem; }

/* Platzhalter im Entwurf – vor dem Livegang ersetzen */
.platzhalter {
  display: inline-block;
  border: 1px dashed rgba(var(--gold-rgb), .7);
  color: var(--gold);
  border-radius: 4px;
  padding: .05em .45em;
  font-size: .9em;
}

/* --- Typografie --- */
.kicker {
  font-family: var(--schrift-titel);
  font-size: .7rem;
  font-weight: 300;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--text-leise);
  margin: 0 0 1rem;
}
h1, h2, h3 { color: var(--weiss); }
.titel {
  font-family: var(--schrift-titel);
  font-weight: 200;
  font-size: clamp(1.45rem, 3.4vw, 2.4rem);
  letter-spacing: .12em;
  line-height: 1.3;
  text-transform: uppercase;
  margin: 0;
}
.tagline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1rem 0 2.5rem;
  font-family: var(--schrift-titel);
  font-weight: 200;
  font-size: clamp(.7rem, 1.4vw, .9rem);
  letter-spacing: .45em;
  text-transform: uppercase;
}
.tagline span { margin-right: -.45em; } /* Sperrung hinter dem letzten Buchstaben ausgleichen */
.tagline::before, .tagline::after {
  content: "";
  height: 1px;
  width: clamp(1.5rem, 5vw, 3.5rem);
  background: linear-gradient(90deg, transparent, var(--rot));
}
.tagline::after { background: linear-gradient(90deg, var(--rot), transparent); }

h2 {
  font-family: var(--schrift-titel);
  font-weight: 300;
  font-size: clamp(.95rem, 2.2vw, 1.3rem);
  letter-spacing: .16em;
  line-height: 1.45;
  text-transform: uppercase;
  margin: 0 0 1.75rem;
}
h3 { font-weight: 500; font-size: 1.05rem; margin: 2rem 0 .5rem; }

/* --- Kopf und Fuß --- */
.kopf { padding-block: 1.1rem; border-bottom: 1px solid var(--linie); }
.kopf .huelle {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .6rem 2rem;
}
.marke {
  font-family: var(--schrift-titel);
  font-weight: 300;
  font-size: .75rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.navi { display: flex; flex-wrap: wrap; gap: .2rem 1.4rem; font-size: .92rem; }
.navi a {
  color: var(--text-leise);
  text-decoration: none;
  padding-block: .2rem;
  border-bottom: 1px solid transparent;
}
.navi a:hover, .navi a[aria-current="page"] { color: var(--text); border-bottom-color: var(--gold); }

main { flex: 1; }

.fuss { border-top: 1px solid var(--linie); padding-block: 2.5rem; font-size: .88rem; color: var(--text-leise); }
.fuss .huelle { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; justify-content: space-between; }
.fuss p { margin: 0 0 .4rem; }
.fuss nav { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; align-content: flex-start; }
.fuss a { color: var(--text-leise); }
.fuss a:hover { color: var(--text); }

/* --- Knöpfe --- */
.knoepfe { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }
.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45em;
  min-height: 2.9rem;
  padding: .55rem 1.35rem;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 400;
  font-size: .95rem;
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, box-shadow .2s;
}
:root[data-lesemodus="hell"] .knopf { border-color: var(--linie); }
.knopf:hover { border-color: var(--weiss); color: var(--weiss); background: var(--flaeche); }
.knopf-haupt { background: var(--weiss); border-color: var(--weiss); color: var(--nacht); font-weight: 500; box-shadow: 0 0 32px rgba(255, 255, 255, .16); }
.knopf-haupt:hover { background: var(--weiss); color: var(--nacht); box-shadow: 0 0 46px rgba(255, 255, 255, .32); }
.knopf.folgt { opacity: .5; cursor: default; border-style: dashed; }
.knopf.folgt:hover { background: transparent; color: var(--text); border-color: rgba(255, 255, 255, .32); }
.knopf small { font-size: .78em; color: var(--text-leise); font-weight: 300; }

.kaufen { display: grid; gap: .5rem; margin-top: 2rem; }
.kaufen-label {
  font-family: var(--schrift-titel);
  font-size: .64rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--text-leise);
  margin: 1rem 0 .2rem;
}
.kaufen-label:first-child { margin-top: 0; }

/* --- Hero --- */
.hero { padding-block: clamp(2rem, 6vw, 5rem); }
.hero .huelle {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.cover {
  width: 100%;
  max-width: 26rem;
  margin-inline: auto;
  border-radius: 3px;
  box-shadow: 0 34px 90px -24px rgba(0, 0, 0, .95), 0 0 0 1px rgba(255, 255, 255, .06);
}
.hero-text { text-align: center; }

/* --- Countdown: drei Sphären --- */
.countdown { max-width: 22rem; margin-inline: auto; }
.sphaeren { position: relative; width: 100%; aspect-ratio: 1 / .93; --naehe: 0; }
.sphaere {
  position: absolute;
  width: 56%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--rgb), .16) 0%, rgba(var(--rgb), .05) 55%, transparent 71%);
  mix-blend-mode: screen;
  transition: transform 1s linear;
}
.sphaere svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  transform: rotate(-90deg);
  filter: drop-shadow(0 0 4px rgba(var(--rgb), .85));
}
.sphaere .spur { fill: none; stroke: rgba(var(--rgb), .2); stroke-width: 1; }
.sphaere .wert { fill: none; stroke: var(--farbe); stroke-width: 1.6; stroke-linecap: round; transition: stroke-dashoffset .9s linear; }
.gold { --farbe: var(--gold); --rgb: var(--gold-rgb); left: 22%; top: 0;    transform: translate(0, calc(var(--naehe) * 11%)); }
.rot  { --farbe: var(--rot);  --rgb: var(--rot-rgb);  left: 0;   bottom: 0; transform: translate(calc(var(--naehe) * 10%), calc(var(--naehe) * -5.5%)); }
.blau { --farbe: var(--blau); --rgb: var(--blau-rgb); right: 0;  bottom: 0; transform: translate(calc(var(--naehe) * -10%), calc(var(--naehe) * -5.5%)); }

.anzeige {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  margin: 0;
  line-height: 1;
  text-align: center;
  transition: opacity .6s;
}
.gold .anzeige { --x: 50%; --y: 38%; }
.rot .anzeige  { --x: 37%; --y: 60%; }
.blau .anzeige { --x: 63%; --y: 60%; }
.zahl {
  display: block;
  font-family: var(--schrift-titel);
  font-weight: 200;
  font-size: clamp(1.5rem, 6vw, 2.1rem);
  color: #fff;
}
.einheit {
  display: block;
  margin-top: .5rem;
  font-family: var(--schrift-titel);
  font-size: .55rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--farbe);
}
.kern {
  position: absolute;
  left: 50%;
  top: 56.6%;
  width: 22%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, rgba(255,255,255,.55) 18%, rgba(255,255,255,.12) 45%, transparent 70%);
  transform: translate(-50%, -50%) scale(calc(.6 + var(--naehe) * .6));
  opacity: calc(.25 + var(--naehe) * .75);
  mix-blend-mode: screen;
  pointer-events: none;
}
/* Countdown-Null: die Sphären verschmelzen zum weißen Kern */
.vereint .sphaere { transition: transform 2.4s cubic-bezier(.6, 0, .4, 1), opacity 2.4s; }
.vereint .gold { transform: translate(0, 44%) scale(.55); }
.vereint .rot  { transform: translate(39%, -22%) scale(.55); }
.vereint .blau { transform: translate(-39%, -22%) scale(.55); }
.vereint .anzeige { opacity: 0; }
.vereint .kern { transition: transform 2.4s, opacity 2.4s; transform: translate(-50%, -50%) scale(4); opacity: 1; }

.countdown-datum {
  font-family: var(--schrift-titel);
  font-weight: 300;
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--text);
  margin: 1.5rem 0 0;
}
.countdown-datum small {
  display: block;
  margin-bottom: .35rem;
  font-family: var(--schrift-ui);
  font-size: .85rem;
  letter-spacing: .02em;
  text-transform: none;
  color: var(--text-leise);
}

/* Erschienen (Phase C) */
.weisse-sphaere {
  width: 7rem;
  aspect-ratio: 1;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, rgba(255,255,255,.7) 16%, rgba(255,255,255,.14) 42%, transparent 70%);
}
.erschienen {
  font-family: var(--schrift-titel);
  font-weight: 200;
  font-size: clamp(.85rem, 2vw, 1.05rem);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #fff;
  margin: 0;
}

/* --- Abschnitte --- */
.abschnitt { padding-block: clamp(3rem, 8vw, 6rem); border-top: 1px solid var(--linie); }
.seitenkopf { padding-block: clamp(2.5rem, 6vw, 4.5rem) 0; }
.seitenkopf + .abschnitt { border-top: 0; }

.hook {
  font-weight: 500;
  font-size: clamp(1.45rem, 4vw, 2.2rem);
  line-height: 1.3;
  color: var(--weiss);
  margin: 0 0 2.25rem;
}
.hook span { display: block; margin-top: .35em; }
.klappentext p { margin-bottom: 1.15em; text-wrap: balance; }
.hook, .zentriert p { text-wrap: balance; }
.prosa p { text-wrap: pretty; }
.klappentext .fragen { margin-block: 2rem; }
.klappentext .fragen p { margin-bottom: .7em; color: var(--text); }
.genre { font-size: .9rem; color: var(--text-leise); margin: 2.25rem 0 1.75rem; }

/* --- Prosa (Leseprobe) --- */
.prosa {
  font-family: var(--schrift-lesen);
  font-size: clamp(1.05rem, 1.8vw, 1.17rem);
  font-weight: 400;
  line-height: 1.72;
  -webkit-hyphens: auto;
  hyphens: auto;
  text-align: left;
}
.prosa p { margin: 0; text-indent: 1.4em; }
.prosa p:first-child,
.prosa h2 + p, .prosa h3 + p,
.prosa .szenentrenner + p,
.prosa blockquote + p { text-indent: 0; }
.prosa em { font-style: italic; }
.teaser { position: relative; max-height: 23rem; overflow: hidden; margin-bottom: 2rem; }
.teaser::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 11rem;
  background: linear-gradient(rgba(7, 10, 20, 0), var(--nacht));
}
.du-zeile { font-size: .95rem; color: var(--text-leise); margin: -.75rem 0 2.25rem; }

/* --- Das Buch --- */
.buch-kopf {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: center;
}
.buch-kopf .cover { max-width: 19rem; }
.fakten { display: grid; grid-template-columns: max-content 1fr; gap: .55rem 1.5rem; margin: 2rem 0 0; text-align: left; }
.fakten dt { color: var(--text-leise); font-size: .9rem; padding-top: .1rem; }
.fakten dd { margin: 0; }

.du-bist-es { font-family: var(--schrift-lesen); font-size: clamp(2rem, 7vw, 3.4rem); font-weight: 400; color: var(--weiss); line-height: 1.15; margin: 0 0 1.5rem; }

details summary { cursor: pointer; font-weight: 400; color: var(--text); }
details[open] summary { margin-bottom: .75rem; }

/* --- Leseprobe --- */
.leseprobe-kopf { text-align: center; padding-block: clamp(2.5rem, 6vw, 4rem) 1rem; }
.leseprobe-kopf .knopf { margin-top: 1.25rem; min-height: 2.4rem; font-size: .85rem; padding-inline: 1rem; }
.leseprobe { max-width: 36rem; margin-inline: auto; padding-bottom: 2rem; }
.leseprobe h2 {
  font-family: var(--schrift-titel);
  font-weight: 300;
  font-size: clamp(.95rem, 2.4vw, 1.2rem);
  letter-spacing: .14em;
  text-align: center;
  margin: 5.5rem 0 2.5rem;
  -webkit-hyphens: manual;
  hyphens: manual;
}
.leseprobe section:first-child h2 { margin-top: 2rem; }
/* Sphärentitel (h2 + Untertitel h3 + Motto) */
.leseprobe section:has(> section > h3) { padding-block: 3rem 1rem; text-align: center; }
.leseprobe section:has(> section > h3) > h2 { color: var(--gold); }
.leseprobe h3 { font-family: var(--schrift-lesen); font-style: italic; font-weight: 400; font-size: 1.2rem; text-align: center; margin: -1.5rem 0 1.5rem; }
.leseprobe blockquote { margin: 0 auto; font-style: italic; color: var(--text-leise); }
.leseprobe blockquote p { text-indent: 0; text-align: center; }
.leseprobe .szenentrenner { text-align: center; text-indent: 0; margin: 1.6em 0; color: var(--text-leise); }
.leseprobe-ende { max-width: 36rem; margin: 3rem auto 0; padding-block: 3rem 5rem; border-top: 1px solid var(--linie); text-align: center; }

/* --- Autor --- */
.autor-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: clamp(2rem, 6vw, 4rem); align-items: start; }
.foto-platzhalter {
  width: 100%;
  aspect-ratio: 4 / 5;
  max-width: 20rem;
  margin-inline: auto;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(var(--gold-rgb), .6);
  border-radius: 8px;
  color: var(--gold);
  font-size: .9rem;
}
.zitat { font-family: var(--schrift-lesen); font-style: italic; font-size: 1.25rem; line-height: 1.5; color: var(--weiss); border-left: 2px solid var(--gold); padding-left: 1.25rem; margin: 2rem 0; }

.termin { border: 1px solid var(--linie); border-radius: 10px; padding: 1.25rem 1.4rem; background: var(--flaeche); }
.termin .datum { font-family: var(--schrift-titel); font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-bottom: .4rem; }
.termin p:last-child { margin-bottom: 0; }

/* --- Presse --- */
.textblock { border: 1px solid var(--linie); border-radius: 10px; padding: 1.25rem 1.5rem; background: var(--flaeche); text-align: left; }
.textblock p:last-child { margin-bottom: 0; }
.downloads { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.downloads li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; padding: .8rem 0; border-bottom: 1px solid var(--linie); }

/* --- Nach dem Lesen --- */
.turm { position: relative; max-height: 30rem; overflow: hidden; }
.turm img {
  width: 100%;
  height: 30rem;
  object-fit: cover;
  object-position: 50% 12%;
  -webkit-mask-image: linear-gradient(#000 55%, transparent);
  mask-image: linear-gradient(#000 55%, transparent);
}
details.spoiler > summary {
  list-style: none;
  display: inline-flex;
  margin: 1rem auto 0;
}
details.spoiler > summary::-webkit-details-marker { display: none; }
details.spoiler[open] > summary { display: none; }
.fragen-liste { padding-left: 1.4rem; text-align: left; }
.fragen-liste li { margin-bottom: 1.1rem; padding-left: .3rem; }

/* --- Vorschau-Hinweis (nur mit ?datum=…) --- */
.vorschau-hinweis {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 10;
  padding: .4rem .85rem;
  border-radius: 999px;
  background: var(--gold);
  color: #1a1200;
  font-size: .8rem;
  font-weight: 500;
}

/* --- Schmale Bildschirme --- */
@media (max-width: 48rem) {
  .hero .huelle, .buch-kopf, .autor-grid { grid-template-columns: minmax(0, 1fr); }
  .cover { max-width: 16rem; }
  .buch-kopf .cover { max-width: 14rem; }
  .buch-kopf > div { text-align: center; }
}
@media (max-width: 30rem) {
  .fakten { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .fakten dd { margin-bottom: .75rem; }
  .kopf .huelle { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
