/* Songbattle – monochromes Design (Schwarz/Weiß, folgt Hell-/Dunkelmodus des Geräts) */
:root {
  --bg: #000; --surface: #0a0a0a; --surface2: #141414; --line: #232323; --line2: #3a3a3a;
  --text: #fafafa; --muted: #8c8c8c; --inv: #000;
  --r: 18px; --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root { --bg: #fff; --surface: #fafafa; --surface2: #f0f0f0; --line: #e6e6e6; --line2: #cfcfcf; --text: #0a0a0a; --muted: #6e6e6e; --inv: #fff; color-scheme: light; }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.55 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
h1, h2, h3 { line-height: 1.05; margin: 0 0 .6rem; letter-spacing: -.035em; font-weight: 800; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: 1.35rem; letter-spacing: -.02em; }
h3 { font-size: 1.05rem; letter-spacing: -.01em; }
::selection { background: var(--text); color: var(--inv); }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row.center { justify-content: center; }
.eyebrow { font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0 0 .8rem; }

/* Kopfzeile */
.top {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between;
  padding: 14px max(20px, calc((100% - 1080px) / 2)); border-bottom: 1px solid var(--line);
  background: var(--bg); background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 1rem; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; }
.logo .mark { width: 28px; height: 28px; border-radius: 8px; background: var(--text); color: var(--inv); display: grid; place-items: center; font-size: 15px; letter-spacing: 0; }
.foot { color: var(--muted); font-size: .8rem; padding: 48px 20px; text-align: center; border-top: 1px solid var(--line); margin-top: 48px; }

/* Navigation */
.top-left { display: flex; align-items: center; gap: 12px; }
.nav { display: flex; align-items: center; gap: 18px; }
.nav > a:not(.btn) { text-decoration: none; font-size: .9rem; color: var(--muted); font-weight: 600; }
.nav > a:not(.btn):hover, .nav > a.active:not(.btn) { color: var(--text); }
.codebox { display: flex; align-items: center; gap: 4px; border: 1px solid var(--line2); border-radius: 999px; padding: 2px 2px 2px 12px; background: var(--bg); }
.codebox input { border: 0; padding: 6px 4px; width: 92px; background: transparent; font-size: .88rem; }
.codebox input:focus { outline: none; }
.codebox:focus-within { border-color: var(--text); }
.codebox .btn { border: 0; }
.codebox.lg { padding: 4px 4px 4px 16px; }
.codebox.lg input { width: 150px; font-size: 1rem; }
.code { font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.code.big { font-size: 1.4rem; letter-spacing: .08em; }
.grow { flex: 1; min-width: 0; display: grid; gap: 4px; }
.codeform { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr auto; gap: 10px; align-items: end; }
.codelist { display: grid; gap: 6px; margin-top: 8px; }
@media (max-width: 820px) { .codeform { grid-template-columns: 1fr 1fr; } }
.creator-box { display: grid; gap: 6px; padding: 14px; border: 1px dashed var(--line2); border-radius: 14px; }
.page-head { padding: 40px 0 12px; }

/* Assistent */
.wizard h2 { margin-bottom: 4px; }
.wsteps { display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; padding: 0; margin: 4px 0 22px; border-top: 1px solid var(--line); }
.wsteps li { padding: 10px 0 0; font-size: .78rem; color: var(--muted); border-top: 2px solid transparent; margin-top: -1px; }
.wsteps li b { display: block; font-size: .68rem; letter-spacing: .1em; }
.wsteps li.cur { color: var(--text); font-weight: 700; border-top-color: var(--text); }
.wsteps li.done { color: var(--text); }
.wpage { display: grid; gap: 16px; }
.wnav { display: flex; justify-content: space-between; gap: 10px; }
.wnav [data-wnav="1"], .wnav button[type=submit] { margin-left: auto; }
fieldset.choice { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
fieldset.choice legend { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; padding: 0; }
label.radio { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line2); border-radius: 999px; padding: 8px 14px; font-size: .9rem; font-weight: 600; letter-spacing: normal; text-transform: none; color: var(--text); cursor: pointer; }
label.radio input { width: auto; margin: 0; accent-color: var(--text); }
label.radio:has(input:checked) { background: var(--text); color: var(--inv); border-color: var(--text); }
.summary { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; font-size: .92rem; }
.summary dt { color: var(--muted); font-weight: 600; }
.summary dd { margin: 0; }
.live-votes .live-vote { min-width: 170px; }
.live-vote.chosen { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--text); }
.live-vote.chosen::after { content: " ✓"; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--text); border-radius: 999px;
  padding: 11px 22px; font: inherit; font-weight: 650; font-size: .95rem; cursor: pointer; text-decoration: none;
  background: var(--text); color: var(--inv); transition: transform .15s var(--ease), opacity .2s, background .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:disabled { opacity: .35; cursor: not-allowed; transform: none; }
.btn.sm { padding: 7px 14px; font-size: .85rem; }
.btn.lg { padding: 14px 28px; font-size: 1rem; }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line2); }
.btn.ghost:hover { border-color: var(--text); }

/* Karten & Raster */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.narrow { max-width: 580px; margin: 24px auto; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.empty { color: var(--muted); padding: 28px; text-align: center; border: 1px dashed var(--line2); border-radius: var(--r); grid-column: 1 / -1; }
section { margin-bottom: 32px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-head h2 { margin: 0; }
.count { color: var(--muted); font-size: .85rem; font-variant-numeric: tabular-nums; }

/* Startseite */
.hero { padding: clamp(48px, 9vw, 110px) 0 24px; }
.hero h1 { font-size: clamp(2.8rem, 9vw, 6.2rem); letter-spacing: -.055em; line-height: .95; margin-bottom: 1.4rem; }
.outline { color: transparent; -webkit-text-stroke: 1.5px var(--text); }
.lead { color: var(--muted); max-width: 620px; margin: 0 0 28px; font-size: 1.08rem; }
.how { display: grid; grid-template-columns: repeat(3, 1fr); list-style: none; padding: 0; margin: 56px 0 0; border-top: 1px solid var(--line); }
.how li { padding: 18px 16px 0 0; display: grid; gap: 4px; }
.how b { font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; letter-spacing: .1em; }
.how span { font-weight: 650; }

.bcard { display: flex; flex-direction: column; text-decoration: none; transition: border-color .2s, transform .2s var(--ease); min-height: 170px; }
.bcard:hover { border-color: var(--text); transform: translateY(-2px); }
.bcard h3 { font-size: 1.25rem; }
.bcard p { color: var(--muted); margin: 0 0 14px; font-size: .92rem; }
.bcard .meta { margin-top: auto; display: flex; gap: 14px; font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.bcard .arrow { margin-left: auto; color: var(--text); transition: transform .2s var(--ease); }
.bcard:hover .arrow { transform: translateX(4px); }

/* Lokal gespeicherte Battles */
.mylist { border-top: 1px solid var(--line); }
.myrow { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.myrow a { flex: 1; min-width: 0; text-decoration: none; display: grid; gap: 2px; }
.myrow a b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 1.02rem; }
.myrow a:hover b { text-decoration: underline; text-underline-offset: 3px; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line2); border-radius: 6px; padding: 2px 7px; }
.x { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line2); background: transparent; color: var(--muted); cursor: pointer; font-size: 1rem; line-height: 1; }
.x:hover { color: var(--text); border-color: var(--text); }

/* Phasen-Kennzeichnung */
.pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  border: 1px solid var(--line2); border-radius: 999px; padding: 4px 11px; margin-bottom: 14px; color: var(--muted); }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.p-submit { color: var(--text); border-color: var(--text); }
.p-vote { color: var(--inv); background: var(--text); border-color: var(--text); }
.p-vote::before { animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .2; } }

/* Formulare */
form { display: grid; gap: 16px; }
label { display: grid; gap: 6px; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
input, textarea, select {
  font: inherit; font-size: 1rem; letter-spacing: normal; text-transform: none; color: var(--text); background: var(--bg);
  border: 1px solid var(--line2); border-radius: 12px; padding: 12px 14px; width: 100%; transition: border-color .15s;
}
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .7; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--text); }
.check { display: flex; align-items: center; gap: 10px; font-size: .9rem; font-weight: 500; letter-spacing: normal; text-transform: none; color: var(--text); }
.check input { width: 18px; height: 18px; accent-color: var(--text); }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hint { font-size: .82rem; color: var(--muted); margin: 0; }
.hint.gap { margin-top: 14px; }
.meta-hint { margin: -8px 0 0; min-height: 1.2em; font-size: .82rem; color: var(--muted); }
.meta-hint.ok { color: var(--text); font-weight: 600; }
.meta-hint.err::before { content: "! "; font-weight: 900; }

/* Battle-Seite */
.bhead { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding: 40px 0 24px; }
.bhead h1 { font-size: clamp(2rem, 6vw, 3.6rem); letter-spacing: -.05em; }
.bhead .lead { margin: 0; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); list-style: none; padding: 0; margin: 0 0 28px; border-top: 1px solid var(--line); }
.steps li { padding: 12px 0; color: var(--muted); font-size: .9rem; border-top: 2px solid transparent; margin-top: -1px; }
.steps li b { font-size: .72rem; letter-spacing: .1em; margin-right: 10px; font-variant-numeric: tabular-nums; }
.steps li.cur { color: var(--text); font-weight: 700; border-top-color: var(--text); }
.steps li.done { color: var(--text); }
.adminbar, .notice { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 14px 16px; border-radius: var(--r); margin-bottom: 24px; border: 1px solid var(--line2); background: var(--surface); }
.adminbar span { margin-right: auto; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.notice { border-color: var(--text); }
.notice span { flex: 1 1 300px; font-size: .92rem; }
.split { display: grid; grid-template-columns: minmax(280px, 380px) 1fr; gap: 24px; align-items: start; }

/* Song-Karten */
.song { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: border-color .2s; }
.song:hover { border-color: var(--line2); }
.song-body { padding: 12px 16px 16px; }
.song h3 { margin: 0 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.song p { margin: 0; font-size: .88rem; }
.song .by { color: var(--muted); font-size: .76rem; margin-top: 6px; font-variant-numeric: tabular-nums; }
.media { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; cursor: pointer; overflow: hidden; color: var(--text);
  background: repeating-linear-gradient(135deg, var(--surface2) 0 10px, var(--surface) 10px 20px); }
.media img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(1) contrast(1.08); transition: filter .4s var(--ease), transform .6s var(--ease); }
.media:hover img { filter: grayscale(0); transform: scale(1.03); }
.media img.cover { object-fit: contain; background: #000; }
.media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.ph { position: absolute; left: 14px; bottom: 10px; font-weight: 900; font-size: 1.5rem; letter-spacing: -.04em; opacity: .55; }
.playbtn { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: var(--text); box-shadow: 0 6px 24px rgba(0,0,0,.35); transition: transform .2s var(--ease); }
.playbtn::after { content: ""; position: absolute; left: 21px; top: 16px; border-style: solid; border-width: 10px 0 10px 16px; border-color: transparent transparent transparent var(--inv); }
.media:hover .playbtn { transform: scale(1.1); }
.plat, .mine { position: absolute; top: 10px; font-size: .64rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; }
.plat { left: 10px; background: rgba(0,0,0,.72); color: #fff; }
.mine { right: 10px; background: var(--text); color: var(--inv); }
.secret { grid-column: 1 / -1; display: grid; gap: 4px; padding: 22px; border: 1px dashed var(--line2); border-radius: var(--r); text-align: center;
  background: repeating-linear-gradient(135deg, var(--surface) 0 12px, var(--bg) 12px 24px); }
.secret span { color: var(--muted); font-size: .88rem; }
.hint.wide { grid-column: 1 / -1; }
.reveal-all .grid { margin-top: 4px; }
.del { position: absolute; right: 10px; bottom: 12px; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line2); background: var(--surface); color: var(--text); font-size: 1.1rem; line-height: 1; cursor: pointer; }
.del:hover { background: var(--text); color: var(--inv); }

/* Duell */
.duel { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center; }
.vs { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 900; letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1.5px var(--text); }
.duel-side { display: grid; gap: 10px; transition: transform .35s var(--ease), opacity .35s; }
.duel-side.won .song { border-color: var(--text); box-shadow: 0 0 0 2px var(--text); }
.duel-side.won .vote-btn::after { content: " ✓"; }
.duel-side.lost { opacity: .3; transform: scale(.97); }
.vote-btn { width: 100%; padding: 15px; font-size: 1rem; }
.duel-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.prog { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .82rem; font-variant-numeric: tabular-nums; }
progress { -webkit-appearance: none; appearance: none; width: 160px; height: 4px; border: 0; border-radius: 4px; background: var(--line); overflow: hidden; }
progress::-webkit-progress-bar { background: var(--line); }
progress::-webkit-progress-value { background: var(--text); }
progress::-moz-progress-bar { background: var(--text); }

/* Eigene Duelle (lokal gespeichert) */
.log { list-style: none; margin: 0; padding: 0; }
.log li { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .88rem; }
.log li:last-child { border-bottom: 0; }
.log .vsm { font-size: .66rem; font-weight: 800; letter-spacing: .12em; color: var(--muted); }
.log .w { font-weight: 700; }
.log .w::before { content: "✓ "; }
.log .l { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line2); }
.log span:last-child { text-align: right; }
details.card > summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; }
details.card > summary::-webkit-details-marker { display: none; }
details.card > summary::after { content: "+"; font-weight: 400; }
details.card[open] > summary::after { content: "–"; }
details.card[open] > summary { margin-bottom: 12px; }

/* Stream-Voting (Twitch-Chat) */
.live-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.live-top .pill { margin: 0; }
.live-timer { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.live-track { flex: 1; height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.live-track i { display: block; height: 100%; width: 100%; background: var(--text); transition: width .2s linear; }
#live-clock { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 900; letter-spacing: -.04em; font-variant-numeric: tabular-nums; min-width: 4ch; text-align: right; }
.live-num { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 900; line-height: 1; letter-spacing: -.06em; }
.tally { display: flex; align-items: center; gap: 12px; }
.tally-bar { flex: 1; height: 14px; border-radius: 999px; background: var(--line); overflow: hidden; }
.tally-bar i { display: block; height: 100%; width: 0; background: var(--text); transition: width .4s var(--ease); }
.tally span { min-width: 7ch; text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
.live-cta { text-align: center; font-size: clamp(1.1rem, 2.6vw, 1.5rem); font-weight: 700; margin: 22px 0 16px; min-height: 1.5em; }
.live-cta b { display: inline-grid; place-items: center; min-width: 1.8em; padding: 0 .3em; border-radius: 8px; background: var(--text); color: var(--inv); }
.live-controls { margin-bottom: 10px; }
.live-form { grid-template-columns: 1fr 1fr auto; align-items: end; }
.live-side.won .song { border-color: var(--text); box-shadow: 0 0 0 2px var(--text); }

/* K.-o.-Turnier: Runde groß, Turnierbaum, Sieger */
.stage { display: grid; justify-items: center; gap: 4px; text-align: center; margin: 4px 0 22px; }
.stage-name { font-size: clamp(2.6rem, 9vw, 6rem); font-weight: 900; letter-spacing: -.055em; line-height: .95; text-transform: uppercase; margin: 0; }
.stage-sub { font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.stage.new .stage-name { animation: stageIn .9s var(--ease) both; }
@keyframes stageIn { from { opacity: 0; transform: scale(1.25); letter-spacing: .05em; } to { opacity: 1; transform: none; } }
.champion { text-align: center; padding: 28px 0; }
.champion .stage-name { font-size: clamp(2.2rem, 7vw, 4.8rem); text-transform: none; }
.champ-card { max-width: 420px; margin: 18px auto; }
.champ-card .song { border-color: var(--text); box-shadow: 0 0 0 2px var(--text); }
.bracket-wrap { margin-top: 36px; }
.bracket { display: flex; gap: 18px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x proximity; }
.b-round { flex: 0 0 200px; display: flex; flex-direction: column; scroll-snap-align: start; }
.b-round h3 { font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.b-matches { flex: 1; display: flex; flex-direction: column; justify-content: space-around; gap: 10px; }
.b-match { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.b-match.cur { border-color: var(--text); box-shadow: 0 0 0 2px var(--text); }
.b-match.champ { border-color: var(--text); }
.b-slot { display: flex; justify-content: space-between; gap: 8px; padding: 7px 10px; font-size: .82rem; }
.b-slot + .b-slot { border-top: 1px solid var(--line); }
.b-slot span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b-slot i { font-style: normal; font-variant-numeric: tabular-nums; color: var(--muted); }
.b-slot.w { font-weight: 800; }
.b-slot.w::before { content: "✓"; margin-right: -2px; }
.b-slot.l { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line2); }
.b-slot.tbd { color: var(--muted); font-style: italic; }

/* So funktioniert's */
.howto-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.howto-grid > div { padding: 18px 18px 0 0; }
.howto-grid b { font-size: .8rem; color: var(--muted); letter-spacing: .1em; font-variant-numeric: tabular-nums; }
.howto-grid h3 { margin: 6px 0; }
.howto-grid p { color: var(--muted); font-size: .9rem; margin: 0; }

/* Ergebnis */
.podium { display: grid; grid-template-columns: 1fr 1.12fr 1fr; gap: 16px; align-items: end; }
.pod-1 { order: 2; } .pod-2 { order: 1; } .pod-3 { order: 3; }
.place { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 900; letter-spacing: -.06em; line-height: 1; margin-bottom: 10px; color: transparent; -webkit-text-stroke: 1.5px var(--text); }
.pod-1 .place { color: var(--text); -webkit-text-stroke: 0; }
.pod-1 .song { border-color: var(--text); }
.table-wrap { overflow-x: auto; }
.rank { width: 100%; border-collapse: collapse; font-size: .92rem; font-variant-numeric: tabular-nums; }
.rank th, .rank td { padding: 12px 10px; text-align: left; border-bottom: 1px solid var(--line); }
.rank th { color: var(--muted); font-weight: 700; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; }
.rank tr:last-child td { border-bottom: 0; }
.rank td.n { font-weight: 800; width: 48px; }
.rank small { color: var(--muted); display: block; }

/* Hinweis-Leiste */
#toast { position: fixed; left: 50%; bottom: 24px; z-index: 10; transform: translateX(-50%) translateY(16px); opacity: 0; pointer-events: none;
  background: var(--text); color: var(--inv); padding: 12px 20px; border-radius: 999px; font-size: .92rem; font-weight: 600;
  transition: opacity .25s, transform .25s var(--ease); max-width: calc(100% - 32px); box-shadow: 0 10px 30px rgba(0,0,0,.3); }
#toast.show { opacity: 1; transform: translateX(-50%); }
#toast.err::before { content: "! "; font-weight: 900; }
#toast.ok::before { content: "✓ "; }

@media (max-width: 820px) {
  .split, .duel, .podium { grid-template-columns: 1fr; }
  .vs { text-align: center; }
  .pod-1, .pod-2, .pod-3 { order: 0; }
  .bhead { flex-direction: column; align-items: flex-start; }
  .cols { grid-template-columns: 1fr; }
  .how { grid-template-columns: 1fr; }
  .how li { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .log li { grid-template-columns: 1fr; gap: 2px; }
  .log span:last-child { text-align: left; }
  .live-form { grid-template-columns: 1fr; }
  .nav > a:not(.btn) { display: none; }
  .nav { gap: 8px; }
  .codebox input { width: 64px; }
  .top { padding: 10px 14px; }
  .logo { font-size: .85rem; letter-spacing: .08em; }
  .howto-grid { grid-template-columns: 1fr; }
  .howto-grid > div { padding: 14px 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .steps li { font-size: .8rem; }
  .steps li b { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Wartungsarbeiten: drehende Platte, Tonarm, Noten, Equalizer ---------- */
body.maint-on .top, body.maint-on .foot { display: none; }
.maint { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 0; }
.maint .lead { margin: 0 auto 18px; }
.maint-art { position: relative; width: min(300px, 68vw); aspect-ratio: 1; margin: 0 auto; }
.vinyl { width: 100%; height: 100%; animation: spin 2.4s linear infinite; filter: drop-shadow(0 24px 48px rgba(0, 0, 0, .45)); }
.vinyl .disc { fill: #0b0b0b; stroke: #2c2c2c; stroke-width: 1.5; }
.vinyl .groove { fill: none; stroke: #fff; stroke-opacity: .08; }
.vinyl .shine { fill: #fff; opacity: .07; }
.vinyl .label { fill: #fafafa; }
.vinyl .label-text { font: 800 8.5px ui-sans-serif, system-ui, sans-serif; letter-spacing: 1.2px; text-anchor: middle; fill: #0a0a0a; }
.vinyl .hole { fill: var(--bg); }
@keyframes spin { to { transform: rotate(360deg); } }
.arm { position: absolute; top: -8%; right: -16%; width: 44%; transform-origin: 83% 11%; animation: arm 3.2s ease-in-out infinite; }
.arm-base, .arm-head { fill: var(--text); }
.arm-line { fill: none; stroke: var(--text); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
@keyframes arm { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(3deg); } }
.notes span { position: absolute; bottom: 45%; font-size: 1.8rem; color: var(--text); opacity: 0; animation: float 4.2s ease-in infinite; }
.notes span:nth-child(1) { left: 14%; animation-delay: 0s; }
.notes span:nth-child(2) { left: 70%; animation-delay: .7s; font-size: 1.4rem; }
.notes span:nth-child(3) { left: 38%; animation-delay: 1.4s; font-size: 2.2rem; }
.notes span:nth-child(4) { left: 84%; animation-delay: 2.1s; }
.notes span:nth-child(5) { left: 4%; animation-delay: 2.8s; font-size: 1.3rem; }
.notes span:nth-child(6) { left: 56%; animation-delay: 3.5s; font-size: 1.6rem; }
@keyframes float {
  0% { transform: translate(0, 0) rotate(-10deg) scale(.6); opacity: 0; }
  15% { opacity: 1; }
  100% { transform: translate(18px, -190px) rotate(18deg) scale(1.15); opacity: 0; }
}
.eq { display: flex; gap: 5px; justify-content: center; align-items: flex-end; height: 46px; margin: 22px auto 26px; }
.eq i { width: 6px; height: 100%; border-radius: 3px; background: var(--text); transform-origin: bottom; animation: eq .9s ease-in-out infinite alternate; }
.eq i:nth-child(2n) { animation-duration: .7s; animation-delay: -.2s; }
.eq i:nth-child(3n) { animation-duration: 1.1s; animation-delay: -.5s; }
.eq i:nth-child(5n) { animation-duration: .6s; animation-delay: -.1s; }
.eq i:nth-child(7n) { animation-duration: 1.3s; animation-delay: -.7s; }
@keyframes eq { from { transform: scaleY(.12); } to { transform: scaleY(1); } }
.maint-title { font-size: clamp(2.6rem, 9vw, 6rem); letter-spacing: -.055em; line-height: .95; margin-bottom: 1rem;
  background: linear-gradient(90deg, var(--muted) 0%, var(--text) 35%, var(--muted) 70%, var(--text) 100%); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 3.5s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.maint-status { display: inline-flex; gap: 10px; align-items: center; color: var(--muted); font-size: .88rem; max-width: 560px; margin: 0; }
.maint-status .dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--text); animation: pulse 1.4s infinite; }
#owner-banner { position: sticky; top: 0; z-index: 6; background: var(--text); color: var(--inv); text-align: center; padding: 8px 16px; font-size: .85rem; font-weight: 600; }
#owner-banner a { color: inherit; }
.aero-row { margin: 26px 0 8px; }
.aero-btn { border-color: var(--text); padding: 12px 26px; font-size: 1rem; background: linear-gradient(180deg, color-mix(in srgb, var(--text) 18%, transparent), transparent 55%); }

.stopwatch { display: grid; gap: 4px; justify-items: center; margin: 0 0 20px; }
.stopwatch span { font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.stopwatch b { font-size: clamp(2rem, 6vw, 3.4rem); font-weight: 900; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

.legal h2 { font-size: 1rem; margin-top: 18px; }
.legal p { line-height: 1.7; }
.foot a { color: inherit; }
