@font-face{font-family:'SGZ Ziffern';src:local('Times New Roman'),local('TimesNewRomanPSMT'),local('Liberation Serif'),local('LiberationSerif'),local('Tinos'),local('Noto Serif'),local('NotoSerif-Regular');font-weight:100 600;unicode-range:U+0030-0039}
@font-face{font-family:'SGZ Ziffern';src:local('Times New Roman Bold'),local('TimesNewRomanPS-BoldMT'),local('Liberation Serif Bold'),local('LiberationSerif-Bold'),local('Tinos Bold'),local('Noto Serif Bold'),local('NotoSerif-Bold');font-weight:700 900;unicode-range:U+0030-0039}
:root {
  --bg:#2a2016; --text:#fbf3e2; --kopf:'SGZ Ziffern', Georgia, 'Times New Roman', serif; --sans:'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
  --messing-a:#ecc874; --messing-b:#a8792a; --messing-k:#6a4a16; --messing-t:#2c1a06;
  --karton:#f4ecd8; --karton-2:#e8dcbe; --karton-t:#241a10; --karton-dim:#5a4a36; --karton-linie:rgba(110,80,40,.28);
  --akz:#9b3b2e; --akz-t:#fff3e6; --gold:#b88a1e; --rot:#a8321f; --gruen:#3f6f2c;
  --dlg-a:rgba(248,242,228,.97); --dlg-b:rgba(236,226,204,.98); --dlg-t:#241a10; --dlg-gruen:#2f6a2a; --dlg-dim:#5a4a36; --dlg-linie:rgba(110,80,40,.3);
  --kn-a:#f4e8cc; --kn-b:#dcc79a; --kn-t:#3a2410; --kn-rand:#7a5426;
  --mel-a:rgba(34,26,18,.93); --mel-t:#fbf3e2; --scrim:rgba(20,14,8,.42); --abdunkeln:rgba(20,14,6,.05);
  --grund-q:url(img/ort-tag-q.webp?v=1); --grund-h:url(img/ort-tag-h.webp?v=1);
  --grund-farbe:linear-gradient(#bcd2e2 0%, #e9d9b8 40%, #a07a4c 60%, #7a5630 100%);
  --licht:rgba(255,236,180,.16);
}
:root[data-ans="abend"] {
  --grund-q:url(img/ort-abend-q.webp?v=1); --grund-h:url(img/ort-abend-h.webp?v=1);
  --grund-farbe:linear-gradient(#1c2240 0%, #4a3a4a 40%, #4a3020 60%, #2a1a0e 100%);
  --abdunkeln:rgba(10,8,16,.1); --licht:rgba(255,190,100,.12);
  --dlg-a:rgba(40,30,22,.97); --dlg-b:rgba(28,20,14,.98); --dlg-t:#fbf1dc; --dlg-gruen:#9ed88a; --dlg-dim:#e6d4b0; --dlg-linie:rgba(240,200,140,.3);
  --kn-a:#5c4630; --kn-b:#3c2c1c; --kn-t:#fbeccb; --kn-rand:#2a1c0e; --akz:#e8907a; --akz-t:#2a1408;
}
:root[data-ans="hell"] {
  --grund-q:url(img/ort-hell-q.webp?v=1); --grund-h:url(img/ort-hell-h.webp?v=1);
  --grund-farbe:linear-gradient(#eef2f4 0%, #f2ece0 40%, #d8c4a4 60%, #c0a47c 100%);
  --abdunkeln:rgba(30,30,40,.04); --licht:rgba(255,255,240,.12);
  --karton:#f6f0e2; --karton-2:#ebe2cc;
}
* { box-sizing:border-box; }
html, body { margin:0; height:100%; overflow:hidden; background:var(--bg); color:var(--text); font-family:var(--sans); -webkit-tap-highlight-color:transparent; }
button { font:inherit; color:inherit; cursor:pointer; }
.zf { font-variant-numeric:lining-nums tabular-nums; font-kerning:none; }
#wrap { position:fixed; inset:0; display:flex; align-items:center; justify-content:center; overflow:clip; }
#stage { position:relative; width:1280px; height:800px; transform-origin:center center; overflow:clip; flex:none; }
#grund { position:absolute; inset:0; background:var(--grund-q) center / cover no-repeat, var(--grund-farbe); }
#grund::after { content:""; position:absolute; inset:0; background:var(--abdunkeln); }
#stage.hoch #grund { background-image:var(--grund-h), var(--grund-farbe); }
#licht { position:absolute; left:12%; top:0; width:42%; height:88%; pointer-events:none; clip-path:polygon(28% 0, 62% 0, 100% 100%, 46% 100%);
  background:linear-gradient(180deg, var(--licht), transparent 85%); filter:blur(10px); animation:licht 11s ease-in-out infinite alternate; }
#stage.hoch #licht { left:4%; width:60%; height:50%; }
@keyframes licht { from { opacity:.5; } to { opacity:1; } }
@media (prefers-reduced-motion: reduce) { #licht { animation:none; } }
#spiel { position:absolute; inset:0; }

#flaeche { position:absolute; touch-action:none; border-radius:12px; background:#5a3a20 url(img/tisch.webp?v=1) center / cover;
  box-shadow:0 22px 40px rgba(20,10,0,.55), 0 6px 12px rgba(20,10,0,.4), inset 0 0 0 3px rgba(60,34,14,.7), inset 0 2px 0 5px rgba(255,220,170,.12); }
#flaeche::after { content:""; position:absolute; left:0; right:0; bottom:-10px; height:10px; border-radius:0 0 10px 10px; background:linear-gradient(#3e2410, #24140a); pointer-events:none; }
#cv { position:absolute; inset:0; display:block; cursor:crosshair; }

.karte { position:absolute; padding:10px; border-radius:12px; background:linear-gradient(150deg, var(--messing-a), var(--messing-b) 70%, #8a6020);
  box-shadow:0 14px 28px rgba(20,10,0,.45), inset 0 1px 0 rgba(255,245,210,.6), inset 0 -2px 0 rgba(0,0,0,.25); }
.k-blatt { background:repeating-linear-gradient(0deg, rgba(120,90,40,.05) 0 2px, transparent 2px 5px), linear-gradient(var(--karton), var(--karton-2)); background-color:var(--karton);
  color:var(--karton-t); border-radius:5px; padding:10px 14px 10px; box-shadow:inset 0 0 14px rgba(120,90,40,.2); }
.k-kopf { font:700 19px/1.25 var(--kopf); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.k-unter { font-size:13.5px; color:var(--karton-dim); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; min-height:18px; margin-bottom:6px; font-style:italic; }
.k-zahl { display:flex; align-items:baseline; gap:8px; border-top:1px solid var(--karton-linie); padding-top:6px; }
.k-zahl b { font:700 32px var(--kopf); } .k-zahl span { font-size:13px; color:var(--karton-dim); }
.k-fort { margin:6px 0 4px; } .k-fort span { font-size:13.5px; color:var(--karton-dim); }
.k-balken { position:relative; height:16px; border-radius:8px; background:#d9cdb4; box-shadow:inset 0 1px 3px rgba(0,0,0,.25); overflow:visible; margin-bottom:3px; }
.k-balken i { position:absolute; left:0; top:0; bottom:0; width:0; border-radius:8px; background:linear-gradient(#2a2a30, #121216); transition:width .3s; }
.k-balken i.voll { background:linear-gradient(#c0503a, #8a2a1a); }
.k-marke { position:absolute; left:75%; top:-4px; bottom:-4px; width:2px; background:var(--karton-t); }
.k-stern { position:absolute; top:-7px; width:14px; height:14px; margin-left:-7px; color:#8a6410; pointer-events:none; } .k-stern svg { width:100%; height:100%; display:block; }
.k-stern.s2 { left:85%; } .k-stern.s3 { left:95%; }
.mini-bild { display:inline-block; width:34px; height:25px; border-radius:3px; background:#1b1a20 center / cover; vertical-align:middle; margin-right:6px; }
#endeLeiste { position:absolute; left:50%; bottom:16px; transform:translateX(-50%); z-index:8; display:flex; gap:10px; padding:8px 10px; border-radius:12px; background:var(--dlg-a); box-shadow:0 8px 20px rgba(0,0,0,.4); }
#endeLeiste[hidden] { display:none; }
.schalter-liste { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin:10px 0; width:600px; max-width:100%; }
.schalter { display:grid; grid-template-columns:1fr auto; grid-template-rows:auto auto; text-align:left; gap:0 10px; padding:8px 12px; min-height:56px; border-radius:10px; border:1px solid var(--dlg-linie); background:rgba(255,255,255,.3); color:var(--dlg-t); }
.schalter b { font:700 15px var(--kopf); } .schalter span { grid-column:1; font-size:13px; color:var(--dlg-dim); line-height:1.25; }
.schalter em { grid-column:2; grid-row:1 / 3; align-self:center; font-style:normal; font-weight:700; font-size:13px; padding:4px 10px; border-radius:12px; background:#cfc3a8; color:#3a2a18; }
.schalter.an em { background:#2f6a2a; color:#fff; }
#stage.hoch .schalter-liste { grid-template-columns:1fr; } #stage.hoch .schalter b { font-size:17px; } #stage.hoch .schalter span { font-size:14px; }
#stage.quer-handy .schalter-liste { gap:5px; margin:6px 0; } #stage.quer-handy .schalter { min-height:48px; padding:5px 10px; } #stage.quer-handy .schalter span { display:none; }
.abz-liste { display:grid; grid-template-columns:repeat(2, 1fr); gap:6px 12px; margin:8px 0; width:620px; max-width:100%; }
.abz { display:flex; gap:8px; align-items:center; padding:5px 8px; border-radius:8px; border:1px solid var(--dlg-linie); background:rgba(255,255,255,.3); }
.abz i { flex:none; width:30px; height:36px; } .abz i svg { width:100%; height:100%; display:block; }
.abz b { display:block; font:700 14.5px var(--kopf); } .abz small { display:block; font-size:12.5px; color:var(--dlg-dim); line-height:1.25; }
.abz.aus i { filter:grayscale(1) opacity(.4); } .abz.aus b { color:var(--dlg-dim); }
#stage.hoch .abz-liste { grid-template-columns:1fr; } #stage.hoch .abz b { font-size:16px; } #stage.hoch .abz small { font-size:14px; }
#stage.quer-handy .abz-liste { gap:4px 10px; } #stage.quer-handy .abz small { display:none; }
.abz-toast { position:absolute; z-index:12; transform:translateX(-50%); display:flex; gap:12px; align-items:center; padding:10px 18px 10px 12px; border-radius:14px; pointer-events:none;
  background:linear-gradient(#2a2a4a, #18182e); color:#f2ecdc; border:2px solid #c9a24a; box-shadow:0 12px 30px rgba(0,0,0,.5), 0 0 24px rgba(255,211,106,.35); animation:abzEin .55s cubic-bezier(.3,1.5,.5,1); }
.abz-toast i { width:42px; height:50px; flex:none; animation:abzOrden 1.2s ease-in-out .3s; } .abz-toast i svg { width:100%; height:100%; display:block; }
.abz-toast small { display:block; font-size:12.5px; letter-spacing:2px; text-transform:uppercase; color:#ffd36a; } .abz-toast b { display:block; font:700 19px var(--kopf); } .abz-toast em { display:block; font-style:normal; font-size:13.5px; color:#d8d2e2; }
.abz-toast.weg { opacity:0; transform:translateX(-50%) translateY(-16px); transition:opacity .4s, transform .4s; }
@keyframes abzEin { 0% { opacity:0; transform:translateX(-50%) translateY(-40px) scale(.7); } 100% { opacity:1; transform:translateX(-50%); } }
@keyframes abzOrden { 0%, 100% { transform:rotate(0); } 25% { transform:rotate(-14deg) scale(1.15); } 60% { transform:rotate(10deg); } }
@media (prefers-reduced-motion: reduce) { .abz-toast, .abz-toast i { animation:none; } }
.flug { position:absolute; left:0; top:0; z-index:9; pointer-events:none; width:46px; height:46px; filter:drop-shadow(0 6px 8px rgba(0,0,0,.45)); will-change:transform; }
.flug img, .flug svg { width:100%; height:100%; display:block; }
.flug.garn-weg { width:30px; height:30px; opacity:.9; }
.flug.prozent { width:auto; height:auto; }
.flug .pz { display:block; white-space:nowrap; font:700 20px var(--kopf); color:#d8f0b0; padding:2px 8px; border-radius:10px; background:rgba(20,30,10,.82); box-shadow:0 0 0 1px rgba(216,240,176,.5); }
.blitz { animation:kBlitz .7s ease-out; }
@keyframes kBlitz { 0% { box-shadow:0 0 0 0 rgba(255,214,90,.9); filter:brightness(1.35); } 100% { box-shadow:0 0 0 14px rgba(255,214,90,0); filter:none; } }
.blitz-gruen { animation:kGruen 1.2s ease-out; }
@keyframes kGruen { 0% { background:rgba(80,180,70,.55); transform:scale(1.04); } 100% { background:transparent; transform:none; } }
.hupf { display:inline-block; animation:kHupf .45s cubic-bezier(.3,1.7,.5,1); }
@keyframes kHupf { 0% { transform:scale(1); } 40% { transform:scale(1.25); } 100% { transform:scale(1); } }
.k-zahl { position:relative; }
.k-plus { position:absolute; left:52%; top:-4px; font:700 16px var(--kopf); font-style:normal; color:#2f6a2a; pointer-events:none; animation:kPlus 1.3s ease-out forwards; }
@keyframes kPlus { 0% { opacity:0; transform:translateY(6px); } 15% { opacity:1; } 100% { opacity:0; transform:translateY(-22px); } }
.stern-pop { animation:kStern .8s cubic-bezier(.3,1.8,.5,1); }
@keyframes kStern { 0% { transform:scale(1); } 35% { transform:scale(2.2) rotate(25deg); color:#ffcf40; } 100% { transform:scale(1); } }
.k-funken { position:absolute; top:50%; width:4px; height:4px; margin:-2px; border-radius:50%; pointer-events:none;
  box-shadow:0 -14px 0 1px #ffd36a, 10px -10px 0 1px #ffd36a, 14px 0 0 1px #ffd36a, 10px 10px 0 1px #ffd36a, 0 14px 0 1px #ffd36a, -10px 10px 0 1px #ffd36a, -14px 0 0 1px #ffd36a, -10px -10px 0 1px #ffd36a;
  animation:kFunken .9s ease-out forwards; }
@keyframes kFunken { 0% { transform:scale(.3); opacity:1; } 100% { transform:scale(1.6); opacity:0; } }
@media (prefers-reduced-motion: reduce) { .blitz, .blitz-gruen, .hupf, .stern-pop, .k-plus, .k-funken { animation:none; } }
.gal-t { display:block; font-size:12.5px; line-height:1.2; min-height:30px; text-align:center; color:var(--dlg-t); overflow:hidden; }
.gal-gross { display:block; width:100%; max-height:62vh; object-fit:contain; border-radius:6px; box-shadow:0 8px 20px rgba(0,0,0,.35); margin:6px 0; }
#stage.hoch .gal-t { font-size:13.5px; } #stage.quer-handy .gal-unter, #stage.quer-handy .gal-t { display:none; }
.k-reihe { display:flex; justify-content:space-between; align-items:center; gap:8px; border-top:1px solid var(--karton-linie); padding-top:5px; margin-top:4px; }
.k-reihe b { font:700 20px var(--kopf); } .k-reihe b.knapp { color:var(--rot); }
.k-reihe.klein { font-size:13px; color:var(--karton-dim); white-space:nowrap; } .k-reihe.klein b { font-size:14px; color:var(--karton-t); }
.tempo { font-weight:600; color:#6a5a1e; } .tempo.rot { color:var(--rot); }
.garne { display:inline-flex; gap:2px; min-height:26px; } .garne i { width:26px; height:26px; display:inline-block; } .garne svg { width:100%; height:100%; }
#k-lage { margin-top:6px; min-height:84px; max-height:84px; overflow:hidden; font-size:14px; line-height:1.36; color:var(--karton-t);
  background:rgba(140,100,50,.12); border-radius:4px; padding:4px 8px; }
#k-lage.warn { background:rgba(168,50,31,.14); color:var(--rot); font-weight:600; }
.karte.leiste .k-blatt { display:grid; grid-template-columns:1.5fr .9fr 1fr; column-gap:12px; row-gap:2px; padding:8px 12px; align-items:center; }
.karte.leiste .k-kopf { grid-column:1; grid-row:1; font-size:18px; } .karte.leiste .k-unter { grid-column:1; grid-row:2; margin:0; font-size:14px; }
.karte.leiste .k-zahl { grid-column:2; grid-row:1 / 3; border:0; padding:0; flex-direction:column; gap:0; } .karte.leiste .k-zahl b { font-size:28px; } .karte.leiste .k-zahl span { font-size:14px; }
.karte.leiste .k-fort { grid-column:3; grid-row:1 / 3; margin:0; } .karte.leiste .k-fort span { font-size:14px; }
.karte.leiste .k-reihe { grid-column:1 / 3; grid-row:3; } .karte.leiste .k-reihe.klein { grid-column:3; grid-row:3; justify-content:flex-end; }
.karte.leiste .k-reihe.klein > span:first-child { display:none; }
.karte.leiste #k-lage { grid-column:1 / -1; grid-row:4; min-height:50px; max-height:50px; font-size:14.5px; line-height:1.32; }
.karte.leiste .k-unter { white-space:normal; line-height:1.2; }
.karte.dicht { padding:7px; } .karte.dicht .k-blatt { padding:6px 10px; } .karte.dicht .k-zahl b { font-size:26px; } .karte.dicht #k-lage { min-height:84px; max-height:84px; font-size:14px; }
.karte.dicht .k-reihe.klein > span:first-child { display:none; }

.kb { display:inline-flex; align-items:center; justify-content:center; gap:7px; min-height:44px; padding:8px 14px; border-radius:9px;
  background:linear-gradient(var(--kn-a), var(--kn-b)); color:var(--kn-t); border:1px solid var(--kn-rand); font-weight:600; font-size:15px;
  box-shadow:0 3px 0 var(--kn-rand), 0 6px 12px rgba(0,0,0,.25); }
.kb:active { transform:translateY(2px); box-shadow:0 1px 0 var(--kn-rand), 0 3px 6px rgba(0,0,0,.25); }
.kb svg { width:20px; height:20px; }
.kb.messing { background:linear-gradient(var(--messing-a), var(--messing-b)); color:var(--messing-t); border-color:var(--messing-k); box-shadow:0 3px 0 var(--messing-k), 0 6px 12px rgba(0,0,0,.3); }
.kb.gruen { background:linear-gradient(#4a8232, #2c5a1c); color:#fbfff4; border-color:#2a4a1c; box-shadow:0 3px 0 #2a4a1c, 0 6px 12px rgba(0,0,0,.25); }
.kb.gesperrt { opacity:.5; border-style:dashed; cursor:not-allowed; }
#knoepfe { position:absolute; display:flex; gap:12px; align-items:center; z-index:4; }
#knoepfe.spalte { flex-direction:column; align-items:stretch; }
.kb.siegel { width:120px; height:120px; border-radius:50%; flex-direction:column; gap:0; padding:0; color:#fff4ea; border:3px solid #6a1a10;
  background:radial-gradient(circle at 35% 30%, #b84a36, #8a2e22 55%, #5a140c); text-shadow:0 1px 2px rgba(0,0,0,.55); box-shadow:0 4px 0 #4a1008, 0 10px 18px rgba(0,0,0,.35), inset 0 0 0 6px rgba(255,200,180,.18); }
.kb.siegel b, .kb.siegel small { pointer-events:none; } .kb.siegel b { font:700 22px var(--kopf); } .kb.siegel small { font-size:13px; color:#fff; }
.kb.siegel.an { background:radial-gradient(circle at 35% 30%, #ff9a7a, #c8402c 55%, #8a2214); box-shadow:0 1px 0 #4a1008, 0 0 18px 4px rgba(255,120,80,.55), inset 0 0 0 6px rgba(255,230,210,.35); transform:translateY(3px); }
.kb.zettel { background:repeating-linear-gradient(0deg, rgba(120,90,40,.06) 0 2px, transparent 2px 5px), linear-gradient(var(--karton), var(--karton-2)); background-color:var(--karton); color:var(--karton-t); border-color:#a89068; box-shadow:0 3px 0 #a89068, 0 6px 12px rgba(0,0,0,.25); transform:rotate(-2deg); }
#knoepfe:not(.spalte) .kb.siegel { width:108px; height:108px; } #knoepfe:not(.spalte) .kb.siegel b { font-size:18px; } #knoepfe:not(.spalte) .kb.siegel small { font-size:12.5px; }
#kopf { position:absolute; top:12px; right:12px; display:flex; gap:8px; z-index:5; }
.kb-ic { width:44px; height:44px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; padding:0;
  background:linear-gradient(var(--kn-a), var(--kn-b)); color:var(--kn-t); border:1px solid var(--kn-rand); box-shadow:0 2px 0 var(--kn-rand), 0 4px 10px rgba(0,0,0,.25); }
.kb-ic svg { width:22px; height:22px; }

#scheibe { position:absolute; z-index:4; touch-action:none; border-radius:50%; }
.sch-ring { position:absolute; inset:0; border-radius:50%; background:radial-gradient(circle, #6a4322 0 38%, #4a2c14 60%, #3a220c 100%);
  box-shadow:0 10px 22px rgba(20,10,0,.45), inset 0 0 0 6px var(--messing-b), inset 0 0 0 8px var(--messing-k), inset 0 3px 8px rgba(0,0,0,.5); }
.sch-p { position:absolute; width:22%; height:22%; color:var(--messing-a); display:flex; align-items:center; justify-content:center; opacity:.75; }
.sch-p svg { width:100%; height:100%; } .sch-p.an { color:#fff2c8; opacity:1; filter:drop-shadow(0 0 4px rgba(255,220,140,.9)); }
.sch-p[data-d="4"] { left:39%; top:6%; } .sch-p[data-d="8"] { left:39%; bottom:6%; } .sch-p[data-d="1"] { left:6%; top:39%; } .sch-p[data-d="2"] { right:6%; top:39%; }
#sch-knopf { position:absolute; left:32%; top:32%; width:36%; height:36%; border-radius:50%; pointer-events:none;
  background:radial-gradient(circle at 35% 30%, #fff0b8, #e2b648 45%, #9a6c1c 85%); box-shadow:0 3px 6px rgba(0,0,0,.5), inset 0 -2px 2px rgba(0,0,0,.25); transition:transform .06s; }

#meld { position:absolute; left:50%; transform:translateX(-50%); top:64px; display:flex; flex-direction:column; align-items:center; gap:6px; pointer-events:none; z-index:6; }
.mel { background:var(--mel-a); color:var(--mel-t); padding:8px 16px; border-radius:20px; font-size:15px; box-shadow:0 6px 16px rgba(0,0,0,.35); transition:opacity .4s; max-width:100%; text-align:center; }
.mel.rot { background:rgba(150,40,20,.94); } .mel.gold { background:rgba(112,80,10,.95); }
.mel.weg { opacity:0; }
#lehrzettel { position:absolute; z-index:5; padding:10px 14px; border-radius:6px; pointer-events:none; color:var(--karton-t);
  background:repeating-linear-gradient(0deg, rgba(120,90,40,.06) 0 2px, transparent 2px 5px), linear-gradient(var(--karton), var(--karton-2)); background-color:var(--karton);
  box-shadow:0 8px 18px rgba(0,0,0,.4); border-left:5px solid var(--akz); }
#lehrzettel[hidden] { display:none; }
#lehrzettel b { font:700 15px var(--kopf); color:var(--akz); } #lehrzettel p { margin:3px 0 0; font-size:15.5px; line-height:1.4; }
#lampe { position:absolute; inset:0; border-radius:12px; pointer-events:none; display:none; }
:root[data-ans="abend"] #lampe { display:block; background:radial-gradient(ellipse 70% 60% at 45% 35%, rgba(255,190,110,.16), rgba(255,170,80,.04) 55%, rgba(10,6,20,.34) 100%); mix-blend-mode:normal; }
:root[data-ans="hell"] #flaeche { filter:brightness(1.08) saturate(.92); }

#ov { position:absolute; inset:0; z-index:20; display:flex; align-items:center; justify-content:center; background:var(--scrim); }
#ov[hidden] { display:none; }
.dlg { position:relative; max-width:min(780px, 94%); max-height:92%; overflow:auto; padding:22px 26px 20px; border-radius:14px;
  background:linear-gradient(var(--dlg-a), var(--dlg-b)); color:var(--dlg-t); box-shadow:0 20px 50px rgba(0,0,0,.5);
  scrollbar-width:thin; scrollbar-color:var(--messing-b) transparent; }
.dlg::-webkit-scrollbar { width:8px; } .dlg::-webkit-scrollbar-thumb { background:var(--messing-b); border-radius:4px; }
.dlg .zu { position:sticky; float:right; top:0; margin:-8px -10px 0 8px; width:40px; height:40px; border-radius:50%; border:1px solid var(--dlg-linie);
  background:var(--dlg-a); color:var(--dlg-t); font-size:24px; line-height:1; z-index:2; }
.dlg h2 { font:700 26px/1.2 var(--kopf); margin:0 0 4px; }
.dlg h3 { font:700 17px var(--kopf); margin:12px 0 6px; }
.dlg p { margin:6px 0; line-height:1.5; }
.dlg .unter { color:var(--dlg-dim); margin:0 0 12px; font-size:14px; }
.knopfreihe { display:flex; gap:10px; flex-wrap:wrap; margin-top:14px; }
.menue { width:700px; max-width:100%; }
.modi { display:grid; grid-template-columns:repeat(2, 1fr); gap:10px; margin:10px 0 6px; }
.modus { text-align:left; padding:10px 12px; border-radius:10px; border:1px solid var(--dlg-linie); background:rgba(255,255,255,.3); color:var(--dlg-t); min-height:78px; }
:root[data-ans="abend"] .modus { background:rgba(255,255,255,.06); }
.modus b { display:block; font:700 17px var(--kopf); margin-bottom:2px; }
.modus span { font-size:13px; color:var(--dlg-dim); line-height:1.3; display:block; }
.modus em { font-style:normal; font:700 13px var(--kopf); color:var(--akz); display:block; margin-top:3px; }
.modus.haupt { border:2px solid var(--gold); }
.zeile-unten { display:flex; gap:8px; flex-wrap:wrap; align-items:center; margin-top:8px; }
.ansichten { display:flex; flex-wrap:wrap; gap:6px; align-items:center; }
.ansichten button { padding:5px 10px; border-radius:8px; border:1px solid var(--dlg-linie); background:transparent; color:var(--dlg-t); font-size:14px; min-height:40px; }
.ansichten button.an { background:var(--akz); color:var(--akz-t); border-color:var(--akz); }
.atelier { display:grid; grid-template-columns:repeat(6, 1fr); gap:8px; margin:8px 0; }
.ab { position:relative; padding:4px 4px 3px; border-radius:6px; border:1px solid var(--dlg-linie); background:rgba(255,255,255,.35); color:var(--dlg-t); display:flex; flex-direction:column; align-items:center; gap:2px; min-height:44px; }
.ab-bild { display:block; width:100%; aspect-ratio:4 / 3; border-radius:3px; background:#1b1a20 center / cover; box-shadow:inset 0 0 0 1px rgba(0,0,0,.25); }
.ab.gesperrt { border-style:dashed; border-width:2px; cursor:not-allowed; } .ab.gesperrt .ab-bild { filter:brightness(.15) sepia(.4); }
.ab-n { position:absolute; left:7px; top:6px; font:700 14px var(--kopf); color:#fff; background:#2a1c10; border-radius:8px; padding:0 6px; }
#stage.hoch .ab-n { font-size:17px; }
.sterne { display:inline-flex; gap:3px; } .sterne i { width:22px; height:22px; color:rgba(120,90,40,.3); } .sterne i.an { color:var(--gold); }
.sterne svg { width:100%; height:100%; } .sterne.klein i { width:16px; height:16px; }
.rechen { width:100%; border-collapse:collapse; font-size:15px; margin:8px 0; }
.rechen td { padding:4px 6px; border-bottom:1px solid var(--dlg-linie); }
.rechen td:last-child { text-align:right; font:700 16px var(--kopf); }
.rechen tr.summe td { border-bottom:none; font-weight:700; }
.liste { width:100%; border-collapse:collapse; font-size:14px; } .liste td { padding:3px 6px; border-bottom:1px solid var(--dlg-linie); } .liste td:last-child { text-align:right; font-family:var(--kopf); }
.legende { display:grid; grid-template-columns:1fr 1fr; gap:8px 14px; margin:8px 0; font-size:14px; line-height:1.35; text-align:left; }
.legende > div { display:flex; align-items:flex-start; gap:10px; } .legende img, .legende svg, .legende > div > span:first-child { width:40px; height:40px; object-fit:contain; flex:none; }
.lg-klecks { display:inline-block; width:40px; height:40px; flex:none; }
.mo-start figure > svg.lg-klecks { width:38px; height:38px; }
.k-auftrag { min-height:52px; max-height:52px; overflow:hidden; font-size:13px; line-height:1.3; color:var(--karton-dim); border-top:1px solid var(--karton-linie); padding-top:4px; margin-top:4px; }
.k-auftrag b { color:var(--karton-t); } .k-auftrag.ok { color:#2f6a2a; } .k-auftrag.ok b::after { content:' erfüllt'; }
.karte.leiste .k-auftrag { grid-column:1 / -1; grid-row:5; }
#stage.hoch .k-auftrag { font-size:14px; }
.lg-tinte { display:inline-block; width:40px; height:40px; flex:none; background:linear-gradient(90deg, #1e2a8a 0 60%, transparent 60%), linear-gradient(90deg, transparent 60%, #f6d264 60%); background-size:100% 6px; background-repeat:no-repeat; background-position:0 17px; position:relative; }
.lg-tinte::after { content:""; position:absolute; left:19px; top:12px; width:16px; height:16px; border-radius:50%; background:#2a3cc8; }
.regeltext ul { margin:4px 0 8px 18px; padding:0; } .regeltext li { margin:4px 0; line-height:1.45; }
.abstand { margin:6px 0; font-size:15px; } .abstand.gut { color:var(--dlg-gruen); font-weight:600; }
.blatttafel { position:absolute; z-index:7; padding:14px 20px; border-radius:12px; background:radial-gradient(ellipse at 50% 0%, rgba(255,226,150,.5), transparent 60%), linear-gradient(var(--karton), var(--karton-2)); background-color:var(--karton);
  color:var(--karton-t); box-shadow:0 14px 30px rgba(0,0,0,.45), 0 0 0 3px rgba(184,138,30,.8); }
.blatttafel[hidden] { display:none !important; }
.bt-kopf { text-align:center; margin-bottom:4px; } .bt-kopf h3 { margin:6px 0 0; font:700 22px var(--kopf); } .bt-kopf .unter { margin:0; color:var(--karton-dim); font-size:14px; }
.bt-stempel { display:inline-block; font:700 12.5px var(--sans); letter-spacing:2px; text-transform:uppercase; color:#fff3dc; background:var(--akz); padding:3px 12px; border-radius:12px; box-shadow:0 2px 6px rgba(0,0,0,.3); }
.blatttafel .mo-abr td { color:var(--karton-t); padding:2px 6px; font-size:15px; } .blatttafel .mo-abr td.mo-w { color:var(--karton-t); font-weight:700; }
.blatttafel .mo-abr tr.mo-gut td { color:#2f6a2a; font-weight:700; }
.blatttafel .mo-sek { color:var(--karton-t); background:rgba(184,138,30,.25); }
.bt-summe { display:flex; justify-content:space-between; align-items:baseline; margin:4px 0 0; padding:4px 6px 0; border-top:2px solid var(--karton-linie); font-weight:700; }
.bt-summe b { font:700 22px var(--kopf); display:inline-block; transform-origin:right center; }
.blatttafel .mo-sterne-reihe i { color:#d9a420; } .blatttafel .mo-gruende em.mo-an { color:#2f6a2a; } .blatttafel .mo-gruende { font-size:13.5px; }
.blatttafel .knopfreihe { justify-content:center; margin-top:10px; }
.blatttafel.breit { display:grid; grid-template-columns:minmax(0, 1.2fr) minmax(0, 1fr); column-gap:24px; align-items:start; }
.blatttafel.breit .bt-kopf { grid-column:1 / -1; } .blatttafel.breit .bt-abr { grid-column:1; grid-row:2 / span 2; }
.blatttafel.breit .bt-summe { grid-column:2; grid-row:2; margin-top:8px; padding:8px 4px; border-bottom:2px solid var(--karton-linie); } .blatttafel.breit .bt-summe b { font-size:28px; }
.blatttafel.breit .knopfreihe { grid-column:2; grid-row:3; align-self:end; }
#stage { --mo-bg1:#2a2a4a; --mo-bg2:#18182e; --mo-bg3:#0c0c18; --mo-rand:#c9a24a; --mo-rand-weich:rgba(224,180,58,.35); --mo-akzent:#ffd36a; --mo-akzent2:#e8c070;
  --mo-hell:#fff4d8; --mo-text:#f2ecdc; --mo-leise:#d8d2e2; --mo-leiser:#c4bed2; --mo-fs-klein:14px; }
#stage.hoch, #stage.quer-handy { --mo-fs-klein:16px; }
.dlg.mo-tafel { text-align:center; }
.dlg.mo-tafel .zu { color:var(--mo-text); border-color:var(--mo-rand-weich); background:rgba(0,0,0,.25); }
.dlg.mo-tafel h2.mo-wort { color:var(--mo-akzent); margin:8px 0 0; }
.dlg.mo-tafel .mo-zeile { color:var(--mo-leise); font-size:14.5px; margin:4px 0; }
.dlg.mo-tafel .mo-zahl.mo-mittel b { font-size:46px; }
.dlg.mo-tafel .mo-ziel { color:var(--mo-text); font-size:15px; margin:6px 0; } .dlg.mo-tafel .mo-ziel.gut b { color:var(--mo-gut); }
.dlg.mo-tafel .mo-tipp { color:var(--mo-leise); font-size:14px; font-style:italic; margin:8px 0 4px; }
.dlg.mo-tafel .knopfreihe { justify-content:center; }
.dlg.mo-tafel .kb.haupt { min-height:52px; font-size:17px; padding:10px 22px; }
.dlg.mo-tafel details.mehr { margin-top:10px; text-align:left; background:var(--dlg-a); color:var(--dlg-t); border-radius:10px; }
.dlg.mo-tafel details.mehr > summary { cursor:pointer; padding:8px 12px; font-weight:700; list-style:none; text-align:center; min-height:44px; display:flex; align-items:center; justify-content:center; gap:6px; box-sizing:border-box; }
.dlg.mo-tafel details.mehr > summary::-webkit-details-marker { display:none; } .dlg.mo-tafel details.mehr > summary svg { width:18px; height:18px; }
.dlg.mo-tafel details.mehr[open] { padding:0 12px 10px; }
.dlg.mo-tafel .legende { color:var(--dlg-t); }
.mo-sterne-end { display:flex; justify-content:center; gap:6px; } .mo-sterne-end i { width:34px; height:34px; color:rgba(255,255,255,.2); } .mo-sterne-end i.an { color:var(--mo-akzent); } .mo-sterne-end svg { width:100%; height:100%; }
.mo-start figure > span { width:38px; height:38px; } .mo-start figure > img { object-fit:contain; }
#stage.hoch .kb-ic { width:60px; height:60px; } #stage.hoch .kb-ic svg { width:28px; height:28px; }
#stage.hoch #kopf { top:10px; right:10px; }
#stage.hoch .kb { min-height:60px; font-size:16px; padding:8px 16px; }
#stage.hoch .dlg .zu { width:58px; height:58px; font-size:30px; }
#stage.hoch .modi { grid-template-columns:1fr 1fr; } #stage.hoch .modus { min-height:96px; } #stage.hoch .modus span, #stage.hoch .modus em { font-size:14px; } #stage.hoch .modus b { font-size:18px; }
#stage.hoch .ansichten button { min-height:58px; min-width:64px; font-size:15px; }
#stage.hoch .atelier { grid-template-columns:repeat(4, 1fr); gap:6px; } #stage.hoch .atelier-unter { font-size:14px; } #stage.hoch .ab { min-height:60px; }
#stage.hoch .legende { grid-template-columns:1fr; font-size:15px; }
#stage.hoch .dlg.mo-tafel details.mehr > summary { min-height:64px; font-size:17px; }
#stage.hoch .mel { font-size:16px; } #stage.hoch #lehrzettel p { font-size:17px; }
#stage.hoch .blatttafel .mo-abr td { font-size:16px; } #stage.hoch .bt-stempel { font-size:15px; }
#stage.hoch .kb.siegel { width:128px; height:128px; } #stage.hoch .kb.zettel { min-height:66px; }
:root.touch .kb { min-height:56px; } :root.touch .kb-ic { width:56px; height:56px; }
:root.touch .dlg .zu { width:56px; height:56px; font-size:28px; }
:root.touch .ab { min-height:56px; } :root.touch .ansichten button { min-height:56px; min-width:64px; }
:root.touch .dlg.mo-tafel details.mehr > summary { min-height:56px; }
#stage.quer-handy .dlg { padding:14px 18px 12px; }
#stage.quer-handy .kb small.zf { font-size:15.5px; }
#stage.quer-handy .dlg h2 { font-size:22px; }
#stage.quer-handy .atelier { gap:5px; margin:4px 0; } #stage.quer-handy .atelier-unter { display:none; }
#stage.quer-handy .blatttafel { top:50% !important; transform:translateY(-50%); padding:8px 14px; max-height:96%; }
#stage.quer-handy .mo-start { top:6px; zoom:.82; }
#stage.quer-handy .kb.siegel, #stage.quer-handy #knoepfe:not(.spalte) .kb.siegel { width:92px; height:92px; }
#stage.quer-handy #k-lage { display:none; }
#stage.quer-handy .kb.siegel small { font-size:13.5px; }
#stage.quer-handy .dlg.mo-tafel.ende { max-width:96%; width:96%; padding:10px 16px; }
.dlg.mo-tafel.ende .ende-l, .dlg.mo-tafel.ende .ende-r { display:contents; }
#stage.quer-handy { --mo-fs-min:15.5px; }
#stage.quer-handy .dlg.mo-tafel.ende .dlg-inhalt { display:grid; grid-template-columns:minmax(0, 1fr) minmax(0, 1.1fr); column-gap:18px; align-items:center; }
#stage.quer-handy .dlg.mo-tafel.ende .ende-l, #stage.quer-handy .dlg.mo-tafel.ende .ende-r { display:block; min-width:0; }
#stage.quer-handy .dlg.mo-tafel.ende .mo-kopf { padding:0 0 4px; }
#stage.quer-handy .dlg.mo-tafel.ende .mo-sterne-end i { width:28px; height:28px; }
#stage.quer-handy .dlg.mo-tafel.ende h2.mo-wort { margin:2px 0 0; }
#stage.quer-handy .dlg.mo-tafel.ende .mo-zeile, #stage.quer-handy .dlg.mo-tafel.ende .mo-ziel { font-size:15.5px; }
#stage.quer-handy .dlg.mo-tafel.ende .mo-zahl { margin:2px 0; } #stage.quer-handy .dlg.mo-tafel.ende .mo-zahl b { font-size:44px; }
#stage.quer-handy .dlg.mo-tafel.ende .mo-band { margin:2px 0; }
#stage.quer-handy .dlg.mo-tafel.ende .mo-kacheln { margin:8px 0 0; grid-template-columns:repeat(2, minmax(0, 1fr)) !important; display:grid; gap:6px; }
#stage.quer-handy .dlg.mo-tafel.ende .mo-kachel { padding:4px; } #stage.quer-handy .dlg.mo-tafel.ende .mo-kachel b { font-size:22px; }
#stage.quer-handy .dlg.mo-tafel.ende .abstand { margin:0 0 6px; }
#stage.quer-handy .dlg.mo-tafel.ende .mo-rang li { padding:2px 12px; }
#stage.quer-handy .dlg.mo-tafel.ende .mo-tipp { display:none; }
#stage.quer-handy .dlg.mo-tafel.ende .knopfreihe { flex-wrap:wrap; gap:6px; margin-top:8px; }
#stage.quer-handy .dlg.mo-tafel.ende details.mehr { margin-top:6px; }
#stage.hoch .dlg.mo-tafel.ende .mo-kacheln { grid-template-columns:repeat(2, minmax(0, 1fr)); }
.karte.leiste .k-auftrag { min-height:56px; max-height:56px; }
.atelier { width:680px; max-width:100%; }
#stage.quer-handy .atelier { grid-template-columns:repeat(8, 1fr); }
#stage.quer-handy .schalter { min-height:56px; }
#stage.quer-handy .abz-liste { grid-template-columns:repeat(3, 1fr); width:100%; gap:4px 8px; margin:4px 0; }
#stage.quer-handy .abz { padding:3px 6px; } #stage.quer-handy .abz i { width:22px; height:27px; } #stage.quer-handy .abz b { font-size:13.5px; }
#stage.quer-handy .schalter-liste { grid-template-columns:repeat(3, 1fr); width:100%; } #stage.quer-handy .einst-hinweis { display:none; }
