@font-face { font-family: 'SGZ Ziffern'; src: local('Times New Roman'), local('Liberation Serif'), local('Noto Serif'); unicode-range: U+0030-0039; }
:root {
  --gold: #f2c86a; --gold2: #b07ad8; --gold3: #3c1a52;
  --tief: #160f1e; --panel: rgba(30, 20, 40, .9); --panel2: rgba(48, 32, 62, .94);
  --text: #f8eedc; --mute: #d4c4e2; --rot: #ff7a6a; --gruen: #9cf0a0;
  --rand: rgba(242, 200, 106, .55);
  --schatten: 0 10px 30px rgba(0, 0, 0, .6);
  --kopf: 'SGZ Ziffern', 'Palatino Linotype', 'Book Antiqua', Georgia, serif;
  --knopf1: #4a3260; --knopf2: #2a1a3a; --knopfH1: #5c3f76; --knopfH2: #352248; --haupt1: #f6d27a; --haupt2: #c08a2a; --hauptText: #2a1606;
  --mo-bg1: #3e2454; --mo-bg2: #22142e; --mo-bg3: #140b1c; --mo-rand: #d6a84e; --mo-rand-weich: rgba(214, 168, 78, .32);
  --mo-akzent: #ffd77a; --mo-akzent2: #e7b04e; --mo-hell: #fff4d6; --mo-text: #f6ecda; --mo-leise: #d8c8e6; --mo-leiser: #bba9cc;
}
body { background: var(--tief) url(img/kulisse-q.webp?v=1) center / cover no-repeat; }
body.hoch { background-image: url(img/kulisse-h.webp?v=1); }
body[data-kap="3"] { background-image: url(img/kulisse-nacht-q.webp?v=1); }
body.hoch[data-kap="3"] { background-image: url(img/kulisse-nacht-h.webp?v=1); }
#hud { background: linear-gradient(rgba(30, 20, 40, .86), rgba(30, 20, 40, .92)), url(img/leiste.webp?v=1) 0 0 / 160px; }
#logo { letter-spacing: 1px; font-size: 27px; text-shadow: 0 3px 0 var(--gold3), 0 0 16px rgba(190, 120, 255, .55); }
#logo b { color: #f8eedc; }
#sternfuell { background: linear-gradient(90deg, #7a3fb0, #d6a0ff, #fff1c4); }
#banner { color: #fff; text-shadow: 0 3px 0 var(--gold3), 0 0 4px #000, 0 2px 14px rgba(0, 0, 0, .9), 0 0 28px rgba(160, 80, 230, .8); }
#banner small { color: #fff; text-shadow: 0 1px 3px #000, 0 0 10px rgba(0, 0, 0, .8); }
.wert b, .zl .zn, .fach .fn, .gtext .geduld { font-variant-numeric: lining-nums tabular-nums; font-kerning: none; }

#ziele .zl:not(:first-child), .zielliste .zl:not(:first-child), .zielstand .zs:not(:first-child) { display: none; }

#buehne { grid-template-columns: 270px minmax(0, 1fr) 250px; }
body.hoch #buehne { grid-template-columns: 1fr; grid-template-rows: auto auto minmax(0, 1fr); }
body.hoch #brettbox { grid-row: 3; }
#tresen { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 18px; min-height: 0; overflow: clip;
  background: linear-gradient(rgba(54, 30, 18, .9), rgba(38, 20, 12, .94)), url(img/brett.webp?v=1) 0 0 / 200px;
  border: 1px solid rgba(242, 200, 106, .5); box-shadow: var(--schatten), inset 0 1px 0 rgba(255, 255, 255, .08); }
#tresen .schild { align-self: center; font: 700 15px/1 var(--kopf); letter-spacing: 2px; text-transform: uppercase; color: var(--gold);
  background: rgba(20, 10, 4, .85); border: 1px solid rgba(242, 200, 106, .5); border-radius: 8px; padding: 6px 14px; }
.gast { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.gast .portrait { position: relative; width: 168px; height: 168px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #5a3a70, #2a1838 70%);
  border: 3px solid var(--gold2); box-shadow: 0 6px 18px rgba(0, 0, 0, .55), inset 0 0 20px rgba(0, 0, 0, .5); }
.gast .portrait img { position: absolute; left: 50%; bottom: 0; width: 100%; height: 100%; object-fit: contain; transform: translateX(-50%); border-radius: 50%; }
.gast .geheilt { position: absolute; left: 50%; top: 6px; transform: translateX(-50%) rotate(-6deg); font: 700 16px/1 var(--kopf); color: #2a1606; background: linear-gradient(#fff1b8, #f2c86a);
  border: 1px solid #8a5a12; border-radius: 8px; padding: 4px 10px; box-shadow: 0 3px 10px rgba(0, 0, 0, .5); animation: stempel .35s cubic-bezier(.3, 1.6, .5, 1) both; }
.gtext { display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; background: rgba(20, 10, 4, .86); border-radius: 10px; padding: 6px 10px; width: 100%; box-sizing: border-box; }
.gtext b { font: 700 16px/1.2 var(--kopf); color: var(--text); }
.gtext span { font-size: 13px; color: var(--mute); line-height: 1.25; }
.gtext .wirk { color: #ffcf9a; } .gtext .wirk.bald { color: #ff9a7a; font-weight: 700; }
.gtext .geduld.knapp { color: var(--rot); font-weight: 700; animation: puls .9s ease-in-out infinite; }
.gast.rein { animation: gastRein .45s ease-out both; }
.gast.raus { animation: gastRaus .3s ease-in both; }
.gast.hustet .portrait { animation: wackeln .4s ease-in-out; }
.gast.boese .portrait { animation: wackeln .3s ease-in-out 2; filter: saturate(.6); }
.gast.heil .portrait { box-shadow: 0 0 26px rgba(255, 220, 120, .9), 0 6px 18px rgba(0, 0, 0, .55); border-color: var(--gold); }
.portrait .funke { position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px; border-radius: 50%; background: #fff3b0; box-shadow: 0 0 10px #ffd34a;
  animation: funke .85s ease-out forwards; pointer-events: none; }
@keyframes funke { from { transform: translate(0, 0) scale(1.3); opacity: 1; } to { transform: translate(var(--dx), var(--dy)) scale(.2); opacity: 0; } }
@keyframes gastRein { from { opacity: 0; filter: brightness(1.8); } to { opacity: 1; filter: none; } }
@keyframes wackeln { 0%, 100% { transform: none; } 25% { transform: translateX(-5px) rotate(-3deg); } 75% { transform: translateX(5px) rotate(3deg); } }
@keyframes stempel { from { transform: translateX(-50%) scale(2.2) rotate(-6deg); opacity: 0; } to { transform: translateX(-50%) rotate(-6deg); opacity: 1; } }

.kessel { position: relative; display: flex; flex-direction: column; align-items: center; }
.kessel .ktopf { width: 110px; height: 110px; object-fit: contain; margin-bottom: -26px; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .6)); }
.kessel.blubbert .ktopf { animation: blubbern .5s ease-in-out 2; }
@keyframes blubbern { 50% { transform: scale(1.08) translateY(-3px); filter: drop-shadow(0 0 16px rgba(200, 120, 255, .9)); } }
.rezept { display: flex; flex-direction: column; gap: 5px; width: 100%; position: relative; }
.fach { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; grid-template-rows: auto auto; align-items: center; column-gap: 8px; background: rgba(20, 10, 4, .88);
  border: 1px solid rgba(242, 200, 106, .35); border-radius: 10px; padding: 4px 8px; }
.fach img { grid-row: 1 / 3; width: 38px; height: 38px; object-fit: contain; }
.fach em { font-style: normal; font-size: 13px; color: var(--mute); grid-column: 2; grid-row: 1; min-width: 0; hyphens: manual; line-height: 1.15; }
.fach .fn { grid-column: 3; grid-row: 1 / 3; font: 700 20px/1 var(--kopf); color: #fff; white-space: nowrap; }
.fach .fn i { font-style: normal; color: var(--mute); font-size: 15px; }
.fach .fn i::before { content: '/'; color: #fff; }
.fach .balken { grid-column: 2; grid-row: 2; height: 7px; border-radius: 4px; background: rgba(0, 0, 0, .55); overflow: clip; }
.fach .balken i { display: block; height: 100%; width: 0; border-radius: 4px; background: linear-gradient(90deg, #7a3fb0, #d6a0ff); transition: width .3s; }
.fach.voll { border-color: var(--gruen); } .fach.voll .fn b { color: var(--gruen); } .fach.voll .balken i { background: linear-gradient(90deg, #3ca05a, #9cf0a0); }
.fach.pop img { animation: pop .3s ease-out; }
@keyframes pop { 50% { transform: scale(1.25); } }
.warte { display: flex; flex-direction: column; gap: 4px; align-items: center; margin-top: auto; }
.warte > span { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--mute); background: rgba(20, 10, 4, .86); padding: 3px 8px; border-radius: 6px; }
#warte { display: flex; gap: 10px; }
#warte figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; }
#warte img { width: 54px; height: 54px; object-fit: contain; border-radius: 50%; background: rgba(42, 24, 56, .9); border: 2px solid rgba(176, 122, 216, .6); }
#warte figcaption { font-size: 12px; color: var(--text); background: rgba(20, 10, 4, .86); padding: 1px 6px; border-radius: 5px; }
.flieger.potion { position: fixed; width: 40px; height: 40px; margin: -20px 0 0 -20px; z-index: 30; pointer-events: none; transition: transform .52s cubic-bezier(.4, -.1, .6, 1);
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .6)); }
.flieger.potion.trank { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
.flieger.potion.plage { width: 46px; height: 46px; margin: -23px 0 0 -23px; transition-timing-function: cubic-bezier(.3, .2, .6, 1); }

.kartenetz .kapitel { grid-column: 1 / -1; margin: 6px 0 0; font: 700 16px/1.2 var(--kopf); color: var(--gold); letter-spacing: 1px; }
.lvgaeste { display: flex; flex-direction: column; gap: 6px; margin: 8px 0; }
.lvgaeste figure { margin: 0; display: flex; gap: 10px; align-items: center; background: var(--panel2); border-radius: 10px; padding: 4px 8px; }
.lvgaeste img { width: 44px; height: 44px; object-fit: contain; border-radius: 50%; background: rgba(42, 24, 56, .9); }
.lvgaeste figcaption { font-size: 13px; color: var(--mute); display: flex; flex-direction: column; }
.lvgaeste figcaption b { color: var(--text); font-size: 14px; }
.lvgaeste figcaption span { color: #ffdca0; }
.mo-start .mo-start-neu img { width: 58px; height: 58px; object-fit: contain; border-radius: 50%; background: rgba(42, 24, 56, .9); }
.endtafel.mo-tafel .hinweis { margin: 6px auto; text-align: center; font-size: 14px; }
.endtafel.mo-tafel .mo-wort { text-align: center; margin: 4px 0; }

body.hoch #tresen { flex-direction: row; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 14px; }
body.hoch #tresen .schild, body.hoch .warte { display: none; }
body.hoch .gast { flex-direction: row; gap: 6px; flex: 0 0 auto; }
body.hoch .gast .portrait { width: 64px; height: 64px; border-width: 2px; flex: none; }
body.hoch .gtext { width: auto; align-items: flex-start; text-align: left; padding: 4px 6px; max-width: 112px; }
body.hoch .gtext b { font-size: 13px; } body.hoch .gtext span { font-size: 11.5px; }
body.hoch .kessel { flex: 1; flex-direction: row; gap: 4px; min-width: 0; }
body.hoch .kessel .ktopf { width: 36px; height: 36px; margin: 0; flex: none; }
body.hoch .rezept { flex: 1; min-width: 0; gap: 3px; }
body.hoch .fach { grid-template-columns: 24px minmax(0, 1fr) auto; column-gap: 5px; padding: 2px 5px; }
body.hoch .fach img { width: 24px; height: 24px; }
body.hoch .fach em { display: none; }
body.hoch .fach .balken { grid-row: 1 / 3; }
body.hoch .fach .fn { font-size: 16px; } body.hoch .fach .fn i { font-size: 12px; }
body.hoch .gast .geheilt { font-size: 12px; padding: 2px 6px; }

@media (prefers-reduced-motion: reduce) {
  .gast.rein, .gast.raus, .gast.hustet .portrait, .gast.boese .portrait, .kessel.blubbert .ktopf, .fach.pop img, .portrait .funke, .gast .geheilt, .gtext .geduld.knapp { animation: none; }
}

.tagkarte { display: flex; align-items: center; gap: 12px; background: rgba(60, 30, 80, .55); border: 1px solid var(--gold3, #8a6a2a); border-radius: 14px; padding: 10px 14px; margin: 8px 0; }
.tagkarte img { width: 56px; height: 56px; object-fit: cover; border-radius: 50%; border: 2px solid var(--gold, #e8c36a); }
.tagkarte b { display: block; font: 700 19px/1.2 var(--kopf); color: var(--text); }
.tagkarte span { color: var(--mute); font-size: 13px; }
.tagliste { margin: 4px 0; padding-left: 26px; }
.tagliste li { padding: 4px 0; border-bottom: 1px solid rgba(232, 195, 106, .2); }
.tagliste li span { display: inline-block; min-width: 60%; }
.tagliste b { float: right; font-family: 'SGZ Ziffern', var(--kopf); }
.tagdlg .leer { color: var(--mute); }
.knopf.frisch { box-shadow: 0 0 0 2px var(--gold, #e8c36a), 0 0 14px rgba(232, 195, 106, .45); }
.tagdlg > .unter:first-of-type { padding: 0 38px; }
.kartekopf { flex-wrap: wrap; gap: 10px 14px; }
.kartekopf .info { order: 3; flex-basis: 100%; }
.kartekopf .summe { margin-right: auto; }
#brett { box-shadow: 0 18px 34px rgba(0, 0, 0, .55), 0 4px 10px rgba(0, 0, 0, .4); border-radius: 12px; }
.kartebox.eng1 .lv .nm, .kartebox.eng1 .lv .bw { display: none; }
.kartebox.eng1 .lv { padding: 6px 4px 5px; min-height: 44px; }
.kartebox.eng1 .lv .nr { font-size: 21px; }
.kartebox.eng1 .lv .st { height: 16px; } .kartebox.eng1 .lv .st i { width: 15px; height: 15px; }
.kartebox.eng1 .lv .ic { width: 16px; height: 16px; left: 4px; top: 4px; }
.kartebox.eng1 .lv.zu .schl { width: 14px; height: 14px; right: 5px; top: 5px; }
.kartebox.eng1 .kartenetz { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; padding: 8px 12px 10px; }
.kartebox.eng2 .kartenetz { grid-template-columns: repeat(10, minmax(0, 1fr)); }
.kartebox.eng3 .kartekopf .info { display: none; }
.kartebox.eng3 .kartekopf { padding-top: 8px; padding-bottom: 8px; }
.kartebox.eng3 .kartenetz .kapitel { font-size: 14px; margin: 0; }
body.hoch #knoepfe button { min-width: 40px; min-height: 44px; }
body.hoch #logo { font-size: 15px; letter-spacing: 0; }
body.hoch #knoepfe { gap: 4px; }
@media (max-height: 540px) {
  body:not(.hoch) #buehne { grid-template-columns: 232px minmax(0, 1fr) 176px; }
  body:not(.hoch) .zl .zt { font-size: 11px; }
  body:not(.hoch) #hud, body:not(.hoch) #tresen { align-self: start; max-height: 100%; }
  body:not(.hoch) #tresen { padding: 6px; gap: 5px; border-radius: 14px; }
  body:not(.hoch) #tresen .schild, body:not(.hoch) .warte { display: none; }
  body:not(.hoch) .gast { flex-direction: row; gap: 6px; }
  body:not(.hoch) .gast .portrait { width: 64px; height: 64px; flex: none; border-width: 2px; }
  body:not(.hoch) .gtext { align-items: flex-start; text-align: left; padding: 4px 6px; }
  body:not(.hoch) .gtext b { font-size: 13px; } body:not(.hoch) .gtext span { font-size: 11.5px; }
  body:not(.hoch) .gast .geheilt { font-size: 12px; padding: 2px 6px; }
  body:not(.hoch) .kessel .ktopf { width: 52px; height: 52px; margin-bottom: -10px; }
  body:not(.hoch) .katze { top: 0; left: 8px; width: 34px; height: 40px; }
  body:not(.hoch) .vglas { top: 0; right: 10px; width: 30px; height: 40px; }
  body:not(.hoch) .vglas b { top: -4px; bottom: auto; right: -12px; font-size: 11px; min-width: 18px; }
  body:not(.hoch) .rezept { gap: 3px; }
  body:not(.hoch) .fach { grid-template-columns: 26px 1fr auto; padding: 2px 6px; }
  body:not(.hoch) .fach img { width: 26px; height: 26px; }
  body:not(.hoch) .fach em { display: none; }
  body:not(.hoch) .fach .balken { grid-row: 1 / 3; }
  body:not(.hoch) .fach .fn { font-size: 16px; } body:not(.hoch) .fach .fn i { font-size: 12px; }
  #knoepfe { grid-template-columns: repeat(5, 40px); justify-content: center; }
  #knoepfe button { min-width: 40px; min-height: 44px; }
}
.mo-leiter-bahn em:last-child b { left: auto; right: -2px; transform: none; }
@media (max-width: 1180px) and (min-height: 541px) {
  body:not(.hoch) #buehne { grid-template-columns: 236px minmax(0, 1fr) 216px; gap: 10px; padding: 10px; }
  body:not(.hoch) .gast .portrait { width: 140px; height: 140px; }
}
@media (min-width: 600px) { body.hoch #brettbox { margin: 1.5% 6% 3%; } }

.katze { position: absolute; left: 0; top: 18px; width: 52px; height: 60px; padding: 0; border: 0; background: none; cursor: pointer; z-index: 2; touch-action: manipulation; }
.katze img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 4px 5px rgba(0, 0, 0, .55)); transform-origin: 50% 100%; animation: atmen 3.6s ease-in-out infinite; }
.katze.froh img { animation: katzeFroh .7s ease-out; }
.katze.schreck img { animation: katzeSchreck .45s ease-in-out; }
.katze:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 10px; }
@keyframes atmen { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.02, .97); } }
@keyframes katzeFroh { 0% { transform: translateY(0); } 35% { transform: translateY(-14px) rotate(-6deg); } 70% { transform: translateY(0) rotate(4deg); } 100% { transform: none; } }
@keyframes katzeSchreck { 0%, 100% { transform: none; } 25% { transform: translateX(-4px) scale(1.06, .94); } 75% { transform: translateX(4px) scale(1.06, .94); } }
.vglas { position: absolute; right: 0; top: 14px; width: 48px; height: 62px; z-index: 2; }
.vglas img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 4px 5px rgba(0, 0, 0, .55)); }
.vglas .sud { position: absolute; left: 22%; right: 22%; top: 34%; bottom: 10%; border-radius: 4px 4px 9px 9px; overflow: clip; display: flex; align-items: flex-end; }
.vglas .sud i { display: block; width: 100%; height: 0; background: linear-gradient(#d6a0ff, #7a3fb0); box-shadow: 0 0 10px rgba(214, 160, 255, .7); transition: height .35s; }
.vglas b { position: absolute; right: -4px; bottom: -4px; min-width: 22px; padding: 1px 5px; border-radius: 10px; background: rgba(20, 10, 4, .92); border: 1px solid var(--rand); font: 700 13px/1.2 var(--kopf); color: #fff; text-align: center; }
.vglas.voll b { color: var(--gold); border-color: var(--gold); }
.vglas.pop img { animation: pop .3s ease-out; }
.vglas.kippt { animation: kippen .7s ease-in-out; transform-origin: 50% 80%; }
@keyframes kippen { 0%, 100% { transform: none; } 40%, 60% { transform: rotate(-28deg); } }
.flieger.potion.gabe { width: 52px; height: 52px; margin: -26px 0 0 -26px; filter: drop-shadow(0 0 10px rgba(255, 224, 138, .9)); transition-timing-function: cubic-bezier(.3, -.3, .6, 1); }
body.hoch .katze { display: none; }
body.hoch .vglas { position: relative; right: auto; top: auto; width: 30px; height: 40px; flex: none; order: 2; margin-right: 12px; }
body.hoch .vglas b { font-size: 11px; min-width: 18px; right: -6px; bottom: -6px; }
body.hoch .kessel .rezept { order: 3; }
body.a-gold .kessel .ktopf { filter: sepia(1) saturate(3) hue-rotate(-12deg) brightness(1.15) drop-shadow(0 0 10px rgba(242, 200, 106, .55)); }
body.a-mond { background-image: url(img/kulisse-nacht-q.webp?v=1); }
body.hoch.a-mond { background-image: url(img/kulisse-nacht-h.webp?v=1); }
.pruefinfo { display: flex; gap: 10px; align-items: center; margin: 4px 0 8px; padding: 8px 10px; border-radius: 12px; background: rgba(60, 34, 20, .9); border: 1px solid var(--gold); color: var(--text); font-size: 13.5px; }
.pruefinfo > svg { width: 32px; height: 32px; flex: none; color: var(--gold); }
.pruefinfo img { width: 40px; height: 40px; object-fit: contain; flex: none; }
.pruefinfo b { display: block; color: #ffe7a0; }
.pruefinfo.neu { background: rgba(40, 28, 60, .92); border-color: var(--gold2); }
.kniff { margin: 4px 0 8px; padding: 8px 12px; border-radius: 12px; background: rgba(28, 46, 30, .92); border: 1px solid var(--gruen); color: var(--text); font-size: 13.5px; }
.kniff b { display: block; color: var(--gruen); margin-bottom: 2px; }
.siegel { position: relative; display: inline-grid; place-items: center; width: 58px; height: 58px; flex: none; border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #6a5a78, #3a2e46 70%); box-shadow: inset 0 -3px 6px rgba(0, 0, 0, .45), 0 3px 6px rgba(0, 0, 0, .5); }
.siegel::before { content: ''; position: absolute; inset: 6px; border-radius: 50%; border: 2px dashed rgba(255, 255, 255, .25); }
.siegel svg { width: 46%; height: 46%; color: rgba(255, 255, 255, .4); }
.siegel.klein { width: 38px; height: 38px; }
.siegel.s1 { background: radial-gradient(circle at 38% 32%, #e0a070, #9a5426 70%); } .siegel.s1 svg { color: #3a1a06; }
.siegel.s2 { background: radial-gradient(circle at 38% 32%, #f2f4f8, #8e98a8 70%); } .siegel.s2 svg { color: #2a3040; }
.siegel.s3 { background: radial-gradient(circle at 38% 32%, #ffe9a0, #c08a2a 70%); box-shadow: inset 0 -3px 6px rgba(0, 0, 0, .35), 0 0 12px rgba(242, 200, 106, .6); } .siegel.s3 svg { color: #3a2606; }
.buchneu { display: grid; grid-template-columns: 40px 1fr; align-items: center; gap: 6px 10px; margin-top: 8px; padding: 8px 12px; border-radius: 12px; background: rgba(20, 10, 4, .88); border: 1px solid var(--gold); color: var(--text); font-size: 13.5px; }
.buchdlg .buchkopf { display: flex; gap: 14px; align-items: center; padding-right: 40px; }
.buchdlg .buchkopf img { width: 74px; height: 74px; object-fit: contain; flex: none; }
.buchdlg .buchkopf h2 { margin: 0; }
.buchdlg h3 { margin: 14px 0 6px; font: 700 16px/1.2 var(--kopf); color: var(--gold); letter-spacing: 1px; }
.gbraster { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.gbkarte { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 6px 4px 8px; border-radius: 12px; background: var(--panel2); border: 1px solid rgba(242, 200, 106, .25); font-size: 12px; color: var(--mute); }
.gbkarte img { width: 58px; height: 58px; object-fit: contain; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #5a3a70, #2a1838 70%); }
.gbkarte b { color: var(--text); font-size: 12.5px; line-height: 1.15; }
.gbkarte .siegel { position: absolute; right: 4px; top: 4px; width: 26px; height: 26px; }
.gbkarte .siegel::before { inset: 3px; border-width: 1px; }
.gbkarte.s0 .siegel { display: none; }
.braster { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.bkarte { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px; padding: 8px 6px; border-radius: 12px; background: var(--panel2); border: 1px solid rgba(242, 200, 106, .25); font-size: 12px; color: var(--mute); }
.bkarte b { color: var(--text); font-size: 13px; }
.bkarte small { font-size: 11px; }
.bkarte .bis { width: 80%; height: 6px; border-radius: 3px; background: rgba(0, 0, 0, .5); overflow: clip; }
.bkarte .bis i { display: block; height: 100%; background: linear-gradient(90deg, #7a3fb0, #d6a0ff); }
.ausstliste { display: flex; flex-direction: column; gap: 6px; }
.ausst { min-height: 44px; cursor: pointer; display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; background: var(--panel2); border: 1px solid rgba(242, 200, 106, .25); font-size: 13px; color: var(--mute); cursor: pointer; }
.ausst b { color: var(--text); }
.ausst small { display: block; color: var(--gold); font-size: 12px; }
.ausst input { width: 22px; height: 22px; accent-color: var(--gold2); flex: none; }
.ausst.gesperrt { opacity: .7; cursor: default; }
.zettel { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 14px 6px; padding: 6px 10px; border-radius: 10px; background: rgba(48, 32, 20, .9); border: 1px dashed var(--rand); font-size: 12.5px; color: var(--mute); }
.zettel > b { display: inline-flex; align-items: center; gap: 5px; color: var(--gold); font: 700 13px/1 var(--kopf); letter-spacing: 1px; }
.zettel svg { width: 15px; height: 15px; flex: none; }
.zettel .zp { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.zettel .zp em { font-style: normal; color: var(--text); font-variant-numeric: lining-nums tabular-nums; }
.zettel .zp.ok { color: var(--gruen); } .zettel.fertig { border-style: solid; border-color: var(--gruen); }
.kartebox.eng3 .zettel { margin-bottom: 2px; padding: 4px 8px; font-size: 11.5px; }
.einf .einfk { display: grid; grid-template-columns: 150px 1fr; gap: 12px; align-items: center; margin: 8px 0; padding: 8px 10px; border-radius: 12px; background: var(--panel2); color: var(--mute); font-size: 14px; }
.einf .einfk b { display: block; color: var(--text); font: 700 16px/1.3 var(--kopf); }
.einf .eb { display: flex; justify-content: center; gap: 2px; }
.einf .eb img { width: 46px; height: 46px; object-fit: contain; }
@media (max-width: 520px) { .einf .einfk { grid-template-columns: 1fr; text-align: center; } }

.flieger.potion.geist { filter: none; z-index: 29; }
.flieger.potion.laeuft { border-radius: 50%; object-fit: contain; background: rgba(42, 24, 56, .9); }
.ktopfbox { position: relative; display: block; flex: none; line-height: 0; margin-bottom: -26px; }
.kessel .ktopfbox .ktopf { margin: 0 !important; display: block; }
.ksud { position: absolute; left: 21%; right: 21%; top: 20%; height: 19%; border-radius: 50%; pointer-events: none; overflow: hidden; mix-blend-mode: screen;
  background: radial-gradient(ellipse at 50% 55%, var(--sud, #8a5ac0) 0%, var(--sud, #8a5ac0) 32%, transparent 72%); opacity: calc(.3 + var(--q, 0) * .6); transition: opacity .4s, transform .25s; }
.ksud b { position: absolute; bottom: 8%; left: 18%; width: 14%; aspect-ratio: 1; border-radius: 50%; opacity: 0; background: radial-gradient(circle at 35% 35%, #fff, var(--sud, #c9a0ff) 62%);
  animation: sudblase 2.2s ease-in infinite; }
.ksud b:nth-child(2) { left: 44%; width: 10%; animation-delay: .6s; } .ksud b:nth-child(3) { left: 66%; animation-delay: 1.2s; } .ksud b:nth-child(4) { left: 32%; width: 8%; animation-delay: 1.7s; }
.ksud[data-st="1"] b { animation-duration: 1.6s; } .ksud[data-st="2"] b { animation-duration: 1.05s; } .ksud[data-st="3"] b { animation-duration: .7s; }
@keyframes sudblase { 0% { transform: translateY(0) scale(.4); opacity: 0; } 30% { opacity: .9; } 80% { transform: translateY(-60%) scale(1.1); opacity: .8; } 100% { transform: translateY(-70%) scale(1.4); opacity: 0; } }
.kdampf { position: absolute; left: 30%; right: 30%; top: -6%; height: 30%; pointer-events: none; }
.kdampf i { position: absolute; bottom: 0; left: 30%; width: 44%; aspect-ratio: 1; border-radius: 50%; opacity: 0; background: radial-gradient(circle, rgba(235, 225, 255, .5), rgba(235, 225, 255, 0) 70%);
  animation: dampf 3.6s ease-out infinite; }
.kdampf i + i { left: 6%; animation-delay: 1.8s; }
@keyframes dampf { 0% { transform: translateY(0) scale(.6); opacity: 0; } 25% { opacity: .85; } 100% { transform: translateY(-36px) scale(1.8); opacity: 0; } }
.kessel.fast .kdampf i { animation-duration: 1.8s; background: radial-gradient(circle, rgba(255, 236, 170, .75), rgba(255, 220, 140, 0) 70%); }
.kessel.fast .ktopf { animation: fastglut 1.1s ease-in-out infinite; }
@keyframes fastglut { 50% { filter: drop-shadow(0 0 12px rgba(255, 210, 120, .85)) drop-shadow(0 6px 8px rgba(0, 0, 0, .6)); } }
.kessel.kocht .ksud { opacity: 1; transform: scale(1.18); }
.kessel.kocht .ksud b { animation-duration: .45s; width: 22%; }
.kessel.kocht .kdampf i { animation-duration: .8s; }
.kblase { position: absolute; top: 24%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; border: 2px solid var(--f); pointer-events: none;
  background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, .85), transparent 60%); box-shadow: 0 0 8px var(--f); animation: kblase .9s ease-out forwards; }
@keyframes kblase { 0% { transform: translateY(0) scale(.3); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(-46px) scale(1.2); opacity: 0; } }
.fach { position: relative; }
.spritz { position: absolute; left: 27px; top: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; border: 3px solid var(--f); box-shadow: 0 0 10px var(--f);
  pointer-events: none; animation: spritz .5s ease-out forwards; }
@keyframes spritz { from { transform: scale(.3); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }
.fhaken { position: absolute; left: 32px; bottom: 2px; width: 18px; height: 18px; display: none; place-items: center; border-radius: 50%; background: #3ca05a; color: #fff;
  box-shadow: 0 0 0 2px rgba(20, 10, 4, .9); }
.fhaken svg { width: 12px; height: 12px; }
.fach.voll .fhaken { display: grid; }
.fach.jetzt .fhaken { animation: hakenStempel .45s cubic-bezier(.3, 1.6, .5, 1) both; }
.fach.jetzt::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(100deg, transparent 30%, rgba(255, 250, 210, .5) 50%, transparent 70%);
  background-size: 250% 100%; animation: glanz .7s ease-out forwards; }
@keyframes glanz { from { background-position: 120% 0; } to { background-position: -30% 0; } }
@keyframes hakenStempel { from { transform: scale(2.4); opacity: 0; } to { transform: none; opacity: 1; } }
.gring { position: absolute; left: -9px; top: -9px; width: calc(100% + 18px); height: calc(100% + 18px); transform: rotate(-90deg); pointer-events: none; opacity: 0; transition: opacity .3s; z-index: 1; overflow: visible; }
.gring.an { opacity: 1; }
.gring circle { fill: none; stroke-width: 4; }
.gring .gr0 { stroke: rgba(20, 10, 4, .75); }
.gring .gr1 { stroke: #9cf0a0; stroke-dasharray: 100; stroke-linecap: round; transition: stroke-dashoffset .45s ease-out, stroke .3s; }
.gring .gr1.mittel { stroke: #f2c86a; } .gring .gr1.knapp { stroke: #ff6a5a; animation: ringPuls .9s ease-in-out infinite; }
@keyframes ringPuls { 50% { stroke-width: 6.5; } }
.gast.ungeduldig #gBild { animation: tippeln 1.4s ease-in-out infinite; }
@keyframes tippeln { 0%, 70%, 100% { transform: translateX(-50%); } 78% { transform: translateX(-50%) rotate(-4deg); } 86% { transform: translateX(-50%) rotate(4deg); } 94% { transform: translateX(-50%) rotate(-2deg); } }
.gast.fiebrig:not(.hustet) .portrait { animation: fieber 1s ease-in-out infinite; }
@keyframes fieber { 50% { box-shadow: 0 0 22px rgba(160, 255, 120, .75), 0 6px 18px rgba(0, 0, 0, .55); border-color: #a8e070; } }
.gast .geheilt { z-index: 3; }
.gast.trinkt .portrait { animation: schluck .5s ease-in-out; }
@keyframes schluck { 30% { transform: scale(1.08, .92); } 60% { transform: scale(.96, 1.05); } }
.gast .portrait .gb2 { clip-path: circle(0% at 50% 60%); z-index: 2; }
.gast .portrait .gb2.wirkt { animation: gesund .5s ease-out forwards; }
@keyframes gesund { from { clip-path: circle(0% at 50% 60%); filter: brightness(2.2); } to { clip-path: circle(75% at 50% 60%); filter: none; } }
.letzter { position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%); z-index: 3; white-space: nowrap; font: 700 12px/1 var(--kopf); letter-spacing: 1px; text-transform: uppercase;
  color: #2a1606; background: linear-gradient(#ffd98a, #e0a23a); border: 1px solid #8a5a12; border-radius: 6px; padding: 4px 8px; box-shadow: 0 2px 8px rgba(0, 0, 0, .5); animation: letzterPuls 1.6s ease-in-out infinite; }
@keyframes letzterPuls { 50% { box-shadow: 0 0 14px rgba(255, 210, 120, .95), 0 2px 8px rgba(0, 0, 0, .5); } }
.schwebe { position: fixed; z-index: 31; pointer-events: none; transform: translate(-50%, -50%); text-align: center; animation: schweben 1.3s ease-out forwards; }
.schwebe b { display: block; font: 700 26px/1 var(--kopf); color: #ffe08a; text-shadow: 0 2px 0 #3c1a52, 0 0 6px #000, 0 0 18px rgba(255, 200, 90, .7); }
.schwebe small { display: block; margin-top: 3px; font: 700 12px/1.1 var(--kopf); color: #fff; white-space: nowrap; text-shadow: 0 1px 3px #000, 0 0 6px #000; }
.schwebe.leise b { font-size: 18px; color: #f0dcff; }
@keyframes schweben { 0% { transform: translate(-50%, -20%) scale(.6); opacity: 0; } 15% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; } 70% { opacity: 1; } 100% { transform: translate(-50%, -150%); opacity: 0; } }
#warte.ruecken figure { animation: ruecken .4s ease-out both; }
#warte.ruecken figure:last-child { animation-name: hinten; }
@keyframes ruecken { from { transform: translateX(64px); } }
@keyframes hinten { from { transform: translateX(40px); opacity: 0; } }
.ruf { position: fixed; z-index: 28; pointer-events: none; transform: translate(-50%, -50%); white-space: nowrap; font: 700 clamp(26px, 6vw, 44px)/1 var(--kopf); letter-spacing: 1px; color: #fff4d0;
  text-shadow: 0 3px 0 #3c1a52, 0 0 4px #000, 0 0 22px rgba(190, 110, 255, .95), 0 0 40px rgba(255, 200, 90, .6); animation: rufen 1.1s cubic-bezier(.2, 1.4, .4, 1) forwards; }
.ruf.s5 { color: #ffe08a; font-size: clamp(28px, 6.4vw, 50px); }
.ruf.s6 { color: #ffd6a8; font-size: clamp(30px, 6.8vw, 56px); text-shadow: 0 3px 0 #3c1a52, 0 0 4px #000, 0 0 24px rgba(255, 120, 40, .95), 0 0 44px rgba(255, 200, 90, .7); }
@keyframes rufen { 0% { transform: translate(-50%, -50%) scale(.3) rotate(-8deg); opacity: 0; } 25% { transform: translate(-50%, -50%) scale(1.12) rotate(2deg); opacity: 1; }
  40% { transform: translate(-50%, -50%) scale(1); } 80% { opacity: 1; } 100% { transform: translate(-50%, -85%) scale(1.04); opacity: 0; } }
.katze.schlaeft img { animation: schlafen 3.2s ease-in-out infinite; filter: brightness(.82) drop-shadow(0 4px 5px rgba(0, 0, 0, .55)); }
.katze.schlaeft::before, .katze.schlaeft::after { content: 'z'; position: absolute; right: 2px; top: 2px; font: italic 700 15px/1 var(--kopf); color: #efe2ff; text-shadow: 0 0 5px #000; opacity: 0; animation: zzz 2.4s ease-out infinite; }
.katze.schlaeft::after { animation-delay: 1.2s; font-size: 12px; }
@keyframes schlafen { 50% { transform: scale(1.03, .95); } }
@keyframes zzz { 0% { transform: translate(0, 0) scale(.6); opacity: 0; } 30% { opacity: 1; } 100% { transform: translate(12px, -20px) scale(1.2); opacity: 0; } }
body.hoch .ktopfbox { margin: 0; }
body.hoch .kdampf, body.hoch .letzter { display: none; }
body.hoch .gring { left: -5px; top: -5px; width: calc(100% + 10px); height: calc(100% + 10px); }
body.hoch .spritz { left: 17px; width: 30px; height: 30px; margin: -15px 0 0 -15px; }
body.hoch .fhaken { left: 18px; width: 14px; height: 14px; bottom: 0; } body.hoch .fhaken svg { width: 9px; height: 9px; }
body.hoch .schwebe b { font-size: 20px; }
@media (max-height: 540px) {
  body:not(.hoch) .ktopfbox { margin-bottom: -10px; }
  body:not(.hoch) .letzter { display: none; }
  body:not(.hoch) .gring { left: -5px; top: -5px; width: calc(100% + 10px); height: calc(100% + 10px); }
  body:not(.hoch) .spritz { left: 19px; width: 30px; height: 30px; margin: -15px 0 0 -15px; }
  body:not(.hoch) .fhaken { left: 20px; width: 14px; height: 14px; bottom: 0; } body:not(.hoch) .fhaken svg { width: 9px; height: 9px; }
  body:not(.hoch) .schwebe b { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .ksud b, .kdampf i, .kessel.fast .ktopf, .gring .gr1.knapp, .gast.ungeduldig #gBild, .gast.fiebrig .portrait, .gast.trinkt .portrait, .letzter, .schwebe, #warte.ruecken figure,
  .ruf, .katze.schlaeft img, .katze.schlaeft::before, .katze.schlaeft::after, .fach.jetzt::after, .fach.jetzt .fhaken { animation: none; }
  .gast .portrait .gb2.wirkt { animation: none; clip-path: none; }
  .ruf, .schwebe { opacity: 1; }
}
body.hoch .vglas { margin-right: 8px; }
body.hoch .kessel { gap: 3px; }
body.hoch .fach { column-gap: 4px; padding: 2px 4px; }
body.hoch .fach .fn { font-size: 15px; } body.hoch .fach .fn i { font-size: 11px; }
body.hoch .spritz { left: 16px; } body.hoch .fhaken { left: 16px; }
body.hoch .fach { grid-template-columns: 22px auto; justify-content: space-between; padding-bottom: 4px; }
body.hoch .fach img { width: 22px; height: 22px; }
body.hoch .fach .fn { grid-column: 2; grid-row: 1 / 3; }
body.hoch .fach .balken { position: absolute; left: 4px; right: 4px; bottom: 1px; height: 3px; }
body.hoch .gtext { max-width: 92px; }
body.hoch .vglas { margin-right: 6px; }
.buchneu.kompakt { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 14px; padding: 6px 10px; }
.buchneu.kompakt .bt { color: var(--gold); font: 700 13px/1 var(--kopf); letter-spacing: 1px; text-transform: uppercase; }
.buchneu .chip { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.buchneu.kompakt .siegel.klein { width: 28px; height: 28px; }
.buchneu.kompakt .siegel.klein::before { inset: 3px; border-width: 1px; }
.mo-tafel .mo-sp1, .mo-tafel .mo-sp2 { display: contents; }
@media (max-height: 540px) and (min-width: 600px) {
  #ov .mo-tafel[data-sp] { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); column-gap: 18px; align-items: start; width: min(96vw, 820px); }
  #ov .mo-tafel .mo-sp1, #ov .mo-tafel .mo-sp2 { display: block; min-width: 0; }
  #ov .mo-tafel .mo-sp1 { align-self: center; grid-column: 1; grid-row: 1; }
  #ov .mo-tafel .mo-sp2 { grid-column: 2; grid-row: 1; }
  #ov .mo-tafel[data-sp] > .zu { grid-area: 1 / 2; justify-self: end; align-self: start; }
  #ov .mo-tafel .mo-sp2 .mo-kacheln { margin-right: 50px; }
  #ov .mo-tafel .mo-sp2 .reihe { flex-wrap: nowrap; gap: 8px; }
  #ov .mo-tafel .mo-sp2 .reihe .knopf { min-width: 0; padding-left: 10px; padding-right: 10px; white-space: nowrap; }
}
@media (max-width: 520px) {
  #ov .mo-tafel .reihe { flex-wrap: nowrap; gap: 6px; }
  #ov .mo-tafel .reihe .knopf { min-width: 0; padding-left: 8px; padding-right: 8px; font-size: 14px; white-space: nowrap; }
  #ov .mo-tafel .reihe .knopf svg { width: 16px; height: 16px; }
  .buchneu.kompakt { gap: 2px 10px; padding: 4px 8px; font-size: 12.5px; }
  .buchneu.kompakt .siegel.klein { width: 22px; height: 22px; }
}
@media (max-width: 520px) and (max-height: 760px) { #ov .mo-tafel .mo-tipp { display: none; } }
@media (max-width: 520px), (max-height: 640px) { #ov .mo-tafel:has(.buchneu) .mo-tipp { display: none; } }
@media (max-width: 520px) and (max-height: 700px) {
  #ov .endsterne { margin: 2px 0 0; }
  #ov .endsterne i.sm { width: 40px; height: 40px; }
  #ov .mo-tafel .mo-zahl b { font-size: 46px; }
  #ov .mo-tafel .mo-kacheln { margin: 6px 0 4px; }
  #ov .mo-tafel .mo-kachel { padding: 4px 4px 3px; }
  #ov .mo-tafel .mo-mehr { margin-top: 4px; }
  #ov .mo-tafel .mo-kachel > small { display: none; }
  #ov .mo-tafel .hinweis { font-size: 12.5px; padding: 4px 8px; margin: 4px 0; }
  #ov .mo-tafel .mo-leiter { margin-top: 2px; }
  .buchneu.kompakt .bt { display: none; }
}
@media (max-height: 540px) and (min-width: 600px) {
  #ov .mo-tafel[data-sp] { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); column-gap: 14px; }
  #ov .mo-tafel .mo-sp2 .reihe .knopf { font-size: 14px; padding-left: 8px; padding-right: 8px; }
  #ov .mo-tafel .mo-sp2 .reihe .knopf svg { width: 16px; height: 16px; }
}
@media (max-height: 420px) and (min-width: 600px) { #ov .mo-tafel .mo-sp2 .mo-tipp { display: none; } }
@media (max-height: 420px) and (min-width: 600px) {
  #ov .mo-tafel .mo-sp1 .mo-zahl span { white-space: nowrap; letter-spacing: .5px; font-size: 11px; }
  #ov .mo-tafel .mo-sp1 #eInfo { font-size: 12px; padding: 4px 8px; margin: 4px 0; }
  #ov .mo-tafel .mo-sp1 .mo-mehr { margin-top: 6px; }
  #ov .mo-tafel .mo-sp2 .mo-kacheln { margin-top: 4px; }
  #ov .mo-tafel .mo-sp2 .mo-kacheln > * { padding-top: 4px; padding-bottom: 4px; }
  .buchneu.kompakt { gap: 2px 8px; padding: 3px 8px; font-size: 12px; margin: 4px 0; }
  .buchneu.kompakt .bt { display: none; }
  .buchneu.kompakt .siegel.klein { width: 20px; height: 20px; }
  #ov .endsterne { margin: 2px 0 0; } #ov .endsterne i.sm { width: 40px; height: 40px; }
}
@media (max-height: 540px) { body:not(.hoch) .katze { width: 44px; height: 44px; left: 2px; top: 16px; } }

.portrait .kz { position: absolute; bottom: 38%; z-index: 2; pointer-events: none; opacity: 0; animation: kzSteigt 1.6s ease-out forwards; }
@keyframes kzSteigt { 0% { transform: translate(0, 0) scale(.5); opacity: 0; } 20% { opacity: 1; } 100% { transform: translate(var(--dx), -60px) scale(1.15); opacity: 0; } }
@keyframes kzFaellt { 0% { transform: translate(0, -10px) scale(.7); opacity: 0; } 20% { opacity: 1; } 100% { transform: translate(var(--dx), 50px) rotate(180deg); opacity: 0; } }
.portrait .kz.k0 { width: 7px; height: 6px; border-radius: 40% 50% 45% 55%; background: #9a948a; box-shadow: inset -1px -1px 0 rgba(0, 0, 0, .35); animation-name: kzFaellt; }
.portrait .kz.k1 { width: 1px; height: 18px; background: linear-gradient(rgba(255, 255, 255, .9), rgba(255, 255, 255, 0)); }
.portrait .kz.k2 { width: 5px; height: 5px; border-radius: 50%; background: #fff1a0; box-shadow: 0 0 8px #ffb030, 0 0 3px #fff; }
.portrait .kz.k3 { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid rgba(200, 240, 255, .9); background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, .8), rgba(160, 220, 255, .15) 60%); }
.portrait .kz.k4 { width: 7px; height: 7px; transform: rotate(45deg); background: linear-gradient(135deg, #b6f0ff, #3a9ad8); box-shadow: 0 0 6px rgba(120, 220, 255, .8); }
.portrait .kz.k5 { width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle, rgba(150, 140, 130, .75), rgba(150, 140, 130, 0) 70%); }
.portrait .kz.k6 { width: 9px; height: 5px; border-radius: 60% 40% 60% 40%; background: #8a6a48; animation-name: kzFaellt; }
.gast.bibbert .portrait { animation: bibbern .12s linear 5; }
@keyframes bibbern { 0%, 100% { transform: none; } 50% { transform: translateX(-2px) rotate(-1deg); } }
.gast.nickt .portrait { animation: nicken .3s ease-out; }
@keyframes nicken { 40% { transform: translateY(3px) scale(1.02); } }
.gast.huepft .portrait { animation: huepfen .5s cubic-bezier(.3, 1.5, .5, 1); }
@keyframes huepfen { 40% { transform: translateY(-10px) scale(1.05); } 70% { transform: translateY(2px) scale(.98, 1.02); } }
@keyframes gastRaus { 30% { transform: translate(-12px, -8px) rotate(-4deg); opacity: 1; } to { transform: translateX(-80px) rotate(-8deg); opacity: 0; } }
#sternleiste .sm { position: relative; }
#sternleiste .sm.platzt { animation: sternPlatzt .6s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes sternPlatzt { 40% { transform: scale(1.7); filter: drop-shadow(0 0 8px #ffd860); } }
#sternleiste .funke, .lv .funke { position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px; border-radius: 50%; background: #fff3b0; box-shadow: 0 0 8px #ffd34a;
  animation: funke .8s ease-out forwards; pointer-events: none; z-index: 3; }
.ruf.warn { font-size: clamp(22px, 4.6vw, 34px); color: #ffb0a0; text-shadow: 0 3px 0 #3c1a1a, 0 0 4px #000, 0 0 20px rgba(255, 90, 60, .85); }
.lv.frei { animation: lvFrei 1.1s cubic-bezier(.3, 1.4, .5, 1) .3s both; }
@keyframes lvFrei { 0% { transform: scale(.8); filter: brightness(.5) grayscale(1); } 50% { transform: scale(1.12); filter: brightness(1.6); box-shadow: 0 0 30px rgba(255, 214, 120, .9); } 100% { transform: none; filter: none; } }
.lv.neu:not(.frei) { animation: lvDran 2.4s ease-in-out infinite; }
@keyframes lvDran { 50% { box-shadow: 0 0 0 2px rgba(242, 196, 92, .55), 0 0 30px rgba(242, 196, 92, .55); } }
@media (prefers-reduced-motion: reduce) {
  .portrait .kz, .gast.bibbert .portrait, .gast.nickt .portrait, .gast.huepft .portrait, #sternleiste .sm.platzt, .lv.frei, .lv.neu:not(.frei) { animation: none; }
}

@media (max-height: 540px) and (max-width: 760px) {
  body:not(.hoch) #buehne { grid-template-columns: 178px minmax(0, 1fr) 150px; gap: 6px; padding: 6px; }
  body:not(.hoch) #hud { padding: 8px; }
  body:not(.hoch) #knoepfe { grid-template-columns: repeat(3, 44px); gap: 4px 8px; }
  body:not(.hoch) .gast { flex-direction: column; align-items: center; gap: 4px; }
  body:not(.hoch) .gast .portrait { width: 56px; height: 56px; }
  body:not(.hoch) .gtext { align-items: center; text-align: center; padding: 3px 6px; }
  body:not(.hoch) .fach { grid-template-columns: 24px 1fr auto; column-gap: 4px; padding: 2px 4px; }
  body:not(.hoch) .fach img { width: 24px; height: 24px; }
}
@media (max-width: 520px) and (max-height: 700px) {
  body.hoch #brettbox { margin: 1% 6% 2%; }
}
@media (min-height: 541px) { body:not(.hoch) #hud { align-self: start; max-height: 100%; } }
.kartekopf .knopf { min-height: 40px; }
.kartebox.eng4 .kartekopf { gap: 6px; padding: 6px 54px 6px 12px; }
.kartebox.eng4 .kartekopf h2, .kartebox.eng4 .kartekopf .logo { font-size: 20px; }
.kartebox.eng4 .kartekopf .knopf { padding: 0 9px; font-size: 13px; gap: 5px; }
.kartebox.eng4 .kartekopf .knopf svg { width: 15px; height: 15px; }
.kartebox.eng4 .zettel { flex-wrap: nowrap; overflow: hidden; white-space: nowrap; margin-bottom: 2px; }
.kartebox.eng4 .zettel > * { flex: none; }
.kartebox.eng4 .kartenetz { gap: 4px 6px; padding-top: 4px; padding-bottom: 6px; }
.kartebox.eng4 .lv { min-height: 40px; padding: 3px 4px; }
.kartebox.eng4 .lv .st { height: 13px; } .kartebox.eng4 .lv .st i { width: 12px; height: 12px; }
.kartebox.eng4 .lv .nr { font-size: 18px; }
@media (max-height: 540px), (max-width: 520px) { #ov .zu { min-width: 40px; min-height: 40px; } }
.tagdlg > .unter:first-of-type { padding: 0 52px; }
@media (max-height: 540px) and (min-width: 600px) {
  #ov .mo-tafel .mo-sp2 > :first-child { margin-right: 50px; }
}
@media (max-height: 420px) and (min-width: 600px) {
  #ov .mo-tafel .mo-sp1 .mo-wort { font-size: 20px; line-height: 1.15; margin: 2px 0; }
  #ov .mo-tafel .mo-sp1 .mo-band { font-size: 13px; padding: 3px 12px; margin: 2px auto; }
  #ov .mo-tafel .mo-sp1 .mo-zahl b { font-size: 40px; }
}
.sprech { position: fixed; z-index: 30; pointer-events: none; transform: translateX(-50%); padding: 6px 12px 7px; border-radius: 14px; background: rgba(255, 246, 226, .96); color: #3a2410; border: 1px solid #c9a46a;
  font: 600 13.5px/1.25 var(--text-schrift, inherit); text-align: center; box-shadow: 0 6px 16px rgba(0, 0, 0, .45); animation: sprechAuf .28s cubic-bezier(.3, 1.5, .5, 1) both, sprechAb .3s ease-in forwards; animation-delay: 0s, calc(var(--ms, 1800ms) - 300ms); }
.sprech::after { content: ''; position: absolute; left: 50%; bottom: -7px; width: 12px; height: 12px; margin-left: -6px; background: inherit; border-right: 1px solid #c9a46a; border-bottom: 1px solid #c9a46a; transform: rotate(45deg); }
@keyframes sprechAuf { from { opacity: 0; transform: translateX(-50%) translateY(8px) scale(.7); } to { opacity: 1; transform: translateX(-50%); } }
@keyframes sprechAb { to { opacity: 0; transform: translateX(-50%) translateY(-6px); } }
.buchneu .chip.fehlt img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; border: 1px solid var(--rand); }
.buchneu .chip.fehlt { white-space: normal; }
@media (prefers-reduced-motion: reduce) { .sprech { animation: none; } }
.kartebox.eng1 .lv { padding: 5px 4px 4px; }
.kartebox.eng1 .lv .nr { font-size: 20px; }
.kartebox.eng1 .lv .st { height: 14px; } .kartebox.eng1 .lv .st i { width: 13px; height: 13px; }
.lv .schl svg { width: 100%; height: 100%; display: block; }
.kartebox.eng4 .kartekopf .summe { margin-left: 8px; }
@media (max-height: 420px) {
  .tagdlg h2 { font-size: 22px; margin: 0 0 2px; }
  .tagdlg > .unter:first-of-type { font-size: 12.5px; line-height: 1.3; }
  .tagkarte { padding: 6px 10px; margin: 6px 0; } .tagkarte img { width: 44px; height: 44px; }
  .tagdlg h3 { margin: 6px 0 2px; font-size: 16px; }
  .tagdlg .reihe { margin-top: 6px; }
}
@media (max-height: 540px) and (min-width: 600px) {
  #ov .dlg.einf { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 10px; align-items: stretch; width: min(96vw, 860px); }
  #ov .dlg.einf > :not(.einfk):not(.zu) { grid-column: 1 / -1; }
  #ov .dlg.einf h2 { font-size: 22px; margin: 0 48px 2px; }
  #ov .dlg.einf .einfk { grid-template-columns: 1fr; gap: 4px; text-align: center; margin: 6px 0; padding: 6px 8px; font-size: 12.5px; line-height: 1.3; }
  #ov .dlg.einf .einfk b { font-size: 14px; }
  #ov .dlg.einf .eb img { width: 36px; height: 36px; }
}
.kartebox.eng4 .zettel { flex-wrap: wrap; white-space: normal; overflow: visible; gap: 2px 10px; }
.kartebox.eng4 .zettel > b .zt { display: none; }
@media (max-height: 420px) and (min-width: 600px) {
  #ov .mo-tafel .mo-sp1 .mo-band span { font-size: 14px; padding: 3px 12px; white-space: nowrap; letter-spacing: .1em; }
}
.flieger.russ { filter: brightness(.36) sepia(.6) drop-shadow(0 0 6px rgba(255, 120, 40, .8)); }

#ov .dlg.hauptmenue { width: min(94vw, 660px); padding: 18px 20px 16px; overflow: hidden; }
.hm-kopf { display: grid; grid-template-columns: 88px minmax(0, 1fr) 64px; align-items: center; gap: 12px; }
.hm-kessel { width: 88px; height: 88px; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .6)); animation: hmBrodel 3.2s ease-in-out infinite; }
.hm-titel .titel { font: 700 38px/1 var(--kopf); color: var(--gold); text-shadow: 0 2px 0 var(--gold3), 0 0 18px rgba(176, 122, 216, .45); letter-spacing: 2px; }
.hm-titel .titel b { color: #fff3d0; font-weight: 700; }
.hm-titel .unter { margin: 6px 0 0; text-align: left; font-size: 13.5px; line-height: 1.35; }
.hm-katze { width: 64px; height: 64px; padding: 0; border: 0; background: none; cursor: pointer; touch-action: manipulation; }
.hm-katze img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 4px 5px rgba(0, 0, 0, .55)); transform-origin: 50% 100%; animation: atmen 3.6s ease-in-out infinite; }
.hm-katze.froh img { animation: katzeFroh .7s ease-out; }
.hm-katze:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 10px; }
@keyframes hmBrodel { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-2px) rotate(-1.5deg); } }
.hm-weiter { display: flex; align-items: center; gap: 14px; width: 100%; margin: 14px 0 10px; padding: 10px 16px 10px 10px; border-radius: 16px; cursor: pointer; text-align: left;
  border: 1px solid #ffe7a8; background: linear-gradient(#f6d47c, #c98f2c); color: #2a1606; box-shadow: 0 6px 18px rgba(0, 0, 0, .45), 0 0 0 0 rgba(242, 200, 106, .55); animation: hmRuf 2.6s ease-in-out infinite; }
.hm-weiter img { width: 56px; height: 56px; flex: none; border-radius: 50%; object-fit: cover; border: 2px solid #fff3d0; background: #3c1a52; }
.hm-weiter .mt { flex: 1; min-width: 0; }
.hm-weiter b { display: block; font: 700 21px/1.15 var(--kopf); }
.hm-weiter small { display: block; font-size: 13px; color: #4a2c0c; margin-top: 2px; }
.hm-pfeil svg { width: 26px; height: 26px; }
.hm-weiter:hover { filter: brightness(1.06); } .hm-weiter:focus-visible { outline: 3px solid #fff3d0; outline-offset: 2px; }
@keyframes hmRuf { 0%, 100% { box-shadow: 0 6px 18px rgba(0, 0, 0, .45), 0 0 0 0 rgba(242, 200, 106, .5); } 50% { box-shadow: 0 6px 18px rgba(0, 0, 0, .45), 0 0 0 8px rgba(242, 200, 106, 0); } }
.hm-modi { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.hm-modi .modus { position: relative; display: flex; align-items: center; gap: 10px; min-height: 64px; padding: 8px 12px; border-radius: 14px; cursor: pointer; text-align: left; color: var(--text);
  border: 1px solid var(--rand); background: linear-gradient(rgba(60, 38, 80, .95), rgba(34, 22, 46, .95)); }
.hm-modi .modus:hover { border-color: var(--gold); } .hm-modi .modus:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.hm-modi .mi { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(242, 200, 106, .14); color: var(--gold); }
.hm-modi .mi svg { width: 22px; height: 22px; }
.hm-modi .mt { min-width: 0; }
.hm-modi b { display: block; font: 700 16px/1.2 var(--kopf); }
.hm-modi small { display: block; font-size: 12.5px; line-height: 1.3; color: var(--mute); }
.hm-modi .modus.frisch { border-color: var(--gold); box-shadow: 0 0 12px rgba(242, 200, 106, .35); }
.hm-modi .modus.frisch::after { content: 'neu'; position: absolute; right: 8px; top: 6px; padding: 1px 7px; border-radius: 8px; background: var(--gold); color: #2a1606; font: 700 11px/1.4 var(--kopf); letter-spacing: .5px; }
.hauptmenue .zettel { margin: 10px 0 0; }
.hm-reihe { margin-top: 12px; justify-content: center; flex-wrap: wrap; }
.hm-reihe .knopf { min-height: 42px; }
.hauptmenue.eng1 .hm-titel .unter { display: none; }
.hauptmenue.eng1 .hm-kopf { grid-template-columns: 64px minmax(0, 1fr) 48px; } .hauptmenue.eng1 .hm-kessel { width: 64px; height: 64px; } .hauptmenue.eng1 .hm-katze { width: 48px; height: 48px; }
.hauptmenue.eng2 .hm-weiter { margin: 8px 0 6px; padding: 6px 12px 6px 8px; } .hauptmenue.eng2 .hm-weiter img { width: 44px; height: 44px; }
.hauptmenue.eng2 .hm-modi .modus { min-height: 52px; padding: 5px 10px; } .hauptmenue.eng2 .zettel { margin-top: 6px; padding: 4px 8px; } .hauptmenue.eng2 .hm-reihe { margin-top: 8px; }
.hauptmenue.eng2 .zettel > b .zt { display: none; }
@media (max-width: 520px) {
  #ov .dlg.hauptmenue { padding: 14px 12px 12px; }
  .hm-kopf { grid-template-columns: 60px minmax(0, 1fr) 48px; gap: 8px; } .hm-kessel { width: 60px; height: 60px; } .hm-katze { width: 48px; height: 48px; }
  .hm-titel .titel { font-size: 28px; letter-spacing: 1px; }
  .hm-modi { grid-template-columns: 1fr; gap: 6px; } .hm-modi .modus { min-height: 54px; }
  .hm-weiter b { font-size: 19px; }
}
@media (max-height: 540px) and (min-width: 600px) {
  #ov .dlg.hauptmenue { width: min(96vw, 880px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); column-gap: 14px; align-items: start; padding: 12px 14px; }
  .hauptmenue .hm-kopf { grid-column: 1; grid-row: 1; grid-template-columns: 56px minmax(0, 1fr) 44px; gap: 8px; }
  .hauptmenue .hm-kessel { width: 56px; height: 56px; } .hauptmenue .hm-katze { width: 44px; height: 44px; }
  .hauptmenue .hm-titel .titel { font-size: 22px; letter-spacing: 1px; } .hauptmenue .hm-titel .unter { font-size: 12px; }
  .hauptmenue .hm-modi .modus.frisch::after { content: ''; width: 10px; height: 10px; padding: 0; border-radius: 50%; right: 6px; top: 6px; box-shadow: 0 0 6px var(--gold); }
  .hauptmenue .hm-weiter { grid-column: 1; grid-row: 2; margin: 10px 0 0; }
  .hauptmenue .hm-modi { grid-column: 2; grid-row: 1 / 3; grid-template-columns: 1fr 1fr; align-self: stretch; }
  .hauptmenue .hm-modi .modus { min-height: 0; padding: 6px 10px; }
  .hauptmenue .zettel { grid-column: 1 / -1; grid-row: 3; }
  .hauptmenue .hm-reihe { grid-column: 1 / -1; grid-row: 4; margin-top: 8px; }
}
@media (prefers-reduced-motion: reduce) { .hm-kessel, .hm-katze img, .hm-weiter { animation: none; } }
.gast.raus.weg { animation: none; }
.gast.weg .portrait img { visibility: hidden; }
.gast.raus.weg .gtext { animation: gtextAus .3s ease-in both; }
@keyframes gtextAus { to { opacity: 0; transform: translateY(6px); } }
.abgang { position: fixed; z-index: 29; pointer-events: none; object-fit: contain; filter: drop-shadow(0 0 14px rgba(255, 220, 120, .75)) drop-shadow(0 6px 8px rgba(0, 0, 0, .5)); will-change: transform, opacity; }
.abgang.boese { filter: saturate(.55) drop-shadow(0 0 10px rgba(255, 90, 70, .6)) drop-shadow(0 6px 8px rgba(0, 0, 0, .5)); }
.abSag { position: fixed; z-index: 30; pointer-events: none; transform: translateX(-50%); padding: 4px 12px 5px; border-radius: 12px; background: rgba(255, 236, 226, .97); color: #7a1a10; border: 1px solid #d0705a;
  font: 700 16px/1.2 var(--kopf); box-shadow: 0 6px 16px rgba(0, 0, 0, .45); animation: sprechAuf .22s cubic-bezier(.3, 1.5, .5, 1) both, sprechAb .3s ease-in .6s forwards; }
.abT { position: fixed; z-index: 29; width: 8px; height: 8px; margin: -4px; border-radius: 50%; pointer-events: none; animation: abT .8s ease-out both; }
.abT.staub { width: 12px; height: 12px; margin: -6px; background: rgba(176, 156, 128, .8); filter: blur(1px); animation-duration: .65s; }
.abT.glitzer { width: 7px; height: 7px; margin: -3.5px; background: #fff6c0; box-shadow: 0 0 8px #ffd34a, 0 0 14px #ffe9a0; }
.abT.rauch { width: 26px; height: 26px; margin: -13px; background: radial-gradient(circle, rgba(220, 210, 235, .85), rgba(160, 140, 190, 0) 70%); animation-name: abRauch; animation-duration: .9s; }
.abT.tropfen { width: 7px; height: 10px; margin: -5px -3.5px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: #9fe0ff; box-shadow: 0 0 6px #4ab8f0; animation-name: abTropfen; }
.abT.flamme { width: 11px; height: 11px; margin: -5.5px; background: radial-gradient(circle, #fff2a0, #ff9a2a 55%, rgba(255, 60, 20, 0) 75%); animation-duration: .55s; }
@keyframes abT { from { transform: translate(0, 0) scale(1.2); opacity: 1; } to { transform: translate(var(--dx), var(--dy)) scale(.3); opacity: 0; } }
@keyframes abRauch { from { transform: translate(0, 0) scale(.4); opacity: .95; } to { transform: translate(var(--dx), var(--dy)) scale(2.4); opacity: 0; } }
@keyframes abTropfen { 0% { transform: translate(0, 0); opacity: 1; } 55% { transform: translate(calc(var(--dx) * .7), calc(var(--dy) - 18px)); opacity: 1; } 100% { transform: translate(var(--dx), calc(var(--dy) + 26px)); opacity: 0; } }
#warte figure { position: relative; }
#warte .wf { display: block; }
#warte img { display: block; animation: wAtmen 3.2s ease-in-out infinite; }
#warte figure:nth-child(2) img { animation-delay: -1.6s; }
@keyframes wAtmen { 0%, 100% { transform: none; } 50% { transform: translateY(-2px) scale(1.03, .97); } }
#warte.unruhig img { animation: wTippeln .55s ease-in-out infinite; }
#warte.unruhig figure:nth-child(2) img { animation-delay: -.27s; }
@keyframes wTippeln { 0%, 100% { transform: none; } 30% { transform: translateY(-3px) rotate(-4deg); } 65% { transform: rotate(3deg); } }
#warte figure.schlaeft img { animation: wDoesen 2.4s ease-in-out infinite; filter: brightness(.78); }
@keyframes wDoesen { 0%, 100% { transform: rotate(-9deg) translateY(2px); } 50% { transform: rotate(-13deg) translateY(4px); } }
#warte figure.schlaeft::before, #warte figure.schlaeft::after { content: 'z'; position: absolute; right: -4px; top: 4px; font: 700 13px/1 var(--kopf); color: #cfe3ff; text-shadow: 0 0 4px #000; animation: wZz 1.8s ease-out infinite; pointer-events: none; }
#warte figure.schlaeft::after { content: 'Z'; font-size: 17px; animation-delay: .9s; }
@keyframes wZz { from { opacity: 0; transform: translate(0, 6px) scale(.6); } 30% { opacity: 1; } to { opacity: 0; transform: translate(10px, -18px) scale(1.15); } }
#warte .wf.jubel { animation: wJubel .65s ease-out; }
@keyframes wJubel { 30% { transform: translateY(-14px) rotate(-6deg); } 55% { transform: none; } 78% { transform: translateY(-6px) rotate(4deg); } }
#warte .wf.schreck { animation: wSchreck .56s ease-out; }
@keyframes wSchreck { 18% { transform: translateY(-9px) scale(1.1); } 40%, 80% { transform: translateX(-3px); } 60% { transform: translateX(3px); } }
#warte .wf.duckt { animation: wDuckt .48s ease-in-out; }
@keyframes wDuckt { 40% { transform: translateY(5px) scale(1.06, .84) rotate(-8deg); } }
#warte .wf.klopft { animation: wKlopft .76s ease-in-out; }
@keyframes wKlopft { 12%, 42%, 72% { transform: translate(-4px, -9px) rotate(-10deg); } 27%, 57%, 87% { transform: translate(-2px, 0) rotate(2deg); } }
#warte .wf .funke { position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; margin: -3.5px; border-radius: 50%; background: #fff3b0; box-shadow: 0 0 8px #ffd34a; animation: funke .85s ease-out forwards; pointer-events: none; }
#warte .wf { position: relative; }
.wsag { position: absolute; left: 50%; bottom: calc(100% - 14px); z-index: 5; transform: translateX(-50%); white-space: nowrap; pointer-events: none; padding: 3px 9px 4px; border-radius: 10px; background: rgba(255, 246, 226, .97); color: #3a2410; border: 1px solid #c9a46a;
  font: 700 12px/1.2 var(--text-schrift, inherit); box-shadow: 0 4px 10px rgba(0, 0, 0, .45); animation: sprechAuf .24s cubic-bezier(.3, 1.5, .5, 1) both, sprechAb .3s ease-in forwards; animation-delay: 0s, calc(var(--ms, 1600ms) - 300ms); }
#warte figure:first-child .wsag { left: 0; transform: none; animation-name: wsagAuf, wsagAb; }
#warte figure:last-child .wsag { left: auto; right: 0; transform: none; animation-name: wsagAuf, wsagAb; }
@keyframes wsagAuf { from { opacity: 0; transform: translateY(6px) scale(.7); } to { opacity: 1; transform: none; } }
@keyframes wsagAb { to { opacity: 0; transform: translateY(-5px); } }
@media (prefers-reduced-motion: reduce) {
  #warte img, #warte .wf, .abgang, .abT, .abSag, .wsag { animation: none !important; }
  #warte figure.schlaeft::before, #warte figure.schlaeft::after { display: none; }
}
#warte figure:has(.wsag) { z-index: 3; }
.gast.gleich:not(.heil):not(.hustet):not(.trinkt):not(.boese):not(.fiebrig) .portrait { animation: gleichWipp 1.1s ease-in-out infinite; box-shadow: 0 0 18px rgba(255, 214, 110, .55), 0 6px 18px rgba(0, 0, 0, .55); }
@keyframes gleichWipp { 0%, 100% { transform: none; } 50% { transform: translateY(-3px) scale(1.03); } }
#tresen:has(.gast.gleich) .fach:not(.voll) { animation: fehltPuls 1s ease-in-out infinite; }
@keyframes fehltPuls { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 214, 110, 0); } 50% { box-shadow: 0 0 0 2px rgba(255, 214, 110, .85), 0 0 14px rgba(255, 214, 110, .5); } }
#aura { position: fixed; z-index: 1; pointer-events: none; border-radius: 14px; opacity: 0; transition: opacity .3s; --ac: rgba(200, 190, 170, .9); }
#aura[data-art="2"] { --ac: rgba(225, 235, 255, .95); }
#aura[data-art="3"] { --ac: rgba(255, 120, 40, .95); }
#aura.an { opacity: 1; }
#aura::before { content: ''; position: absolute; inset: -4px; border-radius: inherit; border: 3px solid var(--ac); box-shadow: 0 0 22px 4px var(--ac), inset 0 0 22px 2px var(--ac); animation: auraPuls 1s ease-in-out infinite; }
@keyframes auraPuls { 0%, 100% { opacity: .25; } 50% { opacity: .9; } }
.flieger.potion.gfunke { width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: radial-gradient(circle, #fff8c8, #ffc94a 60%, rgba(255, 180, 40, 0) 72%); box-shadow: 0 0 10px #ffd34a; }
#zuege.tick { animation: zTick .38s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes zTick { from { transform: translateY(-45%) scale(.8); opacity: 0; color: #ffd27a; } }
#punkte.bump { animation: pBump .42s ease-out; }
@keyframes pBump { 35% { transform: scale(1.16); color: #ffe08a; text-shadow: 0 0 12px rgba(255, 214, 110, .8); } }
#staub { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
#staub i { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #ffe6a0; box-shadow: 0 0 6px 2px rgba(255, 214, 120, .5); opacity: 0; animation: staubZieht 14s linear infinite; }
body[data-kap="3"] #staub i { background: #e0ffb0; box-shadow: 0 0 8px 3px rgba(170, 255, 120, .45); }
@keyframes staubZieht { 0% { opacity: 0; transform: translate(0, 0); } 15% { opacity: .75; } 50% { opacity: .35; } 70% { opacity: .7; } 100% { opacity: 0; transform: translate(var(--dx), -160px); } }
@media (prefers-reduced-motion: reduce) {
  .gast.gleich .portrait, #tresen:has(.gast.gleich) .fach, #aura::before, #zuege.tick, #punkte.bump { animation: none; }
  #staub { display: none; }
}
.mo-start .mo-start-neu > div { gap: 6px 14px; }
.mo-start .mo-start-neu figcaption { max-width: 118px; hyphens: manual; }
#banner small { white-space: normal; max-width: min(88vw, 520px); margin: 6px auto 0; }
.gast.blitz .geheilt { background: linear-gradient(#fffbe0, #ffd34a 55%, #ff9f2a); box-shadow: 0 0 16px rgba(255, 214, 80, .95), 0 3px 8px rgba(0, 0, 0, .5); }
.gast.blitz .portrait::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; pointer-events: none; z-index: 2;
  background: radial-gradient(circle, rgba(255, 250, 200, .85), rgba(255, 214, 80, 0) 65%); animation: blitzLicht .7s ease-out forwards; }
@keyframes blitzLicht { 0% { opacity: 0; transform: scale(.6); } 25% { opacity: 1; } 100% { opacity: 0; transform: scale(1.35); } }
.gast.letzte:not(.hustet):not(.trinkt):not(.boese):not(.heil) .portrait { animation: letzteZitter .5s ease-in-out infinite; }
.gast.letzte .gring .gr1 { stroke: #ff5a4a; animation: letzteRing .5s ease-in-out infinite; }
@keyframes letzteZitter { 0%, 100% { transform: none; } 25% { transform: translateX(-2px) rotate(-2deg); } 75% { transform: translateX(2px) rotate(2deg); } }
@keyframes letzteRing { 50% { opacity: .35; } }
.fach.satt { animation: fachSatt .7s ease-out; }
@keyframes fachSatt { 25% { transform: scale(1.05); box-shadow: 0 0 0 2px rgba(120, 220, 140, .9), 0 0 14px rgba(120, 220, 140, .6); } }
.parade { position: fixed; z-index: 19; pointer-events: none; display: flex; justify-content: center; gap: 4px; height: var(--gr); transition: opacity .35s; }
.parade.weg { opacity: 0; }
.parade img { width: var(--gr); height: var(--gr); object-fit: contain; filter: drop-shadow(0 0 10px rgba(255, 220, 120, .8)) drop-shadow(0 4px 6px rgba(0, 0, 0, .6));
  animation: paradeRein .45s cubic-bezier(.3, 1.6, .5, 1) both, paradeWink .7s ease-in-out infinite; }
@keyframes paradeRein { from { opacity: 0; transform: translateY(70%) scale(.4); } }
@keyframes paradeWink { 0%, 100% { transform: translateY(0) rotate(-5deg); } 50% { transform: translateY(-14%) rotate(5deg); } }
.flieger.potion.kartflug { width: 40px; height: 40px; margin: -20px 0 0 -20px; z-index: 40; filter: drop-shadow(0 0 10px rgba(255, 220, 120, .9)); }
@media (prefers-reduced-motion: reduce) { .gast.letzte .portrait, .gast.letzte .gring .gr1, .fach.satt, .gast.blitz .portrait::after { animation: none; } }

:root { --sgzl-grund: rgba(36, 22, 50, .97); --sgzl-text: #fff4d6; --sgzl-akzent: #f6d27a; --sgzl-akzent-text: #2a1606; }
.lernzelle { position: absolute; z-index: 5; box-sizing: border-box; pointer-events: none; border-radius: 14px; border: 4px solid #f6d27a; background: rgba(246, 210, 122, .12); box-shadow: 0 0 0 2px #22142e, 0 0 14px 4px rgba(246, 210, 122, .6); }
.lernzelle.sgzl-ziel { outline: 3px solid #fff4d6; outline-offset: 2px; animation: lernzelle 1.3s ease-in-out infinite; }
.lernzelle.feld { border-style: dashed; background: rgba(246, 210, 122, .22); }
@keyframes lernzelle { 0%, 100% { box-shadow: 0 0 0 2px #22142e, 0 0 10px 2px rgba(246, 210, 122, .45); } 50% { box-shadow: 0 0 0 2px #22142e, 0 0 22px 8px rgba(246, 210, 122, .75); } }
@media (prefers-reduced-motion: reduce) { .lernzelle.sgzl-ziel { animation: none; } }
.lernzelle[hidden] { display: none; }
body.potion-lern #bNeu, body.potion-lern #bTipp, body.potion-lern #bKarte { display: none !important; }
#hud .sgzl { margin: 4px 0; flex: none; }
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.potion-lern:not(.hoch) #logo, body.potion-lern:not(.hoch) #werte, body.potion-lern:not(.hoch) #sternleiste { display: none; }
  body .sgzl { padding: 8px 10px; } body .sgzl-titel { font-size: 14px; } body .sgzl-text { font-size: 12.5px; line-height: 1.3; } body .sgzl-punkte { display: none; }
  body .sgzl-kopf { margin-bottom: 2px; } body .sgzl-weiter { min-height: 40px; margin-top: 6px; }
}
body.potion-lern:not(.hoch) #werte, body.potion-lern:not(.hoch) #sternleiste { display: none; }
#lernEnde { text-align: center; }
#lernEnde .lernbild { display: block; width: 96px; height: 96px; object-fit: contain; margin: 0 auto 4px; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .5)); }
#lernEnde .lernlob { margin: 8px 0; font-size: 15.5px; line-height: 1.45; text-align: left; }
#lernEnde .reihe { justify-content: center; flex-wrap: wrap; }
@media (max-height: 540px) { #lernEnde .lernbild { width: 64px; height: 64px; } #lernEnde .lernlob { font-size: 13.5px; } }
@media (max-height: 860px) { body.potion-lern:not(.hoch) #logo { display: none; } }
body.potion-lern:not(.hoch) #hud { overflow-y: auto; }
@media (max-height: 540px) { #lernEnde .lernbild { display: none; } #lernEnde .hinweis { margin: 4px 0; padding: 4px 8px; } }
.lern-mina { display: flex; align-items: center; gap: 8px; margin: 2px 0 6px; }
.lern-mina[hidden] { display: none; }
.lern-mina img { width: 40px; height: 44px; object-fit: contain; flex: none; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .6)); transform-origin: 50% 50%; }
.lern-mina .lm-sag { position: relative; flex: 1; padding: 5px 9px; border-radius: 10px; background: rgba(255, 244, 214, .95); color: #2a1606; font-size: 13px; line-height: 1.3; font-style: italic; }
.lern-mina .lm-sag::before { content: ''; position: absolute; left: -6px; top: 50%; margin-top: -6px; border: 6px solid transparent; border-left: 0; border-right-color: rgba(255, 244, 214, .95); }
.lern-mina.neu img { animation: minaHopp .5s ease-out; }
.lern-mina.neu .lm-sag { animation: minaSag .35s ease-out; }
@keyframes minaHopp { 0% { transform: none; } 40% { transform: scale(1.18); } 70% { transform: scale(.94); } 100% { transform: none; } }
@keyframes minaSag { from { opacity: 0; } to { opacity: 1; } }
@media (max-height: 560px) and (min-aspect-ratio: 1/1) { .lern-mina img { width: 30px; height: 32px; } .lern-mina .lm-sag { font-size: 12px; padding: 3px 7px; } .lern-mina { margin: 0 0 4px; } }
body.hoch .lern-mina img { width: 34px; height: 36px; } body.hoch .lern-mina { margin: 0 0 4px; }
.lernzelle.zeig { border-color: #ff9a6a; border-style: solid; background: rgba(255, 154, 106, .16); animation: lernzelle 1.3s ease-in-out infinite; }
#lernEnde .lernbilder { position: relative; width: 140px; margin: 0 auto 4px; }
#lernEnde .lernbilder .lernbild { margin: 0 auto; }
#lernEnde .lernkatze { position: absolute; right: -6px; bottom: -2px; width: 48px; height: 54px; object-fit: contain; filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .6)); animation: minaHopp .6s .3s ease-out both; }
@media (max-height: 540px) { #lernEnde .lernbilder { display: none; } }
.lernwahl { max-width: min(94vw, 520px); }
.lw-kopf { display: grid; grid-template-columns: 64px 1fr; gap: 10px; align-items: center; margin: 0 52px 10px 0; text-align: left; }
.lw-kopf .unter { text-align: left; }
.lw-kopf img { width: 64px; height: 70px; object-fit: contain; filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .6)); }
.lw-kopf h2 { margin: 0; text-align: left; font-size: clamp(21px, 6vw, 28px); overflow-wrap: anywhere; } .lw-kopf > div { min-width: 0; }
.lw-karte { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; width: 100%; margin: 8px 0 0; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--rand);
  background: var(--panel2); color: var(--text); text-align: left; cursor: pointer; font: inherit; min-height: 76px; }
.lw-karte:hover, .lw-karte:focus-visible { border-color: var(--gold); box-shadow: 0 0 12px rgba(242, 200, 106, .35); outline: none; }
.lw-karte img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold2); }
.lw-karte .mt { display: flex; flex-direction: column; gap: 3px; }
.lw-karte b { font: 700 17px/1.2 var(--kopf); color: var(--gold); }
.lw-karte small { font-size: 13.5px; color: var(--mute); line-height: 1.3; }
.lw-haken { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--gruen); color: #10301a; }
.lw-haken svg { width: 18px; height: 18px; }
@media (max-height: 540px) { .lw-kopf img { width: 44px; height: 48px; } .lw-kopf { grid-template-columns: 44px 1fr; margin-bottom: 4px; } .lw-karte { min-height: 60px; padding: 6px 10px; } .lw-karte img { width: 48px; height: 48px; } }
.pruefinfo .knopf.klein { display: flex; width: fit-content; margin-top: 6px; min-height: 40px; font-size: 13.5px; }
.vorfring { position: absolute; z-index: 5; box-sizing: border-box; pointer-events: none; border-radius: 14px; border: 4px solid #f6d27a; box-shadow: 0 0 0 2px #22142e, 0 0 16px 5px rgba(246, 210, 122, .65); animation: lernzelle 1.1s ease-in-out infinite; }
.vorfring.partner { border-style: dashed; box-shadow: 0 0 0 2px #22142e; background: rgba(246, 210, 122, .16); }
.vorfring[hidden] { display: none; }
.vglas.zeig img { animation: glasZeig .9s ease-in-out 4; }
@keyframes glasZeig { 50% { filter: drop-shadow(0 0 10px #f6d27a) brightness(1.25); transform: scale(1.12); } }
.mina-blase { position: fixed; z-index: 40; display: grid; grid-template-columns: 36px 1fr; gap: 8px; align-items: center; max-width: min(300px, 86vw); padding: 7px 11px 7px 7px; border-radius: 14px;
  background: rgba(255, 244, 214, .96); color: #2a1606; font-size: 13.5px; line-height: 1.32; box-shadow: 0 6px 18px rgba(0, 0, 0, .55); border: 2px solid #c08a2a; pointer-events: none; }
.mina-blase[hidden] { display: none; }
.mina-blase img { width: 36px; height: 40px; object-fit: contain; }
.mina-blase.rein { animation: minaSag .3s ease-out; } .mina-blase.weg { opacity: 0; transition: opacity .3s; }
@media (prefers-reduced-motion: reduce) { .lern-mina.neu img, .lern-mina.neu .lm-sag, .mina-blase.rein, .vglas.zeig img, #lernEnde .lernkatze { animation: none; } }
@media (max-height: 560px) and (min-aspect-ratio: 1/1) { .lern-mina { margin-right: 38px; } }
.lern-mina .lm-sag { min-width: 0; }
body.potion-lern:not(.hoch) #hud { max-height: 100%; min-height: 0; align-self: start; }
@media (max-height: 860px) { body.potion-lern:not(.hoch) #ziele { display: none; } }

body[data-kap="4"], body[data-kap="8"] { background-image: url(img/kulisse-keller-q.webp?v=1); }
body.hoch[data-kap="4"], body.hoch[data-kap="8"] { background-image: url(img/kulisse-keller-h.webp?v=1); }
body[data-kap="5"] { background-image: url(img/kulisse-hort-q.webp?v=1); }
body.hoch[data-kap="5"] { background-image: url(img/kulisse-hort-h.webp?v=1); }
body[data-kap="6"], body[data-kap="10"] { background-image: url(img/kulisse-moor-q.webp?v=1); }
body.hoch[data-kap="6"], body.hoch[data-kap="10"] { background-image: url(img/kulisse-moor-h.webp?v=1); }
body[data-kap="7"], body[data-kap="11"] { background-image: url(img/kulisse-wald-q.webp?v=1); }
body.hoch[data-kap="7"], body.hoch[data-kap="11"] { background-image: url(img/kulisse-wald-h.webp?v=1); }
body[data-kap="9"], body[data-kap="12"] { background-image: url(img/kulisse-gipfel-q.webp?v=1); }
body.hoch[data-kap="9"], body.hoch[data-kap="12"] { background-image: url(img/kulisse-gipfel-h.webp?v=1); }
#ziele .zl:not(:first-child):not(:has(img[src*="img/stein-"])), .zielliste .zl:not(:first-child):not(:has(img[src*="img/stein-"])),
.zielstand .zs:not(:first-child):not(:has(img[src*="img/stein-"])) { display: flex; }

.kartebox:has(.zbuch) { width: min(1360px, 100%); }
.kartenetz.eigen { display: flex; padding: 8px 14px 12px; overflow: clip; }
#ov .zbuch { flex: 1; min-height: 0; min-width: 0; display: flex; flex-direction: column; }
#ov .zbuch .reiter { display: flex; justify-content: center; gap: 4px; padding: 0 28px; position: relative; z-index: 2; }
#ov .zbuch .zrt { flex: 0 1 48px; min-width: 0; height: 46px; padding: 0 0 4px; border: 0; cursor: pointer; color: #fff6dc; font: 700 13px/1 var(--kopf);
  background: var(--rtf, #62309a); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 78%, 0 100%); transform: translateY(6px); transition: transform .18s;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .7); font-size: 14px; }
#ov .zbuch .zrt span { display: block; padding-top: 10px; }
#ov .zbuch .zrt:hover, #ov .zbuch .zrt:focus-visible { transform: translateY(2px); }
#ov .zbuch .zrt.an { transform: translateY(0); height: 50px; box-shadow: inset 0 0 0 2px rgba(255, 230, 160, .7); }
#ov .zbuch .zrt.zu { --rtf: #4e463e; color: #e6dccb; }
#ov .zbuch .zrt.fertig span::after { content: ''; display: block; width: 6px; height: 6px; margin: 3px auto 0; border-radius: 50%; background: #ffe08a; box-shadow: 0 0 6px #ffd34a; }
.zrt.k1 { --rtf: #3e6e2c; } .zrt.k2 { --rtf: #2e5a8a; } .zrt.k3 { --rtf: #62309a; } .zrt.k4 { --rtf: #6a44a8; } .zrt.k5 { --rtf: #8a5412; } .zrt.k6 { --rtf: #3a6052; }
.zrt.k7 { --rtf: #4a5820; } .zrt.k8 { --rtf: #44529a; } .zrt.k9 { --rtf: #8e3420; } .zrt.k10 { --rtf: #2e6046; } .zrt.k11 { --rtf: #5a2e4c; } .zrt.k12 { --rtf: #8a6010; }
#ov .zbuch .band { position: relative; flex: 1; min-height: 0; display: flex; border-radius: 10px; padding: 10px; container: zband / size;
  background: linear-gradient(90deg, #4a2414, #6a3820 6%, #5a2e18 50%, #6a3820 94%, #4a2414); box-shadow: 0 14px 30px rgba(0, 0, 0, .6), inset 0 0 0 2px rgba(214, 168, 78, .5); }
#ov .zbuch .doppel { display: none; flex: 1; min-width: 0; min-height: 0; }
#ov .zbuch .doppel.an { display: flex; }
#ov .zbuch .seite { flex: 1; min-width: 0; min-height: 0; position: relative; color: #3a2414; display: flex; flex-direction: column;
  background: #efe0bc url(img/pergament.webp?v=1) center / cover; }
#ov .zbuch .seite.links { border-radius: 6px 2px 2px 6px; box-shadow: inset -26px 0 28px -18px rgba(70, 40, 10, .55); padding: 14px 22px 14px 16px; gap: 10px; }
#ov .zbuch .seite.rechts { container: zseite / size; border-radius: 2px 6px 6px 2px; box-shadow: inset 26px 0 28px -18px rgba(70, 40, 10, .55); padding: 14px 16px 14px 22px; }
#ov .zbuch .falz { position: absolute; left: 50%; top: 6px; bottom: 6px; width: 4px; margin-left: -2px; background: linear-gradient(90deg, rgba(60, 30, 10, .5), rgba(60, 30, 10, .1)); z-index: 1; pointer-events: none; }
#ov .zbuch .kbild { flex: 1 1 0; min-height: 0; border-radius: 6px; background: center / cover no-repeat; position: relative;
  box-shadow: 0 0 0 2px #b08a4a, 0 0 0 5px rgba(240, 225, 190, .9), 0 0 0 6px #8a6430, 0 6px 12px rgba(60, 30, 10, .35); margin: 6px; }
#ov .zbuch .doppel.zu .kbild { filter: grayscale(.8) brightness(.7); }
#ov .zbuch .kbild .schl { position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px; color: #fff3d0; filter: drop-shadow(0 2px 4px #000); }
#ov .zbuch .kbild .schl svg, #ov .zbuch .sg .schl svg, #ov .zbuch .sg .kr svg { width: 100%; height: 100%; display: block; }
#ov .zbuch .ktext { flex: none; min-height: 0; display: flex; flex-direction: column; gap: 6px; }
#ov .zbuch .kk { font: 700 13px/1 var(--kopf); letter-spacing: 3px; text-transform: uppercase; color: #5e3410; }
#ov .zbuch h3 { margin: 0; font: 700 26px/1.1 var(--kopf); color: #4a1e5a; text-shadow: 0 1px 0 rgba(255, 245, 220, .8); }
#ov .zbuch .kauf { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.35; }
#ov .zbuch .kauf img { width: 42px; height: 42px; flex: none; object-fit: contain; filter: drop-shadow(0 2px 3px rgba(60, 30, 10, .4)); }
#ov .zbuch .kauf b { display: block; color: #6a2a14; font-size: 14.5px; }
#ov .zbuch .kauf span { color: #4a3220; }
#ov .zbuch .kst { display: flex; align-items: center; gap: 6px; font: 700 14px/1 var(--kopf); color: #6a4420; }
#ov .zbuch .kst .sm { position: static; width: 18px; height: 18px; margin: 0; top: auto; }
#ov .zbuch .zsg { flex: 1; min-height: 0; display: grid; grid-template: repeat(5, minmax(0, 1fr)) / repeat(2, minmax(0, 1fr)); grid-auto-flow: column; gap: 6px 12px; }
#ov .zbuch .lv { display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 0; padding: 2px 4px; text-align: left; background: none; border: 0; border-radius: 10px;
  box-shadow: none; color: inherit; cursor: pointer; transition: background .15s; }
#ov .zbuch .lv:hover:not(.zu) { transform: none; background: rgba(140, 90, 40, .14); }
#ov .zbuch .lv .sg { position: relative; flex: none; height: min(100%, 60px); min-height: 26px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 38% 32%, #c8504a, #8e1e22 60%, #5a0e12); box-shadow: 0 2px 4px rgba(60, 20, 10, .5), inset 0 0 0 3px rgba(255, 200, 170, .18), inset 0 -3px 6px rgba(0, 0, 0, .35); }
#ov .zbuch .lv.ok .sg { background: radial-gradient(circle at 38% 32%, #ffe9a8, #d6a23e 55%, #8a5a14); }
#ov .zbuch .lv.pruef .sg { background: radial-gradient(circle at 38% 32%, #c896f0, #6a2aa0 58%, #3a0e5a); }
#ov .zbuch .lv.pruef.ok .sg { box-shadow: 0 0 0 2px #ffd77a, 0 2px 6px rgba(60, 20, 10, .5); }
#ov .zbuch .lv .nr { font: 700 clamp(14px, 4.2cqmin, 21px)/1 var(--kopf); color: #fff3d6; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
#ov .zbuch .lv.ok .nr { color: #4a2408; text-shadow: 0 1px 0 rgba(255, 245, 210, .7); }
#ov .zbuch .lv .kr { position: absolute; top: -2px; left: 50%; width: 16px; height: 16px; margin-left: -8px; color: #ffd77a; filter: drop-shadow(0 1px 1px #000); }
#ov .zbuch .lv.zu { opacity: .7; filter: none; cursor: default; }
#ov .zbuch .lv.zu .sg { background: radial-gradient(circle at 38% 32%, #a89a86, #6e6252 60%, #4a4034); }
#ov .zbuch .lv.zu .nr { color: transparent; text-shadow: none; }
#ov .zbuch .lv.zu .schl { position: absolute; inset: 26%; width: auto; height: auto; color: #f4ead6; }
#ov .zbuch .lv .lt { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
#ov .zbuch .lv .nm { margin: 0; min-height: 0; display: block; font: 600 14px/1.12 var(--kopf); color: #3a2010; white-space: normal; hyphens: auto; overflow-wrap: break-word; }
#ov .zbuch .lv .st { justify-content: flex-start; height: 16px; gap: 1px; }
#ov .zbuch .lv .st i { width: 16px; height: 16px; margin: 0; position: static; top: auto; flex: none; }
#ov .zbuch .lv.neu { border: 0; box-shadow: 0 0 0 2px rgba(176, 106, 30, .7), 0 0 14px rgba(255, 190, 90, .5); background: rgba(255, 230, 170, .35); }
#ov .zbuch .blatt { position: absolute; bottom: -2px; z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 1px solid #d6a84e; background: radial-gradient(circle at 40% 35%, #6a3820, #3a1a0c);
  color: #ffe2a0; display: grid; place-items: center; cursor: pointer; box-shadow: 0 3px 8px rgba(0, 0, 0, .5); }
#ov .zbuch .blatt.zur { left: -6px; } #ov .zbuch .blatt.vor { right: -6px; }
#ov .zbuch .blatt svg { width: 20px; height: 20px; }
#ov .zbuch .blatt.zur svg { transform: scaleX(-1); }
#ov .zbuch .blatt:disabled { opacity: .3; cursor: default; }
#ov .zbuch .umblatt { position: absolute; top: 10px; bottom: 10px; left: 50%; right: 10px; z-index: 4; pointer-events: none; transform-origin: 0 50%; backface-visibility: visible;
  background: #efe0bc url(img/pergament.webp?v=1) center / cover; box-shadow: 0 0 18px rgba(60, 30, 10, .45); border-radius: 2px 6px 6px 2px; }
#ov .zbuch .umblatt.zur { left: 10px; right: 50%; transform-origin: 100% 50%; border-radius: 6px 2px 2px 6px; }
#ov .zbuch .umblatt.hoch { left: 10px; right: 10px; top: 50%; bottom: 10px; transform-origin: 50% 0; }
#ov .zbuch .umblatt.hoch.zur { top: 10px; bottom: 50%; transform-origin: 50% 100%; }

@container zband (max-aspect-ratio: 1/1) {
  #ov .zbuch .doppel.an { flex-direction: column; }
  #ov .zbuch .falz { left: 6px; right: 6px; top: auto; width: auto; height: 4px; margin: 0; bottom: auto; }
  #ov .zbuch .seite.links { flex: 0 1 auto; flex-direction: row; border-radius: 6px 6px 2px 2px; box-shadow: inset 0 -22px 24px -16px rgba(70, 40, 10, .55); padding: 10px 12px 14px; gap: 10px; }
  #ov .zbuch .seite.rechts { border-radius: 2px 2px 6px 6px; box-shadow: inset 0 22px 24px -16px rgba(70, 40, 10, .55); padding: 14px 10px 10px; }
  #ov .zbuch .kbild { flex: 0 0 28%; min-height: 0; margin: 4px; }
  #ov .zbuch .ktext { flex: 1; }
  #ov .zbuch h3 { font-size: 21px; }
  #ov .zbuch .kauf { font-size: 13px; }
  #ov .zbuch .kauf img { width: 32px; height: 32px; }
  #ov .zbuch .zsg { grid-template: repeat(5, minmax(0, 1fr)) / repeat(2, minmax(0, 1fr)); }
}
@container zband (max-aspect-ratio: 1/1) and (max-width: 420px) {
  #ov .zbuch .kbild { display: none; }
  #ov .zbuch .kauf span { font-size: 12.5px; }
}
@container zband (max-height: 300px) {
  #ov .zbuch .seite.links, #ov .zbuch .seite.rechts { padding-top: 8px; padding-bottom: 8px; }
  #ov .zbuch .kbild { flex-basis: 30%; }
  #ov .zbuch h3 { font-size: 19px; }
  #ov .zbuch .kauf { font-size: 12px; line-height: 1.25; }
  #ov .zbuch .kauf img { width: 28px; height: 28px; }
  #ov .zbuch .zsg { gap: 3px 10px; }
  #ov .zbuch .lv .nm { font-size: 12.5px; }
  #ov .zbuch .lv .st { height: 12px; } #ov .zbuch .lv .st i { width: 12px; height: 12px; }
}
@media (max-width: 600px) {
  #ov .zbuch .reiter { flex-wrap: wrap; row-gap: 3px; padding: 0 6px; }
  #ov .zbuch .zrt { flex: 0 0 calc((100% - 20px) / 6); height: 44px; }
  #ov .zbuch .zrt.an { height: 48px; }
  #ov .zbuch .reiter .zrt:nth-child(-n+6) { height: 40px; transform: none; clip-path: none; border-radius: 4px; }
  #ov .zbuch .lv { gap: 6px; padding: 2px; }
  #ov .zbuch .lv .sg { height: min(100%, 46px); }
  #ov .zbuch .lv .nm { font-size: 12.5px; }
}
@container zseite (max-width: 380px) {
  #ov .zbuch .lv { gap: 5px; }
  #ov .zbuch .lv .sg { height: min(100%, 42px); }
  #ov .zbuch .lv .nm { font-size: 12px; line-height: 1.05; }
  #ov .zbuch .lv .st { height: 14px; } #ov .zbuch .lv .st i { width: 14px; height: 14px; }
}
@container zseite (max-height: 330px) {
  #ov .zbuch .lv .sg { height: min(calc(100% - 8px), 46px); }
  #ov .zbuch .lv .st { position: absolute; left: 3px; bottom: -1px; height: 11px; gap: 0; }
  #ov .zbuch .lv .st i { width: 11px; height: 11px; }
}
@container zband (max-height: 340px) {
  #ov .zbuch .zsg { grid-template: repeat(2, minmax(0, 1fr)) / repeat(5, minmax(0, 1fr)); grid-auto-flow: row; gap: 4px 6px; }
  #ov .zbuch .lv { flex-direction: column; justify-content: center; gap: 4px; padding: 2px; }
  #ov .zbuch .lv .sg { height: auto; width: min(100%, 52px); }
  #ov .zbuch .lv .nm { display: none; }
  #ov .zbuch .lv .lt { align-items: center; }
  #ov .zbuch .lv .st { position: static; height: 13px; gap: 1px; } #ov .zbuch .lv .st i { width: 13px; height: 13px; flex: none; }
}
@media (max-height: 540px) { #ov .zbuch .zrt { height: 42px; } #ov .zbuch .zrt.an { height: 46px; } #ov .zbuch .zrt span { padding-top: 9px; } .kartenetz.eigen { padding: 4px 10px 8px; } }
@media (prefers-reduced-motion: reduce) { #ov .zbuch .zrt { transition: none; } }
@container zband (max-aspect-ratio: 1/1) and (max-height: 560px) {
  #ov .zbuch .seite.links { padding: 8px 12px 10px; }
  #ov .zbuch .seite.rechts { padding: 10px 10px 6px; }
  #ov .zbuch h3 { font-size: 19px; }
  #ov .zbuch .kst { display: none; }
}
@container zseite (max-height: 330px) { #ov .zbuch .zsg { row-gap: 2px; } }
@media (max-height: 540px) { body.zusatz #ziele .zl .zt { display: none; } body.zusatz #ziele .zl { justify-content: space-between; } }
.zielstand .zs.ok:not(:first-child) { display: none; }
#banner { background: radial-gradient(closest-side, rgba(28, 14, 40, .9) 0 70%, rgba(28, 14, 40, 0)); padding: 22px 54px; border-radius: 50%; }
@media (max-width: 480px) { #banner { padding: 18px 16px; max-width: 100vw; box-sizing: border-box; } }
#spinnen { position: fixed; z-index: 27; pointer-events: none; overflow: hidden; }
.spinne { position: absolute; }
.spinne svg { position: relative; display: block; width: 100%; height: 100%; filter: drop-shadow(0 0 3px rgba(255, 240, 255, .7)) drop-shadow(0 2px 2px rgba(0, 0, 0, .6)); }
.spinne::before { content: ''; position: absolute; left: 50%; bottom: 60%; width: 1.5px; height: 2000px; margin-left: -.75px; background: linear-gradient(rgba(240, 236, 255, .15), rgba(240, 236, 255, .85)); }
.spinne .beine { animation: beinchen .16s steps(2) infinite; transform-origin: 0 0; }
@keyframes beinchen { 50% { transform: scaleY(.84) rotate(4deg); } }
.lstempel { position: fixed; z-index: 29; pointer-events: none; border-radius: 12px; display: grid; place-items: center; }
.lstempel.fertig { animation: lsAus 1.9s ease-in both; }
.lstempel.fertig span { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 8px; border-radius: 999px; background: rgba(40, 90, 30, .94); color: #eaffd8;
  font: 700 15px/1 var(--kopf); box-shadow: 0 0 0 2px #9be37a, 0 4px 14px rgba(0, 0, 0, .6); transform: rotate(-6deg); animation: lsStempel .55s cubic-bezier(.3, 1.6, .5, 1) both; }
.lstempel.fertig svg { width: 18px; height: 18px; }
@keyframes lsStempel { 0% { transform: scale(2.4) rotate(-20deg); opacity: 0; } 100% { transform: scale(1) rotate(-6deg); opacity: 1; } }
@keyframes lsAus { 0%, 80% { opacity: 1; } 100% { opacity: 0; } }
.lstempel.puls { box-shadow: 0 0 0 2px rgba(255, 220, 130, .9), 0 0 22px rgba(255, 200, 90, .8); animation: lsPuls .85s ease-in-out 3 both; }
@keyframes lsPuls { 0%, 100% { opacity: 0; transform: scale(1); } 50% { opacity: 1; transform: scale(1.04); } }
#ov .zbuch .lv.vorPraeg .sg { opacity: 0; }
#ov .zbuch .lv.praegt .sg { animation: sgPraeg .7s cubic-bezier(.3, 1.5, .5, 1) both; }
#ov .zbuch .lv.praegt .sg::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 3px solid rgba(255, 214, 110, .95); pointer-events: none; animation: sgRing .8s ease-out .35s both; }
@keyframes sgPraeg { 0% { transform: scale(1.9) rotate(-25deg); opacity: 0; filter: brightness(1.7); } 55% { transform: scale(.86) rotate(4deg); opacity: 1; } 100% { transform: none; filter: none; } }
@keyframes sgRing { from { transform: scale(.7); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }
#ov .zbuch .lv .st .sm.wart { filter: grayscale(1) brightness(.6); opacity: .45; }
#ov .zbuch .lv .st .sm.neu { animation: smNeu .5s cubic-bezier(.3, 1.7, .5, 1) both; }
@keyframes smNeu { 0% { transform: scale(2.2); filter: brightness(2); } 100% { transform: none; filter: none; } }
#ov .zbuch .kbild .meister { position: absolute; right: 6%; bottom: 8%; padding: 6px 12px; border: 3px double #8e1e22; border-radius: 8px; transform: rotate(-12deg);
  font: 700 clamp(12px, 3.4cqmin, 18px)/1 var(--kopf); letter-spacing: 2px; text-transform: uppercase; color: #8e1e22; background: rgba(255, 240, 205, .9); box-shadow: 0 3px 8px rgba(0, 0, 0, .45); }
#ov .zbuch .kbild .meister.wart { opacity: 0; }
#ov .zbuch .kbild .meister.jetzt { animation: meister .6s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes meister { 0% { transform: scale(2.6) rotate(-30deg); opacity: 0; } 100% { transform: rotate(-12deg); opacity: 1; } }
#ov .zbuch .zrt.glimmt { animation: rtGlimmt .8s ease-in-out 4; }
@keyframes rtGlimmt { 50% { filter: brightness(1.5); box-shadow: 0 0 18px rgba(255, 214, 110, .95), inset 0 0 0 2px rgba(255, 240, 190, .9); } }
#ov .zbuch h3.tinte { animation: tinte 1.1s steps(18) .15s both; }
@keyframes tinte { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
#ov .zbuch .zneu { position: absolute; left: 50%; top: 10px; transform: translateX(-50%); z-index: 2; padding: 6px 18px; border-radius: 4px; white-space: nowrap; pointer-events: none;
  font: 700 15px/1 var(--kopf); letter-spacing: 2px; text-transform: uppercase; color: #fff3d0; background: linear-gradient(#7a2ea0, #4a1466); box-shadow: 0 4px 12px rgba(0, 0, 0, .5);
  animation: zneu 3.2s ease both; }
@keyframes zneu { 0% { transform: translate(-50%, -30px); opacity: 0; } 12%, 85% { transform: translate(-50%, 0); opacity: 1; } 100% { transform: translate(-50%, 0); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .spinne .beine, .lstempel, .lstempel span, #ov .zbuch .lv.praegt .sg, #ov .zbuch .lv.praegt .sg::after, #ov .zbuch .lv .st .sm.neu, #ov .zbuch .kbild .meister.jetzt,
  #ov .zbuch .zrt.glimmt, #ov .zbuch h3.tinte, #ov .zbuch .zneu { animation: none; }
}
#sternleiste .sm.bereit:not(.an) { animation: smBereit 1.4s ease-in-out infinite; }
@keyframes smBereit { 50% { filter: drop-shadow(0 0 6px #ffd34a) brightness(1.5); transform: scale(1.18); } }
.bpuls { position: fixed; z-index: 2; pointer-events: none; border-radius: 14px; animation: bpuls .85s ease-in-out 2 both; }
.bpuls.rot { box-shadow: inset 0 0 0 4px rgba(255, 90, 60, .9), inset 0 0 50px rgba(255, 70, 40, .55), 0 0 30px rgba(255, 70, 40, .7); }
.bpuls.gold { box-shadow: inset 0 0 0 4px rgba(255, 220, 120, .9), inset 0 0 60px rgba(255, 210, 90, .6), 0 0 34px rgba(255, 200, 80, .8); animation-iteration-count: 1; }
@keyframes bpuls { 0%, 100% { opacity: 0; } 45% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { #sternleiste .sm.bereit:not(.an), .bpuls { animation: none; } }
.zettelflug { position: fixed; z-index: 30; transform: translateX(-50%); pointer-events: none; display: flex; flex-direction: column; align-items: center; gap: 4px;
  max-width: min(92vw, 420px); padding: 8px 16px 9px; border-radius: 6px; background: #f3e4bf url(img/pergament.webp?v=1) center / cover; color: #3a2414;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(120, 80, 30, .5); animation: zettelflug 3s ease both; }
.zettelflug b { display: inline-flex; align-items: center; gap: 6px; font: 700 13px/1 var(--kopf); letter-spacing: 2px; text-transform: uppercase; color: #6a2a14; }
.zettelflug .zpost { display: inline-flex; align-items: center; gap: 6px; font: 600 15px/1.25 var(--kopf); text-align: center; }
.zettelflug svg { width: 18px; height: 18px; flex: none; }
.zettelflug .zhak { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #2f7a2a; color: #fff; box-shadow: 0 0 0 2px #9be37a;
  animation: zhak .45s cubic-bezier(.3, 1.7, .5, 1) .55s both; }
.zettelflug .zhak svg { width: 16px; height: 16px; }
.zettelflug small { font-size: 12px; color: #5a3a1a; }
.zettelflug.alle { box-shadow: 0 8px 20px rgba(0, 0, 0, .55), 0 0 0 3px #e2b44a, 0 0 26px rgba(255, 200, 90, .7); }
@keyframes zettelflug { 0% { transform: translate(-50%, -40px) rotate(-6deg); opacity: 0; } 12% { transform: translate(-50%, 0); opacity: 1; } 85% { transform: translate(-50%, 0); opacity: 1; } 100% { transform: translate(-50%, -20px); opacity: 0; } }
@keyframes zhak { 0% { transform: scale(2.2); opacity: 0; } 100% { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .zettelflug, .zettelflug .zhak { animation: none; } }

#wZuege.rfeuer { border-color: #ffd36a; box-shadow: 0 0 0 2px rgba(255, 211, 106, .5), 0 0 18px rgba(255, 190, 70, .55); }
#wZuege.rtick b, #wPunkte.rtick b { animation: rtick .28s ease-out; }
@keyframes rtick { 0% { transform: scale(1.28); color: #ffe9a0; } 100% { transform: none; } }
.zugfunke { position: fixed; z-index: 31; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, #fffbe6 0 30%, #ffd36a 55%, rgba(255, 160, 40, 0) 72%); box-shadow: 0 0 12px 4px rgba(255, 200, 90, .7); }
#sternleiste .bestmarke { position: absolute; top: -6px; bottom: -6px; width: 4px; margin-left: -2px; border-radius: 2px; background: linear-gradient(#fff2c0, #e2a93a);
  box-shadow: 0 0 6px rgba(255, 200, 90, .8); z-index: 2; pointer-events: none; transition: opacity .4s, transform .4s; }
#sternleiste .bestmarke::before { content: ''; position: absolute; left: 50%; top: -7px; width: 10px; height: 8px; margin-left: -5px;
  background: #ffd36a; clip-path: polygon(0 100%, 0 20%, 25% 60%, 50% 0, 75% 60%, 100% 20%, 100% 100%); }
#sternleiste .bestmarke.geknackt { opacity: .35; transform: scaleY(.6); }
#wPunkte.rekord { border-color: #ffd36a; animation: rekordGlanz 1.6s ease-in-out 3; }
#wPunkte.rekord b { color: #ffe9a0; }
@keyframes rekordGlanz { 0%, 100% { box-shadow: 0 0 0 1px rgba(255, 211, 106, .6); } 50% { box-shadow: 0 0 0 3px rgba(255, 211, 106, .9), 0 0 26px rgba(255, 200, 90, .8); } }
#wPunkte { position: relative; }
.bkarte.praegt .siegel, .gbkarte.praegt .siegel { animation: sgPraeg .7s cubic-bezier(.3, 1.5, .5, 1) var(--pv, .35s) both; }
.bkarte.praegt .siegel::after, .gbkarte.praegt .siegel::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 3px solid rgba(255, 214, 110, .95);
  pointer-events: none; animation: sgRing .8s ease-out calc(var(--pv, .35s) + .35s) both; }
.bkarte.praegt, .gbkarte.praegt { box-shadow: 0 0 0 2px rgba(255, 211, 106, .75), 0 0 18px rgba(255, 200, 90, .45); }
.kvorhang { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; padding: 0 16px 9vh; cursor: pointer;
  background: #1a0d24 center / cover no-repeat; animation: kvRein .6s ease-out both; }
.kvorhang.weg { animation: kvRaus .5s ease-in both; }
.kvorhang .kvk { max-width: 520px; padding: 16px 22px; border-radius: 14px; text-align: center; color: #fff4d8; background: rgba(28, 14, 36, .9);
  border: 2px solid #d6a84e; box-shadow: 0 12px 30px rgba(0, 0, 0, .6); animation: kvKarte .7s cubic-bezier(.3, 1.4, .5, 1) .25s both; }
.kvorhang .kvn { display: block; font: 600 13px/1.2 var(--kopf); letter-spacing: 3px; text-transform: uppercase; color: #e8c27a; }
.kvorhang b { display: block; font: 700 clamp(28px, 6vw, 46px)/1.1 var(--kopf); color: #ffd36a; text-shadow: 0 2px 0 #3c1a52; margin: 2px 0 8px; }
.kvorhang .kva { display: flex; align-items: center; gap: 12px; text-align: left; font-size: 14px; line-height: 1.35; }
.kvorhang .kva img { width: 46px; height: 46px; flex: none; object-fit: contain; }
.kvorhang .kva em { display: block; font-style: normal; font-weight: 700; color: #ffe9b0; }
@keyframes kvRein { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: none; } }
@keyframes kvRaus { to { opacity: 0; } }
@keyframes kvKarte { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@media (max-height: 480px) { .kvorhang { padding-bottom: 4vh; } .kvorhang .kvk { padding: 10px 16px; } .kvorhang b { font-size: 28px; margin-bottom: 4px; } .kvorhang .kva { font-size: 13px; } }
@media (prefers-reduced-motion: reduce) {
  #wZuege.rtick b, #wPunkte.rtick b, #wPunkte.rekord, .bkarte.praegt .siegel, .gbkarte.praegt .siegel, .bkarte.praegt .siegel::after, .gbkarte.praegt .siegel::after,
  .kvorhang, .kvorhang .kvk { animation: none; }
  .kvorhang.weg { display: none; }
}

#rezept .fach { position: relative; }
#rezept .fach.wunsch { border-color: #ffd36a; box-shadow: 0 0 0 2px rgba(255, 211, 106, .85), 0 0 16px rgba(255, 200, 90, .6); animation: wunschPuls 1s ease-in-out infinite; }
#rezept .fach.wunsch img { animation: wunschHuepf .5s cubic-bezier(.3, 1.6, .5, 1); }
.fach .wmark { position: absolute; right: 4px; top: 50%; margin-top: -10px; z-index: 2; font: 700 12px/1 var(--kopf); color: #2a1606; white-space: nowrap; pointer-events: none;
  background: linear-gradient(#fff1b8, #f2c86a); border: 1px solid #8a5a12; border-radius: 8px; padding: 3px 7px; line-height: 12px; box-shadow: 0 2px 6px rgba(0, 0, 0, .5); animation: wmarkRein .25s ease-out both; }
@keyframes wunschPuls { 0%, 100% { box-shadow: 0 0 0 2px rgba(255, 211, 106, .85), 0 0 10px rgba(255, 200, 90, .45); } 50% { box-shadow: 0 0 0 3px rgba(255, 225, 140, 1), 0 0 22px rgba(255, 200, 90, .8); } }
@keyframes wunschHuepf { 0% { transform: scale(1.35); } 100% { transform: none; } }
@keyframes wmarkRein { from { opacity: 0; transform: translateY(6px) scale(.7); } to { opacity: 1; transform: none; } }
#wZuege { position: relative; }
#wZuege .kerze { position: absolute; left: 5px; top: 11px; bottom: 5px; width: 7px; pointer-events: none; }
#wZuege .kerze .wachs { position: absolute; left: 0; right: 0; bottom: 0; height: 82%; border-radius: 2px 2px 1px 1px; transition: height .6s ease-out;
  background: linear-gradient(90deg, #d9c9a4, #fff6dc 45%, #cdb88c); box-shadow: 0 0 4px rgba(255, 200, 120, .35); }
#wZuege .kerze .docht { position: absolute; left: 50%; top: -3px; width: 1px; height: 3px; margin-left: -.5px; background: #3a2414; }
#wZuege .kerze .flamme { position: absolute; left: 50%; bottom: 100%; width: 7px; height: 11px; margin: 0 0 1px -3.5px; border-radius: 50% 50% 50% 50% / 65% 65% 35% 35%;
  background: radial-gradient(ellipse at 50% 70%, #fffbe6 0 25%, #ffd36a 45%, rgba(255, 130, 40, .9) 70%, rgba(255, 100, 30, 0) 100%);
  box-shadow: 0 0 8px 2px rgba(255, 190, 80, .55); transform-origin: 50% 100%; animation: flackern 1.6s ease-in-out infinite; }
#wZuege .kerze.knapp .flamme { animation-duration: .45s; box-shadow: 0 0 10px 3px rgba(255, 110, 60, .7); }
#wZuege .kerze.aus .flamme { display: none; }
#wZuege .kerze .tropfen { position: absolute; left: -1px; top: 0; width: 4px; height: 5px; border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%; background: #fff6dc; animation: tropfen .85s ease-in both; }
@keyframes flackern { 0%, 100% { transform: scale(1, 1); } 30% { transform: scale(.88, 1.12); } 55% { transform: scale(1.08, .92); } 80% { transform: scale(.95, 1.06); } }
@keyframes tropfen { 0% { transform: none; opacity: 1; } 100% { transform: translateY(26px); opacity: 0; } }
.gast .portrait .serie { position: absolute; right: -12px; bottom: 6px; z-index: 3; display: flex; align-items: center; gap: 3px; font: 700 15px/1 var(--kopf); color: #2a1606; white-space: nowrap;
  background: linear-gradient(#ffe9a0, #f0a640); border: 1px solid #8a4a12; border-radius: 10px; padding: 3px 8px 3px 5px; box-shadow: 0 3px 8px rgba(0, 0, 0, .55); }
.gast .portrait .serie .sflamme { width: 9px; height: 13px; border-radius: 50% 50% 50% 50% / 65% 65% 35% 35%; background: radial-gradient(ellipse at 50% 70%, #fffbe6 0 20%, #ff9a3c 55%, #d2401a 100%);
  transform-origin: 50% 100%; animation: flackern 1.2s ease-in-out infinite; }
.gast .portrait .serie.hoch { animation: seriePop .55s cubic-bezier(.3, 1.6, .5, 1); }
.gast .portrait .serie.riss { color: #e8dccb; background: linear-gradient(#6a5a50, #3e322c); border-color: #2a201a; animation: serieRiss .5s ease-in-out, serieWeg .5s ease-in 1.5s both; }
.gast .portrait .serie.riss .sflamme { background: #7a6a60; animation: none; }
@keyframes seriePop { 0% { transform: scale(.3); opacity: 0; } 60% { transform: scale(1.25); opacity: 1; } 100% { transform: none; } }
@keyframes serieRiss { 0%, 100% { transform: none; } 25% { transform: translateX(-4px); } 50% { transform: translateX(4px); } 75% { transform: translateX(-2px); } }
@keyframes serieWeg { to { opacity: 0; transform: translateY(8px); } }
body.hoch .gast .portrait .serie { font-size: 12px; }
@media (max-width: 760px), (max-height: 540px) { .gast .portrait .serie { font-size: 12px; padding: 2px 6px 2px 4px; right: -10px; bottom: -4px; } .gast .portrait .serie .sflamme { width: 7px; height: 10px; } }
body.hoch .gast .portrait .serie { padding: 2px 6px 2px 4px; right: -10px; bottom: -4px; }
#wPunkte.bestzug { animation: bestzug .9s ease-out; }
@keyframes bestzug { 0% { box-shadow: 0 0 0 3px rgba(150, 230, 255, .9), 0 0 24px rgba(120, 210, 255, .8); } 100% { box-shadow: none; } }
.rezept.neu .fach { animation: fachRein .45s cubic-bezier(.3, 1.4, .5, 1) calc(.2s + var(--j, 0) * .14s) backwards; }
@keyframes fachRein { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  #rezept .fach.wunsch, #rezept .fach.wunsch img, .fach .wmark, #wZuege .kerze .flamme, .gast .portrait .serie, .gast .portrait .serie .sflamme, #wPunkte.bestzug, .rezept.neu .fach { animation: none; }
  #wZuege .kerze .tropfen { display: none; }
}
#rezept .fach.wunsch .fn { visibility: hidden; }
.gast .portrait .serie.best { box-shadow: 0 0 0 2px #fff1b8, 0 0 16px rgba(255, 200, 90, .9); }
.gast .portrait .serie.riss { animation: serieRiss .5s ease-in-out, serieWeg .5s ease-in 1.5s both; }
body.hoch #wZuege { padding-left: 17px; }
@media (max-width: 760px), (max-height: 540px) { body:not(.hoch) #wZuege { padding-left: 14px; } }

#ov .mo-leiter-bahn em:last-of-type b { left: auto; right: -2px; transform: none; }
#ov .zbuch .kst { padding-left: 34px; }
body .warte.bank { display: flex; position: fixed; z-index: 2; flex-direction: row; align-items: center; justify-content: center; gap: 10px; margin: 0; padding: 4px 10px 3px;
  background: linear-gradient(#6a4222, #4a2c14); border: 1px solid #a6763a; border-radius: 10px; box-shadow: 0 4px 10px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 220, 160, .25); box-sizing: border-box; }
body .warte.bank.aus { display: none; }
.warte.bank > span { font-size: 11px; padding: 2px 6px; writing-mode: horizontal-tb; max-width: 74px; text-align: center; line-height: 1.15; }
.warte.bank #warte { gap: 12px; }
.warte.bank #warte img { width: 44px; height: 44px; }
.warte.bank #warte figcaption { font-size: 11px; }
#warte figure { cursor: pointer; }
#warte figure:focus-visible img { outline: 2px solid var(--gold); outline-offset: 2px; }
.wkarte { position: fixed; z-index: 40; box-sizing: border-box; padding: 9px 12px 10px; border-radius: 12px; background: rgba(28, 14, 36, .96); border: 1px solid #d6a84e;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .6); color: #fff4d8; font-size: 13px; line-height: 1.3; pointer-events: none; animation: wkRein .18s ease-out; }
.wkarte b { display: block; font: 700 15px/1.2 var(--kopf); color: #ffd36a; }
.wkarte .wk1 { display: block; color: #d9c9e6; font-size: 12px; }
.wkarte .wk2 { display: block; margin-top: 6px; font-size: 12px; color: #e8c27a; text-transform: uppercase; letter-spacing: 1px; }
.wkarte .wkrz { display: flex; flex-direction: column; gap: 3px; margin-top: 3px; }
.wkarte .wkrz span { display: flex; align-items: center; gap: 6px; font-weight: 700; }
.wkarte .wkrz img { width: 24px; height: 24px; object-fit: contain; }
.wkarte .wk3 { display: block; margin-top: 6px; font-size: 12px; color: #cfe8b8; }
@keyframes wkRein { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .wkarte { animation: none; } }
body .warte.bank.eng { padding: 3px 10px; gap: 8px; }
body .warte.bank.eng #warte figcaption { display: none; }
body .warte.bank.eng > span { max-width: none; white-space: nowrap; }
body .warte.bank.eng #warte img { width: 32px; height: 32px; }
body .warte.bank.eng { padding: 0 8px; }
body .warte.bank.eng #warte figure { padding: 4px; }
@media (max-width: 520px) and (max-height: 700px) { body.hoch #brettbox { margin-top: calc(1% + 10px); } }
body.fxruhig #staub, body.fxruhig .portrait .kz, body.fxruhig .sprech, body.fxruhig #warte figure::before, body.fxruhig #warte figure::after { display: none; }
body.fxruhig #warte img, body.fxruhig .katze img, body.fxruhig .kdampf i, body.fxruhig #wZuege .kerze .flamme, body.fxruhig .gast .portrait .serie .sflamme { animation: none; }
.hm-reihe .fxknopf[aria-pressed="true"] { border-color: #8ec7ff; }
.tippfinger { position: fixed; left: 0; top: 0; z-index: 31; pointer-events: none; color: #fff6d8; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .7)) drop-shadow(0 0 6px rgba(255, 210, 110, .8)); }
.tippfinger svg { width: 100%; height: 100%; }
#rezept .fach.sonder { border-color: rgba(242, 200, 255, .55); }
#rezept .fach.sonder img { filter: drop-shadow(0 0 6px rgba(242, 200, 255, .85)); animation: sonderGlimm 2.4s ease-in-out infinite; }
#rezept .fach.sonder .balken i { background: linear-gradient(90deg, #3fb7c9, #f2c8ff); }
@keyframes sonderGlimm { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.08) rotate(12deg); } }
body.fxruhig #rezept .fach.sonder img { animation: none; }
#gast.pruefer .portrait { box-shadow: 0 0 0 3px #e8c46a, 0 0 18px rgba(232, 196, 106, .55); border-radius: 50%; }
#gast.pruefer #gKrank { color: #ffd98a; font-weight: 700; }
#gast.stufe .portrait img { animation: stufeWirbel .42s ease-in-out; }
@keyframes stufeWirbel { 0% { transform: scale(1); filter: none; } 50% { transform: scale(.86) rotate(-8deg); filter: brightness(1.6) saturate(.6); } 100% { transform: scale(1); filter: none; } }
.deko { position: absolute; z-index: 0; display: flex; align-items: flex-end; justify-content: center; gap: 6px; padding: 0 10px; pointer-events: none; }
.deko img { position: relative; z-index: 1; width: var(--gr, 54px); height: var(--gr, 54px); object-fit: contain; margin-bottom: 6px; filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .6)); }
.deko img.neu { animation: dekoNeu 1.4s ease-out .3s both; }
.deko .brett { position: absolute; left: 0; right: 0; bottom: 0; height: 9px; border-radius: 3px; background: linear-gradient(#8a5a30, #5a3518 60%, #3c220e); box-shadow: 0 6px 8px rgba(0, 0, 0, .55); }
.deko .brett::before, .deko .brett::after { content: ''; position: absolute; top: 9px; width: 8px; height: 16px; background: linear-gradient(90deg, #3c220e, #5a3518); clip-path: polygon(0 0, 100% 0, 0 100%); }
.deko .brett::before { left: 14%; }
.deko .brett::after { right: 14%; transform: scaleX(-1); }
@keyframes dekoNeu { 0% { transform: scale(.2); opacity: 0; filter: brightness(2.2) drop-shadow(0 0 16px #ffe08a); } 60% { transform: scale(1.15); opacity: 1; } 100% { transform: scale(1); filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .6)); } }
body.fxruhig .deko img.neu { animation: none; }
.dekoliste { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.dekoliste .dk { display: grid; justify-items: center; gap: 2px; padding: 8px 6px; border-radius: 12px; background: rgba(20, 10, 4, .6); border: 1px solid rgba(232, 196, 106, .35); text-align: center; }
.dekoliste .dk img { width: 52px; height: 52px; object-fit: contain; }
.dekoliste .dk b { font-size: 13px; }
.dekoliste .dk small { font-size: 12px; color: var(--mute); }
.dekoliste .dk.gesperrt img { filter: grayscale(1) brightness(.45); }
.chip img.dkchip { width: 26px; height: 26px; object-fit: contain; flex: none; }
.gbkarte q { display: block; font-size: 12px; line-height: 1.3; font-style: italic; color: #f3e6cf; margin-top: 4px; quotes: '„' '“'; }
.gbkarte q.leer { color: var(--mute); font-style: normal; quotes: none; }
.gbkarte .andenken { display: block; font-size: 12px; color: #ffd98a; margin-top: 2px; }
.buchdlg .gbraster { grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); }
.dlg.hauptmenue .hm-reihe .knopf { min-height: 44px; height: auto; }
.hauptmenue.eng2 .hm-reihe { margin-top: 6px; gap: 6px; }
.gast .portrait .gbv { z-index: 1; opacity: 0; clip-path: circle(var(--hr, 0%) at 50% 60%); transition: clip-path .55s ease-out, opacity .4s; -webkit-mask-image: radial-gradient(circle at 50% 60%, #000 55%, transparent 100%); mask-image: radial-gradient(circle at 50% 60%, #000 55%, transparent 100%); }
.gast .portrait .gbv.an { opacity: .9; }
.gast.weg .portrait .gbv, .gast.heil .portrait .gbv { opacity: 0; }
#warte figure.bereit .wf { animation: bereitWink 1.1s ease-in-out infinite; box-shadow: 0 0 0 2px #ffe08a, 0 0 12px rgba(255, 224, 138, .6); }
@keyframes bereitWink { 0%, 100% { transform: scale(1.06) rotate(0); } 25% { transform: scale(1.08) rotate(-6deg); } 75% { transform: scale(1.08) rotate(6deg); } }
body.fxruhig #warte figure.bereit .wf { animation: none; transform: scale(1.06); }
.flieger.schmelz { filter: drop-shadow(0 0 6px #ffe08a); }
.katze.sprung img { animation: katzeSprung .9s cubic-bezier(.3, .7, .4, 1); }
@keyframes katzeSprung { 0% { transform: none; } 18% { transform: scale(1.1, .85); } 45% { transform: translateY(-26px) rotate(-14deg) scale(.95, 1.1); } 62% { transform: translateY(-30px) rotate(10deg); } 85% { transform: translateY(0) scale(1.12, .88); } 100% { transform: none; } }
.gast .portrait.besen img { animation: besenWirbel 1s cubic-bezier(.2, .8, .3, 1); }
@keyframes besenWirbel { 0% { transform: translateX(-50%) scale(.2) rotate(-200deg); filter: brightness(2.4) saturate(.3); opacity: 0; } 60% { transform: translateX(-50%) scale(1.1) rotate(12deg); opacity: 1; } 100% { transform: translateX(-50%) scale(1) rotate(0); filter: none; } }
.psiegel { position: absolute; left: 50%; bottom: -6px; z-index: 4; display: flex; gap: 4px; transform: translateX(-50%); pointer-events: none; }
.psiegel i { width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #6a5478, #2e2238); border: 2px solid #8a7398; box-shadow: 0 2px 4px rgba(0, 0, 0, .6); }
.psiegel i.jetzt { border-color: #ffe08a; animation: siegelPuls 1.2s ease-in-out infinite; }
.psiegel i.ok { background: radial-gradient(circle at 40% 35%, #ffe9a8, #c8902a 70%); border-color: #fff2c4; }
.psiegel i.neu { animation: siegelStempel .6s cubic-bezier(.3, 1.6, .5, 1); }
.psiegel i.alle { box-shadow: 0 0 10px #ffe08a, 0 2px 4px rgba(0, 0, 0, .6); }
@keyframes siegelPuls { 50% { box-shadow: 0 0 9px #ffe08a; } }
@keyframes siegelStempel { 0% { transform: scale(2.4); opacity: 0; } 60% { transform: scale(.9); opacity: 1; } 100% { transform: scale(1); } }
body.hoch .psiegel i { width: 12px; height: 12px; border-width: 1px; }
body.hoch .psiegel { bottom: -4px; gap: 2px; }
body.fxruhig .psiegel i.jetzt, body.fxruhig .katze.sprung img { animation: none; }
@media (prefers-reduced-motion: reduce) { .gast .portrait.besen img, .psiegel i { animation: none !important; } }
.deko img { transform-origin: 50% 100%; }
.deko img.nickt { animation: euleNickt .9s ease-in-out; }
@keyframes euleNickt { 0%, 100% { transform: none; } 20% { transform: rotate(-12deg); } 40% { transform: scale(1, .82); } 55% { transform: none; } 75% { transform: rotate(10deg); } }
.deko img.dreht { transform-origin: 50% 50%; animation: uhrDreht .9s cubic-bezier(.5, 0, .3, 1); }
@keyframes uhrDreht { 0% { transform: none; } 100% { transform: rotate(180deg); } }
.deko img.hell { animation: dekoHell 1.2s ease-in-out; }
@keyframes dekoHell { 0%, 100% { filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .6)); } 40% { filter: brightness(1.5) drop-shadow(0 0 14px #ffe08a); } }
.deko img.glaenzt { animation: pokalGlanz 1.1s ease-out; }
@keyframes pokalGlanz { 0% { filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .6)); transform: none; } 35% { filter: brightness(1.8) drop-shadow(0 0 18px #ffd34a); transform: scale(1.15) rotate(-4deg); } 100% { filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .6)); transform: none; } }
#kglut { position: fixed; z-index: 3; pointer-events: none; border-radius: 18px; opacity: 0; box-shadow: inset 0 0 calc(18px + 30px * var(--ks, .3)) var(--kf, #ffe08a), 0 0 calc(10px + 26px * var(--ks, .3)) var(--kf, #ffe08a); }
#kglut.an { animation: kglut 1s ease-out forwards; }
@keyframes kglut { 0% { opacity: 0; } 20% { opacity: .95; } 100% { opacity: 0; } }
.flieger.potion.wirbel { width: 34px; height: 34px; margin: -17px 0 0 -17px; filter: drop-shadow(0 0 6px #ffe08a); }
.flieger.potion.pfunke { width: 16px; height: 16px; margin: -8px 0 0 -8px; }
.chip.urkunde { position: relative; border-color: #e8c46a; background: linear-gradient(135deg, rgba(255, 236, 190, .16), rgba(120, 70, 160, .25)); }
.chip.urkunde .ustempel { position: absolute; right: -6px; top: -8px; width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #ff8a8a, #a01e2a 70%); box-shadow: 0 2px 4px rgba(0, 0, 0, .6); animation: uStempel .7s cubic-bezier(.3, 1.6, .5, 1) .6s both; }
@keyframes uStempel { 0% { transform: scale(2.6) rotate(-30deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
body.fxruhig .deko img.nickt, body.fxruhig .deko img.dreht, body.fxruhig .deko img.hell, body.fxruhig .deko img.glaenzt { animation: none; }
@media (prefers-reduced-motion: reduce) { #kglut.an, .chip.urkunde .ustempel { animation: none; } }

#wetter { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
#wetter::before { content: ''; position: absolute; inset: 0; transition: background .8s; }
body[data-zeit="morgen"] #wetter::before { background: linear-gradient(180deg, rgba(255, 170, 140, .16), rgba(255, 210, 160, .06) 55%, transparent); }
body[data-zeit="abend"] #wetter::before { background: linear-gradient(180deg, rgba(255, 120, 60, .18), rgba(170, 60, 110, .10) 60%, rgba(60, 20, 60, .12)); }
body[data-zeit="nacht"] #wetter::before { background: linear-gradient(180deg, rgba(10, 16, 60, .34), rgba(14, 10, 40, .26)); }
#wetter .wfeld { position: absolute; inset: 0; overflow: hidden; }
#wetter .wfeld.fenster { inset: auto; border-radius: 50%; }
#wetter i { position: absolute; top: -6%; opacity: 0; animation: wRegen 1s linear infinite; }
#wetter.regen i { width: 2px; height: 26px; border-radius: 1px; background: linear-gradient(transparent, rgba(205, 222, 255, .75)); transform: rotate(14deg); }
#wetter.regen .fenster i { height: 12px; }
#wetter.schnee i { width: calc(6px * var(--g, 1)); height: calc(6px * var(--g, 1)); border-radius: 50%; background: #fff; box-shadow: 0 0 5px rgba(255, 255, 255, .8); animation-name: wSchnee; }
@keyframes wRegen { 0% { opacity: 0; transform: translate(0, 0) rotate(14deg); } 8% { opacity: .8; } 92% { opacity: .6; } 100% { opacity: 0; transform: translate(var(--dx), 112cqh) rotate(14deg); } }
@keyframes wSchnee { 0% { opacity: 0; transform: translate(0, 0); } 10% { opacity: .9; } 50% { transform: translate(calc(var(--dx) * .6), 56cqh); } 90% { opacity: .75; } 100% { opacity: 0; transform: translate(var(--dx), 112cqh); } }
#wetter .wfeld { container-type: size; }
body.fxruhig #wetter i { display: none; }
@media (prefers-reduced-motion: reduce) { #wetter i { display: none; } }

.medaille { display: inline-block; flex: none; width: 18px; height: 18px; border-radius: 50%; vertical-align: -4px; position: relative;
  background: radial-gradient(circle at 35% 30%, #fff8 0 18%, transparent 30%), var(--mg, #c8884a); box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .25), 0 1px 3px rgba(0, 0, 0, .5); }
.medaille::after { content: ''; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; transform: translate(-50%, -50%) rotate(45deg); border: 1.5px solid rgba(60, 30, 10, .55); border-radius: 1px; }
.medaille.m0 { --mg: linear-gradient(135deg, #6a5a70, #3a2e40); }
.medaille.m0::after { border-color: rgba(255, 255, 255, .25); }
.medaille.m1 { --mg: linear-gradient(135deg, #e0a070, #9a5a2a); }
.medaille.m2 { --mg: linear-gradient(135deg, #f4f6fa, #9aa2b0); }
.medaille.m3 { --mg: linear-gradient(135deg, #ffe58a, #c99a20); }
.knote { display: inline-flex; align-items: center; gap: 5px; margin-left: 12px; vertical-align: middle; }
.knote.leer { color: #7a5a3a; font-weight: 600; }
.chip.urkunde .medaille { width: 20px; height: 20px; }
.chip.urkunde { padding-right: 20px; }
#ov .mo-tafel:has(.buchneu .chip:nth-of-type(3)) .mo-tipp { display: none; }

.deko img.mina { width: calc(var(--gr, 54px) * .62); height: calc(var(--gr, 54px) * .62); margin-left: -2px; }
.dekoliste .dk.mina img { width: 44px; height: 44px; }
.ausst.gesperrt { cursor: default; }

#gast.selten .portrait { border-radius: 50%; box-shadow: 0 0 0 3px #ffe08a, 0 0 22px rgba(255, 220, 130, .7); animation: wgGlanz 2.4s ease-in-out infinite; }
@keyframes wgGlanz { 50% { box-shadow: 0 0 0 3px #fff3c0, 0 0 32px rgba(255, 230, 150, .95); } }
#warte figure.selten .wf { border-radius: 50%; box-shadow: 0 0 0 2px #ffe08a, 0 0 12px rgba(255, 220, 130, .75); }
.portrait .kz.k9 { width: 5px; height: 5px; border-radius: 50%; background: #c8c4d0; box-shadow: 0 0 4px rgba(200, 196, 208, .6); }
.portrait .kz.k10 { width: 9px; height: 6px; border-radius: 80% 0; background: linear-gradient(135deg, #c8862e, #7a4a18); animation-name: kzFaellt; }
.portrait .kz.k11 { width: 9px; height: 9px; background: #ffe27a; clip-path: polygon(50% 0, 62% 38%, 100% 38%, 69% 60%, 80% 100%, 50% 75%, 20% 100%, 31% 60%, 0 38%, 38% 38%); }
.portrait .kz.k12 { width: 6px; height: 6px; border-radius: 50%; background: radial-gradient(circle, #ff9a40, #6a5a50 70%); }
.dekoliste .dk.wg img { width: 56px; height: 56px; border-radius: 50%; }
.dekoliste .dk.wg.jetzt { border-color: #ffe08a; box-shadow: 0 0 10px rgba(255, 220, 130, .45); }
.dekoliste .dk.wg.jetzt small { color: #ffe08a; }
.chip.selten { border-color: #ffe08a; }
@media (prefers-reduced-motion: reduce) { #gast.selten .portrait { animation: none; } }
body.fxruhig #gast.selten .portrait { animation: none; }
