/* Baukasten Grafiken im Terminal-Stil (30.11.2026, Kandidat, nicht live). Farben und Schrift kommen aus terminal.css (Ton B):
   --grund, --flaeche, --linie, --text, --dim; Schrift IBM Plex Mono. Keine Skripte, keine Bibliothek. Beim Einsetzen an terminal.css anhaengen. */
.g { margin: 22px 0; max-width: none; }   /* so breit wie die Textspalte (Simon 01.12.2026: Statistiken, Karten und Grafiken zu schmal) */
h2 + .g, h2 + style + .g, h3 + .g, h3 + style + .g { margin-top: 12px; }   /* direkt unter einer Überschrift: die Überschrift hat oben mindestens doppelt so viel Luft wie unten (abstand.py) */
.g .g-titel { margin: 0 0 10px; color: var(--text); font-weight: 500; }
.g .g-titel::before { content: "# "; color: var(--dim); }
.g figcaption { margin-top: 10px; color: var(--dim); font-size: .82em; line-height: 1.45; }
.g figcaption a { color: inherit; }
.g figcaption > span { display: block; }
.g figcaption > span + span { margin-top: 5px; }
.g ul, .g dl, .g ol { list-style: none; margin: 0; padding: 0; }
.g li, .g dd { margin: 0; }
.g svg { display: block; width: 100%; height: auto; }
.g-b { content-visibility: auto; contain-intrinsic-size: auto 260px; }

/* Balken waagerecht */
.g-zeilen { display: grid; gap: 9px; }
.g-zeilen li { display: grid; grid-template-columns: minmax(0, 11em) minmax(0, 1fr) auto; align-items: center; gap: 0 12px; }
.g-zeilen .g-name { overflow-wrap: anywhere; }
.g-zeilen .g-wert { text-align: right; font-variant-numeric: tabular-nums; min-width: 4.2ch; }
.g-bahn { display: block; height: 10px; background: var(--linie); overflow: hidden; }
.g-bahn i { display: block; height: 100%; background: var(--text); opacity: .9; }
.g-zeilen .g-gedaempft .g-bahn i { opacity: .5; }
.g-zeilen .g-gedaempft { color: var(--dim); }
.g-zeilen .g-gedaempft .g-wert { color: var(--dim); }
@media (max-width: 520px) {
  .g-zeilen { gap: 11px; }
  .g-zeilen li { grid-template-columns: minmax(0, 1fr) auto; gap: 3px 10px; }
  .g-zeilen .g-bahn { grid-column: 1 / -1; grid-row: 2; }
}

/* Anteil: n von 100 Zellen */
.g-waffel { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.g-waffel svg { width: 132px; flex: none; }
.g-waffel .g-zelle-an { fill: var(--text); fill-opacity: .92; }
.g-waffel .g-zelle-aus { fill: var(--linie); }
.g-waffel .g-text { flex: 1 1 11em; min-width: 0; }
.g-waffel .g-gross { display: block; font-size: 2.3em; line-height: 1.05; font-weight: 500; color: var(--text); }
.g-waffel .g-von { display: block; color: var(--dim); margin-bottom: 6px; }
.g-reihe { display: flex; gap: 24px 28px; flex-wrap: wrap; }

/* Zahlenleiste */
.g-zahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.2em, 1fr)); gap: 16px 20px; }
.g-zahlen > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; border-top: 1px solid var(--linie); padding-top: 9px; }
.g-zahlen dt { color: var(--dim); font-size: .88em; line-height: 1.35; }
.g-zahlen dd { font-size: 1.85em; line-height: 1.1; font-weight: 500; color: var(--text); margin: 0 0 4px; font-variant-numeric: tabular-nums; }

/* Vergleich zweier Werte */
.g-legende { display: flex; gap: 4px 20px; flex-wrap: wrap; margin: 0 0 12px; color: var(--dim); font-size: .9em; }
.g-legende span { display: inline-flex; align-items: center; gap: 7px; }
.g-pa, .g-pb { width: 11px; height: 11px; border: 2px solid var(--text); box-sizing: border-box; }
.g-pa { background: var(--text); }
.g-pb { background: var(--grund); }
.g-vergleich { display: grid; gap: 14px; }
.g-vergleich li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 12px; align-items: end; }
.g-vergleich .g-spur { grid-column: 1 / -1; position: relative; height: 14px; background: linear-gradient(var(--linie), var(--linie)) 0 50% / 100% 1px no-repeat; }
.g-vergleich .g-strich { position: absolute; top: 6px; height: 3px; background: var(--text); opacity: .55; }
.g-vergleich .g-punkt { position: absolute; top: 1px; width: 12px; height: 12px; margin-left: -6px; border: 2px solid var(--text); box-sizing: border-box; box-shadow: 0 0 0 2px var(--grund); }
.g-vergleich .g-punkt.a { background: var(--text); }
.g-vergleich .g-punkt.b { background: var(--grund); }
.g-vergleich .g-wert { text-align: right; font-variant-numeric: tabular-nums; }
.g-vergleich .g-wert small { color: var(--dim); font-size: 1em; }

/* Anteil mit Spanne: gleiche Zeilen wie der Vergleich, dazu Skala */
.g-strich-leg { display: inline-block; width: 22px; height: 3px; background: var(--text); opacity: .55; }
.g-skala { display: flex; justify-content: space-between; margin: 0 0 4px; color: var(--dim); font-size: .82em; }
.g-spannenform .g-vergleich { gap: 12px; }
.g-vergleich .g-detail { grid-column: 1 / -1; color: var(--dim); font-size: .85em; margin-top: -2px; }

/* Zeitreihe, Karte (SVG) */
.g-svg text { font-family: inherit; fill: var(--text); font-size: 10.5px; }
.g-svg .d { fill: var(--dim); }
.g-svg .kl { font-size: 9.5px; }
.g-svg .gr { font-size: 11px; font-weight: 500; }
.g-svg .halo { paint-order: stroke; stroke: var(--grund); stroke-width: 3px; stroke-linejoin: miter; }
.g-svg .gitter { stroke: var(--linie); stroke-width: 1; }
.g-svg .linie { fill: none; stroke: var(--text); stroke-width: 2; stroke-linecap: square; stroke-linejoin: miter; }
.g-svg .wasser { fill: var(--text); fill-opacity: .1; stroke: none; }
.g-svg .punkt { fill: var(--text); stroke: var(--grund); stroke-width: 2; }
.g-svg .flaeche { fill: var(--flaeche); stroke: var(--linie); stroke-width: .6; stroke-linejoin: miter; }
.g-svg .stadt { fill: none; stroke: var(--text); stroke-opacity: .55; stroke-width: 1.1; stroke-linejoin: miter; }
.g-svg .fluss { fill: none; stroke: var(--dim); stroke-opacity: .55; stroke-width: 1.4; stroke-linecap: square; stroke-linejoin: miter; }
.g-svg .warm { fill: var(--text); }
.g-svg .marke { fill: var(--grund); stroke: var(--text); stroke-width: .9; }
.g-svg .strom { fill: none; stroke: var(--text); stroke-opacity: .75; stroke-linecap: square; }

/* Zeichenbild: eigene SVG-Datei per <img> (01.12.2026), im HTML nur der alt-Text; waechst und schrumpft mit der Breite */
.g.g-zeichenbild { max-width: none; }
.g-zeichenbild img { display: block; width: 100%; height: auto; margin: 0; }

.g-svg .g-jahr { opacity: 0; font-size: 22px; font-weight: 500; fill: var(--text); fill-opacity: .9; }
.g-svg .g-jahr.letzt { opacity: 1; }
.g-raster .g-s1, .g-raster .g-s2 { display: none; }
.g-svg .g-cursor { visibility: hidden; fill: var(--text); }
.g-tippen .cur { display: inline-block; width: 0; overflow: visible; color: var(--text); visibility: hidden; }

/* Weg: Ablauf in Schritten (senkrecht, leicht geschwungen) */
.g-weg li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 0 14px; }
.g-station { position: relative; }
.g-nr { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin-left: 6px; box-sizing: border-box; border: 2px solid var(--text); background: var(--grund); font-weight: 500; font-size: .92em; box-shadow: 0 0 0 3px var(--grund); }
.g-seg { position: absolute; left: 0; top: 28px; width: 40px; height: calc(100% - 28px); overflow: visible; }
.g-seg path { fill: none; stroke: var(--text); stroke-opacity: .7; stroke-width: 2; stroke-linecap: square; vector-effect: non-scaling-stroke; }
.g-wtext { padding-bottom: 24px; padding-top: 2px; }
.g-weg li:last-child .g-wtext { padding-bottom: 0; }
.g-wtext .g-kopf { display: block; color: var(--text); font-weight: 500; }
.g-wtext .g-fuss { display: block; margin-top: 3px; color: var(--dim); font-size: .92em; line-height: 1.45; }

/* Raster: Zellen in Zeilen und Spalten */
.g-raster .g-zelle-an { fill: var(--text); fill-opacity: .9; }

/* Zwei Laeufe nebeneinander */
.g-laeufe { display: flex; gap: 22px; }
.g-lauf-raster { flex: 1 1 0; min-width: 0; max-width: 220px; }
.g-lname { margin: 0 0 6px; color: var(--dim); font-size: .9em; }
.g-lauf-raster svg { width: 100%; }
.g-laeufeform .g-zelle-aus { fill: var(--linie); }
.g-laeufeform .g-einzeln { fill: var(--text); fill-opacity: .42; }
.g-laeufeform .g-beide { fill: var(--text); fill-opacity: 1; }
.g-sq { width: 11px; height: 11px; display: inline-block; flex: none; }
.g-sq.beide { background: var(--text); }
.g-sq.einzeln { background: var(--text); opacity: .42; }
.g-sq.aus { background: var(--linie); }

/* Animation im Takt eines Terminals (30.11.2026, Simon: "alles in unserem Stil, auch die Animation"): keine weichen Uebergaenge, kein Easing, kein Ein- und Ausblenden.
   Alles springt in Schritten (steps), Linien zeichnen sich Zelle fuer Zelle, Texte tippen sich Zeichen fuer Zeichen (grafik.js) mit Blockcursor, Raster fuellen
   sich ueber die Stufen ░ ▒ ▓ █. Einmal, wenn die Grafik ins Bild kommt (grafik.js setzt .g-bereit, dann .g-lauf), hoechstens rund 3 s. Das Endbild ist der
   Normalzustand: ohne Skript und bei reduzierter Bewegung steht es sofort da (alle Regeln unten nur bei no-preference). */
@keyframes g-an { from { visibility: hidden; } to { visibility: visible; } }
@keyframes g-zeichnen { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes g-rechts { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes g-unten { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes g-fuellen { 0% { fill-opacity: var(--o0); } 20% { fill-opacity: var(--o1); } 40% { fill-opacity: var(--o2); } 60% { fill-opacity: var(--o3); } 80% { fill-opacity: var(--o4); } 100% { fill-opacity: var(--o5); } }
@keyframes g-jahr { 0% { opacity: 1; } 99% { opacity: 1; } 100% { opacity: 0; } }
@keyframes g-jahr-letzt { from { opacity: 1; } to { opacity: 1; } }
@keyframes g-blink3 { 0% { fill-opacity: .42; } 17% { fill-opacity: 1; } 33% { fill-opacity: .42; } 50% { fill-opacity: 1; } 67% { fill-opacity: .42; } 83% { fill-opacity: 1; } 100% { fill-opacity: 1; } }
@keyframes g-cursor { 0% { visibility: visible; } 25% { visibility: hidden; } 50% { visibility: visible; } 75% { visibility: hidden; } 100% { visibility: hidden; } }
@media (prefers-reduced-motion: no-preference) {
  /* Anfangszustand */
  .g-anim.g-bereit:not(.g-lauf) .linie, .g-anim.g-bereit:not(.g-lauf) .strom { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .g-anim.g-bereit:not(.g-lauf) :is(.punkt, .ende, .g-nr) { visibility: hidden; }
  .g-anim.g-bereit:not(.g-lauf) :is(.wasser, .g-bahn i, .g-wasser) { clip-path: inset(0 100% 0 0); }
  .g-anim.g-bereit:not(.g-lauf) .g-seg { clip-path: inset(0 0 100% 0); }
  .g-anim.g-bereit:not(.g-lauf) .g-fuell { fill-opacity: var(--o0); }
  .g-anim.g-bereit:not(.g-lauf) .g-jahr { opacity: 0; }
  .g-anim.g-bereit:not(.g-lauf) .g-jahr.erst { opacity: 1; }
  .g-anim.g-bereit:not(.g-lauf) .g-feld { clip-path: inset(0 100% 0 0); }
  .g-anim.g-bereit:not(.g-lauf) .g-lauf-raster svg { clip-path: inset(0 0 100% 0); }
  .g-zeichenbild.g-anim.g-bereit:not(.g-lauf) img { clip-path: inset(0 0 100% 0); }
  .g-anim.g-bereit:not(.g-lauf) .g-beide { fill-opacity: .42; }
  /* Lauf: Linien Zelle fuer Zelle */
  .g-anim.g-lauf .linie, .g-anim.g-lauf .strom { stroke-dasharray: 1; animation: g-zeichnen var(--dauer, 2.2s) steps(var(--zellen, 24), end) calc(var(--i, 0) * .22s) both; }
  .g-anim.g-lauf .wasser { animation: g-rechts var(--dauer, 2.2s) steps(var(--zellen, 24), end) both; }
  .g-anim.g-lauf .punkt { animation: g-an .01s step-start var(--d, 0s) both; }
  .g-anim.g-lauf .ende { animation: g-an .01s step-start var(--dauer, 2.2s) both; }
  .g-anim.g-lauf .g-cursor { animation: g-cursor .8s steps(1, end) var(--dauer, 2.2s) both; }
  /* Balken: in Stufen von fuenf Prozent */
  .g-anim.g-lauf .g-bahn i { animation: g-rechts .8s steps(20, end) calc(var(--i, 0) * .09s) both; }
  /* Karten: Flaechen springen von Stichtag zu Stichtag, das Jahr zaehlt mit */
  .g-anim.g-lauf .g-fuell { animation: g-fuellen var(--dauer, 3s) step-end both; }
  .g-anim.g-lauf .g-jahr { animation: g-jahr var(--schritt, .5s) step-end calc(var(--k) * var(--schritt, .5s)) forwards; }
  .g-anim.g-lauf .g-jahr.letzt { opacity: 0; animation-name: g-jahr-letzt; }
  /* Weg: Station erscheint mit einem Schritt, das Stueck bis zur naechsten zeichnet sich in acht Schritten, der Text tippt (grafik.js) */
  .g-anim.g-lauf .g-nr { animation: g-an .01s step-start calc(var(--i) * .7s) both; }
  .g-anim.g-lauf .g-seg { animation: g-unten .5s steps(8, end) calc(var(--i) * .7s + .15s) both; }
  /* Raster: drei Stufen hintereinander, ░ dann ▒ dann voll, Spalte fuer Spalte */
  .g-anim.g-lauf .g-s1, .g-anim.g-lauf .g-s2 { display: inline; }
  .g-anim.g-lauf .g-s1 { opacity: .3; animation: g-rechts 2s steps(var(--sp, 36), end) both both; }
  .g-anim.g-lauf .g-s2 { opacity: .6; animation: g-rechts 2s steps(var(--sp, 36), end) .25s both both; }
  .g-anim.g-lauf .g-s3 { animation: g-rechts 2s steps(var(--sp, 36), end) .5s both; }
  /* Zwei Laeufe: erst Zeile fuer Zeile das erste Raster, dann das zweite, dann blinken die gemeinsamen Zellen dreimal */
  .g-zeichenbild.g-anim.g-lauf img { animation: g-unten var(--dauer, 2.4s) steps(var(--z, 24), end) both; }
  .g-anim.g-lauf .g-lauf-raster:nth-child(1) svg { animation: g-unten .9s steps(10, end) both; }
  .g-anim.g-lauf .g-lauf-raster:nth-child(2) svg { animation: g-unten .9s steps(10, end) 1s both; }
  .g-anim.g-lauf .g-beide { animation: g-blink3 .9s steps(1, end) 2.1s both; }
  /* Tippen: der Cursor steht nur, solange getippt wird */
  .g-tippen .cur { animation: g-cursor-takt 1s steps(1, end) infinite; }
}
@keyframes g-cursor-takt { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }
.g-tippen .h { visibility: hidden; }

/* Zeitleiste: Block als Marke (voll = getan, schraffiert = offen), Datum in Grau */
.g-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.g-zeitform .g-nr.g-block { width: 20px; height: 20px; margin: 4px 0 0 10px; border-radius: 0; font-size: 0; box-shadow: 0 0 0 3px var(--grund); }
.g-zeitform .g-nr.getan { background: var(--text); }
.g-zeitform .g-nr.offen { background: repeating-linear-gradient(45deg, var(--grund) 0 3px, var(--text) 3px 4px); }
.g-zeitform .g-seg { top: 24px; height: calc(100% - 24px); }
.g-zeitform .g-datum { display: block; color: var(--dim); font-size: .88em; }
.g-zeitform .g-wtext .g-kopf { margin-top: 1px; }

/* Schritte, Fassung 1: Terminalprotokoll */
.g-protokollform { max-width: 560px; }
.g-protokoll { padding: 14px 16px 16px; background: var(--flaeche); border: 1px solid var(--linie); }
.g-pz { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; }
.g-pbefehl { color: var(--text); font-weight: 500; }
.g-ps { color: var(--dim); }
.g-pschritt { margin-top: 12px; }
.g-pkopf { display: flex; align-items: baseline; }
.g-pnr { color: var(--dim); margin-right: 1ch; flex: none; }
.g-pname { font-weight: 500; }
.g-leiter { flex: 1 1 1ch; min-width: 1ch; margin: 0 .7ch; border-bottom: 1px dotted var(--dim); transform: translateY(-.25em); }
.g-ok { color: var(--text); flex: none; }
.g-ptext { padding-left: 6ch; color: var(--dim); font-size: .92em; }
.g-pbalken { padding-left: 6ch; margin-top: 2px; color: var(--text); font-family: "Cascadia Mono", Consolas, "DejaVu Sans Mono", "Courier New", monospace; font-size: .88em; line-height: 1.15; height: 1.15em; overflow: hidden; white-space: pre; }
@media (max-width: 420px) { .g-ptext, .g-pbalken { padding-left: 0; } }

/* Schritte, Fassung 2: Kette aus Kaesten (schmal: zwei mal zwei) */
.g-kettenform { max-width: none; }
.g-kette { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.g-kette li { position: relative; display: flex; }
.g-kasten { position: relative; flex: 1; min-width: 0; margin-right: 20px; padding: 10px 10px 12px; border: 2px solid var(--text); overflow: hidden; }
.g-kette li:last-child .g-kasten { margin-right: 0; }
.g-kfuell { position: absolute; inset: 0; background: var(--text); opacity: .12; pointer-events: none; }
.g-knr { position: relative; display: block; margin-bottom: 6px; font-size: 1.5em; line-height: 1; font-weight: 500; }
.g-kasten .g-kopf { position: relative; display: block; font-weight: 500; line-height: 1.3; }
.g-kasten .g-fuss { position: relative; display: block; margin-top: 5px; color: var(--dim); font-size: .86em; line-height: 1.4; }
.g-pfeil { position: absolute; right: 1px; top: 50%; width: 18px; text-align: center; transform: translateY(-50%); color: var(--text); font-size: 1.1em; }
@media (max-width: 600px) {
  .g-kette { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 0; }
  .g-kette li:nth-child(2) .g-pfeil { display: none; }
  .g-kette li:nth-child(2) .g-kasten { margin-right: 0; }
  .g-kasten { padding: 8px 8px 10px; }
}

/* Schritte, Fassung 3: Kreislauf, Monat fuer Monat */
.g-kreislauf { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.g-ring { flex: 0 0 auto; width: 200px; max-width: 100%; }
.g-svg .g-bogen { fill: none; stroke: var(--text); stroke-opacity: .75; stroke-width: 2; stroke-linecap: square; }
.g-svg .g-spitze { fill: none; stroke: var(--text); stroke-width: 2; stroke-linecap: square; stroke-linejoin: miter; }
.g-rliste { flex: 1 1 14em; min-width: 0; display: grid; gap: 10px; }
.g-rliste li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 0 10px; align-items: start; }
.g-rnr { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; box-sizing: border-box; border: 2px solid var(--text); font-size: .82em; font-weight: 500; }
.g-rtext .g-kopf { display: block; font-weight: 500; }
.g-rtext .g-fuss { display: block; margin-top: 2px; color: var(--dim); font-size: .92em; line-height: 1.4; }
.g-rueck { grid-template-columns: 1fr !important; color: var(--dim); padding-left: 36px; }

/* Animation der drei Fassungen (nur Schritte) */
@media (prefers-reduced-motion: no-preference) {
  .g-anim.g-bereit:not(.g-lauf) :is(.g-ok, .g-leiter, .g-pfeil, .g-spitze, .g-station-k, .g-mitte) { visibility: hidden; }
  .g-anim.g-bereit:not(.g-lauf) .g-kfuell { clip-path: inset(0 100% 0 0); }
  .g-anim.g-bereit:not(.g-lauf) .g-bogen { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .g-anim.g-lauf .g-ok, .g-anim.g-lauf .g-leiter { animation: g-an .01s step-start var(--t) both; }
  .g-anim.g-lauf .g-kfuell { animation: g-rechts .5s steps(8, end) calc(var(--i) * .7s) both; }
  .g-anim.g-lauf .g-pfeil { animation: g-an .01s step-start calc(var(--i) * .7s + .5s) both; }
  .g-anim.g-lauf .g-bogen { stroke-dasharray: 1; animation: g-zeichnen .5s steps(10, end) calc(var(--i) * .6s + .1s) both; }
  .g-anim.g-lauf .g-spitze { animation: g-an .01s step-start calc(var(--i) * .6s + .55s) both; }
  .g-anim.g-lauf .g-station-k { animation: g-an .01s step-start calc(var(--i) * .6s) both; }
  .g-anim.g-lauf .g-mitte { animation: g-an .01s step-start 2.5s both; }
}

/* Uebersicht: Gruppen mit Frage, Linktext, Nutzenzeile */
.g-liste { max-width: none; margin: 26px 0; }
.g-liste .g-frage { margin: 0 0 8px; }
.g-zeilen2 { display: grid; gap: 4px; }
.g-zeilen2 li { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.g-zeilen2 a { display: inline-block; justify-self: start; padding: 11px 0 11px; min-height: 44px; box-sizing: border-box; color: var(--text); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--linie); }
.g-zeilen2 a:hover, .g-zeilen2 a:focus-visible { color: var(--ps); text-decoration-color: var(--ps); outline: none; }
.g-nutzen { padding: 0 0 6px 2ch; margin-top: -6px; color: var(--dim); font-size: .92em; line-height: 1.4; }
@media (min-width: 640px) {
  .g-zeilen2 { gap: 0; }
  .g-zeilen2 li { grid-template-columns: 20ch minmax(0, 1fr); gap: 0 14px; align-items: baseline; }
  .g-zeilen2 a { padding: 5px 0; }
  .g-nutzen { padding: 5px 0; }
}
/* Akkordeon: immer eine Gruppe offen */
.g-akk { margin: 0; border-top: 1px solid var(--linie); }
.g-akk:last-of-type { border-bottom: 1px solid var(--linie); }
.g-akk summary { display: flex; gap: 1ch; align-items: baseline; min-height: 44px; padding: 10px 0; cursor: pointer; list-style: none; color: var(--text); font-weight: 500; }
.g-akk summary::-webkit-details-marker { display: none; }
.g-akk summary::before { content: "[+]"; color: var(--dim); font-weight: 400; }
.g-akk[open] summary::before { content: "[-]"; }
.g-akk .g-anzahl { color: var(--dim); font-weight: 400; margin-left: auto; }
.g-akk .g-zeilen2 { padding: 0 0 12px; }
.g-akk summary:focus-visible { outline: 1px solid var(--ps); outline-offset: 2px; }

@media (prefers-reduced-motion: no-preference) {
  .g-anim.g-bereit:not(.g-lauf) .g-zeilen2 li { visibility: hidden; }
  .g-anim.g-lauf .g-zeilen2 li { animation: g-an .01s step-start calc(var(--i) * .07s + .35s) both; }
  .g-anim.g-bereit:not(.g-lauf) .g-umriss { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .g-anim.g-lauf .g-umriss { stroke-dasharray: 1; animation: g-zeichnen 1.4s steps(40, end) both; }
  .g-anim.g-bereit:not(.g-lauf) .g-ort { visibility: hidden; }
  .g-anim.g-lauf .g-ort { animation: g-an .01s step-start calc(var(--i) * .12s + 1.4s) both; }
}
.g-svg .g-umriss { fill: var(--flaeche); stroke: var(--text); stroke-opacity: .6; stroke-width: 1.1; stroke-linejoin: miter; }
.g-svg a { cursor: pointer; }
.g-svg a .marke { transition: none; }
.g-svg a:hover .marke, .g-svg a:focus-visible .marke { fill: var(--text); }
.g-svg a:hover text, .g-svg a:focus-visible text { fill: var(--ps); }
.g-svg a:focus-visible { outline: none; }
.g-svg a:focus-visible .treffer { stroke: var(--ps); stroke-width: 1; }
.g-svg .treffer { fill: transparent; stroke: none; }
