:root { --bg: #0a0c1c; --platte1: rgba(52, 58, 78, .88); --platte2: rgba(30, 34, 50, .92); --feld: rgba(10, 12, 24, .5); --rand: rgba(226, 186, 110, .38);
  --text: #f3ead8; --leise: #c3b9a4; --gold: #f0b85a; --gold2: #b07a2a; --gut: #9ed79a; --warn: #f3a080; --knopf: #4a4e62; --knopf2: #2a2c3c;
  --schatten: rgba(0, 0, 0, .55); --ov: rgba(4, 6, 16, .55); --niete: #d8b46a; --hauptschrift: #2a1a04;
  --messing1: #f2d08a; --messing2: #b8863a; --messing3: #6a4a1c; --glas: rgba(0, 0, 0, .55); --bann: rgba(14, 12, 28, .84); --bannschrift: #fbf1da; --akzent: #f6cf6a;
  --pk1: rgba(70, 74, 96, .9); --pk2: rgba(36, 38, 54, .94); --pkan1: #f0b85a; --pkan2: #b07a2a; }
:root[data-ansicht="sonne"] { --bg: #ecd8bc; --platte1: rgba(246, 234, 214, .93); --platte2: rgba(232, 214, 186, .95); --feld: rgba(255, 248, 234, .7); --rand: rgba(120, 80, 30, .38);
  --text: #2e2214; --leise: #6a5638; --gold: #9a5a10; --gold2: #7a4a10; --gut: #2f6e2c; --warn: #a2401e; --knopf: #ecd8b6; --knopf2: #d8bc8e;
  --schatten: rgba(90, 60, 25, .28); --ov: rgba(90, 60, 30, .3); --niete: #9a7440; --messing1: #f6dc9a; --messing2: #c4924a; --messing3: #7a5420;
  --bann: rgba(252, 244, 228, .96); --bannschrift: #2e2214; --akzent: #8a4a0c; --pk1: rgba(246, 232, 206, .92); --pk2: rgba(222, 200, 166, .95); --pkan1: #e8b060; --pkan2: #b07a2a; }
:root[data-ansicht="halle"] { --bg: #07050e; --platte1: rgba(30, 20, 44, .9); --platte2: rgba(14, 10, 24, .94); --feld: rgba(0, 0, 0, .5); --rand: rgba(125, 255, 200, .35);
  --text: #e6fff4; --leise: #a8c8bc; --gold: #7dffc8; --gold2: #2aa880; --knopf: #2a2040; --knopf2: #140e24; --niete: #ff5ad2; --hauptschrift: #04140e;
  --messing1: #3a3048; --messing2: #1e1828; --messing3: #0a0810; --bann: rgba(6, 4, 14, .88); --bannschrift: #e6fff4; --akzent: #7dffc8; --pk1: rgba(36, 26, 56, .9); --pk2: rgba(16, 10, 28, .94); --pkan1: #7dffc8; --pkan2: #2aa880; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg); color: var(--text); font: 16px/1.4 Georgia, 'Times New Roman', 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; }

#stage { position: fixed; left: 0; top: 0; transform-origin: 0 0; display: grid; grid-template-columns: 210px minmax(0, 1fr) 210px; grid-template-rows: minmax(0, 1fr) auto;
  grid-template-areas: "links feld rechts" "padl feld padr"; gap: 0 14px; padding: 0 14px; overflow: hidden; background: var(--bg); }
#kulisse { position: absolute; inset: 0; z-index: 0; background: var(--bg) url(img/tiefraum.webp?v=1) center / cover no-repeat; }
#kulisse::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 50%, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, .3) 100%); }
:root[data-ansicht="sonne"] #kulisse::after { background: radial-gradient(ellipse at 50% 50%, rgba(0, 0, 0, 0) 55%, rgba(110, 70, 30, .14) 100%); }
#links { grid-area: links; } #rechts { grid-area: rechts; } #feldbox { grid-area: feld; } #pad-l { grid-area: padl; } #pad-r { grid-area: padr; }
#feldbox { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 0; }
#fenster { position: relative; padding: 12px; border-radius: 18px; line-height: 0;
  background: linear-gradient(145deg, var(--messing1), var(--messing2) 45%, var(--messing3));
  box-shadow: 0 22px 46px rgba(0, 0, 0, .6), 0 4px 10px rgba(0, 0, 0, .4), inset 0 2px 1px rgba(255, 245, 210, .55), inset 0 -3px 3px rgba(0, 0, 0, .35); }
#fenster::before { content: ''; position: absolute; inset: 9px; border-radius: 10px; pointer-events: none; box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .35), 0 1px 0 rgba(255, 240, 200, .35); }
#cv { display: block; border-radius: 8px; box-shadow: inset 0 0 30px var(--glas); touch-action: none; }
.niete { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff2c8, var(--niete) 55%, rgba(0, 0, 0, .5)); box-shadow: 0 1px 1px rgba(0, 0, 0, .5); }
.niete.n1 { left: 2px; top: 2px; } .niete.n2 { right: 2px; top: 2px; } .niete.n3 { left: 2px; bottom: 2px; } .niete.n4 { right: 2px; bottom: 2px; }
:root[data-ansicht="halle"] #fenster { border-radius: 26px; box-shadow: 0 22px 46px rgba(0, 0, 0, .7), 0 0 0 2px rgba(125, 255, 200, .25), 0 0 28px rgba(255, 90, 210, .25), inset 0 2px 1px rgba(255, 255, 255, .12); }
:root[data-ansicht="halle"] #cv { border-radius: 18px; }

aside { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 10px; padding: 16px 0; min-width: 0; min-height: 0; overflow: hidden; }
.wert, #feldinfo, #steuer, #knoepfe button, #logoschild { position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(0, 0, 0, .06)), linear-gradient(180deg, var(--platte1), var(--platte2)) !important;
  box-shadow: 0 8px 18px var(--schatten), inset 0 1px 0 rgba(255, 240, 200, .18); }
.wert::after, #feldinfo::after, #steuer::after, #logoschild::after { content: ''; position: absolute; left: 6px; right: 6px; top: 5px; height: 5px; pointer-events: none;
  background: radial-gradient(circle, var(--niete) 2px, transparent 2.6px) left center / 5px 5px no-repeat, radial-gradient(circle, var(--niete) 2px, transparent 2.6px) right center / 5px 5px no-repeat; }
#logoschild { margin-top: 12px; padding: 12px 12px 8px; border-radius: 10px; border: 1px solid var(--rand); }
#logo, .titel { font-weight: 700; letter-spacing: .04em; line-height: 1; white-space: nowrap; }
#logo { font-size: 20px; } #logo span, .titel span { color: var(--text); } #logo b, .titel b { color: var(--gold); }
#modus { font-size: 15px; color: var(--leise); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 4px; }
.wert { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; border: 1px solid var(--rand); border-radius: 10px; min-height: 46px; }
.wert span { font-size: 15px; color: var(--leise); white-space: nowrap; }
.wert b { font-size: 19px; display: flex; align-items: center; gap: 6px; white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; min-width: 0; }
.wert.gross { flex-direction: column; align-items: flex-start; gap: 0; }
.wert.gross b { font-size: 30px; color: var(--gold); align-self: flex-end; }
.wert.gross span small { display: block; font-size: 13px; color: var(--leise); min-height: 18px; }
.wert em { font-style: normal; font-size: 17px; }
.zf { display: inline-block; width: .62em; text-align: center; font-style: normal; }
.kaps { display: inline-flex; gap: 2px; } .kap { width: 22px; height: 16px; display: block; }
.wert.blink { animation: blinkRot .9s ease-out; } .wert.blink.gut { animation: blinkGut .9s ease-out; }
@keyframes blinkRot { 0%, 40% { box-shadow: 0 0 0 2px #e2603a, 0 0 14px #e2603a; } 100% { box-shadow: 0 8px 18px var(--schatten); } }
@keyframes blinkGut { 0%, 40% { box-shadow: 0 0 0 2px var(--gold), 0 0 14px var(--gold); } 100% { box-shadow: 0 8px 18px var(--schatten); } }

#knoepfe { display: flex; gap: 6px; justify-content: flex-end; margin-top: 12px; }
#knoepfe button { width: 46px; height: 48px; border-radius: 10px; border: 1px solid var(--rand); display: flex; align-items: center; justify-content: center; padding: 0; color: var(--text); }
#knoepfe button svg, .reihe button svg, .modus svg { width: 22px; height: 22px; }
#feldinfo, #steuer { border: 1px solid var(--rand); border-radius: 10px; padding: 10px 12px; font-size: 15px; }
#feldinfo h3, #steuer h3 { margin: 0 0 6px; font-size: 16px; color: var(--gold); }
#steuer p { margin: 4px 0; }
#tafel td { padding: 1px 0; vertical-align: middle; } #tafel td:first-child { display: flex; align-items: center; gap: 6px; }
#tafel canvas { width: 30px; height: 30px; flex: none; }
kbd { display: inline-block; min-width: 22px; padding: 1px 5px; margin-right: 3px; border-radius: 5px; background: var(--knopf2); border: 1px solid var(--rand); font: 14px/1.3 Georgia, serif; text-align: center; color: var(--text); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
td, th { padding: 3px 0; text-align: left; } td:last-child { text-align: right; white-space: nowrap; } td:last-child, .wert b { font-variant-numeric: lining-nums tabular-nums; }
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; }

.pad { position: relative; z-index: 2; display: none; gap: 10px; padding: 0 0 14px; align-items: flex-end; }
#stage.touch .pad { display: flex; }
.pk { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 64px; min-height: 64px; padding: 6px; border-radius: 16px;
  border: 1px solid var(--rand); background: linear-gradient(180deg, var(--pk1), var(--pk2)); color: var(--text); touch-action: none;
  box-shadow: 0 6px 14px var(--schatten), inset 0 1px 0 rgba(255, 240, 200, .2); }
.pk > * { pointer-events: none; } .pk svg { width: 30px; height: 30px; } .pk small { font-size: 14px; color: var(--text); }
.pk.an { background: linear-gradient(180deg, var(--pkan1), var(--pkan2)); color: var(--hauptschrift); } .pk.an small { color: var(--hauptschrift); }
#dreh { display: flex; gap: 10px; width: 100%; } #dreh .pk { flex: 1; min-height: 96px; }
#pad-r { flex-wrap: wrap; } #pad-r .pk { flex: 1 1 40%; min-height: 80px; } #pad-r .pk.gross { flex-basis: 100%; min-height: 96px; }
#lenk { display: none; position: relative; width: 180px; height: 180px; border-radius: 50%; margin: 0 auto; touch-action: none; border: 2px solid var(--rand);
  background: radial-gradient(circle, rgba(255, 255, 255, .06) 0 30%, transparent 31%), linear-gradient(180deg, var(--pk1), var(--pk2)); box-shadow: 0 6px 14px var(--schatten), inset 0 2px 6px rgba(0, 0, 0, .4); }
#lenk i { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 35% 35%, var(--messing1), var(--messing2) 60%, var(--messing3)); box-shadow: 0 4px 8px rgba(0, 0, 0, .5); }
#lenk span { position: absolute; left: 0; right: 0; bottom: -2px; text-align: center; font-size: 13px; color: var(--leise); pointer-events: none; transform: translateY(100%); white-space: nowrap; }
#lenk.an { border-color: var(--gold); }
#stage.lenkrad #dreh { display: none; } #stage.lenkrad #lenk { display: block; margin-bottom: 18px; }

#bann { position: absolute; left: 50%; top: 22px; transform: translateX(-50%); width: min(82%, 520px); padding: 7px 14px; border-radius: 10px; text-align: center; pointer-events: none;
  background: var(--bann); color: var(--bannschrift); font-size: 15px; box-shadow: 0 4px 14px rgba(0, 0, 0, .35); border: 1px solid var(--rand); z-index: 3; }
#bann b { font-size: 16px; color: var(--akzent); margin-right: 6px; }
#hinweis { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 12px;
  background: var(--bann); color: var(--bannschrift); z-index: 4; white-space: nowrap; border: 1px solid var(--rand); }
#hinweis button { min-height: 48px; padding: 6px 12px; border-radius: 9px; border: 1px solid var(--rand); background: var(--knopf); color: var(--text); }
#toast { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); padding: 10px 16px; border-radius: 10px; background: var(--platte2); 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(680px, 100%); max-height: 100%; overflow: auto; padding: 22px 26px; border-radius: 16px; border: 1px solid var(--rand);
  background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(0, 0, 0, .05)), linear-gradient(180deg, var(--platte1), var(--platte2));
  box-shadow: 0 16px 40px var(--schatten), inset 0 1px 0 rgba(255, 240, 200, .16); }
.kasten.mitte { width: min(540px, 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 { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px 16px; border-radius: 10px; border: 1px solid var(--rand);
  background: linear-gradient(180deg, var(--knopf), var(--knopf2)); box-shadow: 0 2px 6px var(--schatten); color: var(--text); }
.reihe button.haupt { background: linear-gradient(180deg, var(--gold), var(--gold2)); color: var(--hauptschrift); border-color: var(--gold2); font-weight: 700; }
.menue .titel { font-size: 46px; text-align: center; margin-bottom: 4px; }
.menue .unter { text-align: center; color: var(--leise); }
.modi { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
.modus { display: flex; align-items: center; gap: 12px; text-align: left; padding: 10px 14px; min-height: 64px; border-radius: 12px; border: 1px solid var(--rand);
  background: linear-gradient(180deg, var(--knopf), var(--knopf2)); box-shadow: 0 3px 8px var(--schatten); color: var(--text); }
.modus .mi { width: 40px; height: 40px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 35% 35%, #ffe7a8, var(--gold) 60%, var(--gold2)); color: var(--hauptschrift); }
.modus b { display: block; font-size: 18px; } .modus small { display: block; font-size: 14px; color: var(--text); line-height: 1.25; }
.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 img { width: 104px; height: 58px; object-fit: cover; border-radius: 6px; display: block; }
#ov .ansichten button.an { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold); }
.einst { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; margin-top: 10px; font-size: 15px; }
.einst.spalte { flex-direction: column; align-items: flex-start; text-align: left; max-width: 470px; margin: 10px auto; }
.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(--knopf2); }
.einst label:has(input:checked)::before { background: radial-gradient(circle, var(--gold) 45%, var(--knopf2) 50%); }
.einst label:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
.regeln p { font-size: 15px; }
.eintraege { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0 12px; }
.eintrag { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; background: var(--feld); border-radius: 10px; border: 1px solid var(--rand); }
.eintrag canvas { flex: none; width: 64px; height: 64px; border-radius: 8px; background: radial-gradient(circle, #1c2440, #080c1c); }
.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: lining-nums 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: 1.2fr 1fr; gap: 18px; }
.wellen td { font-size: 14px; }
table.zwei th { font-size: 14px; color: var(--leise); } table.zwei td, table.zwei th { text-align: right; } table.zwei td:first-child { text-align: left; }
.liste ol { margin: 0; padding-left: 26px; text-align: left; } .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; }
.schein-kopf { text-align: center; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--leise); border-bottom: 1px dashed var(--rand); padding-bottom: 6px; margin: 0 30px 10px; }
.stempel { position: absolute; right: 64px; top: 46px; transform: rotate(-9deg); padding: 4px 10px; border: 3px double var(--warn); color: var(--warn); border-radius: 8px; font-weight: 700; font-size: 15px; opacity: .85; }
.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(--knopf), var(--knopf2)); color: var(--text); box-shadow: 0 2px 8px var(--schatten); cursor: pointer; }
.kasten > .ov-zu svg { width: 20px; height: 20px; }

#stage.klein { grid-template-columns: 236px minmax(0, 1fr) 236px; gap: 0 10px; padding: 0 10px; }
#stage.klein aside { padding: 8px 0; gap: 6px; }
#stage.klein #logoschild { margin-top: 4px; padding: 6px 10px; } #stage.klein #logo { font-size: 18px; }
#stage.klein .wert { min-height: 40px; padding: 4px 9px; } #stage.klein .wert.gross b { font-size: 24px; }
#stage.klein #feldinfo, #stage.klein #steuer { display: none; }
#stage.klein #knoepfe { margin-top: 4px; flex-wrap: wrap; justify-content: center; } #stage.klein #knoepfe button { width: 72px; height: 76px; } #stage.klein #knoepfe button svg { width: 30px; height: 30px; }
#stage.klein .wert span, #stage.klein #modus { font-size: 17px; } #stage.klein .wert.gross span small { font-size: 16px; } #stage.klein .wert b { font-size: 21px; }
#stage.touch #steuer { display: none; }
#stage.klein.touch #links .wert[data-ki="rest"] { display: none; }
#stage.klein #pad-r .pk { min-height: 72px; } #stage.klein #pad-r .pk.gross { min-height: 84px; } #stage.klein #dreh .pk { min-height: 110px; }
#stage.klein #lenk { width: 168px; height: 168px; }
#stage.klein .pk small, #stage.klein #lenk span { font-size: 17px; } #stage.klein #bann { font-size: 17px; } #stage.klein #bann b { font-size: 18px; }

#stage.hoch { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto minmax(0, 1fr) auto; grid-template-areas: "rechts rechts" "links links" "feld feld" "padl padr"; gap: 6px 12px; padding: 8px 12px 10px; }
#stage.hoch #rechts { flex-direction: row; padding: 4px 0 0; align-items: center; }
#stage.hoch #rechts #knoepfe { margin: 0 0 0 auto; } #stage.hoch #knoepfe button { width: 68px; height: 66px; } #stage.hoch #knoepfe button svg { width: 28px; height: 28px; }
#stage.hoch #feldinfo, #stage.hoch #steuer { display: none; }
#stage.hoch #links { flex-direction: row; flex-wrap: nowrap; padding: 0; gap: 6px; align-items: stretch; }
#stage.hoch #logoschild { display: none; }
#stage.hoch .wert { flex: 1 1 0; min-height: 58px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 0; padding: 4px 8px; }
#stage.hoch .wert span { font-size: 16px; } #stage.hoch .wert b { font-size: 19px; } #stage.hoch .wert.gross { flex: 1.5 1 0; } #stage.hoch .wert.gross b { font-size: 22px; align-self: flex-start; }
#stage.hoch .wert.gross span small { display: none; } #stage.hoch .kap { width: 16px; height: 12px; }
#stage.hoch .pad { display: flex; padding: 0; } #stage.hoch #dreh .pk { min-height: 170px; } #stage.hoch #pad-r .pk { min-height: 90px; } #stage.hoch #pad-r .pk.gross { min-height: 128px; }
#stage.hoch #feldbox { align-items: flex-start; padding-top: 58px; }
#stage.hoch #lenk { width: 200px; height: 200px; margin-bottom: 20px; }
#stage.hoch #fenster { padding: 9px; border-radius: 14px; }
#stage.hoch .kasten { width: 100%; } #stage.hoch .eintraege, #stage.hoch .spalten, #stage.hoch .modi { grid-template-columns: 1fr; }
#stage.hoch .einst label { min-height: 68px; } #stage.hoch .reihe button { min-height: 64px; font-size: 17px; }
#stage.hoch .modus { min-height: 72px; } #stage.hoch .modus small, #stage.hoch .klein, #stage.hoch #ov .ansichten button, #stage.hoch .pk small, #stage.hoch .eintrag p, #stage.hoch .eintrag small, #stage.hoch td, #stage.hoch .kasten p, #stage.hoch .regeln p { font-size: 16px; }
#stage.hoch .kasten h3 { font-size: 19px; } #stage.hoch #lenk span { font-size: 16px; } #stage.hoch .menue .titel { font-size: 40px; }
#stage.hoch #hinweis button { min-height: 68px; } #stage.hoch .schein-kopf, #stage.klein .schein-kopf { font-size: 16px; }
#stage.hoch .kasten > .ov-zu { width: 66px; height: 66px; } #stage.hoch .kasten > .ov-zu svg { width: 26px; height: 26px; }
#stage.hoch #bann { top: 2px; width: 96%; font-size: 16px; min-height: 50px; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; }
#stage.hoch .stempel { right: 72px; top: 54px; font-size: 14px; }
@media (hover: hover) { .reihe button:hover, .modus:hover, #knoepfe button:hover { filter: brightness(1.12); } .kasten > .ov-zu:hover { filter: brightness(1.15); } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
#stage.klein .kasten { width: min(820px, 100%); font-size: 17px; } #stage.klein .kasten p, #stage.klein .regeln p, #stage.klein .klein, #stage.klein td, #stage.klein .modus small,
#stage.klein .eintrag p, #stage.klein .eintrag small, #stage.klein #ov .ansichten button, #stage.klein .ansichten > span, #stage.klein .menue .unter { font-size: 17px; }
#stage.klein .reihe button { min-height: 72px; font-size: 18px; padding: 8px 18px; } #stage.klein .modus { min-height: 76px; } #stage.klein .modus b { font-size: 20px; }
#stage.klein .einst label { min-height: 72px; font-size: 17px; } #stage.klein .kasten > .ov-zu { width: 72px; height: 72px; } #stage.klein .kasten > .ov-zu svg { width: 28px; height: 28px; }
#stage.klein #hinweis button { min-height: 72px; font-size: 17px; } #stage.klein #hinweis { font-size: 17px; }
#stage.klein .kasten h2 { font-size: 28px; } #stage.klein .kasten h3 { font-size: 20px; } #stage.klein .eintrag b { font-size: 18px; }

#herz { display: inline-block; width: 9px; height: 9px; margin-right: 6px; border-radius: 50%; vertical-align: middle; background: var(--knopf2); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .5); }
#herz.schlag { animation: herzA .35s ease-out; } #herz.schlag.b { animation-name: herzB; }
@keyframes herzA { 0% { background: var(--gold); box-shadow: 0 0 10px var(--gold); } 100% { background: var(--knopf2); } }
@keyframes herzB { 0% { background: var(--gold2); box-shadow: 0 0 8px var(--gold2); } 100% { background: var(--knopf2); } }
#w-spieler { flex-direction: column; align-items: flex-end; gap: 0; line-height: 1.1; } #w-spieler small { font-size: 14px; font-weight: 400; color: var(--leise); }
:root[data-ansicht="halle"] #fenster::after { content: ''; position: absolute; inset: 12px; border-radius: 18px; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .18) 0 1px, transparent 1px 3px), radial-gradient(ellipse at 50% 50%, transparent 60%, rgba(0, 0, 0, .45) 100%); }
#stage.hoch #w-spieler small { font-size: 15px; }
#pad-r { touch-action: none; } #pad-r .pk.gross { flex-basis: 40%; }
.pk .dop { display: flex; gap: 2px; } .pk .dop svg { width: 24px; height: 24px; }
#t-kombi small { white-space: nowrap; }
#lenk #lenk-ring { width: 78%; height: 78%; margin: 0; left: 11%; top: 11%; background: none; box-shadow: none; border: 2px dashed var(--rand); }
#lenk.schub { border-color: var(--warn); box-shadow: 0 6px 14px var(--schatten), 0 0 0 3px var(--warn), inset 0 2px 6px rgba(0, 0, 0, .4); }
#lenk.schub #lenk-ring { border-color: var(--warn); }
.auftr { margin: 10px auto 4px; max-width: 560px; text-align: left; border: 1px solid var(--rand); border-radius: 12px; padding: 8px 14px; background: var(--feld); }
.auftr h3 { margin: 0 0 4px; font-size: 16px; }
.auftr ul { list-style: none; margin: 0; padding: 0; }
.auftr li { display: flex; gap: 10px; align-items: flex-start; padding: 5px 0; border-top: 1px dashed var(--rand); }
.auftr li:first-child { border-top: 0; }
.auftr li i { flex: none; width: 24px; height: 24px; color: var(--leise); } .auftr li i svg { width: 24px; height: 24px; }
.auftr li.ok i { color: var(--gut); } .auftr li.ok span { color: var(--leise); }
.auftr li span { font-size: 15px; } .auftr li small { display: block; font-size: 13px; color: var(--leise); }
.auftr-neu { margin: 10px 0; padding: 8px 14px; border-radius: 12px; border: 2px solid var(--gut); text-align: center; }
.auftr-neu h3 { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0 0 4px; color: var(--gut); } .auftr-neu h3 svg { width: 22px; height: 22px; }
.auftr-neu p { margin: 2px 0; } .auftr-neu b { color: var(--gold); }
.liste.wdh { margin: 8px 0; } .liste.wdh h3 { margin: 10px 0 4px; }
.liste.wdh li { display: flex; align-items: center; gap: 10px; padding: 4px 0; }
.liste.wdh li span { flex: 1; max-width: none; } .liste.wdh li small { display: block; font-size: 13px; color: var(--leise); }
.liste.wdh li button { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 6px 14px; border-radius: 10px; border: 1px solid var(--rand); background: var(--knopf); color: var(--text); }
.liste.wdh li button svg, #hinweis button svg { width: 20px; height: 20px; }
#hinweis button { display: inline-flex; align-items: center; gap: 6px; } #hinweis button.haupt { background: linear-gradient(180deg, var(--gold), var(--gold2)); color: var(--hauptschrift); border-color: var(--gold2); }
#wdh-uhr { min-width: 230px; font-variant-numeric: tabular-nums; }
#stage.hoch #hinweis { flex-wrap: wrap; justify-content: center; white-space: normal; width: 96%; bottom: 8px; } #stage.hoch #wdh-uhr { width: 100%; text-align: center; min-width: 0; }
#stage.hoch .auftr li span, #stage.klein .auftr li span { font-size: 16px; } #stage.hoch .auftr li small, #stage.klein .auftr li small { font-size: 15px; }
#stage.hoch .liste.wdh li small, #stage.klein .liste.wdh li small { font-size: 15px; }
#stage.hoch .liste.wdh li button, #stage.klein .liste.wdh li button { min-height: 64px; font-size: 17px; }
#lenk span { white-space: normal; line-height: 1.2; }
#stage.lenkrad #lenk { margin-bottom: 40px; } #stage.klein.lenkrad #lenk { width: 140px; height: 140px; margin-bottom: 44px; } #stage.hoch.lenkrad #lenk { margin-bottom: 44px; }
#stage.klein #lenk span { left: -48px; right: -48px; } #stage.hoch #lenk span { left: -40px; right: -40px; }
#lenk span { background: var(--bann); color: var(--bannschrift); border-radius: 8px; padding: 2px 6px; border: 1px solid var(--rand); }
#wbil { position: absolute; left: 50%; top: 38%; transform: translate(-50%, -50%); z-index: 5; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 22px; border-radius: 12px;
  background: linear-gradient(180deg, var(--messing1), var(--messing2)); color: #2a1a04; border: 2px solid var(--messing3); box-shadow: 0 8px 22px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .5);
  pointer-events: none; text-align: center; animation: wbilEin .35s ease-out; }
#wbil b { font-size: 20px; } #wbil span { font-size: 15px; } #wbil.neu { box-shadow: 0 0 0 3px var(--gut), 0 8px 22px rgba(0, 0, 0, .5); }
:root[data-ansicht="halle"] #wbil { background: rgba(6, 4, 14, .9); color: var(--text); border-color: var(--gold); }
@keyframes wbilEin { from { opacity: 0; transform: translate(-50%, -40%) scale(.9); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
@media (prefers-reduced-motion: reduce) { #wbil { animation: none; } }
#stage.hoch #wbil b, #stage.klein #wbil b { font-size: 22px; } #stage.hoch #wbil span, #stage.klein #wbil span { font-size: 17px; }
#bann b svg { width: 18px; height: 18px; vertical-align: -3px; margin-right: 4px; }
.auftr li.erreicht i { color: var(--gold); } .auftr li.erreicht small { color: var(--gold); }
#wdh-zeit { position: relative; width: 260px; height: 44px; flex: none; cursor: pointer; touch-action: manipulation; }
#wdh-zeit .spur { position: absolute; left: 0; right: 0; top: 50%; height: 6px; margin-top: -3px; border-radius: 3px; background: var(--knopf2); border: 1px solid var(--rand); }
#wdh-zeit b { position: absolute; top: 50%; pointer-events: none; }
#wdh-zeit .m-w { width: 2px; height: 20px; margin: -10px 0 0 -1px; background: var(--gold); }
#wdh-zeit .m-w em { position: absolute; top: -14px; left: -6px; width: 14px; text-align: center; font: 11px/1 Georgia, serif; font-style: normal; color: var(--bannschrift); }
#wdh-zeit .m-u { width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: #e0503a; border: 1px solid rgba(0, 0, 0, .5); }
#wdh-pos { position: absolute; top: 50%; width: 14px; height: 26px; margin: -13px 0 0 -7px; border-radius: 4px; background: var(--bannschrift); box-shadow: 0 1px 4px rgba(0, 0, 0, .6); pointer-events: none; }
#stage.hoch #wdh-zeit { width: 100%; height: 64px; } #stage.klein #wdh-zeit { width: 200px; height: 64px; }
#stage.hoch #wdh-zeit .m-w em, #stage.klein #wdh-zeit .m-w em { font-size: 15px; top: -18px; left: -8px; width: 18px; }
#stage.linkshand #pad-l { grid-area: padr; } #stage.linkshand #pad-r { grid-area: padl; }
.kfarbe { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; border: 1px solid rgba(0, 0, 0, .4); }
.kfarbe.f0 { background: radial-gradient(circle at 35% 35%, #f7a050, #8a3a10); } .kfarbe.f1 { background: radial-gradient(circle at 35% 35%, #c8e6a0, #2e5a20); }
.namen { display: flex; flex-direction: column; gap: 10px; max-width: 420px; margin: 12px auto; }
.namen label { display: flex; align-items: center; gap: 8px; } .namen label span { width: 80px; text-align: left; color: var(--leise); font-size: 15px; }
.namen input { flex: 1; min-width: 0; min-height: 48px; padding: 6px 12px; font: 16px Georgia, serif; color: var(--text); background: var(--knopf2); border: 1px solid var(--rand); border-radius: 10px; -webkit-user-select: text; user-select: text; }
.namen input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
#stage.hoch .namen input, #stage.klein .namen input { min-height: 64px; font-size: 18px; } #stage.hoch .namen label span, #stage.klein .namen label span { font-size: 17px; }
.tasten { max-width: 470px; margin: 6px auto; text-align: left; }
.trow { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 0; border-top: 1px dashed var(--rand); }
.trow span { font-size: 15px; } .trow small { display: block; font-size: 13px; color: var(--leise); }
.trow button { min-width: 150px; min-height: 48px; padding: 6px 12px; border-radius: 10px; border: 1px solid var(--rand); background: var(--knopf); color: var(--text); }
#stage.hoch .trow span, #stage.klein .trow span { font-size: 17px; } #stage.hoch .trow small, #stage.klein .trow small { font-size: 15px; } #stage.hoch .trow button, #stage.klein .trow button { min-height: 64px; font-size: 17px; }
.msts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 10px 0; }
.mst { padding: 8px 4px; border-radius: 8px; border: 3px double var(--rand); color: var(--leise); opacity: .55; transform: rotate(-3deg); }
.mst:nth-child(even) { transform: rotate(2deg); }
.mst.an { border-color: var(--warn); color: var(--warn); opacity: 1; }
.mst b { display: block; font-size: 15px; } .mst small { display: block; font-size: 12px; }
.mappe table { width: 100%; max-width: 480px; margin: 0 auto; } .mappe td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
#stage.hoch .msts { grid-template-columns: repeat(3, 1fr); } #stage.hoch .mst b, #stage.klein .mst b { font-size: 17px; } #stage.hoch .mst small, #stage.klein .mst small { font-size: 15px; }
:root[data-ansicht="sonne"] .reihe button.haupt, :root[data-ansicht="sonne"] #hinweis button.haupt { color: #fff8ec; }
#wdh-zeit .m-w em { background: var(--bann); border-radius: 4px; padding: 1px 0; }
#wdh-zeit .m-w em { background: var(--knopf2); color: var(--text); }
.modus.breit { grid-column: 1 / -1; } .modus .rv { width: 92px; height: 52px; flex: none; border-radius: 8px; object-fit: cover; border: 1px solid var(--rand); }
.wk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.wk-teil { display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 104px; padding: 8px 6px; border-radius: 12px; border: 1px solid var(--rand);
  background: linear-gradient(180deg, var(--pk1), var(--pk2)); color: var(--text); }
.wk-teil canvas { width: 56px; height: 56px; } .wk-teil b { font-size: 15px; } .wk-teil small { font-size: 13px; color: var(--leise); text-align: center; }
.wk-teil.an { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold); } .wk-teil.zu canvas, .wk-teil.zu .wk-flamme { opacity: .45; filter: grayscale(.6); }
.wk-flamme { display: block; width: 64px; height: 22px; margin: 17px 0; border-radius: 11px; box-shadow: 0 0 10px rgba(255, 200, 120, .35); }
#stage.hoch .wk-teil b, #stage.klein .wk-teil b { font-size: 17px; } #stage.hoch .wk-teil small, #stage.klein .wk-teil small { font-size: 15px; }
#stage.hoch .modus .rv { width: 72px; height: 44px; }
.wk-teil small { color: var(--text); }
#t-hyper { position: relative; overflow: hidden; }
#t-hyper::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: calc(var(--hk, 0) * 100%); background: rgba(0, 0, 0, .42); pointer-events: none; }
#t-hyper.sperre small { opacity: .7; }
.sterne { display: inline-flex; gap: 3px; vertical-align: middle; }
.sterne i { display: block; width: 20px; height: 20px; background: rgba(120, 110, 90, .55);
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.sterne i.an { background: #ffc83a; }
#wbil.region { top: 34%; padding: 14px 24px; } #wbil.region b { font-size: 22px; } #wbil.region .sterne i { width: 28px; height: 28px; }
#wbil small { font-size: 13px; opacity: .85; }
#stage.hoch #wbil.region b, #stage.klein #wbil.region b { font-size: 24px; } #stage.hoch #wbil small, #stage.klein #wbil small { font-size: 15px; }
table.reise { width: 100%; max-width: 480px; margin: 0 auto; } table.reise td:nth-child(2) { text-align: center; } table.reise td:last-child { text-align: right; }
#tafel td:last-child { white-space: nowrap; padding-left: 8px; text-align: right; }
#cv { background: #0a1020 center / 100% 100% no-repeat; }
:root[data-ansicht="sonne"] #cv { background-color: #e8c49a; } :root[data-ansicht="halle"] #cv { background-color: #000; }
#kulisse { transition: filter 1.6s ease; }
#stage[data-region="eis"] #kulisse { filter: hue-rotate(-18deg) saturate(.85) brightness(.95); }
#stage[data-region="vulkan"] #kulisse { filter: sepia(.25) hue-rotate(-22deg) saturate(1.35) brightness(.92); }
#stage[data-region="truemmer"] #kulisse { filter: grayscale(.55) brightness(.88); }
#stage[data-region="tief"] #kulisse { filter: brightness(.72) saturate(.9) hue-rotate(12deg); }
#stage[data-region="schacht"] #kulisse { filter: sepia(.4) saturate(1.4) brightness(1.02); }
@media (prefers-reduced-motion: reduce) { #kulisse { transition: none; } }
#w-reise { display: flex; gap: 3px; margin-top: 3px; min-height: 8px; }
#w-reise .rs { display: block; width: 14px; height: 6px; border-radius: 3px; background: rgba(160, 150, 130, .35); }
#w-reise .rs.jetzt { background: var(--gold); box-shadow: 0 0 6px var(--gold); }
#w-reise .rs.s1 { background: #b87a3a; } #w-reise .rs.s2 { background: #d8d8e0; } #w-reise .rs.s3 { background: #ffc83a; }
#stage.hoch #w-reise .rs { width: 10px; } #stage.hoch .wert span small#w-reise { display: flex; }
#lern { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 4; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 18px;
  border-radius: 12px; background: var(--bann); color: var(--bannschrift); border: 2px solid var(--gold); text-align: center; max-width: 90%; pointer-events: none; }
#lern small { font-size: 13px; opacity: .85; } #lern b { font-size: 19px; color: var(--gold); } #lern span { font-size: 15px; }
#stage.hoch #lern small, #stage.klein #lern small { font-size: 15px; } #stage.hoch #lern b, #stage.klein #lern b { font-size: 21px; } #stage.hoch #lern span, #stage.klein #lern span { font-size: 17px; }
.teil textarea { display: block; resize: none; word-break: break-all; line-height: 1.35; width: 100%; min-height: 48px; padding: 6px 12px; font: 15px Georgia, serif; color: var(--text); background: var(--knopf2); border: 1px solid var(--rand); border-radius: 10px; -webkit-user-select: text; user-select: text; }
.teil textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
#stage.hoch .teil textarea, #stage.klein .teil textarea { min-height: 64px; font-size: 16px; }
