/* Layout: one centered column, a big animated "50" hero, then calm sections on a night-blue ground */
:root {
  --night: #14122b;
  --night-2: #1c1940;
  --panel: #221f4a;
  --line: rgba(243, 238, 252, .12);
  --text: #f3eefc;
  --muted: #a9a3c7;
  --gold: #f6c177;
  --coral: #ff7a6b;
  --rose: #e85d9c;
  --ok: #7fe0b0;
  --err: #ff9b8f;

  --f-display: "Avenir Next", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --f-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --f-accent: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;

  --r: 18px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  background-image:
    radial-gradient(1200px 600px at 80% -10%, rgba(232, 93, 156, .22), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(246, 193, 119, .14), transparent 60%);
  background-attachment: fixed;
  color: var(--text);
  font: 17px/1.6 var(--f-body);
  overflow-x: hidden;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
/* Nichts darf seitlich überstehen: sonst zoomt das Handy heraus und die Menüleiste verrutscht */
html, body { overflow-x: clip; }
img { max-width: 100%; }
[hidden] { display: none !important; }
a { color: var(--gold); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

#funken { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
header, main, footer { position: relative; z-index: 1; }

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.wrap.narrow { max-width: 720px; }

/* ---------- HERO ---------- */
.hero {
  padding-top: calc(env(safe-area-inset-top, 0px) + clamp(40px, 8vw, 90px));
  padding-bottom: clamp(40px, 7vw, 80px);
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
  text-align: center;
}
.hero-inner { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 18px; }

.eyebrow {
  margin: 0;
  font-size: .8rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-title { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; font-weight: 400; }

.fifty {
  display: flex;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(9rem, 38vw, 22rem);
  line-height: .82;
  letter-spacing: -.06em;
  padding-right: .06em;
}
.digit {
  display: inline-block;
  background: linear-gradient(100deg, var(--gold) 0%, var(--coral) 35%, var(--rose) 60%, var(--gold) 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: rise 1.1s var(--ease) both, shimmer 7s linear infinite;
  animation-delay: calc(var(--d) * 120ms), 0s;
  filter: drop-shadow(0 18px 40px rgba(232, 93, 156, .28));
}
.digit { padding: .04em .07em 0; }
.digit + .digit { margin-left: -.18em; }

.hero-name {
  font-family: var(--f-accent);
  font-style: italic;
  font-size: clamp(1.4rem, 4.4vw, 2.3rem);
  line-height: 1.2;
  text-wrap: balance;
}
.hero-date { margin: 0; font-size: clamp(1.05rem, 2.6vw, 1.25rem); color: var(--text); font-weight: 600; letter-spacing: .01em; }

.countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; width: 100%; max-width: 520px; margin-top: 10px; }
.cd {
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 4px 10px;
  display: flex; flex-direction: column; align-items: center;
  backdrop-filter: blur(6px);
}
.cd-n { font: 800 clamp(1.6rem, 6vw, 2.4rem)/1 var(--f-display); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.cd-n.tick { animation: tick .45s var(--ease); }
.cd-l { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }

.hero-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: min(100%, 420px); margin: 12px auto 0; }
.hero-nav .btn { width: 100%; padding-inline: 14px; }
.hero-cta { grid-column: 1 / -1; min-height: 54px; font-size: 1.05rem; }
.hero-zweit { white-space: normal; line-height: 1.2; text-align: center; }
/* In der App stehen Fotos und Mitfahren schon in der Menüleiste */
.als-app .hero-zweit { display: none; }

.years {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin: clamp(36px, 6vw, 60px) auto 0; max-width: 520px;
  font: 700 .85rem/1 var(--f-display); letter-spacing: .2em; color: var(--muted);
}
.years .line { flex: 1; height: 2px; background: linear-gradient(90deg, var(--gold), var(--rose)); transform-origin: left; animation: grow 1.6s var(--ease) .9s both; border-radius: 2px; }

/* ---------- BUTTONS ---------- */
.btn {
  white-space: nowrap;
  appearance: none; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  font: 700 1rem/1 var(--f-body); text-decoration: none;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
}
.btn-primary { background: linear-gradient(100deg, var(--gold), var(--coral)); color: #2a1320; box-shadow: 0 8px 24px rgba(255, 122, 107, .3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(255, 122, 107, .42); }
.btn-primary:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--gold); color: var(--gold); }

/* ---------- SECTIONS ---------- */
.section { padding-block: clamp(56px, 9vw, 100px); }
.section-panel { background: linear-gradient(180deg, transparent, rgba(34, 31, 74, .55) 18%, rgba(34, 31, 74, .55) 82%, transparent); }
.h2 { margin: 0 0 28px; font: 800 clamp(1.8rem, 5vw, 2.8rem)/1.1 var(--f-display); letter-spacing: -.02em; text-wrap: balance; }
.kicker { display: block; font: 700 .78rem/1 var(--f-body); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.lead { margin: -8px 0 28px; color: var(--muted); max-width: 62ch; }
.note { color: var(--muted); font-size: .9rem; margin-top: 18px; }
.muted { color: var(--muted); }

.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.fact { background: rgba(255, 255, 255, .04); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fact-wide { grid-column: span 2; }
.fact-l { font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.fact-v { font: 700 clamp(1.15rem, 3vw, 1.45rem)/1.3 var(--f-display); }
.fact-s { color: var(--muted); }
.link { font-weight: 600; text-decoration: none; margin-top: 4px; }
.link:hover { text-decoration: underline; }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 76px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(var(--gold), var(--rose)); opacity: .5; }
.tl { display: grid; grid-template-columns: 64px 1fr; gap: 28px; align-items: baseline; padding: 12px 0; position: relative; }
.tl::before { content: ""; position: absolute; left: 71px; top: 22px; width: 12px; height: 12px; border-radius: 50%; background: var(--night); box-shadow: inset 0 0 0 3px var(--gold); }
.tl-t { font: 800 1.05rem/1 var(--f-display); font-variant-numeric: tabular-nums; color: var(--gold); text-align: right; }
.tl-w { font-size: 1.1rem; }

/* ---------- FORMS ---------- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: clamp(20px, 4vw, 32px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.form { display: flex; flex-direction: column; gap: 18px; animation: pop .5s var(--ease) both; }
.stack { display: flex; flex-direction: column; gap: 18px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field-l { font-weight: 600; font-size: .95rem; }
.field-l em { font-style: normal; color: var(--muted); font-weight: 400; }
input[type=text], input[type=password], input[type=tel], input[type=number], input[type=search], textarea, select {
  width: 100%; font: inherit; color: var(--text);
  background: rgba(0, 0, 0, .22); border: 1.5px solid var(--line); border-radius: 12px;
  padding: 12px 14px; min-height: 48px; transition: border-color .2s, background .2s;
}
input[type=text]:focus, input[type=password]:focus, input[type=tel]:focus, input[type=number]:focus, textarea:focus, select:focus { outline: none; border-color: var(--gold); background: rgba(0, 0, 0, .32); }
textarea { resize: vertical; }
select option { background: var(--night-2); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.choice { display: flex; flex-wrap: wrap; gap: 10px; }
.choice legend { margin-bottom: 10px; width: 100%; }
.choice .field { width: 100%; margin-top: 6px; }
.pill { position: relative; cursor: pointer; }
.pill input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pill span { display: inline-flex; align-items: center; min-height: 46px; padding: 0 20px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 600; transition: all .2s var(--ease); }
.pill input:checked + span { background: linear-gradient(100deg, var(--gold), var(--coral)); color: #2a1320; box-shadow: none; }
.pill input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 3px; }
.hello { margin: 0; font-size: 1.2rem; }
.msg { margin: 0; font-weight: 600; }
.msg.err { color: var(--err); }
.msg.ok { color: var(--ok); }

.done { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; animation: pop .5s var(--ease) both; }
.done-mark { width: 72px; height: 72px; border-radius: 50%; background: linear-gradient(135deg, var(--gold), var(--rose)); position: relative; animation: pop .6s var(--ease) .1s both; }
.done-mark::after { content: ""; position: absolute; left: 25px; top: 18px; width: 18px; height: 30px; border: solid #2a1320; border-width: 0 5px 5px 0; transform: rotate(45deg); }
.done-t { font: 800 1.5rem/1.2 var(--f-display); margin: 8px 0 0; text-wrap: balance; }
.done-s { color: var(--muted); margin: 0 0 8px; }

/* upload */
.drop {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
  padding: 34px 16px; border-radius: 18px; border: 2px dashed rgba(246, 193, 119, .45); cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s var(--ease);
}
.drop:hover, .drop.over { background: rgba(246, 193, 119, .07); border-color: var(--gold); }
.drop.over { transform: scale(1.01); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop-icon { width: 46px; height: 46px; border-radius: 12px; background: linear-gradient(135deg, var(--gold), var(--coral)); position: relative; margin-bottom: 6px; }
.drop-icon::before { content: ""; position: absolute; left: 10px; right: 10px; bottom: 11px; height: 14px; background: #2a1320; clip-path: polygon(0 100%, 35% 30%, 55% 65%, 72% 45%, 100% 100%); }
.drop-icon::after { content: ""; position: absolute; right: 11px; top: 10px; width: 7px; height: 7px; border-radius: 50%; background: #2a1320; }
.drop-t { font-weight: 700; font-size: 1.1rem; }
.drop-s { color: var(--muted); font-size: .9rem; }
.previews { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.previews:empty { display: none; }
.previews li { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--night-2); animation: pop .35s var(--ease) both; }
.previews img { width: 100%; height: 100%; object-fit: cover; display: block; }
.previews li.done::after, .previews li.fail::after { content: ""; position: absolute; inset: 0; display: grid; place-items: center; font-weight: 900; font-size: 1.6rem; }
.previews li.done::after { content: "✓"; background: rgba(20, 18, 43, .55); color: var(--ok); }
.previews li.fail::after { content: "!"; background: rgba(20, 18, 43, .6); color: var(--err); }
.previews li.busy { outline: 2px solid var(--gold); outline-offset: -2px; }
.progress { height: 8px; border-radius: 8px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--rose)); transition: width .25s; }

/* ---------- FOOTER ---------- */
.footer { padding-block: 60px 40px; border-top: 1px solid var(--line); text-align: center; color: var(--muted); }
.footer-big { font-family: var(--f-accent); font-style: italic; font-size: clamp(1.4rem, 4vw, 2rem); color: var(--text); margin: 0 0 8px; }
.privacy { max-width: 62ch; margin: 24px auto 0; text-align: left; font-size: .88rem; }
.privacy summary { cursor: pointer; text-align: center; color: var(--muted); }

/* ---------- MOTION ---------- */
.reveal { animation: fadeUp .9s var(--ease) both; animation-delay: calc(var(--d, 0) * 110ms + 250ms); }
.js .reveal-scroll.pending { opacity: 0; transform: translateY(18px); }
.js .reveal-scroll { transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }

@keyframes rise { from { opacity: 0; transform: translateY(.35em) rotate(-6deg) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes shimmer { to { background-position: -250% 0; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes tick { 0% { transform: translateY(-30%); opacity: .2; } 100% { transform: none; opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .facts, .grid2 { grid-template-columns: minmax(0, 1fr); }
  .fact-wide { grid-column: auto; }
  .countdown { gap: 6px; }
  .timeline::before { left: 60px; }
  .tl { grid-template-columns: 50px 1fr; gap: 24px; }
  .tl::before { left: 55px; }
  .row .btn { flex: 1; }
}

.lageplan { display: block; width: 100%; max-width: 640px; height: auto; margin-top: 12px; border-radius: 14px; }

/* ---------- MITFAHRBÖRSE ---------- */
.rides-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 18px; }
.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); }
.tab { appearance: none; border: 0; background: none; color: var(--muted); font: 600 .92rem/1 var(--f-body); padding: 10px 16px; border-radius: 999px; cursor: pointer; transition: all .2s var(--ease); }
.tab.on { background: var(--panel); color: var(--text); box-shadow: 0 4px 14px rgba(0, 0, 0, .3); }
.rides { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.ride { background: rgba(255, 255, 255, .04); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; min-width: 0; animation: pop .4s var(--ease) both; }
.ride-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ride-typ { font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.ride-typ.biete { background: rgba(127, 224, 176, .15); color: var(--ok); }
.ride-typ.suche { background: rgba(246, 193, 119, .15); color: var(--gold); }
.ride-seats { font-size: .85rem; color: var(--muted); }
.ride-von { font: 700 1.15rem/1.3 var(--f-display); overflow-wrap: anywhere; }
.ride-meta { color: var(--muted); font-size: .92rem; overflow-wrap: anywhere; }
.ride-kontakt { font-weight: 600; overflow-wrap: anywhere; user-select: all; }
.ride-del { align-self: flex-start; background: none; border: 0; padding: 0; color: var(--err); font: inherit; font-size: .85rem; cursor: pointer; }
.ride-empty { grid-column: 1 / -1; color: var(--muted); padding: 22px; border: 1.5px dashed var(--line); border-radius: var(--r); text-align: center; }
.ride-form { margin-top: 6px; }

/* ---------- HOTEL ---------- */
.hotel { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.hotel-main { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.hotel-main p { margin: 0; }
.hotel-preis { font-weight: 700; color: var(--gold); }
.hotel-kontakt { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; min-width: 0; }
.check { display: flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 600; }
.check input { width: 22px; height: 22px; accent-color: var(--coral); flex: none; }

.nolink { display: flex; flex-direction: column; gap: 8px; }
.nolink p { margin: 0; }
.nolink code { background: rgba(255,255,255,.08); padding: 1px 6px; border-radius: 6px; }
.rides-head .msg { flex-basis: 100%; }

/* ---------- MEDIEN ---------- */
.medien-tabs { margin-bottom: 14px; }
.hint { margin: 0; font-size: .88rem; color: var(--muted); }
.meine { margin: 14px 0 0; color: var(--muted); font-size: .92rem; text-align: center; }
.previews li .vid { position: absolute; left: 6px; bottom: 6px; background: rgba(20,18,43,.8); color: var(--text); font-size: .7rem; font-weight: 700; padding: 2px 6px; border-radius: 6px; }
.previews li video { width: 100%; height: 100%; object-fit: cover; display: block; }
.previews li .pct { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; background: rgba(20,18,43,.55); }

/* ---------- ACTION FÜR DIE 50 (nur im Startbereich) ---------- */
.hero .fifty {
  position: relative;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .25s ease-out;
  transform-style: preserve-3d;
}
/* pulsierendes Leuchten hinter der 50 */
.hero .fifty::before {
  content: "";
  position: absolute;
  inset: 8% 4%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(232, 93, 156, .55), rgba(246, 193, 119, .18) 60%, transparent);
  filter: blur(30px);
  animation: glow 3.2s ease-in-out 1.8s infinite;
  opacity: 0;
}
.hero .digit {
  animation: drop 1.15s cubic-bezier(.2, .9, .3, 1.25) both, shimmer 7s linear infinite, bob 4.5s ease-in-out infinite;
  animation-delay: calc(var(--d) * 260ms - 100ms), 0s, calc(1.8s + var(--d) * 600ms);
  transform-origin: 50% 100%;
}
.hero .digit.jump { animation: jump .7s cubic-bezier(.2, .9, .3, 1.3), shimmer 7s linear infinite; }
.hero .ring {
  position: absolute;
  left: var(--x); top: var(--y);
  width: 40px; height: 40px;
  margin: -20px 0 0 -20px;
  border-radius: 50%;
  border: 3px solid var(--gold);
  pointer-events: none;
  animation: ring .9s ease-out forwards;
}
@keyframes drop {
  0%   { opacity: 0; transform: translateY(-120%) rotate(-14deg) scale(.8); }
  55%  { opacity: 1; transform: translateY(4%) rotate(3deg) scaleY(.86) scaleX(1.08); }
  72%  { transform: translateY(-7%) rotate(-1.5deg) scaleY(1.04) scaleX(.97); }
  86%  { transform: translateY(1%) scaleY(.98); }
  100% { opacity: 1; transform: none; }
}
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(0); }
  50%      { transform: translateY(-3.5%) rotate(-1.2deg); }
}
@keyframes jump {
  0%   { transform: none; }
  30%  { transform: translateY(-18%) rotate(-8deg) scale(1.06); }
  60%  { transform: translateY(2%) scaleY(.9) scaleX(1.06); }
  80%  { transform: translateY(-3%); }
  100% { transform: none; }
}
@keyframes glow {
  0%, 100% { opacity: .45; transform: scale(.92); }
  50%      { opacity: 1;   transform: scale(1.08); }
}
@keyframes ring {
  from { opacity: .9; transform: scale(.2); border-width: 6px; }
  to   { opacity: 0;  transform: scale(9); border-width: 1px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero .fifty { transform: none; }
  .hero .fifty::before { animation: none; opacity: .6; }
  .hero .digit { animation: shimmer 7s linear infinite; }
}

/* ---------- ZEITSTRAHL (horizontal, mit Action) ---------- */
.hero { overflow-x: clip; }
.zt-section { overflow-x: clip; }
.zt-section .wrap { position: relative; }
.zs-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 18px; }
.zs-head .h2 { margin: 0; }
.zt-stage { position: relative; height: clamp(340px, 52vh, 520px); display: grid; place-items: center; }
.zt-year {
  position: absolute; inset: 0; display: grid; place-items: center;
  font: 900 clamp(6rem, 24vw, 16rem)/1 var(--f-display); letter-spacing: -.05em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(100deg, var(--gold), var(--coral) 45%, var(--rose));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: .16; user-select: none; pointer-events: none;
  transition: opacity .4s;
}
.zt-year.finale { opacity: .9; animation: drop 1.1s cubic-bezier(.2, .9, .3, 1.25) both; }
.zt-hint { position: relative; margin: 0; color: var(--muted); font-size: 1.05rem; text-align: center; text-wrap: balance; }
.zt-hint.gross { font: italic 700 clamp(1.4rem, 4vw, 2.2rem)/1.2 var(--f-accent); color: var(--text); margin-top: 38%; }

.zt-pop {
  position: absolute; left: 50%; top: 50%; margin: 0; z-index: 5;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  transform: translate(-50%, -50%); will-change: transform, opacity; cursor: zoom-in;
}
.zt-pop img {
  display: block; max-height: calc(clamp(340px, 52vh, 520px) - 110px); max-width: min(82vw, 640px);
  border-radius: 14px; border: 4px solid var(--gold);
  box-shadow: 0 40px 90px -20px rgba(0, 0, 0, .85), 0 0 60px rgba(232, 93, 156, .35);
  background: var(--panel);
}
.zt-pop figcaption { text-align: center; max-width: min(82vw, 560px); text-shadow: 0 2px 14px rgba(0, 0, 0, .8); }
.zt-pop figcaption b { display: block; font: 800 1.3rem/1.1 var(--f-display); color: var(--gold); margin-bottom: 4px; }
.zt-pop figcaption span { font-size: 1.05rem; line-height: 1.4; }

.zt-axis { position: relative; height: 150px; margin-top: 8px; }
.zt-line { position: absolute; left: 0; right: 0; bottom: 34px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .1); }
.zt-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 4px; background: linear-gradient(90deg, var(--gold), var(--coral), var(--rose)); box-shadow: 0 0 14px rgba(255, 122, 107, .6); transition: width .8s var(--ease); }
.zt-tick { position: absolute; bottom: 8px; transform: translateX(-50%); font: 700 .78rem/1 var(--f-body); color: var(--muted); letter-spacing: .06em; }
.zt-tick::before { content: ""; position: absolute; left: 50%; bottom: 20px; width: 2px; height: 10px; margin-left: -1px; background: rgba(255, 255, 255, .25); }
.zt-dot {
  position: absolute; width: 28px; height: 28px; margin-left: -14px; padding: 0;
  border-radius: 50%; border: 2px solid var(--gold); cursor: pointer;
  background: var(--panel) center / cover no-repeat;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .5);
  transform: scale(0); transition: transform .2s;
}
.zt-dot.da { transform: scale(1); }
.zt-dot.landet { animation: landen .6s cubic-bezier(.2, .9, .3, 1.4); }
.zt-dot:hover, .zt-dot:focus-visible { transform: scale(1.5); z-index: 3; }
.zt-tip { margin: 6px 0 0; color: var(--muted); font-size: .85rem; text-align: center; }
@keyframes landen { 0% { transform: scale(2.4); } 60% { transform: scale(.8); } 100% { transform: scale(1); } }

/* Großansicht */
.zs-box { position: fixed; inset: 0; z-index: 50; background: rgba(8, 7, 20, .97); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; padding: max(16px, env(safe-area-inset-top, 0px)) max(10px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(10px, env(safe-area-inset-left, 0px)); animation: pop .3s var(--ease); }
.zs-fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; min-width: 0; }
.zs-fig img { max-width: 100%; max-height: 76vh; border-radius: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, .7); }
.zs-fig img.rein { animation: zsrein .6s var(--ease); }
.zs-fig figcaption { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; font-size: 1.1rem; max-width: 60ch; }
.zs-fig .zs-jahr { font: 800 1.4rem/1 var(--f-display); color: var(--gold); }
.zs-nav, .zs-x { appearance: none; border: 0; background: rgba(255, 255, 255, .08); color: var(--text); width: 48px; height: 48px; border-radius: 50%; font-size: 2rem; line-height: 1; cursor: pointer; }
.zs-nav:hover, .zs-x:hover { background: rgba(255, 255, 255, .16); }
.zs-x { position: absolute; top: max(14px, env(safe-area-inset-top, 0px)); right: max(14px, env(safe-area-inset-right, 0px)); }
.zs-dots { position: absolute; left: 0; right: 0; bottom: max(14px, env(safe-area-inset-bottom, 0px)); display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; padding: 0 60px; }
.zs-dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .25); transition: background .3s, transform .3s; }
.zs-dots span.on { background: var(--gold); transform: scale(1.4); }
@keyframes zsrein { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }

@media (max-width: 640px) {
  .zt-stage { height: clamp(320px, 50vh, 440px); }
  .zt-pop img { max-height: calc(clamp(320px, 50vh, 440px) - 120px); max-width: 78vw; border-width: 3px; }
  .zt-pop figcaption span { font-size: .95rem; }
  .zt-dot { width: 18px; height: 18px; margin-left: -9px; border-width: 1.5px; }
  .zs-head .row { width: 100%; }
  .zt-tick { font-size: .68rem; }
  .zt-axis { height: 140px; }
  .zs-nav { width: 40px; height: 40px; font-size: 1.6rem; }
  .zs-box { grid-template-columns: 1fr; }
  .zs-box .zs-prev, .zs-box .zs-next { position: absolute; bottom: 44px; }
  .zs-box .zs-prev { left: 16px; } .zs-box .zs-next { right: 16px; }
}

/* ---------- RATESPIEL ---------- */
.rt-schritt { margin-top: 30px; }
.rt-h3 { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; font: 800 1.35rem/1.2 var(--f-display); }
.rt-h3 span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--gold), var(--coral)); color: #2a1320; font-size: 1rem; }
.rt-meine { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 12px; }
.rt-slot { width: 190px; display: flex; flex-direction: column; gap: 8px; }
.rt-slot-l { font-weight: 700; font-size: .95rem; }
.rt-feld { position: relative; aspect-ratio: 3 / 4; border-radius: 16px; overflow: hidden; border: 2px dashed rgba(246, 193, 119, .5); display: grid; place-items: center; text-align: center; padding: 12px; cursor: pointer; color: var(--muted); font-size: .9rem; transition: border-color .2s, background .2s; }
.rt-feld:hover { border-color: var(--gold); background: rgba(246, 193, 119, .06); }
.rt-feld input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.rt-feld.voll { border: 3px solid var(--gold); padding: 0; }
.rt-feld.voll img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rt-feld .plus { display: block; font-size: 2.4rem; line-height: 1; color: var(--gold); margin-bottom: 6px; }
.rt-slot .row { gap: 8px; }
.rt-slot .mini-btn { appearance: none; background: none; border: 0; padding: 0; font: inherit; font-size: .85rem; color: var(--gold); cursor: pointer; text-decoration: underline; }
.rt-slot .mini-btn.weg { color: var(--err); }
.rt-stand { margin: -6px 0 16px; color: var(--muted); }
.rt-stand b { color: var(--gold); }
.rt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.rt-karte { background: rgba(255, 255, 255, .04); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; transition: border-color .3s, transform .3s var(--ease); }
.rt-karte.getippt { border-color: rgba(246, 193, 119, .7); }
.rt-karte.gespeichert { animation: pop .4s var(--ease); }
.rt-karte img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; cursor: zoom-in; }
.rt-karte select { margin: 10px; width: calc(100% - 20px); min-height: 42px; padding: 8px 10px; font-size: .95rem; }
.rt-leer { grid-column: 1 / -1; color: var(--muted); padding: 22px; border: 1.5px dashed var(--line); border-radius: 16px; text-align: center; }
@media (max-width: 560px) {
  .rt-slot { width: calc(50% - 8px); }
  .rt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}

/* ---------- SPRACHWAHL ---------- */
.sprachwahl { position: absolute; z-index: 10; top: calc(env(safe-area-inset-top, 0px) + 14px); right: max(16px, env(safe-area-inset-right, 0px)); display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: rgba(20, 18, 43, .6); border: 1px solid var(--line); backdrop-filter: blur(6px); }
.sprachwahl a { font: 700 .78rem/1 var(--f-body); letter-spacing: .06em; color: var(--muted); text-decoration: none; padding: 7px 10px; border-radius: 999px; }
.sprachwahl a:hover { color: var(--text); }
.sprachwahl a.on { background: var(--gold); color: #2a1320; }

/* ---------- QUIZ ---------- */
.qz-info { margin: 0 0 16px; color: var(--muted); }
.qz-kopf { display: flex; align-items: center; gap: 14px; font-weight: 700; color: var(--gold); font-size: .9rem; letter-spacing: .06em; }
.qz-balken { flex: 1; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.qz-balken span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--rose)); transition: width .5s var(--ease); }
.qz-text { margin: 18px 0 18px; font: 800 clamp(1.3rem, 3.6vw, 1.8rem)/1.25 var(--f-display); text-wrap: balance; }
.qz-antworten { display: grid; gap: 10px; }
.qz-a { appearance: none; text-align: left; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: rgba(0, 0, 0, .2); color: var(--text); font: 600 1rem/1.3 var(--f-body); cursor: pointer; transition: border-color .2s, background .2s, transform .2s var(--ease); }
.qz-a:hover:not(:disabled) { border-color: var(--gold); transform: translateX(3px); }
.qz-a b { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .08); font-size: .9rem; }
.qz-a:disabled { cursor: default; }
.qz-a.ok { border-color: var(--ok); background: rgba(127, 224, 176, .14); animation: pop .4s var(--ease); }
.qz-a.ok b { background: var(--ok); color: #0b0a18; }
.qz-a.falsch { border-color: var(--err); background: rgba(255, 155, 143, .12); animation: wackel .4s; }
.qz-a.falsch b { background: var(--err); color: #0b0a18; }
.qz-feedback { margin: 16px 0 0; font-weight: 700; }
.qz-feedback.ok { color: var(--ok); }
.qz-feedback.falsch { color: var(--err); }
.qz-frage .btn { margin-top: 16px; }
@keyframes wackel { 0%, 100% { transform: none; } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
@media (max-width: 700px) {
  .sprachwahl { position: relative; top: auto; right: auto; width: max-content; margin: calc(env(safe-area-inset-top, 0px) + 12px) auto 0; }
  .hero { padding-top: 22px; }
}

/* ---------- PARTY-APP ---------- */
.appbox-wrap { padding-block: 10px 0; position: relative; z-index: 1; }
.appbox { display: flex; gap: 18px; align-items: flex-start; border-color: rgba(246, 193, 119, .45); animation: pop .5s var(--ease) both; }
.appbox-icon { width: 64px; height: 64px; border-radius: 16px; flex: none; box-shadow: 0 10px 24px rgba(0, 0, 0, .4); }
.appbox-main { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.appbox-main p { margin: 0; }
.app-ios { padding: 12px 14px; border-radius: 12px; background: rgba(246, 193, 119, .08); border: 1px dashed rgba(246, 193, 119, .45); color: var(--text) !important; }
.link-btn { appearance: none; background: none; border: 0; padding: 0; font: inherit; color: var(--gold); text-decoration: underline; cursor: pointer; }
@media (max-width: 480px) { .appbox { flex-direction: column; } .appbox .row .btn { flex: 1 1 auto; } }

.begl-box { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; border-color: rgba(246, 193, 119, .35); }
.begl-box p { margin: 0; }

/* Gästepass */
.done-pass { margin: 4px 0 18px; padding: 16px; border-radius: 14px; background: rgba(246, 193, 119, .1); border: 1px solid rgba(246, 193, 119, .35); }
.done-pass .fact-s { margin: 0 0 12px; }

/* Menüleiste unten – nur in der installierten App */
.app-leiste, .leiste-mehr { display: none; }
.als-app .app-leiste { display: flex; }
.als-app body { padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px)); }
.als-app .leiste-mehr:not([hidden]) { display: block; }
.app-leiste {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  justify-content: space-around; align-items: stretch;
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
  background: rgba(20, 18, 43, .88); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  border-top: 1px solid var(--line);
}
.app-leiste a {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 5px 2px; color: var(--muted); text-decoration: none; font: 600 .7rem/1.1 var(--f-body);
  -webkit-tap-highlight-color: transparent; border-radius: 12px; transition: color .2s;
}
.app-leiste svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.app-leiste a[data-tab=mehr] svg { fill: currentColor; stroke: none; }
.app-leiste a.on, .app-leiste a.offen { color: var(--gold); }
.app-leiste a.on svg { transform: translateY(-2px) scale(1.08); }
.app-leiste a:active svg { transform: scale(.88); }
.leiste-mehr { position: fixed; inset: 0; z-index: 39; background: rgba(8, 7, 20, .55); animation: lm-ein .2s ease both; }
.lm-blatt {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 10px 18px calc(84px + env(safe-area-inset-bottom, 0px));
  background: var(--night-2); border-top: 1px solid var(--line); border-radius: 22px 22px 0 0;
  animation: lm-hoch .3s var(--ease) both;
}
.lm-griff { display: block; width: 40px; height: 4px; border-radius: 9px; background: var(--line); margin: 0 auto 10px; }
.lm-blatt ul { list-style: none; margin: 0; padding: 0; }
.lm-blatt li a { display: block; padding: 13px 4px; color: var(--text); text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--line); }
.lm-blatt li a::after { content: "›"; float: right; color: var(--muted); }
.lm-sprachen { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-top: 14px; }
.lm-sprachen a { color: var(--muted); text-decoration: none; font-size: .85rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; }
.lm-sprachen a.on { color: #2a1320; background: var(--gold); }
@keyframes lm-ein { from { opacity: 0; } }
@keyframes lm-hoch { from { transform: translateY(100%); } }
/* In der App ersetzt die Leiste die Sprachwahl oben */
.als-app .sprachwahl { display: none; }

/* Foto-Bingo */
.bg-stand { text-align: center; font-weight: 700; color: var(--gold); margin: 0 0 14px; min-height: 1.6em; }
.bg-karte { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-width: 520px; margin: 0 auto; padding: 8px; border-radius: 22px; background: linear-gradient(135deg, rgba(246,193,119,.35), rgba(232,93,156,.35)); }
.bg-feld {
  position: relative; aspect-ratio: 1; border: 0; border-radius: 14px; overflow: hidden; cursor: pointer;
  background: var(--panel); color: var(--text); padding: 8px; display: grid; place-items: center;
  font: 700 clamp(.72rem, 3.2vw, .92rem)/1.2 var(--f-body); text-align: center;
  animation: bg-rein .5s var(--ease) both; animation-delay: calc(var(--i) * 50ms);
  transition: transform .2s var(--ease), box-shadow .2s;
  -webkit-tap-highlight-color: transparent;
}
.bg-feld:not(:disabled):hover { transform: scale(1.03); }
.bg-feld:not(:disabled):active { transform: scale(.95); }
.bg-feld:not(.voll)::before { content: "📷"; position: absolute; top: 7px; right: 8px; font-size: .8rem; opacity: .5; }
.bg-feld img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bg-feld.voll .bg-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 6px 6px; font-size: .68rem; background: linear-gradient(transparent, rgba(8,7,20,.85)); }
.bg-haken { position: absolute; top: 6px; left: 6px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--ok); color: #10241a; font-size: .8rem; font-weight: 900; }
.bg-feld.linie { box-shadow: 0 0 0 3px var(--gold), 0 0 22px rgba(246,193,119,.55); }
.bg-feld.laedt { opacity: .5; animation: bg-puls 1s ease-in-out infinite; }
.bg-karte.zu .bg-feld { cursor: default; opacity: .75; }
.bg-karte.zu .bg-feld::before { content: "🔒"; opacity: .7; }
#bingo .hint { text-align: center; margin-top: 12px; }
#bingo .msg { text-align: center; }
.bg-jubel { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; pointer-events: none; }
.bg-jubel span { font: 900 clamp(3rem, 16vw, 7rem)/1 var(--f-display); letter-spacing: -.03em; text-align: center; padding: 0 16px;
  background: linear-gradient(100deg, var(--gold), var(--coral), var(--rose)); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 8px 30px rgba(0,0,0,.6)); }
.bg-jubel.los span { animation: bg-jubel 2.6s cubic-bezier(.2,.9,.3,1.3) both; }
@keyframes bg-rein { from { opacity: 0; transform: scale(.6) rotate(-6deg); } }
@keyframes bg-puls { 50% { opacity: .25; } }
@keyframes bg-jubel { 0% { opacity: 0; transform: scale(.2) rotate(-12deg); } 20% { opacity: 1; transform: scale(1.15) rotate(3deg); } 30% { transform: scale(1) rotate(0); } 80% { opacity: 1; } 100% { opacity: 0; transform: scale(1.4); } }
@media (prefers-reduced-motion: reduce) { .bg-feld, .bg-jubel.los span { animation: none; } }

/* Vor der Zusage: was danach freigeschaltet wird */
.vorschau { text-align: center; }
.vs-schloss { font-size: 2.2rem; margin: 0 0 4px; animation: bob 4.5s ease-in-out infinite; }
.vs-liste { list-style: none; margin: 14px auto 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 8px; max-width: 520px; text-align: left; }
.vs-liste li { padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); color: var(--muted); font-weight: 600; font-size: .95rem; }

/* Weitere Person anfragen */
.extra-box { margin: 4px 0 18px; padding: 16px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); text-align: left; }
.extra-t { margin: 0 0 4px; font-weight: 700; }
.extra-box .fact-s { margin: 0 0 12px; }
.extra-liste { list-style: none; margin: 0 0 10px; padding: 0; }
.extra-liste li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.extra-liste .ex-n { font-weight: 600; flex: 1; min-width: 120px; }
.extra-liste .ex-s { font-size: .82rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.ex-offen .ex-s { background: rgba(246, 193, 119, .15); color: var(--gold); }
.ex-ja .ex-s { background: rgba(127, 224, 176, .15); color: var(--ok); }
.ex-nein .ex-s { background: rgba(255, 155, 143, .15); color: var(--err); }
.extra-form { display: flex; gap: 8px; flex-wrap: wrap; }
.extra-form input { flex: 1 1 180px; min-height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--night-2); color: var(--text); font: inherit; }
.extra-form .btn { flex: 0 0 auto; }

/* Anmelden ohne Link */
.reg-form { padding: 0; background: none; border: 0; box-shadow: none; margin-top: 14px; }
#reg-warte { text-align: center; }
#telefon-field .hint { display: block; margin-top: 6px; }

/* Zeitstrahl: Fotos von Gästen beisteuern */
.zt-beitrag { margin-top: 28px; max-width: 720px; margin-inline: auto; }
.zt-beitrag .fact-s { margin: 4px 0 16px; }
.zt-form { display: grid; grid-template-columns: 150px 1fr; gap: 16px; align-items: start; }
.zt-datei { cursor: pointer; }
.zt-vorschau { display: grid; place-items: center; aspect-ratio: 3 / 4; border: 2px dashed var(--line); border-radius: 14px; background: rgba(0,0,0,.2) center / cover no-repeat; color: var(--muted); font-weight: 700; font-size: .9rem; text-align: center; padding: 10px; transition: border-color .2s; }
.zt-datei:hover .zt-vorschau { border-color: var(--gold); }
.zt-vorschau.voll { border-style: solid; border-color: var(--gold); }
.zt-vorschau.voll span { display: none; }
.zt-felder { display: grid; gap: 10px; }
.zt-felder .field { margin: 0; }
.zt-felder input[type=number] { width: 140px; }
.zt-meine { list-style: none; margin: 14px 0 0; padding: 0; }
.zt-meine li { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.zt-meine img { width: 48px; height: 48px; object-fit: cover; border-radius: 10px; flex: none; }
.zt-meine div { flex: 1; min-width: 0; font-size: .9rem; }
.zt-meine b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zt-m-s { font-size: .8rem; font-weight: 700; }
.zt-m-offen .zt-m-s { color: var(--gold); } .zt-m-ja .zt-m-s { color: var(--ok); } .zt-m-nein .zt-m-s { color: var(--err); }
@media (max-width: 520px) { .zt-form { grid-template-columns: 110px 1fr; } }
