:root, [data-ansicht="halle"] {
  --grund: url(img/halle-q.webp); --grund-h: url(img/halle-h.webp); --tisch: url(img/tisch-halle.webp);
  --text: #f3ead8; --dim: #c9bda2; --akzent: #f2b544; --akzent-t: #2a1a04; --gut: #6fd08a; --schlecht: #ff8a70;
  --tafel: #17181a; --tafel-rand: #4a4436; --tafel-text: #f6d36a;
  --koffer-o: #d6d8d0; --koffer-u: #a3a79e; --koffer-text: #15170f; --koffer-dim: #23261e;
  --knopf: #2c2e2a; --knopf-text: #f3ead8; --knopf-rand: rgba(255, 255, 255, .25);
  --papier: #f1e8d2; --papier-text: #2a2418; --papier-dim: #6a5f48; --papier-linie: rgba(60, 50, 30, .18);
  --tisch-kante: #2c3422; --dunkel: rgba(10, 12, 14, .42);
  --kalt: rgba(214, 240, 255, .86); --warm: rgba(255, 150, 60, .78); --zelle: rgba(220, 200, 130, .10); --zelle-rand: rgba(232, 214, 150, .45);
  --scroll: #f2b544; --scroll-spur: rgba(0, 0, 0, .25);
}
[data-ansicht="tag"] {
  --grund: url(img/tag-q.webp); --grund-h: url(img/tag-h.webp); --tisch: url(img/tisch-tag.webp);
  --text: #2a2418; --dim: #5c5240; --akzent: #b8741a; --akzent-t: #fff7e6; --gut: #2b7a40; --schlecht: #a8321f;
  --tafel: #f4ead2; --tafel-rand: #b9a57a; --tafel-text: #2a2418;
  --koffer-o: #efeee6; --koffer-u: #c4c6bc; --koffer-text: #15170f; --koffer-dim: #2c2f27;
  --knopf: #f6efdd; --knopf-text: #2a2418; --knopf-rand: rgba(60, 50, 30, .35);
  --papier: #fbf5e6; --tisch-kante: #8a7350; --dunkel: rgba(250, 240, 220, .30);
  --zelle-rand: rgba(250, 236, 180, .55);
  --scroll: #b8741a; --scroll-spur: rgba(60, 50, 30, .12);
}
[data-ansicht="tv"] {
  --grund: url(img/tv-q.webp); --grund-h: url(img/tv-h.webp); --tisch: url(img/tisch-tv.webp);
  --text: #e6eef8; --dim: #a8b6c8; --akzent: #6fb8ff; --akzent-t: #08182a; --gut: #7fe0a0; --schlecht: #ff8c7a;
  --tafel: #0d1520; --tafel-rand: #2c4766; --tafel-text: #8fd0ff;
  --koffer-o: #cfd6de; --koffer-u: #98a3ae; --koffer-text: #0a1018; --koffer-dim: #1c2630;
  --knopf: #18222e; --knopf-text: #e6eef8; --knopf-rand: rgba(140, 190, 255, .35);
  --tisch-kante: #3a434c; --dunkel: rgba(4, 10, 20, .45);
  --scroll: #6fb8ff; --scroll-spur: rgba(0, 0, 0, .3);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #111; }
body { font: 15px/1.35 'Trebuchet MS', 'Segoe UI', Arial, sans-serif; color: var(--text); -webkit-tap-highlight-color: transparent; }
#stage, #stage * { scrollbar-width: thin; scrollbar-color: var(--scroll) var(--scroll-spur); }
#stage ::-webkit-scrollbar { width: 8px; height: 8px; } #stage ::-webkit-scrollbar-thumb { background: var(--scroll); border-radius: 4px; } #stage ::-webkit-scrollbar-track { background: var(--scroll-spur); }
#stage { position: fixed; inset: 0; display: grid; grid-template-rows: 58px 1fr; overflow: hidden; }
.ic svg, button svg { width: 18px; height: 18px; vertical-align: -3px; }

#grund { position: absolute; inset: 0; overflow: hidden; background: var(--grund) center 40% / cover no-repeat; z-index: 0; }
#grund::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, var(--dunkel), transparent 30%, transparent 70%, var(--dunkel)); }
#grund .licht { position: absolute; left: 30%; top: -10%; width: 40%; height: 70%; background: radial-gradient(ellipse at 50% 0, rgba(255, 236, 190, .18), transparent 70%); animation: schwenk 14s ease-in-out infinite alternate; }
[data-ansicht="tv"] #grund .licht { background: radial-gradient(ellipse at 50% 0, rgba(140, 200, 255, .2), transparent 70%); }
@keyframes schwenk { from { transform: translateX(-30%) rotate(-6deg); } to { transform: translateX(30%) rotate(6deg); } }
@media (prefers-reduced-motion: reduce) { #grund .licht, .bg.erreichbar .koerper, .z-kalt.neu, .z-warm.neu, .schildring { animation: none !important; } }

#kopf { position: relative; z-index: 3; display: flex; align-items: center; gap: 12px; padding: 6px 12px; margin: 6px 8px 0; border-radius: 10px; white-space: nowrap;
  background: linear-gradient(180deg, color-mix(in srgb, var(--tafel) 92%, #fff), var(--tafel)); border: 3px solid var(--tafel-rand); box-shadow: 0 6px 14px rgba(0, 0, 0, .45); color: var(--tafel-text); }
.logo { font: 800 19px/1 'Courier New', monospace; letter-spacing: 2px; color: var(--tafel-text); }
.k-pruef { display: flex; flex-direction: column; min-width: 0; overflow: hidden; } .k-pruef b { font-size: 15px; } .k-pruef small { font-size: 12px; opacity: .8; overflow: hidden; text-overflow: ellipsis; }
.k-uhr { margin-left: auto; padding: 3px 12px; border-radius: 6px; background: #0a0a0a; border: 2px solid #3d3a30; box-shadow: inset 0 2px 6px #000; }
.roehre { font: 700 26px/1 'Courier New', monospace; color: #ff9a3c; text-shadow: 0 0 8px rgba(255, 120, 30, .8); letter-spacing: 2px; }
.k-uhr.knapp .roehre { color: #ff4a2a; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: .55; } }
.k-zahl { display: flex; align-items: center; gap: 5px; } .k-zahl b { font-size: 19px; min-width: 2ch; text-align: right; } .k-zahl small { font-size: 11px; opacity: .8; }
.k-knoepfe { display: flex; gap: 6px; }
.kb-ic { width: 40px; height: 40px; border-radius: 9px; border: 1px solid var(--knopf-rand); background: var(--knopf); color: var(--knopf-text); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.kb { min-height: 40px; padding: 7px 14px; border-radius: 9px; border: 1px solid var(--knopf-rand); background: var(--knopf); color: var(--knopf-text); font: 700 14px/1.1 inherit; font-family: inherit; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; box-shadow: 0 2px 4px rgba(0, 0, 0, .3); }
.kb small { font-weight: 400; opacity: .85; }
.kb.gold { background: linear-gradient(180deg, color-mix(in srgb, var(--akzent) 80%, #fff), var(--akzent)); color: var(--akzent-t); border-color: var(--akzent); }
[data-ansicht="tag"] .kb.gold { background: linear-gradient(180deg, #9a5e10, #7f4a08); border-color: #6a3d06; }
.kb.gefahr { color: var(--schlecht); }
.kb.klein { min-height: 40px; padding: 5px 10px; font-size: 13px; }
.kb.gross { min-height: 52px; font-size: 17px; padding: 10px 22px; }
.kb:disabled, .kb[aria-disabled="true"] { opacity: .5; cursor: not-allowed; border-style: dashed; }
@media (hover: hover) { .kb:not(:disabled):hover, .kb-ic:hover { filter: brightness(1.12); } }

#feld { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 290px; gap: 14px; padding: 12px 12px 14px; min-height: 0; }
#tischWrap { position: relative; min-height: 0; display: flex; align-items: center; justify-content: center; perspective: 1500px; padding: 4% 7% 5%; }
#tisch { position: relative; width: 100%; height: 100%; max-height: 100%; border-radius: 18px; background: var(--tisch) center / 112% 112%;
  overflow: hidden; box-shadow: 0 30px 40px rgba(0, 0, 0, .55), 0 6px 0 var(--tisch-kante), 0 12px 0 color-mix(in srgb, var(--tisch-kante) 70%, #000); }
#tisch::before { content: ''; position: absolute; inset: 0; border-radius: 18px; box-shadow: inset 0 2px 0 rgba(255, 255, 255, .18), inset 0 0 40px rgba(0, 0, 0, .3); pointer-events: none; }
#netz { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: grab; }
#netz:active { cursor: grabbing; }
.kam { position: absolute; right: 10px; bottom: 10px; z-index: 2; display: flex; gap: 6px; }
.kam .kb-ic { font: 800 22px/1 'Trebuchet MS', sans-serif; }
.schirm { fill: none; stroke-width: 4; stroke-dasharray: 10 8; opacity: .8; pointer-events: none; }
.schildring { fill: none; stroke-width: 5; opacity: .85; pointer-events: none; animation: schild 2.4s ease-in-out infinite; }
@keyframes schild { 50% { opacity: .45; } }
.bg.ok .koerper { fill: url(#gFrost); stroke: #3a7aa8; }
.bg.fern { opacity: .6; }
.bg.neu-err .koerper { animation: neuErr .8s ease-in-out 3; }
@keyframes neuErr { 50% { stroke: #fff; stroke-width: 12; filter: drop-shadow(0 0 14px #ffd24a); } }
.k-takt.gut circle { fill: #2f9a52; }
.bg-einstieg text { font: 800 13px 'Trebuchet MS', sans-serif; fill: #3a2a06; text-anchor: middle; letter-spacing: 1px; }
.bg-schloss, .bg-einstieg { pointer-events: none; }
.kabel { fill: none; stroke-linecap: round; opacity: .95; }
.kabel.tot { stroke: #8fd8ff; opacity: .95; }
.kabel.hell { opacity: 1; filter: drop-shadow(0 0 6px rgba(255, 230, 140, .9)); }
.bg-kuehl-z { font: 800 22px 'Trebuchet MS', sans-serif; fill: #d8f0ff; stroke: #1e4a6a; stroke-width: 4px; paint-order: stroke; text-anchor: middle; }
.bg { cursor: pointer; }
.bg .koerper { transition: stroke .2s; }
.bg.erreichbar:not(.ok) .koerper { stroke: #ffd24a; stroke-width: 5; animation: puls 1.8s ease-in-out infinite; }
@keyframes puls { 50% { stroke: #fff2a8; } }
.bg.gewaehlt .koerper { stroke: #fff; stroke-width: 7; }
.bg-frage { font: 800 34px 'Trebuchet MS', sans-serif; fill: #b9b9b0; text-anchor: middle; }
.bg-roehre { font: 700 30px 'Courier New', monospace; fill: #ff9a3c; text-anchor: middle; }
.bg-mat-z { font: 800 26px 'Trebuchet MS', sans-serif; fill: #3a2a06; text-anchor: middle; }
.bg-stempel { font: 800 20px 'Courier New', monospace; fill: #e8ffe8; text-anchor: middle; }
.bg-sch { font: 800 24px 'Trebuchet MS', sans-serif; fill: #f0f0e8; text-anchor: middle; }
.robo { transition: transform .45s; }
.bg.ziel .koerper, .bg.ziel.erreichbar:not(.ok) .koerper { stroke: #6fe0ff; stroke-width: 8; animation: pulsZ 1.2s ease-in-out infinite; }
@keyframes pulsZ { 50% { stroke: #e0fbff; } }
.vorschau { pointer-events: none; }
.vs-rahmen { fill: rgba(63, 184, 232, .12); stroke-width: 6; stroke-dasharray: 14 9; }
.vs-text { font-weight: 900; font-family: 'Courier New', monospace; fill: #08182a; text-anchor: middle; }
.vs-weg { fill: none; stroke: #f4f1e6; stroke-dasharray: 22 14; stroke-linecap: round; stroke-linejoin: round; opacity: .9; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .6)); }
.vs-schritt circle { fill: #f4f1e6; stroke: #262922; stroke-width: 3; } .vs-schritt text { font-weight: 900; fill: #262922; text-anchor: middle; }

#koffer { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 26px 12px 12px; border-radius: 14px; min-height: 0; overflow: hidden;
  background: repeating-linear-gradient(92deg, rgba(255, 255, 255, .05) 0 1px, rgba(0, 0, 0, .025) 1px 3px), linear-gradient(160deg, var(--koffer-o), var(--koffer-u)); background-color: var(--koffer-u); color: var(--koffer-text); border: 3px solid #5a5e56;
  box-shadow: 0 16px 28px rgba(0, 0, 0, .5), inset 0 2px 0 rgba(255, 255, 255, .6), inset 0 -3px 0 rgba(0, 0, 0, .2); }
#koffer::before { content: ''; position: absolute; inset: 6px; border-radius: 10px; border: 1px solid rgba(0, 0, 0, .18); pointer-events: none; }
.ko-griff { position: absolute; top: 6px; left: 50%; width: 90px; height: 12px; margin-left: -45px; border-radius: 8px; background: linear-gradient(180deg, #6b4a2a, #3a2410); box-shadow: 0 2px 3px rgba(0, 0, 0, .5); }
.ko-titel { font: 800 13px 'Courier New', monospace; letter-spacing: 1px; color: var(--koffer-dim); text-transform: uppercase; }
.ko-werkzeuge { display: flex; flex-direction: column; gap: 4px; }
.wz { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 8px; background: rgba(255, 255, 255, .55); border: 1px solid rgba(0, 0, 0, .15); font-size: 13px; min-height: 29px; }
.wz-ic svg { width: 20px; height: 20px; } .wz-name { font-weight: 700; } .wz-wert { color: var(--koffer-dim); font-size: 12px; }
.wz.gesperrt { opacity: .55; border-style: dashed; border-color: rgba(0, 0, 0, .45); }
.wz .kurz, .k-bruch, #bAnsetzen .kurz { display: none; }
.ko-wahl { height: 112px; overflow: auto; padding: 8px; border-radius: 8px; background: #f3ecd8; color: #2a2418; border: 1px solid rgba(0, 0, 0, .2); box-shadow: inset 0 1px 3px rgba(0, 0, 0, .2); display: flex; flex-direction: column; gap: 3px; font-size: 15px; }
.ko-wahl b { font-size: 16px; } .ko-wahl span { font-size: 15px; } .ko-wahl .klein { color: #5a4a2a; font-size: 12.5px; }
.ko-knoepfe { display: flex; flex-direction: column; gap: 6px; height: 146px; }
.ko-knoepfe .kb { justify-content: flex-start; width: 100%; }
.ko-unten { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; } #bAufgeben { margin-left: auto; }
.wz { cursor: pointer; transition: box-shadow .2s, background .2s; }
.wz.aktiv { background: #d8f4ff; box-shadow: 0 0 0 3px #3fb8e8; }
.wz.lohnt:not(.aktiv) { animation: lohnt 1.6s ease-in-out infinite; }
@keyframes lohnt { 50% { box-shadow: 0 0 0 3px var(--akzent), 0 0 12px var(--akzent); } }
@media (hover: hover) { .wz:not(.gesperrt):hover { background: rgba(255, 255, 255, .8); } }
.ko-knoepfe .kb.gross { min-height: 50px; font-size: 16px; padding: 8px 14px; }

#platine { position: absolute; inset: 64px 0 0 0; z-index: 4; display: grid; grid-template-rows: auto 1fr auto; gap: 8px; padding: 6px 14px 12px; background: transparent; }
#platine[hidden] { display: none; }
#stage.pl-offen #tisch, #stage.pl-offen #koffer { visibility: hidden; }
.pl-kopf { justify-self: center; display: flex; gap: 14px; align-items: baseline; padding: 5px 14px; border-radius: 8px; background: var(--tafel); color: var(--tafel-text); border: 2px solid var(--tafel-rand); }
.pl-kopf b { font-size: 16px; }
.pl-brett { position: relative; min-height: 0; border-radius: 40px; background: radial-gradient(circle at 40% 35%, rgba(255, 255, 255, .18), transparent 60%); height: 100%; width: auto; max-width: 100%; aspect-ratio: 5 / 4;  justify-self: center; }
.pl-brett::before { content: ''; position: absolute; inset: 0 1%; border-radius: 20px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .06) 0 1px, rgba(0, 0, 0, .04) 1px 3px), linear-gradient(160deg, #a6aaa0, #62665c); border: 4px solid #3f423b; box-shadow: 0 24px 36px rgba(0, 0, 0, .55), inset 0 2px 0 rgba(255, 255, 255, .45); transform: rotate(-2deg); }
#plSvg { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.zelle { fill: rgba(20, 50, 32, .75); stroke: var(--zelle-rand); stroke-width: 2; }
.spur { fill: none; stroke: #c9a24a; stroke-linecap: round; opacity: .75; }
.reich-z { fill: rgba(255, 140, 60, .16); stroke: rgba(255, 150, 70, .9); stroke-width: 2.5; stroke-dasharray: 6 4; pointer-events: none; }
.zelle.kuehl { fill: rgba(130, 145, 155, .35); }
.zelle.sperr { fill: rgba(40, 40, 36, .55); }
.z-kalt { fill: var(--kalt); fill: url(#ppRaureif) var(--kalt); stroke: #fff; stroke-width: 1; }
.z-kalt.neu, .z-warm.neu { animation: zelleEin .3s ease-out; }
@keyframes zelleEin { from { opacity: .2; } to { opacity: 1; } }
.z-warm { fill: var(--warm); fill: url(#ppGlut) var(--warm); stroke: #ffd28a; stroke-width: 1; }
.kontakt { cursor: pointer; }
.kontakt.rat circle:first-child { stroke: #6fe0ff; stroke-width: 5; }
.kontakt.zuend circle:first-child { fill: #ff7a2a; animation: zuend .5s ease-out 2; }
@keyframes zuend { 50% { fill: #ffe08a; } }
.kontakt.tot { opacity: .6; }
.kontakt.zuend-war circle:first-child { stroke: #ff6a2a; stroke-width: 5; }
.k-takt circle { fill: #e07a2a; stroke: #fff3d6; stroke-width: 2.5; } .kap-takt circle { fill: #2f8fd0; stroke: #fff; stroke-width: 2.5; }
.k-takt, .kap-takt { pointer-events: none; } .k-takt text, .kap-takt text { font-weight: 900; font-family: 'Trebuchet MS', sans-serif; fill: #fff; color: #fff; text-anchor: middle; }
.k-nr { font: 800 20px 'Trebuchet MS', sans-serif; fill: #fff8e0; color: #fff8e0; stroke: #1a2a1a; stroke-width: 4px; paint-order: stroke; pointer-events: none; }
.kb.an { box-shadow: inset 0 0 0 2px var(--akzent); }
.pl-stempel { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-10deg); padding: 10px 26px; border: 6px solid currentColor; border-radius: 10px; font: 900 44px 'Courier New', monospace; letter-spacing: 3px; background: rgba(0, 0, 0, .25); pointer-events: none; }
.pl-stempel.gut { color: #7cf09a; } .pl-stempel.schlecht { color: #ff8a5a; }
.pl-leiste { width: min(100%, 1040px); justify-self: center; display: grid; grid-template-columns: minmax(260px, 1fr) minmax(0, max-content); gap: 10px; align-items: center; padding: 8px 12px; border-radius: 12px;
  background: repeating-linear-gradient(92deg, rgba(255, 255, 255, .05) 0 1px, rgba(0, 0, 0, .025) 1px 3px), linear-gradient(160deg, var(--koffer-o), var(--koffer-u)); background-color: var(--koffer-u); color: var(--koffer-text); border: 3px solid #5a5e56; box-shadow: 0 10px 18px rgba(0, 0, 0, .45); }
.pl-rech { height: 66px; overflow: hidden; display: flex; flex-direction: column; justify-content: center; font-size: 15px; } .pl-rech b { font-size: 16px; }
.pl-knoepfe { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.pl-knoepfe .kb { padding: 7px 10px; }

#meldungen { position: absolute; left: 50%; top: 70px; transform: translateX(-50%); z-index: 8; display: flex; flex-direction: column; gap: 6px; width: min(620px, 92vw); pointer-events: none; }
.meldung { padding: 9px 14px; border-radius: 10px; background: rgba(20, 20, 18, .92); color: #f3ead8; border-left: 5px solid #f2b544; box-shadow: 0 6px 16px rgba(0, 0, 0, .45); font-size: 14.5px; transition: opacity .4s, transform .4s; }
.meldung.gut { border-left-color: #5fd07a; } .meldung.schlecht { border-left-color: #ff7a5a; }
.meldung.weg { opacity: 0; transform: translateY(-6px); }
.flug-marke { position: absolute; z-index: 9; padding: 4px 10px; border-radius: 14px; background: #d9b43a; color: #2a1a04; font-weight: 800; border: 2px solid #6a4f10; transition: transform .7s cubic-bezier(.5, 0, .3, 1), opacity .7s; pointer-events: none; transform: translate(0, 0); }

#rauch { position: absolute; inset: 0; z-index: 7; pointer-events: none; opacity: 0; background: radial-gradient(circle at 50% 55%, rgba(220, 60, 40, .75), rgba(150, 50, 40, .45) 35%, transparent 70%); }
#rauch.an { animation: rauch 2.6s ease-out; }
@keyframes rauch { 0% { opacity: 0; transform: scale(.4); } 20% { opacity: 1; } 100% { opacity: 0; transform: scale(1.6); } }

#menu, #ende, #hilfe, #sperre, #blatt { position: absolute; inset: 0; z-index: 6; display: flex; align-items: center; justify-content: center; padding: 70px 14px 14px; background: var(--dunkel); }
#menu[hidden], #ende[hidden], #hilfe[hidden], #sperre[hidden], #blatt[hidden] { display: none; }
#ende { background: transparent; }
#menu { flex-direction: column; justify-content: flex-start; gap: 0; }
.me-kopf, .me-tabs, .me-inhalt { width: min(980px, 100%); }
.me-kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; border-radius: 12px 12px 0 0; background: var(--tafel); color: var(--tafel-text); border: 3px solid var(--tafel-rand); border-bottom: 0; }
.me-logo { font: 800 22px 'Courier New', monospace; letter-spacing: 2px; display: flex; flex-direction: column; } .me-logo small { font: 400 12.5px 'Trebuchet MS', sans-serif; letter-spacing: 0; opacity: .85; }
.me-rang { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: center; text-align: left; } .me-rang .ic { grid-row: span 2; } .me-rang .ic svg { width: 28px; height: 28px; } .me-rang small { font-size: 12px; opacity: .85; }
.me-tabs { display: flex; gap: 4px; padding: 6px 10px 0; background: var(--papier); border-left: 3px solid var(--tafel-rand); border-right: 3px solid var(--tafel-rand); }
.me-tabs button { min-height: 40px; padding: 6px 14px; border: 1px solid var(--papier-linie); border-bottom: 0; border-radius: 8px 8px 0 0; background: transparent; color: var(--papier-dim); font: 700 14px inherit; font-family: inherit; cursor: pointer; }
.me-tabs button.an { background: #fff8; color: var(--papier-text); }
.me-inhalt { flex: 1; min-height: 0; overflow: auto; padding: 12px 16px 16px; border-radius: 0 0 12px 12px; background: var(--papier); color: var(--papier-text); border: 3px solid var(--tafel-rand); border-top: 1px solid var(--papier-linie);
  background-image: repeating-linear-gradient(180deg, transparent 0 27px, var(--papier-linie) 27px 28px); box-shadow: 0 18px 30px rgba(0, 0, 0, .5); }
.me-stat { margin: -2px 0 10px; color: var(--papier-dim); font-size: 14px; }
.me-stat a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; color: var(--papier-text); font-weight: 700; }
.me-los { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin-bottom: 10px; } .me-los small { color: var(--papier-dim); }
.me-lauf { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 8px 12px; margin-bottom: 10px; border-radius: 8px; background: #fff3c8; border: 1px dashed #b8741a; }
.me-stufe { display: grid; grid-template-columns: 90px 1fr; gap: 8px; align-items: center; margin-bottom: 8px; }
.me-stufe-n { font: 800 13px 'Courier New', monospace; text-transform: uppercase; color: var(--papier-dim); }
.me-kacheln { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; }
.kachel { min-height: 54px; padding: 4px 2px; border-radius: 8px; border: 2px solid #8d9188; background: linear-gradient(160deg, #e2e4dc, #a9ada4); color: #1d1f1a; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; font-family: inherit; box-shadow: 0 2px 3px rgba(0, 0, 0, .25); }
.kachel b { font-size: 16px; } .kachel small { font-size: 10.5px; color: #3d4038; }
.kachel .st { display: flex; gap: 2px; } .kachel .st i { width: 9px; height: 9px; border-radius: 50%; background: #6a6e64; } .kachel .st i.an { background: #e0a020; box-shadow: 0 0 4px #ffcf5a; }
.kachel.zu { opacity: .5; border-style: dashed; cursor: not-allowed; }
.me-text p { margin: 4px 0 10px; } .me-klassen { display: flex; flex-wrap: wrap; gap: 8px; }
.liste { margin-top: 12px; padding: 8px 12px; border-radius: 8px; background: #fff8; border: 1px solid var(--papier-linie); display: flex; flex-direction: column; gap: 2px; }
.liste .zeile, .en-weg .zeile { display: flex; justify-content: space-between; gap: 10px; }

.en-karte { width: min(500px, 100%); max-height: 100%; overflow: auto; padding: 18px 20px; border-radius: 6px; background: var(--papier); color: var(--papier-text); box-shadow: 0 20px 40px rgba(0, 0, 0, .6); transform: rotate(-1deg);
  background-image: repeating-linear-gradient(180deg, transparent 0 25px, var(--papier-linie) 25px 26px); }
.en-titel { font: 900 28px 'Courier New', monospace; letter-spacing: 1px; } .en-grund { margin: 4px 0 8px; color: var(--papier-dim); }
.en-sterne { display: flex; gap: 6px; margin-bottom: 8px; } .stern svg { width: 34px; height: 34px; color: #8d8a80; } .stern.an svg { color: #e0a020; fill: #f2c040; }
.en-weg { display: flex; flex-direction: column; gap: 3px; padding: 8px 0; border-top: 2px solid var(--papier-text); } .en-weg .summe { border-top: 1px solid var(--papier-text); padding-top: 4px; font-size: 18px; }
.en-extra p { margin: 6px 0; }
.en-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
#endeLeiste { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 6; display: flex; gap: 10px; align-items: center; padding: 8px 12px; border-radius: 12px; background: var(--tafel); color: var(--tafel-text); border: 3px solid var(--tafel-rand); }
#endeLeiste[hidden] { display: none; }

.hi-karte, .sp-karte { position: relative; width: min(760px, 100%); max-height: 100%; overflow: auto; padding: 18px 22px; border-radius: 10px; background: var(--papier); color: var(--papier-text); box-shadow: 0 20px 40px rgba(0, 0, 0, .6); }
#hiZu, #blZu { position: absolute; top: 10px; right: 10px; }
#blText h2 { margin: 0 48px 8px 0; font: 900 22px 'Courier New', monospace; } #blText h3 { margin: 14px 0 6px; font-size: 15px; text-transform: uppercase; letter-spacing: 1px; color: var(--papier-dim); }
.bl-hin { margin: 0 0 8px; color: var(--papier-dim); font-size: 13.5px; }
.legende { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 8px; }
.lg { display: grid; grid-template-columns: 64px 1fr; gap: 10px; align-items: center; padding: 6px 8px; border-radius: 8px; background: #fff8; border: 1px solid var(--papier-linie); }
.lg svg { width: 64px; height: 44px; } .lg b { display: block; font-size: 14.5px; } .lg span { font-size: 13.5px; color: var(--papier-text); }
.buch { display: flex; flex-direction: column; gap: 4px; }
.bu { display: grid; grid-template-columns: 58px 1fr; gap: 8px; padding: 5px 8px; border-radius: 6px; background: #fff8; border-left: 4px solid #c9a24a; font-size: 14px; }
.bu.gut { border-left-color: #3a9a54; } .bu.schlecht { border-left-color: #c8462a; }
.bu-u { font: 700 14px 'Courier New', monospace; color: var(--papier-dim); }
.laden { display: flex; flex-direction: column; gap: 8px; } .laden-marken { margin: 0 0 8px; font-size: 16px; }
.la { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 8px; background: #fff8; border: 1px solid var(--papier-linie); }
.la > svg, .la .sgzi { width: 26px; height: 26px; } .la b { display: block; font-size: 15px; } .la span { font-size: 13px; color: var(--papier-dim); }
.la .kb { white-space: nowrap; }
.k-weg { pointer-events: none; opacity: .8; }
.sp-karte { width: min(420px, 100%); } #spKnoepfe { display: flex; gap: 10px; margin-top: 12px; }

@media (pointer: coarse) { .kb, .kb-ic, .me-tabs button { min-height: 44px; } }
@media (max-width: 1100px) { .k-zahl small, .logo { display: none; } }
#platine.aufgehen { animation: aufgehen .42s cubic-bezier(.2, .8, .3, 1); }
@keyframes aufgehen { from { transform: scale(.12); opacity: 0; } to { transform: none; opacity: 1; } }
.frostwelle { fill: none; stroke: #e6f8ff; stroke-width: 11; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: .95; animation: welle 1s ease-out forwards; pointer-events: none; }
@keyframes welle { 70% { opacity: .95; } to { stroke-dashoffset: 0; opacity: 0; } }
.z-warm { animation: flimmer .5s ease-in-out infinite alternate; }
@keyframes flimmer { to { opacity: .72; } }
.kapsel.gluehen circle:first-child { animation: gluehen .45s ease-in-out 3; }
@keyframes gluehen { 50% { fill: #ff5a1e; filter: drop-shadow(0 0 16px #ff7a2a); } }
.kap-eis { animation: eisEin .55s ease-out; transform-box: fill-box; transform-origin: center; }
@keyframes eisEin { from { transform: scale(.3); opacity: 0; } to { transform: none; opacity: 1; } }
#netz.gross .bg.erreichbar:not(.ok) .koerper, #netz.gross .schildring { animation: none; }
.bg-daten, .bg-sockel { pointer-events: none; }
#miniKarte { position: absolute; left: 10px; bottom: 10px; z-index: 2; width: 150px; height: 114px; border-radius: 10px; box-shadow: 0 4px 12px rgba(0, 0, 0, .5); cursor: pointer; }
@media (prefers-reduced-motion: reduce) { #platine.aufgehen, .frostwelle, .z-warm, .kap-eis, .kapsel.gluehen circle:first-child { animation: none !important; } .frostwelle { display: none; } }
@media (orientation: landscape) and (max-height: 720px) {
  .ko-werkzeuge { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
  .ko-werkzeuge .wz { grid-template-columns: 18px 1fr; padding: 3px 5px; min-height: 0; row-gap: 0; }
  .ko-werkzeuge .wz .lang { display: none; } .ko-werkzeuge .wz .kurz { display: inline; }
  .ko-werkzeuge .wz-wert { grid-column: 2; font-size: 11px; white-space: nowrap; }
  .ko-wahl { min-height: 62px; flex-shrink: 0; height: 84px; }
  .ko-knoepfe { flex-direction: row; flex-wrap: wrap; gap: 5px; } .ko-knoepfe .kb { flex: 1 1 40%; min-width: 0; padding: 5px 6px; font-size: 13px; } .ko-knoepfe .kb.gross { flex-basis: 100%; min-height: 44px; } .ko-knoepfe .lang { display: none; } .ko-knoepfe .kb small { font-size: 12px; }
}
.pl-kopf { flex-wrap: wrap; justify-content: center; max-width: 100%; row-gap: 2px; }
.pl-schluss { padding: 2px 8px; border-radius: 6px; background: #8a1f14; color: #fff; font-weight: 800; font-variant-numeric: tabular-nums; }
.pl-schluss.knapp { animation: schlussPuls .8s ease-in-out infinite; }
@keyframes schlussPuls { 50% { background: #d8341e; } }
.weg-linie { fill: none; stroke: #ffe066; stroke-width: 13; stroke-linecap: round; stroke-dasharray: 22 16; opacity: .9; animation: wegFluss 1.2s linear infinite; pointer-events: none; }
@keyframes wegFluss { to { stroke-dashoffset: -38; } }
.weg-ziel { fill: none; stroke: #ffe066; stroke-width: 8; stroke-dasharray: 18 10; pointer-events: none; }
.kam .kb.an { background: #ffd24a; color: #2a2006; }
.splitter-teil, .funke { transform-box: fill-box; transform-origin: center; pointer-events: none; animation: splitter .85s cubic-bezier(.2, .7, .4, 1) forwards; }
.funke { fill: #ffd27a; animation-duration: .5s; }
@keyframes splitter { to { transform: translate(var(--dx), var(--dy)) rotate(var(--rot, 0deg)); opacity: 0; } }
.frostwelle.sieg { stroke-width: 14; animation-duration: 1.1s; animation-fill-mode: both; }
.stern.flieg { animation: sternFlug .45s cubic-bezier(.2, .9, .3, 1.3) both; }
@keyframes sternFlug { from { transform: scale(2.6) rotate(-30deg); opacity: 0; } }
.zeile.auf { animation: zeileAuf .3s ease-out both; }
@keyframes zeileAuf { from { opacity: 0; transform: translateX(-10px); } }
.en-sterne { align-items: center; }
.en-stempel { margin-left: auto; padding: 3px 10px; border: 3px solid #b8321e; border-radius: 6px; color: #b8321e; font: 900 16px 'Courier New', monospace; letter-spacing: 1px; text-transform: uppercase; transform: rotate(-8deg); animation: stempel .35s cubic-bezier(.2, .9, .3, 1.4) 1.6s both; }
@keyframes stempel { from { transform: scale(2.4) rotate(-8deg); opacity: 0; } }
.en-bericht { padding: 6px 0 2px; border-top: 1px dashed var(--papier-linie); }
.en-ueber { display: block; margin-bottom: 4px; }
.en-bericht-gitter { display: grid; grid-template-columns: 1fr 112px; gap: 10px; align-items: center; }
.en-zahlen { display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; row-gap: 1px; font-size: 13px; } .en-zahlen .breit { grid-column: 1 / -1; } .en-zahlen .zeile { display: flex; justify-content: space-between; gap: 8px; } .en-zahlen b { text-align: right; }
.en-zeitraffer { width: 112px; height: 86px; border-radius: 8px; }
.en-orden { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; }
.orden { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 12px; background: #efe2b8; border: 1px solid #b8963a; font-size: 13px; font-weight: 700; }
.me-orden { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; margin: 4px 0 8px; } .orden.fehlt { opacity: .45; background: transparent; border-style: dashed; }
.orden.neu { background: #ffd24a; box-shadow: 0 0 0 2px #fff6cc; } .orden small { font-weight: 800; font-size: 11.5px; color: #8a1f14; }
.mm-grund { fill: #1d201a; opacity: .85; } .mm-kabel { stroke: #5a5e52; stroke-width: 10; }
.mm-rest { fill: #8a8e84; } .mm-erreich { fill: #ffd24a; } .mm-ok { fill: #8fd8ff; } .mm-haupt { fill: #ffffff; } #miniRahmen { fill: none; stroke: #fff; stroke-width: 22; }
.en-zeitraffer .mm-ok.an, .en-zeitraffer .mm-haupt.an { animation: mmAn .4s ease-out; }
@keyframes mmAn { from { r: 70; } }
[data-ansicht="tag"] .mm-grund { fill: #efe7d2; opacity: .95; } [data-ansicht="tag"] .mm-kabel { stroke: #b9ae92; } [data-ansicht="tag"] .mm-rest { fill: #9a927e; }
[data-ansicht="tag"] .mm-haupt { fill: #3a2f1c; } [data-ansicht="tag"] #miniRahmen { stroke: #3a2f1c; } [data-ansicht="tag"] .mm-ok { fill: #3f9ad0; } [data-ansicht="tag"] .mm-erreich { fill: #d9a21a; }
.laden-rabatt { margin: 0 0 8px; padding: 6px 10px; border-radius: 6px; background: #2f8a4a; color: #fff; font-weight: 700; }
@media (min-width: 700px) and (orientation: landscape) {
  .en-karte { width: min(780px, 100%); display: grid; grid-template-columns: 1fr 1fr; column-gap: 22px; align-content: start; }
  .en-karte > .en-titel, .en-karte > .en-grund, .en-karte > .en-sterne, .en-karte > .en-extra, .en-karte > .en-knoepfe { grid-column: 1 / -1; }
  .en-karte > .en-weg { grid-column: 1; } .en-karte > .en-bericht { grid-column: 2; border-top: 2px solid var(--papier-text); padding-top: 8px; }
  .en-bericht-gitter { grid-template-columns: 1fr; } .en-zeitraffer { width: 100%; height: 96px; }
}
@media (orientation: landscape) and (min-width: 700px) { #meldungen { left: calc(50% - 130px); width: min(560px, calc(100% - 320px)); } #stage.pl-offen #meldungen { left: 50%; top: 108px; width: min(620px, 92vw); } }
@media (prefers-reduced-motion: reduce) { .weg-linie, .splitter-teil, .funke, .stern.flieg, .zeile.auf, .en-stempel, .pl-schluss.knapp { animation: none !important; } .splitter { display: none; } }
.effekt { pointer-events: none; }
.wasser { fill: none; stroke: #4fb8ff; stroke-width: 16; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: .9; animation: welle .7s ease-out both; filter: drop-shadow(0 0 6px #9fe0ff); }
.spritzer { fill: #bfe8ff; transform-box: fill-box; transform-origin: center; animation: splitter .6s ease-out both; }
.reifenspur { fill: none; stroke: #3a3a34; stroke-width: 10; stroke-dasharray: 6 8; opacity: .7; animation: spurWeg 4.2s ease-in forwards; }
@keyframes spurWeg { 70% { opacity: .7; } to { opacity: 0; } }
.scan-feld { animation: spurWeg 1.3s ease-in forwards; }
.scan-balken { animation: scanFahrt 1.1s ease-in-out both; filter: drop-shadow(0 0 8px #6dff9a); }
@keyframes scanFahrt { to { transform: translateY(110px); } }
.funkring { fill: none; stroke: #ffd24a; stroke-width: 6; transform-box: fill-box; transform-origin: center; animation: funk 1s ease-out both; }
@keyframes funk { from { transform: scale(.4); opacity: 1; } to { transform: scale(2.6); opacity: 0; } }
.relais text { font-weight: 900; fill: #ffd2a0; text-anchor: middle; font-family: 'Trebuchet MS', sans-serif; pointer-events: none; }
.relais { pointer-events: none; }
.kontakt.takt-aus { opacity: .45; } .kontakt.takt-aus .k-taktschalter { opacity: .3; }
.bg-spez { pointer-events: none; } .bg-spez text { font: 800 11.5px 'Trebuchet MS', sans-serif; fill: #fff; text-anchor: middle; letter-spacing: .5px; }
.kachel.boss { border-color: #b8321e; box-shadow: inset 0 0 0 2px rgba(184, 50, 30, .45); }
.kachel.boss b::after { content: ''; display: inline-block; width: 7px; height: 7px; margin-left: 5px; background: #b8321e; transform: rotate(45deg); vertical-align: middle; }
@media (prefers-reduced-motion: reduce) { .wasser, .spritzer, .reifenspur, .scan-balken, .funkring { animation: none !important; } .effekt { display: none; } }
@media (orientation: landscape) and (max-height: 520px) {
  #kopf { padding: 3px 8px; gap: 8px; margin-top: 4px; } .k-zahl b { font-size: 16px; } #kopf .kb, #kopf .kb-ic { min-height: 32px; }
  #feld { grid-template-columns: minmax(0, 1fr) 222px; gap: 6px; padding: 4px 6px 6px; }
  #koffer { padding: 8px 6px 6px; gap: 4px; }
  .ko-griff, .ko-titel { display: none; }
  .ko-werkzeuge { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
  .ko-werkzeuge .wz { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; padding: 2px 1px; min-height: 42px; min-width: 0; text-align: center; }
  .ko-werkzeuge .wz-name { display: none; } .ko-werkzeuge .wz-ic svg { width: 18px; height: 18px; } .ko-werkzeuge .wz-wert { font-size: 11px; white-space: nowrap; }
  .wz[data-w="rx"] { display: none; }
  .ko-wahl { height: auto; min-height: 44px; flex: 1 1 auto; font-size: 14px; padding: 5px 7px; }
  .ko-wahl .klein { display: none; }
  .ko-knoepfe { flex-direction: row; flex-wrap: nowrap; gap: 4px; height: auto; } .ko-knoepfe .kb { flex: 1 1 0; min-width: 0; min-height: 42px; padding: 3px 4px; font-size: 12.5px; white-space: normal; line-height: 1.1; } .ko-knoepfe .kb.gross { flex: 2.2 1 0; min-height: 42px; font-size: 14px; }
  .ko-knoepfe .kb:not(.gross) { flex-direction: column; gap: 0; } .ko-knoepfe .kb:not(.gross) .nm { display: none; } .ko-knoepfe .kb:not(.gross) small { font-size: 11px; display: block; }  .ko-knoepfe .lang { display: none; } .ko-knoepfe .kb small { font-size: 11px; }
  .ko-unten { gap: 4px; } .ko-unten .kb { padding: 3px 8px; min-height: 42px; } .ko-unten .kb-ic { min-height: 42px; width: 42px; } #bAufgeben, #bZeichen { display: none; }
  #miniKarte { width: 92px; height: 70px; left: 6px; bottom: 6px; }
  .kam .kb, .kam .kb-ic { min-height: 42px; min-width: 42px; }
  #meldungen { top: 46px; }
  #platine { inset: 48px 0 0 0; padding: 4px 6px 6px; gap: 4px; grid-template-columns: minmax(0, 1fr) 222px; grid-template-rows: auto minmax(0, 1fr); }
  .pl-kopf { grid-column: 1 / -1; padding: 2px 10px; font-size: 13px; } .pl-kopf b { font-size: 14px; }
  .pl-brett { grid-column: 1; grid-row: 2; height: 100%; width: 78%; aspect-ratio: auto; justify-self: center; }
  .pl-leiste { grid-column: 2; grid-row: 2; width: auto; grid-template-columns: 1fr; align-self: stretch; align-content: start; padding: 6px; gap: 6px; overflow: auto; }
  .pl-rech { height: auto; min-height: 0; font-size: 14px; } .pl-rech span { display: none; } .pl-rech b { font-size: 14px; } #bSpruehen small { font-size: 12px; }
  .pl-knoepfe { justify-content: stretch; gap: 4px; } .pl-knoepfe .kb { flex: 1 1 45%; min-height: 40px; padding: 4px 6px; font-size: 13px; } #bSpruehen { flex-basis: 100%; }
}
#netz.auftakt .bg { animation: fallen .55s cubic-bezier(.3, 1.4, .5, 1) backwards; animation-delay: calc(var(--i) * 18ms); }
@keyframes fallen { from { transform: translateY(-80px) scale(1.15); opacity: 0; } }
#netz.auftakt .kabel { stroke-dasharray: 1; animation: kabelSpannen .9s ease-out backwards; animation-delay: calc(.5s + var(--i) * 12ms); }
@keyframes kabelSpannen { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
#stage.letzte-minute::after { content: ''; position: absolute; inset: 0; z-index: 7; pointer-events: none; border-radius: inherit; box-shadow: inset 0 0 0 4px rgba(216, 52, 30, .8), inset 0 0 60px rgba(216, 52, 30, .45); animation: minutePuls 1s ease-in-out infinite; }
@keyframes minutePuls { 50% { opacity: .35; } }
#stage.letzte-minute #kUhr { transform: scale(1.12); transition: transform .3s; }
#stage:has(#menu:not([hidden])) #meldungen, #stage:has(#ende:not([hidden])) #meldungen { display: none; }
.ktx-menu { position: absolute; z-index: 9; display: flex; flex-direction: column; gap: 5px; min-width: 210px; padding: 8px; border-radius: 10px; background: var(--papier, #f3ecd8); color: #2a2418; border: 2px solid #6b5a30; box-shadow: 0 12px 28px rgba(0, 0, 0, .5); }
.ktx-menu > b { font-size: 14px; padding: 0 2px 2px; } .ktx-menu .kb { justify-content: flex-start; }
.auftraege { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; padding-top: 4px; border-top: 1px dashed rgba(0, 0, 0, .25); font-size: 13px; }
.auftrag { display: flex; align-items: flex-start; gap: 5px; } .auftrag svg { width: 15px; height: 15px; flex: none; margin-top: 2px; }
.auftrag.ok { color: #2f7a3a; font-weight: 700; } .auftrag.fehl { color: #8a4a3a; text-decoration: line-through; opacity: .8; }
.tag-vorschau { margin: 10px 0; padding: 10px 12px; border-radius: 8px; background: rgba(255, 255, 255, .55); border: 1px solid var(--papier-linie); }
.tv-gitter { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 12px; margin: 6px 0; font-size: 14px; }
.tag-vorschau small { font-size: 13px; } .tag-vorschau > span { display: block; margin-top: 2px; }
#stage[data-rang="2"] #tisch, #stage[data-rang="3"] #tisch, #stage[data-rang="4"] #tisch { background-image: linear-gradient(rgba(70, 130, 200, .16) 1px, transparent 1px), linear-gradient(90deg, rgba(70, 130, 200, .16) 1px, transparent 1px), var(--tisch); background-size: 32px 32px, 32px 32px, 112% 112%; }
#stage[data-rang="3"] #koffer::after, #stage[data-rang="4"] #koffer::after { content: 'MEISTER'; position: absolute; right: 10px; top: 6px; padding: 1px 6px; border: 2px solid #b8321e; border-radius: 4px; color: #b8321e; font: 900 10.5px 'Courier New', monospace; transform: rotate(6deg); pointer-events: none; opacity: .85; }
#stage[data-rang="4"] #koffer { background: linear-gradient(160deg, #e8c860, #a8862a); }
#stage[data-rang="4"] #koffer::after { content: 'GROSSMEISTER'; }
@media (prefers-reduced-motion: reduce) { #netz.auftakt .bg, #netz.auftakt .kabel, #stage.letzte-minute::after { animation: none !important; } }
button:focus-visible, [role="button"]:focus-visible, a:focus-visible, .wz:focus-visible, .kachel:focus-visible { outline: 3px solid #ffd24a; outline-offset: 2px; box-shadow: 0 0 0 6px rgba(20, 16, 6, .75); }
.sprecher { position: absolute; left: 12px; top: 12px; z-index: 3; display: flex; align-items: flex-start; gap: 8px; max-width: min(420px, 70%); pointer-events: none; }
.sprecher[hidden] { display: none; }
.sp-figur { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #3a2f1c; border: 2px solid #d9b43a; color: #ffd24a; }
.sp-figur svg { width: 22px; height: 22px; }
.sp-blase { position: relative; padding: 8px 12px; border-radius: 12px; background: #fffaf0; color: #2a2418; font: 600 14.5px/1.3 'Trebuchet MS', sans-serif; box-shadow: 0 6px 16px rgba(0, 0, 0, .45); }
.sp-blase::before { content: ''; position: absolute; left: -7px; top: 14px; border: 7px solid transparent; border-left: 0; border-right-color: #fffaf0; }
.sprecher.an { animation: sprecherEin .35s cubic-bezier(.2, .9, .3, 1.3); } .sprecher.weg { opacity: 0; transition: opacity .35s; }
@keyframes sprecherEin { from { transform: translateY(-12px) scale(.9); opacity: 0; } }
#platine.zugehen { animation: zugehen .3s ease-in forwards; }
@keyframes zugehen { to { transform: scale(.1); opacity: 0; } }
.hauch { fill: #eaf8ff; opacity: .7; transform-box: fill-box; transform-origin: center; animation: hauch 1s ease-out forwards; pointer-events: none; }
@keyframes hauch { from { transform: scale(.3); } to { transform: scale(2.2); opacity: 0; } }
[data-ruhig="1"] *, [data-ruhig="1"] *::before, [data-ruhig="1"] *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
[data-ruhig="1"] .effekt, [data-ruhig="1"] .wellen, [data-ruhig="1"] #stage.letzte-minute::after { display: none !important; }
.me-statistik { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; margin: 2px 0 8px; font-size: 13.5px; }
.me-kurve { width: 120px; height: 30px; } .me-kurve polyline { fill: none; stroke: #b8321e; stroke-width: 2.4; vector-effect: non-scaling-stroke; }
@media (max-width: 900px) {
  :root, [data-ansicht="halle"] { --grund: url(img/halle-q-k.webp); --grund-h: url(img/halle-h-k.webp); --tisch: url(img/tisch-halle-k.webp); }
  [data-ansicht="tag"] { --grund: url(img/tag-q-k.webp); --grund-h: url(img/tag-h-k.webp); --tisch: url(img/tisch-tag-k.webp); }
  [data-ansicht="tv"] { --grund: url(img/tv-q-k.webp); --grund-h: url(img/tv-h-k.webp); --tisch: url(img/tisch-tv-k.webp); }
}
.blatt-z { display: inline-block; min-width: .62em; text-align: center; transform-origin: 50% 50%; }
.blatt-z.klapp { animation: klapp .28s ease-out; }
@keyframes klapp { 0% { transform: rotateX(80deg); filter: brightness(.6); } 100% { transform: none; } }
.siegel { pointer-events: none; } .siegel.offen { animation: siegelAuf .45s cubic-bezier(.2, .9, .3, 1.4); transform-box: fill-box; transform-origin: center; }
@keyframes siegelAuf { from { transform: scale(1.8); } }
.pl-legende { position: absolute; left: 8px; top: 8px; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; max-width: min(300px, 60%); }
.pl-legende .kb.an { background: #ffd24a; color: #2a2006; }
.pl-leg-inhalt { padding: 6px 8px; border-radius: 8px; background: rgba(250, 244, 228, .96); color: #2a2418; font-size: 13px; box-shadow: 0 6px 14px rgba(0, 0, 0, .4); display: flex; flex-direction: column; gap: 3px; }
.pl-leg-inhalt[hidden] { display: none; }
.pl-leg-inhalt > div { display: flex; align-items: center; gap: 6px; } .lg-sym { display: inline-flex; gap: 2px; flex: none; min-width: 46px; }
.lg-k { width: 13px; height: 13px; border-radius: 50%; display: inline-block; border: 1.5px solid #3a2608; } .lg-k.k1 { background: #e6c23a; } .lg-k.k2 { background: #e88a2a; } .lg-k.k3 { background: #d8402a; } .lg-k.k0 { background: #8a8a80; }
.lg-w { width: 14px; height: 14px; display: inline-block; background: #3a6fa8; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.lg-r { font-style: normal; font-weight: 900; color: #ffd2a0; background: #7a3a12; border-radius: 50%; width: 15px; height: 15px; font-size: 10px; display: inline-grid; place-items: center; }
.lg-t { width: 13px; height: 13px; border-radius: 50%; display: inline-block; border: 2px dashed #3fa8d8; }
.lg-s { width: 12px; height: 12px; border-radius: 50%; display: inline-block; background: #b9b9b0; border: 1.5px solid #55554e; }
.lg-kk { width: 14px; height: 10px; display: inline-block; background: repeating-linear-gradient(0deg, #6f7a82 0 2px, transparent 2px 4px); }
.lg-b { width: 18px; height: 5px; display: inline-block; background: #e0c066; border-radius: 3px; }
.lg-z { font-style: normal; font-weight: 900; color: #fff; border-radius: 50%; width: 15px; height: 15px; font-size: 10px; display: inline-grid; place-items: center; } .lg-z.rot { background: #d23a2a; } .lg-z.gruen { background: #2f9a52; }
.buch-filter { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.bu.zeigbar { cursor: pointer; } .bu.zeigbar:hover { background: rgba(255, 210, 74, .18); } .bu-pfeil { margin-left: auto; flex: none; opacity: .6; } .bu-pfeil svg { width: 14px; height: 14px; }
small.geist { color: #9fe0ff; font-weight: 700; } small.geist.vorn { color: #8fff9a; }
[data-ansicht="tag"] small.geist { color: #1e5a8a; } [data-ansicht="tag"] small.geist.vorn { color: #2f7a3a; }
@media (orientation: portrait) and (max-width: 900px) {
  #grund { background-image: var(--grund-h); }
  #stage { grid-template-rows: auto 1fr; }
  #kopf { flex-wrap: wrap; gap: 8px; row-gap: 6px; padding: 6px 10px; }
  .k-pruef { flex: 1 1 auto; } .k-uhr { margin-left: 0; } .roehre { font-size: 24px; }
  .k-bruch { flex-basis: 100%; height: 0; }
  .k-zahl small, #bRegeln .lang { display: none; } .k-knoepfe { margin-left: auto; gap: 4px; } #bRegeln { width: 40px; padding: 0; }
  #kSerie { display: none; }
  #meldungen { top: 116px; }
  #feld { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; gap: 8px; padding: 6px 8px 8px; }
  #tischWrap { padding: 4px 6px 12px; container-type: size; } #tisch { width: min(100cqw, 100cqh); height: min(100cqw, 100cqh); flex: none; }
  #koffer { padding: 20px 8px 8px; display: grid; grid-template-columns: 1fr; gap: 6px; }
  .ko-titel { display: none; }
  .ko-werkzeuge { flex-direction: row; gap: 4px; }
  .wz { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 4px 2px; min-height: 52px; text-align: center; font-size: 12px; }
  .wz .lang { display: none; } .wz .kurz { display: inline; } .wz-wert { font-size: 11px; white-space: nowrap; }
  #bAnsetzen .lang { display: none; } #bAnsetzen .kurz { display: inline; }
  .wz[data-w="rx"] { display: none; }
  .ko-knoepfe .lang { display: none; }
  .ko-werkzeuge { gap: 3px; } .wz { padding: 4px 1px; font-size: 11.5px; min-width: 0; }
  .ko-unten { gap: 4px; } .ko-unten .kb { padding: 4px 10px; }
  .ko-wahl { height: 84px; font-size: 15px; }
  .ko-knoepfe { flex-direction: row; flex-wrap: wrap; height: auto; min-height: 44px; }
  .ko-knoepfe .kb { width: auto; flex: 1 1 45%; }
  #bAufgeben { justify-self: start; margin-top: 0; }
  #miniKarte { width: 104px; height: 80px; left: 6px; bottom: 6px; }
  .tv-gitter { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .en-bericht-gitter { grid-template-columns: 1fr 96px; } .en-zeitraffer { width: 96px; height: 74px; } .en-zahlen { font-size: 12.5px; }
  .ko-knoepfe { flex-wrap: nowrap; } .ko-knoepfe .kb { flex: 1 1 0; min-width: 0; padding: 4px 3px; font-size: 13px; white-space: normal; line-height: 1.15; } .ko-knoepfe .kb:not(.gross) { flex-direction: column; gap: 1px; } .ko-knoepfe .kb:not(.gross) svg { width: 16px; height: 16px; } .ko-knoepfe .kb.gross { flex: 1.5 1 0; font-size: 15px; } .ko-knoepfe .kb small { display: block; font-size: 12px; }
  #platine { inset: 0; padding-top: 104px; grid-template-rows: auto minmax(0, 1fr) auto; }
  .pl-brett { height: auto; width: 90%; max-height: 100%; align-self: center; aspect-ratio: 1 / 1; }
  #stage.pl-offen #koffer, #stage.ende-offen #koffer, #stage.pl-offen #tisch { visibility: hidden; }
  .pl-leiste { grid-template-columns: 1fr; padding: 6px 8px; gap: 6px; } .pl-knoepfe { justify-content: stretch; gap: 6px; } .pl-knoepfe .kb { flex: 1 1 28%; padding: 6px 8px; } #bSpruehen { flex-basis: 100%; }
  .pl-rech { height: 44px; }
  .me-kacheln { grid-template-columns: repeat(4, minmax(0, 1fr)); } .me-stufe { grid-template-columns: 1fr; }
  #menu { padding-top: 12px; }
  .me-tabs { overflow-x: auto; } .me-tabs button { padding: 6px 9px; font-size: 13.5px; white-space: nowrap; flex: 0 0 auto; }
  .me-lauf { flex-wrap: wrap; } .me-lauf .kb { white-space: nowrap; }
  .me-kopf { flex-direction: column; align-items: flex-start; }
  #ende { align-items: flex-start; padding: 108px 10px 12px; }
  .en-karte { width: min(360px, 100%); max-height: 62%; padding: 12px 14px; transform: none; }
  .en-titel { font-size: 22px; } .stern svg { width: 26px; height: 26px; } .en-weg { font-size: 14px; } .en-knoepfe .kb { flex: 1 1 45%; }
}
@media (orientation: portrait) and (max-width: 900px) { .k-bruch { display: block; } }
