@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 {
  --akzent: #b5452b; --akzent2: #2f6f8a; --akzent3: #fbf3e2; --tief: #6b4626; --panel: rgba(251, 246, 234, .95); --panel2: rgba(252, 248, 238, .97);
  --text: #2b2418; --mute: #6b5d45; --rand: rgba(181, 69, 43, .45); --knopf1: #f6ead0; --knopf2: #dcc59a; --knopfText: #2b2418;
  --gruen: #2e7d3a; --rot: #b5452b; --gold: #b8862a; --karton1: #d1a46a; --karton2: #a9783e; --messing1: #ffe6a0; --messing2: #c8962e; --messing3: #6e4c10;
  --kopf: 'SGZ Ziffern', Georgia, 'Times New Roman', serif;
  --mo-bg1: #7a3b4a; --mo-bg2: #4a1f2a; --mo-bg3: #26101a; --mo-rand: #e2a92a; --mo-rand-weich: rgba(226, 169, 42, .35); --mo-akzent: #ffe0a0; --mo-akzent2: #f2b8c6;
}
html[data-ansicht="lampe"] {
  --akzent: #f0b860; --akzent2: #9ad0e8; --akzent3: #2a1a10; --tief: #1e130a; --panel: rgba(34, 24, 16, .93); --panel2: rgba(38, 27, 18, .97);
  --text: #fbeedb; --mute: #e6cf9f; --rand: rgba(240, 184, 96, .45); --knopf1: #5a3e26; --knopf2: #2e1e12; --knopfText: #fbeedb;
  --gruen: #7fd38a; --rot: #ff8a6a; --gold: #f0c060; --karton1: #b88a50; --karton2: #7e5428;
}
html[data-ansicht="leucht"] {
  --akzent: #3dff7a; --akzent2: #7dffea; --akzent3: #021208; --tief: #000; --panel: rgba(2, 14, 7, .94); --panel2: rgba(3, 18, 9, .97);
  --text: #c8ffd8; --mute: #7fdc9c; --rand: rgba(61, 255, 122, .5); --knopf1: #0a2a14; --knopf2: #041a0b; --knopfText: #c8ffd8;
  --gruen: #3dff7a; --rot: #ff6a6a; --gold: #ffe94f; --karton1: #031a0b; --karton2: #010a04;
  --mo-bg1: #0a3a1a; --mo-bg2: #04200d; --mo-bg3: #010d05; --mo-rand: #3dff7a; --mo-rand-weich: rgba(61, 255, 122, .35); --mo-akzent: #c8ffd8; --mo-akzent2: #7dffea;
}
body.hoch { --mo-fs-klein: 15px; }
body { background: var(--tief); }
#kulisse { position: fixed; inset: 0; z-index: 0; overflow: clip; background: #8a5a32 url(img/ort-tag-q.webp?v=1) center / cover no-repeat; }
body.hoch #kulisse { background-image: url(img/ort-tag-h.webp?v=1); }
html[data-ansicht="lampe"] #kulisse, html[data-ansicht="leucht"] #kulisse { background-image: url(img/ort-lampe-q.webp?v=1); background-color: #2a1a0c; }
html[data-ansicht="lampe"] body.hoch #kulisse, html[data-ansicht="leucht"] body.hoch #kulisse { background-image: url(img/ort-lampe-h.webp?v=1); }
html[data-ansicht="leucht"] #kulisse::before { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, .45); }
#kulisse i { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 18% 14%, rgba(255, 244, 200, .28), transparent 42%); animation: licht 11s ease-in-out infinite alternate; }
html[data-ansicht="lampe"] #kulisse i, html[data-ansicht="leucht"] #kulisse i { background: radial-gradient(circle at 8% 8%, rgba(255, 200, 110, .26), transparent 34%); animation: lampe 2.4s steps(5) infinite alternate; }
@keyframes licht { from { opacity: .55; transform: translateX(-20px); } to { opacity: 1; transform: translateX(20px); } }
@keyframes lampe { from { opacity: .8; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { #kulisse i { animation: none; } }
#buehne { z-index: 1; }

#hud { background: var(--panel); border-color: var(--rand); box-shadow: 0 10px 26px rgba(30, 15, 0, .45); }
html:not([data-ansicht]) #hud, html[data-ansicht="tag"] #hud { background: linear-gradient(180deg, #fdf9ef, #f2e8d2); }
#logo span, #logo b { font-family: Georgia, 'Times New Roman', serif; }
#logo b { color: var(--akzent); }
.wert { background: rgba(255, 252, 244, .75); border-bottom: 1px dashed rgba(107, 93, 69, .35); }
html[data-ansicht="lampe"] .wert, html[data-ansicht="leucht"] .wert { background: rgba(0, 0, 0, .3); }
.wert b { color: var(--text); font-family: var(--kopf); font-variant-numeric: lining-nums tabular-nums; font-kerning: none; }
#eigen { grid-template-columns: 1fr 1fr; }
.endwert { color: var(--akzent); font-family: var(--kopf); font-variant-numeric: lining-nums tabular-nums; }
.hinweis { background: rgba(255, 252, 244, .8); color: var(--text); }
html[data-ansicht="lampe"] .hinweis, html[data-ansicht="leucht"] .hinweis { background: rgba(0, 0, 0, .3); color: var(--mute); }
#banner { color: var(--akzent); text-shadow: 0 2px 0 rgba(255, 250, 238, .9), 0 0 18px rgba(0, 0, 0, .35); z-index: 6; }
html[data-ansicht="leucht"] #banner { text-shadow: 0 0 14px rgba(61, 255, 122, .8); }
#knoepfe { grid-template-columns: repeat(4, 1fr); }
#knoepfe button.beschr { flex-direction: column; gap: 0; height: 50px; }
#knoepfe button.beschr small { font-size: 11px; line-height: 1; margin-top: 2px; }
#zeit, #punkte { font-family: var(--kopf); font-variant-numeric: lining-nums tabular-nums; font-kerning: none; }

#brettbox { overflow: clip; }
#brett { display: none; }
#werk { position: absolute; inset: 0; display: grid; align-items: center; justify-content: center; gap: 18px; --k: 400px; --stock: 40px; --seite: 200px; --leiste: 180px; }
#werk.quer { grid-template-columns: var(--stock) calc(var(--k) * 1.17) var(--seite); grid-template-areas: 'stock karton seite'; }
#werk.hoch { grid-template-columns: calc(var(--k) * 1.17); grid-template-rows: calc(var(--k) * 1.17) 24px var(--leiste); grid-template-areas: 'karton' 'stock' 'seite'; gap: 6px; align-content: center; }
#werk.hoch #stock { width: calc(var(--k) * 1.06); height: 24px; justify-self: center; padding: 3px 4px 3px 50px; flex-direction: row; }
#werk.hoch #stock > b { top: 50%; transform: translateY(-50%); left: 6px; right: auto; }
#werk.hoch #stockLagen { flex-direction: row-reverse; }
#werk.hoch #stockLagen i s { right: 50%; transform: translate(50%, -50%); }

#kartonRand { grid-area: karton; position: relative; width: calc(var(--k) * 1.17); height: calc(var(--k) * 1.17); display: flex; align-items: center; justify-content: center; }
#karton { position: relative; width: calc(var(--k) * 1.06); height: calc(var(--k) * 1.06); border-radius: 4px; touch-action: none; cursor: grab;
  background: linear-gradient(135deg, rgba(255, 240, 210, .25), transparent 40%), repeating-linear-gradient(90deg, rgba(90, 55, 20, .08) 0 2px, transparent 2px 9px), linear-gradient(135deg, var(--karton1), var(--karton2));
  box-shadow: 14px 20px 30px rgba(20, 10, 0, .5), inset 0 0 0 2px rgba(60, 35, 10, .45); z-index: 2; }
#kfeld { position: absolute; inset: 2.8%; }
.lasche { position: absolute; z-index: 1; background: linear-gradient(135deg, var(--karton1), var(--karton2)); box-shadow: inset 0 0 0 1px rgba(60, 35, 10, .35); }
.lasche.o { left: 4%; right: 4%; top: 0; height: 9%; clip-path: polygon(0 0, 100% 0, 96% 100%, 4% 100%); filter: brightness(1.08); }
.lasche.u { left: 4%; right: 4%; bottom: 0; height: 9%; clip-path: polygon(4% 0, 96% 0, 100% 100%, 0 100%); filter: brightness(.82); }
.lasche.l { top: 4%; bottom: 4%; left: 0; width: 9%; clip-path: polygon(0 0, 100% 4%, 100% 96%, 0 100%); filter: brightness(1.02); }
.lasche.r { top: 4%; bottom: 4%; right: 0; width: 9%; clip-path: polygon(0 4%, 100% 0, 100% 100%, 0 96%); filter: brightness(.88); }
html[data-ansicht="leucht"] #karton { background: #010a04; box-shadow: 0 0 0 2px #3dff7a66, 0 0 30px rgba(61, 255, 122, .25), 14px 20px 30px rgba(0, 0, 0, .6); }
html[data-ansicht="leucht"] .lasche { background: #021208; box-shadow: inset 0 0 0 1px #3dff7a55; }

#meld { position: absolute; left: 50%; top: 10px; transform: translateX(-50%); z-index: 5; width: min(520px, calc(100% - 20px)); display: flex; flex-direction: column; gap: 6px; pointer-events: none; }
#meld .m { padding: 7px 12px; border-radius: 10px; background: var(--panel2); color: var(--text); border: 2px solid var(--rand); font-size: 14px; line-height: 1.3;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .3); text-align: center; transition: opacity .35s, transform .35s; }
#meld .m.gut { border-color: var(--gold); }
#meld .m.weg { opacity: 0; transform: translateY(-6px); }

#stock { grid-area: stock; align-self: center; height: calc(var(--k) * 1.06); width: var(--stock); padding: 22px 5px 6px; border-radius: 6px; position: relative; cursor: help;
  background: linear-gradient(90deg, #f0d88e, #e2c46a 60%, #c9a648); border: 2px solid #8a6a1e; box-shadow: 6px 10px 18px rgba(20, 10, 0, .45); display: flex; flex-direction: column; }
#stock > b { position: absolute; left: 0; right: 0; top: 3px; text-align: center; font: 700 11px/1 Arial, sans-serif; color: #3a2a05; letter-spacing: .3px; }
#stockLagen { flex: 1; display: flex; flex-direction: column; gap: 2px; min-height: 0; }
#stockLagen i { flex: 1; position: relative; border: 1px solid rgba(90, 65, 10, .55); background: rgba(255, 248, 222, .75); overflow: clip; min-height: 3px; }
#stockLagen i u { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--a) * 100%); background: var(--f); }
#stockLagen i s { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); font: 700 11px/1 Arial, sans-serif; color: #3a2a05; text-decoration: none; }
#stock.eng { animation: eng 0.9s ease-in-out infinite alternate; }
@keyframes eng { from { box-shadow: 6px 10px 18px rgba(20, 10, 0, .45), 0 0 0 0 rgba(224, 68, 42, 0); } to { box-shadow: 6px 10px 18px rgba(20, 10, 0, .45), 0 0 0 4px rgba(224, 68, 42, .85); } }
html[data-ansicht="leucht"] #stock { background: #021208; border-color: #3dff7a; }
html[data-ansicht="leucht"] #stock > b, html[data-ansicht="leucht"] #stockLagen i s { color: #c8ffd8; }
html[data-ansicht="leucht"] #stockLagen i { background: #010a04; border-color: #3dff7a55; }

#seite { grid-area: seite; display: flex; flex-direction: column; gap: 14px; align-items: stretch; align-self: center; }
#werk.hoch #seite { display: grid; grid-template-columns: minmax(0, 1.15fr) repeat(3, minmax(0, 1fr)); grid-template-rows: minmax(0, 1.25fr) minmax(0, 1fr); grid-template-areas: 'tab dreh dreh dreh' 'tab rat tief fall'; gap: 8px; height: var(--leiste); align-items: stretch; }
#werk.hoch #tablett { grid-area: tab; }
#werk.hoch #dreh { grid-area: dreh; }
#werk.hoch #tasten { display: contents; }
#werk.hoch #kRat { grid-area: rat; } #werk.hoch #kTief { grid-area: tief; } #werk.hoch #kFall { grid-area: fall; }
#tablett { position: relative; border-radius: 50%; aspect-ratio: 1.6; background: radial-gradient(ellipse at 40% 35%, #f4f7f9, #c9cfd4 60%, #8d969c); border: 4px solid #7d868c;
  box-shadow: 8px 12px 20px rgba(20, 10, 0, .45), inset 0 0 0 6px rgba(255, 255, 255, .35); cursor: help; }
#werk.hoch #tablett { aspect-ratio: auto; border-radius: 40%; }
#tablett > span { position: absolute; left: 0; right: 0; top: -22px; text-align: center; font: 700 12px/1 Arial, sans-serif; color: #fff4d8; text-shadow: 0 1px 2px #000, 0 0 6px #000; letter-spacing: .4px; }
#werk.hoch #tablett > span { top: 6px; color: #2b2418; text-shadow: none; font-size: 11px; }
#tfeld { position: absolute; inset: 10% 16%; }
#tName { position: absolute; left: 0; right: 0; bottom: -20px; text-align: center; font: 12px/1 Arial, sans-serif; color: #fff4d8; text-shadow: 0 1px 2px #000, 0 0 6px #000; font-style: normal; }
#werk.hoch #tName { bottom: 6px; color: #2b2418; text-shadow: none; font-size: 11px; }
html[data-ansicht="leucht"] #tablett { background: #010a04; border-color: #3dff7a; }
html[data-ansicht="leucht"] #werk.hoch #tablett > span, html[data-ansicht="leucht"] #werk.hoch #tName { color: #c8ffd8; }
#dreh { display: flex; justify-content: space-between; gap: 4px; }
#werk.hoch .knauf { width: 58px; height: 58px; }
#werk.hoch #dreh { align-items: center; justify-content: space-around; padding: 0 4px; }
.drehbox { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; }
.drehbox small { font: 700 12px/1 Arial, sans-serif; color: #fff4d8; text-shadow: 0 1px 2px #000, 0 0 6px #000; white-space: nowrap; }
.knauf { width: min(58px, calc((var(--seite) - 20px) / 3)); height: min(58px, calc((var(--seite) - 20px) / 3)); border-radius: 50%; border: 3px solid var(--messing3); padding: 0; cursor: grab; touch-action: none; position: relative;
  background: radial-gradient(circle at 35% 30%, var(--messing1), var(--messing2) 55%, var(--messing3)); box-shadow: 4px 6px 10px rgba(20, 10, 0, .5), inset 0 0 0 4px rgba(90, 60, 10, .3); }
.knauf i { position: absolute; inset: 8px; border-radius: 50%; transition: transform .16s ease-out; }
.knauf i::before { content: ''; position: absolute; left: 50%; top: 2px; width: 6px; height: 16px; margin-left: -3px; border-radius: 3px; background: #3a2a05; }
.knauf i::after { content: ''; position: absolute; inset: 10px; border-radius: 50%; border: 3px solid rgba(58, 42, 5, .55); border-left-color: transparent; }
.knauf:focus-visible { outline: 3px solid var(--akzent2); outline-offset: 2px; }
html[data-ansicht="leucht"] .knauf { background: #021208; border-color: #3dff7a; box-shadow: 0 0 10px rgba(61, 255, 122, .4); }
html[data-ansicht="leucht"] .knauf i::before { background: #3dff7a; } html[data-ansicht="leucht"] .knauf i::after { border-color: #3dff7a88; border-left-color: transparent; }
#tasten { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
#tasten button { min-height: 44px; border-radius: 10px; border: 2px solid #6e4c10; background: linear-gradient(#f6e7c0, #dcc08a); color: var(--knopfText); font: 700 14px/1 Arial, sans-serif;
  display: flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; touch-action: none; box-shadow: 0 3px 8px rgba(20, 10, 0, .4); }
#tasten button svg { width: 18px; height: 18px; }
#kFall { grid-column: 1 / -1; background: linear-gradient(#d0583a, #a8381f) !important; color: #fff4e0 !important; border-color: #5a1c10 !important; min-height: 52px !important; font-size: 16px !important; }
#werk.hoch #kFall { grid-column: auto; min-height: 44px !important; font-size: 15px !important; }
#werk.hoch #tasten button { flex-direction: column; gap: 2px; font-size: 13px; min-height: 44px; }
#tasten button.gedrueckt { transform: translateY(2px); box-shadow: 0 1px 3px rgba(20, 10, 0, .4); }
html[data-ansicht="leucht"] #tasten button { background: #021208; color: #c8ffd8; border-color: #3dff7a; }
html[data-ansicht="leucht"] #kFall { background: #2a0606 !important; border-color: #ff6a6a !important; color: #ffd0d0 !important; }

#infotip { position: fixed; z-index: 40; max-width: 260px; padding: 8px 11px; border-radius: 10px; background: var(--panel2); color: var(--text); border: 2px solid var(--rand); font-size: 13.5px; line-height: 1.35; box-shadow: 0 8px 22px rgba(0, 0, 0, .35); pointer-events: none; }

.einstfenster { position: fixed; inset: 0; z-index: 30; display: flex; align-items: center; justify-content: center; background: rgba(20, 10, 0, .45); padding: 12px; }
.einstfenster .dlg { position: relative; max-width: 520px; width: 100%; max-height: calc(100% - 10px); overflow: auto; scrollbar-width: thin; scrollbar-color: var(--akzent) transparent; }
.einstfenster h3 { margin: 10px 0 4px; font: 700 15px/1.2 Arial, sans-serif; color: var(--akzent); }
.ereihe { display: flex; align-items: center; gap: 10px; margin: 6px 0; flex-wrap: wrap; }
.ereihe > b { min-width: 86px; font-size: 14px; }
.ewahl { display: flex; gap: 5px; flex-wrap: wrap; }
.ewahl button { min-width: 42px; min-height: 40px; padding: 0 10px; border-radius: 8px; border: 2px solid var(--rand); background: var(--knopf1); color: var(--knopfText); font: 700 14px/1 Arial, sans-serif; cursor: pointer; }
.ewahl button.an { background: var(--akzent); color: #fff; border-color: var(--akzent); }
html[data-ansicht="leucht"] .ewahl button.an { color: #021208; }
.einstfenster p.klein { font-size: 13px; color: var(--mute); margin: 4px 0 8px; }
.einstfenster .knoepfe { display: flex; justify-content: center; margin-top: 10px; }


@media (max-height: 560px) and (orientation: landscape) { #seite { gap: 8px; } .knauf { width: 48px; height: 48px; } #tasten button { min-height: 40px; } }
@media (prefers-reduced-motion: reduce) { #stock.eng { animation: none; box-shadow: 0 0 0 4px rgba(224, 68, 42, .85); } .knauf i { transition: none; } }
#werk[data-art="waende"] #stock { visibility: hidden; }
#werk[data-art="waende"] .drehbox:not(:last-child) { display: none; }
#tablett > span, #tName, .drehbox small { background: #2b1a0c; color: #fff4d8 !important; text-shadow: none !important; padding: 3px 8px; border-radius: 8px; left: 50%; right: auto; transform: translateX(-50%); white-space: nowrap; }
.drehbox small { transform: none; }

#banner { background: rgba(251, 246, 234, .94); padding: 6px 22px 10px; border-radius: 16px; box-shadow: 0 8px 24px rgba(20, 10, 0, .4); text-shadow: none; }
html[data-ansicht="lampe"] #banner, html[data-ansicht="leucht"] #banner { background: rgba(20, 12, 6, .92); }
#banner small { text-shadow: none; }
body.hoch #knoepfe { flex-wrap: wrap; row-gap: 6px; }
body.hoch #knoepfe button { flex: 0 0 auto; width: 54px; height: 44px; }
#hud { background-image: repeating-linear-gradient(0deg, rgba(110, 80, 40, .07) 0 1px, transparent 1px 24px), linear-gradient(180deg, var(--panel), var(--panel)); }
html:not([data-ansicht]) #hud, html[data-ansicht="tag"] #hud { background-image: repeating-linear-gradient(0deg, rgba(110, 80, 40, .08) 0 1px, transparent 1px 24px), linear-gradient(180deg, #fdf9ef, #f2e8d2); }
.wert { background-image: repeating-linear-gradient(90deg, rgba(110, 80, 40, .045) 0 1px, transparent 1px 7px); }
#knoepfe button, #tasten button, .ewahl button { background-image: repeating-linear-gradient(100deg, rgba(90, 60, 20, .09) 0 2px, transparent 2px 9px), linear-gradient(var(--knopf1), var(--knopf2)); }
#kFall { background-image: repeating-linear-gradient(100deg, rgba(60, 10, 0, .12) 0 2px, transparent 2px 9px), linear-gradient(#d0583a, #a8381f) !important; }
#tablett { background-image: repeating-radial-gradient(ellipse at 50% 50%, rgba(255, 255, 255, .1) 0 2px, transparent 2px 9px), radial-gradient(ellipse at 40% 35%, #f4f7f9, #c9cfd4 60%, #8d969c); }
#stock { background-image: repeating-linear-gradient(0deg, rgba(58, 42, 5, .45) 0 1px, transparent 1px 9px), linear-gradient(90deg, #f0d88e, #e2c46a 60%, #c9a648); background-size: 6px 100%, 100% 100%; background-repeat: no-repeat; background-position: right top, 0 0; }
#stock { overflow: clip; }
#stockLagen i { min-height: 0; }
html[data-ansicht="leucht"] #knoepfe button, html[data-ansicht="leucht"] #tasten button { background-image: repeating-linear-gradient(0deg, rgba(61, 255, 122, .07) 0 1px, transparent 1px 4px), linear-gradient(#0a2a14, #041a0b); }
html[data-ansicht="leucht"] #tablett { background-image: repeating-radial-gradient(ellipse at 50% 50%, rgba(61, 255, 122, .12) 0 1px, transparent 1px 7px); background-color: #010a04; }
html[data-ansicht="leucht"] #stock { background-image: repeating-linear-gradient(0deg, rgba(61, 255, 122, .5) 0 1px, transparent 1px 9px); background-color: #021208; }
#hud { background-color: #f8f2e2; }
html[data-ansicht="lampe"] #hud { background-color: #221810; } html[data-ansicht="leucht"] #hud { background-color: #020e07; }
.wert { background-color: rgba(255, 252, 244, .9); }
html[data-ansicht="lampe"] .wert, html[data-ansicht="leucht"] .wert { background-color: rgba(0, 0, 0, .35); }
#knoepfe button, #tasten button, .ewahl button { background-color: var(--knopf1); }
#stock { background-color: #e8cf7c; } html[data-ansicht="leucht"] #stock { background-color: #021208; }
#stockLagen i s { background: rgba(255, 248, 222, .9); padding: 0 2px; border-radius: 3px; }
html[data-ansicht="leucht"] #stockLagen i s { background: #021208; }
.knauf::after { content: attr(data-achse); position: absolute; right: -5px; bottom: -5px; min-width: 18px; height: 18px; border-radius: 9px; background: #2b1a0c; color: #fff4d8;
  font: 700 11px/18px Arial, sans-serif; text-transform: uppercase; text-align: center; display: none; }
#werk.hoch .knauf::after { display: block; }
#werk.hoch .drehbox small { display: none; }
#werk.hoch .knauf { width: 52px; height: 52px; }
#logo span { color: var(--text); } #modus { color: var(--mute); }
html:not([data-ansicht]) #hud, html[data-ansicht="tag"] #hud { background-color: #f8f2e2; }
#werk.hoch #stockLagen i { min-width: 0; flex: 1 1 0; }
#werk.hoch #stockLagen i s { padding: 0; background: none; font-size: 11px; }
#werk.hoch #tablett > span { display: none; }
.menue:has(.modi:is(.n6, .n7)) { width: min(1040px, 100%); }
.modi:is(.n6, .n7) { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.modi:is(.n6, .n7) .modus { padding: 10px 8px; } .modi:is(.n6, .n7) .modus b { font-size: 18px; } .modi:is(.n6, .n7) .modus span { font-size: 12px; } .modi:is(.n6, .n7) .modus em { font-size: 14px; }
@media (max-height: 820px) {
  .menue .schildkopf { font-size: 34px; margin: 0 0 4px; } .menue .unter { font-size: 13px; margin-bottom: 4px; }
  .modi { gap: 8px; margin: 8px 0 4px; } .modus svg { width: 22px; height: 22px; margin-bottom: 2px; }
  .menue h3 { margin: 6px 0 3px; font-size: 15px; } .menue .liste td { padding: 2px 6px; } .menue .reihe { margin-top: 8px; }
  .menue .liste tr:nth-child(n+4) { display: none; }
}
@media (max-height: 640px) { .menue .unter { display: none; } .modi:is(.n6, .n7) .modus span { display: none; } .menue .liste tr:nth-child(n+3) { display: none; } }
@media (max-width: 900px) and (min-aspect-ratio: 1/1) { .modi:is(.n6, .n7) .modus span { display: none; } .modi:is(.n6, .n7) .modus b { font-size: 15px; } }
@media (max-height: 480px) and (min-aspect-ratio: 1/1) {
  .dlg.menue { padding: 8px 14px; } .menue .schildkopf { font-size: 24px; } .modus svg { display: none; } .modi:is(.n6, .n7) .modus { padding: 6px 6px; }
  .menue h3, .menue .liste, .menue .leer { display: none; }
}
@media (max-width: 700px) and (orientation: portrait) {
  .menue .schildkopf { font-size: 28px; margin: 0 0 2px; } .menue .unter { display: none; }
  .modi:is(.n6, .n7) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } #m_werkstatt { grid-column: 1 / -1; }
  .modi:is(.n6, .n7) .modus { padding: 8px 6px; } .modi:is(.n6, .n7) .modus span { display: none; } .modi:is(.n6, .n7) .modus b { font-size: 16px; } .modi:is(.n6, .n7) .modus em { font-size: 13px; margin-top: 2px; }
  .modus svg { width: 20px; height: 20px; margin-bottom: 0; }
  .menue h3 { margin: 6px 0 2px; font-size: 14px; } .menue .liste tr:nth-child(n+4) { display: none; } .menue .reihe { margin-top: 8px; gap: 6px; }
}
@media (max-width: 700px) and (orientation: portrait) {
  .einstfenster .dlg { padding: 14px 12px; } .einstfenster h2 { font-size: 20px; margin: 0 0 4px; } .einstfenster h3 { margin: 6px 0 2px; }
  .ereihe { margin: 3px 0; gap: 6px; } .ereihe > b { min-width: 70px; font-size: 13px; } .ewahl { gap: 4px; } .ewahl button { min-width: 40px; padding: 0 7px; }
  .einstfenster p.klein { display: none; }
}
.zu-ziel { margin: 6px 0 0; text-align: center; font-weight: 700; color: var(--mo-akzent); }
#werk.quer.klein { grid-template-columns: calc(var(--k) * 1.17) var(--seite); grid-template-areas: 'karton seite'; gap: 8px; }
#werk.klein #stock { display: none; }
#werk.klein #seite { gap: 6px; }
#werk.klein #tablett { aspect-ratio: 2.2; border-width: 3px; }
#werk.klein #tablett > span, #werk.klein .drehbox small { display: none; }
#werk.klein #tName { bottom: 2px; font-size: 11px; padding: 1px 6px; }
#werk.klein .knauf { width: 42px; height: 42px; }
#werk.klein .knauf::after { display: block; }
#werk.klein #tasten button { min-height: 40px; font-size: 13px; }
#werk.klein #kFall { min-height: 44px !important; font-size: 15px !important; }
@media (max-height: 460px) and (min-aspect-ratio: 1/1) {
  #buehne, body:not(.hoch) #buehne { grid-template-columns: 196px 1fr; gap: 6px; padding: 6px; }
  #hud { display: grid; grid-template-columns: 1fr 1fr; align-content: start; gap: 4px; padding: 6px 8px; border-radius: 12px; }
  #logo { grid-column: 1 / -1; font-size: 17px; padding: 0; } #modus { grid-column: 1 / -1; font-size: 11px; min-height: 0; }
  .wert { padding: 2px 4px 3px; border-radius: 8px; } .wert span, body:not(.hoch) .wert span { font-size: 11px; letter-spacing: .3px; } .wert b, .wert.klein b { font-size: 16px; }
  #eigen { grid-column: 1 / -1; gap: 4px; } #eigen .wert:nth-child(3) { display: none; } #info { display: none; }
  #knoepfe { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin-top: 2px; }
  #knoepfe button, #knoepfe button.beschr, body:not(.hoch) #knoepfe button { height: 44px; width: auto; min-width: 0; } #knoepfe button.beschr small { display: none; } #knoepfe svg { width: 19px; height: 19px; }
}
#werk.klein .knauf { width: 36px; height: 36px; }
#werk.klein #dreh { gap: 2px; }
#werk.klein #kRat span, #werk.klein #kTief span { display: none; }
#werk.hoch #stock { padding: 3px 4px; } #werk.hoch #stock > b { display: none; }
.modus:not(.tag) { background: repeating-linear-gradient(100deg, rgba(0, 0, 0, .08) 0 2px, transparent 2px 9px), linear-gradient(#7a5230, #4a2c14); color: #fff4e0; }
html[data-ansicht="leucht"] .modus:not(.tag) { background: repeating-linear-gradient(0deg, rgba(61, 255, 122, .06) 0 1px, transparent 1px 4px), linear-gradient(#0a2a14, #031a0a); color: #c8ffd8; }
:root { --mo-text: #fff4ec; --mo-leise: #f6e2e6; --mo-leiser: #ecccd3; }
html[data-ansicht="leucht"] { --mo-leise: #c8ffd8; --mo-leiser: #9be8b4; }
#stockLagen i s { background: none; padding: 0; text-shadow: 0 0 2px #fff8de, 0 0 2px #fff8de, 0 0 3px #fff8de; }
html[data-ansicht="leucht"] #stockLagen i s { text-shadow: 0 0 2px #021208, 0 0 3px #021208; }
.drehbox small { white-space: normal; text-align: center; max-width: 100%; line-height: 1.2; }
.modus:not(.tag) { background-color: #5a3820; } html[data-ansicht="leucht"] .modus:not(.tag) { background-color: #031a0a; }
html[data-ansicht="leucht"] #stockLagen i s { background: none; }
body:has(#ov:not([hidden])) #tName, body:has(#ov:not([hidden])) #stockLagen s, body:has(#ov:not([hidden])) #meld { visibility: hidden; }
#ov .dlg .zu, #pZu { min-width: 46px; min-height: 46px; }
body.hoch .dlg.mo-tafel .knopf { min-height: 52px; }
body.hoch .dlg.mo-tafel details > summary { min-height: 50px; display: flex; align-items: center; justify-content: center; }
#werk.hoch #stockLagen { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); direction: rtl; gap: 2px; }
#werk.hoch #stockLagen i { direction: ltr; }
.ewahl button { min-width: 46px; min-height: 46px; }
#ov .dlg.mo-tafel .zu { min-width: 52px; min-height: 52px; }
.sgzzu-x { min-width: 48px !important; min-height: 48px !important; }
#m_lehre { display: none !important; }
.menue #mLehre, .menue #mLevel, .menue #mBuch, .menue #mEinst { min-width: 0; padding: 0 12px; font-size: 14px; }
.menue #mLehre.neu { box-shadow: 0 0 0 3px var(--gold); }
#bestell { border-radius: 8px; padding: 6px 8px; background-color: #fffaf0; background-image: repeating-linear-gradient(0deg, rgba(110, 80, 40, .08) 0 1px, transparent 1px 18px); border: 1px dashed rgba(107, 93, 69, .5); cursor: help; }
#bestell > b { display: block; font: 700 12px/1.2 Arial, sans-serif; color: var(--akzent); letter-spacing: .3px; margin-bottom: 2px; }
#bestell p { margin: 2px 0 0; font: 12.5px/1.25 Arial, sans-serif; color: #2b2418; }
#bestell p span { display: block; }
#bestell p em { display: block; font-style: normal; font-weight: 700; color: #6b4a1a; font-size: 12px; }
html[data-ansicht="lampe"] #bestell, html[data-ansicht="leucht"] #bestell { background-color: rgba(0, 0, 0, .45); }
html[data-ansicht="lampe"] #bestell p, html[data-ansicht="leucht"] #bestell p { color: var(--text); } html[data-ansicht="lampe"] #bestell p em, html[data-ansicht="leucht"] #bestell p em { color: var(--gold); }
body.hoch #bestell { grid-column: 1 / -1; padding: 3px 8px; display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: baseline; }
body.hoch #bestell > b { margin: 0; }
body.hoch #bestell p { margin: 0; display: flex; gap: 6px; } body.hoch #bestell p span, body.hoch #bestell p em { display: inline; font-size: 12px; }
body.hoch #logo { display: none; }
body.hoch #hud { grid-template-areas: 'modus modus modus modus' 'zeit punkte e1 e2' 'kn kn kn kn'; }
body.hoch #modus { text-align: left; }
@media (max-height: 460px) and (min-aspect-ratio: 1/1) { #bestell p em { display: none; } #bestell { padding: 3px 6px; } #bestell p { font-size: 11.5px; } }
.lvgitter { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
.lvgitter button { min-height: 52px; border-radius: 10px; border: 2px solid var(--rand); background-color: var(--knopf1); background-image: repeating-linear-gradient(100deg, rgba(90, 60, 20, .09) 0 2px, transparent 2px 9px), linear-gradient(var(--knopf1), var(--knopf2)); color: var(--knopfText); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.lvgitter button b { font: 700 16px/1 var(--kopf); }
.lvgitter button small { font-size: 11px; color: var(--mute); }
.lvgitter button.zu-level { opacity: .5; border-style: dashed; cursor: not-allowed; }
.sterne { display: inline-flex; gap: 2px; } .sterne i { width: 12px; height: 12px; 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(107, 93, 69, .35); }
.sterne i.an { background: var(--gold); }
@media (max-width: 520px) { .lvgitter { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.buch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
.buch .abz { display: grid; grid-template-columns: 26px 1fr; grid-template-rows: auto auto; column-gap: 8px; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--rand); background: rgba(255, 252, 244, .8); align-items: center; }
html[data-ansicht="lampe"] .buch .abz, html[data-ansicht="leucht"] .buch .abz { background: rgba(0, 0, 0, .35); }
.buch .abz svg { grid-row: 1 / 3; width: 22px; height: 22px; color: var(--mute); }
.buch .abz.an svg { color: var(--gold); }
.buch .abz b { font-size: 13.5px; } .buch .abz small { font-size: 12px; color: var(--mute); }
.buch .abz:not(.an) { opacity: .72; }
.einstfenster .rang { margin: 4px 0; }
@media (max-width: 520px) { .buch { grid-template-columns: 1fr; } }
.knauf i::before, .knauf i::after { content: none; }
.knauf i { display: flex; align-items: center; justify-content: center; color: #3a2a05; }
.knauf i svg { width: 62%; height: 62%; }
html[data-ansicht="leucht"] .knauf i { color: #3dff7a; }
#werk.klein .knauf { width: 40px; height: 40px; }
@media (max-height: 480px) and (min-aspect-ratio: 1/1) { .modi:is(.n6, .n7) .modus b { white-space: normal; overflow-wrap: anywhere; font-size: 13px; line-height: 1.15; } .modi:is(.n6, .n7) .modus em { font-size: 12px; } }
body.hoch #bestell { padding: 2px 8px; } body.hoch #bestell > b { display: none; }
#bestell p strong { display: none; }
body.hoch #bestell { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 3px 6px; }
body.hoch #bestell p { display: flex; flex-direction: column; gap: 0; min-width: 0; border-left: 3px solid rgba(160, 70, 30, .45); padding-left: 6px; }
body.hoch #bestell p span { display: none; } body.hoch #bestell p strong { display: block; font: 700 12px/1.2 Arial, sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.hoch #bestell p em { white-space: nowrap; font-size: 11.5px; line-height: 1.2; } body.hoch #bestell p em i { display: none; }
#bestell p em i { font-style: normal; }
#werk.hoch { grid-template-columns: var(--breit, calc(var(--k) * 1.17)); }
#werk.hoch #kartonRand { justify-self: center; }
@media (max-width: 700px) and (orientation: portrait) {
  .menue .reihe { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .menue .reihe .knopf { min-height: 44px; padding: 6px 8px; font-size: 14px; justify-content: center; white-space: normal; line-height: 1.15; }
}
body.hoch #bestell p.st { grid-column: 1 / -1; border: 0; padding: 0; } body.hoch #bestell p.st span { display: block; font-size: 12px; line-height: 1.25; }
body.hoch #knoepfe { justify-content: flex-start; column-gap: 5px; }
body.hoch #knoepfe button { width: 46px; }
body.hoch #bestell { grid-area: kn; align-self: end; justify-self: end; width: calc(100% - 106px); height: 44px; box-sizing: border-box; z-index: 1; overflow: hidden; align-content: center; }
body.hoch #bestell p { padding-left: 5px; }
body.hoch #bestell:has(p:nth-of-type(2)) { grid-template-columns: 1fr; gap: 1px; }
body.hoch #bestell:has(p:nth-of-type(2)) p { flex-direction: row; justify-content: space-between; gap: 6px; }
body.hoch #bestell:has(p:nth-of-type(2)) p em { font-size: 11px; }
body.hoch #bestell p strong { font-size: 11.5px; }
@media (max-height: 460px) and (min-aspect-ratio: 1/1) {
  #buehne, body:not(.hoch) #buehne { grid-template-columns: 206px 1fr; }
  #hud { padding: 5px; } #logo { display: none; }
  #knoepfe { gap: 3px; }
  #bestell > b { display: none; } #bestell p span { display: none; } #bestell p strong { display: block; font: 700 11.5px/1.25 Arial, sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  #bestell p em { display: block; font-size: 11px; } #bestell p em i { display: none; }
  #bestell { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr; gap: 1px; } #bestell p { margin: 0; min-width: 0; display: flex; justify-content: space-between; align-items: baseline; gap: 4px; }
  #bestell p em { white-space: nowrap; }
  #bestell p.st { grid-column: 1 / -1; } #bestell p.st span { display: block; }
}
#werk.klein .knauf { width: 44px; height: 44px; }
#werk.klein #tasten button { min-height: 44px; }
#bestell p em small { font: inherit; }
@media (max-height: 460px) and (min-aspect-ratio: 1/1) { #bestell p em small { display: none; } }
@media (max-height: 480px) and (min-aspect-ratio: 1/1) { .modi:is(.n6, .n7) .modus b { overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; } }
@media (max-height: 420px) and (min-aspect-ratio: 1/1) {
  #ov .dlg.ende.mo-tafel { width: min(760px, 100%); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 16px; row-gap: 4px; align-content: start; padding: 6px 14px;
    grid-template-areas: 'kopf leiter' 'titel leiter' 'zahl liste' 'band liste' 'info liste' 'kach liste' 'reihe rechen'; }
  #ov .dlg.ende.mo-tafel > * { margin: 0; min-width: 0; }
  #ov .dlg.ende.mo-tafel > .mo-kopf { grid-area: kopf; font-size: 11px; padding: 2px 40px 2px 0; }
  #ov .dlg.ende.mo-tafel > h2 { grid-area: titel; font-size: 19px; }
  #ov .dlg.ende.mo-tafel > .mo-zahl { grid-area: zahl; } #ov .dlg.ende.mo-tafel > #eBand { grid-area: band; }
  #ov .dlg.ende.mo-tafel > #eInfo { grid-area: info; font-size: 11px; padding-top: 2px; padding-bottom: 2px; }
  #ov .dlg.ende.mo-tafel > .mo-kacheln { grid-area: kach; gap: 4px; }
  #ov .dlg.ende.mo-tafel .mo-kacheln > * { padding: 3px 2px; min-width: 0; }
  #ov .dlg.ende.mo-tafel .mo-kacheln > * > :first-child { font-size: 11px; letter-spacing: 0; line-height: 1.1; }
  #ov .dlg.ende.mo-tafel > .mo-leiter { grid-area: leiter; align-self: end; font-size: 12px; padding-right: 54px; } #ov .dlg.ende.mo-tafel .mo-leiter p { margin: 2px 0 0; }
  #ov .dlg.ende.mo-tafel > #eListe { grid-area: liste; align-self: start; }
  #ov .dlg.ende.mo-tafel > .reihe { grid-area: reihe; flex-wrap: nowrap; gap: 6px; align-self: center; }
  #ov .dlg.ende.mo-tafel > .mo-rechen { grid-area: rechen; align-self: center; }
  #ov .dlg.ende.mo-tafel > .mo-rechen[open] { grid-column: 1 / -1; grid-row: auto; }
  #ov .dlg.ende.mo-tafel .mo-rechen > summary { min-height: 44px; display: flex; align-items: center; justify-content: center; }
  #ov .dlg.ende.mo-tafel .knopf { min-height: 44px; min-width: 0; padding: 6px 10px; }
}
#werk.klein #meld { left: 0; transform: none; width: calc(var(--k) * 1.17 + var(--seite)); top: 4px; gap: 4px; }
#bestell p.st i.lang { display: none; }
@media (max-height: 460px) and (min-aspect-ratio: 1/1) { #bestell p.st { display: block; } #bestell p.st i.lang { display: block; font-style: normal; font-size: 11.5px; line-height: 1.3; margin-top: 1px; } }
#werk.klein #meld .m { font-size: 12.5px; padding: 4px 9px; line-height: 1.25; }
@media (max-height: 460px) and (min-aspect-ratio: 1/1) { #bestell p.st span { font-weight: 700; } }
@media (max-width: 700px) and (orientation: portrait) {
  .menue .reihe .knopf { min-width: 0; }
  .menue .reihe #mWeiter { grid-column: 1 / -1; order: -1; }
  .dlg.menue:has(#mWeiter) > h3, .dlg.menue:has(#mWeiter) > h3 + div { display: none; }
}
#zfx { position: fixed; inset: 0; pointer-events: none; z-index: 40; overflow: hidden; }
.zfx-flug { position: fixed; transform: translate(-50%, -50%); font: 800 22px/1 'SGZ Ziffern', Georgia, 'Times New Roman', serif; color: #fff8e6; white-space: nowrap;
  padding: 4px 10px; border-radius: 10px; background: rgba(110, 60, 20, .92); border: 2px solid #f0c040; box-shadow: 0 6px 16px rgba(20, 10, 0, .45); }
.zfx-flug.gold { background: linear-gradient(#d9a520, #a8740c); color: #fffbea; border-color: #fff3b0; font-size: 26px; }
.zfx-flug.gruen { background: rgba(30, 110, 60, .94); border-color: #9fe0b0; }
.zfx-flug.still { animation: zfx-still 1.2s ease-out forwards; }
@keyframes zfx-still { 0% { opacity: 0; } 15% { opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; } }
.zfx-funke { position: fixed; width: 9px; height: 9px; border-radius: 50%; background: radial-gradient(#fffbe0, #f0c040 60%, #a8740c); box-shadow: 0 0 8px #f0c040; transform: translate(-50%, -50%); }
.zfx-stempel { position: fixed; transform: translate(-50%, -50%) rotate(-8deg); font: 900 40px/1 Georgia, 'Times New Roman', serif; letter-spacing: 2px; text-transform: uppercase; white-space: nowrap;
  color: #b8321c; padding: 6px 16px 8px; border: 4px double #b8321c; border-radius: 10px; background: rgba(255, 248, 232, .9); box-shadow: 0 8px 22px rgba(20, 10, 0, .35); }
.zfx-stempel.gold { color: #8a5a06; border-color: #c8901a; background: rgba(255, 244, 200, .93); }
.zfx-stempel.gruen { color: #1e6e3c; border-color: #2e8a4e; background: rgba(236, 252, 238, .92); }
html[data-ansicht="leucht"] .zfx-stempel { background: rgba(2, 14, 7, .92); color: #ffe94f; border-color: #ffe94f; text-shadow: 0 0 10px rgba(255, 233, 79, .8); }
html[data-ansicht="leucht"] .zfx-stempel.gruen { color: #4fffb0; border-color: #4fffb0; text-shadow: 0 0 10px rgba(79, 255, 176, .8); }
.zfx-zettel { position: fixed; margin: 0; box-sizing: border-box; background: #fffaf0; border-radius: 6px; box-shadow: 0 6px 14px rgba(20, 10, 0, .35); overflow: hidden; padding: 2px 6px; font: 12px/1.25 Arial, sans-serif; color: #2b2418; }
.zfx-mini-stempel { position: absolute; right: 6px; top: 50%; transform: translateY(-50%) rotate(-10deg); font: 900 15px/1 Georgia, serif; color: #1e6e3c; border: 2px solid #1e6e3c; border-radius: 5px; padding: 2px 6px; background: rgba(236, 252, 238, .94);
  animation: zfx-klatsch .22s ease-out both; text-transform: uppercase; }
@keyframes zfx-klatsch { from { transform: translateY(-50%) rotate(-10deg) scale(2.2); opacity: 0; } to { transform: translateY(-50%) rotate(-10deg) scale(1); opacity: 1; } }
.zfx-orden { position: fixed; right: 12px; top: 12px; display: flex; gap: 10px; align-items: center; max-width: min(330px, calc(100vw - 24px)); padding: 10px 14px 10px 10px; border-radius: 14px;
  background: linear-gradient(#fffaf0, #f2e6c8); border: 2px solid #c8901a; box-shadow: 0 10px 26px rgba(20, 10, 0, .45); color: #2b2418; }
.zfx-orden .medaille svg { width: 46px; height: 54px; display: block; }
.zfx-orden .txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.zfx-orden small { font: 700 11px/1.2 Arial, sans-serif; letter-spacing: .5px; text-transform: uppercase; color: #8a5a06; }
.zfx-orden b { font: 700 17px/1.2 Georgia, serif; } .zfx-orden em { font: 12.5px/1.3 Arial, sans-serif; font-style: normal; color: #4a3a22; }
.zfx-orden .rang { display: block; height: 6px; border-radius: 3px; background: rgba(110, 80, 40, .2); margin-top: 4px; overflow: hidden; } .zfx-orden .rang u { display: block; height: 100%; background: linear-gradient(90deg, #d9a520, #f0c040); }
.zfx-orden small.r { text-transform: none; letter-spacing: 0; color: #4a3a22; font-weight: 400; }
html[data-ansicht="leucht"] .zfx-orden, html[data-ansicht="lampe"] .zfx-orden { background: #1c120a; color: #fff4e0; }
html[data-ansicht="leucht"] .zfx-orden em, html[data-ansicht="lampe"] .zfx-orden em, html[data-ansicht="leucht"] .zfx-orden small.r, html[data-ansicht="lampe"] .zfx-orden small.r { color: #e8d8b8; }
.zfx-hand { position: fixed; width: 44px; height: 52px; margin: -6px 0 0 -14px; filter: drop-shadow(0 4px 6px rgba(20, 10, 0, .5)); }
.zfx-hand svg { width: 100%; height: 100%; display: block; }
.zfx-treffer { animation: zfx-treffer .6s ease-out; }
.zfx-gold { text-shadow: 0 0 12px rgba(240, 192, 64, .95); }
@keyframes zfx-treffer { 0% { transform: scale(1); } 30% { transform: scale(1.22); color: #c8780a; } 100% { transform: scale(1); } }
.wert.zfx-roll b { animation: zfx-roll .55s cubic-bezier(.3, 1.6, .5, 1); display: inline-block; }
.wert.zfx-roll { animation: zfx-tempoglanz 1s ease-out; }
@keyframes zfx-roll { from { transform: translateY(70%) scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes zfx-tempoglanz { 0%, 40% { box-shadow: 0 0 0 3px #f0c040, 0 0 14px rgba(240, 192, 64, .7); } 100% { box-shadow: none; } }
#bestell p { position: relative; }
#bestell p::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 3px; width: calc(var(--r, 1) * 100%); border-radius: 2px; background: #c8901a; transition: width .4s ease; }
#bestell p.knapp::after { background: #d0402a; }
#bestell p.knapp em { color: #b8321c !important; animation: zfx-knapp 1.2s ease-in-out infinite; display: inline-block; }
html[data-ansicht="lampe"] #bestell p.knapp em, html[data-ansicht="leucht"] #bestell p.knapp em { color: #ff8a6a !important; }
@keyframes zfx-knapp { 0%, 100% { transform: none; } 50% { transform: scale(1.08); } }
#bestell p.zfx-nachschub { animation: zfx-nachschub .45s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes zfx-nachschub { from { transform: translateX(-40px) rotate(-3deg); opacity: 0; } to { transform: none; opacity: 1; } }
#kartonRand.gefahr { animation: zfx-gefahr .95s ease-in-out infinite; border-radius: 6px; }
@keyframes zfx-gefahr { 0%, 100% { box-shadow: 0 0 0 0 rgba(224, 68, 42, 0); } 45% { box-shadow: 0 0 0 4px rgba(224, 68, 42, .85), 0 0 26px rgba(224, 68, 42, .6); } }
#kartonRand.klappen .lasche.o { animation: zfx-klappe-y 1.2s ease-in-out; transform-origin: 50% 0; }
#kartonRand.klappen .lasche.u { animation: zfx-klappe-y 1.2s ease-in-out; transform-origin: 50% 100%; }
#kartonRand.klappen .lasche.l { animation: zfx-klappe-x 1.2s ease-in-out .08s; transform-origin: 0 50%; }
#kartonRand.klappen .lasche.r { animation: zfx-klappe-x 1.2s ease-in-out .08s; transform-origin: 100% 50%; }
@keyframes zfx-klappe-y { 0%, 100% { transform: none; } 25% { transform: scaleY(2.2); } 50% { transform: scaleY(.6); } 75% { transform: scaleY(1.4); } }
@keyframes zfx-klappe-x { 0%, 100% { transform: none; } 25% { transform: scaleX(2.2); } 50% { transform: scaleX(.6); } 75% { transform: scaleX(1.4); } }
#tablett.rutsch #tfeld { animation: zfx-rutsch .4s cubic-bezier(.2, 1.3, .4, 1); }
@keyframes zfx-rutsch { from { transform: translateX(34%) rotate(10deg); opacity: 0; } to { transform: none; opacity: 1; } }
#meld { top: auto; bottom: 8px; width: min(440px, calc(100% - 20px)); flex-direction: column-reverse; }
#meld .m { box-shadow: 0 4px 12px rgba(20, 10, 0, .35); font-size: 13.5px; }
#meld .m:nth-child(odd) { transform: rotate(-.6deg); } #meld .m:nth-child(even) { transform: rotate(.5deg); }
#werk.klein #meld { top: 4px; bottom: auto; flex-direction: column; }
@media (prefers-reduced-motion: reduce) {
  #kartonRand.gefahr { animation: none; box-shadow: 0 0 0 4px rgba(224, 68, 42, .85); }
  #bestell p.knapp em, .wert.zfx-roll b, .wert.zfx-roll, #bestell p.zfx-nachschub, #tablett.rutsch #tfeld, .zfx-treffer { animation: none; }
}
.zfx-zettel { display: flex; flex-direction: column; justify-content: center; }
.zfx-zettel strong, .zfx-zettel em i { display: none; }
.zfx-zettel span { display: block; } .zfx-zettel em { display: block; font-style: normal; font-weight: 700; color: #6b4a1a; font-size: 12px; }
.zfx-zettel em small { font: inherit; }
body.hoch .zfx-zettel span { display: none; } body.hoch .zfx-zettel strong { display: block; font: 700 11.5px/1.2 Arial, sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.hoch .zfx-zettel em { font-size: 11px; white-space: nowrap; }
body:has(#ov:not([hidden])) #zfx > :not(.zfx-orden) { visibility: hidden; }
#bestell p.st::after { display: none; }
#werk.hoch #meld { bottom: 4px; width: calc(100% - 8px); gap: 3px; } #werk.hoch #meld .m { font-size: 12px; padding: 3px 8px; line-height: 1.25; }
#tfeld { clip-path: ellipse(50% 50% at 50% 50%); }
#werk.quer:not(.klein) #seite { gap: 26px; }
#werk.quer:not(.klein) #tName { bottom: -25px; }
.drehbox small { transform: none; left: auto; white-space: nowrap; padding: 3px 6px; }
#gleichTag { position: absolute; left: 50%; top: 2.5%; transform: translateX(-50%); z-index: 6; pointer-events: none; padding: 3px 12px; border-radius: 999px; white-space: nowrap;
  font: 800 14px/1.2 Georgia, 'Times New Roman', serif; color: #6e4a06; background: rgba(255, 244, 200, .94); border: 2px solid #c8901a; box-shadow: 0 4px 12px rgba(20, 10, 0, .35); animation: zfx-gleich .9s ease-in-out infinite; }
#gleichTag.mehr { color: #fffbea; background: linear-gradient(#d9a520, #a8740c); border-color: #fff3b0; font-size: 16px; }
html[data-ansicht="leucht"] #gleichTag { background: rgba(2, 14, 7, .92); color: #ffe94f; border-color: #ffe94f; }
@keyframes zfx-gleich { 0%, 100% { transform: translateX(-50%) scale(1); } 50% { transform: translateX(-50%) scale(1.07); } }
#bestell p.gleich { background: rgba(240, 192, 64, .28); box-shadow: 0 0 0 2px #f0c040, 0 0 12px rgba(240, 192, 64, .7); border-radius: 5px; animation: zfx-gleichzettel .9s ease-in-out infinite; }
@keyframes zfx-gleichzettel { 0%, 100% { box-shadow: 0 0 0 2px #f0c040, 0 0 6px rgba(240, 192, 64, .4); } 50% { box-shadow: 0 0 0 2px #f0c040, 0 0 16px rgba(240, 192, 64, .9); } }
.wert.mitbalken { position: relative; padding-bottom: 7px; }
.wert .tbalken { position: absolute; left: 8px; right: 8px; bottom: 3px; height: 4px; border-radius: 2px; background: rgba(110, 80, 40, .2); overflow: hidden; }
.wert .tbalken::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--r) * 100%); background: linear-gradient(90deg, #d9a520, #f0c040); border-radius: 2px; transition: width .5s ease; }
.wert .tbalken.bald::after { background: linear-gradient(90deg, #d0402a, #f08040); animation: zfx-bald .7s ease-in-out infinite; }
@keyframes zfx-bald { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
.wert .tnoch { display: block; font: 11px/1.1 Arial, sans-serif; color: var(--mute, #6b5d45); margin-top: 1px; }
body.hoch .wert .tnoch { display: none; }
@media (max-height: 460px) and (min-aspect-ratio: 1/1) { .wert .tnoch { display: none; } }
#wPunkte { position: relative; }
#bestBalken { position: absolute; left: 8px; right: 8px; bottom: 3px; height: 4px; border-radius: 2px; background: rgba(110, 80, 40, .18); overflow: hidden; }
#bestBalken u { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--r, 0) * 100%); background: linear-gradient(90deg, #c8901a, #f0c040); transition: width .5s ease; }
#bestBalken.nah u { animation: zfx-nah .8s ease-in-out infinite; }
#bestBalken.drueber u { background: linear-gradient(90deg, #2e8a4e, #6fd090); }
@keyframes zfx-nah { 0%, 100% { box-shadow: none; filter: brightness(1); } 50% { filter: brightness(1.35); box-shadow: 0 0 8px #f0c040; } }
#flamme { position: absolute; left: 3%; top: 3%; z-index: 6; width: calc(34px * var(--s, 1)); pointer-events: none; transform-origin: 50% 100%; animation: zfx-flackern .5s ease-in-out infinite alternate; transition: width .3s ease; }
#flamme svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 0 8px rgba(255, 140, 40, .8)); }
#flamme .aussen { fill: #e8642a; } #flamme .innen { fill: #ffd34a; }
#flamme b { position: absolute; left: 50%; bottom: 8%; transform: translateX(-50%); font: 800 12px/1 Georgia, serif; color: #4a1a06; }
#flamme.rauch { animation: zfx-rauch .8s ease-out forwards; }
@keyframes zfx-flackern { from { transform: scaleY(1) rotate(-2deg); } to { transform: scaleY(1.08) rotate(2deg); } }
@keyframes zfx-rauch { 0% { opacity: 1; filter: grayscale(0); } 40% { filter: grayscale(1) brightness(.6); } 100% { opacity: 0; transform: translateY(-30px) scale(.6); filter: grayscale(1) blur(3px); } }
@media (prefers-reduced-motion: reduce) { #gleichTag, #bestell p.gleich, .wert .tbalken.bald::after, #bestBalken.nah u, #flamme { animation: none; } #flamme.rauch { animation: none; opacity: 0; } }
body.hoch #knoepfe { min-height: 94px; align-content: start; }
body.hoch #tName, #werk.hoch #tName { white-space: normal; max-width: 94%; text-align: center; line-height: 1.15; }
@media (min-aspect-ratio: 1/1), (min-width: 701px) { .modi.n7 { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 700px) and (orientation: portrait) { .modi.n7 #m_werkstatt { grid-column: auto; } }
.wert .geist { display: block; font: 700 11px/1.15 Arial, sans-serif; color: var(--mute, #6b5d45); margin-top: 1px; white-space: nowrap; }
.wert .geist.vorn { color: #1e7a42; } .wert .geist.hinten { color: #b8321c; }
html[data-ansicht="lampe"] .wert .geist.vorn, html[data-ansicht="leucht"] .wert .geist.vorn { color: #6fe09a; }
html[data-ansicht="lampe"] .wert .geist.hinten, html[data-ansicht="leucht"] .wert .geist.hinten { color: #ff8a6a; }
.wert.mitgeist.vorn { box-shadow: inset 0 -3px 0 #2e9a56; } .wert.mitgeist.hinten { box-shadow: inset 0 -3px 0 #d0402a; }
body.hoch .wert .geist { display: none; }
@media (max-height: 460px) and (min-aspect-ratio: 1/1) { .wert .geist { display: none; } }
@media (max-height: 480px) and (min-aspect-ratio: 1/1) {
  .modi.n7 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 5px; }
  .modi.n7 .modus { padding: 4px 6px; min-height: 0; }
  .modi.n7 .modus b { font-size: 14px; overflow-wrap: normal; word-break: normal; hyphens: manual; white-space: normal; line-height: 1.1; }
  .modi.n7 .modus em { font-size: 11.5px; line-height: 1.15; }
  .menue:has(.modi.n7) .reihe { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin-top: 6px; }
  .menue:has(.modi.n7) .reihe .knopf { min-height: 44px; min-width: 0; padding: 4px 6px; font-size: 12.5px; line-height: 1.1; white-space: normal; }
  .menue:has(.modi.n7) .reihe .knopf svg { width: 15px; height: 15px; }
  .menue:has(.modi.n7) > h3, .menue:has(.modi.n7) > h3 + div { display: none; }
}
#packmeister { position: absolute; left: 2%; bottom: 3%; z-index: 7; display: flex; align-items: flex-end; gap: 6px; pointer-events: none; opacity: 0; transform: translateY(14px); transition: opacity .25s, transform .25s; max-width: 78%; }
#packmeister.an { opacity: 1; transform: none; }
#packmeister .pmbild img { width: 46px; height: 46px; border-radius: 50%; border: 2px solid #c8901a; box-shadow: 0 3px 8px rgba(20, 10, 0, .45); display: block; background: #f2e6c8; }
#packmeister p { margin: 0 0 18px; padding: 6px 10px; border-radius: 12px 12px 12px 3px; background: rgba(255, 250, 240, .96); color: #2b2418; font: 700 13px/1.3 Arial, sans-serif; box-shadow: 0 4px 12px rgba(20, 10, 0, .35); border: 1px solid #c8b896; }
html[data-ansicht="leucht"] #packmeister p { background: rgba(2, 14, 7, .94); color: #c8ffd8; border-color: #3dff7a; }
#werk.hoch #packmeister .pmbild img, #werk.klein #packmeister .pmbild img { width: 34px; height: 34px; }
#werk.hoch #packmeister p, #werk.klein #packmeister p { font-size: 12px; margin-bottom: 12px; }
#zukleben { position: absolute; inset: 0; z-index: 8; pointer-events: none; overflow: hidden; border-radius: 4px; }
#zukleben .zk { position: absolute; top: 0; bottom: 0; width: 51%; background: linear-gradient(90deg, #c99a5e, #b07c40); box-shadow: inset 0 0 0 2px rgba(60, 35, 10, .35); }
#zukleben .zk.l { left: 0; transform-origin: 0 50%; animation: zfx-lasche-l .45s ease-in forwards; }
#zukleben .zk.r { right: 0; transform-origin: 100% 50%; animation: zfx-lasche-r .45s ease-in .12s both; }
@keyframes zfx-lasche-l { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes zfx-lasche-r { from { transform: scaleX(0); } to { transform: scaleX(1); } }
#zukleben .band { position: absolute; left: 0; top: 44%; height: 12%; width: 0; background: linear-gradient(rgba(230, 200, 140, .92), rgba(200, 165, 100, .92)); box-shadow: 0 2px 4px rgba(20, 10, 0, .3); animation: zfx-band .45s ease-out .6s forwards; }
@keyframes zfx-band { to { width: 100%; } }
#zukleben .schein { position: absolute; left: 50%; top: 66%; transform: translate(-50%, -50%) rotate(-6deg) scale(2.2); opacity: 0; padding: 6px 14px; background: #fffaf0; border: 2px dashed #8a5a06; color: #4a2c10; text-align: center; font: 800 18px/1.15 Georgia, serif;
  box-shadow: 0 6px 14px rgba(20, 10, 0, .35); animation: zfx-schein .3s ease-out 1.1s forwards; }
#zukleben .schein small { display: block; font: 700 11px/1.2 Arial, sans-serif; letter-spacing: 1px; text-transform: uppercase; color: #8a5a06; }
#zukleben .schein em { font-style: normal; font-family: 'SGZ Ziffern', Georgia, serif; }
@keyframes zfx-schein { to { opacity: 1; transform: translate(-50%, -50%) rotate(-6deg) scale(1); } }
#fliessband { position: absolute; left: 6%; right: 6%; bottom: -10px; height: 9px; z-index: 2; border-radius: 4px; opacity: 0; pointer-events: none;
  background: repeating-linear-gradient(90deg, #5a4630 0 10px, #8a7050 10px 20px); box-shadow: 0 2px 4px rgba(20, 10, 0, .45); }
#fliessband.laeuft { animation: zfx-fliess 1.6s linear; }
@keyframes zfx-fliess { 0% { opacity: 0; background-position: 0 0; } 10%, 85% { opacity: 1; } 100% { opacity: 0; background-position: 240px 0; } }
#staub { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
#staub i { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: rgba(255, 250, 235, .7); box-shadow: 0 0 6px rgba(255, 245, 220, .8); animation: zfx-staub 11s ease-in-out infinite; }
@keyframes zfx-staub { 0% { transform: translate(0, 0); opacity: 0; } 20% { opacity: .8; } 50% { transform: translate(24px, -30px); opacity: .5; } 80% { opacity: .7; } 100% { transform: translate(-10px, -60px); opacity: 0; } }
html[data-ansicht="leucht"] #staub { display: none; }
#werk { z-index: 1; }
#bestell img.kondi { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid #c8901a; float: left; margin: 1px 6px 0 0; background: #f2e6c8; }
body.hoch #bestell img.kondi { display: none; }
@media (max-height: 460px) and (min-aspect-ratio: 1/1) { #bestell img.kondi { display: none; } }
.zfx-zettel img.kondi { width: 22px; height: 22px; border-radius: 50%; float: left; margin: 1px 6px 0 0; }
.zfx-zettel.erledigt img.kondi { animation: zfx-nicken .5s ease-in-out 2; }
.zfx-zettel.verfallen img.kondi { filter: grayscale(1); animation: zfx-kopfschuetteln .3s ease-in-out 2; }
@keyframes zfx-nicken { 0%, 100% { transform: none; } 50% { transform: translateY(3px) rotate(6deg); } }
@keyframes zfx-kopfschuetteln { 0%, 100% { transform: none; } 25% { transform: rotate(-10deg); } 75% { transform: rotate(10deg); } }
#tablett.kandis { box-shadow: 0 0 0 3px #f0c040, 0 0 18px rgba(240, 192, 64, .75), 8px 12px 20px rgba(20, 10, 0, .45); animation: zfx-kandistablett 1.2s ease-in-out infinite; }
@keyframes zfx-kandistablett { 0%, 100% { box-shadow: 0 0 0 3px #f0c040, 0 0 10px rgba(240, 192, 64, .5), 8px 12px 20px rgba(20, 10, 0, .45); } 50% { box-shadow: 0 0 0 3px #f0c040, 0 0 24px rgba(240, 192, 64, .95), 8px 12px 20px rgba(20, 10, 0, .45); } }
@media (prefers-reduced-motion: reduce) { #staub { display: none; } #tablett.kandis, .zfx-zettel img.kondi { animation: none; } #fliessband.laeuft { animation: none; } }
#kartonRand:has(#packmeister.an) #meld { bottom: 64px; transition: bottom .2s; } #werk.klein #kartonRand:has(#packmeister.an) #meld { bottom: auto; }
body.sz-ruhig #staub, body.sz-ruhig #packmeister { display: none; }
#stockLagen i.sprung s { animation: zfx-sprung .9s ease-out; }
@keyframes zfx-sprung { 0%, 100% { color: inherit; text-shadow: none; } 30% { color: #c8780a; text-shadow: 0 0 8px #f0c040, 0 0 2px #fff; font-weight: 900; } }
#stockLagen i.sprung { box-shadow: 0 0 0 2px #f0c040, 0 0 10px rgba(240, 192, 64, .8); }
.bestelage { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 2px auto 4px; }
.bestelage svg { display: block; background: rgba(0, 0, 0, .18); border-radius: 3px; }
.bestelage rect { opacity: 0; animation: zfx-lagezelle .25s ease-out forwards; }
.bestelage rect.alt { fill: #f3e6c4; opacity: 0; } .bestelage rect.neu { fill: #f0c040; stroke: #fff3b0; stroke-width: 1.2; }
@keyframes zfx-lagezelle { from { opacity: 0; transform: scale(.4); transform-origin: center; } to { opacity: 1; transform: none; } }
.bestelage span { display: flex; flex-direction: column; text-align: left; line-height: 1.15; }
.bestelage small { font: 700 11px/1.2 Arial, sans-serif; letter-spacing: .6px; text-transform: uppercase; opacity: .8; }
.bestelage b { font: 800 18px/1.1 'SGZ Ziffern', Georgia, serif; } .bestelage em { font: 12px/1.2 Arial, sans-serif; font-style: normal; opacity: .85; }
@media (prefers-reduced-motion: reduce) { .bestelage rect { animation: none; opacity: 1; } #stockLagen i.sprung s { animation: none; } }
body.hoch #ov .dlg.ende.mo-tafel .mo-kacheln { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
body.hoch #ov .dlg.ende.mo-tafel .mo-kacheln > * { padding: 4px 2px; min-width: 0; }
body.hoch #ov .dlg.ende.mo-tafel .mo-kacheln > * > :first-child { font-size: 11px; letter-spacing: 0; line-height: 1.1; }
body.hoch #ov .dlg.ende.mo-tafel .mo-kacheln > * small, body.hoch #ov .dlg.ende.mo-tafel .mo-kacheln > * em { font-size: 11px; line-height: 1.1; }

#karton .schloss { position: absolute; z-index: 6; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 2px; padding: 2px 6px 2px 4px; border-radius: 999px; pointer-events: none;
  background: rgba(120, 24, 12, .92); color: #fff3e6; border: 1.5px solid #ffd2c0; box-shadow: 0 2px 6px rgba(20, 10, 0, .45); font: 800 14px/1 'SGZ Ziffern', Georgia, serif; }
#karton .schloss svg { width: 13px; height: 14px; display: block; }
#karton .schloss.zaehlt { animation: sz-schloss .45s ease-out; }
@keyframes sz-schloss { 0% { transform: translate(-50%, -50%) scale(1.5); } 100% { transform: translate(-50%, -50%) scale(1); } }
html[data-ansicht="leucht"] #karton .schloss { background: rgba(30, 2, 2, .92); color: #ff8a8a; border-color: #ff4f4f; }
.wert.schichtende b, .wert.schichtende strong, .wert.schichtende em { color: #c8281a !important; }
.wert.schichtende { box-shadow: inset 0 0 0 2px #c8281a; animation: sz-schicht 1s steps(2) infinite; }
@keyframes sz-schicht { 50% { box-shadow: inset 0 0 0 2px transparent; } }
@media (prefers-reduced-motion: reduce) { #karton .schloss.zaehlt, .wert.schichtende { animation: none; } }
body.sz-ruhig #karton .schloss.zaehlt, body.sz-ruhig .wert.schichtende { animation: none; }
:root { --sgzl-grund: rgba(56, 32, 14, .96); --sgzl-text: #fff6e6; --sgzl-akzent: #f0c060; --sgzl-akzent-text: #2a1806; }
#m_lern { display: none !important; }
#lo-lern { margin: 8px 0 0; min-height: 66px; justify-content: center; }
.lernpfeil { position: absolute; z-index: 6; box-sizing: border-box; margin: 0; padding: 0; display: flex; align-items: center; justify-content: center; border-radius: 50%; border: 3px solid #fff6e0; background: #f0c060; color: #2a1806; box-shadow: 0 4px 14px rgba(0, 0, 0, .45); cursor: pointer; touch-action: none; }
.lernpfeil svg { width: 62%; height: 62%; pointer-events: none; } .lernpfeil.links svg { transform: scaleX(-1); }
.lernpfeil[hidden] { display: none; }
body.sz-lern #wZeit, body.sz-lern #bNeu { display: none !important; }
#hud .sgzl { margin: 6px 0; }
#lernEnde .lernlob { margin: 8px 0; font-size: 16px; line-height: 1.45; }
body.hoch.sz-lern #hud { grid-template-areas: 'modus modus 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; }
body .sgzzu-x { background: rgba(10, 12, 18, .9); } body .sgzzu-x:hover { background: rgba(30, 34, 46, .95); }
#tasten button > *, .knauf > i { pointer-events: none; }
body.sz-lern .sgzl-weiter { white-space: nowrap; }
body.hoch.sz-lern #knoepfe { min-height: 0; }
@media (max-height: 460px) and (min-aspect-ratio: 1/1) {
  body.sz-lern #buehne, body.sz-lern:not(.hoch) #buehne { grid-template-columns: 262px 1fr; }
  body.sz-lern #modus, body.sz-lern #eigen, body.sz-lern #wPunkte { display: none; }
  body.sz-lern #hud { overflow-y: auto; scrollbar-width: none; }
  #hud .sgzl { grid-column: 1 / -1; margin: 0; padding: 7px 50px 7px 9px; } #hud .sgzl-punkte { display: none; } #hud .sgzl-kopf { margin-bottom: 2px; }
  #hud .sgzl-titel { font-size: 15px; margin-bottom: 2px; } #hud .sgzl-text { font-size: 13px; line-height: 1.3; } #hud .sgzl-weiter { min-height: 40px; margin-top: 6px; }
  body.sz-lern #knoepfe { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-height: 880px) and (min-aspect-ratio: 1/1) { body.sz-lern:not(.hoch) #modus, body.sz-lern:not(.hoch) #eigen, body.sz-lern:not(.hoch) #info { display: none; } }
