@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: #f2b24a; --akzent2: #6f9be0; --akzent3: #2a1208; --tief: #24140e; --panel: rgba(52, 30, 22, .93); --panel2: rgba(40, 24, 18, .97);
  --text: #f7ecdc; --mute: #e4d3bd; --rand: rgba(242, 178, 74, .55); --knopf1: #7a3a26; --knopf2: #4e2217; --knopfText: #f7ecdc;
  --gruen: #9ad88a; --rot: #ff9a80; --gold: #f2b24a;
  --kopf: 'SGZ Ziffern', Georgia, 'Times New Roman', serif;
}
html[data-ansicht="brand"] {
  --akzent: #ffb050; --akzent2: #ff7a3a; --tief: #120806; --panel: rgba(30, 14, 10, .94); --panel2: rgba(22, 10, 8, .97);
  --text: #fbeee0; --mute: #e6cfb8; --rand: rgba(255, 140, 60, .55); --knopf1: #6a2a14; --knopf2: #3e160a;
}
html[data-ansicht="hell"] {
  --akzent: #9a4a16; --akzent2: #24518f; --akzent3: #f6efe2; --tief: #e8dcc8; --panel: rgba(251, 246, 236, .95); --panel2: rgba(251, 246, 236, .98);
  --text: #2a1a10; --mute: #4f3a28; --rand: rgba(110, 60, 30, .45); --knopf1: #f1e2c6; --knopf2: #dcc39a; --knopfText: #2a1a10;
  --gruen: #2e7d3a; --rot: #a3231b; --gold: #8a5a10;
}
body { background: var(--tief); color: var(--text); }
#kulisse { position: fixed; inset: 0; z-index: 0; overflow: clip; background: #3a1e14 url(img/halle-abend.webp?v=1) center / cover no-repeat; }
body.hoch #kulisse { background-image: url(img/halle-abend-hoch.webp?v=1); }
html[data-ansicht="brand"] #kulisse { background-image: url(img/halle-brand.webp?v=1); background-color: #160a06; }
html[data-ansicht="brand"] body.hoch #kulisse { background-image: url(img/halle-brand-hoch.webp?v=1); }
html[data-ansicht="hell"] #kulisse { background-image: url(img/halle-hell.webp?v=1); background-color: #d8c6a8; }
html[data-ansicht="hell"] body.hoch #kulisse { background-image: url(img/halle-hell-hoch.webp?v=1); }
#kulisse i { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 12% 72%, rgba(255, 140, 50, .22), transparent 32%), radial-gradient(ellipse at 50% 100%, rgba(255, 170, 80, .12), transparent 40%);
  animation: glut 3.2s ease-in-out infinite alternate; }
html[data-ansicht="hell"] #kulisse i { display: none; }
@keyframes glut { from { opacity: .55; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { #kulisse i { animation: none; } }
#buehne { z-index: 1; }
#hud { z-index: 2; }
#logo::before { content: ''; display: block; width: 44px; height: 44px; margin: -2px auto 4px;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Crect x='4' y='4' width='92' height='92' rx='10' fill='%232f5fae' stroke='%23162c55' stroke-width='5'/%3E%3Crect x='16' y='16' width='68' height='68' rx='6' fill='none' stroke='%23e8eef8' stroke-width='4' opacity='.7'/%3E%3Ccircle cx='50' cy='50' r='16' fill='%23e8eef8'/%3E%3Ccircle cx='50' cy='50' r='7' fill='%232f5fae'/%3E%3C/svg%3E");
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .45)); }
body.hoch #logo::before { display: none; }
body:not(.hoch) #logo { font-size: 26px; letter-spacing: .5px; }
@media (max-height: 560px) { body:not(.hoch) #logo { font-size: 18px; letter-spacing: 0; } }
#brettbox { touch-action: none; flex-direction: column; gap: 10px; }
#feld { position: relative; z-index: 0; border-radius: 14px 14px 6px 6px; touch-action: none; cursor: pointer;
  background: transparent; }
#brett { position: static; display: block; border-radius: 14px 14px 6px 6px; pointer-events: none; }
#meld { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); z-index: 4; width: max-content; max-width: min(92%, 520px); box-sizing: border-box; padding: 8px 16px; border-radius: 10px;
  background: rgba(36, 20, 14, .95); border: 1px solid var(--rand); color: #f7ecdc; font: 600 14px/1.35 system-ui, sans-serif; text-align: center;
  opacity: 0; transition: opacity .25s; pointer-events: none; box-shadow: 0 6px 16px rgba(0, 0, 0, .45); }
#meld.an { opacity: 1; }
#meld.warn { border-color: #ff9a80; }
html[data-ansicht="hell"] #meld { background: rgba(252, 248, 240, .97); color: #2a1a10; }
#bRat { position: absolute; z-index: 3; min-height: 40px; padding: 0 12px; font-size: 14px; }
#bRat small { font-size: 11px; opacity: .8; }
#steuer { display: none; gap: 6px; justify-content: center; max-width: 100%; }
#steuer.an { display: flex; }
#steuer button { flex: 1; min-height: 58px; min-width: 52px; border-radius: 10px; border: 2px solid #e8d2b0; background: linear-gradient(#8e3a26, #5a1f12); color: #fff;
  font: 700 12px system-ui, sans-serif; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; touch-action: none;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .2), 0 4px 10px rgba(0, 0, 0, .45); }
#steuer button b { font-size: 22px; line-height: 1; }
#steuer button[data-k="t"] { background: linear-gradient(#3a69b8, #1f3f78); }
#steuer button:active { transform: translateY(2px); filter: brightness(1.2); }
html[data-ansicht="hell"] #steuer button { background: linear-gradient(#fbf5e8, #e6d3ae); color: #2a1a10; border-color: #8a5a2e; }
html[data-ansicht="hell"] #steuer button[data-k="t"] { background: linear-gradient(#dde7f6, #b4c8ea); }
#brettbox.steuer-seite { flex-direction: row; justify-content: flex-start; align-items: center; padding-left: 12px; gap: 12px; }
#brettbox.steuer-seite #steuer.an { display: grid; grid-template-columns: 74px 74px; gap: 8px; width: 156px; }
#brettbox.steuer-seite #steuer button { min-width: 0; min-height: 60px; }
#brettbox.steuer-seite #steuer button[data-k="g"] { grid-column: 1 / -1; }
@media (max-height: 440px) { body:not(.hoch) #logo::before { display: none; } #brettbox .mo-start h3 { font-size: 21px; } #brettbox .mo-start { padding-top: 8px; padding-bottom: 8px; } }
.ka-reihe { display: inline-flex; gap: 3px; }
.ka-reihe svg { display: block; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .35)); }
body { --mo-bg1: #5a2c1e; --mo-bg2: #3a1a10; --mo-bg3: #210d07; --mo-rand: #f2b24a; --mo-rand-weich: rgba(242, 178, 74, .32); --mo-akzent: #f2b24a; --mo-akzent2: #8fb4ee;
  --mo-hell: #fff0d2; --mo-text: #f7ecdc; --mo-leise: #e4d3bd; --mo-leiser: #bda88e; --mo-band1: #6f9be0; --mo-band2: #2f5fae; --mo-band-t: #0c1830; }
@media (pointer: coarse) { #ov details > summary { min-height: 44px; display: flex; align-items: center; justify-content: center; } }
@media (max-height: 520px) {
  .menue .schildkopf { font-size: 26px; } .menue .unter { display: none; }
  .menue .modi { grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0 4px; }
  .menue .modus { display: grid; grid-template-columns: 30px 1fr; grid-template-areas: 'ic b' 'ic sp'; column-gap: 8px; align-items: center; text-align: left; padding: 7px 10px; }
  .menue .modus svg { grid-area: ic; width: 26px; height: 26px; margin: 0; } .menue .modus b { grid-area: b; font-size: 16px; } .menue .modus span { grid-area: sp; font-size: 12px; margin: 0; } .menue .modus em { display: none; }
  .menue h3, .menue [id^="mListe"] { display: none; }
}
@media (max-height: 780px) and (min-height: 521px) and (orientation: landscape) {
  .menue .schildkopf { font-size: 34px; } .menue .unter { font-size: 13px; line-height: 1.3; margin-bottom: 4px; }
  .menue .modi { gap: 8px; margin: 8px 0 4px; }
  .menue .modus { display: grid; grid-template-columns: 30px 1fr auto; grid-template-areas: 'ic b em' 'ic sp sp'; column-gap: 8px; align-items: center; text-align: left; padding: 8px 12px; }
  .menue .modus svg { grid-area: ic; width: 26px; height: 26px; margin: 0; } .menue .modus b { grid-area: b; font-size: 17px; }
  .menue .modus span { grid-area: sp; font-size: 12px; margin: 0; } .menue .modus em { grid-area: em; font-size: 14px; margin: 0; white-space: nowrap; }
  .menue h3 { margin: 6px 0 2px; font-size: 15px; }
}
@media (max-width: 520px) and (orientation: portrait) {
  .menue .schildkopf { font-size: 30px; letter-spacing: .02em; } .menue .unter { font-size: 13px; line-height: 1.3; margin-bottom: 6px; }
  .menue .modi { gap: 8px; margin: 8px 0 6px; }
  .menue .modus { display: grid; grid-template-columns: 30px 1fr auto; grid-template-areas: 'ic b em' 'ic sp sp'; column-gap: 8px; align-items: center; text-align: left; padding: 8px 10px; }
  .menue .modus svg { grid-area: ic; width: 26px; height: 26px; margin: 0; } .menue .modus b { grid-area: b; font-size: 17px; }
  .menue .modus span { grid-area: sp; font-size: 12px; margin: 0; } .menue .modus em { grid-area: em; font-size: 14px; margin: 0; white-space: nowrap; }
  .menue h3 { margin: 8px 0 2px; font-size: 15px; }
}
#ov .rechnung { table-layout: fixed; } #ov .rechnung td:first-child { white-space: normal; overflow-wrap: anywhere; } #ov .rechnung td:last-child { width: 34%; }
@media (pointer: coarse) and (max-height: 440px) { #ov .dlg.mo-tafel:not(.pause) .mo-leiter { display: none; } }
@media (pointer: coarse) { #ov .dlg.mo-tafel .reihe .knopf { height: auto; min-height: 44px; } #ov .dlg.mo-tafel details.mo-rechen > summary { min-height: 44px; } }
html[data-ansicht="hell"] .wert { background: rgba(255, 252, 244, .72); }
html[data-ansicht="hell"] .wert b { color: #2a1a10; }
@media (max-height: 560px) { body:not(.hoch) #hud { padding-left: 6px; padding-right: 6px; } body:not(.hoch) #knoepfe { gap: 4px; } body:not(.hoch) #knoepfe button { min-width: 40px; min-height: 42px; } }
.regeln .bsp:has(.ka-reihe) { grid-template-columns: auto 1fr; align-items: center; }
.regeln h2 { padding-left: 44px; padding-right: 44px; }
#ov .mo-tafel .mo-leiter { margin-top: 20px; }
body.hoch #modus { white-space: normal; line-height: 1.15; font-size: 12px; padding-left: 10px; }
#auftrag { border-radius: 12px; padding: 8px 10px 9px; background: linear-gradient(#f3e4c4, #e2cb9e); color: #3a2414; border: 2px solid #7a5230;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45), 0 4px 10px rgba(0, 0, 0, .35); font: 600 12.5px/1.3 system-ui, sans-serif; }
#auftrag h4 { margin: 0 0 5px; font: 800 15px/1.1 var(--kopf); color: #5a2c14; display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
#auftrag h4 span { font: 700 11.5px system-ui, sans-serif; color: #7a5230; }
#auftrag ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
#auftrag li { position: relative; display: grid; grid-template-columns: 1fr auto; column-gap: 6px; row-gap: 3px; padding: 4px 6px; border-radius: 7px; background: rgba(255, 255, 255, .38); overflow: hidden; }
#auftrag li.vorn { background: rgba(255, 236, 180, .7); box-shadow: inset 3px 0 0 #c9791e; }
#auftrag li b { font: 800 12.5px var(--kopf); color: #5a2c14; }
#auftrag .ak-bal { grid-column: 1 / -1; height: 5px; border-radius: 3px; background: rgba(90, 44, 20, .2); overflow: hidden; }
#auftrag .ak-bal i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #f0b54a, #d0541e); transition: width .5s cubic-bezier(.3, .8, .3, 1); }
#auftrag li.fertig { background: rgba(255, 226, 140, .85); }
#auftrag li.fertig .ak-bal i { background: linear-gradient(90deg, #7cc46a, #2e8a40); }
#auftrag li.stempel::after { content: 'ERLEDIGT'; position: absolute; right: 8px; top: 50%; padding: 1px 7px; border: 2.5px solid #a3231b; border-radius: 5px; color: #a3231b;
  font: 900 13px/1.2 var(--kopf); letter-spacing: 1px; background: rgba(255, 244, 220, .85); transform: translateY(-50%) rotate(-9deg); animation: kaStempel .45s cubic-bezier(.2, 1.6, .4, 1) both; }
#auftrag li.rein { animation: kaRein .55s cubic-bezier(.2, 1.2, .4, 1) both; }
@keyframes kaStempel { from { transform: translateY(-50%) rotate(-24deg) scale(2.4); opacity: 0; } to { transform: translateY(-50%) rotate(-9deg) scale(1); opacity: 1; } }
@keyframes kaRein { from { opacity: 0; background: rgba(255, 214, 120, .95); } to { opacity: 1; } }
html[data-ansicht="hell"] #auftrag { background: linear-gradient(#fffaf0, #f1e3c6); }
body.hoch #hud { grid-template-areas: 'logo logo modus modus' 'zeit punkte e1 e2' 'auf auf auf auf' 'kn kn kn kn'; }
body.hoch #auftrag { grid-area: auf; padding: 4px 8px; font-size: 12px; }
body.hoch #auftrag h4 { display: none; }
body.hoch #auftrag li:not(.vorn):not(.stempel) { display: none; }
body.hoch #auftrag li { padding: 2px 6px; background: transparent; box-shadow: none; }
@media (max-height: 460px) and (orientation: landscape) { body:not(.hoch) #auftrag { display: none; } }
@media (max-height: 640px) and (orientation: landscape) { body:not(.hoch) #auftrag li:not(.vorn):not(.stempel) { display: none; } body:not(.hoch) #auftrag { padding: 6px 8px; } }
.ka-flug { position: fixed; z-index: 50; pointer-events: none; font: 900 24px/1 var(--kopf); color: #ffe08a; white-space: nowrap;
  text-shadow: 0 0 2px #2a1006, 0 2px 0 #2a1006, 0 0 12px rgba(255, 150, 50, .9); will-change: transform, opacity; }
.ka-flug.gross { font-size: 34px; color: #fff1b0; }
.wert.ka-plopp { animation: kaPlopp .35s ease-out; }
@keyframes kaPlopp { 0% { transform: scale(1); } 35% { transform: scale(1.08); box-shadow: 0 0 0 2px #f2b24a, 0 0 18px rgba(242, 178, 74, .8); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { #auftrag li.stempel::after, #auftrag li.rein, .wert.ka-plopp { animation: none; } #auftrag .ak-bal i { transition: none; } }
