/* =========================================================
   WOW-MOMENTE (07.10.2026) — ergänzt style.css, ersetzt nichts
   Reihenfolge wie im Plan: Tor, Namen, Countdown, Collage,
   Wort-Einfärbung, Polaroid-Stapel, Blüten, Zeit-Zähler,
   Navi-Pille, Tilt/Magnet, Lenis/Parallax, Schlussbild
   ========================================================= */

/* ---------- Lenis (weiches Scrollen) ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-scrolling iframe { pointer-events: none; }
html.is-gated { overflow: hidden; }

/* ---------- 1. Eingangstor ---------- */
.gate {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  text-align: center;
  padding: var(--pad-x);
  background: var(--ink-dark);
  color: var(--cream);
  cursor: pointer;
  --r: -8%;
  -webkit-mask: radial-gradient(circle farthest-corner at 50% 50%, transparent var(--r), #000 calc(var(--r) + 6%));
  mask: radial-gradient(circle farthest-corner at 50% 50%, transparent var(--r), #000 calc(var(--r) + 6%));
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.gate:focus-visible { outline: 2px solid var(--gold); outline-offset: -6px; }
@media (max-width: 719px) {
  .gate {
    -webkit-mask: radial-gradient(circle farthest-corner at 50% 32%, transparent var(--r), #000 calc(var(--r) + 6%));
    mask: radial-gradient(circle farthest-corner at 50% 32%, transparent var(--r), #000 calc(var(--r) + 6%));
  }
}
html.hash-wait body { visibility: hidden; }
.gate-on .gate__names, .gate-on .gate__title, .gate-on .gate__date, .gate-on .gate__cta {
  animation: gateIn 1s cubic-bezier(.2,.7,.2,1) both;
}
.gate-on .gate__title { animation-delay: .35s; }
.gate-on .gate__date { animation-delay: .8s; }
.gate-on .gate__cta { animation-name: gateInCta; animation-delay: 1.1s; }
@keyframes gateIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes gateInCta { from { opacity: 0; } to { opacity: 0.72; } }
.gate::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 50% at 50% 55%, rgba(78, 90, 46, 0.45) 0%, rgba(27, 32, 16, 0) 100%);
  pointer-events: none;
}
html:not(.gate-on) .gate { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.gate__inner { position: relative; }
.gate__names {
  font-family: var(--f-names);
  color: var(--gold);
  font-size: clamp(1.5rem, 5.4vw, 2.4rem);
  line-height: 1.1;
}
.gate__title {
  font-family: var(--f-arc);
  font-size: clamp(2.3rem, 9vw, 5.4rem);
  line-height: 1.02;
  margin-top: 0.7rem;
  letter-spacing: -0.01em;
}
.gate__date {
  font-family: var(--f-display);
  text-transform: uppercase;
  letter-spacing: 0.24em;
  text-indent: 0.24em;
  font-size: 0.72rem;
  color: var(--text-mute);
  margin-top: 1.6rem;
}
.gate__cta {
  position: absolute;
  left: 0; right: 0;
  bottom: max(2.2rem, env(safe-area-inset-bottom, 0px) + 1.6rem);
  font-family: var(--f-display);
  text-transform: uppercase;
  letter-spacing: 0.26em;
  text-indent: 0.26em;
  font-size: 0.76rem;
  color: var(--cream);
  animation: gatePulse 2.4s ease-in-out infinite;
}
.gate-on .gate__cta { animation: gateInCta 1s ease both 1.1s, gatePulse 2.4s ease-in-out infinite 2.1s; }
.gate__cta-fine { display: none; }
@media (hover: hover) and (pointer: fine) {
  .gate__cta-fine { display: inline; }
  .gate__cta-touch { display: none; }
}
@keyframes gatePulse {
  0%, 100% { opacity: 0.72; }
  50%      { opacity: 1; }
}
.is-gated .topnav { opacity: 0; pointer-events: none; }

/* ---------- 2. Namen schreiben sich ---------- */
.names--hero { will-change: clip-path; }

/* ---------- 3. Countdown ---------- */
.countdown { margin-top: 1.15rem; display: grid; justify-items: center; }
.countdown__cells {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-family: var(--f-display);
  color: var(--gold);
  text-shadow: var(--glow);
}
.countdown__cell { display: grid; justify-items: center; min-width: 2.7ch; }
.countdown__num {
  display: block;
  font-size: clamp(1.15rem, 4.2vw, 1.7rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.countdown__cells[hidden] { display: none; }
.countdown__cell small {
  margin-top: 0.4rem;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.countdown__sep {
  font-size: clamp(1rem, 3.6vw, 1.4rem);
  line-height: 1;
  opacity: 0.55;
  padding-top: 0.06em;
}
.countdown__done {
  font-family: var(--f-display);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  text-indent: 0.2em;
  font-size: 0.74rem;
  color: var(--gold);
  text-shadow: var(--glow);
}

/* ---------- 4. Hero wird zur Collage ---------- */
.hero { overflow: hidden; }
.collage {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.collage__ph {
  position: absolute;
  margin: 0;
  width: clamp(84px, 24vw, 200px);
  aspect-ratio: 3 / 4;
  border-radius: 10px;
  overflow: hidden;
  border: 3px solid rgba(251, 246, 228, 0.92);
  background: var(--cream);
  box-shadow: 0 18px 44px rgba(10, 14, 4, 0.5);
  opacity: 0;
  will-change: transform, opacity;
}
.collage__ph img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 720px) {
  .collage__ph { width: clamp(140px, 13vw, 210px); }
}

/* ---------- 5. Satz färbt sich Wort für Wort ---------- */
.lede--words {
  font-family: "Prata", "Le Jour Serif", Georgia, serif;
  font-size: clamp(1.3rem, 4.6vw, 2.25rem);
  line-height: 1.38;
  max-width: 28ch;
  color: var(--cream);
  text-shadow: 0 2px 18px rgba(20, 24, 10, 0.75);
}
@font-face { font-family: "Prata"; src: url("../assets/fonts/prata-latin-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
.lede, .finale__text { text-wrap: balance; }
.ws { opacity: 0.22; display: inline-block; }
.ws.is-on { opacity: 1; }

/* ---------- 6. Polaroid-Stapel ---------- */
.stack { position: relative; }
.stack__pin {
  height: 100vh;
  height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  place-items: center;
  padding: 5.4rem var(--pad-x) 1.6rem;
  isolation: isolate;
  overflow: hidden;
}
.stack__pin::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse closest-side at 50% 50%,
    rgba(20, 24, 10, 0.7) 0%, rgba(20, 24, 10, 0.45) 60%, rgba(20, 24, 10, 0) 100%);
}
.names--stack { font-size: clamp(1.6rem, 6vw, 2.6rem); }
.stack__deck {
  position: relative;
  width: min(68vw, 330px);
  aspect-ratio: 3 / 3.75;
}
@media (min-width: 720px) and (min-height: 760px) {
  .stack__deck { width: min(40vh, 400px); }
}
.pola {
  position: absolute;
  inset: 0;
  margin: 0;
  background: var(--cream);
  padding: 4.5% 4.5% 15%;
  border-radius: 5px;
  box-shadow: 0 24px 60px rgba(10, 14, 4, 0.55);
  will-change: transform;
}
.pola img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; border-radius: 2px; }
.stack__hint {
  font-family: var(--f-display);
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-indent: 0.24em;
  text-transform: uppercase;
  color: var(--text-mute);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.stack__hint svg { animation: bob 2.2s ease-in-out infinite; }

/* Handy: Fotostreifen zum Wischen statt gepinntem Stapel */
.stack--strip .stack__pin {
  height: auto;
  padding: var(--sec-y) 0 1.2rem;
  gap: 1.4rem;
  overflow: visible;
}
.stack--strip .stack__pin::before { inset: 0; }
.stack--strip .stack__deck {
  display: flex;
  gap: 1.1rem;
  width: 100%;
  aspect-ratio: auto;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 1.2rem var(--pad-x) 2rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.stack--strip .stack__deck::-webkit-scrollbar { display: none; }
.stack--strip .pola {
  position: static;
  flex: 0 0 min(70vw, 300px);
  aspect-ratio: 3 / 3.75;
  scroll-snap-align: center;
  transform: rotate(var(--r, 0deg));
  will-change: auto;
}
.stack--strip .pola:first-child { margin-left: auto; }
.stack--strip .pola:last-child { margin-right: auto; }
.stack__hint-strip { display: none; }
.stack--strip .stack__hint-scroll { display: none; }
.stack--strip .stack__hint-strip { display: inline; }
.stack--strip .stack__hint svg { transform: rotate(-90deg); }

/* ---------- 7. Blütenregen ---------- */
.petals {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 55;
  pointer-events: none;
}

/* ---------- 8. Zeiten rollen ---------- */
.item__time span { font-variant-numeric: tabular-nums; }

/* ---------- 9. Schwebende Navigations-Pille ---------- */
.wow .topnav {
  inset: auto;
  top: max(0.7rem, env(safe-area-inset-top, 0px));
  left: 50%;
  right: auto;
  width: max-content;
  max-width: calc(100% - 1.4rem);
  transform: translateX(-50%);
  padding: 0 0.8rem;
  gap: 0.8rem;
  font-size: 0.62rem;
  letter-spacing: 0.07em;
  border-radius: 999px;
  border: 1px solid rgba(251, 246, 228, 0.14);
  background: rgba(20, 24, 10, 0.38);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 10px 30px rgba(10, 14, 4, 0.35);
  transition: transform .55s var(--ease), opacity .35s ease, background-color .4s ease;
}
.wow .topnav__links { display: flex; gap: 0.6rem; }
.wow .topnav__brand, .wow .topnav__links a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 0.1rem; }
@media (max-width: 479px) {
  .wow .topnav { padding: 0 0.55rem; gap: 0.3rem; font-size: 0.6rem; }
  .wow .topnav__links { gap: 0.1rem; }
  .wow .topnav__links a { padding-inline: 0.2rem; letter-spacing: 0.04em; }
}
@media (max-width: 374px) { .wow .topnav__brand { display: none; } }
.wow .topnav__links a::after { bottom: 12px; }
.wow .topnav__brand {
  font-family: var(--f-names);
  color: var(--gold);
  letter-spacing: 0;
  text-transform: none;
  font-size: 1rem;
}
.topnav__link-short { display: none; }
@media (max-width: 479px) {
  .topnav__link-long { display: none; }
  .topnav__link-short { display: inline; }
}
@media (min-width: 720px) { .wow .topnav__links { gap: 1.6rem; } .wow .topnav { padding: 0 1.4rem; font-size: 0.6rem; } .wow .topnav__brand { font-size: 1.15rem; } }
.wow .topnav.is-stuck { background: rgba(20, 24, 10, 0.66); box-shadow: 0 10px 30px rgba(10, 14, 4, 0.45); }
.wow .topnav.is-hidden { transform: translate(-50%, -160%); opacity: 0; }
.wow .topnav__links a { white-space: nowrap; transition: color .3s ease; }
.wow .topnav__brand { white-space: nowrap; }
.wow .topnav__brand .names__amp { font-size: 0.8em; margin: 0 0.12em; }
.topnav__brand-short { display: none; }
@media (max-width: 479px) {
  .topnav__brand-long { display: none; }
  .topnav__brand-short { display: inline; }
}
.wow .topnav__links a.is-active { color: var(--gold); }
.wow .topnav__links a.is-active::after { transform: scaleX(1); }

/* ---------- 10. Tilt + magnetische Buttons ---------- */
.tilt { transform-style: preserve-3d; will-change: transform; }
.wow .btn { transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease); }
@media (hover: hover) and (pointer: fine) { .wow .btn:hover { transform: none; } }
@media (hover: none) {
  .card:active, .note:active { transform: scale(0.985); transition: transform .15s ease; }
  .btn:active { transform: scale(0.96); }
  .btn { min-height: 44px; }
  .note__link { display: inline-block; padding-block: 0.65rem; margin-block: -0.65rem; }
}
@media (max-width: 719px) { .sparkle--c { display: none; } }
.h-display, .finale__line { text-wrap: balance; }
/* Fließtext auf dem Handy nie unter 16 px (Lesbarkeit für alle Gäste) */
@media (max-width: 719px) {
  .wow .item__lead, .wow .item__detail, .wow .item__place, .wow .note, .wow .tip__list, .wow .card__text, .wow .hero__tagline { font-size: 1rem; }
}
.wow .hero { min-height: 100vh; min-height: 100svh; }
@media (prefers-reduced-motion: no-preference) { .wow .statement__pin { height: 100vh; height: 100svh; } }
@media print { .wow .statement__pin { height: auto; } }

/* ---------- 12. Schlussbild ---------- */
.finale {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: end center;
  overflow: hidden;
  isolation: isolate;
  padding: var(--sec-y) 0 clamp(2.5rem, 7vh, 5rem);
  /* Wiese blendet erst ins Dunkel, dann kommt das Nachtfoto: kein Geisterbild */
  background: linear-gradient(180deg, rgba(27, 32, 16, 0) 0%, rgba(27, 32, 16, 1) 14%);
}
.finale__media {
  position: absolute; inset: -18% 0; z-index: -2;
  -webkit-mask-image: linear-gradient(180deg, transparent 14%, #000 32%);
  mask-image: linear-gradient(180deg, transparent 14%, #000 32%);
}
@media (max-width: 719px) {
  .finale { padding-bottom: clamp(4rem, 14vh, 9rem); }
  .finale__media { inset: -8% 0; -webkit-mask-image: linear-gradient(180deg, transparent 8%, #000 24%); mask-image: linear-gradient(180deg, transparent 8%, #000 24%); }
}
.finale__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  will-change: transform;
}
@media (max-width: 719px) { .finale__media img { object-position: 38% 30%; } }
.finale__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg,
    rgba(20, 24, 10, 0) 0%, rgba(20, 24, 10, 0.3) 30%,
    rgba(20, 24, 10, 0.72) 68%, rgba(27, 32, 16, 1) 100%);
}
.finale__content { position: relative; z-index: 1; }
.finale__line {
  font-family: var(--f-arc);
  font-size: clamp(2.1rem, 8vw, 4.8rem);
  line-height: 1.08;
  color: var(--cream);
  text-transform: none;
  letter-spacing: -0.01em;
  text-shadow: 0 4px 30px rgba(20, 24, 10, 0.7);
}
.finale__text {
  font-family: var(--f-body);
  font-size: clamp(1rem, 2.6vw, 1.12rem);
  line-height: 1.75;
  color: var(--text-soft);
  max-width: 40ch;
  margin: 1.6rem auto 0;
  text-shadow: 0 1px 12px rgba(20, 24, 10, 0.7);
}
.footer { padding-block: clamp(2.6rem, 6vw, 4rem); }
.footer::before { background: var(--ink-dark); }

/* ---------- Bewegung reduzieren ---------- */
@media (prefers-reduced-motion: reduce) {
  .gate { display: none !important; }
  .collage { display: none; }
  .ws { opacity: 1; }
  .stack__pin { height: auto; padding-top: var(--sec-y); gap: 1.6rem; }
  .stack__deck {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
    width: 100%;
    aspect-ratio: auto;
  }
  .pola { position: static; aspect-ratio: 3 / 3.75; transform: none !important; }
  .stack__hint, .stack__hint svg { display: none; animation: none; }
  .gate__cta { animation: none; }
}
@media print {
  .gate, .collage, .petals, .stack__hint { display: none !important; }
  .finale__media, .finale__scrim { display: none; }
  .finale__line, .finale__text { color: #000; text-shadow: none; }
}
