:root { --bg: #0c1124; --holz1: #7a4e2a; --holz2: #4a2c16; --holz3: #2e1a0c; --tafel1: rgba(78, 50, 26, .93); --tafel2: rgba(46, 28, 14, .95);
  --text: #f6ecd6; --leise: #d2c3a2; --gold: #f0c35a; --gold2: #b9862c; --gut: #a6dc98; --warn: #f3a080; --knopf1: #6a4424; --knopf2: #3e2512;
  --schatten: rgba(0, 0, 0, .5); --ov: rgba(6, 8, 18, .55); --nagel: #d8b46a; --hauptschrift: #2a1a04; --rand: rgba(232, 190, 110, .38); --feld: rgba(22, 14, 8, .5); }
:root[data-ansicht="winter"] { --bg: #101a30; --tafel1: rgba(70, 56, 46, .93); --tafel2: rgba(40, 30, 24, .95); --gold: #f6d27a; }
:root[data-ansicht="morgen"] { --bg: #ead8c0; --tafel1: rgba(246, 230, 204, .95); --tafel2: rgba(230, 208, 172, .96); --feld: rgba(255, 248, 232, .7); --rand: rgba(120, 80, 30, .4);
  --text: #2e2214; --leise: #644f32; --gold: #8a520e; --gold2: #6e4210; --gut: #2f6e2c; --warn: #a2401e; --knopf1: #ecd4a8; --knopf2: #d6b484;
  --schatten: rgba(80, 50, 20, .28); --ov: rgba(90, 60, 30, .3); --nagel: #8a6430; --hauptschrift: #fff8ea; }
* { 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; touch-action: manipulation; }
* { scrollbar-width: thin; scrollbar-color: var(--gold2) transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; } ::-webkit-scrollbar-thumb { background: var(--gold2); border-radius: 4px; } ::-webkit-scrollbar-track { background: transparent; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: default; }

#stage { position: fixed; left: 0; top: 0; transform-origin: 0 0; overflow: hidden; background: var(--bg);
  display: grid; grid-template-rows: 64px 1fr 134px; gap: 14px; padding: 10px 70px 14px; }
#kulisse { position: absolute; inset: 0; z-index: 0; background: #1b2442 url(img/nacht.webp?v=1) center / cover no-repeat; }
:root[data-ansicht="winter"] #kulisse { background-image: url(img/winter.webp?v=1); } :root[data-ansicht="morgen"] #kulisse { background-image: url(img/morgen.webp?v=1); }
#stage.hoch #kulisse { background-image: url(img/nacht-hoch.webp?v=1); } :root[data-ansicht="winter"] #stage.hoch #kulisse { background-image: url(img/winter-hoch.webp?v=1); } :root[data-ansicht="morgen"] #stage.hoch #kulisse { background-image: url(img/morgen-hoch.webp?v=1); }
#kulisse::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 45%, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, .3) 100%); pointer-events: none; }
:root[data-ansicht="morgen"] #kulisse::after { background: radial-gradient(ellipse at 50% 45%, rgba(0, 0, 0, 0) 55%, rgba(90, 60, 30, .14) 100%); }

#kopf { position: relative; z-index: 2; display: flex; gap: 8px; align-items: stretch; min-width: 0; }
#logoschild, #bauname, .wert, .wz, .rk, .rate, #knoepfe button, .kasten {
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .03) 0 2px, rgba(0, 0, 0, .04) 2px 7px), linear-gradient(180deg, var(--tafel1), var(--tafel2));
  border: 1px solid var(--rand); box-shadow: 0 6px 16px var(--schatten), inset 0 1px 0 rgba(255, 230, 180, .2); }
#logoschild, #bauname, .wert { position: relative; border-radius: 10px; }
#logoschild::after, #bauname::after, .wert::after { content: ''; position: absolute; left: 5px; right: 5px; top: 4px; height: 5px; pointer-events: none;
  background: radial-gradient(circle, var(--nagel) 2px, transparent 2.6px) left center / 5px 5px no-repeat, radial-gradient(circle, var(--nagel) 2px, transparent 2.6px) right center / 5px 5px no-repeat; }
#logoschild { padding: 8px 12px 6px; flex: none; }
#logo, .titel { font-weight: 700; letter-spacing: .04em; line-height: 1; white-space: nowrap; }
#logo { font-size: 18px; } #logo span, .titel span { color: var(--text); } #logo b, .titel b { color: var(--gold); }
#modus { font-size: 13px; color: var(--leise); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 140px; }
#bauname { flex: 1 1 auto; min-width: 0; padding: 8px 14px; display: flex; flex-direction: column; justify-content: center; }
#bauname small { font-size: 14px; color: var(--leise); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#bauname b { font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wert { flex: none; min-width: 76px; padding: 6px 9px; display: flex; flex-direction: column; justify-content: center; }
.wert span { font-size: 14px; color: var(--leise); white-space: nowrap; }
.wert b { font-size: 21px; white-space: nowrap; font-variant-numeric: tabular-nums; line-height: 1.1; }
.wert b small { font-size: 14px; color: var(--leise); font-weight: 400; }
.wert.gross b { font-size: 24px; } .wert.gross b em { font-style: normal; color: var(--gold); } .wert b em.gut { color: var(--gut); }
.wert b .warn { color: var(--warn); }

#kasten { position: relative; z-index: 1; min-height: 0; padding: 14px; border-radius: 16px;
  background: linear-gradient(135deg, #8a5a30, #4e2e14 60%, #3a2210); box-shadow: 0 22px 44px rgba(0, 0, 0, .62), inset 0 2px 0 rgba(255, 220, 160, .3), inset 0 -3px 0 rgba(0, 0, 0, .35); }
#kasten::before { content: ''; position: absolute; inset: 5px; border-radius: 12px; pointer-events: none; border: 2px solid rgba(255, 210, 140, .22);
  background: repeating-linear-gradient(100deg, rgba(255, 255, 255, .05) 0 3px, rgba(0, 0, 0, .05) 3px 11px); }
#rahmen { position: relative; width: 100%; height: 100%; border-radius: 6px; overflow: hidden; box-shadow: inset 0 0 0 2px rgba(20, 10, 4, .9), inset 0 6px 16px rgba(0, 0, 0, .6); touch-action: none; }
#cv { display: block; position: absolute; left: 0; top: 0; touch-action: none; cursor: crosshair; }
#lupe { position: absolute; width: 150px; height: 150px; border-radius: 50%; pointer-events: none; z-index: 5; box-shadow: 0 10px 26px rgba(0, 0, 0, .6); }
#zoom { position: absolute; left: 10px; top: 10px; display: flex; gap: 6px; z-index: 3; }
#zoom button { width: 44px; height: 44px; border-radius: 10px; border: 1px solid rgba(232, 190, 110, .45); background: rgba(40, 24, 10, .78); color: #f6ecd6; display: flex; align-items: center; justify-content: center; padding: 0; }
#zoom svg { width: 22px; height: 22px; }

#bank { position: relative; z-index: 2; display: flex; gap: 10px; align-items: stretch; min-width: 0; padding: 8px 10px; border-radius: 14px;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .03) 0 3px, rgba(0, 0, 0, .05) 3px 12px), linear-gradient(180deg, #9a6a3a, #6a4220 55%, #4a2c14);
  box-shadow: 0 16px 30px rgba(0, 0, 0, .55), inset 0 2px 0 rgba(255, 220, 160, .35), inset 0 -4px 0 rgba(0, 0, 0, .3); }
:root[data-ansicht="morgen"] #bank { background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .06) 0 3px, rgba(0, 0, 0, .04) 3px 12px), linear-gradient(180deg, #d8b07a, #b88a52 55%, #9a6c3a); }
#werkzeuge { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; flex: 1 1 auto; min-width: 0; }
.wz { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 0; padding: 4px 2px 4px; border-radius: 10px; min-width: 0; }
.wz canvas { width: 66px; height: 66px; }
.wz b { font-size: 13px; letter-spacing: -.2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.wz .anz { position: absolute; right: 4px; top: 4px; min-width: 26px; height: 26px; border-radius: 13px; padding: 0 6px; font-style: normal; font-weight: 700; font-size: 16px; line-height: 26px; text-align: center;
  background: radial-gradient(circle at 35% 35%, #ffe7a8, var(--gold) 60%, var(--gold2)); color: #2a1a04; box-shadow: 0 2px 4px var(--schatten); }
.wz kbd { position: absolute; left: 5px; top: 4px; font: 13px/1 Georgia, serif; color: var(--text); }
.wz.an { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold), 0 0 18px rgba(240, 195, 90, .55), inset 0 1px 0 rgba(255, 230, 180, .2); transform: translateY(-3px); }
.wz.leer { opacity: .5; border-style: dashed; } .wz.leer .anz { background: #6a5a48; color: #e6dccb; }
#regler { display: grid; grid-template-columns: auto auto auto; grid-template-rows: 1fr 1fr; gap: 6px; flex: none; }
.rate { grid-row: 1 / 3; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 4px; border-radius: 10px; width: 64px; }
.rate button { width: 52px; height: 36px; border-radius: 8px; border: 1px solid var(--rand); background: linear-gradient(180deg, var(--knopf1), var(--knopf2)); font-size: 22px; line-height: 1; padding: 0; }
.rate span { display: flex; flex-direction: column; align-items: center; line-height: 1.05; } .rate small { font-size: 13px; color: var(--leise); } .rate b { font-size: 19px; font-variant-numeric: tabular-nums; }
.rk { width: 82px; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 2px; }
.rk svg { width: 22px; height: 22px; color: var(--gold); } .rk small { font-size: 13px; color: var(--leise); } .rk b { font-size: 19px; color: var(--gold); line-height: 1.1; }
.rk:disabled, .rate button:disabled { opacity: .5; border-style: dashed; }
#knoepfe { display: flex; gap: 6px; align-items: center; flex: none; }
#knoepfe button { width: 42px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; padding: 0; }
#knoepfe svg { width: 21px; height: 21px; }

#bann { position: absolute; left: 50%; top: 18px; transform: translateX(-50%); width: min(80%, 470px); padding: 10px 16px; border-radius: 12px; text-align: center; pointer-events: none;
  background: rgba(24, 14, 6, .86); color: #fbf1da; font-size: 16px; box-shadow: 0 6px 20px rgba(0, 0, 0, .4); border: 1px solid rgba(240, 195, 90, .5); z-index: 4; }
#bann b { display: block; font-size: 19px; color: #f6cf6a; margin-bottom: 2px; }
:root[data-ansicht="morgen"] #bann, :root[data-ansicht="morgen"] #hinweis { background: rgba(252, 244, 228, .97); color: #2e2214; border-color: rgba(140, 90, 30, .5); }
:root[data-ansicht="morgen"] #bann b { color: #8a4a0c; }
#hinweis { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); display: flex; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 12px;
  background: rgba(24, 14, 6, .88); color: #fbf1da; z-index: 4; white-space: nowrap; }
#hinweis button { min-height: 44px; padding: 6px 12px; border-radius: 9px; border: 1px solid rgba(240, 195, 90, .5); background: #4a2e14; color: #fbf1da; }
:root[data-ansicht="morgen"] #hinweis button { background: #ead2a6; color: #2e2214; }
#toast { position: absolute; left: 50%; bottom: 152px; transform: translateX(-50%); padding: 10px 16px; border-radius: 10px; background: var(--tafel2); border: 1px solid var(--rand); z-index: 9; max-width: 90%; text-align: center; }

#ov { position: absolute; inset: 0; z-index: 8; display: flex; align-items: center; justify-content: center; padding: 20px; background: var(--ov); }
.kasten { position: relative; width: min(680px, 100%); max-height: 100%; overflow: auto; padding: 22px 26px; border-radius: 16px; }
.kasten.mitte { width: min(540px, 100%); text-align: center; }
.kasten h2 { margin: 0 0 10px; font-size: 26px; color: var(--gold); } .kasten h3 { margin: 14px 0 6px; font-size: 18px; color: var(--gold); }
.kasten p { margin: 0 0 10px; }
.ov-zu { position: sticky; top: 0; float: right; margin: -10px -12px 0 8px; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--rand); background: var(--knopf2); display: flex; align-items: center; justify-content: center; padding: 0; z-index: 2; }
.ov-zu svg { width: 20px; height: 20px; }
.reihe { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 14px; }
.reihe button, #ov .ansichten button { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px 16px; border-radius: 10px; border: 1px solid var(--rand);
  background: linear-gradient(180deg, var(--knopf1), var(--knopf2)); box-shadow: 0 2px 6px var(--schatten); color: var(--text); }
.reihe button svg { width: 20px; height: 20px; }
.reihe button.haupt { background: linear-gradient(180deg, var(--gold), var(--gold2)); color: var(--hauptschrift); border-color: var(--gold2); font-weight: 700; }
:root[data-ansicht="morgen"] .reihe button.haupt { color: #fff8ea; }
.menue .titel { font-size: 48px; text-align: center; margin-bottom: 6px; }
.menue .unter { text-align: center; color: var(--leise); }
.modi { display: flex; flex-direction: column; gap: 10px; margin: 14px 0; }
.modus { display: flex; align-items: center; gap: 14px; text-align: left; padding: 12px 16px; min-height: 64px; border-radius: 12px; border: 1px solid var(--rand);
  background: linear-gradient(180deg, var(--knopf1), var(--knopf2)); box-shadow: 0 3px 8px var(--schatten); color: var(--text); }
.modus .mi { width: 42px; height: 42px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 35% 35%, #ffe7a8, #f0c35a 60%, #b9862c); color: #2a1a04; box-shadow: 0 0 14px rgba(255, 200, 100, .5); }
.modus .mi svg { width: 22px; height: 22px; }
.modus b { display: block; font-size: 19px; } .modus small { display: block; font-size: 14px; color: var(--leise); }
.ansichten { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; margin-top: 6px; }
.ansichten > span { font-size: 15px; color: var(--leise); width: 100%; text-align: center; }
.probe { display: inline-block; width: 30px; height: 30px; border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
.p-nacht { background: linear-gradient(180deg, #0d1430, #3a3550); } .p-winter { background: linear-gradient(180deg, #16213d, #61607a 70%, #eef2f8 71%); } .p-morgen { background: linear-gradient(180deg, #f3cfa0, #e8d9c6); }
#ov .ansichten button.an { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold); }
.einst { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; margin-top: 10px; font-size: 15px; }
.einst label { position: relative; display: inline-flex; align-items: center; min-height: 48px; padding-left: 34px; cursor: pointer; }
.einst input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.einst label::before { content: ''; position: absolute; left: 0; top: 50%; width: 22px; height: 22px; transform: translateY(-50%); border: 2px solid var(--gold); border-radius: 6px; background: var(--knopf2); }
.einst label:has(input:checked)::before { background: radial-gradient(circle, var(--gold) 45%, var(--knopf2) 50%); }
.einst label:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
.intro .ziel { font-size: 17px; } .intro .ziel b { color: var(--gold); font-size: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 4px; border-radius: 20px; background: var(--feld); border: 1px solid var(--rand); font-size: 15px; }
.chip canvas { width: 34px; height: 34px; } .chip b { color: var(--gold); }
kbd { display: inline-block; min-width: 20px; padding: 1px 5px; border-radius: 5px; background: var(--knopf2); border: 1px solid var(--rand); font: 13px/1.3 Georgia, serif; text-align: center; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
td { padding: 3px 0; text-align: left; } td:last-child { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.felder td:nth-child(2), .felder td:nth-child(3) { text-align: right; padding-right: 10px; font-variant-numeric: tabular-nums; }
tr.sum td { border-top: 1px solid var(--rand); font-weight: 700; color: var(--gold); padding-top: 5px; }
.klein { font-size: 14px; color: var(--leise); }
.regeln p { font-size: 15px; }
.eintraege { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.eintrag { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; background: var(--feld); border-radius: 10px; border: 1px solid var(--rand); }
.eintrag canvas { flex: none; width: 64px; height: 64px; border-radius: 8px; background: radial-gradient(circle, #2c3456, #121830); }
.eintrag b { font-size: 16px; } .eintrag p { margin: 2px 0; font-size: 14px; } .eintrag small { font-size: 14px; color: var(--gold); }
.stoff i { flex: none; width: 48px; height: 48px; border-radius: 8px; box-shadow: inset 0 2px 0 rgba(255, 255, 255, .25), inset 0 -3px 0 rgba(0, 0, 0, .3); }
.s1 i { background: radial-gradient(circle at 30% 30%, #9e6a42 10%, #845434 60%); } .s2 i { background: repeating-linear-gradient(0deg, #b9a58a 0 2px, #a4482e 2px 10px); }
.s3 i { background: repeating-linear-gradient(90deg, #3e4048 0 2px, #4e5058 2px 12px); } .s4 i { background: repeating-linear-gradient(90deg, #8a5a2c 0 2px, #b07a40 2px 14px); }
.ende .grund { color: var(--leise); text-align: center; margin-bottom: 4px; }
.endzahl { text-align: center; margin: 4px 0 8px; } .endzahl b { display: block; font-size: 46px; color: var(--gold); line-height: 1.1; } .endzahl span { color: var(--leise); }
.gut { color: var(--gut); text-align: center; } .warn { color: var(--warn); text-align: center; }
.sterne { display: flex; justify-content: center; gap: 8px; } .sterne span svg { width: 38px; height: 38px; color: rgba(160, 140, 110, .5); }
.sterne span.an svg { color: #ffd45a; filter: drop-shadow(0 0 6px rgba(255, 200, 80, .7)); }
.naechst { text-align: center; font-size: 15px; color: var(--gold); }
.liste ol { margin: 0; padding-left: 26px; } .liste li { padding: 2px 0; } .liste li span { display: inline-block; max-width: 70%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.liste li b { float: right; font-variant-numeric: tabular-nums; }
.reihenwahl { width: min(900px, 100%); padding: 16px 20px; } .reihenwahl h2 { margin-bottom: 4px; }
.felder-raster { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-top: 8px; }
.feldwahl { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1px; min-height: 84px; padding: 4px; border-radius: 10px; border: 1px solid var(--rand);
  background: linear-gradient(180deg, var(--knopf1), var(--knopf2)); color: var(--text); box-shadow: 0 2px 6px var(--schatten); }
.feldwahl canvas.vorschau { width: 96px; height: 30px; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--rand); }
.feldwahl b { font-size: 16px; line-height: 1.1; color: var(--gold); }
.feldwahl small { font-size: 13px; line-height: 1.15; text-align: center; color: var(--leise); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.feldwahl .st { display: flex; gap: 1px; } .feldwahl .st svg { width: 15px; height: 15px; color: rgba(160, 140, 110, .55); } .feldwahl .st i.an svg { color: #ffd45a; }
.feldwahl em { font-style: normal; font-size: 13px; font-variant-numeric: tabular-nums; }
.feldwahl.zu { opacity: .5; border-style: dashed; } .feldwahl.zu .st svg { color: var(--leise); width: 17px; height: 17px; }

#stage.klein { grid-template-rows: 50px 1fr 96px; gap: 8px; padding: 6px 14px 8px; }
#stage.klein #logoschild { display: none; }
#stage.klein #logoschild { padding: 4px 10px; } #stage.klein #logo { font-size: 18px; } #stage.klein #modus { display: none; }
#stage.klein #bauname small { display: none; } #stage.klein .wert { min-width: 76px; padding: 3px 9px; } #stage.klein .wert b { font-size: 18px; }
#stage.klein #kasten { padding: 8px; } #stage.klein .wz canvas { width: 46px; height: 46px; } #stage.klein .wz b { font-size: 13px; }
#stage.klein #bank { padding: 5px 8px; gap: 6px; } #stage.klein .rk { width: 66px; } #stage.klein .rate button { height: 30px; }
#stage.klein #knoepfe button { width: 50px; height: 50px; } #stage.klein #knoepfe svg { width: 24px; height: 24px; } #stage.klein #toast { bottom: 110px; }

#stage.hoch { grid-template-rows: auto 1fr auto; gap: 14px; padding: 12px 26px 16px; }
#stage.hoch #kopf { flex-wrap: wrap; gap: 6px; }
#stage.hoch #logoschild { padding: 5px 10px; } #stage.hoch #logo { font-size: 19px; } #stage.hoch #modus { max-width: 120px; }
#stage.hoch #bauname { flex: 1 1 200px; padding: 5px 10px; } #stage.hoch #bauname b { font-size: 17px; }
#stage.hoch .wert { flex: 1 1 22%; min-width: 0; padding: 4px 8px; } #stage.hoch .wert b { font-size: 19px; }
#stage.hoch #kasten { padding: 9px; }
#stage.hoch #bank { flex-direction: column; gap: 8px; padding: 8px; }
#stage.hoch #werkzeuge { grid-template-columns: repeat(4, 1fr); }
#stage.hoch .wz { min-height: 104px; } #stage.hoch .wz canvas { width: 60px; height: 60px; }
#stage.hoch #regler { grid-template-columns: 1.2fr 1fr 1fr 1fr 1fr; grid-template-rows: 64px 52px; }
#stage.hoch .rate { grid-row: 1; flex-direction: row; width: auto; padding: 6px; } #stage.hoch .rate button { width: 48px; height: 48px; }
#stage.hoch .rk { width: auto; }
#stage.hoch #knoepfe { position: static; display: flex; grid-column: 1 / 6; justify-content: flex-end; gap: 8px; }
#stage.hoch #knoepfe button { width: 52px; height: 48px; }
#stage.hoch #toast { bottom: 340px; } #stage.hoch #bann { top: 64px; width: 88%; }
#stage.hoch .felder-raster { grid-template-columns: repeat(3, 1fr); }
#stage.hoch .eintraege { grid-template-columns: 1fr; }
#stage.hoch .kasten { padding: 18px 16px; }
#stage.hoch .menue .titel { font-size: 38px; }

@media (pointer: coarse) { .reihe button, .modus { min-height: 52px; } }
@media (prefers-reduced-motion: reduce) { .wz.an { transform: none; } }
#stage.hoch .wz b { font-size: 15px; } #stage.hoch .rk small, #stage.hoch .rate small { font-size: 14px; }
#stage.hoch #zoom button { width: 60px; height: 60px; } #stage.hoch #zoom svg { width: 28px; height: 28px; }
#stage.hoch .rate button { width: 60px; height: 60px; }
#stage.hoch #regler { grid-template-rows: 70px 60px; }
#stage.hoch #knoepfe button { width: 60px; height: 60px; }
#stage.hoch .wz kbd { font-size: 14px; }
#stage.hoch #bann { top: 80px; }
.wz.keiner:not(.an) { opacity: .72; } .wz.keiner:not(.an) canvas { filter: saturate(.4); }
.mst { display: inline-flex; gap: 1px; margin-left: 5px; vertical-align: 2px; } .mst span { display: inline-flex; color: rgba(255,240,200,.28); } .mst span.an { color: var(--gold); } .mst svg { width: 11px; height: 11px; }
#stage.klein #w-raus small, #stage.hoch #w-raus small { display: none; }
.wz.null { opacity: .55; } .wz.null b, .wz.null kbd { display: none; } .wz.null canvas { width: 34px; height: 34px; filter: saturate(.3); } .wz.null .anz { transform: scale(.75); right: 1px; top: 1px; }
#keinwz { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; text-align: center; padding: 8px 16px; font-size: 16px; color: var(--leise); border-radius: 10px; border: 1px dashed var(--rand); }
#keinwz[hidden], #werkzeuge[hidden] { display: none; }
#stage.hoch.wenig .wz.null { display: none; } #stage.hoch.wenig #werkzeuge { grid-auto-rows: 104px; }
#regler { grid-template-columns: auto auto auto auto; } #b-zur { grid-row: 1 / 3; grid-column: 4; } #b-zur[hidden] { display: none; }
#stage.hoch #b-zur { grid-row: 2; grid-column: 1; } #stage.hoch #b-zur svg { width: 20px; height: 20px; } #stage.hoch #knoepfe { grid-column: 2 / 6; }
#zoom #z-folg.an { background: rgba(130, 84, 20, .92); border-color: #f6cf6a; color: #ffe39a; box-shadow: 0 0 0 2px rgba(246, 207, 106, .35); }
#bann, #stage.hoch #bann { top: auto; bottom: 14px; } #bann.hoeher { bottom: 72px; }
#bauname { flex: 1 1 210px; min-width: 170px; } .wert { min-width: 68px; padding: 6px 8px; }
.best { text-align: center; margin: 6px 0; color: var(--leise); } .best b { color: var(--gold); } .bst { display: inline-flex; gap: 2px; vertical-align: -3px; margin-left: 6px; } .bst span { color: rgba(200,180,140,.35); display: inline-flex; } .bst span.an { color: #ffd45a; } .bst svg { width: 16px; height: 16px; }
.erst { margin: 6px 0; padding: 8px 12px; border-radius: 10px; background: rgba(255, 212, 90, .12); border: 1px solid rgba(255, 212, 90, .35); }
.sterne.flieg span { opacity: 0; animation: sternRein .55s cubic-bezier(.2, 1.6, .4, 1) forwards; }
@keyframes sternRein { 0% { opacity: 0; transform: translateY(-30px) scale(.2) rotate(-90deg); } 70% { opacity: 1; transform: translateY(0) scale(1.3) rotate(8deg); } 100% { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .sterne.flieg span { animation: none; opacity: 1; } }
#kranz { position: absolute; inset: 0; z-index: 6; background: rgba(10, 6, 2, .28); }
#kranz[hidden] { display: none; }
.kr-mitte { position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: rgba(30, 20, 10, .9); border: 1px solid var(--rand); color: var(--leise); display: flex; align-items: center; justify-content: center; pointer-events: none; }
.kr-mitte svg { width: 16px; height: 16px; }
.kr-wz { position: absolute; width: 74px; height: 78px; margin: -39px 0 0 -37px; border-radius: 14px; padding: 2px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  background: linear-gradient(180deg, var(--tafel1), var(--tafel2)); border: 1px solid var(--rand); box-shadow: 0 6px 16px rgba(0, 0, 0, .5); animation: krRein .18s ease-out both; }
.kr-wz canvas { width: 42px; height: 42px; } .kr-wz b { font-size: 12px; } .kr-wz i { position: absolute; right: 2px; top: 2px; min-width: 22px; height: 22px; border-radius: 11px; background: var(--gold); color: #2a1a08; font: 700 13px/22px Georgia, serif; font-style: normal; text-align: center; }
@keyframes krRein { from { transform: scale(.3); opacity: 0; } to { transform: none; opacity: 1; } }
#stage.hoch .kr-wz { width: 100px; height: 100px; margin: -50px 0 0 -50px; } #stage.hoch .kr-wz canvas { width: 54px; height: 54px; } #stage.hoch .kr-wz b { font-size: 14px; }
#hinweis button.an { background: var(--gold); color: #2a1a08; }
.stadtplan { display: block; width: 100%; height: auto; max-height: 62vh; margin: 6px 0; }
#stage.hoch .stadtplan { max-height: none; }
.pl-name { fill: var(--gold); font: 700 15px Georgia, serif; letter-spacing: .04em; opacity: .85; }
#stage.hoch .pl-name { font-size: 20px; }
.pl-weg { fill: none; stroke: rgba(30, 18, 8, .55); stroke-width: 14; stroke-linecap: round; }
.pl-weg2 { fill: none; stroke: rgba(240, 210, 150, .55); stroke-width: 3; stroke-dasharray: 2 9; stroke-linecap: round; }
.pl-bau { cursor: pointer; outline: none; }
.pl-treffer { fill: transparent; }
.pl-kreis { fill: #7a4e28; stroke: #e8c27a; stroke-width: 2.5; }
.pl-bau.fertig .pl-kreis { fill: #a8742a; stroke: #ffd45a; }
.pl-bau.zu .pl-kreis { fill: #3a2c20; stroke: rgba(200, 170, 120, .4); }
.pl-bau:hover .pl-kreis, .pl-bau:focus .pl-kreis { stroke-width: 4; filter: drop-shadow(0 0 6px rgba(255, 212, 90, .6)); }
.pl-nr { fill: #fff3d6; font: 700 20px Georgia, serif; text-anchor: middle; }
#stage.hoch .pl-nr { font-size: 26px; }
.pl-schloss rect { fill: rgba(220, 200, 160, .55); } .pl-schloss path { stroke: rgba(220, 200, 160, .55); stroke-width: 3; }
.pl-stern { fill: rgba(200, 180, 140, .3); } .pl-stern.an { fill: #ffd45a; }
.pl-ring { fill: none; stroke: #ffd45a; stroke-width: 3; animation: plPuls 1.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes plPuls { 50% { opacity: .25; transform: scale(1.12); } }
.pl-info { text-align: center; min-height: 1.4em; color: var(--leise); }
:root[data-ansicht="morgen"] .pl-kreis { fill: #b98a52; } :root[data-ansicht="morgen"] .pl-bau.zu .pl-kreis { fill: #8a7a66; } :root[data-ansicht="morgen"] .pl-name { fill: #8a4a0c; }
@media (prefers-reduced-motion: reduce) { .pl-ring, .kr-wz { animation: none; } }
#stage.hoch .ov-zu { width: 62px; height: 62px; } #stage.hoch .ov-zu svg { width: 26px; height: 26px; } #stage.hoch .reihe button { min-height: 64px; }
#stage.hoch .kr-wz b { font-size: 16px; } #stage.hoch .kr-wz i { min-width: 28px; height: 28px; line-height: 28px; font-size: 17px; border-radius: 14px; }
.sym { width: .78em; height: .78em; vertical-align: -.04em; margin-right: .18em; opacity: .85; }
.wz.wurf { animation: wzWurf .45s ease-out; } .wz.wurf .anz { animation: anzPuls .45s ease-out; }
@keyframes wzWurf { 30% { transform: translateY(-6px) scale(1.06); } 100% { transform: none; } }
@keyframes anzPuls { 35% { transform: scale(1.5); background: #ffe7a0; color: #2a1a04; } 100% { transform: none; } }
.extra { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 12px; }
.extra button { display: flex; align-items: center; gap: 8px; text-align: left; min-height: 56px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--rand); background: linear-gradient(180deg, var(--knopf1), var(--knopf2)); color: var(--text); box-shadow: 0 2px 6px var(--schatten); }
.extra button svg { width: 24px; height: 24px; flex: none; color: var(--gold); }
.extra b { display: block; font-size: 16px; } .extra small { display: block; font-size: 13px; color: var(--leise); line-height: 1.25; }
#stage.hoch .extra { grid-template-columns: 1fr; } #stage.hoch .extra button { min-height: 64px; }
.zunft-neu { display: flex; gap: 12px; align-items: center; margin: 10px auto; padding: 10px 14px; max-width: 460px; border-radius: 12px; border: 1px solid var(--gold); background: var(--feld); text-align: left; animation: znEin .6s 1.4s both; }
.zunft-neu b { display: block; color: var(--gold); } .zunft-neu span { display: block; }
.zn-ic, .abz-ic { width: 44px; height: 44px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 35% 35%, #ffe7a8, #f0c35a 60%, #b9862c); color: #3a2208; box-shadow: 0 0 14px rgba(255, 200, 100, .45); }
.zn-ic svg, .abz-ic svg { width: 24px; height: 24px; }
@keyframes znEin { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
.abzeichen { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 10px 0; }
.abz { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--rand); background: var(--feld); opacity: .62; }
.abz:not(.hat) .abz-ic { background: rgba(160, 150, 130, .35); color: rgba(240, 230, 210, .55); box-shadow: none; }
.abz.hat { opacity: 1; border-color: var(--gold); }
.abz b { display: block; } .abz p { margin: 0; font-size: 14px; color: var(--leise); } .abz small { font-size: 13px; color: var(--gut); }
#stage.hoch .abzeichen { grid-template-columns: 1fr; }
.intro .mp { display: flex; gap: 8px; align-items: center; justify-content: center; color: var(--leise); }
.intro .mp svg { width: 22px; height: 22px; color: var(--gold); flex: none; } .intro .mp.hat span { color: var(--gut); }
.pl-mp circle { fill: #f0c35a; stroke: #3a2208; stroke-width: 1.5; } .pl-mp path { fill: #3a2208; stroke: #3a2208; stroke-width: 1.6; stroke-linejoin: round; }
.tastentab { width: 100%; border-collapse: collapse; } .tastentab td { padding: 6px 8px; border-bottom: 1px solid var(--rand); vertical-align: top; } .tastentab td:first-child { white-space: nowrap; width: 1%; }
.tastentab kbd { font-size: 15px; padding: 3px 8px; }
.kasten.editor { width: min(1040px, 100%); }
.ed-leiste { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 8px; }
.ed-leiste button, .ed-zeile button, .ed-wz button, .ed-liste button { min-height: 44px; padding: 6px 12px; border-radius: 9px; border: 1px solid var(--rand); background: linear-gradient(180deg, var(--knopf1), var(--knopf2)); color: var(--text); display: inline-flex; align-items: center; gap: 6px; }
.ed-leiste button.an { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold); }
.ed-leiste i { width: 18px; height: 18px; border-radius: 4px; display: inline-block; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); }
.ed-feld { border: 3px solid var(--holz2); border-radius: 8px; overflow: hidden; background: #1b2442; box-shadow: 0 4px 14px var(--schatten); }
#ed-cv { display: block; width: 100%; height: auto; touch-action: none; cursor: crosshair; image-rendering: pixelated; }
.ed-zeile { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 8px 0; }
.ed-info { margin-left: auto; font-size: 14px; color: var(--leise); }
.ed-werte { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 6px 0; }
.ed-werte label { display: flex; flex-direction: column; gap: 3px; font-size: 14px; color: var(--leise); }
.ed-werte input, .ed-werte select, #ed-code textarea { font: 16px Georgia, serif; padding: 8px; min-height: 44px; border-radius: 8px; border: 1px solid var(--rand); background: var(--feld); color: var(--text); }
.ed-werte input[type="number"] { width: 90px; } #ed-n { width: 220px; }
.ed-wzs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.ed-wz { display: flex; align-items: center; gap: 4px; padding: 4px 6px; border-radius: 9px; background: var(--feld); border: 1px solid var(--rand); }
.ed-wz canvas { width: 32px; height: 32px; } .ed-wz span { flex: 1; font-size: 14px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ed-wz b { min-width: 22px; text-align: center; } .ed-wz button { min-width: 44px; justify-content: center; padding: 4px; }
#ed-code textarea { width: 100%; box-sizing: border-box; font: 14px/1.3 monospace; }
.ed-liste { list-style: none; padding: 0; margin: 0; } .ed-liste li { display: flex; gap: 8px; align-items: center; padding: 4px 0; } .ed-liste li span { flex: 1; }
#stage.hoch .ed-wzs { grid-template-columns: repeat(2, 1fr); } #stage.hoch .ed-leiste button, #stage.hoch .ed-zeile button, #stage.hoch .ed-wz button { min-height: 56px; }
.wert.lk span { font-size: 12.5px; } .wert.lk b { font-size: 19px; }
#stage:not(.hoch) #werkzeuge { gap: 4px; } #stage:not(.hoch) .wz b { font-size: 12px; letter-spacing: -.35px; } #stage:not(.hoch) .wz { padding-left: 1px; padding-right: 1px; }
#bauname.lang small { display: none; } #bauname.lang b { white-space: normal; font-size: 15px; line-height: 1.12; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.wert.lk span em { font-style: normal; }
#stage.hoch .wert.lk span { font-size: 14px; } #stage.hoch .wert.lk .lk-weg { display: none; } #stage.hoch .wert.lk b { font-size: 19px; }
#stage.hoch #ov .ansichten button, #stage.hoch .einst label { min-height: 64px; }
#stage.hoch .ed-leiste button, #stage.hoch .ed-zeile button, #stage.hoch .ed-wz button, #stage.hoch .ed-liste button { min-height: 64px; }
#stage.hoch .ed-wz button { min-width: 64px; } #stage.hoch .ed-wzs { grid-template-columns: 1fr; }
#stage.hoch .ed-werte input, #stage.hoch .ed-werte select { min-height: 64px; font-size: 18px; } #stage.hoch .ed-werte select { min-width: 80px; }
#stage.hoch .ed-werte input[type="number"] { width: 100px; }
.extra { grid-template-columns: repeat(2, 1fr); }
.pl-mz { fill: #f0c35a; stroke: #3a2208; stroke-width: 1.4; stroke-linejoin: round; }
.intro .mp.mz svg { width: 24px; height: 20px; color: #f0c35a; }
.kasten.galerie { width: min(900px, 100%); }
.gal-reiter { display: flex; gap: 6px; justify-content: center; margin: 4px 0 10px; }
.gal-reiter button { min-height: 44px; padding: 6px 16px; border-radius: 9px; border: 1px solid var(--rand); background: linear-gradient(180deg, var(--knopf1), var(--knopf2)); color: var(--text); }
.gal-reiter button.an { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold); }
.gal-liste { display: flex; flex-direction: column; gap: 8px; }
.gal-karte { position: relative; display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--rand); background: var(--feld); }
.gal-karte.woche { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 0 14px rgba(240, 195, 90, .3); }
.gal-woche { position: absolute; top: -9px; left: 12px; padding: 1px 8px; border-radius: 8px; font-size: 12px; background: var(--gold); color: var(--hauptschrift); font-weight: 700; }
.gal-bild { width: 150px; height: 50px; border-radius: 6px; flex: none; box-shadow: inset 0 0 0 1px var(--rand); }
.gal-text { flex: 1; min-width: 0; } .gal-text b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .gal-text small { display: block; font-size: 13px; color: var(--leise); }
.gal-knoepfe { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.gal-knoepfe button { min-height: 44px; padding: 6px 12px; border-radius: 9px; border: 1px solid var(--rand); background: linear-gradient(180deg, var(--knopf1), var(--knopf2)); color: var(--text); display: inline-flex; align-items: center; gap: 6px; }
.gal-knoepfe button.haupt { background: linear-gradient(180deg, var(--gold), var(--gold2)); color: var(--hauptschrift); border-color: var(--gold2); font-weight: 700; }
.gal-knoepfe svg, .reihe button svg.gd { width: 18px; height: 18px; } .gal-knoepfe button.an, .reihe button.an { border-color: var(--gold); color: var(--gold); }
.gal-zahl { display: inline-flex; gap: 4px; align-items: center; color: var(--leise); } .gal-zahl svg { width: 16px; height: 16px; }
#stage.hoch .gal-karte { flex-wrap: wrap; } #stage.hoch .gal-bild { width: 100%; height: auto; aspect-ratio: 3 / 1; } #stage.hoch .gal-knoepfe { width: 100%; justify-content: flex-start; }
#stage.hoch .gal-knoepfe button, #stage.hoch .gal-reiter button { min-height: 64px; }
.kasten.ende.urkunde { background: radial-gradient(ellipse at 50% 40%, #f6e8c6 0%, #ead5a2 70%, #d8bd82 100%); color: #3a2410; border: 3px double #8a5a26; box-shadow: 0 18px 40px rgba(0,0,0,.55), inset 0 0 40px rgba(140,90,30,.35); }
.kasten.ende.urkunde h2, .kasten.ende.urkunde h3 { color: #6a2e10; }
.kasten.ende.urkunde .klein, .kasten.ende.urkunde small { color: #5a3a1c; }
.urk-kopf { font-variant: small-caps; letter-spacing: .06em; text-align: center; color: #6a4a24; margin: 0 0 4px; }
.urk-siegel { position: absolute; right: 18px; top: 14px; width: 58px; height: 58px; border-radius: 50%; background: radial-gradient(circle at 38% 34%, #d0463a, #8e1c14 62%, #6a120c); box-shadow: 0 3px 6px rgba(0,0,0,.4), inset 0 -3px 6px rgba(0,0,0,.35); }
.urk-siegel::after { content: ''; position: absolute; inset: 13px; border-radius: 50%; border: 2px solid rgba(255,210,170,.55); }
.urk-bild { display: block; width: 100%; max-width: 560px; height: auto; margin: 4px auto 8px; }
.urk-stempel { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 0 0 10px; }
.urk-stempel span { padding: 4px 12px; border: 2px solid #9a2a1a; color: #9a2a1a; border-radius: 6px; font-weight: bold; transform: rotate(-4deg); text-transform: uppercase; letter-spacing: .05em; }
.kasten.ende.urkunde .liste li { color: #3a2410; }
#b-undo { position: absolute; right: 14px; bottom: 14px; z-index: 5; min-height: 46px; padding: 8px 18px; border-radius: 10px; border: 2px solid var(--gold); background: linear-gradient(180deg, #5a3a1a, #3a240e); color: #ffe6b0; font-weight: bold; box-shadow: 0 6px 14px rgba(0,0,0,.45); animation: undoAus 3s linear forwards; }
#b-undo[hidden] { display: none; }
@keyframes undoAus { 0%, 70% { opacity: 1; } 100% { opacity: .35; } }
#stage.hoch #b-undo { bottom: 64px; }
.sonder { padding: 8px 12px; border-left: 4px solid var(--gold); background: rgba(255,210,120,.1); border-radius: 6px; }
.gal-best { display: block; color: var(--gold); }
.kasten.ende.urkunde :where(p, span, td, th, b, li, small, div):where(:not(button, button *, .urk-stempel span)) { color: #3a2410; }
.kasten.ende.urkunde :where(b, td:last-child) { color: #7a2a0c; }
.kasten.ende.urkunde .gut { color: #245a14; } .kasten.ende.urkunde .warn { color: #8a1a10; }
.kasten.ende.urkunde .urk-kopf { color: #6a4a24; }
.kasten.ende.urkunde .ov-zu { color: #fff1d0; background: linear-gradient(180deg, #7a4a20, #4a2a10); border-color: #8a5a26; }
.kasten.ende.urkunde .urk-knoepfe { position: sticky; bottom: -22px; margin: 14px -26px -22px; padding: 12px 16px 14px; z-index: 3;
  background: linear-gradient(180deg, rgba(234, 213, 162, 0), #ead5a2 22%, #e2c993); border-top: 1px solid rgba(138, 90, 38, .35); }
#stage.hoch .kasten.ende.urkunde .urk-knoepfe { bottom: -18px; margin: 12px -16px -18px; }

#bann.oben, #stage.hoch #bann.oben { top: 66px; bottom: auto; }
.urk-siegel { right: auto; left: 16px; top: 10px; width: 44px; height: 44px; transform: rotate(-14deg); pointer-events: none; opacity: .92; }
.urk-siegel::after { inset: 9px; }
#stage.hoch .urk-siegel { left: 14px; }
.kasten.ende.urkunde .urk-zeile { text-align: center; font-size: 15px; color: #5a3a1c; margin: 4px 0 8px; }
.vorf { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 8px 0 4px; }
.vorf figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.vorf canvas { width: 300px; max-width: 100%; height: auto; border-radius: 8px; border: 1px solid rgba(232, 190, 110, .5); box-shadow: 0 4px 10px rgba(0,0,0,.4); }
.vorf figcaption { font-size: 14px; color: var(--leise); }
#stage.hoch #logoschild { display: none; }
#stage.hoch .wz { min-height: 88px; } #stage.hoch .wz canvas { width: 52px; height: 52px; }
#stage.hoch.wenig #werkzeuge { grid-auto-rows: 88px; }
#stage.hoch { gap: 10px; }
.stadtplan .pl-schleier { fill: rgba(30, 18, 8, .18); }
:root[data-ansicht="morgen"] .stadtplan .pl-schleier { fill: rgba(255, 244, 220, .12); }
.stadtplan .pl-ws { fill: #cfeaff; font: 700 13px Georgia, serif; paint-order: stroke; stroke: rgba(20, 12, 4, .85); stroke-width: 3px; }
#stage.hoch .stadtplan .pl-ws { font-size: 17px; }
.ed-teile span { flex-basis: 100%; font-size: 14px; color: var(--leise); }
#werkbank { position: absolute; left: 12px; top: 74px; z-index: 3; display: flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 10px;
  background: rgba(30, 18, 8, .72); border: 1px solid var(--rand); pointer-events: none; }
#werkbank small { font-size: 13px; color: var(--leise); margin-right: 2px; }
#werkbank span { width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: rgba(220, 230, 240, .35); background: rgba(255, 255, 255, .06); }
#werkbank span.hat { color: #1a2a3a; background: radial-gradient(circle at 35% 35%, #ffffff, #bfe6ff 60%, #6aa8d8); animation: wb-ein .6s ease-out; }
#werkbank svg { width: 17px; height: 17px; }
@keyframes wb-ein { 0% { transform: scale(1.8); } 100% { transform: scale(1); } }
#stage.hoch #werkbank { top: 84px; } #stage.hoch #werkbank span { width: 34px; height: 34px; } #stage.hoch #werkbank svg { width: 22px; height: 22px; } #stage.hoch #werkbank small { font-size: 15px; }
@media (prefers-reduced-motion: reduce) { #werkbank span.hat { animation: none; } }
.stadtplan .pl-viertelring { fill: none; stroke-width: 4; opacity: .9; pointer-events: none; }
.pl-legende { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; margin: 8px 0 2px; font-size: 14px; color: var(--leise); }
.pl-legende span { display: inline-flex; align-items: center; gap: 6px; }
.pl-legende i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(0, 0, 0, .35); }
#stage.hoch .pl-legende { font-size: 16px; }
#wzgeist { position: absolute; z-index: 30; width: 72px; height: 72px; pointer-events: none; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .55)); }
#wzgeist canvas { width: 72px; height: 72px; }
.wz { touch-action: none; }
.mz-farben { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 10px; }
.mz-farben button { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 6px 14px; border-radius: 10px; border: 1px solid var(--rand); background: linear-gradient(180deg, var(--knopf1), var(--knopf2)); color: var(--text); }
.mz-farben button.an { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold); }
.mz-farben button:disabled { opacity: .45; filter: grayscale(.7); }
.mz-farben i { width: 20px; height: 20px; border-radius: 50% 50% 4px 50%; border: 1px solid rgba(0, 0, 0, .4); }
.mz-farben small { font-size: 13px; color: var(--leise); margin-left: 4px; }
#stage.hoch .mz-farben button { min-height: 64px; font-size: 18px; }
.kasten.szene { width: min(760px, 100%); text-align: center; }
.kasten.szene img { width: 100%; height: auto; border-radius: 10px; border: 2px solid var(--rand); box-shadow: 0 10px 24px rgba(0, 0, 0, .45); }
.kasten.szene p { font-size: 17px; line-height: 1.5; margin: 8px 6px; }
#stage.hoch .kasten.szene p { font-size: 19px; }
#stage.klein { grid-template-rows: 66px 1fr 92px; gap: 8px; padding: 6px 14px 8px; }
#stage.klein .wert, #stage.klein #bauname { padding-top: 2px; padding-bottom: 2px; }
#stage.klein #knoepfe button { width: 66px; height: 66px; } #stage.klein #knoepfe svg { width: 28px; height: 28px; }
#stage.klein #zoom button { width: 66px; height: 66px; } #stage.klein #zoom svg { width: 30px; height: 30px; }
#stage.klein #werkbank { top: 86px; }
#stage.klein #regler { grid-template-columns: auto repeat(5, auto); grid-template-rows: 1fr; }
#stage.klein .rate { grid-row: 1; flex-direction: row; gap: 4px; padding: 4px; width: auto; }
#stage.klein .rate button { flex: none; width: 66px; height: 76px; }
#stage.klein .rk { width: 72px; min-height: 76px; }
#stage.klein #b-zur { grid-row: 1; grid-column: auto; }
.abz .abz-fort { display: block; height: 6px; margin-top: 5px; border-radius: 3px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.abz .abz-fort i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold2), var(--gold)); }
.abz small.abz-zahl { color: var(--leise); }
#kulisse[data-ton="winter"] { filter: saturate(.7) brightness(1.06) hue-rotate(-14deg); }
#kulisse[data-ton="morgen"] { filter: brightness(1.32) sepia(.35) saturate(.9); }
.ed-feld { overflow: auto; max-height: 62vh; touch-action: none; }
#ed-cv { display: block; max-width: none; touch-action: none; }
.ed-zoom { display: flex; align-items: center; gap: 8px; margin: 6px 0; flex-wrap: wrap; }
.ed-zoom button { min-width: 48px; min-height: 48px; border-radius: 9px; border: 1px solid var(--rand); background: linear-gradient(180deg, var(--knopf1), var(--knopf2)); color: var(--text); font-size: 22px; }
.ed-zoom small { color: var(--leise); font-size: 13px; }
.ed-teile-box summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; color: var(--gold); font-weight: 700; }
#stage.hoch .ed-zoom button { min-width: 64px; min-height: 64px; } #stage.hoch .ed-teile-box summary { min-height: 56px; font-size: 18px; }
.aufg-ok { display: inline-flex; width: 18px; height: 18px; vertical-align: -3px; color: var(--gut); }
.aufg-ok svg { width: 18px; height: 18px; }
.stadtplan .pl-mf circle { fill: #3a2410; stroke: #f0c35a; stroke-width: 1.5; } .stadtplan .pl-mf path { fill: #f0c35a; }
#stage.klein #hinweis button { min-height: 66px; padding: 6px 18px; font-size: 18px; } #stage.klein #hinweis { font-size: 17px; }
#stage.hoch #knoepfe { grid-column: auto; flex: 0 0 auto; gap: 6px; align-self: stretch; }
#stage.hoch #knoepfe button { width: 64px; height: 100%; min-height: 64px; }
#stage.hoch .wert { flex: 1 1 15%; }
#stage.hoch #regler { grid-template-columns: repeat(4, 1fr); grid-auto-flow: row; grid-template-rows: 68px 66px; }
#stage.hoch .rate { grid-row: 1; grid-column: 1 / 3; justify-content: space-between; padding: 2px; } #stage.hoch .rate button { width: 76px; height: 64px; }
#stage.hoch #b-zur { grid-row: auto; grid-column: auto; flex-direction: row; gap: 6px; }
.mp.werk svg { color: var(--gold); }
.urk-werk { margin: 6px auto 4px; max-width: 330px; text-align: center; }
.urk-werk img { width: 100%; height: auto; border-radius: 8px; border: 2px solid #8a5a26; box-shadow: 0 4px 10px rgba(60, 30, 10, .35); }
.urk-werk figcaption { font-size: 15px; color: #5a3a1c; margin-top: 4px; }
.werkstaetten { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 6px 0 10px; }
.werkstaetten figure { margin: 0; border-radius: 8px; overflow: hidden; border: 1px solid var(--rand); background: rgba(0, 0, 0, .2); opacity: .55; filter: saturate(.35); }
.werkstaetten figure.hat { opacity: 1; filter: none; border-color: var(--gold); }
.werkstaetten img { display: block; width: 100%; height: auto; }
.werkstaetten figcaption { padding: 4px 6px 6px; font-size: 13px; line-height: 1.3; } .werkstaetten figcaption b { display: block; } .werkstaetten figcaption span { color: var(--leise); }
#stage.hoch .werkstaetten { grid-template-columns: repeat(2, 1fr); } #stage.hoch .werkstaetten figcaption { font-size: 16px; }
.pl-nr.klein { font-size: 14px; fill: rgba(255, 243, 214, .7); } #stage.hoch .pl-nr.klein { font-size: 19px; }
.pl-bau.zu .pl-viertelring { opacity: .55; }
