/* =====================================================================
   ATLAS UI-Regelwerk – zentrale Design-Tokens, Rahmen (Atlas-Shell) und
   Grundbausteine. HfM-Designfassung 2026-11-20 (Farben + Bausteine nach dem
   Designvergleich, Abschnitte 9 + 10); Entwurf 0.2 (2026-11-19, Überarbeitung nach dem
   Familienmuster von HfM Analytics – ruhiger, dichter, eine linke Kante);
   Entwurf 0.1 (Team, 2026-09-15), verankert 2026-09-16.

   MASTER: portal/app/static/atlas-ui.css
   Byte-gleiche KOPIEN (bei Änderungen immer vom Master aus verteilen):
     - mapper/eingabe/static/atlas-ui.css
     - deckungsbeitraege/static/atlas-ui.css
   Dazu die Schriftdateien static/fonts/open-sans-*.woff2 (gleiche Kopie-Regel).

   Regelwerk (Kanon): docs/ui/UI-REGELN.md – gilt für die Atlas-Welt
   (Portal, Eingabe, Deckungsbeiträge, Analyse, Planung), NICHT für
   HfM-Analytics und das Bank-Dashboard (Register: ATLAS-UI-REGELWERK).
   Kurzfassung für Programmier-KIs: DESIGN.md im Repo-Wurzelordner.

   Aufbau: 1 Schrift · 2 Tokens · 3 Grundstil · 4 Atlas-Shell (Seitenleiste,
   Kopfleiste, Inhalt) · 5 Bausteine (Seitenkopf, Karten, Kennzahlen, Buttons,
   Felder, Meldungen, Tags, Tabellen, Schrittleiste, Reiter, Dialog) · 6 Helfer
   · 7 Werkzeuge (Rechner, Diagramm, Zeitleiste) · 8 Tiefe und Bewegung
   · 9 HfM-Designfassung: Gestaltungsebene · 10 HfM-Designfassung: Fach- und
   Datensichten (beide 2026-11-20, Farben HfM-Blau/-Gold in den Tokens)
   ===================================================================== */

/* ---------- 1 Schrift (T-01): Open Sans selbst gehostet, variabel 300–800 ---------- */

@font-face {
    font-family: "Open Sans";
    font-style: normal;
    font-weight: 300 800;
    font-display: swap;
    src: url("fonts/open-sans-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
        U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
        U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Open Sans";
    font-style: normal;
    font-weight: 300 800;
    font-display: swap;
    src: url("fonts/open-sans-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
        U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
        U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- 2 Tokens (docs/ui/UI-REGELN.md, Abschnitt 3) ---------- */

:root {
    /* HfM-Markenstufen (Designfassung 2026-11-20): Blau und Gold je 100 / 60 / 20 %,
       deckend auf Weiß für stabile Flächen. Alle Farbtokens darunter lesen diese Stufen. */
    --hfm-blau: #1d2846;
    --hfm-blau-60: #777e90;
    --hfm-blau-20: #d2d4da;
    --hfm-gold: #b9924c;
    --hfm-gold-60: #d5be94;
    --hfm-gold-20: #f1e9db;

    /* Markenfarben (F-01…F-03, F-05) – Namen bleiben, Werte = HfM-Stufen */
    --atlas-blau: var(--hfm-blau);
    --atlas-blau-hover: var(--hfm-blau);
    --atlas-blau-60: var(--hfm-blau-60);
    --atlas-blau-20: var(--hfm-blau-20);
    --atlas-blau-flaeche: var(--hfm-blau-20);   /* deckend (für Flächen, über die etwas rollt) */
    --nachtblau: var(--hfm-blau);
    --nachtblau-hell: var(--hfm-blau-20);       /* Hover auf der dunklen Fläche: helle Stufe, Schrift dunkel */
    --leuchtblau: var(--hfm-blau-20);
    --leuchtblau-60: var(--hfm-blau-60);
    --leuchtblau-20: rgba(29, 40, 70, 0.2);     /* Auswahl-Schleier bleibt durchsichtig, feste 20 % */
    --leuchtblau-flaeche: var(--hfm-blau-20);   /* klebende Zellen, getönte Monatsköpfe */

    /* Schrift auf der dunklen Fläche (Seitenleiste, Anmeldung) */
    --auf-dunkel: #ffffff;                      /* Text, aktive Elemente */
    --auf-dunkel-2: var(--hfm-blau-20);         /* Navigation in Ruhe */
    --auf-dunkel-3: var(--hfm-blau-20);         /* Rubriken, Metadaten */

    /* Grauskala (F-04), leicht ins Blau gezogen */
    --text: #30343c;
    --text-2: #596273;
    --zurueck: #777e90;
    --deaktiviert: #aeb5c0;
    --linie: #dfe2e8;
    --seite: #f7f8f9;
    --subtil: #fafbfc;
    --komponente: #ffffff;

    /* Status + Fokus (F-07, S-01) – Hinweise und Warnungen sind keine Produktakzente;
       -rand = Rahmen der Meldung (Statusfarbe in dezenter Stufe) */
    --erfolg: #306344;   --erfolg-flaeche: #e7efe9;   --erfolg-rand: #bdd2c2;
    --warnung: #79591f;  --warnung-flaeche: var(--hfm-gold-20);  --warnung-rand: var(--hfm-gold-60);
    --fehler: #a73535;   --fehler-flaeche: #f8eaea;   --fehler-rand: #e7c1c1;
    --fehler-hover: #882929;
    --hinweis: var(--text-2);  --hinweis-flaeche: #eef0f3;  --hinweis-rand: var(--hfm-blau-20);

    /* Kategoriefarben des Atlas-Codes (F-09, Betreiber 2026-09-18) – je Hauptcluster EINE Farbe,
       nur für Zuordnungs-/Struktur-Bilder (Linien, Punkte, Gruppenköpfe), nie für Status oder Text */
    --kat-umsatz: #397351;    --kat-umsatz-flaeche: #e7efe9;      /* G-1 Umsatzerlöse */
    --kat-ertrag: #317878;    --kat-ertrag-flaeche: #e5efef;      /* G-4 Sonstige betriebliche Erträge */
    --kat-material: #916a30;  --kat-material-flaeche: var(--hfm-gold-20);    /* G-5 Materialaufwand */
    --kat-personal: var(--atlas-blau);  --kat-personal-flaeche: var(--atlas-blau-20);  /* G-6 Personalaufwand */
    --kat-aufwand: #74608d;   --kat-aufwand-flaeche: #efebf3;     /* G-8 Sonstige betriebliche Aufwendungen */
    --fokus: var(--atlas-blau);

    /* Bilanzebenen des Atlas-Codes (Monatsmatrix, Zuteilungsmanager, Werkstatt): Fläche + Schrift (-k)
       je Ebene, Kontrast >= 4,5:1 (F-08). Bedeutung unverändert (Betreiber 2026-11-19: „die Farben
       beim Atlas-Code sollen bleiben“), Töne seit der Designfassung 2026-11-20 gedämpft und auf allen
       Oberflächen gleich. -2/-3 = hellere Stufen für tiefere Ebenen im Baum. Nur für den Atlas-Code im Bild. */
    --guv: #e7efe9;      --guv-2: #f2f6f3;      --guv-3: #fafcfb;      --guv-k: #306344;
    --aktiva: #e8eef6;   --aktiva-2: #f3f6fa;   --aktiva-3: #fafbfd;   --aktiva-k: #355b83;
    --passiva: var(--hfm-gold-20);  --passiva-2: #f8f4ed;  --passiva-3: #fcfaf6;  --passiva-k: #73551f;
    --sonst: #eef0f3;    --sonst-2: #f5f6f8;    --sonst-3: #fafbfc;    --sonst-k: #515d70;
    /* Markierung „weicht vom Original ab / von Hand geändert“ (Gold-Stufen) */
    --mark-bg: var(--hfm-gold-20);  --mark-k: #73551f;  --mark-rand: var(--hfm-gold);
    --mark-bg-2: #ebddc4; --mark-bg-3: var(--hfm-gold-60);          /* zweiter und dritter Abschnitt in derselben Zeile (KW-Zeitreihe) */

    /* Farben der Sichten (F-11, Betreiber 2026-11-10) – NUR für die Sprung-Pfeile
       im Segment „Gesamtergebnis“ der Schrittleiste (P-08): Produktfarbe von
       HfM Analytics und VR-Agrar-Oliv des Bank-Dashboards (wie dessen Kacheln) */
    --sicht-analytics: var(--hfm-blau);  --sicht-analytics-hover: var(--hfm-blau);
    --sicht-bank: #717357;       --sicht-bank-hover: #5d6045;

    /* Abstände (A-01) */
    --space-1: 4px;  --space-2: 8px;   --space-3: 12px;  --space-4: 16px;
    --space-6: 24px; --space-8: 32px;  --space-12: 48px; --space-16: 64px;

    /* Rundungen (A-04) und Tiefe in drei Stufen (A-05) */
    --radius-s: 5px;
    --radius-m: 8px;
    --radius-l: 12px;
    --schatten-hoch: 0 16px 42px rgba(29, 40, 70, 0.16);
    /* Tiefe und Bewegung (A-05, B-07, Abschnitte 8 + 9 dieser Datei) */
    --tiefe-1: 0 1px 2px rgba(29, 40, 70, 0.05), 0 2px 8px rgba(29, 40, 70, 0.05);      /* Fläche liegt auf der Seite */
    --tiefe-2: 0 2px 4px rgba(29, 40, 70, 0.06), 0 10px 24px rgba(29, 40, 70, 0.10);    /* Anklickbares, angehoben */
    --tiefe-rand: rgba(29, 40, 70, 0.07);
    --fokus-schein: 0 0 0 3px var(--atlas-blau-20);      /* Ring um das Feld im Fokus */
    --bewegung: 0.14s;
    --bewegung-kurve: cubic-bezier(0.2, 0.7, 0.2, 1);
    --nachtblau-oben: #243154;          /* Seitenleiste: eine Stufe heller an der Oberkante … */
    --nachtblau-unten: #18213a;         /* … eine Stufe dunkler am Fuß (abgeleitet aus HfM-Blau) */

    /* Bedienhöhen (B-05): mit der Maus 42 px (klein 34 px), mit dem Finger und
       unter 900 px 44 px – der Block darunter schaltet um. Alle Knöpfe, Felder,
       Reiter und Chips lesen diese Tokens, nie eine eigene Höhe. */
    --hoehe: 42px;
    --hoehe-klein: 34px;
    --hoehe-chip: 34px;

    /* Layout (Abschnitt 5 des Regelwerks) */
    --kopf-hoehe: 64px;
    --seitenleiste-breite: 256px;
    --inhalt-rand: 32px;                /* linke und rechte Kante des Inhalts – auf JEDER Seite gleich (A-07) */
    --lese-breite: 760px;               /* Formulare und Fließtext innerhalb einer Seite: nie breiter */

    /* Schrift (T-01) */
    --schrift: "Open Sans", Arial, sans-serif;

    /* Rückwärts-Aliase für vorhandenes CSS (werden bei Gelegenheit abgelöst).
       Bedeutung: navy = Markenfläche, blau = Produktfarbe, blau-hell = Hover
       auf Weiß (NICHT Leuchtblau – F-03), blau-flaeche = ATLAS-Blau 20 % auf
       Weiß, schatten = keiner (A-05). */
    --navy: var(--nachtblau);
    --navy-hell: var(--nachtblau-hell);
    --blau: var(--atlas-blau);
    --blau-hell: var(--atlas-blau-hover);
    --blau-flaeche: var(--atlas-blau-flaeche);
    --tinte: var(--text);
    --grau: var(--text-2);
    --flaeche: var(--seite);
    --weiss: var(--komponente);
    --radius: var(--radius-l);
    --schatten: none;
}

@media (pointer: coarse), (max-width: 900px) {
    :root { --hoehe: 44px; --hoehe-klein: 40px; --hoehe-chip: 44px; --inhalt-rand: 16px; }
}

/* ---------- 3 Grundstil (T-02…T-05) ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font: 400 14px/20px var(--schrift);
    color: var(--text);
    background: var(--seite);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { margin: 0; font-weight: 600; color: var(--text); }
h1 { font-size: 32px; line-height: 38px; letter-spacing: -0.01em; }
h2 { font-size: 24px; line-height: 30px; letter-spacing: -0.005em; }
h3 { font-size: 18px; line-height: 24px; }
h4 { font-size: 16px; line-height: 24px; }
@media (max-width: 700px) {
    h1 { font-size: 26px; line-height: 32px; }
    h2 { font-size: 21px; line-height: 27px; }
}

p { margin: 0 0 var(--space-3); }
b, strong { font-weight: 600; }                                  /* T-02: fett heißt 600, nie 700 */
.fliesstext { font-size: 16px; line-height: 25px; }
.meta { font-size: 12px; line-height: 17px; color: var(--text-2); }
.text-2 { color: var(--text-2); }
.zahl, .tabellarisch { font-variant-numeric: tabular-nums; }
.zahl { text-align: right; }
.kennzahl { font-size: 24px; line-height: 30px; font-weight: 700; font-variant-numeric: tabular-nums; }
/* Kontonummern und Atlas-Codes: gleiche Schrift wie alles andere (T-01), nur
   gleich breite Ziffern – keine Schreibmaschinenschrift */
.code, .konto-nr, code, kbd, samp { font-family: var(--schrift); font-variant-numeric: tabular-nums; }

a { color: var(--atlas-blau); text-underline-offset: 2px; }
a:hover { color: var(--atlas-blau-hover); }

button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--fokus); outline-offset: 2px; }

img { max-width: 100%; }

/* Icons (I-01, I-05): Bibliothek hfm-icons.js rendert <svg class="hfm-icon"> */
.hfm-icon { width: 20px; height: 20px; flex: none; }
.hfm-icon.gross { width: 24px; height: 24px; }
.hfm-icon.klein { width: 16px; height: 16px; }

/* ---------- 4 Atlas-Shell: Seitenleiste + Kopfleiste + Inhalt ---------- */

.atlas-shell {
    display: grid;
    grid-template-columns: var(--seitenleiste-breite) minmax(0, 1fr);
    min-height: 100vh;
}

.atlas-shell.ohne-seitenleiste { grid-template-columns: minmax(0, 1fr); }

/* Seitenleiste einklappbar (Betreiber 2026-09-18): Standard offen; der Griff an
   ihrer rechten Kante klappt sie ein (atlas-shell.js merkt den Zustand und setzt
   `leiste-zu` am <html>). Unter 900 px ist die Leiste eine obere Leiste – dort
   gibt es keinen Griff und sie bleibt immer sichtbar. */
html.leiste-zu .atlas-shell { grid-template-columns: minmax(0, 1fr); }
html.leiste-zu .seitenleiste { display: none; }
.leisten-griff {
    position: fixed;
    top: 50%;
    left: calc(var(--seitenleiste-breite) - 12px);
    transform: translateY(-50%);
    z-index: 50;
    width: 24px;
    height: 48px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--linie);
    border-radius: var(--radius-m);
    background: var(--komponente);
    color: var(--zurueck);
    font: inherit;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.12s, border-color 0.12s;
}
.leisten-griff:hover { color: var(--atlas-blau); border-color: var(--atlas-blau-60); }
.leisten-griff:focus-visible { outline: 2px solid var(--fokus); outline-offset: 2px; }
html.leiste-zu .leisten-griff { left: 0; border-left: 0; border-radius: 0 var(--radius-m) var(--radius-m) 0; }
.atlas-shell.ohne-seitenleiste .leisten-griff { display: none; }
@media (max-width: 900px) {
    .leisten-griff { display: none; }
    html.leiste-zu .seitenleiste { display: flex; }
}
@media print { .leisten-griff { display: none; } }

.sprung {
    position: absolute;
    left: -9999px;
    top: 8px;
    z-index: 100;
    padding: var(--space-2) var(--space-3);
    background: var(--komponente);
    color: var(--text);
    border-radius: var(--radius-m);
}
.sprung:focus { left: 8px; }

/* Seitenleiste: Nachtblau = Markenfläche (F-02); aktiver Eintrag in Leuchtblau (F-03).
   Einträge in Ruhe zurückgenommen, damit genau EINER leuchtet. */
.seitenleiste {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    background: var(--nachtblau);
    color: var(--auf-dunkel);
    scrollbar-width: thin;
    scrollbar-color: var(--nachtblau-hell) transparent;
}

.seitenleiste-marke {
    display: flex;
    align-items: center;
    flex-wrap: wrap;                        /* Bereichsname als zweite Zeile, nie neben der Wortmarke */
    gap: 0 var(--space-3);
    min-height: var(--kopf-hoehe);
    padding: var(--space-3) var(--space-6);
    text-decoration: none;
    color: inherit;
}

.seitenleiste-marke .atlas-kugel { width: 32px; height: auto; display: block; }
.seitenleiste-marke .atlas-wortmarke { height: 16px; width: auto; display: block; }
.seitenleiste-marke .marke-bereich {
    flex-basis: 100%;
    margin-top: var(--space-1);
    font-size: 12px;
    line-height: 17px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--leuchtblau);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.seitenleiste-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: var(--space-2) var(--space-3) var(--space-4);
}

.nav-rubrik {
    margin: var(--space-4) var(--space-3) var(--space-1);
    font-size: 12px;
    line-height: 17px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--auf-dunkel-3);
}
.nav-rubrik:first-child { margin-top: var(--space-2); }

.nav-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--space-3);
    min-height: var(--hoehe);               /* B-05 */
    padding: 0 var(--space-3);
    border: 0;
    border-radius: var(--radius-m);
    color: var(--auf-dunkel-2);
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
    text-decoration: none;
    background: transparent;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.12s, color 0.12s;
}
.nav-link:hover { background: var(--nachtblau-hell); color: var(--auf-dunkel); }
.nav-link.aktiv, .nav-link[aria-current="page"] {
    background: var(--leuchtblau-20);
    color: var(--leuchtblau);
}
/* aktiver Eintrag: 3 px Balken links in Leuchtblau (Abschnitt 5) */
.nav-link.aktiv::before, .nav-link[aria-current="page"]::before {
    content: "";
    position: absolute;
    left: 0; top: 8px; bottom: 8px;
    width: 3px;
    border-radius: 0 2px 2px 0;
    background: var(--leuchtblau);
}
.nav-link.inaktiv { color: var(--auf-dunkel-3); cursor: default; }
.nav-link.inaktiv:hover { background: transparent; color: var(--auf-dunkel-3); }
.nav-link .hfm-icon { width: 20px; height: 20px; opacity: 0.9; }
.nav-link .nav-zusatz { margin-left: auto; font-size: 12px; font-weight: 400; color: var(--auf-dunkel-3); }
.nav-link:focus-visible { outline-color: var(--leuchtblau); outline-offset: -2px; }

.seitenleiste-fuss {
    padding: var(--space-3);
    border-top: 1px solid var(--leuchtblau-20);
    font-size: 12px;
    line-height: 17px;
    color: var(--auf-dunkel-3);
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.seitenleiste-fuss form { margin: 0; }
.seitenleiste-fuss > span { padding: var(--space-1) var(--space-3); }
.seitenleiste-fuss .melden-eintraege { gap: 2px; }                 /* Einträge des Melde-Bausteins: dicht wie die Navigation */
/* Nutzerzeile: Symbol/Avatar und Name auf derselben Achse wie die Symbole der Einträge darüber */
.seitenleiste-fuss .nutzer {
    display: flex; align-items: center; gap: var(--space-3);
    min-height: var(--hoehe-klein); padding: 0 var(--space-3);
    border-radius: var(--radius-m);
    font-size: 14px; line-height: 20px; font-weight: 600; color: var(--auf-dunkel); text-decoration: none;
}
.seitenleiste-fuss a.nutzer:hover { background: var(--nachtblau-hell); }
/* Knöpfe im Fuß (Problem melden, Meine Meldungen, Abmelden, Zum Portal): wie
   Navigations-Einträge, nicht als umrandete Kästen – ein Bild mit der Leiste */
.seitenleiste-fuss .knopf {
    width: 100%;
    min-height: var(--hoehe-klein);
    justify-content: flex-start;
    gap: var(--space-3);
    padding: 0 var(--space-3);
    background: transparent;
    border-color: transparent;
    color: var(--auf-dunkel-2);
    font-size: 14px;
    font-weight: 400;
}
.seitenleiste-fuss .knopf:hover { background: var(--nachtblau-hell); border-color: transparent; color: var(--auf-dunkel); }
.seitenleiste-fuss .knopf:focus-visible { outline-color: var(--leuchtblau); outline-offset: -2px; }
.seitenleiste-fuss .knopf .hfm-icon { width: 20px; height: 20px; opacity: 0.9; }

/* Bühne = alles rechts der Seitenleiste */
.buehne { min-width: 0; display: flex; flex-direction: column; min-height: 100vh; }

/* Kopfleiste = Werkzeugleiste (Brotkrumen, Kontext, Hilfe); Linie statt Schatten (A-05) */
.kopfleiste {
    position: sticky;
    top: 0;
    z-index: 20;
    min-height: var(--kopf-hoehe);
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: 0 var(--inhalt-rand);
    background: var(--komponente);
    border-bottom: 1px solid var(--linie);
}

.brotkrumen {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-2);
    min-width: 0;
    font-size: 14px;
    line-height: 20px;
    color: var(--text-2);
}
.brotkrumen a { color: var(--text-2); text-decoration: none; }
.brotkrumen a:hover { color: var(--atlas-blau); text-decoration: underline; }
.brotkrumen b, .brotkrumen [aria-current="page"] { color: var(--text); font-weight: 600; }
.brotkrumen .trenner { color: var(--deaktiviert); }

.kopfleiste-rechts {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* Kontext-Chips: sagen, wo man ist (Betrieb, Wirtschaftsjahr) – ruhige Fläche
   ohne Rahmen; nur anklickbare Chips bekommen beim Überfahren einen Rahmen */
.kontext-chip {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    min-height: var(--hoehe-klein);
    padding: 0 var(--space-3);
    border: 1px solid transparent;
    border-radius: var(--radius-m);
    background: var(--seite);
    color: var(--text);
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.12s, border-color 0.12s;
}
a.kontext-chip:hover { border-color: var(--atlas-blau-60); color: var(--text); }
.kontext-chip .chip-label { font-size: 12px; font-weight: 400; color: var(--text-2); }
.kontext-chip .hfm-icon { color: var(--atlas-blau); width: 16px; height: 16px; }

.inhalt {
    flex: 1;
    width: 100%;
    max-width: none;                        /* volle Breite: linke UND rechte Kante jeder Seite stehen unter denen der Kopfleiste */
    margin: 0;
    padding: var(--space-6) var(--inhalt-rand) var(--space-12);
}
.inhalt.breit { max-width: none; }         /* Altname – alle Seiten sind jetzt breit */
.inhalt.schmal { max-width: calc(var(--lese-breite) + 2 * var(--inhalt-rand)); }
.lese-breite { max-width: var(--lese-breite); }

.fuss {
    padding: var(--space-4) var(--inhalt-rand) var(--space-6);
    font-size: 12px;
    line-height: 17px;
    color: var(--zurueck);
}

/* Anmeldung: dunkle Bühne, weiße Karte (F-02) – alles auf einer Mittelachse */
.login-buehne {
    min-height: 100vh;
    max-width: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-8);
    padding: var(--space-8) var(--space-4);
    background: var(--nachtblau);
}
.login-marke { display: flex; flex-direction: column; align-items: center; gap: var(--space-4); }
.login-marke .atlas-kugel { width: 112px; height: auto; }
.login-marke .atlas-wortmarke { height: 28px; width: auto; }
.login-claim { margin: 0; color: var(--leuchtblau); font-size: 14px; line-height: 20px; font-weight: 600; letter-spacing: 0.06em; text-align: center; }
.login-karte {
    width: 100%;
    max-width: 400px;
    padding: var(--space-8);
    background: var(--komponente);
    border-radius: var(--radius-l);
    box-shadow: var(--schatten-hoch);   /* echte Höhe über der Bühne */
}
.login-titel { margin: 0 0 var(--space-6); font-size: 24px; line-height: 30px; font-weight: 600; text-align: center; letter-spacing: -0.005em; }
.login-karte .formular-aktionen { margin-top: var(--space-6); }
.login-fuss { margin: 0; color: var(--auf-dunkel-3); font-size: 12px; line-height: 17px; text-align: center; }
.login-fuss a { color: var(--auf-dunkel); }   /* Hinweis auf die andere Microsoft-Tür (2026-11-20 II) */

/* Mobil (< 900 px): Seitenleiste wird zur horizontal scrollbaren Leiste oben (A-06) */
@media (max-width: 900px) {
    .atlas-shell { grid-template-columns: minmax(0, 1fr); }
    .seitenleiste {
        position: static;
        height: auto;
        flex-direction: row;
        align-items: stretch;
        overflow-x: auto;
        overflow-y: hidden;
    }
    .seitenleiste-marke { flex-wrap: nowrap; padding: 0 var(--space-4); min-height: 56px; border-right: 1px solid var(--leuchtblau-20); }
    .seitenleiste-marke .marke-bereich { display: none; }
    .seitenleiste-nav { flex-direction: row; align-items: center; gap: var(--space-1); padding: var(--space-1) var(--space-2); }
    .nav-rubrik { display: none; }
    .nav-link { width: auto; white-space: nowrap; }
    .nav-link.aktiv::before, .nav-link[aria-current="page"]::before { left: 8px; right: 8px; top: auto; bottom: 0; width: auto; height: 3px; border-radius: 2px 2px 0 0; }
    .seitenleiste-fuss { border-top: 0; border-left: 1px solid var(--leuchtblau-20); flex-direction: row; align-items: center; white-space: nowrap; }
    .seitenleiste-fuss .knopf { width: auto; }
    .kopfleiste { position: static; height: auto; flex-wrap: wrap; padding: var(--space-2) var(--inhalt-rand); gap: var(--space-2); }
    .kopfleiste-rechts { margin-left: 0; width: 100%; justify-content: flex-start; }
    .inhalt { padding: var(--space-4) var(--inhalt-rand) var(--space-8); }
}

/* ---------- 5 Bausteine ---------- */

/* Seitenkopf: H1 links, Aktionen rechts, auf einer Mittellinie (T-04) */
.seitenkopf {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    flex-wrap: wrap;
    margin: 0 0 var(--space-6);
}
.seitenkopf-text { min-width: 0; }
.seiten-titel { margin: 0; font-size: 32px; line-height: 38px; font-weight: 600; letter-spacing: -0.01em; color: var(--text); }
.seiten-untertitel { margin: var(--space-1) 0 0; font-size: 14px; line-height: 20px; color: var(--text-2); max-width: 900px; }
.seitenkopf-aktionen { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
@media (max-width: 700px) { .seiten-titel { font-size: 26px; line-height: 32px; } }

.zurueck-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    margin-bottom: var(--space-2);
    color: var(--atlas-blau);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}
.zurueck-link:hover { color: var(--atlas-blau-hover); text-decoration: underline; }

/* Karten: Rahmen statt Schatten (A-05), 16 px Rundung (A-04) */
.karte {
    background: var(--komponente);
    border: 1px solid var(--linie);
    border-radius: var(--radius-l);
    padding: var(--space-6);
}
.karte.kompakt { padding: var(--space-4); border-radius: var(--radius-m); }
.karte + .karte { margin-top: var(--space-6); }
.karte-kopf { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; margin-bottom: var(--space-4); }
/* Karten-Titel mit schmalem Balken in ATLAS-Blau (Familienmuster wie HfM Analytics):
   der Balken ist das Gliederungszeichen der Seite, kein Schmuck */
.karte-titel {
    position: relative;
    margin: 0;
    padding-left: var(--space-3);
    font-size: 18px;
    line-height: 24px;
    font-weight: 600;
}
.karte-titel::before {
    content: "";
    position: absolute;
    left: 0; top: 3px; bottom: 3px;
    width: 3px;
    border-radius: 2px;
    background: var(--atlas-blau);
}
.karte > .karte-titel { margin-bottom: var(--space-4); }          /* Titel ohne .karte-kopf: Abstand zum Inhalt */
.karte-hinweis { margin: var(--space-1) 0 0; color: var(--text-2); }
.karte-leiste {
    display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
    padding: var(--space-3) var(--space-6);
    background: var(--nachtblau); color: #fff;
    border-radius: var(--radius-l) var(--radius-l) 0 0;
    margin: calc(-1 * var(--space-6)) calc(-1 * var(--space-6)) var(--space-4);
    font-weight: 600;
}
.karte-leiste .leiste-zusatz { color: var(--leuchtblau); font-size: 12px; }

.bereich-abstand { margin-top: var(--space-8); }

/* Kennzahl-Kacheln: kleine Beschriftung in Großbuchstaben, große Zahl, Zusatz darunter.
   .kennzahlen = Reihe gleich breiter Kacheln (bricht um), .kennzahl-kachel = eine Kachel */
.kennzahlen {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-4);
    margin: 0 0 var(--space-6);
}
.kennzahl-kachel {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    min-width: 0;
    padding: var(--space-4);
    background: var(--komponente);
    border: 1px solid var(--linie);
    border-radius: var(--radius-l);
}
.kennzahl-name {
    font-size: 12px; line-height: 17px; font-weight: 600;
    letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--text-2);
}
.kennzahl-wert { font-size: 24px; line-height: 30px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text); white-space: nowrap; }
.kennzahl-wert small { font-size: 14px; font-weight: 400; color: var(--text-2); }
.kennzahl-zusatz { font-size: 12px; line-height: 17px; color: var(--text-2); }

/* Buttons (B-01…B-06): .knopf – .wj-knopf ist der Altname im Portal und wird mitgeführt */
.knopf, .wj-knopf {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    min-height: var(--hoehe);               /* B-05 */
    padding: 0 var(--space-4);
    border: 1px solid var(--deaktiviert);
    border-radius: var(--radius-m);
    background: var(--komponente);
    color: var(--text);
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.12s, border-color 0.12s, color 0.12s;
}
.knopf:hover, .wj-knopf:hover { background: var(--seite); border-color: var(--zurueck); color: var(--text); }
.knopf:active, .wj-knopf:active { background: var(--linie); }
.knopf .hfm-icon, .wj-knopf .hfm-icon { width: 16px; height: 16px; }

.knopf.primaer, .wj-knopf.primaer { background: var(--atlas-blau); border-color: var(--atlas-blau); color: #fff; }
.knopf.primaer:hover, .wj-knopf.primaer:hover { background: var(--atlas-blau-hover); border-color: var(--atlas-blau-hover); color: #fff; }

.knopf.text, .wj-knopf.text { background: transparent; border-color: transparent; color: var(--atlas-blau); }
.knopf.text:hover, .wj-knopf.text:hover { background: var(--atlas-blau-20); border-color: transparent; color: var(--atlas-blau-hover); }

.knopf.kritisch, .wj-knopf.kritisch, .wj-knopf.warn { background: var(--fehler); border-color: var(--fehler); color: #fff; }
.knopf.kritisch:hover, .wj-knopf.kritisch:hover, .wj-knopf.warn:hover { background: var(--fehler-hover); border-color: var(--fehler-hover); color: #fff; }

.knopf.akzent { background: var(--leuchtblau); border-color: var(--leuchtblau); color: var(--nachtblau); }
.knopf.akzent:hover { background: var(--leuchtblau-60); border-color: var(--leuchtblau); color: var(--nachtblau); }

.knopf:disabled, .wj-knopf:disabled, .knopf[aria-disabled="true"], .knopf.inaktiv {
    background: var(--seite); border-color: var(--linie); color: var(--deaktiviert); cursor: default;
}

.knopf.klein, .wj-knopf.klein { min-height: var(--hoehe-klein); padding: 0 var(--space-3); }
.kritisch-text { color: var(--fehler); }                                   /* rote Textaktion (B-03) */
.kritisch-text:hover { color: var(--fehler-hover); background: var(--fehler-flaeche); }
.knopf.icon { width: var(--hoehe); padding: 0; }
.knopf.icon.klein { width: var(--hoehe-klein); }
.knopf.breit { width: 100%; }

.knopf.laeuft::before {
    content: "";
    width: 14px; height: 14px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: knopf-dreht 0.8s linear infinite;
}
@keyframes knopf-dreht { to { transform: rotate(360deg); } }

.knopf-gruppe { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
.formular-aktionen { display: flex; justify-content: flex-end; gap: var(--space-2); flex-wrap: wrap; margin-top: var(--space-4); }

/* Eingabefelder (E-01…E-06): Label oben, Stern rechts, Fehler unter dem Feld */
.feld { display: flex; flex-direction: column; gap: var(--space-1); min-width: 0; }
.feld > label, .feld-label {
    display: flex; align-items: baseline; gap: var(--space-2);
    font-size: 12px; line-height: 17px; font-weight: 600; color: var(--text-2);
}
.feld-label .optional-marke, .feld > label .optional-marke { margin-left: auto; font-size: 12px; font-weight: 400; color: var(--zurueck); }
.pflicht::after { content: " *"; color: var(--fehler); font-weight: 700; }

.feld input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),
.feld select, .feld textarea, .eingabe {
    width: 100%;
    min-height: var(--hoehe);
    padding: var(--space-2) var(--space-3);
    border: 1px solid var(--zurueck);
    border-radius: var(--radius-m);
    background: var(--komponente);
    color: var(--text);
    font-size: 14px;
    line-height: 20px;
    transition: border-color 0.12s;
}
.feld textarea { min-height: 88px; resize: vertical; }
.feld input:hover, .feld select:hover, .feld textarea:hover, .eingabe:hover { border-color: var(--text-2); }
.feld input:focus, .feld select:focus, .feld textarea:focus, .eingabe:focus {
    outline: 2px solid var(--fokus); outline-offset: 1px; border-color: var(--atlas-blau);
}
.feld input::placeholder, .feld textarea::placeholder, .eingabe::placeholder { color: var(--deaktiviert); }
.feld input:disabled, .feld select:disabled, .eingabe:disabled { background: var(--subtil); color: var(--zurueck); border-color: var(--linie); }
.feld.fehlerhaft input, .feld.fehlerhaft select, .feld.fehlerhaft textarea, .eingabe.fehlerhaft { border-color: var(--fehler); }
.feld-fehler { font-size: 12px; line-height: 17px; color: var(--fehler); }
.feld-hinweis { font-size: 12px; line-height: 17px; color: var(--text-2); }
.feld.kompakt input, .feld.kompakt select, .eingabe.kompakt { min-height: var(--hoehe-klein); padding: var(--space-1) var(--space-2); }
.feld input.zahl, .eingabe.zahl { text-align: right; font-variant-numeric: tabular-nums; }

.feld-zeile { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); align-items: end; }
.feld-gruppe { display: flex; flex-direction: column; gap: var(--space-4); }
.haken-feld { display: inline-flex; align-items: center; gap: var(--space-2); min-height: var(--hoehe); cursor: pointer; }
.haken-feld input, input[type="checkbox"], input[type="radio"] { accent-color: var(--atlas-blau); }
.haken-feld input { width: 16px; height: 16px; }

/* Statusmeldungen (S-01…S-03): Farbe + Zeichen + Text */
.meldung {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    margin-bottom: var(--space-4);
    border: 1px solid;
    border-radius: var(--radius-m);
    font-size: 14px;
    line-height: 20px;
}
.meldung::before {
    flex: none;
    width: 20px; height: 20px;
    border-radius: 50%;
    border: 1.5px solid currentColor;
    font-size: 12px; line-height: 17px; font-weight: 700;
    text-align: center;
}
.meldung.hinweis { background: var(--hinweis-flaeche); border-color: var(--hinweis-rand); color: var(--hinweis); }
.meldung.hinweis::before { content: "i"; }
.meldung.erfolg { background: var(--erfolg-flaeche); border-color: var(--erfolg-rand); color: var(--erfolg); }
.meldung.erfolg::before { content: "\2713"; }
.meldung.warnung { background: var(--warnung-flaeche); border-color: var(--warnung-rand); color: var(--warnung); }
.meldung.warnung::before { content: "!"; }
.meldung.fehler { background: var(--fehler-flaeche); border-color: var(--fehler-rand); color: var(--fehler); }
.meldung.fehler::before { content: "\00d7"; }
.meldung a { color: inherit; font-weight: 600; }
.meldung .meldung-text { flex: 1; min-width: 0; }
.meldung .meldung-titel { display: block; font-weight: 600; }
.meldung .knopf { margin-left: auto; align-self: center; }
.meldung.banner { margin: 0; border-radius: 0; border-left: 0; border-right: 0; }

/* Tags und Statuskennzeichen (A-04: 6 px) */
.tag {
    display: inline-flex; align-items: center; gap: var(--space-1);
    min-height: 24px; padding: 0 var(--space-2);
    border-radius: var(--radius-s);
    background: var(--hinweis-flaeche); color: var(--text-2);
    font-size: 12px; line-height: 17px; font-weight: 600;
    white-space: nowrap;
}
.tag.erfolg { background: var(--erfolg-flaeche); color: var(--erfolg); }
.tag.warnung { background: var(--warnung-flaeche); color: var(--warnung); }
.tag.fehler { background: var(--fehler-flaeche); color: var(--fehler); }
.tag.hinweis { background: var(--hinweis-flaeche); color: var(--hinweis); }
.tag.blau { background: var(--atlas-blau-20); color: var(--atlas-blau-hover); }
.tag.leucht { background: var(--leuchtblau-20); color: var(--nachtblau); }

/* Auswahl-Chips (Wirtschaftsjahr, Untertabs): 10 px, kein Pillen-Rund */
.wahl-chip {
    display: inline-flex; align-items: center; gap: var(--space-2);
    min-height: var(--hoehe-chip); padding: 0 var(--space-3);
    border: 1px solid var(--linie); border-radius: var(--radius-m);
    background: var(--komponente); color: var(--text);
    font-size: 14px; line-height: 20px; font-weight: 600; text-decoration: none; cursor: pointer;
    transition: background-color 0.12s, border-color 0.12s, color 0.12s;
}
.wahl-chip:hover { border-color: var(--atlas-blau-60); color: var(--text); }
.wahl-chip.aktiv, .wahl-chip[aria-current="true"] { background: var(--atlas-blau); border-color: var(--atlas-blau); color: #fff; }
.wahl-chip:disabled, .wahl-chip[aria-disabled="true"] { background: var(--seite); border-color: var(--linie); color: var(--deaktiviert); cursor: default; }
.wahl-chip.klein { min-height: 28px; padding: 0 var(--space-2); }   /* nur in dichten Leisten (Jahrgang/Stufe) */
@media (pointer: coarse), (max-width: 900px) { .wahl-chip.klein { min-height: 40px; } }

/* Tabellen (T-05): Kopf klein in Großbuchstaben auf ruhigem Band, Zahlen rechts,
   Zeilen mittig ausgerichtet, Hervorhebung nur beim Überfahren */
.tabelle-umschlag { overflow-x: auto; }
.tabelle { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 20px; }
.tabelle th {
    text-align: left; padding: var(--space-2) var(--space-3);
    font-size: 12px; line-height: 17px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
    color: var(--text-2); background: var(--subtil);
    border-bottom: 1px solid var(--linie); white-space: nowrap;
}
.tabelle td { padding: var(--space-2) var(--space-3); border-bottom: 1px solid var(--linie); vertical-align: middle; }
.tabelle th.zahl, .tabelle td.zahl { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tabelle tbody tr:last-child td { border-bottom: 0; }
/* (Designfassung 2026-11-20: keine Hover-Fläche – fachliche Zeilenfarben bleiben auch beim Überfahren) */
.tabelle tfoot td { border-top: 1px solid var(--zurueck); border-bottom: 0; font-weight: 600; }
.tabelle tr.ausgewaehlt td { background: var(--atlas-blau-20); }
/* Zeilen-Kopf (th scope=row): sieht aus wie eine Zelle, nicht wie ein Spaltenkopf */
.tabelle tbody th[scope="row"] { font-size: 14px; line-height: 20px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--text); background: transparent; white-space: normal; }
/* Summenzeile mitten in der Tabelle: 600, dunklere Linie darüber. Die Linie sitzt an der Zeile DAVOR
   (border-collapse: unten gewinnt sonst die helle Linie der Vorzeile) – darum per box-shadow nach innen. */
.tabelle tr.summe td, .tabelle tr.summe th { font-weight: 600; box-shadow: inset 0 1px 0 var(--zurueck); }

/* Schrittleiste (P-01…P-09): Segmente statt Pfeile. Jedes Segment hat denselben Aufbau in
   zwei Zeilen – oben Marker und Titel, darunter die Teilschritte, bündig unter dem Titel. So
   stehen die Nummern und Titel ALLER Segmente auf einer Linie und die Chips auf einer zweiten;
   nichts wird je Segment für sich mittig gesetzt. */
.schrittleiste {
    --marker: 32px;                                                /* P-02 */
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: auto;                                       /* P-01: so breit wie der Inhalt, der Rest wird gleich verteilt –
                                                                      so stehen die Teilschritte möglichst in EINER Zeile */
    align-items: stretch;
    margin: 0 0 var(--space-6);
    padding: 0;
    list-style: none;
    background: var(--komponente);
    border: 1px solid var(--linie);
    border-radius: var(--radius-l);
    overflow: hidden;
}
.schritt {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: var(--space-2);
    min-width: 0;
    padding: var(--space-4);
    border-right: 1px solid var(--linie);
}
.schritt:last-child { border-right: 0; }
.schritt.aktiv { background: var(--atlas-blau-20); }              /* P-03 */
.schritt-kopf { display: flex; align-items: center; gap: var(--space-3); height: var(--marker); text-decoration: none; color: var(--text); }
a.schritt-kopf:hover .schritt-titel { text-decoration: underline; text-underline-offset: 3px; }
.schritt-marker {
    flex: 0 0 var(--marker); width: var(--marker); height: var(--marker);
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    font-size: 14px; line-height: 20px; font-weight: 600;
}
.schritt-marker .hfm-icon { width: 16px; height: 16px; }
.schritt.erledigt .schritt-marker { background: var(--nachtblau); color: #fff; }
.schritt.aktiv .schritt-marker { background: var(--atlas-blau); color: #fff; }
.schritt.offen .schritt-marker { background: var(--komponente); border: 1.5px solid var(--zurueck); color: var(--text-2); }
.schritt-titel { font-size: 16px; line-height: 24px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.schritt.aktiv .schritt-titel { color: var(--atlas-blau-hover); }
.schritt.offen .schritt-titel { color: var(--text-2); }                                      /* P-05 */
/* zweite Zeile: beginnt bei allen Segmenten an derselben Stelle – unter dem Titel */
.schritt-chips, .schritt-pfeile { margin-left: calc(var(--marker) + var(--space-3)); }
.schritt-chips { display: flex; flex-wrap: wrap; gap: var(--space-1); min-width: 0; }
.schritt-chip {
    display: inline-flex; align-items: center; gap: var(--space-1);
    min-height: 28px; padding: 0 var(--space-2);                    /* P-04 */
    border: 1px solid transparent; border-radius: var(--radius-s);
    background: var(--seite); color: var(--text-2);
    font-size: 14px; line-height: 20px; font-weight: 400; text-decoration: none; white-space: nowrap;
    transition: border-color 0.12s, color 0.12s;
}
.schritt-chip.ok { background: var(--komponente); border-color: var(--atlas-blau-60); color: var(--text); }
.schritt-chip.ok::before { content: "\2713"; color: var(--atlas-blau); font-weight: 700; }
.schritt.aktiv .schritt-chip:not(.ok) { background: var(--komponente); }
.schritt-chip.geplant { font-style: italic; }
a.schritt-chip:hover { border-color: var(--atlas-blau); color: var(--atlas-blau-hover); }
/* P-08 Ziel-Segment „Gesamtergebnis“: Marker neutral, Titel normal, in der zweiten Zeile
   die Sichten als gleich breite Pfeile nach rechts, untereinander */
.schritt.ziel .schritt-marker { background: var(--komponente); border: 1.5px solid var(--zurueck); color: var(--text-2); }
.schritt-pfeile { display: grid; gap: var(--space-1); align-self: flex-start; }   /* Breite = längster Pfeil */
.schritt-pfeil {
    display: flex; align-items: center;
    min-height: 28px; padding: 0 calc(var(--space-3) + 12px) 0 var(--space-3);
    border-radius: var(--radius-s) 0 0 var(--radius-s);
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%);
    color: #fff; font-size: 14px; line-height: 20px; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.schritt-pfeil.analytics { background: var(--sicht-analytics); }
.schritt-pfeil.bank { background: var(--sicht-bank); }
a.schritt-pfeil.analytics:hover { background: var(--sicht-analytics-hover); color: #fff; }
a.schritt-pfeil.bank:hover { background: var(--sicht-bank-hover); color: #fff; }
a.schritt-pfeil:focus-visible { outline: none; text-decoration: underline; text-underline-offset: 3px; filter: brightness(1.35); }   /* Rahmen würde der Pfeilschnitt kappen */
.schritt-pfeil.inaktiv { opacity: .45; cursor: not-allowed; }
.schritt-pfeil[aria-current="page"] { box-shadow: inset 0 -3px 0 rgba(255, 255, 255, .7); }   /* hier steht man gerade */
@media (pointer: coarse), (max-width: 900px) {
    .schritt-kopf { min-height: 44px; }
    .schritt-chip, .schritt-pfeil { min-height: 44px; }
}
@media (max-width: 700px) {                                         /* P-07 */
    .schrittleiste { grid-auto-flow: row; grid-auto-columns: auto; }
    .schritt { border-right: 0; border-bottom: 1px solid var(--linie); }
    .schritt:last-child { border-bottom: 0; }
}

/* Reiter (Unterseiten innerhalb einer Karte, z. B. Zuteilen · Konten-Übersicht):
   Tab-Liste, aktiver Reiter ATLAS-Blau mit Unterstrich – keine
   Schrittleiste (die bleibt dem Prozess vorbehalten) */
.reiter { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0 0 var(--space-4); padding: 0; list-style: none; border-bottom: 1px solid var(--linie); }
.reiter-knopf {
    display: inline-flex; align-items: center; gap: var(--space-2);
    min-height: var(--hoehe); padding: 0 var(--space-3);
    border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px;
    background: none; font: inherit; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--text-2);
    text-decoration: none; cursor: pointer; white-space: nowrap;
    transition: color 0.12s, border-color 0.12s;
}
.reiter-knopf:hover { color: var(--text); }
.reiter-knopf[aria-selected="true"], .reiter-knopf.aktiv { color: var(--atlas-blau-hover); border-bottom-color: var(--atlas-blau); }
.reiter-knopf:focus-visible { outline: 2px solid var(--fokus); outline-offset: -2px; border-radius: var(--radius-s); }

/* Schalter (2026-10-07, erster Einsatz DB I | DB II im Ergebnis): Schiebeschalter zwischen ZWEI gleichwertigen
   Ansichten, Beschriftung links und rechts (beide klickbar). Knopf rund – funktional rund ist erlaubt (A-04);
   Bahn in ATLAS-Blau, Hover dunkler (F-06); gewählte Seite in Textfarbe, andere Sekundärgrau – der Stand steht also
   auch in Text und Knopfposition (F-08); Tastatur über echte Knöpfe (S-06).
   Markup: <div class="schalter-feld" role="group"> <button class="schalter-text" aria-pressed> · <button class="schalter"
   role="switch" aria-checked> · <button class="schalter-text" aria-pressed> </div> – das Umschalten macht die Seite. */
.schalter-feld { display: inline-flex; align-items: center; gap: var(--space-1); min-height: var(--hoehe); }
.schalter-text {
    min-height: var(--hoehe); padding: 0 var(--space-2); border: 0; background: none; cursor: pointer;
    font: inherit; font-size: 14px; line-height: 20px; font-weight: 400; color: var(--text-2);
}
.schalter-text[aria-pressed="true"] { color: var(--text); font-weight: 600; }
.schalter-text:hover { color: var(--text); }
.schalter {
    position: relative; flex: none; width: 40px; height: 24px; padding: 0;
    border: 0; border-radius: 12px; background: var(--atlas-blau); cursor: pointer;
}
.schalter:hover { background: var(--atlas-blau-hover); }
.schalter::after {
    content: ""; position: absolute; top: 4px; left: 4px; width: 16px; height: 16px;
    border-radius: 50%; background: var(--komponente); transition: transform 0.15s ease;
}
.schalter[aria-checked="true"]::after { transform: translateX(16px); }
.schalter:focus-visible, .schalter-text:focus-visible { outline: 2px solid var(--fokus); outline-offset: 2px; border-radius: var(--radius-s); }
.schalter:focus-visible { border-radius: 12px; }
@media (prefers-reduced-motion: reduce) { .schalter::after { transition: none; } }

/* Dialog (S-04…S-06): einziger Ort mit Schatten (echte Höhe) */
.dialog-schleier {
    position: fixed; inset: 0; z-index: 80;
    display: none; align-items: center; justify-content: center;
    padding: var(--space-4);
    background: rgba(20, 33, 54, 0.55);
}
.dialog-schleier.offen, .dialog-schleier[open] { display: flex; }
.dialog {
    width: 100%; max-width: 520px;
    padding: var(--space-6);
    background: var(--komponente);
    border-radius: var(--radius-l);
    box-shadow: var(--schatten-hoch);
}
.dialog h2 { font-size: 18px; line-height: 24px; letter-spacing: 0; margin: 0 0 var(--space-2); }
.dialog-text { color: var(--text-2); }
.dialog-aktionen { display: flex; justify-content: flex-end; gap: var(--space-2); margin-top: var(--space-6); flex-wrap: wrap; }

/* Leere Zustände: mittig, ruhig */
.leer-flaeche {
    padding: var(--space-8) var(--space-6);
    border: 1px dashed var(--deaktiviert);
    border-radius: var(--radius-l);
    color: var(--text-2);
    text-align: center;
}

/* ---------- 6 Helfer ---------- */

.nur-vorlesen { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.zeile { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
.zeile.auseinander { justify-content: space-between; }
.abstand-oben { margin-top: var(--space-6); }
.abstand-unten { margin-bottom: var(--space-6); }
.rechts { text-align: right; }
.mittig { text-align: center; }

/* Marke: drehende Kugel, respektiert prefers-reduced-motion */
.atlas-kugel { display: block; animation: kugel-drehen 36s linear infinite; }
@keyframes kugel-drehen { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
    .atlas-kugel { animation: none; }
    .knopf.laeuft::before { animation: none; }
    * { transition-duration: 0.01ms !important; }
}

/* ---------- 7 Werkzeuge: rechte Leiste (Rechner, Diagramm) und Zeitleiste ---------- */

/* ------------------------------------------------------------------ */
/* Werkzeugleiste (rechts) mit Rechner – Betreiber 2026-09-21.          */
/* Gegenstück zur Seitenleiste: derselbe Griff (.leisten-griff.rechts), */
/* die Leiste schiebt den Inhalt nach links statt Zahlen zu verdecken.  */
/* Aufbau + Logik: static/atlas-werkzeuge.js; die Eingabe-Matrix hat    */
/* eine eigene Leiste (.zieh-baum) und nutzt Griff + Rechner-Stile.     */
/* ------------------------------------------------------------------ */
.werkzeugleiste {
    position: fixed; top: var(--kopf-hoehe); right: 0; bottom: 0; z-index: 65;
    width: 400px; max-width: 92vw;
    display: none; flex-direction: column;
    background: var(--komponente); border-left: 1px solid var(--linie);
}
.werkzeugleiste.offen { display: flex; }
.werkzeugleiste .rechner { display: flex; flex: 1 1 auto; flex-direction: column; min-height: 0; padding: 12px 16px 16px; background: var(--komponente); }
.werkzeugleiste .rechner.ueber { box-shadow: inset 0 0 0 2px var(--atlas-blau); }
.werkzeugleiste .r-kopf { cursor: default; }
body.leiste-rechts .inhalt { width: auto; max-width: none; margin: 0 var(--leiste-rechts, 400px) 0 0; }
body.leiste-rechts .fuss { margin-right: var(--leiste-rechts, 400px); }
.leisten-griff.rechts { left: auto; right: 0; z-index: 66; border-right: 0; border-left: 1px solid var(--linie); border-radius: var(--radius-m) 0 0 var(--radius-m); }
.leisten-griff.rechts::before { content: "‹"; }
body.leiste-rechts .leisten-griff.rechts { right: calc(var(--leiste-rechts, 400px) - 12px); border: 1px solid var(--linie); border-radius: var(--radius-m); }
body.leiste-rechts .leisten-griff.rechts::before { content: "›"; }
html.leiste-zu .leisten-griff.rechts { left: auto; }
[data-rechner-zahlen] td[draggable=true] { cursor: grab; }
@media (max-width: 900px) {
    body.leiste-rechts .inhalt { width: 100%; margin: 0; }
    body.leiste-rechts .fuss { margin-right: 0; }
}
@media print { .werkzeugleiste { display: none !important; } }
/* Rechner mit Verlauf: Rechenart · Name groß · Zahl, darunter Ergebnis und Tasten */
.r-kopf{cursor:move;user-select:none;display:flex;align-items:center;gap:8px;font-size:14px;font-weight:600;margin-bottom:8px}
.r-kopf > span{flex:1 1 auto}
.r-verlauf{flex:1 1 auto;min-height:120px;overflow-y:auto;border-top:1px solid var(--linie)}
.r-zeile{display:grid;grid-template-columns:20px minmax(0,1fr) auto 24px;gap:8px;align-items:baseline;
  padding:8px 0;border-bottom:1px solid var(--linie)}
.r-z-op{font-size:16px;font-weight:600;color:var(--atlas-blau);text-align:center}
button.r-z-op{border:none;background:none;font-family:inherit;line-height:22px;padding:0;cursor:pointer;border-radius:var(--radius-s)}
button.r-z-op:hover, button.r-z-op:focus-visible{background:var(--atlas-blau-20)}
.r-z-name{font-size:16px;line-height:22px;font-weight:600;color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.r-z-name.getippt{font-weight:400;color:var(--text-2)}
.r-z-wert{font-size:16px;line-height:22px;font-variant-numeric:tabular-nums;text-align:right;white-space:nowrap}
.r-z-weg{border:none;background:none;color:var(--zurueck);cursor:pointer;font-size:14px;line-height:1;padding:0;visibility:hidden}
.r-zeile:hover .r-z-weg, .r-z-weg:focus-visible{visibility:visible}
.r-z-weg:hover{color:var(--fehler)}
.r-nächste{border-bottom:none;border:1px dashed var(--atlas-blau-60);border-radius:var(--radius-m);padding:8px;margin-top:8px}
.r-nächste .r-z-name{font-weight:400;font-size:14px;color:var(--text-2)}
.r-summe{display:flex;align-items:baseline;justify-content:space-between;gap:12px;border-top:1px solid var(--zurueck);
  margin-top:12px;padding:8px 0 12px;font-size:14px;font-weight:600}
.r-summe b{font-size:24px;line-height:30px;font-variant-numeric:tabular-nums}
.r-tasten{display:grid;grid-template-columns:repeat(5,1fr);gap:4px}
.r-tasten button.r-breit{grid-column:span 2}
.r-tasten button{min-height:32px;border:1px solid var(--linie);border-radius:var(--radius-s);background:var(--subtil);
  font:inherit;font-size:14px;color:var(--text);cursor:pointer;padding:0}
.r-tasten button:hover, .r-tasten button.gedrückt{background:var(--atlas-blau-20);border-color:var(--atlas-blau-60)}
.r-tasten button.r-op{color:var(--atlas-blau);font-weight:600}
.r-tasten button.r-ac{color:var(--fehler);font-weight:600}
.r-tasten button.r-gleich{background:var(--atlas-blau);border-color:var(--atlas-blau);color:#fff;font-weight:600}

/* Diagramm (Werkzeugleiste unter dem Rechner + Fenster) – Betreiber 2026-09-24, Regel F-10.
   Farben --dia-1…8 in fester Reihenfolge (geprüft: Farbsehschwäche, Helligkeit; drei Farben unter 3:1
   Kontrast – darum steht immer die Tabelle Name · Betrag · Anteil daneben), „Übrige“ grau. */
:root {
    --dia-1: #35639a; --dia-2: #eb6834; --dia-3: #1baf7a; --dia-4: #eda100;
    --dia-5: #e87ba4; --dia-6: #008300; --dia-7: #6b4ea0; --dia-8: #e34948;
    --dia-uebrige: var(--deaktiviert);
}
/* Kacheln wie in der Eingabe: erst Werkzeug wählen, dann ist nur dieses Werkzeug in der Leiste */
.wl-kopf{display:flex;align-items:center;gap:8px;min-height:56px;padding:8px 16px;border-bottom:1px solid var(--linie);font-size:14px;font-weight:600}
.wl-kopf .wl-titel{flex:1 1 auto}
.werkzeugleiste:not([data-werkzeug]) .wl-zurueck, .werkzeugleiste[data-werkzeug=""] .wl-zurueck{display:none}
.wl-kacheln{display:none;flex-direction:column;gap:12px;padding:16px}
.werkzeugleiste[data-werkzeug=""] .wl-kacheln, .werkzeugleiste:not([data-werkzeug]) .wl-kacheln{display:flex}
.wl-kachel{display:flex;align-items:center;gap:12px;min-height:64px;padding:12px 16px;border:1px dashed var(--atlas-blau-60);border-radius:var(--radius-l);
  background:var(--subtil);color:var(--text);font:inherit;font-size:16px;text-align:left;cursor:pointer}
.wl-kachel:hover, .wl-kachel.ueber{background:var(--atlas-blau-20);border-style:solid;border-color:var(--atlas-blau)}
.wl-symbol{flex:none;width:32px;font-size:24px;line-height:1;color:var(--atlas-blau);text-align:center}
.wl-symbol svg{width:24px;height:24px}
.werkzeugleiste .rechner, .werkzeugleiste .diagramm{display:none}
.werkzeugleiste[data-werkzeug="rechner"] .rechner{display:flex}
.werkzeugleiste[data-werkzeug="rechner"] .rechner > .r-kopf{display:none}
.werkzeugleiste .diagramm{flex:1 1 auto;flex-direction:column;min-height:0;padding:12px 16px 16px;background:var(--komponente)}
.werkzeugleiste[data-werkzeug="diagramm"] .diagramm{display:flex}
.werkzeugleiste .diagramm.ueber{box-shadow:inset 0 0 0 2px var(--atlas-blau)}
.d-kopf{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:8px;font-size:14px;font-weight:600;color:var(--text-2)}
.d-kopf .d-summe{font-size:20px;color:var(--text);font-variant-numeric:tabular-nums}
.d-liste{flex:1 1 auto;min-height:48px;overflow-y:auto;border-top:1px solid var(--linie)}
.r-zeile.d-zeile{grid-template-columns:minmax(0,1fr) auto 24px}
.r-zeile.d-zeile .r-z-name, .r-zeile.d-zeile .r-z-wert{font-size:14px;line-height:20px}
.d-knoepfe{display:flex;gap:8px;margin-top:12px}
.d-knoepfe .knopf{flex:1 1 0}
/* Auswählen mit dem Kasten */
body.d-auswahl .inhalt{cursor:crosshair;user-select:none}
body.d-auswahl [data-rechner-zahlen] td[draggable=true]{cursor:crosshair}
td.d-markiert{background:var(--atlas-blau-20) !important;box-shadow:inset 0 0 0 1px var(--atlas-blau-60)}
.d-rahmen{position:fixed;z-index:80;border:1px dashed var(--atlas-blau);background:var(--atlas-blau-20);pointer-events:none}
/* Fenster */
.diagramm-fenster{position:fixed;z-index:75;left:50%;top:14vh;transform:translateX(-50%);width:640px;max-width:94vw;max-height:78vh;
  display:flex;flex-direction:column;background:var(--komponente);border:1px solid var(--linie);border-radius:var(--radius-l);box-shadow:var(--schatten-hoch)}
.diagramm-fenster[hidden]{display:none}
.df-kopf{display:flex;align-items:center;gap:8px;padding:12px 16px;border-bottom:1px solid var(--linie);cursor:move;user-select:none}
.df-titel{flex:1 1 auto;font-size:16px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.df-form{display:inline-flex;gap:4px}
.df-summe{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:12px 16px 0;font-size:14px;font-weight:600;color:var(--text-2)}
.df-summe b{font-size:24px;line-height:30px;color:var(--text);font-variant-numeric:tabular-nums}
.df-bild{overflow-y:auto;padding:12px 16px 16px}
.df-kreis-reihe{display:flex;gap:24px;align-items:flex-start;flex-wrap:wrap}
.df-kreis{width:220px;height:220px;flex:0 0 auto}
.df-stueck{stroke:var(--komponente);stroke-width:2px;transition:opacity .12s}
.df-mitte{text-anchor:middle;font-size:14px;fill:var(--text-2)}
.df-legende{flex:1 1 240px;border-collapse:collapse;font-size:14px;line-height:20px;min-width:0}
.df-legende td{padding:4px 6px;border-bottom:1px solid var(--linie);vertical-align:baseline}
.df-legende td.zahl, .df-balken .zahl{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.df-farbe i{display:inline-block;width:12px;height:12px;border-radius:4px}
.df-name{max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text)}
.df-anteil{color:var(--text-2)}
.df-balken{display:flex;flex-direction:column}
.df-b-zeile{display:grid;grid-template-columns:180px minmax(0,1fr) 88px 56px;gap:12px;align-items:center;padding:4px 0;font-size:14px;line-height:20px;border-bottom:1px solid var(--linie)}
.df-b-spur{position:relative;height:14px;--null:0%}
.df-b-spur::before{content:"";position:absolute;left:var(--null);top:-5px;bottom:-5px;border-left:1px solid var(--zurueck)}
.df-b-balken{position:absolute;top:1px;bottom:1px;background:var(--dia-1);transition:opacity .12s}
.df-b-balken.plus{border-radius:0 4px 4px 0}
.df-b-balken.minus{border-radius:4px 0 0 4px}
.df-b-balken.uebrige{background:var(--dia-uebrige)}
.gedimmt{opacity:.3}
.df-tipp{position:absolute;z-index:2;max-width:320px;padding:6px 10px;border-radius:var(--radius-s);background:var(--nachtblau);color:#fff;
  font-size:12px;line-height:17px;white-space:pre-line;pointer-events:none}
@media print { .diagramm-fenster, .d-rahmen { display: none !important; } }

/* ------------------------------------------------------------------ */
/* Zeitleiste – Betreiber 2026-09-22, Vorbild Fusion-360-Bearbeitungs- */
/* leiste: Werkzeug, das sich unten am Bildschirmrand einblendet.      */
/* Obere Reihe = Blöcke (ein Arbeitsschritt: SuSa einlesen, Konten     */
/* zuteilen …) als reine Symbole mit Zähler, zweite Reihe = die Einzel- */
/* schritte des gewählten Blocks, darunter der Schritt im Klartext.    */
/* Ein Marker teilt die Leiste: links geschehen, rechts noch nicht.    */
/* Die Stelle auf der Seite bekommt einen ROTEN Rahmen (.zl-fokus).    */
/* Aufbau + Logik: static/atlas-zeitleiste.js (Master im Portal).       */
/* ------------------------------------------------------------------ */
:root { --zeitleiste-hoehe: 172px; --zl-rot: #d0342c; }
/* Der Knopf sitzt als Chip in der Kopfleiste (= Werkzeugleiste oben) neben Betrieb und WJ */
button.kontext-chip { cursor: pointer; font-family: inherit; }
button.kontext-chip { background: var(--komponente); border-color: var(--linie); }
button.kontext-chip:hover, button.kontext-chip.aktiv { border-color: var(--atlas-blau-60); }
button.kontext-chip.aktiv { background: var(--atlas-blau-20); }
button.kontext-chip:focus-visible { outline: 2px solid var(--fokus); outline-offset: 2px; }
.zeitleiste {
    position: fixed; left: var(--seitenleiste-breite); right: 0; bottom: 0; z-index: 68;
    display: none; flex-direction: column; height: var(--zeitleiste-hoehe);
    background: var(--komponente); border-top: 1px solid var(--linie); box-shadow: var(--schatten-hoch);
    font-size: 12px; line-height: 17px;
}
.zeitleiste.offen { display: flex; }
html.leiste-zu .zeitleiste { left: 0; }
body.zeitleiste-offen { padding-bottom: var(--zeitleiste-hoehe); }
body.zeitleiste-offen .werkzeugleiste, body.zeitleiste-offen .zieh-baum { bottom: var(--zeitleiste-hoehe); }
.zl-kopf { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-1) var(--space-4); border-bottom: 1px solid var(--linie); }
.zl-titel { font-weight: 600; font-size: 14px; }
.zl-steuer { display: flex; align-items: center; gap: var(--space-1); }
.zl-steuer button, .zl-zu {
    min-height: 26px; min-width: 26px; padding: 0 var(--space-2); border: 1px solid var(--linie); border-radius: var(--radius-s);
    background: var(--subtil); font: inherit; font-size: 12px; color: var(--text); cursor: pointer;
}
.zl-steuer button:hover, .zl-zu:hover { background: var(--atlas-blau-20); border-color: var(--atlas-blau-60); }
.zl-steuer button:disabled { color: var(--deaktiviert); cursor: default; background: var(--subtil); border-color: var(--linie); }
.zl-steuer button.zl-abspielen { color: var(--atlas-blau); font-weight: 600; }
.zl-steuer button.zl-abspielen.laeuft { background: var(--atlas-blau); border-color: var(--atlas-blau); color: #fff; }
.zl-steuer select { min-height: 26px; border: 1px solid var(--linie); border-radius: var(--radius-s); background: var(--komponente); font: inherit; font-size: 12px; color: var(--text); padding: 0 var(--space-1); }
.zl-stand { margin-left: auto; color: var(--text-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.zl-leer { padding: var(--space-3) var(--space-4); color: var(--text-2); }
/* Block-Reihe und Schritt-Reihe: kleine Symbol-Kacheln, waagerecht scrollbar wie in Fusion */
.zl-bloecke, .zl-schritte { display: flex; align-items: center; gap: 3px; padding: 5px var(--space-4); overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; }
.zl-bloecke { border-bottom: 1px solid var(--linie); }
.zl-tag { flex: none; font-size: 12px; line-height: 17px; color: var(--zurueck); margin: 0 var(--space-1) 0 var(--space-2); white-space: nowrap; }
.zl-tag:first-child { margin-left: 0; }
.zl-schritte-name { flex: none; font-size: 12px; color: var(--text-2); margin-right: var(--space-2); white-space: nowrap; }
.zl-block, .zl-schritt {
    flex: none; display: inline-flex; align-items: center; justify-content: center; position: relative;
    border: 1px solid var(--linie); border-radius: var(--radius-s); background: var(--komponente); color: var(--text);
    font: inherit; cursor: pointer; padding: 0;
}
.zl-block { width: 34px; height: 30px; }
.zl-schritt { width: 26px; height: 24px; }
.zl-block .hfm-icon { width: 17px; height: 17px; }
.zl-schritt .hfm-icon { width: 14px; height: 14px; }
.zl-block i { position: absolute; right: 1px; bottom: 0; font: 600 9px/11px var(--schrift); color: var(--text-2); }
.zl-block:hover, .zl-schritt:hover { border-color: var(--atlas-blau-60); background: var(--atlas-blau-20); }
.zl-block.gewaehlt { border-color: var(--atlas-blau); box-shadow: inset 0 0 0 1px var(--atlas-blau); }
.zl-block.aktiv, .zl-schritt.aktiv { background: var(--atlas-blau); border-color: var(--atlas-blau); color: #fff; }
.zl-block.aktiv i { color: rgba(255,255,255,.85); }
.zl-block.kommend, .zl-schritt.kommend { opacity: .35; }
.zl-schritt.warnung { color: var(--warnung); }
.zl-schritt.zurueck { color: var(--fehler); }
/* Marker: der senkrechte Strich zwischen „geschehen“ und „noch nicht“ */
.zl-marker { flex: none; width: 3px; height: 26px; margin: 0 3px; border-radius: 2px; background: var(--nachtblau); }
.zl-schritte .zl-marker { height: 20px; }
.zl-detail { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--space-3); align-items: center; padding: 6px var(--space-4) 8px; border-top: 1px solid var(--linie); min-height: 0; overflow: hidden; }
.zl-detail .zl-d-symbol { color: var(--atlas-blau); }
.zl-detail .zl-d-text { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.zl-detail .zl-d-meta { color: var(--text-2); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zl-detail .zl-d-aenderung { font-variant-numeric: tabular-nums; }
.zl-detail .zl-d-aenderung b { color: var(--text); font-weight: 600; }
/* Roter Rahmen um die Stelle, an der der gewählte Schritt passiert ist (Betreiber: „da passiert grad das“) */
.zl-fokus { outline: 2px solid var(--zl-rot) !important; outline-offset: 2px; border-radius: var(--radius-s); animation: zl-puls .9s ease-out 2; }
tr.zl-fokus > td:first-child, tr.zl-fokus > th:first-child { box-shadow: inset 3px 0 0 var(--zl-rot); }
@keyframes zl-puls { 0% { outline-color: transparent; } 40% { outline-color: var(--zl-rot); } 100% { outline-color: var(--zl-rot); } }
/* Bewegung: „war hier“ (gestrichelt, alte Stelle) → „jetzt hier“ (Rahmen), dazwischen eine Linie */
.zl-war { outline: 2px dashed var(--zl-rot) !important; outline-offset: 2px; border-radius: var(--radius-s); }
.zl-chip { display: inline-block; margin-left: var(--space-2); padding: 0 6px; border-radius: 10px; background: var(--zl-rot); color: #fff; font-size: 12px; line-height: 16px; font-weight: 600; white-space: nowrap; vertical-align: middle; }
.zl-chip.war { background: transparent; color: var(--zl-rot); border: 1px dashed var(--zl-rot); line-height: 14px; }
.zl-linie { position: absolute; z-index: 67; pointer-events: none; overflow: visible; }
.zl-linie path { fill: none; stroke: var(--zl-rot); stroke-width: 2; stroke-dasharray: 6 4; animation: zl-lauf 1.2s linear infinite; }
.zl-linie circle { fill: var(--zl-rot); }
@keyframes zl-lauf { to { stroke-dashoffset: -20; } }
@media (prefers-reduced-motion: reduce) { .zl-fokus { animation: none; } .zl-linie path { animation: none; } }
@media (max-width: 900px) { .zeitleiste { left: 0; } }
@media print { .zeitleiste { display: none !important; } body.zeitleiste-offen { padding-bottom: 0; } }

/* ---------- 8 Tiefe und Bewegung (A-05, B-07, Abschnitt 5 des Regelwerks) ----------
   Betreiber 2026-11-19, nach der umschaltbaren Probe: „sidebar soll deutlich,
   rest dezent“. Die Seitenleiste ist Material (leichter Verlauf, gewählter
   Eintrag als feste hellere Fläche); alles andere bekommt weiche Tiefe und
   weiche Übergänge – ohne Verläufe, ohne Glas, ohne Leuchten.

   Leitgedanken:
   · Tiefe durch Fläche + Schatten, nicht durch einen Rahmen im selben Ton
   · Angehobenes hebt sich (Schatten, kleiner Versatz) – kein farbiger Umriss
   · Gewähltes bekommt eine feste Fläche und Gewicht – keinen durchsichtigen Schleier
   · EIN Schatten-Stil je Seite (--tiefe-1 / --tiefe-2, echte Höhe --schatten-hoch)
   · Dichte Zahlentabellen (Monatsmatrix, Planband, KW-Zeitreihe) bleiben innen flach

   Alle Regeln beginnen mit html:root – das hebt sie über die Seiten-Stile der
   Module (style.css, db.css, planband.css, Stilblöcke in Vorlagen), die nach
   dieser Datei geladen werden. So greift die Tiefe überall gleich, ohne dass
   jedes Modul sie wiederholt. */

/* Flächen liegen auf der Seite: Schatten statt grauer Linie */
html:root .karte,
html:root .kennzahl-kachel,
html:root .schrittleiste,
html:root .modul-kachel,
html:root .bd-karte,
html:root .bd-kennzahl,
html:root .bd-gruppe {
    border-color: transparent;
    box-shadow: var(--tiefe-1);
}
html:root .karte .karte,
html:root .karte .kennzahl-kachel { box-shadow: none; border-color: var(--linie); }   /* keine Schatten in Schatten */

/* Anklickbare Kacheln heben sich an */
html:root a.modul-kachel,
html:root a.kennzahl-kachel,
html:root a.karte {
    transition: transform var(--bewegung) var(--bewegung-kurve), box-shadow var(--bewegung) var(--bewegung-kurve), border-color var(--bewegung);
}
html:root a.modul-kachel:hover,
html:root a.kennzahl-kachel:hover,
html:root a.karte:hover {
    transform: translateY(-2px);
    box-shadow: var(--tiefe-2);
    border-color: transparent;                 /* angehoben, nicht umrandet */
}
html:root a.modul-kachel:active { transform: translateY(0); box-shadow: var(--tiefe-1); }

/* Knöpfe: spürbare Rückmeldung */
html:root .knopf,
html:root .wj-knopf,
html:root .wahl-chip,
html:root .bd-kachel,
html:root .bd-unterknopf,
html:root .bd-knopf {
    transition: transform 0.12s var(--bewegung-kurve), box-shadow var(--bewegung) var(--bewegung-kurve),
        background-color 0.12s, border-color 0.12s, color 0.12s;
}
html:root .knopf:not(.text):not(:disabled):hover,
html:root .wahl-chip:not(:disabled):hover,
html:root .bd-kachel:hover { box-shadow: var(--tiefe-1); }
html:root .knopf.primaer,
html:root .knopf.kritisch { box-shadow: 0 1px 2px rgba(20, 33, 54, 0.18); }
html:root .knopf.primaer:hover { box-shadow: 0 4px 12px rgba(53, 99, 154, 0.32); transform: translateY(-1px); }
html:root .knopf.kritisch:hover { box-shadow: 0 4px 12px rgba(180, 35, 24, 0.28); transform: translateY(-1px); }
html:root .knopf:not(:disabled):active,
html:root .wahl-chip:active { transform: translateY(0) scale(0.98); box-shadow: none; }
html:root .seitenleiste-fuss .knopf,
html:root .seitenleiste-fuss .knopf:hover { box-shadow: none; transform: none; }

/* Felder: weicher Ring im Fokus statt harter Linie */
html:root .feld input:focus,
html:root .feld select:focus,
html:root .feld textarea:focus,
html:root .eingabe:focus {
    outline: none;
    border-color: var(--atlas-blau);
    box-shadow: var(--fokus-schein);
}
html:root .feld input:not([type="checkbox"]):not([type="radio"]),
html:root .feld select,
html:root .feld textarea,
html:root .eingabe { transition: border-color 0.12s, box-shadow var(--bewegung) var(--bewegung-kurve); }

/* Tabellenzeilen (Baustein .tabelle): beim Überfahren eine feste, an den Enden gerundete Fläche */
/* (Designfassung 2026-11-20: keine Hover-Fläche mehr – fachliche Zeilenfarben bleiben, Abschnitt 9 zieht einen feinen Umriss) */
html:root .tabelle tbody tr:hover td:first-child { border-radius: var(--radius-s) 0 0 var(--radius-s); }
html:root .tabelle tbody tr:hover td:last-child { border-radius: 0 var(--radius-s) var(--radius-s) 0; }

/* Schrittleiste: der aktive Schritt trägt einen Ring, Chips und Pfeile antworten */
html:root .schritt-marker { transition: transform var(--bewegung) var(--bewegung-kurve), box-shadow var(--bewegung); }
html:root a.schritt-kopf:hover .schritt-marker { transform: scale(1.08); }
html:root .schritt.aktiv .schritt-marker { box-shadow: 0 0 0 4px var(--atlas-blau-20); }
html:root a.schritt-chip { transition: transform 0.12s var(--bewegung-kurve), border-color 0.12s, color 0.12s, box-shadow var(--bewegung); }
html:root a.schritt-chip:hover { transform: translateY(-1px); box-shadow: var(--tiefe-1); }
html:root a.schritt-pfeil { transition: transform 0.12s var(--bewegung-kurve), background-color 0.12s; }
html:root a.schritt-pfeil:hover { transform: translateX(2px); }

/* Kopfleiste: liegt spürbar über dem Inhalt */
html:root .kopfleiste { border-bottom-color: var(--tiefe-rand); box-shadow: 0 1px 0 rgba(20, 33, 54, 0.03), 0 4px 16px rgba(20, 33, 54, 0.04); }
html:root .kontext-chip { transition: background-color 0.12s, border-color 0.12s, box-shadow var(--bewegung); }
html:root a.kontext-chip:hover,
html:root button.kontext-chip:hover,
html:root .hilfe-knopf:hover { box-shadow: var(--tiefe-1); }

/* Dialog und Hilfe: weich einblenden */
html:root .dialog-schleier.offen .dialog,
html:root .hilfe-schleier.offen .hilfe-karte { animation: tiefe-auf 0.2s var(--bewegung-kurve); }
@keyframes tiefe-auf { from { opacity: 0; transform: translateY(8px) scale(0.98); } to { opacity: 1; transform: none; } }

/* Seitenleiste – die deutliche Stufe: Material statt flacher Fläche.
   Ganz leichter Verlauf von oben nach unten, feine helle Kante zur Bühne. */
html:root .seitenleiste {
    background: linear-gradient(180deg, var(--nachtblau-oben) 0%, var(--nachtblau) 40%, var(--nachtblau-unten) 100%);
    box-shadow: 1px 0 0 rgba(210, 212, 218, 0.10);
    z-index: 21;
}
html:root .nav-link { transition: background-color var(--bewegung), color var(--bewegung); }
html:root .nav-link:hover { background: rgba(255, 255, 255, 0.06); }
/* Gewählter Eintrag: feste hellere Fläche und weiße Schrift – auf Dunkel entsteht Tiefe durch hellere Flächen.
   Balken links und Symbol bleiben Leuchtblau (F-03). */
html:root .nav-link.aktiv,
html:root .nav-link[aria-current="page"] {
    background: var(--nachtblau-hell);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 1px 2px rgba(0, 0, 0, 0.30);
    color: var(--komponente);
}
html:root .nav-link.aktiv .hfm-icon,
html:root .nav-link[aria-current="page"] .hfm-icon { color: var(--leuchtblau); opacity: 1; }
html:root .nav-link.inaktiv:hover { background: transparent; }

/* Wer weniger Bewegung möchte, bekommt keine (Farbe wechselt weiter, nichts verschiebt sich) */
@media (prefers-reduced-motion: reduce) {
    html:root :is(.knopf, .wj-knopf, .wahl-chip, .bd-kachel, .bd-unterknopf, .bd-knopf, a.modul-kachel, a.kennzahl-kachel,
        a.karte, .schritt-marker, a.schritt-chip, a.schritt-pfeil, .nav-link, .kontext-chip) { transition: none; }
    html:root :is(.knopf, .wahl-chip, a.modul-kachel, a.kennzahl-kachel, a.karte, a.schritt-chip, a.schritt-pfeil):is(:hover, :active),
    html:root a.schritt-kopf:hover .schritt-marker { transform: none !important; }
    html:root .dialog-schleier.offen .dialog,
    html:root .hilfe-schleier.offen .hilfe-karte { animation: none; }
}
/* Druck: Papier hat keine Tiefe – Linien statt Schatten */
@media print {
    html:root .karte, html:root .kennzahl-kachel, html:root .schrittleiste, html:root .modul-kachel,
    html:root .bd-karte, html:root .bd-kennzahl, html:root .bd-gruppe { box-shadow: none; border-color: var(--linie); }
    html:root .kopfleiste, html:root .knopf { box-shadow: none; }
}

/* ---------- 9 HfM-Designfassung: Gestaltungsebene (2026-11-20) ----------
   Vorlage: „ATLAS · HFM Designfassung“ (Designvergleich, 20.11.2026, Datei
   atlas-hfm.css). Wörtlich übernommen bis auf drei bewusste Abweichungen:
   · Seitenleiste und Flächen bleiben räumlich wie in Abschnitt 8 (Betreiber
     2026-11-20: „die Buttons in der Sidebar nicht mehr im flachen Design“,
     „die Kacheln kommen nicht mehr so raus wie vorher“) – Verlauf, gewählter
     Eintrag als erhabener Knopf in den Farben der Vorlage (Gold 20 %), Karten
     mit Schatten statt Kontur, anklickbare Kacheln heben sich an.
   · Hub-Kacheln hängen an .hub-seite statt an einer Export-Klasse; Kennzeile
     und Beschreibung als .modul-kennung / .modul-beschreibung (hub.html).
   · Keine Regeln für den statischen Export (.atlas-design-static).
   Alle Regeln beginnen mit html:root wie Abschnitt 8 und schlagen so die
   Seiten-Stile der Module, die nach dieser Datei geladen werden. */

:root {
    /* Einheitliche Vektor-Icons: 24er Raster, runde Enden, definierte Strichstärke (I-01) */
    --hfm-icon-arrow-right: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222.25%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M5%2012h14M13%206l6%206-6%206%22%2F%3E%3C%2Fsvg%3E");
    --hfm-icon-arrow-up-right: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222.25%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M7%2017%2017%207M7%207h10v10%22%2F%3E%3C%2Fsvg%3E");
    --hfm-icon-chevron-left: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222.25%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m15%206-6%206%206%206%22%2F%3E%3C%2Fsvg%3E");
    --hfm-icon-check: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m5%2012.5%204.5%204.5L19%207.5%22%2F%3E%3C%2Fsvg%3E");
}

/* 9.1 Lesbarkeit, gemeinsame Achsen und Größen. Zahlen bleiben tabellarisch. */
html { scroll-padding-top: 88px; }
body { font: 400 15px/1.55 var(--schrift); background: var(--seite); color: var(--text); }
button, input, select, textarea { font-family: var(--schrift); }
h1, h2, h3, h4, .seiten-titel { color: var(--hfm-blau); }
html:root .seiten-titel { font-size: 30px; line-height: 1.25; letter-spacing: -.025em; font-weight: 650; }
html:root .seitenkopf { align-items: flex-end; gap: 16px 24px; margin-bottom: 24px; }
html:root .seitenkopf-text { min-width: 0; flex: 1 1 280px; }
html:root .seitenkopf-aktionen { align-items: center; justify-content: flex-end; gap: 8px; }
html:root .seiten-untertitel { font-size: 14px; line-height: 1.55; margin-top: 8px; color: var(--text-2); max-width: 820px; }
.meta, .kennzahl-zusatz, .karte-hinweis { font-size: 13px; line-height: 1.5; }
html:root :is(.nav-rubrik, .wj-wahl-label, .kennzahl-name, .nk-titel, .zweig-zone-label) {
    text-transform: none; letter-spacing: 0; font-size: 13px; line-height: 1.4;
}
html:root .inhalt { padding-top: 28px; padding-bottom: 48px; }
html:root :is(.zahl, .tabellarisch, .kennzahl-wert, .kunden-key, .planung-jahr-wert) {
    font-variant-numeric: lining-nums tabular-nums;
    font-kerning: normal; letter-spacing: 0;
}
:focus-visible { outline: 2px solid var(--fokus); outline-offset: 3px; }

/* Schriftpfeile nur in reinen Icon-Steuerelementen ersetzen.
   Linktexte, zugängliche Namen, Trefferflächen und Zustände bleiben erhalten. */
html:root :is(.vergleich-pfeil, .pb-w-pfeil, .leisten-griff) { font-size: 0; }
html:root .vergleich-pfeil::after,
html:root .pb-w-pfeil::after {
    content: ""; display: inline-block; flex: 0 0 20px; width: 20px; height: 20px;
    vertical-align: middle; background: currentColor;
    -webkit-mask: var(--hfm-icon-arrow-right) center / contain no-repeat;
    mask: var(--hfm-icon-arrow-right) center / contain no-repeat;
}
html:root .pb-w-pfeil { display: inline-flex; align-items: center; margin-inline: 5px; }
html:root .leisten-griff { color: var(--hfm-blau); }
html:root .leisten-griff::before {
    content: ""; flex: 0 0 18px; width: 18px; height: 18px; background: currentColor;
    -webkit-mask: var(--hfm-icon-chevron-left) center / contain no-repeat;
    mask: var(--hfm-icon-chevron-left) center / contain no-repeat;
}
html:root.leiste-zu .leisten-griff:not(.rechts)::before,
html:root body.leiste-rechts .leisten-griff.rechts::before { content: ""; transform: rotate(180deg); }

/* 9.2 Shell: HfM-Blau, ein eindeutiger gewählter Eintrag. Die Leiste behält Verlauf
   und Kante aus Abschnitt 8 (räumlich, nicht flach). */
html:root .seitenleiste { border-right: 1px solid var(--hfm-blau); }
html:root .seitenleiste-marke { min-height: 84px; padding: 20px 24px; gap: 0 14px; }
html:root .seitenleiste-marke .atlas-kugel { width: 36px; animation: none; transform: none; }
html:root .seitenleiste-marke .atlas-wortmarke { height: 18px; }
html:root .seitenleiste-marke .marke-bereich { margin-top: 10px; color: var(--hfm-gold-60); letter-spacing: 0; }
html:root .seitenleiste-nav { gap: 5px; padding: 12px 14px 24px; }
html:root .nav-rubrik { margin: 20px 12px 7px; color: var(--hfm-blau-20); font-weight: 400; }
html:root .nav-rubrik:first-child { margin-top: 4px; }
html:root .nav-link { min-height: 44px; padding: 10px 12px; gap: 12px; font-size: 14px; line-height: 1.4; font-weight: 500; color: var(--auf-dunkel-2); border-radius: 7px; }
html:root .nav-link .hfm-icon { width: 19px; height: 19px; opacity: 1; }
html:root .nav-link:hover { background: var(--hfm-blau-20); color: var(--hfm-blau); }
/* Gewählter Eintrag: Farbe der Designfassung (Gold 20 %, Schrift HfM-Blau, Balken Gold),
   gezeichnet als erhabener Knopf – Lichtkante oben, dunklere Unterkante, Schatten auf die
   Leiste, 1 px angehoben (Betreiber 2026-11-20: Seitenleiste nicht flach) */
html:root .nav-link.aktiv,
html:root .nav-link[aria-current="page"] {
    background: var(--hfm-gold-20); color: var(--hfm-blau); font-weight: 650;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), inset 0 -2px 0 rgba(185, 146, 76, 0.45),
        0 2px 4px rgba(0, 0, 0, 0.35), 0 6px 14px rgba(0, 0, 0, 0.28);
    transform: translateY(-1px);
}
html:root .nav-link.aktiv::before,
html:root .nav-link[aria-current="page"]::before { background: var(--hfm-gold); top: 10px; bottom: 10px; width: 3px; }
html:root .nav-link.aktiv .hfm-icon,
html:root .nav-link[aria-current="page"] .hfm-icon { color: var(--hfm-blau); }
html:root .nav-link:is(.aktiv, [aria-current="page"]):focus-visible { outline-color: var(--hfm-blau); }
html:root .nav-link .nav-zusatz { color: inherit; }
html:root .nav-link.inaktiv { color: var(--hfm-blau-60); cursor: default; }
html:root .nav-link.inaktiv:hover { background: transparent; color: var(--hfm-blau-60); }
html:root .seitenleiste-fuss { border-top: 1px solid var(--hfm-blau-60); padding: 16px 14px; gap: 8px; }
html:root .konto-avatar { color: var(--hfm-blau); }
/* Initialen in der Seitenleiste lesbar (Betreiber 2026-11-20: „MO“ dunkel auf dunkel) – wie der gewählte Eintrag: Gold 20 %, Schrift HfM-Blau */
html:root .seitenleiste-fuss .konto-avatar { background: var(--hfm-gold-20); color: var(--hfm-blau); }
html:root .wk-knoten.ziel { box-shadow: inset 0 0 0 2px var(--hfm-blau-60); }
html:root .seitenleiste-fuss .knopf { font-size: 13px; justify-content: flex-start; text-align: left; min-height: 36px; padding: 6px 12px; }
html:root .seitenleiste-fuss .knopf:hover,
html:root .seitenleiste-fuss a.nutzer:hover,
html:root .seitenleiste-fuss .nutzer-konto:hover { background: var(--hfm-blau-20); color: var(--hfm-blau); border-color: transparent; }
html:root .seitenleiste-fuss > span { font-size: 11px; line-height: 1.5; }
html:root .kopfleiste { min-height: var(--kopf-hoehe); gap: 16px; border-bottom: 1px solid var(--linie); box-shadow: none; background: var(--komponente); }
html:root .brotkrumen { gap: 9px; font-size: 13px; line-height: 1.45; }
html:root .brotkrumen b { font-weight: 650; color: var(--hfm-blau); }
html:root .kopfleiste-rechts { gap: 8px; }
html:root .kontext-chip { border: 1px solid var(--linie); border-radius: 6px; background: var(--subtil); min-height: 34px; padding: 5px 10px; font-size: 13px; }
html:root .kontext-chip .chip-label { font-size: 12px; color: var(--text-2); }
html:root .hilfe-knopf { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; min-height: 34px; border-color: var(--hfm-blau-20); border-radius: 6px; color: var(--hfm-blau); }
html:root .hilfe-knopf:hover { background: var(--hfm-gold-20); box-shadow: none; border-color: var(--hfm-gold-60); }

/* 9.3 Flächen: liegen mit weichem Schatten auf der Seite (Abschnitt 8), Rundung neu. */
html:root :is(.karte, .kennzahl-kachel, .schrittleiste, .modul-kachel, .bd-karte, .bd-kennzahl, .bd-gruppe) {
    border-color: transparent; border-radius: var(--radius-l); box-shadow: var(--tiefe-1);
}
html:root .karte .karte, html:root .karte .kennzahl-kachel { box-shadow: none; border-color: var(--linie); }
html:root .karte-kopf { align-items: center; margin-bottom: 20px; gap: 12px 20px; }
html:root .karte-titel { color: var(--hfm-blau); padding-left: 14px; font-size: 18px; line-height: 1.4; font-weight: 650; }
html:root .karte-titel::before { background: var(--hfm-gold); width: 3px; top: 4px; bottom: 4px; }
html:root .karte > .karte-titel { margin-bottom: 20px; }
html:root .kennzahl-kachel { padding: 20px; gap: 8px; }
html:root .kennzahl-wert { font-size: 26px; line-height: 1.3; font-weight: 650; white-space: normal; overflow-wrap: anywhere; }
html:root .kennzahl-name { font-weight: 500; }
html:root .meldung { border-radius: 8px; padding: 12px 16px; line-height: 1.5; font-size: 14px; }
html:root .meldung.hinweis { background: var(--subtil); border-color: var(--linie); color: var(--text-2); }
html:root .meldung a { font-weight: 600; text-underline-offset: 3px; }
html:root .tag { border-radius: 5px; font-size: 12px; line-height: 1.45; padding: 4px 8px; font-weight: 600; }

/* 9.4 Alle Aktionsfamilien: gleiche Höhe, gemeinsame Textachse, ruhiger Hover. */
html:root :is(.knopf, .wj-knopf, .pb-knopf, .bd-knopf) {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: var(--hoehe); padding: 8px 16px; border-radius: var(--radius-m);
    font-family: var(--schrift); font-size: 14px; line-height: 1.3; font-weight: 600;
    text-align: center; vertical-align: middle; text-decoration: none;
    border: 1px solid var(--hfm-blau-60); box-shadow: none;
    transition: background-color .14s ease, border-color .14s ease, color .14s ease;
}
html:root :is(.knopf, .wj-knopf, .pb-knopf):hover { border-color: var(--atlas-blau); box-shadow: none; transform: none; }
html:root :is(.knopf, .wj-knopf, .pb-knopf):active { transform: none; box-shadow: none; }
html:root :is(.knopf.klein, .wj-knopf.klein, .pb-knopf--klein, .bd-knopf.klein) { min-height: var(--hoehe-klein); padding: 6px 12px; font-size: 13px; }
html:root :is(.knopf.primaer, .wj-knopf.primaer, .pb-knopf--haupt) { border-color: var(--atlas-blau); background: var(--atlas-blau); color: #fff; box-shadow: none; }
html:root :is(.knopf.primaer, .wj-knopf.primaer, .pb-knopf--haupt):hover {
    background: var(--hfm-blau); border-color: var(--hfm-blau-60);
    box-shadow: inset 0 0 0 1px var(--hfm-blau-60); transform: none;
}
html:root :is(.knopf.akzent, .wj-knopf.akzent) { background: var(--hfm-gold-20); border-color: var(--hfm-gold-60); color: var(--hfm-blau); }
html:root :is(.knopf.akzent, .wj-knopf.akzent):hover { background: var(--hfm-gold-60); border-color: var(--hfm-gold); color: var(--hfm-blau); }
html:root :is(.knopf.kritisch, .wj-knopf.kritisch) { background: var(--fehler); border-color: var(--fehler); color: #fff; }
html:root :is(.knopf.kritisch, .wj-knopf.kritisch):hover { background: var(--fehler-hover); border-color: var(--fehler-hover); box-shadow: none; transform: none; }
html:root .knopf.text { background: transparent; border-color: transparent; color: var(--atlas-blau); }
html:root .knopf.text:hover { background: var(--atlas-blau-20); border-color: transparent; }
html:root .knopf.icon { width: var(--hoehe); padding: 0; }
html:root .knopf.icon.klein { width: var(--hoehe-klein); padding: 0; }
html:root :is(.knopf, .wj-knopf, .pb-knopf):disabled,
html:root .knopf[aria-disabled="true"] { background: var(--seite); border-color: var(--linie); color: var(--zurueck); box-shadow: none; cursor: not-allowed; }
html:root .seitenleiste-fuss .knopf { border-color: transparent; background: transparent; color: var(--auf-dunkel-2); }
html:root .seitenleiste-fuss .knopf:hover { background: var(--hfm-blau-20); color: var(--hfm-blau); border-color: transparent; }
html:root .knopf-gruppe, html:root .formular-aktionen { gap: 8px; align-items: center; }
html:root .wahl-chip { display: inline-flex; align-items: center; justify-content: center; min-height: var(--hoehe-chip); padding: 6px 12px; border-radius: 7px; font-size: 14px; line-height: 1.4; box-shadow: none; }
html:root .wahl-chip:is(:hover, :active) { transform: none; box-shadow: none; }
html:root .wahl-chip.aktiv { background: var(--hfm-blau); border-color: var(--hfm-blau); color: #fff; }
html:root .reiter { gap: 8px; margin-bottom: 20px; }
html:root .reiter-knopf { min-height: var(--hoehe); font-size: 14px; text-transform: none; letter-spacing: 0; }

/* 9.5 Felder und Tabellen. Keine globale Änderung der Monats-/Planband-Geometrie. */
html:root .feld > label { margin-bottom: 6px; font-size: 13px; line-height: 1.5; font-weight: 600; color: var(--text-2); }
html:root .feld-zeile { gap: 16px 20px; }
html:root .feld input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),
html:root .feld select, html:root .eingabe { min-height: var(--hoehe); border-color: var(--hfm-blau-60); border-radius: var(--radius-m); font-size: 14px; }
html:root .feld textarea { border-color: var(--hfm-blau-60); border-radius: var(--radius-m); font-size: 14px; line-height: 1.6; padding: 12px; }
html:root .feld input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):focus,
html:root :is(.feld select, .feld textarea, .eingabe):focus { border-color: var(--atlas-blau); box-shadow: var(--fokus-schein); }
html:root .feld.kompakt input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),
html:root .feld.kompakt select, html:root .eingabe.kompakt { min-height: var(--hoehe-klein); height: auto; padding-top: 5px; padding-bottom: 5px; }
html:root .feld.fehlerhaft input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),
html:root .feld.fehlerhaft select, html:root .feld.fehlerhaft textarea,
html:root .eingabe.fehlerhaft, html:root .eingabe[aria-invalid="true"] { border-color: var(--fehler); }
html:root .feld input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):disabled,
html:root .feld select:disabled, html:root .feld textarea:disabled,
html:root .eingabe:disabled { border-color: var(--linie); color: var(--zurueck); background: var(--seite); cursor: not-allowed; }
html:root .tabelle { font-size: 14px; line-height: 1.5; }
html:root .tabelle thead th { text-transform: none; letter-spacing: 0; font-weight: 600; font-size: 13px; color: var(--text-2); padding-top: 12px; padding-bottom: 12px; background: var(--subtil); }
html:root .tabelle tbody td { vertical-align: middle; }
html:root .tabelle th.zahl, html:root .tabelle td.zahl { text-align: right; font-variant-numeric: lining-nums tabular-nums; }
html:root .tabelle tbody tr:hover td:first-child,
html:root .tabelle tbody tr:hover td:last-child { border-radius: 0; }
html:root .tabelle tbody tr:hover { outline: 1px solid var(--hfm-blau-20); outline-offset: -1px; }
html:root .tabelle-umschlag { max-width: 100%; overscroll-behavior-x: contain; scrollbar-color: var(--hfm-blau-60) var(--seite); scrollbar-width: thin; }
html:root .tabelle tfoot td { padding-top: 14px; padding-bottom: 14px; border-top-color: var(--hfm-blau-60); }

/* 9.6 Schrittleiste: aktive Phase klar, Unterlinks auf einer gemeinsamen Achse. */
html:root .schrittleiste {
    --marker: 30px;
    grid-template-columns: minmax(290px, 1.45fr) minmax(180px, 1fr) minmax(180px, 1fr) minmax(208px, 1fr);
    grid-auto-flow: row; grid-auto-columns: initial; overflow: visible;
    background: #fff;
}
html:root .schritt { position: relative; padding: 16px; gap: 12px; border-right-color: var(--linie); }
html:root .schritt:first-child { border-radius: 11px 0 0 11px; }
html:root .schritt:last-child { border-radius: 0 11px 11px 0; }
html:root .schritt.aktiv { background: var(--subtil); box-shadow: inset 0 3px 0 var(--hfm-gold); }
html:root .schritt-kopf { height: auto; min-height: var(--marker); gap: 10px; }
html:root .schritt-marker { border-radius: 7px; font-size: 13px; transition: none; }
html:root .schritt-marker .hfm-icon { width: 18px; height: 18px; stroke-width: 2.5; }
html:root .schritt.erledigt .schritt-marker { background: var(--atlas-blau-20); color: var(--atlas-blau); }
html:root .schritt.aktiv .schritt-marker { background: var(--hfm-blau); color: #fff; box-shadow: none; }
html:root .schritt.offen .schritt-marker, html:root .schritt.ziel .schritt-marker { border: 1px solid var(--hfm-blau-20); background: #fff; color: var(--text-2); }
html:root .schritt-titel { font-size: 15px; line-height: 1.4; font-weight: 650; white-space: normal; overflow: visible; text-overflow: clip; }
html:root .schritt.aktiv .schritt-titel { color: var(--hfm-blau); }
html:root .schritt-chips, html:root .schritt-pfeile { margin-left: 0; gap: 6px; }
html:root .schritt-chip { min-height: 30px; padding: 5px 8px; font-size: 12px; line-height: 1.35; background: var(--subtil); border-color: var(--linie); color: var(--text-2); }
html:root .schritt-chip.ok { background: #fff; border-color: var(--linie); color: var(--text); }
html:root .schritt-chip.ok::before {
    content: ""; display: inline-block; flex: 0 0 14px; width: 14px; height: 14px;
    background: var(--hfm-blau);
    -webkit-mask: var(--hfm-icon-check) center / contain no-repeat;
    mask: var(--hfm-icon-check) center / contain no-repeat;
}
html:root .schritt.aktiv .schritt-chip { background: var(--atlas-blau-20); border-color: var(--atlas-blau-20); color: var(--hfm-blau); }
html:root a.schritt-chip:hover { background: var(--atlas-blau-20); border-color: var(--atlas-blau-60); color: var(--hfm-blau); box-shadow: none; transform: none; }
html:root a.schritt-kopf:hover .schritt-marker { transform: none; }
html:root .schritt-pfeile { align-self: stretch; }
html:root .schritt-pfeil { justify-content: space-between; min-height: 30px; padding: 6px 10px; font-size: 12px; line-height: 1.35; border-radius: 5px; clip-path: none; }
html:root .schritt-pfeil::after {
    content: ""; flex: 0 0 18px; width: 18px; height: 18px; margin-left: 10px;
    background: currentColor;
    -webkit-mask: var(--hfm-icon-arrow-up-right) center / contain no-repeat;
    mask: var(--hfm-icon-arrow-up-right) center / contain no-repeat;
}
html:root a.schritt-pfeil.analytics:hover { box-shadow: inset 0 0 0 2px var(--hfm-blau-60); }
html:root a.schritt-pfeil:hover { transform: none; }
html:root a.schritt-pfeil:focus-visible { outline: 2px solid var(--fokus); outline-offset: 3px; filter: none; }

/* 9.7 Kundenübersicht: klare Zeilen, Namen und Metadaten voneinander getrennt. */
html:root .kunden-werkzeuge { gap: 12px; align-items: center; margin-bottom: 24px; }
html:root .kunden-suche { flex: 1 1 320px; max-width: 480px; padding: 10px 14px; }
html:root .kunden-zaehler { display: inline-flex; align-items: center; min-height: 30px; padding: 4px 10px; border: 1px solid var(--linie); border-radius: 6px; background: #fff; color: var(--text-2); font-size: 13px; white-space: nowrap; }
html:root .kunde-anlegen-klappe { margin-left: auto; }
html:root .kunden-liste { gap: 12px; }
html:root .kunden-zeile { border: 1px solid var(--linie); border-radius: 10px; background: #fff; box-shadow: none; overflow: visible; }
html:root .kunden-zeile > summary { min-height: 70px; padding: 18px 20px; gap: 14px; align-items: center; border-radius: 10px; transition: background-color .14s, border-color .14s; }
html:root .kunden-zeile > summary:hover { background: var(--subtil); }
html:root .kunden-zeile > summary::before { color: var(--atlas-blau); font-size: 15px; width: 14px; flex: 0 0 14px; }
html:root .kunden-name { font-size: 16px; line-height: 1.4; font-weight: 650; color: var(--hfm-blau); }
html:root .kunden-key { font-size: 13px; color: var(--text-2); padding: 3px 8px; background: var(--subtil); border: 1px solid var(--linie); border-radius: 4px; }
html:root .kunden-info { font-size: 13px; color: var(--text-2); }
html:root .kunden-zeile[open] { border-color: var(--atlas-blau-60); }
html:root .kunden-zeile[open] > summary { background: var(--subtil); border-radius: 10px 10px 0 0; border-bottom: 1px solid var(--linie); }
html:root .kunden-detail { padding: 16px 20px 20px 48px; }
html:root .betriebs-zeilen { gap: 10px; margin-bottom: 16px; }
html:root .betriebs-zeile { min-height: 50px; padding: 12px 14px; border-color: var(--linie); border-radius: 7px; align-items: center; gap: 12px; background: #fff; }
html:root .betriebs-zeile .betriebs-name { font-size: 14px; font-weight: 600; }
html:root .betriebs-zeile .betriebs-ort { font-size: 13px; }
html:root .betriebs-zeile-umschlag { align-items: center; gap: 10px; }
html:root .kunden-aktionen { gap: 10px; align-items: center; padding-top: 12px; border-top: 1px solid var(--linie); }
html:root .kunden-detail .loesch-klappe > .knopf.kritisch { background: #fff; color: var(--fehler); border-color: var(--fehler-rand); }
html:root .kunden-detail .loesch-klappe > .knopf.kritisch:hover { background: var(--fehler-flaeche); border-color: var(--fehler); }
html:root .klapp-formular { padding: 20px; border: 1px solid var(--linie); border-radius: 10px; background: #fff; }

/* 9.8 Betriebs-Hub und Szenarien: fachliche Reihenfolge bleibt bestehen. */
html:root .wj-wahl { min-height: 58px; padding: 12px 16px; gap: 12px; background: #fff; border: 1px solid var(--linie); border-radius: 10px; margin-bottom: 24px; }
html:root .wj-wahl-label { color: var(--text-2); font-weight: 500; }
html:root .modul-raster { gap: 20px; }
html:root .modul-kachel { min-height: 120px; }
/* anklickbare Kacheln heben sich an (Abschnitt 8): Schatten und 2 px nach oben, kein Umriss */
/* Hub-Kacheln: Titel oben links, Pfeil oben rechts. Alle drei Arbeitseinstiege sind
   gleichwertig – die Reihenfolge ist kein Status. Zeile 2 trägt die Kennkante der Sicht. */
html:root .hub-seite .modul-raster .modul-kachel {
    position: relative; min-height: 184px; padding: 24px; align-items: flex-start; justify-content: flex-start;
    gap: 10px; text-align: left; font-size: 22px; line-height: 1.35; font-weight: 650; color: var(--hfm-blau);
}
html:root .hub-seite .modul-raster a.modul-kachel::after {
    content: ""; position: absolute; right: 22px; top: 22px; width: 24px; height: 24px;
    background: var(--hfm-blau);
    -webkit-mask: var(--hfm-icon-arrow-right) center / contain no-repeat;
    mask: var(--hfm-icon-arrow-right) center / contain no-repeat;
}
html:root .hub-seite .modul-raster .modul-kachel:nth-child(n+4) { min-height: 145px; padding: 22px 24px; font-size: 19px; }
html:root .modul-kennung { display: block; padding-right: 36px; margin-bottom: 3px; color: var(--text-2); font-size: 12px; line-height: 1.5; font-weight: 500; }
html:root .modul-titel { display: block; }
html:root .modul-beschreibung { display: block; max-width: 44ch; color: var(--text-2); font-size: 14px; line-height: 1.6; font-weight: 400; }
html:root .hub-seite .modul-raster .modul-kachel:nth-child(4) { border-top: 3px solid var(--hfm-gold); }
html:root .hub-seite .modul-raster .modul-kachel:nth-child(5) { border-top: 3px solid var(--sicht-bank); }
html:root .analyse-modul { padding: 18px 20px; background: var(--subtil); border-color: var(--linie); gap: 12px; }
html:root .analyse-modul-name { font-size: 16px; font-weight: 650; }
html:root .analyse-modul-stand { display: block; margin-top: 5px; font-size: 13px; line-height: 1.5; }
html:root .planung-liste { gap: 20px; margin-top: 24px; }
html:root .planung-liste .karte { grid-template-columns: minmax(180px, 220px) minmax(0, 1fr); gap: 18px 28px; padding: 24px; }
html:root .planung-kachel-kopf { gap: 10px; }
html:root .planung-kachel-titel { font-size: 20px; line-height: 1.4; font-weight: 650; }
html:root .planung-jahre { gap: 8px; align-items: stretch; grid-auto-columns: minmax(108px, 1fr); overflow-x: auto; }
html:root .planung-jahr { gap: 8px; padding: 12px 10px; border: 1px solid var(--linie); background: var(--subtil); border-radius: 7px; text-align: right; }
html:root .planung-jahr.ist { background: var(--hinweis-flaeche); }
html:root .planung-jahr.unter { background: var(--fehler-flaeche); border-color: var(--fehler-rand); }
html:root .planung-jahr-name { font-size: 12px; line-height: 1.4; white-space: nowrap; color: var(--text-2); }
html:root .planung-jahr-wert {
    font-family: var(--schrift); font-size: 15px; font-weight: 600; line-height: 1.5;
    font-variant-numeric: lining-nums tabular-nums; font-kerning: normal;
    letter-spacing: 0; white-space: nowrap;
}
html:root .planung-jahre:hover .planung-jahr:not(.ist):not(.unter) { background: var(--atlas-blau-20); border-color: var(--atlas-blau-60); }
html:root .planung-aktionen { grid-column: 1 / -1; max-width: none; justify-content: flex-end; align-items: center; padding-top: 16px; border-top: 1px solid var(--linie); gap: 8px; }
html:root .planung-aktionen > a.knopf:first-child { margin-right: auto; min-width: 112px; color: #fff; background: var(--atlas-blau); border-color: var(--atlas-blau); }
html:root .planung-aktionen > a.knopf:first-child:hover {
    background: var(--hfm-blau); border-color: var(--hfm-blau-60);
    box-shadow: inset 0 0 0 1px var(--hfm-blau-60);
}

/* 9.9 Nur dekorative Bewegung beruhigen; fachliche Positions-Transforms bleiben. */
html:root :is(.knopf, .wahl-chip, .wj-knopf, .bd-kachel, .bd-unterknopf, .bd-knopf, a.schritt-chip, a.schritt-pfeil):is(:hover, :active) { transform: none; }
html:root :is(a.modul-kachel, a.kennzahl-kachel, a.karte):hover { transform: translateY(-2px); box-shadow: var(--tiefe-2); border-color: transparent; }
html:root a.modul-kachel:active { transform: translateY(0); box-shadow: var(--tiefe-1); }
html:root .login-marke .atlas-kugel { animation: none; }
html:root .dialog-schleier.offen .dialog,
html:root .hilfe-schleier.offen .hilfe-karte { animation: none; }

/* 9.10 Kleinere Arbeitsfenster: Inhalt umbricht, Datentabellen rollen separat. */
@media (max-width: 1500px) and (min-width: 1101px) {
    html:root .schrittleiste { grid-template-columns: minmax(260px, 1.35fr) minmax(160px, 1fr) minmax(155px, .9fr) minmax(190px, 1fr); }
    html:root .schritt { padding: 14px 12px; }
    html:root .planung-liste .karte { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    html:root .planung-kachel-kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
    html:root .planung-aktionen { grid-column: 1; }
}
@media (max-width: 1100px) {
    :root { --seitenleiste-breite: 228px; --inhalt-rand: 24px; }
    html:root .schrittleiste { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    html:root .schritt { padding: 16px; border-bottom: 1px solid var(--linie); }
    html:root .schritt:nth-child(2) { border-right: 0; border-radius: 0 11px 0 0; }
    html:root .schritt:first-child { border-radius: 11px 0 0 0; }
    html:root .schritt:nth-child(3) { border-bottom: 0; border-radius: 0 0 0 11px; }
    html:root .schritt:last-child { border-bottom: 0; border-radius: 0 0 11px 0; }
    html:root .planung-liste .karte { grid-template-columns: minmax(0, 1fr); }
    html:root .planung-aktionen { grid-column: 1; }
    html:root .planung-jahre { overflow-x: auto; grid-auto-columns: minmax(108px, 1fr); padding-bottom: 4px; }
    html:root .seitenkopf-aktionen { justify-content: flex-start; }
    html:root .hub-seite .modul-raster .modul-kachel { padding: 20px; font-size: 20px; }
}
@media (max-width: 900px) {
    :root { --inhalt-rand: 20px; --hoehe: 44px; --hoehe-klein: 40px; --hoehe-chip: 40px; }
    html:root .seitenleiste { height: auto; min-width: 0; border-right: 0; }
    html:root .seitenleiste-marke { min-height: 64px; padding: 12px 20px; flex-wrap: nowrap; }
    html:root .seitenleiste-nav { flex-direction: row; gap: 6px; padding: 10px; }
    html:root .seitenleiste-fuss { border-top: 0; border-left: 1px solid var(--hfm-blau-60); padding: 10px; }
    html:root .nav-rubrik { display: none; }
    html:root .nav-link { white-space: nowrap; flex: 0 0 auto; min-height: 44px; padding: 10px 14px; }
    html:root .nav-link.aktiv::before, html:root .nav-link[aria-current="page"]::before { top: auto; bottom: 0; left: 12px; right: 12px; width: auto; height: 3px; }
    html:root .kopfleiste { position: relative; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; gap: 10px; }
    html:root .kopfleiste-rechts { margin-left: auto; }
    html:root .inhalt { padding-top: 24px; }
    html:root .schritt-chip, html:root .schritt-pfeil { min-height: 40px; font-size: 13px; padding: 8px 10px; }
    html:root .schritt-kopf { min-height: 40px; }
    html:root .seitenkopf { align-items: flex-start; }
}
@media (max-width: 640px) {
    :root { --inhalt-rand: 16px; }
    html:root .seiten-titel { font-size: 26px; }
    html:root .seitenkopf-aktionen { width: 100%; gap: 8px; }
    html:root .seitenkopf-aktionen .knopf { flex: 1 1 auto; }
    html:root .kopfleiste-rechts { justify-content: flex-start; margin-left: 0; }
    html:root .schrittleiste { grid-template-columns: minmax(0, 1fr); }
    html:root .schritt { border-right: 0; border-bottom: 1px solid var(--linie); border-radius: 0; }
    html:root .schritt:first-child { border-radius: 11px 11px 0 0; }
    html:root .schritt:nth-child(2) { border-radius: 0; }
    html:root .schritt:nth-child(3) { border-radius: 0; border-bottom: 1px solid var(--linie); }
    html:root .schritt:last-child { border-radius: 0 0 11px 11px; }
    html:root .karte { padding: 20px; }
    html:root .karte-leiste { margin: -20px -20px 16px; padding: 12px 20px; }
    html:root .modul-raster { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    html:root .hub-seite .modul-raster .modul-kachel { grid-column: auto; min-height: 150px; padding: 22px; }
    html:root .kunde-anlegen-klappe { margin-left: 0; }
    html:root .kunden-werkzeuge { flex-wrap: wrap; }
    html:root .kunden-suche { flex-basis: 100%; max-width: none; }
    html:root .kunden-zeile > summary { flex-wrap: wrap; padding: 16px; gap: 10px; }
    html:root .kunden-name { max-width: calc(100% - 28px); overflow-wrap: anywhere; }
    html:root .kunden-info { margin-left: 28px; }
    html:root .kunden-detail { padding: 14px 16px 18px; }
    html:root .kunden-key { margin-left: 28px; }
    html:root .planung-liste .karte { padding: 20px; }
    html:root .planung-aktionen { justify-content: flex-start; }
    html:root .planung-aktionen > a.knopf:first-child { margin-right: 0; }
    html:root .planung-kachel-titel { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    html:root :is(.nav-link, .knopf, .wj-knopf, .wahl-chip, .modul-kachel, .schritt-chip, .schritt-pfeil, .kontext-chip) { transition: none; }
}
@media print {
    html:root :is(.karte, .kennzahl-kachel, .schrittleiste, .modul-kachel, .bd-karte, .bd-kennzahl) { box-shadow: none; }
    html:root .inhalt { padding: 0; }
    html:root .schrittleiste { break-inside: avoid; }
}

/* ---------- 10 HfM-Designfassung: Fach- und Datensichten (2026-11-20) ----------
   Vorlage: „Atlas · HFM Gestaltung / Fach- und Datensichten“ (Designvergleich,
   20.11.2026). Fachfarben und Zustandsklassen bleiben erhalten; keine Änderung
   an Monatsbreiten, Balkenpositionen oder DOM-Verträgen. Die Klassen gehören
   den Modulen (planband.css, style.css der Eingabe, db.css, Portal-style.css,
   bank.html) – wer dort einen Klassennamen ändert, zieht diesen Abschnitt nach. */

/* 10.1 Planband: klare Arbeitsflächen, kompakte Zahlen, ruhige Bedienung. */
html:root .pb { gap: 24px; font-family: var(--schrift); }
html:root .pb .pb-karte {
    min-width: 0;
    padding: 20px;
    border: 1px solid var(--linie);
    border-radius: var(--radius-l);
    background: var(--komponente);
    box-shadow: none;
}
html:root .pb .pb-kopf { align-items: center; gap: 12px 16px; }
html:root .pb .pb-kartenkopf { gap: 12px 16px; margin-bottom: 16px; }
html:root .pb .pb-titel { font-size: 18px; line-height: 26px; }
html:root .pb .pb-bandkarte > .pb-kartenkopf { gap: 12px 16px; margin-bottom: 16px; }
html:root .pb .pb-jahre { align-items: center; gap: 8px; }
html:root .pb :is(.pb-legende, .pb-status, .pb-feldname, .pb-nach) {
    font-size: 13px;
    line-height: 19px;
}
html:root .pb .pb-status--fehler { color: var(--fehler); font-weight: 600; }
html:root .pb .pb-legende { gap: 8px 20px; }
html:root .pb .pb-leg { gap: 8px; }
html:root .pb .pb-knopf {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: var(--hoehe);
    padding: 8px 16px;
    border-color: var(--hfm-blau-60);
    border-radius: var(--radius-m);
    font: 600 14px/20px var(--schrift);
    text-align: center;
    box-shadow: none;
    transform: none;
    transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}
html:root .pb .pb-knopf:hover:not(:disabled) {
    background: var(--seite);
    border-color: var(--atlas-blau);
    box-shadow: none;
    transform: none;
}
html:root .pb .pb-knopf--haupt {
    background: var(--atlas-blau);
    border-color: var(--atlas-blau);
    color: var(--komponente);
}
html:root .pb .pb-knopf--haupt:hover:not(:disabled) {
    background: var(--hfm-blau);
    border-color: var(--hfm-blau-60);
    box-shadow: inset 0 0 0 1px var(--hfm-blau-60);
    color: var(--komponente);
}
html:root .pb .pb-knopf--klein { min-height: var(--hoehe-klein); padding: 6px 12px; font-size: 13px; line-height: 1.3; }
html:root .pb .pb-knopf:disabled { border-color: var(--linie); color: var(--deaktiviert); }
html:root .pb .pb-schalter { border-color: var(--linie); border-radius: var(--radius-m); }
html:root .pb .pb-schalter > button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: calc(var(--hoehe) - 2px);
    border-color: var(--linie);
    text-align: center;
}
html:root .pb .pb-schalter--klein > button { min-height: calc(var(--hoehe-klein) - 2px); }
html:root .pb .pb-schalter > button[aria-pressed="true"] {
    background: var(--atlas-blau-flaeche);
    color: var(--hfm-blau);
    box-shadow: inset 0 -2px 0 var(--atlas-blau);
}
html:root .pb .pb-schalter > button:disabled { color: var(--deaktiviert); }
html:root .pb .pb-rollen {
    border: 1px solid var(--linie);
    border-radius: var(--radius-m);
    background: var(--komponente);
    overscroll-behavior-x: contain;
    scrollbar-color: var(--hfm-blau-60) var(--seite);
}
/* Kopf- und Monatsbreiten bleiben wie vom Planband vorgegeben. */
html:root .pb .pb-band { font-variant-numeric: lining-nums tabular-nums; }
html:root .pb .pb-band :is(th, td) { border-bottom-color: var(--linie); }
html:root .pb .pb-band thead th {
    color: var(--hfm-blau);
    background: var(--subtil);
    box-shadow: inset 0 -1px 0 var(--hfm-blau-60);
}
html:root .pb .pb-band thead .pb-k--ist { color: var(--text-2); background: var(--seite); }
html:root .pb .pb-band thead .pb-k--offen { background: var(--atlas-blau-flaeche); }
html:root .pb .pb-band thead .pb-k.pb-z--streif:not(.pb-k--offen) {
    background: var(--leuchtblau-flaeche);
}
html:root .pb .pb-band .pb-name { border-right-color: var(--linie); }
html:root .pb .pb-band .pb-zone > * {
    padding-top: 8px;
    padding-bottom: 8px;
    color: var(--text-2);
    background: var(--seite);
    font-size: 12px;
    line-height: 18px;
    letter-spacing: 0;
    text-transform: none;
    font-weight: 600;
}
html:root .pb .pb-band tbody tr.pb-zeile:not(.pb-zeile--ergebnis):hover > :not(.pb-z--unter):not(.pb-blink):not(.pb-z--streif) {
    background: var(--subtil);
}
html:root .pb .pb-band .pb-z--streif:not(.pb-z--unter):not(.pb-blink),
html:root .pb .pb-band tbody tr.pb-zeile:hover > .pb-z--streif:not(.pb-z--unter):not(.pb-blink) {
    background: var(--leuchtblau-flaeche);
}
html:root .pb .pb-band tbody tr:is(.pb-zeile--kopf, .pb-zeile--zweig):hover > .pb-name {
    background: var(--art-f, var(--subtil));
}
html:root .pb .pb-band :is(.pb-zeile--gruppe, .pb-zeile--ergebnis) > * { font-weight: 600; }
html:root .pb .pb-band .pb-zeile--ergebnis > *,
html:root .pb .pb-band tbody tr.pb-zeile--ergebnis:hover > *,
html:root .pb .pb-band .pb-zeile--ergebnis > .pb-z--streif:not(.pb-z--unter):not(.pb-blink),
html:root .pb .pb-band tbody tr.pb-zeile--ergebnis:hover > .pb-z--streif:not(.pb-z--unter):not(.pb-blink) {
    background: var(--atlas-blau-flaeche);
    color: var(--hfm-blau);
    box-shadow: inset 0 1px 0 var(--hfm-blau-60);
}
html:root .pb .pb-band .pb-z--unter,
html:root .pb .pb-band tbody tr.pb-zeile:hover > .pb-z--unter {
    background: var(--fehler-flaeche);
}
html:root .pb .pb-wirkung {
    padding: 12px 16px;
    gap: 8px 16px;
    border: 1px solid var(--linie);
    border-radius: var(--radius-m);
    background: var(--subtil);
}
html:root .pb .pb-dialog { padding: 20px; border-color: var(--atlas-blau-60); }
html:root .pb .pb-felder { gap: 16px; }
html:root .pb .pb-feld { gap: 6px; }
html:root .pb .pb-eingabe { height: var(--hoehe); border-color: var(--hfm-blau-60); }
html:root .pb .pb-eingabe:disabled { border-color: var(--linie); }
html:root .pb .pb-eingabe[aria-invalid="true"] { border-color: var(--fehler); }
html:root .pb .pb-dialogfuss { gap: 8px; margin-top: 20px; }
html:root .pb details.pb-klapp { padding: 12px 16px; border: 1px solid var(--linie); border-radius: var(--radius-m); }
html:root .pb .pb-hinweis { border-radius: var(--radius-m); }

/* 10.2 Eingabe und Monatsmatrix: Strukturfarben bleiben auf jeder Ebene. */
html:root .matrix-seite .werkzeuge {
    gap: 8px 12px;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--linie);
}
html:root .matrix-hülle {
    border: 1px solid var(--linie);
    border-radius: var(--radius-m);
    background: var(--komponente);
    scrollbar-color: var(--hfm-blau-60) var(--seite);
    overscroll-behavior-x: contain;
}
html:root .mtab thead th {
    font-size: 12px;
    line-height: 18px;
    letter-spacing: 0;
    text-transform: none;
    color: var(--hfm-blau);
    background: var(--seite);
}
html:root .mtab :is(td.zahl, td.rsumme, td.gsumme, td.kzahl, td.ksumme, td.zahl-e) {
    text-align: right;
    font-variant-numeric: lining-nums tabular-nums;
}
html:root .mtab tr.gruppe td { border-top: 1px solid var(--linie); }
html:root .mtab tr.gruppe.guv td { background: var(--guv); color: var(--guv-k); }
html:root .mtab tr.gruppe.aktiva td { background: var(--aktiva); color: var(--aktiva-k); }
html:root .mtab tr.gruppe.passiva td { background: var(--passiva); color: var(--passiva-k); }
html:root .mtab tr.gruppe.sonst td { background: var(--sonst); color: var(--sonst-k); }
html:root .mtab tr.knoten.guv td { background: var(--guv-2); color: var(--guv-k); }
html:root .mtab tr.knoten.aktiva td { background: var(--aktiva-2); color: var(--aktiva-k); }
html:root .mtab tr.knoten.passiva td { background: var(--passiva-2); color: var(--passiva-k); }
html:root .mtab tr.knoten.sonst td { background: var(--sonst-2); color: var(--sonst-k); }
html:root .mtab tbody tr:not(.gruppe):not(.knoten):not(.konto):hover > td:not(.markiert):not(.ebz):not(.eb-leer):not(.drop) {
    background: var(--subtil);
}
html:root .mtab :is(td.ebz, td.eb-leer, th.eb-kopf) { background: var(--guv-2); }
html:root .mtab th.eb-kopf { color: var(--guv-k); }
html:root .mtab td.markiert { background: var(--mark-bg); color: var(--mark-k); }
html:root .mtab tr.konto.regel > td:first-child { background: var(--mark-bg); }
html:root .mtab tfoot tr.ergebnis td:not(.drop) {
    background: var(--atlas-blau-flaeche);
    color: var(--hfm-blau);
    border-top-color: var(--hfm-blau-60);
}
html:root .mtab tr.konto td:first-child .knopf.klein {
    min-height: 24px;
    height: auto;
    padding: 2px 8px;
    font-size: 12px;
    line-height: 18px;
}
html:root :is(.matrix-seite, .nb-seite) :is(input.feld, select.feld, textarea.feld) {
    font-family: var(--schrift);
    border-color: var(--hfm-blau-60);
    border-radius: var(--radius-m);
}
html:root .nb-seite .karte { padding: 0; }
html:root .nb-seite .karte-kopf { padding: 16px 20px; gap: 12px; }
html:root .nb-tabelle > * > tr > :first-child { padding-left: 20px; }
html:root .nb-tabelle > * > tr > :last-child { padding-right: 20px; }
html:root .nb-tabelle tr.ok-kopf td,
html:root .nb-tabelle tr.ok-kopf:hover td { background: var(--seite); }
html:root .nb-tabelle tr.ok-panel > td,
html:root .nb-tabelle tr.ok-panel:hover > td { background: var(--subtil); }
html:root .nb-tabelle td.ok-teil { padding-left: 36px; }
html:root .nb-seite .feldgruppe > label:not(.haken) { font-size: 13px; line-height: 19px; }

/* 10.3 Steckbriefe und Planmasken: Hauptarbeit und Kontextliste klar getrennt. */
html:root .planmaske { gap: 24px; }
html:root .planmaske-haupt { gap: 24px; }
html:root .planmaske-neben { gap: 16px; }
html:root .planmaske-liste { gap: 8px; }
html:root .planmaske-liste a {
    gap: 4px;
    padding: 12px 14px;
    border-color: transparent;
    border-radius: var(--radius-m);
    transition: background-color 140ms ease, border-color 140ms ease;
}
html:root .planmaske-liste a:hover { background: var(--seite); border-color: var(--linie); }
html:root .planmaske-liste li.aktiv a {
    background: var(--atlas-blau-flaeche);
    border-color: var(--atlas-blau-60);
    box-shadow: inset 3px 0 0 var(--hfm-gold);
}
html:root .planmaske-liste-info,
html:root .planmaske-eckdaten dt { font-size: 13px; line-height: 19px; }
html:root .planmaske-eckdaten { gap: 16px 24px; }
html:root .planmaske-eckdaten dd { margin-top: 6px; }
html:root .planmaske-tabelle th[scope="row"] { white-space: normal; line-height: 22px; }
html:root .planmaske-tabelle .planmaske-summe > *,
html:root .planmaske-tabelle .planmaske-summe:hover > * {
    background: var(--seite);
    font-weight: 600;
}
html:root .planmaske-eingriffe summary { padding-block: 12px; }
html:root .planzweig-steckbrief :is(th, td),
html:root .planzweig-bestand :is(th, td) { vertical-align: middle; }
html:root .planzweig-raster tr.planzweig-kopf td,
html:root .planzweig-raster tr.planzweig-kopf:hover td {
    background: var(--komponente);
    color: var(--hfm-blau);
    padding-top: 20px;
    padding-bottom: 8px;
}
html:root .planzweig-raster tr.planzweig-folge td,
html:root .planzweig-raster tr.planzweig-folge:hover td { background: var(--seite); }
html:root .planzweig-raster tr.planzweig-folge td.geplant,
html:root .planzweig-raster tr.planzweig-folge:hover td.geplant { background: var(--atlas-blau-flaeche); }
html:root .planzweig-ergebnis .planzweig-ist { background: var(--seite); }
html:root .planpreis-legende { flex-wrap: wrap; gap: 8px 24px; font-size: 13px; line-height: 19px; }

/* 10.4 Deckungsbeiträge: fachliche Klammern und Ergebniszeilen halten. */
html:root .db-bereich {
    margin-bottom: 16px;
    border-color: var(--linie);
    border-radius: var(--radius-l);
    box-shadow: none;
}
html:root .db-bereich > summary { min-height: 56px; padding: 14px 20px; background: var(--subtil); }
html:root .db-bereich > summary:hover { background: var(--seite); }
html:root .db-bereich > summary::before,
html:root .db-verfahren > summary::before { color: var(--atlas-blau); }
html:root .db-verfahren > summary { min-height: 44px; padding-block: 10px; gap: 8px 12px; }
html:root .db-bereich .db-verfahren[open] > summary { background: var(--seite); }
html:root .db-bereich-name,
html:root .db-verfahren-name { min-width: 0; }
html:root .db-verfahren-info { font-size: 13px; line-height: 19px; }
html:root .db-jahrgaenge { gap: 8px; margin-bottom: 16px; }
html:root .db-blatt-tabelle:not(.db-zeitachse) tbody td { padding-block: 8px; }
html:root .db-blatt-tabelle:not(.db-zeitachse) tbody tr.kategorie td,
html:root .db-blatt-tabelle:not(.db-zeitachse) tbody tr.kategorie:hover td {
    background: var(--kat-flaeche, var(--seite));
    color: var(--text);
    border-top-color: var(--kat, var(--linie));
    font-weight: 600;
}
html:root .db-blatt-tabelle tbody tr.ergebnis td,
html:root .db-blatt-tabelle tbody tr.ergebnis:hover td {
    background: var(--atlas-blau-flaeche);
    border-top-color: var(--atlas-blau-60);
    color: var(--hfm-blau);
    font-weight: 600;
}
html:root .db-ergebnisblatt tbody tr.gesamt td,
html:root .db-ergebnisblatt tbody tr.gesamt:hover td {
    background: var(--atlas-blau-flaeche);
    border-color: var(--hfm-blau-60);
    color: var(--hfm-blau);
    font-weight: 600;
}
html:root .db-zeitachse-karte { padding: 0; }
html:root .db-zeitachse-rollen { scrollbar-color: var(--hfm-blau-60) var(--seite); }
/* Die zwei haftenden Kopfzeilen bleiben bei 26 px und die fixierten
   Spalten bei ihren Originalbreiten; keine Geometrieänderung. */
html:root .tabelle.db-zeitachse { font-size: 12px; line-height: 17px; }
html:root .tabelle.db-zeitachse thead th { font-size: 12px; line-height: 17px; padding: 4px 8px; height: 26px; letter-spacing: 0; text-transform: none; }
html:root .tabelle.db-zeitachse tbody td { padding: 4px 8px; }
html:root .db-zeitachse tbody tr.kategorie td,
html:root .db-zeitachse tbody tr.kategorie:hover td {
    background: var(--kat-flaeche, var(--seite));
    color: var(--text);
}
html:root .db-zeitachse tbody tr.hat-override td.fix2,
html:root .db-zeitachse tbody tr.hat-override:hover td.fix2 { background: var(--mark-bg); }
html:root :is(.db-zeitachse, .db-ergebnisblatt) tbody tr td.ov,
html:root :is(.db-zeitachse, .db-ergebnisblatt) tbody tr:hover td.ov { background: var(--mark-bg); }
html:root .db-zeitachse tbody tr td.ov1,
html:root .db-zeitachse tbody tr:hover td.ov1 { background: var(--mark-bg-2); }
html:root .db-zeitachse tbody tr td.ov2,
html:root .db-zeitachse tbody tr:hover td.ov2 { background: var(--mark-bg-3); }
html:root :is(.db-zeitachse, .db-ergebnisblatt) tbody tr td.abgeleitet,
html:root :is(.db-zeitachse, .db-ergebnisblatt) tbody tr:hover td.abgeleitet { background: var(--leuchtblau-flaeche); }
html:root :is(.db-zeitachse, .db-ergebnisblatt) tbody tr td.neu,
html:root :is(.db-zeitachse, .db-ergebnisblatt) tbody tr:hover td.neu {
    background: var(--atlas-blau-flaeche);
    /* Herkunft zusätzlich durch Form erkennbar; keine neue Blaustufe. */
    box-shadow: inset 0 -2px 0 var(--hfm-blau-60);
}
html:root .db-blase { background: var(--hfm-blau); border-radius: var(--radius-l); }
html:root .db-blase-einheit { color: var(--hfm-gold-60); }
html:root .db-fussnoten { padding-top: 16px; border-top: 1px solid var(--linie); font-size: 13px; line-height: 20px; }

/* 10.5 Analysen: ruhige Spaltenköpfe und echte Ergebnis-Hierarchie. */
html:root .verteilung-umschlag { border: 1px solid var(--linie); border-radius: var(--radius-m); }
html:root .verteilungs-tabelle th {
    padding-top: 12px;
    padding-bottom: 12px;
    color: var(--hfm-blau);
    background: var(--seite);
    font-size: 13px;
    line-height: 19px;
    letter-spacing: 0;
    text-transform: none;
}
html:root .verteilungs-tabelle :is(th.zahl, td.zahl) { text-align: right; font-variant-numeric: lining-nums tabular-nums; }
html:root .verteilungs-tabelle :is(th.links, td.links) { text-align: left; }
html:root .verteilungs-tabelle tr.fest td,
html:root .verteilungs-tabelle tr.fest:hover td,
html:root .verteilungs-tabelle tbody tr:hover td.fest { background: var(--warnung-flaeche); }
html:root .verteilungs-tabelle tfoot tr.summe td { background: var(--atlas-blau-flaeche); color: var(--hfm-blau); }
html:root .vergleich-tabelle tr.vergleich-abschnitt td,
html:root .vergleich-tabelle tr.vergleich-abschnitt:hover td {
    color: var(--hfm-blau);
    font-size: 13px;
    line-height: 19px;
    letter-spacing: 0;
    text-transform: none;
    background: var(--komponente);
}
html:root .vergleich-tabelle th.eigen,
html:root .vergleich-tabelle td.eigen,
html:root .vergleich-tabelle tbody tr:hover td.eigen { background: var(--hinweis-flaeche); }
html:root .vergleich-tabelle tr.vergleich-db td,
html:root .vergleich-tabelle tr.vergleich-db:hover td,
html:root .gewinn-tabelle tr.gewinn-summe td,
html:root .gewinn-tabelle tr.gewinn-summe:hover td {
    background: var(--atlas-blau-flaeche);
    font-weight: 600;
    border-top-color: var(--atlas-blau-60);
}
html:root .topf-tabs { gap: 8px; margin-bottom: 20px; }
html:root .topf-tab { min-height: 60px; padding: 10px 14px; gap: 5px; }
html:root .topf-tab.aktiv { background: var(--atlas-blau); border-color: var(--atlas-blau); }
html:root .topf-gebucht { gap: 6px; padding: 16px 20px; }
html:root .topf-gebucht-label { font-size: 13px; line-height: 19px; letter-spacing: 0; text-transform: none; }
html:root .topf-gebucht-wert { white-space: normal; font-size: 26px; line-height: 34px; }

/* 10.6 Bank-Dashboard: Oliv als bekannte Produktfarbe, gleiche Komponenten. */
html:root :is(.bd-karte, .bd-kennzahl, .bd-gruppe) {
    border-color: var(--linie);
    border-radius: var(--radius-l);
    box-shadow: none;
}
html:root .bd-karte-kopf { padding: 18px 24px; flex-wrap: wrap; gap: 12px 16px; }
html:root .bd-kennzahlen { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; }
html:root .bd-kennzahl {
    padding: 20px;
    gap: 10px;
    min-height: 124px;
    color: var(--text-2);
    font-size: 13px;
    line-height: 19px;
    letter-spacing: 0;
    text-transform: none;
}
html:root .bd-kennzahl b { margin-top: auto; font-size: 24px; line-height: 32px; white-space: normal; }
html:root .bd-gruppe { padding: 16px 20px; gap: 12px 16px; }
html:root .bd-gruppe-titel { font-size: 13px; line-height: 19px; letter-spacing: 0; text-transform: none; }
html:root :is(.bd-kachel, .bd-unterknopf, .bd-knopf) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--schrift);
    line-height: 20px;
    border-radius: var(--radius-m);
    text-align: center;
    box-shadow: none;
    transform: none;
    transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}
html:root .bd-kachel { min-height: var(--hoehe); }
html:root :is(.bd-unterknopf, .bd-knopf) { min-height: var(--hoehe-klein); }
html:root :is(.bd-kachel, .bd-unterknopf, .bd-knopf):is(:hover, :active) { box-shadow: none; transform: none; }
html:root .bd-reiter { padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--linie); gap: 8px; }
html:root .bd-unter { gap: 8px; }
html:root .bd-tabelle th {
    padding-top: 12px;
    padding-bottom: 12px;
    background: var(--seite);
    color: var(--text-2);
    font-size: 13px;
    line-height: 19px;
    text-transform: none;
    letter-spacing: 0;
}
html:root .bd-tabelle td { padding-top: 10px; padding-bottom: 10px; }
html:root .bd-tabelle tr.ergebnis td,
html:root .bd-tabelle tr.ergebnis:hover td { background: var(--bd-olive-flaeche); color: var(--bd-olive-tief); }
html:root .bd-tabelle tr.ergebnis td.negativ { color: var(--fehler); }
html:root .bd-tabelle tr.zwischen td,
html:root .bd-tabelle tr.zwischen:hover td { background: var(--seite); }
html:root .bd-tabelle tr.teil td,
html:root .bd-tabelle tr.teil:hover td { background: var(--subtil); }
html:root .bd-tabelle :is(td.zahl, th.zahl) { text-align: right; font-variant-numeric: lining-nums tabular-nums; }
html:root .bd-formular { gap: 16px; }
html:root .bd-formular label { gap: 6px; font-size: 13px; line-height: 19px; }
html:root .bd-fussnote { font-size: 13px; line-height: 20px; }

/* 10.7 Schmalere Fenster: Bedienleisten umbrechen, Zahlen seitlich rollen. */
@media (max-width: 1100px) {
    html:root .planmaske { grid-template-columns: minmax(0, 1fr); }
    html:root .planmaske-neben { position: static; }
}
@media (max-width: 900px) {
    html:root .pb .pb-karte { padding: 16px; }
    html:root .pb .pb-bandkarte .pb-status { margin-left: 0; }
    html:root .db-verfahren > summary { flex-wrap: wrap; }
    html:root .db-verfahren-info { white-space: normal; }
    html:root .db-ansichten { white-space: normal; }
}
@media (max-width: 600px) {
    html:root .bd-reiter > .bd-kachel { white-space: normal; padding-block: 8px; }
    html:root .bd-umschalter { margin-left: 0; }
    html:root .bd-karte-kopf { padding: 16px; }
    html:root .topf-gebucht { align-items: flex-start; min-width: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    html:root .pb .pb-knopf,
    html:root .planmaske-liste a,
    html:root :is(.bd-kachel, .bd-unterknopf, .bd-knopf) { transition: none; }
}
@media print {
    html:root :is(.pb-karte, .bd-karte, .bd-kennzahl, .bd-gruppe) { box-shadow: none; break-inside: avoid; }
    html:root .pb .pb-band :is(thead, tfoot) { --pb-y: 0px !important; }
    html:root .bd-tabelle :is(th, td) { font-size: 11px; line-height: 14px; padding: 4px 8px; }
}
