:root { --bg2: #3a2a1c; --holz1: #b98c58; --holz2: #7d5530; --holz3: #4f3218; --papier: #f7f0de; --papier2: #ece1c6; --rand: rgba(90, 60, 30, .45);
  --text: #2b2216; --leise: #5c4e3a; --akzent: #8a4a1c; --akzent2: #6a3410; --gold: #c9871b; --gut: #2f6e2c; --warn: #9a3a22; --schatten: rgba(40, 25, 10, .4);
  --leiste-text: #fff3dc; --leiste-leise: #f0d9b4; --ov: rgba(60, 40, 20, .32); --blech1: #7d8a8e; --blech2: #d7dde0; --wert-bg: #3a2614; --wert-text: #fff3dc;
  --lade1: #f3e6c8; --lade2: #d8bf8e; --kulisse-q: url(img/kulisse-tag-q.webp); --kulisse-h: url(img/kulisse-tag-h.webp); }
:root[data-ansicht="abend"] { --bg2: #1e130b; --papier: #f4e6cc; --papier2: #e8d3ac; --ov: rgba(30, 14, 6, .45); --kulisse-q: url(img/kulisse-abend-q.webp); --kulisse-h: url(img/kulisse-abend-h.webp); }
:root[data-ansicht="hell"] { --bg2: #ece3cf; --holz1: #d6b07e; --holz2: #a87c4c; --holz3: #7a5530; --papier: #fbf6ea; --papier2: #f1e8d4; --text: #2b2216; --leise: #5c4e3a;
  --ov: rgba(120, 100, 70, .22); --wert-bg: #5a4028; --lade1: #fbf3e0; --lade2: #e6d2a8; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg2); color: var(--text); font: 16px/1.4 Georgia, 'Times New Roman', serif;
  -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
* { scrollbar-width: thin; scrollbar-color: var(--holz2) transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; } ::-webkit-scrollbar-thumb { background: var(--holz2); border-radius: 4px; } ::-webkit-scrollbar-track { background: transparent; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; cursor: pointer; }
.zf { display: inline-block; width: .6em; text-align: center; font-style: normal; }

#buehne { position: fixed; left: 0; top: 0; transform-origin: 0 0; display: grid; overflow: hidden; background: var(--bg2);
  grid-template-columns: 128px 1fr 248px auto; grid-template-rows: 92px 1fr; grid-template-areas: "dose kasten wecker knoepfe" "feld feld feld feld"; gap: 8px 10px; padding: 8px 12px 10px; }
#buehne.hoch { grid-template-columns: 116px 1fr auto; grid-template-rows: 70px 1fr auto; grid-template-areas: "dose wecker knoepfe" "feld feld feld" "kasten kasten kasten"; padding: 8px 8px 10px; }
#kulisse { position: absolute; inset: 0; z-index: 0; background: var(--kulisse-q) center / cover no-repeat; }
#buehne.hoch #kulisse { background-image: var(--kulisse-h); }
:root[data-ansicht="hell"] #kulisse { filter: brightness(1.12) saturate(.85); }
#buehne > *:not(#kulisse):not(#ov):not(#toast) { position: relative; z-index: 1; }

#dose { grid-area: dose; align-self: center; height: 78px; border-radius: 10px 10px 14px 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--text);
  background: linear-gradient(90deg, var(--blech1), var(--blech2) 45%, var(--blech1)); border: 2px solid #4a5457; box-shadow: 0 6px 12px var(--schatten), inset 0 -6px 0 rgba(0, 0, 0, .12); }
#dose .deckel { position: absolute; left: -2px; right: -2px; top: -2px; height: 12px; border-radius: 9px 9px 3px 3px; background: #5b6568; }
#dose b { margin-top: 8px; font-size: 27px; line-height: 1; background: #efe6d0; padding: 3px 10px; border-radius: 5px; min-width: 76px; text-align: center; box-shadow: inset 0 1px 3px rgba(0, 0, 0, .3); }
#dose span { font-size: 13px; margin-top: 2px; color: #14100b; font-weight: 700; text-shadow: 0 1px 0 rgba(255, 255, 255, .55); }
#dose.voll { animation: dose .25s ease-out; }
@keyframes dose { 40% { transform: scale(1.07) rotate(-2deg); } }
#buehne.hoch #dose { height: 62px; } #buehne.hoch #dose b { font-size: 22px; min-width: 64px; margin-top: 6px; }

#kasten { grid-area: kasten; align-self: center; display: flex; gap: 5px; padding: 6px; border-radius: 6px; min-width: 0; justify-content: flex-start;
  background: repeating-linear-gradient(90deg, rgba(0, 0, 0, .05) 0 2px, transparent 2px 21px), linear-gradient(180deg, var(--holz1), var(--holz2) 70%, var(--holz3)) var(--holz2);
  border: 2px solid var(--holz3); box-shadow: 0 6px 14px var(--schatten); }
.lade { position: relative; flex: 0 0 60px; height: 74px; padding: 2px 0 0; border-radius: 4px; border: 2px solid var(--holz3); overflow: hidden; display: flex; flex-direction: column; align-items: center;
  background: linear-gradient(180deg, var(--lade1), var(--lade2)); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .12); touch-action: none; }
#kasten.viele .lade { flex-basis: 48px; height: 74px; } #kasten.viele .lade img { width: 46px; height: 46px; } #kasten.viele .lade.kehr, #kasten.viele .lade.rat { flex-basis: 44px; } #kasten.viele .kehrbild { width: 38px; }
.lade img { width: 56px; height: 50px; object-fit: contain; pointer-events: none; }
.lade b { font-size: 14px; line-height: 1.2; color: var(--text); }
.lade .taste { position: absolute; left: 3px; top: 1px; font-size: 11px; font-style: normal; color: var(--leise); }
.lade .schatten { position: absolute; left: 0; right: 0; top: 0; height: 0; background: rgba(40, 25, 12, .55); pointer-events: none; transition: height .2s linear; }
.lade.zu { opacity: .55; border-style: dashed; }
.lade.teuer { opacity: .5; border-style: dashed; } .lade.teuer b { color: var(--warn); text-decoration: line-through; }
.lade.gewaehlt { border-color: #f2cf63; box-shadow: 0 0 0 3px #f2cf63, 0 0 14px #f2cf63; transform: translateY(-3px); opacity: 1; }
.lade:active { transform: translateY(1px); }
.lade.kehr { margin-left: auto; }
.kehrbild { display: block; width: 44px; height: 44px; margin-top: 4px; pointer-events: none;
  background: linear-gradient(160deg, transparent 46%, #6b4423 47% 55%, transparent 56%), linear-gradient(180deg, transparent 40%, #9aa3a6 41% 92%, transparent 93%) 6px 12px / 32px 30px no-repeat; }
#buehne.hoch #kasten { flex-wrap: wrap; justify-content: center; gap: 6px; padding: 8px; }
#buehne.hoch .lade { flex: 0 0 80px; height: 84px; } #buehne.hoch .lade img { width: 70px; height: 56px; } #buehne.hoch .lade b { font-size: 16px; }
#buehne.hoch .lade.kehr { margin-left: 0; }

#wecker { grid-area: wecker; align-self: center; height: 78px; display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 10px; color: var(--text);
  background: linear-gradient(180deg, var(--papier), var(--papier2)); border: 2px solid var(--holz2); box-shadow: 0 6px 12px var(--schatten); }
#w-uhr { flex: none; width: 48px; height: 48px; border-radius: 50%; position: relative; background: radial-gradient(circle, #fbf6ea 54%, #b83a2c 56%); box-shadow: 0 2px 4px var(--schatten); }
#w-uhr::before, #w-uhr::after { content: ''; position: absolute; top: -5px; width: 13px; height: 13px; border-radius: 50%; background: var(--gold); }
#w-uhr::before { left: 0; } #w-uhr::after { right: 0; }
#wecker.rasselt { animation: rassel .12s linear infinite; }
@keyframes rassel { 50% { transform: rotate(3deg); } }
#wecker > div { display: flex; flex-direction: column; min-width: 0; flex: 1; }
#w-welle { font-size: 17px; white-space: nowrap; }
#w-naechst { font-size: 13px; color: var(--leise); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#w-balken { display: block; height: 8px; border-radius: 4px; background: rgba(90, 60, 30, .25); margin-top: 4px; overflow: hidden; }
#w-balken i { display: block; height: 100%; width: 0; background: var(--akzent); transition: width .4s; }
#buehne.hoch #wecker { height: 62px; } #buehne.hoch #w-uhr { width: 38px; height: 38px; }

#knoepfe { grid-area: knoepfe; align-self: center; display: grid; grid-template-columns: repeat(3, 42px); gap: 5px; }
#buehne.hoch #knoepfe { grid-template-columns: repeat(3, 40px); gap: 4px; }
#knoepfe button { position: relative; width: 42px; height: 40px; border-radius: 9px; border: 1px solid var(--holz3); display: flex; align-items: center; justify-content: center; padding: 0; color: var(--text);
  background: linear-gradient(180deg, #f6e7c4, #d9bd8a); box-shadow: 0 3px 0 var(--holz3), 0 4px 8px var(--schatten); }
#buehne.hoch #knoepfe button { width: 40px; height: 29px; }
#knoepfe button:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--holz3); }
#knoepfe button svg { width: 20px; height: 20px; }
#knoepfe button small { position: absolute; right: 2px; bottom: 0; font-size: 11px; font-weight: 700; }
#knoepfe button.an { background: linear-gradient(180deg, #ffe8a3, #e7b95a); }

#feldbox { grid-area: feld; position: relative; display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 0; overflow: hidden; touch-action: none; }
#rahmen { position: relative; flex: none; touch-action: none; }
#cv { display: block; touch-action: none; }
#bann { position: absolute; left: 50%; top: 10px; transform: translateX(-50%); max-width: 70%; padding: 8px 18px 9px; border-radius: 6px; text-align: center; font-size: 15px; line-height: 1.35;
  background: linear-gradient(180deg, var(--papier), var(--papier2)); border: 1px solid var(--rand); box-shadow: 0 6px 16px var(--schatten); pointer-events: none; z-index: 3; }
#bann b { display: block; font-size: 17px; color: var(--akzent2); }
#bann.neu { animation: bann .3s ease-out; }
@keyframes bann { from { opacity: 0; transform: translate(-50%, -8px); } }
#buehne.hoch #bann { max-width: 92%; font-size: 13px; }
#hinweis { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); display: flex; gap: 10px; align-items: center; padding: 8px 12px; border-radius: 8px; z-index: 4;
  background: linear-gradient(180deg, var(--papier), var(--papier2)); border: 1px solid var(--rand); box-shadow: 0 6px 16px var(--schatten); white-space: nowrap; }
#toast { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 30; max-width: 80%; padding: 9px 16px; border-radius: 8px; font-size: 15px; text-align: center;
  background: #2b2216; color: #fff3dc; box-shadow: 0 6px 16px rgba(0, 0, 0, .4); pointer-events: none; }

#ov { position: absolute; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center; padding: 18px; background: var(--ov); overflow: auto; }
.kasten { position: relative; width: min(760px, 100%); max-height: 100%; overflow: auto; padding: 22px 26px 20px; border-radius: 8px; color: var(--text);
  background: linear-gradient(180deg, var(--papier), var(--papier2)); border: 1px solid var(--rand); box-shadow: 0 16px 40px rgba(0, 0, 0, .45); }
.kasten.mitte { width: min(560px, 100%); text-align: center; }
.kasten h2 { margin: 0 0 8px; font-size: 26px; color: var(--akzent2); }
.kasten h3 { margin: 14px 0 6px; font-size: 17px; color: var(--akzent); }
.kasten p { margin: 6px 0; }
.kasten .zu { position: sticky; top: 0; float: right; margin: -10px -14px 0 8px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--rand); z-index: 2;
  display: flex; align-items: center; justify-content: center; background: var(--papier); padding: 0; }
.kasten .zu svg { width: 18px; height: 18px; }
.klein { font-size: 14px; color: var(--leise); }
.warn { color: var(--warn); }
.reihe { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 14px; }
.reihe button, .modus { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 16px; border-radius: 8px; border: 1px solid var(--holz3); color: var(--text);
  background: linear-gradient(180deg, #f6e7c4, #d9bd8a); box-shadow: 0 3px 0 var(--holz3); }
.reihe button svg, .modus svg { width: 20px; height: 20px; flex: none; }
.reihe button.haupt { background: linear-gradient(180deg, #c8623a, #8a3a1c); color: #fff3dc; border-color: #5a2410; }
.reihe button:active, .modus:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--holz3); }
.titel { font-size: 46px; font-weight: 700; font-style: italic; text-align: center; letter-spacing: .04em; line-height: 1; }
.titel span { color: var(--holz2); } .titel b { color: var(--akzent); }
.unter { text-align: center; color: var(--leise); margin: 8px auto 14px !important; max-width: 560px; }
.modi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.modus { flex-direction: column; text-align: center; padding: 14px 10px; min-height: 120px; justify-content: center; }
.modus svg { width: 28px; height: 28px; }
.modus b { font-size: 19px; } .modus span { font-size: 13px; color: var(--leise); }
.klein-knoepfe button { min-height: 40px; padding: 6px 12px; font-size: 15px; }
#buehne.hoch .modi { grid-template-columns: 1fr; } #buehne.hoch .modus { min-height: 72px; }
.stempel { display: inline-block; padding: 4px 14px; border: 3px double var(--akzent); color: var(--akzent); border-radius: 4px; transform: rotate(-3deg); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: 15px; margin-bottom: 8px; }
.stempel.gut { color: var(--gut); border-color: var(--gut); }
.neu-maus img { display: block; margin: 4px auto; width: 168px; height: 108px; }
.hilft { color: var(--gut); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px 2px 4px; border-radius: 16px; background: rgba(255, 255, 255, .55); border: 1px solid var(--rand); font-size: 14px; }
.chip img { width: 40px; height: 34px; object-fit: contain; }
.level { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 10px; }
#buehne.hoch .level { grid-template-columns: repeat(2, 1fr); }
.lv { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 128px; padding: 8px 6px; border-radius: 8px; border: 1px solid var(--holz3);
  background: linear-gradient(180deg, #f6e7c4, #d9bd8a); box-shadow: 0 3px 0 var(--holz3); text-align: center; }
.lv em { font-style: normal; font-size: 22px; font-weight: 700; color: var(--akzent); }
.lv b { font-size: 14px; line-height: 1.2; }
.lv img { width: 60px; height: 38px; object-fit: contain; }
.lv small { display: flex; align-items: center; gap: 3px; font-size: 12px; color: var(--leise); } .lv small svg { width: 14px; height: 14px; }

.sterne { display: inline-flex; gap: 3px; justify-content: center; }
.sterne i svg { width: 18px; height: 18px; color: rgba(90, 60, 30, .3); fill: currentColor; }
.sterne i.an svg { color: var(--gold); }
.kasten.ende .sterne i svg { width: 34px; height: 34px; }
.kopfzeile { font-size: 13px; color: var(--leise); text-align: center; border-bottom: 1px solid var(--rand); padding-bottom: 6px; margin-bottom: 10px; }
.kasten.ende { width: min(600px, 100%); text-align: center; }
.grund { font-size: 17px; }
.rechnung { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 15px; }
.rechnung td { padding: 5px 8px; border-bottom: 1px dotted var(--rand); text-align: left; }
.rechnung td:last-child { text-align: right; font-variant-numeric: lining-nums tabular-nums; }
.rechnung .summe td { font-weight: 700; border-bottom: 0; border-top: 2px solid var(--rand); font-size: 17px; }
.eintraege { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
#buehne.hoch .eintraege { grid-template-columns: 1fr; }
.eintrag { display: flex; gap: 10px; align-items: flex-start; padding: 8px; border-radius: 6px; background: rgba(255, 255, 255, .45); border: 1px solid var(--rand); }
.eintrag img { width: 90px; height: 64px; object-fit: contain; flex: none; }
.eintrag p { margin: 2px 0; font-size: 14px; }
.erfolge { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.erfolg { display: grid; grid-template-columns: 24px 1fr; gap: 0 8px; align-items: center; padding: 8px; border-radius: 6px; border: 1px dashed var(--rand); opacity: .6; }
.erfolg svg { width: 22px; height: 22px; grid-row: span 2; color: rgba(90, 60, 30, .35); }
.erfolg.an { opacity: 1; border-style: solid; background: rgba(255, 255, 255, .5); } .erfolg.an svg { color: var(--gold); }
.erfolg span { font-size: 13px; color: var(--leise); }
.kurz { background: rgba(255, 255, 255, .5); border: 1px solid var(--rand); border-radius: 6px; padding: 8px 14px; }
.kurz ul { margin: 6px 0 0 18px; padding: 0; }
.finger #knoepfe button { touch-action: manipulation; }
@media (prefers-reduced-motion: reduce) { #wecker.rasselt, #dose.voll, #bann.neu { animation: none; } }

#w-zettel { display: flex; gap: 4px; height: 22px; align-items: center; margin-top: 2px; overflow: hidden; }
#w-zettel i { display: inline-flex; align-items: center; font-style: normal; font-size: 12px; font-weight: 700; color: var(--text); }
#w-zettel img { width: 30px; height: 20px; object-fit: contain; }
#b-rufen { flex: none; align-self: stretch; width: 46px; border-radius: 8px; border: 1px solid var(--holz3); padding: 0; font-size: 13px; font-weight: 700; color: var(--text);
  background: linear-gradient(180deg, #f6e7c4, #d9bd8a); box-shadow: 0 3px 0 var(--holz3); }
#b-rufen.an { background: linear-gradient(180deg, #ffe8a3, #e7b95a); }
#b-rufen:disabled { opacity: .5; border-style: dashed; box-shadow: none; cursor: default; }
#b-rufen:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 1px 0 var(--holz3); }
.lade.rat svg { width: 34px; height: 34px; margin-top: 8px; color: var(--gold); pointer-events: none; }
.lade.rat b { margin-top: 4px; }
.neu-erfolge { display: flex; flex-direction: column; gap: 4px; margin: 8px 0; }
.neu-erfolge span { display: flex; align-items: center; gap: 6px; justify-content: center; font-size: 14px; padding: 4px 8px; border-radius: 6px; background: rgba(201, 135, 27, .16); }
.neu-erfolge svg { width: 18px; height: 18px; color: var(--gold); }
#buehne.hoch #w-zettel { display: none; }
#buehne.hoch #b-rufen { width: 40px; font-size: 12px; }

.kaps { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin: 4px 0 8px; }
.kap { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px 4px; min-height: 66px; border-radius: 8px; border: 1px solid var(--holz3); text-align: center;
  background: linear-gradient(180deg, #f3e6c8, #d8bf8e); box-shadow: 0 2px 0 var(--holz3); color: var(--text); }
.kap b { font-size: 14px; } .kap span { font-size: 12px; line-height: 1.15; color: var(--leise); } .kap small { font-size: 11px; color: var(--akzent); }
.kap.an { background: linear-gradient(180deg, #c8623a, #8a3a1c); color: #fff3dc; border-color: #5a2410; } .kap.an span, .kap.an small { color: #fbe6c8; }

#buehne.hoch .kaps { grid-template-columns: repeat(3, 1fr); }
.kniffe { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
#buehne.hoch .kniffe { grid-template-columns: 1fr; }
.kniff { display: grid; grid-template-columns: 28px 1fr; gap: 0 8px; align-items: center; text-align: left; padding: 10px; min-height: 64px; border-radius: 8px; border: 1px solid var(--holz3);
  background: linear-gradient(180deg, #f6e7c4, #d9bd8a); box-shadow: 0 2px 0 var(--holz3); color: var(--text); }
.kniff svg { width: 24px; height: 24px; grid-row: span 3; color: var(--holz2); }
.kniff b { font-size: 15px; } .kniff span { font-size: 13px; color: var(--leise); } .kniff small { font-size: 12px; color: var(--akzent); }
.kniff.an { background: linear-gradient(180deg, #ffe8a3, #e7b95a); box-shadow: 0 0 0 3px #f2cf63; } .kniff.an svg { color: var(--gut); }

.chip.wahl { cursor: pointer; font: inherit; font-size: 14px; color: var(--text); opacity: .55; border-style: dashed; min-height: 40px; }
.chip.wahl.an { opacity: 1; border-style: solid; background: #ffe8a3; box-shadow: 0 0 0 2px #f2cf63; }
.wahlzahl { font-size: 13px; color: var(--leise); font-weight: 400; }
.hinweis { margin: 8px auto !important; padding: 6px 10px; border-radius: 6px; background: rgba(138, 74, 28, .1); border-left: 4px solid var(--akzent); text-align: left; font-size: 14px; max-width: 480px; }

#buehne.hoch { grid-template-columns: 96px 1fr auto; grid-template-rows: 92px 1fr auto; gap: 6px 6px; padding: 6px 6px 8px; }
#buehne.hoch #dose { height: 70px; } #buehne.hoch #dose b { font-size: 22px; min-width: 70px; }
#buehne.hoch #wecker { height: 84px; padding: 4px 6px; gap: 4px; flex-direction: column; align-items: stretch; justify-content: center; }
#buehne.hoch #w-uhr { display: none; }
#buehne.hoch #w-welle { font-size: 15px; } #buehne.hoch #w-naechst { font-size: 14px; }
#buehne.hoch #b-rufen { width: auto; height: 32px; flex: none; font-size: 14px; align-self: stretch; }
#buehne.hoch #knoepfe { grid-template-columns: repeat(3, 44px); gap: 4px; }
#buehne.hoch #knoepfe button { width: 44px; height: 42px; }
#buehne.hoch #knoepfe button small { font-size: 13px; }
#buehne.hoch #kasten { gap: 5px; padding: 6px; }
#buehne.hoch .lade, #buehne.hoch #kasten.viele .lade { flex: 0 0 66px; height: 76px; } #buehne.hoch .lade img, #buehne.hoch #kasten.viele .lade img { width: 56px; height: 46px; } #buehne.hoch .lade b { font-size: 15px; }
#buehne.hoch .lade .taste { font-size: 13px; }
#buehne.hoch .klein-knoepfe button { min-height: 46px; font-size: 15px; }
#buehne.hoch .kasten { padding: 16px 14px 14px; } #buehne.hoch .kasten h2 { font-size: 22px; }
#buehne.hoch .klein, #buehne.hoch .kap span, #buehne.hoch .kap small, #buehne.hoch .lv small, #buehne.hoch .kniff span, #buehne.hoch .kniff small, #buehne.hoch .erfolg span { font-size: 13px; }
#buehne.hoch .kap { min-height: 64px; } #buehne.hoch .level { grid-template-columns: repeat(2, 1fr); }
#buehne.hoch .modus { min-height: 64px; }

#buehne.hoch { grid-template-rows: 104px 1fr auto; }
#buehne.hoch #knoepfe { grid-template-columns: repeat(3, 48px); }
#buehne.hoch #knoepfe button { width: 48px; height: 48px; }
#buehne.hoch #wecker { height: 98px; }
#buehne.hoch #b-rufen { height: 48px; }
#buehne.hoch .kasten .zu { width: 48px; height: 48px; }
#buehne.hoch .chip.wahl { min-height: 48px; }
#buehne.hoch .reihe button { min-height: 48px; }
.kap.gesperrt, .lv.gesperrt, .kniff.gesperrt { opacity: 1; background: #e4d8c2; color: #4a3f30; border-style: dashed; box-shadow: none; }
.kap.gesperrt span, .kap.gesperrt small, .lv.gesperrt small, .kniff.gesperrt span, .kniff.gesperrt small { color: #4a3f30; }
.lv.gesperrt em, .lv.gesperrt .sterne i svg { color: #7a6a52; }
.chip.wahl { opacity: 1; background: #e9dfcc; color: #4a3f30; }
.reihe button.haupt { background: linear-gradient(180deg, #a84a26, #7a3216); }
.kap.an { background: linear-gradient(180deg, #a84a26, #7a3216); }
#hinweis { gap: 10px; padding: 8px 10px 8px 16px; font-size: 15px; }
#hinweis button { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 6px 14px; border-radius: 8px; border: 1px solid var(--holz3); color: var(--text); font-size: 15px;
  background: linear-gradient(180deg, #f6e7c4, #d9bd8a); box-shadow: 0 3px 0 var(--holz3); white-space: nowrap; }
#hinweis button:first-of-type { background: linear-gradient(180deg, #a84a26, #7a3216); color: #fff3dc; border-color: #5a2410; }
#hinweis button svg { width: 20px; height: 20px; flex: none; }
#hinweis button:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--holz3); }
#buehne.hoch #hinweis { left: 6px; right: 6px; transform: none; flex-wrap: wrap; justify-content: center; white-space: normal; }

.aufgaben { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; text-align: left; }
.aufgabe { display: grid; grid-template-columns: 26px 1fr auto; grid-template-areas: "i b s" "i e e"; gap: 2px 8px; align-items: center; padding: 8px 10px; border-radius: 6px; background: rgba(255, 255, 255, .5); border: 1px dashed var(--rand); }
.aufgabe svg { grid-area: i; width: 22px; height: 22px; color: var(--holz2); }
.aufgabe b { grid-area: b; font-size: 15px; } .aufgabe span { grid-area: s; font-size: 14px; color: var(--leise); font-variant-numeric: tabular-nums; }
.aufgabe em { grid-area: e; display: block; height: 8px; border-radius: 4px; background: rgba(90, 60, 30, .2); overflow: hidden; }
.aufgabe em i { display: block; height: 100%; background: var(--akzent); }
.aufgabe.an { border-style: solid; background: rgba(201, 135, 27, .16); } .aufgabe.an svg { color: var(--gut); } .aufgabe.an em i { background: var(--gut); }
.abzeichen-reihe { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
#buehne.hoch .abzeichen-reihe { grid-template-columns: 1fr 1fr; }
.abzeichen { display: grid; grid-template-columns: 38px 1fr; gap: 0 8px; align-items: center; padding: 8px; border-radius: 6px; border: 1px dashed var(--rand); background: #e9dfcc; }
.abzeichen i { grid-row: span 2; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-style: normal; font-weight: 700; background: #cfc2a8; color: #4a3f30; }
.abzeichen b { font-size: 14px; } .abzeichen span { font-size: 13px; color: var(--leise); }
.abzeichen.bronze { border-style: solid; background: #f3e3c8; } .abzeichen.bronze i { background: radial-gradient(circle at 35% 30%, #f0c08a, #b0713a); color: #fff3dc; }
.abzeichen.gold { border-style: solid; background: #fbefc8; } .abzeichen.gold i { background: radial-gradient(circle at 35% 30%, #fff1a8, #c9871b); color: #4a2a08; box-shadow: 0 0 8px #f2cf63; }
#wecker.tick #w-uhr { animation: tick .35s ease-out; }
@keyframes tick { 40% { transform: scale(1.15) rotate(-6deg); } }
.sterne.nacheinander i { animation: stern .5s ease-out both; }
.sterne.nacheinander i:nth-child(2) { animation-delay: .35s; } .sterne.nacheinander i:nth-child(3) { animation-delay: .7s; }
@keyframes stern { from { transform: scale(0) rotate(-40deg); opacity: 0; } 70% { transform: scale(1.3); } }
@media (prefers-reduced-motion: reduce) { .sterne.nacheinander i, #wecker.tick #w-uhr { animation: none; } }

.bonusziel { display: flex; align-items: center; gap: 6px; justify-content: center; margin: 8px auto !important; padding: 6px 10px; border-radius: 6px; background: rgba(90, 110, 60, .12); border: 1px dashed rgba(47, 110, 44, .5); font-size: 14px; max-width: 480px; }
.bonusziel svg { width: 18px; height: 18px; flex: none; color: var(--akzent); }
.bonusziel.an { background: rgba(47, 110, 44, .16); border-style: solid; } .bonusziel.an svg { color: var(--gut); }
.lv small.bonus { color: var(--gut); font-weight: 700; } .lv small.bonus svg { color: var(--gut); }
@media (hover: hover) { .lade:hover:not(.zu):not(.teuer):not(.gewaehlt) { transform: translateY(-2px); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .12), 0 4px 8px var(--schatten); } }

:root { --kulisse-alm-q: url(img/kulisse-alm-q.webp); --kulisse-alm-h: url(img/kulisse-alm-h.webp); }
#buehne.kap-alm #kulisse { background-image: var(--kulisse-alm-q); }
#buehne.kap-alm.hoch #kulisse { background-image: var(--kulisse-alm-h); }
