/*
 * Einunddreißig — ein kleines Buch zum Geburtstag.
 *
 * Gestaltung: ruhiges Editorial-Design auf warmem Papier.
 * Eine Serif (Fraunces), eine Grotesk (DM Sans), eine Akzentfarbe.
 * Die Seite beginnt bei Tageslicht und endet in der Nacht —
 * das ist der einzige große Effekt, alles andere ist Typografie.
 */

:root {
  --paper: #f4f0e6;
  --paper-2: #ece6d7;
  --ink: #211d16;
  --ink-70: rgba(33, 29, 22, 0.72);
  --ink-45: rgba(33, 29, 22, 0.46);
  --line: rgba(33, 29, 22, 0.16);
  --accent: #b1502f;

  --night: #14111a;
  --night-ink: #ece6d7;
  --night-70: rgba(236, 230, 215, 0.68);
  --night-45: rgba(236, 230, 215, 0.42);
  --night-line: rgba(236, 230, 215, 0.18);
  --flame: #e8b163;

  --serif: "Fraunces", "Georgia", serif;
  --sans: "DM Sans", "Helvetica Neue", sans-serif;

  --content: 68rem;
  --pad: clamp(1.4rem, 5vw, 4rem);
}

/* Wer sein System auf dunkel stellt, liest das Buch bei Nacht */
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #17141d;
    --paper-2: #201b2a;
    --ink: #ece6d7;
    --ink-70: rgba(236, 230, 215, 0.74);
    --ink-45: rgba(236, 230, 215, 0.48);
    --line: rgba(236, 230, 215, 0.17);
    --accent: #d0764f;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.02rem;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-locked {
  overflow: hidden;
  height: 100vh;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-optical-sizing: auto;
  margin: 0;
}

p {
  margin: 0;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Papierkorn: ein Hauch Textur, kaum sichtbar ---------- */

.grain {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Kleine Wiederkehrer ---------- */

.kicker,
.chapter-mark {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-45);
}

.chapter-mark {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 2.2rem;
}

.chapter-mark::before {
  content: "";
  width: 2.4rem;
  height: 1px;
  background: var(--line);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.2s;
}

.chapter-mark.is-visible::before {
  transform: scaleX(1);
}

body.motion-off .chapter-mark::before {
  transform: none;
  transition: none;
}

.chapter-mark span {
  color: var(--accent);
}

.ghost-button {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  padding: 0.95em 2.4em;
  border: 1px solid var(--ink);
  border-radius: 999px;
  transition: color 0.4s ease;
}

.ghost-button::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: var(--ink);
  transform: translateY(102%);
  transition: transform 0.5s cubic-bezier(0.65, 0.05, 0, 1);
}

.ghost-button:hover {
  color: var(--paper);
}

.ghost-button:hover::before {
  transform: translateY(0);
}

.ghost-button--light {
  border-color: var(--night-45);
  color: var(--night-ink);
}

.ghost-button--light::before {
  background: var(--night-ink);
}

.ghost-button--light:hover {
  color: var(--night);
}

/* ---------- Umschlag ---------- */

.cover {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  background: var(--paper);
  text-align: center;
  padding: var(--pad);
}

.cover__kicker {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-45);
  margin-bottom: 2.2rem;
}

.cover__name {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  line-height: 1.1;
  margin-bottom: 2.4rem;
}

.cover__name em {
  font-style: italic;
  color: var(--accent);
}

.cover__rule {
  display: block;
  width: 3rem;
  height: 1px;
  background: var(--line);
  margin: 0 auto 2.4rem;
}

.cover__hint {
  display: block;
  max-width: 26rem;
  margin: 2.6rem auto 0;
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--ink-45);
}

/* ---------- Fortschritt & Kopfzeile ---------- */

.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 55;
}

.progress i {
  display: block;
  height: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem var(--pad);
  /* difference gegen Papier ergibt Tinte, gegen Nacht ergibt Papier —
     die Kopfzeile bleibt so in beiden Welten lesbar. */
  mix-blend-mode: difference;
  color: var(--paper);
  pointer-events: none;
  opacity: 0;
  transform: translateY(-0.6rem);
  transition: opacity 0.9s ease 0.5s, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.5s;
}

body.is-open .topbar {
  opacity: 1;
  transform: none;
}

.topbar > * {
  pointer-events: auto;
}

.wordmark {
  font-family: var(--serif);
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.wordmark span {
  opacity: 0.55;
}

/* ---------- Titelblatt ---------- */

main {
  overflow-x: clip;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--pad) + 2rem) var(--pad) var(--pad);
  background: var(--paper);
  overflow: hidden;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Kleine ✳ rahmen das Titelblatt wie gesetzte Schmuckzeichen. */
.hero__dust {
  position: absolute;
  font-size: 1rem;
  color: var(--accent);
  opacity: 0.35;
  pointer-events: none;
}

.hero__dust--a { left: 16%; top: 24%; }
.hero__dust--b { right: 14%; top: 38%; font-size: 0.8rem; }
.hero__dust--c { left: 22%; bottom: 20%; font-size: 0.7rem; }

/* Handgezeichnete Unterstreichung */
.scribble {
  position: relative;
  white-space: nowrap;
}

.scribble svg {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.45em;
  width: 100%;
  height: 0.5em;
  overflow: visible;
}

.scribble svg path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.2;
  stroke-linecap: round;
  opacity: 0.85;
}

.hero__num {
  font-family: var(--serif);
  font-weight: 330;
  font-size: clamp(11rem, 34vw, 24rem);
  line-height: 0.86;
  letter-spacing: -0.045em;
  margin: 1rem 0 1.6rem;
  display: flex;
}

.hero__num .mask {
  display: inline-block;
  overflow: hidden;
}

.hero__num .mask > span {
  display: inline-block;
}

.hero__title {
  font-size: clamp(1.5rem, 3.4vw, 2.3rem);
  margin-bottom: 1.2rem;
}

.hero__title em {
  font-style: italic;
  color: var(--accent);
}

.hero__lead {
  max-width: 32em;
  color: var(--ink-70);
}

/* ---------- Kapitel-Gerüst ---------- */

.chapter,
.interlude,
.dusk {
  max-width: var(--content);
  margin: 0 auto;
  padding: clamp(6rem, 16vh, 10rem) var(--pad);
}

.chapter {
  position: relative;
}

/* Sternbilder im Hintergrund der Kapitel */
.bg-constellation {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  height: auto;
  aspect-ratio: 1;
}

.bg-constellation polyline {
  fill: none;
  stroke: var(--ink);
  stroke-opacity: 0.22;
  stroke-width: 0.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bg-constellation circle {
  fill: var(--ink);
  fill-opacity: 0.45;
}

.bg-constellation circle.bright {
  fill: var(--accent);
  fill-opacity: 0.85;
}

.night .bg-constellation polyline {
  stroke: var(--night-ink);
  stroke-opacity: 0.3;
}

.night .bg-constellation circle {
  fill: var(--night-ink);
  fill-opacity: 0.7;
}

.night .bg-constellation circle.bright {
  fill: var(--flame);
}

.interlude,
.epilogue {
  position: relative;
}

/* Riesige Geister-Ziffern hinter den Kapiteln */
.act-numeral {
  position: absolute;
  top: 3rem;
  right: -2rem;
  z-index: -1;
  font-family: var(--serif);
  font-size: clamp(15rem, 28vw, 24rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--line);
  pointer-events: none;
  user-select: none;
}

.act-numeral--left {
  right: auto;
  left: -2rem;
}

.night .act-numeral {
  -webkit-text-stroke-color: var(--night-line);
  opacity: 0.6;
}

.chapter-head {
  max-width: 46rem;
  margin-bottom: clamp(3rem, 8vh, 5rem);
}

.chapter-head h2 {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.14;
  letter-spacing: -0.01em;
}

.chapter-head h2 em {
  font-style: italic;
  color: var(--accent);
}

.chapter-lede {
  margin-top: 1.6rem;
  max-width: 36em;
  color: var(--ink-70);
}

/* Zeilenmasken für die Überschriften-Reveals */
.split-mask {
  display: block;
  overflow: hidden;
}

/* ---------- Kapitel I — Vorwort ---------- */

.prolog__copy {
  max-width: 34rem;
  margin-left: auto;
  display: grid;
  gap: 1.4rem;
  color: var(--ink-70);
}

/* Gepinnt schreibt sich der Text Wort für Wort frei */
body.motion-on .prolog {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ---------- Kapitel II — Erinnerungen (Horizontal-Galerie) ---------- */

.mem-viewport {
  overflow: hidden;
  margin: 0 calc(-1 * var(--pad));
  padding: 0 var(--pad);
}

.mem-track {
  display: flex;
  flex-direction: column;
  gap: clamp(3rem, 8vh, 5rem);
  will-change: transform;
}

body.motion-on .mem-track {
  flex-direction: row;
  align-items: stretch;
  gap: clamp(2.4rem, 5vw, 5rem);
}

.mem-panel {
  min-width: 0;
}

body.motion-on .mem-panel {
  flex: 0 0 auto;
  width: min(38rem, 70vw);
}

/* Gepinnt: Kopf + Galerie füllen genau eine Bildschirmhöhe */
body.motion-on .memories {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 3rem;
  padding-bottom: 2rem;
}

body.motion-on .memories .chapter-head {
  margin-bottom: clamp(1.6rem, 4vh, 3rem);
}

body.motion-on .mem-panel--quote {
  width: min(34rem, 62vw);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mem-panel--end {
  display: none;
}

body.motion-on .mem-panel--end {
  display: flex;
  align-items: center;
  width: min(26rem, 50vw);
}

.mem-panel--end p {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1.3;
}

.mem-panel--end em {
  font-style: italic;
  color: var(--accent);
}

.plate {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.plate__art {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--paper-2);
  border: 1px solid var(--line);
  background-size: cover;
  background-position: center;
  display: grid;
  place-items: center;
  padding: clamp(1.2rem, 3vw, 2.4rem);
}

body.motion-on .plate__art {
  aspect-ratio: 3 / 2;
}

.plate__art svg {
  width: min(100%, 24rem);
  height: auto;
}

.plate__art svg polyline {
  fill: none;
  stroke: var(--ink);
  stroke-width: 0.45;
  stroke-opacity: 0.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.plate__art svg circle {
  fill: var(--ink);
  fill-opacity: 0.75;
}

.plate__art svg circle.bright {
  fill: var(--accent);
  fill-opacity: 1;
}

.plate__caption {
  position: absolute;
  left: 1rem;
  bottom: 0.8rem;
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-45);
}

.plate--has-image .plate__caption {
  display: none;
}

.plate figcaption {
  padding-bottom: 0.4rem;
}

.plate__no {
  display: block;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.plate figcaption h3 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.2;
  margin-bottom: 0.8rem;
}

.plate figcaption p {
  color: var(--ink-70);
  max-width: 26em;
}

.pullquote {
  margin: 0 auto;
  max-width: 30em;
  text-align: center;
}

.pullquote p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.4;
}

.pullquote cite {
  display: block;
  margin-top: 1.4rem;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-45);
}

/* ---------- Laufschrift: Tinte in Bewegung ---------- */

.marquee {
  overflow: hidden;
  padding: clamp(4rem, 12vh, 8rem) 0 clamp(2rem, 5vh, 3rem);
  display: grid;
  gap: 0.6rem;
}

.marquee__row {
  white-space: nowrap;
}

.marquee__inner {
  display: inline-flex;
  align-items: baseline;
  gap: 2.6rem;
  padding-right: 2.6rem;
  will-change: transform;
}

.marquee span {
  font-family: var(--serif);
  font-size: clamp(3rem, 7vw, 5.6rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: transparent;
  -webkit-text-stroke: 1.2px var(--ink-70);
}

.marquee span.is-fill {
  font-style: italic;
  color: var(--accent);
  -webkit-text-stroke: 0px transparent;
}

.marquee i {
  font-style: normal;
  font-size: 1.5rem;
  color: var(--ink-45);
  align-self: center;
}

/* Ohne Motion: nur eine ruhige Zeile, nichts läuft */
body:not(.motion-on) .marquee {
  display: none;
}

/* ---------- Kapitel III — Gründe ---------- */

.reasons__grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.reasons__marker {
  position: sticky;
  top: 34vh;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.reasons__marker-no {
  display: flex;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(5rem, 10vw, 8.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.reasons__marker-bar {
  display: block;
  width: clamp(5rem, 9vw, 8rem);
  height: 2px;
  background: var(--line);
  margin: 1.1rem 0 0.7rem;
}

.reasons__marker-bar i {
  display: block;
  height: 100%;
  background: var(--accent);
  transform: scaleX(0.032);
  transform-origin: left;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Rollende Ziffern (wird per JS aufgebaut, nur mit Motion) */
.reasons__marker-no .odo {
  display: block;
  height: 1em;
  overflow: hidden;
}

.reasons__marker-no .odo__stack {
  display: block;
  will-change: transform;
}

.reasons__marker-no .odo__stack span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 1em;
}

/* Mit Motion übernimmt ein ScrollTrigger-Pin die Aufgabe von sticky
   (sticky funktioniert nicht innerhalb des transformierten Smoothers) */
body.motion-on .reasons__marker {
  position: relative;
  top: auto;
}

.reasons__marker-label {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-45);
}

.reasons__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.reason {
  position: relative;
  display: grid;
  grid-template-columns: 3.4rem minmax(0, 1fr);
  gap: 1.1rem;
  align-items: baseline;
  padding: 1.3rem 0 1.3rem 1.2rem;
  border-top: 1px solid var(--line);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Aktive Zeile: feiner Akzentbalken links */
.reason::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.9rem;
  bottom: 0.9rem;
  width: 2px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.reason.is-active::before {
  transform: scaleY(1);
}

body.motion-on .reason.is-active {
  transform: translateX(0.6rem);
}

.reason:first-child {
  border-top: none;
}

.reason__no {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--ink-45);
  font-variant-numeric: tabular-nums;
  transition: color 0.45s ease;
}

.reason p {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.45;
  color: var(--ink-45);
  transition: color 0.45s ease;
}

.reason.is-active .reason__no {
  color: var(--accent);
}

.reason.is-active p {
  color: var(--ink);
}

/* ---------- Zwischenspiel: Zahlen ---------- */

.interlude {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.6rem, 4vw, 3rem);
}

.stat {
  padding-top: 1.6rem;
  position: relative;
}

.stat::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.stat:nth-child(2)::before {
  transition-delay: 0.15s;
}

.stat:nth-child(3)::before {
  transition-delay: 0.3s;
}

.stat.is-visible::before {
  transform: scaleX(1);
}

body.motion-off .stat::before {
  transform: none;
  transition: none;
}

.stat span {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-45);
  margin-bottom: 1rem;
}

.stat strong {
  display: block;
  font-family: var(--serif);
  font-weight: 330;
  font-size: clamp(2.8rem, 6vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.9rem;
}

.stat p {
  font-size: 0.92rem;
  color: var(--ink-70);
  max-width: 22em;
}

/* ---------- Kapitel IV — Was noch kommt ---------- */

.futures {
  list-style: none;
  margin: 0;
  padding: 0;
}

.future-row {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr);
  gap: 1.4rem;
  align-items: baseline;
  padding: 1.8rem 0;
  border-top: 1px solid var(--line);
}

.future-row--last {
  border-bottom: 1px solid var(--line);
}

/* Schwebende Vorschau-Karte folgt dem Zeiger über der Liste */
.future-float {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 30;
  width: 15rem;
  padding: 1.2rem 1.4rem 1.3rem;
  background: var(--ink);
  color: var(--paper);
  pointer-events: none;
  opacity: 0;
  box-shadow: 0 26px 60px rgba(33, 29, 22, 0.35);
}

.future-float span {
  display: block;
  font-family: var(--serif);
  font-size: 2.2rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.2px var(--accent);
}

.future-float p {
  margin-top: 0.6rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.98rem;
  line-height: 1.5;
  color: rgba(244, 240, 230, 0.85);
}

.future-row__no {
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--ink-45);
  font-variant-numeric: tabular-nums;
  transition: color 0.35s ease;
}

.future-row__body h3 {
  position: relative;
  display: inline-block;
  padding-bottom: 3px;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  line-height: 1.25;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.future-row__body h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (hover: hover) {
  .future-row:hover .future-row__body h3::after {
    transform: scaleX(1);
  }
}

.future-row__body p {
  margin-top: 0.35rem;
  color: var(--ink-45);
  transition: color 0.35s ease;
}

@media (hover: hover) {
  .future-row:hover .future-row__no {
    color: var(--accent);
  }
  .future-row:hover .future-row__body h3 {
    transform: translateX(0.5rem);
  }
  .future-row:hover .future-row__body p {
    color: var(--ink-70);
  }
}

/* ---------- Liebeserklärung vor dem Wunsch ---------- */

/*
 * Ohne Motion: Die Aussage steht direkt im dunklen Kerzenraum.
 * Mit Motion öffnet sich dieser Raum als große, weiche Iris aus dem Papier.
 */
.dusk {
  max-width: none;
  padding: 0;
  background: radial-gradient(circle at 50% 44%, #4b3344 0%, #251b2a 48%, var(--night) 100%);
}

.dusk__pin {
  position: relative;
  min-height: 130vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.dusk__sky {
  display: none;
}

body.motion-on .dusk {
  background: var(--paper);
}

body.motion-on .dusk__pin {
  min-height: 0;
  height: 100svh;
}

body.motion-on .dusk__sky {
  display: block;
  position: absolute;
  inset: 0;
  opacity: 0;
}

.dusk__sky--evening {
  background:
    radial-gradient(circle at 50% 48%, rgba(228, 154, 150, 0.25), transparent 34%),
    linear-gradient(135deg, #f4f0e6 0%, #eadfce 48%, #cba8a6 100%);
}

.dusk__sky--night {
  background: linear-gradient(to bottom, #251d31 0%, var(--night) 72%);
}

.dusk__iris {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 32vmax;
  aspect-ratio: 1;
  border-radius: 50%;
  translate: -50% -50%;
  background:
    radial-gradient(circle at 46% 42%, rgba(96, 51, 69, 0.96), #332235 48%, #17121d 78%);
  box-shadow: 0 0 90px 25px rgba(88, 48, 70, 0.2);
}

.dusk__halo {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(61vmin, 39rem);
  aspect-ratio: 1;
  translate: -50% -50%;
  border: 1px solid rgba(247, 222, 190, 0.24);
  border-radius: 50%;
  box-shadow:
    0 0 0 3.5rem rgba(247, 222, 190, 0.025),
    0 0 110px 15px rgba(228, 154, 150, 0.12);
  opacity: 0.42;
}

body.motion-on .dusk__iris,
body.motion-on .dusk__halo {
  will-change: transform, opacity;
}

.dusk__stars {
  display: none;
}

body.motion-on .dusk__stars {
  display: block;
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.dusk__copy {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  padding: var(--pad);
  max-width: 78rem;
}

.dusk__eyebrow {
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(253, 246, 233, 0.68);
}

.dusk__line {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(2.15rem, 5.2vw, 5rem);
  line-height: 1.06;
  color: #fdf6e9;
  text-shadow: 0 1px 30px rgba(40, 25, 45, 0.35);
}

.dusk__sub {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(253, 246, 233, 0.75);
  max-width: 34rem;
  line-height: 1.7;
}

/* ---------- Die Nacht ---------- */

.night {
  position: relative;
  background: var(--night);
  color: var(--night-ink);
}

.night__stars {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.night__stars i,
.dusk__stars i {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--night-ink);
  opacity: 0.5;
}

.night .chapter-mark {
  color: var(--night-45);
}

.night .chapter-mark::before {
  background: var(--night-line);
}

.night .chapter-mark span {
  color: var(--flame);
}

.night .chapter-head h2 em {
  color: var(--flame);
}

.night .chapter-lede {
  color: var(--night-70);
}

/* ---------- Finale: Kerzen ---------- */

.finale {
  position: relative;
  text-align: center;
}

.finale .chapter-head {
  margin-left: auto;
  margin-right: auto;
}

.finale .chapter-mark {
  justify-content: center;
}

.finale .chapter-lede {
  margin-left: auto;
  margin-right: auto;
}

.candles {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 4.5rem;
  margin: clamp(3rem, 8vh, 5rem) auto 0;
  max-width: 22rem;
  padding-bottom: 1px;
  border-bottom: 1px solid var(--night-line);
}

/* Warmer Lichtschein, solange die Kerzen brennen */
.candles::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -40px;
  width: 360px;
  max-width: 90vw;
  height: 170px;
  transform: translateX(-50%);
  background: radial-gradient(
    50% 60% at 50% 40%,
    rgba(232, 177, 99, 0.16),
    transparent 70%
  );
  pointer-events: none;
  transition: opacity 1.4s ease;
}

.candles.is-dark::before {
  opacity: 0;
}

.candle {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3rem 1.2rem 0;
}

.candle__stem {
  width: 13px;
  height: 108px;
  background: linear-gradient(to right, #d9cfb9, #f2ead6 45%, #cfc4ab);
  border-radius: 3px 3px 0 0;
}

.candle--tall .candle__stem {
  height: 140px;
}

.candle__stem::before {
  /* Docht */
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 9px;
  background: #4b4234;
}

.candle__sway {
  position: absolute;
  top: -32px;
  left: 50%;
  width: 17px;
  height: 30px;
  margin-left: -8.5px;
  transform-origin: 50% 100%;
}

.candle__flame {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
  background: radial-gradient(
    50% 62% at 50% 68%,
    #fff7dd 0%,
    #f7cd7c 48%,
    rgba(226, 138, 64, 0.9) 76%,
    rgba(226, 138, 64, 0) 100%
  );
  transform-origin: 50% 90%;
  transition: transform 0.45s ease, opacity 0.45s ease;
}

.candle__glow {
  position: absolute;
  top: -66px;
  left: 50%;
  translate: -50% 0;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(232, 177, 99, 0.28), transparent);
  transition: opacity 0.6s ease;
}

.finale.is-active .candle__flame {
  animation: flicker 1.9s ease-in-out infinite;
}

.finale.is-active .candle__glow {
  animation: glowpulse 1.9s ease-in-out infinite;
}

@keyframes flicker {
  0%, 100% { transform: rotate(-1.6deg) scaleY(1); }
  30% { transform: rotate(1.8deg) scaleY(1.06); }
  60% { transform: rotate(-1deg) scaleY(0.96); }
}

@keyframes glowpulse {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

.candle__smoke {
  position: absolute;
  top: -46px;
  left: 50%;
  width: 1.5px;
  height: 34px;
  background: linear-gradient(to top, rgba(236, 230, 215, 0.5), transparent);
  opacity: 0;
}

.candle__num {
  margin-top: 0.9rem;
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--flame);
  text-shadow: 0 0 14px rgba(232, 177, 99, 0.45);
  transition: color 0.9s ease, text-shadow 0.9s ease;
}

.candle.is-out .candle__num {
  color: var(--night-45);
  text-shadow: none;
}

.candle.is-out .candle__flame {
  transform: scale(0.2);
  opacity: 0;
  animation: none;
}

/* Funken beim Wunsch */
.spark {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--flame);
  pointer-events: none;
}

.wish-ring {
  position: absolute;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border: 1.5px solid var(--flame);
  border-radius: 50%;
  pointer-events: none;
}

/* Der Wunsch-Moment: kurz wird es ganz dunkel — mit Kino-Vignette */
.wish-blackout {
  position: fixed;
  inset: 0;
  z-index: 52;
  background: radial-gradient(
    circle at 50% 42%,
    rgba(10, 8, 16, 0.82) 0%,
    #0a0810 68%
  );
  opacity: 0;
  pointer-events: none;
}

/* Sternschnuppen über dem ganzen Himmel */
.shooting-layer {
  position: fixed;
  inset: 0;
  z-index: 53;
  pointer-events: none;
  overflow: hidden;
}

/* Ein Meteor: Container zeigt exakt in Flugrichtung,
   der Schweif zieht nach hinten, der Kopf glüht vorn. */
.meteor {
  position: absolute;
  height: 2px;
  pointer-events: none;
  will-change: transform, opacity;
}

.meteor__trail {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 160px;
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(247, 222, 160, 0.12) 30%,
    rgba(251, 238, 203, 0.7) 82%,
    #ffffff
  );
}

.meteor__head {
  position: absolute;
  right: -3px;
  top: 50%;
  width: 5px;
  height: 5px;
  margin-top: -2.5px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 6px 1px #fff7dd, 0 0 18px 4px rgba(232, 177, 99, 0.75);
}

.meteor--dim .meteor__trail {
  opacity: 0.45;
}

.meteor--dim .meteor__head {
  box-shadow: 0 0 4px 1px rgba(255, 247, 221, 0.6);
}

.meteor--big {
  height: 3px;
}

.meteor--big .meteor__head {
  width: 8px;
  height: 8px;
  margin-top: -4px;
  box-shadow: 0 0 10px 2px #fff7dd, 0 0 34px 9px rgba(232, 177, 99, 0.85);
}

.meteor-spark {
  position: absolute;
  width: 2.5px;
  height: 2.5px;
  border-radius: 50%;
  background: #f7e8c8;
  box-shadow: 0 0 6px rgba(247, 222, 160, 0.9);
  pointer-events: none;
}

.candle.is-out .candle__glow {
  opacity: 0;
  animation: none;
}

.candle.is-out .candle__smoke {
  animation: smoke 2.6s ease-out forwards;
}

@keyframes smoke {
  0% { opacity: 0; transform: translateY(0) skewX(0deg) scaleY(0.4); }
  20% { opacity: 0.8; }
  100% { opacity: 0; transform: translateY(-46px) skewX(-14deg) scaleY(1.4); }
}

.candle.is-out {
  cursor: default;
}

.wish-status {
  margin-top: 1.6rem;
  font-size: 0.86rem;
  color: var(--night-45);
  min-height: 1.6em;
  transition: color 0.5s ease;
}

/* ---------- Der Brief ---------- */

.letter {
  position: relative;
  max-width: 33rem;
  margin: clamp(3.4rem, 9vh, 5.5rem) auto 0;
  padding: clamp(2.2rem, 5vw, 3.4rem);
  background: var(--paper);
  color: var(--ink);
  text-align: left;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translateY(2rem);
  visibility: hidden;
  transition: opacity 1.1s ease, transform 1.1s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 1.1s;
}

.letter.is-open {
  opacity: 1;
  transform: none;
  visibility: visible;
  transition-delay: 0.15s, 0.15s, 0s;
}

.letter__rule {
  display: block;
  width: 100%;
  border-top: 3px double var(--line);
  margin-bottom: 1.8rem;
}

.letter__kicker {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.6rem;
}

.letter__date {
  color: var(--ink-45);
  white-space: nowrap;
}

.letter h3 {
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  margin-bottom: 1.1rem;
}

.letter__body {
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--ink-70);
}

.letter__sign {
  margin-top: 1.8rem;
  color: var(--ink-70);
}

.letter__sign em {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--ink);
}

.letter__ps {
  margin-top: 1.6rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
  color: var(--ink-45);
}

/* ---------- Epilog & Fußzeile ---------- */

.epilogue {
  max-width: var(--content);
  margin: 0 auto;
  padding: clamp(6rem, 16vh, 10rem) var(--pad);
  text-align: center;
}

.epilogue__line {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 2.9rem);
  line-height: 1.25;
}

.epilogue__line em {
  font-style: italic;
  color: var(--flame);
}

.epilogue__sub {
  margin: 1.4rem auto 2.6rem;
  color: var(--night-70);
  max-width: 30em;
}

/* Die Übergabe: der gemeinsame Space */
.epilogue__gift {
  margin: 3.4rem auto;
  padding: 2.4rem clamp(1.4rem, 4vw, 3rem) 2.6rem;
  max-width: 30rem;
  border: 1px solid var(--night-line);
}

.epilogue__gift-kicker {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--flame);
  margin-bottom: 1.4rem;
}

/* Der Haupt-CTA des ganzen Geschenks: warm gefüllt statt Umriss */
.epilogue__space {
  font-size: 0.82rem;
  background: var(--flame);
  border-color: var(--flame);
  color: #211d16;
}

.epilogue__space:hover {
  color: var(--night);
}

.epilogue__gift-sub {
  margin-top: 1.4rem;
  font-size: 0.88rem;
  color: var(--night-70);
}

.night footer {
  padding: 0 var(--pad) 3rem;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--night-45);
}

/* ---------- Feine Scrollbar ---------- */

::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--paper-2);
}

::-webkit-scrollbar-thumb {
  background: rgba(33, 29, 22, 0.35);
  border: 4px solid var(--paper-2);
  border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(33, 29, 22, 0.55);
}

/* ---------- Reveals ---------- */

.reveal,
.reveal-load {
  opacity: 0;
  transform: translateY(1.6rem);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible,
.reveal-load.is-visible {
  opacity: 1;
  transform: none;
}

/* Ohne JS / mit reduzierter Bewegung: alles sofort sichtbar */
body.motion-off .reveal,
body.motion-off .reveal-load {
  opacity: 1;
  transform: none;
  transition: none;
}

body.motion-off .hero__num .mask > span {
  transform: none !important;
}

body.motion-off .candle__flame {
  animation-duration: 0s;
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-load {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .night__stars i,
  .candle__glow {
    animation: none;
  }
}

/* ---------- Responsiv ---------- */

@media (max-width: 900px) {
  .reasons__grid {
    grid-template-columns: 1fr;
  }

  .reasons__marker {
    position: sticky;
    top: 4.4rem;
    z-index: 5;
    flex-direction: row;
    align-items: baseline;
    gap: 0.7rem;
    background: linear-gradient(to bottom, var(--paper) 84%, transparent);
    padding: 0.5rem 0 1.4rem;
    width: 100%;
  }

  body.motion-on .reasons__marker {
    position: relative;
    top: auto;
  }

  .reasons__marker-no {
    font-size: 2.4rem;
  }
}

@media (max-width: 760px) {
  .interlude {
    grid-template-columns: 1fr;
    gap: 2.4rem;
  }

  .candles {
    gap: 3rem;
  }

  .candle--tall .candle__stem {
    height: 118px;
  }

  .candle__stem {
    height: 92px;
  }
}

@media (max-width: 560px) {
  .future-row {
    grid-template-columns: 2.6rem minmax(0, 1fr);
    gap: 1rem;
    padding: 1.4rem 0;
  }

  .hero__lead br {
    display: none;
  }
}

/* ========================================================================== */
/*  THE JENNY ISSUE — Art-direction pass                                      */
/* ========================================================================== */

:root {
  --cover: #1a1118;
  --cover-2: #281821;
  --cover-ink: #f2e8d7;
  --gold: #dcb879;
  --rose: #b94f4c;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Die Tageslicht-Dramaturgie ist Teil der Gestaltung und bleibt unabhängig
   von der Systemeinstellung erhalten. Die Nacht beginnt bewusst in Kapitel V. */
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #f4f0e6;
    --paper-2: #ece6d7;
    --ink: #211d16;
    --ink-70: rgba(33, 29, 22, 0.72);
    --ink-45: rgba(33, 29, 22, 0.46);
    --line: rgba(33, 29, 22, 0.16);
    --accent: #b1502f;
  }
}

body {
  overflow-x: clip;
}

/* ---------- Couture-Umschlag ---------- */

.cover {
  perspective: 1400px;
  background: transparent;
  color: var(--cover-ink);
  overflow: hidden;
}

.cover__leaf {
  position: absolute;
  inset-block: 0;
  width: calc(50% + 1px);
  z-index: -2;
  background:
    radial-gradient(circle at 50% 42%, rgba(185, 79, 76, 0.12), transparent 32%),
    linear-gradient(135deg, var(--cover-2), var(--cover));
  backface-visibility: hidden;
  will-change: transform;
}

.cover__leaf::after {
  content: "";
  position: absolute;
  inset: 1.1rem;
  border: 1px solid rgba(220, 184, 121, 0.2);
}

.cover__leaf--left {
  left: 0;
  border-right: 1px solid rgba(220, 184, 121, 0.18);
  transform-origin: left center;
}

.cover__leaf--right {
  right: 0;
  border-left: 1px solid rgba(220, 184, 121, 0.08);
  transform-origin: right center;
}

.cover__art {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.cover__edition,
.cover__folio {
  position: absolute;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(242, 232, 215, 0.48);
}

.cover__edition {
  top: 2.1rem;
  left: 50%;
  translate: -50% 0;
}

.cover__folio {
  z-index: 2;
  right: 2.2rem;
  bottom: 1.8rem;
  margin: 0;
}

.cover__monogram {
  position: absolute;
  left: 50%;
  top: 48%;
  translate: -50% -50%;
  font-family: var(--serif);
  font-size: min(62vw, 52rem);
  font-weight: 300;
  line-height: 0.75;
  letter-spacing: -0.09em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(220, 184, 121, 0.16);
  user-select: none;
}

.cover__orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  width: min(46vw, 38rem);
  aspect-ratio: 1;
  border: 1px solid rgba(220, 184, 121, 0.18);
  border-radius: 50%;
}

.cover__orbit--one {
  rotate: 18deg;
  scale: 1 0.42;
}

.cover__orbit--two {
  rotate: -32deg;
  scale: 0.62 1;
  border-color: rgba(185, 79, 76, 0.22);
}

.cover__star {
  position: absolute;
  left: calc(50% + min(23vw, 19rem));
  top: 50%;
  translate: -50% -50%;
  color: var(--gold);
  font-size: 0.85rem;
  text-shadow: 0 0 24px rgba(220, 184, 121, 0.5);
}

.cover__inner {
  position: relative;
  z-index: 2;
  width: min(34rem, 92vw);
}

.cover__kicker {
  color: rgba(242, 232, 215, 0.52);
  margin-bottom: 1.5rem;
}

.cover__name {
  font-size: clamp(3.8rem, 8vw, 7rem);
  line-height: 0.95;
  margin-bottom: 1.9rem;
  text-shadow: 0 14px 50px rgba(0, 0, 0, 0.28);
}

.cover__name em {
  color: var(--cover-ink);
}

.cover__rule {
  width: 5.5rem;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin-bottom: 1.7rem;
}

.cover__open {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 7.4rem;
  aspect-ratio: 1;
  border: 1px solid rgba(220, 184, 121, 0.62);
  border-radius: 50%;
  color: var(--cover-ink);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: color 0.45s ease, border-color 0.45s ease;
}

.cover__open::before {
  content: "";
  position: absolute;
  inset: 0.42rem;
  border: 1px solid rgba(220, 184, 121, 0.24);
  border-radius: inherit;
  background: var(--gold);
  transform: scale(0);
  transition: transform 0.55s var(--ease-out-expo);
  z-index: -1;
}

.cover__open span {
  translate: 0 -0.15rem;
}

.cover__open i {
  position: absolute;
  bottom: 1.15rem;
  font-style: normal;
  color: var(--gold);
  transition: color 0.45s ease, transform 0.45s var(--ease-out-expo);
}

.cover__open:hover {
  color: var(--cover);
  border-color: var(--gold);
}

.cover__open:hover::before {
  transform: scale(1);
}

.cover__open:hover i {
  color: var(--cover);
  transform: translate(0.2rem, -0.2rem);
}

.cover__hint {
  max-width: 23rem;
  margin-top: 1.8rem;
  color: rgba(242, 232, 215, 0.42);
  font-size: 0.73rem;
}

/* ---------- Editoriale Navigation ---------- */

.topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  padding-top: 1.35rem;
}

.wordmark {
  justify-self: start;
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
}

.wordmark i {
  font-size: 0.72rem;
  font-style: italic;
  opacity: 0.55;
}

.topbar__chapter {
  display: grid;
  grid-template-columns: 1.6rem minmax(5rem, 11vw) auto;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--sans);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.topbar__chapter b {
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.topbar__chapter > span {
  display: block;
  height: 1px;
  background: currentColor;
  opacity: 0.28;
}

.topbar__chapter > span i {
  display: block;
  width: 100%;
  height: 100%;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
}

.topbar__chapter em {
  min-width: 6rem;
  font-style: normal;
  opacity: 0.62;
}

/* ---------- Editorial Hero ---------- */

.hero {
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 46%, rgba(177, 80, 47, 0.09), transparent 28%),
    var(--paper);
}

.hero__inner {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 92rem;
  min-height: calc(100svh - 2 * var(--pad));
}

.hero__wash {
  position: absolute;
  inset: 0;
  z-index: 12;
  background: var(--paper);
  opacity: 0;
  pointer-events: none;
}

.hero__firework-stage {
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: 0;
  pointer-events: none;
}

.hero__firework-stage.is-intro {
  opacity: 1 !important;
  visibility: visible !important;
}

.hero__firework-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.hero__num {
  position: absolute;
  left: 50%;
  top: 48%;
  translate: -50% -50%;
  z-index: 4;
  margin: 0;
  font-size: clamp(16rem, 40vw, 38rem);
  line-height: 0.72;
  color: var(--ink);
  mix-blend-mode: multiply;
  pointer-events: none;
}

.hero__num .mask:first-child {
  margin-right: -0.02em;
}

.hero .kicker {
  position: absolute;
  top: clamp(3.8rem, 8vh, 6rem);
  left: 50%;
  translate: -50% 0;
  white-space: nowrap;
}

.hero__title {
  position: absolute;
  left: 0;
  bottom: clamp(3.6rem, 8vh, 6rem);
  z-index: 5;
  font-size: clamp(2.2rem, 4vw, 4.2rem);
  line-height: 0.95;
  text-align: left;
}

.hero__lead {
  position: absolute;
  right: 0;
  bottom: clamp(4rem, 8.5vh, 6.5rem);
  z-index: 5;
  max-width: 25rem;
  text-align: left;
  font-size: clamp(0.86rem, 1.2vw, 1.02rem);
}

.hero__issue,
.hero__aside {
  position: absolute;
  z-index: 5;
  margin: 0;
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  line-height: 1.7;
  text-transform: uppercase;
  color: var(--ink-45);
}

.hero__issue {
  left: 1.1rem;
  top: 50%;
  writing-mode: vertical-rl;
  rotate: 180deg;
  translate: 0 -50%;
}

.hero__aside--left {
  left: var(--pad);
  top: 6.5rem;
  text-align: left;
}

.hero__aside--right {
  right: var(--pad);
  top: 6.5rem;
  text-align: right;
}

.hero__dust {
  z-index: 6;
}

.hero__dust--a { left: 23%; top: 25%; }
.hero__dust--b { right: 22%; top: 36%; }
.hero__dust--c { left: 27%; bottom: 22%; }

/* ---------- Größere Kapiteltypografie ---------- */

.chapter-head {
  max-width: 58rem;
}

.chapter-head h2 {
  font-size: clamp(2.5rem, 5.7vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.prolog .chapter-head {
  max-width: 64rem;
}

.prolog__copy {
  max-width: 38rem;
  gap: 1.8rem;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.7;
}

/* ---------- Erinnerungen wie Magazin-Spreads ---------- */

.memories {
  max-width: 78rem;
}

.memories .chapter-head {
  position: relative;
  z-index: 2;
}

.mem-nav {
  position: absolute;
  top: 4.3rem;
  right: var(--pad);
  display: grid;
  grid-template-columns: auto auto minmax(5rem, 9vw) auto;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-45);
}

.mem-nav b {
  font-weight: 500;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.mem-nav > i {
  display: block;
  height: 1px;
  background: var(--line);
}

.mem-nav > i span {
  display: block;
  height: 100%;
  background: var(--accent);
  transform: scaleX(0.333);
  transform-origin: left;
}

body.motion-on .mem-panel {
  width: min(56rem, 72vw);
}

body.motion-on .mem-panel--quote {
  width: min(38rem, 46vw);
}

body.motion-on .mem-panel--end {
  width: min(30rem, 34vw);
}

.plate {
  gap: 1.15rem;
}

.plate__art {
  isolation: isolate;
  overflow: hidden;
  background: var(--paper-2);
  box-shadow: 0 24px 70px rgba(55, 38, 25, 0.12);
}

body.motion-on .plate__art {
  aspect-ratio: 4 / 3;
}

.plate__art::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, transparent 55%, rgba(24, 16, 13, 0.28));
  pointer-events: none;
}

.plate--has-image .plate__art::before {
  content: "";
  position: absolute;
  inset: -5%;
  z-index: 0;
  background-image: var(--plate-image);
  background-position: center;
  background-size: cover;
  filter: blur(24px) saturate(0.7);
  opacity: 0.28;
  transform: scale(1.08);
}

.plate__image {
  position: absolute;
  inset: -1.5%;
  z-index: 1;
  background-size: cover;
  background-position: center;
  filter: saturate(0.82) contrast(1.04) sepia(0.06);
  transform: scale(1.015);
  will-change: transform;
}

.plate__image--contain {
  inset: 2.5%;
  background-size: contain;
  background-repeat: no-repeat;
  transform: scale(1);
}

.plate__caption,
.plate__art svg {
  z-index: 3;
}

.plate figcaption {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  column-gap: 1.2rem;
  align-items: start;
}

.plate__no {
  grid-row: 1 / span 2;
  padding-top: 0.4rem;
}

.plate figcaption h3,
.plate figcaption p {
  grid-column: 2;
}

.pullquote {
  position: relative;
  min-height: 22rem;
  padding: clamp(2rem, 5vw, 4rem);
  border: 1px solid var(--line);
}

.pullquote::before,
.pullquote::after {
  content: "";
  position: absolute;
  border: 1px solid var(--line);
  border-radius: 50%;
  pointer-events: none;
}

.pullquote::before {
  inset: 8% 18%;
}

.pullquote::after {
  inset: 17% 8%;
}

.pullquote p,
.pullquote cite {
  position: relative;
  z-index: 1;
}

/* ---------- Gründe-Spotlight ---------- */

.reasons {
  max-width: 78rem;
}

.reasons__grid {
  grid-template-columns: minmax(0, 7fr) minmax(22rem, 5fr);
  gap: clamp(3rem, 7vw, 7rem);
}

.reasons__marker {
  min-height: 62vh;
  justify-content: center;
  gap: 0;
  isolation: isolate;
}

.reasons__eyebrow {
  display: block;
  margin-bottom: 1rem;
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent);
}

.reasons__orbit {
  position: absolute;
  z-index: -1;
  left: 46%;
  top: 50%;
  translate: -50% -50%;
  width: min(42vw, 32rem);
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: repeating-conic-gradient(
    from 0deg,
    transparent 0deg 5.4deg,
    rgba(177, 80, 47, 0.18) 5.4deg 5.7deg
  );
  mask: radial-gradient(circle, transparent 66%, #000 67% 68%, transparent 69%),
    linear-gradient(#000, #000);
  mask-composite: add;
  opacity: 0.52;
  will-change: transform;
}

.reasons__orbit::before,
.reasons__orbit::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--line);
}

.reasons__orbit::before {
  inset: 10%;
}

.reasons__orbit::after {
  inset: 22%;
  border-style: dashed;
}

.reasons__orbit i {
  position: absolute;
  left: 50%;
  top: -0.3rem;
  width: 0.65rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0.5rem rgba(177, 80, 47, 0.09);
}

.reasons__marker-no {
  font-size: clamp(4.8rem, 8vw, 7rem);
  margin-bottom: 1.3rem;
}

.reasons__feature {
  max-width: 16em;
  min-height: 5.4em;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.6vw, 2.35rem);
  line-height: 1.2;
  letter-spacing: -0.018em;
  text-wrap: balance;
}

.reasons__marker-bar {
  width: min(100%, 30rem);
  margin-top: 2rem;
}

.reasons__marker-label {
  width: min(100%, 30rem);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.reasons__marker-label b {
  font-weight: 500;
}

.reason {
  grid-template-columns: 2.5rem minmax(0, 1fr);
  padding-block: 1.15rem;
}

.reason p {
  font-size: clamp(1rem, 1.35vw, 1.18rem);
}

/* ---------- Zahlen als drei Editorial-Panels ---------- */

.interlude {
  max-width: 78rem;
  gap: 0;
}

.stat {
  min-height: 24rem;
  padding: 2rem clamp(1.5rem, 3vw, 2.6rem);
  border: 1px solid var(--line);
  border-right: 0;
  display: flex;
  flex-direction: column;
  background: rgba(236, 230, 215, 0.4);
  transition: background 0.6s ease, color 0.6s ease;
}

.stat:last-child {
  border-right: 1px solid var(--line);
}

.stat::before {
  display: none;
}

.stat strong {
  margin: auto 0;
  font-size: clamp(4.4rem, 8vw, 7.4rem);
  color: transparent;
  -webkit-text-stroke: 1px var(--ink-70);
}

.stat:nth-child(2) {
  background: var(--ink);
  color: var(--paper);
}

.stat:nth-child(2) span,
.stat:nth-child(2) p {
  color: rgba(244, 240, 230, 0.56);
}

.stat:nth-child(2) strong {
  color: var(--accent);
  -webkit-text-stroke: 0;
}

/* ---------- Abenteuer-Bühne ---------- */

.future {
  max-width: 78rem;
}

.future__layout {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(19rem, 5fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: start;
}

.future-row {
  grid-template-columns: 3rem minmax(0, 1fr) 2rem;
  padding: 1.8rem 1.2rem;
  transition: background 0.45s ease, transform 0.55s var(--ease-out-expo);
}

.future-row__arrow {
  justify-self: end;
  color: var(--ink-45);
  transition: color 0.35s ease, transform 0.5s var(--ease-out-expo);
}

.future-row.is-active {
  background: var(--paper-2);
  transform: translateX(0.8rem);
}

.future-row.is-active .future-row__no,
.future-row.is-active .future-row__arrow {
  color: var(--accent);
}

.future-row.is-active .future-row__arrow {
  transform: rotate(12deg) scale(1.18);
}

.future-stage {
  position: sticky;
  top: 18vh;
  min-height: 34rem;
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    radial-gradient(circle at 50% 42%, rgba(185, 79, 76, 0.24), transparent 33%),
    var(--cover);
  color: var(--cover-ink);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(49, 30, 24, 0.18);
}

body.motion-on .future-stage {
  position: relative;
  top: auto;
}

.future-stage::before,
.future-stage::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(220, 184, 121, 0.13);
  border-radius: 50%;
  pointer-events: none;
}

.future-stage::before {
  width: 28rem;
  aspect-ratio: 1;
  left: -14rem;
  top: -10rem;
}

.future-stage::after {
  width: 20rem;
  aspect-ratio: 1;
  right: -12rem;
  bottom: -8rem;
}

.future-stage__eyebrow,
.future-stage__counter {
  position: relative;
  z-index: 1;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}

.future-stage__orbit {
  position: relative;
  z-index: 1;
  width: 13rem;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  margin: 2.1rem 0;
  border: 1px solid rgba(220, 184, 121, 0.36);
  border-radius: 50%;
}

.future-stage__orbit::before,
.future-stage__orbit::after {
  content: "";
  position: absolute;
  inset: 13%;
  border: 1px dashed rgba(220, 184, 121, 0.22);
  border-radius: 50%;
}

.future-stage__orbit::after {
  inset: 42%;
  border-style: solid;
  background: rgba(185, 79, 76, 0.16);
}

.future-stage__orbit i {
  position: relative;
  z-index: 1;
  font-family: var(--serif);
  font-size: 3.8rem;
  font-style: normal;
  color: #e49a96;
  text-shadow: 0 0 35px rgba(228, 154, 150, 0.28);
}

.future-stage strong {
  position: relative;
  z-index: 1;
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 400;
  line-height: 1.18;
}

.future-stage p {
  position: relative;
  z-index: 1;
  max-width: 18em;
  margin: 0.55rem 0 1.6rem;
  font-size: 0.84rem;
  color: rgba(242, 232, 215, 0.56);
}

/* ---------- Liebesinterlude mit typografischer Tiefe ---------- */

.dusk__aurora {
  display: none;
}

body.motion-on .dusk__aurora {
  display: block;
  position: absolute;
  inset: -30%;
  opacity: 0;
  background:
    radial-gradient(ellipse at 30% 46%, rgba(232, 177, 99, 0.2), transparent 35%),
    radial-gradient(ellipse at 72% 35%, rgba(113, 75, 119, 0.34), transparent 38%);
  filter: blur(38px);
  will-change: transform, opacity;
}

.dusk__word {
  position: absolute;
  left: 50%;
  top: 52%;
  translate: -50% -50%;
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(5.5rem, 18vw, 17rem);
  font-weight: 500;
  line-height: 0.8;
  letter-spacing: -0.08em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(253, 246, 233, 0.15);
  opacity: 0;
  pointer-events: none;
}

.dusk__copy {
  z-index: 3;
}

.dusk__line {
  font-size: clamp(2.15rem, 5.2vw, 5rem);
}

@media (max-width: 700px) {
  .dusk__copy {
    gap: 1.1rem;
  }

  .dusk__eyebrow {
    max-width: 20rem;
    line-height: 1.6;
  }

  .dusk__line {
    font-size: clamp(2.2rem, 11.5vw, 3.6rem);
  }

  .dusk__sub {
    max-width: 20rem;
    font-size: 0.64rem;
    letter-spacing: 0.2em;
  }
}

/* ---------- Geburtstagsritual & Torte ---------- */

.finale {
  max-width: 78rem;
  padding-top: clamp(7rem, 17vh, 11rem);
}

.wish-ritual {
  max-width: 50rem;
  margin: 0 auto clamp(2rem, 5vh, 3.5rem);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-block: 1px solid var(--night-line);
}

.wish-ritual span {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.2rem;
  border-right: 1px solid var(--night-line);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--night-45);
}

.wish-ritual span:last-child {
  border-right: 0;
}

.wish-ritual b {
  color: var(--flame);
  font-weight: 500;
}

.cake-scene {
  position: relative;
  width: min(29rem, 92vw);
  margin: 0 auto;
  padding-top: 0.5rem;
}

.candles {
  z-index: 3;
  gap: 3rem;
  max-width: 16rem;
  margin: 0 auto;
  padding-bottom: 0;
  border-bottom: 0;
}

.candles::before {
  bottom: -115px;
  width: 430px;
  height: 260px;
}

.candle {
  z-index: 2;
  padding-inline: 0.8rem;
}

.candle__stem {
  position: relative;
  width: 18px;
  height: 96px;
  background: repeating-linear-gradient(
    -32deg,
    #f2ead6 0 9px,
    #d98782 9px 17px
  );
  box-shadow: inset -3px 0 5px rgba(72, 42, 34, 0.18);
}

.candle--tall .candle__stem {
  height: 118px;
}

.candle__num {
  position: absolute;
  left: 50%;
  bottom: 0.8rem;
  translate: -50% 0;
  margin: 0;
  color: var(--cover);
  font-size: 0.85rem;
  text-shadow: none;
}

.cake {
  position: relative;
  z-index: 2;
  width: min(25rem, 82vw);
  margin: -1px auto 0;
}

.cake__icing,
.cake__layer,
.cake__plate {
  display: block;
}

.cake__icing {
  position: relative;
  z-index: 2;
  height: 3.8rem;
  border-radius: 1rem 1rem 0.55rem 0.55rem;
  background: linear-gradient(180deg, #fff9eb, #e8dfca);
  box-shadow: inset 0 -9px 18px rgba(108, 77, 58, 0.08);
}

.cake__icing::after {
  content: "";
  position: absolute;
  left: 9%;
  right: 9%;
  bottom: -0.55rem;
  height: 1.25rem;
  border-radius: 0 0 50% 50%;
  background:
    radial-gradient(circle at 10% 0, #e8dfca 0 0.6rem, transparent 0.64rem),
    radial-gradient(circle at 35% 0, #e8dfca 0 0.8rem, transparent 0.84rem),
    radial-gradient(circle at 68% 0, #e8dfca 0 0.55rem, transparent 0.59rem),
    radial-gradient(circle at 90% 0, #e8dfca 0 0.75rem, transparent 0.79rem);
}

.cake__layer {
  height: 7.2rem;
  display: grid;
  place-items: center;
  border-radius: 0 0 0.8rem 0.8rem;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.06), transparent 20% 80%, rgba(0,0,0,0.12)),
    linear-gradient(180deg, #7e3142, #4d2030);
  box-shadow: 0 26px 55px rgba(0, 0, 0, 0.36);
}

.cake__layer i {
  font-family: var(--serif);
  font-size: 1rem;
  font-style: italic;
  color: rgba(242, 232, 215, 0.74);
}

.cake__plate {
  width: 112%;
  height: 0.45rem;
  margin-left: -6%;
  margin-top: 0.9rem;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--gold) 12% 88%, transparent);
  box-shadow: 0 8px 18px rgba(0,0,0,0.26);
}

.wish-status {
  margin-top: 1.8rem;
}

.letter {
  border: 1px solid rgba(33, 29, 22, 0.12);
  rotate: -0.7deg;
}

.letter::after {
  content: "";
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 2rem;
  aspect-ratio: 1;
  background: linear-gradient(135deg, rgba(33, 29, 22, 0.08) 0 49%, var(--night) 51%);
}

/* ---------- Responsive Art Direction ---------- */

@media (max-width: 900px) {
  .hero__aside,
  .hero__issue {
    display: none;
  }

  .hero__num {
    font-size: clamp(13rem, 55vw, 28rem);
  }

  .reasons__grid,
  .future__layout {
    grid-template-columns: 1fr;
  }

  .reasons__marker,
  body.motion-on .reasons__marker {
    position: sticky;
    top: 3.8rem;
    z-index: 5;
    min-height: 44vh;
    padding: 2rem 0 1.4rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: linear-gradient(to bottom, var(--paper) 88%, transparent);
  }

  .reasons__orbit {
    left: 50%;
    width: min(78vw, 25rem);
  }

  .reasons__marker-no {
    font-size: 4.2rem;
    margin-bottom: 0.5rem;
  }

  .reasons__feature {
    min-height: 3.8em;
    font-size: clamp(1.35rem, 5vw, 2rem);
  }

  .future-stage {
    order: -1;
    position: relative;
    top: auto;
    min-height: 30rem;
    margin-bottom: 2rem;
  }
}

@media (max-width: 760px) {
  .topbar__chapter {
    grid-template-columns: 1.4rem minmax(3rem, 12vw);
  }

  .topbar__chapter em {
    display: none;
  }

  .wordmark i {
    display: none;
  }

  .cover__edition {
    white-space: nowrap;
  }

  .cover__folio {
    left: 50%;
    right: auto;
    translate: -50% 0;
    white-space: nowrap;
  }

  .cover__monogram {
    font-size: 78vw;
  }

  .cover__orbit {
    width: 75vw;
  }

  .cover__star {
    left: 86%;
  }

  .hero {
    padding-inline: 1.2rem;
  }

  .hero__inner {
    min-height: calc(100svh - 2.4rem);
  }

  .hero .kicker {
    top: 3.4rem;
    font-size: 0.58rem;
  }

  .hero__num {
    top: 44%;
    font-size: clamp(11rem, 55vw, 17rem);
  }

  .hero__title {
    left: 0;
    bottom: 11.5rem;
    font-size: clamp(2rem, 10vw, 3.2rem);
  }

  .hero__lead {
    left: 0;
    right: auto;
    bottom: 6.2rem;
    max-width: 22rem;
    font-size: 0.78rem;
  }

  .chapter-head h2 {
    font-size: clamp(2.25rem, 11vw, 3.6rem);
  }

  .mem-nav {
    position: static;
    width: 100%;
    margin: -1.5rem 0 1.8rem;
  }

  body.motion-on .mem-panel {
    width: 84vw;
  }

  body.motion-on .mem-panel--quote {
    width: 78vw;
  }

  body.motion-on .mem-panel--end {
    width: 64vw;
  }

  .plate figcaption {
    grid-template-columns: 2.8rem minmax(0, 1fr);
    column-gap: 0.8rem;
  }

  .plate figcaption h3 {
    font-size: 1.45rem;
  }

  .plate figcaption p {
    font-size: 0.86rem;
  }

  .interlude {
    gap: 0;
  }

  .stat,
  .stat:last-child {
    min-height: 19rem;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .stat:last-child {
    border-bottom: 1px solid var(--line);
  }

  .stat strong {
    font-size: clamp(4.6rem, 24vw, 7rem);
  }

  .future-row {
    grid-template-columns: 2.5rem minmax(0, 1fr) 1.5rem;
    gap: 0.8rem;
    padding-inline: 0.8rem;
  }

  .future-row.is-active {
    transform: translateX(0.3rem);
  }

  .wish-ritual {
    grid-template-columns: 1fr;
  }

  .wish-ritual span {
    flex-direction: row;
    justify-content: space-between;
    border-right: 0;
    border-bottom: 1px solid var(--night-line);
  }

  .wish-ritual span:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 460px) {
  .cover__hint {
    max-width: 18rem;
  }

  .topbar {
    padding-inline: 1rem;
  }

  .reasons__marker-label {
    font-size: 0.58rem;
  }

  .future-stage {
    min-height: 27rem;
    padding-inline: 1.2rem;
  }

  .future-stage__orbit {
    width: 10rem;
  }

  .cake-scene {
    width: 100%;
  }

  .cake__layer {
    height: 6.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cover__orbit,
  .reasons__orbit,
  .future-stage__orbit {
    animation: none !important;
  }

  .plate__image {
    clip-path: none !important;
    transform: none !important;
  }

  .hero__firework-stage {
    display: none;
  }
}
