/* ══════════════════════════════════════════════════════════════════════════
   ANALYSE (29.09.2026) — Management-Cockpit mit Kurven, Filtern, Prognose.

   EINE Farbquelle: die Variablen hier. Diagramme (analyse-diagramme.js liest
   sie über getComputedStyle), Legenden, Tabellen-Farbpunkte und Kacheln
   verwenden dieselben Werte. Kategorien und Regionen tragen feste Slots
   (c1 … c6) in geprüfter Reihenfolge (Farbenblind-Abstand ≥ 8, Normalsicht
   ≥ 15 für benachbarte Paare, hell und dunkel); „Übrige“ ist grau. Drei
   helle Farben liegen unter 3:1 zur Fläche — deshalb hat jedes Diagramm
   eine Tabellenansicht und eine Legende.

   Volle Breite, links beginnend (Jans Regel): Karten laufen im Raster
   nebeneinander, solange Platz ist, sonst darunter — nie waagrecht scrollen.
   ══════════════════════════════════════════════════════════════════════════ */

.an-seite {
    color-scheme: light;
    --an-c1: #2a78d6; --an-c2: #eb6834; --an-c3: #1baf7a; --an-c4: #eda100;
    --an-c5: #e87ba4; --an-c6: #008300; --an-c7: #4a3aa7; --an-c8: #e34948;
    --an-grau: #898781; --an-grauhell: #c3c2b7;
    --an-tinte: #1a2233; --an-tinte2: #475467; --an-gedaempft: #667085;
    --an-gitter: #e8ebf0; --an-achse: #c9ced8; --an-flaeche: #ffffff; --an-band: #2a78d6;
    --an-gut: #0ca30c; --an-warnung: #fab219; --an-ernst: #ec835a; --an-kritisch: #d03b3b;
    --an-gut-text: #067306; --an-kritisch-text: #b42318;
    width: 100%;
    /* Bezugsrahmen für absolut gesetzte, unsichtbare Texte (Tabellenüberschriften,
       Statusmeldungen): ohne ihn hängen sie am Dokument statt am scrollenden
       Inhalt und verlängern die GANZE Seite — zweiter Rollbalken, leere Fläche. */
    position: relative;
}
@media (prefers-color-scheme: dark) {
    :root:where(:not([data-theme="light"])) .an-seite {
        color-scheme: dark;
        --an-c1: #3987e5; --an-c2: #d95926; --an-c3: #199e70; --an-c4: #c98500;
        --an-c5: #d55181; --an-c6: #008300; --an-c7: #9085e9; --an-c8: #e66767;
        --an-grau: #898781; --an-grauhell: #5c5b56;
        --an-tinte: #ffffff; --an-tinte2: #c3c2b7; --an-gedaempft: #9a988f;
        --an-gitter: #2c2c2a; --an-achse: #383835; --an-flaeche: #1a1a19; --an-band: #3987e5;
        --an-gut-text: #0ca30c; --an-kritisch-text: #f07070;
    }
}
:root[data-theme="dark"] .an-seite {
    color-scheme: dark;
    --an-c1: #3987e5; --an-c2: #d95926; --an-c3: #199e70; --an-c4: #c98500;
    --an-c5: #d55181; --an-c6: #008300; --an-c7: #9085e9; --an-c8: #e66767;
    --an-grau: #898781; --an-grauhell: #5c5b56;
    --an-tinte: #ffffff; --an-tinte2: #c3c2b7; --an-gedaempft: #9a988f;
    --an-gitter: #2c2c2a; --an-achse: #383835; --an-flaeche: #1a1a19; --an-band: #3987e5;
    --an-gut-text: #0ca30c; --an-kritisch-text: #f07070;
}

/* ── Reiterleiste der Analyse (Jan, 01.10.2026: „Analyse auch als TabBar, nicht diese runden
      Buttons da oben. Mach die Überschriften kleiner, dass möglichst alles in eine Zeile passt“) ──
   Die GEMEINSAME Reiterleiste (Reiterleiste.razor, Voll; Farben, Flächen und aktiver Reiter aus
   app.css/design.css) mit einem Reiter je Analyseseite und Kurznamen. Hier stehen nur Größe und
   Verteilung, abhängig von der Breite der LEISTE (Container-Abfrage, nicht des Fensters):
   · Eine Zeile, solange sie passt: jeder Reiter so breit wie sein Name, der Rest gleichmäßig
     verteilt (volle Breite). Vierzehn gleich breite Spalten bräuchten vierzehnmal den längsten
     Namen („Performance“) und brächen schon unter 1.700 px Fensterbreite um; so hält die Zeile
     in 14 px bis 1.180 px Leistenbreite, in 13 px mit knapperem Rand bis 1.020 px
     (Fenster ab etwa 1.366 px; gemessen 01.10.2026: 1.148 bzw. 1.005 px für 14 Reiter).
   · Darunter sauber umbrochen in gleich breite Spalten: 7 (zwei Zeilen), 5, 3, 2 — nie
     abgeschnitten, nie waagrecht scrollen, nie ein Wort im Reiter getrennt. */
.an-seite .an-reiterbereich { container: an-reiter / inline-size; margin: 0 0 10px; }
.an-seite .lc-reiter.voll.an-ansichten { display: flex; flex-wrap: wrap; margin: 0; }
.an-seite .lc-reiter.voll.an-ansichten button {
    flex: 1 0 auto; min-height: 34px; padding: 5px 9px; font-size: 14px; line-height: 1.2;
    white-space: nowrap; hyphens: manual; overflow-wrap: normal;
}
@container an-reiter (max-width: 1180px) {
    .an-seite .lc-reiter.voll.an-ansichten button { min-height: 32px; padding: 4px 6px; font-size: 13px; }
}
@container an-reiter (max-width: 1020px) {
    .an-seite .lc-reiter.voll.an-ansichten { display: grid; grid-auto-flow: row; grid-template-columns: repeat(7, minmax(0, 1fr)); }
}
@container an-reiter (max-width: 690px) {
    .an-seite .lc-reiter.voll.an-ansichten { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@container an-reiter (max-width: 500px) {
    .an-seite .lc-reiter.voll.an-ansichten { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@container an-reiter (max-width: 310px) {
    .an-seite .lc-reiter.voll.an-ansichten { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Im kompakten Fenster (Strg+Klick auf einen Reiter, #popout) steht genau EINE Ansicht: ohne Leiste —
   ein Reiterwechsel dort verließe den Ausgangsbereich des Fensters und schlösse es (MainLayout). */
html.lc-popout .an-seite .an-reiterbereich { display: none; }

/* ── Kopf: kompakt unter der Reiterleiste (Titel kleiner als bis 30.09.2026, 22 px) ── */
.an-kopf { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 0 0 6px; }
.an-kopf h1 { font-size: 17px; line-height: 1.3; margin: 0; }
.an-kopf .an-stand { color: var(--lc-muted); font-size: 12px; }
.an-kopf .an-kopf-aktionen { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.an-einleitung { margin: 0 0 8px; max-width: 1100px; font-size: 13px; }

/* ── Filterleiste: steht im Fluss oben und gilt für alles darunter ─────
   Sichtprüfung 29.09.2026: die klebende Leiste belegte auf Laptops mit „Weitere
   Filter“ fast den halben Bildschirm. Jetzt klebt beim Scrollen nur noch die
   einzeilige Kurzfassung (.an-filter-kurz); „Filter ändern“ klappt die
   Hauptfilter darunter auf, die weiteren Filter bleiben oben in der vollen Leiste. */
.an-filter {
    position: relative; z-index: 21; background: var(--lc-bg);
    display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px;
    padding: 10px 0 12px; margin: 0 0 16px;
    box-shadow: 0 1px 0 var(--lc-border);
}
.an-filter .an-feld, .an-kurz-panel .an-feld { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.an-filter .an-feld > span, .an-kurz-panel .an-feld > span { font-size: 11.5px; font-weight: 650; color: var(--lc-muted); text-transform: uppercase; letter-spacing: .03em; }
.an-filter select, .an-filter input[type="month"], .an-filter input[type="search"], .an-filter input[type="number"],
.an-kurz-panel select, .an-kurz-panel input[type="month"] {
    height: 38px; padding: 6px 10px; border: 1px solid #b8c4d6; border-radius: 8px; background: var(--lc-surface);
    color: var(--lc-text); font: inherit; font-size: 13.5px; min-width: 0; max-width: 240px;
}
.an-filter select:focus-visible, .an-filter input:focus-visible,
.an-kurz-panel select:focus-visible, .an-kurz-panel input:focus-visible { outline: 3px solid #245bc0; outline-offset: 1px; }
/* Kurzfassung: klebt oben (Höhe 0 im Fluss, damit nichts springt) und ist nur sichtbar,
   solange die volle Leiste aus dem Bild ist (data-filterleiste="kompakt" setzt das Skript). */
.an-filter-kurz { position: sticky; top: 0; z-index: 23; height: 0; }
.an-kurz {
    position: absolute; left: 0; right: 0; top: 0; visibility: hidden;
    display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; min-height: 44px; padding: 5px 0;
    background: var(--lc-bg); box-shadow: 0 1px 0 var(--lc-border), 0 10px 12px -12px rgba(16,24,40,.35);
}
.an-seite[data-filterleiste="kompakt"] .an-kurz { visibility: visible; }
.an-kurz-text {
    flex: 1 1 0; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    font-size: 13.5px; font-weight: 650; color: var(--lc-text);
}
.an-kurz-knopf { flex: 0 0 auto; height: 34px; }
.an-kurz-panel {
    flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px;
    padding: 8px 0 10px; border-top: 1px dashed var(--lc-border);
    max-height: calc(100vh - 64px); overflow: auto;
}
.an-kurz-panel .an-zuruecksetzen { margin-left: auto; }
.an-kurz-panel select { max-width: 190px; }
.an-kurz-panel .an-mehr { height: 38px; }
/* Sprungziele, scrollIntoView und Tastaturfokus landen unter der Kurzfassung, nicht
   dahinter: Abstand am Ziel (scroll-margin), nicht am rollenden Behälter — sonst
   rollte schon der Fokus auf „Filter ändern“ die Seite, weil die klebende Zeile
   selbst im Abstandsstreifen liegt. */
.an-seite :not(.an-kurz, .an-kurz *) { scroll-margin-top: 56px; }
.an-segment { display: inline-flex; border: 1px solid #b8c4d6; border-radius: 9px; overflow: hidden; background: var(--lc-surface); }
.an-segment button {
    border: 0; background: transparent; padding: 0 11px; height: 36px; font: inherit; font-size: 13px; font-weight: 600;
    color: var(--lc-text); cursor: pointer; border-right: 1px solid #dbe2ec;
}
.an-segment button:last-child { border-right: 0; }
.an-segment button[aria-pressed="true"] { background: #244e86; color: #fff; }
.an-segment button:hover:not([aria-pressed="true"]) { background: #eef3fb; }
.an-segment button:focus-visible { outline: 3px solid #245bc0; outline-offset: -3px; }
.an-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.an-chip {
    display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border-radius: 999px;
    border: 1px solid #c3cddd; background: var(--lc-surface); font: inherit; font-size: 12.5px; font-weight: 600; color: var(--lc-text); cursor: pointer;
}
.an-chip[aria-pressed="true"] { border-color: #244e86; background: #eaf1fc; }
.an-chip[aria-pressed="false"] { color: var(--lc-muted); }
.an-chip[aria-pressed="false"] .an-punkt { opacity: .35; }
.an-chip:focus-visible { outline: 3px solid #245bc0; outline-offset: 2px; }
.an-filter .an-zuruecksetzen { margin-left: auto; }
.an-filter select { max-width: 190px; }
.an-filter .an-mehr { height: 38px; }
/* Geltungshinweis (Liquidität: gilt immer für das ganze Unternehmen) samt mitgebrachter, hier unwirksamer Filter. */
.an-filter-hinweis { flex-basis: 100%; margin: 0; font-size: 12.5px; color: var(--lc-muted); }
.an-filter-hinweis b { color: #8a4b00; font-weight: 650; }
/* Seltenere Filter (Familie, Kanal, Kunde, Sonderpreis, Kategorien) in einer
   aufklappbaren zweiten Zeile der vollen Leiste — sie klebt nie. */
.an-filter-mehr {
    flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px;
    padding-top: 10px; border-top: 1px dashed var(--lc-border);
}
.an-kundensuche { position: relative; }
.an-kundensuche ul {
    position: absolute; z-index: 40; top: calc(100% + 4px); left: 0; width: min(360px, 90vw); max-height: 320px; overflow: auto;
    margin: 0; padding: 4px; list-style: none; background: var(--lc-surface); border: 1px solid var(--lc-border); border-radius: 10px; box-shadow: var(--lc-shadow-lg);
}
.an-kundensuche li button { width: 100%; text-align: left; border: 0; background: transparent; padding: 7px 9px; border-radius: 7px; font: inherit; font-size: 13px; cursor: pointer; color: var(--lc-text); }
.an-kundensuche li button:hover, .an-kundensuche li button:focus-visible { background: #eef4ff; outline: none; }
.an-kundensuche li small { color: var(--lc-muted); }

/* ── Farbpunkte (Legende, Tabellen) ───────────────────────────────────── */
.an-punkt { display: inline-block; width: 10px; height: 10px; border-radius: 3px; flex: 0 0 10px; }
.an-f-c1 { background: var(--an-c1); } .an-f-c2 { background: var(--an-c2); } .an-f-c3 { background: var(--an-c3); }
.an-f-c4 { background: var(--an-c4); } .an-f-c5 { background: var(--an-c5); } .an-f-c6 { background: var(--an-c6); }
.an-f-c7 { background: var(--an-c7); } .an-f-c8 { background: var(--an-c8); }
.an-f-grau { background: var(--an-grau); } .an-f-grauhell { background: var(--an-grauhell); }

/* ── Kennzahlkacheln ──────────────────────────────────────────────────────
   AUSGEGLICHENE ZEILEN (1.3.174, Jan: „die Panels noch schöner sortieren ohne Lücken drinnen“): Kacheln (alle
   Analyse-Reiter), die Kacheln der Performance und ihre Abteilungskarten laufen als umbrechende Zeilen, die
   IMMER die ganze Breite füllen — und sich GLEICHMÄSSIG verteilen: neun Kacheln bei Platz für acht stehen als
   5 + 4, nicht als 8 + 1; im Spaltenraster blieb am Ende der letzten Zeile ein Loch.
   Rein in CSS, ohne Zutun der Seiten:
   · Anzahl n der Elemente: Mengenabfrage (:first-child:nth-last-child(n) und seine Geschwister).
   · Wie viele nebeneinander passen (max): Container-Abfragen auf die Breite der Zeile — Schwelle =
     Spalten × (Mindestbreite + Lücke) − Lücke.
   · Zeilen = ⌈n ÷ max⌉, Spalten = ⌈n ÷ Zeilen⌉ (round), Grundbreite = Zeilenbreite ÷ Spalten; die letzte Zeile
     streckt sich (flex-grow). Über 30 Elemente: max je Zeile.
   · Ohne round() (ältere Browser) bleiben umbrechende Zeilen mit der Mindestbreite; auch dort kein Loch. */
.an-kacheln { margin: 0 0 16px; }
.an-kacheln, .an-seite .pf-kacheln, .an-seite .pf-uebersicht { display: flex; flex-wrap: wrap; align-items: stretch; container-type: inline-size; }
.an-kacheln { gap: 12px; }
.an-seite .pf-kacheln { gap: 8px; }
.an-seite .pf-uebersicht { gap: 12px 14px; }
.an-kacheln > * { --an-min: 215px; --an-luecke: 12px; }
.an-seite .pf-kacheln > * { --an-min: 172px; --an-luecke: 8px; }
.an-seite .pf-uebersicht > * { --an-min: 250px; --an-luecke: 14px; }
:is(.an-kacheln, .pf-kacheln, .pf-uebersicht) > * { flex: 1 1 var(--an-min); min-width: min(100%, var(--an-min)); max-width: 100%; }

@supports (width: round(up, 1px, 1px)) {
    :is(.an-kacheln, .pf-kacheln, .pf-uebersicht) > * {
        --an-zeilen: round(up, var(--an-n, var(--an-max, 1)) / var(--an-max, 1), 1);
        --an-spalten: round(up, var(--an-n, var(--an-max, 1)) / var(--an-zeilen), 1);
        /* Ein halbes Pixel Luft: Rundung der Teilbreiten darf nie eine Kachel in die nächste Zeile schieben. */
        flex-basis: calc((100% - (var(--an-spalten) - 1) * var(--an-luecke)) / var(--an-spalten) - 0.5px);
        min-width: 0;
    }
    /* n: Anzahl der Elemente. */
    :is(.an-kacheln, .pf-kacheln, .pf-uebersicht) > :only-child { --an-n: 1; }
    :is(.an-kacheln, .pf-kacheln, .pf-uebersicht) > :first-child:nth-last-child(2), :is(.an-kacheln, .pf-kacheln, .pf-uebersicht) > :first-child:nth-last-child(2) ~ * { --an-n: 2; }
    :is(.an-kacheln, .pf-kacheln, .pf-uebersicht) > :first-child:nth-last-child(3), :is(.an-kacheln, .pf-kacheln, .pf-uebersicht) > :first-child:nth-last-child(3) ~ * { --an-n: 3; }
    :is(.an-kacheln, .pf-kacheln, .pf-uebersicht) > :first-child:nth-last-child(4), :is(.an-kacheln, .pf-kacheln, .pf-uebersicht) > :first-child:nth-last-child(4) ~ * { --an-n: 4; }
    :is(.an-kacheln, .pf-kacheln, .pf-uebersicht) > :first-child:nth-last-child(5), :is(.an-kacheln, .pf-kacheln, .pf-uebersicht) > :first-child:nth-last-child(5) ~ * { --an-n: 5; }
    :is(.an-kacheln, .pf-kacheln, .pf-uebersicht) > :first-child:nth-last-child(6), :is(.an-kacheln, .pf-kacheln, .pf-uebersicht) > :first-child:nth-last-child(6) ~ * { --an-n: 6; }
    :is(.an-kacheln, .pf-kacheln, .pf-uebersicht) > :first-child:nth-last-child(7), :is(.an-kacheln, .pf-kacheln, .pf-uebersicht) > :first-child:nth-last-child(7) ~ * { --an-n: 7; }
    :is(.an-kacheln, .pf-kacheln, .pf-uebersicht) > :first-child:nth-last-child(8), :is(.an-kacheln, .pf-kacheln, .pf-uebersicht) > :first-child:nth-last-child(8) ~ * { --an-n: 8; }
    :is(.an-kacheln, .pf-kacheln, .pf-uebersicht) > :first-child:nth-last-child(9), :is(.an-kacheln, .pf-kacheln, .pf-uebersicht) > :first-child:nth-last-child(9) ~ * { --an-n: 9; }
    :is(.an-kacheln, .pf-kacheln, .pf-uebersicht) > :first-child:nth-last-child(10), :is(.an-kacheln, .pf-kacheln, .pf-uebersicht) > :first-child:nth-last-child(10) ~ * { --an-n: 10; }
    :is(.an-kacheln, .pf-kacheln, .pf-uebersicht) > :first-child:nth-last-child(11), :is(.an-kacheln, .pf-kacheln, .pf-uebersicht) > :first-child:nth-last-child(11) ~ * { --an-n: 11; }
    :is(.an-kacheln, .pf-kacheln, .pf-uebersicht) > :first-child:nth-last-child(12), :is(.an-kacheln, .pf-kacheln, .pf-uebersicht) > :first-child:nth-last-child(12) ~ * { --an-n: 12; }
    :is(.an-kacheln, .pf-kacheln, .pf-uebersicht) > :first-child:nth-last-child(13), :is(.an-kacheln, .pf-kacheln, .pf-uebersicht) > :first-child:nth-last-child(13) ~ * { --an-n: 13; }
    :is(.an-kacheln, .pf-kacheln, .pf-uebersicht) > :first-child:nth-last-child(14), :is(.an-kacheln, .pf-kacheln, .pf-uebersicht) > :first-child:nth-last-child(14) ~ * { --an-n: 14; }
    :is(.an-kacheln, .pf-kacheln, .pf-uebersicht) > :first-child:nth-last-child(15), :is(.an-kacheln, .pf-kacheln, .pf-uebersicht) > :first-child:nth-last-child(15) ~ * { --an-n: 15; }
    :is(.an-kacheln, .pf-kacheln, .pf-uebersicht) > :first-child:nth-last-child(16), :is(.an-kacheln, .pf-kacheln, .pf-uebersicht) > :first-child:nth-last-child(16) ~ * { --an-n: 16; }
    :is(.an-kacheln, .pf-kacheln, .pf-uebersicht) > :first-child:nth-last-child(17), :is(.an-kacheln, .pf-kacheln, .pf-uebersicht) > :first-child:nth-last-child(17) ~ * { --an-n: 17; }
    :is(.an-kacheln, .pf-kacheln, .pf-uebersicht) > :first-child:nth-last-child(18), :is(.an-kacheln, .pf-kacheln, .pf-uebersicht) > :first-child:nth-last-child(18) ~ * { --an-n: 18; }
    :is(.an-kacheln, .pf-kacheln, .pf-uebersicht) > :first-child:nth-last-child(19), :is(.an-kacheln, .pf-kacheln, .pf-uebersicht) > :first-child:nth-last-child(19) ~ * { --an-n: 19; }
    :is(.an-kacheln, .pf-kacheln, .pf-uebersicht) > :first-child:nth-last-child(20), :is(.an-kacheln, .pf-kacheln, .pf-uebersicht) > :first-child:nth-last-child(20) ~ * { --an-n: 20; }
    :is(.an-kacheln, .pf-kacheln, .pf-uebersicht) > :first-child:nth-last-child(21), :is(.an-kacheln, .pf-kacheln, .pf-uebersicht) > :first-child:nth-last-child(21) ~ * { --an-n: 21; }
    :is(.an-kacheln, .pf-kacheln, .pf-uebersicht) > :first-child:nth-last-child(22), :is(.an-kacheln, .pf-kacheln, .pf-uebersicht) > :first-child:nth-last-child(22) ~ * { --an-n: 22; }
    :is(.an-kacheln, .pf-kacheln, .pf-uebersicht) > :first-child:nth-last-child(23), :is(.an-kacheln, .pf-kacheln, .pf-uebersicht) > :first-child:nth-last-child(23) ~ * { --an-n: 23; }
    :is(.an-kacheln, .pf-kacheln, .pf-uebersicht) > :first-child:nth-last-child(24), :is(.an-kacheln, .pf-kacheln, .pf-uebersicht) > :first-child:nth-last-child(24) ~ * { --an-n: 24; }
    :is(.an-kacheln, .pf-kacheln, .pf-uebersicht) > :first-child:nth-last-child(25), :is(.an-kacheln, .pf-kacheln, .pf-uebersicht) > :first-child:nth-last-child(25) ~ * { --an-n: 25; }
    :is(.an-kacheln, .pf-kacheln, .pf-uebersicht) > :first-child:nth-last-child(26), :is(.an-kacheln, .pf-kacheln, .pf-uebersicht) > :first-child:nth-last-child(26) ~ * { --an-n: 26; }
    :is(.an-kacheln, .pf-kacheln, .pf-uebersicht) > :first-child:nth-last-child(27), :is(.an-kacheln, .pf-kacheln, .pf-uebersicht) > :first-child:nth-last-child(27) ~ * { --an-n: 27; }
    :is(.an-kacheln, .pf-kacheln, .pf-uebersicht) > :first-child:nth-last-child(28), :is(.an-kacheln, .pf-kacheln, .pf-uebersicht) > :first-child:nth-last-child(28) ~ * { --an-n: 28; }
    :is(.an-kacheln, .pf-kacheln, .pf-uebersicht) > :first-child:nth-last-child(29), :is(.an-kacheln, .pf-kacheln, .pf-uebersicht) > :first-child:nth-last-child(29) ~ * { --an-n: 29; }
    :is(.an-kacheln, .pf-kacheln, .pf-uebersicht) > :first-child:nth-last-child(30), :is(.an-kacheln, .pf-kacheln, .pf-uebersicht) > :first-child:nth-last-child(30) ~ * { --an-n: 30; }

    /* max: so viele passen bei dieser Breite nebeneinander. Kacheln der Analyse: 215 px + 12 px. */
    @container (min-width: 442px) { .an-kacheln > * { --an-max: 2; } }
    @container (min-width: 669px) { .an-kacheln > * { --an-max: 3; } }
    @container (min-width: 896px) { .an-kacheln > * { --an-max: 4; } }
    @container (min-width: 1123px) { .an-kacheln > * { --an-max: 5; } }
    @container (min-width: 1350px) { .an-kacheln > * { --an-max: 6; } }
    @container (min-width: 1577px) { .an-kacheln > * { --an-max: 7; } }
    @container (min-width: 1804px) { .an-kacheln > * { --an-max: 8; } }
    @container (min-width: 2031px) { .an-kacheln > * { --an-max: 9; } }
    @container (min-width: 2258px) { .an-kacheln > * { --an-max: 10; } }
    /* Kacheln der Performance: 172 px + 8 px — auf dem Handy schon ab 320 px zwei nebeneinander (15 Kacheln untereinander
       wären sonst sieben Bildschirme). */
    @container (min-width: 320px) { .pf-kacheln > * { --an-max: 2; } }
    @container (min-width: 532px) { .pf-kacheln > * { --an-max: 3; } }
    @container (min-width: 712px) { .pf-kacheln > * { --an-max: 4; } }
    @container (min-width: 892px) { .pf-kacheln > * { --an-max: 5; } }
    @container (min-width: 1072px) { .pf-kacheln > * { --an-max: 6; } }
    @container (min-width: 1252px) { .pf-kacheln > * { --an-max: 7; } }
    @container (min-width: 1432px) { .pf-kacheln > * { --an-max: 8; } }
    @container (min-width: 1612px) { .pf-kacheln > * { --an-max: 9; } }
    @container (min-width: 1792px) { .pf-kacheln > * { --an-max: 10; } }
    @container (min-width: 1972px) { .pf-kacheln > * { --an-max: 11; } }
    @container (min-width: 2152px) { .pf-kacheln > * { --an-max: 12; } }
    /* Abteilungskarten des Überblicks: 250 px + 14 px. */
    @container (min-width: 514px) { .pf-uebersicht > * { --an-max: 2; } }
    @container (min-width: 778px) { .pf-uebersicht > * { --an-max: 3; } }
    @container (min-width: 1042px) { .pf-uebersicht > * { --an-max: 4; } }
    @container (min-width: 1306px) { .pf-uebersicht > * { --an-max: 5; } }
    @container (min-width: 1570px) { .pf-uebersicht > * { --an-max: 6; } }
    @container (min-width: 1834px) { .pf-uebersicht > * { --an-max: 7; } }
}

.an-kachel {
    background: var(--lc-surface); border: 1px solid var(--lc-border); border-radius: 12px; box-shadow: var(--lc-shadow);
    padding: 14px 16px 10px; display: flex; flex-direction: column; gap: 3px; min-width: 0; color: inherit;
}
a.an-kachel:hover { text-decoration: none; border-color: #9fb6d8; }
a.an-kachel:focus-visible { outline: 3px solid #245bc0; outline-offset: 2px; }
/* Kachel als Knopf (Rechnungen: Großgeräte & Service, 05.10.2026): öffnet den Drilldown; nur Tokens, keine festen Farben. */
button.an-kachel { text-align: left; font: inherit; cursor: pointer; width: auto; }
button.an-kachel:hover { border-color: var(--an-c1); }
button.an-kachel:focus-visible { outline: 3px solid var(--an-c1); outline-offset: 2px; }
.an-kachel .an-k-label { color: var(--lc-muted); font-size: 12px; font-weight: 650; letter-spacing: .02em; }
.an-kachel .an-k-wert { font-size: 24px; font-weight: 700; letter-spacing: -.02em; color: var(--lc-text); line-height: 1.2; }
.an-kachel .an-k-sub { color: var(--lc-muted); font-size: 12px; line-height: 1.4; }
.an-kachel .an-k-delta { font-size: 12.5px; font-weight: 650; }
.an-kachel .an-k-delta.gut { color: var(--an-gut-text); }
.an-kachel .an-k-delta.schlecht { color: var(--an-kritisch-text); }
.an-kachel .an-k-delta.neutral { color: var(--lc-muted); }
.an-kachel svg.an-spark { width: 100%; height: 30px; margin-top: 4px; display: block; }

/* ── Ampel (Performance, 1.3.174) ─────────────────────────────────────────
   Ein Punkt in der Farbe der Bewertung — immer mit Wort daneben bzw. als aria-label und der Regel
   als Tooltip, nie nur Farbe. Farben aus den Variablen oben (hell und dunkel gleich lesbar);
   „ohne“ ist ein leerer Ring. */
.an-ampel {
    display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: 0 0 10px; margin-right: 6px;
    vertical-align: baseline; box-sizing: border-box; border: 1px solid transparent;
}
.an-ampel.gruen { background: var(--an-gut); }
.an-ampel.gelb { background: var(--an-warnung); }
.an-ampel.rot { background: var(--an-kritisch); }
.an-ampel.ohne { background: transparent; border-color: var(--an-grau); }

/* ── Raster und Karten ────────────────────────────────────────────────────
   LÜCKENLOS (Jan, 01.10.2026: „die Panels noch schöner sortieren ohne Lücken drinnen“): die Karten laufen
   als umbrechende Zeilen (flex) statt in einem festen Spaltenraster.
   · Jede Zeile ist voll: die Karten einer Zeile teilen sich die ganze Breite — auch die letzte Zeile und die
     Zeile vor einer breiten Karte (im Spaltenraster blieb dort ein Loch, wenn die Zahl der Karten nicht aufging).
   · Gleich hohe Karten je Zeile (stretch): keine Stufen zwischen einer kurzen und einer langen Karte.
   · Mindestbreite 560 px (eng: 420 px) wie bisher — auf breiten Monitoren stehen mehr Karten nebeneinander,
     schmal bricht es bis auf eine Spalte um; nie waagrecht scrollen.
   · Breite Karten (.an-breit) OHNE Diagramm (Tabellen, Listen) nehmen eine ganze Zeile.
   Nur innerhalb der Analyse (.an-seite): der Angebotseditor hat ein eigenes Raster desselben Namens.

   HÖCHSTBREITE DER GRAFIKEN (1.3.197.1, Jan, 06.10.2026: „ich mag in der Analyse diese breiten Graphen nicht,
   die müssen eine max Breite haben damit es eine sinnvolle Ansicht ist, das ist überall so zu handhaben“):
   · Eine Karte MIT Diagramm (.an-grafik — AnalyseKarte setzt die Klasse, sobald sie eine Diagramm-Option hat)
     wird nie breiter als --an-grafik-max (760 px Karte ≈ 736 px Zeichenfläche: bei 320 px Höhe gut 2,3 : 1,
     rund 12 Monatsbalken oder 8 Kategorien mit lesbarer Beschriftung), eine breite (.an-breit.an-grafik) nie
     breiter als --an-grafik-max-breit (1.200 px ≈ 1.176 px Fläche bei 340–380 px Höhe ≈ 3 : 1 — 60 Monate einer
     Zeitreihe bleiben unterscheidbar, die Kurve wird nicht zum flachen Strich).
   · Statt eine Karte zu strecken, stehen auf breiten Monitoren MEHR Karten nebeneinander: eine breite
     Diagrammkarte beginnt bei 900 px (statt einer ganzen Zeile) — ab etwa 1.500 px Inhaltsbreite steht eine
     normale Karte daneben, ab etwa 1.820 px eine zweite breite. Was danach in einer Zeile frei bleibt, bleibt
     frei (Jans neue Regel geht der „vollen Zeile“ vom 01.10. vor); Karten ohne Diagramm (Tabellen, Listen)
     strecken sich weiter und füllen die Zeile — Tabellen dürfen breiter sein.
   · Schmal (unter der Höchstbreite) gilt 100 % wie bisher: Handy ohne waagrechten Rollbalken.
   · ECharts zeichnet bei jeder Größenänderung neu (ResizeObserver in analyse-diagramme.js).
   Die Werte stehen auf :root, damit auch Grafiken außerhalb der Analyse (Auswertungen/Prognose, Artikel-
   Preiskurven, GL-Ansicht „Rechnungen“) dieselbe Grenze nutzen. PDFs sind nicht betroffen. */
:root { --an-grafik-max: 760px; --an-grafik-max-breit: 1200px; }
.an-seite .an-raster { display: flex; flex-wrap: wrap; align-items: stretch; gap: 16px; margin: 0 0 16px; }
.an-seite .an-raster > * { flex: 1 1 560px; min-width: 0; max-width: 100%; }
.an-seite .an-raster.eng > * { flex-basis: 420px; }
.an-seite .an-raster > .an-breit { flex-basis: 100%; }
.an-seite .an-raster > .an-breit.an-grafik { flex-basis: 900px; }
.an-karte.an-grafik { max-width: min(100%, var(--an-grafik-max)); }
.an-karte.an-grafik.an-breit { max-width: min(100%, var(--an-grafik-max-breit)); }
.an-karte { background: var(--lc-surface); border: 1px solid var(--lc-border); border-radius: 12px; box-shadow: var(--lc-shadow); min-width: 0; }
.an-karte > header { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; padding: 12px 16px 6px; }
.an-karte > header h2 { font-size: 15px; margin: 0; }
.an-karte > header .an-untertitel { color: var(--lc-muted); font-size: 12.5px; flex-basis: 100%; }
.an-karte > header .an-werkzeuge { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; }
.an-werkzeug {
    min-height: 30px; padding: 3px 9px; border-radius: 7px; border: 1px solid #c9d3e2; background: var(--lc-surface);
    font: inherit; font-size: 12px; font-weight: 600; color: #2d4668; cursor: pointer; white-space: nowrap;
}
.an-werkzeug:hover { border-color: #7f9bc2; background: #f2f6fc; }
.an-werkzeug[aria-pressed="true"] { background: #244e86; border-color: #244e86; color: #fff; }
.an-werkzeug:focus-visible { outline: 3px solid #245bc0; outline-offset: 2px; }
.an-karte > .an-inhalt { padding: 4px 12px 12px; }
.an-karte .an-info { margin: 0 16px 10px; padding: 10px 12px; border-radius: 10px; background: #f3f6fb; color: #34465f; font-size: 13px; line-height: 1.5; }
.an-karte .an-info p { margin: 0 0 6px; }
.an-karte .an-info p:last-child { margin: 0; }
.an-diagramm { width: 100%; min-height: 200px; transition: opacity .15s; border-radius: 8px; }
.an-diagramm:focus-visible { outline: 3px solid #245bc0; outline-offset: 2px; }
.an-laedt .an-diagramm, .an-laedt .an-tabelle { opacity: .45; }
.an-leer { padding: 34px 16px; text-align: center; color: var(--lc-muted); font-size: 13.5px; }
.an-leer strong { display: block; color: var(--lc-text); margin-bottom: 4px; }

/* Ladezustand beim ersten Laden: ruhiges Skelett in Kartengröße, kein Springen. */
.an-skelett { border-radius: 10px; background: linear-gradient(90deg, #eef1f6 0%, #f7f9fc 50%, #eef1f6 100%); background-size: 200% 100%; animation: an-schimmer 1.4s linear infinite; }
@keyframes an-schimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .an-skelett { animation: none; } }

/* ── Tabellen ─────────────────────────────────────────────────────────── */
.an-tabelle { overflow: auto; max-height: 520px; border-radius: 8px; }
.an-tabelle table { width: 100%; border-collapse: collapse; font-size: 13px; }
/* Kopfzeilen dürfen zwischen Wörtern umbrechen: lange Spaltennamen („Auftragseingang
   seit 2017“) würden sonst die Inhaltsspalten zusammenquetschen und die Tabelle
   waagrecht rollen lassen. Zahlen in den Zellen bleiben einzeilig. */
.an-tabelle th { position: sticky; top: 0; background: #fafbfd; text-align: left; padding: 8px 10px; color: var(--lc-muted); font-size: 11.5px; font-weight: 650; text-transform: uppercase; letter-spacing: .03em; box-shadow: 0 1px 0 var(--lc-border); white-space: normal; vertical-align: bottom; }
.an-tabelle th button { all: unset; cursor: pointer; }
.an-tabelle th button:focus-visible { outline: 2px solid #245bc0; outline-offset: 2px; }
.an-tabelle td { padding: 7px 10px; border-bottom: 1px solid #eef1f6; vertical-align: top; }
.an-tabelle td.num, .an-tabelle th.num { text-align: right; font-variant-numeric: tabular-nums; }
.an-tabelle td.num { white-space: nowrap; }
.an-tabelle tr.an-summe td { font-weight: 700; border-top: 2px solid var(--lc-border); }
.an-tabelle tr.an-klickbar { cursor: pointer; }
.an-tabelle tr.an-klickbar:hover { background: #f4f8ff; }
.an-tabelle tr.an-klickbar:focus-visible { outline: 2px solid #245bc0; outline-offset: -2px; }
.an-tabelle .an-name { display: inline-flex; align-items: center; gap: 7px; }
.an-tabelle .an-gut { color: var(--an-gut-text); } .an-tabelle .an-schlecht { color: var(--an-kritisch-text); }
.an-tabelle .an-balken { display: inline-block; height: 8px; border-radius: 0 4px 4px 0; background: var(--an-c1); vertical-align: middle; min-width: 1px; }
/* Rückkehr aus einem Beleg (30.09.2026): die zuletzt geöffnete Zeile (listenmarkierung.js) auf einen Blick. */
.an-tabelle tbody tr.lc-last-opened > td { background-image: linear-gradient(#4f7fff26, #4f7fff26); box-shadow: inset 0 2px #648ddb, inset 0 -2px #648ddb; }
.an-tabelle tbody tr.lc-last-opened > td:first-child { box-shadow: inset 5px 0 #2964e0, inset 0 2px #648ddb, inset 0 -2px #648ddb; }
.an-tabelle td .an-werkzeug { white-space: nowrap; }
/* Sammelposten, die sich nicht verteilen ließen (Ranglisten): sichtbar abgesetzt. */
.an-nichtverteilt { margin: 0 16px 12px; padding: 8px 12px; border-radius: 8px; background: #fff7e8; border: 1px solid #f1d8a8; color: #7a4a05; font-size: 13px; }
.an-nachweis { margin: 0 0 12px; font-size: 13px; color: var(--lc-muted); }
.an-nachweis b { color: var(--lc-text); font-variant-numeric: tabular-nums; }

/* ── Erkenntnisse ─────────────────────────────────────────────────────── */
.an-erkenntnisse { list-style: none; margin: 0; padding: 0 4px 4px; display: grid; gap: 8px; }
.an-erkenntnisse li a {
    display: grid; grid-template-columns: 26px 1fr; gap: 2px 10px; padding: 10px 12px; border-radius: 10px;
    border: 1px solid var(--lc-border); color: var(--lc-text); background: var(--lc-surface);
}
.an-erkenntnisse li a:hover { text-decoration: none; border-color: #9fb6d8; background: #f8fafe; }
.an-erkenntnisse li a:focus-visible { outline: 3px solid #245bc0; outline-offset: 2px; }
.an-erkenntnisse .an-e-symbol { grid-row: span 2; width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.an-erkenntnisse .warnung .an-e-symbol { background: #fde8e8; color: #b42318; }
.an-erkenntnisse .chance .an-e-symbol { background: #e6f7ec; color: #067306; }
.an-erkenntnisse .hinweis .an-e-symbol { background: #e7f0ff; color: #1f4fd6; }
.an-erkenntnisse .an-e-titel { font-weight: 700; font-size: 13.5px; }
.an-erkenntnisse .an-e-text { font-size: 13px; line-height: 1.5; color: var(--an-tinte2); }

/* ── Drilldown (Belege) ───────────────────────────────────────────────── */
.an-drilldown .lc-modal { width: min(1100px, 96vw); max-height: 86vh; }
.an-drilldown .an-tabelle { max-height: calc(86vh - 190px); }
.an-hinweise { margin: 18px 0 0; font-size: 12.5px; color: var(--lc-muted); }
.an-hinweise summary { cursor: pointer; font-weight: 650; color: var(--lc-text); }
.an-hinweise ul { margin: 6px 0 0 18px; padding: 0; line-height: 1.55; }
.an-warnungen { margin: 8px 16px 12px; padding: 10px 12px; border-radius: 10px; background: #fff7e8; border: 1px solid #f1d8a8; color: #7a4a05; font-size: 13px; }
.an-warnungen ul { margin: 4px 0 0 18px; padding: 0; }
.an-kennwerte { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin: 0 16px 10px; }
.an-kennwerte div { border: 1px solid var(--lc-border); border-radius: 10px; padding: 8px 10px; }
.an-kennwerte span { display: block; color: var(--lc-muted); font-size: 11.5px; font-weight: 650; }
.an-kennwerte b { font-size: 17px; }
.an-regler { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; padding: 6px 16px 12px; }
.an-regler label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; font-weight: 650; color: var(--lc-muted); }
.an-regler input[type="range"] { width: 220px; }
.an-regler output { font-weight: 700; color: var(--lc-text); }
/* ── KI-Berater ───────────────────────────────────────────────────────── */
.an-berater { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 14px; }
.an-berater-karte { border: 1px solid var(--lc-border); border-radius: 12px; padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.an-berater-karte h3 { margin: 0; font-size: 15px; }
.an-berater-fokus { margin: 0; color: var(--lc-muted); font-size: 12.5px; }
.an-berater-laeuft { margin: 6px 0; color: var(--an-tinte2); font-size: 13px; }
.an-berater-text { font-size: 13.5px; line-height: 1.55; overflow-x: auto; }
.an-berater-text table { border-collapse: collapse; font-size: 12.5px; }
.an-berater-text th, .an-berater-text td { border: 1px solid var(--lc-border); padding: 4px 6px; vertical-align: top; }
.an-berater-fuss { margin: 0; color: var(--lc-muted); font-size: 12px; }
/* Gespeicherte Berichte (01.10.2026): Stand und Filter, Hinweise, Verlauf der letzten zehn — nur Tokens. */
.an-berater-knoepfe { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.an-berater-stand { margin: 0; font-size: 12.5px; font-weight: 600; color: var(--an-tinte2); }
.an-berater-hinweis { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12.5px;
    color: var(--lc-text); border-left: 3px solid var(--an-warnung); padding: 2px 0 2px 8px; }
.an-berater-leer { margin: 0; color: var(--lc-muted); font-size: 12.5px; }
.an-berater-verlauf { margin: 0; padding: 0; list-style: none; border: 1px solid var(--lc-border); border-radius: 8px; font-size: 12.5px; }
.an-berater-verlauf li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 10px; padding: 5px 8px; }
.an-berater-verlauf li + li { border-top: 1px solid var(--lc-border); }
.an-berater-verlauf-angezeigt { background: var(--lc-flaeche-2, transparent); }
.an-berater-verlauf-knoepfe { display: inline-flex; gap: 4px; }
.an-berater-karte > button { align-self: flex-start; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; white-space: nowrap; }

/* Sprungziele (#nachfassen, #servicestatus …) liegen dank der Regel oben bei der
   Kurzfassung der Filter nicht darunter; ankerZeigen setzt den Abstand zusätzlich genau. */

@media (max-width: 820px) {
    .an-filter .an-zuruecksetzen, .an-kurz-panel .an-zuruecksetzen { margin-left: 0; }
    .an-kopf .an-kopf-aktionen { margin-left: 0; }
}

/* ══════════════════════════════════════════════════════════════════════
   GL-ANSICHT „RECHNUNGEN: GROSSGERÄTE & SERVICE“ EINFACH (1.3.196) — Aufbau
   wie der Sofortbericht (Kacheln, je Jahr, je Monat, eigene Auswahl, nach
   Sparte, Definitionen). Nur Farbmarken, damit Dunkelmodus und Designs ohne
   eigene dunkle Fassung greifen. Großgeräte = --an-c1 (blau), Service =
   --an-c2 (orange) wie im Sofortbericht und im PDF.
   ══════════════════════════════════════════════════════════════════════ */
.gl-bericht h2 { font-size: 17px; margin: 22px 0 8px; }
.gl-stand { color: var(--lc-muted); font-size: 13px; margin: 0 0 10px; }
.gl-warn { background: var(--lc-flaeche-2); border: 1px solid var(--lc-border); border-left: 4px solid var(--an-warnung); border-radius: 10px; padding: 10px 14px; font-size: 13px; }
.gl-gruppe { margin: 4px 0 6px; font-size: 12.5px; color: var(--lc-muted); font-weight: 650; }
.gl-kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin: 0 0 12px; }
.gl-kachel { display: flex; flex-direction: column; gap: 2px; text-align: left; font: inherit; color: var(--lc-text); background: var(--lc-surface);
    border: 1px solid var(--lc-border); border-top: 4px solid var(--lc-border-stark); border-radius: 10px; padding: 10px 12px; cursor: pointer; }
.gl-kachel.gl-gg { border-top-color: var(--an-c1); }
.gl-kachel.gl-sv { border-top-color: var(--an-c2); }
.gl-kachel:hover { box-shadow: var(--lc-shadow); }
.gl-kachel:focus-visible { outline: 2px solid var(--an-c1); outline-offset: 2px; }
.gl-k-titel { font-size: 12px; color: var(--lc-muted); font-weight: 650; }
.gl-k-wert { font-size: 24px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.gl-k-vj, .gl-k-sub { font-size: 12px; color: var(--lc-muted); }
.gl-gut { color: var(--an-gut-text); }
.gl-schlecht { color: var(--an-kritisch-text); }
.gl-karte { background: var(--lc-surface); border: 1px solid var(--lc-border); border-radius: 12px; padding: 12px 14px; margin: 0 0 12px; min-width: 0; }
.gl-legende { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--lc-muted); margin: 0 0 6px; }
.gl-legende i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -2px; }
.gl-legende i.gl-gg { background: var(--an-c1); }
.gl-legende i.gl-sv { background: var(--an-c2); }
.gl-legende i.gl-vjl { height: 0; width: 16px; border-top: 2px dashed var(--lc-text); border-radius: 0; vertical-align: 3px; }
.gl-scroll { overflow-x: auto; }
.gl-schmal { max-width: 640px; }
/* Höchstbreite (1.3.197.1): die SVG-Säulen skalieren mit der Breite (Höhe und Schrift wachsen mit) — gestreckt
   über 2.500 px würden sie riesig. Je Jahr / je Monat / eigene Auswahl stehen deshalb in Blöcken mit derselben
   Grenze wie die Analysekarten (breit 1.200 px, wenige Jahre 760 px) und auf breiten Monitoren nebeneinander;
   ein Block beginnt bei 900 px (die Monatssäulen sind für 920 px gezeichnet), sonst darunter. */
.gl-raster { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0 16px; }
.gl-block { flex: 1 1 900px; min-width: 0; max-width: min(100%, var(--an-grafik-max-breit)); }
.gl-block.gl-block-schmal { flex-basis: 560px; max-width: min(100%, var(--an-grafik-max)); }
svg.gl-svg { width: 100%; height: auto; display: block; }
.gl-svg .gl-grid { stroke: var(--an-gitter); stroke-width: 1; }
.gl-svg .gl-achse { stroke: var(--an-achse); stroke-width: 1; }
.gl-svg .gl-tick { fill: var(--an-gedaempft); font-size: 11px; }
.gl-svg rect.gl-gg { fill: var(--an-c1); cursor: pointer; }
.gl-svg rect.gl-sv { fill: var(--an-c2); cursor: pointer; }
.gl-svg .gl-hit { fill: var(--lc-text); fill-opacity: 0; cursor: pointer; }
.gl-svg .gl-bar:hover .gl-hit { fill-opacity: .05; }
.gl-svg .gl-bar rect.gl-gg:hover, .gl-svg .gl-bar rect.gl-sv:hover { opacity: .85; }
.gl-svg .gl-vj { stroke: var(--lc-text); stroke-width: 2; stroke-dasharray: 4 3; pointer-events: none; }
table.gl-tab { border-collapse: collapse; width: 100%; font-size: 13px; margin-top: 8px; }
.gl-tab th, .gl-tab td { padding: 5px 8px; border-bottom: 1px solid var(--an-gitter); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.gl-tab th:first-child, .gl-tab td:first-child { text-align: left; }
.gl-tab th.gl-mitte { text-align: center; }
.gl-tab thead th { color: var(--lc-muted); font-weight: 600; border-bottom: 1px solid var(--an-achse); }
.gl-tab tr.gl-summe td { font-weight: 650; border-top: 1px solid var(--an-achse); }
.gl-zahl { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: underline dotted; text-underline-offset: 3px; }
.gl-zahl:hover { text-decoration-style: solid; }
.gl-punkt { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.gl-hinweis { color: var(--lc-muted); font-size: 12px; }
.gl-steuer { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-end; margin: 0 0 10px; }
.gl-steuer label, .gl-umschalter { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--lc-muted); }
.gl-steuer select { font: inherit; font-size: 13px; color: var(--lc-text); background: var(--lc-surface); border: 1px solid var(--lc-border-stark); border-radius: 6px; padding: 5px 8px; }
.gl-kopf { font-size: 13px; margin: 0 0 6px; }
details.gl-def > summary { cursor: pointer; font-weight: 650; font-size: 15px; }
details.gl-def li { margin: 4px 0; font-size: 13px; }
@media (max-width: 640px) { .gl-k-wert { font-size: 20px; } }
