:root {
  --bg: #000;
  --ink: #f5f5f7;
  --muted: #8e8e93;
  --line: #2a2a2d;
  --card: #0b0b0c;
  --field: #141416;
  --gold: #c9a568;
  --danger-bg: #2b1410;
  --danger-ink: #ff9f8c;
  --ok-bg: #10231a;
  --ok-ink: #7fd1a4;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html {
  background: #000;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }

h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0 0 12px; }

.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; }

.kicker {
  margin: 0 0 18px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.display {
  font-size: clamp(38px, 10.5vw, 84px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.04;
}

/* ---------- Direkt-zur-Bestellung-Knopf ---------- */

.jump {
  position: fixed;
  top: max(14px, env(safe-area-inset-top));
  right: 14px;
  z-index: 20;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(12, 12, 13, 0.72);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--ink);
  font-size: 13px;
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}

.jump.show { opacity: 1; pointer-events: auto; }

/* ---------- 1. Einstieg ---------- */

.opening {
  position: relative;
  height: 100vh;
  height: 100svh;
}

.cue {
  position: fixed;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom) + 26px);
  z-index: 15;
  margin-left: -16px;
  color: var(--ink);
  pointer-events: none;
  transition: opacity 0.5s;
}

.cue.gone { opacity: 0; }

.cue svg,
.intro-cue svg {
  display: block;
  animation: cue-down 2.4s ease-in-out infinite;
}

/* Großer Pfeil mit Aufforderung in der Bildmitte beim Ankommen */
.opening {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Am Rechner: Text oben, Pfeil zeigt darunter nach unten */
.intro-cue {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 22px;
  color: var(--ink);
}

/* Der große Pfeil verschwindet nie ganz, er wippt nur */
.intro-cue svg { animation: cue-bob 1.8s ease-in-out infinite; }

@keyframes cue-bob {
  0%, 100% { opacity: 0.6; transform: translateY(-7px); }
  50% { opacity: 1; transform: translateY(7px); }
}

.intro-cue p {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  animation: cue-text 1.8s ease-in-out infinite;
}

@keyframes cue-text {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

.on-touch { display: none; }

@media (pointer: coarse) {
  .on-touch { display: inline; }
  .on-mouse { display: none; }
  /* Am Handy: Pfeil zeigt oben nach oben, Text darunter */
  .intro-cue { flex-direction: column; }
}

@keyframes cue-down {
  0% { opacity: 0; transform: translateY(-12px); }
  45% { opacity: 0.9; }
  100% { opacity: 0; transform: translateY(12px); }
}

/* Am Handy wischt man nach oben: Pfeil zeigt und wandert nach oben */
@media (pointer: coarse) {
  .cue svg { animation-name: cue-up; }
  .intro-cue svg { animation-name: cue-bob-up; }
  @keyframes cue-bob-up {
    0%, 100% { opacity: 0.6; transform: translateY(7px) rotate(180deg); }
    50% { opacity: 1; transform: translateY(-7px) rotate(180deg); }
  }
  @keyframes cue-up {
    0% { opacity: 0; transform: translateY(12px) rotate(180deg); }
    45% { opacity: 0.9; }
    100% { opacity: 0; transform: translateY(-12px) rotate(180deg); }
  }
}

/* ---------- Angeheftete Szenen ---------- */

.pin { position: relative; }
#scene-video { height: 300vh; height: 300svh; }
#scene-reveal { height: 760vh; height: 760svh; }

.stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

.lead,
.film {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  will-change: transform, opacity;
}

.lead { padding: 0 7vw; text-align: center; opacity: 0; }

.film { opacity: 0; }

/* Video sitzt genau in der Mitte, der Ton-Button hängt darunter */
.frame { position: relative; }

.film video {
  display: block;
  width: min(87vw, calc((100vh - 200px) * 9 / 16));
  width: min(87vw, calc((100svh - 200px) * 9 / 16));
  aspect-ratio: 9 / 16;
  border-radius: 26px;
  background: #000;
  object-fit: cover;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 30px 90px rgba(0, 0, 0, 0.9),
    0 0 140px rgba(201, 165, 104, 0.12);
  cursor: pointer;
}

.sound {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 18px 32px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(20, 20, 22, 0.7);
  color: var(--ink);
  font: inherit;
  font-size: 28px;
  cursor: pointer;
}

.static .sound { position: static; transform: none; display: flex; width: fit-content; margin: 18px auto 0; }

.sound[aria-pressed="false"] .waves { opacity: 0.25; }

/* ---------- 3. Rückblick ---------- */

.story {
  max-width: 1000px;
  margin: 0 auto;
  padding: 6vh 0 10vh;
}

.statement {
  max-width: 16em;
  margin: 26vh auto;
  padding: 0 8vw;
  font-size: clamp(27px, 7vw, 54px);
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.14;
  text-align: center;
  text-wrap: balance;
}

.statement.solo { margin: 44vh auto 34vh; }

/* Pfeile untereinander zwischen Satz und 2027 */
.statement.solo.before-steps { margin-bottom: 0; }

/* Pfeile gleichmäßig über den ganzen Abstand bis zur 2027 verteilt */
.steps {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  height: 60vh;
  height: 60svh;
  margin: 0 auto;
  color: var(--ink);
}

.steps svg { opacity: 0.15; animation: steps-glow 1.8s ease-in-out infinite; }
.steps svg:nth-child(2) { animation-delay: 0.3s; }
.steps svg:nth-child(3) { animation-delay: 0.6s; }

@keyframes steps-glow {
  0%, 100% { opacity: 0.15; }
  35% { opacity: 0.95; }
}

/* Am Handy wischt man nach oben: Pfeile zeigen nach oben, Lauflicht von unten */
@media (pointer: coarse) {
  .steps svg { transform: rotate(180deg); }
  .steps svg:nth-child(1) { animation-delay: 0.6s; }
  .steps svg:nth-child(3) { animation-delay: 0s; }
}

.static .steps svg { animation: none; opacity: 0.6; }

/* "Von außen:" – Titelbild folgt direkt darunter */
.statement.tight { margin-bottom: 4vh; }
.float.after-tight { margin-top: 0; }

.statement .word { opacity: 0.14; }

.float {
  display: flex;
  margin: 12vh 0;
  padding: 0 8vw;
}

.float.left { justify-content: flex-start; }
.float.right { justify-content: flex-end; }
.float.center { justify-content: center; }

.float-inner {
  width: min(66vw, 360px);
  opacity: 0;
  will-change: transform, opacity;
}

.float img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07), 0 30px 80px rgba(0, 0, 0, 0.8);
}

.float figcaption,
.slit figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

/* ---------- 4. Enthüllung ---------- */

.glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 38% at 50% 50%, rgba(201, 165, 104, 0.2), transparent 70%);
  opacity: 0;
  pointer-events: none;
}

.year {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  margin-top: -0.5em;
  font-size: clamp(110px, min(34vw, 30vh), 300px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
  text-align: center;
  color: transparent;
  background: linear-gradient(180deg, #fff 25%, #77777c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  opacity: 0;
  will-change: transform, opacity;
}

.claim {
  margin: 0;
}

.claim span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: clamp(64px, min(23vw, 24vh), 230px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 0 70px rgba(201, 165, 104, 0.35);
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity, filter;
}

/* "Der neue Bauchkalender" zwischen kleiner 2027 und den Vorschaubildern */
.subtitle {
  position: absolute;
  top: 20%;
  left: 0;
  right: 0;
  margin: 0;
  padding: 0 6vw;
  color: var(--ink);
  font-size: clamp(16px, 4.4vw, 24px);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-align: center;
  opacity: 0;
}

.slits {
  position: absolute;
  top: 27%;
  left: 50%;
  display: flex;
  gap: clamp(8px, 2.6vw, 20px);
  width: min(88vw, 540px);
  height: 50%;
  transform: translateX(-50%);
}

.slit {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
  text-align: center;
}

.slit-window {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  border-radius: 999px;
  opacity: 0;
  will-change: clip-path, opacity;
}

.slit-window::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 22%, transparent 78%, rgba(0, 0, 0, 0.6));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.slit-window img {
  display: block;
  width: 100%;
  height: 114%;
  object-fit: cover;
  will-change: transform;
}

.slit figcaption { opacity: 0; }

.whisper {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(env(safe-area-inset-bottom) + 11%);
  margin: 0;
  padding: 0 6vw;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.22em;
  text-align: center;
  text-transform: uppercase;
  opacity: 0;
}

/* ---------- 5. Bestellung ---------- */

.finale { padding: 18vh 0 0; }

.product { margin: 0 0 9vh; }

.product .float-inner { width: min(62vw, 320px); }

.product img {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 40px 100px rgba(0, 0, 0, 0.9),
    0 0 160px rgba(201, 165, 104, 0.22);
}

.finale-text {
  padding: 4vh 7vw 0;
  text-align: center;
  scroll-margin-top: 4vh;
}

.finale-text .sub {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 19px;
}

.order {
  max-width: 460px;
  margin: 0 auto;
  padding: 44px 16px calc(env(safe-area-inset-bottom) + 72px);
}

.card {
  padding: 26px 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
}

.preview-note {
  margin: 0 0 18px;
  padding: 10px 12px;
  border: 1px solid rgba(201, 165, 104, 0.4);
  border-radius: 10px;
  color: var(--gold);
  font-size: 14px;
}

.card h3 {
  margin-bottom: 14px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.field-label {
  display: block;
  margin: 18px 0 6px;
  font-size: 15px;
  font-weight: 600;
}

input[type="text"],
input[type="password"],
textarea {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--field);
  color: var(--ink);
  font: inherit;
}

textarea { resize: vertical; min-height: 52px; }

input:focus-visible,
textarea:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

input:focus, textarea:focus { border-color: var(--gold); }

.qty {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.qty button {
  aspect-ratio: 1;
  min-height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--field);
  color: var(--ink);
  font-family: inherit;
  font-size: 19px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.1s;
}

.qty button:active { transform: scale(0.94); }

.qty button[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: #000;
}

.stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 10px;
  font-weight: 600;
}

.stepper button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--field);
  color: var(--ink);
  font-family: inherit;
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}

.stepper button:disabled { opacity: 0.35; cursor: default; }

.stepper span { min-width: 110px; text-align: center; }

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.total {
  margin: 20px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.total strong { color: var(--ink); font-size: 19px; }

button.primary,
button.secondary {
  display: block;
  width: 100%;
  min-height: 54px;
  margin-top: 18px;
  padding: 12px 16px;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
}

button.primary {
  border: 0;
  background: var(--ink);
  color: #000;
}

button.primary:hover { opacity: 0.88; }
button.primary:active, button.secondary:active { transform: scale(0.985); }
button.primary:disabled { opacity: 0.5; cursor: progress; }

button.secondary {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
}

button.link {
  display: block;
  margin: 14px auto 0;
  padding: 8px 10px;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 15px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

#deadline-note { margin: 16px 0 0; white-space: pre-line; }

.error {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--danger-bg);
  color: var(--danger-ink);
  font-size: 15px;
}

.notice {
  margin: 0 0 4px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--ok-bg);
  color: var(--ok-ink);
  font-size: 15px;
}

#view-done, #view-closed, #view-conflict, #view-error { text-align: center; }

.check {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 0 auto 14px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  font-size: 24px;
  line-height: 1;
}

.quote {
  margin: 14px 0 0;
  color: var(--muted);
  font-style: italic;
  overflow-wrap: anywhere;
}

/* ---------- Ohne Bewegung: alles steht einfach untereinander ---------- */

.static .pin { height: auto !important; }
.static .stage { position: static; height: auto; overflow: visible; padding: 12vh 0; }
.static .lead,
.static .film { position: static; opacity: 1; padding-top: 4vh; padding-bottom: 4vh; }
.static .float-inner,
.static .slit-window,
.static .slit figcaption,
.static .whisper,
.static .year,
.static .glow { opacity: 1; }
.static .statement .word { opacity: 1; }
.static .statement { margin: 14vh auto; }
.static .statement.tight { margin-bottom: 4vh; }
.static .year { position: static; margin: 0 0 6vh; }
.static .slits { position: static; height: 60vh; margin: 0 auto; transform: none; }
.static .whisper { position: static; margin-top: 5vh; }
.static .subtitle { position: static; opacity: 1; margin: 0 0 4vh; }
.static .claim { display: flex; flex-direction: column; align-items: center; gap: 2vh; margin: 0 0 8vh; }
.static .claim span { position: static; opacity: 1; }
.static .cue svg,
.static .intro-cue svg,
.static .intro-cue p { animation: none; opacity: 0.8; }
.static .intro-cue svg { transform: none; }
@media (pointer: coarse) {
  .static .intro-cue svg { transform: rotate(180deg); }
}

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