/* Aprenti Live – Tafel (Lehrkraft) und Mitspielen (Handy). Schrift: Archivo für Titel/Zahlen, Inter für Text. */
@font-face { font-family: Inter; src: url('/fonts/Inter_500Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: Inter; src: url('/fonts/Inter_700Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: Inter; src: url('/fonts/Inter_800ExtraBold.woff2') format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: Archivo; src: url('/fonts/Archivo_800ExtraBold.woff2') format('woff2'); font-weight: 800; font-display: swap; }

:root {
  --bg: #FFFFFF; --soft: #F3F4F6; --soft2: #E9EAEE; --line: #E7E8EC; --lineDark: #D0D2D8;
  --ink: #15161A; --inkSoft: #5B5F6A; --muted: #989BA4;
  --orange: #F05A00; --orangeD: #D4520A;
  --green: #2BC253; --greenD: #1E9A40; --greenS: #E3F8E9;
  --red: #FF4352; --redD: #D42C3A; --redS: #FFE6E8;
  --gold: #FFC414; --goldD: #D9A100;
  /* Antwortfarben A–D (Grün/Rot bleiben für richtig/falsch) */
  --a: #1A9BFF; --aD: #0A78CF;
  --b: #F0418C; --bD: #C8236B;
  --c: #FFC414; --cD: #D9A100;
  --d: #8B5CF6; --dD: #6A3BD8;
  --r: 20px;
}
@media (prefers-color-scheme: dark) {
  body.player {
    --bg: #111214; --soft: #1B1C20; --soft2: #24262B; --line: #26282D; --lineDark: #33363C;
    --ink: #F4F5F7; --inkSoft: #A9ADB6; --muted: #7C808A; --greenS: #15291B; --redS: #33181C;
  }
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body { background: var(--bg); color: var(--ink); font: 500 16px/1.45 Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; overflow-x: hidden; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
input, select { font: inherit; color: inherit; }
.disp { font-family: Archivo, Inter, sans-serif; font-weight: 800; letter-spacing: -0.01em; }
.num { font-variant-numeric: tabular-nums; }
#app { min-height: 100%; display: flex; flex-direction: column; }

/* Knöpfe mit 3D-Kante wie in der App */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 56px; padding: 0 28px; border-radius: 14px; background: var(--orange); color: #fff; font: 800 16px Inter; letter-spacing: .06em; text-transform: uppercase; box-shadow: 0 5px 0 var(--orangeD); transition: transform .08s, box-shadow .08s, opacity .2s; }
.btn:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 1px 0 var(--orangeD); }
.btn:disabled { background: var(--soft2); color: var(--muted); box-shadow: 0 5px 0 var(--lineDark); cursor: default; }
.btn.ghost { background: var(--bg); color: var(--ink); box-shadow: 0 0 0 2px var(--lineDark) inset, 0 5px 0 var(--lineDark); }
.btn.big { height: 68px; font-size: 19px; padding: 0 40px; }
.btn.wide { width: 100%; }
.link { color: var(--inkSoft); font-weight: 700; font-size: 15px; text-decoration: none; }
.link:hover { color: var(--ink); }

/* Kopf */
.top { display: flex; align-items: center; justify-content: space-between; padding: 18px 28px; }
.logo { display: flex; align-items: center; gap: 10px; font: 800 22px Archivo; color: var(--ink); text-decoration: none; }
.logo img { width: 34px; height: 34px; border-radius: 9px; }
.logo span { color: var(--orange); }
.icon-btn { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--inkSoft); }
.icon-btn:hover { background: var(--soft); color: var(--ink); }

/* ---------- Einrichten ---------- */
.setup { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; max-width: 1180px; width: 100%; margin: 0 auto; padding: 12px 28px 48px; align-items: start; }
.setup h1 { font: 800 clamp(34px, 4vw, 52px)/1.05 Archivo; letter-spacing: -0.02em; }
.setup .lead { color: var(--inkSoft); font-size: 18px; margin-top: 10px; max-width: 560px; }
.step { margin-top: 30px; }
.step h2 { font: 700 15px Inter; color: var(--inkSoft); margin-bottom: 10px; }
.select { width: 100%; height: 56px; border-radius: 14px; background: var(--soft); border: 2px solid transparent; padding: 0 16px; font-weight: 700; font-size: 17px; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--inkSoft) 50%), linear-gradient(135deg, var(--inkSoft) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.select:focus { outline: none; border-color: var(--orange); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: flex; flex-direction: column; align-items: flex-start; text-align: left; padding: 10px 14px; border-radius: 12px; background: var(--bg); box-shadow: 0 0 0 2px var(--line) inset, 0 3px 0 var(--line); max-width: 100%; transition: background .15s, box-shadow .15s; }
.chip small { font: 700 12.5px Inter; color: var(--muted); }
.chip b { font-weight: 700; font-size: 15px; line-height: 1.25; }
.chip.on { background: #FFF1E8; box-shadow: 0 0 0 2px var(--orange) inset, 0 3px 0 var(--orangeD); }
.chip.on small { color: var(--orangeD); }
.chip.all { justify-content: center; font-weight: 800; }
.seg { display: inline-flex; background: var(--soft); border-radius: 14px; padding: 4px; gap: 4px; }
.seg button { height: 44px; min-width: 76px; padding: 0 16px; border-radius: 10px; font-weight: 700; color: var(--inkSoft); }
.seg button.on { background: var(--bg); color: var(--ink); box-shadow: 0 2px 0 var(--line); }
.row2 { display: flex; gap: 28px; flex-wrap: wrap; }
.side { position: sticky; top: 20px; background: var(--soft); border-radius: 24px; padding: 26px; display: flex; flex-direction: column; gap: 18px; }
.side img { width: 150px; align-self: center; margin-top: -8px; }
.howto { list-style: none; display: flex; flex-direction: column; gap: 14px; counter-reset: s; }
.howto li { display: flex; gap: 12px; font-size: 15px; color: var(--inkSoft); }
.howto li::before { counter-increment: s; content: counter(s); flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--bg); font: 800 13px Inter; display: grid; place-items: center; }
.howto b { color: var(--ink); }
.count-note { font: 700 14px Inter; color: var(--inkSoft); }
.err { color: var(--redD); font-weight: 700; font-size: 15px; min-height: 22px; }

/* ---------- Tafel: gemeinsame Bühne ---------- */
.stage { flex: 1; display: flex; flex-direction: column; padding: 0 3vw 3vh; min-height: 0; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 3vw; }
.pill { display: inline-flex; align-items: center; gap: 8px; height: clamp(36px, 3.8vh, 52px); padding: 0 clamp(14px, 1.1vw, 22px); border-radius: 999px; background: var(--soft); font-weight: 700; font-size: clamp(14px, 1.05vw, 21px); color: var(--inkSoft); }
.pill b { color: var(--ink); }

/* Lobby */
.lobby { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4vw; align-items: center; padding: 1vh 3vw 0; }
.join-how { font: 700 clamp(18px, 1.8vw, 26px) Inter; color: var(--inkSoft); }
.join-how b { color: var(--ink); }
.pin { font: 800 clamp(90px, 13vw, 200px)/0.95 Archivo; letter-spacing: 0.02em; margin: 1vh 0 0; font-variant-numeric: tabular-nums; }
.pin span { display: inline-block; width: .25em; }
.qr { background: #fff; padding: 18px; border-radius: 24px; box-shadow: 0 0 0 2px var(--line) inset; }
.qr canvas, .qr img { display: block; width: clamp(200px, 21vw, 320px); height: auto; image-rendering: pixelated; }
.roster { flex: 1; display: flex; flex-direction: column; margin: 3vh 3vw 3vh; padding: 20px 24px 24px; border-radius: 28px; background: var(--soft); min-height: 220px; }
.roster-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.players { flex: 1; display: flex; flex-wrap: wrap; gap: 10px; align-content: flex-start; }
.qrbox { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.qrbox p { font-weight: 700; color: var(--inkSoft); font-size: 16px; }
.pl { display: inline-flex; align-items: center; gap: 8px; height: clamp(48px, 5vh, 66px); padding: 0 clamp(18px, 1.3vw, 26px); border-radius: 14px; background: var(--bg); box-shadow: 0 3px 0 var(--line); font: 700 clamp(16px, 1.4vw, 28px) Inter; animation: pop .35s cubic-bezier(.3,1.6,.5,1) both; cursor: pointer; }
.pl:hover { background: var(--redS); color: var(--redD); text-decoration: line-through; }
.pl i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.pl.off i { background: var(--lineDark); }
.big-count { font: 800 clamp(26px, 2.6vw, 40px) Archivo; }
.big-count small { font: 700 18px Inter; color: var(--inkSoft); margin-left: 8px; }
.empty-hint { flex: 1; width: 100%; display: flex; align-items: center; justify-content: center; gap: 18px; color: var(--inkSoft); font-weight: 700; font-size: 22px; }
.empty-hint img { width: 110px; animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-6px); } }

/* Frage */
.qwrap { flex: 1; display: flex; flex-direction: column; gap: 3vh; min-height: 0; }
.qhead { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 3vw; flex: 1; min-height: 0; }
.qtext { font: 800 clamp(30px, 3.6vw, 60px)/1.15 Archivo; letter-spacing: -0.015em; text-wrap: balance; animation: rise .45s cubic-bezier(.2,.9,.3,1) both; }
.qtext .gap { display: inline-block; min-width: 3.2em; border-bottom: .09em solid var(--ink); margin: 0 .1em; transform: translateY(-.12em); }
.timer { position: relative; width: clamp(110px, 10vw, 160px); aspect-ratio: 1; }
.timer svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.timer circle { fill: none; stroke-width: 10; }
.timer .track { stroke: var(--soft2); }
.timer .prog { stroke: var(--orange); stroke-linecap: round; transition: stroke .3s; }
.timer .t { position: absolute; inset: 0; display: grid; place-items: center; font: 800 clamp(38px, 3.6vw, 58px) Archivo; font-variant-numeric: tabular-nums; }
.timer.hurry .prog { stroke: var(--red); }
.timer.hurry .t { color: var(--redD); animation: beat 1s infinite; }
.answers { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6vw; }
.ans { position: relative; display: flex; align-items: center; gap: 1.4vw; min-height: clamp(84px, 15vh, 170px); padding: 1.4vw 1.8vw; border-radius: 22px; color: #fff; text-align: left; overflow: hidden; animation: rise .45s cubic-bezier(.2,.9,.3,1) both; transition: opacity .35s, transform .35s, filter .35s; }
.ans .l { flex: none; width: clamp(44px, 3.6vw, 64px); aspect-ratio: 1; border-radius: 14px; background: rgba(255,255,255,.24); display: grid; place-items: center; font: 800 clamp(22px, 2vw, 34px) Archivo; }
.ans .x { font: 700 clamp(20px, 2.1vw, 36px)/1.2 Inter; position: relative; z-index: 1; text-wrap: balance; }
.ans .fill { position: absolute; inset: 0 auto 0 0; width: 0; background: rgba(0,0,0,.16); transition: width .9s cubic-bezier(.2,.9,.3,1); }
.ans .n { margin-left: auto; position: relative; z-index: 1; font: 800 clamp(26px, 2.6vw, 44px) Archivo; font-variant-numeric: tabular-nums; }
.ans.A { background: var(--a); box-shadow: 0 6px 0 var(--aD); }
.ans.B { background: var(--b); box-shadow: 0 6px 0 var(--bD); }
.ans.C { background: var(--c); box-shadow: 0 6px 0 var(--cD); color: #1D1A10; }
.ans.C .l { background: rgba(0,0,0,.12); }
.ans.D { background: var(--d); box-shadow: 0 6px 0 var(--dD); }
.answers.two .ans { min-height: clamp(110px, 22vh, 220px); }
.ans.dim { opacity: .28; filter: saturate(.4); }
.ans.right { outline: 6px solid var(--green); outline-offset: 4px; }
.ans.right .l { background: var(--green); color: #fff; }
.why { display: flex; gap: 16px; align-items: flex-start; background: var(--greenS); border-radius: 20px; padding: 18px 22px; font-size: clamp(17px, 1.5vw, 24px); line-height: 1.4; animation: rise .5s .3s both; }
.why b { color: var(--greenD); }
.why .ok { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--green); display: grid; place-items: center; }
.foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

/* Zwischenstand */
.board { flex: 1; display: flex; flex-direction: column; align-items: center; padding-top: 2vh; }
.board h1 { font: 800 clamp(36px, 4vw, 64px) Archivo; margin-bottom: 3vh; }
.rows { width: min(900px, 100%); display: flex; flex-direction: column; gap: 12px; }
.prow { display: flex; align-items: center; gap: 18px; height: clamp(60px, 8vh, 84px); padding: 0 22px; border-radius: 18px; background: var(--soft); font-size: clamp(20px, 1.8vw, 28px); font-weight: 700; transition: transform .8s cubic-bezier(.2,.9,.3,1); }
.prow .rk { width: 44px; font: 800 1.2em Archivo; color: var(--inkSoft); text-align: center; }
.prow .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prow .gain { font: 800 .75em Inter; color: var(--greenD); background: var(--greenS); padding: 4px 10px; border-radius: 999px; animation: pop .4s .6s both; }
.prow .sc { font: 800 1.15em Archivo; font-variant-numeric: tabular-nums; min-width: 4.2em; text-align: right; }
.prow.p1 { background: #FFF6D6; } .prow.p1 .rk { color: var(--goldD); }
.medal { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; font: 800 18px Archivo; }
.medal.m1 { background: var(--gold); color: #5A4300; box-shadow: 0 3px 0 var(--goldD); }
.medal.m2 { background: #C3C7CF; color: #3A3E46; box-shadow: 0 3px 0 #A1A6B0; }
.medal.m3 { background: #E3A26D; color: #5A2E0E; box-shadow: 0 3px 0 #C17F4B; }

/* Ende */
.end { flex: 1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 4vw; align-items: center; padding: 1vh 3vw 0; min-height: 0; }
.podium { display: flex; align-items: flex-end; justify-content: center; gap: 1.4vw; align-self: end; }
.pod { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 30%; }
.pod .who { font: 800 clamp(20px, 1.9vw, 30px) Inter; text-align: center; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; animation: rise .5s both; }
.pod .pts { font: 700 clamp(15px, 1.3vw, 20px) Inter; color: var(--inkSoft); font-variant-numeric: tabular-nums; }
.pod .col { width: 100%; border-radius: 20px 20px 0 0; display: flex; justify-content: center; padding-top: 18px; transform-origin: bottom; animation: grow .8s cubic-bezier(.2,.9,.3,1) both; }
.pod .col .disp { font-size: clamp(48px, 5vw, 84px); color: rgba(0,0,0,.35); }
.pod.p1 .col { height: 40vh; background: var(--gold); box-shadow: inset 0 -8px 0 var(--goldD); animation-delay: 1.2s; }
.pod.p2 .col { height: 29vh; background: #D5D8DE; box-shadow: inset 0 -8px 0 #B5B9C2; animation-delay: .6s; }
.pod.p3 .col { height: 21vh; background: #EDB98E; box-shadow: inset 0 -8px 0 #D29A6B; animation-delay: 0s; }
.pod.p1 .who { animation-delay: 1.8s; } .pod.p2 .who { animation-delay: 1.2s; } .pod.p3 .who { animation-delay: .6s; }
.weak h2 { font: 800 clamp(26px, 2.4vw, 38px) Archivo; }
.weak p.sub { color: var(--inkSoft); font-size: 17px; margin: 6px 0 18px; }
.wq { background: var(--soft); border-radius: 18px; padding: 16px 20px; margin-bottom: 12px; animation: rise .5s both; }
.wq .qq { font-weight: 700; font-size: clamp(16px, 1.3vw, 20px); line-height: 1.35; }
.wq .aa { color: var(--greenD); font-weight: 700; font-size: 15px; margin-top: 4px; }
.wq .pb { display: flex; align-items: center; gap: 12px; margin-top: 10px; font: 800 15px Inter; color: var(--inkSoft); }
.wq .pb div { flex: 1; height: 10px; border-radius: 6px; background: var(--soft2); overflow: hidden; }
.wq .pb i { display: block; height: 100%; background: var(--red); border-radius: 6px; }
.wq .pb i.mid { background: var(--gold); } .wq .pb i.hi { background: var(--green); }

/* ---------- Handy ---------- */
body.player #app { max-width: 520px; margin: 0 auto; min-height: 100dvh; }
.pscreen { flex: 1; display: flex; flex-direction: column; padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); gap: 14px; }
.center { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px; }
.pt { font: 800 30px/1.1 Archivo; letter-spacing: -0.01em; }
.ps { color: var(--inkSoft); font-size: 16px; }
.code-in { width: 100%; height: 76px; border-radius: 18px; background: var(--soft); border: 2px solid transparent; text-align: center; font: 800 40px Archivo; letter-spacing: .18em; font-variant-numeric: tabular-nums; }
.code-in:focus, .name-in:focus { outline: none; border-color: var(--orange); }
.code-in::placeholder { color: var(--lineDark); }
.name-in { width: 100%; height: 60px; border-radius: 16px; background: var(--soft); border: 2px solid transparent; padding: 0 18px; font-weight: 700; font-size: 20px; text-align: center; }
.code-in, .name-in { -webkit-user-select: text; user-select: text; -webkit-appearance: none; appearance: none; color: var(--ink); }
.fig { width: 150px; height: auto; }
.phead { display: flex; align-items: center; justify-content: space-between; font: 700 14px Inter; color: var(--inkSoft); }
.tbar { height: 10px; border-radius: 6px; background: var(--soft2); overflow: hidden; }
.tbar i { display: block; height: 100%; background: var(--orange); border-radius: 6px; transform-origin: left; }
.tbar.hurry i { background: var(--red); }
.pq { font: 800 21px/1.25 Archivo; letter-spacing: -0.01em; text-wrap: pretty; }
.pq .gap { display: inline-block; min-width: 3em; border-bottom: 3px solid var(--ink); transform: translateY(-4px); }
.pans { display: flex; flex-direction: column; gap: 10px; margin-top: auto; padding-bottom: 6px; }
.pans .ans { min-height: 62px; padding: 12px 16px; gap: 14px; border-radius: 18px; animation-duration: .35s; }
.pans .ans .l { width: 40px; font-size: 20px; border-radius: 11px; }
.pans .ans .x { font-size: 17.5px; }
.pans .ans:active { transform: translateY(4px); box-shadow: none; }
.pans .ans.chosen { outline: 4px solid var(--ink); outline-offset: 3px; }
.sent { text-align: center; font-weight: 700; color: var(--inkSoft); padding: 6px 0 2px; animation: rise .3s both; }
.result { flex: 1; margin: -16px -16px 0; padding: 32px 22px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; color: #fff; }
.result.ok { background: var(--green); } .result.bad { background: var(--red); } .result.none { background: var(--soft2); color: var(--ink); }
.result .big { font: 800 46px/1 Archivo; animation: pop .45s cubic-bezier(.3,1.6,.5,1) both; }
.result .plus { font: 800 30px Archivo; background: rgba(255,255,255,.22); padding: 6px 18px; border-radius: 999px; animation: pop .45s .15s both; font-variant-numeric: tabular-nums; }
.result .rightwas { font-weight: 700; font-size: 17px; opacity: .95; max-width: 420px; }
.result .streak { font: 800 16px Inter; background: rgba(0,0,0,.16); padding: 6px 14px; border-radius: 999px; }
.standing { display: flex; align-items: center; justify-content: space-between; background: var(--soft); border-radius: 18px; padding: 16px 18px; }
.standing .rk { font: 800 26px Archivo; font-variant-numeric: tabular-nums; }
.standing .rk small { font: 700 15px Inter; color: var(--inkSoft); }
.standing .sc { text-align: right; font: 800 22px Archivo; font-variant-numeric: tabular-nums; }
.standing .sc small { display: block; font: 700 13px Inter; color: var(--inkSoft); }
.chase { text-align: center; font-weight: 700; color: var(--inkSoft); font-size: 15px; }
.appcta { background: var(--soft); border-radius: 20px; padding: 18px; display: flex; gap: 14px; align-items: center; text-align: left; }
.appcta img { width: 54px; height: 54px; border-radius: 14px; flex: none; }
.appcta b { display: block; font-size: 16px; }
.appcta span { color: var(--inkSoft); font-size: 14.5px; }
.place { font: 800 84px/1 Archivo; font-variant-numeric: tabular-nums; animation: pop .5s cubic-bezier(.3,1.6,.5,1) both; }
.place small { font-size: 28px; color: var(--inkSoft); }
.small-link { text-align: center; padding: 8px; }

@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes rise { from { transform: translateY(18px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes grow { from { transform: scaleY(0); } to { transform: none; } }
@keyframes beat { 50% { transform: scale(1.08); } }
.d1 { animation-delay: .06s !important; } .d2 { animation-delay: .12s !important; } .d3 { animation-delay: .18s !important; } .d4 { animation-delay: .24s !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

@media (max-width: 900px) {
  .setup { grid-template-columns: 1fr; }
  .side { position: static; }
  .lobby, .end { grid-template-columns: 1fr; }
  .answers { grid-template-columns: 1fr; }
}

.pill.fast { background: #FFF6D6; color: #7A5A00; }
.pill.fast b { color: #5A4300; }
.kbd-hint { font: 700 clamp(13px, .8vw, 17px) Inter; color: var(--muted); }
@media (hover: none) { .kbd-hint { display: none; } }
.pwhy { background: var(--soft); border-radius: 16px; padding: 14px 16px; font-size: 15.5px; line-height: 1.45; color: var(--ink); animation: rise .4s .25s both; }

/* ---------- Einrichtung v2: passt auf einen Bildschirm ---------- */
.setup2 { display: grid; grid-template-columns: minmax(320px, 400px) minmax(0, 1fr); gap: 28px; padding: 0 28px 24px; height: calc(100vh / var(--z, 1) - 76px); min-height: 540px; }
.sl { display: flex; flex-direction: column; min-height: 0; }
.sl .step { margin-top: 22px; }
.sl-foot { margin-top: auto; padding-top: 18px; }
.sl-foot .fine { text-align: center; color: var(--muted); font-weight: 700; font-size: 13.5px; margin-top: 12px; }
.hero2 { display: flex; align-items: center; gap: 16px; }
.hero2 img { width: 96px; flex: none; animation: bob 2.6s ease-in-out infinite; }
.hero2 h1 { font: 800 40px/1.02 Archivo; letter-spacing: -0.02em; }
.hero2 .lead { font-size: 16px; margin-top: 6px; color: var(--inkSoft); }
.sr { background: var(--soft); border-radius: 24px; padding: 18px 18px 8px; display: flex; flex-direction: column; min-height: 0; }
.sr-head { display: flex; align-items: baseline; gap: 10px; padding: 0 4px 12px; }
.sr-head h2 { font: 800 20px Archivo; }
.chips.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; overflow: auto; padding: 2px 4px 12px; align-content: start; flex: 1; min-height: 0; }
.chips.grid .chip { width: 100%; min-height: 62px; justify-content: center; }
.chips.grid .chip.all { align-items: center; }
.sr-empty { color: var(--muted); font-weight: 700; padding: 8px 4px; }
@media (max-width: 900px) { .setup2 { grid-template-columns: 1fr; height: auto; } .chips.grid { max-height: 60vh; } }

/* ---------- Bühne: Lobby und Zwischenstand auf Orange (weniger ernst, Fragen bleiben weiß zum Lesen) ---------- */
#app[data-phase="lobby"], #app[data-phase="board"] { background: radial-gradient(120% 100% at 85% 0%, #FF9248 0%, #F05A00 48%, #EE5508 100%); color: #fff; }
#app[data-phase="lobby"] .logo, #app[data-phase="board"] .logo { color: #fff; }
#app[data-phase="lobby"] .logo span, #app[data-phase="board"] .logo span { color: #FFE0C7; }
#app[data-phase="lobby"] .pill, #app[data-phase="board"] .pill { background: rgba(255,255,255,.18); color: rgba(255,255,255,.9); }
#app[data-phase="lobby"] .pill b, #app[data-phase="board"] .pill b { color: #fff; }
#app[data-phase="lobby"] .icon-btn, #app[data-phase="board"] .icon-btn { color: #fff; }
#app[data-phase="lobby"] .icon-btn:hover, #app[data-phase="board"] .icon-btn:hover { background: rgba(255,255,255,.15); }
#app[data-phase="lobby"] .join-how { color: rgba(255,255,255,.88); }
#app[data-phase="lobby"] .join-how b { color: #fff; }
#app[data-phase="lobby"] .pin { color: #fff; text-shadow: 0 .06em 0 rgba(120,30,0,.25); }
#app[data-phase="lobby"] .qr { box-shadow: 0 10px 0 rgba(120,30,0,.18); }
#app[data-phase="lobby"] .qrbox p { color: rgba(255,255,255,.9); }
#app[data-phase="lobby"] .roster { position: relative; background: rgba(255,255,255,.14); overflow: hidden; }
#app[data-phase="lobby"] .big-count { color: #fff; }
#app[data-phase="lobby"] .big-count small { color: rgba(255,255,255,.85); }
#app[data-phase="lobby"] .pl { background: #fff; color: var(--ink); box-shadow: 0 4px 0 rgba(120,30,0,.2); }
#app[data-phase="lobby"] .pl.off { opacity: .6; }
#app[data-phase="lobby"] .empty-hint { color: #fff; }
#app[data-phase="lobby"] .empty-hint img { display: none; }
#app[data-phase="lobby"] .btn, #app[data-phase="board"] .btn { background: #fff; color: var(--orangeD); box-shadow: 0 6px 0 rgba(120,30,0,.25); }
#app[data-phase="lobby"] .btn:disabled { background: rgba(255,255,255,.3); color: rgba(255,255,255,.85); box-shadow: 0 6px 0 rgba(120,30,0,.15); }
#app[data-phase="board"] .btn.ghost { background: transparent; color: #fff; box-shadow: 0 0 0 2px rgba(255,255,255,.6) inset, 0 6px 0 rgba(120,30,0,.15); }
.lobby-crew { position: absolute; right: 18px; bottom: -6px; display: flex; align-items: flex-end; gap: 4px; pointer-events: none; }
.lobby-crew img { height: clamp(110px, 19vh, 240px); animation: bob 2.6s ease-in-out infinite; }
.lobby-crew img:nth-child(2) { animation-delay: .4s; height: clamp(124px, 21vh, 266px); }
.lobby-crew img:nth-child(3) { animation-delay: .8s; }
.players { padding-right: clamp(300px, 26vw, 460px); }
#app[data-phase="board"] .board h1 { color: #fff; text-shadow: 0 .06em 0 rgba(120,30,0,.25); }
#app[data-phase="board"] .prow { background: #fff; color: var(--ink); box-shadow: 0 5px 0 rgba(120,30,0,.18); }
#app[data-phase="board"] .prow.p1 { background: #FFF3C4; }
.react { display: flex; align-items: center; gap: 14px; }
.react img { height: clamp(110px, 14vh, 170px); animation: pop .5s cubic-bezier(.3,1.6,.5,1) both; }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 50; }
/* Tafel auf großen Schirmen: Zwischenstand mittig und breiter, Knöpfe wachsen mit */
.board { justify-content: center; padding-bottom: 6vh; }
.rows { width: min(1240px, 68vw); gap: clamp(12px, 1.4vh, 18px); }
.prow { height: clamp(60px, 9vh, 104px); font-size: clamp(20px, 1.9vw, 36px); }
.medal { width: clamp(40px, 2.6vw, 54px); height: clamp(40px, 2.6vw, 54px); font-size: clamp(18px, 1.2vw, 24px); }
body.host .btn.big { height: clamp(60px, 6.4vh, 86px); font-size: clamp(17px, 1.15vw, 24px); padding: 0 clamp(28px, 2.4vw, 48px); }
/* Ende auf der Bühne: Podium auf Orange, Auswertung als weiße Karte */
#app[data-phase="end"] { background: radial-gradient(120% 100% at 85% 0%, #FF9248 0%, #F05A00 48%, #EE5508 100%); color: #fff; }
#app[data-phase="end"] .logo { color: #fff; }
#app[data-phase="end"] .logo span { color: #FFE0C7; }
#app[data-phase="end"] .pill { background: rgba(255,255,255,.18); color: rgba(255,255,255,.9); }
#app[data-phase="end"] .pill b, #app[data-phase="end"] .icon-btn { color: #fff; }
#app[data-phase="end"] .pod .pts { color: rgba(255,255,255,.88); }
#app[data-phase="end"] .pod .col { box-shadow: inset 0 -8px 0 rgba(0,0,0,.12), 0 0 0 0 transparent; }
.pod .champ { height: clamp(110px, 16vh, 220px); margin-bottom: -6px; animation: pop .5s 2s cubic-bezier(.3,1.6,.5,1) both; }
.end .weak { background: #fff; color: var(--ink); border-radius: 28px; padding: clamp(22px, 2vw, 36px); box-shadow: 0 10px 0 rgba(120,30,0,.18); align-self: center; }
.end .weak h2 { font-size: clamp(26px, 2.2vw, 42px); }
.end .weak p.sub { font-size: clamp(15px, 1vw, 20px); }
.wq .qq { font-size: clamp(16px, 1.25vw, 24px); }
.wq .aa { font-size: clamp(14px, .95vw, 18px); }
.end .weak .btn.big { background: var(--orange); color: #fff; box-shadow: 0 6px 0 var(--orangeD); }
.end .weak .btn.big.ghost { background: #fff; color: var(--ink); box-shadow: 0 0 0 2px var(--lineDark) inset, 0 6px 0 var(--lineDark); }
#app[data-phase="lobby"] .logo img, #app[data-phase="board"] .logo img, #app[data-phase="end"] .logo img { box-shadow: 0 0 0 2px #fff; }

.claim { background: var(--soft); border-radius: 20px; padding: 18px; text-align: center; }
.claim-t { font-weight: 800; font-size: 16px; }
.claim-r { display: flex; justify-content: center; gap: 10px; margin-top: 8px; }
.claim-r span { background: #FFF3C4; color: #7A5A00; font: 800 15px Inter; padding: 5px 12px; border-radius: 999px; }
.claim-code { font: 800 34px Archivo; letter-spacing: .12em; margin-top: 10px; user-select: all; }
.claim-f { color: var(--inkSoft); font-size: 13.5px; font-weight: 700; margin-top: 6px; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--ink); color: var(--bg); font-weight: 700; padding: 12px 18px; border-radius: 14px; z-index: 60; animation: rise .3s both; max-width: 90vw; text-align: center; }

/* ---------- Eigene Quizze ---------- */
[hidden] { display: none !important; }
.ownbox { overflow: auto; flex: 1; min-height: 0; padding: 2px 6px 16px; }
.own { display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
.own-new { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.chip.big { padding: 18px 16px; gap: 4px; } .chip.big b { font-size: 17px; } .chip.big small { font-weight: 600; }
.own-code, .own-acts, .own-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .own-bar { justify-content: space-between; } .own-code .select { flex: 1 1 180px; text-transform: uppercase; }
.own-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; } .own-list .chip { width: 100%; min-height: 62px; justify-content: center; }
.own .select { background-image: none; } .own .ta { height: auto; padding: 14px 16px; line-height: 1.4; resize: vertical; font-weight: 600; }
.oq { border: 0; background: var(--soft); border-radius: 18px; padding: 16px; display: grid; gap: 10px; } .oq .select { background: var(--bg); height: 50px; font-size: 16px; } .oq .ta { height: auto; }
.oo { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .oo label { display: flex; gap: 10px; align-items: center; border-left: 6px solid var(--a); border-radius: 8px; padding-left: 10px; } .oo .o1 { border-color: var(--b); } .oo .o2 { border-color: var(--c); } .oo .o3 { border-color: var(--d); } .oo input[type=radio] { width: 22px; height: 22px; accent-color: var(--green); flex: none; }
.own-hint { background: var(--greenS); border-radius: 14px; padding: 12px 16px; font-weight: 600; }
.own-pub { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--inkSoft); } .own-pub input { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.own-q { background: var(--soft); border-radius: 14px; padding: 12px 16px; display: grid; gap: 2px; } .own-q span { color: var(--greenD); font-weight: 600; }
.own .link { background: none; border: 0; cursor: pointer; padding: 8px 0; }
@media (max-width: 700px) { .oo { grid-template-columns: 1fr; } .ownbox { overflow: visible; } }
.own textarea { font: 600 16px/1.4 Inter, system-ui, sans-serif; color: inherit; }
.ownbox .select, .own-q { background: var(--bg); } .oq { background: var(--bg); } .oq .select { background: var(--soft); }
.pill:empty { display: none; }

/* Klassen-Liga nach dem Quiz */
.lmodal { position: fixed; inset: 0; z-index: 50; background: rgba(10, 10, 14, .55); display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); animation: lfade .18s ease-out; }
@keyframes lfade { from { opacity: 0; } }
.lcard { position: relative; width: min(620px, 100%); max-height: 100%; overflow: auto; background: var(--bg); color: var(--ink); border-radius: 28px; padding: clamp(24px, 3vw, 40px); box-shadow: 0 10px 0 rgba(0,0,0,.18); text-align: left; }
.lcard h2 { font: 800 clamp(26px, 2.4vw, 40px) Archivo; letter-spacing: -.01em; text-wrap: balance; padding-right: 40px; }
.lx { position: absolute; top: 14px; right: 16px; width: 44px; height: 44px; border-radius: 50%; background: var(--soft); color: var(--inkSoft); font: 700 26px/1 Inter; }
.lsub { color: var(--inkSoft); font-size: clamp(16px, 1.1vw, 19px); line-height: 1.5; margin-top: 10px; }
.lform { display: grid; gap: 8px; margin-top: 20px; }
.lform label { font-weight: 800; font-size: 15px; margin-top: 6px; }
.lform label span { color: var(--muted); font-weight: 600; }
.lform .input { width: 100%; height: 56px; border-radius: 14px; background: var(--soft); border: 2px solid transparent; padding: 0 16px; font: 700 17px Inter; color: var(--ink); }
.lform .input:focus { outline: none; border-color: var(--orange); background: var(--bg); }
.lform .btn.wide { margin-top: 12px; }
.lfine { color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.lerr { color: #D33A2C; font-weight: 700; min-height: 1px; }
.lrow { display: flex; gap: 10px; flex-wrap: wrap; } .lrow .input { flex: 1 1 220px; }
.lk { font-weight: 800; color: var(--orange); letter-spacing: .06em; text-transform: uppercase; font-size: 14px; padding-right: 40px; }
.lcode { font: 800 clamp(64px, 9vw, 132px)/1.05 Archivo; letter-spacing: .1em; margin: 14px 0 6px; color: var(--ink); }
.lok { margin-top: 18px; background: #E7F6EC; color: #145C2E; border-radius: 14px; padding: 12px 14px; font-weight: 700; font-size: 15px; line-height: 1.45; }
.pliga { background: #FFF1E6; border-radius: 20px; padding: 18px; text-align: center; }
.pliga .pl-n { font-weight: 700; color: var(--inkSoft); margin-top: 2px; }
.pliga .btn { height: 52px; font-size: 15px; }
@media (prefers-color-scheme: dark) { .pliga { background: #2A1C12; } .lok { background: #15291B; color: #9BE3B0; } }

/* Ruhiger Hinweis auf das Scout-Programm am Ende (kein Banner) */
.scoutzeile { font-size: 14px; line-height: 1.45; color: var(--inkSoft); text-align: center; margin: 14px 8px 0; }
.scoutzeile a { color: var(--inkSoft); font-weight: 700; text-decoration: underline; }
