/* DocuFill: gemeinsamer Grundstil, Look A (hell, Navy #1f3a5f, Orange #c2410c, Schrift Inter).
 *
 * Verbindlich beschrieben in docufill/web/OBERFLAECHE.md. Diese Datei gehört der Grundlage.
 * Bauer ergänzen nur am Ende in einem eigenen, mit ihrem Namen kommentierten Block (rein ergänzend).
 *
 * Regeln: mobil zuerst, keine feste Breite, nie seitliches Scrollen der Seite. Schriftgrößen in rem
 * (130 % und 150 % Schrift wirken überall), Abstände in px (damit am Handy Platz für Text bleibt),
 * Knopfhöhen in rem (größere Schrift, größere Knöpfe). Keine style-Attribute: Stil nur über Klassen,
 * berechnete Werte per element.style.X (CSSOM).
 */

/* ---------- Schrift Inter (SIL OFL 1.1, siehe schriften/LIZENZ.txt), nur eigene Dateien ---------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("schriften/inter-latin-400.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: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("schriften/inter-latin-500.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;
}
/* Es gibt nur 400, 500 und 600. Die 600 steht auch für 700 und 800, damit nichts künstlich verdickt wird. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url("schriften/inter-latin-600.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;
}
/* latin-ext: ć č š ž đ ş ğ ı ł ő ű ... (Petrović, Şahin, Kovač) */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("schriften/inter-latin-ext-400.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;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("schriften/inter-latin-ext-500.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;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url("schriften/inter-latin-ext-600.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;
}

/* ---------- Tokens (Farben aus dem Muster, Look A) ---------- */
:root {
  color-scheme: light;

  /* Marke */
  --navy: #1f3a5f;
  --navy-tief: #172c48;          /* Seitenleiste der Plattform */
  --navy-text: #e3eaf3;          /* Text auf Navy */
  --navy-text-leise: #c9d5e6;    /* Unterzeile auf Navy */
  --navy-text-fuss: #a9bcd3;     /* kleiner Text unten in der Seitenleiste */
  --orange: #c2410c;
  --orange-dunkel: #9a3412;      /* Hover, Warntext */
  --orange-hell: #f6a36f;        /* Fokus auf dunklem Grund, Lückenrand */
  --orange-rand: #f6d3bd;
  --orange-rand-stark: #e0b79c;
  --orange-flaeche: #fdeee4;
  --orange-flaeche-hell: #fff4ec;
  --orange-flaeche-zart: #fffaf6;
  --orange-text: #7a2e0e;

  /* Grund und Text */
  --grund: #f4f2ee;              /* Seitenhintergrund */
  --flaeche: #ffffff;            /* Karten */
  --rand: #e4e0d8;               /* Kartenrand */
  --linie: #eee9e1;              /* Trennlinie in Listen und Tabellen */
  --rand-eingabe: #cfd6df;       /* Eingabefelder, zweite Knöpfe */
  --text: #1c2533;
  --text-2: #4a505c;
  --text-leise: #5a6577;         /* Etiketten, Unterzeilen (AA auf Weiß und Grund) */

  /* Zustände (Abzeichen, Ampel, Meldungen) */
  --ok-flaeche: #e2f3f0;  --ok-text: #0c5f55;  --ok-rand: #cfe3df;  --ok-zart: #f5fbfa;  --ok-punkt: #0f8a7a;
  --warn-flaeche: #fdeee4; --warn-text: #9a3412; --warn-punkt: #c2410c;
  --gelb-flaeche: #fbecc9; --gelb-text: #7a5200; --gelb-punkt: #c98a00;
  --info-flaeche: #eef1f5; --info-text: #1f3a5f;
  --grau-flaeche: #f0eee9; --grau-text: #4a505c; --grau-punkt: #8a92a0;
  --rot-flaeche: #fde8e6;  --rot-text: #a11d16;  --rot-punkt: #c8261c; --rot-rand: #f3c2bd;
  --gefahr: #b42318;       --gefahr-dunkel: #8f1c13;

  /* Fokus: auf hellem Grund Orange, in dunklen Bereichen hell (wird dort überschrieben) */
  --fokus: #c2410c;

  /* Schrift (rem, damit größere Schrift überall wirkt) */
  --schrift: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gr-winzig: 0.625rem;   /* 10 px: KI-Zeichen */
  --gr-xs: 0.75rem;        /* 12 px: Abzeichen, Tabellenkopf */
  --gr-s: 0.8125rem;       /* 13 px: Etikett, klein */
  --gr-m: 0.875rem;        /* 14 px: Grundtext Verwaltung */
  --gr-l: 0.9375rem;       /* 15 px: Grundtext Handy, Eingaben */
  --gr-xl: 1rem;           /* 16 px */
  --gr-titel-2: 1.0625rem; /* 17 px: Kartentitel */
  --gr-titel-handy: 1.375rem; /* 22 px: Titel am Handy */
  --gr-titel-1: 1.625rem;  /* 26 px: Seitentitel */
  --gr-zahl: 1.875rem;     /* 30 px: große Zahl */

  /* Abstände (px) */
  --abst-1: 4px; --abst-2: 6px; --abst-3: 8px; --abst-4: 10px; --abst-5: 12px;
  --abst-6: 14px; --abst-7: 16px; --abst-8: 18px; --abst-9: 20px; --abst-10: 28px; --abst-11: 32px;
  --rand-seite: 16px;            /* Seitenrand am Handy */

  /* Radien und Schatten */
  --radius-s: 6px; --radius-m: 8px; --radius-l: 12px; --radius-xl: 14px; --radius-rund: 999px;
  --schatten-papier: 0 8px 24px rgba(31, 58, 95, .08);
  --schatten-hoch: 0 20px 50px rgba(31, 58, 95, .18);

  /* Bedienbarkeit */
  --knopf-hoehe: 2.75rem;        /* 44 px bei 100 % */
  --knopf-gross: 3.5rem;         /* 56 px bei 100 % */
  --leiste-hoehe: 4.5rem;        /* wird von app.js gemessen und gesetzt */
}

/* Handy-App (app.js setzt <html class="handy">): kein Text unter 16 px bei 100 % Schrift (Gorans Messregel,
 * Gegenprüfung Handy). Die kleinen Stufen fallen dort auf 16 px zusammen; Rangfolge kommt über Gewicht, Farbe und
 * die Titelgrößen. Die Verwaltung (PC) behält 12 bis 15 px wie im Muster. */
html.handy {
  --gr-winzig: 1rem;
  --gr-xs: 1rem;
  --gr-s: 1rem;
  --gr-m: 1rem;
  --gr-l: 1rem;
}

/* ---------- Grundstil ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* unten frei: Leiste und schwebende Meldungen (--meldungen-hoehe setzt ui.js), damit nichts davon Knöpfe verdeckt */
  scroll-padding-bottom: calc(var(--leiste-hoehe) + var(--meldungen-hoehe, 0px) + 12px);
}
html.ohne-leiste { scroll-padding-bottom: calc(var(--meldungen-hoehe, 0px) + 12px); }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--schrift);
  font-size: var(--gr-m);
  line-height: 1.5;
  color: var(--text);
  background: var(--grund);
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11";
}
img, svg, video, canvas { max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, figure { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
a { color: var(--orange); text-underline-offset: 2px; }
a:hover { color: var(--orange-dunkel); }
button, input, select, textarea { font: inherit; color: inherit; }
table { border-collapse: collapse; }
[hidden] { display: none !important; }
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--fokus); outline-offset: 2px; }
/* Überschriften und Inhalt bekommen den Fokus nur zum Vorlesen nach einem Seitenwechsel: ohne Rahmen */
[tabindex="-1"]:focus, [tabindex="-1"]:focus-visible { outline: none; }
::selection { background: var(--orange-rand); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* Nur für Vorleseprogramme */
.nur-vorleser {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.sprung-link {
  position: absolute; left: 8px; top: -100px; z-index: 100; padding: 10px 14px; border-radius: var(--radius-m);
  background: var(--flaeche); color: var(--navy); font-weight: 600; box-shadow: var(--schatten-papier);
}
.sprung-link:focus { top: 8px; }

/* ---------- Text ---------- */
.titel-1 { font-size: var(--gr-titel-handy); font-weight: 800; line-height: 1.2; letter-spacing: -0.01em; }
.titel-2 { font-size: var(--gr-titel-2); font-weight: 700; line-height: 1.3; }
.titel-3 { font-size: var(--gr-l); font-weight: 700; line-height: 1.35; }
.unterzeile { color: var(--text-leise); font-size: var(--gr-m); margin-top: var(--abst-1); }
.etikett { color: var(--text-leise); font-size: var(--gr-s); overflow-wrap: anywhere; }
.klein { font-size: var(--gr-s); }
.winzig { font-size: var(--gr-xs); }
.leise { color: var(--text-leise); }
.text-2 { color: var(--text-2); }
.fett { font-weight: 600; }
.stark { font-weight: 700; }
.zahl-gross { font-size: var(--gr-zahl); font-weight: 800; line-height: 1.15; margin-top: var(--abst-2); }
.ziffern { font-variant-numeric: tabular-nums; }
.mono { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: var(--gr-xs); }
.absatz { max-width: 70ch; }
.text-ok { color: var(--ok-text); }
.text-warn { color: var(--warn-text); }
.ueberschrift-band {
  font-size: var(--gr-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--orange);
}

/* ---------- Anordnung ---------- */
.stapel { display: flex; flex-direction: column; gap: var(--abst-8); min-width: 0; }
.stapel-eng { display: flex; flex-direction: column; gap: var(--abst-4); min-width: 0; }
.stapel-mittel { display: flex; flex-direction: column; gap: var(--abst-6); min-width: 0; }
.reihe { display: flex; flex-wrap: wrap; gap: var(--abst-4); align-items: center; min-width: 0; }
.reihe-weit { display: flex; flex-wrap: wrap; gap: var(--abst-8); align-items: flex-start; min-width: 0; }
.reihe-zwischen { display: flex; flex-wrap: wrap; gap: var(--abst-5); align-items: center; justify-content: space-between; min-width: 0; }
.reihe > *, .reihe-weit > *, .reihe-zwischen > * { min-width: 0; }
.wachsen { flex: 1 1 16rem; min-width: 0; }
.raster-kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); gap: var(--abst-6); }
.raster-karten { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18.75rem), 1fr)); gap: var(--abst-6); }
.raster-personen { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12.5rem), 1fr)); gap: var(--abst-5); }
.mitte { text-align: center; align-items: center; }

/* Seitenkopf: Titel links, Knöpfe rechts (bricht am Handy um) */
.seitenkopf { display: flex; flex-wrap: wrap; gap: var(--abst-5); align-items: center; justify-content: space-between; }
.seitenkopf > :first-child { flex: 1 1 18rem; min-width: 0; }

/* ---------- Karte ---------- */
.karte {
  background: var(--flaeche); border: 1px solid var(--rand); border-radius: var(--radius-l);
  padding: var(--abst-6); min-width: 0;
}
.karte--hinweis { border-color: var(--orange-rand); background: var(--orange-flaeche-zart); }
.karte--erfolg { border-color: var(--ok-rand); background: var(--ok-zart); }
.karte--warnung { border-color: var(--orange-rand); background: var(--orange-flaeche); color: var(--orange-text); }
.karte--handy { border-radius: var(--radius-xl); padding: var(--abst-6) var(--abst-7); display: flex; flex-direction: column; gap: var(--abst-2); }
.karte--aktiv { border: 2px solid var(--orange); }
.karte--luecke {
  background: var(--orange-flaeche-hell); border: 2px solid var(--orange-hell); border-radius: var(--radius-xl);
  display: flex; flex-direction: column; gap: var(--abst-3);
}
.karte--eil { border: 2px solid var(--orange); }
.karte--papier { border-radius: var(--radius-s); box-shadow: var(--schatten-papier); font-size: var(--gr-s); line-height: 1.55; }
.karte--kachel .etikett + .zahl-gross { margin-top: var(--abst-2); }
.karte-kopf { display: flex; flex-wrap: wrap; gap: var(--abst-4); align-items: center; justify-content: space-between; }
.karte-kopf > :first-child { min-width: 0; }
.karte-fuss { display: flex; flex-wrap: wrap; gap: var(--abst-4); margin-top: var(--abst-3); }

/* ---------- Knöpfe ---------- */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--abst-3);
  min-height: var(--knopf-hoehe); padding: 6px 16px; border-radius: var(--radius-m);
  border: 1px solid var(--rand-eingabe); background: var(--flaeche); color: var(--navy);
  font-family: var(--schrift); font-size: var(--gr-m); font-weight: 600; line-height: 1.25; text-align: center;
  cursor: pointer; text-decoration: none; max-width: 100%; white-space: normal; overflow-wrap: anywhere;
  -webkit-tap-highlight-color: transparent;
}
.knopf:hover { border-color: var(--navy); color: var(--navy); }
.knopf:active { transform: translateY(1px); }
.knopf--primaer { background: var(--orange); border-color: var(--orange); color: #fff; }
.knopf--primaer:hover { background: var(--orange-dunkel); border-color: var(--orange-dunkel); color: #fff; }
.knopf--sekundaer { background: var(--flaeche); border-color: var(--rand-eingabe); color: var(--navy); }
.knopf--gefahr { background: var(--flaeche); border-color: var(--gefahr); color: var(--gefahr); }
.knopf--gefahr:hover { background: var(--gefahr); border-color: var(--gefahr); color: #fff; }
.knopf--gefahr-voll { background: var(--gefahr); border-color: var(--gefahr); color: #fff; }
.knopf--gefahr-voll:hover { background: var(--gefahr-dunkel); border-color: var(--gefahr-dunkel); color: #fff; }
.knopf--leise { background: transparent; border-color: transparent; color: var(--navy); text-decoration: underline; text-underline-offset: 3px; padding-left: 8px; padding-right: 8px; }
.knopf--leise:hover { border-color: transparent; color: var(--orange-dunkel); }
.knopf--gross { width: 100%; min-height: var(--knopf-gross); font-size: var(--gr-titel-2); border-radius: var(--radius-l); }
.knopf--voll { width: 100%; }
.knopf--symbol { padding: 6px; min-width: var(--knopf-hoehe); }
.knopf[disabled], .knopf[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }
.knopf .symbol { flex: 0 0 auto; }
.knopf-reihe { display: flex; flex-wrap: wrap; gap: var(--abst-4); align-items: center; }
.knopf-reihe > .knopf { flex: 0 1 auto; }

/* Zeile als Knopf (Liste, Tabelle) */
.zeilen-knopf {
  all: unset; box-sizing: border-box; display: block; width: 100%; cursor: pointer; border-radius: var(--radius-m);
  min-height: var(--knopf-hoehe); padding: var(--abst-5);
}
.zeilen-knopf:hover { background: var(--orange-flaeche-zart); }
.zeilen-knopf[aria-current="true"], .zeilen-knopf[aria-pressed="true"] { background: var(--orange-flaeche); }
.zeilen-knopf:focus-visible { outline: 3px solid var(--fokus); outline-offset: 2px; }
.verweis-knopf {
  all: unset; box-sizing: border-box; cursor: pointer; color: var(--navy); font-weight: 600; text-decoration: underline;
  text-underline-offset: 3px; min-height: var(--knopf-hoehe); display: inline-flex; align-items: center;
}
.verweis-knopf:focus-visible { outline: 3px solid var(--fokus); outline-offset: 2px; border-radius: 4px; }

/* Chips und Umschalter */
.chip {
  display: inline-flex; align-items: center; min-height: var(--knopf-hoehe); padding: 4px 14px; border-radius: var(--radius-rund);
  border: 1px solid var(--rand-eingabe); background: var(--flaeche); color: var(--navy);
  font-family: var(--schrift); font-size: var(--gr-s); font-weight: 600; cursor: pointer; max-width: 100%;
}
.chip[aria-pressed="true"], .chip[aria-current="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip-reihe { display: flex; flex-wrap: wrap; gap: var(--abst-3); }
.segment { display: flex; flex-wrap: wrap; gap: 4px; background: var(--grau-flaeche); border-radius: 10px; padding: 4px; }
.segment-knopf {
  all: unset; box-sizing: border-box; cursor: pointer; padding: 9px 12px; border-radius: 7px; min-height: var(--knopf-hoehe);
  display: inline-flex; align-items: center; font-size: var(--gr-s); font-weight: 600; color: var(--navy);
}
.segment-knopf[aria-pressed="true"] { background: var(--navy); color: #fff; }
.segment-knopf:focus-visible { outline: 3px solid var(--fokus); outline-offset: 2px; }

/* ---------- Abzeichen, KI-Zeichen, Ampel ---------- */
.abzeichen {
  display: inline-block; padding: 3px 9px; border-radius: var(--radius-rund); font-size: var(--gr-xs); font-weight: 600;
  line-height: 1.35; background: var(--info-flaeche); color: var(--info-text); max-width: 100%; overflow-wrap: break-word;
}
.abzeichen--ok { background: var(--ok-flaeche); color: var(--ok-text); }
.abzeichen--warn { background: var(--warn-flaeche); color: var(--warn-text); }
.abzeichen--gelb { background: var(--gelb-flaeche); color: var(--gelb-text); }
.abzeichen--info { background: var(--info-flaeche); color: var(--info-text); }
.abzeichen--grau { background: var(--grau-flaeche); color: var(--grau-text); }
.abzeichen--rot { background: var(--rot-flaeche); color: var(--rot-text); }
.ki-marke {
  display: inline-block; font-size: var(--gr-winzig); font-weight: 700; padding: 1px 6px; border-radius: 5px;
  background: var(--info-flaeche); color: var(--info-text); margin-left: 4px; vertical-align: 1px;
}
.zahl-punkt {
  display: inline-flex; align-items: center; justify-content: center; min-width: 1.25rem; height: 1.25rem; padding: 0 5px;
  border-radius: var(--radius-rund); background: var(--orange); color: #fff; font-size: var(--gr-xs); font-weight: 700; line-height: 1;
}
/* Ampel: Farbe nie allein, immer mit Wort */
.ampel { display: inline-flex; align-items: center; gap: 6px; font-size: var(--gr-xs); font-weight: 600; padding: 3px 9px 3px 7px; border-radius: var(--radius-rund); }
.ampel::before { content: ""; width: .625rem; height: .625rem; border-radius: 50%; flex: 0 0 auto; background: var(--grau-punkt); }
.ampel--gruen { background: var(--ok-flaeche); color: var(--ok-text); }
.ampel--gruen::before { background: var(--ok-punkt); }
.ampel--gelb { background: var(--gelb-flaeche); color: var(--gelb-text); }
.ampel--gelb::before { background: var(--gelb-punkt); }
.ampel--rot { background: var(--rot-flaeche); color: var(--rot-text); }
.ampel--rot::before { background: var(--rot-punkt); }
.ampel--grau { background: var(--grau-flaeche); color: var(--grau-text); }

/* ---------- Eingaben ---------- */
.feld { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.feld-label { font-size: var(--gr-s); font-weight: 600; color: var(--text-2); }
.feld-pflicht { color: var(--orange-dunkel); font-weight: 700; }
.feld-hilfe { font-size: var(--gr-s); color: var(--text-leise); }
.feld-fehler { font-size: var(--gr-s); color: var(--rot-text); font-weight: 600; }
.eingabe {
  width: 100%; min-height: var(--knopf-hoehe); padding: 8px 12px; border: 1px solid var(--rand-eingabe);
  border-radius: var(--radius-m); background: var(--flaeche); color: var(--text); font-size: max(1rem, var(--gr-l)); line-height: 1.4;
}
textarea.eingabe { min-height: 6rem; resize: vertical; }
select.eingabe { padding-right: 32px; }
.eingabe:hover { border-color: #aab4c2; }
.eingabe:focus-visible { outline: 3px solid var(--fokus); outline-offset: 1px; border-color: var(--navy); }
.eingabe[aria-invalid="true"] { border-color: var(--rot-punkt); background: #fffafa; }
.eingabe::placeholder { color: #767f8f; }
.eingabe--gross { font-size: var(--gr-titel-handy); letter-spacing: .2em; text-align: center; }
.formular { display: flex; flex-direction: column; gap: var(--abst-6); }
.formular-raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: var(--abst-6); }
.ankreuzen { display: flex; gap: var(--abst-4); align-items: flex-start; min-height: var(--knopf-hoehe); padding: 8px 0; font-size: var(--gr-m); cursor: pointer; }
.ankreuzen input { width: 1.25rem; height: 1.25rem; margin: 2px 0 0; flex: 0 0 auto; accent-color: var(--navy); }

/* Schalter (input type=checkbox role=switch) */
.schalter { display: flex; align-items: center; justify-content: space-between; gap: var(--abst-5); min-height: var(--knopf-hoehe); cursor: pointer; }
.schalter-text { min-width: 0; }
.schalter input {
  appearance: none; -webkit-appearance: none; flex: 0 0 auto; width: 3rem; height: 1.75rem; margin: 0; border-radius: var(--radius-rund);
  background: #b9c0cb; position: relative; cursor: pointer; transition: background .15s;
}
.schalter input::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: calc(1.75rem - 6px); height: calc(1.75rem - 6px);
  border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: transform .15s;
}
.schalter input:checked { background: var(--navy); }
.schalter input:checked::after { transform: translateX(1.25rem); }
.schalter input:focus-visible { outline: 3px solid var(--fokus); outline-offset: 2px; }

/* Auswahl als Kacheln (ohne Vorauswahl, für Auswahlfelder am Handy) */
.kachel-wahl { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 8rem), 1fr)); gap: var(--abst-3); }
.kachel-wahl-knopf {
  all: unset; box-sizing: border-box; cursor: pointer; min-height: var(--knopf-gross); padding: 10px 12px; border-radius: var(--radius-l);
  border: 1px solid var(--rand-eingabe); background: var(--flaeche); color: var(--navy); font-weight: 600; font-size: var(--gr-l);
  display: flex; align-items: center; justify-content: center; text-align: center; overflow-wrap: anywhere;
}
.kachel-wahl-knopf[aria-pressed="true"], .kachel-wahl-knopf[aria-checked="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.kachel-wahl-knopf:focus-visible { outline: 3px solid var(--fokus); outline-offset: 2px; }

/* ---------- Listen ---------- */
.liste { display: flex; flex-direction: column; }
.liste-eintrag { padding: var(--abst-4) 0; border-top: 1px solid var(--linie); min-width: 0; }
.liste-eintrag:first-child { border-top: 0; }
.feldzeile { padding: var(--abst-4) 0; border-top: 1px solid var(--linie); min-width: 0; }
.feldzeile:first-child { border-top: 0; }
.feldzeile-wert { font-size: var(--gr-xl); font-weight: 600; margin-top: 2px; overflow-wrap: anywhere; }
.feldzeile-wert--fehlt { color: var(--warn-text); }
.feldzeile-wert--ok { color: var(--ok-text); }
.daten-raster { display: grid; grid-template-columns: minmax(6rem, max-content) minmax(0, 1fr); gap: 6px 12px; }
.daten-raster dt { color: var(--text-leise); }
.daten-raster dd { margin: 0; overflow-wrap: anywhere; }
.verlauf { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--abst-6); }
.verlauf > li { display: flex; flex-direction: column; gap: 4px; padding-left: 14px; border-left: 3px solid var(--orange-rand); }

/* ---------- Tabelle (wird am schmalen Platz zu Karten) ---------- */
.tabelle-rahmen { container-type: inline-size; container-name: tabelle; min-width: 0; }
.tabelle { width: 100%; border-collapse: collapse; font-size: var(--gr-m); }
.tabelle th { text-align: left; color: var(--text-leise); font-size: var(--gr-xs); font-weight: 600; padding: 8px; vertical-align: bottom; }
/* break-word statt anywhere: eine Spalte wird nie schmaler als ihr längstes Wort (sonst zerfallen am PC kurze Wörter
 * wie "in Ar|bei|t"). Sehr lange Wörter bekommen Trennstellen (gemeinsam/trennen.js), damit die Tabelle passt. */
.tabelle td { padding: 11px 8px; border-top: 1px solid var(--linie); vertical-align: top; overflow-wrap: break-word; }
.tabelle tr[aria-selected="true"] td, .tabelle tr.ausgewaehlt td { background: #fff7f1; }
/* Breite Tabelle (PC): Stände, Nummern und Uhrzeiten bleiben auf einer Zeile ("in Arbeit", "A-2026-0008", "00:18").
 * In der Kartenansicht (schmal) dürfen sie umbrechen, dort ist die Spalte die halbe Karte. */
@container tabelle (min-width: 40.0625rem) {
  .tabelle .abzeichen, .tabelle .ziffern, .tabelle .ampel { white-space: nowrap; }
}
@container tabelle (max-width: 40rem) {
  .tabelle, .tabelle tbody, .tabelle tr, .tabelle td { display: block; width: 100%; }
  .tabelle thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .tabelle tr { border: 1px solid var(--rand); border-radius: var(--radius-l); background: var(--flaeche); padding: 6px 12px; margin-bottom: var(--abst-4); }
  .tabelle td { border-top: 0; padding: 6px 0; display: grid; grid-template-columns: minmax(6.5rem, 38%) minmax(0, 1fr); gap: 10px; }
  .tabelle td::before { content: attr(data-label); color: var(--text-leise); font-size: var(--gr-s); font-weight: 600; }
  .tabelle td[data-label=""]::before, .tabelle td:not([data-label])::before { content: none; }
  .tabelle td:not([data-label]), .tabelle td[data-label=""] { display: block; }
}

/* ---------- Meldungen, Leer, Laden, Fehler ---------- */
.meldung {
  display: flex; gap: var(--abst-4); align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-l);
  font-size: var(--gr-m); font-weight: 600; background: var(--info-flaeche); color: var(--info-text); border: 1px solid transparent;
}
.meldung-text { flex: 1 1 auto; min-width: 0; }
.meldung--erfolg { background: var(--ok-flaeche); color: var(--ok-text); }
.meldung--warnung { background: var(--warn-flaeche); color: var(--orange-text); border-color: var(--orange-rand); }
.meldung--fehler { background: var(--rot-flaeche); color: var(--rot-text); border-color: var(--rot-rand); }
.meldung--info { background: var(--info-flaeche); color: var(--info-text); }
.meldung .knopf { padding: 4px 10px; }
.meldungen-feld {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--leiste-hoehe) + 12px); z-index: 60;
  width: min(36rem, calc(100% - 2 * var(--rand-seite))); display: flex; flex-direction: column; gap: var(--abst-3);
  pointer-events: none;
}
html.ohne-leiste .meldungen-feld { bottom: 16px; }
.meldungen-feld > .meldung { pointer-events: auto; box-shadow: var(--schatten-hoch); }
.leer {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--abst-4);
  padding: var(--abst-10) var(--abst-7); color: var(--text-2); font-size: var(--gr-l);
  background: var(--flaeche); border: 1px dashed var(--rand-eingabe); border-radius: var(--radius-l);
}
.leer-titel { font-weight: 700; color: var(--text); font-size: var(--gr-xl); }
.laden { display: flex; align-items: center; gap: var(--abst-4); color: var(--text-2); padding: var(--abst-7) 0; font-size: var(--gr-m); }
.laden::before {
  content: ""; width: 1.25rem; height: 1.25rem; border-radius: 50%; flex: 0 0 auto;
  border: 3px solid var(--rand); border-top-color: var(--orange); animation: drehen 0.8s linear infinite;
}
@keyframes drehen { to { transform: rotate(360deg); } }
.fehler-kasten { display: flex; flex-direction: column; gap: var(--abst-4); align-items: flex-start; }
.in-arbeit { display: flex; flex-direction: column; gap: var(--abst-3); }

/* ---------- Dialog ---------- */
.dialog {
  border: 0; padding: 0; border-radius: var(--radius-xl); background: var(--flaeche); color: var(--text);
  width: min(30rem, calc(100% - 24px)); max-height: calc(100dvh - 24px); box-shadow: var(--schatten-hoch);
}
.dialog::backdrop { background: rgba(28, 37, 51, .45); }
.dialog-form { display: flex; flex-direction: column; gap: var(--abst-6); padding: var(--abst-9); }
.dialog-titel { font-size: var(--gr-titel-2); font-weight: 700; }
.dialog-text { color: var(--text-2); font-size: var(--gr-m); }
.dialog-fuss { display: flex; flex-wrap: wrap-reverse; gap: var(--abst-4); justify-content: flex-end; }

/* ---------- Symbole ---------- */
.symbol { width: 1.25rem; height: 1.25rem; flex: 0 0 auto; }
.symbol--gross { width: 1.75rem; height: 1.75rem; }
.logo { width: 1.875rem; height: 1.875rem; flex: 0 0 auto; }

/* ---------- Handy-App: Kopf, Inhalt, untere Leiste ---------- */
.app { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.kopf {
  --fokus: var(--orange-hell);
  background: var(--navy); color: #fff; padding: 20px var(--rand-seite) 14px;
  display: flex; align-items: center; justify-content: space-between; gap: var(--abst-4);
}
.kopf-text { min-width: 0; flex: 1 1 auto; }
.kopf-titel { font-weight: 800; font-size: var(--gr-titel-2); line-height: 1.25; overflow-wrap: anywhere; }
.kopf-unter { font-size: var(--gr-xs); color: var(--navy-text-leise); overflow-wrap: anywhere; }
.kopf-aktionen { display: flex; align-items: center; gap: var(--abst-3); flex: 0 0 auto; }
.kopf .knopf--symbol { background: transparent; border-color: rgba(255, 255, 255, .35); color: #fff; }
.kopf .knopf--symbol:hover { border-color: #fff; color: #fff; }
.kopf-zurueck { display: inline-flex; }
.inhalt {
  flex: 1 1 auto; width: 100%; max-width: 40rem; margin: 0 auto;
  padding: var(--abst-7) var(--rand-seite) calc(var(--leiste-hoehe) + var(--meldungen-hoehe, 0px) + 24px);
}
html.ohne-leiste .inhalt { padding-bottom: calc(var(--meldungen-hoehe, 0px) + 32px); }
.inhalt > .stapel, .inhalt-seite { display: flex; flex-direction: column; gap: var(--abst-6); }
.handy-titel { font-size: var(--gr-titel-handy); font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; }
.handy-unter { font-size: var(--gr-s); color: var(--text-leise); }
.handy-hinweis { font-size: var(--gr-s); color: var(--text-leise); }
.leiste {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: flex; background: var(--flaeche);
  border-top: 1px solid var(--rand); padding-bottom: env(safe-area-inset-bottom, 0px);
}
.leiste-knopf {
  all: unset; box-sizing: border-box; flex: 1 1 0; min-width: 0; min-height: 3.5rem; padding: 10px 4px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; cursor: pointer;
  text-align: center; font-family: var(--schrift); font-size: var(--gr-m); font-weight: 600; line-height: 1.2; color: var(--text-2);
  overflow-wrap: break-word; hyphens: manual; position: relative; /* Trennung nur an weichen Trennstellen (\u00AD) */
}
.leiste-knopf[aria-current="page"] { color: var(--orange); box-shadow: inset 0 3px 0 var(--orange); }
.leiste-knopf:focus-visible { outline: 3px solid var(--fokus); outline-offset: -3px; }
/* Zahl im Textfluss hinter dem Wort: bricht mit um, ragt nie über den Reiter (auch 360 px, 150 %, vier Reiter) */
.leiste-text { max-width: 100%; }
.leiste-knopf .zahl-punkt { vertical-align: 0.08em; white-space: nowrap; }
/* großer Aufnahmeknopf (halber Bildschirm) */
.mikro {
  all: unset; box-sizing: border-box; cursor: pointer; width: min(60vw, 15rem); aspect-ratio: 1; border-radius: 50%;
  background: var(--orange); color: #fff; display: flex; align-items: center; justify-content: center; margin: 20px auto;
  box-shadow: 0 0 0 14px rgba(194, 65, 12, .15), 0 0 0 28px rgba(194, 65, 12, .07);
}
.mikro:focus-visible { outline: 3px solid var(--navy); outline-offset: 32px; }
.mikro .symbol { width: 35%; height: 35%; }
.unterschrift-feld {
  border: 2px dashed var(--rand-eingabe); border-radius: var(--radius-l); min-height: 7rem; background: var(--flaeche);
  display: flex; align-items: center; justify-content: center; touch-action: none; position: relative;
}
.unterschrift-feld canvas { display: block; width: 100%; height: 100%; }

/* ---------- Verwaltung: Seitenleiste am PC, Menü am Handy ---------- */
.verw { container-type: inline-size; container-name: verw; min-height: 100vh; min-height: 100dvh; }
.verw-raster { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.verw-kopf {
  --fokus: var(--orange-hell);
  background: var(--navy); color: #fff; padding: 10px var(--rand-seite);
  display: flex; align-items: center; justify-content: space-between; gap: var(--abst-4);
}
.verw-marke { display: flex; align-items: center; gap: var(--abst-4); min-width: 0; }
.verw-marke-name { font-weight: 800; font-size: var(--gr-titel-2); line-height: 1.2; }
.verw-marke-firma { font-size: var(--gr-xs); color: var(--navy-text-leise); overflow-wrap: anywhere; }
.verw-kopf .knopf--symbol, .seitenleiste .knopf--symbol { background: transparent; border-color: rgba(255, 255, 255, .35); color: #fff; }
.verw-kopf .knopf--symbol:hover, .seitenleiste .knopf--symbol:hover { border-color: #fff; color: #fff; }
.verw-kopf .knopf--menue { background: transparent; border-color: rgba(255, 255, 255, .35); color: #fff; }
.seitenleiste {
  --fokus: var(--orange-hell);
  background: var(--navy); color: #fff; padding: 12px; display: flex; flex-direction: column; gap: 2px;
}
.seitenleiste--plattform { background: var(--navy-tief); }
.verw-kopf--plattform { background: var(--navy-tief); }
.seitenleiste-marke { display: none; }
.menue-liste { display: flex; flex-direction: column; gap: 2px; }
.seitenleiste-gruppe { font-size: var(--gr-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--navy-text-fuss); padding: 14px 12px 4px; }
.seitenleiste-knopf {
  all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  min-height: var(--knopf-hoehe); padding: 11px 12px; border-radius: var(--radius-m); font-size: var(--gr-m); color: var(--navy-text);
  overflow-wrap: anywhere;
}
.seitenleiste-knopf:hover { background: rgba(255, 255, 255, .08); }
.seitenleiste-knopf[aria-current="page"] { background: var(--orange); color: #fff; font-weight: 600; }
.seitenleiste-knopf:focus-visible { outline: 3px solid var(--fokus); outline-offset: 2px; }
.seitenleiste-knopf .zahl-punkt { background: #fff; color: var(--orange-dunkel); }
.seitenleiste-fuss { margin-top: auto; padding: 18px 8px 4px; font-size: var(--gr-xs); color: var(--navy-text-fuss); display: flex; flex-direction: column; gap: 6px; }
.seitenleiste-fuss .knopf { background: transparent; border-color: rgba(255, 255, 255, .35); color: #fff; align-self: flex-start; }
.seitenleiste-fuss .knopf:hover { border-color: #fff; }
.verw-inhalt { flex: 1 1 auto; min-width: 0; padding: 18px var(--rand-seite) calc(40px + var(--meldungen-hoehe, 0px)); display: flex; flex-direction: column; gap: var(--abst-9); }
.verw-inhalt .titel-1 { font-size: var(--gr-titel-handy); }
/* Handy: Seitenleiste ist das ausklappbare Menü unter dem Kopf */
.verw:not(.menue-offen) .seitenleiste { display: none; }

@container verw (min-width: 48rem) {
  .verw-raster { flex-direction: row; }
  .verw-kopf { display: none; }
  .verw:not(.menue-offen) .seitenleiste, .seitenleiste {
    display: flex; flex: 0 0 15rem; width: 15rem; padding: 24px 16px; position: sticky; top: 0;
    height: 100vh; height: 100dvh; overflow-y: auto;
  }
  .seitenleiste-marke { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 8px 22px; }
  .verw-inhalt { padding: 28px 32px calc(48px + var(--meldungen-hoehe, 0px)); }
  .verw-inhalt .titel-1 { font-size: var(--gr-titel-1); }
  .karte { padding: var(--abst-8) var(--abst-9); }
  .karte--handy { padding: var(--abst-6) var(--abst-7); }
  .zahl-gross { font-size: var(--gr-zahl); }
}

/* Menü-Knopf, Glocke, Gastmodus (Anmelden, Einrichten: ohne Menü, schmal und mittig) */
.knopf--menue { background: transparent; border-color: rgba(255, 255, 255, .35); color: #fff; }
.knopf--menue:hover { border-color: #fff; color: #fff; }
.glocke-platz:empty { display: none; }
/* Kopf am Handy: Glocke und Menü immer nebeneinander, nie übereinander (Rückmeldung Goran 16.11.2026). Wird es eng
 * (schmales Handy oder große Schrift, rem wächst mit), zeigt der Menü-Knopf nur das Symbol; sein Name bleibt "Menü". */
.verw-kopf > .reihe { flex: 0 0 auto; flex-wrap: nowrap; gap: var(--abst-3); }
.verw-kopf > .verw-marke { flex: 1 1 auto; }
@container verw (max-width: 24rem) {
  .verw-kopf .knopf--menue { padding: 6px; min-width: var(--knopf-hoehe); }
  .verw-kopf .knopf--menue > span { display: none; }
}
.verw--gast .seitenleiste, .verw--gast .knopf--menue, .verw--gast .glocke-platz { display: none !important; }
.verw--gast .verw-raster { flex-direction: column !important; }
.verw--gast .verw-kopf { display: flex !important; }
.verw--gast .verw-inhalt { width: 100%; max-width: 34rem; margin: 0 auto; }

/* ---------- Druck ---------- */
@media print {
  .leiste, .seitenleiste, .verw-kopf, .kopf-aktionen, .meldungen-feld { display: none !important; }
  body { background: #fff; }
  .karte { break-inside: avoid; }
}

/* ===================================================================================================
 * Ergänzungen der Bauer: je ein Block am Ende, eingeleitet mit einem Kommentar "Bauer <name>".
 * Nur neue Klassen mit eigenem Präfix (app_kern .ak-, app_puffer .ap-, verw_ablauf .va-, verw_stamm .vs-,
 * verw_plattform .vp-), nichts Bestehendes ändern oder überschreiben.
 * =================================================================================================== */

/* ---------- Bauer verw_plattform (Firmen, Not-Aus und Last, Sicherung, Datenschutz-Zentrale, Datenschutz,
 * Nachweise). Nur Klassen mit Präfix .vp-, nur Tokens. Anfang Block verw_plattform ---------- */
.vp-kopf-text { flex: 1 1 18rem; min-width: 0; }
.vp-eng { gap: 2px; align-items: flex-start; }
.vp-liste { margin: 0; padding: 0; list-style: none; }
.vp-suche { align-items: flex-end; }
.vp-suche > .knopf { flex: 0 0 auto; }
.vp-textblock { color: var(--text-2); font-size: var(--gr-m); display: flex; flex-direction: column; gap: var(--abst-3); }
.vp-aufklapp { border-top: 1px solid var(--linie); }
.vp-aufklapp:first-child { border-top: 0; }
.vp-aufklapp > summary {
  display: flex; align-items: center; gap: var(--abst-3); min-height: var(--knopf-hoehe); padding: 6px 0;
  cursor: pointer; font-weight: 600; color: var(--navy); list-style: none;
}
.vp-aufklapp > summary::-webkit-details-marker { display: none; }
.vp-aufklapp > summary::before {
  content: ""; flex: 0 0 auto; width: .5rem; height: .5rem; border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor; transform: rotate(-45deg); margin: 0 4px;
}
.vp-aufklapp[open] > summary::before { transform: rotate(45deg); }
.vp-aufklapp > summary:focus-visible { outline: 3px solid var(--fokus); outline-offset: 2px; border-radius: var(--radius-s); }
.vp-aufklapp > .vp-textblock { padding: 0 0 var(--abst-5); }
/* Protokoll: Zeit, Aktion, wer und was, Nummer (wie die Protokollzeilen im Muster) */
.vp-protokoll { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.vp-protokoll-zeile {
  display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 10px 0; border-top: 1px solid var(--linie);
  font-size: var(--gr-m); min-width: 0;
}
.vp-protokoll-zeile:first-child { border-top: 0; }
.vp-zeit { flex: 0 0 auto; min-width: 3rem; }
.vp-was { flex: 0 1 14rem; min-width: 0; }
.vp-text { flex: 1 1 14rem; min-width: 0; overflow-wrap: anywhere; }
.vp-nr { flex: 0 0 auto; }
/* Zeile mit Schaltern (wie die Zeilen der Assistenten im Muster) */
.vp-zeile { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; padding: 14px 0; border-top: 1px solid var(--linie); min-width: 0; }
.vp-zeile:first-child { border-top: 0; }
.vp-zeile-haupt { flex: 1 1 14rem; min-width: 0; }
.vp-schalter { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; flex: 0 1 auto; min-width: 0; }
/* Tabellen (Hilfe tabelle() in _vp_hilfe.js): schmal als ruhige Liste in der Karte statt Karten in der Karte */
@container tabelle (max-width: 40rem) {
  .vp-tabelle .tabelle thead { display: none; }
  .vp-tabelle .tabelle tr {
    border: 0; border-top: 1px solid var(--linie); border-radius: 0; background: transparent; padding: 10px 0; margin: 0;
  }
  .vp-tabelle .tabelle tr:first-child { border-top: 0; }
  .vp-tabelle .tabelle td.vp-zelle-titel, .vp-tabelle .tabelle td.vp-zelle-voll { display: block; }
  .vp-tabelle .tabelle td.vp-zelle-titel::before, .vp-tabelle .tabelle td.vp-zelle-voll::before { content: none; }
  .vp-tabelle .tabelle td.vp-zelle-titel { font-size: var(--gr-l); padding-bottom: 2px; }
  .vp-tabelle .tabelle td > .abzeichen, .vp-tabelle .tabelle td > .ampel { justify-self: start; align-self: start; }
}
/* Ende Block verw_plattform */

/* ---------- Bauer verw_stamm (Kunden und Anlagen, Aufträge und Einsätze, Mitarbeiter und Geräte, Teams und Profile,
 * Formulare und Briefpapier, Einstellungen, Sicherheit und Konto). Nur neue Klassen mit .vs-, nur Tokens. ---------- */
.vs-kopf-text { flex: 1 1 14rem; min-width: 0; }
.vs-meldung-platz { display: flex; flex-direction: column; gap: var(--abst-3); }
.vs-meldung-platz:empty { display: none; }
.vs-spaeter { max-width: 70ch; }
.vs-nur-schmal { display: block; }
/* Liste links, Inhalt rechts (Muster Kunden); am Handy nacheinander */
.vs-geteilt { display: flex; flex-wrap: wrap; gap: var(--abst-8); align-items: flex-start; min-width: 0; }
.vs-geteilt-liste { flex: 1 1 17rem; min-width: 0; display: flex; flex-direction: column; gap: var(--abst-5); }
.vs-geteilt-detail { flex: 2 1 26rem; min-width: 0; display: flex; flex-direction: column; gap: var(--abst-7); }
@container verw (width < 48rem) {
  .vs-geteilt--detail > .vs-geteilt-liste { display: none; }
  .vs-geteilt--liste > .vs-geteilt-detail { display: none; }
}
@container verw (min-width: 48rem) {
  .vs-nur-schmal { display: none; }
}
/* Bezeichnung über dem Wert, solange es schmal ist (sonst bricht der Wert mitten im Wort) */
@container verw (width < 40rem) {
  .vs-daten { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .vs-daten dd { margin-bottom: var(--abst-4); }
}
.vs-liste-karte { padding: var(--abst-2); }
.vs-zeilen { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.vs-zeile-titel { display: block; font-weight: 700; overflow-wrap: anywhere; }
.vs-zeile-unter { display: block; font-size: var(--gr-s); font-weight: 400; color: var(--text-leise); overflow-wrap: anywhere; }
.vs-segment { align-self: flex-start; max-width: 100%; }
.vs-suche .eingabe { max-width: 100%; }
.vs-seiten { display: flex; flex-wrap: wrap; gap: var(--abst-4); align-items: center; justify-content: space-between; }
.vs-kunde-name { font-size: 1.25rem; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.vs-notiz { white-space: pre-line; }
.vs-objekt { padding-top: var(--abst-6); border-top: 1px solid var(--linie); }
.karte-kopf + .vs-objekt { padding-top: 0; border-top: 0; }
.vs-bericht-zeile { display: flex; flex-wrap: wrap; gap: var(--abst-1) var(--abst-5); }
.zeilen-knopf.vs-bericht-zeile { display: flex; }
.vs-umbruch { overflow-wrap: anywhere; }
.vs-min-breite { min-width: var(--knopf-hoehe); justify-content: center; }
.vs-markiert { box-shadow: inset 0 0 0 2px var(--orange-hell); }
.vs-bericht-datum { flex: 0 0 auto; min-width: 5.5rem; }
.vs-mit-symbol { display: inline-flex; gap: var(--abst-3); align-items: flex-start; }
.vs-karten-reihe { display: flex; flex-wrap: wrap; gap: var(--abst-8); align-items: flex-start; min-width: 0; }
.vs-karten-reihe > .karte { flex: 1 1 20rem; }
.vs-wert-zeile { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--abst-1) var(--abst-5); }
/* Dialoge mit Formular */
.vs-dialog { overflow-y: auto; }
.vs-dialog--breit { width: min(40rem, calc(100% - 24px)); }
.vs-dialog-meldung { display: flex; flex-direction: column; gap: var(--abst-3); }
.vs-dialog-meldung:empty { display: none; }
.vs-gruppe { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.vs-gruppe > legend { padding: 0; margin-bottom: var(--abst-2); }
.vs-treffer { list-style: none; margin: 0; padding: 2px; display: flex; flex-direction: column; gap: 2px; max-height: 16rem;
  overflow-y: auto; border: 1px solid var(--linie); border-radius: var(--radius-m); }
.vs-treffer:empty { display: none; }
.vs-gewaehlt:empty { display: none; }
.vs-gewaehlt-zeile { display: flex; flex-wrap: wrap; gap: var(--abst-4); align-items: center; justify-content: space-between;
  padding: var(--abst-4) var(--abst-5); border: 1px solid var(--orange-rand); border-radius: var(--radius-m); background: var(--orange-flaeche-zart); }
.vs-link-feld { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: var(--gr-s); }
.vs-qr-bild { display: block; width: 12rem; height: 12rem; padding: 6px; background: #fff; border: 1px solid var(--rand);
  border-radius: var(--radius-m); image-rendering: pixelated; }
/* Wochenplan der Einsätze (Muster: Einsätze · KW 46) */
.vs-plan-heute { color: var(--orange); }
.vs-plan-name { font-weight: 700; }
@container tabelle (min-width: 40rem) {
  .vs-plan { table-layout: fixed; }
  .vs-plan thead th:first-child { width: 9rem; }
}
.vs-plan-zelle { display: flex; flex-direction: column; gap: var(--abst-2); min-width: 0; }
.vs-plan-eintrag {
  all: unset; box-sizing: border-box; display: block; width: 100%; min-height: 3.5rem; padding: 8px; cursor: pointer;
  border-radius: var(--radius-m); background: var(--ok-flaeche); color: var(--ok-text); font-size: var(--gr-s); line-height: 1.35;
  overflow-wrap: anywhere;
}
.vs-plan-eintrag--warn { background: var(--orange-flaeche); color: var(--orange-text); }
.vs-plan-eintrag--grau { background: var(--grau-flaeche); color: var(--grau-text); }
.vs-plan-eintrag--info { background: var(--info-flaeche); color: var(--info-text); }
.vs-plan-eintrag:hover { box-shadow: inset 0 0 0 1px currentColor; }
.vs-plan-eintrag:focus-visible { outline: 3px solid var(--fokus); outline-offset: 2px; }
.vs-plan-eintrag .vs-zeile-unter { color: inherit; }
@container tabelle (width < 40rem) {
  .tabelle td.vs-leer { display: none; }
  /* Kartenansicht: die Bezeichnungen stehen an jedem Wert (data-label), der Kopf entfällt ganz
   * (der 1-px-Kopf der Grundlage gilt in messen() sonst als abgeschnitten) */
  .vs-tabelle .tabelle thead { display: none; }
  /* Wochenplan als Karte: Tag über den Einsätzen, damit Namen nicht mitten im Wort brechen */
  .vs-plan td { display: block; }
  .vs-plan td::before { display: block; margin-bottom: var(--abst-1); }
}
/* Logo, Ablage, Formularfelder */
.vs-logo-platz { width: 4rem; height: 4rem; flex: 0 0 auto; border-radius: 10px; background: var(--grau-flaeche); display: flex;
  align-items: center; justify-content: center; font-size: var(--gr-xs); color: var(--text-leise); overflow: hidden; }
.vs-logo-platz img { max-width: 100%; max-height: 100%; object-fit: contain; }
.vs-ablage { border: 2px dashed var(--orange-rand-stark); border-radius: var(--radius-l); padding: var(--abst-10) var(--abst-9);
  background: var(--orange-flaeche-zart); display: flex; flex-direction: column; gap: var(--abst-3); align-items: center; text-align: center; }
.vs-ablage-titel { font-weight: 700; font-size: var(--gr-xl); }
.vs-aufklappen > summary { cursor: pointer; min-height: var(--knopf-hoehe); display: flex; align-items: center; gap: var(--abst-3);
  font-weight: 600; color: var(--navy); border-radius: var(--radius-m); }
.vs-aufklappen > summary:focus-visible { outline: 3px solid var(--fokus); outline-offset: 2px; }
.vs-aufklappen[open] > summary { margin-bottom: var(--abst-3); }
.vs-formular-zeile { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--abst-1) var(--abst-5); align-items: baseline; }
.vs-schrift-wahl { align-self: flex-start; }
.vs-datei-knopf { cursor: pointer; }
.vs-datei-eingabe:focus-visible + .vs-datei-knopf { outline: 3px solid var(--fokus); outline-offset: 2px; }
/* Tabellen des Bauers: Wörter nicht mitten im Wort trennen (Spaltenbreite), Inhalt mittig zur Zeile */
.vs-tabelle .tabelle td { overflow-wrap: break-word; }
@container tabelle (min-width: 40rem) {
  .vs-tabelle .tabelle td { vertical-align: middle; }
  .vs-tabelle .vs-plan td { vertical-align: top; }
}
/* Ende Block verw_stamm */

/* ---------- Bauer app_puffer: Verbindung, Anzeige im Kopf, Hinweis "Neue Version" ---------- */
.ap-kopf { position: relative; }
.ap-kopf-zahl { position: absolute; top: -8px; right: 0; pointer-events: none; }
.ap-kopf.ap-kopf--fehler { background: var(--orange); border-color: var(--orange); color: #fff; }
.ap-kopf.ap-kopf--fehler .ap-kopf-zahl { background: var(--flaeche); color: var(--orange-dunkel); }
.ap-kopf--sendet .symbol { animation: ap-pochen 1.4s ease-in-out infinite; }
@keyframes ap-pochen { 50% { opacity: .45; } }
.ap-meldungen:empty { display: none; }
.ap-eintrag { display: flex; flex-direction: column; gap: var(--abst-2); }
.ap-erklaerung { font-size: var(--gr-s); color: var(--text-2); overflow-wrap: anywhere; }
.ap-fehlertext { font-size: var(--gr-s); font-weight: 600; color: var(--rot-text); overflow-wrap: anywhere; }
.ap-neu { width: 100%; max-width: 40rem; margin: 0 auto; padding: var(--abst-4) var(--rand-seite) 0; }
.ap-neu-meldung { align-items: center; flex-wrap: wrap; }

/* ---------- Bauer verw_ablauf (Anmelden, Einrichten, Heute, Freigaben, Prüf-Eingang, Berichte, Postausgang,
 * Assistenten und Not-Aus, Eilmeldung, Glocke). Nur Klassen mit Präfix .va-, nur Tokens. ---------- */
.va-abstand-oben { margin-top: var(--abst-3); }
/* leerer Live-Bereich: bleibt für Vorleser da, nimmt aber keinen Abstand im Stapel */
.va-leer-weg:empty { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); margin: 0; padding: 0; }
.va-block { display: block; }
.va-nowrap { white-space: nowrap; }
/* Nummern (A-2026-0008, B-2026-0002, Prüfcode) nie am Bindestrich umbrechen, siehe gemeinsam/trennen.js */
.nummer-ganz { white-space: nowrap; }
/* In Tabellenzellen (am Handy Karten mit schmaler Wertspalte) darf eine Nummer umbrechen, wenn sie allein nicht in
   die Spalte passt (360 px, 150 %: 106 px Spalte, Nummer 124 px); sonst würde sie abgeschnitten. */
.tabelle .nummer-ganz { white-space: normal; }
.va-voll { flex: 1 1 100%; }
.va-umbruch { overflow-wrap: anywhere; white-space: pre-line; }
.va-wachsen { flex: 1 1 auto; }
.va-text-ok { color: var(--ok-text); }
.va-gross-text { font-size: var(--gr-l); }
.va-kopf-text { flex: 1 1 16rem; min-width: 0; }
.va-liste-schlicht { list-style: none; margin: 0; padding: 0; }
.va-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.va-liste > li { padding: var(--abst-4) 0; border-top: 1px solid var(--linie); min-width: 0; }
.va-liste > li:first-child { border-top: 0; }
.va-aufgabe { display: flex; flex-wrap: wrap; gap: var(--abst-3) var(--abst-6); align-items: center; }
.va-aufgabe-text { flex: 1 1 16rem; min-width: 0; overflow-wrap: anywhere; }
.va-karten-titel { font-size: var(--gr-xl); font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.va-erklaerung { line-height: 1.55; }
.va-text { color: var(--text); }
.va-raster-zelle { display: flex; min-width: 0; }
.va-raster-zelle > .karte { flex: 1 1 auto; }
/* Anmelden und Einrichten */
/* Element+Klasse, damit der Listen-Reset ul[class], ol[class] { padding: 0 } nicht gewinnt (Nachprüfung 15.11.:
   Punkte und Ziffern standen im Kartenrand). */
ol.va-schritte { list-style: decimal outside; padding-left: 1.25rem; }
ul.va-gruende { list-style: disc outside; padding-left: 1.1rem; }
.va-raster-rahmen { container-type: inline-size; container-name: va-papier; }
.va-schritte { margin: 0; padding-left: 1.25rem; display: flex; flex-direction: column; gap: var(--abst-2); color: var(--text-2); }
.va-qr-rahmen { display: flex; justify-content: center; padding: var(--abst-5); background: var(--flaeche); border: 1px solid var(--rand); border-radius: var(--radius-l); }
.va-qr { width: min(13.5rem, 100%); height: auto; aspect-ratio: 1; image-rendering: pixelated; background: #fff; }
.va-geheimnis { font-size: var(--gr-l); letter-spacing: .08em; padding: var(--abst-4) var(--abst-5); background: var(--grau-flaeche); border-radius: var(--radius-m); overflow-wrap: anywhere; word-break: break-all; }
/* Heute */
.va-lage { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 8.5rem), 1fr)); gap: var(--abst-5); }
.va-lage-kachel { display: flex; flex-direction: column; gap: var(--abst-2); min-width: 0; padding: var(--abst-5) var(--abst-6); border: 1px solid var(--rand); border-radius: var(--radius-l); background: var(--flaeche); text-align: left; color: var(--text); font: inherit; }
.va-lage-kachel--knopf { cursor: pointer; min-height: var(--knopf-hoehe); }
.va-lage-kachel--knopf:hover { border-color: var(--orange-rand-stark); background: var(--orange-flaeche-zart); }
.va-lage-wert { font-size: var(--gr-titel-handy); font-weight: 800; line-height: 1.15; overflow-wrap: anywhere; }
.va-zahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr)); gap: var(--abst-5); margin-top: var(--abst-5); }
.va-zahl-ok { font-size: var(--gr-titel-1); font-weight: 800; color: var(--ok-text); line-height: 1.15; }
.va-person { border: 1px solid var(--rand); border-radius: 10px; padding: var(--abst-5) var(--abst-6); display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.va-person .reihe { margin-top: var(--abst-3); }
/* Freigabe-Karten */
.va-freigabe { display: flex; flex-direction: column; gap: var(--abst-3); }
.va-gruende { margin: 0; padding-left: 1.1rem; display: flex; flex-direction: column; gap: 2px; color: var(--text-2); font-size: var(--gr-s); }
.va-unterschied { background: var(--grau-flaeche); border-radius: var(--radius-m); padding: var(--abst-4) var(--abst-5); display: flex; flex-direction: column; gap: var(--abst-2); }
.va-unterschied-zeile { font-size: var(--gr-s); overflow-wrap: anywhere; padding: 2px 0; }
.va-vorher { text-decoration: line-through; color: var(--text-leise); }
.va-nachher { font-weight: 600; color: var(--ok-text); }
/* Prüf-Eingang */
.va-pruef { display: flex; flex-wrap: wrap; gap: var(--abst-5) var(--abst-8); align-items: center; }
.va-pruef-text { flex: 1 1 18rem; min-width: 0; display: flex; flex-direction: column; gap: var(--abst-3); }
/* Berichte */
.va-suche { display: flex; gap: var(--abst-3); align-items: center; flex: 0 1 22rem; min-width: 0; }
.va-suche .eingabe { flex: 1 1 auto; min-width: 0; }
.va-filter { padding-top: 0; padding-bottom: 0; }
.va-filter[open] { padding-bottom: var(--abst-6); }
.va-summary { cursor: pointer; min-height: var(--knopf-hoehe); display: flex; align-items: center; font-weight: 600; color: var(--navy); }
.va-summary:focus-visible { outline: 3px solid var(--fokus); outline-offset: 2px; border-radius: 4px; }
.va-tabelle-karte { padding: var(--abst-3) var(--abst-5); }
.va-zweiteilig { display: flex; flex-direction: column; gap: var(--abst-8); min-width: 0; }
.va-liste-teil, .va-detail-teil { min-width: 0; }
.va-mit-detail .va-liste-teil { display: none; }
.va-papier { padding: var(--abst-6); container-type: inline-size; container-name: va-papier; }
.va-papier-kopf { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--abst-4); border-bottom: 2px solid var(--orange); padding-bottom: var(--abst-4); }
.va-papier-kopf > :first-child { flex: 1 1 12rem; min-width: 0; }
.va-raster { display: grid; grid-template-columns: minmax(6rem, 36%) minmax(0, 1fr); gap: 6px 12px; margin: 0; }
.va-raster dt { color: var(--text-leise); overflow-wrap: anywhere; min-width: 0; }
.va-raster dd { margin: 0; overflow-wrap: anywhere; min-width: 0; }
@container va-papier (max-width: 26rem) {
  .va-raster { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .va-raster dd { margin-bottom: var(--abst-4); }
}
.va-kurzliste { display: flex; flex-direction: column; gap: var(--abst-2); }
.va-kurzzeile { border: 1px solid var(--rand); background: var(--flaeche); display: flex; flex-direction: column; gap: 2px; }
.va-papier-titel { font-size: var(--gr-xl); font-weight: 800; overflow-wrap: anywhere; }
.va-papier-rechts { text-align: right; }
.va-abschnitt { font-size: var(--gr-s); font-weight: 700; color: var(--text-2); margin-top: var(--abst-7); margin-bottom: var(--abst-3); text-transform: uppercase; letter-spacing: .05em; }
.va-feldwert { overflow-wrap: anywhere; white-space: pre-line; }
.va-fotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 8rem), 1fr)); gap: var(--abst-3); }
.va-foto { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-m); border: 1px solid var(--rand); background: var(--grau-flaeche); }
.va-nachtrag { border-color: var(--orange-rand); }
.va-nachtrag-zeile { padding-bottom: var(--abst-4); border-bottom: 1px solid var(--linie); }
.va-feldgruppe { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: var(--abst-2); }
.va-unterschrift { padding: var(--abst-3) var(--abst-4); border-left: 3px solid var(--ok-rand); }
/* Assistenten und Not-Aus */
.va-notaus { border: 2px solid var(--gefahr); display: flex; flex-direction: column; gap: var(--abst-6); }
.va-notaus--an { background: var(--rot-flaeche); }
.va-notaus-raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: var(--abst-6); }
.va-legende { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: var(--abst-4) var(--abst-8); font-size: var(--gr-s); color: var(--text-2); }
.va-gruppe { padding-bottom: var(--abst-2); }
.va-agent { display: flex; flex-wrap: wrap; gap: var(--abst-4) var(--abst-8); align-items: center; padding: var(--abst-6) 0; border-top: 1px solid var(--linie); margin-top: var(--abst-4); }
.va-agent-text { flex: 1 1 18rem; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.va-agent-name { font-size: var(--gr-l); font-weight: 700; }
.va-agent-zahl { flex: 0 1 10rem; min-width: 0; }
.va-segment-gesperrt { color: var(--text-leise); font-weight: 500; }
.va-protokoll { display: flex; flex-wrap: wrap; gap: var(--abst-1) var(--abst-6); align-items: baseline; }
.va-protokoll-zeit { flex: 0 0 auto; min-width: 3rem; }
.va-protokoll-wer { flex: 0 1 11rem; min-width: 0; }
.va-protokoll-was { flex: 1 1 14rem; min-width: 0; }
/* Glocke */
.va-glocke-huelle { position: relative; display: inline-flex; }
.va-glocke-zahl { position: absolute; top: -6px; right: -6px; pointer-events: none; }
.va-glocke--eil { background: var(--orange) !important; border-color: var(--orange) !important; color: #fff !important; }
.va-glocke-dialog { overflow-y: auto; }
.va-hinweis { display: flex; flex-direction: column; gap: var(--abst-2); padding: var(--abst-5); border: 1px solid var(--rand); border-radius: var(--radius-l); min-width: 0; }
.va-hinweis--neu { background: var(--orange-flaeche-zart); }
.va-hinweis--eil { border: 2px solid var(--orange); }
.va-nur-schmal { display: flex; }
.va-nur-breit-block { display: none; }
@container verw (min-width: 48rem) {
  .va-nur-breit-block { display: block; }
  .va-nur-schmal-block { display: none; }
}
@container tabelle (max-width: 40rem) {
  .va-tabellenkopf { display: none; }
}
@container verw (min-width: 48rem) {
  .va-papier { padding: var(--abst-9); }
}
@container verw (min-width: 72rem) {
  .va-zweiteilig.va-mit-detail { flex-direction: row; align-items: flex-start; }
  .va-mit-detail .va-liste-teil { display: flex; flex: 2 1 0; }
  .va-mit-detail .va-detail-teil { flex: 3 1 0; }
  .va-nur-schmal { display: none; }
}

/* ---------- Bauer app_kern (Handy-App: Heute, Einsatz, Bericht, Sprechen, Rückfragen, Fotos, Kundenansicht,
 * Unterschrift, Fertig, Meine Berichte, Ich, Hilfe, Notdienst, Eilmeldung, Team, Freigabe, Meldungen) ---------- */
.ak-kopf { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ak-kopf-zeile { display: flex; flex-wrap: wrap; gap: var(--abst-3); align-items: center; justify-content: space-between; min-width: 0; }
.ak-liste { list-style: none; margin: 0; padding: 0; }
.ak-voll { width: 100%; min-width: 0; }
.ak-voll:empty { display: none; }
.ak-mitte { align-items: center; text-align: center; }
/* zentrierte Kinder nie breiter als die Seite (sonst schiebt ein langes Wort wie ein Kundenname sie hinaus) */
.ak-mitte > * { max-width: 100%; }
.ak-eng { gap: var(--abst-2); }
.ak-oben-abstand { margin-top: var(--abst-5); }
.ak-abstand-links { margin-left: var(--abst-3); }
.ak-trenner { border-top: 1px solid var(--linie); padding-top: var(--abst-6); }
.ak-kunde-name { font-size: var(--gr-titel-2); font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.ak-text { font-size: var(--gr-m); color: var(--text-2); overflow-wrap: anywhere; }
.ak-quelle { font-size: var(--gr-xs); color: var(--text-leise); overflow-wrap: anywhere; }
.ak-zeit { font-weight: 700; font-variant-numeric: tabular-nums; }
.ak-tel { font-variant-numeric: tabular-nums; }
.ak-angaben { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; margin: 0; }
.ak-angaben dt { font-size: var(--gr-s); color: var(--text-leise); margin-top: var(--abst-4); }
.ak-angaben dt:first-child { margin-top: 0; }
.ak-angaben dd { margin: 0; font-weight: 600; font-size: var(--gr-l); overflow-wrap: anywhere; }
.ak-angaben dd .knopf { margin-top: 2px; }
.ak-rest { white-space: pre-line; overflow-wrap: anywhere; font-size: var(--gr-l); }
.ak-erinnerung { font-size: var(--gr-s); color: var(--orange-text); background: var(--orange-flaeche-hell); border-radius: var(--radius-m); padding: 8px 10px; }
.ak-rot { border: 2px solid var(--rot-punkt); }
.ak-wahl-karte { display: flex; flex-direction: column; gap: 2px; text-align: left; }
.ak-wahl-karte:hover { background: var(--orange-flaeche-zart); }
.ak-aufklapp {
  all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: var(--abst-4);
  width: 100%; min-height: var(--knopf-hoehe); font-weight: 600; color: var(--navy); overflow-wrap: anywhere; border-radius: var(--radius-s);
}
.ak-aufklapp-zeichen::after { content: "+"; font-size: var(--gr-titel-2); font-weight: 600; line-height: 1; color: var(--orange); }
.ak-aufklapp-zeichen { flex: 0 0 auto; }
.ak-aufklapp[aria-expanded="true"] .ak-aufklapp-zeichen::after { content: "\2212"; }
.ak-aufklapp:focus-visible { outline: 3px solid var(--fokus); outline-offset: 2px; }
.ak-aufklapp-karte { display: flex; flex-direction: column; gap: var(--abst-3); }
.ak-aufklapp-karte.karte--handy { padding-top: var(--abst-2); padding-bottom: var(--abst-2); }
.ak-aufklapp-inhalt { padding-bottom: var(--abst-4); }
.ak-zwei { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 8.5rem), 1fr)); gap: var(--abst-4); }
/* Felder mit Ampel */
.ak-felder-karte { gap: 0; }
.ak-feld-knopf {
  all: unset; box-sizing: border-box; display: block; width: 100%; cursor: pointer; border-radius: var(--radius-m);
  min-height: var(--knopf-hoehe); padding: 2px 4px; margin: 0 -4px; width: calc(100% + 8px);
}
.ak-feld-knopf:hover { background: var(--orange-flaeche-zart); }
.ak-feld-knopf:focus-visible { outline: 3px solid var(--fokus); outline-offset: 2px; }
.ak-feld-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; font-size: var(--gr-xs); color: var(--text-leise); }
.ak-feld-kopf .ki-marke { margin-left: 0; }
.ak-pflicht { font-size: var(--gr-xs); font-weight: 600; color: var(--orange-dunkel); }
.ak-feld-fuss { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 4px; }
.ak-wert-normal { font-size: var(--gr-xl); }
.ak-weitere { margin-top: var(--abst-3); border-top: 1px solid var(--linie); padding-top: var(--abst-2); }
.ak-material-zeile { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 7rem), 1fr)); gap: var(--abst-3); align-items: end;
  padding-bottom: var(--abst-4); border-bottom: 1px solid var(--linie); }
.ak-material-was { grid-column: 1 / -1; }
/* Lückenkarte, Rückfragen */
.ak-luecke-titel { font-size: var(--gr-titel-2); font-weight: 800; line-height: 1.3; overflow-wrap: anywhere; }
.ak-frage { font-size: var(--gr-xl); font-weight: 600; overflow-wrap: anywhere; }
/* Aufnahme */
.ak-aufnahme { display: flex; flex-direction: column; align-items: center; gap: var(--abst-5); width: 100%; min-width: 0; text-align: center; }
.ak-laufzeit { font-weight: 700; color: var(--orange); font-variant-numeric: tabular-nums; }
.ak-pegel { width: min(16rem, 100%); height: 8px; border-radius: var(--radius-rund); background: var(--grau-flaeche); overflow: hidden; }
.ak-pegel-balken { height: 100%; width: 100%; background: var(--orange); transform-origin: left center; transform: scaleX(0); transition: transform .08s linear; }
.mikro.ak-mikro-klein { width: min(40vw, 9rem); margin: 8px auto 14px; }
.ak-mikro-laeuft { animation: ak-puls 1.6s ease-in-out infinite; }
@keyframes ak-puls {
  0%, 100% { box-shadow: 0 0 0 14px rgba(194, 65, 12, .15), 0 0 0 28px rgba(194, 65, 12, .07); }
  50% { box-shadow: 0 0 0 18px rgba(194, 65, 12, .22), 0 0 0 34px rgba(194, 65, 12, .09); }
}
.ak-sprechen .ak-aufnahme .knopf--gross { max-width: 100%; }
/* Fotos */
.ak-foto-raster { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 9rem), 1fr)); gap: var(--abst-4); }
.ak-foto { display: flex; flex-direction: column; gap: var(--abst-2); min-width: 0; }
.ak-foto-bild { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-m); background: var(--grau-flaeche); }
.ak-foto-fehlt { font-size: var(--gr-s); color: var(--rot-text); padding: var(--abst-4); background: var(--rot-flaeche); border-radius: var(--radius-m); }
.ak-datei { position: relative; }
.ak-datei-eingabe { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); }
.ak-datei-label { width: 100%; }
.ak-datei-eingabe:focus-visible + .ak-datei-label { outline: 3px solid var(--fokus); outline-offset: 2px; }
/* Kundenansicht und Unterschrift: große Schrift für den Kunden */
.ak-kunde { font-size: var(--gr-xl); line-height: 1.6; }
.ak-kunde .handy-titel { font-size: var(--gr-titel-1); }
.ak-kunde .handy-unter { font-size: var(--gr-m); }
.ak-kunde .knopf--sekundaer, .ak-kunde .knopf--leise { font-size: var(--gr-l); }
.ak-kunde-kurz { font-size: 1.1875rem; line-height: 1.6; }
.ak-kunde-kurz .etikett { font-size: var(--gr-s); font-weight: 600; }
.ak-kunde-klein { font-size: var(--gr-m); color: var(--text-2); }
.ak-kunde-satz { font-size: var(--gr-l); color: var(--text); }
.ak-kunden-felder { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; margin: 0; }
.ak-kunden-felder dt { font-size: var(--gr-s); color: var(--text-leise); margin-top: var(--abst-4); }
.ak-kunden-felder dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.ak-fuer-mich { border-style: dashed; }
/* Höhe an den freien Platz gekoppelt: im Querformat (740 x 360) bei 150 % Schrift passt das Feld ganz ins Bild */
.ak-unterschrift { height: clamp(8rem, calc(100dvh - var(--leiste-hoehe) - 7rem), 13rem); align-items: stretch;
  justify-content: stretch; overflow: hidden; }
.ak-unterschrift::after {
  content: ""; position: absolute; left: 8%; right: 8%; bottom: 26%; border-bottom: 1px solid var(--rand-eingabe); pointer-events: none;
}
/* object-fit: nach dem Drehen zeigt das Feld die ganze Unterschrift (eingepasst), siehe unterschrift.js */
.ak-leinwand { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; touch-action: none; z-index: 1;
  object-fit: contain; }
.ak-unterschrift-platzhalter {
  position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); text-align: center; color: var(--text-leise);
  font-size: var(--gr-xl); pointer-events: none;
}
/* Fertig */
.ak-fertig-symbol { width: 5.25rem; height: 5.25rem; }
.ak-haken-liste { list-style: none; margin: 0; width: 100%; text-align: left; gap: 0; }
/* Die Liste ist zugleich die Karte (Muster .pc: 14 px 16 px). Der Listen-Reset ul[class] { padding: 0 } wiegt
 * schwerer als .karte--handy allein, deshalb beide Klassen (Nachprüfung 15.11.: Haken 1 px vom Kartenrand). */
.ak-haken-liste.karte--handy { padding: var(--abst-6) var(--abst-7); }
.ak-haken-liste li { display: flex; gap: 10px; padding: 6px 0; font-size: var(--gr-l); }
.ak-haken { color: var(--ok-text); font-weight: 800; flex: 0 0 auto; }
.ak-fertig .knopf--gross { max-width: 100%; }
.ak-fertig .ak-kopf-zeile { justify-content: center; } /* "Fertig" mittig wie im Muster */
/* Hilfe, Einladung */
.ak-schritte { margin: 0; padding-left: 1.4rem; display: flex; flex-direction: column; gap: var(--abst-4); }
.ak-schritte li { display: flex; flex-direction: column; gap: 2px; }
.ak-art13 p + p { margin-top: var(--abst-4); }
.ak-art13 { font-size: var(--gr-m); line-height: 1.55; }
/* App auf den Startbildschirm (_ak_installieren.js). Element+Klasse gegen den Listen-Reset ol[class]. */
ol.ak-install-schritte { list-style: decimal outside; padding-left: 1.4rem; margin: 0; }
ol.ak-install-schritte li + li { margin-top: var(--abst-2); }
.ak-install .eingabe { width: 100%; }
/* Ende Bauer app_kern */

/* ---------- Firmenwechsel im Verbund (gemeinsam/verbund.js) ----------
 * Verwaltung: Block oben in der Seitenleiste (am PC unter dem Firmennamen, am Handy oben im Menü). Der Kopf mit
 * Glocke und Menü bleibt unverändert (Brett-Karte #32). Handy-App: Karte auf "Ich" und Firmenzeile auf "Heute". */
.verbund-platz { display: flex; flex-direction: column; gap: var(--abst-3); padding: 4px 8px 14px; }
.verbund-platz[hidden] { display: none; }
.verbund-jetzt { display: flex; flex-direction: column; gap: 2px; font-size: var(--gr-xs); color: var(--navy-text-leise); }
.verbund-jetzt-firma { font-size: var(--gr-m); font-weight: 700; color: #fff; overflow-wrap: anywhere; }
.seitenleiste .verbund-schalter { background: transparent; border-color: rgba(255, 255, 255, .35); color: #fff; }
.seitenleiste .verbund-schalter:hover { border-color: #fff; color: #fff; }
@container verw (min-width: 48rem) {
  .verbund-platz { padding: 0 8px 18px; margin-top: -8px; }
  .verbund-jetzt-firma { display: none; } /* steht am PC schon oben als Firmenname */
}
.verbund-liste { display: flex; flex-direction: column; gap: var(--abst-3); max-height: 60dvh; overflow-y: auto; padding: 2px; }
.knopf.verbund-knopf { flex-direction: column; align-items: flex-start; justify-content: center; text-align: left; gap: 2px; padding: 10px 14px; }
.verbund-knopf-firma { font-weight: 700; font-size: var(--gr-m); }
.verbund-knopf-branche { font-weight: 400; font-size: var(--gr-s); color: var(--text-2); }
/* Zwei Klassen: .karte--handy stellt sonst auf Spalte (Name links, Knopf rechts oder darunter) */
.karte--handy.ak-firma-zeile { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--abst-3); text-align: left; }
.ak-firma-zeile > p { flex: 1 1 10rem; min-width: 0; overflow-wrap: anywhere; }
.ak-firma-zeile > .knopf { flex: 0 0 auto; }
.ak-firma-name { display: block; font-weight: 700; }
.ak-verbund-liste { display: flex; flex-direction: column; gap: var(--abst-3); }
.ak-verbund-liste .verbund-knopf { min-height: var(--knopf-gross); }
.ak-verbund-liste .verbund-knopf-firma { font-size: var(--gr-l); }
.ak-firma-branche { display: block; }
/* Ende Firmenwechsel */

/* Testzugang-Anfragen der Plattform (verwaltung/seiten/anfragen.js, pflege/VERTRAG.md 16.8.4, Nachprüfung 16.14).
 * Nur Klassen mit Präfix .tz-: keine andere Seite nutzt sie, alle anderen Seiten bleiben, wie sie sind. */
/* Kontaktzeile wie Fonocare „Name · E-Mail · Telefon“ (14,5 px): eine Schriftgröße, Links ohne Seitenabstand, 44 px hoch */
.tz-kontakt { display: flex; flex-wrap: wrap; align-items: center; column-gap: .5rem; row-gap: 0; min-width: 0;
  font-size: .90625rem; line-height: 1.4; }
.tz-kontakt > * { min-width: 0; overflow-wrap: anywhere; }
.tz-kontakt-teil { display: inline-flex; align-items: center; column-gap: .5rem; min-width: 0; max-width: 100%; }
.tz-kontakt-teil > * { min-width: 0; }
.tz-kontakt-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--navy); text-align: left;
  text-decoration: underline; text-underline-offset: 3px; }
@media (hover: hover) { .tz-kontakt-link:hover { color: var(--orange-dunkel); } }
.tz-trenner { color: var(--text-leise); }
/* E-Mail-Adressen: keine Trennstriche (trennen.js lässt .tz-adresse aus), Umbruch vor „@“ und vor Punkten (<wbr>),
 * erst danach an beliebiger Stelle; linksbündig */
.tz-adresse { overflow-wrap: anywhere; hyphens: none; text-align: left; }
/* Langer Name in einer schmalen Spalte: bricht um statt die Seite breiter zu machen */
.tz-umbruch { overflow-wrap: anywhere; min-width: 0; max-width: 100%; }
/* Ende Testzugang-Anfragen */

/* Zugang zurücksetzen, Durchlauf 5 Teil A (pflege/VERTRAG.md 18.4.7): Wiederherstellungscodes (_va_codes.js, Einrichtung
 * und „Sicherheit und Konto“), Weg mit Code im Code-Schritt, Dialog „Zugang zurücksetzen“, Zugänge der Plattform. Nur
 * Klassen mit Präfix .va-codes, .va-code, .va-weg, .va-zugang, .va-verlust, .va-kontakt, .va-handy, .va-wechsel. */
.va-codes-liste {
  list-style: none; margin: 0; padding: var(--abst-5) var(--abst-6); display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 10.5rem), 1fr)); gap: var(--abst-2) var(--abst-8);
  background: var(--grau-flaeche); border-radius: var(--radius-m); font-size: var(--gr-l); letter-spacing: .06em;
}
.va-codes-liste:empty { display: none; }
.va-code { white-space: nowrap; hyphens: none; }
.va-codes-knoepfe > .knopf { flex: 1 1 12rem; }
.va-codes .ankreuzen { font-weight: 600; }
.va-weg-knopf { align-self: flex-start; text-align: left; justify-content: flex-start; min-height: var(--knopf-hoehe); }
.va-weg-knopf[hidden] { display: none; }
.va-code-eingabe { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; text-transform: uppercase;
  letter-spacing: .08em; }
.va-verlust { overflow-wrap: anywhere; }
.va-kontakt-link { color: var(--navy); font-weight: 600; text-decoration: underline; text-underline-offset: 3px;
  white-space: nowrap; } /* nie über zwei Zeilen: sonst trifft die Mitte des Links den Text daneben */
.va-handy-verloren { max-width: 60ch; }
.va-zugang-dialog { overflow-y: auto; width: min(36rem, calc(100% - 24px)); }
.va-zugang-arten .ankreuzen { align-items: flex-start; }
.va-zugang-warnung { margin: 0; }
.va-zugang-ergebnis .vs-link-feld { min-width: 0; }
.va-zugaenge-zeile > td { padding: var(--abst-3) 0 var(--abst-6); }
.va-zugaenge { background: var(--flaeche); }
.va-zugaenge-liste .liste-eintrag { align-items: flex-start; }
.va-zugang-person { flex: 1 1 16rem; min-width: 0; }
.va-zugang-person > p { margin: 0; overflow-wrap: anywhere; }
.va-wechsel .va-qr { width: min(12rem, 100%); }
/* Ende Zugang zurücksetzen */

/* Durchlauf 5, Teil B und C (pflege/VERTRAG.md 18.5.4, 18.6.6, 18.6.7): Löschen eines Testzugangs (anfragen.js) und Weg
 * der Mails (postausgang.js, firmen.js). Nur Klassen mit Präfix .vp-loeschen und .va-weg. */
.vp-loeschen-dialog { overflow-y: auto; width: min(36rem, calc(100% - 24px)); }
.vp-loeschen-dialog .dialog-text { overflow-wrap: anywhere; }
.vp-loeschen-am { overflow-wrap: anywhere; }
.va-weg-stand { flex-wrap: wrap; row-gap: var(--abst-1); min-width: 0; }
.va-weg-kundenmail { overflow-wrap: anywhere; min-width: 0; max-width: 100%; }
/* Ende Löschen und Weg der Mails */

/* Eigene Formulare aus Papier, Durchlauf 5 Teil D (pflege/VERTRAG.md 18.9.9): Karte unter „Formulare und Briefpapier“
 * und Editor (#formular-editor). Nur Klassen mit Präfix .vf-. Am PC ab 64rem Blatt links (höchstens 60 %), Bearbeitung
 * rechts; darunter einspaltig, Blatt in voller Breite. Farben: eigene Felder Blau, Kopf Grün, Unterschrift Orange,
 * Vorschläge gestrichelt grau. */
.vf-liste-zeile { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--abst-3) var(--abst-6); }
.vf-liste-text { display: flex; flex-wrap: wrap; align-items: center; gap: var(--abst-2) var(--abst-4); flex: 1 1 16rem; min-width: 0; }
.vf-hochladen .reihe { flex-wrap: wrap; row-gap: var(--abst-3); }
.vf-seite { min-width: 0; }
.vf-editor { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--abst-8); align-items: start; min-width: 0; }
@container verw (min-width: 64rem) {
  .vf-editor { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
  .vf-blatt-spalte { position: sticky; top: var(--abst-5); }
}
.vf-blatt-spalte, .vf-bearbeiten-spalte { min-width: 0; }
.vf-hinweis { margin: 0; overflow-wrap: anywhere; }
.vf-blatt {
  position: relative; width: 100%; aspect-ratio: 0.7071; background: var(--flaeche); border: 1px solid var(--rand-eingabe);
  border-radius: var(--radius-s); overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none;
}
.vf-blatt[tabindex="-1"] { touch-action: auto; }
.vf-blatt:focus-visible { outline: 3px solid var(--fokus); outline-offset: 2px; }
.vf-bild { display: block; width: 100%; height: 100%; object-fit: fill; pointer-events: none; }
.vf-ebene { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.vf-blatt[tabindex="0"] .vf-ebene { cursor: crosshair; }
.vf-feld { fill: rgba(31, 58, 95, .10); stroke: #1d4ed8; stroke-width: 2; cursor: move; }
.vf-feld--eigen { fill: rgba(29, 78, 216, .12); stroke: #1d4ed8; }
.vf-feld--kopf { fill: rgba(15, 138, 122, .14); stroke: #0c5f55; }
.vf-feld--unterschrift { fill: rgba(194, 65, 12, .12); stroke: var(--orange); }
.vf-feld--gewaehlt { stroke-width: 3; stroke-dasharray: 6 3; }
.vf-feld--neu { fill: rgba(29, 78, 216, .08); stroke: #1d4ed8; stroke-dasharray: 4 3; pointer-events: none; }
.vf-vorschlag { fill: rgba(90, 101, 119, .06); stroke: #5a6577; stroke-width: 1.5; stroke-dasharray: 5 4; pointer-events: none; }
.vf-griff { fill: #ffffff; stroke: var(--navy); stroke-width: 2; pointer-events: none; }
.vf-griff-flaeche { fill: transparent; stroke: none; }
.vf-griff-flaeche[data-griff="nw"], .vf-griff-flaeche[data-griff="so"] { cursor: nwse-resize; }
.vf-griff-flaeche[data-griff="no"], .vf-griff-flaeche[data-griff="sw"] { cursor: nesw-resize; }
.vf-blatt[tabindex="-1"] .vf-feld { cursor: default; }
.vf-seitenwahl { display: flex; flex-wrap: wrap; align-items: center; gap: var(--abst-3) var(--abst-5); }
.vf-seitenwahl[hidden] { display: none; }
.vf-seite-text { font-weight: 600; }
.vf-lage { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 7.5rem), 1fr)); gap: var(--abst-3) var(--abst-5); }
.vf-lage .feld { min-width: 0; }
.vf-vorschlag-zeile { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--abst-3) var(--abst-5); }
.vf-vorschlag-text { display: flex; flex-direction: column; flex: 1 1 12rem; min-width: 0; overflow-wrap: anywhere; }
.vf-feld-knopf { text-align: left; overflow-wrap: anywhere; min-width: 44px; }
.vf-zeile--gewaehlt > td { background: var(--orange-flaeche-zart); }
/* Liste der Felder schmal als Karten: der Tabellenkopf entfällt (jede Zelle trägt ihr Etikett), wie .vp-tabelle */
@container tabelle (max-width: 40rem) { .vf-felder .tabelle thead { display: none; } }
.vf-knoepfe { flex-wrap: wrap; }
/* Ende eigene Formulare */

/* Nacharbeit Durchlauf 5 (VERTRAG.md 18.13): Tätigkeitsprofile im Freigeben-Dialog, Löschdatum auf den Anmeldeseiten,
 * Drucken der Wiederherstellungscodes */
.vf-profile { display: flex; flex-direction: column; gap: var(--abst-3); min-width: 0; }
.vf-profile .feld { margin: 0; }
.va-daten-text { margin: 0; overflow-wrap: anywhere; }
@media print {
  body.va-druck-codes > *:not(.va-druck) { display: none !important; }
  body.va-druck-codes .va-druck { display: block !important; color: #000; background: #fff; }
}
.va-druck { display: none; }
.va-druck h1 { font-size: 16pt; margin: 0 0 8pt; }
.va-druck p { font-size: 11pt; margin: 0 0 8pt; }
.va-druck ul { list-style: none; padding: 0; margin: 0 0 8pt; font-family: ui-monospace, monospace; font-size: 14pt; line-height: 1.6; }
/* Ende Nacharbeit */
