/* =====================================================================
   Flutlicht – Gestaltung nach dem Spotify-DESIGN.md (awesome-design-md)
   Dunkle Flächen #121212 / #181818 / #1f1f1f, ein Akzent: Grün #1ed760,
   Pillen-Knöpfe mit Grossbuchstaben, runde Play-Knöpfe, schwere Schatten.
   Schrift: Inter (statt Circular), Zahlen in Bebas Neue (Anzeigetafel).
   ===================================================================== */

@font-face { font-family: 'Bebas Neue'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../assets/fonts/bebas-neue-latin-400-normal.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: 'Bebas Neue'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../assets/fonts/bebas-neue-latin-ext-400-normal.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; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('../assets/fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
  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'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('../assets/fonts/inter-latin-ext-wght-normal.woff2') format('woff2-variations');
  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; }

:root {
  --bg: #121212;
  --surface: #181818;
  --surface-2: #1f1f1f;
  --surface-3: #252525;
  --surface-hover: #2a2a2a;
  --border: #4d4d4d;
  --border-light: #7c7c7c;
  --text: #ffffff;
  --muted: #b3b3b3;
  --muted-2: #cbcbcb;
  --green: #1ed760;
  --green-deep: #1db954;
  --red: #f3727f;
  --orange: #ffa42b;
  --blue: #539df5;
  --shadow-md: rgba(0, 0, 0, 0.3) 0 8px 8px;
  --shadow-lg: rgba(0, 0, 0, 0.5) 0 8px 24px;
  --inset: rgb(18, 18, 18) 0 1px 0, rgb(124, 124, 124) 0 0 0 1px inset;
  --r-card: 8px;
  --r-panel: 16px;
  --font: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-score: 'Bebas Neue', 'Inter', Impact, sans-serif;
  --wrap: 1120px;
  --pad: 24px;
  --top: 64px;
  --ease: cubic-bezier(0.3, 0, 0, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top) + 16px); }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.1; }

:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }

.skip {
  position: fixed; left: 12px; top: -60px; z-index: 100;
  background: var(--text); color: #000; padding: 10px 16px; border-radius: 9999px;
  font-weight: 700; text-decoration: none; transition: top 0.15s;
}
.skip:focus { top: 12px; }

/* ---------------- Kopfzeile ---------------- */

.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(18, 18, 18, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.topbar .wrap { display: flex; align-items: center; gap: 24px; height: var(--top); }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 20px; letter-spacing: -0.03em; text-decoration: none;
}
.brand-mark { width: 32px; height: 32px; color: var(--green); flex: none; }
.topnav { display: flex; gap: 4px; margin-left: 8px; }
.topnav a {
  padding: 8px 16px; border-radius: 9999px; text-decoration: none;
  font-size: 14px; font-weight: 700; color: var(--muted);
  transition: color 0.15s, background-color 0.15s;
}
.topnav a:hover { color: var(--text); background: var(--surface-2); }
.topnav a[aria-current='page'] { color: var(--text); background: var(--surface-3); }
.topbar-end { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 32px; padding: 4px 12px; border-radius: 9999px;
  background: var(--surface-2); color: var(--text);
  font-size: 13px; font-weight: 700; white-space: nowrap;
}
.chip-muted { color: var(--muted); font-weight: 600; }
.chip-green { background: rgba(30, 215, 96, 0.14); color: var(--green); }
.chip svg { width: 16px; height: 16px; flex: none; }
.chip .score { font-family: var(--font-score); font-size: 18px; font-weight: 400; letter-spacing: 0.04em; line-height: 1; }

/* ---------------- Knöpfe ---------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 32px; border: 0; border-radius: 9999px;
  font-size: 14px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 0.12s var(--ease), background-color 0.15s, box-shadow 0.15s;
}
.btn:hover { transform: scale(1.04); }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--green); color: #000; }
.btn-primary:hover { background: #3be477; }
.btn-light { background: var(--text); color: #000; }
.btn-outline { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--border-light); }
.btn-outline:hover { box-shadow: inset 0 0 0 1px var(--text); }
.btn-dark { background: var(--surface-2); color: var(--text); }
.btn-dark:hover { background: var(--surface-3); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
.btn svg { width: 18px; height: 18px; }

.play {
  display: inline-grid; place-items: center; flex: none;
  width: 56px; height: 56px; border-radius: 50%; border: 0;
  background: var(--green); color: #000; cursor: pointer; text-decoration: none;
  box-shadow: var(--shadow-md);
  transition: transform 0.12s var(--ease), background-color 0.15s;
}
.play:hover { transform: scale(1.06); background: #3be477; }
.play:active { transform: scale(0.95); }
.play svg { width: 24px; height: 24px; margin-left: 3px; }
.play-lg { width: 72px; height: 72px; }
.play-lg svg { width: 30px; height: 30px; }

/* ---------------- Startseite: Kopf wie eine Spotify-Playlist ---------------- */

.hero {
  position: relative;
  padding-block: 40px 48px;
  background:
    radial-gradient(1000px 420px at 18% -10%, rgba(30, 215, 96, 0.42), transparent 65%),
    linear-gradient(180deg, #13502c 0%, #0f2a1a 45%, var(--bg) 100%);
  overflow: hidden;
}
.hero::after { /* Flutlicht-Kegel */
  content: ''; position: absolute; inset: -20% -10% auto auto; width: 60%; height: 140%;
  background: conic-gradient(from 200deg at 85% 0%, transparent 0deg, rgba(255, 255, 255, 0.07) 18deg, transparent 36deg);
  pointer-events: none;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: end; }
.cover {
  position: relative; width: 232px; aspect-ratio: 1; border-radius: var(--r-card);
  overflow: hidden; box-shadow: var(--shadow-lg);
  background: linear-gradient(145deg, #1ed760 0%, #0c7a36 55%, #0a3d1f 100%);
  color: #000;
}
.cover-pitch { position: absolute; inset: 0; width: 100%; height: 100%; color: rgba(0, 0, 0, 0.22); }
.cover-label {
  position: absolute; left: 16px; top: 14px;
  font-size: 12px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase;
}
.cover-num {
  position: absolute; left: 12px; bottom: 2px;
  font-family: var(--font-score); font-size: 112px; line-height: 0.9; letter-spacing: 0.01em;
}
.hero-kicker { font-size: 13px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--text); }
.hero h1 {
  margin-top: 8px;
  font-size: clamp(40px, 7vw, 84px); font-weight: 900; letter-spacing: -0.045em; line-height: 0.98;
}
.hero-meta { margin-top: 16px; color: var(--muted-2); font-size: 15px; font-weight: 500; max-width: 56ch; }
.hero-meta strong { color: var(--text); }
.hero-actions { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; }
.hero-status { display: flex; flex-wrap: wrap; gap: 8px; }

[data-enter] > * { animation: enter 0.7s var(--ease) both; }
[data-enter] > *:nth-child(2) { animation-delay: 0.08s; }
@keyframes enter { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------------- Abschnitte ---------------- */

.section { padding-block: 40px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.section-head h2 { font-size: 24px; font-weight: 800; }
.section-head a { color: var(--muted); font-size: 14px; font-weight: 700; text-decoration: none; }
.section-head a:hover { color: var(--text); text-decoration: underline; }
.section-sub { color: var(--muted); font-size: 14px; margin-top: -8px; margin-bottom: 20px; }

.two-col { display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px; align-items: start; }

.panel { background: var(--surface); border-radius: var(--r-panel); padding: 20px; }

.howto { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.howto li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: start; }
.howto-num { font-family: var(--font-score); font-size: 44px; line-height: 0.9; color: var(--green); }
.howto strong { font-size: 16px; }
.howto p { color: var(--muted); font-size: 14px; margin-top: 2px; }

.prose { max-width: 720px; }
.prose h2 { font-size: 22px; font-weight: 800; margin: 32px 0 10px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--muted-2); font-size: 16px; line-height: 1.6; }
.prose ul { padding-left: 20px; margin: 0; display: grid; gap: 8px; }
.prose strong { color: var(--text); }
.prose a { color: var(--green); }
.prose .stand { margin-top: 32px; color: var(--muted); font-size: 14px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------- Spielkarten (wie Spotify-Albenkarten) ---------------- */

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.card {
  position: relative; display: block; padding: 12px 12px 16px; border-radius: var(--r-card);
  background: var(--surface); text-decoration: none; color: inherit;
  transition: background-color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s;
}
a.card:hover { background: var(--surface-hover); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.card-art {
  position: relative; aspect-ratio: 1; border-radius: 6px; overflow: hidden;
  box-shadow: var(--shadow-md); margin-bottom: 14px;
}
.card-art .art-pitch { position: absolute; inset: 0; width: 100%; height: 100%; color: rgba(0, 0, 0, 0.2); transition: transform 0.4s var(--ease); }
a.card:hover .art-pitch { transform: scale(1.03); }
.card-art .art-word {
  position: absolute; left: 12px; right: 12px; bottom: 10px;
  font-family: var(--font-score); font-size: 40px; line-height: 0.92; color: #000; letter-spacing: 0.01em;
}
.card-art .play { position: absolute; right: 10px; bottom: 10px; width: 48px; height: 48px; opacity: 0; transform: translateY(8px); transition: opacity 0.2s, transform 0.2s var(--ease); }
.card-art .play svg { width: 20px; height: 20px; }
a.card:hover .card-art .play, a.card:focus-visible .card-art .play { opacity: 1; transform: none; }
.card h3 { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.card p { margin-top: 4px; color: var(--muted); font-size: 14px; line-height: 1.4; }
.badge {
  position: absolute; top: 10px; left: 10px; z-index: 1;
  padding: 3px 10px; border-radius: 9999px; background: rgba(0, 0, 0, 0.72); color: var(--text);
  font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
}
.badge-live { background: #000; color: var(--green); }
.art-green { background: linear-gradient(145deg, #1ed760, #0b6b30); }
.art-blue { background: linear-gradient(145deg, #7db7ff, #1f4fa8); }
.art-orange { background: linear-gradient(145deg, #ffc061, #c25e06); }
.art-red { background: linear-gradient(145deg, #ff9aa5, #b3263e); }
.art-teal { background: linear-gradient(145deg, #6ee7d2, #0f6b60); }
.card-soon { cursor: default; }
.card-soon .card-art { filter: saturate(0.75); }

/* ---------------- Schritte ---------------- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { background: var(--surface); border-radius: var(--r-card); padding: 20px; }
.step-num { font-family: var(--font-score); font-size: 48px; line-height: 1; color: var(--green); }
.step h3 { margin-top: 8px; font-size: 18px; font-weight: 800; }
.step p { margin-top: 6px; color: var(--muted); font-size: 15px; }

/* ---------------- Rangliste (wie eine Spotify-Titelliste) ---------------- */

.board { width: 100%; border-collapse: collapse; font-size: 15px; }
.board th {
  text-align: left; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 8px 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.board td { padding: 10px 12px; }
.board tbody tr { transition: background-color 0.15s; }
.board tbody tr:hover { background: var(--surface-hover); }
.board tbody td:first-child { border-radius: 6px 0 0 6px; }
.board tbody td:last-child { border-radius: 0 6px 6px 0; }
.board .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.board .rank { width: 48px; color: var(--muted); font-variant-numeric: tabular-nums; }
.board .name { font-weight: 700; overflow-wrap: break-word; width: 100%; }
.board .pts { font-family: var(--font-score); font-size: 22px; letter-spacing: 0.03em; line-height: 1; text-align: right; }
.board tr.me .name, .board tr.me .pts { color: var(--green); }
.board tr.me { background: rgba(30, 215, 96, 0.08); }
.board tr.gap td { border-top: 1px dashed rgba(255, 255, 255, 0.2); }
.medal {
  display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  font-size: 13px; font-weight: 800; color: #000;
}
.medal-1 { background: #f5c84c; }
.medal-2 { background: #cfd4da; }
.medal-3 { background: #d99a5b; }
.board-empty { padding: 28px 12px; color: var(--muted); text-align: center; }
.board-empty strong { display: block; color: var(--text); font-size: 18px; margin-bottom: 4px; }
.board-wrap { overflow-x: auto; }
.col-hide-sm { }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.filter {
  min-height: 36px; padding: 6px 16px; border: 0; border-radius: 9999px; cursor: pointer;
  background: var(--surface-2); color: var(--text); font-size: 14px; font-weight: 600;
  transition: background-color 0.15s, transform 0.12s var(--ease);
}
.filter:hover { background: var(--surface-3); }
.filter:active { transform: scale(0.97); }
.filter[aria-selected='true'] { background: var(--text); color: #000; }

.page-head { padding-block: 40px 24px; background: linear-gradient(180deg, #1d3a5c 0%, var(--bg) 100%); }
.page-head.green { background: linear-gradient(180deg, #13502c 0%, var(--bg) 100%); }
.page-head h1 { font-size: clamp(36px, 6vw, 64px); font-weight: 900; letter-spacing: -0.04em; margin-top: 6px; }
.page-head p { color: var(--muted-2); margin-top: 10px; }

/* ---------------- Quiz ---------------- */

.quiz-shell { max-width: 760px; margin-inline: auto; padding: 24px var(--pad) 48px; }

.start-card { background: var(--surface); border-radius: var(--r-panel); padding: 28px; box-shadow: var(--shadow-lg); }
.start-card h1 { font-size: clamp(30px, 5vw, 44px); font-weight: 900; letter-spacing: -0.04em; }
.start-card .lead { color: var(--muted-2); margin-top: 10px; }
.rules { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.rules li { display: flex; gap: 12px; align-items: flex-start; background: var(--surface-2); border-radius: var(--r-card); padding: 12px 14px; font-size: 14px; color: var(--muted-2); }
.rules li strong { display: block; color: var(--text); font-size: 15px; }
.rules .ico { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(30, 215, 96, 0.14); color: var(--green); }
.rules .ico svg { width: 18px; height: 18px; }

.field { margin-top: 24px; }
.field label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.field input {
  width: 100%; min-height: 48px; padding: 12px 20px; border: 0; border-radius: 9999px;
  background: var(--surface-2); color: var(--text); font: inherit; font-size: 16px;
  box-shadow: var(--inset); transition: box-shadow 0.15s;
}
.field input:hover { box-shadow: rgb(18, 18, 18) 0 1px 0, var(--muted) 0 0 0 1px inset; }
.field input:focus { outline: none; box-shadow: 0 0 0 2px var(--text); }
.field .hint { margin-top: 8px; font-size: 13px; color: var(--muted); }
.field .hint a { color: var(--muted-2); }
.field .error { margin-top: 8px; font-size: 13px; color: var(--red); font-weight: 600; }
.start-actions { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.qbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.qbar .count { font-weight: 800; font-size: 15px; }
.qbar .count span { color: var(--muted); font-weight: 600; }
.qbar .spacer { flex: 1; }
.level-dots { display: inline-flex; gap: 3px; }
.level-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.25); }
.level-dots i.on { background: currentColor; }

.progress { display: grid; grid-template-columns: repeat(20, 1fr); gap: 4px; margin: 16px 0 12px; }
.progress i { height: 6px; border-radius: 3px; background: var(--surface-3); transition: background-color 0.3s; }
.progress i.richtig { background: var(--green); }
.progress i.falsch { background: var(--red); }
.progress i.zeit { background: var(--border-light); }
.progress i.jetzt { background: var(--text); }
.progress i:nth-child(4n):not(:last-child) { margin-right: 6px; }

.timer { position: relative; height: 8px; border-radius: 9999px; background: var(--surface-3); overflow: hidden; }
.timer-fill { position: absolute; inset: 0; transform-origin: left center; background: var(--green); border-radius: inherit; }
.timer-fill.warn { background: var(--orange); }
.timer-fill.alarm { background: var(--red); }
.timer-row { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.timer-row .timer { flex: 1; }
.timer-secs { font-family: var(--font-score); font-size: 26px; line-height: 1; min-width: 2ch; text-align: right; font-variant-numeric: tabular-nums; }

.qcard { background: var(--surface); border-radius: var(--r-panel); padding: 28px; box-shadow: var(--shadow-lg); }
.qcard .kat { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; }
.qcard h2:focus { outline: none; }
.qcard h2 { margin-top: 10px; font-size: clamp(22px, 3.4vw, 30px); font-weight: 800; letter-spacing: -0.025em; line-height: 1.2; }

.answers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
.answer {
  display: flex; align-items: center; gap: 14px; text-align: left;
  min-height: 64px; padding: 12px 16px; border: 0; border-radius: 12px; cursor: pointer;
  background: var(--surface-2); color: var(--text); font-size: 16px; font-weight: 600; line-height: 1.3;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  transition: background-color 0.15s, transform 0.12s var(--ease), box-shadow 0.15s, opacity 0.2s;
}
.answer:hover:not(:disabled) { background: var(--surface-hover); box-shadow: inset 0 0 0 1px var(--border-light); transform: translateY(-1px); }
.answer:active:not(:disabled) { transform: scale(0.98); }
.answer .key {
  flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-3); color: var(--muted); font-size: 13px; font-weight: 800;
}
.answer:disabled { cursor: default; }
.answer.weg { opacity: 0.18; }
.answer.wartet { box-shadow: inset 0 0 0 2px var(--text); animation: wartet 0.9s ease-in-out infinite; }
@keyframes wartet { 50% { background: var(--surface-hover); } }
.answer.richtig { background: rgba(30, 215, 96, 0.16); box-shadow: inset 0 0 0 2px var(--green); }
.answer.richtig .key { background: var(--green); color: #000; }
.answer.falsch { background: rgba(243, 114, 127, 0.14); box-shadow: inset 0 0 0 2px var(--red); }
.answer.falsch .key { background: var(--red); color: #000; }
.answer.richtig.gewaehlt { animation: pop 0.35s var(--ease); }
.answer.falsch.gewaehlt { animation: shake 0.35s var(--ease); }
@keyframes pop { 50% { transform: scale(1.03); } }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

.qfoot { margin-top: 18px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.joker { min-height: 40px; padding: 8px 18px; letter-spacing: 1.2px; font-size: 13px; }

.feedback { margin-top: 18px; border-radius: 12px; padding: 16px 18px; background: var(--surface-2); display: grid; grid-template-columns: 1fr auto; gap: 12px 16px; align-items: center; }
.feedback .verdict { font-weight: 800; font-size: 18px; }
.feedback .verdict.ok { color: var(--green); }
.feedback .verdict.no { color: var(--red); }
.feedback .gain { font-family: var(--font-score); font-size: 30px; line-height: 1; color: var(--green); }
.feedback .info { grid-column: 1 / -1; color: var(--muted-2); font-size: 15px; }
.feedback .info strong { color: var(--text); }
.feedback .btn { grid-column: 1 / -1; justify-self: end; }

.level-banner {
  position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 24px;
  background: rgba(10, 10, 10, 0.82); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  animation: fade 0.25s ease both;
}
.level-banner .inner { text-align: center; animation: zoom 0.5s var(--ease) both; }
.level-banner .lv { font-size: 13px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--green); }
.level-banner .name { font-family: var(--font-score); font-size: clamp(64px, 14vw, 128px); line-height: 0.95; margin-top: 6px; }
.level-banner .sub { color: var(--muted-2); margin-top: 8px; }
@keyframes fade { from { opacity: 0; } }
@keyframes zoom { from { opacity: 0; transform: scale(0.9); } }

/* Resultat */
.result-hero { text-align: center; padding: 32px 24px 28px; border-radius: var(--r-panel); background: radial-gradient(600px 260px at 50% 0%, rgba(30, 215, 96, 0.28), transparent 70%), var(--surface); box-shadow: var(--shadow-lg); }
.result-hero .kicker { font-size: 13px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted-2); }
.result-score { font-family: var(--font-score); font-size: clamp(88px, 18vw, 148px); line-height: 0.9; margin-top: 10px; letter-spacing: 0.01em; }
.result-score small { display: block; font-family: var(--font); font-size: 14px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.result-line { margin-top: 14px; font-size: 18px; font-weight: 700; }
.result-line span { color: var(--muted); font-weight: 500; }
.result-chips { margin-top: 16px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.result-actions { margin-top: 24px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

.levels { margin-top: 16px; display: grid; gap: 8px; }
.level-row { display: grid; grid-template-columns: 150px 1fr auto; gap: 12px; align-items: center; background: var(--surface); border-radius: var(--r-card); padding: 12px 16px; }
.level-row .lname { font-weight: 700; font-size: 15px; }
.level-row .lname span { display: block; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
.squares { display: flex; gap: 6px; }
.squares i { width: 22px; height: 22px; border-radius: 5px; background: var(--surface-3); }
.squares i.richtig { background: var(--green); }
.squares i.falsch { background: var(--red); }
.squares i.zeit { background: var(--border-light); }
.level-row .lpts { font-family: var(--font-score); font-size: 22px; line-height: 1; }

.review { margin-top: 16px; background: var(--surface); border-radius: var(--r-panel); }
.review summary { cursor: pointer; padding: 18px 20px; font-weight: 700; list-style: none; display: flex; align-items: center; justify-content: space-between; border-radius: var(--r-panel); }
.review summary::-webkit-details-marker { display: none; }
.review summary::after { content: '+'; font-size: 22px; color: var(--muted); }
.review[open] summary::after { content: '–'; }
.review summary:hover { background: var(--surface-hover); }
.review ol { margin: 0; padding: 0 20px 16px; list-style: none; display: grid; gap: 10px; }
.review li { padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, 0.08); font-size: 15px; }
.review .rq { font-weight: 700; }
.review .ra { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; }
.review .ok { color: var(--green); font-weight: 700; }
.review .no { color: var(--red); font-weight: 700; text-decoration: line-through; }
.review .ri { margin-top: 6px; color: var(--muted); font-size: 14px; }

.note { margin-top: 16px; padding: 12px 16px; border-radius: var(--r-card); background: rgba(83, 157, 245, 0.12); color: #cfe2ff; font-size: 14px; }
.note a { color: var(--text); font-weight: 700; }

/* ---------------- Fusszeile & Navigation unten ---------------- */

.footer { padding-block: 32px 40px; color: var(--muted); font-size: 13px; }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; border-top: 1px solid rgba(255, 255, 255, 0.08); padding-top: 24px; }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--text); }

.tabbar { display: none; }

.toast {
  position: fixed; left: 50%; bottom: 96px; z-index: 80; transform: translateX(-50%);
  background: var(--blue); color: #000; font-weight: 700; font-size: 14px;
  padding: 10px 18px; border-radius: 9999px; box-shadow: var(--shadow-lg);
  animation: toast 2.4s var(--ease) both;
}
@keyframes toast { 0% { opacity: 0; transform: translate(-50%, 10px); } 12%, 85% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; } }

.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--surface-3); border-top-color: var(--green); animation: spin 0.8s linear infinite; margin: 24px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------- Kleine Bildschirme ---------------- */

@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  :root { --pad: 16px; --top: 56px; }
  .topnav { display: none; }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .tabbar {
    display: grid; grid-template-columns: repeat(3, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    padding-bottom: env(safe-area-inset-bottom);
    background: linear-gradient(180deg, rgba(18, 18, 18, 0.9), #000 60%);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  }
  .tabbar a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    min-height: 64px; color: var(--muted); text-decoration: none; font-size: 11px; font-weight: 600;
  }
  .tabbar a svg { width: 24px; height: 24px; }
  .tabbar a[aria-current='page'] { color: var(--text); }
  .hero { padding-block: 24px 32px; }
  .hero-grid { grid-template-columns: 1fr; gap: 20px; }
  .cover { width: min(56vw, 220px); margin-inline: auto; }
  .cover-num { font-size: 96px; }
  .hero-actions .btn { flex: 1; }
  .cards { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card { padding: 10px 10px 14px; }
  .card-art .art-word { font-size: 30px; }
  .rules { grid-template-columns: 1fr; }
  .start-card, .qcard { padding: 20px; }
  .answers { grid-template-columns: 1fr; }
  .answer { min-height: 56px; }
  .level-row { grid-template-columns: 1fr auto; }
  .level-row .squares { grid-column: 1 / -1; grid-row: 2; }
  .result-actions .btn { width: 100%; }
  .start-actions .btn { width: 100%; }
  .feedback .btn { width: 100%; }
  .col-hide-sm { display: none; }
  .board td, .board th { padding-inline: 8px; }
  .board .rank { width: 40px; }
  .panel { padding: 16px 12px; }
  .toast { bottom: 88px; }
  /* Während einer Frage: keine Navigation unten, damit Antworten und «Weiter» Platz haben */
  body.im-spiel { padding-bottom: env(safe-area-inset-bottom); }
  body.im-spiel .tabbar { display: none; }
  .qbar { gap: 8px; }
  .qbar .chip { min-height: 28px; font-size: 12px; padding: 3px 10px; }
  .quiz-shell { padding-top: 16px; }
  .rules li { padding: 10px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
