@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: #f2b33d; --akzent2: #e0703a; --akzent3: #2a1206; --tief: #141c16; --panel: rgba(22, 40, 28, .94); --panel2: rgba(22, 40, 28, .97);
  --text: #f3ecd9; --mute: #d2dccc; --rand: rgba(232, 220, 192, .6); --knopf1: #2e5a3a; --knopf2: #1a3a24; --knopfText: #f3ecd9;
  --gruen: #9fe36a; --rot: #ff8a6a; --gold: #f2b33d;
  --kopf: 'SGZ Ziffern', Georgia, 'Times New Roman', serif;
  --mo-grund: #1a2e20; --mo-grund2: #26422e; --mo-akzent: #f2b33d; --mo-text: #f3ecd9; --mo-rand: rgba(224, 112, 58, .5);
}
html[data-ansicht="mittag"] {
  --akzent: #9a5a12; --akzent2: #b8442e; --akzent3: #f6ecd6; --tief: #d6e2cc; --panel: rgba(250, 246, 234, .95); --panel2: rgba(250, 246, 234, .97);
  --text: #1e1a14; --mute: #4a4030; --rand: rgba(40, 70, 40, .5); --knopf1: #f1e6c8; --knopf2: #dcc59a; --knopfText: #1e1a14;
  --gruen: #2e7d3a; --rot: #a3231b; --gold: #9a6a12;
}
body { background: var(--tief); color: var(--text); }
#kulisse { position: fixed; inset: 0; z-index: 0; overflow: clip;
  background: url(img/garten-abend.webp?v=1) center / cover no-repeat, linear-gradient(#5a4a7a 0%, #c08a70 45%, #3e6a3a 62%, #24401e 100%) #2a3a2a; }
body.hoch #kulisse { background-image: url(img/garten-abend-hoch.webp?v=1), linear-gradient(#5a4a7a 0%, #c08a70 45%, #3e6a3a 62%, #24401e 100%); }
html[data-ansicht="mittag"] #kulisse { background-image: url(img/garten-mittag.webp?v=1), linear-gradient(#8fc3e0 0%, #d8ead2 50%, #6a9a4a 62%, #4a6a30 100%); background-color: #9ac0a8; }
html[data-ansicht="mittag"] body.hoch #kulisse { background-image: url(img/garten-mittag-hoch.webp?v=1), linear-gradient(#8fc3e0 0%, #d8ead2 50%, #6a9a4a 62%, #4a6a30 100%); }
#kulisse i { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 10% 30%, rgba(255, 200, 110, .2), transparent 9%), radial-gradient(circle at 90% 26%, rgba(255, 210, 120, .2), transparent 9%);
  animation: lampion 2.8s ease-in-out infinite alternate; }
html[data-ansicht="mittag"] #kulisse i { background: radial-gradient(circle at 12% 12%, rgba(255, 250, 220, .35), transparent 22%); }
@keyframes lampion { from { opacity: .4; } to { opacity: .9; } }
@media (prefers-reduced-motion: reduce) { #kulisse i { animation: none; } }

#buehne { z-index: 1; }
#hud { background: linear-gradient(180deg, rgba(40, 78, 50, .95), rgba(22, 44, 28, .95)); border: 3px solid #e8dcc0; box-shadow: 0 10px 26px rgba(0, 0, 0, .55), inset 0 0 0 2px rgba(0, 0, 0, .35); }
html[data-ansicht="mittag"] #hud { background: linear-gradient(180deg, rgba(252, 248, 236, .96), rgba(240, 232, 212, .96)); border-color: #2e5a3a; }
#hud::before, #hud::after { content: ''; position: absolute; top: 7px; width: 6px; height: 6px; border-radius: 50%; background: #e8dcc0; box-shadow: 0 1px 1px rgba(0, 0, 0, .5); }
#hud::before { left: 7px; } #hud::after { right: 7px; }
#logo span { color: var(--text); } #logo b { color: var(--akzent); }
#logo { letter-spacing: 1px; font-size: 29px; }
.wert { background: rgba(0, 0, 0, .3); }
html[data-ansicht="mittag"] .wert { background: rgba(40, 80, 40, .08); }
.wert b { font-family: var(--kopf); font-variant-numeric: lining-nums tabular-nums; font-kerning: none; }
html[data-ansicht="mittag"] .wert b { color: #1e1a14; }
#eigen { grid-template-columns: 1fr 1fr; }

#brettbox { overflow: clip; touch-action: none; display: block !important; position: relative; }
#feld { position: absolute; z-index: 0; padding: 10px; border-radius: 10px; box-sizing: border-box;
  background: repeating-linear-gradient(90deg, rgba(0, 0, 0, .14) 0 2px, transparent 2px 46px), linear-gradient(#b8884e, #7a5430);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .6), inset 0 0 0 2px rgba(255, 230, 190, .22), inset 0 -5px 8px rgba(0, 0, 0, .35); }
#feld::before, #feld::after { content: ''; position: absolute; top: -3px; width: 16px; height: 16px; border-radius: 4px; background: radial-gradient(circle at 35% 30%, #ffe7a6, #b8862e 60%, #6e4c14); box-shadow: 0 2px 3px rgba(0, 0, 0, .5); }
#feld::before { left: -3px; } #feld::after { right: -3px; }
html[data-ansicht="mittag"] #feld { background: repeating-linear-gradient(90deg, rgba(0, 0, 0, .1) 0 2px, transparent 2px 46px), linear-gradient(#d8b07a, #a07a48); }
#brett { position: static; display: block; border-radius: 4px; pointer-events: none; }

#meld { position: absolute; left: 50%; transform: translateX(-50%); z-index: 6; width: min(70%, 560px); display: flex; flex-direction: column; gap: 5px; pointer-events: none; }
.meldung { padding: 6px 12px; border-radius: 9px; background: var(--panel2); color: var(--text); border: 1px solid var(--akzent); font-size: 14px; line-height: 1.3; text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .45); transition: opacity .35s; animation: meldEin .25s ease-out; }
.meldung.weg { opacity: 0; }
@keyframes meldEin { from { transform: translateY(-6px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .meldung { animation: none; } }

#steuer { display: none; position: absolute; left: 0; right: 0; bottom: 10px; z-index: 4; pointer-events: none; padding: 0 12px; transition: opacity .25s; }
#steuer.an { display: flex; justify-content: space-between; align-items: flex-end; }
#steuer.hoch { align-items: center; }
#steuer.ruhe { opacity: 0; pointer-events: none; } #steuer.ruhe button { pointer-events: none; }
#steuer .seiten { display: flex; gap: 12px; pointer-events: auto; }
#steuer button { pointer-events: auto; touch-action: none; user-select: none; -webkit-user-select: none; border-radius: 50%; color: #2a1a06;
  background: radial-gradient(circle at 35% 30%, #ffe7a6, #d8a84a 55%, #8a5a14); border: 3px solid #f6dc8a; box-shadow: 0 6px 14px rgba(0, 0, 0, .5), inset 0 -3px 6px rgba(0, 0, 0, .3); }
#tLinks, #tRechts { width: 74px; height: 74px; position: relative; }
#tLinks::after, #tRechts::after { content: ''; position: absolute; left: 50%; top: 50%; width: 0; height: 0; border: 14px solid transparent; }
#tLinks::after { border-right: 20px solid #2a1a06; transform: translate(-75%, -50%); border-left-width: 0; }
#tRechts::after { border-left: 20px solid #2a1a06; transform: translate(-25%, -50%); border-right-width: 0; }
#tFlap { width: 104px; height: 104px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; background: radial-gradient(circle at 35% 30%, #9ad08a, #3e7a3a 55%, #1a3a1a); color: #fff6e6; border-color: #d8f0b8; }
#tFlap span { font: 800 16px system-ui, sans-serif; } #tFlap small { font: 600 11px system-ui, sans-serif; opacity: .95; }
#steuer button > * { pointer-events: none; }
#steuer button.an { transform: translateY(2px) scale(.97); filter: brightness(1.15); }
#steuer.an:not(.hoch) { padding: 0 4px; }
#steuer.an:not(.hoch) .seiten { flex-direction: column; gap: 10px; }
#steuer.an:not(.hoch) #tLinks, #steuer.an:not(.hoch) #tRechts { width: 70px; height: 70px; }
@media (max-height: 560px) {
  body:not(.hoch) #buehne { grid-template-columns: 204px 1fr; }
  body:not(.hoch) #knoepfe button { height: 44px; }
  body:not(.hoch) #logo { font-size: 21px; }
  body:not(.hoch) #modus { min-height: 15px; line-height: 15px; flex: none; }
  body:not(.hoch) #info { display: none; }
}
body.hoch #modus { padding-right: 12px; }

#wahl { position: absolute; inset: 0; z-index: 7; display: flex; align-items: center; justify-content: center; background: rgba(8, 16, 10, .72); padding: 12px; }
#wahl[hidden] { display: none; }
#wahl .fenster { position: relative; width: min(820px, 100%); max-height: 100%; overflow: auto; padding: 16px 18px; border-radius: 14px; background: var(--panel2); border: 2px solid var(--rand); }
#wahl h2 { margin: 0 0 4px; color: var(--akzent); font: 800 24px var(--kopf); }
#wahl .leise { margin: 0 0 10px; color: var(--mute); font-size: 14px; }
#wahl .karte { margin: 0 0 6px; font-size: 13px; color: var(--mute); } #wahl .karte b { color: var(--akzent); }
#wahl .felder { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; }
#wahl .feldwahl { position: relative; display: flex; flex-direction: column; gap: 2px; align-items: flex-start; padding: 7px 9px; border-radius: 10px; border: 2px solid var(--rand); background: rgba(0, 0, 0, .25); color: var(--text); text-align: left; min-height: 44px; }
html[data-ansicht="mittag"] #wahl .feldwahl { background: rgba(40, 80, 40, .07); }
#wahl .feldwahl b { font: 800 17px var(--kopf); color: var(--akzent); } #wahl .feldwahl span { font-size: 13px; line-height: 1.2; } #wahl .feldwahl small { font-size: 12px; color: var(--mute); }
#wahl .feldwahl.zu { opacity: .5; border-style: dashed; cursor: not-allowed; }
#wahl .feldwahl:not(.zu):hover { filter: brightness(1.15); }
#wahl .fz { position: absolute; top: 7px; right: 8px; font-style: normal; }
#wahl .zu:not(.feldwahl) { position: sticky; float: right; top: 0; width: 42px; height: 42px; border-radius: 10px; border: 2px solid var(--rand); background: var(--panel); color: var(--text); font: 700 22px system-ui; }
.stz { display: inline-flex; gap: 2px; } .stz i { width: 11px; height: 11px; background: rgba(120, 110, 90, .55); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.stz i.an { background: #ffd27a; }
@media (max-width: 760px), (max-height: 660px) {
  #wahl { padding: 6px; } #wahl .fenster { padding: 10px 10px 12px; }
  #wahl h2 { font-size: 20px; margin-bottom: 0; } #wahl .leise { font-size: 12.5px; margin-bottom: 4px; } #wahl .karte { font-size: 12px; margin-bottom: 3px; }
  #wahl .felder { gap: 5px; grid-template-columns: repeat(4, 1fr); } #wahl .feldwahl { padding: 4px 6px; } #wahl .feldwahl small { display: none; }
  #wahl .feldwahl b { font-size: 15px; } #wahl .feldwahl span { font-size: 12px; line-height: 1.15; }
  #wahl .fz { top: 5px; right: 6px; } #wahl .stz i { width: 9px; height: 9px; }
}
@media (max-width: 520px) { #wahl .felder { grid-template-columns: repeat(2, 1fr); } }
@media (max-height: 430px) and (min-aspect-ratio: 1/1) { #wahl .felder { grid-template-columns: repeat(5, 1fr); } #wahl .feldwahl span { font-size: 11.5px; } }

@media (max-height: 430px) and (min-aspect-ratio: 1/1) {
  .dlg.menue { padding: 10px 14px; }
  .dlg.menue .schildkopf { font-size: 30px; line-height: 1.05; margin: 0; }
  .dlg.menue > .unter { display: none; }
  .dlg.menue .modi { gap: 8px; margin-top: 6px; }
  .dlg.menue .modus { padding: 6px 8px; }
  .dlg.menue h3 { font-size: 15px; margin: 4px 0 0; } .dlg.menue h3 + div { padding-top: 0; padding-bottom: 0; min-height: 0; }
  .dlg.menue .reihe { margin-top: 6px; }
}
.dlg.mo-tafel .mo-leiter { margin-top: 30px; }
@media (max-height: 430px) and (min-aspect-ratio: 1/1) {
  #ov .dlg.mo-tafel .mo-tipp { display: none; }
  #ov .dlg.mo-tafel .mo-leiter { margin-top: 22px; }
  #ov .dlg.mo-tafel .mo-kachel { padding-top: 2px; padding-bottom: 2px; }
}
#ov .dlg.mo-tafel details.mo-rechen summary { min-height: 42px; display: flex; align-items: center; justify-content: center; }
@media (max-height: 430px) and (min-aspect-ratio: 1/1) { #ov .dlg.mo-tafel #eMenue, #ov .dlg.mo-tafel #eNoch { min-height: 50px; } #ov .dlg.mo-tafel details.mo-rechen summary { min-height: 50px; } }
@media (max-width: 900px) and (min-aspect-ratio: 1/1) and (min-height: 561px) { body:not(.hoch) #buehne { grid-template-columns: 220px 1fr; } body:not(.hoch) #logo { font-size: 23px; } }
.sp-flug { position: fixed; z-index: 40; pointer-events: none; min-width: 26px; height: 24px; padding: 0 7px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  color: #fff8e6; font: 800 13px system-ui, sans-serif; border: 2px solid #f6dc8a; box-shadow: 0 0 12px rgba(255, 210, 120, .75); white-space: nowrap; }
.wert.sp-puls { animation: spPuls .65s ease-out; }
.wert.sp-puls.rot { animation-name: spPulsRot; }
@keyframes spPuls { 0% { transform: scale(1); } 35% { transform: scale(1.1); box-shadow: 0 0 16px rgba(255, 210, 120, .9); } 100% { transform: scale(1); } }
@keyframes spPulsRot { 0% { transform: scale(1); } 35% { transform: scale(1.1); box-shadow: 0 0 16px rgba(230, 60, 40, .95); border-color: #ff6a4a; } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .wert.sp-puls { animation: none; } .sp-flug { display: none; } }
@media (max-height: 430px) and (min-aspect-ratio: 1/1) { .meldung { font-size: 12.5px; padding: 4px 10px; line-height: 1.25; } }
.abz { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 4px 0 8px; }
.abz-kopf { font-size: 13px; color: var(--mute); } .abz-kopf b { color: var(--akzent); }
.abz-reihe { display: flex; gap: 5px; flex-wrap: wrap; justify-content: center; }
.abz-m { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font: 800 11px system-ui, sans-serif; font-style: normal;
  color: rgba(200, 200, 190, .7); background: rgba(120, 120, 110, .25); border: 1.5px dashed rgba(200, 200, 190, .45); }
.abz-m.an { color: #6a4a10; background: radial-gradient(circle at 35% 30%, #fff2b0, #e0b04a 60%, #a0701a); border: 1.5px solid #f6dc8a; box-shadow: 0 0 6px rgba(255, 210, 120, .6); }
.abz-namen { font-size: 12px; color: var(--mute); text-align: center; max-width: 520px; }
html[data-ansicht="mittag"] .abz-m { color: #6a6458; background: rgba(120, 110, 90, .12); border-color: rgba(90, 80, 60, .45); }
@media (max-width: 760px), (max-height: 660px) { .abz { margin: 0 0 4px; gap: 2px; } .abz-m { width: 18px; height: 18px; font-size: 11px; } .abz-namen { display: none; } }
@media (max-width: 760px), (max-height: 660px) { .abz { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 6px; } #wahl .leise { display: none; } }
