/* ─────────────────────────────────────────────────────────────
   nowa · Poetry in Motion
   Farben werden von js/main.js pro Frame gesetzt (--paper, --ink …).
   ───────────────────────────────────────────────────────────── */

/* Schriften liegen lokal (keine Anfrage an Dritte, siehe Datenschutzerklärung) */
@font-face { font-family: "Bricolage Grotesque"; src: url("../fonts/BricolageGrotesque-Regular.woff2") format("woff2"), url("../fonts/BricolageGrotesque-Regular.ttf") format("truetype"); font-weight: 400 500; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("../fonts/BricolageGrotesque-SemiBold.woff2") format("woff2"), url("../fonts/BricolageGrotesque-SemiBold.ttf") format("truetype"); font-weight: 600 700; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("../fonts/BricolageGrotesque-ExtraBold.woff2") format("woff2"), url("../fonts/BricolageGrotesque-ExtraBold.ttf") format("truetype"); font-weight: 800 900; font-display: swap; }
@font-face { font-family: "Karla"; src: url("../fonts/Karla-Regular.woff2") format("woff2"), url("../fonts/Karla-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Karla"; src: url("../fonts/Karla-Medium.woff2") format("woff2"), url("../fonts/Karla-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Karla"; src: url("../fonts/Karla-Bold.woff2") format("woff2"), url("../fonts/Karla-Bold.ttf") format("truetype"); font-weight: 600 800; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/IBMPlexMono-Regular.woff2") format("woff2"), url("../fonts/IBMPlexMono-Regular.ttf") format("truetype"); font-weight: 400 600; font-display: swap; }

@property --v { syntax: '<number>'; inherits: true; initial-value: 0; }

:root {
  --paper: #ECEAE5;
  --ink: #1F1D19;
  --ink-2: #4A453C;
  --ink-3: #898074;
  --line: rgba(31, 29, 25, 0.12);
  --accent: #5773C7;
  --teal: #2E8F86;
  --gold: #E2A64C;
  --warm: 0;
  --night: 0;

  --f-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --f-body: "Karla", ui-sans-serif, system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SF Mono", monospace;

  --ease: cubic-bezier(0.45, 0, 0.3, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: max(6.5vw, 28px);
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: rgba(87, 115, 199, 0.22); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ───────────── Global layers ───────────── */
.paper {
  position: fixed; inset: 0; z-index: 0;
  background: var(--paper);
}
.paper::after { /* warmes Licht, das vom Baum ausstrahlt */
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(34vmax 30vmax at var(--lx, 50%) var(--ly, 45%), rgba(255, 236, 196, 0.9), rgba(255, 214, 160, 0) 70%),
    radial-gradient(70vmax 56vmax at var(--lx, 50%) var(--ly, 45%), rgba(255, 196, 130, 0.5), rgba(255, 214, 160, 0) 72%),
    radial-gradient(40vmax 34vmax at calc(var(--lx, 50%) - 14vw) calc(var(--ly, 45%) + 6vh), rgba(140, 170, 240, 0.32), transparent 70%),
    radial-gradient(40vmax 34vmax at calc(var(--lx, 50%) + 16vw) calc(var(--ly, 45%) + 2vh), rgba(105, 207, 199, 0.3), transparent 70%);
  opacity: var(--warm);
}
.grain {
  position: fixed; inset: 0; z-index: 6; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.12  0 0 0 0 0.11  0 0 0 0 0.09  0 0 0 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: calc(0.22 - var(--night) * 0.12);
  mix-blend-mode: multiply;
}
main { position: relative; z-index: 3; }

/* ───────────── Theater: die Geschichte im Vollbild ───────────── */
.theater { position: relative; height: 100vh; height: 100svh; overflow: hidden; touch-action: none; }
/* Am Ende der Geschichte darf der Finger die Seite wieder ganz normal scrollen */
.theater.is-free { touch-action: pan-y; }
.theater .stage { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.theater > .scene { position: absolute; inset: 0; height: auto; pointer-events: none; }
.theater .scene__sticky { position: absolute; inset: 0; height: 100%; }

.chapters {
  position: fixed; z-index: 21; right: 26px; top: 50%; translate: 0 -50%;
  display: flex; flex-direction: column; gap: 14px;
  opacity: var(--o, 1); transition: opacity 0.6s var(--ease);
}
.chapters.is-off { opacity: 0; pointer-events: none; }
.chapters button {
  position: relative; display: flex; align-items: center; justify-content: flex-end; gap: 12px;
  border: 0; padding: 4px 0; background: none; cursor: pointer; color: var(--ink-3);
}
.chapters button span {
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase;
  opacity: 0; transform: translateX(6px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease-out);
}
.chapters button i {
  width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: 0.45;
  transition: transform 0.6s var(--ease-out), opacity 0.4s, background-color 0.4s;
}
.chapters button:hover span, .chapters button:focus-visible span, .chapters button.is-active span { opacity: 1; transform: none; }
.chapters button.is-active { color: var(--ink); }
.chapters button.is-active i { opacity: 1; transform: scale(1.5); background: var(--accent); }
.story-progress { position: fixed; z-index: 21; left: 0; right: 0; bottom: 0; height: 2px; pointer-events: none; transition: opacity 0.6s; }
.story-progress span { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(var(--p, 0)); background: var(--accent); opacity: 0.55; }
.story-progress.is-off { opacity: 0; }
.fx { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 4; pointer-events: none; }

/* ───────────── Header & Rail ───────────── */
.site-header {
  position: fixed; z-index: 20; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px var(--gutter);
  color: var(--ink);
  transition: transform 0.9s var(--ease-out), background-color 0.6s, box-shadow 0.6s;
}
.site-header.is-solid {
  background: color-mix(in srgb, var(--paper) 74%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.is-hidden { transform: translateY(-110%); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 800; font-size: 21px; letter-spacing: -0.03em; }
.brand img { width: 28px; height: 28px; border-radius: 8px; box-shadow: 0 1px 0 rgba(0,0,0,0.06); }
.brand i { font-style: normal; color: var(--accent); }
.nav { display: flex; gap: 30px; }
.nav a { font-size: 14.5px; font-weight: 500; color: var(--ink-2); position: relative; transition: color 0.4s; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.6s var(--ease-out); }
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 16px; }
.lang { display: flex; gap: 2px; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 0.12em; }
.lang a, .lang span { padding: 6px 7px; border-radius: 6px; color: var(--ink-2); transition: color 0.4s, background-color 0.4s; }
.lang span { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.lang a:hover { color: var(--ink); background: var(--line); }

.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px; padding: 11px 20px; cursor: pointer;
  font-family: var(--f-body); font-weight: 600; font-size: 14.5px; letter-spacing: 0.005em;
  transition: background-color 0.5s var(--ease), color 0.5s var(--ease), transform 0.5s var(--ease-out);
}
.pill--dark { background: var(--ink); color: var(--paper); }
.pill--dark:hover { background: var(--accent); color: #F2EEE5; transform: translateY(-1px); }

.year-rail {
  position: fixed; z-index: 8; left: 22px; top: 50%; height: 48vh; translate: 0 -50%;
  width: 40px; opacity: var(--o, 0); pointer-events: none;
  transition: opacity 0.2s linear;
}
.year-rail ol { list-style: none; margin: 0; padding: 0; height: 100%; display: flex; flex-direction: column; justify-content: space-between; }
.year-rail li { font-family: var(--f-mono); font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); line-height: 1; }
.year-rail::before { content: ""; position: absolute; left: -9px; top: 0; bottom: 0; width: 1px; background: var(--line); }
.year-rail__dot {
  position: absolute; left: -12px; top: calc((1 - var(--p, 0)) * 100%);
  width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 4px rgba(87, 115, 199, 0.16);
}

/* ───────────── Typography ───────────── */
.kicker {
  margin: 0 0 18px; font-family: var(--f-mono); font-size: 12px; font-weight: 400;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3);
}
.kicker b { font-weight: 500; color: var(--accent); margin-right: 10px; }
.kicker--soft { margin-bottom: 10px; }
.display {
  margin: 0; font-family: var(--f-display); font-weight: 800;
  font-size: clamp(2.7rem, 6.6vw, 6.4rem); line-height: 0.96; letter-spacing: -0.045em;
  font-variation-settings: "opsz" 96; text-wrap: balance;
}
.display--m { font-size: clamp(2.2rem, 5vw, 4.7rem); line-height: 1; }
.title {
  margin: 0; font-family: var(--f-display); font-weight: 800;
  font-size: clamp(2rem, 3.7vw, 3.5rem); line-height: 1.02; letter-spacing: -0.04em;
  font-variation-settings: "opsz" 72; text-wrap: balance;
}
.subtitle {
  margin: 0; font-family: var(--f-display); font-weight: 800;
  font-size: clamp(1.7rem, 2.8vw, 2.6rem); line-height: 1.04; letter-spacing: -0.035em; text-wrap: balance;
}
.phrase {
  margin: 0; font-family: var(--f-display); font-weight: 600;
  font-size: clamp(1.6rem, 3vw, 2.7rem); line-height: 1.08; letter-spacing: -0.03em; text-wrap: balance;
}
.lead { margin: 26px auto 0; max-width: 35rem; font-size: clamp(1.05rem, 1.35vw, 1.22rem); line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }
.body { margin: 22px 0 0; font-size: 1.06rem; line-height: 1.65; color: var(--ink-2); text-wrap: pretty; }
.whisper { margin: 0; font-family: var(--f-display); font-weight: 600; font-size: clamp(1.5rem, 2.4vw, 2.1rem); letter-spacing: -0.03em; }
.whisper-sub { margin: 10px 0 0; font-size: 1rem; color: var(--ink-3); }
.fineprint { font-size: 13.5px; color: var(--ink-3); line-height: 1.6; }
.fineprint a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ───────────── Scenes & beats ───────────── */
.scene { position: relative; height: calc(var(--h) * 1vh); }
.scene__sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; }

.beat { position: absolute; pointer-events: none; visibility: hidden; }
.beat.is-on { visibility: visible; }
.beat.is-on .beat__in { pointer-events: auto; }
.beat__in > * {
  --e: clamp(0, calc(var(--v) * 1.6 - var(--o, 0)), 1);
  opacity: var(--e);
  transform: translate3d(0, calc((1 - var(--e)) * 16px), 0);
}
.beat__in > :nth-child(2) { --o: 0.14; }
.beat__in > :nth-child(3) { --o: 0.32; }
.beat__in > :nth-child(4) { --o: 0.46; }
.beat__in > :nth-child(5) { --o: 0.56; }
.beat .fineprint { margin: 12px 0 0; }
/* Ende der Geschichte: ein Satz und der Knopf zum Vormerken */
.story-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 16px; margin-top: 22px; }
.story-cta p { margin: 0; color: var(--ink-2); }

.split { opacity: 1 !important; transform: none !important; }
.split .w {
  display: inline-block; white-space: pre;
  --e: clamp(0, calc(var(--v) * 1.75 - var(--o, 0) - var(--i) * 0.055), 1);
  opacity: var(--e);
  transform: translate3d(0, calc((1 - var(--e)) * 0.42em), 0);
  filter: blur(calc((1 - var(--e)) * 7px));
}
.reveal { transition: --v 1.8s var(--ease-out); }
.reveal.in { --v: 1; }
.reveal:not(.split) {
  opacity: clamp(0, calc(var(--v) * 1.4), 1);
  transform: translate3d(0, calc((1 - var(--v)) * 28px + var(--py, 0px)), 0);
}
.reveal > *:not(.split) {
  --e: clamp(0, calc(var(--v) * 1.5 - var(--o, 0)), 1);
  opacity: var(--e);
  transform: translate3d(0, calc((1 - var(--e)) * 14px), 0);
}
.reveal > :nth-child(2) { --o: 0.12; }
.reveal > :nth-child(3) { --o: 0.28; }
.reveal > :nth-child(4) { --o: 0.4; }

.pos-left { left: var(--gutter); top: 50%; translate: 0 -50%; width: min(30rem, 34vw); }
.pos-top { top: 15vh; left: 50%; translate: -50% 0; width: min(54rem, 88vw); text-align: center; }
.pos-top .lead { margin-left: auto; margin-right: auto; }
.pos-top-center { top: 12vh; left: 50%; translate: -50% 0; width: min(60rem, 88vw); text-align: center; }
.pos-top-center .body { max-width: 34rem; margin-left: auto; margin-right: auto; }
.pos-bottom { bottom: 8vh; left: 50%; translate: -50% 0; width: min(46rem, 90vw); text-align: center; }
.pos-center-low { top: 50%; left: 50%; translate: -50% -50%; width: min(64rem, 90vw); text-align: center; }
.pos-whisper { top: 22vh; left: 50%; translate: -50% 0; width: min(36rem, 90vw); text-align: center; }

.scroll-hint { left: 50%; bottom: 4.5vh; translate: -50% 0; }
.scroll-hint .beat__in { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.scroll-hint span:last-child { white-space: nowrap; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); }
.scroll-hint__dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--accent);
  transform: scale(var(--breath, 1)); box-shadow: 0 0 0 calc(var(--breath, 1) * 8px) rgba(87, 115, 199, 0.12);
}

/* ───────────── 01 · Baum ───────────── */
.inks { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 4px; }
.inks li {
  display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; padding: 10px 0;
  border-top: 1px solid var(--line); font-size: 15.5px; color: var(--ink-2);
  opacity: calc(0.32 + var(--on, 0) * 0.68); transition: opacity 0.6s;
}
.inks li b { color: var(--ink); font-weight: 600; }
.inks li small { display: block; font-size: 13px; color: var(--ink-3); margin-top: 2px; }
.inks__dot {
  width: 14px; height: 14px; margin-top: 4px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg) scale(calc(0.6 + var(--on, 0) * 0.4));
  background: color-mix(in srgb, var(--ink-c) calc(var(--on, 0) * 100%), #B9B2A6);
  transition: transform 0.8s var(--ease-out);
}

.cp-card {
  margin-top: 28px; width: min(300px, 100%); padding: 20px 22px 18px; border-radius: 22px;
  background: color-mix(in srgb, var(--paper) 60%, #fff); box-shadow: 0 18px 50px -24px rgba(60, 50, 30, 0.35), 0 0 0 1px var(--line);
}
.cp-card__num { display: flex; align-items: baseline; gap: 8px; font-family: var(--f-display); font-weight: 600; font-size: 54px; line-height: 1; letter-spacing: -0.04em; color: var(--teal); }
.cp-card__num small { font-family: var(--f-body); font-size: 15px; letter-spacing: 0; color: var(--teal); font-weight: 500; }
.cp-card__bars { display: flex; align-items: flex-end; gap: 6px; height: 54px; margin-top: 16px; }
.cp-card__bars i { flex: 1; height: calc(var(--bh, 0.1) * 100%); border-radius: 4px; background: color-mix(in srgb, var(--teal) 30%, transparent); transition: height 0.5s var(--ease-out); }
.cp-card__bars i:last-child { background: var(--teal); }
.cp-card__label { margin: 10px 0 0; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }

.tree-hud { right: var(--gutter); bottom: 6vh; }
.tree-hud .beat__in { display: flex; gap: 34px; }
.tree-hud span { display: flex; flex-direction: column; font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); }
.tree-hud b { font-family: var(--f-body); font-weight: 500; font-size: 22px; letter-spacing: 0; color: var(--ink); font-variant-numeric: tabular-nums; }

/* ───────────── 03 · Duett ───────────── */
.duet-photo {
  --w: min(25vw, 360px);
  position: absolute; top: 46%; width: var(--w); aspect-ratio: 3 / 4; margin: 0;
  translate: 0 -50%; border-radius: 26px; overflow: hidden;
  opacity: var(--o, 0); transform: translate3d(var(--x, 0), 0, 0) scale(var(--sc, 1));
  filter: blur(calc(var(--blur, 0) * 1px)) saturate(calc(1 - var(--blur, 0) * 0.04));
  box-shadow: 0 40px 80px -40px rgba(60, 45, 25, 0.45);
  will-change: transform, opacity;
}
.duet-photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12) translateY(var(--py, 0)); }
.duet-photo--a { right: calc(50% + 7vw); }
.duet-photo--b { left: calc(50% + 7vw); }
.duet-photo figcaption {
  position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 13px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: #1F1D19;
  background: rgba(242, 238, 229, 0.82); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }
.dot--teal { background: #2E8F86; }
.dot--blue { background: #4A5FC9; }
.dot--duo { background: linear-gradient(90deg, #4A5FC9 50%, #2E8F86 50%); }
.duet-distance {
  position: absolute; left: 50%; top: 46%; translate: -50% -50%; width: 14vw;
  display: flex; align-items: center; gap: 10px; opacity: var(--o, 0);
}
.duet-distance span { flex: 1; height: 1px; background-image: linear-gradient(90deg, var(--ink-3) 40%, transparent 40%); background-size: 7px 1px; opacity: 0.7; }
.duet-distance em { font-style: normal; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }

.duet { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.duet__fill { mix-blend-mode: multiply; }
.duet__fill--a { fill: rgba(105, 207, 199, 0.42); }
.duet__fill--b { fill: rgba(148, 160, 232, 0.46); }
.duet__stroke { fill: none; stroke-width: 2; }
.duet__stroke--a { stroke: #2E8F86; }
.duet__stroke--b { stroke: #4A5FC9; }

.ring-chip {
  position: absolute; left: 0; top: 0; z-index: 2; display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 14px; border-radius: 999px; white-space: nowrap;
  font-size: 13.5px; font-weight: 600; color: var(--ink);
  background: color-mix(in srgb, var(--paper) 80%, #fff); box-shadow: 0 10px 30px -14px rgba(50, 40, 20, 0.4), 0 0 0 1px var(--line);
  transform: translate3d(var(--cx, 0), var(--cy, 0), 0) translate(-50%, calc(-100% - 16px)) scale(calc(0.9 + var(--o, 0) * 0.1));
  opacity: var(--o, 0); pointer-events: none;
}
.ring-chip::after { content: ""; position: absolute; left: 50%; bottom: -12px; width: 1px; height: 11px; background: var(--ink-3); opacity: 0.6; }

.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.pos-top--wide { width: min(76rem, 90vw); }
.pos-top .facts { grid-template-columns: repeat(4, 1fr); gap: 0 30px; text-align: left; }
.facts li { padding: 15px 0; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 15.5px; line-height: 1.55; }
.facts li b { display: block; color: var(--ink); font-family: var(--f-display); font-weight: 600; font-size: 1.12rem; letter-spacing: -0.02em; }

/* ───────────── 04 · Nacht ───────────── */
.night-photo { position: absolute; inset: 0; opacity: var(--o, 0); }
.night-photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(var(--sc, 1.1)); filter: brightness(0.62) saturate(0.6) contrast(1.05); }
.night-photo::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 70% 50%, rgba(28, 26, 23, 0.25), rgba(28, 26, 23, 0.92) 70%); }
.night-breath {
  --D: min(44vh, 40vw);
  position: absolute; left: 66%; top: 47%; width: var(--D); height: var(--D); translate: -50% -50%;
  opacity: var(--o, 0); pointer-events: none;
}
.night-breath__orb {
  position: absolute; inset: 0; border-radius: 50%; transform: scale(var(--s, 0.5));
  background: radial-gradient(circle at 45% 40%, rgba(214, 224, 255, 0.95), rgba(140, 160, 240, 0.55) 45%, rgba(80, 100, 200, 0.18) 72%, rgba(80, 100, 200, 0) 100%);
  box-shadow: 0 0 calc(var(--D) * 0.35) rgba(130, 150, 240, 0.35);
}
.night-breath__label { position: absolute; left: 50%; top: calc(100% + 26px); translate: -50% 0; display: flex; flex-direction: column; align-items: center; gap: 6px; color: #EDE7DC; }
.night-breath__label span { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.2rem, 1.8vw, 1.6rem); letter-spacing: -0.02em; }
.night-breath__label b { font-family: var(--f-mono); font-weight: 400; font-size: 12px; letter-spacing: 0.16em; color: rgba(237, 231, 220, 0.6); }

.watch {
  position: absolute; right: 9vw; top: 50%; width: min(38vw, 560px); margin: 0; translate: 0 -50%;
  opacity: var(--o, 0); transform: translate3d(0, var(--y, 0), 0);
}
.watch__img { position: relative; aspect-ratio: 4 / 3; border-radius: 26px; overflow: hidden; box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.7); }
.watch__img img { width: 100%; height: 100%; object-fit: cover; }
.watch__ripples { position: absolute; z-index: 2; left: 52%; top: 50%; width: 0; height: 0; pointer-events: none; }
.watch__ripples i {
  position: absolute; left: -60px; top: -60px; width: 120px; height: 120px; border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.85); opacity: 0;
  animation: vib var(--period, 6s) var(--ease) infinite;
}
.watch__ripples i:nth-child(2) { animation-delay: calc(var(--period, 6s) * 0.12); }
.watch__ripples i:nth-child(3) { animation-delay: calc(var(--period, 6s) * 0.24); }
@keyframes vib { 0% { transform: scale(0.35); opacity: 0; } 8% { opacity: 0.9; } 55% { transform: scale(2.4); opacity: 0; } 100% { opacity: 0; } }

/* ───────────── 05 · Licht / 06 · Druck ───────────── */
.year-stats { margin: 0; font-family: var(--f-mono); font-size: clamp(12px, 1.1vw, 15px); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink); }
.formats { list-style: none; margin: 24px 0 0; padding: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.formats li {
  display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border-radius: 14px;
  border: 1px solid var(--line); transition: background-color 0.6s var(--ease), color 0.6s var(--ease), transform 0.6s var(--ease-out);
}
.formats b { font-family: var(--f-display); font-size: 1.2rem; letter-spacing: -0.02em; }
.formats span { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--ink-3); transition: color 0.6s; }
.formats li.is-active { background: var(--ink); color: var(--paper); transform: translateY(-3px); }
.formats li.is-active span { color: color-mix(in srgb, var(--paper) 70%, transparent); }

/* ───────────── Normal flow sections ───────────── */
.peek, .plain, .signup { position: relative; padding: 18vh var(--gutter); }
.peek__intro, .plain__head { max-width: 42rem; margin: 0 auto 9vh; text-align: center; }
.peek__intro .body, .plain__head .body { margin-left: auto; margin-right: auto; max-width: 34rem; }

.gphoto {
  position: absolute; margin: 0; border-radius: 22px; overflow: hidden;
  opacity: var(--o, 0); transform: translate3d(0, var(--y, 0px), 0) scale(var(--sc, 1));
  box-shadow: 0 50px 90px -50px rgba(60, 45, 25, 0.55); will-change: transform, opacity;
}
.gphoto img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12) translate3d(0, var(--iy, 0px), 0); }
.gphoto--a { left: 7vw; top: 27vh; width: min(22vw, 330px); aspect-ratio: 3 / 4.4; }
.gphoto--b { left: 33vw; top: 44vh; width: min(30vw, 470px); aspect-ratio: 4 / 3; }
.gphoto--c { right: 6vw; top: 22vh; width: min(30vw, 470px); aspect-ratio: 16 / 10; }
.pos-gallery { top: 11vh; left: 50%; translate: -50% 0; width: min(46rem, 88vw); text-align: center; }

.peek__row { display: flex; justify-content: center; align-items: flex-start; gap: 2.4vw; max-width: 1300px; margin: 0 auto; }
.phone { margin: 0; width: min(16vw, 236px); flex: none; transform: translate3d(0, var(--py, 0px), 0); }
.phone:nth-child(even) { margin-top: 9vh; }
.phone img { width: 100%; aspect-ratio: 644 / 1400; object-fit: cover; border-radius: 30px; box-shadow: 0 0 0 7px #1F1D19, 0 50px 80px -40px rgba(40, 30, 15, 0.55); }
.phone figcaption { margin-top: 22px; text-align: center; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); }

.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; max-width: 1180px; margin: 0 auto; align-items: start; }
.price { padding: 34px 30px 30px; border-radius: 28px; background: color-mix(in srgb, var(--paper) 55%, #fff); box-shadow: 0 0 0 1px var(--line); }
.price--feature { background: #1F1D19; color: #F2EEE5; box-shadow: 0 50px 90px -50px rgba(30, 25, 15, 0.6); }
.price.price--feature .price__per, .price.price--feature li { color: rgba(242, 238, 229, 0.78); }
.price--feature li::before { background: #9BB0F0; }
.price__name { margin: 0; font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); }
.price--feature .price__name { color: #9BB0F0; }
.price__amount { margin: 14px 0 0; font-family: var(--f-display); font-weight: 800; font-size: 2.6rem; letter-spacing: -0.04em; line-height: 1; }
.price__per { margin: 8px 0 0; font-size: 14.5px; color: var(--ink-3); }
.price ul { list-style: none; margin: 26px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); display: grid; gap: 11px; }
.price--feature ul { border-top-color: rgba(242, 238, 229, 0.14); }
.price li { position: relative; padding-left: 20px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.price li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); opacity: 0.8; }
.plain .fineprint { text-align: center; margin: 40px auto 0; max-width: 40rem; }

.plain--narrow .faq { max-width: 760px; margin: 0 auto; }
.faq__item { border-top: 1px solid var(--line); }
.faq__item:last-child { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 24px 0; background: none; border: 0; cursor: pointer; text-align: left;
  font-family: var(--f-display); font-weight: 600; font-size: clamp(1.08rem, 1.5vw, 1.3rem); letter-spacing: -0.02em; color: var(--ink);
}
.faq__q i { position: relative; flex: none; width: 16px; height: 16px; }
.faq__q i::before, .faq__q i::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -0.75px; background: currentColor; transition: transform 0.7s var(--ease-out); }
.faq__q i::after { transform: rotate(90deg); }
.faq__q[aria-expanded="true"] i::after { transform: rotate(0deg); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.8s var(--ease-out); }
.faq__a > div { overflow: hidden; }
.faq__a p { margin: 0; padding: 0 48px 26px 0; color: var(--ink-2); opacity: 0; transform: translateY(-6px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease-out); }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__item.is-open .faq__a p { opacity: 1; transform: none; transition-delay: 0.12s; }

.signup { min-height: 92vh; display: grid; place-items: center; overflow: hidden; text-align: center; }
.signup__inner { position: relative; max-width: 40rem; }
.signup__inner .body { margin-left: auto; margin-right: auto; max-width: 32rem; }
.signup__orbs { position: absolute; left: 50%; top: 50%; width: min(72vw, 760px); height: min(46vw, 480px); translate: -50% -52%; pointer-events: none; }
.signup__orbs span {
  position: absolute; top: 0; width: 62%; aspect-ratio: 1; border-radius: 50%; filter: blur(40px); opacity: 0.55;
  transform: scale(var(--breath, 1));
}
.signup__orbs span:first-child { left: 2%; background: radial-gradient(circle, rgba(140, 214, 196, 0.85), rgba(140, 214, 196, 0) 70%); }
.signup__orbs span:last-child { right: 2%; background: radial-gradient(circle, rgba(196, 176, 232, 0.85), rgba(196, 176, 232, 0) 70%); }
.signup__form { display: flex; gap: 10px; justify-content: center; margin: 34px auto 0; max-width: 30rem; }
.signup__form input[type="email"] {
  flex: 1; min-width: 0; padding: 14px 20px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--ink) 18%, transparent);
  background: color-mix(in srgb, var(--paper) 60%, #fff); font: 500 15.5px var(--f-body); color: var(--ink); outline: none;
  transition: border-color 0.4s, box-shadow 0.4s;
}
.signup__form input[type="email"]:focus { border-color: var(--accent); box-shadow: 0 0 0 5px rgba(87, 115, 199, 0.14); }
.signup__form .pill { padding: 14px 24px; font-size: 15px; }
.signup__done { margin: 30px 0 0; font-family: var(--f-display); font-weight: 600; font-size: 1.3rem; color: var(--teal); }
.signup__error { margin: 22px auto 0; max-width: 30rem; font-family: var(--f-display); font-weight: 600; font-size: 1.1rem; line-height: 1.4; color: var(--ink-2); }
.signup .fineprint { margin: 22px auto 0; max-width: 28rem; }

.site-footer { position: relative; z-index: 3; padding: 9vh var(--gutter) 40px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 14.5px; }
.site-footer__top { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 40px; }
.site-footer__top p { margin: 14px 0 0; color: var(--ink-3); line-height: 1.6; }
.site-footer nav { display: flex; flex-direction: column; gap: 9px; }
.site-footer nav p { margin: 0 0 6px; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); }
.site-footer nav a { transition: color 0.3s; }
.site-footer nav a:hover { color: var(--accent); }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 8vh; padding-top: 22px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-3); }

/* ───────────── Responsive ───────────── */
@media (max-width: 1100px) {
  .nav { gap: 20px; }
  .title { font-size: clamp(1.9rem, 3.4vw, 3rem); }
}
@media (max-width: 860px) {
  body { font-size: 16px; }
  .nav, .year-rail { display: none; }
  .site-header { padding: 14px 20px; }
  .pos-left, .pos-bottom, .pos-top {
    left: 0; right: 0; top: auto; bottom: 0; translate: none; width: auto; text-align: left;
    padding: 90px 22px calc(34px + env(safe-area-inset-bottom));
    background: linear-gradient(to top, var(--paper) 52%, color-mix(in srgb, var(--paper) 0%, transparent));
  }
  #prolog .pos-top { top: 12vh; bottom: auto; padding-top: 0; background: none; text-align: center; }
  .pos-bottom { text-align: center; }
  .title { font-size: clamp(1.8rem, 7.6vw, 2.4rem); }
  .subtitle { font-size: clamp(1.5rem, 6.4vw, 2rem); }
  .body { font-size: 15.5px; margin-top: 14px; }
  .kicker { margin-bottom: 12px; font-size: 11px; }
  .inks { margin-top: 14px; }
  .inks li { padding: 6px 0; font-size: 14px; }
  .inks li small { display: none; }
  .cp-card { display: none; }
  .tree-hud { display: none; }
  .facts li { padding: 10px 0; font-size: 14px; }
  .pos-top .facts { grid-template-columns: 1fr 1fr; gap: 0 16px; }
  .facts li b { font-size: 1rem; }
  .duet-photo { --w: 40vw; top: 34%; }
  .duet-photo--a { right: calc(50% + 2vw); }
  .duet-photo--b { left: calc(50% + 2vw); }
  .duet-distance { display: none; }
  .night-breath { --D: 58vw; left: 50%; top: 34%; }
  .watch { right: 6vw; left: 6vw; width: auto; top: 30%; }
  .pos-top-center { top: 11vh; }
  .chapters { display: none; }
  .gphoto--a { left: 6vw; top: 26vh; width: 42vw; }
  .gphoto--b { left: auto; right: 6vw; top: 36vh; width: 46vw; }
  .gphoto--c { right: auto; left: 12vw; top: 60vh; width: 76vw; }
  .pos-gallery { top: 10vh; }
  .peek__row { justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 0 30px; margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); gap: 18px; scrollbar-width: none; }
  .peek__row::-webkit-scrollbar { display: none; }
  .phone { width: 58vw; scroll-snap-align: center; transform: none; }
  .phone:nth-child(even) { margin-top: 0; }
  .prices { grid-template-columns: 1fr; }
  .site-footer__top { grid-template-columns: 1fr 1fr; }
  .signup__form { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .split .w { filter: none !important; }
  .reveal { transition-duration: 0.01s; }
  .watch__ripples i { animation: none; }
  .site-header { transition: none; }
}

/* ───────────── Unterseiten (Rechtliches, Support, 404) ───────────── */
.page .site-header { background: color-mix(in srgb, var(--paper) 86%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 1px 0 var(--line); }
.page .nav a[aria-current="page"] { color: var(--ink); }
.doc { position: relative; z-index: 3; max-width: 46rem; margin: 0 auto; padding: 150px 24px 12vh; }
.doc__back { display: inline-block; margin-bottom: 34px; font-size: 14.5px; color: var(--ink-2); transition: color 0.3s; }
.doc__back:hover { color: var(--accent); }
.doc h1 { margin: 0; font-family: var(--f-display); font-weight: 800; font-size: clamp(1.9rem, 7.4vw, 3.4rem); hyphens: auto; overflow-wrap: break-word; line-height: 1.04; letter-spacing: -0.035em; }
.doc__meta { margin: 16px 0 0; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.doc__lead { margin: 30px 0 0; font-size: 1.15rem; line-height: 1.6; color: var(--ink-2); }
.doc h2 { margin: 52px 0 0; font-family: var(--f-display); font-weight: 600; font-size: 1.45rem; line-height: 1.2; letter-spacing: -0.02em; }
.doc p, .doc ul, .doc address { margin: 14px 0 0; color: var(--ink-2); line-height: 1.7; font-style: normal; }
.doc ul { padding-left: 1.2em; }
.doc li + li { margin-top: 8px; }
.doc li b, .doc p b { color: var(--ink); font-weight: 600; }
.doc a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.doc .todo { background: rgba(226, 166, 76, 0.22); border-radius: 4px; padding: 1px 5px; color: var(--ink); }
.doc__note { margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-3); }

/* ───────────── /start und /de/start: kurze Seite für Links aus Profilen ───────────── */
.start__main {
  position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 100vh; min-height: 100svh; max-width: 34rem; margin: 0 auto; text-align: center;
  padding: calc(28px + env(safe-area-inset-top)) calc(20px + env(safe-area-inset-right)) calc(28px + env(safe-area-inset-bottom)) calc(20px + env(safe-area-inset-left));
}
.start__title { margin: 26px 0 0; font-size: clamp(2.1rem, 9vw, 3.3rem); line-height: 1; }
.start__tree { display: block; width: 100%; height: min(38vh, 340px); height: min(38svh, 340px); margin-top: 8px; }
.start__signup { width: 100%; }
.start__signup .signup__form { margin-top: 6px; }
.start__signup .fineprint { margin: 18px auto 0; max-width: 28rem; }
/* Desktop: mehr Luft über und unter dem Baum */
@media (min-width: 861px) {
  .start__tree { margin-top: 40px; }
  .start__signup .signup__form { margin-top: 44px; }
  .start__signup .fineprint { margin-top: 24px; }
}

/* Schmale Telefone: Kopfzeile mit Sprachwahl und Knopf muss in eine Zeile passen */
@media (max-width: 480px) {
  .site-header { gap: 10px; padding-left: 16px; padding-right: 16px; }
  .header-actions { gap: 8px; }
  .lang a, .lang span { padding: 5px 5px; }
  .site-header .pill { padding: 9px 14px; font-size: 13.5px; }
  .doc { padding-left: 20px; padding-right: 20px; }
}

/* ───────────── Telefone und Tablets: leicht fuer die Grafik ─────────────
   Auf Touch-Geraeten kosten Weichzeichner, Mischmodi und Hintergrund-Unschaerfe
   viel Grafikspeicher; iOS Safari beendet die Seite dann beim Scrollen.
   Hier wird alles davon durch gleich aussehende, billige Mittel ersetzt. */
@media (hover: none), (max-width: 860px) {
  .grain { display: none; }
  .split .w { filter: none; }
  .duet-photo { filter: none; will-change: auto; box-shadow: 0 24px 48px -28px rgba(60, 45, 25, 0.45); }
  .duet-photo figcaption { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(242, 238, 229, 0.94); }
  .duet__fill { mix-blend-mode: normal; }
  .duet__fill--a { fill: rgba(105, 207, 199, 0.34); }
  .duet__fill--b { fill: rgba(148, 160, 232, 0.36); }
  #lensBlur { display: none; }
  .site-header.is-solid, .page .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: color-mix(in srgb, var(--paper) 96%, transparent); }
  .night-photo img { filter: none; }
  .night-photo::after { background: radial-gradient(120% 90% at 70% 50%, rgba(28, 26, 23, 0.5), rgba(28, 26, 23, 0.95) 70%); }
  .signup__orbs span { filter: none; }
  .gphoto { will-change: auto; box-shadow: 0 30px 50px -34px rgba(60, 45, 25, 0.5); }
}

/* Bilder mit Telefon-Fassung: <picture> darf das Layout nicht veraendern */
picture { display: contents; }

/* ───────────── Telefone: Komposition ───────────── */
@media (max-width: 860px) {
  /* Kopfzeile unter der Statusleiste (viewport-fit=cover) */
  .site-header { padding-top: calc(14px + env(safe-area-inset-top)); }
  /* Duett: Fotos und Kreise in die Bildmitte statt ins obere Drittel */
  .duet-photo { top: 40%; }
  /* Jahreszahlen der Lichtszene in einer Zeile */
  .year-stats { font-size: 10.5px; letter-spacing: 0.08em; }
  /* Atemkreis der Nacht etwas groesser, er ist hier die Hauptfigur */
  .night-breath { --D: 66vw; top: 36%; }
  /* Aussage unter die Kreise statt darueber */
  .pos-center-low { top: auto; bottom: 13vh; translate: -50% 0; }
  /* Ende der Geschichte: Satz und Knopf enger, damit sie über den Bäumen bleiben */
  .story-cta { margin-top: 14px; gap: 8px 12px; }
  /* Footer: Marke ueber die volle Breite statt in eine schmale Spalte */
  .site-footer__top > div:first-child { grid-column: 1 / -1; }
}

/* ───────────── Nur rendern, was gerade zu sehen ist ─────────────
   Die Geschichte legt alle Szenen an dieselbe Stelle und blendet sie nur ein und aus.
   Fuer den Browser waere sonst alles gleichzeitig sichtbar: jede Ebene, jedes Foto,
   jeder Satz. Das Skript setzt .js-story, schaltet Unsichtbares mit .is-gone ab und
   nimmt die ganze Buehne heraus, sobald man darunter weiterliest (.is-away). */
.is-gone { display: none !important; }
.js-story .beat:not(.is-on) { display: none; }
.theater.is-away > * { display: none; }

/* Telefone und Tablets: Text ohne eigene Grafikebenen bewegen (2D statt 3D).
   translate3d gibt in Safari jedem Wort und Absatz eine eigene Ebene; uebereinander
   liegend zwingt das auch alles darueber auf eigene Ebenen und kostet viel Speicher. */
@media (hover: none), (max-width: 860px) {
  .beat__in > * { transform: translateY(calc((1 - var(--e)) * 16px)); }
  .split .w { transform: translateY(calc((1 - var(--e)) * 0.42em)); }
  .reveal:not(.split) { transform: translateY(calc((1 - var(--v)) * 28px + var(--py, 0px))); }
  .reveal > *:not(.split) { transform: translateY(calc((1 - var(--e)) * 14px)); }
  /* Atemkreis ohne grossen weichen Schatten (wurde jedes Bild neu berechnet) */
  .night-breath__orb { box-shadow: none; background: radial-gradient(circle at 45% 40%, rgba(214, 224, 255, 0.95), rgba(140, 160, 240, 0.55) 42%, rgba(80, 100, 200, 0.2) 66%, rgba(80, 100, 200, 0) 82%); }
}
