@font-face { font-family: 'SGZ Ziffern'; src: local('Times New Roman'), local('Liberation Serif'), local('Noto Serif'); unicode-range: U+0030-0039; }
:root {
  --gold: #f0c27a; --gold2: #b47a3c; --gold3: #5a3416;
  --tief: #2a1a12; --panel: rgba(46, 28, 18, .9); --panel2: rgba(70, 44, 28, .94);
  --text: #fff4e4; --mute: #e8d2b4; --rot: #ff7a6a; --gruen: #9ee39a;
  --rand: rgba(240, 194, 122, .6);
  --schatten: 0 10px 30px rgba(30, 14, 4, .55);
  --kopf: 'SGZ Ziffern', 'Palatino Linotype', 'Book Antiqua', Georgia, serif;
  --knopf1: #6b4428; --knopf2: #4a2c18; --knopfH1: #7e5232; --knopfH2: #5a361e; --haupt1: #f6d28e; --haupt2: #c98a3c; --hauptText: #3a1e08;
  --papier: #fbf1de; --papierText: #3a2414; --papierMute: #6e5236; --papierRand: #d9b98a;
  --kulisse-q: url(img/kulisse-q.webp); --kulisse-h: url(img/kulisse-h.webp);
}
body.abend {
  --tief: #160d0a; --panel: rgba(30, 18, 12, .92); --panel2: rgba(52, 32, 20, .95);
  --kulisse-q: url(img/kulisse-abend-q.webp); --kulisse-h: url(img/kulisse-abend-h.webp);
}
body.winter {
  --tief: #160d0a; --panel: rgba(30, 18, 12, .92); --panel2: rgba(52, 32, 20, .95);
  --kulisse-q: url(img/kulisse-winter-q.webp); --kulisse-h: url(img/kulisse-winter-h.webp);
}
body.silvester {
  --tief: #0e0a12; --panel: rgba(24, 16, 22, .92); --panel2: rgba(46, 30, 40, .95);
  --kulisse-q: url(img/kulisse-silvester-q.webp); --kulisse-h: url(img/kulisse-silvester-h.webp);
}
body.puder {
  --gold: #8a5a2a; --gold2: #b98a4e; --gold3: #f6ead6;
  --tief: #efe6d8; --panel: rgba(250, 244, 234, .92); --panel2: rgba(244, 234, 218, .96);
  --text: #3a2414; --mute: #6e5236; --rot: #c0392b; --gruen: #2e7d32;
  --rand: rgba(160, 112, 60, .55); --schatten: 0 10px 28px rgba(90, 60, 30, .25);
  --knopf1: #f7ecda; --knopf2: #eadac0; --knopfH1: #fff4e2; --knopfH2: #f0e0c4; --haupt1: #9a5c22; --haupt2: #7a4416; --hauptText: #fff8ec;
  --kulisse-q: url(img/kulisse-puder-q.webp); --kulisse-h: url(img/kulisse-puder-h.webp);
}
body { background: var(--tief); font-variant-numeric: lining-nums tabular-nums; }
#kulisse { position: fixed; inset: 0; z-index: 0; background: var(--tief) var(--kulisse-q) center / cover no-repeat; }
body.hoch #kulisse { background-image: var(--kulisse-h); }
#kulisse::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 70% 60% at 50% 55%, rgba(255, 240, 210, .08), rgba(30, 14, 4, .18)); }
@media (prefers-reduced-motion: no-preference) { #kulisse { animation: licht 14s ease-in-out infinite alternate; } }
@keyframes licht { from { filter: brightness(1); } to { filter: brightness(1.05) saturate(1.04); } }
#buehne { z-index: 1; }
@media (min-height: 521px) { body:not(.hoch) #buehne { max-width: calc(96vh + 380px); margin: 0 auto; } }
#hud { background: linear-gradient(rgba(46, 28, 18, .82), rgba(36, 20, 12, .9)), url(img/holz.webp) 0 0 / 220px; }
body.puder #hud { background: linear-gradient(rgba(252, 246, 236, .86), rgba(244, 234, 218, .9)), url(img/holz-hell.webp) 0 0 / 220px; }
#logo { letter-spacing: 3px; text-shadow: 0 3px 0 var(--gold3), 0 0 16px rgba(240, 194, 122, .5); }
#logo b { color: #fff4e4; }
body.puder #logo b { color: #5a3416; }
body.puder #logo { text-shadow: 0 2px 0 #fff, 0 0 10px rgba(200, 150, 80, .35); }
.wert b, .zl .zn, .lv .nr, .lv .bw { font-family: var(--kopf); font-kerning: none; }
#sternfuell { background: linear-gradient(90deg, #c98a3c, #f6d28e, #fff4e4); }
#banner { color: #fff8ec; text-shadow: 0 3px 0 var(--gold3), 0 0 4px #000, 0 2px 14px rgba(0, 0, 0, .9), 0 0 28px rgba(201, 138, 60, .8); }
#banner small { color: #fff; text-shadow: 0 1px 3px #000, 0 0 10px rgba(0, 0, 0, .8); }
#banner { width: max-content; max-width: calc(100% - 20px); }
#banner small { white-space: normal; }
body.hoch #banner small { font-size: 15px; }

#brettbox { position: relative; margin: 1vh 1vw 11vh; }
body.hoch #brettbox { margin: 0 0 9vh; }
#brett { position: relative; z-index: 1; filter: drop-shadow(6px 12px 14px rgba(40, 20, 6, .5)); touch-action: none; }
#staender { position: absolute; z-index: 0; border-radius: 50%; pointer-events: none;
  background: radial-gradient(ellipse at 40% 35%, #ffffff 0%, #e4e6ea 28%, #a9aeb6 62%, #7c8189 100%);
  box-shadow: 0 14px 22px rgba(30, 16, 6, .55), inset 0 -4px 6px rgba(0, 0, 0, .25); }

.tafel { display: flex; flex-direction: column; gap: 6px; }
body:not(.hoch) .tafel { flex-flow: row wrap; gap: 10px 6px; }
body:not(.hoch) .tafel > .glutz { padding: 6px 10px; }
body:not(.hoch) .tafel > * { flex: 1 1 100%; min-width: 0; }
body:not(.hoch) .tafel > .rzaktiv, body:not(.hoch) .tafel > .glutz { flex: 1 1 calc(50% - 3px); }
body:not(.hoch) .tafel .etz { padding: 4px 10px; line-height: 1.25; }
body:not(.hoch) #bHeber, body:not(.hoch) #bWahl { min-height: 38px; height: 38px; }
.etzz { font-style: normal; }
@media (max-height: 760px) {
  body:not(.hoch) .etzz { display: none; }
  body:not(.hoch) #hud { gap: 7px; padding: 10px 12px; }
  body:not(.hoch) .tafel .etz { padding: 2px 10px; }
  body:not(.hoch) .tafel { row-gap: 6px; }
  body:not(.hoch) .tafel > .glutz { padding: 4px 8px; }
}
@media (max-height: 640px) {
  body:not(.hoch) #werte .wert { padding: 4px 6px; }
  body:not(.hoch) #werte .wert b { font-size: 24px; }
  body:not(.hoch) #ziele .zl { padding-top: 3px; padding-bottom: 3px; }
  body:not(.hoch) #ziele .zl img { width: 34px; height: 34px; }
  body:not(.hoch) .sbz { font-size: 12px; padding: 3px 8px; }
}
body:not(.hoch) .tafel > .rzaktiv span { display: none; }
body:not(.hoch) .tafel > .rzaktiv { justify-content: center; }
body:not(.hoch) .tafel > .glutz span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.etz { display: flex; align-items: center; gap: 10px; background: var(--panel2); border: 1px solid rgba(240, 194, 122, .28); border-radius: 12px; padding: 6px 10px; font-size: 13px; color: var(--mute); }
.etz b { color: var(--text); }
.tierklein { display: flex; flex-direction: column; align-items: center; width: 34px; gap: 1px; flex: none; }
.tierklein i { display: block; height: 7px; border-radius: 2px; background: #6b5440; border: 1px solid rgba(255, 255, 255, .2); }
.tierklein i.fertig { background: #f1dcb8; }
.tierklein i.jetzt { background: var(--gold); box-shadow: 0 0 8px rgba(240, 194, 122, .8); }
.rzaktiv { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--mute); background: var(--panel2); border-radius: 10px; padding: 4px 8px; }
.rzaktiv img { width: 26px; height: 26px; object-fit: contain; }
.rzaktiv span { margin-left: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#bWahl { width: 100%; min-height: 42px; animation: glanz 1.2s ease-in-out infinite; }
@keyframes glanz { 50% { box-shadow: 0 0 0 3px rgba(240, 194, 122, .55), 0 0 16px rgba(240, 194, 122, .7); } }
.knopf[disabled] { opacity: .5; border-style: dashed; cursor: default; filter: saturate(.5); }
body.hoch .tafel { flex-direction: row; flex-wrap: wrap; }
body.hoch .etz { padding: 3px 8px; font-size: 12px; }
body.hoch .rzaktiv span { display: none; }
body.hoch #knoepfe button { width: 42px; height: 42px; }
body:not(.hoch) #knoepfe { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 5px; }
body:not(.hoch) #knoepfe button { min-width: 0; padding: 0; }
body.hoch #knoepfe { flex-wrap: wrap; justify-content: flex-end; }
.tagbox.neu { border-color: var(--gold); box-shadow: 0 0 12px rgba(240, 194, 122, .35); }
.tagbox.neu img { width: 40px; height: 40px; object-fit: contain; flex: none; }
.kartekopf .knopf, .kartezusatz .knopf { min-height: 42px; height: auto; }

.kartenetz.eigen { display: block; padding: 10px 16px 24px; background: linear-gradient(rgba(251, 241, 222, .94), rgba(244, 228, 200, .94)), url(img/buch.webp) 0 0 / 256px; }
.kapitel h3 { display: flex; align-items: baseline; gap: 10px; margin: 18px 4px 10px; font: 700 22px/1.2 var(--kopf); color: var(--papierText); border-bottom: 2px solid var(--papierRand); padding-bottom: 4px; }
.kapitel h3 span { font-size: 13px; text-transform: uppercase; letter-spacing: 1.5px; color: #8a5a2a; }
.kapitel h3 small { margin-left: auto; font-size: 13px; color: var(--papierMute); }
.kgitter { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; }
.kartenetz.eigen .lv { background: linear-gradient(160deg, #fffaf0, #f3e2c4); border: 1px solid var(--papierRand); color: var(--papierText); padding: 10px 8px 8px; text-align: center; box-shadow: 0 3px 8px rgba(90, 60, 30, .18); }
.kartenetz.eigen .lv .nr { color: #7a4a1e; text-shadow: none; }
.kartenetz.eigen .lv .nm { color: var(--papierText); }
.kartenetz.eigen .lv .bw { color: var(--papierMute); }
.kartenetz.eigen .lv.zu { opacity: .55; filter: grayscale(.4); border-style: dashed; }
.kartenetz.eigen .lv.zu .schl { color: #8a6a4a; }
.kartenetz.eigen .lv.neu { border-color: #c98a3c; box-shadow: 0 0 0 2px rgba(201, 138, 60, .4), 0 0 18px rgba(201, 138, 60, .45); }
.lv .tier { position: absolute; left: 8px; top: 9px; display: flex; flex-direction: column-reverse; align-items: center; width: 22px; gap: 1px; }
.lv .tier i { display: block; height: 5px; border-radius: 1px; background: #e9c99a; border: 1px solid #c79a62; }
.lv .tier i:nth-child(1) { width: 22px; } .lv .tier i:nth-child(2) { width: 16px; } .lv .tier i:nth-child(3) { width: 10px; }
.kartezusatz { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding: 8px 16px; border-bottom: 1px solid rgba(240, 194, 122, .25); flex: none; }
.kartezusatz .knopf { padding: 0 12px; }
.kartezusatz .knopf b { color: var(--gold); margin-left: 2px; }
@media (min-width: 600px) and (min-height: 521px) {
  .kartekopf { padding-top: 10px; padding-bottom: 10px; }
  .kartekopf { flex-wrap: wrap; row-gap: 4px; }
  .kartekopf .info { order: 3; flex: 1 1 100%; font-size: 13px; line-height: 1.35; }
  .kartekopf .summe { margin-left: auto; }
  .kartekopf .knopf { flex: none; }
  .kartezusatz { gap: 6px; padding: 6px 12px; }
  .kartezusatz .knopf { padding: 0 12px; font-size: 13.5px; min-height: 38px; gap: 5px; min-width: 0; width: auto; }
}
.dlg > .zu:first-child + h2 + .unter { padding-left: 66px; padding-right: 66px; }

.etagen { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 10px; }
.et { background: var(--panel2); border: 1px solid rgba(240, 194, 122, .3); border-radius: 12px; padding: 6px 10px; }
.et-kopf { font: 700 14px/1.2 var(--kopf); color: var(--gold); margin-bottom: 4px; }
.et-kopf small { font: 400 12.5px/1 'Segoe UI', sans-serif; color: var(--mute); margin-left: 6px; }
.et-fass { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.et-f { position: relative; display: flex; align-items: center; gap: 8px; }
.et-f i { font: 700 13px/1 var(--kopf); color: var(--gold); font-style: normal; }
.et-z { display: flex; gap: 2px; }
.et-z img { width: 28px; height: 28px; object-fit: contain; }
.oder { font-size: 12px; color: var(--mute); }
svg.mini { width: 54px; height: auto; flex: none; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .35)); }
.rzkopf { display: flex; justify-content: space-between; font: 700 14px/1.2 var(--kopf); color: var(--gold); margin: 6px 2px; }
.rzkopf .rzzahl { color: var(--mute); }
.rzleiste { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px; margin-bottom: 10px; }
.rzk { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; border-radius: 12px; border: 1px solid rgba(240, 194, 122, .35); background: var(--panel2); padding: 6px 4px; min-height: 44px; }
.rzk img { width: 40px; height: 40px; object-fit: contain; }
.rzk b { font-size: 12px; color: var(--text); }
.rzk.an { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(240, 194, 122, .45), 0 0 14px rgba(240, 194, 122, .4); background: linear-gradient(var(--knopfH1), var(--knopfH2)); }
.rzk.gesperrt { opacity: .5; border-style: dashed; }
.rzliste { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin: 8px 0; }
.rzliste .rzk { flex-direction: row; align-items: center; text-align: left; gap: 10px; padding: 8px 10px; flex-wrap: wrap; }
.rzliste .rzk img { width: 48px; height: 48px; }
.rzliste .rzk b { font-size: 14px; flex: 1; }
.rzliste .rzk span { flex-basis: 100%; font-size: 12.5px; color: var(--mute); }
.rzliste .rzk em { flex-basis: 100%; display: flex; align-items: center; gap: 4px; font-style: normal; font-size: 12px; color: var(--gold); }
.rzliste .rzk em svg { width: 14px; height: 14px; }
@media (min-width: 900px) and (orientation: landscape) {
  .dlg.rezepte { width: min(980px, 100%); }
  .dlg.rezepte .rzliste { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dlg.rezepte .rzliste .rzk { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 10px; row-gap: 2px; align-items: start; }
  .dlg.rezepte .rzliste .rzk img { grid-row: 1 / span 3; width: 44px; height: 44px; }
  .dlg.rezepte .rzliste .rzk b, .dlg.rezepte .rzliste .rzk span, .dlg.rezepte .rzliste .rzk em { grid-column: 2; }
}
.dlg .klein { font-size: 12.5px; color: var(--mute); }

.dlg.wahl { width: min(720px, 100%); }
.dlg.wahl .unter { padding: 0 58px; }
.bkarten { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 10px 0 14px; }
.bkarte { display: flex; flex-direction: column; align-items: stretch; gap: 8px; text-align: center; padding: 12px; border-radius: 14px;
  background: linear-gradient(170deg, var(--papier), #f1ddbb); color: var(--papierText); border: 2px solid var(--papierRand); box-shadow: 0 6px 14px rgba(40, 20, 6, .35); }
.bkarte:hover { border-color: #c98a3c; }
.bkarte.gewaehlt { border-color: #c98a3c; box-shadow: 0 0 0 3px rgba(201, 138, 60, .55), 0 8px 18px rgba(40, 20, 6, .45); transform: none; }
.bk-kopf { font: 700 18px/1.2 var(--kopf); color: #7a4a1e; display: flex; gap: 8px; align-items: center; }
.bk-kopf em { font: 700 11px/1 'Segoe UI', sans-serif; font-style: normal; text-transform: uppercase; background: #7a4416; color: #fff; border-radius: 6px; padding: 3px 6px; }
.bkarte svg.mini { width: 96px; margin: 0 auto; }
.bk-kopf { justify-content: center; }
.bk-ziele { display: flex; flex-direction: column; gap: 4px; width: 100%; }
.bz { display: flex; align-items: center; gap: 6px; font-size: 13.5px; text-align: left; }
.bz img { width: 30px; height: 30px; object-fit: contain; }
.bz b { margin-left: auto; font-family: var(--kopf); font-size: 17px; }
.bk-zuege { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--papierMute); }
.bk-zuege svg { width: 16px; height: 16px; color: #8a5a2a; flex: none; }
.bk-lohn { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: #7a4a1e; background: rgba(240, 194, 122, .25); border-radius: 8px; padding: 4px 8px; text-align: left; }
.bk-lohn svg { width: 16px; height: 16px; color: #9a5c22; flex: none; }
.bk-rat { font-size: 12.5px; color: #7a4a1e; background: rgba(201, 138, 60, .15); border-radius: 8px; padding: 4px 8px; }
.bkarten.n3 { grid-template-columns: repeat(3, 1fr); }
.dlg.wahl:has(.bkarten.n3) { width: min(960px, 100%); }
.bk-kniff { min-height: 58px; display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; background: rgba(201, 138, 60, .14); border: 1px dashed #c98a3c; border-radius: 10px; padding: 6px 8px; font-size: 12.5px; color: var(--papierMute); }
.bk-kniff img { width: 36px; height: 36px; object-fit: contain; flex: none; }
.bk-kniff b { display: block; color: #7a4a1e; font-size: 13.5px; }
.turmtext { font-size: 14px; color: var(--mute); background: var(--panel2); border-radius: 12px; padding: 10px 12px; }
.neuinfo { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 8px; }
.ni { display: flex; gap: 10px; align-items: center; background: var(--panel2); border: 1px solid var(--gold); border-radius: 12px; padding: 6px 10px; font-size: 13px; color: var(--mute); box-shadow: 0 0 12px rgba(240, 194, 122, .3); }
.ni img { width: 40px; height: 40px; object-fit: contain; flex: none; }
.ni b { display: block; color: var(--text); }
.ni em { font-style: normal; font-size: 11px; background: var(--gold); color: #3a1e08; border-radius: 6px; padding: 0 6px; margin-left: 4px; text-transform: uppercase; }
@media (max-width: 860px) { .bkarten.n3 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .bkarten { grid-template-columns: 1fr; } }

.tagbox.torte svg.tortenbild { width: 96px; height: auto; flex: none; }
.tagbox.torte .knopf.klein { height: auto; min-height: 40px; margin-top: 6px; padding: 4px 10px; font-size: 13px; }
body.puder .endwert { color: #7a4416; text-shadow: 0 2px 0 #fff; }
body.puder #banner { color: #4a2a10; text-shadow: 0 2px 0 #fff, 0 0 10px #fff, 0 0 22px rgba(255, 255, 255, .9); }
body.puder #banner small { color: #4a2a10; text-shadow: 0 1px 0 #fff, 0 0 8px #fff; }
body.puder .zielstand em { color: #fff; background: #9a3a1a; }
.dlg.wahl .reihe { position: sticky; bottom: -16px; padding: 8px 0 4px; background: linear-gradient(rgba(246, 232, 206, 0), rgba(246, 232, 206, .97) 35%); z-index: 2; }
#dampf { position: fixed; z-index: 0; left: 78%; top: 18%; width: 12%; height: 30%; pointer-events: none; }
body.hoch #dampf { left: 76%; top: 22%; width: 22%; height: 18%; }
#dampf i { position: absolute; bottom: 0; width: 40%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255, 250, 240, .38), rgba(255, 250, 240, 0) 70%); filter: blur(6px); opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  #dampf i { animation: dampf 7s ease-in infinite; }
  #dampf i:nth-child(2) { left: 30%; animation-delay: 2.3s; }
  #dampf i:nth-child(3) { left: 55%; animation-delay: 4.6s; }
}
@keyframes dampf { 0% { transform: translateY(0) scale(.6); opacity: 0; } 20% { opacity: .9; } 100% { transform: translateY(-160%) scale(1.6); opacity: 0; } }
body.puder #dampf i { background: radial-gradient(circle, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 70%); }

.dlg { --text: #3a2414; --mute: #6e5236; --panel2: rgba(255, 250, 240, .8); --rand: rgba(160, 112, 60, .55); --gold: #8a5220; --gold3: #f6e6c8;
  --knopf1: #fbf1de; --knopf2: #ead7b6; --knopfH1: #fff6e6; --knopfH2: #f1e0c2; --gruen: #2e7d32; --rot: #b3261e;
  background: linear-gradient(rgba(251, 241, 222, .97), rgba(244, 228, 200, .97)), url(img/buch.webp) 0 0 / 256px !important; color: var(--text); border: 1px solid #c9a36a !important;
  box-shadow: 0 18px 40px rgba(30, 14, 4, .55), inset 0 0 0 6px rgba(201, 163, 106, .18) !important; }
.dlg .zu svg, .dlg .knopf svg { color: #8a5220; }
.dlg .endwert { color: #7a4416; text-shadow: 0 2px 0 #fff4e0; }
.dlg .zl .zn, .dlg .wert b { color: var(--text); }
.dlg .zielstand em { color: #fff; background: #9a3a1a; }
.dlg .rzk b { color: var(--text); }
.dlg .rzk.an { background: linear-gradient(#fff3d6, #f2d9a6); }
.dlg .et-kopf { color: #8a5220; }
.dlg .ni b { color: var(--text); }
.dlg .ni em { background: #8a5220; color: #fff; }
.dlg .tagbox, .dlg .hinweis { background: rgba(255, 250, 240, .8) !important; border-color: var(--rand) !important; color: var(--text); }
.dlg .tagbox b { color: var(--text); }
.dlg .tagbox svg { color: #8a5220; }
.dlg .tagbox.neu { border-color: #c98a3c !important; }
.rzinfo { font-size: 13px; color: var(--mute); background: rgba(255, 250, 240, .7); border: 1px dashed var(--rand); border-radius: 10px; padding: 6px 10px; margin: 4px 0 8px; min-height: 2.6em; }
.rzinfo em { font-style: normal; color: #9a3a1a; }

.etage-alt { position: absolute; z-index: 0; pointer-events: none; transition: transform .8s cubic-bezier(.4, 0, .6, 1), opacity .8s; }
.etage-alt.weg { transform: translateY(14%) scale(1.12); opacity: 0; }
#brett.etage-neu { animation: aufsetzen .9s cubic-bezier(.2, .8, .3, 1.15); }
@keyframes aufsetzen { 0% { transform: translateY(-55%) scale(.92); opacity: 0; } 55% { opacity: 1; } 100% { transform: none; opacity: 1; } }
#tortenseite { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
#tortenseite .schicht { position: absolute; border-radius: 0 0 14px 14px / 0 0 10px 10px;
  background: linear-gradient(#fff6e6 0 18%, #e9c48c 18% 46%, #fff3e0 46% 58%, #d9a86a 58% 88%, #c48e52 88%);
  box-shadow: 0 8px 12px rgba(40, 20, 6, .35), inset 0 -2px 0 rgba(120, 70, 20, .3); }
#tortenseite .schicht::after { content: ""; position: absolute; left: 4px; right: 4px; bottom: -5px; height: 10px; background: radial-gradient(circle at 6px 0, #fffaf0 5px, transparent 6px) 0 0 / 12px 10px repeat-x; }
#tortenseite .schicht.unten { background: linear-gradient(#f7d6e0 0 25%, #e9c48c 25% 60%, #fff3e0 60% 72%, #d9a86a 72%); z-index: -1; }
body.abend #tortenseite .schicht { background: linear-gradient(#fff0dc 0 18%, #6b3d22 18% 46%, #f3e2c4 46% 58%, #5a3218 58% 88%, #4a2812 88%); }
body.puder #tortenseite .schicht { background: linear-gradient(#ffffff 0 18%, #f6ead6 18% 46%, #fffaf2 46% 58%, #efdcbc 58% 88%, #e2c9a2 88%); }
#konditorin { position: fixed; z-index: 1; right: 1.5vw; bottom: 1vh; width: min(17vh, 170px); pointer-events: none; filter: drop-shadow(0 8px 10px rgba(30, 14, 4, .5)); }
#konditorin img { width: 100%; display: block; }
#konditorin img.f { position: absolute; inset: 0; opacity: 0; transition: opacity .25s; }
#konditorin.freude img.f { opacity: 1; }
#konditorin.hupf { animation: hupf .6s ease-out; }
@keyframes hupf { 30% { transform: translateY(-10%) rotate(-3deg); } 60% { transform: translateY(0) rotate(2deg); } }
body.hoch #konditorin { left: 1vw; right: auto; width: min(13vh, 110px); }
@media (max-height: 520px) { #konditorin { width: 15vh; } }
@media (prefers-reduced-motion: reduce) { #konditorin.hupf, #brett.etage-neu { animation: none; } .etage-alt { transition: none; } }
#briefe { position: fixed; z-index: 0; left: 24vw; top: 6vh; display: flex; gap: 1vw; pointer-events: none; }
#briefe img { width: 6vh; filter: drop-shadow(2px 3px 3px rgba(0, 0, 0, .45)); }
body.hoch #briefe { left: 4vw; top: auto; bottom: 22vh; }
.auftrag { display: flex; gap: 10px; align-items: center; background: rgba(255, 250, 240, .8); border: 1px solid var(--rand); border-radius: 12px; padding: 8px 10px; margin: 2px 0 8px; }
.auftrag img { width: 56px; height: 56px; object-fit: contain; flex: none; border-radius: 50%; background: radial-gradient(#fff6e6, #ead7b6); }
.auftrag q { display: block; font-style: italic; color: var(--text); font-size: 13.5px; }
.auftrag span { display: block; font-size: 12px; color: var(--mute); margin-top: 2px; }
.sbinfo { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--mute); background: rgba(255, 250, 240, .8); border: 1px dashed var(--rand); border-radius: 10px; padding: 6px 10px; margin-bottom: 8px; }
.sbinfo svg { width: 18px; height: 18px; color: #c98a3c; flex: none; }
.sbinfo b { color: var(--text); }
.sbinfo em { font-style: normal; color: #2e7d32; font-weight: 700; }
.sbinfo.ok { border-style: solid; border-color: #6fae6f; }
.sbz { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--mute); background: var(--panel2); border: 1px dashed rgba(240, 194, 122, .5); border-radius: 10px; padding: 4px 8px; }
.sbz svg { width: 16px; height: 16px; color: var(--gold); flex: none; }
.sbz span { flex: 1; }
.sbz b { color: var(--text); white-space: nowrap; }
.sbz.ok { border-style: solid; border-color: var(--gruen); }
#bHeber { width: 100%; min-height: 40px; }
#bHeber { touch-action: none; }
#heberGeist { position: fixed; z-index: 50; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: rgba(255, 236, 190, .92); border: 2px solid #c98a3c; box-shadow: 0 4px 12px rgba(0, 0, 0, .4); display: flex; align-items: center; justify-content: center; pointer-events: none; }
#heberGeist svg { width: 24px; height: 24px; color: #8a5220; }
#bHeber.an { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(240, 194, 122, .6); }
.lv .kd { position: absolute; right: 6px; top: 6px; width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(#fff6e6, #ead7b6); object-fit: contain; }
.lv .stempel { position: absolute; right: 6px; bottom: 6px; width: 22px; height: 22px; border-radius: 50%; background: #9a3a1a; color: #fff; display: flex; align-items: center; justify-content: center; transform: rotate(-12deg); }
.lv .stempel svg { width: 14px; height: 14px; }
.kapitel h3 img.brief { width: 30px; height: 30px; object-fit: contain; }
body.hoch .sbz span { display: none; }
body.hoch #bHeber { width: auto; flex: 1 1 auto; min-height: 40px; height: 40px; font-size: 13px; padding: 0 10px; }
body.hoch .sbz { flex: 0 0 auto; }

@media (min-width: 760px) and (orientation: landscape) {
  body:not(.hoch) .dlg.info2 { width: min(1060px, 100%); }
  body:not(.hoch) .info2 .spalten { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 26px; align-items: start; }
  body:not(.hoch) .info2 .zielliste { margin-top: 4px; }
  body:not(.hoch) .info2 .rzleiste { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
  body:not(.hoch) .info2 .sp-r > :first-child { margin-top: 0; }
}
@media (min-width: 760px) and (orientation: landscape) and (max-height: 760px) {
  body:not(.hoch) .dlg.info2 { padding-top: 14px; padding-bottom: 14px; }
  body:not(.hoch) .info2 .zielliste { gap: 6px; margin: 2px 0 8px; }
  body:not(.hoch) .info2 .zielliste .zl { flex: 1 1 calc(50% - 3px); min-width: 0; padding: 4px 8px; }
  body:not(.hoch) .info2 .zielliste .zl img { width: 32px; height: 32px; }
  body:not(.hoch) .info2 .et { display: flex; align-items: center; gap: 10px; padding: 4px 10px; }
  body:not(.hoch) .info2 .et-kopf { margin: 0; flex: none; width: 74px; }
  body:not(.hoch) .info2 .et-kopf small { display: block; margin: 2px 0 0; }
  body:not(.hoch) .info2 .etagen svg.mini { width: 44px; }
  body:not(.hoch) #ov .info2 .endsterne i, body:not(.hoch) #ov .info2 .endsterne i.sm { width: 40px; height: 40px; }
  body:not(.hoch) .info2 .endsterne { margin: 4px 0 2px; }
  body:not(.hoch) .info2 .rzleiste { margin-bottom: 6px; }
  body:not(.hoch) .info2 .rzk.mini { padding: 4px; }
  body:not(.hoch) .info2 .rzk.mini img { width: 32px; height: 32px; }
}
@media (min-width: 760px) and (orientation: landscape) and (max-height: 620px) {
  body:not(.hoch) .info2 .auftrag { padding: 4px 8px; font-size: 12.5px; }
  body:not(.hoch) .info2 .auftrag img { width: 40px; height: 40px; }
  body:not(.hoch) .info2 .neuinfo .ni { padding-top: 4px; padding-bottom: 4px; font-size: 12.5px; }
  body:not(.hoch) .info2 .neuinfo img { width: 32px; height: 32px; }
  body:not(.hoch) .info2 .sbinfo { font-size: 12.5px; padding-top: 4px; padding-bottom: 4px; }
  body:not(.hoch) .info2 .rzinfo { font-size: 12px; padding-top: 4px; padding-bottom: 4px; }
  body:not(.hoch) .info2 .etagen { margin: 2px 0 6px; gap: 4px; }
  body:not(.hoch) .info2 .etagen svg.mini { width: 36px; }
  body:not(.hoch) .info2 .et-z img { width: 24px; height: 24px; }
  body:not(.hoch) .info2 .et { padding: 3px 10px; }
  body:not(.hoch) .dlg.info2 > .unter { margin-bottom: 6px; }
  body:not(.hoch) .dlg.info2 > .reihe { margin-top: 8px; }
}
.dlg.endtafel > .reihe { position: sticky; bottom: -16px; margin-bottom: -16px; padding: 10px 0 12px; z-index: 2; background: linear-gradient(rgba(246, 232, 206, 0), rgba(246, 232, 206, .97) 30%); }
body.abend .dlg.endtafel > .reihe, body.winter .dlg.endtafel > .reihe, body.silvester .dlg.endtafel > .reihe { background: linear-gradient(rgba(246, 232, 206, 0), rgba(246, 232, 206, .97) 30%); }
table.rechnung tr.auf { animation: zeileAuf .35s ease-out both; }
@keyframes zeileAuf { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
@media (min-width: 760px) and (orientation: landscape) {
  .dlg.ende2 { width: min(980px, 100%); }
  .dlg.ende2 .spalten { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 24px; align-items: start; }
  .dlg.ende2 .sp-r #eExtra > div:first-child .tagbox { margin-top: 0; }
}
.sbz .kurz, .glutz .kurz { display: none; font-style: normal; }
body.hoch .sbz .kurz, body.hoch .glutz .kurz { display: inline; font-size: 12px; color: var(--mute); white-space: nowrap; }
.lv .st { gap: 3px; }
.lv .st i, .lv .st i.sm { position: static !important; margin: 0 !important; flex: none; }
.lv .zs { position: absolute; left: 6px; top: 22px; width: 22px; height: 22px; object-fit: contain; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .3)); }
@media (max-height: 520px) { .lv .st i, .lv .st i.sm { width: 16px !important; height: 16px !important; } .lv .zs { width: 18px; height: 18px; } }
body.hoch .kartezusatz { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; padding: 6px 10px; }
body.hoch .kartezusatz .knopf { flex-direction: column; gap: 2px; min-height: 50px; height: auto; padding: 4px 2px; font-size: 11.5px; line-height: 1.15; min-width: 0; white-space: normal; text-align: center; }
body.hoch .kartezusatz .knopf svg { width: 18px; height: 18px; }
body.hoch .kartezusatz .knopf b { margin: 0; }
body.hoch .kgitter { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
body.hoch .lv .nm { font-size: 11.5px; line-height: 1.2; overflow-wrap: anywhere; hyphens: auto; }
body.hoch .lv .zs { width: 18px; height: 18px; top: 20px; left: 4px; }
body.hoch .kapitel h3 small { flex-basis: 100%; margin-left: 0; }
body.hoch .lv .bw { font-size: 11px; }
body.hoch .kartekopf { row-gap: 6px; }
@media (max-height: 520px) {
  body:not(.hoch) .kartezusatz { flex-wrap: wrap !important; overflow: visible !important; justify-content: center !important; gap: 4px !important; }
  body:not(.hoch) .kartezusatz .knopf { min-height: 34px !important; height: 34px !important; font-size: 12px !important; padding: 0 9px !important; }
}
body.hoch .dlg.rezepte .rzliste { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
body.hoch .dlg.rezepte .rzliste .rzk { padding: 6px; gap: 6px; }
body.hoch .dlg.rezepte .rzliste .rzk img { width: 34px; height: 34px; }
body.hoch .dlg.rezepte .rzliste .rzk b { font-size: 13px; }
body.hoch .dlg.rezepte .rzliste .rzk span { font-size: 12px; }
@media (min-width: 900px) and (orientation: landscape) and (max-height: 640px) {
  .dlg.rezepte { width: min(1100px, 100%); }
  .dlg.rezepte .rzliste { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin: 4px 0; }
  .dlg.rezepte .rzliste .rzk { padding: 6px 8px; }
  .dlg.rezepte .rzliste .rzk img { width: 36px; height: 36px; }
}
@media (max-height: 520px) { body:not(.hoch) .info2 .zielliste .zl { flex-basis: 100%; } }
.kapitel { --kf: #f7d6e0; --ka: #94582a; margin: 4px 0 18px; padding: 8px 8px 12px; border-radius: 18px; background: linear-gradient(180deg, color-mix(in srgb, var(--kf) 70%, transparent), rgba(255, 250, 240, 0) 85%); }
.kap-kopf { display: flex; align-items: center; gap: 12px; padding: 8px 14px; margin-bottom: 10px; border-radius: 14px; color: #fffaf0;
  background: linear-gradient(100deg, var(--ka), color-mix(in srgb, var(--ka) 78%, #2a1408)); box-shadow: 0 4px 12px rgba(70, 35, 10, .25), inset 0 1px 0 rgba(255, 255, 255, .25); }
.kap-nr { flex: none; width: 42px; height: 42px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fffdf6, #f3dfb8); color: var(--ka); font: 700 22px/42px var(--kopf); text-align: center; box-shadow: 0 2px 4px rgba(0, 0, 0, .3), inset 0 0 0 2px #e9c47a; }
.kap-titel span { display: block; font-size: 11.5px; letter-spacing: 1.6px; text-transform: uppercase; color: #fff; text-shadow: 0 1px 1px rgba(0, 0, 0, .35); }
.kap-titel b { display: block; font: 700 22px/1.15 var(--kopf); color: #fffaf0; text-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
.kap-kopf .brief { width: 38px; height: 38px; object-fit: contain; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35)); }
.kap-stand { margin-left: auto; min-width: 190px; text-align: right; }
.kap-balken { height: 9px; border-radius: 5px; background: rgba(255, 255, 255, .28); overflow: hidden; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .25); }
.kap-balken i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, #ffe9a0, #ffcc4a); box-shadow: 0 0 6px rgba(255, 210, 90, .7); }
.kap-stand small { display: block; margin-top: 3px; font-size: 12px; color: #fff; text-shadow: 0 1px 1px rgba(0, 0, 0, .35); }
.kartenetz.eigen .kgitter { grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 10px; }
.kartenetz.eigen .lv { padding: 8px 6px 8px; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--ka) 40%, #e3c79c); color: var(--papierText);
  background: linear-gradient(172deg, #fffdf8 0%, #fffaf2 45%, color-mix(in srgb, var(--kf) 75%, #fff4e2) 100%);
  box-shadow: 0 3px 8px rgba(90, 50, 20, .14), inset 0 1px 0 #fff; transition: transform .15s, box-shadow .15s; }
.kartenetz.eigen .lv:not(.zu):hover { transform: translateY(-3px); box-shadow: 0 8px 16px rgba(90, 50, 20, .22), inset 0 1px 0 #fff; }
.kartenetz.eigen .lv .nr { color: var(--ka); font-size: 24px; text-shadow: 0 1px 0 #fff; }
.kartenetz.eigen .lv .nm { color: var(--papierText); min-height: 30px; margin: 2px 0 4px; font-weight: 600; }
.lv .lv-torte { height: 48px; display: flex; align-items: flex-end; justify-content: center; margin-top: 2px; }
.lv .lv-svg { height: 48px; width: auto; max-width: 96%; filter: drop-shadow(0 2px 2px rgba(80, 40, 10, .25)); }
.kartenetz.eigen .lv .bw { color: var(--papierMute); font-size: 11.5px; margin-top: 3px; }
.kartenetz.eigen .lv.zu { opacity: .8; filter: none; border-style: dashed; background: linear-gradient(172deg, #fbf5ea, #f1e6d2); box-shadow: none; }
.kartenetz.eigen .lv.zu .lv-torte { opacity: .28; filter: grayscale(1); }
.kartenetz.eigen .lv.zu .nr { color: #a58a6a; }
.kartenetz.eigen .lv.zu .nm { color: #4e3420; font-weight: 400; }
.kartenetz.eigen .lv.zu .schl { color: #8a6a4a; }
.kartenetz.eigen .lv.neu { border: 2px solid var(--ka); animation: neuLeuchten 1.8s ease-in-out infinite alternate; }
.kartenetz.eigen .lv.neu::after { content: "Als Nächstes"; position: absolute; left: 50%; top: -9px; transform: translateX(-50%); padding: 1px 8px; border-radius: 9px; font: 700 11px/16px 'Segoe UI', system-ui, sans-serif; color: #fffaf0; background: var(--ka); white-space: nowrap; box-shadow: 0 2px 4px rgba(0, 0, 0, .25); }
@keyframes neuLeuchten { from { box-shadow: 0 0 0 2px color-mix(in srgb, var(--ka) 25%, transparent), 0 4px 10px rgba(90, 50, 20, .2); } to { box-shadow: 0 0 0 5px color-mix(in srgb, var(--ka) 30%, transparent), 0 0 20px color-mix(in srgb, var(--ka) 55%, transparent); } }
@media (prefers-reduced-motion: reduce) { .kartenetz.eigen .lv.neu { animation: none; } }
.lv .st i.sm:not(.an), #ov .endsterne i.sm:not(.an) { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.6l2.8 6 6.5.7-4.9 4.4 1.4 6.4L12 16.8l-5.8 3.3 1.4-6.4-4.9-4.4 6.5-.7z' fill='%23fff3d6' fill-opacity='.55' stroke='%23b98a4e' stroke-width='1.4' stroke-linejoin='round'/%3E%3C/svg%3E") !important; }
body.hoch .kartenetz.eigen .kgitter { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
body.hoch .kartenetz.eigen .lv { padding: 6px 4px 6px; }
body.hoch .kapitel { padding: 6px 4px 10px; }
body.hoch .kap-kopf { flex-wrap: wrap; gap: 8px 10px; padding: 8px 10px; }
body.hoch .kap-stand { flex-basis: 100%; min-width: 0; text-align: left; }
body.hoch .kap-titel b { font-size: 19px; }
body.hoch .lv .lv-torte, body.hoch .lv .lv-svg { height: 34px; }
@media (max-height: 520px) { .kap-kopf { padding: 5px 10px; margin-bottom: 6px; } .kap-nr { width: 32px; height: 32px; font-size: 17px; line-height: 32px; } .kap-titel b { font-size: 17px; } .lv .lv-torte, .lv .lv-svg { height: 32px; } }
.dlg.info2 { border: 2px solid color-mix(in srgb, var(--ka, #c9a36a) 55%, #e9cf9e); background: linear-gradient(180deg, color-mix(in srgb, var(--kf, #fbf1de) 55%, #fffaf0) 0, #fffaf0 140px, #fbf1de 100%); }
.dlg.info2 > h2 { position: relative; top: -13px; margin: 0 -24px -7px; padding: 12px 120px 10px; border-radius: 16px 16px 0 0; color: #fffaf0; text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
  background: linear-gradient(100deg, var(--ka, #94582a), color-mix(in srgb, var(--ka, #94582a) 78%, #2a1408)); box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .2); }
.dlg.info2 > .zu:first-child { background: #fffaf0; }
.dlg.info2 > .info-torte { position: absolute; left: 18px; top: 3px; z-index: 2; pointer-events: none; }
.dlg.info2 .info-svg { height: 46px; width: auto; max-width: 104px; filter: drop-shadow(0 3px 4px rgba(40, 20, 5, .45)); }
body.hoch .dlg.info2 > .info-torte { display: none; }
body.hoch .dlg.info2 > h2 { margin: -18px -14px 6px; padding: 12px 56px 10px; }
body.hoch .dlg.info2 .info-svg { height: 56px; }
@media (max-height: 640px) { body:not(.hoch) .dlg.info2 .info-svg { height: 40px; } body:not(.hoch) .dlg.info2 > h2 { padding-top: 9px; padding-bottom: 8px; } }
.dlg.info2 .auftrag { background: #fffdf8; border: 1px solid color-mix(in srgb, var(--ka, #c9a36a) 35%, #e3c79c); box-shadow: 0 2px 6px rgba(90, 50, 20, .1); }
.dlg.info2 .auftrag img { border: 2px solid color-mix(in srgb, var(--ka, #c9a36a) 60%, #fff); }
.dlg.info2 .zielliste .zl { background: #fffdf8; border: 1px solid color-mix(in srgb, var(--ka, #c9a36a) 30%, #ead6b4); box-shadow: 0 2px 5px rgba(90, 50, 20, .1); }
@media (min-width: 760px) and (orientation: landscape) and (max-height: 640px) {
  .dlg.ende2 > h2 { margin-bottom: 0; font-size: 24px; }
  #ov .dlg.ende2 .endsterne i.sm { width: 36px; height: 36px; }
  .dlg.ende2 .endsterne { margin: 2px 0; }
  .dlg.ende2 .endwert { font-size: 38px; margin: 2px 0; }
  .dlg.ende2 table.rechnung td { padding-top: 2px; padding-bottom: 2px; font-size: 13px; }
  .dlg.ende2 .tagbox { padding: 6px 10px; margin: 5px 0; font-size: 13px; }
  .dlg.ende2 .tagbox.kunde img { width: 44px; height: 44px; }
  .dlg.ende2 .tagbox.torte svg.tortenbild { width: 74px; }
  .dlg.ende2 .tagbox .knopf { min-height: 36px; height: 36px; }
  .dlg.ende2 #eInfo { padding: 4px 8px; margin: 4px 0; }
}
#erfolg { position: absolute; left: 50%; top: 44%; z-index: 4; width: max-content; max-width: calc(100% - 24px); transform: translate(-50%, -50%) scale(.82); opacity: 0; pointer-events: none; text-align: center;
  padding: 14px 28px 16px; border-radius: 20px; background: linear-gradient(rgba(255, 252, 244, .96), rgba(250, 236, 210, .96)); border: 2px solid #c98a3c;
  box-shadow: 0 10px 28px rgba(60, 30, 8, .45), inset 0 1px 0 #fff; transition: opacity .3s, transform .35s cubic-bezier(.3, 1.5, .5, 1); }
#erfolg.an { opacity: 1; transform: translate(-50%, -50%) scale(1); }
#erfolg b { display: block; font: 700 clamp(26px, 5vw, 40px)/1.1 var(--kopf); color: #8a4a14; text-shadow: 0 2px 0 #fff; }
#erfolg small { display: block; margin-top: 6px; font-size: 15px; color: #5a3a1c; white-space: normal; }
#erfolg.schade { border-color: #a8785a; }
#erfolg.schade b { color: #6e4a2e; }
body.hoch #erfolg small { font-size: 13px; }
@media (max-height: 600px) and (min-height: 521px) {
  body:not(.hoch) #ziele { gap: 4px; }
  body:not(.hoch) #ziele .zl { padding-top: 2px; padding-bottom: 2px; min-height: 0; }
  body:not(.hoch) #ziele .zl img { width: 30px; height: 30px; }
  body:not(.hoch) #ziele .zt b { font-size: 13px; line-height: 1.15; }
  body:not(.hoch) #ziele .zt { font-size: 11.5px; line-height: 1.2; }
}
.kartezusatz .knopf .kz { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; text-align: left; }
.kartezusatz .knopf .kz small { font-size: 11px; font-weight: 500; opacity: .9; }
.kartezusatz .knopf.haupt .kz small { color: var(--hauptText); }
body.hoch .kartezusatz .knopf .kz { align-items: center; text-align: center; }
body.hoch .kartezusatz .knopf .kz small { display: none; }
@media (max-height: 520px) { .kartezusatz .knopf .kz small { display: none; } }
#brett.wackeln, #tortenseite.wackeln { animation: wackeln .55s cubic-bezier(.3, 1.6, .5, 1); transform-origin: 50% 100%; }
@keyframes wackeln { 0% { transform: scale(1, 1); } 25% { transform: scale(1.03, .965); } 55% { transform: scale(.985, 1.018); } 80% { transform: scale(1.006, .995); } 100% { transform: none; } }
#lob { position: absolute; left: 0; right: 0; top: 26%; text-align: center; pointer-events: none; z-index: 3; font: 700 min(30px, 8vw)/1.1 var(--kopf); color: #fff3cf; text-shadow: 0 2px 0 #6a3a14, 0 0 14px rgba(40, 18, 4, .7); opacity: 0; }
#lob.s4 { font-size: min(36px, 9.5vw); }
#lob.s5 { font-size: min(42px, 11vw); color: #ffd76a; }
#lob.s6 { font-size: min(48px, 12vw); color: #ffd76a; }
#lob.an { animation: lobAuf 1.2s ease-out; }
@keyframes lobAuf { 0% { opacity: 0; transform: scale(.6); } 18% { opacity: 1; transform: scale(1.1); } 30% { transform: scale(1); } 75% { opacity: 1; } 100% { opacity: 0; transform: translateY(-16px); } }
#kruemel { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
.glutz { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--mute); background: var(--panel2); border-radius: 10px; padding: 4px 8px; }
.glutz svg { width: 16px; height: 16px; color: #e0703a; flex: none; }
.glutz span { flex: 1; }
.glutz b { display: flex; gap: 3px; color: #ffb070; }
.glutz i.gl { width: 9px; height: 9px; border-radius: 50%; background: rgba(120, 80, 50, .5); display: inline-block; }
.glutz i.gl.an { background: #ff8a3a; box-shadow: 0 0 6px #ff8a3a; }
.glutz.an { border: 1px solid #ff8a3a; box-shadow: 0 0 12px rgba(255, 138, 58, .6); color: #ffd0a0; }
body.glut #kulisse::after { background: radial-gradient(ellipse 70% 60% at 82% 55%, rgba(255, 120, 40, .32), rgba(255, 90, 20, .08)); animation: glutpuls 1.4s ease-in-out infinite alternate; }
@keyframes glutpuls { to { opacity: .6; } }
body.hoch .glutz span { display: none; }
#pusten { position: fixed; inset: 0; z-index: 40; background: rgba(20, 10, 4, .6); display: flex; align-items: center; justify-content: center; padding: 16px; }
.pu-box { position: relative; width: min(460px, 100%); background: linear-gradient(rgba(251, 241, 222, .97), rgba(244, 228, 200, .97)), url(img/buch.webp) 0 0 / 256px; border: 1px solid #c9a36a; border-radius: 18px; padding: 18px; text-align: center; color: #3a2414; }
.pu-box h2 { margin: 0 0 8px; font: 700 26px/1.2 var(--kopf); color: #8a5220; }
.pu-box .zu { position: absolute; right: 10px; top: 10px; width: 42px; height: 42px; border-radius: 10px; border: 1px solid #c9a36a; background: #fbf1de; display: flex; align-items: center; justify-content: center; }
.pu-box .zu svg { width: 18px; height: 18px; color: #8a5220; }
.pu-zeit { height: 8px; border-radius: 4px; background: rgba(120, 80, 40, .25); overflow: hidden; margin: 0 40px 14px; }
.pu-zeit i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #ff8a3a, #ffd06a); transition: width 5s linear; }
.pu-torte { position: relative; margin: 0 auto; width: min(380px, 100%); }
.pu-svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 6px 8px rgba(60, 30, 10, .35)); }
.pu-kerzen { position: absolute; left: 0; right: 0; top: 0; display: flex; justify-content: center; gap: 4px; transform: translateY(-62%); }
.pu-box { padding-top: 18px; } .pu-box .pu-torte { margin-top: 64px; }
.pu-kerze { position: relative; width: 44px; height: 96px; border: 0; padding: 0; background: none; cursor: pointer; }
.pu-kerze::before { content: ""; position: absolute; left: 12px; right: 12px; top: 30px; bottom: 0; background: linear-gradient(90deg, #f4ead8, #fff, #e9d6b8); border-radius: 6px 6px 3px 3px; box-shadow: inset 0 -6px 0 #c9a26a; }
.pu-kerze .fl { position: absolute; left: 50%; top: 4px; width: 16px; height: 26px; margin-left: -8px; border-radius: 50% 50% 45% 45%; background: radial-gradient(ellipse at 50% 70%, #fff7d6, #ffc23d 55%, #ff7a1a); box-shadow: 0 0 18px 6px rgba(255, 200, 90, .6); animation: flacker .3s ease-in-out infinite alternate; }
.pu-kerze.aus .fl { animation: rauch 1.2s ease-out forwards; }
@keyframes flacker { to { transform: scaleY(1.12) translateY(-1px); } }
@keyframes rauch { 0% { background: rgba(200, 200, 200, .7); box-shadow: none; transform: none; opacity: 1; } 100% { background: rgba(200, 200, 200, 0); transform: translateY(-40px) scale(2.2); opacity: 0; box-shadow: none; } }
.tagbox.finale svg { width: 26px; height: 26px; color: var(--gold); flex: none; }
.tagbox.kunde { align-items: center; gap: 12px; }
.tagbox.kunde img { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; border: 2px solid #c9a36a; flex: none; }
.tagbox.kunde q { display: block; font-style: italic; }
.tagbox.kunde span { display: block; font-size: 12.5px; color: var(--mute); margin-top: 2px; }
.tagbox.kunde .trinkgeld { display: flex; align-items: center; gap: 5px; font-style: normal; font-size: 12.5px; color: var(--gold); margin-top: 4px; }
.tagbox.kunde .trinkgeld svg { width: 15px; height: 15px; }
.dlg.regeln { width: min(860px, 100%); }
.rg-reiter { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 4px 0 10px; padding: 0 50px; }
.rg-reiter button { min-height: 40px; padding: 0 12px; border-radius: 20px; border: 1px solid var(--rand); background: var(--panel2); color: var(--text); font: 600 13.5px/1 'Segoe UI', system-ui, sans-serif; cursor: pointer; }
.rg-reiter button.an { background: linear-gradient(#f0c27a, #c98a3c); color: #3a2010; border-color: #a8682a; }
.rg-sek { display: none; }
.rg-sek.an { display: block; }
.rg-sek.sf-regale.an { display: flex; }
.rg-sek.sf-regale:not(.an) { display: none; }
.sf-reiter { margin-top: 0; }
.rg-sek > h3:first-child { margin-top: 0; }
@media (min-width: 760px) { .rg-sek .bsp { grid-template-columns: 56px 1fr 56px 1fr; } }
.pu-text { min-height: 1.5em; margin: 12px 0 0; }

.dlg.listen table.liste { width: 100%; border-collapse: collapse; font-size: 14px; margin: 6px 0; }
.dlg.listen th { text-align: left; color: var(--mute); font-weight: 600; font-size: 12.5px; border-bottom: 1px solid var(--rand); padding: 4px 6px; }
.dlg.listen td { padding: 5px 6px; border-bottom: 1px solid rgba(240, 194, 122, .15); color: var(--text); font-variant-numeric: tabular-nums; }
.dlg.listen td:last-child, .dlg.listen th:last-child { text-align: right; }
.reihe.klein { margin-top: 6px; }

.dlg.fenster { width: min(760px, 100%); }
.sf-reihe { display: flex; flex-wrap: nowrap; gap: 4px; align-items: flex-end; min-width: 0; }
.sf-reihe .sf-torte { flex: 0 1 78px; min-width: 0; }
.sf-reihe .sf-torte svg { width: 100%; max-height: 44px; }
.sf-reihe .sf-torte span { font-size: 11px; line-height: 1.15; }
.sf-torte { display: flex; flex-direction: column; align-items: center; font-size: 12px; color: #f6e2c2; }
.sf-torte svg { width: 86px; height: auto; }
.sf-regale { display: flex; flex-direction: column; gap: 4px; }
.dlg.fenster .unter { margin-bottom: 6px; }
.dlg.fenster > .reihe { margin-top: 8px; }
.sf-regal.leer { grid-template-columns: 1fr; padding-bottom: 8px !important; }
.sf-regal.leer .sf-kopf { flex-direction: row; align-items: baseline; gap: 10px; }
.sf-torte svg { width: 78px; }
.dlg.fenster { width: min(1000px, 100%); }
.sf-regal { display: grid; grid-template-columns: 205px minmax(0, 1fr); align-items: end; gap: 8px; padding-top: 4px !important; padding-bottom: 11px !important; border-radius: 14px; background: linear-gradient(rgba(90, 56, 30, .92), rgba(64, 38, 20, .95)), url(img/holz.webp) 0 0 / 220px; padding: 6px 10px 0; box-shadow: inset 0 -10px 0 rgba(40, 22, 10, .55); }
.sf-kopf { display: flex; flex-direction: column; align-items: flex-start; align-self: center; gap: 2px; color: #f6e2c2; font-size: 12.5px; padding: 2px 4px; }
.sf-kopf b { font: 700 14px/1.2 var(--kopf); color: #ffd98a; }
.sf-kopf span { flex: none; }
.sf-brief { width: 34px; height: 34px; object-fit: contain; }
.sf-leer { color: #e8d2b0; font-size: 12.5px; margin: 6px 4px 14px; }
.sf-torte span svg { width: 12px; height: 12px; color: #ffd98a; vertical-align: -1px; }
.leer { text-align: center; color: var(--mute); }

body.puder .wert b, body.puder .zl .zn, body.puder .kartekopf .titel b { color: var(--text); }
body.puder .kartekopf .titel { text-shadow: none; }
body.puder .dlg h2 { text-shadow: none; }
body.puder .dlg { background: linear-gradient(rgba(252, 246, 236, .98), rgba(244, 234, 218, .98)); color: var(--text); }
body.puder #ov { background: rgba(90, 70, 50, .45); }
body.puder .kartebox { background: rgba(250, 244, 234, .95); }

@media (prefers-reduced-motion: reduce) { #bWahl { animation: none; } }
@media (max-height: 520px) {
  body:not(.hoch) #buehne > #hudExtra { position: absolute; right: 6px; top: 6px; width: 118px; max-height: calc(100% - 100px); overflow-y: auto; z-index: 3; padding: 6px; border-radius: 12px;
    background: linear-gradient(rgba(46, 28, 18, .86), rgba(36, 20, 12, .92)), url(img/holz.webp) 0 0 / 220px; border: 1px solid rgba(240, 194, 122, .35); box-shadow: 0 4px 14px rgba(0, 0, 0, .45); }
  body.puder:not(.hoch) #buehne > #hudExtra { background: linear-gradient(rgba(252, 246, 236, .9), rgba(244, 234, 218, .94)), url(img/holz-hell.webp) 0 0 / 220px; }
  body:not(.hoch) #buehne > #hudExtra .tafel { flex-flow: column nowrap; gap: 5px; }
  body:not(.hoch) #buehne > #hudExtra .tafel > * { flex: none; width: 100%; }
  body:not(.hoch) #buehne > #hudExtra .etz { padding: 3px 6px; gap: 6px; font-size: 12px; }
  body:not(.hoch) #buehne > #hudExtra .tierklein { width: 22px; }
  body:not(.hoch) #buehne > #hudExtra .sbz { font-size: 11.5px; padding: 3px 6px; flex-wrap: wrap; }
  body:not(.hoch) #buehne > #hudExtra .sbz span { flex: 1 1 70px; min-width: 0; }
  body:not(.hoch) #buehne > #hudExtra .sbz b { flex: 1 1 100%; text-align: right; }
  body:not(.hoch) #buehne > #hudExtra { overflow-x: hidden; }
  body:not(.hoch) #buehne > #hudExtra #bHeber, body:not(.hoch) #buehne > #hudExtra #bWahl { height: auto; min-height: 40px; font-size: 12px; padding: 4px 6px; line-height: 1.2; }
  body:not(.hoch) #brettbox { margin-right: 128px; }
  .bkarte { display: grid; grid-template-columns: 58px minmax(0, 1fr); column-gap: 10px; align-content: start; }
  .bkarte > * { grid-column: 1 / -1; }
  .bkarte > svg.mini { grid-column: 1; width: 58px; margin: 0; align-self: center; }
  .bkarte > .bk-ziele { grid-column: 2; }
  .dlg.wahl .unter { font-size: 12px; }
  .dlg.wahl h2 { margin-bottom: 2px; }
  body:not(.hoch) .tafel > .glutz span { display: none; }
  body:not(.hoch) .tafel > .glutz { justify-content: center; }
  body:not(.hoch) #knoepfe { grid-template-columns: repeat(auto-fit, minmax(40px, 1fr)); grid-auto-flow: row; gap: 6px; }
  body:not(.hoch) #knoepfe button { height: 40px; }
  .kartezusatz { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding: 4px 12px; gap: 6px; }
  .kartezusatz .knopf { min-height: 40px; height: 40px; white-space: nowrap; font-size: 12.5px; padding: 0 10px; flex: none; }
  .kapitel h3 { margin: 10px 4px 6px; font-size: 18px; }
  body:not(.hoch) .wert span { font-size: 11px; }
  body:not(.hoch) .zl .zt { font-size: 11px; line-height: 1.15; }
  body:not(.hoch) .zl .zt b { font-size: 12px; }
}

:root { --sgzl-grund: rgba(46, 28, 18, .96); --sgzl-text: #fff4e4; --sgzl-akzent: #f2c46b; --sgzl-akzent-text: #2e1a0c; }
#lo-lern { margin: 0 0 10px; min-height: 66px; justify-content: center; flex: none; }
@media (max-height: 520px) { #lo-lern { min-height: 0; padding: 5px 12px; margin-bottom: 6px; } }
.lernzelle { position: absolute; z-index: 5; box-sizing: border-box; pointer-events: none; border-radius: 14px; border: 4px solid #b3263f; background: rgba(179, 38, 63, .1); box-shadow: 0 0 0 2px #fff6e0, 0 0 14px 4px rgba(179, 38, 63, .55); }
.lernzelle.sgzl-ziel { outline: 3px solid #5a2410; outline-offset: 2px; animation: lernzelle 1.3s ease-in-out infinite; }
.lernzelle.feld { border-style: dashed; background: rgba(179, 38, 63, .2); }
@keyframes lernzelle { 0%, 100% { box-shadow: 0 0 0 2px #fff6e0, 0 0 10px 2px rgba(179, 38, 63, .45); } 50% { box-shadow: 0 0 0 2px #fff6e0, 0 0 22px 8px rgba(179, 38, 63, .7); } }
@media (prefers-reduced-motion: reduce) { .lernzelle.sgzl-ziel { animation: none; } }
.lernzelle[hidden] { display: none; }
body.sahne-lern #sternleiste, body.sahne-lern #bNeu, body.sahne-lern #bTipp, body.sahne-lern #bKarte, body.sahne-lern #wZu, body.sahne-lern:not(.lern-wahl) #bWahl { display: none !important; }
#hud .sgzl { margin: 4px 0; flex: none; }
#hud { position: relative; z-index: 2; }
.dlg.wahl .sgzl { margin: 0 0 10px; color: var(--sgzl-text); } .dlg.wahl .sgzl p.sgzl-text { margin: 0; color: var(--sgzl-text); }
body.hoch #hud .sgzl { grid-column: 1 / -1; margin: 2px 0; padding: 8px 56px 8px 10px; }
body.hoch .sgzl-titel { font-size: 15px; } body.hoch .sgzl-text { font-size: 13px; line-height: 1.32; } body.hoch .sgzl-punkte { display: none; }
body.hoch .sgzl-weiter { min-height: 42px; margin-top: 6px; }
@media (max-height: 560px) and (min-aspect-ratio: 1/1) {
  body.sahne-lern:not(.hoch) #buehne { grid-template-columns: 300px 1fr; }
  body.sahne-lern:not(.hoch) #logo, body.sahne-lern:not(.hoch) #lvName, body.sahne-lern:not(.hoch) #werte { display: none; }
  body.sahne-lern .dlg.wahl > .unter, body.sahne-lern .dlg.wahl .bk-rat { display: none; }
  body.sahne-lern .dlg.wahl .bk-kopf { min-height: 40px; display: flex; align-items: center; justify-content: center; }
  body .sgzl { padding: 8px 56px 8px 10px; } body .sgzl-titel { font-size: 15px; } body .sgzl-text { font-size: 13px; line-height: 1.32; } body .sgzl-punkte { display: none; }
  body .sgzl-kopf { margin-bottom: 2px; } body .sgzl-weiter { min-height: 40px; margin-top: 6px; }
}
#lernEnde .lernlob { margin: 8px 0; font-size: 16px; line-height: 1.45; }
