:root { --bg: #0b1328; --bg2: #070d1c; --panel: rgba(16, 24, 48, .78); --panel2: rgba(28, 40, 74, .86); --rand: rgba(214, 222, 236, .38); --text: #f3ecda; --leise: #c2c8d6;
  --gold: #ffd27a; --gold2: #c8963a; --gut: #9fe0a0; --warn: #ff9a7a; --knopf: rgba(36, 48, 86, .92); --schatten: rgba(0, 0, 0, .5); --chrom1: #f4f6fa; --chrom2: #8a96a8; --chrom3: #4a5464;
  --haupt-text: #231a05; --kugel: #ffd76a; --kugel-leer: rgba(255, 255, 255, .14); --ov: rgba(6, 10, 22, .55);
  --kulisse-q: url(img/kulisse-nacht-q.webp); --kulisse-h: url(img/kulisse-nacht-h.webp); }
:root[data-ansicht="morgen"] { --bg: #efe4d0; --bg2: #e2d4ba; --panel: rgba(250, 244, 230, .84); --panel2: rgba(244, 234, 212, .92); --rand: rgba(120, 96, 60, .4); --text: #2e2a22; --leise: #5c5444;
  --gold: #9a5a12; --gold2: #7a4610; --gut: #2f6e2c; --warn: #9a3a22; --knopf: rgba(236, 224, 198, .95); --schatten: rgba(80, 60, 20, .22); --chrom1: #fbfaf6; --chrom2: #b8b0a0; --chrom3: #7a7262;
  --haupt-text: #fff6e0; --kugel: #d8901e; --kugel-leer: rgba(90, 70, 40, .16); --ov: rgba(90, 70, 40, .3);
  --kulisse-q: url(img/kulisse-morgen-q.webp); --kulisse-h: url(img/kulisse-morgen-h.webp); }
:root[data-ansicht="radar"] { --bg: #021009; --bg2: #010804; --panel: rgba(4, 22, 13, .82); --panel2: rgba(8, 34, 20, .9); --rand: rgba(80, 255, 160, .32); --text: #d4ffe6; --leise: #8ad4ac;
  --gold: #7dffb8; --gold2: #2ab070; --gut: #9affc8; --warn: #ffb07a; --knopf: rgba(8, 40, 24, .94); --schatten: rgba(0, 0, 0, .55); --chrom1: #e8efe0; --chrom2: #a8b49a; --chrom3: #56624c;
  --haupt-text: #021009; --kugel: #7dffb8; --kugel-leer: rgba(120, 255, 180, .14); --ov: rgba(0, 10, 4, .55);
  --kulisse-q: url(img/kulisse-radar-q.webp); --kulisse-h: url(img/kulisse-radar-h.webp); }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg2); color: var(--text); font: 16px/1.4 'Trebuchet MS', system-ui, sans-serif;
  -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
* { scrollbar-width: thin; scrollbar-color: var(--gold2) transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; } ::-webkit-scrollbar-thumb { background: var(--gold2); border-radius: 4px; } ::-webkit-scrollbar-track { background: transparent; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; cursor: pointer; }

#buehne { position: fixed; left: 0; top: 0; transform-origin: 0 0; display: grid; grid-template-columns: 1fr; grid-template-rows: auto 1fr; grid-template-areas: "leiste" "feld";
  gap: 8px; padding: 0 10px 10px; overflow: hidden; background: var(--bg2); }
#kulisse { position: absolute; inset: 0; z-index: 0; background: var(--kulisse-q) center / cover no-repeat; }
#buehne.hoch #kulisse { background-image: var(--kulisse-h); }
#buehne > header, #buehne > main, #tkbox > .tkreihe { position: relative; z-index: 1; }
#leiste { grid-area: leiste; display: flex; align-items: center; gap: 12px; height: 64px; margin: 0 -10px; padding: 0 14px;
  background: linear-gradient(180deg, var(--panel2), var(--panel)); border-bottom: 2px solid var(--rand); box-shadow: 0 4px 14px var(--schatten); }
#werte { display: flex; gap: 8px; flex: 1 1 auto; min-width: 0; }
#feldbox { grid-area: feld; position: relative; display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 0; overflow: hidden; }
#rahmen { position: relative; padding: 5px; border-radius: 12px; background: linear-gradient(135deg, var(--chrom1), var(--chrom2) 45%, var(--chrom3) 55%, var(--chrom2) 80%, var(--chrom1));
  box-shadow: 0 14px 30px var(--schatten), 0 3px 8px var(--schatten), inset 0 1px 0 rgba(255, 255, 255, .8), inset 0 -2px 3px rgba(0, 0, 0, .35); }
#rahmen::after { content: ''; position: absolute; inset: 5px; border-radius: 8px; pointer-events: none; box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .45), inset 0 6px 18px rgba(0, 0, 0, .35); }
#cv { display: block; border-radius: 8px; touch-action: none; cursor: crosshair; }

#logo, .titel { font-weight: 700; letter-spacing: .06em; line-height: 1; white-space: nowrap; font-style: italic; }
#logo { font-size: 24px; flex: none; display: flex; flex-direction: column; justify-content: center; }
#logo span, .titel span { color: var(--text); } #logo b, .titel b { color: var(--gold); }
#modus { font-size: 13px; font-weight: 400; font-style: normal; letter-spacing: 0; color: var(--leise); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 4px; max-width: 220px; }
.wert { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 0; padding: 2px 12px; background: var(--panel); border: 1px solid var(--rand); border-radius: 10px;
  box-shadow: 0 3px 10px var(--schatten), inset 0 1px 0 rgba(255, 255, 255, .12); height: 50px; min-width: 0; flex: 0 1 auto; }
.wert span { font-size: 13px; line-height: 1.2; color: var(--leise); white-space: nowrap; }
.wert b { font-size: 18px; line-height: 1.25; display: flex; align-items: center; gap: 6px; white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; min-width: 0; max-width: 100%; overflow: hidden; }
.wert b em { font-style: normal; font-size: 15px; color: var(--gold); }
.wert.gross { min-width: 150px; } .wert.gross b { font-size: 22px; color: var(--gold); }
.wert.gross span small { font-size: 12px; color: var(--leise); font-variant-numeric: tabular-nums; margin-left: 6px; }
.pavs { display: inline-flex; gap: 3px; }
.pavs i { width: 14px; height: 13px; border-radius: 7px 7px 2px 2px; background: linear-gradient(180deg, var(--chrom1), var(--gold)); box-shadow: 0 1px 2px var(--schatten); }
.pavs i.weg { background: none; border: 1.5px dashed var(--leise); opacity: .55; }
#tuerme { gap: 10px; }
.tm { display: inline-flex; align-items: baseline; gap: 3px; min-width: 38px; }
.tm em { font-style: normal; font-size: 12px; color: var(--leise); }
.tm.knapp { color: var(--gold); } .tm.leer, .tm.kaputt { color: var(--warn); }
.einst { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; margin-top: 10px; font-size: 15px; }
.einst label { position: relative; display: inline-flex; align-items: center; min-height: 48px; padding-left: 34px; cursor: pointer; }
.einst input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.einst label::before { content: ''; position: absolute; left: 0; top: 50%; width: 22px; height: 22px; transform: translateY(-50%); border: 2px solid var(--gold);
  border-radius: 6px; background: var(--bg2); box-sizing: border-box; }
.einst label:has(input:checked)::before { background: radial-gradient(circle, var(--gold) 45%, var(--bg2) 50%); }
.einst label:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }

#knoepfe { display: flex; gap: 6px; justify-content: flex-end; flex: none; margin-left: auto; }
#knoepfe button { width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--rand); background: var(--knopf); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px var(--schatten); padding: 0; }
#knoepfe button svg, .reihe button svg, .modus svg { width: 22px; height: 22px; }
#tasten { flex: none; font-size: 13px; line-height: 1.5; color: var(--leise); white-space: nowrap; }
#tasten p { margin: 0; } #tasten kbd { font-size: 12px; min-width: 18px; padding: 0 4px; margin-right: 1px; }
#buehne.schmal #tasten, #buehne.finger #tasten { display: none; }
.pause-weg h3 { font-size: 16px; color: var(--gold); }
kbd { display: inline-block; min-width: 22px; padding: 1px 5px; margin-right: 3px; border-radius: 5px; background: var(--bg2); border: 1px solid var(--rand); font: 14px/1.3 inherit; text-align: center; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
td { padding: 3px 0; } td:last-child { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tr.sum td { border-top: 1px solid var(--rand); font-weight: 700; color: var(--gold); padding-top: 5px; }
.klein { font-size: 14px; color: var(--leise); } .mitte { text-align: center; }
#tkbox { display: none; }
#buehne.finger { grid-template-columns: auto 1fr auto; grid-template-areas: "leiste leiste leiste" "l feld r"; }
#buehne.finger #tkbox { display: contents; }
#buehne.finger.ohne-tk { grid-template-columns: 1fr; grid-template-areas: "leiste" "feld"; }
#buehne.finger.ohne-tk #tkbox { display: none; }
#tk-l { grid-area: l; } #tk-r { grid-area: r; }
.tkreihe { display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; width: 112px; padding-bottom: 6px; touch-action: none; }
.tk { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: 96px; border-radius: 14px; border: 1px solid var(--rand);
  background: linear-gradient(180deg, var(--panel2), var(--knopf)); box-shadow: 0 3px 10px var(--schatten), inset 0 1px 0 rgba(255, 255, 255, .15); touch-action: none; padding: 4px; }
.tk:not(.tk-m) { min-height: 130px; }
.tk b { font-size: 18px; } .tk small { font-size: 13px; color: var(--leise); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tk.aus { opacity: .5; border-style: dashed; }
.tk > * { pointer-events: none; }
.tk.druck { animation: tkDruck .25s ease-out; }
@keyframes tkDruck { 0% { box-shadow: 0 0 0 3px var(--gold), 0 3px 10px var(--schatten); transform: scale(.96); } 100% { box-shadow: 0 3px 10px var(--schatten); transform: none; } }

#bann { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); width: min(560px, calc(100% - 24px)); padding: 10px 14px; text-align: center; border-radius: 12px; pointer-events: none; z-index: 3;
  background: var(--panel2); color: var(--text); font-size: 16px; line-height: 1.35; opacity: .96; transition: opacity .2s;
  box-shadow: 0 6px 18px var(--schatten); border: 2px solid var(--gold2); }
#bann.durch { opacity: .22; }
#bann b { display: block; font-size: 19px; color: var(--gold); margin-bottom: 3px; }
#bann.neu { animation: bannEin .45s ease-out; }
@keyframes bannEin { 0% { transform: translate(-50%, -6px); opacity: 0; } 60% { opacity: 1; } 100% { transform: translateX(-50%); } }
#buehne.hoch #bann { font-size: 17px; }
.wert.blink { animation: blinkRot .9s ease-out; }
@keyframes blinkRot { 0%, 40% { background: #8a2a1e; border-color: #e2603a; } 100% { } }
#hinweis { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); display: flex; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 12px;
  background: var(--panel2); color: var(--text); z-index: 4; white-space: nowrap; border: 1px solid var(--rand); }
#hinweis button { min-height: 44px; padding: 6px 12px; border-radius: 9px; border: 1px solid var(--rand); background: var(--knopf); }
#toast { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); padding: 10px 16px; border-radius: 10px; background: var(--panel2); border: 1px solid var(--rand); z-index: 9; }

#ov { position: absolute; inset: 0; z-index: 8; display: flex; align-items: center; justify-content: center; padding: 20px; background: var(--ov); }
.kasten { position: relative; width: min(660px, 100%); max-height: 100%; overflow: auto; padding: 22px 26px; border-radius: 18px; background: var(--panel2); border: 1px solid var(--rand);
  box-shadow: 0 16px 40px var(--schatten); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.kasten.mitte { width: min(520px, 100%); text-align: center; }
.kasten h2 { margin: 0 0 10px; font-size: 26px; color: var(--gold); } .kasten h3 { margin: 14px 0 6px; font-size: 18px; color: var(--gold); }
.kasten p { margin: 0 0 10px; }
.reihe { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 14px; }
.reihe button, #ov .ansichten button, .startwelle button { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px 16px; border-radius: 12px; border: 1px solid var(--rand);
  background: var(--knopf); box-shadow: 0 2px 6px var(--schatten); }
.reihe button.haupt { background: linear-gradient(180deg, var(--gold), var(--gold2)); color: var(--haupt-text); border-color: var(--gold2); font-weight: 700; }
.menue .titel { font-size: 54px; text-align: center; margin-bottom: 6px; }
.menue .unter { text-align: center; color: var(--leise); }
.modi { display: flex; flex-direction: column; gap: 10px; margin: 14px 0 10px; }
.modus { display: flex; align-items: center; gap: 14px; text-align: left; padding: 12px 16px; min-height: 64px; border-radius: 14px; border: 1px solid var(--rand);
  background: linear-gradient(180deg, var(--panel2), var(--knopf)); box-shadow: 0 3px 8px var(--schatten); }
.modus .mi { width: 42px; height: 42px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; background: var(--gold); color: var(--haupt-text); }
.modus b { display: block; font-size: 19px; } .modus small { display: block; font-size: 14px; color: var(--leise); }
.startwelle { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center; margin-bottom: 8px; }
.startwelle > span { font-size: 15px; color: var(--leise); margin-right: 4px; }
.startwelle button { min-width: 48px; justify-content: center; padding: 6px 10px; font-variant-numeric: tabular-nums; }
.startwelle button.an, #ov .ansichten button.an { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold); }
.ansichten { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; }
.ansichten > span { font-size: 15px; color: var(--leise); width: 100%; text-align: center; }
#ov .ansichten button { flex-direction: column; gap: 4px; padding: 6px 8px; font-size: 14px; min-width: 120px; }
#ov .ansichten button canvas { width: 96px; height: 48px; border-radius: 6px; display: block; }
.regeln p { font-size: 15px; }
.eintraege { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.eintrag { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; background: var(--panel); border-radius: 12px; border: 1px solid var(--rand); }
.eintrag canvas { flex: none; width: 64px; height: 64px; border-radius: 8px; background: #0b1430; }
.eintrag b { font-size: 16px; } .eintrag p { margin: 2px 0; font-size: 14px; } .eintrag small { font-size: 14px; color: var(--gold); }
.ende .grund { color: var(--leise); text-align: center; margin-bottom: 4px; }
.endzahl { text-align: center; margin: 4px 0 8px; } .endzahl b { display: block; font-size: 46px; color: var(--gold); line-height: 1.1; font-variant-numeric: tabular-nums; } .endzahl span { color: var(--leise); }
.ende .gut { color: var(--gut); text-align: center; } .warn { color: var(--warn); text-align: center; } .ende > .klein { text-align: center; }
.spalten { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.wellen td { font-size: 14px; }
.liste ol { margin: 0; padding-left: 26px; } .liste li { padding: 2px 0; } .liste li span { display: inline-block; max-width: 70%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.liste li b { float: right; font-variant-numeric: tabular-nums; }
.pause-weg { text-align: left; margin: 10px 0; padding: 8px 12px; background: var(--panel); border-radius: 10px; }
.pause-weg h3 { margin: 0 0 4px; }

.kasten.bericht { background: linear-gradient(180deg, #f6f0e0, #e8dcc2); color: #2a2620; border: 1px solid #a8987a; box-shadow: 0 16px 40px var(--schatten), inset 0 0 40px rgba(120, 100, 60, .15); }
.bericht h2, .bericht h3 { color: #1e4a6a; }
.bericht .grund, .bericht .endzahl span, .bericht .klein { color: #5c5444; }
.bericht .endzahl b { color: #1e4a6a; }
.bericht .gut { color: #2f6e2c; } .bericht .warn { color: #9a3a22; }
.bericht tr.sum td { color: #1e4a6a; border-top-color: #a8987a; }
.bericht .reihe button:not(.haupt) { background: #efe6d0; color: #2a2620; border-color: #a8987a; }
.bericht .reihe button.haupt { background: linear-gradient(180deg, #3a7aa8, #1e4a6a); color: #fff6e0; border-color: #1e4a6a; }
.bericht > .ov-zu { background: #efe6d0 !important; color: #2a2620 !important; border-color: #a8987a !important; }
.bericht-kopf { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: #6a5a40; border-bottom: 1px dashed #a8987a; padding-bottom: 6px; margin-bottom: 8px; }
.bericht-mitte { display: flex; align-items: center; justify-content: center; gap: 22px; flex-wrap: wrap; margin: 4px 0 8px; }
.ausweis { min-width: 190px; padding: 8px 14px; text-align: center; background: #fffaf0; border: 3px double #1e4a6a; border-radius: 8px; box-shadow: 0 2px 6px rgba(60, 50, 30, .25); }
.ausweis small { display: block; font-size: 12px; color: #6a5a40; letter-spacing: .08em; text-transform: uppercase; }
.ausweis b { display: block; font-size: 21px; color: #8a3a1e; margin: 2px 0; }
.ausweis span { display: block; font-size: 13px; color: #5a4a30; }
.stempel { position: absolute; right: 74px; top: 30px; max-width: 170px; padding: 4px 10px; border: 3px double #9a3a22; border-radius: 8px; color: #9a3a22; font-weight: 700; font-size: 14px;
  letter-spacing: .06em; text-transform: uppercase; text-align: center; transform: rotate(-10deg); opacity: .8; pointer-events: none; }

#buehne.schmal #leiste { gap: 8px; padding: 0 10px; }
#buehne.schmal #logo { font-size: 20px; } #buehne.schmal #modus { max-width: 150px; }
#buehne.schmal #werte { gap: 6px; }
#buehne.schmal .wert { padding: 2px 9px; } #buehne.schmal .wert.gross { min-width: 120px; }
#buehne.schmal #knoepfe { gap: 5px; } #buehne.schmal #knoepfe button { width: 42px; }
#buehne.schmal .wert.gross span small { display: none; }
#buehne.klein #bann { width: min(440px, calc(100% - 20px)); font-size: 14px; padding: 7px 12px; top: 8px; } #buehne.klein #bann b { font-size: 16px; }
#buehne.klein .tkreihe { width: 104px; gap: 8px; } #buehne.klein .tk { min-height: 84px; } #buehne.klein .tk:not(.tk-m) { min-height: 110px; }
#buehne.klein .pavs i { width: 11px; height: 11px; }

#buehne.hoch { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; grid-template-areas: "leiste" "feld" "tk"; padding: 0 8px 10px; }
#buehne.hoch #leiste { height: auto; flex-wrap: wrap; gap: 6px 8px; padding: 6px 10px 8px; }
#buehne.hoch #werte { order: 3; flex-basis: 100%; gap: 6px; }
#buehne.hoch .wert { flex: 1 1 0; padding: 2px 8px; height: 50px; } #buehne.hoch .wert.gross { flex: 1.6 1 0; min-width: 0; }
#buehne.hoch .wert span { font-size: 13px; } #buehne.hoch .wert.gross span small { display: none; }
#buehne.hoch .pavs i { width: 9px; height: 10px; } #buehne.hoch .pavs { gap: 2px; }
#buehne.hoch #tuerme { gap: 5px; } #buehne.hoch .tm { min-width: 0; } #buehne.hoch .tm em { display: none; }
#buehne.hoch #knoepfe button { width: 52px; height: 48px; }
#buehne.hoch #tkbox { display: flex; grid-area: tk; gap: 8px; position: relative; z-index: 1; }
#buehne.hoch.ohne-tk #tkbox { display: none; }
#buehne.hoch .tkreihe { flex-direction: row; width: auto; padding: 0; gap: 8px; }
#buehne.hoch #tk-l { flex: 2; } #buehne.hoch #tk-r { flex: 1; }
#buehne.hoch #tk-l .tk-m { order: 2; } #buehne.hoch #tk-r .tk-m { display: none; }
#buehne.hoch .tk, #buehne.hoch .tk:not(.tk-m) { flex: 1; min-height: 150px; } #buehne.hoch .tk b { font-size: 20px; } #buehne.hoch .tk small { font-size: 14px; }
#buehne.hoch .kasten { width: 100%; } #buehne.hoch .eintraege, #buehne.hoch .spalten { grid-template-columns: 1fr; }
#buehne.hoch .reihe button { min-height: 60px; font-size: 17px; }
#buehne.hoch .modus { min-height: 74px; }
#buehne.hoch .startwelle button { min-width: 62px; min-height: 62px; font-size: 18px; } #buehne.hoch .einst label { min-height: 62px; }
#buehne.hoch #ov .ansichten button { min-height: 62px; } #buehne.hoch .menue .titel { font-size: 46px; }
#buehne.hoch #hinweis button { min-height: 60px; }
#buehne.hoch .stempel { right: 84px; top: 30px; font-size: 12px; max-width: 130px; }

.kasten > .ov-zu { position: sticky; top: -10px; float: right; z-index: 3; width: 44px; height: 44px; margin: -10px -14px 0 10px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 1px solid var(--rand); background: linear-gradient(180deg, var(--panel2), var(--knopf)); color: var(--text); box-shadow: 0 2px 8px var(--schatten); cursor: pointer; padding: 0; }
.kasten > .ov-zu svg { width: 20px; height: 20px; }
#buehne.hoch .kasten > .ov-zu { width: 62px; height: 62px; } #buehne.hoch .kasten > .ov-zu svg { width: 26px; height: 26px; }
@media (hover: hover) { .reihe button:hover, .modus:hover, #knoepfe button:hover, .tk:hover { filter: brightness(1.1); } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

#werkstatt { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(760px, calc(100% - 24px)); z-index: 5; padding: 14px 16px 12px; text-align: center;
  border-radius: 16px; background: var(--panel2); border: 2px solid var(--gold2); box-shadow: 0 14px 34px var(--schatten); }
#werkstatt.neu { animation: wkEin .35s ease-out; }
@keyframes wkEin { 0% { transform: translate(-50%, -46%) scale(.96); opacity: 0; } 100% { transform: translate(-50%, -50%); opacity: 1; } }
#werkstatt h3 { margin: 0 0 4px; font-size: 20px; color: var(--gold); } #werkstatt > p { margin: 0 0 10px; font-size: 15px; color: var(--leise); }
.wk-karten { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.wk-karte { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 140px; padding: 12px 10px 10px; border-radius: 14px;
  border: 1px solid var(--rand); background: linear-gradient(180deg, var(--panel), var(--knopf)); box-shadow: 0 4px 12px var(--schatten), inset 0 1px 0 rgba(255, 255, 255, .15); }
.wk-karte > * { pointer-events: none; }
.wk-ic { width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--gold); color: var(--haupt-text); }
.wk-ic svg { width: 24px; height: 24px; }
.wk-karte b { font-size: 17px; } .wk-karte small { font-size: 14px; line-height: 1.3; color: var(--leise); }
.wk-karte kbd { position: absolute; top: 8px; right: 8px; }
.wk-karte.gewaehlt { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold), 0 4px 12px var(--schatten); }
.wk-zeit { margin-top: 8px; font-size: 13px; color: var(--leise); font-variant-numeric: tabular-nums; }
@media (hover: hover) { .wk-karte:hover { filter: brightness(1.12); } }
#buehne.klein #werkstatt { padding: 8px 10px; } #buehne.klein #werkstatt > p { display: none; } #buehne.klein .wk-karte { min-height: 110px; padding: 8px 6px; }
#buehne.klein .wk-karte small { font-size: 13px; }
#buehne.hoch #werkstatt { width: calc(100% - 12px); }
#buehne.hoch .wk-karten { grid-template-columns: 1fr; } #buehne.hoch .wk-karte { min-height: 76px; flex-direction: row; text-align: left; padding: 10px 44px 10px 12px; }
#buehne.hoch .wk-karte b { flex: none; width: 120px; }

.medaillen { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px; margin: 6px 0 2px; }
.medaillen i { width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff6c8, #d89a2a 60%, #8a5a12); box-shadow: 0 1px 3px rgba(60, 40, 10, .4); }
.medaillen span { margin-left: 6px; font-size: 14px; color: #5c5444; }

#hochtafel { display: none; }
#buehne.hoch #hochtafel.platz { display: flex; flex-direction: column; gap: 6px; position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 2; padding: 10px 14px;
  border-radius: 12px; background: var(--panel); border: 1px solid var(--rand); box-shadow: 0 4px 12px var(--schatten); font-size: 15px; line-height: 1.35; }
#hochtafel b { display: block; font-size: 13px; color: var(--gold); letter-spacing: .03em; }
#hochtafel span { color: var(--text); }
.tk.wahl { border-color: var(--gold); border-style: solid; box-shadow: 0 0 0 2px var(--gold), 0 3px 10px var(--schatten); }
.tk.wahl small { white-space: normal; text-align: center; line-height: 1.2; }
.medaillen.riesen i { border-radius: 40% 55% 45% 60%; background: radial-gradient(circle at 35% 30%, #f2e2c8, #8a7660 60%, #3a2e24); }

#ausbau { position: absolute; left: 18px; top: 14px; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; max-width: 46%; padding: 5px 10px;
  border-radius: 10px; background: var(--panel); border: 1px solid var(--rand); font-size: 13px; pointer-events: none; opacity: .92; }
#ausbau b { font-size: 12px; color: var(--gold); margin-right: 2px; }
#ausbau span { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; font-variant-numeric: tabular-nums; }
#ausbau svg { width: 14px; height: 14px; color: var(--gold); }
#buehne.klein #ausbau { font-size: 12px; top: 8px; left: 12px; }
.wert.gross { position: relative; }
.bestlinie { position: absolute; left: 10px; right: 10px; bottom: 4px; height: 3px; border-radius: 2px; background: var(--kugel-leer); overflow: hidden; }
.bestlinie > i { display: block; height: 100%; width: 0; background: var(--leise); transition: width .4s; }
.bestlinie.drueber > i { background: var(--gold); box-shadow: 0 0 6px var(--gold); }
.startwelle-hinweis { margin: -2px 0 8px; }
.erfolge-neu { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 10px; margin: 8px 0; padding: 8px 10px; border: 2px dashed #1e4a6a; border-radius: 10px; background: #fffaf0; }
.erfolge-neu > b { width: 100%; text-align: center; color: #8a3a1e; font-size: 15px; }
.erfolge-neu span { display: inline-flex; flex-direction: column; align-items: center; font-weight: 700; color: #1e4a6a; font-size: 14px; }
.erfolge-neu span svg { width: 22px; height: 22px; color: #c8902a; }
.erfolge-neu small { font-weight: 400; font-size: 12px; color: #5c5444; }
.erf-wand { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0; }
.erf { display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; padding: 10px 8px; border-radius: 12px; border: 1px dashed var(--rand); background: var(--panel); opacity: .6; }
.erf.an { opacity: 1; border-style: solid; border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
.erf-ic { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--kugel-leer); color: var(--leise); }
.erf.an .erf-ic { background: var(--gold); color: var(--haupt-text); }
.erf-ic svg { width: 22px; height: 22px; }
.erf b { font-size: 15px; } .erf small { font-size: 13px; color: var(--leise); line-height: 1.3; }
#buehne.hoch .erf-wand { grid-template-columns: 1fr 1fr; }

#hinweis.oben { top: 12px; bottom: auto; left: auto; right: 14px; transform: none; }
#hinweis.oben span { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
#hinweis.oben svg { width: 18px; height: 18px; color: var(--gold); }
#hinweis button.an { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold); }
#buehne.wdh #cv { cursor: default; }
.wdh-liste h3 { text-align: left; }
.wdh-zeile { display: flex; align-items: center; gap: 8px; padding: 6px 10px; margin: 6px 0; border-radius: 10px; background: var(--panel); border: 1px solid var(--rand); text-align: left; }
.wdh-zeile > span:first-child { flex: 1; display: flex; flex-direction: column; } .wdh-zeile small { color: var(--leise); font-variant-numeric: tabular-nums; }
.wdh-zeile button { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 6px 12px; border-radius: 10px; border: 1px solid var(--rand); background: var(--knopf); }
.wdh-zeile button svg { width: 18px; height: 18px; }
button.link { border: 0; background: none; padding: 0 2px; color: #1e4a6a; font-weight: 700; text-decoration: underline; cursor: pointer; min-height: 0; }
#buehne.hoch #hinweis.oben { right: 8px; top: 8px; flex-wrap: wrap; white-space: normal; max-width: calc(100% - 16px); }
#buehne.wdh #bann { top: 70px; }
