/* Tutorial „Chipliste und Faktoren“: Bühne 1920 × 1080 (wird passend verkleinert), Nachbauten im Look der App */
:root {
  --gold: #f5c518; --gold2: #ffd84a; --golddk: #8a6a00;
  --bg: #050b0d; --tx: #f3f6f7; --tx2: #b9c4c8;
  --pill: linear-gradient(180deg, #3a3a3a 0%, #121212 48%, #000 52%, #1c1c1c 100%);
  --pill-on: linear-gradient(180deg, #ffffff 0%, #d9d9d9 50%, #bdbdbd 51%, #f0f0f0 100%);
  --ok: #7be38a; --bad: #ff6b5b;
  --f: "Segoe UI", "Malgun Gothic", "Microsoft YaHei", system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--tx); font-family: var(--f); }
body { display: grid; place-items: center; overflow: hidden; }
.tut { width: 100%; height: 100%; display: grid; grid-template-rows: 1fr auto; }
.frame { position: relative; display: grid; place-items: center; overflow: hidden; min-height: 0; }
.stage { position: relative; width: 1920px; height: 1080px; transform-origin: 0 0; overflow: hidden; background: #000; flex: none; }
.frame .stage { position: absolute; left: 0; top: 0; }
.world { position: absolute; inset: 0; transform-origin: 0 0; transition: transform 1.1s cubic-bezier(.6, .05, .25, 1); }
.bg { position: absolute; inset: 0; width: 1920px; height: 1080px; display: block; transition: opacity .8s; }
.bg.blur { opacity: 0; }
.stage.fokus .bg.blur { opacity: 1; }
.stage.fokus .world::after { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, .35); pointer-events: none; }
.layer, .hud { position: absolute; inset: 0; }
.hud { pointer-events: none; z-index: 5; }
.hud > * { pointer-events: auto; }

/* Mauszeiger */
.cursor { position: absolute; left: 0; top: 0; width: 46px; height: 46px; z-index: 30; pointer-events: none; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .6)); opacity: 0; transition: opacity .3s; }
.cursor.on { opacity: 1; }
.ripple { position: absolute; width: 70px; height: 70px; margin: -35px 0 0 -35px; border-radius: 50%; border: 4px solid var(--gold2); z-index: 29; pointer-events: none; animation: ripple .6s ease-out forwards; }
@keyframes ripple { from { transform: scale(.2); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }

/* Erklärkarte */
.cap { position: absolute; left: 48px; bottom: 48px; width: 760px; padding: 28px 34px 32px; border-radius: 26px; z-index: 20;
  background: linear-gradient(180deg, rgba(20, 26, 28, .92), rgba(6, 10, 12, .94)); border: 1.5px solid rgba(245, 197, 24, .45);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .08); transition: opacity .4s, transform .4s; }
.cap.weg { opacity: 0; transform: translateY(20px); }
.cap.rechts { left: auto; right: 48px; }
.cap.oben { bottom: auto; top: 48px; }
.cap-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.cap-part { font: 800 22px var(--f); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.cap-no { font: 700 22px var(--f); color: var(--tx2); font-variant-numeric: tabular-nums; }
.cap h2 { margin: 0 0 12px; font: 800 44px/1.15 var(--f); text-wrap: balance; }
.cap p { margin: 0; font: 500 30px/1.42 var(--f); color: #dfe6e8; }
.cap p b { color: var(--gold2); font-weight: 800; }

/* Steuerleiste */
.bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); background: #020607; border-top: 1px solid rgba(255, 255, 255, .08); }
.nb { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .18); background: var(--pill); color: #fff; display: grid; place-items: center; cursor: pointer; }
.nb svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.nb.play svg { fill: currentColor; stroke: none; }
.nb.play .i-pause, .nb.play.an .i-play { display: none; }
.nb.play.an .i-pause { display: block; }
.nb:hover { border-color: var(--gold); }
.nb:disabled { opacity: .35; cursor: default; }
.dots { flex: 1; display: flex; gap: 5px; min-width: 0; }
.dots button { flex: 1; height: 8px; min-width: 6px; border: 0; border-radius: 4px; background: rgba(255, 255, 255, .16); cursor: pointer; padding: 0; position: relative; overflow: hidden; }
.dots button.teil2 { background: rgba(245, 197, 24, .16); }
.dots button.fertig { background: rgba(245, 197, 24, .75); }
.dots button.jetzt { background: rgba(255, 255, 255, .25); }
.dots button.jetzt::after { content: ''; position: absolute; inset: 0; width: var(--p, 0%); background: var(--gold2); }
.count { flex: none; font: 700 14px var(--f); color: var(--tx2); font-variant-numeric: tabular-nums; min-width: 56px; text-align: right; }
body.video .bar { display: none; }
body.video .tut { grid-template-rows: 1fr; }

/* Glanz-Knöpfe wie in der App */
.pill { display: grid; place-items: center; height: 56px; padding: 0 18px; border-radius: 28px; background: var(--pill); border: 1.5px solid rgba(255, 255, 255, .22); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 2px 4px rgba(0, 0, 0, .6); color: #fff; font: 700 24px var(--f); white-space: nowrap; transition: transform .2s; }
.pill.on { background: var(--pill-on); color: #111; border-color: #fff; }
.pill.druck { transform: scale(.94); }

/* Übungsbahn-Tafel (Nachbau, Maße wie im Spiel) */
.tafel { position: absolute; left: 1679px; top: 0; width: 238px; height: 389px; border-radius: 0 0 6px 6px; background: rgba(40, 48, 50, .96); border: 2px solid #9aa3a5; box-shadow: 0 0 0 1px #2b2f30; font: 600 15px var(--f); color: #e9f0f0; transform-origin: 100% 0; transition: transform 1s cubic-bezier(.6, .05, .25, 1), box-shadow .4s; }
.tafel .t-kopf { height: 34px; display: grid; place-items: center; background: linear-gradient(#5c6466, #3b4244); border-bottom: 1px solid #9aa3a5; font-weight: 700; }
.tafel .t-z { display: flex; align-items: center; justify-content: space-between; padding: 0 8px; height: 30px; }
.tafel .t-l { color: #9be36b; }
.tafel .t-trenn { height: 2px; background: #9aa3a5; margin: 6px 4px; }
.tafel .t-ent { height: 46px; }
.tafel .t-ent b { font: italic 800 28px var(--f); color: #ffb31a; }
.tafel .t-wahl { display: flex; align-items: center; gap: 4px; }
.tafel .t-pf { width: 16px; height: 18px; border-radius: 3px; background: linear-gradient(#e4e4e4, #9a9a9a); display: grid; place-items: center; font-size: 9px; color: #222; }
.tafel .t-w { width: 70px; height: 22px; border-radius: 3px; background: linear-gradient(#fafafa, #d9d9d9); color: #111; display: grid; place-items: center; font-weight: 700; font-size: 14px; transition: background .3s; }
.tafel .t-w.neu { background: linear-gradient(#fff7c2, #f5c518); }
.tafel .t-rek { color: #9be36b; padding: 6px 8px 0; }
.tafel .t-rekw { text-align: right; padding: 26px 10px 0; color: #5fe0b4; font-size: 20px; font-weight: 700; }
.tafel.zoom { transform: scale(2.3) translate(-6px, 30px); box-shadow: 0 0 0 4px var(--gold), 0 20px 50px rgba(0, 0, 0, .7); }
.hl { position: absolute; border-radius: 14px; box-shadow: 0 0 0 4px var(--gold), 0 0 34px 6px rgba(245, 197, 24, .55); pointer-events: none; animation: puls 1.4s ease-in-out infinite; z-index: 6; }
@keyframes puls { 50% { box-shadow: 0 0 0 4px var(--gold2), 0 0 50px 14px rgba(245, 197, 24, .35); } }

/* Schlagbalken (Nachbau über dem Original) */
.balken { position: absolute; left: 698px; top: 1018px; width: 512px; height: 56px; border: 2px solid #111; background: linear-gradient(#5d6646, #46503a); transform-origin: 50% 100%; transition: transform 1s cubic-bezier(.6, .05, .25, 1); }
.balken .b-skala { position: absolute; left: 40px; right: 70px; top: -26px; height: 22px; font: 700 15px var(--f); color: #fff; text-shadow: 0 1px 2px #000; }
.balken .b-skala i { position: absolute; transform: translateX(-50%); font-style: normal; }
.balken .b-feld { position: absolute; left: 40px; right: 70px; top: 0; bottom: 0; border-left: 2px solid #222; border-right: 2px solid #222; }
.balken .b-strich { position: absolute; top: 0; bottom: 0; width: 2px; background: rgba(0, 0, 0, .55); }
.balken .b-rand { position: absolute; bottom: 0; height: 8px; }
.balken .b-zeiger { position: absolute; top: -6px; bottom: -6px; width: 6px; margin-left: -3px; border-radius: 3px; background: #fff; box-shadow: 0 0 10px #fff, 0 0 3px #000; }
.balken .b-marke { position: absolute; top: -10px; bottom: -10px; width: 4px; margin-left: -2px; background: var(--gold2); box-shadow: 0 0 12px var(--gold); opacity: 0; }
.balken.zoom { transform: translate(-260px, -470px) scale(2.2); }
.perfekt { position: absolute; font: italic 900 64px var(--f); color: var(--gold2); text-shadow: 0 0 20px rgba(245, 197, 24, .8), 0 4px 0 #6a4b00; transform: translate(-50%, -50%); z-index: 8; animation: perfekt 1.4s ease-out forwards; white-space: nowrap; }
@keyframes perfekt { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.4); } 25% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -80%) scale(1); } }

/* Einstellungen-Fenster (Nachbau der App, doppelt groß) */
.sets { position: absolute; width: 680px; padding: 14px; border-radius: 26px; background: rgba(14, 14, 14, .96); border: 2px solid rgba(255, 255, 255, .2); box-shadow: 0 40px 80px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .1); display: grid; gap: 10px; transform-origin: 50% 0; animation: rein .6s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes rein { from { opacity: 0; transform: translateY(-30px) scale(.9); } }
.sets .reihe { display: grid; gap: 8px; }
.sets .r4 { grid-template-columns: repeat(4, 1fr); }
.sets .r3 { grid-template-columns: repeat(3, 1fr); }
.sets .r7 { grid-template-columns: repeat(7, 1fr); }
.sets .pill { height: 50px; font-size: 22px; padding: 0 6px; }
.sets .club { position: relative; }
.sets .club.voll::after { content: ''; position: absolute; right: 9px; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 4px #fff; }
.sets .club.on.voll::after { background: #222; }
.sets .zeilen { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; }
.sets .zl { display: flex; align-items: center; justify-content: space-between; height: 58px; padding: 0 8px 0 14px; border-radius: 14px; background: linear-gradient(#1d1d1d, #0b0b0b); font: 700 24px var(--f); }
.sets .feld { width: 150px; height: 44px; border-radius: 12px; background: #050505; border: 1.5px solid rgba(255, 255, 255, .28); display: grid; place-items: center; font: 700 24px var(--f); font-variant-numeric: tabular-nums; transition: border-color .2s, box-shadow .2s; }
.sets .feld.aktiv { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245, 197, 24, .35); }
.sets .feld.leer { color: #555; }
.sets .feld .caret { display: inline-block; width: 2px; height: 26px; margin-left: 2px; background: var(--gold2); vertical-align: middle; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.sets .fz { display: flex; align-items: center; justify-content: space-between; height: 66px; padding: 0 10px 0 16px; border-radius: 14px; background: linear-gradient(#1d1d1d, #0b0b0b); font: 700 26px var(--f); }
.sets .fz.hell { box-shadow: 0 0 0 3px var(--gold), 0 0 26px rgba(245, 197, 24, .4); }
.sets .stp { display: flex; align-items: center; gap: 10px; }
.sets .stp .pm { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--pill); border: 1.5px solid rgba(255, 255, 255, .25); font: 800 30px/1 var(--f); }
.sets .stp .feld { width: 150px; }
.sets .stp .pm.druck { background: var(--pill-on); color: #111; }
.sets .unten { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sets .unten .pill { font-size: 20px; letter-spacing: .08em; text-transform: uppercase; }
.sets .titel { font: 800 22px var(--f); letter-spacing: .1em; text-transform: uppercase; color: #aab; padding: 6px 4px 0; }
.sets .bl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sets .bl .pill { gap: 10px; display: flex; justify-content: center; }
.sets .bl .rad { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #ccc; display: grid; place-items: center; }
.sets .bl .on .rad::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: #111; }
.toast { position: absolute; left: 50%; top: 120px; transform: translateX(-50%); padding: 16px 30px; border-radius: 30px; background: rgba(10, 30, 14, .95); border: 2px solid var(--ok); color: #dfffe4; font: 700 28px var(--f); z-index: 15; animation: toast 2.4s ease forwards; white-space: nowrap; }
@keyframes toast { 0% { opacity: 0; transform: translate(-50%, -20px); } 12%, 85% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; } }

/* Notch (echtes Bild) */
.notch { position: absolute; left: 697px; top: 0; width: 526px; height: 61px; transform-origin: 50% 0; transition: transform 1s cubic-bezier(.6, .05, .25, 1); }
.notch img { width: 100%; height: 100%; display: block; }
.notch.zoom { transform: scale(1.6); }

/* Rechner-Karte für die Faktoren */
.rech { position: absolute; width: 520px; padding: 26px 30px; border-radius: 28px; background: radial-gradient(circle at 30% 20%, #ffffff, #e9e9e9 55%, #cfcfcf); color: #1b1b1b; box-shadow: 0 30px 60px rgba(0, 0, 0, .6), inset 0 -6px 14px rgba(0, 0, 0, .15); display: grid; gap: 12px; animation: rein .6s cubic-bezier(.2, .9, .3, 1.2); }
.rech .rz { display: flex; justify-content: space-between; align-items: center; font: 700 28px var(--f); }
.rech .rz span { color: #666; font-weight: 600; }
.rech .rz .feld { min-width: 160px; height: 52px; padding: 0 14px; border-radius: 14px; background: #fff; border: 2px solid #bbb; display: grid; place-items: center; font: 800 30px var(--f); font-variant-numeric: tabular-nums; }
.rech .rz .feld.aktiv { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245, 197, 24, .35); }
.rech .erg { margin-top: 6px; padding: 16px; border-radius: 18px; background: #111; color: #fff; display: flex; justify-content: space-between; align-items: baseline; font: 700 26px var(--f); opacity: .25; transition: opacity .4s; }
.rech .erg.da { opacity: 1; }
.rech .erg b { font: 900 54px var(--f); color: var(--gold2); }

/* Bahn von oben (Faktoren testen) */
.bahn { position: absolute; width: 760px; height: 900px; border-radius: 30px; overflow: hidden; background: repeating-linear-gradient(180deg, #2f7d32 0 90px, #358a38 90px 180px); box-shadow: 0 40px 80px rgba(0, 0, 0, .65), inset 0 0 0 3px rgba(255, 255, 255, .15); animation: rein .6s cubic-bezier(.2, .9, .3, 1.2); }
.bahn .linie { position: absolute; left: 0; right: 0; height: 0; border-top: 3px dashed rgba(255, 255, 255, .55); }
.bahn .linie span { position: absolute; right: 16px; top: -34px; font: 800 26px var(--f); color: #fff; text-shadow: 0 2px 3px #000; }
.bahn .ziel { position: absolute; left: 0; right: 0; height: 0; border-top: 5px solid var(--gold2); box-shadow: 0 0 18px var(--gold); }
.bahn .ziel span { position: absolute; left: 16px; top: -40px; padding: 2px 12px; border-radius: 10px; background: var(--gold); color: #2b1a00; font: 900 26px var(--f); }
.bahn .mitte { position: absolute; top: 0; bottom: 0; left: 50%; width: 0; border-left: 3px dashed rgba(255, 255, 255, .35); }
.bahn .tee { position: absolute; left: 50%; bottom: 40px; width: 70px; height: 40px; margin-left: -35px; border-radius: 8px; background: #7b6a4a; }
.bahn .ball { position: absolute; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #ddd 60%, #999); box-shadow: 0 6px 10px rgba(0, 0, 0, .45); z-index: 3; }
.bahn .spur { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; }
.bahn .spur path { fill: none; stroke: rgba(255, 255, 255, .85); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 14 12; }
.bahn .wind { position: absolute; left: 24px; top: 24px; padding: 10px 18px; border-radius: 16px; background: rgba(0, 0, 0, .55); display: flex; align-items: center; gap: 12px; font: 800 28px var(--f); color: #fff; }
.bahn .wind svg { width: 44px; height: 44px; fill: #6fb4ff; stroke: #fff; stroke-width: 2; }
.urteil { position: absolute; padding: 10px 22px; border-radius: 18px; font: 900 34px var(--f); z-index: 9; animation: rein .4s cubic-bezier(.2, .9, .3, 1.2); white-space: nowrap; }
.urteil.bad { background: var(--bad); color: #fff; }
.urteil.ok { background: var(--ok); color: #0b2a10; }

/* Titelbilder */
.titel-gross { position: absolute; left: 0; right: 0; top: 200px; display: grid; justify-items: center; gap: 26px; text-align: center; }
.titel-gross img { width: 520px; filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .6)); animation: rein .9s cubic-bezier(.2, .9, .3, 1.2); }
.titel-gross h1 { margin: 0; font: 900 92px/1.05 var(--f); text-shadow: 0 6px 20px rgba(0, 0, 0, .7); animation: rein 1s .15s both cubic-bezier(.2, .9, .3, 1.2); }
.titel-gross .teile { display: flex; gap: 26px; animation: rein 1s .35s both cubic-bezier(.2, .9, .3, 1.2); }
.titel-gross .teil { display: flex; align-items: center; gap: 16px; padding: 18px 30px; border-radius: 40px; background: rgba(0, 0, 0, .6); border: 2px solid rgba(245, 197, 24, .6); font: 800 36px var(--f); }
.titel-gross .teil i { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; font-style: normal; background: linear-gradient(var(--gold2), #e0a800); color: #2b1a00; }
.liste { position: absolute; right: 120px; top: 170px; width: 820px; display: grid; gap: 18px; }
.liste .li { display: flex; align-items: center; gap: 20px; padding: 22px 28px; border-radius: 22px; background: rgba(8, 12, 14, .9); border: 1.5px solid rgba(255, 255, 255, .14); font: 700 32px var(--f); opacity: 0; transform: translateX(40px); transition: opacity .5s, transform .5s; }
.liste .li.da { opacity: 1; transform: none; }
.liste .li i { flex: none; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: var(--ok); color: #0b2a10; font: 900 30px var(--f); font-style: normal; }
.chip { position: absolute; padding: 10px 20px; border-radius: 30px; background: var(--gold); color: #2b1a00; font: 900 28px var(--f); z-index: 9; animation: rein .5s cubic-bezier(.2, .9, .3, 1.2); white-space: nowrap; box-shadow: 0 8px 20px rgba(0, 0, 0, .5); }
html:lang(ko) .cap h2, html:lang(ko) .cap p, html:lang(ko) .liste .li { word-break: keep-all; }
html:lang(zh-Hans) .cap p { line-break: strict; }

/* Handy: Bild oben, Erklärkarte darunter in normaler Schriftgröße */
body.klein .tut { grid-template-rows: auto auto 1fr auto; height: auto; min-height: 100%; }
body.klein { overflow: auto; place-items: start stretch; }
body.klein .frame { aspect-ratio: 16 / 9; width: 100%; }
body.klein .cap { position: static; width: auto; margin: 12px 16px; padding: 16px 18px; border-radius: 16px; }
body.klein .cap.weg { opacity: 1; transform: none; }
body.klein .cap h2 { font-size: 21px; }
body.klein .cap p { font-size: 16px; }
body.klein .cap-part, body.klein .cap-no { font-size: 12px; }
body.klein .bar { position: sticky; bottom: 0; }
.tut { grid-template-columns: minmax(0, 1fr); min-width: 0; }
.dots button { min-width: 2px; }
body.klein .bar { gap: 8px; padding-inline: 12px; }
body.klein .nb { width: 40px; height: 40px; }
body.klein .count { min-width: 0; }

/* Schließen-Knopf (App, volle Ansicht) */
.zu { position: fixed; top: 14px; right: 16px; z-index: 50; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: rgba(8, 12, 14, .8); color: #fff; font: 700 26px/1 var(--f); cursor: pointer; }
.zu:hover { border-color: var(--gold); color: var(--gold2); }
