/* =====================================================================
   STADTWERK — Entwurf vom 11.11.2026
   stil.css

   NACH DER STILVORGABE umgebaut (11.11.2026).
   Die Oberfläche folgt jetzt dem Vorbild:
     · alles sind PILLEN — stark abgerundet, dunkles Olivgrau, kein Rahmen
       um den halben Bildschirm
     · ein einziger Akzent: Orange. Er markiert, was gerade zählt
       (der Tag, das Geld, die Warnung)
     · kleine Großbuchstaben-Beschriftung über dem großen Wert
     · nichts liegt am Rand fest — die Karte reicht überall bis zum Rand
       durch, die Pillen schweben darüber

   Die KI-Tafel ist die eigene Zutat, die es im Vorbild nicht gibt.
   Sie bekommt deshalb dieselbe Pillenform, aber Türkis als zweite Farbe,
   damit auf jedem Bild zu sehen ist: das hat nicht der Spieler getan.

   Schriften: nur was auf dem Rechner liegt (Regel 8). Keine Schrift
   aus dem Netz. Zahlen auf fester Breite, damit sie beim Zählen nicht
   zappeln.

   Barrierefreiheit (Regel 13): echte <button>, sichtbarer Fokusrahmen,
   Flächen ab 44 Punkten, prefers-reduced-motion schaltet Bewegung ab.
   ===================================================================== */

:root {
  --tafel: rgba(38, 44, 33, .93);
  --tafel2: rgba(48, 55, 42, .97);
  --tafel3: rgba(60, 68, 52, .97);
  --rand: rgba(255, 255, 255, .13);
  --rand2: rgba(255, 255, 255, .22);
  --text: #f4f1e6;
  --leise: #bdc1ad;
  --stumm: #8e937f;
  --akzent: #f0922e;
  --akzent2: #ffb347;
  --akzent-d: #a8601a;
  --kalt: #5fb8d0;
  --kalt-d: #276d80;
  --gut: #7ec86a;
  --warn: #f0c23c;
  --halt: #e2563f;
  --s1: 0 2px 6px rgba(0, 0, 0, .30);
  --s2: 0 8px 26px rgba(0, 0, 0, .42);
  --schrift: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", sans-serif;
  --r: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; overflow: hidden; }
body {
  background: #16202a; color: var(--text);
  font-family: var(--schrift); font-size: 14px;
  -webkit-font-smoothing: antialiased; user-select: none;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
button:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--akzent2); outline-offset: 2px; border-radius: 8px; }
.zahl { font-variant-numeric: tabular-nums; }

.schirm { position: fixed; inset: 0; display: none; }
.schirm.an { display: block; }

/* =====================================================================
   PILLEN — die Grundform der ganzen Oberfläche
   ===================================================================== */
.pille {
  display: flex; align-items: center; gap: 10px;
  height: 42px; padding: 0 15px 0 9px;
  background: var(--tafel); border: 1px solid var(--rand);
  border-radius: var(--r); box-shadow: var(--s1);
}
.pille .sym {
  width: 26px; height: 26px; flex: none; border-radius: 50%;
  display: grid; place-items: center; font-style: normal;
  background: linear-gradient(160deg, var(--akzent2), var(--akzent-d));
  color: #2a1c08; font-weight: 700; font-size: 13px;
}
.pille .sym svg { width: 15px; height: 15px; }
.pille .sym.grau { background: linear-gradient(160deg, #c9ccbd, #8a8f7e); color: #2a2d22; }
.pille .sym.kalt { background: linear-gradient(160deg, #8fdcee, var(--kalt-d)); color: #06252e; }
.pille u { display: block; text-decoration: none; font-size: 8.5px; letter-spacing: .16em; color: var(--stumm); text-transform: uppercase; font-weight: 700; }
.pille b { display: block; font-size: 15px; font-weight: 700; letter-spacing: .01em; margin-top: -1px; }
.pille.akzent { background: linear-gradient(160deg, var(--akzent2), #e07e1c); border-color: rgba(255, 255, 255, .28); }
.pille.akzent u { color: rgba(50, 28, 4, .72); }
.pille.akzent b { color: #2e1a04; }
.pille.warnung { background: rgba(60, 44, 24, .95); border-color: rgba(240, 146, 46, .45); }
.pille.warnung b { color: var(--akzent2); font-size: 13px; }
.pille.schmal { height: 34px; padding: 0 13px 0 7px; }
.pille.schmal b { font-size: 13px; }

/* =====================================================================
   1  HAUPTMENÜ
   ===================================================================== */
#menue { background: #16202a; }
#menueLeinwand { position: absolute; inset: 0; width: 100%; height: 100%; }
#menueSchleier {
  position: absolute; inset: 0;
  background:
    radial-gradient(110% 80% at 16% 52%, rgba(14, 20, 14, .90) 0%, rgba(14, 20, 14, .48) 44%, rgba(14, 20, 14, 0) 72%),
    linear-gradient(180deg, rgba(14, 20, 14, .45), rgba(14, 20, 14, 0) 26%, rgba(14, 20, 14, .60));
}
#menueInhalt {
  position: absolute; left: 0; top: 0; bottom: 0; width: min(540px, 48vw);
  padding-left: 60px; display: flex; flex-direction: column; justify-content: center; gap: 36px;
}
.marke { display: flex; align-items: center; gap: 18px; }
.marke .zeichen {
  width: 56px; height: 56px; flex: none; border-radius: 18px;
  background: linear-gradient(160deg, var(--akzent2), var(--akzent-d));
  display: grid; place-items: center; box-shadow: 0 8px 22px rgba(240, 146, 46, .35);
}
.marke .zeichen svg { width: 30px; height: 30px; color: #2e1a04; }
#titel { font-size: 52px; font-weight: 300; letter-spacing: .14em; line-height: 1; }
#titel b { font-weight: 800; color: var(--akzent2); }
#unterzeile { font-size: 12.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--leise); margin-top: 11px; font-weight: 600; }
#menueListe { display: flex; flex-direction: column; gap: 8px; max-width: 400px; }
.mknopf {
  display: flex; align-items: center; gap: 15px; min-height: 54px; padding: 0 20px;
  border-radius: var(--r); font-size: 18px; font-weight: 600; letter-spacing: .02em;
  background: var(--tafel); border: 1px solid var(--rand); box-shadow: var(--s1);
  transition: transform .14s, background .14s;
}
.mknopf i {
  font-style: normal; width: 26px; height: 26px; border-radius: 50%; flex: none;
  background: rgba(255, 255, 255, .08); color: var(--stumm);
  display: grid; place-items: center; font-size: 11px; font-weight: 700;
}
.mknopf em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--stumm); font-weight: 600; }
.mknopf:hover, .mknopf:focus-visible {
  background: linear-gradient(160deg, var(--akzent2), #e07e1c); color: #2e1a04; transform: translateX(6px);
}
.mknopf:hover i { background: rgba(46, 26, 4, .18); color: #2e1a04; }
.mknopf:hover em { color: rgba(46, 26, 4, .7); }
#menueFuss { position: absolute; left: 60px; bottom: 26px; font-size: 12px; color: var(--leise); letter-spacing: .04em; }
#menueFuss b { color: var(--akzent2); font-weight: 700; }

/* Dialoge */
.tafelFenster {
  position: absolute; inset: 0; display: none; align-items: center; justify-content: center;
  background: rgba(10, 16, 10, .70); backdrop-filter: blur(5px); z-index: 40;
}
.tafelFenster.an { display: flex; }
.kasten {
  width: min(820px, 92vw); max-height: 86vh; overflow: auto;
  background: var(--tafel2); border: 1px solid var(--rand2); border-radius: 22px; box-shadow: var(--s2);
}
.kastenKopf { display: flex; align-items: center; gap: 12px; padding: 20px 24px; border-bottom: 1px solid var(--rand); }
.kastenKopf h2 { font-size: 16px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.kastenKopf .zu { margin-left: auto; width: 38px; height: 38px; border-radius: 50%; font-size: 17px; color: var(--leise); background: rgba(255, 255, 255, .06); }
.kastenKopf .zu:hover { background: rgba(255, 255, 255, .14); color: var(--text); }
.kastenLeib { padding: 20px 24px 26px; }

.standListe { display: grid; gap: 10px; }
.stand {
  display: grid; grid-template-columns: 120px 1fr auto; gap: 16px; align-items: center;
  padding: 11px; background: rgba(255, 255, 255, .04); border: 1px solid var(--rand);
  border-radius: 18px; text-align: left; width: 100%;
}
.stand:hover { background: rgba(240, 146, 46, .13); border-color: rgba(240, 146, 46, .45); }
.stand canvas { width: 120px; height: 72px; border-radius: 12px; display: block; background: #1d2a18; }
.stand .n { font-size: 16px; font-weight: 700; }
.stand .m { font-size: 12px; color: var(--leise); margin-top: 3px; }
.stand .r { text-align: right; font-size: 11.5px; color: var(--stumm); line-height: 1.6; }

.feldZeile { display: grid; grid-template-columns: 240px 1fr; gap: 18px; align-items: center; padding: 11px 0; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.feldZeile:last-of-type { border-bottom: 0; }
.feldZeile > span { color: var(--leise); font-size: 13px; }
.schalter { display: flex; gap: 6px; }
.schalter button {
  min-height: 38px; padding: 0 15px; border-radius: 12px; font-size: 13px; font-weight: 600;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--rand); color: var(--leise);
}
.schalter button.an { background: linear-gradient(160deg, var(--akzent2), #e07e1c); border-color: transparent; color: #2e1a04; }
input[type=range] { width: 100%; accent-color: var(--akzent); height: 28px; }

/* =====================================================================
   2+3  SPIELOBERFLÄCHE
   ===================================================================== */
#spiel { background: #1d3340; }
#karte { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; }
#karte.zieht { cursor: grabbing; }

/* ---- Pillen oben links, wie im Vorbild ---- */
#werte { position: absolute; left: 14px; top: 14px; z-index: 10; display: flex; flex-direction: column; gap: 7px; align-items: flex-start; }
#werteReihe1, #werteReihe2 { display: flex; gap: 7px; flex-wrap: wrap; }

/* ---- Pillen oben rechts ---- */
#kopfRechts { position: absolute; right: 14px; top: 14px; z-index: 10; display: flex; gap: 7px; align-items: center; }
.rund {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: var(--tafel); border: 1px solid var(--rand); color: var(--leise); box-shadow: var(--s1);
}
.rund:hover { background: var(--tafel3); color: var(--text); }
.rund svg { width: 19px; height: 19px; }
.kiPille {
  display: flex; align-items: center; gap: 9px; height: 42px; padding: 0 16px;
  background: rgba(24, 48, 56, .93); border: 1px solid rgba(95, 184, 208, .40);
  border-radius: var(--r); font-size: 12px; font-weight: 700; letter-spacing: .1em;
  color: var(--kalt); text-transform: uppercase; box-shadow: var(--s1);
}
.kiPille i { width: 8px; height: 8px; border-radius: 50%; background: var(--kalt); box-shadow: 0 0 10px var(--kalt); animation: puls 2.2s ease-in-out infinite; }
@keyframes puls { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }

/* ---- linke Navigation als Pillenspalte ---- */
#navi {
  position: absolute; left: 14px; top: 112px; z-index: 10; width: 56px;
  background: var(--tafel); border: 1px solid var(--rand); border-radius: 22px;
  box-shadow: var(--s2); padding: 7px; display: flex; flex-direction: column; gap: 4px;
  transition: width .18s ease;
}
#navi:hover { width: 208px; }
.nknopf {
  display: flex; align-items: center; gap: 14px; height: 42px; padding: 0 9px;
  border-radius: 14px; color: var(--leise); white-space: nowrap; overflow: hidden;
}
.nknopf svg { width: 21px; height: 21px; flex: none; }
.nknopf span { font-size: 14px; font-weight: 600; opacity: 0; transition: opacity .14s; }
#navi:hover .nknopf span { opacity: 1; }
.nknopf:hover { background: rgba(255, 255, 255, .08); color: var(--text); }
.nknopf.an { background: linear-gradient(160deg, var(--akzent2), #e07e1c); color: #2e1a04; }
#navi hr { border: 0; border-top: 1px solid var(--rand); margin: 4px 6px; }

/* ---- Baumenü ---- */
#bauleiste {
  position: absolute; left: 82px; top: 112px; z-index: 9; width: 262px; display: none;
  background: var(--tafel); border: 1px solid var(--rand); border-radius: 22px;
  box-shadow: var(--s2); overflow: hidden;
}
#bauleiste.an { display: block; }
.leisteKopf { padding: 14px 17px; border-bottom: 1px solid var(--rand); font-size: 10px; letter-spacing: .18em; color: var(--stumm); text-transform: uppercase; font-weight: 700; }
.bauGruppe { padding: 10px 11px 12px; }
.bauGruppe h4 { font-size: 10px; letter-spacing: .16em; color: var(--stumm); text-transform: uppercase; padding: 6px 5px 8px; font-weight: 700; }
.bauReihe { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.bauKachel {
  aspect-ratio: 1; border-radius: 14px; background: rgba(255, 255, 255, .05);
  border: 1px solid var(--rand); position: relative; overflow: hidden;
}
.bauKachel canvas { width: 100%; height: 100%; display: block; }
.bauKachel:hover { border-color: rgba(240, 146, 46, .6); background: rgba(240, 146, 46, .12); }
.bauKachel.an { border-color: var(--akzent2); box-shadow: 0 0 0 2px var(--akzent2) inset; }

/* ---- rechte KI-Tafel ---- */
#kitafel {
  position: absolute; right: 14px; top: 68px; bottom: 112px; width: 348px; z-index: 10;
  background: var(--tafel); border: 1px solid var(--rand); border-radius: 22px;
  box-shadow: var(--s2); display: flex; flex-direction: column; overflow: hidden;
}
#kitafelKopf {
  padding: 15px 17px; border-bottom: 1px solid var(--rand);
  background: linear-gradient(180deg, rgba(95, 184, 208, .14), transparent);
  display: flex; align-items: center; gap: 12px;
}
#kitafelKopf .ring { width: 30px; height: 30px; flex: none; border-radius: 50%; border: 2.5px solid rgba(95, 184, 208, .28); border-top-color: var(--kalt); animation: dreh 2.6s linear infinite; }
@keyframes dreh { to { transform: rotate(360deg); } }
#kitafelKopf h3 { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
#kitafelKopf p { font-size: 11px; color: var(--kalt); margin-top: 2px; font-weight: 600; }
#kitafelKopf .auf { margin-left: auto; width: 34px; height: 34px; }
#kitafelLeib { flex: 1; overflow-y: auto; overflow-x: hidden; }
#kitafelLeib::-webkit-scrollbar { width: 8px; }
#kitafelLeib::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .16); border-radius: 4px; }

.block { padding: 15px 17px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.block > h4 { font-size: 9.5px; letter-spacing: .18em; color: var(--stumm); text-transform: uppercase; font-weight: 700; display: flex; align-items: center; gap: 8px; margin-bottom: 11px; }
.block > h4 em { margin-left: auto; font-style: normal; color: var(--leise); letter-spacing: .04em; font-size: 11px; }

.analyse { font-size: 13.5px; line-height: 1.45; }
.analyse .was b { color: var(--kalt); font-weight: 700; }
.balken { height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .10); overflow: hidden; margin-top: 10px; }
.balken i { display: block; height: 100%; background: linear-gradient(90deg, var(--kalt-d), var(--kalt)); border-radius: 3px; transition: width .35s ease; }
.schritte { margin-top: 11px; display: grid; gap: 6px; }
.schritt { display: flex; align-items: center; gap: 9px; font-size: 12px; color: var(--stumm); }
.schritt .p { width: 15px; height: 15px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .2); flex: none; display: grid; place-items: center; font-size: 9px; font-weight: 700; }
.schritt.fertig { color: var(--leise); } .schritt.fertig .p { border-color: var(--gut); color: var(--gut); }
.schritt.laeuft { color: var(--text); } .schritt.laeuft .p { border-color: var(--kalt); background: rgba(95, 184, 208, .22); color: var(--kalt); }

.problem { display: grid; grid-template-columns: 9px 1fr auto; gap: 11px; align-items: start; padding: 8px 0; }
.problem + .problem { border-top: 1px solid rgba(255, 255, 255, .06); }
.problem .punkt { width: 9px; height: 9px; border-radius: 50%; margin-top: 5px; }
.problem .punkt.hoch { background: var(--halt); box-shadow: 0 0 8px var(--halt); }
.problem .punkt.mittel { background: var(--warn); }
.problem .punkt.klein { background: var(--leise); }
.problem .t { font-size: 13px; line-height: 1.35; font-weight: 600; }
.problem .u { font-size: 11.5px; color: var(--stumm); margin-top: 2px; }
.problem .m { font-size: 13px; font-weight: 700; text-align: right; white-space: nowrap; }
.problem .m.hoch { color: var(--halt); } .problem .m.mittel { color: var(--warn); }

.plan { display: grid; grid-template-columns: 38px 1fr auto; gap: 11px; align-items: center; padding: 7px 0; }
.plan + .plan { border-top: 1px solid rgba(255, 255, 255, .06); }
.plan canvas { width: 38px; height: 38px; border-radius: 11px; background: rgba(255, 255, 255, .05); display: block; }
.plan .t { font-size: 13px; font-weight: 600; }
.plan .u { font-size: 11px; color: var(--stumm); margin-top: 1px; }
.plan .k { font-size: 12.5px; font-weight: 700; color: var(--akzent2); white-space: nowrap; }
.bauZeile { padding: 9px 0; }
.bauZeile + .bauZeile { border-top: 1px solid rgba(255, 255, 255, .06); }
.bauZeile .z { display: flex; align-items: baseline; gap: 8px; font-size: 13px; font-weight: 600; }
.bauZeile .z em { margin-left: auto; font-style: normal; font-size: 11.5px; color: var(--leise); font-weight: 600; }
.bauZeile .u { font-size: 11px; color: var(--stumm); margin-top: 2px; }
.bauZeile .balken i { background: linear-gradient(90deg, var(--akzent-d), var(--akzent2)); }

.grund { font-size: 13px; line-height: 1.55; }
.grund .zitat { border-left: 3px solid var(--kalt); padding: 2px 0 2px 12px; color: var(--leise); border-radius: 2px; }
.grund .zitat b { color: var(--text); font-weight: 700; }
.waage { margin-top: 12px; display: grid; gap: 7px; }
.waage .z { display: grid; grid-template-columns: 102px 1fr 40px; gap: 10px; align-items: center; font-size: 11.5px; color: var(--leise); }
.waage .s { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.waage .s i { display: block; height: 100%; border-radius: 3px; }
.waage .v { text-align: right; font-weight: 700; color: var(--text); }
.knopfReihe { display: flex; gap: 7px; margin-top: 14px; }
.knopfReihe button {
  flex: 1; min-height: 42px; border-radius: 14px; font-size: 13px; font-weight: 600;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--rand); color: var(--leise);
}
.knopfReihe button.haupt { background: linear-gradient(160deg, #7fd8ee, var(--kalt-d)); border-color: transparent; color: #06252e; font-weight: 700; }
.knopfReihe button:hover { background: rgba(255, 255, 255, .12); color: var(--text); }
.knopfReihe button.haupt:hover { filter: brightness(1.1); color: #06252e; }

/* ---- untere Leiste ---- */
/* Die unteren beiden Leisten liegen höher, als sie im fertigen Spiel
   lägen: darunter sitzt die Entwurfsleiste, die es später nicht gibt. */
#fuss {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: 112px; z-index: 10;
  display: flex; align-items: center; gap: 8px;
}
#uhr { display: flex; align-items: center; gap: 12px; }
#uhr .u { font-size: 17px; font-weight: 700; }
#uhr .d { font-size: 9px; letter-spacing: .14em; color: var(--stumm); font-weight: 700; text-transform: uppercase; }
#tempo { display: flex; gap: 5px; background: var(--tafel); border: 1px solid var(--rand); border-radius: var(--r); padding: 5px; box-shadow: var(--s1); }
#tempo button { min-width: 44px; height: 32px; border-radius: 11px; font-size: 13px; font-weight: 700; color: var(--leise); }
#tempo button.an { background: linear-gradient(160deg, var(--akzent2), #e07e1c); color: #2e1a04; }
#maszstab { display: flex; gap: 5px; background: var(--tafel); border: 1px solid var(--rand); border-radius: var(--r); padding: 5px; box-shadow: var(--s1); }
#maszstab button { width: 32px; height: 32px; border-radius: 11px; font-size: 17px; font-weight: 700; color: var(--leise); }
#maszstab button:hover { background: rgba(255, 255, 255, .12); color: var(--text); }

/* ---- Zeitleiste ---- */
#zeitleiste {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: 62px; z-index: 10;
  width: min(640px, 70vw); height: 36px;
  background: var(--tafel); border: 1px solid var(--rand); border-radius: var(--r); box-shadow: var(--s1);
}
#zeitleisteGrund { position: absolute; left: 16px; right: 16px; top: 50%; height: 4px; transform: translateY(-50%); background: rgba(255, 255, 255, .10); border-radius: 2px; }
#zeitleisteGrund i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, var(--akzent-d), var(--akzent2)); border-radius: 2px; }
#zeitMarken { position: absolute; left: 16px; right: 16px; top: 0; bottom: 0; }
.marke2 { position: absolute; top: 50%; transform: translate(-50%, -50%); width: 11px; height: 11px; border-radius: 50%; border: 2px solid #2a3022; cursor: pointer; }
.marke2.bau { background: var(--akzent2); } .marke2.ki { background: var(--kalt); }
.marke2.warn { background: var(--warn); } .marke2.gut { background: var(--gut); }
.marke2:hover::after {
  content: attr(data-t); position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  background: var(--tafel3); border: 1px solid var(--rand2); border-radius: 12px;
  padding: 7px 12px; font-size: 11.5px; white-space: nowrap; color: var(--text); box-shadow: var(--s2);
}

/* ---- Werkzeugspitze ---- */
#spitze {
  position: absolute; z-index: 12; pointer-events: none; display: none;
  background: var(--tafel2); border: 1px solid var(--rand2); border-radius: 14px;
  padding: 10px 13px; font-size: 12.5px; box-shadow: var(--s2); max-width: 260px;
}
#spitze.an { display: block; }
#spitze b { display: block; font-size: 13.5px; margin-bottom: 4px; font-weight: 700; }
#spitze .r { color: var(--leise); font-size: 11.5px; line-height: 1.5; }
#spitze .kiv { color: var(--kalt); margin-top: 7px; font-size: 11.5px; }

/* ---- Meldungen ---- */
#meldungen { position: absolute; left: 50%; top: 16px; transform: translateX(-50%); z-index: 11; display: grid; gap: 7px; justify-items: center; }
.meldung {
  display: flex; align-items: center; gap: 11px; padding: 10px 18px;
  background: var(--tafel2); border: 1px solid rgba(95, 184, 208, .42); border-radius: 22px;
  box-shadow: var(--s2); font-size: 13px; animation: rein .3s ease;
}
.meldung.geld { border-color: rgba(240, 146, 46, .5); }
.meldung i { width: 8px; height: 8px; border-radius: 50%; background: var(--kalt); flex: none; }
.meldung.geld i { background: var(--akzent2); }
.meldung b { color: var(--kalt); font-weight: 700; }
.meldung.geld b { color: var(--akzent2); }
@keyframes rein { from { opacity: 0; transform: translateY(-9px); } }

/* ---- Kostenmarke über einem Gebäude, wie im Vorbild ---- */
.kostenmarke {
  position: absolute; z-index: 11; transform: translate(-50%, -100%); pointer-events: none;
  background: var(--tafel2); border: 1px solid var(--rand2); border-radius: 14px;
  padding: 7px 13px; text-align: center; box-shadow: var(--s2);
}
.kostenmarke b { display: block; color: var(--akzent2); font-size: 14px; font-weight: 700; }
.kostenmarke span { display: block; font-size: 10.5px; color: var(--leise); margin-top: 1px; }

/* =====================================================================
   4  KI-FENSTER
   ===================================================================== */
#kifenster { background: radial-gradient(120% 100% at 72% 0%, #1b2f36 0%, #121a16 62%); overflow: auto; }
#kiRahmen { min-height: 100%; padding: 22px 26px 30px; display: flex; flex-direction: column; gap: 18px; }
#kiKopfLeiste { display: flex; align-items: center; gap: 18px; }
#kiKopfLeiste .wappen { width: 46px; height: 46px; border-radius: 16px; flex: none; display: grid; place-items: center; background: rgba(95, 184, 208, .16); border: 1px solid rgba(95, 184, 208, .45); }
#kiKopfLeiste h1 { font-size: 20px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
#kiKopfLeiste p { font-size: 12px; color: var(--kalt); margin-top: 3px; font-weight: 600; }
#kiKopfLeiste .rechts { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.betriebsart { display: flex; gap: 5px; background: var(--tafel); border: 1px solid var(--rand); border-radius: var(--r); padding: 5px; }
.betriebsart button { min-height: 36px; padding: 0 15px; border-radius: 12px; font-size: 13px; font-weight: 600; color: var(--leise); }
.betriebsart button.an { background: linear-gradient(160deg, #7fd8ee, var(--kalt-d)); color: #06252e; font-weight: 700; }

#kiGitter { display: grid; grid-template-columns: 1.1fr 1.5fr 1.1fr; gap: 18px; align-items: start; }
@media (max-width: 1280px) { #kiGitter { grid-template-columns: 1fr 1fr; } }
.karte { background: var(--tafel); border: 1px solid var(--rand); border-radius: 22px; box-shadow: var(--s1); overflow: hidden; }
.karte > header { padding: 15px 18px; border-bottom: 1px solid var(--rand); display: flex; align-items: center; gap: 10px; }
.karte > header h3 { font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--leise); font-weight: 700; }
.karte > header em { margin-left: auto; font-style: normal; font-size: 11px; color: var(--stumm); }
.karte > .leib { padding: 16px 18px; }

.prot { position: relative; padding-left: 22px; }
.prot::before { content: ''; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: rgba(255, 255, 255, .10); border-radius: 1px; }
.eintrag { position: relative; padding: 10px 0 14px; }
.eintrag::before { content: ''; position: absolute; left: -20px; top: 15px; width: 10px; height: 10px; border-radius: 50%; background: var(--kalt); box-shadow: 0 0 0 3px rgba(95, 184, 208, .18); }
.eintrag.geld::before { background: var(--akzent2); box-shadow: 0 0 0 3px rgba(240, 146, 46, .18); }
.eintrag.warn::before { background: var(--warn); box-shadow: 0 0 0 3px rgba(240, 194, 60, .18); }
.eintrag .zt { font-size: 10px; letter-spacing: .12em; color: var(--stumm); text-transform: uppercase; font-weight: 700; }
.eintrag .tt { font-size: 13.5px; margin-top: 3px; font-weight: 600; }
.eintrag .gg { font-size: 12px; color: var(--leise); margin-top: 5px; line-height: 1.5; }
.eintrag .gg b { color: var(--text); font-weight: 700; }

#analysekarte { width: 100%; border-radius: 16px; display: block; background: #16221a; }
.legende { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 12px; font-size: 11.5px; color: var(--leise); }
.legende span { display: flex; align-items: center; gap: 6px; }
.legende i { width: 11px; height: 11px; border-radius: 4px; }
.ebenen { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 13px; }
.ebenen button { min-height: 34px; padding: 0 13px; border-radius: 12px; font-size: 12.5px; font-weight: 600; background: rgba(255, 255, 255, .05); border: 1px solid var(--rand); color: var(--leise); }
.ebenen button.an { background: rgba(95, 184, 208, .20); border-color: rgba(95, 184, 208, .5); color: var(--kalt); }

.ziel { padding: 11px 0; }
.ziel + .ziel { border-top: 1px solid rgba(255, 255, 255, .06); }
.ziel .z { display: flex; align-items: baseline; gap: 8px; font-size: 13.5px; font-weight: 600; }
.ziel .z em { margin-left: auto; font-style: normal; font-size: 12.5px; color: var(--akzent2); font-weight: 700; }
.ziel .u { font-size: 11.5px; color: var(--stumm); margin-top: 4px; line-height: 1.45; }
.grenze { display: flex; align-items: flex-start; gap: 11px; padding: 10px 0; font-size: 12.5px; color: var(--leise); }
.grenze + .grenze { border-top: 1px solid rgba(255, 255, 255, .06); }
.grenze svg { width: 16px; height: 16px; flex: none; margin-top: 1px; color: var(--gut); }
.grenze b { color: var(--text); font-weight: 700; }

table.tab { width: 100%; border-collapse: collapse; font-size: 13px; }
table.tab th { text-align: left; font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--stumm); font-weight: 700; padding: 0 12px 10px 0; border-bottom: 1px solid var(--rand); }
table.tab td { padding: 11px 12px 11px 0; border-bottom: 1px solid rgba(255, 255, 255, .06); vertical-align: middle; }
table.tab tr:last-child td { border-bottom: 0; }
.fahne { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px; border-radius: 12px; font-size: 11.5px; font-weight: 600; }
.fahne.bau { background: rgba(240, 146, 46, .18); color: var(--akzent2); }
.fahne.plan { background: rgba(95, 184, 208, .16); color: var(--kalt); }
.fahne.warte { background: rgba(255, 255, 255, .08); color: var(--leise); }

/* =====================================================================
   5  GEBÄUDEKATALOG
   ===================================================================== */
#katalog { background: radial-gradient(130% 100% at 20% 0%, #1e2c22 0%, #121a16 60%); overflow: auto; }
#katRahmen { padding: 24px 28px 46px; max-width: 1560px; margin: 0 auto; }
.seitenKopf { margin-bottom: 22px; }
.seitenKopf h1 { font-size: 24px; font-weight: 300; letter-spacing: .12em; text-transform: uppercase; }
.seitenKopf h1 b { font-weight: 800; color: var(--akzent2); }
.seitenKopf p { font-size: 13.5px; color: var(--leise); margin-top: 9px; max-width: 780px; line-height: 1.6; }
.absatzKopf { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--stumm); font-weight: 700; margin: 30px 0 14px; display: flex; align-items: center; gap: 12px; }
.absatzKopf::after { content: ''; flex: 1; height: 1px; background: var(--rand); }
.katGitter { display: grid; grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); gap: 14px; }
.gkarte { background: var(--tafel); border: 1px solid var(--rand); border-radius: 22px; overflow: hidden; transition: transform .16s, border-color .16s; }
.gkarte:hover { transform: translateY(-3px); border-color: rgba(240, 146, 46, .45); }
.gkarte .bild { height: 156px; position: relative; }
.gkarte .bild canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.gkarte .bild em { position: absolute; left: 11px; top: 11px; font-style: normal; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border-radius: 10px; background: rgba(20, 26, 18, .78); color: var(--leise); font-weight: 700; }
.gkarte .leib { padding: 13px 16px 16px; }
.gkarte .n { font-size: 15px; font-weight: 700; }
.gkarte .k { font-size: 13px; color: var(--akzent2); margin-top: 3px; font-weight: 700; }
.gkarte .w { margin-top: 11px; display: grid; gap: 5px; font-size: 11.5px; color: var(--leise); }
.gkarte .w span { display: flex; justify-content: space-between; gap: 10px; }
.gkarte .w b { color: var(--text); font-weight: 700; }
.gkarte .w b.minus { color: var(--halt); } .gkarte .w b.plus { color: var(--gut); }

.stufen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 1100px) { .stufen { grid-template-columns: 1fr; } }
.stufe { background: var(--tafel); border: 1px solid var(--rand); border-radius: 22px; overflow: hidden; }
.stufe canvas { width: 100%; height: 236px; display: block; }
.stufe .leib { padding: 15px 17px 18px; }
.stufe .n { font-size: 15.5px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.stufe .n i { font-style: normal; width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(160deg, var(--akzent2), #e07e1c); color: #2e1a04; font-size: 11px; display: grid; place-items: center; font-weight: 700; }
.stufe .u { font-size: 12.5px; color: var(--leise); margin-top: 9px; line-height: 1.55; }

/* =====================================================================
   6  TECHNIK
   ===================================================================== */
#technik { background: radial-gradient(130% 100% at 80% 0%, #1b2630 0%, #121a16 58%); overflow: auto; }
#techRahmen { padding: 24px 28px 60px; max-width: 1240px; margin: 0 auto; }
#techRahmen h2 { font-size: 17px; font-weight: 700; letter-spacing: .06em; margin: 34px 0 12px; }
#techRahmen h2:first-of-type { margin-top: 12px; }
#techRahmen p { font-size: 13.5px; line-height: 1.7; color: var(--leise); max-width: 880px; margin-bottom: 12px; }
#techRahmen p b, #techRahmen li b { color: var(--text); font-weight: 700; }
#techRahmen ul { margin: 0 0 14px 20px; }
#techRahmen li { font-size: 13.5px; line-height: 1.7; color: var(--leise); }
#techRahmen code, .code { font-family: Consolas, "Cascadia Mono", monospace; font-size: 12.5px; background: rgba(255, 255, 255, .06); border: 1px solid var(--rand); border-radius: 6px; padding: 1px 6px; }
pre.code { padding: 16px 18px; border-radius: 16px; overflow-x: auto; line-height: 1.65; color: var(--leise); white-space: pre; }
pre.code b { color: var(--kalt); font-weight: 700; }
pre.code i { color: var(--stumm); font-style: normal; }
.schichten { display: grid; gap: 9px; margin: 6px 0 18px; }
.schicht { display: grid; grid-template-columns: 180px 1fr; gap: 16px; align-items: center; background: var(--tafel); border: 1px solid var(--rand); border-left: 4px solid var(--kalt); border-radius: 16px; padding: 14px 17px; }
.schicht.a { border-left-color: var(--akzent2); } .schicht.c { border-left-color: var(--gut); }
.schicht b { font-size: 13.5px; } .schicht span { font-size: 12.5px; color: var(--leise); line-height: 1.5; }
.phasen { display: grid; grid-template-columns: repeat(auto-fit, minmax(212px, 1fr)); gap: 12px; margin: 8px 0 20px; }
.phase { background: var(--tafel); border: 1px solid var(--rand); border-radius: 18px; padding: 16px 17px; }
.phase .nr { font-size: 10.5px; letter-spacing: .16em; color: var(--akzent2); text-transform: uppercase; font-weight: 700; }
.phase b { display: block; font-size: 14.5px; margin: 7px 0 8px; }
.phase span { font-size: 12.5px; color: var(--leise); line-height: 1.55; }
.phase .dauer { display: block; margin-top: 10px; font-size: 11.5px; color: var(--stumm); }

/* =====================================================================
   ENTWURFSLEISTE — gehört NICHT zum Spiel
   ===================================================================== */
#entwurfsleiste {
  position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); z-index: 90;
  display: flex; align-items: center; gap: 4px; padding: 6px 9px 7px;
  background: rgba(14, 20, 14, .96); border: 1px solid var(--rand2); border-bottom: 0;
  border-radius: 18px 18px 0 0; box-shadow: 0 -8px 30px rgba(0, 0, 0, .55);
}
#entwurfsleiste .marke3 { font-size: 9px; letter-spacing: .18em; color: var(--akzent2); text-transform: uppercase; font-weight: 700; padding: 0 10px 0 5px; border-right: 1px solid var(--rand); align-self: stretch; display: flex; align-items: center; }
#entwurfsleiste button { min-height: 34px; padding: 0 14px; border-radius: 12px; font-size: 12.5px; font-weight: 600; color: var(--leise); }
#entwurfsleiste button:hover { background: rgba(255, 255, 255, .1); color: var(--text); }
#entwurfsleiste button.an { background: linear-gradient(160deg, var(--akzent2), #e07e1c); color: #2e1a04; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; transition-duration: .001s !important; }
}

/* =====================================================================
   NACHTRAG 12.11.2026 — Vollautomatik
   Die Oberfläche eines Zuschauerspiels braucht ein paar Teile, die ein
   Bauspiel nicht hat: eine Stelle für „gerade passiert nichts", die
   Regler für die Ziele, und den Zeitsprung in der Entwurfsleiste.
   ===================================================================== */
.leer {
  font-size: 12.5px; color: var(--stumm); line-height: 1.55;
  padding: 10px 12px; border: 1px dashed var(--rand); border-radius: 12px;
}
.fussnote { font-size: 11.5px; color: var(--stumm); line-height: 1.5; margin-top: 11px; }
.einleitung { font-size: 12.5px; color: var(--leise); line-height: 1.6; margin-bottom: 4px; }
.ziel input[type=range] { margin: 7px 0 2px; }
#zeitBand {
  position: absolute; left: 16px; right: 16px; bottom: 2px;
  display: flex; justify-content: space-between;
  font-size: 9px; color: var(--stumm); letter-spacing: .1em; font-weight: 700;
}
#zeitsprung { display: flex; gap: 4px; }
#zeitsprung button {
  min-height: 30px; padding: 0 11px; border-radius: 10px;
  font-size: 12px; font-weight: 600; color: var(--leise);
  background: rgba(255, 255, 255, .05); border: 1px solid var(--rand);
}
#zeitsprung button:hover { background: rgba(255, 255, 255, .12); color: var(--text); }
#zeitsprung button.an { background: linear-gradient(160deg, var(--akzent2), #e07e1c); border-color: transparent; color: #2e1a04; }
.rund.an { background: linear-gradient(160deg, var(--akzent2), #e07e1c); border-color: transparent; color: #2e1a04; }
