@font-face{font-family:'SGZ Ziffern';src:local('Georgia'),local('Georgia Regular'),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('Georgia Bold'),local('Georgia-Bold'),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 {
  --akzent: #9a5a12; --akzent2: #2f7a4f; --akzent3: #f6ead3; --tief: #efe3cc; --panel: rgba(253, 246, 232, .92); --panel2: rgba(253, 247, 235, .97);
  --text: #2e2116; --mute: #6b543d; --rand: rgba(154, 90, 18, .5); --knopf1: #f3dfbd; --knopf2: #dcb88a; --knopfText: #2e2116;
  --gruen: #15803d; --rot: #b91c1c; --kopf: 'SGZ Ziffern', Georgia, 'Times New Roman', serif; --schatten: 0 10px 28px rgba(40, 20, 0, .3);
  --kul: url(img/kulisse-tag.webp?v=1); --kulH: url(img/kulisse-tag-hoch.webp?v=1); --schleier: rgba(255, 246, 232, .08); --ersatz: linear-gradient(180deg, #f3e4c8, #d9bb8f 60%, #a8834f);
  --kante1: #8a5a31; --messing: #b98b3c; --samt1: #31406a; --samt2: #1b2444; --samt3: #111830; --naht: rgba(255, 255, 255, .07);
  --wz1: #8a5a31; --wz2: #5a3519; --wzText: #fff2cf; --holz: url(img/holz-tag.webp?v=1); --meld: rgba(253, 246, 232, .95); --meldText: #2e2116; --strahl: rgba(255, 230, 170, .22);
}
html[data-ansicht="abend"] {
  --akzent: #f2b84a; --akzent2: #7fd6a0; --akzent3: #3b2312; --tief: #1f140c; --panel: rgba(38, 24, 14, .9); --panel2: rgba(44, 28, 16, .97);
  --text: #fbecd6; --mute: #e2c39a; --rand: rgba(242, 184, 74, .45); --knopf1: #7a4a26; --knopf2: #4a2a14; --knopfText: #fbecd6;
  --gruen: #4ade80; --rot: #fca5a5;
  --kul: url(img/kulisse-abend.webp?v=1); --kulH: url(img/kulisse-abend-hoch.webp?v=1); --schleier: rgba(20, 10, 4, .2); --ersatz: linear-gradient(180deg, #4a2c16, #2a170b);
  --kante1: #6e3a1e; --messing: #e0b057; --samt1: #1f4a3a; --samt2: #12302a; --samt3: #0a1d18;
  --wz1: #6e3a1e; --wz2: #3b1d0c; --holz: url(img/holz-abend.webp?v=1); --meld: rgba(38, 24, 14, .94); --meldText: #fbecd6; --strahl: rgba(255, 190, 110, .16);
}
html[data-ansicht="nacht"] {
  --akzent: #9fd2ff; --akzent2: #e7c3ff; --akzent3: #0f1530; --tief: #0d1020; --panel: rgba(18, 22, 44, .9); --panel2: rgba(22, 26, 50, .97);
  --text: #eef2ff; --mute: #b9c3e4; --rand: rgba(159, 210, 255, .45); --knopf1: #2c3a66; --knopf2: #171f3e; --knopfText: #eef2ff;
  --gruen: #86efac; --rot: #fda4af;
  --kul: url(img/kulisse-nacht.webp?v=1); --kulH: url(img/kulisse-nacht-hoch.webp?v=1); --schleier: rgba(5, 8, 20, .2); --ersatz: linear-gradient(180deg, #1c2440, #0b0f1c);
  --kante1: #4a4038; --messing: #a9c4e6; --samt1: #3a2a5c; --samt2: #221838; --samt3: #140e24;
  --wz1: #4a4038; --wz2: #241e1a; --holz: url(img/holz-nacht.webp?v=1); --meld: rgba(18, 22, 44, .94); --meldText: #eef2ff; --strahl: rgba(170, 200, 255, .14);
}
body { background: var(--tief); }
#kulisse { position: fixed; inset: 0; background: var(--kul) center / cover no-repeat, var(--ersatz); z-index: 0; }
#kulisse::after { content: ''; position: absolute; inset: 0; background: var(--schleier); }
body.hoch #kulisse { background-image: var(--kulH), var(--ersatz); }
#buehne { z-index: 1; }
@media (prefers-reduced-motion: no-preference) {
  #kulisse::before { content: ''; position: absolute; left: 0; top: 0; width: 70%; height: 100%; pointer-events: none; mix-blend-mode: screen; opacity: .9;
    background: radial-gradient(1.5px 1.5px at 20% 30%, rgba(255, 245, 220, .9), transparent), radial-gradient(1.5px 1.5px at 45% 55%, rgba(255, 245, 220, .8), transparent),
      radial-gradient(2px 2px at 30% 75%, rgba(255, 245, 220, .7), transparent), radial-gradient(1.5px 1.5px at 60% 40%, rgba(255, 245, 220, .8), transparent),
      linear-gradient(115deg, var(--strahl), transparent 60%);
    clip-path: polygon(0 0, 30% 0, 100% 100%, 45% 100%); animation: staub 18s ease-in-out infinite alternate; }
  @keyframes staub { from { background-position: 0 0, 0 0, 0 0, 0 0, 0 0; } to { background-position: 40px 90px, -30px 70px, 20px -60px, 50px 40px, 0 0; } }
}
#hud { background: var(--panel); border: 2px solid var(--messing); box-shadow: 0 10px 28px rgba(40, 20, 0, .3), inset 0 0 0 4px rgba(255, 255, 255, .06); }
#logo span, #logo b { font-family: var(--kopf); text-shadow: 0 2px 0 rgba(255, 255, 255, .5); }
#logo b { color: var(--akzent); }
html[data-ansicht="abend"] #logo span, html[data-ansicht="abend"] #logo b, html[data-ansicht="nacht"] #logo span, html[data-ansicht="nacht"] #logo b { text-shadow: 0 2px 0 rgba(0, 0, 0, .5); }
.wert { background: rgba(255, 252, 244, .6); }
.wert b { color: var(--text); font-family: var(--kopf); font-variant-numeric: lining-nums tabular-nums; font-kerning: none; }
html[data-ansicht="abend"] .wert, html[data-ansicht="nacht"] .wert { background: rgba(0, 0, 0, .28); }
.endwert { color: var(--akzent); }
#banner { color: var(--akzent); font-family: var(--kopf); text-shadow: 0 2px 0 rgba(255, 250, 238, .9), 0 0 14px rgba(255, 250, 238, .9); }
#banner small { color: var(--text); text-shadow: 0 1px 0 rgba(255, 250, 238, .9); }
html[data-ansicht="abend"] #banner, html[data-ansicht="nacht"] #banner { text-shadow: 0 2px 0 rgba(0, 0, 0, .6); }
html[data-ansicht="abend"] #banner small, html[data-ansicht="nacht"] #banner small { text-shadow: 0 1px 0 rgba(0, 0, 0, .6); }
#knoepfe { grid-template-columns: repeat(3, 1fr); }
#knoepfe button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: 54px; padding: 0 2px; }
#knoepfe button::after { content: attr(data-l); font: 700 11px/1 'Segoe UI', system-ui, sans-serif; color: var(--knopfText); white-space: nowrap; }
#knoepfe svg { width: 20px; height: 20px; }
#knoepfe #bMehr { display: none; }
body.hoch #knoepfe { flex-wrap: wrap; gap: 6px; }
body.hoch #knoepfe button { flex: 0 0 calc(16.66% - 5px); min-width: 0; height: 46px; order: 7; display: none; }
body.hoch #knoepfe #bMenue, body.hoch #knoepfe #bNeu, body.hoch #knoepfe #bPause, body.hoch #knoepfe #bMehr, body.hoch #knoepfe [data-l="Vollbild"], body.hoch #knoepfe [data-l="Verlassen"] { display: flex; }
body.hoch #knoepfe #bMenue { order: 1; } body.hoch #knoepfe #bNeu { order: 2; } body.hoch #knoepfe #bPause { order: 3; } body.hoch #knoepfe #bMehr { order: 4; }
body.hoch #knoepfe [data-l="Vollbild"] { order: 5; } body.hoch #knoepfe [data-l="Verlassen"] { order: 6; }
body.hoch.mehrAuf #knoepfe button { display: flex; }
body.mehrAuf #knoepfe #bMehr { box-shadow: 0 0 0 3px var(--akzent); }
@media (max-height: 720px) and (min-aspect-ratio: 1/1) { #knoepfe button { height: 48px; } }
.endgrund { font: 700 15px/1.3 'Segoe UI', system-ui, sans-serif; color: var(--mo-leise, #f1dca8); margin: 2px 0 4px; }

#brettbox { gap: 14px; }
body.wz-hoch #brettbox { flex-direction: column; gap: 8px; }
#brett { filter: drop-shadow(0 18px 22px rgba(0, 0, 0, .45)); }
#werkzeug { position: relative; display: flex; flex-direction: column; gap: 10px; width: var(--wzb, 120px); flex: 0 0 auto; }
body.wz-hoch #werkzeug { flex-direction: row; width: min(100%, 560px); height: var(--wzh, 80px); }
.wz { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: 84px; padding: 6px 4px 5px;
  border-radius: 14px; border: 2px solid var(--messing); color: var(--wzText); font: 700 13px/1.15 'Segoe UI', system-ui, sans-serif; cursor: pointer;
  background: linear-gradient(180deg, color-mix(in srgb, var(--wz1) 78%, transparent), color-mix(in srgb, var(--wz2) 88%, transparent)), var(--holz) center / 260px auto, var(--wz2);
  box-shadow: 0 5px 0 rgba(30, 15, 5, .85), 0 10px 16px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .25); }
body.wz-hoch .wz { flex: 1; min-height: 0; height: 100%; }
.wz svg { width: 40px; height: 40px; filter: drop-shadow(0 2px 1px rgba(0, 0, 0, .5)); }
body.wz-hoch .wz svg { width: 32px; height: 32px; }
.wz .wzn { text-shadow: 0 1px 0 rgba(0, 0, 0, .6); }
.wz .wza { font: 800 16px/1 var(--kopf); color: #ffe08a; font-variant-numeric: lining-nums tabular-nums; font-kerning: none; text-shadow: 0 1px 0 rgba(0, 0, 0, .7); }
.wz:hover { filter: brightness(1.1); }
.wz:active { transform: translateY(2px); box-shadow: 0 3px 0 rgba(30, 15, 5, .85), 0 6px 10px rgba(0, 0, 0, .4); }
.wz.an { border-color: #ffe08a; box-shadow: 0 0 0 3px rgba(255, 224, 138, .6), 0 5px 0 rgba(30, 15, 5, .85); transform: translateY(-2px); }
.wz.leer { opacity: .5; border-style: dashed; }
.wz:disabled { opacity: .5; border-style: dashed; cursor: not-allowed; }
.wz.rat { --wz1: #5a6a3a; --wz2: #2f3a1c; }
#hud, .wert { background-image: repeating-linear-gradient(97deg, rgba(120, 80, 30, .035) 0 2px, transparent 2px 5px), repeating-linear-gradient(7deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 4px); }
.wz.neu { animation: wzneu 1.1s ease-out; }
@keyframes wzneu { 0% { box-shadow: 0 0 0 0 rgba(255, 233, 168, .95); filter: brightness(1.5); } 100% { box-shadow: 0 0 0 18px rgba(255, 233, 168, 0); filter: brightness(1); } }
#wzInfo { position: absolute; z-index: 6; width: 230px; padding: 10px 12px; border-radius: 12px; background: var(--meld); color: var(--meldText); border: 2px solid var(--messing);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .4); font: 500 13px/1.4 'Segoe UI', system-ui, sans-serif; pointer-events: none; }
#wzInfo b { display: block; margin-bottom: 3px; } #wzInfo span { display: block; } #wzInfo .leer { margin-top: 5px; color: var(--rot); }
#meld { position: absolute; left: 50%; top: 8px; transform: translateX(-50%); z-index: 5; width: min(520px, 94%); display: flex; flex-direction: column; gap: 6px; pointer-events: none; }
#meld .m { background: var(--meld); color: var(--meldText); border: 2px solid var(--messing); border-radius: 12px; padding: 8px 12px; font: 500 14px/1.4 'Segoe UI', system-ui, sans-serif;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .35); animation: mrein .3s ease-out; transition: opacity .4s, transform .4s; }
#meld .m b { color: var(--akzent); }
#meld .m.weg { opacity: 0; transform: translateY(-8px); }
@keyframes mrein { from { opacity: 0; transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .wz.neu, #meld .m { animation: none; } }

.wz .wzw { font: 700 11px/1.1 'Segoe UI', system-ui, sans-serif; color: #fff6dc; text-shadow: 0 1px 0 rgba(0, 0, 0, .7); font-variant-numeric: lining-nums tabular-nums; }
body.wz-hoch .wz .wzw { display: none; }
#brett.ruetteln { animation: ruetteln .4s ease-out; }
@keyframes ruetteln { 15% { transform: translate(-3px, 1px); } 35% { transform: translate(3px, -1px); } 55% { transform: translate(-2px, 0); } 75% { transform: translate(1px, 1px); } }
@media (prefers-reduced-motion: reduce) { #brett.ruetteln { animation: none; } }
.pausezeile { margin: 8px 0 0; font: 600 13px/1.4 'Segoe UI', system-ui, sans-serif; color: var(--mo-leise); }
#brettbox > .mo-start { left: var(--kx, 50%); top: var(--kt, 0px); bottom: calc(100% - var(--kt, 0px) - var(--kh, 100%)); width: min(440px, calc(var(--kw, 100%) - 16px)); }
#brettbox > #banner { left: var(--kx, 50%); top: var(--ky, 50%); }
#brettbox > .rd-level { left: var(--kx, 50%); top: var(--kt, 0px); bottom: calc(100% - var(--kt, 0px) - var(--kh, 100%)); width: min(380px, calc(var(--kw, 100%) - 16px)); }
#brettbox > .rd-level.rd-unten { top: auto; bottom: auto; top: calc(var(--kt, 0px) + var(--kh, 100%) - 12px); transform: translate(-50%, -100%); }
#brettbox > .mo-flug { left: var(--kl, 0px); right: auto; width: var(--kw, 100%); top: calc(var(--kt, 0px) + var(--kh, 100%) * .24); }
#brettbox > #meld { left: var(--kx, 50%); top: calc(var(--kt, 0px) + 8px); width: min(520px, calc(var(--kw, 100%) - 12px)); }
#auftrag { position: relative; padding: 7px 10px 8px; border-radius: 10px; cursor: pointer; color: #3b2a1c; transform: rotate(-.6deg);
  background: linear-gradient(180deg, #fdf6e3, #f1e2bf), repeating-linear-gradient(0deg, rgba(120, 80, 30, .06) 0 1px, transparent 1px 18px);
  background-blend-mode: multiply; box-shadow: 0 3px 8px rgba(40, 20, 0, .3), inset 0 0 0 1px rgba(120, 80, 30, .25); font: 500 12.5px/1.3 'Segoe UI', system-ui, sans-serif; }
#auftrag::before { content: ''; position: absolute; left: 50%; top: -5px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ff9a8a, #b0281c); box-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
#auftrag .ak, #kabinett .ak { display: block; font: 700 11px/1.2 'Segoe UI', system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #8a5a20; }
#auftrag b { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; height: 2.5em; font: 700 13px/1.25 var(--kopf); color: #2e2116; margin: 1px 0 4px; }
#auftrag .az { font: 700 11.5px/1 'Segoe UI', system-ui, sans-serif; font-style: normal; color: #7a5410; font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
#auftrag .af { display: inline-block; width: 12px; height: 12px; margin-right: 5px; border-radius: 3px; vertical-align: -1px; box-shadow: inset 0 2px 0 rgba(255, 255, 255, .5), 0 0 0 1px rgba(0, 0, 0, .35); }
#auftrag .ab { display: block; height: 6px; border-radius: 3px; background: rgba(120, 80, 30, .2); overflow: hidden; }
#auftrag .ab em { display: block; height: 100%; background: linear-gradient(90deg, #d9a640, #7fbf5a); transition: width .5s ease-out; }
#auftrag small { display: block; margin-top: 3px; font-size: 11.5px; color: #5a4330; font-variant-numeric: lining-nums tabular-nums; }
#auftrag.erfuellt { animation: erfuellt .9s ease-out; }
@keyframes erfuellt { 0% { box-shadow: 0 0 0 0 rgba(127, 191, 90, .9); transform: rotate(-.6deg) scale(1.06); } 100% { box-shadow: 0 0 0 16px rgba(127, 191, 90, 0); transform: rotate(-.6deg) scale(1); } }
#kabinett { cursor: pointer; padding: 6px 8px; border-radius: 10px; background: #3c230f; box-shadow: inset 0 0 0 1px var(--messing); }
#kabinett .ak { color: #f3dfb0; }
#kabinett .kg { display: flex; gap: 3px; margin-top: 4px; }
#kabinett i { flex: 1; aspect-ratio: 1; max-width: 16px; border-radius: 3px; transform: rotate(45deg) scale(.78); background: rgba(255, 255, 255, .08); border: 1px dashed rgba(255, 240, 210, .35); }
#kabinett i.an { border: 0; background: radial-gradient(circle at 35% 30%, #fff, var(--g) 45%, color-mix(in srgb, var(--g) 50%, #000)); box-shadow: 0 0 6px var(--g); }
body.hoch #auftrag { grid-area: auf; transform: none; padding: 5px 8px 6px; }
body.hoch #auftrag b { font-size: 12.5px; margin: 0 0 3px; height: 1.25em; -webkit-line-clamp: 1; } body.hoch #auftrag small { display: none; }
body.hoch #hud { grid-template-areas: 'logo logo modus modus' 'zeit punkte e1 e2' 'auf auf auf auf' 'kn kn kn kn'; }
body.hoch #kabinett { display: none; }
@media (max-height: 640px) and (min-aspect-ratio: 1/1) { #kabinett { display: none; } #auftrag small { display: none; } #auftrag { padding: 5px 8px; } }
@media (prefers-reduced-motion: reduce) { #auftrag.erfuellt { animation: none; } }
#wzFlug { position: absolute; z-index: 9; width: 52px; height: 52px; margin: -26px 0 0 -26px; pointer-events: none; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .55)); }
#wzFlug svg { width: 100%; height: 100%; }
.regeln .rb { display: flex; align-items: center; justify-content: center; min-height: 26px; }
.regeln .rb canvas { max-width: 56px; height: auto !important; width: auto !important; max-height: 24px; }
.menuesteine { display: flex; justify-content: center; gap: 6px; margin: -4px 0 8px; }
.menuesteine canvas { filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .35)); }
.dlg.regeln h2 { padding: 0 46px; }
#flugEbene { position: fixed; inset: 0; pointer-events: none; z-index: 40; overflow: clip; }
#flugEbene .flug { position: absolute; left: 0; top: 0; will-change: transform; }
#flugEbene .flug.wz { width: 38px; height: 38px; margin: -19px 0 0 -19px; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .5)) drop-shadow(0 0 8px rgba(255, 230, 150, .8)); }
#flugEbene .flug.wz svg { width: 100%; height: 100%; }
#flugEbene .fs { display: block; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: radial-gradient(circle, #fffbe0, #ffcf4a 45%, rgba(255, 160, 30, 0) 70%); box-shadow: 0 0 10px #ffcf4a; }
#flugEbene .ms { display: block; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 3px; transform: rotate(45deg); background: radial-gradient(circle at 35% 30%, #fff, var(--g) 50%, color-mix(in srgb, var(--g) 55%, #000)); box-shadow: 0 0 8px var(--g); }
#flugEbene .ms.gross { width: 26px; height: 26px; margin: -13px 0 0 -13px; }
.treffer { animation: treffer .38s ease-out; }
@keyframes treffer { 0% { filter: brightness(1); } 35% { filter: brightness(1.6) drop-shadow(0 0 10px rgba(255, 220, 120, .95)); } 100% { filter: brightness(1); } }
#auftrag .stempel { position: absolute; right: 8px; top: 50%; transform: translateY(-50%) rotate(-12deg); padding: 2px 8px; border: 3px solid #b0281c; border-radius: 6px; color: #b0281c;
  font: 900 15px/1.1 var(--kopf); letter-spacing: .06em; text-transform: uppercase; background: rgba(253, 246, 232, .85); animation: stempel .35s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes stempel { from { transform: translateY(-50%) rotate(-12deg) scale(2.2); opacity: 0; } to { transform: translateY(-50%) rotate(-12deg) scale(1); opacity: 1; } }
#auftrag.rein { animation: zettelRein .45s ease-out; }
@keyframes zettelRein { from { transform: rotate(-.6deg) scale(.9); opacity: 0; } to { transform: rotate(-.6deg) scale(1); opacity: 1; } }
#auftrag.plus .az { display: inline-block; animation: plus .45s ease-out; }
@keyframes plus { 40% { transform: scale(1.5); color: #2f7a4f; } }
@media (prefers-reduced-motion: reduce) { .treffer, #auftrag .stempel, #auftrag.rein, #auftrag.plus .az { animation: none; } }
#mwahl { position: fixed; inset: 0; z-index: 30; display: flex; align-items: center; justify-content: center; padding: 12px; background: rgba(10, 6, 2, .66); }
#mwahl[hidden] { display: none; }
#mwahl .mw { position: relative; width: min(760px, 100%); max-height: 100%; overflow: auto; border-radius: 18px; padding: 16px 18px; background: var(--panel2); border: 2px solid var(--messing); box-shadow: 0 12px 30px rgba(0, 0, 0, .5); color: var(--text); }
#mwahl .zu { position: sticky; float: right; top: 0; width: 42px; height: 42px; border-radius: 10px; border: 2px solid rgba(0, 0, 0, .5); background: linear-gradient(var(--knopf1), var(--knopf2)); display: flex; align-items: center; justify-content: center; cursor: pointer; }
#mwahl .zu svg { width: 18px; height: 18px; color: var(--akzent); }
#mwahl h2 { margin: 0 0 2px; font: 800 26px/1.2 var(--kopf); color: var(--akzent); text-align: center; padding: 0 46px; }
#mwahl h3 { margin: 10px 0 6px; font: 800 15px/1.2 var(--kopf); color: var(--akzent); }
#mwahl .mwunter { margin: 0 0 4px; text-align: center; color: var(--mute); font-size: 13px; }
#mwahl .mwreiter { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; margin: 6px 0 10px; }
#mwahl .mwr { display: flex; flex-direction: column; align-items: center; min-height: 44px; padding: 4px 2px; border-radius: 10px; border: 2px solid rgba(0, 0, 0, .25); cursor: pointer;
  background: rgba(0, 0, 0, .06); color: var(--text); font: 600 12px/1.15 'Segoe UI', system-ui, sans-serif; }
#mwahl .mwr b { font: 800 15px/1 var(--kopf); color: var(--akzent); }
#mwahl .mwr small { font-size: 11px; color: var(--mute); font-variant-numeric: lining-nums tabular-nums; }
#mwahl .mwr.an { border-color: var(--messing); background: linear-gradient(180deg, var(--knopf1), var(--knopf2)); box-shadow: 0 0 0 2px var(--akzent2); }
#mwahl .mwg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
#mwahl .mwk { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1px; min-height: 92px; padding: 6px 4px; border-radius: 10px; cursor: pointer; color: var(--knopfText);
  border: 2px solid var(--messing); background: linear-gradient(180deg, var(--knopf1), var(--knopf2)); font: 500 11.5px/1.2 'Segoe UI', system-ui, sans-serif; text-align: center; }
#mwahl .mwk b { font: 800 18px/1 var(--kopf); color: var(--akzent); }
#mwahl .mwk small { font-size: 11px; color: var(--mute); }
#mwahl .mwk.naechst { box-shadow: 0 0 0 3px var(--akzent2); }
#mwahl .mwk:disabled { opacity: .5; border-style: dashed; cursor: not-allowed; }
#mwahl .mwk em { font-size: 11px; font-style: normal; color: var(--mute); }
#mwahl .mwkap { display: none; margin: 0 0 6px; text-align: center; font: 700 14px/1.2 var(--kopf); color: var(--akzent); }
@media (max-width: 520px) { #mwahl .mwg { grid-template-columns: repeat(2, minmax(0, 1fr)); } #mwahl .mwr .mwn { display: none; } #mwahl .mwkap { display: block; } }
@media (max-height: 460px) and (orientation: landscape) { #mwahl .mw { padding: 8px 12px; } #mwahl h2 { font-size: 20px; } #mwahl .mwunter { display: none; } #mwahl .mwg { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 5px; } #mwahl .mwk { min-height: 0; padding: 4px 3px; } #mwahl .mwreiter { margin: 4px 0 6px; } }
.msterne { display: inline-flex; gap: 3px; justify-content: center; margin: 2px 0; }
.msterne i { width: 14px; height: 14px; clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); background: rgba(120, 90, 40, .35); }
.msterne i.an { background: linear-gradient(180deg, #fff1b0, #e0a83a); }
.mo-tafel .msterne i { width: 26px; height: 26px; }
.endgrund.klein { font-size: 13px; font-weight: 500; }
body { --mo-bg1: #4a2e16; --mo-bg2: #2c190b; --mo-bg3: #160c05; --mo-rand: #d9aa4f; --mo-rand-weich: rgba(217, 170, 79, .32); --mo-akzent: #ffd27a; --mo-akzent2: #c99a3c; --mo-hell: #fff1cf;
  --mo-text: #fff6e6; --mo-leise: #ecd6ae; --mo-leiser: #c4ab80; --mo-band1: #ffe29a; --mo-band2: #c9963a; --mo-band-t: #1a1003; }
@media (max-height: 460px) and (orientation: landscape) {
  #ov .dlg.menue { padding: 10px 16px 12px; }
  .menue .schildkopf { font-size: 30px; margin: 0 0 4px; }
  .menue .unter { margin-bottom: 6px; font-size: 13px; line-height: 1.3; }
  .menue .modus { padding: 6px 10px; } .menue .modus svg { width: 22px; height: 22px; }
  .menue h3 { margin: 8px 0 4px; font-size: 15px; }
  .menue .reihe { margin-top: 6px; }
  body:not(.hoch) .wert span { font-size: 11px; letter-spacing: .6px; }
  body:not(.hoch) #auftrag .ak, body:not(.hoch) #auftrag .ab, body:not(.hoch) #info { display: none; } body:not(.hoch) #auftrag { padding: 4px 8px; min-height: 44px; display: flex; align-items: center; } body:not(.hoch) #auftrag b { font-size: 12px; margin: 0; height: 2.5em; }
  body:not(.hoch) #knoepfe button { height: 42px; gap: 2px; } body:not(.hoch) #knoepfe svg { width: 17px; height: 17px; }
  body:not(.hoch) #knoepfe button { order: 6; display: none; }
  body:not(.hoch) #knoepfe #bMenue, body:not(.hoch) #knoepfe #bNeu, body:not(.hoch) #knoepfe #bPause, body:not(.hoch) #knoepfe #bMehr, body:not(.hoch) #knoepfe [data-l="Vollbild"], body:not(.hoch) #knoepfe [data-l="Verlassen"] { display: flex; }
  body:not(.hoch) #knoepfe #bMenue { order: 1; } body:not(.hoch) #knoepfe #bNeu { order: 2; } body:not(.hoch) #knoepfe #bPause { order: 3; } body:not(.hoch) #knoepfe #bMehr { order: 4; }
  body:not(.hoch) #knoepfe [data-l="Vollbild"] { order: 5; } body:not(.hoch) #knoepfe [data-l="Verlassen"] { order: 6; }
  body:not(.hoch).mehrAuf #knoepfe button { display: flex; }
  #hud { gap: 5px; } #modus { min-height: 0; }
  body:not(.wz-hoch) #werkzeug { align-self: stretch; gap: 6px; padding: 4px 0; }
  body:not(.wz-hoch) .wz { flex: 1 1 0; min-height: 0; padding: 2px 4px; gap: 0; }
  body:not(.wz-hoch) .wz svg { width: 26px; height: 26px; }
  body:not(.wz-hoch) .wz .wzw { display: none; }
}
@media (max-width: 520px) and (orientation: portrait) {
  #ov .dlg.menue { padding-top: 12px; padding-bottom: 12px; }
  .menue .schildkopf { font-size: 30px; margin: 0 0 4px; }
  .menue .unter { margin-bottom: 6px; font-size: 13px; line-height: 1.3; }
  .menuesteine { display: none; }
  .menue .modus { padding: 6px 10px; } .menue .modus svg { width: 22px; height: 22px; }
  .menue h3 { margin: 8px 0 4px; font-size: 15px; }
  .menue .reihe { margin-top: 6px; }
}
@media (max-height: 460px) and (orientation: landscape) { body:not(.hoch) #auftrag b { font-size: 11px; line-height: 1.2; height: auto; max-height: 3.6em; -webkit-line-clamp: 3; } }
@media (max-height: 460px) and (orientation: landscape) { #ov .menue .modi.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-height: 400px) and (max-width: 720px) and (orientation: landscape) { #ov .menue .modus b { font-size: 18px; } #ov .menue .modus span { font-size: 11.5px; } #ov .menue .modus em { font-size: 16px; } #ov .menue .modus svg { display: none; } #ov .menue .unter { font-size: 12px; } }
.mo-tafel .mlinks, .mo-tafel .mrechts { display: contents; }
@media (max-height: 460px) and (orientation: landscape) {
  #ov .mo-tafel.mmeister { width: min(780px, 96vw); max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 20px; align-items: center; }
  #ov .mo-tafel.mmeister > .mo-kopf { grid-column: 1 / -1; }
  #ov .mo-tafel.mmeister .mlinks, #ov .mo-tafel.mmeister .mrechts { display: block; min-width: 0; }
  #ov .mo-tafel.mmeister .mo-kacheln { margin-top: 0; }
  #ov .mo-tafel.mmeister .mo-kacheln.mo-n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
  #ov .mo-tafel.mmeister .mo-kachel { padding-left: 2px; padding-right: 2px; }
  #ov .mo-tafel.mmeister .reihe { gap: 6px; } #ov .mo-tafel.mmeister .reihe .knopf { font-size: 13px; padding-left: 10px; padding-right: 10px; }
}
#ov > .lade.braucht { max-width: min(520px, 92vw); padding: 22px 24px 18px; border-radius: 16px; background: var(--panel); border: 2px solid var(--messing); color: var(--text, #2e2116); font-size: 19px; box-shadow: 0 14px 40px rgba(0, 0, 0, .45); }
#ov > .lade.braucht .reihe { margin-top: 14px; justify-content: center; }
@media (pointer: coarse), (max-width: 520px) { #ov .dlg.pause > .zu { width: 44px; height: 44px; } }
#bRat.drang:not([disabled]) { animation: ratDrang 1.1s ease-in-out infinite; }
@keyframes ratDrang { 0%, 100% { box-shadow: 0 0 0 0 rgba(240, 80, 60, 0); filter: brightness(1); } 50% { box-shadow: 0 0 0 4px rgba(240, 80, 60, .75), 0 0 18px rgba(240, 80, 60, .7); filter: brightness(1.18); } }
@media (prefers-reduced-motion: reduce) { #bRat.drang:not([disabled]) { animation: none; box-shadow: 0 0 0 3px rgba(240, 80, 60, .8); } }
:root { --sgzl-grund: rgba(253, 246, 232, .97); --sgzl-text: #2e2116; --sgzl-akzent: #9a5a12; --sgzl-akzent-text: #fff6e6; }
html[data-ansicht="abend"] { --sgzl-grund: rgba(44, 28, 16, .97); --sgzl-text: #fbecd6; --sgzl-akzent: #f2b84a; --sgzl-akzent-text: #2a1a0c; }
html[data-ansicht="nacht"] { --sgzl-grund: rgba(22, 26, 50, .97); --sgzl-text: #eef2ff; --sgzl-akzent: #9fd2ff; --sgzl-akzent-text: #0f1530; }
#m_lern { display: none !important; }
#lo-lern { margin: 8px 0 0; min-height: 66px; justify-content: center; }
.lernziel { position: absolute; z-index: 4; box-sizing: border-box; margin: 0; padding: 0; border: 0; border-radius: 8px; cursor: pointer; background: rgba(255, 226, 120, .2); box-shadow: inset 0 0 0 3px #f2c230; touch-action: none; }
.lernziel[hidden], #lernPlatz[hidden] { display: none; }
#lernPlatz { position: absolute; z-index: 3; box-sizing: border-box; border: 3px dashed #f2c230; border-radius: 8px; background: rgba(255, 226, 120, .12); pointer-events: none; }
body.lern #wZeit, body.lern #bNeu, body.lern #bPause, body.lern #kabinett, body.lern #auftrag { display: none !important; }
#hud .sgzl { margin: 6px 0; }
#lernEnde .lernlob { margin: 8px 0; font-size: 16px; line-height: 1.45; }
body.hoch.lern #hud { grid-template-areas: 'logo logo modus modus' 'punkte punkte e1 e2' 'lern lern lern lern' 'kn kn kn kn'; }
body.hoch #hud .sgzl { grid-area: lern; margin: 2px 0; padding: 8px 56px 8px 10px; }
body.hoch #hud .sgzl-titel { font-size: 15px; } body.hoch #hud .sgzl-text { font-size: 13px; line-height: 1.32; } body.hoch #hud .sgzl-punkte { display: none; }
body.hoch #hud .sgzl-weiter { min-height: 42px; margin-top: 6px; }
.menue:has(#lo-lern) .menuesteine { display: none; }
@media (max-height: 560px) and (min-aspect-ratio: 1/1) {
  body.lern:not(.hoch) #buehne { grid-template-columns: 290px 1fr; }
  body.lern:not(.hoch) #logo, body.lern:not(.hoch) #modus, body.lern:not(.hoch) #info, body.lern:not(.hoch) #eigen, #hud .sgzl-punkte { display: none; }
  #hud .sgzl { padding: 8px 56px 8px 10px; margin: 2px 0; } #hud .sgzl-titel { font-size: 15px; } #hud .sgzl-text { font-size: 13px; line-height: 1.32; }
  #hud .sgzl-kopf { margin-bottom: 2px; } #hud .sgzl-weiter { min-height: 40px; margin-top: 6px; }
  #lo-lern { min-height: 44px; flex-direction: row; align-items: center; gap: 12px; padding: 6px 12px; margin: 4px 0 0; }
  #lo-lern small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .menue:has(#lo-lern) > .unter { display: none; }
}
body.lern:not(.hoch) #info { font-size: 15px; font-weight: 700; color: var(--akzent); }
@media (max-height: 820px) and (min-aspect-ratio: 1/1) { body.lern:not(.hoch) #logo, body.lern:not(.hoch) #modus, body.lern:not(.hoch) #eigen { display: none; } }
#werkzeug .wz > * { pointer-events: none; }
@media (max-width: 520px) and (orientation: portrait) { .menue:has(#lo-lern) > .unter { display: none; } }
body.lern #knoepfe button > * { pointer-events: none; }
body .sgzzu-x { background: rgba(10, 12, 18, .9); } body .sgzzu-x:hover { background: rgba(30, 34, 46, .95); }
body.lern #bRat { opacity: .45; }
@media (max-height: 460px) and (min-aspect-ratio: 1/1) { #lo-lern { min-height: 38px; padding: 4px 12px; margin: 2px 0 0; } .menue:has(#lo-lern) .modi { margin-top: 8px; } }

.wz .wzbar { position: absolute; left: 14%; right: 14%; bottom: 5px; height: 4px; border-radius: 2px; background: rgba(0, 0, 0, .35); overflow: hidden; pointer-events: none; }
.wz .wzbar em { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #ffd06a, #fff3c4); box-shadow: 0 0 6px rgba(255, 220, 120, .8); transition: width .6s ease-out; }
#bestJagd { display: block; margin: -2px 0 2px; }
#bestJagd i { display: block; height: 6px; border-radius: 3px; background: rgba(120, 80, 30, .2); overflow: hidden; }
#bestJagd em { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #d9a640, #f2c45c); transition: width .7s ease-out; }
#bestJagd.nah em { background: linear-gradient(90deg, #e0603a, #ffb84a); box-shadow: 0 0 8px rgba(255, 150, 60, .7); }
#bestJagd.drueber em { background: linear-gradient(90deg, #2f7a4f, #7fbf5a); }
#bestJagd small { display: block; margin-top: 2px; font: 600 11.5px/1.2 'Segoe UI', system-ui, sans-serif; color: #5a4330; text-align: center; font-variant-numeric: lining-nums tabular-nums; }
body.hoch #bestJagd { display: none; }
@media (max-height: 460px) and (orientation: landscape) { #bestJagd { display: none; } }
@media (prefers-reduced-motion: reduce) { #bestJagd em, .wz .wzbar em { transition: none; } }
#kabinett .ka { display: flex; gap: 3px; margin-top: 4px; }
#kabinett .ak + .ka, #kabinett .kg + .ak { margin-top: 5px; }
.abz { display: inline-block; flex: 1; aspect-ratio: 1; max-width: 16px; border-radius: 50%; background: rgba(255, 255, 255, .08); border: 1px dashed rgba(255, 240, 210, .35); }
.abz.an { border: 0; background: radial-gradient(circle at 35% 30%, #fff6c8, #e0a83a 55%, #8a5a12); box-shadow: 0 0 6px rgba(255, 200, 90, .8); }
#flugEbene .abz.gross { display: block; width: 26px; height: 26px; max-width: none; margin: -13px 0 0 -13px; border: 0; background: radial-gradient(circle at 35% 30%, #fff6c8, #e0a83a 55%, #8a5a12); box-shadow: 0 0 12px rgba(255, 200, 90, .9); }
.abzneu .abz { width: 14px; height: 14px; flex: none; vertical-align: -2px; margin-right: 4px; }
#ov .reihe .rueckKnopf svg { width: 18px; height: 18px; }
#rueckOv { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 10px; background: rgba(12, 7, 3, .62); }
#rueckOv .rueckDlg { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; max-width: min(460px, 96vw); max-height: 96vh; overflow: auto; padding: 12px 14px 14px;
  border-radius: 16px; border: 2px solid #b98b3c; background: linear-gradient(180deg, #3a2414, #24160b); color: #fff1cf; box-shadow: 0 18px 40px rgba(0, 0, 0, .55);
  font: 500 14px/1.35 'Segoe UI', system-ui, sans-serif; scrollbar-width: thin; scrollbar-color: #b98b3c transparent; }
#rueckOv h3 { margin: 0 44px 0; font: 700 19px/1.2 'SGZ Ziffern', Georgia, serif; color: #ffe08a; text-align: center; }
#rueckOv .rtabs { display: flex; gap: 6px; width: 100%; }
#rueckOv .rtabs button { flex: 1; min-height: 44px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 4px 6px; border-radius: 10px;
  border: 1px solid rgba(185, 139, 60, .7); background: rgba(255, 255, 255, .06); color: #fff1cf; font: 600 12px/1.15 'Segoe UI', system-ui, sans-serif; cursor: pointer; }
#rueckOv .rtabs button b { font: 800 15px/1 'SGZ Ziffern', Georgia, serif; color: #ffd06a; font-variant-numeric: lining-nums tabular-nums; }
#rueckOv .rtabs button.an { border-color: #ffe08a; background: rgba(255, 224, 138, .2); box-shadow: 0 0 0 2px rgba(255, 224, 138, .35); }
#rueckOv .rcv { display: block; border-radius: 8px; border: 3px solid #7a4a26; box-shadow: 0 6px 14px rgba(0, 0, 0, .45); background: #24160b; }
#rueckOv .rtext { min-height: 2.7em; max-width: 100%; text-align: center; font-weight: 600; color: #f2dcae; }
#rueckOv .rknoepfe { display: flex; gap: 8px; }
#rueckOv .rknoepfe button { min-height: 42px; padding: 6px 16px; border-radius: 10px; border: 1px solid #b98b3c; background: rgba(255, 255, 255, .08); color: #fff1cf; font: 600 14px 'Segoe UI', system-ui, sans-serif; cursor: pointer; }
#rueckOv .rknoepfe .rnoch { background: linear-gradient(180deg, #f2c25a, #c98d24); color: #2e1a08; border-color: #ffe08a; }
#ov .dlg.menue:has(#m_woche) { width: min(940px, 100%); }
#ov .menue .modi:has(#m_woche) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 700px) and (orientation: portrait) { #ov .menue .modi:has(#m_woche) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-height: 640px) and (min-aspect-ratio: 1/1) { .menue:has(#m_woche) > .unter { display: none; } #ov .menue .modi:has(#m_woche) .modus { padding-top: 6px; padding-bottom: 6px; } }
@media (max-height: 460px) and (orientation: landscape) {
  #ov .menue .modi:has(#m_woche) .modus svg { display: none; }
  #ov .menue .modi:has(#m_woche) .modus b { font-size: 18px; } #ov .menue .modi:has(#m_woche) .modus span { font-size: 11px; } #ov .menue .modi:has(#m_woche) .modus em { font-size: 15px; }
}
@media (max-height: 460px) and (max-width: 720px) and (orientation: landscape) {
  #ov .menue .modi:has(#m_woche) { gap: 8px; }
  #ov .menue .modi:has(#m_woche) .modus { padding: 5px 6px; }
  #ov .menue .modi:has(#m_woche) .modus b { font-size: 15.5px; } #ov .menue .modi:has(#m_woche) .modus em { font-size: 13px; } #ov .menue .modi:has(#m_woche) .modus span { font-size: 11px; line-height: 1.2; }
}
@media (max-width: 520px) and (orientation: portrait) {
  #ov .menue .modi:has(#m_woche) { gap: 8px; }
  #ov .menue .modi:has(#m_woche) .modus { padding: 6px 6px; }
  #ov .menue .modi:has(#m_woche) .modus b { font-size: 17px; } #ov .menue .modi:has(#m_woche) .modus em { font-size: 14px; } #ov .menue .modi:has(#m_woche) .modus span { font-size: 11.5px; line-height: 1.25; }
}
@media (max-height: 520px) and (orientation: landscape) {
  #rueckOv .rueckDlg { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto 1fr auto; column-gap: 16px; row-gap: 8px; align-items: center;
    max-width: min(720px, 96vw); padding: 10px 14px; }
  #rueckOv .rcv { grid-column: 1; grid-row: 1 / 5; }
  #rueckOv h3 { grid-column: 2; margin: 0 44px 0 0; text-align: left; }
  #rueckOv .rtabs, #rueckOv .rtext, #rueckOv .rknoepfe { grid-column: 2; }
  #rueckOv .rtext { text-align: left; align-self: start; }
}
@media (min-aspect-ratio: 1/1) { #ov .dlg.ende .reihe:has(#eRueck) { flex-wrap: nowrap; gap: 8px; } #ov .dlg.ende .reihe:has(#eRueck) .knopf { padding-left: 12px; padding-right: 12px; white-space: nowrap; } }
