@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/inter-tight-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/inter-tight-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
.hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }
/* Ballnight Studio – "Die Website ist der Ballabend"
   Eine Bühne, keine Abschnitte. Unten läuft die Uhr von 19:00 bis 04:00.
   Schwarz-Weiß, Gold nur als Hauch. Um 04:00 geht das Licht an (Seite wird weiß). */
:root {
  --bg: #000;
  --fg: #fff;
  --soft: rgba(255,255,255,.6);
  --faint: rgba(255,255,255,.14);
  --gold: #cdb27a;
  --font: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --gl: max(24px, env(safe-area-inset-left, 0px));
  --gr: max(24px, env(safe-area-inset-right, 0px));
  --bar: 104px;
}
body.lights { --bg: #fff; --fg: #0a0a0a; --soft: rgba(0,0,0,.55); --faint: rgba(0,0,0,.14); }

* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased;
  transition: background 1.2s ease, color 1.2s ease; }
body.night { overflow: hidden; overscroll-behavior: none; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-weight: 600; letter-spacing: -0.045em; line-height: .92; text-wrap: balance; }
.label { font-size: 11px; font-weight: 500; letter-spacing: .32em; text-transform: uppercase; color: var(--soft); }
.gold { color: var(--gold); }
body.lights .gold { color: #9c7c3c; }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }

/* ---------- Kopf ---------- */
.top { position: fixed; inset: 0 0 auto; z-index: 40; padding: max(20px, env(safe-area-inset-top, 0px)) var(--gr) 0 var(--gl); display: flex; justify-content: space-between; align-items: center; gap: 16px; pointer-events: none; }
.top > * { pointer-events: auto; }
.mark { font-weight: 700; font-size: 13px; letter-spacing: .42em; text-decoration: none; white-space: nowrap; }
.mark i { font-style: normal; font-weight: 300; }
.top .actions { display: flex; gap: 10px; }
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 42px; padding: 0 20px; border-radius: 999px; border: 1px solid currentColor; background: none;
  font: 500 13px var(--font); text-decoration: none; color: inherit; cursor: pointer; white-space: nowrap; transition: background .25s, color .25s, border-color .25s; }
.pill:hover { background: var(--fg); color: var(--bg); }
.pill.solid { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.pill.solid:hover { background: transparent; color: var(--fg); }
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

/* ---------- Licht ---------- */
.beams { position: fixed; inset: 0; z-index: 0; pointer-events: none; transition: opacity 1s ease; }
.beam { position: absolute; bottom: calc(var(--bar) - 30px); width: 46vw; max-width: 760px; height: 118%; transform-origin: 50% 100%; transition: transform 1.4s cubic-bezier(.2,.7,.2,1), opacity 1s; }
.beam.l { left: 2%; transform: rotate(var(--rl, 28deg)); opacity: var(--ol, 1); }
.beam.r { right: 2%; transform: rotate(var(--rr, -28deg)); opacity: var(--or, 1); }
.beam svg { width: 100%; height: 100%; display: block; }
.glow { position: absolute; left: var(--gx, 50%); top: var(--gy, 42%); width: 70vw; max-width: 1000px; aspect-ratio: 2.2; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(255,250,238,.13), rgba(255,250,238,0)); transition: left 1.4s, top 1.4s, opacity 1s; opacity: var(--og, 1); }
.lamp { position: absolute; bottom: calc(var(--bar) - 18px); width: 24px; height: 16px; border-radius: 3px; background: #1d1d1d; border: 1px solid #333; transition: opacity 1s; }
.lamp::after { content: ""; position: absolute; left: 4px; right: 4px; top: -3px; height: 3px; border-radius: 2px; background: var(--gold); box-shadow: 0 0 18px 4px rgba(205,178,122,.45); }
.lamp.l { left: calc(2% + 23vw - 12px); }
.lamp.r { right: calc(2% + 23vw - 12px); }
body.dark .beams { opacity: 0; }
body.lights .beams { opacity: 0; }

/* Riesige Uhrzeit im Hintergrund */
.ghost-time { position: fixed; z-index: 0; right: -2vw; top: 50%; transform: translateY(-58%); font-size: clamp(160px, 34vw, 560px); font-weight: 700; letter-spacing: -.07em; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px var(--faint); font-variant-numeric: tabular-nums; pointer-events: none; user-select: none; transition: opacity .6s; }

/* ---------- Szenen ---------- */
.scenes { position: fixed; inset: 0 0 var(--bar) 0; z-index: 10; }
.scene { position: absolute; inset: 0; padding: 110px var(--gr) 32px var(--gl); display: grid; overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; visibility: hidden; transform: translateY(40px); transition: opacity .7s ease, transform .9s cubic-bezier(.2,.7,.2,1), visibility 0s .9s; }
.scene.before { transform: translateY(-40px); }
.scene.on { opacity: 1; visibility: visible; transform: none; transition: opacity .9s ease .2s, transform 1.1s cubic-bezier(.2,.7,.2,1) .15s, visibility 0s; }
.scene-in { margin: auto; width: 100%; max-width: 1320px; }
.kicker { display: flex; gap: 14px; align-items: baseline; margin-bottom: 26px; }
.kicker time { font-variant-numeric: tabular-nums; font-weight: 600; font-size: 13px; letter-spacing: .1em; color: var(--gold); }

/* 19:00 Einlass */
.s-einlass .scene-in { text-align: center; display: grid; justify-items: center; gap: 26px; }
.s-einlass h1 { font-size: clamp(56px, 12vw, 190px); }
.s-einlass h1 span { display: block; }
.s-einlass h1 .thin { font-weight: 200; }
.school-line { font-size: clamp(12px, 1.2vw, 15px); letter-spacing: .42em; text-transform: uppercase; font-weight: 600; min-height: 1.4em; }
.school-line em { font-style: normal; color: var(--gold); }
.line-input { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--faint); padding: 6px 2px; }
.line-input label { font-size: 12px; color: var(--soft); white-space: nowrap; }
.line-input input { background: transparent; border: 0; color: var(--fg); font: 400 15px var(--font); width: 220px; max-width: 50vw; padding: 2px 0; }
.line-input input::placeholder { color: var(--faint); }
.line-input input:focus { outline: none; }
.line-input:focus-within { border-color: var(--gold); }
.hint { font-size: 12px; color: var(--soft); letter-spacing: .08em; display: flex; gap: 10px; align-items: center; }
.hint kbd { font: 500 11px var(--font); border: 1px solid var(--faint); border-radius: 4px; padding: 2px 6px; }

/* 19:30 Entrance */
.s-entrance .scene-in { display: grid; grid-template-columns: minmax(0, 360px) 1fr; gap: 40px; align-items: center; }
.s-entrance .copy { display: grid; gap: 18px; align-self: end; padding-bottom: 6vh; }
.s-entrance .copy p { color: var(--soft); }
.spot-name { text-align: center; font-size: clamp(64px, 13vw, 220px); font-weight: 800; letter-spacing: .02em; line-height: .9; word-break: break-word;
  text-shadow: 0 0 60px rgba(255,248,232,.25); }

/* 20:00 Polonaise – Schritte als Formation */
.s-polonaise h2 { font-size: clamp(44px, 6vw, 92px); max-width: 9ch; }
.formation { position: relative; margin-top: 10px; height: min(52vh, 460px); }
.pair { position: absolute; width: min(300px, 40vw); display: grid; gap: 8px; padding-top: 16px; border-top: 1px solid var(--fg); }
.pair b { font-size: 22px; letter-spacing: -.02em; }
.pair span { font-size: 13px; color: var(--gold); font-variant-numeric: tabular-nums; }
.pair p { color: var(--soft); font-size: 15px; }
.pair:nth-child(1) { left: 0; top: 0; }
.pair:nth-child(2) { left: 25%; top: 22%; }
.pair:nth-child(3) { left: 50%; top: 44%; }
.pair:nth-child(4) { left: 75%; top: 66%; }
.s-polonaise .head { position: absolute; right: 0; top: 0; max-width: 520px; text-align: right; display: grid; justify-items: end; gap: 18px; }
.s-polonaise .scene-in { position: relative; min-height: min(70vh, 620px); display: flex; align-items: flex-end; }
.s-polonaise .formation { width: 100%; }

/* 21:00 Tanzfläche – Leistungen */
.floor { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--faint); }
.move { padding: 26px 0 22px; border-bottom: 1px solid var(--faint); display: grid; gap: 10px; cursor: default; }
.move:nth-child(odd) { padding-right: 32px; border-right: 1px solid var(--faint); }
.move:nth-child(even) { padding-left: 32px; }
.move h3 { font-size: clamp(34px, 4.6vw, 76px); font-weight: 600; letter-spacing: -.05em; line-height: .95; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.move p { color: var(--soft); max-width: 36ch; }
.move:hover h3 { transform: translateX(10px); }
.move .n { font-size: 12px; color: var(--gold); font-variant-numeric: tabular-nums; }

/* 00:00 Mitternacht – Referenzen */
.s-mitternacht .scene-in { display: grid; gap: 34px; }
.s-mitternacht h2 { font-size: clamp(44px, 6vw, 92px); }
.finders { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.finder { position: relative; aspect-ratio: 16 / 10; background: #050505; border: 1px solid #1b1b1b; display: grid; place-items: center; text-align: center; cursor: pointer; color: #fff; font: inherit; padding: 0; }
.finder::before { content: ""; position: absolute; inset: 14px; pointer-events: none; opacity: .75;
  background:
    linear-gradient(#fff,#fff) top left / 18px 1px no-repeat, linear-gradient(#fff,#fff) top left / 1px 18px no-repeat,
    linear-gradient(#fff,#fff) top right / 18px 1px no-repeat, linear-gradient(#fff,#fff) top right / 1px 18px no-repeat,
    linear-gradient(#fff,#fff) bottom left / 18px 1px no-repeat, linear-gradient(#fff,#fff) bottom left / 1px 18px no-repeat,
    linear-gradient(#fff,#fff) bottom right / 18px 1px no-repeat, linear-gradient(#fff,#fff) bottom right / 1px 18px no-repeat; }
.finder .hud { position: absolute; top: 26px; left: 30px; right: 30px; display: flex; justify-content: space-between; font-size: 11px; letter-spacing: .14em; font-variant-numeric: tabular-nums; }
.finder .rec { display: flex; align-items: center; gap: 7px; }
.finder .rec::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); animation: blink 1.4s steps(2, start) infinite; }
.finder .foot { position: absolute; bottom: 24px; left: 30px; right: 30px; display: flex; justify-content: space-between; font-size: 11px; color: rgba(255,255,255,.55); }
.finder b { font-size: clamp(20px, 2vw, 28px); font-weight: 600; letter-spacing: -.03em; }
.finder:hover { border-color: rgba(205,178,122,.4); }
@keyframes blink { to { visibility: hidden; } }

/* 00:30 Gruppenfoto – Komitee */
.s-gruppenfoto .scene-in { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: end; }
.days { font-size: clamp(120px, 20vw, 300px); font-weight: 200; letter-spacing: -.07em; line-height: .82; font-variant-numeric: tabular-nums; }
.date-in { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--faint); padding-bottom: 8px; width: fit-content; margin-bottom: 18px; }
.date-in label { font-size: 13px; color: var(--soft); }
.date-in input { background: transparent; border: 0; color: var(--fg); font: 500 17px var(--font); color-scheme: dark; }
.date-in input:focus { outline: none; }
.todo-now { list-style: none; padding: 0; margin: 22px 0 26px; }
.todo-now li { display: grid; grid-template-columns: 30px 1fr; padding: 14px 0; border-top: 1px solid var(--faint); font-size: 17px; }
.todo-now li span { color: var(--gold); font-size: 12px; padding-top: 4px; }
.s-gruppenfoto h2 { font-size: clamp(36px, 4.4vw, 64px); }

/* 04:00 Licht an – Kontakt */
.s-licht .scene-in { display: grid; gap: 30px; }
.s-licht h2 { font-size: clamp(44px, 6.4vw, 100px); max-width: 12ch; }
.madlib { font-size: clamp(22px, 2.8vw, 40px); letter-spacing: -.02em; line-height: 1.55; max-width: 34ch; }
.madlib input { font: inherit; letter-spacing: inherit; color: var(--fg); background: transparent; border: 0; border-bottom: 1px solid rgba(0,0,0,.3);
  padding: 0 4px; margin: 0 4px; min-width: 3ch; max-width: 100%; border-radius: 0; }
.madlib input::placeholder { color: rgba(0,0,0,.25); }
.madlib input:focus, .madlib input.bad { outline: none; border-bottom-color: #9c7c3c; }
.contact-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.direct { display: flex; gap: 36px; flex-wrap: wrap; font-size: 15px; }
.direct small { display: block; font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--soft); margin-bottom: 2px; }
.direct span { user-select: all; }
.legal { display: flex; gap: 22px; font-size: 12px; color: var(--soft); }
.legal a { text-decoration: none; }
.sent { font-size: clamp(24px, 3vw, 44px); letter-spacing: -.03em; line-height: 1.2; max-width: 22ch; }
.sent small { display: block; margin-top: 14px; font-size: 14px; letter-spacing: 0; color: var(--soft); }

/* ---------- Uhr / Zeitleiste ---------- */
.clock { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; height: var(--bar); padding: 0 var(--gr) env(safe-area-inset-bottom, 0px) var(--gl);
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; border-top: 1px solid var(--faint); background: var(--bg); transition: background 1.2s, border-color 1.2s; }
.now { font-size: 34px; font-weight: 300; letter-spacing: -.04em; font-variant-numeric: tabular-nums; min-width: 4.2ch; }
.rail { position: relative; height: 56px; }
.rail::before { content: ""; position: absolute; left: 0; right: 0; top: 18px; height: 1px; background: var(--faint); }
.rail .fill { position: absolute; left: 0; top: 18px; height: 1px; background: var(--fg); transition: width 1.1s cubic-bezier(.2,.7,.2,1); }
.stop { position: absolute; top: 0; transform: translateX(-50%); background: none; border: 0; padding: 10px 6px; cursor: pointer; color: var(--soft); font: inherit; display: grid; justify-items: center; gap: 8px; }
.stop i { width: 9px; height: 9px; border-radius: 50%; border: 1px solid currentColor; background: var(--bg); transition: background .3s, transform .3s, border-color .3s; }
.stop span { font-size: 11px; letter-spacing: .06em; white-space: nowrap; }
.stop:hover, .stop.on { color: var(--fg); }
.stop.on i { background: var(--gold); border-color: var(--gold); transform: scale(1.3); }
.stop.past i { background: var(--fg); }
.steps { display: flex; gap: 8px; }
.steps button { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--faint); background: none; color: var(--fg); cursor: pointer; font-size: 16px; }
.steps button:hover:not(:disabled) { border-color: var(--fg); }
.steps button:disabled { opacity: .3; cursor: default; }

.toast { position: fixed; left: 50%; bottom: calc(var(--bar) + 18px); transform: translate(-50%, 12px); opacity: 0; pointer-events: none; z-index: 60;
  background: var(--fg); color: var(--bg); padding: 11px 18px; border-radius: 999px; font-size: 14px; transition: .25s; max-width: 90vw; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Login-Seite ---------- */
.stage { position: relative; min-height: 100svh; display: grid; place-items: center; overflow: hidden; isolation: isolate; }
.stage .beams { position: absolute; z-index: -1; }
.stage .beam, .stage .lamp { bottom: 6px; }
.stage .lamp { bottom: 18px; }
.stage-copy { padding: 120px var(--gr) 80px var(--gl); width: 100%; display: grid; justify-items: center; }
.login-card { width: min(420px, 100%); display: grid; gap: 22px; }
.login-card h1 { font-size: clamp(44px, 6vw, 68px); }
.login-card .field { display: grid; gap: 8px; }
.login-card label { font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--soft); }
.login-card input { background: transparent; border: 0; border-bottom: 1px solid rgba(255,255,255,.35); color: var(--fg); font: 400 18px var(--font); padding: 8px 0; border-radius: 0; }
.login-card input:focus { outline: none; border-bottom-color: var(--gold); }
.login-card .note { font-size: 13px; color: var(--soft); }
.login-card .err { font-size: 14px; color: var(--gold); }
.login-card .pill { height: 52px; }

@media (prefers-reduced-motion: reduce) {
  .scene, .scene.on, .beam, .glow, body { transition: none !important; }
  .finder .rec::before { animation: none; }
}

/* ---------- Handy ---------- */
@media (max-width: 860px) {
  :root { --bar: 88px; }
  .s-entrance .scene-in, .s-gruppenfoto .scene-in { grid-template-columns: 1fr; gap: 28px; }
  .s-entrance .copy { order: 2; padding-bottom: 0; }
  .floor { grid-template-columns: 1fr; }
  .move:nth-child(odd) { padding-right: 0; border-right: 0; }
  .move:nth-child(even) { padding-left: 0; }
  .finders { grid-template-columns: 1fr; }
  .finder { aspect-ratio: 16 / 8; }
  .s-polonaise .scene-in { display: grid; min-height: 0; gap: 28px; }
  .s-polonaise .head { position: static; text-align: left; justify-items: start; }
  .formation { height: auto; display: grid; gap: 18px; }
  .pair { position: static; width: auto; }
  .pair:nth-child(2) { margin-left: 8%; } .pair:nth-child(3) { margin-left: 16%; } .pair:nth-child(4) { margin-left: 24%; }
  .stop span { display: none; }
  .stop.on span { display: block; position: absolute; top: 34px; }
  .now { font-size: 26px; }
  .clock { gap: 16px; }
  .ghost-time { font-size: 46vw; top: 30%; }
}
@media (max-width: 560px) {
  .top .actions .pill:not(.solid) { display: none; }
  .mark { font-size: 12px; letter-spacing: .3em; }
  .top .pill { height: 38px; padding: 0 16px; font-size: 12px; }
  .steps { display: none; }
  .beam { width: 70vw; } .beam.l { left: -18%; } .beam.r { right: -18%; }
  .lamp { display: none; }
  .scene { padding-top: 96px; }
}

/* Zeitleiste: gleichmäßig, Name nur bei aktiver Szene */
.stop { gap: 6px; }
.stop .t { font-size: 11px; font-variant-numeric: tabular-nums; }
.stop .l { position: absolute; top: 50px; font-size: 11px; color: var(--gold); opacity: 0; transition: opacity .3s; white-space: nowrap; }
body.lights .stop .l { color: #9c7c3c; }
.stop.on .l, .stop:hover .l { opacity: 1; }
.rail .fill { width: 3%; }
.rail::before { left: 3%; right: 3%; }
.rail .fill { left: 3%; max-width: 94%; }
/* Hintergrund-Uhrzeit: zarter, unten rechts */
.ghost-time { top: auto; bottom: calc(var(--bar) - 0.12em); transform: none; right: -1vw; font-size: clamp(140px, 24vw, 400px); -webkit-text-stroke: 1px rgba(255,255,255,.07); }
body.lights .ghost-time { -webkit-text-stroke: 1px rgba(0,0,0,.07); }
@media (max-width: 860px) {
  .stop .t { display: none; }
  .stop.on .l { top: 30px; }
  .stop span { display: initial; }
}

.spot-name { white-space: nowrap; word-break: normal; overflow: hidden; }
@media (max-width: 860px) { .stop.on .t, .stop .t { display: none !important; } }

/* ---------- "Ball anfragen": goldene Kontur statt Standard-Pill ---------- */
.pill.ask { position: relative; border: 1px solid rgba(205,178,122,.7); color: var(--gold); gap: 10px; padding: 0 18px 0 16px;
  background: linear-gradient(180deg, rgba(205,178,122,.10), rgba(205,178,122,.02)); box-shadow: 0 0 24px -8px rgba(205,178,122,.55); }
.pill.ask .spark { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px 2px rgba(205,178,122,.7); animation: spark 2.4s ease-in-out infinite; }
.pill.ask .arr { transition: transform .3s; }
.pill.ask:hover { background: var(--gold); color: #0a0a0a; border-color: var(--gold); }
.pill.ask:hover .spark { background: #0a0a0a; box-shadow: none; }
.pill.ask:hover .arr { transform: translateX(3px); }
body.lights .pill.ask { color: #8a6a2c; border-color: rgba(138,106,44,.6); box-shadow: none; }
body.lights .pill.ask:hover { background: #8a6a2c; color: #fff; }
@keyframes spark { 50% { opacity: .35; } }

/* ---------- Roter Teppich als Zeitleiste ---------- */
.rail::before { top: 14px; height: 1px; background: none; border-top: 1px dashed var(--faint); }
.rail .fill { top: 8px; height: 13px; border-radius: 1px;
  background:
    repeating-linear-gradient(90deg, rgba(0,0,0,.16) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, #b01e30 0%, #8c1323 45%, #6a0c18 100%);
  border-top: 1px solid rgba(205,178,122,.75); border-bottom: 1px solid rgba(205,178,122,.75);
  box-shadow: 0 6px 14px -6px rgba(140,19,35,.7); }
/* die Rolle vorne am Teppich */
.rail .fill::after { content: ""; position: absolute; right: -9px; top: -5px; width: 16px; height: 23px; border-radius: 8px / 6px;
  background: linear-gradient(90deg, #4d0710 0%, #9e1a2b 38%, #c42a3c 52%, #7a0f1c 78%, #4d0710 100%);
  box-shadow: 2px 3px 8px rgba(0,0,0,.55), inset 0 1px 0 rgba(205,178,122,.6), inset 0 -1px 0 rgba(205,178,122,.6); }
.rail .fill::before { content: ""; position: absolute; left: -4px; top: -1px; bottom: -1px; width: 4px; background: linear-gradient(90deg, transparent, rgba(205,178,122,.5)); }
.stop { z-index: 1; }
.stop i { position: relative; }
.stop.past i { background: var(--gold); border-color: var(--gold); transform: scale(.7); }
.stop.on i { box-shadow: 0 0 0 4px rgba(205,178,122,.18); }
body.lights .rail .fill { box-shadow: 0 6px 14px -8px rgba(140,19,35,.5); }

/* ================= Teppich (Canvas) ================= */
.rail .fill { display: none; }
.rail .carpet { position: absolute; left: 0; top: -14px; pointer-events: none; z-index: 0; }
.rail::before { top: 18px; border-top: 1px dashed var(--faint); }
.stop { top: 3.5px; }
.stop i { box-shadow: 0 0 0 2px var(--bg); }

/* ================= Metallic-Gold mit Glanz ================= */
:root {
  --gold-grad: linear-gradient(100deg, #7a5a1e 0%, #d9b860 16%, #a47e2e 32%, #fff3c8 46%, #f0d68a 52%, #b8903a 66%, #e9cd7c 82%, #7a5a1e 100%);
  --gold-grad-dark: linear-gradient(100deg, #5e4312 0%, #a8822f 20%, #6f5016 38%, #d9b45a 50%, #8a6a24 66%, #b8903a 82%, #5e4312 100%);
}
@keyframes shine { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.gold, .kicker time, .school-line em, .pair span, .move .n, .todo-now li span, .stop .l, .label.gold {
  background: var(--gold-grad); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent !important;
  animation: shine 5s linear infinite; }
body.lights .gold, body.lights .kicker time, body.lights .stop .l { background-image: var(--gold-grad-dark); }
.stop.on i, .stop.past i { background: var(--gold-grad); background-size: 300% 100%; border-color: #d9b860; animation: shine 4s linear infinite; }
.stop.on i { box-shadow: 0 0 0 2px var(--bg), 0 0 14px 2px rgba(240,214,138,.55); }
.lamp::after { background: var(--gold-grad); background-size: 300% 100%; animation: shine 3s linear infinite; box-shadow: 0 0 22px 6px rgba(240,214,138,.5); }
.pill .dot { background: var(--gold-grad); background-size: 300% 100%; animation: shine 3s linear infinite; box-shadow: 0 0 10px 2px rgba(240,214,138,.6); }

/* "Ball anfragen": Goldrahmen + goldene Schrift mit Glanz */
.pill.ask { border: 1px solid transparent; color: #e9cd7c;
  background: linear-gradient(#000, #000) padding-box, var(--gold-grad) border-box; background-size: 100% 100%, 300% 100%;
  animation: shineBorder 5s linear infinite; box-shadow: 0 0 26px -6px rgba(240,214,138,.6); }
@keyframes shineBorder { from { background-position: 0 0, 120% 0; } to { background-position: 0 0, -120% 0; } }
.pill.ask .gt { background: var(--gold-grad); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 5s linear infinite; font-weight: 600; }
.pill.ask .spark { background: #fff3c8; box-shadow: 0 0 8px 2px rgba(255,243,200,.9), 0 0 18px 4px rgba(217,184,96,.6); }
.pill.ask .arr { color: #e9cd7c; }
.pill.ask:hover { background: var(--gold-grad) border-box; background-size: 300% 100%; color: #1a1205; border-color: transparent; }
.pill.ask:hover .gt { background: none; color: #1a1205; -webkit-background-clip: border-box; }
.pill.ask:hover .arr { color: #1a1205; }
body.lights .pill.ask { background: linear-gradient(#fff, #fff) padding-box, var(--gold-grad-dark) border-box; background-size: 100% 100%, 300% 100%; box-shadow: none; }
body.lights .pill.ask .gt { background-image: var(--gold-grad-dark); }
body.lights .pill.ask .arr { color: #8a6a24; }
@media (prefers-reduced-motion: reduce) { .gold, .kicker time, .pill.ask, .pill.ask .gt, .stop i, .lamp::after { animation: none !important; } }

/* Die Rolle markiert die aktuelle Uhrzeit – Punkt dort ausblenden */
.stop.on i { opacity: 0; }

/* Goldener Stern bei "Ball anfragen" */
.pill.ask .spark { display: none; }
.pill.ask .star { width: 15px; height: 15px; flex: none; filter: drop-shadow(0 0 4px rgba(255,236,170,.9)) drop-shadow(0 0 10px rgba(217,184,96,.6)); animation: twinkle 2.6s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { transform: scale(1) rotate(0deg); } 50% { transform: scale(.82) rotate(18deg); filter: drop-shadow(0 0 2px rgba(255,236,170,.6)); } }
.pill.ask:hover .star { filter: none; }
.pill.ask:hover .star path { fill: #1a1205; }

/* Name im Scheinwerfer in glänzendem Gold */
.spot-name { background: var(--gold-grad); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: none; filter: drop-shadow(0 0 28px rgba(240,214,138,.28)); animation: shine 6s linear infinite; }
@media (prefers-reduced-motion: reduce) { .pill.ask .star, .spot-name { animation: none; } }

/* ================= Bühne statt Kopfzeile ================= */
.top { display: none; }
.brand-side { position: fixed; z-index: 40; left: max(16px, env(safe-area-inset-left, 0px)); top: calc(50% - var(--bar) / 2); transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl; text-decoration: none; font-size: 12px; font-weight: 700; letter-spacing: .5em; color: var(--fg); white-space: nowrap; transition: color 1.2s; }
.brand-side i { font-style: normal; font-weight: 300; }
.brand-side::after { content: ""; display: inline-block; width: 1px; height: 48px; margin-top: 18px; background: var(--faint); vertical-align: middle; }
.scene { padding-top: 56px; padding-left: calc(var(--gl) + 40px); }

/* Uhr-Leiste: Buttons neben dem Teppich, keine Pfeile */
.clock { grid-template-columns: auto 1fr auto; }
.clock .steps { display: none; }
.bar-actions { display: flex; gap: 10px; align-items: center; }

/* ================= 19:00 – Eröffnung ================= */
.s-einlass .scene-in { position: relative; margin: 0 auto; height: 100%; min-height: 440px; max-width: none; display: block; text-align: left; }
.open { position: absolute; inset: 0; font-size: clamp(64px, 12.5vw, 210px); line-height: .9; pointer-events: none; }
.open .w1 { position: absolute; left: 0; top: 2%; }
.open .w2 { position: absolute; right: 0; top: 36%; font-weight: 200; letter-spacing: -.05em; }
.sign { position: absolute; left: 50%; bottom: 3%; transform: translateX(-50%); display: grid; justify-items: center; gap: 14px; text-align: center; width: max-content; max-width: 100%; }

/* Licht geht an: Scheinwerfer flackern nacheinander auf, dann erscheint der Text */
@keyframes flick { 0% { opacity: 0; } 8% { opacity: .85; } 12% { opacity: .05; } 20% { opacity: .95; } 24% { opacity: .25; } 38%, 100% { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
body.intro .beam.l svg, body.intro .lamp.l { animation: flick 1.3s .35s both; }
body.intro .beam.r svg, body.intro .lamp.r { animation: flick 1.3s 1.05s both; }
body.intro .glow { animation: fadein 1.2s 1.6s both; }
body.intro .open .w1 { animation: rise 1.1s cubic-bezier(.2,.7,.2,1) 1.55s both; }
body.intro .open .w2 { animation: rise 1.1s cubic-bezier(.2,.7,.2,1) 1.95s both; }
body.intro .sign, body.intro .brand-side, body.intro .clock { animation: fadein 1s 2.4s both; }
@media (prefers-reduced-motion: reduce) { body.intro * { animation: none !important; } }

@media (max-width: 860px) {
  .bar-actions { position: fixed; top: max(14px, env(safe-area-inset-top, 0px)); right: var(--gr); }
  .clock { grid-template-columns: auto 1fr; }
  .scene { padding-top: 76px; padding-left: calc(var(--gl) + 30px); }
  .open { font-size: clamp(54px, 16vw, 120px); }
  .open .w2 { top: 30%; }
  .sign { width: 100%; }
}
@media (max-width: 560px) {
  .bar-actions .pill.ask .gt, .bar-actions .pill.ask .arr { display: none; }
  .bar-actions .pill.ask { padding: 0 12px; }
  .bar-actions .pill { height: 38px; font-size: 12px; padding: 0 14px; }
  .brand-side { font-size: 10px; letter-spacing: .42em; }
}

/* ================= Handy: weniger Licht, mehr Ruhe ================= */
@media (max-width: 860px) {
  .glow, .ghost-time, .lamp { display: none; }
  .beam { width: 42vw; height: 100%; }
  .beam.l { left: -6%; } .beam.r { right: -6%; }
  .beam svg { opacity: .5; }
  /* Scheinwerfer nur bei Eröffnung und Name im Licht */
  body:not([data-scene="einlass"]):not([data-scene="entrance"]) .beams { opacity: 0; }
  body[data-scene="einlass"] { --rl: 14deg !important; --rr: -14deg !important; }
}

/* ================= Handy: Schulzeile ruhiger ================= */
.school-line .sl-a, .school-line em { white-space: nowrap; }
@media (max-width: 860px) {
  .school-line { text-transform: none; letter-spacing: -0.01em; font-weight: 500; font-size: 20px; line-height: 1.3; display: grid; gap: 2px; justify-items: center; }
  .school-line .sl-sep { display: none; }
  .school-line em { font-weight: 600; }
}

/* ================= Ton-Knopf ================= */
.pill.snd { width: 42px; padding: 0; justify-content: center; border-color: var(--faint); }
.pill.snd svg { width: 18px; height: 18px; }
.pill.snd .x { display: none; }
.pill.snd.off .w { display: none; }
.pill.snd.off .x { display: inline; }
.pill.snd:hover { background: transparent; color: var(--fg); border-color: var(--fg); }

/* ================= Saallicht-Übergang zu "Für Komitees" ================= */
body::after { content: ""; position: fixed; inset: 0; background: #fff; opacity: 0; pointer-events: none; z-index: 200; transition: opacity .6s ease; }
body.go-white::after { opacity: 1; }

/* ================= Handy: Polonaise Schritt für Schritt ================= */
@media (max-width: 860px) {
  .s-polonaise .formation { gap: 0; }
  .s-polonaise .pair { transition: opacity .5s, padding .4s; }
  .s-polonaise .pair.future { display: none; }
  .s-polonaise .pair.done { padding-top: 10px; padding-bottom: 10px; opacity: .55; grid-template-columns: auto 1fr; gap: 12px; align-items: baseline; }
  .s-polonaise .pair.done p { display: none; }
  .s-polonaise .pair.done b { font-size: 17px; }
  .s-polonaise .pair:not(.done):not(.future) { animation: rise .6s cubic-bezier(.2,.7,.2,1) both; padding-bottom: 6px; }
  .s-polonaise .pair:not(.done):not(.future) b { font-size: 26px; }
  .s-polonaise .pair:not(.done):not(.future) p { font-size: 16px; }
  .s-polonaise .pair { margin-left: 0 !important; }
  .s-polonaise h2 { font-size: 44px; }
}
@media (max-width: 560px) { .bar-actions .pill.snd { width: 38px; } }

/* ================= Eintritt ================= */
.gate { position: fixed; inset: 0; z-index: 300; background: #000; display: grid; place-items: center; transition: opacity .7s ease; }
.gate.gone { opacity: 0; pointer-events: none; }
.gate-in { display: grid; justify-items: center; gap: 28px; text-align: center; padding: 24px; }
.gate-brand { font-size: 18px; font-weight: 500; letter-spacing: -0.01em; color: rgba(255,255,255,.75); }
.gate-btn { position: relative; width: 148px; height: 148px; border-radius: 50%; border: 1px solid transparent; cursor: pointer;
  background: linear-gradient(#000, #000) padding-box, var(--gold-grad) border-box; background-size: 100% 100%, 300% 100%; animation: shineBorder 5s linear infinite;
  color: #fff; font: 500 18px var(--font); letter-spacing: -0.01em; display: grid; place-items: center; box-shadow: 0 0 40px -10px rgba(240,214,138,.5); }
.gate-btn:hover { box-shadow: 0 0 60px -6px rgba(240,214,138,.7); }
.gate-ring { position: absolute; inset: -14px; border-radius: 50%; border: 1px solid rgba(240,214,138,.35); animation: gatePulse 2.4s ease-out infinite; }
@keyframes gatePulse { from { transform: scale(.9); opacity: .9; } to { transform: scale(1.25); opacity: 0; } }
.gate-note { font-size: 14px; color: rgba(255,255,255,.5); }
.gate-quiet { background: none; border: 0; padding: 0; color: rgba(255,255,255,.75); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
body.gated .beams, body.gated .scenes, body.gated .clock, body.gated .brand-side, body.gated .bar-actions, body.gated .ghost-time { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .gate-ring, .gate-btn { animation: none; } }

/* ================= Kleine Überschriften: größer, ohne Sperrung ================= */
.label { font-size: 17px; font-weight: 500; letter-spacing: -0.01em; text-transform: none; line-height: 1.3; }
.kicker { gap: 10px; margin-bottom: 18px; }
.kicker time { font-size: 17px; font-weight: 600; letter-spacing: 0; }
@media (max-width: 860px) { .label, .kicker time { font-size: 16px; } }

/* ================= Eröffnung: Schrift-Choreografie nach dem Licht ================= */
.school-line .sl-a, .school-line em { display: inline-block; }
@keyframes maskUp { from { clip-path: inset(0 0 100% 0); transform: translateY(70%); opacity: 0; } 30% { opacity: 1; } to { clip-path: inset(0 0 -20% 0); transform: none; opacity: 1; } }
@keyframes glint { from { background-position: 130% 0; } to { background-position: -130% 0; } }
@keyframes lineOpen { from { clip-path: inset(0 50% 0 50%); opacity: .2; } to { clip-path: inset(0 0 0 0); opacity: 1; } }
@keyframes chIn { from { opacity: 0; transform: translateY(-16px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes lineGrow { from { transform: scaleY(0); } to { transform: scaleY(1); } }

body.intro .sign, body.intro .brand-side { animation: none; }
body.intro .school-line .sl-a { animation: maskUp .9s cubic-bezier(.2,.75,.2,1) 2.2s both; }
body.intro .school-line .sl-sep { animation: fadein .6s 2.55s both; }
body.intro .school-line em { animation: maskUp .9s cubic-bezier(.2,.75,.2,1) 2.45s both, glint 1.4s ease-in-out 3.1s 1; background-size: 300% 100%; }
body.intro .line-input { animation: lineOpen .9s cubic-bezier(.2,.75,.2,1) 2.8s both; }

.brand-side .ch { display: inline-block; }
body.intro .brand-side .ch { animation: chIn .55s cubic-bezier(.2,.75,.2,1) both; animation-delay: calc(2.3s + var(--i) * 55ms); }
.brand-side::after { transform-origin: 50% 0; }
body.intro .brand-side::after { animation: lineGrow .9s cubic-bezier(.2,.75,.2,1) 3.25s both; }

/* ================= Name im Scheinwerfer: laufender Wechsel ================= */
@media (prefers-reduced-motion: reduce) { .spot-name { transition: none; } }

/* Erklärzeile: was um diese Uhrzeit am Ball passiert */
.kicker { flex-wrap: wrap; row-gap: 6px; }
.kicker .moment { flex: 0 0 100%; font-size: 15px; line-height: 1.4; color: var(--soft); letter-spacing: 0; text-transform: none; }

/* Namenswechsel als Anzeigetafel: alter Name rollt nach unten raus, neuer fällt von oben nach */
.spot-name { display: grid; overflow: hidden; padding: .08em 0; background: none; -webkit-background-clip: border-box; background-clip: border-box; color: inherit; animation: none;
  filter: drop-shadow(0 0 28px rgba(240,214,138,.28)); }
.spot-name .nm { grid-area: 1 / 1; display: block; background: var(--gold-grad); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 6s linear infinite; transform: translateY(0); transition: transform .62s cubic-bezier(.76,0,.24,1); }
.spot-name .nm.entering { transform: translateY(-110%); transition: none; }
.spot-name .nm.leaving { transform: translateY(110%); }
@media (prefers-reduced-motion: reduce) { .spot-name .nm { transition: none; animation: none; } }

/* Datumsfelder: Das unsichtbare Kalender-Symbol liegt über dem ganzen Feld.
   So öffnet ein Klick irgendwo aufs Datum direkt den Kalender – auch ohne JavaScript. */
input[type="date"] { position: relative; cursor: pointer; padding-right: 1.6em;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23cdb27a' stroke-width='1.6' stroke-linecap='round'%3E%3Crect x='3.5' y='5' width='17' height='15' rx='2'/%3E%3Cpath d='M3.5 10h17M8 3v4M16 3v4'/%3E%3C/svg%3E") no-repeat right center / .9em; }
input[type="date"]::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: auto; height: auto; margin: 0; padding: 0; opacity: 0; cursor: pointer; }
input[type="date"]::-webkit-inner-spin-button, input[type="date"]::-webkit-clear-button { display: none; }
