/* =========================================================
   Max' Halloween-Party · Mondnacht mit Papier-Schnitt
   Mitternachtsblau, Kürbis-Orange, Dunkelgrün, Schwarz-Glitzer,
   Papierweiß. Herzstück: Max' gebastelte Einladungskarte.
   ========================================================= */

/* ---------- Schriften (OFL, selbst gehostet, latin) ---------- */
@font-face {
  font-family: "Annie Use Your Telescope";
  src: url("fonts/annie-use-your-telescope.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-italic.woff2") format("woff2");
  font-weight: 400 700; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("fonts/nunito-var.woff2") format("woff2");
  font-weight: 400 800; font-style: normal; font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --night-950: #04061a;
  --night-900: #070b24;
  --night-850: #0a1030;
  --night-800: #0e1539;
  --indigo-700: #1b2061;
  --indigo-600: #272c7a;
  --indigo-500: #3a3f9a;
  --indigo-300: #9496dd;
  --lav: #c9c7f0;

  --moon-50: #fffaf0;
  --moon-100: #f9eed6;
  --moon-200: #f1dfb1;
  --moon-300: #e6c98b;

  /* Farben der Bastelkarte */
  --card-orange: #f8a33a;
  --card-orange-deep: #e35f1b;
  --card-orange-shadow: #a8440c;
  --card-green: #1e4630;
  --card-white: #fdfcf8;
  --card-ink: #1c1e2a;

  --pumpkin-200: #ffd290;
  --pumpkin-300: #ffb456;
  --pumpkin-400: #ff9838;
  --pumpkin-500: #f2771a;
  --pumpkin-600: #b64a0c;
  --pumpkin-900: #2a1000;

  --poison-300: #c8ff95;
  --poison-400: #9cf27a;
  --poison-500: #5fd67a;

  --paper: #f9f0de;
  --paper-2: #f0e2c4;
  --paper-edge: #d8c39a;
  --ink: #191a44;
  --ink-soft: #46477a;
  --err: #a8231b;

  --f-hand: "Annie Use Your Telescope", "Patrick Hand", "Comic Sans MS", ui-rounded, cursive;
  --f-accent: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --f-body: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* feine Papierfaser als Kachel (ein Bild, keine Filter auf HTML) */
  --paper-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .32 0 0 0 0 .2 .16 0 0 0 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-soft: cubic-bezier(.45, .05, .25, 1);

  --hero-h: max(100vh, 560px);
  --gutter: 20px;

  /* Parallax-Variablen (per JS gesetzt) */
  --sy: 0;
  --p: 0;
  --mx: 0;
  --my: 0;
}
@supports (height: 100svh) {
  :root { --hero-h: max(100svh, 560px); }
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
  background: var(--night-900);
}
@supports (overflow: clip) { html { overflow-x: clip; } }
body {
  margin: 0;
  min-width: 320px;
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--moon-100);
  background: var(--night-900);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible {
  outline: 3px solid var(--pumpkin-300);
  outline-offset: 3px;
  border-radius: 10px;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  padding: 12px 18px; border-radius: 999px;
  background: var(--moon-100); color: var(--ink);
  font-weight: 800; text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }
.nowrap { white-space: nowrap; }

/* ---------- Papier: Etiketten mit gestanztem Rand ---------- */
.paper {
  position: relative;
  color: var(--card-ink);
  background: var(--paper-grain), linear-gradient(180deg, #fffdf8, #f7f1e4);
  border-radius: 16px;
  box-shadow:
    inset 0 1px 0 #fff,
    0 2px 0 rgba(140, 100, 50, .35),
    0 18px 34px -16px rgba(0, 0, 10, .85);
}
.paper::after {
  /* gestanzte Linie knapp innerhalb der Kante */
  content: ""; position: absolute; inset: 5px;
  border: 1.5px dashed rgba(28, 30, 42, .2);
  border-radius: 12px;
  pointer-events: none;
}
.label {
  display: inline-block;
  padding: .2em .6em .02em;
  font-family: var(--f-hand); font-weight: 400;
  text-transform: uppercase; letter-spacing: .04em;
  color: var(--card-ink);
  background: var(--paper-grain), var(--card-white);
  border-radius: 18px;
  box-shadow:
    0 0 0 5px var(--card-white),
    0 0 0 6.5px rgba(28, 30, 42, .14),
    0 6px 0 2px rgba(0, 0, 20, .28),
    0 22px 36px -14px rgba(0, 0, 10, .9);
  transform: rotate(-2deg);
}

/* ---------- Buttons ---------- */
.btn {
  --btn-h: 52px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: var(--btn-h);
  padding: .7em 1.5em;
  border: 0; border-radius: 999px;
  font-family: var(--f-body); font-weight: 800; font-size: 1.0625rem; line-height: 1.15;
  letter-spacing: .01em;
  text-decoration: none; text-align: center;
  -webkit-tap-highlight-color: transparent;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background-color .3s, color .3s;
  isolation: isolate;
  overflow: hidden;
}
.btn__icon { width: 1.3em; height: 1.3em; flex: none; }
.btn--xl { --btn-h: 58px; font-size: 1.15rem; padding: .8em 1.8em; }
.btn--block { width: 100%; }
/* Kürbis-Button: zwei Lagen Tonpapier wie auf der Karte */
.btn--pumpkin {
  color: var(--pumpkin-900);
  background:
    var(--paper-grain),
    radial-gradient(120% 140% at 30% 0%, rgba(255, 226, 170, .7) 0%, rgba(255, 224, 166, 0) 50%),
    var(--card-orange);
  box-shadow:
    0 0 0 3px var(--card-orange-deep),
    0 5px 0 3px var(--card-orange-shadow),
    0 16px 32px -10px rgba(255, 120, 30, .65),
    0 0 46px -8px rgba(255, 150, 50, .5);
  overflow: visible;
}
.btn--pumpkin::after {
  /* Lichtschimmer, der gelegentlich über den Button streicht */
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .55) 45%, transparent 60%) no-repeat;
  background-size: 300% 100%;
  background-position: 160% 0;
  animation: shimmer 6.5s 2.2s var(--ease-soft) infinite;
  z-index: -1; pointer-events: none;
}
@keyframes shimmer {
  0%, 70% { background-position: 160% 0; }
  100% { background-position: -60% 0; }
}
.btn--pumpkin:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 3px var(--card-orange-deep), 0 7px 0 3px var(--card-orange-shadow), 0 20px 40px -10px rgba(255, 120, 30, .8), 0 0 70px -6px rgba(255, 150, 50, .6);
}
.btn--pumpkin:active {
  transform: translateY(3px);
  box-shadow: 0 0 0 3px var(--card-orange-deep), 0 2px 0 3px var(--card-orange-shadow), 0 8px 20px -10px rgba(255, 120, 30, .6);
}
.btn--glass {
  color: var(--moon-50);
  background: rgba(10, 14, 44, .5);
  box-shadow: inset 0 0 0 1.5px rgba(241, 223, 177, .45);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.btn--glass:hover { box-shadow: inset 0 0 0 1.5px rgba(241, 223, 177, .85); transform: translateY(-2px); }
.btn--moon {
  color: var(--card-ink);
  background: var(--paper-grain), var(--card-white);
  box-shadow: 0 0 0 3px #e9e2d2, 0 5px 0 3px rgba(0, 0, 20, .35), 0 14px 30px -12px rgba(255, 236, 190, .45);
  overflow: visible;
}
.btn--moon:hover { transform: translateY(-2px); }
.btn--outline {
  color: var(--moon-50);
  background: transparent;
  box-shadow: inset 0 0 0 1.5px rgba(241, 223, 177, .55);
}
.btn--outline:hover { box-shadow: inset 0 0 0 1.5px var(--moon-200); background: rgba(241, 223, 177, .07); transform: translateY(-2px); }
.btn--ink {
  color: var(--ink);
  background: transparent;
  box-shadow: inset 0 0 0 2px rgba(25, 26, 68, .35);
}
.btn--ink:hover { box-shadow: inset 0 0 0 2px var(--ink); transform: translateY(-2px); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  --moon-x: 74%;
  --moon-y: 17%;
  --moon-d: min(56vw, 250px);
  position: relative;
  min-height: var(--hero-h);
  overflow: hidden;
  isolation: isolate;
  background: var(--night-950);
}
.scene, .layer { position: absolute; inset: 0; pointer-events: none; }
.l-moon, .l-tree-l, .l-tree-r, .l-hills { will-change: transform; }

.sky {
  background:
    radial-gradient(closest-side circle at var(--moon-x) var(--moon-y), rgba(120, 128, 230, .55) 0%, rgba(70, 76, 190, .28) 55%, transparent 100%) no-repeat,
    radial-gradient(130% 70% at 50% 100%, rgba(95, 214, 122, .10), transparent 60%),
    linear-gradient(180deg, #03051a 0%, #0a0f38 38%, #1a1f63 72%, #23286f 100%);
}
.sky::after {
  /* großer, weicher Mondschein-Hof */
  content: ""; position: absolute;
  left: var(--moon-x); top: var(--moon-y);
  width: calc(var(--moon-d) * 3.4); aspect-ratio: 1;
  translate: -50% -50%;
  background: radial-gradient(closest-side, rgba(255, 236, 196, .26), rgba(170, 160, 255, .10) 45%, transparent 100%);
}

/* Sterne: per JS erzeugte Punkte in drei Funkelgruppen */
.stars { transform: translate3d(calc(var(--mx) * -4px), calc(var(--sy) * .7px), 0); }
.stars__group { position: absolute; inset: 0; animation: twinkle 5s ease-in-out infinite alternate; }
.stars__group:nth-child(2) { animation-duration: 7s; animation-delay: -3s; }
.stars__group:nth-child(3) { animation-duration: 3.6s; animation-delay: -1s; }
.star {
  position: absolute; width: 2px; height: 2px; border-radius: 50%;
  background: #fffbe9; box-shadow: 0 0 6px 1px rgba(255, 246, 214, .7);
}
.star--big { width: 3px; height: 3px; }
@keyframes twinkle { 0% { opacity: .25; } 100% { opacity: 1; } }

/* Mond */
.l-moon {
  transform:
    translate3d(calc(var(--mx) * -10px), calc(var(--sy) * .62px + var(--my) * -6px), 0)
    scale(calc(1 + var(--p) * .08));
}
.moon-wrap {
  position: absolute; left: var(--moon-x); top: var(--moon-y);
  width: var(--moon-d); aspect-ratio: 1;
  translate: -50% -50%;
}
.moon-glow {
  position: absolute; inset: -14%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 240, 205, .55) 62%, rgba(255, 220, 160, .18) 80%, transparent 100%);
  animation: moonbreath 7s ease-in-out infinite alternate;
}
@keyframes moonbreath { from { opacity: .65; transform: scale(.97); } to { opacity: 1; transform: scale(1.04); } }
.moon { position: relative; width: 100%; height: auto; overflow: visible; }
.moon-wrap.is-poked { animation: moonpoke .7s var(--ease-out); }
@keyframes moonpoke { 0% { transform: scale(1); } 30% { transform: scale(.94); } 65% { transform: scale(1.04); } 100% { transform: scale(1); } }

.moon-btn {
  position: absolute; z-index: 4;
  left: var(--moon-x); top: var(--moon-y);
  width: calc(var(--moon-d) * .8); aspect-ratio: 1;
  translate: -50% -50%;
  border: 0; border-radius: 50%; background: transparent;
  -webkit-tap-highlight-color: transparent;
  transform: translate3d(calc(var(--mx) * -10px), calc(var(--sy) * .62px), 0);
}
.moon-btn:focus-visible { outline-offset: 10px; border-radius: 50%; }

/* Wolkenschleier */
.l-clouds { transform: translate3d(calc(var(--mx) * -14px), calc(var(--sy) * .55px), 0); }
.cloud {
  position: absolute; left: 0; width: 200%; height: 9%;
  background-size: 50% 100%; background-repeat: repeat-x;
  animation: drift 120s linear infinite;
  opacity: .9;
}
/* Wolkenbänder als gestreckte Ellipsen (Kachel = Bühnenbreite, Drift läuft nahtlos) */
.cloud--1 { top: calc(var(--moon-y) - 6%); background-image:
  radial-gradient(28% 50% at 18% 50%, rgba(190, 196, 255, .30), transparent 100%),
  radial-gradient(22% 40% at 52% 40%, rgba(214, 206, 255, .22), transparent 100%),
  radial-gradient(30% 46% at 84% 60%, rgba(190, 196, 255, .26), transparent 100%); }
.cloud--2 {
  top: calc(var(--moon-y) + 9%); height: 6%;
  animation-duration: 90s; animation-direction: reverse; opacity: .8;
  background-image:
    radial-gradient(34% 50% at 30% 50%, rgba(160, 168, 240, .30), transparent 100%),
    radial-gradient(26% 44% at 76% 50%, rgba(180, 176, 250, .24), transparent 100%);
}
.cloud--3 {
  top: 12%; height: 7%;
  animation-duration: 160s; opacity: .55;
  background-image:
    radial-gradient(30% 50% at 22% 50%, rgba(150, 156, 230, .30), transparent 100%),
    radial-gradient(24% 40% at 70% 40%, rgba(150, 156, 230, .22), transparent 100%);
}
@keyframes drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }

/* Fledermäuse */
.l-bats { transform: translate3d(0, calc(var(--sy) * .5px), 0); }
.bat { width: 100%; height: auto; overflow: visible; }
.bat__wing, .bat__body { fill: #121118; stroke: rgba(214, 214, 236, .38); stroke-width: .8; }
.bat__eye { fill: #ffe7a3; }
.bat__wing--l { transform-origin: 44px 23px; animation: flapL .26s ease-in-out infinite alternate; }
.bat__wing--r { transform-origin: 56px 23px; animation: flapR .26s ease-in-out infinite alternate; }
@keyframes flapL { from { transform: rotate(-16deg) scaleY(1); } to { transform: rotate(18deg) scaleY(.4); } }
@keyframes flapR { from { transform: rotate(16deg) scaleY(1); } to { transform: rotate(-18deg) scaleY(.4); } }
.bat-fly {
  position: absolute; left: 0; top: var(--top, 30%);
  width: var(--size, 44px);
  animation: batfly var(--dur, 18s) linear var(--delay, 0s) infinite;
  transform: translate3d(-140px, 0, 0);
}
.bat-fly.is-rtl { animation-name: batfly-rtl; }
.bat-fly.is-rtl .bat { transform: scaleX(-1); }
.bat-bob { animation: batbob var(--bob, 1.6s) ease-in-out infinite alternate; }
@keyframes batfly {
  0% { transform: translate3d(-140px, 0, 0); }
  100% { transform: translate3d(calc(100vw + 140px), -40px, 0); }
}
@keyframes batfly-rtl {
  0% { transform: translate3d(calc(100vw + 140px), 0, 0); }
  100% { transform: translate3d(-140px, -60px, 0); }
}
@keyframes batbob { from { transform: translateY(-14px) rotate(-6deg); } to { transform: translateY(14px) rotate(6deg); } }
.bat-burst { position: absolute; width: var(--size, 40px); left: 0; top: 0; pointer-events: none; z-index: 6; }

/* Bäume als dunkle Scherenschnitt-Silhouetten */
.l-tree-l {
  transform: translate3d(calc(var(--p) * -30% + var(--mx) * -26px), calc(var(--sy) * .16px), 0);
  transform-origin: 0 100%;
}
.l-tree-r {
  transform: translate3d(calc(var(--p) * 30% + var(--mx) * -26px), calc(var(--sy) * .16px), 0);
  transform-origin: 100% 100%;
}
.tree {
  position: absolute; bottom: 0; height: 50%; width: auto; max-width: none;
  filter: brightness(.34) saturate(.55) contrast(1.15);
}
.tree--l { left: -60%; bottom: 10%; }
.tree--r { right: -64%; height: 42%; transform: scaleX(-1); bottom: 14%; }

/* Papier-Hügel im Vordergrund */
.l-hills {
  top: auto; height: 34%;
  transform: translate3d(calc(var(--mx) * -30px), calc(var(--sy) * .1px), 0);
}
.hills { width: 100%; height: 100%; }
.hills__glow { fill: url(#g-glow); animation: candlesoft 4s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
@keyframes candlesoft { from { opacity: .7; transform: scale(.94); } to { opacity: 1; transform: scale(1.06); } }

/* ---------- Hero-Inhalt ---------- */
.hero__inner {
  position: relative; z-index: 5;
  min-height: var(--hero-h);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px;
  padding: calc(env(safe-area-inset-top, 0px) + 12px) var(--gutter) calc(env(safe-area-inset-bottom, 0px) + 26px);
  text-align: center;
  pointer-events: none;
}
.hero__inner .card, .hero__content .kicker, .hero__content .title, .hero__content .facts,
.hero__content .btn, .hero__content .hero__deadline { pointer-events: auto; }
.hero__content {
  display: flex; flex-direction: column; align-items: center;
  width: 100%;
}

/* ---------- Die Karte ---------- */
.card-stage {
  width: min(86vw, 360px, max(230px, calc((100vh - 390px) * 1.11)));
  margin: 0 auto;
}
@supports (height: 100svh) {
  .card-stage { width: min(86vw, 360px, max(230px, calc((100svh - 390px) * 1.11))); }
}
.card {
  position: relative;
  width: 100%; aspect-ratio: 10 / 9;
  perspective: 1000px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.card__halo {
  position: absolute; inset: -16% -20% -10%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 230, 180, .34), rgba(255, 170, 80, .14) 55%, transparent 100%);
  animation: moonbreath 7s ease-in-out infinite alternate;
  pointer-events: none;
}
.card__float {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  animation: cardfloat 7s ease-in-out infinite alternate;
}
@keyframes cardfloat {
  from { transform: translate3d(0, -7px, 0) rotate(-1.4deg); }
  to { transform: translate3d(0, 7px, 0) rotate(1.2deg); }
}
.card__tilt {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  transform: rotateY(calc(var(--mx) * 14deg)) rotateX(calc(var(--my) * -10deg));
}
@media (hover: none), (pointer: coarse) {
  .card__tilt { animation: cardsway 9s ease-in-out infinite alternate; }
}
@keyframes cardsway {
  0% { transform: rotateY(-9deg) rotateX(4deg); }
  50% { transform: rotateY(2deg) rotateX(-3deg); }
  100% { transform: rotateY(9deg) rotateX(3deg); }
}
.card__layer { position: absolute; inset: 0; width: 100%; height: 100%; }
.card__layer > svg { width: 100%; height: 100%; }
.card__text { font-family: var(--f-hand); font-size: 84px; }
.card__pumpkin {
  filter: drop-shadow(0 16px 18px rgba(0, 0, 16, .6)) drop-shadow(0 0 26px rgba(255, 200, 130, .28));
}
.card__ghost { transform: translateZ(16px); }
.card__ghost > svg {
  filter: drop-shadow(0 8px 8px rgba(30, 10, 40, .35)) drop-shadow(0 0 14px rgba(220, 228, 255, .35));
  transform-origin: 61% 22%;
  animation: ghostfloat 4.2s ease-in-out infinite alternate;
}
@keyframes ghostfloat {
  from { transform: translate(0, 0) rotate(-2deg); }
  to { transform: translate(0, -2.4%) rotate(3deg); }
}
.card__bat { transform: translateZ(24px); }
.card__bat > svg { filter: drop-shadow(0 6px 5px rgba(40, 10, 0, .4)); }
.card__bat > .card__glint { filter: none; }
.card__bat--1 > svg { transform-origin: 25.5% 32.3%; animation: batwiggle 3.4s ease-in-out infinite alternate; }
.card__bat--2 > svg { transform-origin: 20.4% 54.9%; animation: batwiggle 4.1s ease-in-out -1.6s infinite alternate-reverse; }
@keyframes batwiggle {
  0% { transform: rotate(-3deg) scale(1, 1); }
  50% { transform: rotate(1deg) scale(1.02, .93); }
  100% { transform: rotate(4deg) translateY(-1.2%) scale(1, 1); }
}
.card__glint { opacity: .15; animation: glint 1.9s ease-in-out infinite alternate; }
.card__bat--2 .card__glint { animation-duration: 2.3s; animation-delay: -1s; }
@keyframes glint { from { opacity: .1; } to { opacity: 1; } }
.card__label { transform: translateZ(32px); filter: drop-shadow(0 10px 10px rgba(50, 14, 0, .32)); }

/* Glitzerfunken über den Fledermäusen */
.card__sparkles { position: absolute; inset: 0; transform: translateZ(40px); pointer-events: none; }
.card__sparkles i {
  position: absolute; width: 4.2%; aspect-ratio: 1;
  background: #fff8e8;
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
  filter: drop-shadow(0 0 4px rgba(255, 250, 230, .9));
  animation: twinkle-star 2.6s ease-in-out infinite;
  opacity: 0;
}
.card__sparkles i:nth-child(1) { left: 14%; top: 26%; }
.card__sparkles i:nth-child(2) { left: 33%; top: 22%; width: 3%; animation-delay: -.9s; }
.card__sparkles i:nth-child(3) { left: 11%; top: 52%; width: 3.2%; animation-delay: -1.7s; }
.card__sparkles i:nth-child(4) { left: 26%; top: 57%; width: 2.6%; animation-delay: -.4s; }
.card__sparkles i:nth-child(5) { left: 72%; top: 6%; width: 3%; animation-delay: -2.1s; background: #fff; }
@keyframes twinkle-star {
  0%, 100% { opacity: 0; transform: scale(.3) rotate(0); }
  45% { opacity: 1; transform: scale(1) rotate(30deg); }
  60% { opacity: .9; transform: scale(.85) rotate(45deg); }
}
/* Antippen: Geist hüpft, Fledermäuse zappeln */
.card.is-poked .card__ghost > svg { animation: ghosthop .9s var(--ease-out); }
.card.is-poked .card__bat > svg { animation: batflutter .7s ease-in-out; }
@keyframes ghosthop {
  0% { transform: translate(0, 0) rotate(0); }
  35% { transform: translate(1%, -9%) rotate(8deg); }
  70% { transform: translate(0, 1%) rotate(-4deg); }
  100% { transform: translate(0, 0) rotate(-2deg); }
}
@keyframes batflutter {
  0%, 100% { transform: rotate(0) scale(1); }
  25% { transform: rotate(-8deg) scale(1.06, .85); }
  50% { transform: rotate(6deg) scale(.96, 1.08); }
  75% { transform: rotate(-4deg) scale(1.04, .9); }
}

/* ---------- Texte im Hero ---------- */
.kicker {
  display: flex; align-items: center; justify-content: center; gap: .8em;
  margin: 6px 0 0;
  font-weight: 800; font-size: .74rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--moon-200);
  text-shadow: 0 1px 12px rgba(4, 6, 26, .9);
  white-space: nowrap;
}
.kicker__line { width: 18px; height: 1px; background: linear-gradient(90deg, transparent, var(--moon-300)); }
.kicker__line:last-child { transform: scaleX(-1); }
.title {
  margin: .2em 0 0;
  max-width: 15em;
  font-family: var(--f-accent); font-style: italic; font-weight: 600;
  font-size: clamp(1.55rem, 7.1vw, 2.15rem);
  line-height: 1.12;
  color: var(--moon-50);
  text-wrap: balance;
  text-shadow: 0 2px 16px rgba(4, 6, 26, .95);
}
.title__max { color: var(--pumpkin-200); }
.title__hp {
  white-space: nowrap;
  background: linear-gradient(180deg, #ffd793 10%, #ff9a3a 60%, #f0701a 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 0 16px rgba(255, 140, 40, .45));
  padding-right: .06em;
}
.facts {
  list-style: none;
  width: min(100%, 350px);
  margin: 14px auto 0;
  padding: 12px 18px;
  display: grid; gap: 4px;
  text-align: left;
  font-weight: 800; font-size: 1rem; line-height: 1.35;
  transform: rotate(-1deg);
}
.facts__row { display: flex; align-items: center; gap: 10px; }
.facts__icon { width: 20px; height: 20px; flex: none; color: var(--pumpkin-600); }
.hero__cta {
  margin-top: 18px;
  display: flex; flex-direction: column; align-items: stretch; gap: 12px;
  width: min(100%, 350px);
}
.hero__cta .btn--glass { display: none; }
.hero__deadline {
  margin: 12px 0 0;
  font-size: .95rem; font-weight: 700;
  color: var(--moon-200);
  text-shadow: 0 1px 10px rgba(4, 6, 26, .95);
}
.hero__deadline strong { color: var(--pumpkin-200); }

.scroll-hint {
  display: none;
  position: absolute; z-index: 6; left: 50%; bottom: 18px; translate: -50% 0;
  flex-direction: column; align-items: center; gap: 6px;
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--moon-200); text-decoration: none;
  opacity: calc(.85 - var(--p) * 2);
}
.scroll-hint svg { width: 18px; height: 28px; }
.scroll-hint__dot { animation: scrolldot 1.8s ease-in-out infinite; }
@keyframes scrolldot { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(8px); opacity: 0; } 100% { transform: translateY(0); opacity: 0; } }

/* Nebelbänke */
.fog {
  position: absolute; left: 0; width: 200%;
  background-repeat: repeat-x;
  background-size: 50% 100%;
  animation: drift 70s linear infinite;
}
.l-fog-back { transform: translate3d(calc(var(--mx) * -20px), calc(var(--sy) * .3px), 0); }
.l-fog-mid { transform: translate3d(calc(var(--mx) * -28px), calc(var(--sy) * .18px), 0); }
.l-fog-front {
  transform: translate3d(calc(var(--mx) * -40px), calc(var(--sy) * .05px), 0);
  opacity: calc(.75 + var(--p) * .25);
}
.fog--back {
  bottom: 22%; height: 24%; opacity: .7;
  background-image:
    radial-gradient(30% 50% at 0% 60%, rgba(176, 184, 255, .26), transparent 100%),
    radial-gradient(30% 50% at 100% 60%, rgba(176, 184, 255, .26), transparent 100%),
    radial-gradient(34% 44% at 45% 50%, rgba(196, 200, 255, .22), transparent 100%),
    radial-gradient(22% 36% at 75% 70%, rgba(176, 184, 255, .2), transparent 100%);
}
.fog--mid {
  bottom: 4%; height: 26%; opacity: .85;
  animation-duration: 52s; animation-direction: reverse;
  background-image:
    radial-gradient(36% 52% at 0% 60%, rgba(160, 170, 245, .32), transparent 100%),
    radial-gradient(36% 52% at 100% 60%, rgba(160, 170, 245, .32), transparent 100%),
    radial-gradient(30% 44% at 38% 55%, rgba(190, 196, 255, .26), transparent 100%),
    radial-gradient(26% 40% at 68% 45%, rgba(150, 230, 190, .12), transparent 100%);
}
.fog--front {
  bottom: -6%; height: 30%;
  animation-duration: 38s;
  background-image:
    radial-gradient(40% 56% at 0% 70%, rgba(150, 156, 230, .42), transparent 100%),
    radial-gradient(40% 56% at 100% 70%, rgba(150, 156, 230, .42), transparent 100%),
    radial-gradient(32% 50% at 50% 66%, rgba(176, 182, 245, .36), transparent 100%);
}

.vignette {
  background:
    radial-gradient(140% 90% at 50% 40%, transparent 55%, rgba(2, 3, 16, .55) 100%),
    linear-gradient(180deg, rgba(4, 6, 26, .65) 0%, rgba(4, 6, 26, 0) 34%),
    linear-gradient(0deg, var(--night-900) 0%, rgba(7, 11, 36, .85) 9%, rgba(7, 11, 36, 0) 30%);
}

/* =========================================================
   MAIN
   ========================================================= */
main {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(70% 30% at 50% 82%, rgba(255, 140, 40, .10), transparent 70%),
    linear-gradient(180deg, var(--night-900) 0%, #0b1034 30%, #0d1037 70%, #080a26 100%);
}
@supports (overflow: clip) { main { overflow: clip; } }
.section { position: relative; padding: 72px var(--gutter); }
.wrap { position: relative; z-index: 2; max-width: 1080px; margin: 0 auto; }
.wrap--narrow { max-width: 660px; }

.eyebrow {
  margin: 0 0 .7rem;
  font-weight: 800; font-size: .78rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--pumpkin-300);
}
.eyebrow--ink { color: var(--pumpkin-600); }
.h2 {
  margin: 0;
  font-family: var(--f-hand); font-weight: 400;
  font-size: clamp(2.4rem, 11vw, 3.8rem); line-height: 1.04;
  letter-spacing: .04em; text-transform: uppercase;
  color: var(--moon-50);
}
.h2.label { margin-top: 6px; color: var(--card-ink); }
.h2--ink { color: var(--card-ink); }
.section-head { text-align: center; margin-bottom: 48px; }

/* Nebel, aus dem die Inhalte auftauchen */
.mist {
  position: absolute; z-index: 3; left: -20%; right: -20%; top: 40px; height: 360px;
  pointer-events: none;
  background:
    radial-gradient(40% 40% at 30% 50%, rgba(190, 196, 255, .22), transparent 100%),
    radial-gradient(36% 36% at 70% 40%, rgba(190, 196, 255, .18), transparent 100%),
    radial-gradient(50% 30% at 50% 70%, rgba(170, 176, 245, .16), transparent 100%);
  opacity: 0;
}
.js .section.is-in .mist { animation: mistlift 2.6s var(--ease-soft) both; }
@keyframes mistlift {
  0% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
  100% { opacity: 0; transform: translate3d(-12%, -30px, 0) scale(1.35); }
}
.js .reveal {
  opacity: 0;
  transform: translate3d(0, 34px, 0) scale(.985);
  transition: opacity 1.4s var(--ease-out), transform 1.6s var(--ease-out);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* Glühwürmchen */
.fireflies { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.firefly {
  position: absolute; width: 5px; height: 5px; border-radius: 50%;
  background: var(--poison-300);
  box-shadow: 0 0 10px 3px rgba(156, 242, 122, .55);
  animation: fly var(--dur, 14s) ease-in-out var(--delay, 0s) infinite alternate, glow 2.8s ease-in-out var(--delay, 0s) infinite alternate;
}
.firefly--warm { background: var(--pumpkin-200); box-shadow: 0 0 10px 3px rgba(255, 180, 86, .5); }
@keyframes fly {
  0% { transform: translate3d(0, 0, 0); }
  33% { transform: translate3d(var(--dx1, 30px), var(--dy1, -40px), 0); }
  66% { transform: translate3d(var(--dx2, -20px), var(--dy2, -70px), 0); }
  100% { transform: translate3d(var(--dx3, 40px), var(--dy3, -20px), 0); }
}
@keyframes glow { 0%, 30% { opacity: .1; } 100% { opacity: 1; } }

/* Augen im Dunkeln */
.peepers {
  position: absolute; z-index: 1; display: flex; gap: 9px;
  pointer-events: none;
}
.peepers i {
  width: 10px; height: 7px; border-radius: 50% 50% 45% 45% / 60% 60% 40% 40%;
  background: var(--poison-300);
  box-shadow: 0 0 10px 2px rgba(156, 242, 122, .6);
  animation: blink 5.5s infinite;
  transform-origin: 50% 60%;
}
.peepers i:last-child { transform: scaleX(-1); }
.peepers--b i, .peepers--d i { background: var(--pumpkin-200); box-shadow: 0 0 10px 2px rgba(255, 180, 86, .55); animation-delay: -2s; }
.peepers--c i { animation-delay: -3.4s; animation-duration: 7s; }
@keyframes blink {
  0%, 44%, 52%, 90%, 100% { transform: scaleY(1); opacity: 1; }
  47%, 49% { transform: scaleY(.08); }
  93% { transform: scaleY(.08); }
  96% { transform: scaleY(1); }
}
.peepers--a { left: 22px; bottom: 18px; }
.peepers--b { right: 14px; top: 18%; }
.peepers--c { left: 26px; bottom: 14px; }
.peepers--d { right: 12px; top: 120px; }

/* Laternenweg zwischen den Abschnitten */
.trail { position: relative; height: 150px; margin: -24px auto; max-width: 420px; z-index: 1; }
.trail svg { width: 100%; height: 100%; overflow: visible; }
.trail__path { fill: none; stroke: rgba(241, 223, 177, .22); stroke-width: 2.4; stroke-dasharray: 2 10; stroke-linecap: round; }
.trail__lamp { opacity: .18; transition: opacity .9s var(--ease-out); }
.trail__lamp-glow { fill: url(#lampglow); }
.trail.is-in .trail__lamp { opacity: 1; }

/* ---------- Einladung ---------- */
.intro { padding-top: 48px; text-align: center; }
.intro .wrap { position: relative; }
.intro__title {
  margin: 0 0 1.1rem;
  font-family: var(--f-accent); font-style: italic; font-weight: 600;
  font-size: clamp(2rem, 8.4vw, 3.6rem); line-height: 1.08;
  color: var(--moon-50);
  text-wrap: balance;
}
.intro__text {
  margin: 0 auto;
  font-size: 1.14rem; line-height: 1.7;
  color: var(--lav);
  max-width: 34em;
  text-wrap: pretty;
}
.intro__text strong { color: var(--moon-50); font-weight: 800; }
.intro__bat {
  position: absolute; left: -6px; top: -40px;
  width: 96px; height: auto;
  transform: rotate(-10deg);
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .5));
  animation: introbat 3.8s ease-in-out infinite alternate;
}
@keyframes introbat { from { transform: rotate(-12deg) translateY(0); } to { transform: rotate(-4deg) translateY(-8px); } }
.intro__ghost {
  position: absolute; right: -6px; top: -44px;
  width: 62px; height: auto;
  filter: drop-shadow(0 0 14px rgba(220, 228, 255, .35));
  animation: ghostbob 3.2s ease-in-out infinite alternate;
}
.costume {
  display: flex; align-items: center; gap: 16px;
  max-width: 34em;
  margin: 30px auto 0;
  padding: 18px 22px;
  text-align: left;
  font-size: 1.02rem;
  transform: rotate(.8deg);
}
.costume strong {
  display: block;
  font-family: var(--f-hand); font-weight: 400; font-size: 1.7rem; line-height: 1.1;
  text-transform: uppercase; letter-spacing: .03em;
  color: var(--pumpkin-600);
}
.costume__hat { width: 58px; height: auto; flex: none; animation: hatwobble 4s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes hatwobble { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg) translateY(-2px); } }

/* ---------- Ticket (Wann & Wo) ---------- */
.ticket {
  position: relative;
  max-width: 980px; margin: 0 auto;
  padding: 26px 22px 24px;
  border-radius: 28px;
  background:
    radial-gradient(80% 90% at 85% 0%, rgba(255, 236, 196, .12), transparent 60%),
    linear-gradient(160deg, rgba(48, 54, 140, .72), rgba(15, 20, 64, .92));
  box-shadow:
    inset 0 0 0 1px rgba(241, 223, 177, .22),
    inset 0 1px 0 rgba(255, 255, 255, .12),
    0 40px 90px -40px rgba(0, 0, 0, .95),
    0 0 80px -30px rgba(120, 128, 230, .5);
}
.ticket__cat {
  position: absolute; z-index: 3;
  right: 18px; top: 0;
  width: 92px; height: auto;
  translate: 0 -74.6%;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .5));
  animation: catbreath 4.5s ease-in-out infinite;
  transform-origin: 50% 74%;
}
@keyframes catbreath { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.018, .99); } }
.ticket__web {
  position: absolute; left: 0; top: 0; width: 120px; height: 120px;
  color: rgba(241, 223, 177, .32);
  border-top-left-radius: 28px;
  overflow: hidden; pointer-events: none;
}
.ticket__spider { animation: webspider 5s ease-in-out infinite; }
@keyframes webspider { 0%, 100% { transform: translateY(-26px); } 45%, 60% { transform: translateY(0); } }
.ticket__grid { margin: 0; display: grid; gap: 0; }
.ticket__item {
  position: relative;
  display: grid; grid-template-columns: 52px 1fr; column-gap: 16px; align-items: start;
  padding: 20px 0;
}
.ticket__item + .ticket__item { border-top: 1.5px dashed rgba(241, 223, 177, .22); }
.ticket__icon {
  grid-row: span 2;
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--pumpkin-300);
  background: radial-gradient(circle at 35% 30%, rgba(255, 180, 86, .28), rgba(255, 152, 56, .06));
  box-shadow: inset 0 0 0 1px rgba(255, 180, 86, .35), 0 0 24px -6px rgba(255, 152, 56, .6);
}
.ticket__icon svg { width: 26px; height: 26px; }
.ticket__item dt {
  font-weight: 800; font-size: .76rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--pumpkin-300);
  margin-top: 2px;
}
.ticket__item dd { margin: 4px 0 0; display: flex; flex-direction: column; }
.ticket__big {
  font-family: var(--f-accent); font-style: italic; font-weight: 600;
  font-size: 1.62rem; line-height: 1.15;
  color: var(--moon-50);
}
.ticket__addr { font-size: 1.36rem; }
.ticket__small { margin-top: 4px; color: var(--lav); font-size: .98rem; }
.ticket__actions {
  display: grid; gap: 10px;
  margin-top: 10px; padding-top: 20px;
  border-top: 1.5px dashed rgba(241, 223, 177, .22);
}

/* ---------- Countdown: Papier-Anhänger an einer Schnur ---------- */
.countdown { margin: 64px auto 0; max-width: 760px; text-align: center; }
.countdown__sleeps {
  margin: 0;
  font-family: var(--f-accent); font-style: italic; font-weight: 600;
  font-size: clamp(2rem, 9vw, 3.4rem); line-height: 1.1;
  color: var(--poison-300);
  text-shadow: 0 0 30px rgba(156, 242, 122, .4);
}
.countdown__sleeps strong {
  display: inline-block;
  font-family: var(--f-hand); font-style: normal; font-weight: 400;
  font-size: 1.45em; line-height: .9;
  color: var(--moon-50);
  text-shadow: 0 0 28px rgba(255, 226, 160, .55);
  padding: 0 .06em;
}
.countdown__lead { margin: 14px 0 6px; color: var(--lav); font-size: 1rem; }
.countdown__grid {
  position: relative;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  padding-top: 30px;
}
.countdown__grid::before {
  /* die Schnur */
  content: ""; position: absolute; left: -10px; right: -10px; top: 12px; height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(241, 223, 177, .55) 8%, rgba(241, 223, 177, .55) 92%, transparent);
}
.countdown__cell {
  --r: -2.5deg;
  position: relative;
  padding: 26px 4px 14px;
  border-radius: 10px 10px 16px 16px;
  color: var(--card-ink);
  background: var(--paper-grain), linear-gradient(180deg, #fffdf8, #f5eedf);
  box-shadow: inset 0 1px 0 #fff, 0 3px 0 rgba(120, 80, 30, .4), 0 20px 28px -14px rgba(0, 0, 10, .9);
  transform-origin: 50% -18px;
  transform: rotate(var(--r));
  animation: tagswing 5s ease-in-out infinite alternate;
  outline: 1.5px dashed rgba(28, 30, 42, .18);
  outline-offset: -6px;
}
.countdown__cell:nth-child(2) { --r: 2deg; animation-delay: -1.4s; }
.countdown__cell:nth-child(3) { --r: -1.4deg; animation-delay: -2.6s; }
.countdown__cell:nth-child(4) { --r: 2.8deg; animation-delay: -3.5s; }
.countdown__cell:nth-child(2) { background: var(--paper-grain), linear-gradient(180deg, #ffbf62, var(--card-orange)); box-shadow: inset 0 0 0 3px var(--card-orange-deep), 0 3px 0 rgba(120, 40, 0, .5), 0 20px 28px -14px rgba(0, 0, 10, .9); }
.countdown__cell:nth-child(2) .countdown__unit { color: #5c2304; }
.countdown__cell::before {
  /* Loch im Anhänger */
  content: ""; position: absolute; left: 50%; top: 9px;
  width: 10px; height: 10px; margin-left: -5px; border-radius: 50%;
  background: var(--night-850);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .6), 0 0 0 2px rgba(28, 30, 42, .12);
}
.countdown__cell::after {
  /* Faden zur Schnur */
  content: ""; position: absolute; left: 50%; top: -18px;
  width: 1.5px; height: 32px; margin-left: -.75px;
  background: rgba(241, 223, 177, .6);
}
@keyframes tagswing {
  from { transform: rotate(calc(var(--r) - 1.5deg)); }
  to { transform: rotate(calc(var(--r) + 1.5deg)); }
}
.countdown__num {
  display: block;
  font-family: var(--f-hand); font-weight: 400;
  font-size: clamp(2.2rem, 10vw, 3.4rem); line-height: 1;
  font-variant-numeric: tabular-nums;
}
.countdown__unit { display: block; margin-top: 4px; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--pumpkin-600); }
.countdown__bat {
  position: absolute; right: -6px; top: -16px;
  width: 78px; height: auto;
  transform: rotate(10deg);
  filter: drop-shadow(0 4px 5px rgba(0, 0, 0, .5));
  animation: introbat 4.4s ease-in-out infinite alternate;
  z-index: 2;
}

/* ---------- Zusage: die Tür ---------- */
.rsvp { padding-bottom: 96px; scroll-margin-top: 0; }
.door {
  position: relative;
  max-width: 640px; margin: 0 auto;
  padding-top: 70px;
}
.door__frame {
  position: relative; z-index: 2;
  display: grid;
  padding: 12px;
  border-radius: 999px 999px 30px 30px / 260px 260px 30px 30px;
  background:
    linear-gradient(180deg, #3c3270 0%, #2a2457 40%, #1d1a45 100%);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 200, 140, .3),
    inset 0 0 0 6px rgba(20, 16, 50, .6),
    0 0 0 1px rgba(0, 0, 0, .4),
    0 0 120px -20px rgba(255, 140, 40, .5),
    0 50px 100px -40px #000;
}
.door__leaf, .door__room {
  grid-area: 1 / 1;
  border-radius: 999px 999px 20px 20px / 250px 250px 20px 20px;
  background:
    radial-gradient(120% 50% at 50% 0%, #fffaf0 0%, rgba(255, 250, 240, 0) 60%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(150, 110, 50, .25), inset 0 -30px 60px -40px rgba(150, 100, 30, .35);
  padding: 74px 20px 26px;
}
.door__leaf { transform-origin: 0 50%; backface-visibility: hidden; }
.door__head { text-align: center; margin-bottom: 26px; }
.door__head .h2 { font-size: clamp(2.3rem, 10vw, 3.3rem); outline: none; }
.door__sub { margin: .7rem auto 0; max-width: 26em; color: var(--ink-soft); font-size: 1.02rem; line-height: 1.55; }
.deadline {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 16px 0 0;
  padding: .5em 1.1em;
  border-radius: 999px;
  font-weight: 800; font-size: .98rem; line-height: 1.3;
  color: var(--pumpkin-900);
  background: var(--paper-grain), var(--card-orange);
  box-shadow: 0 0 0 2.5px var(--card-orange-deep), 0 4px 0 2.5px var(--card-orange-shadow);
  transform: rotate(-1.5deg);
  text-align: left;
  text-wrap: balance;
}
.deadline svg { width: 20px; height: 20px; flex: none; }
.deadline span { text-wrap: balance; }

/* Hängende Laterne über dem Torbogen */
.door__lantern {
  position: absolute; z-index: 3; left: 50%; top: 0;
  width: 36px; height: 92px; margin-left: -18px;
  transform-origin: 50% 0;
  animation: lanternswing 4.8s ease-in-out infinite alternate;
}
.door__lantern-chain { position: absolute; left: 17px; top: 0; width: 2px; height: 44px; background: repeating-linear-gradient(180deg, #8a7aa8 0 4px, transparent 4px 7px); }
.door__lantern-body {
  position: absolute; left: 4px; top: 42px; width: 28px; height: 38px;
  border-radius: 8px 8px 12px 12px;
  background: radial-gradient(circle at 50% 55%, #fff1c2 0%, #ffbd5c 40%, #e8761a 100%);
  box-shadow: 0 0 0 2px #2a2457, 0 0 26px 8px rgba(255, 170, 70, .55), 0 0 80px 20px rgba(255, 150, 50, .25);
}
.door__lantern-body::before { content: ""; position: absolute; left: 2px; right: 2px; top: -8px; height: 9px; border-radius: 10px 10px 2px 2px; background: #2a2457; }
@keyframes lanternswing { from { transform: rotate(-4deg); } to { transform: rotate(4deg); } }

/* Spinne, die sich am Faden herablässt */
.spider {
  position: absolute; z-index: 4; left: 4%; top: -40px;
  width: 44px;
  pointer-events: auto; cursor: pointer;
  animation: spiderdrop 7s var(--ease-soft) infinite;
}
.spider__thread { position: absolute; left: 21px; bottom: 30px; width: 1.5px; height: 150px; background: linear-gradient(180deg, transparent, rgba(241, 223, 177, .6)); }
.spider__body { position: relative; width: 44px; height: auto; filter: drop-shadow(0 0 6px rgba(255, 240, 210, .4)); }
.spider__body g { stroke: #e9dcc0; }
.spider__body ellipse, .spider__body circle[fill="#22245a"] { fill: #1b1d4f; stroke: rgba(255, 242, 214, .6); stroke-width: 1; }
@keyframes spiderdrop {
  0%, 100% { transform: translateY(0); }
  40%, 62% { transform: translateY(96px); }
  50% { transform: translateY(88px); }
}
.spider.is-up { animation: spiderup 1s var(--ease-out) forwards; }
@keyframes spiderup { to { transform: translateY(-60px); } }

/* Geist, der hinter dem Rahmen hervorlugt */
.door__peek {
  position: absolute; z-index: 1;
  right: 0; top: 46%;
  width: 92px; height: auto;
  filter: drop-shadow(0 0 14px rgba(220, 228, 255, .3));
  transform: translateX(-20px) rotate(10deg);
  animation: peek 9s var(--ease-soft) 2s infinite;
}
@keyframes peek {
  0%, 18%, 100% { transform: translateX(-30px) rotate(12deg); }
  30%, 55% { transform: translateX(54px) rotate(16deg); }
  60% { transform: translateX(50px) rotate(10deg); }
  72% { transform: translateX(-30px) rotate(12deg); }
}

/* ---------- Formular ---------- */
.form { display: grid; gap: 22px; }
.field { margin: 0; padding: 0; border: 0; min-width: 0; }
.field__label {
  display: block; margin: 0 0 8px; padding: 0;
  font-weight: 800; font-size: 1.04rem;
  color: var(--ink);
}
.field__opt { font-weight: 600; color: var(--ink-soft); }
.field__hint { margin: -4px 0 10px; font-size: .92rem; color: var(--ink-soft); }
.field__input {
  display: block; width: 100%;
  min-height: 54px;
  padding: 13px 16px;
  border: 2px solid var(--paper-edge);
  border-radius: 16px;
  background: #fffdf7;
  color: var(--ink);
  font-size: 1.0625rem;
  box-shadow: inset 0 2px 4px rgba(120, 90, 40, .08);
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
.field__input::placeholder { color: #8d8aa8; opacity: 1; }
.field__input:hover { border-color: #c2a873; }
.field__input:focus { outline: none; border-color: var(--pumpkin-500); box-shadow: 0 0 0 4px rgba(242, 119, 26, .22); }
.field__input[aria-invalid="true"] { border-color: var(--err); background: #fff6f3; }
.field__input--area { min-height: 104px; resize: vertical; line-height: 1.5; }
.field__count { margin: 6px 2px 0; text-align: right; font-size: .84rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.field__count.is-near { color: var(--pumpkin-600); font-weight: 800; }
.field__error {
  margin: 8px 2px 0; font-size: .95rem; font-weight: 700; color: var(--err);
  display: none;
}
.field__error.is-shown { display: flex; gap: 6px; align-items: flex-start; }
.field__error.is-shown::before {
  content: ""; flex: none; width: 18px; height: 18px; margin-top: 2px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath fill='%23a8231b' d='M9 0a9 9 0 1 0 0 18A9 9 0 0 0 9 0zm-1 4h2v6H8zm0 8h2v2H8z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Kinderliste */
.kids__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.kid { display: flex; gap: 8px; align-items: center; animation: kidin .5s var(--ease-out); }
.kid__num {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--f-body); font-weight: 800; font-size: 1rem;
  color: var(--paper); background: var(--ink);
}
.kid .field__input { flex: 1; min-width: 0; }
.kid__remove {
  flex: none; width: 48px; height: 48px; border-radius: 50%;
  border: 0; background: transparent; color: var(--ink-soft);
  display: grid; place-items: center;
  transition: background-color .2s, color .2s;
}
.kid__remove:hover { background: rgba(25, 26, 68, .08); color: var(--err); }
.kid__remove[hidden] { display: none; }
.kid__remove svg { width: 22px; height: 22px; }
.kid.is-leaving { animation: kidout .3s var(--ease-soft) forwards; }
@keyframes kidin { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes kidout { to { opacity: 0; transform: translateX(20px); } }
.kids__add {
  margin-top: 12px;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 48px; padding: 10px 18px 10px 14px;
  border: 2px dashed rgba(196, 87, 10, .55); border-radius: 999px;
  background: rgba(255, 152, 56, .08);
  color: var(--pumpkin-600); font-weight: 800; font-size: 1rem;
  transition: background-color .2s, border-color .2s, transform .2s;
}
.kids__add svg { width: 20px; height: 20px; }
.kids__add:hover { background: rgba(255, 152, 56, .16); border-color: var(--pumpkin-600); }
.kids__add[hidden] { display: none; }

/* Stepper */
.stepper__row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.stepper__btn {
  width: 52px; height: 52px; border-radius: 50%;
  border: 0; display: grid; place-items: center;
  background: var(--ink); color: var(--moon-50);
  box-shadow: 0 6px 16px -6px rgba(25, 26, 68, .6);
  transition: transform .2s var(--ease-out), opacity .2s;
}
.stepper__btn svg { width: 22px; height: 22px; }
.stepper__btn:hover { transform: scale(1.06); }
.stepper__btn:active { transform: scale(.94); }
.stepper__btn:disabled { opacity: .3; cursor: not-allowed; transform: none; }
.stepper__input {
  width: 64px; height: 56px;
  border: 2px solid var(--paper-edge); border-radius: 16px;
  background: #fffdf7; color: var(--ink);
  text-align: center;
  font-family: var(--f-body); font-weight: 800; font-size: 1.6rem;
  -moz-appearance: textfield; appearance: textfield;
}
.stepper__input::-webkit-outer-spin-button, .stepper__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper__input:focus { outline: none; border-color: var(--pumpkin-500); box-shadow: 0 0 0 4px rgba(242, 119, 26, .22); }
.stepper__hats { display: flex; gap: 2px; margin-left: 4px; min-height: 28px; align-items: flex-end; }
.stepper__hats svg { width: 24px; height: 24px; animation: kidin .4s var(--ease-out); }

/* Honeypot: offscreen, nicht display:none */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.privacy {
  display: flex; gap: 10px; align-items: flex-start;
  margin: 0; padding: 14px 16px;
  border-radius: 16px;
  background: rgba(25, 26, 68, .06);
  color: var(--ink-soft); font-size: .95rem; line-height: 1.5;
}
.privacy svg { width: 22px; height: 22px; flex: none; color: var(--ink); margin-top: 1px; }

.form__status:empty { padding: 0; margin-bottom: -22px; }
.form__status {
  padding: 14px 16px; border-radius: 16px;
  font-weight: 700; font-size: .98rem; line-height: 1.5;
}
.form__status.is-error { background: #fde9e4; color: var(--err); box-shadow: inset 0 0 0 1.5px rgba(168, 35, 27, .35); }
.form__status.is-info { background: rgba(25, 26, 68, .06); color: var(--ink); }

.form__submit { margin-top: 2px; }
.btn__spinner {
  display: none;
  width: 22px; height: 22px; border-radius: 50%;
  border: 3px solid rgba(42, 16, 0, .25); border-top-color: var(--pumpkin-900);
  animation: spin .8s linear infinite;
}
.form__submit.is-loading { cursor: progress; }
.form__submit.is-loading .btn__spinner { display: inline-block; }
.form__submit:disabled { cursor: progress; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Erfolg ---------- */
.door__room {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding-top: 40px;
  background:
    radial-gradient(70% 45% at 50% 22%, #fff6dc 0%, #ffdca0 40%, rgba(255, 196, 120, 0) 75%),
    linear-gradient(180deg, #ffe7b8 0%, #f7c983 100%);
}
.door__room[hidden] { display: none; }
.room__light {
  position: absolute; inset: 0; pointer-events: none;
  background: conic-gradient(from 180deg at 50% 0%, transparent 0deg, rgba(255, 255, 255, .5) 20deg, transparent 40deg, transparent 320deg, rgba(255, 255, 255, .5) 340deg, transparent 360deg);
  opacity: .55;
}
.room__ghost {
  position: relative; z-index: 2;
  width: 150px; height: auto; margin: 0 auto 6px;
  filter: drop-shadow(0 18px 24px rgba(120, 70, 20, .35));
  animation: ghostbob 3.2s ease-in-out infinite alternate;
}
.door.is-success .room__ghost { animation: ghostin 1.7s var(--ease-out) both, ghostbob 3.2s ease-in-out 1.7s infinite alternate; }
@keyframes ghostin {
  0% { opacity: 0; transform: translate3d(-160px, 120px, 0) scale(.2) rotate(-40deg); }
  45% { opacity: 1; transform: translate3d(90px, -60px, 0) scale(.85) rotate(18deg); }
  75% { transform: translate3d(-20px, 10px, 0) scale(1.08) rotate(-6deg); }
  100% { transform: translate3d(0, 0, 0) scale(1) rotate(0); }
}
@keyframes ghostbob { from { transform: translateY(-6px) rotate(-3deg); } to { transform: translateY(6px) rotate(3deg); } }
.room__title {
  position: relative; z-index: 2;
  margin: 0; outline: none;
  font-family: var(--f-accent); font-style: italic; font-weight: 650;
  font-size: clamp(2rem, 9vw, 3rem); line-height: 1.1;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.room__title span { color: var(--pumpkin-600); }
.room__text { position: relative; z-index: 2; margin: .5rem 0 0; font-size: 1.25rem; font-weight: 800; color: var(--ink); overflow-wrap: anywhere; }
.room__meta { position: relative; z-index: 2; margin: 1rem auto 0; max-width: 24em; color: #4b3a3a; font-size: .98rem; }
.room__actions { position: relative; z-index: 2; display: grid; gap: 10px; margin: 22px auto 0; max-width: 360px; }
.room__burst { position: absolute; left: 50%; top: 120px; width: 0; height: 0; z-index: 1; }
.burst-bit { position: absolute; left: 0; top: 0; width: 16px; height: 16px; margin: -8px 0 0 -8px; }
.link-btn {
  position: relative; z-index: 2;
  margin-top: 14px; min-height: 44px; padding: 8px 14px;
  border: 0; background: none;
  color: var(--ink); font-weight: 800; font-size: .98rem;
  text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px;
}

/* Tür öffnet sich */
.door.is-opening .door__leaf { animation: dooropen 1.1s var(--ease-soft) forwards; }
@keyframes dooropen {
  0% { transform: perspective(1400px) rotateY(0); }
  100% { transform: perspective(1400px) rotateY(-105deg); opacity: 0; }
}
.door.is-success .door__room { animation: roomin .9s var(--ease-out) both; }
@keyframes roomin { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
.door.is-success .door__frame { box-shadow: inset 0 0 0 1.5px rgba(255, 200, 140, .45), inset 0 0 0 6px rgba(20, 16, 50, .6), 0 0 0 1px rgba(0, 0, 0, .4), 0 0 160px -10px rgba(255, 160, 60, .8), 0 50px 100px -40px #000; }

/* ---------- Footer ---------- */
.footer {
  position: relative;
  padding: 56px var(--gutter) calc(110px + env(safe-area-inset-bottom, 0px));
  text-align: center;
  background: linear-gradient(180deg, #080a26, #04061a 70%);
  color: var(--lav);
}
.footer__pumpkin {
  width: 76px; height: auto; margin: 0 auto 14px;
  filter: drop-shadow(0 0 22px rgba(255, 150, 50, .45));
}
.footer__love { margin: 0; font-family: var(--f-accent); font-style: italic; font-weight: 600; font-size: 1.7rem; color: var(--moon-50); }
.footer__facts { margin: 10px 0 18px; font-size: .95rem; }
.footer__top { display: inline-flex; min-height: 44px; align-items: center; font-weight: 800; color: var(--pumpkin-300); text-underline-offset: 4px; }

/* ---------- Sticky-CTA (Handy) ---------- */
.sticky-cta {
  position: fixed; z-index: 50;
  left: 50%; bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; gap: .5em;
  min-height: 52px; padding: .7em 1.5em;
  border-radius: 999px;
  font-weight: 800; font-size: 1.05rem; text-decoration: none;
  color: var(--pumpkin-900);
  background: var(--paper-grain), var(--card-orange);
  box-shadow: 0 0 0 3px var(--card-orange-deep), 0 4px 0 3px var(--card-orange-shadow), 0 14px 30px -8px rgba(0, 0, 0, .7), 0 0 40px -6px rgba(255, 140, 40, .6);
  transform: translate3d(-50%, 180%, 0);
  visibility: hidden;
  transition: transform .5s var(--ease-out), visibility 0s linear .5s;
}
.sticky-cta.is-visible { transform: translate3d(-50%, 0, 0); visibility: visible; transition: transform .5s var(--ease-out), visibility 0s; }

/* Papier-Kürbisse am Fuß der Tür */
.door__pumpkins {
  position: absolute; z-index: 3;
  left: -4px; bottom: -26px;
  display: flex; align-items: flex-end;
  pointer-events: none;
  filter: drop-shadow(0 0 22px rgba(255, 140, 40, .45));
}
.door__pumpkins svg { width: 92px; height: auto; }
.door__pumpkins svg:last-child { width: 62px; margin-left: -16px; transform: rotate(6deg); }
.door.is-success .door__peek { display: none; }
.room__actions .btn { padding-inline: 1em; }
/* Funkelnde Sterne rund um den Geist im Erfolgszustand */
.room__sparkles { position: absolute; z-index: 1; left: 50%; top: 34px; width: 280px; height: 190px; margin-left: -140px; pointer-events: none; }
.room__sparkles i {
  position: absolute; width: 14px; height: 14px;
  background: var(--pumpkin-400);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  animation: sparkle 2.4s ease-in-out infinite;
}
.room__sparkles i:nth-child(1) { left: 6%; top: 30%; }
.room__sparkles i:nth-child(2) { left: 18%; top: 4%; width: 10px; height: 10px; background: #fffaf0; animation-delay: -.6s; }
.room__sparkles i:nth-child(3) { right: 8%; top: 18%; animation-delay: -1.2s; background: var(--card-green); }
.room__sparkles i:nth-child(4) { right: 20%; top: 64%; width: 10px; height: 10px; animation-delay: -1.8s; }
.room__sparkles i:nth-child(5) { left: 12%; top: 72%; width: 9px; height: 9px; background: #17161c; animation-delay: -.9s; }
.room__sparkles i:nth-child(6) { right: 2%; top: 46%; width: 8px; height: 8px; background: #fffaf0; animation-delay: -1.5s; }
@keyframes sparkle { 0%, 100% { transform: scale(.4) rotate(0); opacity: .4; } 50% { transform: scale(1.15) rotate(45deg); opacity: 1; } }

/* =========================================================
   Breakpoints
   ========================================================= */
@media (max-width: 599px) {
  /* Formular: mehr Breite für die Felder */
  .rsvp { padding-left: 10px; padding-right: 10px; }
  .door { padding-top: 64px; }
  .door__frame { padding: 6px; border-radius: 999px 999px 24px 24px / 200px 200px 24px 24px; }
  .door__leaf, .door__room { padding: 60px 16px 22px; border-radius: 999px 999px 18px 18px / 194px 194px 18px 18px; }
  .door__room { padding-top: 34px; }
  .stepper__hats { display: none; }
  .infos .section-head { text-align: left; margin-bottom: 40px; padding-right: 96px; }
}
@media (max-width: 359px) {
  :root { --gutter: 16px; }
  .title { font-size: 1.5rem; }
  .facts { padding: 11px 14px; font-size: .95rem; }
  .ticket__big { font-size: 1.4rem; }
  .countdown__grid { gap: 6px; }
  .countdown__unit { font-size: .6rem; letter-spacing: .04em; }
  .door__leaf, .door__room { padding-left: 13px; padding-right: 13px; }
  .kid { gap: 6px; }
  .kid__num { width: 28px; height: 28px; font-size: .9rem; }
  .kid__remove { width: 44px; height: 44px; }
}

/* Kurze Handy-Viewports (z. B. In-App-Browser mit Leisten) */
@media (max-width: 899px) and (max-height: 720px) {
  .kicker { display: none; }
  .facts { margin-top: 10px; padding-top: 10px; padding-bottom: 10px; }
  .hero__cta { margin-top: 14px; }
  .hero__deadline { margin-top: 8px; }
}

@media (min-width: 600px) {
  .ticket { padding: 34px 34px 30px; }
  .ticket__cat { width: 112px; right: 40px; }
  .ticket__actions { grid-template-columns: 1fr 1fr; }
  .ticket__grid { grid-template-columns: 1fr 1fr; }
  .ticket__item { padding: 22px 22px 22px 0; }
  .ticket__item:nth-child(even) { padding: 22px 0 22px 22px; border-left: 1.5px dashed rgba(241, 223, 177, .22); }
  .ticket__item + .ticket__item { border-top: 0; }
  .ticket__item:nth-child(n+3) { border-top: 1.5px dashed rgba(241, 223, 177, .22); }
  .door__leaf, .door__room { padding-left: 44px; padding-right: 44px; }
  .countdown__grid { gap: 18px; }
  .card-stage { width: min(70vw, 420px, max(230px, calc((100vh - 390px) * 1.11))); }
}

@media (min-width: 900px) {
  :root { --gutter: 32px; }
  .hero {
    --moon-x: 71%;
    --moon-y: 40%;
    --moon-d: min(38vw, 64vh, 560px);
  }
  .hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
    align-items: center;
    gap: 3vw;
    max-width: 1360px; margin: 0 auto;
    padding: 48px max(5vw, 40px) 84px;
    text-align: left;
  }
  .card-stage { order: 2; width: min(100%, 620px, calc((100vh - 170px) * 1.11)); }
  .hero__content { order: 1; align-items: flex-start; }
  .kicker { justify-content: flex-start; font-size: .8rem; letter-spacing: .22em; }
  .kicker__line:first-child { display: none; }
  .kicker__line { width: 30px; }
  .title { font-size: clamp(2.5rem, 4.1vw, 4.1rem); max-width: 11.5em; margin-top: .3em; }
  .facts { margin: 26px 0 0; width: auto; padding: 16px 26px; font-size: 1.12rem; gap: 6px; }
  .facts__icon { width: 22px; height: 22px; }
  .hero__cta { margin-top: 30px; flex-direction: row; width: auto; gap: 18px; }
  .hero__cta .btn--glass { display: inline-flex; }
  .hero__deadline { margin-top: 18px; font-size: 1rem; }
  .scroll-hint { display: flex; }
  .tree { height: 100%; bottom: -2%; }
  .tree--l { left: -12%; }
  .tree--r { right: -14%; height: 80%; bottom: 0; }
  .l-hills { height: 30%; }

  .section { padding: 96px var(--gutter); }
  .intro { padding-top: 64px; }
  .intro__bat { left: -90px; top: 10px; width: 110px; }
  .intro__ghost { right: -80px; top: -10px; width: 86px; }
  .ticket { padding: 44px 48px 38px; }
  .ticket__item { padding: 26px 32px 26px 0; grid-template-columns: 56px 1fr; }
  .ticket__item:nth-child(even) { padding: 26px 0 26px 32px; }
  .ticket__big { font-size: 1.9rem; }
  .ticket__addr { font-size: 1.6rem; }
  .ticket__actions { margin-top: 26px; padding-top: 28px; display: flex; gap: 18px; }
  .ticket__cat { width: 128px; right: 64px; }
  .ticket__web { width: 150px; height: 150px; }
  .countdown { margin-top: 84px; }
  .countdown__cell { padding: 32px 8px 20px; }
  .countdown__bat { right: -60px; top: -20px; width: 84px; }

  .door { padding-top: 90px; }
  .door__leaf, .door__room { padding: 96px 64px 40px; }
  .spider { left: -2%; top: 10px; }
  .door__peek { width: 120px; }
  .door__pumpkins { left: -170px; bottom: -20px; }
  .door__pumpkins svg:first-child { width: 170px; }
  .door__pumpkins svg:last-child { width: 120px; }
  .peepers--a { left: 8%; top: 46%; bottom: auto; }
  .peepers--b { right: 8%; }
  .peepers--c { left: 7%; bottom: 140px; }
  .peepers--d { right: 9%; top: 260px; }
  .trail { height: 170px; }

  .sticky-cta {
    left: auto; right: 28px; top: 22px; bottom: auto;
    transform: translate3d(0, -180%, 0);
  }
  .sticky-cta.is-visible { transform: translate3d(0, 0, 0); }
}
@media (min-width: 1300px) {
  .hero__inner { padding-left: max(7vw, 56px); }
}

/* =========================================================
   Weniger Bewegung
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: .001ms !important;
  }
  .l-bats, .fireflies, .door__peek, .ticket__spider, .card__sparkles { display: none; }
  .card__glint { opacity: .6; }
  .spider { animation: none; transform: translateY(70px); }
  .js .reveal { opacity: 1; transform: none; }
}

/* Ohne JS kein (veralteter) Countdown */
html:not(.js) [data-sleeps-line], html:not(.js) .countdown { display: none; }
