:root {
  --holz1: #6b4423; --holz2: #4a2d16; --holzkante: #2b1a0c; --messing: #d9b25a;
  --papier: #f3ead8; --papier2: #e7dcc4; --tinte: #2a2118; --tinte2: #6a5a48; --linie: #c9b994;
  --gut: #2f7d3d; --schlecht: #b3352b; --info: #2b5c8a; --gold: #c9971f;
  --grund: #120d08; --text: #f7eedd; --leise: #cdbb9c;
  --blattbreite: 1100px;
  font-family: system-ui, "Segoe UI", sans-serif;
}
:root[data-ansicht="hell"] { --grund: #e9e1d2; --text: #2a2118; --leise: #6a5a48; --papier: #fbf6ea; --papier2: #f1e8d6; }
:root[data-ansicht="retro"] { --holz1: #5a3218; --holz2: #3a1f0d; --papier: #efe4c8; --papier2: #e2d3ad; --messing: #c8a24a; }
* { box-sizing: border-box; scrollbar-width: thin; scrollbar-color: var(--holz1) transparent; }
*::-webkit-scrollbar { width: 8px; height: 8px; } *::-webkit-scrollbar-thumb { background: var(--holz1); border-radius: 8px; } *::-webkit-scrollbar-track { background: transparent; }
html, body { margin: 0; height: 100%; background: var(--grund); color: var(--text); overflow: hidden; }
button { font: inherit; cursor: pointer; }
button:disabled { opacity: .45; cursor: default; }
input, select { font: inherit; font-size: 16px; }
[hidden] { display: none !important; }
#app { position: fixed; inset: 0; }

#buero { position: absolute; inset: 0; display: flex; flex-direction: column; }
#raum { position: relative; flex: 1; min-height: 0; overflow: hidden; background: #000; }
#raumbild { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; user-select: none; -webkit-user-drag: none; }
#raum::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 40% 30%, rgba(255, 220, 160, .07), transparent 60%); animation: licht 9s ease-in-out infinite alternate; }
@keyframes licht { from { opacity: .6; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { #raum::after { animation: none; } }
#punkte { position: absolute; inset: 0; }
.punkt { position: absolute; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 7px; min-height: 40px; padding: 6px 14px 6px 8px; border-radius: 22px;
  background: linear-gradient(180deg, rgba(36, 24, 12, .9), rgba(20, 13, 6, .92)); color: #fff6e3; border: 1px solid rgba(217, 178, 90, .75);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .45); font-weight: 700; font-size: 14px; white-space: nowrap; transition: transform .12s, background .12s; }
.punkt:hover, .punkt:focus-visible { transform: translate(-50%, -50%) scale(1.06); background: linear-gradient(180deg, #5a3a1a, #3a240f); outline: none; }
.punkt svg { width: 22px; height: 22px; flex: none; }
.punkt .zahl { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--schlecht); color: #fff; font-size: 12px; line-height: 20px; text-align: center; }
#knopfreihe { display: none; }
#leiste { position: relative; display: flex; align-items: stretch; gap: 8px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); flex-wrap: nowrap;
  background: repeating-linear-gradient(90deg, rgba(0, 0, 0, .05) 0 3px, transparent 3px 9px), linear-gradient(180deg, var(--holz1), var(--holz2));
  border-top: 3px solid var(--holzkante); box-shadow: 0 -6px 18px rgba(0, 0, 0, .5); }
.lz { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: 4px 12px; border-radius: 8px; background: rgba(0, 0, 0, .22); border: 1px solid rgba(255, 255, 255, .08); color: #fbeedb; }
.lz span { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #e2c99a; }
.lz b { font-size: 17px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.lz small { font-size: 12px; color: #e9d7b6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lz.breit { flex: 1; } .lz.breit b { overflow: hidden; text-overflow: ellipsis; font-size: 15px; }
.lz .rot { color: #ff9b8e; } .lz .gruen { color: #9fe0a6; }
button.haupt { min-height: 44px; padding: 8px 22px; border-radius: 10px; border: 1px solid #f0d58a; font-weight: 800; font-size: 16px; color: #2b1a05;
  background: linear-gradient(180deg, #f3d27a, #c9971f); box-shadow: 0 3px 0 #7a5810, 0 6px 14px rgba(0, 0, 0, .4); }
button.haupt:hover { filter: brightness(1.07); }
button.haupt:active { transform: translateY(2px); box-shadow: 0 1px 0 #7a5810; }
.lz-knoepfe { display: flex; gap: 6px; align-items: center; }
button.ic { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 9px; border: 1px solid rgba(255, 255, 255, .15); background: rgba(0, 0, 0, .25); color: #fbeedb; }
button.ic svg { width: 20px; height: 20px; }
button.ic:hover { background: rgba(0, 0, 0, .4); }

#blatt { position: absolute; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center; padding: 18px; background: rgba(10, 6, 2, .45); }
.blatt-box { position: relative; width: min(var(--blattbreite), 100%); height: min(760px, 100%); display: flex; flex-direction: column; border-radius: 6px; color: var(--tinte);
  background: radial-gradient(ellipse at 30% 0%, rgba(255, 255, 255, .5), transparent 60%), repeating-linear-gradient(0deg, transparent 0 27px, rgba(150, 120, 70, .08) 27px 28px), linear-gradient(180deg, var(--papier), var(--papier2));
  box-shadow: 0 2px 0 #d8c9a6, 0 4px 0 #cbb98f, 0 24px 60px rgba(0, 0, 0, .55); border: 1px solid #b9a77f; }
.blatt-kopf { display: flex; align-items: center; gap: 12px; padding: 12px 14px 10px 20px; border-bottom: 2px solid var(--linie); }
.blatt-kopf h2 { margin: 0; font-size: 21px; font-family: Georgia, "Times New Roman", serif; white-space: nowrap; }
#blattReiter { display: flex; gap: 4px; flex: 1; overflow-x: auto; }
#blattReiter button { min-height: 40px; padding: 6px 13px; border-radius: 8px 8px 0 0; border: 1px solid var(--linie); border-bottom: 0; background: rgba(0, 0, 0, .04); color: var(--tinte2); font-weight: 700; white-space: nowrap; font-size: 14px; }
#blattReiter button.an { background: #fffaf0; color: var(--tinte); box-shadow: 0 -2px 0 var(--gold) inset; }
.blatt-kopf button.ic { color: var(--tinte); background: rgba(0, 0, 0, .06); border-color: var(--linie); }
#blattInhalt { flex: 1; overflow: auto; padding: 14px 20px 20px; font-size: 14.5px; }
#blattInhalt h3 { margin: 16px 0 8px; font-family: Georgia, serif; font-size: 17px; }
#blattInhalt p { margin: 6px 0 10px; line-height: 1.45; }
.leise { color: var(--tinte2); font-size: 13px; }
.knopf { min-height: 40px; padding: 7px 14px; border-radius: 8px; border: 1px solid #a8926a; background: linear-gradient(180deg, #fffaf0, #eadcbc); color: var(--tinte); font-weight: 700; font-size: 14px; }
.knopf:hover { background: #fff6e0; }
.knopf.gruen { background: linear-gradient(180deg, #7ccf89, #3c9a4d); color: #fff; border-color: #2f7d3d; }
.knopf.rot { background: linear-gradient(180deg, #e98a80, #b3352b); color: #fff; border-color: #8e2920; }
.knopf.an { box-shadow: 0 0 0 2px var(--gold); }
.zeile { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0; }
.kachel-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.kachel { position: relative; padding: 12px 14px; border-radius: 8px; background: rgba(255, 255, 255, .55); border: 1px solid var(--linie); box-shadow: 0 2px 6px rgba(80, 60, 20, .12); }
.kachel h4 { margin: 0 0 4px; font-size: 15px; }
.kachel .preis { font-weight: 800; color: var(--tinte); }
.kachel.aus { opacity: .55; }
.kachel.gewaehlt { outline: 2px solid var(--gold); }
table.liste { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
table.liste th { position: sticky; top: -14px; background: var(--papier2); text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--tinte2); padding: 6px 6px; border-bottom: 2px solid var(--linie); cursor: pointer; white-space: nowrap; }
table.liste td { padding: 6px; border-bottom: 1px solid rgba(160, 130, 80, .25); white-space: nowrap; }
table.liste tr.klick { cursor: pointer; }
table.liste tr.klick:hover td { background: rgba(255, 255, 255, .55); }
table.liste tr.ich td { background: rgba(201, 151, 31, .2); font-weight: 700; }
table.liste tr.auf td:first-child { box-shadow: 4px 0 0 var(--gut) inset; }
table.liste tr.rele td:first-child { box-shadow: 4px 0 0 #c98a1f inset; }
table.liste tr.ab td:first-child { box-shadow: 4px 0 0 var(--schlecht) inset; }
td.z, th.z { text-align: right; }
.pos { display: inline-block; min-width: 28px; padding: 1px 5px; border-radius: 4px; font-size: 11px; font-weight: 800; text-align: center; color: #fff; }
.pos.TW { background: #c9971f; } .pos.AB { background: #2b5c8a; } .pos.MF { background: #2f7d3d; } .pos.ST { background: #b3352b; }
.balken { display: inline-block; width: 70px; height: 8px; border-radius: 4px; background: rgba(0, 0, 0, .12); vertical-align: middle; overflow: hidden; }
.balken i { display: block; height: 100%; background: linear-gradient(90deg, #c9971f, #2f7d3d); }
.stern { color: var(--gold); letter-spacing: 1px; }
.mark { display: inline-block; padding: 1px 6px; border-radius: 4px; font-size: 11px; font-weight: 800; background: var(--schlecht); color: #fff; }
.mark.blau { background: var(--info); } .mark.gruen { background: var(--gut); } .mark.gold { background: var(--gold); }
.wert-gut { color: var(--gut); font-weight: 700; } .wert-schlecht { color: var(--schlecht); font-weight: 700; }
.spaltig { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.kasten { padding: 12px 14px; border-radius: 8px; background: rgba(255, 255, 255, .5); border: 1px solid var(--linie); margin: 8px 0; }
.kasten.warn { background: rgba(179, 53, 43, .1); border-color: rgba(179, 53, 43, .5); }
label.feld { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--tinte2); }
label.feld input, label.feld select { min-height: 40px; padding: 6px 10px; border-radius: 7px; border: 1px solid #a8926a; background: #fffaf0; color: var(--tinte); }
input[type=range] { width: 100%; accent-color: var(--gold); min-height: 30px; }
.news { list-style: none; margin: 0; padding: 0; }
.news li { padding: 7px 4px; border-bottom: 1px dashed var(--linie); line-height: 1.4; }
.news li.gut { color: var(--gut); } .news li.schlecht { color: var(--schlecht); }
.news li small { color: var(--tinte2); margin-right: 6px; }
.zeitung h3 { font-family: Georgia, serif; font-size: 26px; margin: 4px 0 6px; }
.zeitung .kopfzeile { font-family: Georgia, serif; font-size: 13px; letter-spacing: .3em; text-transform: uppercase; border-bottom: 3px double var(--tinte); padding-bottom: 4px; }
.note { display: inline-block; min-width: 34px; padding: 1px 6px; border-radius: 4px; text-align: center; font-weight: 800; color: #fff; }

.tafel { position: relative; width: 100%; max-width: 560px; aspect-ratio: 68/80; margin: 6px auto; border-radius: 10px; border: 6px solid #e8e8e8;
  background: repeating-linear-gradient(0deg, #2f7d32 0 10%, #348a37 10% 20%); box-shadow: 0 6px 18px rgba(0, 0, 0, .35); touch-action: manipulation; }
.tafel::before { content: ""; position: absolute; inset: 4%; border: 2px solid rgba(255, 255, 255, .7); border-radius: 2px;
  background: linear-gradient(rgba(255, 255, 255, .7), rgba(255, 255, 255, .7)) center/100% 2px no-repeat; }
.magnet { position: absolute; transform: translate(-50%, -50%); width: 86px; min-height: 44px; padding: 3px 4px; border-radius: 10px; text-align: center; font-size: 12px; line-height: 1.15;
  background: #fffaf0; color: var(--tinte); border: 2px solid #1e4fa3; box-shadow: 0 3px 8px rgba(0, 0, 0, .35); }
.magnet b { display: block; font-size: 13px; }
.magnet.gewaehlt { outline: 3px solid var(--gold); }
.magnet.fremd { border-color: var(--schlecht); }
.bankreihe { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.bankreihe .magnet { position: static; transform: none; }

#spieltag { position: absolute; inset: 0; z-index: 30; display: flex; flex-direction: column; background: #070a10; color: #f1f4fa; }
#stKopf { display: flex; align-items: center; gap: 12px; padding: 8px 12px; background: linear-gradient(180deg, #111827, #0b111c); border-bottom: 1px solid #263248; }
#stWett { font-size: 13px; color: #c9d3e6; min-width: 0; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#stAnzeige { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.st-team { font-size: 16px; max-width: 26vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#stStand { font: 800 24px/1 ui-monospace, Consolas, monospace; padding: 5px 12px; border-radius: 6px; background: #1d2840; }
#stUhr { font: 700 16px ui-monospace, Consolas, monospace; color: #f2c14e; min-width: 46px; }
#stHin { flex: 1; text-align: right; font-size: 13px; color: #c9d3e6; }
#stBild { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; background: #000; }
#stCanvas { width: 100%; height: 100%; object-fit: contain; display: block; }
#stUhrbild { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(4, 8, 16, .5); pointer-events: none; transition: opacity .3s; }
#stUhrbild.weg { opacity: 0; }
#stKarte { position: absolute; right: 4%; top: 8%; width: 38px; height: 54px; border-radius: 4px; box-shadow: 0 6px 18px rgba(0,0,0,.5); transform: rotate(8deg); animation: karteHoch .35s ease-out; pointer-events: none; }
#stKarte.gelb { background: #f2c21b; } #stKarte.rot { background: #d62c2c; }
#stKarte.gelbrot { background: linear-gradient(135deg, #f2c21b 50%, #d62c2c 50%); }
@keyframes karteHoch { from { transform: translateY(30px) rotate(-10deg); opacity: 0; } to { transform: rotate(8deg); opacity: 1; } }
#stTw { background: #6a2a1d !important; border-color: #b4543c !important; }
.karte-mini { display: inline-block; width: 9px; height: 13px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; }
.karte-mini.gelb { background: #e2b40e; } .karte-mini.rot { background: #c62828; } .karte-mini.gelbrot { background: linear-gradient(135deg, #e2b40e 50%, #c62828 50%); }
#stUhrGross { font: 800 76px/1 ui-monospace, Consolas, monospace; text-shadow: 0 4px 24px rgba(0, 0, 0, .7); }
#stTicker { margin-top: 10px; font-size: 18px; color: #dbe3f2; text-align: center; max-width: 80%; min-height: 26px; }
#stKommentar { padding: 8px 14px; font-style: italic; min-height: 38px; background: #0d1422; border-top: 1px solid #263248; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#stKnoepfe { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 10px; background: #0b111c; }
#stKnoepfe button { min-height: 42px; padding: 6px 14px; border-radius: 8px; border: 1px solid #33456e; background: #1d2944; color: #f1f4fa; font-weight: 700; }
#stKnoepfe button:hover { background: #26365a; }
#stKonferenz { display: flex; gap: 6px; overflow-x: auto; padding: 6px 10px; background: #0b111c; font-size: 12.5px; color: #c9d3e6; min-height: 34px; }
#stKonferenz span { white-space: nowrap; padding: 3px 8px; border-radius: 5px; background: #142036; }
#stKonferenz span.neu { background: #5a4a10; color: #fff; }
#stPanel { position: absolute; left: 50%; bottom: 120px; transform: translateX(-50%); width: min(720px, calc(100% - 20px)); max-height: 60%; overflow: auto; padding: 14px; border-radius: 12px;
  background: #121a2b; border: 1px solid #33456e; box-shadow: 0 18px 50px rgba(0, 0, 0, .6); z-index: 5; }
#stPanel h3 { margin: 0 0 8px; }
#stPanel .reihe { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 12px; }
#stPanel button { min-height: 40px; padding: 6px 10px; border-radius: 8px; border: 1px solid #33456e; background: #1d2944; color: #f1f4fa; font-size: 13px; }
#stPanel button.an { outline: 2px solid #f2c14e; }

#start, #hinweis { position: absolute; inset: 0; z-index: 40; overflow: auto; display: flex; align-items: flex-start; justify-content: center; padding: 20px;
  background: linear-gradient(rgba(18, 12, 6, .55), rgba(18, 12, 6, .75)), url("img/buero-1.webp?v=1") center/cover; }
.start-box { width: min(920px, 100%); margin: auto; padding: 22px 26px; border-radius: 6px; color: var(--tinte);
  background: linear-gradient(180deg, var(--papier), var(--papier2)); border: 1px solid #b9a77f; box-shadow: 0 24px 60px rgba(0, 0, 0, .55); }
.start-box h1 { margin: 0 0 6px; font-family: Georgia, serif; font-size: 34px; }
.start-unter { margin: 0 0 16px; line-height: 1.5; color: var(--tinte2); }
.start-raster { display: grid; grid-template-columns: 1.2fr 1fr; gap: 22px; }
.start-raster label { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; font-size: 13px; color: var(--tinte2); font-weight: 700; }
.start-raster input, .start-raster select { min-height: 42px; padding: 6px 10px; border-radius: 8px; border: 1px solid #a8926a; background: #fffaf0; color: var(--tinte); }
.start-farben, .start-stufe { margin: 8px 0 12px; font-size: 13px; color: var(--tinte2); font-weight: 700; }
.farbwahl { display: flex; flex-wrap: wrap; gap: 6px; margin: 5px 0; }
.farbwahl button { width: 40px; height: 40px; border-radius: 50%; border: 2px solid rgba(0, 0, 0, .25); }
.farbwahl button.an { outline: 3px solid var(--gold); outline-offset: 2px; }
.seg { display: flex; flex-wrap: wrap; gap: 5px; margin: 4px 0 10px; }
.seg button { min-height: 40px; min-width: 40px; padding: 5px 11px; border-radius: 8px; border: 1px solid #a8926a; background: #fffaf0; color: var(--tinte); font-weight: 700; font-size: 13px; }
.seg button.an { background: var(--tinte); color: var(--papier); }
.seg button svg { width: 22px; height: 22px; }
.start-wappen { display: flex; flex-direction: column; align-items: center; }
#sWappen svg { width: 150px; height: 170px; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .35)); }
.wappen-wahl { width: 100%; font-size: 13px; color: var(--tinte2); font-weight: 700; }
.fehler { color: var(--schlecht); font-weight: 700; min-height: 22px; }
.wappen-klein { width: 22px; height: 25px; vertical-align: middle; margin-right: 6px; }

#meldungen { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); z-index: 60; display: flex; flex-direction: column; gap: 8px; width: min(560px, calc(100% - 24px)); pointer-events: none; }
.meldung { padding: 10px 16px; border-radius: 10px; background: rgba(28, 18, 8, .94); color: #fff4df; border: 1px solid var(--messing); box-shadow: 0 10px 28px rgba(0, 0, 0, .5); font-weight: 600; line-height: 1.4; animation: rein .25s; }
.meldung.gut { border-color: #6fcf7d; } .meldung.schlecht { border-color: #ff8a7a; }
@keyframes rein { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
#ki { position: fixed; z-index: 70; max-width: 300px; padding: 9px 12px; border-radius: 8px; background: #1b130a; color: #f7eedd; border: 1px solid var(--messing); font-size: 13px; line-height: 1.45; pointer-events: none; box-shadow: 0 10px 24px rgba(0, 0, 0, .5); }
#ki b { color: #f2c14e; }

@media (max-width: 760px), (orientation: portrait) {
  #raum { flex: none; height: 30vh; }
  .lz small { display: none; }
  #punkte { display: none; }
  #knopfreihe { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 8px; overflow: auto; flex: 1;
    background: repeating-linear-gradient(90deg, rgba(0, 0, 0, .04) 0 3px, transparent 3px 9px), linear-gradient(180deg, #8a6038, #6b4423); }
  #knopfreihe button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 64px; border-radius: 10px; border: 1px solid rgba(217, 178, 90, .6);
    background: rgba(20, 13, 6, .55); color: #fff6e3; font-weight: 700; font-size: 13px; }
  #knopfreihe svg { width: 24px; height: 24px; }
  #leiste { flex-wrap: wrap; gap: 6px; }
  .lz { flex: 1 1 22%; padding: 3px 7px; } .lz b { font-size: 14px; } .lz span { font-size: 10px; } .lz.breit { flex-basis: 100%; }
  #knopfreihe button { min-height: 58px; }
  #bWeiter { flex: 1 1 40%; }
  #blatt { padding: 0; } .blatt-box { height: 100%; border-radius: 0; }
  .blatt-kopf { flex-wrap: wrap; padding: 8px 10px; } .blatt-kopf h2 { font-size: 18px; } #blattReiter { order: 3; flex-basis: 100%; }
  #blattInhalt { padding: 10px 12px 16px; }
  .spaltig, .start-raster { grid-template-columns: 1fr; }
  .st-team { font-size: 13px; } #stStand { font-size: 20px; } #stUhrGross { font-size: 54px; }
  #stKnoepfe button { flex: 1 1 30%; padding: 6px 8px; font-size: 13px; }
  table.liste { font-size: 12.5px; } .hand-weg { display: none; }
}
@media (pointer: coarse) { .punkt { min-height: 44px; } }

#leiste .neben { min-height: 44px; padding: 6px 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,.25); background: rgba(20,28,44,.85); color: #f1f4fa; font-weight: 700; font-size: 13px; }
#leiste .neben:hover { background: rgba(38,54,90,.95); }
.vb-kopf { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.vb-kopf h3 { margin: 0; display: flex; align-items: center; gap: 8px; }
.vb-form { display: inline-flex; gap: 4px; }
.vb-form span { width: 26px; height: 26px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; font-size: 13px; }
.vb-form .s { background: #2f7d3d; } .vb-form .u { background: #8a7a32; } .vb-form .n { background: #b3352b; }
.vgl { display: grid; grid-template-columns: 1fr 110px 1fr; gap: 6px 10px; align-items: center; margin: 10px 0; }
.vgl .l { display: flex; justify-content: flex-end; } .vgl .m { text-align: center; font-weight: 700; }
.vgl i { display: block; height: 14px; border-radius: 4px; background: #2f62c4; }
.vgl .r i { background: #c0392b; }
.vgl b { min-width: 40px; display: inline-block; text-align: center; font-variant-numeric: tabular-nums; }
.stilwahl { display: grid; grid-template-columns: 130px 1fr 50px; gap: 4px 10px; align-items: center; }
.stilwahl i { display: block; height: 12px; border-radius: 4px; background: #6a9a3a; }
.stilwahl .empf { font-weight: 800; color: #2f7d3d; }
.ereignis-text { font-size: 17px; line-height: 1.5; }
.ereignis-wahl { display: grid; gap: 10px; margin-top: 14px; }
.ereignis-wahl button { text-align: left; min-height: 56px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--rand, #c9b98f); background: var(--kachel, #fffaf0); color: inherit; font: inherit; cursor: pointer; }
.ereignis-wahl button:hover { outline: 2px solid #f2c14e; }
.ereignis-wahl button b { display: block; font-size: 16px; }
.unscharf { opacity: .8; font-style: italic; }
.kurve { width: 100%; max-width: 520px; height: 140px; display: block; }
.kurve-klein { width: 110px; height: 30px; display: block; }
.rekorde td:first-child { font-weight: 700; white-space: nowrap; }
.anw-aktiv { outline: 2px solid #f2c14e; }
@media (max-width: 760px) { #leiste .neben { flex: 1 1 40%; } }
#stPanel .leise { color: #c4cde0; }
.vgl .l, .vgl .r { display: flex; align-items: center; gap: 6px; min-width: 0; }
.vgl i { flex: 0 1 auto; min-width: 4px; }
.vgl b { flex: 0 0 auto; min-width: 26px; }
@media (max-width: 760px) { .vgl { grid-template-columns: 1fr 78px 1fr; } .vgl .m { font-size: 12px; } }

.kabine { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin-top: 8px; }
.kabine .knopf { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; height: auto; padding: 10px 12px; white-space: normal; }
.kabine .knopf span { font-weight: 400; font-size: 13px; line-height: 1.35; opacity: .85; }
.anleitung { max-width: 820px; margin: 0 auto; line-height: 1.55; }
.anleitung h1 { display: none; }
.anleitung h2 { margin: 22px 0 8px; font-family: Georgia, serif; font-size: 19px; border-bottom: 1px solid var(--linie); padding-bottom: 4px; }
.anleitung p, .anleitung li { margin: 6px 0; }
.anleitung ul { padding-left: 22px; }
.anleitung .anl-kurz { background: rgba(255, 255, 255, .55); border: 1px solid var(--linie); border-radius: 8px; padding: 10px 14px; }
.anleitung table { border-collapse: collapse; width: 100%; margin: 8px 0; font-size: 13.5px; }
.anleitung th, .anleitung td { border-bottom: 1px solid var(--linie); padding: 5px 8px; text-align: left; vertical-align: top; }
.anleitung th { background: rgba(0, 0, 0, .05); }
#ki:has(.mvgl) { max-width: min(480px, 94vw); }
.mvgl { border-collapse: collapse; width: 100%; margin: 6px 0; font-size: 12.5px; }
.mvgl th, .mvgl td { padding: 2px 6px; text-align: left; white-space: nowrap; }
.mvgl .z { text-align: right; }
.mvgl thead th { font-weight: 600; opacity: .75; border-bottom: 1px solid rgba(200, 162, 74, .45); }
.mvgl tr.neu td { background: rgba(242, 193, 78, .18); }
#ki .leise { color: #cdbf9f; }
.mvglk .mvgl { font-size: 13px; }
.kachel.gebaut { box-shadow: 0 0 0 2px #3f8f4f inset; }
.ansicht-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.ansicht-kachel { display: flex; flex-direction: column; gap: 6px; padding: 6px; border: 1px solid var(--linie); border-radius: 8px; background: rgba(255, 255, 255, .5); color: var(--tinte); font-weight: 700; cursor: pointer; text-align: left; }
.ansicht-kachel img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 5px; }
.ansicht-kachel.an { box-shadow: 0 0 0 3px var(--gold) inset; }
#lzNaechstes { cursor: pointer; }
.spielplan .sp-vorbei td { opacity: .6; }
.spielplan .sp-naechst td { background: rgba(242, 193, 78, .22); font-weight: 700; }
.sp-mark { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.sp-mark.sp-top { background: #e9a99e; color: #6a130a; }
.sp-mark.sp-schwer { background: #f6d8c4; color: #7a3a12; }
.sp-mark.sp-mittel { background: #ece3c8; color: #5a4a20; }
.sp-mark.sp-leicht { background: #cfe8cf; color: #1d5a24; }
.spielplan .sp-s { color: #1d6a28; } .spielplan .sp-n { color: #a3271a; }
.stadion-kopf { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; align-items: start; }
.stadion-kopf .balken { display: inline-block; vertical-align: middle; margin-left: 10px; }
.stadion-kopf table.mini { border-collapse: collapse; width: 100%; font-size: 13px; margin: 4px 0; }
.stadion-kopf table.mini td { padding: 1px 4px; } .stadion-kopf table.mini .z { text-align: right; }
@media (max-width: 760px) { .stadion-kopf { grid-template-columns: 1fr; } }
.stadion-bild { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 420px)); gap: 12px; margin: 8px 0; }
.stadion-bild canvas { width: 100%; height: auto; border-radius: 6px; border: 1px solid var(--linie); background: #0b1428; display: block; }
.stil-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.stil-kachel { display: flex; flex-direction: column; gap: 5px; padding: 5px; border: 1px solid var(--linie); border-radius: 8px; background: rgba(255, 255, 255, .5); color: var(--tinte); font-weight: 700; cursor: pointer; }
.stil-kachel canvas { width: 100%; height: auto; border-radius: 4px; display: block; }
.stil-kachel.an { box-shadow: 0 0 0 3px var(--gold) inset; }
