:root { --bg: #08140e; --tafel1: rgba(16, 44, 30, .95); --tafel2: rgba(8, 26, 18, .97); --text: #f4f1e6; --leise: #c8d8cc; --akzent: #ffd23a;
  --emaille1: #fbf6e4; --emaille2: #efe6c8; --emailleschrift: #12301e; --emaillerand: #8a6a10; --knopf: #1e5a34; --knopfschrift: #f4f1e6;
  --ov: rgba(2, 10, 6, .5); --fenster1: rgba(252, 250, 238, .97); --fenster2: rgba(240, 236, 214, .97); --fensterschrift: #14281c; --fensterleise: #4a5e50;
  --haupt: #c8281e; --hauptschrift: #fff8f0; --gut: #1e7a4a; --warn: #b4401e; --schatten: rgba(0, 0, 0, .5); --holz: #10241a; }
:root[data-ansicht="tag"] { --bg: #cfe2c8; --tafel1: rgba(232, 240, 226, .95); --tafel2: rgba(216, 228, 208, .97); --text: #12301e; --leise: #3e5a46; --akzent: #b8280e;
  --emaille1: #f6f4ea; --emaille2: #e6e2d0; --emailleschrift: #12301e; --emaillerand: #b8280e; --knopf: #2a6a3e; --knopfschrift: #f6f4ea; --holz: #6a4a2a;
  --ov: rgba(30, 50, 30, .3); --haupt: #b8280e; --hauptschrift: #fbf6ec; }
:root[data-ansicht="schnee"] { --bg: #2a3448; --tafel1: rgba(52, 66, 92, .95); --tafel2: rgba(36, 46, 70, .97); --akzent: #ffe9a8;
  --emaille1: #f8faff; --emaille2: #e6ecf6; --emailleschrift: #1f2a44; --emaillerand: #d2324a; --knopf: #d2324a; --holz: #2c3658;
  --ov: rgba(20, 30, 50, .4); --haupt: #d2324a; --hauptschrift: #fff8f0; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg); color: var(--text); font: 16px/1.4 Georgia, 'Times New Roman', serif;
  -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
* { scrollbar-width: thin; scrollbar-color: var(--akzent) transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; } ::-webkit-scrollbar-thumb { background: var(--akzent); border-radius: 4px; } ::-webkit-scrollbar-track { background: transparent; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; cursor: pointer; }
kbd { font: bold 12px/1 Georgia, serif; padding: 2px 5px; border-radius: 4px; background: rgba(0, 0, 0, .12); border: 1px solid rgba(0, 0, 0, .25); }

#stage { position: fixed; inset: 0; overflow: hidden; }
#kulisse { position: absolute; inset: 0; background: linear-gradient(180deg, #050c18 0, #12263a 55%, #1e4a2a 62%, #10301c 100%);
  background-size: cover; background-position: center; }
#kulisse::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .7;
  background: radial-gradient(circle at 12% 10%, rgba(255, 250, 220, .35) 0 3px, transparent 4px 70px), radial-gradient(circle at 88% 10%, rgba(255, 250, 220, .35) 0 3px, transparent 4px 70px),
    radial-gradient(circle at 50% 30%, rgba(255, 255, 230, .12) 0 40px, transparent 41px 160px); animation: funkeln 6s ease-in-out infinite alternate; }
:root[data-ansicht="tag"] #kulisse { background: linear-gradient(180deg, #8ac0e8 0, #cfe6f4 55%, #6aa65a 60%, #4a8a42 100%); background-size: cover; }
:root[data-ansicht="schnee"] #kulisse { background: linear-gradient(180deg, #1a2a4a 0, #4a5a7a 55%, #dfe6f2 60.5%, #c8d2e2 100%); background-size: cover; }
:root[data-ansicht="flutlicht"] #kulisse { background: url(img/flutlicht.webp?v=1) center / cover no-repeat, #08140e url(img/flutlicht-klein.webp?v=1) center / cover no-repeat; }
:root[data-ansicht="tag"] #kulisse { background: url(img/tag.webp?v=1) center / cover no-repeat, #cfe2c8 url(img/tag-klein.webp?v=1) center / cover no-repeat; }
:root[data-ansicht="schnee"] #kulisse { background: url(img/schnee.webp?v=1) center / cover no-repeat, #2a3448 url(img/schnee-klein.webp?v=1) center / cover no-repeat; }
@media (orientation: portrait) and (max-width: 900px) {
  :root[data-ansicht="flutlicht"] #kulisse { background-image: url(img/flutlicht-hoch.webp?v=1), url(img/flutlicht-hoch-klein.webp?v=1); }
  :root[data-ansicht="tag"] #kulisse { background-image: url(img/tag-hoch.webp?v=1), url(img/tag-hoch-klein.webp?v=1); }
  :root[data-ansicht="schnee"] #kulisse { background-image: url(img/schnee-hoch.webp?v=1), url(img/schnee-hoch-klein.webp?v=1); }
}
@keyframes funkeln { from { opacity: .35; transform: scale(1); } to { opacity: .8; transform: scale(1.03); } }
@media (prefers-reduced-motion: reduce) { #kulisse::before { animation: none; } }
#stage { touch-action: none; }
#cv { position: absolute; touch-action: none; display: block; z-index: 1; border-radius: 14px 14px 0 0;
  box-shadow: 0 0 0 1px rgba(6, 20, 12, .6), 18px 26px 40px rgba(0, 0, 0, .45), 4px 8px 14px rgba(0, 0, 0, .3); }
#cv.weit { box-shadow: none; filter: drop-shadow(14px 20px 16px rgba(0, 0, 0, .5)); }
#kopf { position: absolute; z-index: 2; display: grid; place-items: center; border-radius: 12px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .04) 0 2px, rgba(0, 0, 0, .05) 2px 8px), linear-gradient(90deg, #0e2a1a, #1e5a34 50%, #0e2a1a);
  box-shadow: inset 0 0 0 2px #ffcf4a, 0 10px 22px rgba(0, 0, 0, .45); }
:root:not(.breit) #kopf { border-radius: 0; box-shadow: inset 0 -2px 0 #ffcf4a; }
#dmd { display: block; border-radius: 4px; }
#zeile { position: absolute; z-index: 2; left: 0; right: 0; display: none; align-items: center; justify-content: center; padding: 0 10px;
  background: rgba(6, 24, 14, .9); color: #fff4e0; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
:root:not(.breit) #zeile { display: block; text-align: center; line-height: 26px; }

.tafel { position: absolute; z-index: 2; top: 50%; transform: translateY(-50%); width: 250px; display: none; flex-direction: column; gap: 10px; }
:root.breit .tafel { display: flex; }
#links { left: 20px; padding: 18px 16px 20px; border-radius: 14px; background-color: var(--holz);
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .04) 0 2px, rgba(0, 0, 0, .05) 2px 8px), linear-gradient(180deg, var(--tafel1), var(--tafel2));
  box-shadow: 0 18px 34px var(--schatten), inset 0 2px 0 rgba(255, 220, 170, .25); color: var(--text); }
#links::before, #links::after { content: ''; position: absolute; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff4d6, #a8692c); }
#links::before { left: 10px; } #links::after { right: 10px; }
#logo { font: bold 15px/1 Georgia, serif; letter-spacing: .12em; color: var(--akzent); text-align: center; background: rgba(0, 0, 0, .28); border-radius: 8px; padding: 6px 0; }
#logo b { display: block; font-size: 30px; letter-spacing: .04em; color: var(--text); text-shadow: 0 2px 0 rgba(0, 0, 0, .35); }
#modus { text-align: center; color: var(--leise); font-size: 14px; min-height: 20px; background: rgba(0, 0, 0, .28); border-radius: 8px; }
.wert { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 6px 10px; border-radius: 8px; background: rgba(0, 0, 0, .28); }
.wert span { font-size: 13px; color: var(--leise); } .wert b { font-size: 19px; font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
#abz { padding: 8px 10px; border-radius: 8px; background: rgba(0, 0, 0, .28); }
#abz > span, #auftrag > span { font-size: 13px; color: var(--leise); }
#abzliste { list-style: none; margin: 6px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 8px; font-size: 13px; }
#abzliste li { display: flex; align-items: center; gap: 6px; color: var(--leise); }
#abzliste li i { width: 14px; height: 14px; flex: none; clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0 50%); background: rgba(0, 0, 0, .35); box-shadow: inset 0 0 0 2px var(--f); }
#abzliste li.an { color: var(--text); } #abzliste li.an i { background: var(--f); }
#abzliste li.lauf i { animation: blink .5s steps(2) infinite; background: var(--f); }
@keyframes blink { 50% { opacity: .25; } }
#auftrag { padding: 8px 10px; border-radius: 8px; background: rgba(0, 0, 0, .28); min-height: 84px; }
#auftrag b { display: block; font-size: 15px; line-height: 1.3; margin-top: 3px; min-height: 40px; }
#auftrag i { font-style: normal; font-size: 13px; color: var(--akzent); font-variant-numeric: lining-nums tabular-nums; }

#rechts { right: 20px; gap: 12px; }
#schild { padding: 16px 16px 12px; border-radius: 14px; background: linear-gradient(180deg, var(--emaille1), var(--emaille2)); color: var(--emailleschrift);
  box-shadow: 0 14px 28px var(--schatten), inset 0 0 0 3px var(--emaillerand), inset 0 0 0 6px var(--emaille1), inset 0 0 0 7px var(--emaillerand); font-size: 14px; }
#schild > b { display: block; text-align: center; letter-spacing: .1em; text-transform: uppercase; color: var(--emaillerand); margin-bottom: 6px; }
#schild p { margin: 0 0 8px; line-height: 1.7; } #schild kbd { background: rgba(0, 0, 0, .06); }
#einst { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
#einst button { border: 0; border-radius: 10px; padding: 8px; background: linear-gradient(180deg, var(--emaille1), var(--emaille2)); color: var(--emailleschrift);
  box-shadow: 0 8px 16px var(--schatten), inset 0 0 0 2px var(--emaillerand); display: flex; flex-direction: column; align-items: center; min-height: 52px; }
#einst span { font-size: 12px; } #einst b { font-size: 18px; font-variant-numeric: lining-nums tabular-nums; }
#wertung { font-size: 13px; text-align: center; color: #fff4e0; background: #0a2c3a; border-radius: 10px; padding: 6px 8px; min-height: 36px; }
#wertung.aus { color: #ffd0b0; }

#knoepfe { position: absolute; z-index: 3; display: flex; gap: 8px; }
#knoepfe button { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--akzent); background: rgba(28, 18, 64, .92); color: var(--text);
  display: grid; place-items: center; padding: 0; box-shadow: 0 6px 12px var(--schatten); }
#knoepfe button:hover { background: rgba(140, 70, 24, .95); }
#knoepfe svg { width: 22px; height: 22px; }
:root.breit #knoepfe { right: 20px; bottom: 20px; }
:root:not(.breit) #knoepfe { top: 8px; left: 8px; right: 8px; justify-content: space-between; pointer-events: none; }
:root:not(.breit) #knoepfe button { pointer-events: auto; width: 40px; height: 40px; }
:root:not(.breit) #b-hilfe, :root:not(.breit) #b-ton { display: none; }
:root:not(.breit) #knoepfe { display: grid; grid-template-columns: 40px 40px 1fr 40px; gap: 6px; }
:root:not(.breit) #b-menue { grid-column: 1; } :root:not(.breit) #b-pause { grid-column: 2; grid-row: 1; } :root:not(.breit) #b-exit { grid-column: 4; grid-row: 1; }

#zielhilfe { position: absolute; z-index: 3; left: 50%; bottom: 18px; transform: translateX(-50%); padding: 8px 16px; border-radius: 20px;
  background: rgba(14, 10, 44, .88); color: #fff; font-size: 16px; box-shadow: 0 6px 14px var(--schatten); pointer-events: none; min-width: 230px; text-align: center; }
#zielhilfe.gut { background: rgba(20, 110, 60, .9); } #zielhilfe.schlecht { background: rgba(140, 40, 20, .9); }

#ov { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; background: var(--ov); padding: 16px; overflow: auto; }
.fenster { position: relative; box-sizing: border-box; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 24px 24px 20px; border-radius: 16px;
  background: linear-gradient(180deg, var(--fenster1), var(--fenster2)); color: var(--fensterschrift); box-shadow: 0 24px 48px rgba(0, 0, 0, .5), inset 0 0 0 3px var(--emaillerand); }
.fenster h1 { margin: 0; font-size: 38px; text-align: center; letter-spacing: .02em; color: var(--fensterschrift); }
.fenster h1 span { display: block; font-size: 16px; letter-spacing: .3em; color: var(--emaillerand); }
.fenster h2 { margin: 0 0 12px; font-size: 26px; text-align: center; } .fenster h3 { margin: 16px 0 6px; font-size: 17px; color: var(--emaillerand); }
.fenster p { margin: 0 0 10px; line-height: 1.45; } .fenster ul { padding-left: 20px; margin: 0 0 8px; } .fenster li { margin-bottom: 5px; line-height: 1.4; }
.fenster .unter, .fenster .hinweis { text-align: center; color: var(--fensterleise); font-size: 15px; } .fenster .hinweis { font-size: 13px; margin: 10px 0 0; }
.fenster .zu { position: sticky; top: 0; float: right; margin: -12px -12px 0 0; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--emaillerand);
  background: var(--fenster1); color: var(--fensterschrift); display: grid; place-items: center; padding: 0; z-index: 2; }
.fenster .zu svg { width: 18px; height: 18px; }
.karten { display: grid; gap: 10px; margin: 16px 0; }
.karte { display: grid; grid-template-columns: 36px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; text-align: left; padding: 12px 14px; border-radius: 12px;
  border: 2px solid var(--emaillerand); background: rgba(255, 255, 255, .35); color: var(--fensterschrift); min-height: 64px; }
.karte svg { grid-row: 1 / 3; width: 30px; height: 30px; color: var(--emaillerand); }
.karte b { font-size: 19px; } .karte small { color: var(--fensterleise); font-size: 14px; }
.karte.haupt { background: var(--haupt); color: var(--hauptschrift); border-color: var(--haupt); } .karte.haupt small, .karte.haupt svg { color: var(--hauptschrift); }
.karte.fort { width: 100%; margin: 16px 0 -4px; background: #1f7a4c; border-color: #1f7a4c; color: #fff; } .karte.fort small, .karte.fort svg { color: #eafff2; }
.reihe { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 14px; }
.reihe button, .leiste button { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 14px; border-radius: 22px; border: 2px solid var(--emaillerand);
  background: rgba(255, 255, 255, .3); color: var(--fensterschrift); }
.reihe button svg, .leiste button svg { width: 18px; height: 18px; }
.reihe button.haupt, .leiste button.haupt { background: var(--haupt); border-color: var(--haupt); color: var(--hauptschrift); }
.reihe.klein button { min-height: 40px; font-size: 14px; }
.leiste { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; gap: 8px; padding: 8px; border-radius: 28px; background: var(--fenster1); box-shadow: 0 10px 24px rgba(0, 0, 0, .45); }
:root #ov:has(.leiste) { background: transparent; pointer-events: none; } #ov .leiste { pointer-events: auto; }
.gross { text-align: center; font-size: 44px; font-weight: bold; font-variant-numeric: lining-nums tabular-nums; margin: 4px 0 10px; }
.gross small { display: block; font-size: 15px; font-weight: normal; color: var(--fensterleise); }
table.weg { width: 100%; border-collapse: collapse; margin: 6px 0 10px; } table.weg td { padding: 5px 4px; border-bottom: 1px solid rgba(0, 0, 0, .1); }
table.weg td:last-child { text-align: right; font-variant-numeric: lining-nums tabular-nums; }
.pruef { text-align: center; font-size: 14px; color: var(--fensterleise); min-height: 22px; }
ol.liste { margin: 8px 0; padding-left: 26px; } ol.liste li { display: flex; justify-content: space-between; } ol.liste b { font-variant-numeric: lining-nums tabular-nums; }
.kasten { padding: 10px 14px; border-radius: 10px; background: rgba(255, 122, 58, .14); border-left: 4px solid var(--haupt); margin-bottom: 8px; }
ul.abzgross { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
ul.abzgross li { display: grid; grid-template-columns: 22px 1fr; column-gap: 8px; align-items: center; padding: 6px 8px; border-radius: 8px; background: rgba(0, 0, 0, .05); }
ul.abzgross li i { grid-row: 1 / 3; width: 20px; height: 20px; clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0 50%); background: rgba(0, 0, 0, .15); box-shadow: inset 0 0 0 3px var(--f); }
ul.abzgross li.an i { background: var(--f); } ul.abzgross li span { font-size: 13px; color: var(--fensterleise); }
@media (max-width: 520px) { .fenster { padding: 18px 14px 16px; } .fenster h1 { font-size: 30px; } ul.abzgross { grid-template-columns: 1fr; } }
@media (pointer: coarse) { #schild p:first-of-type { display: none; } }

#b-zeitlupe { position: absolute; z-index: 3; left: 16px; bottom: 18px; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 14px;
  border-radius: 22px; border: 2px solid var(--akzent); background: rgba(28, 18, 64, .92); color: var(--text); box-shadow: 0 6px 12px var(--schatten); }
#b-zeitlupe svg { width: 18px; height: 18px; } #b-zeitlupe.an { background: #1e7a4a; border-color: #bff4d0; }
:root:not(.breit) #b-zeitlupe { bottom: 64px; left: 8px; font-size: 14px; }
#zonen { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; height: 46%; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto; gap: 8px; padding: 8px; pointer-events: none; }
#zonen > div { display: flex; flex-direction: column; align-items: center; justify-content: center; border: 3px dashed rgba(255, 244, 224, .85); border-radius: 18px;
  background: rgba(6, 30, 40, .35); color: #fff4e0; text-shadow: 0 1px 3px rgba(0, 0, 0, .7); }
#zonen span { display: flex; flex-direction: column; align-items: center; padding: 6px 14px; border-radius: 12px; background: rgba(6, 30, 40, .96); }
#zonen b { font-size: 19px; } #zonen small { font-size: 14px; color: #fff4e0; }
#zonen p { grid-column: 1 / 3; margin: 0; text-align: center; padding: 6px 10px; border-radius: 12px; background: rgba(6, 30, 40, .95); color: #fff4e0; font-size: 15px; }
.fenster .rekord { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 12px; border-radius: 10px; background: var(--haupt); color: var(--hauptschrift); font-weight: bold; }
.fenster .rekord svg { width: 20px; height: 20px; flex: none; }
.fenster h3.vh { margin-top: 10px; }
.fenster details.abschnitt { border-top: 1px solid rgba(120, 90, 30, .25); }
.fenster details.abschnitt > summary { list-style: none; cursor: pointer; min-height: 44px; display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; color: var(--emaillerand); padding: 6px 2px; }
.fenster details.abschnitt > summary::-webkit-details-marker { display: none; }
.fenster details.abschnitt > summary::before { content: ''; width: 9px; height: 9px; border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(-45deg); transition: transform .2s; flex: none; }
.fenster details.abschnitt[open] > summary::before { transform: rotate(45deg); }
.fenster details.abschnitt > summary:hover { color: var(--knopf); }
.fenster details.abschnitt[open] { padding-bottom: 8px; }
table.kugeln td small { display: block; font-size: 13px; color: var(--fensterleise); }
table.kugeln tr.beste td { font-weight: bold; } table.kugeln tr.beste td:first-child::after { content: ' – beste Kugel'; font-weight: normal; font-size: 13px; color: var(--emaillerand); }
table.tasten td small { display: block; margin-top: 3px; } table.tasten td small kbd { margin-right: 3px; }
table.tasten button { min-height: 40px; padding: 6px 12px; border-radius: 20px; border: 2px solid var(--emaillerand); background: rgba(255, 255, 255, .3); color: var(--fensterschrift); }
table.tasten button.haupt { background: var(--haupt); border-color: var(--haupt); color: var(--hauptschrift); }

#kopf { background: linear-gradient(rgba(30, 12, 2, .18), rgba(30, 12, 2, .18)), url(img/kopf.webp?v=1) center / cover no-repeat, #1e4a2a; }
#stationen { position: absolute; inset: 0; display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: repeat(3, 1fr); padding: 4px 12px; pointer-events: none; }
#stationen span { display: flex; align-items: center; gap: 5px; font: bold 11px/1 Georgia, serif; color: #fff4e0; text-shadow: 0 1px 2px #000, 0 0 4px #000;
  background: rgba(20, 8, 2, .62); border-radius: 8px; padding: 2px 7px 2px 4px; align-self: center; }
#stationen span:nth-child(1), #stationen span:nth-child(4) { grid-row: 1; } #stationen span:nth-child(2), #stationen span:nth-child(5) { grid-row: 2; }
#stationen span:nth-child(3), #stationen span:nth-child(6) { grid-row: 3; }
#stationen span:nth-child(-n+3) { grid-column: 1; } #stationen span:nth-child(n+4) { grid-column: 3; }
#stationen i { width: 11px; height: 11px; border-radius: 50%; background: #3a2410; box-shadow: inset 0 0 0 1px #ffd9a8; flex: none; }
#stationen .an i { background: #ffd23a; box-shadow: 0 0 6px #ffd23a, inset 0 0 0 1px #fff; }
#stationen .jetzt i { background: #ff7a3a; animation: blink .6s steps(2) infinite; }
#dmd { position: relative; z-index: 1; }
:root:not(.breit) #stationen { display: none; }
#b-aufgabe { position: absolute; z-index: 3; left: 16px; bottom: 70px; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 14px;
  border-radius: 22px; border: 2px solid var(--akzent); background: rgba(28, 18, 64, .92); color: var(--text); box-shadow: 0 6px 12px var(--schatten); }
#b-aufgabe svg { width: 18px; height: 18px; }
:root:not(.breit) #b-aufgabe { bottom: 116px; left: 8px; font-size: 14px; }
.wasjetzt { display: grid; grid-template-columns: 220px 1fr; gap: 14px; align-items: start; margin: 6px 0 10px; }
.wasjetzt canvas { width: 220px; height: 442px; border-radius: 10px; box-shadow: 0 6px 14px rgba(0, 0, 0, .35); background: #0a2c3a; }
.wasjetzt h3 { margin-top: 0; } .fenster p.klein { font-size: 14px; }
ol.ziele { list-style: none; padding: 0; margin: 6px 0; } ol.ziele li { display: flex; gap: 8px; align-items: baseline; margin-bottom: 7px; font-size: 15px; }
ol.ziele li b { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #0a2c3a; color: #fff; font-size: 13px; }
ol.ziele li:first-child b { background: #ff7a3a; }
@media (max-width: 520px) { .wasjetzt { grid-template-columns: 130px 1fr; } .wasjetzt canvas { width: 130px; height: 261px; } }

#bonustafel { position: absolute; z-index: 4; left: 50%; top: 42%; transform: translate(-50%, -50%); width: min(340px, 86vw); padding: 16px 18px 12px; border-radius: 16px; text-align: center;
  background: linear-gradient(180deg, rgba(16, 52, 32, .95), rgba(6, 26, 14, .97)); color: #fff4e0; box-shadow: 0 18px 40px rgba(0, 0, 0, .55), inset 0 0 0 3px #ffcf4a;
  pointer-events: none; animation: bonusEin .35s ease-out; }
#bonustafel .titel { display: block; font: bold 30px/1 Georgia, serif; letter-spacing: .14em; color: #ffd23a; text-shadow: 0 0 12px rgba(255, 190, 60, .7); margin-bottom: 8px; }
#bonustafel .zeilen p { display: flex; justify-content: space-between; gap: 10px; margin: 0 0 5px; font-size: 16px; opacity: .25; transition: opacity .2s; }
#bonustafel .zeilen p.an { opacity: 1; } #bonustafel .zeilen p b { font-variant-numeric: lining-nums tabular-nums; color: #bff4ff; }
#bonustafel .zeilen p.tilt, #bonustafel .zeilen p.leer { opacity: 1; justify-content: center; color: #ffd0b0; }
#bonustafel .mal { min-height: 34px; font: bold 30px/1.1 Georgia, serif; color: #ff7a3a; }
#bonustafel .mal.knall { animation: malKnall .45s cubic-bezier(.2, 1.6, .4, 1); }
#bonustafel .summe { min-height: 34px; font: bold 28px/1.2 Georgia, serif; color: #fff; font-variant-numeric: lining-nums tabular-nums; text-shadow: 0 0 10px rgba(120, 220, 255, .8); }
#bonustafel small { display: block; margin-top: 6px; font-size: 12px; color: #c8dce8; }
#bonustafel.weg { animation: bonusWeg .45s ease-in forwards; }
@keyframes bonusEin { from { opacity: 0; transform: translate(-50%, -40%) scale(.9); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
@keyframes malKnall { from { transform: scale(2.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes bonusWeg { to { opacity: 0; transform: translate(-50%, -120%) scale(.6); } }
@media (prefers-reduced-motion: reduce) { #bonustafel, #bonustafel .mal.knall, #bonustafel.weg { animation: none; } }

#tauchbild { position: absolute; z-index: 4; left: 50%; top: 34%; transform: translate(-50%, -50%); border-radius: 14px; box-shadow: 0 16px 36px rgba(0, 0, 0, .55); pointer-events: none; }

#b-art { grid-column: span 2; }
.wert[data-ki="tageszeit"] b { font-size: 15px; }
#w-badetag { font-size: 15px; white-space: normal; text-align: right; }
#b-seite { grid-column: span 2; }
:root.breit #abzliste { grid-template-columns: 1fr; }

#info { position: absolute; z-index: 2; box-sizing: border-box; top: 50%; transform: translateY(-50%); display: none; flex-direction: column; gap: 16px; padding: 22px 18px 20px; border-radius: 16px;
  max-height: calc(100vh - 32px); overflow: hidden; background-color: var(--holz);
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .04) 0 2px, rgba(0, 0, 0, .05) 2px 8px), linear-gradient(180deg, var(--tafel1), var(--tafel2));
  box-shadow: 0 18px 34px var(--schatten), inset 0 2px 0 rgba(255, 220, 170, .25); }
:root.breit #info { display: flex; }
#info::before, #info::after { content: ''; position: absolute; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff4d6, #a8692c); }
#info::before { left: 11px; } #info::after { right: 11px; }
#info .tafel { position: static; transform: none; width: auto; display: flex; }
#info #links { padding: 0; background: none; box-shadow: none; }
#info #links::before, #info #links::after { display: none; }
#info #rechts { padding-top: 16px; border-top: 2px solid rgba(255, 220, 170, .2); }
#info.eng { gap: 12px; } #info.eng #schild { display: none; } #info.eng #rechts { padding-top: 12px; gap: 8px; }
#info.enger { gap: 8px; padding: 18px 14px 14px; }
#info.enger #links { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
#info.enger #logo, #info.enger #modus, #info.enger #abz, #info.enger #auftrag, #info.enger [data-ki="badetag"] { grid-column: 1 / -1; }
#info.enger .wert { flex-direction: column; align-items: flex-start; gap: 0; padding: 5px 9px; } #info.enger .wert b { font-size: 17px; }
#info.enger [data-ki="badetag"] { flex-direction: row; align-items: baseline; }
#info.enger #abzliste { grid-template-columns: 1fr 1fr; } #info.enger #auftrag { min-height: 0; } #info.enger #auftrag b { min-height: 0; }
#info.enger #logo b { font-size: 24px; } #info.enger #einst button { min-height: 44px; padding: 5px; }
#info.enger #b-art, #info.enger #b-seite { grid-column: auto; }
#info.engst { gap: 6px; padding: 16px 12px 12px; } #info.engst #links { gap: 6px; } #info.engst #rechts { gap: 6px; padding-top: 8px; }
#info.engst #modus { display: none; } #info.engst #logo { padding: 3px 0; } #info.engst #logo span { display: none; } #info.engst #logo b { font-size: 20px; }
#info.engst #wertung { min-height: 0; padding: 4px 8px; }

#rundgang { position: absolute; z-index: 6; left: 50%; bottom: 20px; transform: translateX(-50%); width: min(460px, calc(100% - 32px)); padding: 16px 20px 14px; }
#rundgang[hidden] { display: none; }
#rundgang small { display: block; text-align: center; color: var(--emaillerand); font-size: 13px; }
#rundgang h2 { font-size: 22px; margin: 2px 0 8px; } #rundgang p { font-size: 15px; min-height: 66px; }
#rundgang .reihe button:disabled { opacity: .4; }
:root.breit #rundgang { left: calc(var(--tischmitte, 50%)); }
.ziele3 { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 5px; }
.ziele3 li { display: flex; gap: 7px; align-items: baseline; font-size: 14px; line-height: 1.3; font-weight: normal; }
#auftrag .ziele3 li i { flex: none; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font: bold 11px/1 Georgia, serif; background: #0a2c3a; color: #fff; box-shadow: 0 0 0 1.5px #fff4e0; }
#auftrag .ziele3 li.erst i { background: #ffb36a; color: #3a1200; }
.ziele3 li.erst { font-weight: bold; }
.fenster.pausef { width: min(1080px, 100%); }
.pinhalt { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: start; margin: 4px 0 12px; }
.pinhalt #karte { border-radius: 12px; box-shadow: 0 8px 18px rgba(0, 0, 0, .35); background: #0a2c3a; }
.pinhalt .prechts > p { margin-top: 0; font-size: 17px; }
.pinhalt .wasjetzt { display: block; margin: 0 0 6px; }
.pinhalt .wasjetzt h3, .pinhalt h3 { margin-top: 6px; }
.pinhalt ol.ziele li { font-size: 16px; }
@media (max-width: 700px) { .pinhalt { gap: 12px; } .pinhalt ul.abzgross { grid-template-columns: 1fr; } }
.pinhalt .prechts { font-size: 17px; } .pinhalt .prechts h3 { font-size: 20px; } .pinhalt .prechts p.klein { font-size: 16px; }
.pinhalt ul.abzgross li b { font-size: 17px; } .pinhalt ul.abzgross li span { font-size: 14px; }
@media (max-width: 700px) { .pinhalt .prechts { font-size: 15px; } .pinhalt ul.abzgross li b { font-size: 15px; } }
@media (max-width: 700px) { .pinhalt { grid-template-columns: 1fr; } .pinhalt #karte { justify-self: center; } }
@media (max-width: 700px) { .fenster.pausef .pinhalt > #karte { width: min(100%, 360px) !important; height: auto !important; } }
#kulisse::after { content: ''; position: absolute; inset: 0; pointer-events: none; background-color: transparent; transition: background-color 2.5s ease; }
#b-kamera { grid-column: span 2; } #info.enger #b-kamera { grid-column: 1 / -1; }
ul.stempel { list-style: none; padding: 0; margin: 6px 0 12px; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
ul.stempel li { display: grid; grid-template-columns: 30px 1fr; column-gap: 8px; align-items: center; padding: 7px 9px; border-radius: 10px; border: 2px dashed rgba(0, 0, 0, .18); }
ul.stempel li i { grid-row: 1 / 3; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .08); color: rgba(0, 0, 0, .35); }
ul.stempel li i svg { width: 18px; height: 18px; }
ul.stempel li.an { border-style: solid; border-color: var(--emaillerand); background: rgba(255, 179, 106, .14); }
ul.stempel li.an i { background: var(--emaillerand); color: #fff; transform: rotate(-8deg); }
ul.stempel li b { font-size: 14px; } ul.stempel li span { font-size: 12px; color: var(--fensterleise); }
#info.engst #einst { grid-template-columns: 1fr 1fr 1fr; gap: 6px; } #info.engst #einst b { font-size: 15px; } #info.engst #einst span { font-size: 11px; }
#info.engst #b-art, #info.engst #b-seite { grid-column: auto; } #info.engst #b-kamera { grid-column: span 2; }
#leitertipp { position: absolute; z-index: 6; right: 4%; top: 52%; width: 44%; padding: 18px 10px; border-radius: 18px; text-align: center; pointer-events: none;
  background: rgba(210, 40, 60, .82); color: #fff4e0; box-shadow: 0 0 0 3px #ffcf4a, 0 10px 24px rgba(0, 0, 0, .5); animation: leiterpuls .35s ease-in-out infinite alternate; }
#leitertipp b { display: block; font-size: 22px; letter-spacing: .06em; } #leitertipp small { font-size: 14px; }
@keyframes leiterpuls { from { transform: scale(1); } to { transform: scale(1.05); } }
@media (prefers-reduced-motion: reduce) { #leitertipp { animation: none; } }
:root.flach #knoepfe { top: 3px; }
:root.flach #knoepfe button { width: 44px; height: 44px; }
:root.flach #knoepfe { grid-template-columns: 44px 44px 1fr 44px; }
#drehtipp { position: fixed; z-index: 4; left: 50%; bottom: 14px; transform: translateX(-50%); padding: 7px 14px; border-radius: 18px; background: rgba(28, 18, 64, .92);
  border: 1px solid var(--akzent); color: var(--text); font: bold 13px/1.2 Georgia, serif; pointer-events: none; animation: drehweg 5.2s forwards; }
@keyframes drehweg { 0%, 80% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { #drehtipp { animation: none; } }
.ende .endkopf { display: flex; align-items: center; justify-content: center; gap: 18px; }
.ende .enduhr { width: 84px; height: 84px; flex: none; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .5)); }
.ende ul.hoch { list-style: none; margin: 4px 0 14px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.ende ul.hoch li { padding: 5px 10px; border-radius: 14px; border: 1px solid var(--akzent); background: rgba(255, 210, 58, .1); font-size: 14px; }
.ende ul.hoch b { color: var(--akzent); }
@media (max-width: 520px) { .ende .enduhr { width: 60px; height: 60px; } .ende .endkopf { gap: 10px; } }
#spielaus { position: absolute; z-index: 6; left: var(--tischmitte, 50%); top: 42%; transform: translate(-50%, -50%); text-align: center; pointer-events: none;
  padding: 18px 34px; border-radius: 16px; background: rgba(8, 30, 18, .86); border: 3px solid #ffcf4a; box-shadow: 0 16px 40px rgba(0, 0, 0, .5); }
#spielaus[hidden] { display: none; }
#spielaus b { display: block; font: bold 46px/1.1 Georgia, serif; color: #ffe9a8; letter-spacing: .06em; text-shadow: 0 0 16px rgba(255, 190, 80, .7); }
#spielaus small { display: block; margin-top: 6px; font: bold 20px Georgia, serif; color: #fff4e0; }
#spielaus.an { animation: spielaus .5s ease-out; }
@keyframes spielaus { from { opacity: 0; transform: translate(-50%, -50%) scale(.7); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
@media (prefers-reduced-motion: reduce) { #spielaus.an { animation: none; } }
@media (max-width: 600px) { #spielaus b { font-size: 34px; } }
:root.breit #bonustafel { left: var(--tischmitte, 50%); }
:root.flach #zeile { display: block; white-space: pre-line; text-overflow: clip; border-radius: 10px; padding: 9px 11px; font-size: 14px; line-height: 1.35;
  border: 2px solid #ffcf4a; box-shadow: 0 8px 18px rgba(0, 0, 0, .45); max-height: 60vh; }
:root.flach #zeile b { display: block; color: #ffd23a; margin-bottom: 3px; } :root.flach #zeile span { display: block; }
#ola { position: absolute; left: 0; right: 0; top: 42%; bottom: 0; pointer-events: none; opacity: 0; mix-blend-mode: screen;
  background: linear-gradient(90deg, transparent 0, transparent 40%, rgba(255, 244, 205, .42) 47%, rgba(255, 255, 240, .6) 50%, rgba(255, 244, 205, .42) 53%, transparent 60%, transparent 100%);
  background-size: 320% 100%; background-position: 100% 0; }
#ola.an { animation: ola 2.4s ease-in-out 1; }
@keyframes ola { 0% { opacity: 0; background-position: 100% 0; } 10% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { #ola.an { animation: none; } }
.einstF .einstgitter { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; margin: 14px 0; }
.einstF .einstgitter button { display: flex; flex-direction: column; align-items: flex-start; text-align: left; padding: 10px 12px; border-radius: 10px; border: 2px solid var(--emaillerand); background: rgba(255, 255, 255, .35); color: var(--fensterschrift); min-height: 54px; }
.einstF .einstgitter button b { font-size: 16px; } .einstF .einstgitter button small { color: var(--fensterleise); font-size: 13px; }
#info #links > * { min-width: 0; } #info.enger .wert b { white-space: normal; overflow-wrap: break-word; hyphens: auto; }

.dauerkarte { margin: 8px 0 14px; padding: 12px 14px; border-radius: 10px; background: linear-gradient(135deg, #f4ead0, #e8dcb8); color: #2a1e0e; border: 2px solid #8a6a2a;
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.35); position: relative; }
.dauerkarte .dkkopf { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; border-bottom: 2px dashed rgba(90,60,20,.4); padding-bottom: 6px; margin-bottom: 8px; }
.dauerkarte .dkkopf b { letter-spacing: .18em; color: #8a1e14; } .dauerkarte .dkkopf span { font-size: 13px; }
.dauerkarte .dkfelder { display: grid; grid-template-columns: repeat(auto-fill, minmax(24px, 1fr)); gap: 3px; }
.dauerkarte .dkfelder span { display: grid; place-items: center; height: 24px; font: bold 11px/1 Georgia, serif; border: 1px solid rgba(90,60,20,.35); border-radius: 4px; color: rgba(90,60,20,.45); font-variant-numeric: tabular-nums; }
.dauerkarte .dkfelder span.eS { background: #1e7a4a; color: #fff; border-color: #1e7a4a; transform: rotate(-4deg); }
.dauerkarte .dkfelder span.eU { background: #c89a2a; color: #fff; border-color: #c89a2a; transform: rotate(3deg); }
.dauerkarte .dkfelder span.eN { background: #b4281e; color: #fff; border-color: #b4281e; transform: rotate(-2deg); }
.dauerkarte .dkbilanz { margin: 8px 0 0; font-size: 13px; }
:root:is(.quer, .flach) #ov > .menue { width: min(660px, 68%); max-height: 86vh; padding: 6px 10px 6px; }
:root:is(.quer, .flach) #ov > .menue h1 { font-size: 18px; margin: 0; } :root:is(.quer, .flach) #ov > .menue h1 span { display: inline; margin-right: 6px; font-size: 11px; }
:root:is(.quer, .flach) #ov > .menue .unter, :root:is(.quer, .flach) #ov > .menue > p.hinweis { display: none; }
:root:is(.quer, .flach) #ov > .menue .karten { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; margin: 4px 0; }
:root:is(.quer, .flach) #ov > .menue .karte { grid-template-columns: 1fr; padding: 3px 8px; min-height: 44px; min-width: 0; } :root:is(.quer, .flach) #ov > .menue .karte svg { display: none; }
:root:is(.quer, .flach) #ov > .menue .karte b { font-size: 13px; } :root:is(.quer, .flach) #ov > .menue .karte small { font-size: 11px; line-height: 1.12; }
:root:is(.quer, .flach) #ov > .menue .karte.fort { margin: 2px 0 0; min-height: 44px; }
:root:is(.quer, .flach) #ov > .menue .reihe { gap: 5px; margin-top: 4px; } :root:is(.quer, .flach) #ov > .menue .reihe button { min-height: 44px; padding: 3px 10px; font-size: 13px; }
.fortschritt { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; }
.fortschritt li { display: grid; grid-template-columns: 8.5em 1fr; align-items: center; column-gap: 8px; font-size: 13px; }
.fortschritt b { font-size: 13px; }
.fortschritt span { height: 10px; border: 2px solid var(--emaillerand); border-radius: 6px; background: var(--emaille1); overflow: hidden; }
.fortschritt i { display: block; height: 100%; background: var(--knopf); }
.fortschritt small { grid-column: 2; font-size: 11.5px; opacity: .85; }
.fortschritt li.fast i { background: #ff8a3a; box-shadow: 0 0 6px rgba(255, 138, 58, .9); }
.fortschritt li.fast small, .fortschritt li.voll small { font-weight: 700; opacity: 1; }
.fortschritt li.voll i { background: #f2b632; }
