/* Helpiqo Industrie Spiele (Sägewerk, Brauerei): Farben folgen dem Helpiqo-Design, hell und dunkel.
   Die 3D-Bühne liest --grund-2 aus :root, deshalb stehen die Werte dort (diese Datei lädt nur auf den Spielseiten). */
:root {
  --grund: var(--bg); --flaeche: var(--surface); --linie: var(--border); --gedimmt: var(--muted);
  --grund-2: #eef0f6; --flaeche-2: #f3f4f9; --linie-hell: #cfd4e0; --text-weich: #3f4654;
  --akzent: #4f46e5; --akzent-dunkel: #3730a3; --auf-akzent: #fff; --akzent-rgb: 79 70 229;
  --gelb: #8a5b00; --orange: #b0470b; --gruen: #1a7340; --rot: #b3261e; --rot-dunkel: #8f1e18;
  --gelb-rgb: 200 140 0; --gruen-rgb: 26 115 64; --rot-rgb: 179 38 30; --schatten-rgb: 20 24 40;
  --ampel-gelb: #e3a008; --ampel-orange: #e8590c;
  --rund: 12px; --schatten: 0 1px 2px rgb(var(--schatten-rgb) / .05);
}
@media (prefers-color-scheme: dark) {
  :root {
    --grund-2: #1f2330; --flaeche-2: #232838; --linie-hell: #3b4256; --text-weich: #c7ccd8;
    --akzent: #818cf8; --akzent-dunkel: #a5b0ff; --auf-akzent: #0f1117; --akzent-rgb: 129 140 248;
    --gelb: #e5b95c; --orange: #f0a066; --gruen: #6fcf97; --rot: #f28b82; --rot-dunkel: #f6a9a2;
    --gelb-rgb: 229 185 92; --gruen-rgb: 111 207 151; --rot-rgb: 242 139 130;
    --ampel-gelb: #e5b95c; --ampel-orange: #f0853f;
  }
}
.ig-main h3 { margin-top: 0; }
.ig-kiqo { width: 72px; height: auto; flex: none; }
.ig-karte-bild { display: block; width: calc(100% + 52px); max-width: none; height: 170px; margin: -24px -26px 12px; object-fit: cover; border-radius: var(--rund) var(--rund) 0 0; }

.hud { font-size: .9rem; font-weight: 600; color: var(--akzent); }
.klein { font-size: .9rem; color: var(--gedimmt); }
/* ================= Buttons ================= */
.knopf {
  --k-farbe: var(--akzent);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 46px; padding: .6rem 1.25rem;
  font-family: var(--schrift-text); font-weight: 600; font-size: 1rem;
  text-decoration: none; cursor: pointer; border: 0; border-radius: 6px;
  color: var(--auf-akzent); background: var(--k-farbe);
  transition: background .15s, box-shadow .15s;
}
.knopf:hover { color: var(--auf-akzent); background: var(--akzent-dunkel); }
.knopf svg { width: 18px; height: 18px; flex: none; }
.knopf.leise { background: var(--flaeche); color: var(--k-farbe); box-shadow: inset 0 0 0 1px var(--linie-hell); }
.knopf.leise:hover { background: var(--flaeche-2); color: var(--akzent-dunkel); box-shadow: inset 0 0 0 1px var(--akzent); }
.knopf.gefahr { --k-farbe: var(--rot); }
.knopf.gefahr:hover { background: var(--rot-dunkel); }
.knopf.leise.gefahr:hover { background: var(--flaeche-2); color: var(--rot); box-shadow: inset 0 0 0 1px var(--rot); }
.knopf.klein { min-height: 40px; padding: .4rem .9rem; font-size: .93rem; white-space: nowrap; }
.knopf.gross { min-height: 52px; padding: .8rem 1.6rem; font-size: 1.06rem; }
.aktionen { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.angebot { display: flex; flex-direction: column; gap: .3rem; background: var(--flaeche); padding: 24px 26px; border-radius: var(--rund); box-shadow: inset 0 0 0 1px var(--linie), var(--schatten); }
.angebot-symbol { width: 32px; height: 32px; color: var(--akzent); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: .4rem; }
.angebot h3 { margin-bottom: .2em; }
.angebot p { color: var(--text-weich); }
.angebot-fuss { margin-top: auto; padding-top: .4rem; }
.ig-tipp { display: flex; gap: 16px; align-items: flex-end; }
.ig-tipp .sprechblase { background: var(--flaeche); padding: 14px 18px; color: var(--text-weich); max-width: 440px; margin-bottom: 40px; box-shadow: inset 0 0 0 1px var(--linie-hell); border-radius: var(--rund); }
.status { display: inline-block; font-size: .85rem; color: var(--gelb); border: 1px solid rgb(var(--gelb-rgb) / .4); padding: .15rem .55rem; }
.status.ok { color: var(--gruen); border-color: rgb(var(--gruen-rgb) / .4); }
.hinweis { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; margin: 0 0 1rem; background: var(--flaeche); border-left: 3px solid; }
.hinweis svg { width: 20px; height: 20px; flex: none; margin-top: 3px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hinweis p { margin: 0; color: var(--text); }
.hinweis.info { border-color: var(--akzent); color: var(--akzent); }
.hinweis.erfolg { border-color: var(--gruen); color: var(--gruen); }
.hinweis.warnung { border-color: var(--orange); color: var(--orange); }
.hinweis.fehler { border-color: var(--rot); color: var(--rot); }
.pt-laedt { color: var(--gedimmt); }
.pt-zurueck { font-size: .85rem; text-decoration: none; }
.pt-ordner-reiter { display: flex; gap: 4px; border-bottom: 1px solid var(--linie-hell); margin: 8px 0; overflow-x: auto; scrollbar-width: thin; }
.pt-ordner-link { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .55rem 1rem; border-bottom: 2px solid transparent; margin-bottom: -1px; color: var(--text-weich); text-decoration: none; font-size: .85rem; white-space: nowrap; }
.pt-ordner-link:hover { color: var(--akzent); }
.pt-ordner-link.aktiv { color: var(--akzent); border-bottom-color: var(--akzent); }
.pt-ordner-link:focus-visible { outline: 2px solid var(--akzent); outline-offset: -2px; }
.status.fehler { color: var(--rot); border-color: rgb(var(--rot-rgb) / .5); }
.status.warnung { color: var(--orange); border-color: var(--orange); }
.pt-ordner-link { font-size: .98rem; font-weight: 500; }
.sw-spiel-titel { font-size: 1.2rem; margin-bottom: .3em; }
.sw-vorbehalt { margin-top: 28px; }
.sw-spiele { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 20px; }
.sw h2 { margin-bottom: .6rem; }
.sw-zahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 0 0 16px; }
.sw-zahlen > div { background: var(--flaeche); padding: 10px 14px; border-radius: var(--rund); box-shadow: inset 0 0 0 1px var(--linie); }
.sw-zahlen > div.warnung { box-shadow: inset 0 0 0 1px var(--orange); }
.sw-zahlen dt { font-size: .85rem; color: var(--gedimmt); }
.sw-zahlen dd { margin: .15rem 0 0; font-size: 1.15rem; font-weight: 700; color: var(--text); }
.sw-steuerung { position: sticky; top: 0; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 10px; padding: 8px 0; background: var(--grund); border-bottom: 1px solid var(--linie); }
.sw-kurz { display: none; margin: 0 0 0 auto; font-weight: 650; white-space: nowrap; }
.sw-kurz.sichtbar { display: block; }
.sw-nachricht:empty { display: none; }
.sw-nachricht { margin-bottom: 12px; }
.sw-tipp { margin-top: .4rem !important; font-size: .95rem; }
.sw-zielliste { margin-top: .4rem; font-size: .95rem; }
.sw-zielliste summary { min-height: 32px; }
.sw-zielliste ul { margin: .3rem 0 0; padding-left: 1.2rem; }
.sw-zielliste li { margin-bottom: .25rem; color: var(--text-weich); }
.sw-zielliste li.erreicht { color: var(--gedimmt); text-decoration: line-through; }
.sw-filter { margin-top: 16px; }
.sw-anlage.eng { box-shadow: inset 0 0 0 2px var(--orange); }
.sw-engpass-tag { margin-left: .5rem; font-size: .85rem; font-weight: 600; color: var(--orange); }
.sw-nutzen { font-size: .9rem; color: var(--text-weich); }
.sw-nutzen.gut { font-weight: 600; color: var(--gruen); }
.sw-nutzen.schlecht { font-weight: 600; color: var(--orange); }
li.warnung { color: var(--orange); }
.sw-schritte-liste { margin: 0; padding-left: 1.3rem; }
.sw-schritte-liste li { margin-bottom: .35rem; }
.sw-begriffe { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px 20px; margin: 0; }
.sw-begriffe dt { font-weight: 650; }
.sw-begriffe dd { margin: 0; color: var(--text-weich); }
.sw-steuerung select { min-height: 46px; padding: 0 .7rem; font: inherit; color: var(--text); background: var(--flaeche); border: 1px solid var(--linie-hell); border-radius: 6px; }
#ig { min-height: 100vh; }
.sw-gesichert { margin: 16px 0 0; }
.ig-menue-liste { display: grid; gap: 8px; margin: 10px 0; padding: 0; list-style: none; }
.ig-menue-punkt { display: grid; gap: 2px; width: 100%; min-height: 56px; padding: 10px 14px; font: inherit; color: var(--text); text-align: left; background: var(--flaeche); border: 1px solid var(--linie-hell); border-radius: 10px; cursor: pointer; }
.ig-menue-punkt:hover { border-color: var(--akzent); background: var(--flaeche-2); }
.ig-menue-punkt span { font-size: .88rem; color: var(--gedimmt); }
.knopf .sw-menue-wort { margin-right: -.5rem; }
@media (max-width: 480px) { .sw-menue-wort { display: none; } }
.sw-buehne { position: relative; height: clamp(360px, 52vw, 620px); background: var(--grund-2); border-radius: var(--rund); box-shadow: inset 0 0 0 1px var(--linie); overflow: hidden; touch-action: pan-y; }
.sw-buehne canvas { display: block; cursor: grab; }
.sw-buehne canvas:active { cursor: grabbing; }
.sw-buehne-text { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; padding: 20px; text-align: center; }
.sw-marken { position: absolute; inset: 0; pointer-events: none; }
.sw-marke { position: absolute; transform: translate(-50%, -100%); pointer-events: auto; padding: .1rem .5rem; font: inherit; font-size: .85rem; line-height: 1.5; color: var(--text); background: var(--flaeche); border: 1px solid var(--linie-hell); border-radius: 4px; white-space: nowrap; cursor: pointer; }
.sw-marke:hover { color: var(--akzent); border-color: var(--akzent); }
.sw-sichten { position: absolute; left: 10px; top: 10px; right: 10px; display: flex; flex-wrap: wrap; gap: 6px; pointer-events: none; }
.sw-sicht { pointer-events: auto; min-height: 36px; padding: .15rem .7rem; font: inherit; font-size: .9rem; color: var(--text); background: var(--flaeche); border: 1px solid var(--linie-hell); border-radius: 6px; cursor: pointer; }
.sw-sicht:hover { color: var(--akzent); border-color: var(--akzent); }
.sw-sicht.aktiv { color: var(--auf-akzent); background: var(--akzent); border-color: var(--akzent); }
.sw-ansehen { margin-left: auto; }
.sw-zoomleiste { position: absolute; right: 10px; bottom: 10px; display: flex; flex-direction: column; gap: 6px; }
.sw-zoom { width: 44px; height: 44px; font: inherit; font-size: 1.3rem; color: var(--text); background: var(--flaeche); border: 1px solid var(--linie-hell); border-radius: 6px; cursor: pointer; }
.sw-zoom:hover { color: var(--akzent); border-color: var(--akzent); }
.sw-ziel { margin: 16px 0 8px; padding: 12px 16px; background: var(--flaeche); border-left: 3px solid var(--akzent); border-radius: var(--rund); box-shadow: inset 0 0 0 1px var(--linie); }
.sw-ziel p { margin: 0; }
.sw-reiter { background: none; border-top: 0; border-left: 0; border-right: 0; font-family: inherit; cursor: pointer; }
.sw-flaeche:focus { outline: none; }
.sw-abschnitt { margin-top: 24px; }
.sw-abschnitt > h3 { margin-bottom: .5rem; }
.sw-stationen { list-style: none; margin: 0; padding: 0; }
.sw-station { display: grid; grid-template-columns: minmax(150px, 220px) minmax(0, 1fr) 130px; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 4px 8px; font: inherit; color: var(--text); background: none; border: 0; border-bottom: 1px solid var(--linie); cursor: pointer; text-align: left; }
.sw-station:hover { background: var(--flaeche-2); }
.sw-balken-spur { display: block; height: 10px; background: var(--grund-2); border-radius: 4px; overflow: hidden; }
.sw-balken { display: block; height: 100%; background: var(--akzent); border-radius: 4px; }
.sw-balken.eng { background: var(--ampel-orange); }
.sw-station-wert { text-align: right; font-size: .9rem; color: var(--text-weich); white-space: nowrap; }
.sw-wahl { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: .6rem; }
.sw-chip { min-height: 40px; padding: .3rem .85rem; font: inherit; font-size: .95rem; color: var(--akzent); background: var(--flaeche); border: 1px solid var(--linie-hell); border-radius: 999px; cursor: pointer; }
.sw-chip:hover { border-color: var(--akzent); }
.sw-chip.aktiv { color: var(--auf-akzent); background: var(--akzent); border-color: var(--akzent); }
.sw-chip[disabled] { opacity: .55; cursor: default; }
.sw-feld-titel { margin: .5rem 0 .3rem; font-size: .9rem; font-weight: 600; color: var(--text-weich); }
.sw-tipps { margin: 0; padding-left: 1.2rem; }
.sw-tipps li { margin-bottom: .4rem; }
.sprechblase .sw-tipps { list-style: none; padding-left: 0; }
.sw-link { padding: 0; font: inherit; color: var(--akzent); text-align: left; background: none; border: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.sw-meldungen { list-style: none; margin: 0; padding: 0; }
.sw-meldungen li { padding: .35rem 0; border-bottom: 1px solid var(--linie); }
.sw-tabelle-huelle { overflow-x: auto; }
.sw-tabelle { width: 100%; border-collapse: collapse; margin-bottom: .6rem; background: var(--flaeche); }
.sw-tabelle th { font-size: .9rem; font-weight: 600; color: var(--text-weich); text-align: left; }
.sw-tabelle th, .sw-tabelle td { padding: .5rem .7rem; border-bottom: 1px solid var(--linie); vertical-align: top; }
.sw-tabelle .zahl { text-align: right; white-space: nowrap; }
.sw-tabelle .summe td { font-weight: 700; border-top: 2px solid var(--linie-hell); }
.sw-menge { width: 7.5rem; min-height: 40px; padding: .2rem .5rem; font: inherit; text-align: right; color: var(--text); background: var(--flaeche); border: 1px solid var(--linie-hell); border-radius: 6px; }
.sw-schnitt { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; margin-top: 12px; }
.sw-stamm-reihe { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.sw-stamm { margin: 0; text-align: center; }
.sw-stamm svg { display: block; width: 100%; height: auto; }
.sw-kreis { fill: var(--grund-2); stroke: var(--gedimmt); stroke-width: 3; }
.sw-brett { stroke: var(--flaeche); stroke-width: 1.5; }
.sw-brett.haupt { fill: var(--akzent); }
.sw-brett.seite { fill: var(--ampel-gelb); }
.sw-brett.mark { stroke: var(--rot); stroke-width: 3; }
.sw-legende { display: flex; flex-wrap: wrap; gap: 4px 16px; list-style: none; margin: .6rem 0; padding: 0; font-size: .9rem; color: var(--text-weich); }
.sw-legende li { display: inline-flex; align-items: center; gap: .4rem; }
.sw-punkt { width: 12px; height: 12px; border-radius: 3px; }
.sw-punkt.haupt { background: var(--akzent); }
.sw-punkt.seite { background: var(--ampel-gelb); }
.sw-punkt.rest { background: var(--grund-2); box-shadow: inset 0 0 0 1px var(--gedimmt); }
.sw-kenn { display: grid; grid-template-columns: repeat(auto-fit, minmax(115px, 1fr)); gap: 8px 16px; margin: .6rem 0 0; }
.sw-kenn dt { font-size: .85rem; color: var(--gedimmt); }
.sw-kenn dd { margin: 0; font-weight: 650; }
.sw-klapp { margin-top: 12px; }
.sw-klapp summary { min-height: 40px; cursor: pointer; color: var(--akzent); }
.sw-teile { list-style: none; max-width: 360px; margin: .3rem 0 0; padding: 0; }
.sw-teile li { display: flex; justify-content: space-between; padding: .2rem 0; border-bottom: 1px solid var(--linie); }
.sw-anlagen { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.sw-anlage { display: flex; flex-direction: column; padding: 14px 16px; background: var(--flaeche); border-radius: var(--rund); box-shadow: inset 0 0 0 1px var(--linie); }
.sw-anlage h4 { margin-bottom: .2rem; font-size: 1.05rem; }
.sw-anlage p { margin-bottom: .4rem; }
.sw-kauf { margin-top: auto; padding-top: .5rem; border-top: 1px solid var(--linie); }
.sw-preis { margin-bottom: .4rem; }
.sw-wirkung { font-size: .9rem; font-weight: 600; color: var(--gruen); }
.sw-haken { display: flex; align-items: center; gap: .55rem; min-height: 40px; cursor: pointer; }
.sw-diagramme { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.sw-diagramm { margin: 0; }
.sw-diagramm figcaption { font-size: .9rem; font-weight: 600; color: var(--text-weich); }
.sw-diagramm svg { display: block; width: 100%; height: auto; }
.sw-saeule { fill: var(--akzent); }
.sw-saeule.minus { fill: var(--rot); }
.sw-nulllinie { stroke: var(--linie-hell); stroke-width: 1; }
/* Brauerei: Rezept */
.br-rezept { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 24px; margin-top: 12px; }
.br-name { width: 100%; min-height: 44px; margin-bottom: 8px; padding: .3rem .6rem; font: inherit; font-weight: 650; color: var(--text); background: var(--flaeche); border: 1px solid var(--linie-hell); border-radius: 6px; }
.br-stepper { display: grid; grid-template-columns: minmax(0, 1fr) 44px 86px 44px; align-items: center; gap: 6px; margin-bottom: 6px; }
.br-stepper-name { font-size: .95rem; }
.br-stepper-wert { text-align: center; font-weight: 650; white-space: nowrap; }
.br-glaszeile { display: flex; gap: 16px; align-items: center; padding: 14px 16px; background: var(--flaeche); border-radius: var(--rund); box-shadow: inset 0 0 0 1px var(--linie); }
.br-glas { width: 84px; height: auto; flex: none; }
.br-glas-rand { fill: rgb(var(--akzent-rgb) / .06); stroke: var(--gedimmt); stroke-width: 2; }
.br-schaum { fill: var(--flaeche); stroke: var(--linie-hell); stroke-width: 1.5; }
.br-fenster { margin-top: 12px; }
.br-fenster-kopf { display: flex; gap: 10px; align-items: baseline; margin-bottom: 4px; font-weight: 600; }
.br-fenster-kopf .klein { margin-left: auto; font-weight: 400; }
.br-spur { position: relative; height: 12px; background: var(--grund-2); border-radius: 6px; }
.br-band { position: absolute; top: 0; bottom: 0; background: rgb(var(--akzent-rgb) / .3); border-radius: 6px; }
.br-punkt { position: absolute; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; background: var(--orange); border: 2px solid var(--flaeche); border-radius: 50%; }
.br-punkt.drin { background: var(--akzent); }
.br-sortenliste { list-style: none; margin: .6rem 0; padding: 0; }

/* Übersicht */
.sw-kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin-top: 16px; }
.sw-kachel { padding: 14px 16px; background: var(--flaeche); border-radius: var(--rund); box-shadow: inset 0 0 0 1px var(--linie); }
.sw-kachel-titel { margin: 0; font-size: .9rem; color: var(--text-weich); }
.sw-kachel-wert { margin: .1rem 0 0; font-size: 1.55rem; font-weight: 700; line-height: 1.25; color: var(--text); }
.sw-kachel-neben { margin: 0; font-size: .85rem; color: var(--gedimmt); }
.sw-funke { display: block; width: 100%; height: auto; margin-top: 6px; }
.sw-funke polyline { fill: none; stroke: var(--akzent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.sw-funke circle { fill: var(--akzent); stroke: var(--flaeche); stroke-width: 2; }
.sw-karte { padding: 16px 18px; background: var(--flaeche); border-radius: var(--rund); box-shadow: inset 0 0 0 1px var(--linie); }
.sw-karte h3 { margin-bottom: .25rem; font-size: 1.08rem; }
.sw-raster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.sw-kette { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(112px, 1fr); gap: 6px; margin: 12px 0 0; padding: 0 0 4px; overflow-x: auto; list-style: none; }
.sw-glied button { display: block; width: 100%; height: 100%; padding: 10px 10px 9px; font: inherit; text-align: left; color: var(--text); background: var(--flaeche-2); border: 1px solid transparent; border-radius: 6px; cursor: pointer; }
.sw-glied button:hover { border-color: var(--akzent); }
.sw-glied.eng button { background: var(--flaeche); border-color: var(--orange); }
.sw-glied-name { display: block; font-size: .9rem; font-weight: 600; line-height: 1.25; }
.sw-glied-wert { display: block; font-size: .85rem; color: var(--text-weich); }
.sw-glied-tag { display: block; font-size: .85rem; font-weight: 600; color: var(--orange); }
.sw-spur { display: block; height: 6px; margin: 7px 0 5px; background: var(--grund-2); border-radius: 3px; overflow: hidden; }
.sw-spur > span { display: block; height: 100%; background: var(--akzent); border-radius: 3px; }
.sw-glied.eng .sw-spur > span { background: var(--ampel-orange); }
.sw-balkenliste { display: grid; gap: 7px; margin: .6rem 0 0; }
.sw-bzeile { display: grid; grid-template-columns: 128px minmax(0, 1fr) 76px; align-items: center; gap: 10px; font-size: .92rem; }
.sw-bspur { display: block; height: 14px; }
.sw-bspur > span { display: block; height: 100%; min-width: 2px; background: var(--akzent); border-radius: 0 4px 4px 0; }
.sw-bspur > span.neben { background: var(--gedimmt); }
.sw-bspur > span.gut { background: var(--gruen); }
.sw-bspur > span.schlecht { background: var(--rot); }
.sw-bzahl { text-align: right; font-weight: 600; white-space: nowrap; }
.sw-treppe .sw-bspur { position: relative; }
.sw-treppe .sw-bspur > span { position: absolute; top: 0; bottom: 0; border-radius: 3px; }
.sw-werte { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px 16px; margin: .6rem 0; }
.sw-werte dt { font-size: .85rem; color: var(--gedimmt); }
.sw-werte dd { margin: 0; font-weight: 650; }
.sw-tip { position: fixed; z-index: 60; padding: 4px 8px; font-size: .85rem; color: var(--text); background: var(--flaeche); border: 1px solid var(--linie-hell); border-radius: 4px; box-shadow: var(--schatten); pointer-events: none; white-space: nowrap; }
.sw-kreuz { stroke: var(--linie-hell); stroke-width: 1; vector-effect: non-scaling-stroke; }
@media (max-width: 760px) {
  .sw-raster, .br-rezept { grid-template-columns: minmax(0, 1fr); }
  .sw-sichten { right: 10px; }
  .sw-schnitt, .sw-diagramme { grid-template-columns: minmax(0, 1fr); }
  .sw-steuerung select { display: none; }
  .sw-steuerung .knopf { min-height: 40px; padding: .4rem .8rem; font-size: .93rem; }
  .sw-kurz { font-size: .9rem; }
  .sw-einkauf th, .sw-einkauf td { padding: .45rem .4rem; }
  .sw-einkauf th { white-space: normal; }
  .sw-einkauf .sw-menge { width: 5.5rem; }
  .sw-einkauf th:nth-child(3), .sw-einkauf td:nth-child(3) { display: none; }
  .sw-zahlen { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-bottom: 10px; }
  .sw-zahlen > div { display: flex; flex-direction: column; padding: 6px 10px; }
  .sw-zahlen dt { font-size: .8rem; }
  .sw-zahlen dd { margin: 0; font-size: 1rem; }
  .sw-station { grid-template-columns: minmax(0, 1fr) auto; }
  .sw-balken-spur { grid-column: 1 / -1; grid-row: 2; }
  .sw-marken { display: none; }
}
.sw > h2:first-of-type { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }   /* Titel steht schon im Seitenkopf */

/* Einführung in den Produktionsprozess */
.ig-kopfzeile { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; }
.ig-intro { width: min(680px, calc(100vw - 24px)); max-height: min(88vh, 820px); padding: 0; color: var(--text); background: var(--flaeche); border: 0; border-radius: 18px; box-shadow: 0 18px 50px rgb(0 0 0 / .3); overflow: hidden; }
.ig-intro::backdrop { background: rgb(15 17 23 / .6); }
.ig-intro-rahmen { display: flex; flex-direction: column; max-height: min(88vh, 820px); }
.ig-intro-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 16px 20px 12px; border-bottom: 1px solid var(--linie); }
.ig-intro-kopf img { width: 56px; height: 56px; flex: none; }
.ig-intro-kopf h2 { flex: 1 1 180px; margin: 0; font-size: 1.3rem; }
.ig-intro-kopf .sw-wahl { margin: 0; }
.ig-intro-inhalt { flex: 1 1 auto; min-height: 0; padding: 14px 20px; overflow-y: auto; overscroll-behavior: contain; }
.ig-intro-inhalt:focus { outline: none; }
.ig-intro-inhalt h3 { margin: 16px 0 6px; font-size: 1.02rem; }
.ig-intro-inhalt p { margin: 0 0 8px; }
.ig-kette { display: flex; flex-wrap: wrap; gap: 6px 4px; margin: 12px 0; padding: 0; list-style: none; }
.ig-kette li { display: inline-flex; align-items: center; gap: 4px; font-size: .92rem; font-weight: 600; }
.ig-kette li:not(:last-child)::after { content: "→"; color: var(--gedimmt); font-weight: 400; }
.ig-wichtig { margin: 0; padding-left: 1.2rem; }
.ig-wichtig li { margin-bottom: .35rem; }
.ig-schritte { margin: 12px 0 0; padding: 0; list-style: none; counter-reset: schritt; }
.ig-schritte li { position: relative; padding: 0 0 10px 40px; counter-increment: schritt; }
.ig-schritte li::before { content: counter(schritt); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 28px; height: 28px; font-size: .88rem; font-weight: 700; color: var(--auf-akzent); background: var(--akzent); border-radius: 50%; }
.ig-schritte h3 { margin: 0 0 2px; }
.ig-imspiel { padding: 6px 10px; font-size: .92rem; color: var(--text-weich); background: var(--flaeche-2); border-radius: 8px; }
.ig-intro-fuss { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; padding: 12px 20px; border-top: 1px solid var(--linie); }
.ig-intro-fuss .klein { flex: 1 0 100%; margin: 0; }
@media (max-width: 560px) {
  .ig-intro-kopf { padding: 12px 14px 10px; }
  .ig-intro-kopf img { width: 44px; height: 44px; }
  .ig-intro-inhalt { padding: 12px 14px; }
  .ig-intro-fuss { padding: 10px 14px; }
  .ig-schritte li { padding-left: 36px; }
}
@media (max-height: 640px) {
  .ig-intro-kopf img, .ig-intro-fuss .klein { display: none; }
}

/* Reiter bleiben beim Scrollen erreichbar */
.pt-ordner-reiter { position: sticky; top: var(--ig-steuer, 64px); z-index: 19; background: var(--grund); }
.sw-steuerung { margin-bottom: 0; }
.sw-nachricht { margin-top: 10px; }
.sw-ziel { margin: 10px 0 12px; }
.sw-anlage { scroll-margin-top: 130px; }
@media (max-width: 760px) {
  .ig-main:has(.sw) .tool-head > p { display: none; }   /* Im Spiel zählt jeder Platz, die Einführung erklärt alles */
  .sw-sichten { flex-wrap: nowrap; overflow-x: auto; pointer-events: auto; scrollbar-width: none; }
  .sw-sichten::-webkit-scrollbar { display: none; }
  .sw-sicht { flex: none; }
  .sw-ansehen { margin-left: 0; }
}
/* Größere Tippflächen auf Touchgeräten */
@media (pointer: coarse) {
  .ig-main input[type="checkbox"] { width: 26px; height: 26px; }
  .sw-link { min-height: 40px; padding: 8px 0; }
  .sw-zielliste summary, .sw-klapp summary { display: flex; align-items: center; min-height: 44px; }
  .sw-haken { min-height: 44px; }
  .sw-sicht { min-height: 40px; }
}
@media (max-width: 760px) {
  .ig-main:has(.sw) .crumbs { display: none; }
  .ig-main:has(.sw) .tool-head { display: flex; align-items: center; gap: 10px; padding: 8px 12px; margin-bottom: 4px; min-height: 0; }
  .ig-main:has(.sw) .tool-head h1 { margin: 0; font-size: 1.2rem; }
  .ig-main:has(.sw) .tool-head .tool-ico { width: 36px; height: 36px; margin: 0; padding: 4px; }
  .ig-kopfzeile { margin: 4px 0 6px; }
}
@media (max-width: 760px) {
  .sw-steuerung select { display: block; min-height: 40px; max-width: 104px; padding: 0 .3rem; font-size: .88rem; }
  .sw-steuerung .knopf { padding: .4rem .6rem; font-size: .88rem; white-space: nowrap; }
}
@media (max-width: 480px) {
  .sw-zahlen { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin-bottom: 6px; }
  .sw-zahlen > div { padding: 5px 7px; }
  .sw-zahlen dt { min-height: 2.3em; font-size: .72rem; line-height: 1.15; }
  .sw-zahlen dd { font-size: .88rem; line-height: 1.2; overflow-wrap: anywhere; }
  .sw-ziel { padding: 8px 12px; }
  .sw-tipp .sw-link { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; min-height: 0; padding: 0; }
}

/* Kfz-Mechaniker: Fehlersuche */
.sw-fall-klage { margin: .2rem 0 0; font-size: 1.1rem; font-weight: 600; }
.sw-fall-liste { display: grid; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.sw-fall-schritt { display: grid; grid-template-columns: minmax(170px, 230px) minmax(0, 1fr); align-items: center; gap: 12px; }
.sw-fall-schritt .knopf { width: 100%; }
.sw-fall-schritt p { margin: 0; }
@media (max-width: 560px) { .sw-fall-schritt { grid-template-columns: minmax(0, 1fr); gap: 4px; } }

/* Monatsbericht und 2D-Betriebskarte (6.11.2026) */
.ig-monat { margin: 10px 0; padding: 10px 14px; border-radius: var(--rund); background: var(--grund-2); box-shadow: inset 0 0 0 1px var(--linie); }
.ig-monat[hidden] { display: none; }
.ig-monat-titel { margin: 0 0 4px; }
.ig-monat ul { margin: 0; padding-left: 18px; }
.ig-monat li { margin: 2px 0; line-height: 1.4; }
.ig-buehne-huelle { position: relative; }
.ig-karte { position: absolute; inset: 0; overflow: auto; padding: 16px 16px 56px; background: var(--grund-2); border-radius: var(--rund); box-shadow: inset 0 0 0 1px var(--linie); }
.ig-karte[hidden] { display: none; }
.ig-k-titel { margin: 0 0 12px; }
.ig-kette { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; }
.ig-pfeil { align-self: center; color: var(--text-2, inherit); opacity: .6; font-size: 1.2rem; }
.ig-station { flex: 1 1 130px; min-width: 120px; max-width: 220px; display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; text-align: left; border-radius: 12px; border: 1px solid var(--linie); background: var(--grund, #fff); color: inherit; font: inherit; cursor: pointer; }
.ig-station:hover, .ig-station:focus-visible { outline: 2px solid var(--akzent, #4f46e5); outline-offset: 1px; }
.ig-station.eng { border-width: 2px; border-color: #c2410c; }
.ig-k-name { font-weight: 700; line-height: 1.25; }
.ig-k-spur { display: block; height: 8px; border-radius: 4px; background: var(--linie); overflow: hidden; }
.ig-k-balken { display: block; height: 100%; border-radius: 4px; background: #64748b; }
.ig-k-balken.eng { background: #c2410c; }
.ig-k-wert { font-size: .85rem; }
.ig-ansicht { position: absolute; left: 10px; bottom: 10px; z-index: 3; }
.ig-ansicht[hidden] { display: none; }
@media (max-width: 560px) { .ig-station { flex-basis: 100%; max-width: none; } .ig-pfeil { display: none; } }
.ig-fortschritt { width: 100%; height: 12px; accent-color: var(--akzent, #4f46e5); }
.ig-buehne-huelle.ohne3d .sw-buehne { display: none; }
.ig-buehne-huelle.ohne3d .ig-karte { position: static; padding-bottom: 16px; }
/* Geführter Einstieg (spiel-rahmen.js fuehrungKarte) */
.ig-fuehrung p { margin: 4px 0; }
.ig-f-kopf { font-size: 1.02rem; }
.ig-f-punkte { display: flex; gap: 6px; margin: 6px 0 4px; }
.ig-f-punkte span { width: 22px; height: 6px; border-radius: 3px; background: var(--linie); }
.ig-f-punkte span.fertig { background: var(--akzent); }
.ig-f-punkte span.jetzt { background: var(--akzent); opacity: .5; }
.ig-fuehrung .aktionen { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.ig-zeig { position: relative; border-radius: var(--rund); box-shadow: 0 0 0 3px rgb(var(--akzent-rgb) / .55); animation: ig-zeig 1.6s ease-in-out infinite; }
@keyframes ig-zeig { 50% { box-shadow: 0 0 0 6px rgb(var(--akzent-rgb) / .15); } }
@media (prefers-reduced-motion: reduce) { .ig-zeig { animation: none; } }

/* Brauerei: Preisstufen über dem angemessenen Preis */
.sw-chip.teuer { box-shadow: inset 0 -3px 0 var(--orange); }
.sw-tabelle tr.aktiv td { font-weight: 600; }
.br-wunsch { list-style: none; padding: 0; margin: 8px 0; }
.br-wunsch li { margin: 4px 0; line-height: 1.45; }
.br-wunsch .fehlt { color: var(--orange); }

/* Bäckerei: Backtag (Plan, Zeitplan, Theke) */
.bt-plan { list-style: none; margin: 0 0 .6rem; padding: 0; display: grid; gap: .5rem; }
.bt-charge { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .5rem .8rem; padding: .55rem .7rem; background: var(--flaeche-2); border: 1px solid var(--linie); border-radius: 8px; }
.bt-nr { font-weight: 700; min-width: 1.4rem; align-self: center; }
.bt-feld { display: grid; gap: .15rem; }
.bt-feld select { min-height: 40px; padding: 0 .5rem; font: inherit; color: var(--text); background: var(--flaeche); border: 1px solid var(--linie-hell); border-radius: 6px; }
.bt-haken { display: flex; align-items: center; gap: .35rem; min-height: 40px; font-size: .92rem; }
.bt-knoepfe { display: flex; gap: .3rem; margin-left: auto; }
.bt-punkt { display: inline-block; width: .8em; height: .8em; border-radius: 50%; margin-right: .4em; vertical-align: -.05em; }
.bt-gantt { display: grid; gap: .35rem; margin: .3rem 0 .5rem; }
.bt-zeile { display: grid; grid-template-columns: 6.5rem 1fr; align-items: center; gap: .5rem; }
.bt-zeile-name { font-size: .88rem; color: var(--text-weich); }
.bt-spur { position: relative; height: 26px; background: var(--grund-2); border-radius: 5px; overflow: hidden; }
.bt-achse .bt-spur { height: 16px; background: none; overflow: visible; }
.bt-block { position: absolute; top: 3px; bottom: 3px; border-radius: 3px; min-width: 2px; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .18); z-index: 1; }
.bt-block.warte { background-image: repeating-linear-gradient(45deg, transparent 0 4px, rgb(255 255 255 / .55) 4px 8px) !important; }
.bt-laden { position: absolute; top: 0; bottom: 0; background: rgb(var(--akzent-rgb) / .07); border-left: 1px dashed rgb(var(--akzent-rgb) / .4); border-right: 1px dashed rgb(var(--akzent-rgb) / .4); }
.bt-tick { position: absolute; top: 0; transform: translateX(-50%); font-size: .75rem; color: var(--gedimmt); }
.bt-theke td.leer { background: rgb(var(--rot-rgb) / .14); color: var(--rot-dunkel); font-weight: 600; }
.bt-theke td.knapp { background: rgb(var(--gelb-rgb) / .16); }
.bt-theke th[scope="row"] { white-space: nowrap; font-weight: 600; }
.bt-liste { margin: .4rem 0 0; padding-left: 1.1rem; font-size: .9rem; }
@media (max-width: 560px) {
  .bt-zeile { grid-template-columns: 4.6rem 1fr; }
  .bt-knoepfe { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .bt-block { transition: none; } }
.bt-szene-huelle { display: grid; gap: .5rem; margin: .4rem 0 .6rem; }
.bt-szene { width: 100%; height: auto; display: block; border-radius: 12px; border: 1px solid var(--linie); }
.bt-szene-steuer { display: flex; align-items: center; gap: .7rem; }
.bt-szene-steuer input[type="range"] { flex: 1; accent-color: var(--akzent); min-height: 40px; }
.bt-szene-text { min-height: 2.6em; }

/* Betrieb live: Stationen als gezeichnete Karten (spiel-szene.js) */
.ig-live { margin: 0 0 1rem; padding: .8rem; background: var(--grund-2); border: 1px solid var(--linie); border-radius: var(--rund); }
.ig-live-titel { margin: 0 0 .6rem; }
.ig-live-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .6rem; }
.ig-live-karte { display: grid; gap: .35rem; text-align: left; font: inherit; color: var(--text); padding: .6rem .7rem; background: var(--flaeche); border: 1px solid var(--linie); border-left: 5px solid #9ca3af; border-radius: 10px; cursor: pointer; }
.ig-live-karte:hover { border-color: var(--akzent); }
.ig-live-karte.arbeit { border-left-color: var(--akzent); }
.ig-live-karte.block { border-left-color: #c2410c; background: rgb(194 65 12 / .06); }
.ig-live-kopf { display: flex; justify-content: space-between; gap: .4rem; align-items: baseline; }
.ig-live-name { font-weight: 700; line-height: 1.2; }
.ig-live-zustand { font-size: .8rem; color: var(--text-weich); white-space: nowrap; }
.ig-live-karte.block .ig-live-zustand { color: #c2410c; font-weight: 700; }
.ig-live-symbole { display: flex; flex-wrap: wrap; gap: 3px; }
.ig-sym { width: 26px; height: 26px; }
.ig-live-wert { font-size: .82rem; color: var(--text-weich); }
.ig-live-tuer { display: grid; gap: .3rem; margin: 0 0 .6rem; padding: .5rem .7rem; border: 1px dashed #c2410c; border-radius: 10px; background: rgb(194 65 12 / .05); }
.ig-live-tuer.ruhig { border-color: var(--linie-hell); background: none; }
.ig-karte .ig-live { margin: 0; border: 0; padding: 0; background: none; }

/* Friseursalon: Portraets der Beratung */
.fr-karte { display: flex; flex-wrap: wrap; gap: .8rem 1.2rem; align-items: center; }
.fr-bilder { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.fr-bild { margin: 0; display: grid; justify-items: center; gap: .2rem; }
.fr-bild figcaption { font-size: .82rem; color: var(--text-weich); }
.fr-portraet { width: 112px; height: 128px; }
.fr-pfeil { font-size: 1.4rem; color: var(--akzent); }
.fr-bild-hinweis { flex-basis: 100%; margin: 0; }

/* Kfz: Werkstatttag */
.bt-block.wt-spaet { box-shadow: inset 0 0 0 2px #c2410c; }
.wt-art { flex: 1; min-width: 0; }

/* Supermarkt: Warenwoche */
.ww-tabelle th[scope="row"] { font-weight: 500; white-space: nowrap; font-size: .88rem; }
.ww-zelle { min-width: 3.4rem; text-align: center; font-size: .8rem; color: var(--text-weich); }
.ww-balken { display: flex; height: 14px; border-radius: 3px; overflow: hidden; background: var(--flaeche-2); }
.ww-teil { display: inline-block; height: 14px; }
.ww-legende .ww-teil { width: 14px; border-radius: 2px; vertical-align: -2px; }
.ww-ok { background: #16a34a; }
.ww-fehl { background: #dc2626; }
.ww-red { background: #f59e0b; }
.ww-weg { background: #6b7280; }

/* Imbiss: Service */
.sv-verlauf-huelle { overflow-x: auto; }
.sv-verlauf { width: 100%; min-width: 520px; height: auto; display: block; }
.sv-punkt { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #dc2626; vertical-align: 0; }

/* Sägewerk: Szenarien */
.sz-karte { border: 1px solid var(--linie); border-radius: 10px; padding: .7rem .85rem; margin: .6rem 0; background: var(--flaeche); }
.sz-kopf { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem; }
.sz-best, .sz-sterne { color: #ca8a04; letter-spacing: .08em; }
.sz-best { margin-left: auto; }
.sz-sterne { font-size: 1.8rem; margin: .2rem 0 .4rem; }
.sz-ziele { list-style: none; padding: 0; margin: .5rem 0; display: grid; gap: .35rem; }
.sz-ziele li { display: flex; gap: .5rem; align-items: baseline; }
.sz-ziele li.erreicht .sz-haken { color: #16a34a; }
.sz-haken { font-weight: 700; min-width: 1.1em; }
.sz-zielliste { margin: .3rem 0 .6rem; padding-left: 1.1rem; }
