/* Oberfläche der Plattform, Stil A „Klar wie Langdock“.
   Werte und Bausteine in docs/DESIGN.md, Ton und Zielgruppe in docs/PRODUCT.md.
   Weiße Arbeitsfläche, links eine ruhige Seitenleiste, ein einziger Akzent.
   Hell ist in dieser Runde der einzige Modus. */

:root {
  color-scheme: light;

  /* Grundfarben */
  --grund: oklch(100% 0 0);
  --flaeche: oklch(98.4% 0.002 275);
  --flaeche-2: oklch(96.6% 0.003 275);
  --linie: oklch(92.4% 0.004 275);
  --linie-stark: oklch(87% 0.006 275);
  --text: oklch(24% 0.012 275);
  --text-leise: oklch(52% 0.010 275);
  --text-still: oklch(64% 0.008 275);

  /* Ein Akzent, sonst keiner */
  --akzent: oklch(52% 0.14 275);
  --akzent-dunkel: oklch(45% 0.14 275);
  --akzent-hell: oklch(96.5% 0.022 275);
  --akzent-linie: oklch(89% 0.045 275);

  /* Zustände: immer Punkt plus Wort */
  --laeuft: oklch(58% 0.105 155);
  --wartet: oklch(66% 0.115 72);
  --ruht: oklch(74% 0.008 275);

  /* Fehler und Löschen */
  --fehler: oklch(52% 0.17 28);

  --r-s: 6px;
  --r-m: 8px;
  --r-l: 12px;
  --r-voll: 999px;

  --seitenleiste: 248px;

  --schrift: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* Ältere Browser ohne OKLCH bekommen neutrale Werte, nicht nichts. */
@supports not (color: oklch(50% 0 0)) {
  :root {
    --grund: #fff; --flaeche: #fafafb; --flaeche-2: #f2f3f6; --linie: #e6e7ec; --linie-stark: #d5d7de;
    --text: #2b2c34; --text-leise: #6c6e7a; --text-still: #8b8d98;
    --akzent: #5b53c4; --akzent-dunkel: #4a43ad; --akzent-hell: #f1f0fc; --akzent-linie: #ddd9f5;
    --laeuft: #3f9161; --wartet: #c08327; --ruht: #babcc4; --fehler: #b3341f;
  }
}

/* ---------------------------------------------------------------- Grund */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--grund); color: var(--text);
  font-family: var(--schrift); font-size: 14.5px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--akzent); text-decoration: underline; text-underline-offset: .15em; text-decoration-thickness: 1px; }
a:hover { color: var(--akzent-dunkel); }
:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; border-radius: 4px; }
code { font-family: var(--mono); font-size: .88em; background: var(--flaeche-2); padding: .08em .35em; border-radius: 4px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; letter-spacing: -.01em; }
h1 { font-size: 23px; font-weight: 600; }
h2 { font-size: 16.5px; font-weight: 600; }
h3 { font-size: 15px; font-weight: 600; }
h4 { font-size: 13px; font-weight: 600; color: var(--text-still); text-transform: uppercase; letter-spacing: .06em; }
p { margin: 0 0 .75rem; max-width: 68ch; }
ul { margin: .25rem 0; padding-left: 1.2rem; }
.klein { color: var(--text-leise); font-size: 13px; line-height: 1.5; }
.warn { color: var(--wartet); font-style: normal; }
em.warn { font-style: normal; }
.gefahr-text { color: var(--fehler); }
.mono { font-family: var(--mono); font-size: .92em; }
[hidden] { display: none !important; }

/* ============================================================== Rahmen */
.app { display: flex; min-height: 100vh; }

/* ------------------------------------------------------------ Seitenleiste */
.seite {
  width: var(--seitenleiste); flex: none;
  background: var(--flaeche); border-right: 1px solid var(--linie);
  display: flex; flex-direction: column; gap: 2px;
  padding: 18px 12px 12px; position: sticky; top: 0; height: 100vh;
}
.logo { display: flex; align-items: center; gap: 9px; padding: 2px 8px 18px; color: var(--text); text-decoration: none; }
.logo:hover { color: var(--text); }
.logo .zeichen {
  width: 26px; height: 26px; border-radius: 7px; flex: none;
  background: var(--akzent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; letter-spacing: -.02em;
}
.logo .worte { min-width: 0; }
.logo b { display: block; font-size: 14px; font-weight: 600; letter-spacing: -.01em; line-height: 1.25; }
.logo span { display: block; font-size: 11.5px; color: var(--text-still); line-height: 1.3;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seite-oben { display: flex; align-items: flex-start; gap: 2px; }
.seite-oben .logo { flex: 1; min-width: 0; padding-right: 0; }
.leiste-knopf {
  flex: none; width: 30px; height: 30px; min-height: 0; padding: 0;
  color: var(--text-still); background: transparent; border: 1px solid transparent;
}
.leiste-knopf:hover { color: var(--text); background: var(--flaeche-2); border-color: transparent; }
.js .leiste-knopf { display: inline-flex; }
.leiste-knopf { display: none; }

/* Eingeklappte Seitenleiste: nur Symbole. Die Wörter bleiben für Vorleser im DOM. */
.leiste-schmal { --seitenleiste: 60px; }
/* Sichtbarer Überlauf, sonst schneidet die schmale Leiste das Kontomenü ab
   (auf den zentralen Seiten scrollt sie sonst mit overflow-y: auto). */
html.leiste-schmal .seite { padding: 18px 8px 12px; overflow: visible; }
.leiste-schmal .seite-oben { flex-direction: column; align-items: center; gap: 10px; margin-bottom: 14px; }
.leiste-schmal .logo { flex: none; padding: 2px 0 0; }
.leiste-schmal .logo .worte, .leiste-schmal .seite .nav-wort, .leiste-schmal .nav .gruppentitel, .leiste-schmal .konto-text {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.leiste-schmal .seite .wahl { display: none; }
.leiste-schmal .nav a { justify-content: center; padding: 8px 0; }
.leiste-schmal .navgruppe + .navgruppe { border-top: 1px solid var(--linie); padding-top: 12px; }
.leiste-schmal .seite .app-knopf { justify-content: center; margin: 0 0 12px; padding: 5px 0; width: 100%; }
.leiste-schmal .konto-menue > summary { justify-content: center; padding: 8px 0; }
.leiste-schmal .konto-menue > summary .pfeil { display: none; }
.leiste-schmal .konto-menue > div { right: auto; width: 240px; }

/* Arbeitsplatz-Wähler: <details>, kommt ohne JS aus */
.wahl { margin: 0 0 14px; }
.wahl > summary {
  list-style: none; cursor: pointer; user-select: none;
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border: 1px solid var(--linie); border-radius: var(--r-m);
  background: var(--grund); font-size: 13.5px; font-weight: 500; color: var(--text);
}
.wahl > summary::-webkit-details-marker { display: none; }
.wahl > summary:hover { border-color: var(--linie-stark); }
.wahl > summary .was { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wahl > summary .vor { font-size: 11px; color: var(--text-still); font-weight: 400; display: block; letter-spacing: .06em; text-transform: uppercase; }
.wahl > summary .pfeil { flex: none; color: var(--text-still); transition: transform .15s ease-out; }
.wahl[open] > summary .pfeil { transform: rotate(180deg); }
.wahlliste { margin: 4px 0 0; padding: 4px; border: 1px solid var(--linie); border-radius: var(--r-m); background: var(--grund); }
.wahlliste a {
  display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: var(--r-s);
  font-size: 13.5px; color: var(--text); text-decoration: none;
}
.wahlliste a:hover { background: var(--flaeche-2); color: var(--text); }
.wahlliste a[aria-current] { background: var(--akzent-hell); color: var(--akzent-dunkel); font-weight: 500; }
.wahlliste a .n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wahlliste a .w { font-size: 12px; color: var(--text-still); }
.wahlliste .neu { border-top: 1px solid var(--linie); margin-top: 4px; padding-top: 6px; color: var(--text-leise); }
/* Unternehmens-Wähler: dieselbe Liste, aber jede Zeile ist ein Formular-POST. */
.unwahl { margin-bottom: 8px; }
.wahlliste form { margin: 0; }
.wahlliste form > button.text {
  display: flex; align-items: center; gap: 9px; width: 100%; min-height: 0; padding: 6px 8px;
  border-radius: var(--r-s); font-size: 13.5px; font-weight: 400; color: var(--text-leise); text-align: left;
}
.wahlliste form > button.text:hover { background: var(--flaeche-2); color: var(--text); }
.wahlliste form > button.text[aria-current] { background: var(--akzent-hell); color: var(--akzent-dunkel); font-weight: 500; }
.wahlliste form > button.text .n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wahlliste form > button.text .w { font-size: 12px; color: var(--text-still); }
.wahlliste .unsuche { display: flex; gap: 6px; padding: 4px 4px 8px; border-bottom: 1px solid var(--linie); margin-bottom: 4px; }
.wahlliste .unsuche input { flex: 1; min-width: 0; }

/* Einträge */
.nav { display: flex; flex-direction: column; }
.navgruppe { display: flex; flex-direction: column; gap: 2px; margin-bottom: 18px; }
.navgruppe:last-child { margin-bottom: 0; }
.nav .gruppentitel {
  font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-still); margin: 0 0 6px; padding: 0 10px; max-width: none;
}
.nav a .zahl { margin-left: auto; font-size: 12px; color: var(--text-still); }
.nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 10px; border-radius: var(--r-s);
  font-size: 14px; color: var(--text-leise); text-decoration: none;
}
.nav a:hover { background: var(--flaeche-2); color: var(--text); }
.nav a .ic { flex: none; color: var(--text-still); }
.nav a[aria-current] { background: var(--akzent-hell); color: var(--akzent-dunkel); font-weight: 500; }
.nav a[aria-current] .ic { color: var(--akzent); }
/* „Agenten“ mit den eigenen Arbeitsplätzen darunter (Fall 314). */
.nav-zeile { display: flex; align-items: center; gap: 2px; }
.nav-zeile > a { flex: 1; min-width: 0; }
.nav-klapp { flex: none; display: none; width: 26px; height: 26px; min-height: 0; padding: 0; color: var(--text-still); background: transparent; border: 1px solid transparent; }
.js .nav-klapp { display: inline-grid; place-items: center; }
.nav-klapp:hover { color: var(--text); background: var(--flaeche-2); border-color: transparent; }
.nav-klapp .pfeil { transition: transform .15s ease-out; }
.nav-agenten-zu [data-nav-agenten] .pfeil, .nav-apps-zu [data-nav-apps] .pfeil { transform: rotate(-90deg); }
/* Die eigenen Apps unter „Apps“ (A1) in derselben Bauart, eigener Klappzustand. */
.nav-agenten, .nav-apps { display: flex; flex-direction: column; gap: 1px; margin: 0 0 2px 17px; padding-left: 6px; border-left: 1px solid var(--linie); }
.nav-agenten-zu .nav-agenten, .nav-apps-zu .nav-apps, .leiste-schmal .nav-agenten, .leiste-schmal .nav-apps, .leiste-schmal .nav-klapp { display: none; }
.nav-agent { display: flex; align-items: center; min-width: 0; }
.nav .nav-agent > a { flex: 1; min-width: 0; padding: 5px 8px; font-size: 13.5px; }
.nav-agent > a .n { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-menue > summary { width: 26px; height: 26px; font-size: 16px; color: var(--text-still); }
/* Fest am Fenster (Lage setzt das Skript): absolut schnitte die scrollende Leiste
   das Menü ab. .nav davor, sonst gewinnt die spätere Regel .zeilenmenue > div. */
.nav .nav-menue > div { position: fixed; right: auto; top: auto; width: 220px; }
/* Die klebende Leiste ist ein eigener Stapelkontext; ohne das läge das offene
   Menü unter der Chatliste daneben. */
.seite:has(.nav-menue[open]) { z-index: 45; }

.wer {
  margin-top: auto; border-top: 1px solid var(--linie); padding: 12px 8px 4px;
  display: flex; align-items: center; gap: 9px;
}
.wer .kreis {
  width: 26px; height: 26px; border-radius: var(--r-voll); flex: none;
  background: var(--flaeche-2); border: 1px solid var(--linie-stark);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600; color: var(--text-leise);
}
/* Der Nutzerblock führt zum eigenen Konto (U7): Name, Passwort, zweiter Faktor. */
.wer .mitte { flex: 1; min-width: 0; text-decoration: none; color: inherit; border-radius: var(--r-s); padding: 2px 4px; margin: -2px -4px; }
.wer .mitte:hover { background: var(--flaeche-2); }
.wer .mitte[aria-current] .name { color: var(--akzent); }
/* Am Handy steht dafür ein kleiner Kreis im Kopf, die Seitenleiste ist dort weg. */
.hkopf .konto {
  flex: none; width: 30px; height: 30px; border-radius: var(--r-voll);
  background: var(--flaeche-2); border: 1px solid var(--linie-stark);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600; color: var(--text-leise); text-decoration: none;
}
.hkopf .konto[aria-current] { color: var(--akzent); border-color: currentColor; }
/* Die Wiederherstellungscodes: groß genug zum Abschreiben, in einer Spalte. */
pre.codes {
  margin: 0; padding: 12px 14px; background: var(--flaeche-2); border: 1px solid var(--linie);
  border-radius: var(--r-m); font-size: 15px; line-height: 1.8; letter-spacing: .06em;
  user-select: all; overflow-x: auto;
}
/* Der QR-Code beim Einrichten des zweiten Faktors. */
.qr { margin: 0 0 14px; }
.qr svg { width: 220px; height: 220px; max-width: 100%; border: 1px solid var(--linie); border-radius: var(--r-m); background: #fff; }
.wer .name { display: block; font-size: 13px; font-weight: 500; line-height: 1.25;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wer .mail { display: block; font-size: 11px; color: var(--text-still); line-height: 1.3;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wer form { margin: 0; }
.seitenfuss { margin-top: auto; padding-top: 20px; }
.seitenfuss .app-knopf { margin: 0 4px 12px; }
.konto-menue { position: relative; border-top: 1px solid var(--linie); padding-top: 8px; font-size: 13px; }
.konto-menue > summary { display: flex; gap: 10px; align-items: center; padding: 10px 8px; cursor: pointer; list-style: none; border-radius: var(--r-m); }
.konto-menue > summary::-webkit-details-marker { display: none; }
.konto-menue > summary:hover { background: var(--flaeche-2); }
.konto-kreis { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--linie-stark); border-radius: 50%; background: var(--grund); color: var(--text-leise); font-size: 11px; }
.konto-text { flex: 1; min-width: 0; }.konto-text b,.konto-text small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.konto-text b { font-weight: 500; }.konto-text small { margin-top: 2px; font-size: 12px; color: var(--text-leise); }
.konto-menue > div { position: absolute; bottom: calc(100% + 4px); left: 0; right: 0; padding: 6px; background: var(--grund); border: 1px solid var(--linie-stark); border-radius: var(--r-m); box-shadow: 0 4px 18px oklch(24% .012 275 / .08); z-index: 30; }
.konto-menue a,.konto-menue button { display: block; width: 100%; padding: 10px; border: 0; border-radius: var(--r-s); background: transparent; color: var(--text); text-align: left; text-decoration: none; font-size: 13px; font-weight: 400; }
.konto-menue a:hover,.konto-menue button:hover { background: var(--flaeche); }.konto-menue a[aria-current] { color: var(--akzent); background: var(--akzent-hell); }
.konto-adresse { padding: 8px 10px; margin: 0; font-size: 12px; color: var(--text-leise); overflow-wrap: anywhere; border-bottom: 1px solid var(--linie); }
.konto-menue form { margin: 4px 0 0; border-top: 1px solid var(--linie); padding-top: 4px; }
.wer .aus {
  border: none; background: none; padding: 4px; min-height: 0; color: var(--text-still);
  border-radius: var(--r-s);
}
.wer .aus:hover { background: var(--flaeche-2); color: var(--text); border: none; }

/* „App installieren“: unten in der Seitenleiste über der Nutzerzeile, am Handy
   klein im Kopf. Das Skript blendet ihn nur ein, wo Installieren geht. */
.seite .app-knopf { margin: auto 4px 10px; justify-content: flex-start; color: var(--text-leise); }
.seite .app-knopf .ic, .hkopf .app-knopf .ic { flex: none; color: var(--text-still); }
.seite .app-knopf:not([hidden]) + .wer { margin-top: 0; }
.hkopf .app-knopf { flex: none; min-height: 32px; padding: 5px 9px; gap: 5px; color: var(--text-leise); }
/* Daneben der Käfer fürs Feedback (Fall 307). Der schwebende Knopf des Widgets
   bleibt aus, sobald das Skript den Käfer bereitgestellt hat (Klasse fb-eigen). */
.fuss-knoepfe { display: flex; align-items: center; gap: 6px; margin: 0 4px 12px; }
.fuss-knoepfe:not(:has(> :not([hidden]))) { display: none; }
.seitenfuss .fuss-knoepfe .app-knopf { margin: 0; }
.fb-knopf { flex: none; margin-left: auto; min-height: 0; padding: 5px 7px; color: var(--text-leise); }
.fb-knopf .ic { flex: none; color: var(--text-still); }
.fb-knopf:hover .ic { color: var(--text); }
/* Ein Fall läuft: der Käfer wird rot, die Schrittzahl steht im Tooltip. */
.fb-knopf[data-fall], .fb-knopf[data-fall] .ic { color: var(--fehler); }
.fb-knopf[data-fall] { border-color: color-mix(in oklch, var(--fehler) 40%, var(--grund)); }
.leiste-schmal .fuss-knoepfe { flex-direction: column; margin: 0 0 12px; }
.leiste-schmal .seite .fuss-knoepfe .app-knopf { margin: 0; }
.leiste-schmal .fb-knopf { margin-left: 0; width: 100%; justify-content: center; }
.fb-eigen button[data-fb-placeholder] { display: none !important; }
ol.schritte { margin: 0; padding-left: 1.3rem; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
ol.schritte li { padding-left: 2px; }

/* ---------------------------------------------------------- Arbeitsfläche */
.flaeche { flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--grund); }

.oben {
  display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap;
  padding: 14px 32px; border-bottom: 1px solid var(--linie);
}
.oben .krume { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0; font-size: 13px; color: var(--text-leise); max-width: none; }
.oben .krume a { color: var(--text-leise); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.oben .krume a:hover { color: var(--akzent); }
.oben .krume .hier { color: var(--text); font-weight: 500; }
.oben .krume .teiler { color: var(--linie-stark); }
.oben .rechts { margin-left: auto; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.oben > .zustand { flex: none; }
.oben .adresse { font-size: 13px; color: var(--text-still); text-decoration: none; }
.oben .adresse:hover { color: var(--akzent); }
.oben .rechts form { margin: 0; }

main { padding: 32px; padding-bottom: 64px; flex: 1; min-width: 0; max-width: 924px; }
main.weit { max-width: 1500px; }
.weit table.dicht { font-size: 13px; }
/* Die Verwaltungstabelle darf breit sein und scrollen; enge Spalten mit
   umgebrochenen Wörtern sind schwerer zu lesen als ein Schieber. */
@media (min-width: 721px) {
  .weit table.dicht { min-width: 1080px; }
  .weit table.dicht td[data-l="Zugänge"], .weit table.dicht td[data-l="Speicher"],
  .weit table.dicht td[data-l="zuletzt aktiv"], .weit table.dicht td[data-l="Softwarestand"],
  .weit table.dicht td[data-l="Requesty (Monat)"], .weit table.dicht td[data-l="Gateway (Monat)"],
  .weit table.dicht td[data-l="Sitzungen (Monat, geschätzt)"] { white-space: nowrap; }
}

.seitenkopf { margin-bottom: 0; }
.seitenkopf h1.titel { font-size: 23px; font-weight: 600; letter-spacing: -.015em; margin: 0 0 6px; }
.seitenkopf p.unter { margin: 0 0 28px; color: var(--text-leise); font-size: 14.5px; max-width: 640px; }
.seitenkopf p.unter:last-child { margin-bottom: 0; }

section.abschnitt { margin: 36px 0 0; padding-top: 28px; border-top: 1px solid var(--linie); scroll-margin-top: 1rem; }
section.abschnitt > h2 { font-size: 15px; font-weight: 600; margin: 0 0 4px; }
section.abschnitt > p.h { margin: 0 0 16px; font-size: 13.5px; color: var(--text-leise); max-width: 560px; }
section.abschnitt > p.h.nach { margin: 10px 0 0; }
section.abschnitt > .reihe, .block .innen > form.reihe { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
section.abschnitt > .reihe > input, .block .innen > form.reihe > input { flex: 0 1 280px; width: 280px; }
/* Auswahlfelder in einer Reihe (Rolle beim Einladen) bleiben schmal. */
section.abschnitt > .reihe > select, .block .innen > form.reihe > select { flex: 0 0 auto; width: auto; }
.block .innen > form.reihe > input[type=search] { flex: 0 1 280px; width: 280px; }
.trenner { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--linie); }
.ruhig { color: var(--text-leise); }

/* Anker innerhalb einer Seite */
.abschnitte {
  display: flex; gap: 4px; margin: 0 0 22px; padding: 0 0 10px;
  overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--linie);
}
.abschnitte::-webkit-scrollbar { display: none; }
.abschnitte a { color: var(--text-leise); text-decoration: none; font-size: 13.5px; padding: 5px 10px; border-radius: var(--r-s); white-space: nowrap; }
.abschnitte a:hover { color: var(--text); background: var(--flaeche-2); }
.abschnitte a[aria-current] { color: var(--akzent-dunkel); background: var(--akzent-hell); font-weight: 500; }

/* -------------------------------------------------- Kopfzeile am Handy */
.hkopf, .hnav { display: none; }

/* ------------------------------------------------------------- Hinweise */
.hinweis {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 11px 14px; border-radius: var(--r-m); margin: 0 0 24px; border: 1px solid;
  max-width: 640px; font-size: 13.5px;
}
.hinweis .ic { flex: none; margin-top: 2px; }
.hinweis.ok { background: var(--akzent-hell); border-color: var(--akzent-linie); color: var(--akzent-dunkel); }
.hinweis.fehler { background: color-mix(in oklch, var(--fehler) 7%, var(--grund)); border-color: color-mix(in oklch, var(--fehler) 35%, var(--grund)); color: var(--text); }
.hinweis.fehler > span::before { content: "Das hat nicht geklappt: "; font-weight: 600; }
.hinweis.still > span::before { content: none; }
.hinweis.neutral { background: var(--flaeche); border-color: var(--linie); color: var(--text-leise); }
/* EU-Guthaben: leer (rot) und niedrig (bernstein), für Verwalter oben auf jeder Seite. */
.hinweis.alarm { background: color-mix(in oklch, var(--fehler) 9%, var(--grund)); border-color: color-mix(in oklch, var(--fehler) 45%, var(--grund)); color: var(--text); max-width: none; }
.hinweis.alarm .ic { color: var(--fehler); }
.hinweis.achtung { background: color-mix(in oklch, var(--wartet) 10%, var(--grund)); border-color: color-mix(in oklch, var(--wartet) 45%, var(--grund)); color: var(--text); max-width: none; }
.hinweis.achtung .ic { color: var(--wartet); }
.hinweis.alarm a, .hinweis.achtung a { color: inherit; font-weight: 500; }
.budget .hinweis { margin-bottom: 14px; }

/* --------------------------------------------------------------- Zustand */
.zustand { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-leise); white-space: nowrap; vertical-align: middle; }
.punkt { display: inline-block; width: 7px; height: 7px; border-radius: var(--r-voll); background: var(--ruht); flex: none; vertical-align: middle; }
.punkt.gruen { background: var(--laeuft); }
.punkt.gelb { background: var(--wartet); }
.punkt.grau { background: var(--ruht); }
.punkt.rot { background: var(--fehler); }
.stand { display: inline-block; font-size: 12px; font-weight: 500; color: var(--text-still); border: 1px solid var(--linie); border-radius: var(--r-voll); padding: .05rem .55rem; vertical-align: middle; }
.stand.ok { color: var(--text-leise); border-color: var(--linie-stark); }

.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 11px; border-radius: var(--r-voll);
  border: 1px solid var(--linie); background: var(--flaeche);
  font-size: 12.5px; color: var(--text-leise); white-space: nowrap; text-decoration: none;
}
.chip b { color: var(--text); font-weight: 500; }
a.chip:hover { border-color: var(--linie-stark); color: var(--text-leise); }

/* ---------------------------------------------------------------- Knöpfe */
button, .knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 34px; padding: 7px 14px; border: 1px solid var(--akzent); border-radius: var(--r-m);
  background: var(--akzent); color: #fff; font: inherit; font-size: 13.5px; font-weight: 500; line-height: 1.25;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background-color .15s ease-out, border-color .15s ease-out, color .15s ease-out, opacity .15s ease-out;
}
button.klein, .knopf.klein, .knoepfe.klein button, .knoepfe.klein .knopf { min-height: 30px; padding: 5px 11px; font-size: 13px; color: #fff; }
button:hover, .knopf:hover { background: var(--akzent-dunkel); border-color: var(--akzent-dunkel); color: #fff; }
button:disabled, .knopf[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
button:disabled:hover { background: var(--akzent); border-color: var(--akzent); }
button.leise, .knopf.leise { background: var(--grund); color: var(--text); border-color: var(--linie-stark); }
button.leise:hover, .knopf.leise:hover { background: var(--flaeche-2); border-color: var(--linie-stark); color: var(--text); }
button.leise:disabled, button.leise:disabled:hover { background: var(--grund); border-color: var(--linie); }
button.gefahr, .knopf.gefahr { background: var(--grund); color: var(--fehler); border-color: color-mix(in oklch, var(--fehler) 40%, var(--grund)); }
button.gefahr:hover, .knopf.gefahr:hover { background: var(--fehler); border-color: var(--fehler); color: #fff; }
button.text { background: none; border-color: transparent; color: var(--akzent); padding-left: 6px; padding-right: 6px; }
button.text:hover { background: var(--flaeche-2); color: var(--akzent-dunkel); }
.knoepfe { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; }
.knoepfe form { margin: 0; }
td.knoepfe, .knoepfe.inline { margin-top: 0; }

/* ------------------------------------------------------------- Formulare */
form { margin: 0; }
label { display: block; margin: 0 0 14px; font-size: 13.5px; font-weight: 500; }
label > input:not([type=radio]):not([type=checkbox]), label > select, label > textarea { margin-top: 5px; font-weight: 400; }
label .hilfe, .hilfe { display: block; color: var(--text-leise); font-size: 12.5px; font-weight: 400; margin-top: 5px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], select, textarea {
  display: block; width: 100%; padding: 8px 12px; border: 1px solid var(--linie-stark); border-radius: var(--r-m);
  background: var(--grund); color: var(--text); font: inherit; font-size: 14px; line-height: 1.4; min-height: 36px;
  transition: border-color .15s ease-out, box-shadow .15s ease-out;
}
input:hover, select:hover, textarea:hover { border-color: color-mix(in oklch, var(--linie-stark) 55%, var(--text)); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; border-color: var(--akzent); box-shadow: 0 0 0 3px color-mix(in oklch, var(--akzent) 18%, transparent); }
input::placeholder, textarea::placeholder { color: var(--text-still); }
input:disabled, select:disabled, textarea:disabled { opacity: .5; background: var(--flaeche); cursor: not-allowed; }
/* Kästchen und Radio behalten ihre Größe, auch als Flex-Kind in label.zeile. */
input[type=checkbox], input[type=radio] { width: 16px; height: 16px; margin: 0; accent-color: var(--akzent); flex: none; }
textarea { resize: vertical; min-height: 4.5rem; }
label.zeile { display: flex; gap: 8px; align-items: center; margin: 0 0 8px; font-weight: 400; }
.zeile { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.zeile > input:not([type=checkbox]):not([type=radio]) { flex: 1 1 14rem; width: auto; }
.zeile > label.zeile { margin: 0; }
.stapel > button, .stapel > .knoepfe { margin-top: 4px; }
.stapel details + button { margin-top: 12px; }
input.link { font-family: var(--mono); font-size: 12.5px; min-width: 0; width: 100%; max-width: 34rem; }
.feldzeile { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 0 20px; }
.formular-kurz { max-width: 34rem; }

/* Rechte als Schalter. Technisch bleibt es ein Kästchen im Formular. */
.schalter { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 400; color: var(--text-leise); margin: 0; cursor: pointer; }
.schalter input[type=checkbox] { position: absolute; width: 32px; height: 18px; opacity: 0; margin: 0; cursor: pointer; }
.schalter .bahn { width: 32px; height: 18px; border-radius: var(--r-voll); background: var(--linie-stark); position: relative; flex: none; transition: background-color .15s ease-out; }
.schalter .bahn::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: var(--r-voll); background: var(--grund); transition: left .15s ease-out; }
.schalter input:checked + .bahn { background: var(--akzent); }
.schalter input:checked + .bahn::after { left: 16px; }
.schalter input:focus-visible + .bahn { outline: 2px solid var(--akzent); outline-offset: 2px; }
.schalter input:disabled ~ * { opacity: .5; }
.schalter input:disabled { cursor: not-allowed; }
.js form[data-auto] button.speichern { display: none; }

/* Eingeklappte Bereiche */
details.erweitert-auf { margin: 12px 0 0; }
details.erweitert-auf > summary { cursor: pointer; color: var(--akzent); font-size: 13.5px; font-weight: 500; padding: 5px 0; list-style: none; display: inline-flex; align-items: center; gap: 8px; user-select: none; }
details.erweitert-auf > summary::-webkit-details-marker { display: none; }
details.erweitert-auf > summary::before { content: ""; width: .42rem; height: .42rem; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); transition: transform .15s ease-out; margin-left: 2px; }
details.erweitert-auf[open] > summary::before { transform: rotate(45deg); }
details.erweitert-auf > summary:hover { color: var(--akzent-dunkel); }
details.erweitert-auf > :not(summary) { margin-left: 4px; padding-left: 16px; border-left: 1px solid var(--linie); }
details.erweitert-auf > form, details.erweitert-auf > .inhalt { margin-top: 8px; padding-top: 4px; padding-bottom: 4px; }
.erweitert { padding: 4px 0 0; }
.modelle-stand { display: block; margin-top: 6px; }

/* ------------------------------------------------------------------ Blöcke */
.block { border: 1px solid var(--linie); border-radius: var(--r-l); margin: 0 0 24px; background: var(--grund); }
.block > header { padding: 16px 22px; border-bottom: 1px solid var(--linie); display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; }
.block > header > div:first-child { flex: 1 1 20rem; min-width: 0; }
.block > header h2, .block > header h3 { margin: 0; font-size: 15px; font-weight: 600; }
.block > header p { margin: 3px 0 0; font-size: 13px; color: var(--text-leise); max-width: 62ch; }
.block > header .rechts { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.block > header .rechts form { margin: 0; }
.block .innen { padding: 18px 22px; }
.block .innen > :last-child { margin-bottom: 0; }
.block .fuss { margin: 0; max-width: none; padding: 11px 22px; font-size: 13px; color: var(--text-leise); background: var(--flaeche); border-top: 1px solid var(--linie); border-radius: 0 0 var(--r-l) var(--r-l); }
.block .fuss p:last-child { margin-bottom: 0; }

/* Eigene Seite: Stand, Freigabe und Erläuterungen als getrennte Gruppen. */
.eigene-seite-inhalt { display: grid; gap: 22px; }
.eigene-seite-hinweis { display: grid; gap: 12px; }
.eigene-seite-inhalt > *, .eigene-seite-hinweis > * { margin: 0; }
.eigene-seite-inhalt > div > :last-child { margin-bottom: 0; }

/* Zeile je System innerhalb eines Blocks */
.sys { display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap; padding: 16px 22px; border-bottom: 1px solid var(--linie); }
.sys:last-of-type { border-bottom: 0; }
.sys.unter { padding-left: 40px; }
.sys .haupt { flex: 1 1 16rem; min-width: 0; }
.sys .n { font-size: 14.5px; font-weight: 500; }
.sys .s { font-size: 13px; color: var(--text-leise); }
.sys > .zustand { flex: none; width: 132px; }
.sys .rechte { display: flex; gap: 8px; flex: none; flex-wrap: wrap; align-items: center; }
.sys .rechte form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 0; }
.sys .rechte .schalter { width: 94px; }
/* Werkzeugumfang je Konnektor: dasselbe Formular wie die Schalter. */
.sys .rechte label.umfang { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 400; color: var(--text-leise); margin: 0; }
.sys .rechte label.umfang select { font-size: 12.5px; padding: 3px 6px; flex: none; max-width: 16.5rem; }
.sys .tat { display: flex; gap: 8px; flex: none; }
.sys .tat form { margin: 0; }
.sys .tat button, .sys .tat .knopf, .sys > .knopf { min-width: 100px; }
/* Zwei Knöpfe (Bearbeiten, Trennen) brauchen die Mindestbreite nicht. */
.sys .tat:has(form + form) button { min-width: 0; }
.sys.gruppenkopf { border-bottom: 0; padding-bottom: 6px; }
.sys.gruppenkopf .n { font-size: 13px; font-weight: 600; color: var(--text-leise); letter-spacing: .01em; }
.sys.mehr { padding-top: 12px; padding-bottom: 12px; }
.sys.mehr .haupt { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; }
.sys.mehr .reihen .sys { padding-left: 0; padding-right: 0; }

/* Seite „Verbindungen“ (A4, plan-apps-und-verbindungen): Reiter mit Anzahl,
   die Liste nach Bereich, je Konto eine Zeile als Link ohne Knöpfe. Knöpfe
   stehen nur in „Braucht deine Aufmerksamkeit“ und auf der Seite des Kontos. */
.abschnitte .anz { margin-left: 6px; color: var(--text-still); font-weight: 400; font-variant-numeric: tabular-nums; }
.abschnitte a[aria-current] .anz { color: var(--akzent-dunkel); }
.reiter-satz { margin: -8px 0 18px; font-size: 13px; color: var(--text-leise); max-width: 68ch; }
.gruppe-kopf { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-still);
  padding: 12px 22px 6px; border-top: 1px solid var(--linie); background: var(--flaeche); }
.block > .gruppe-kopf:first-child { border-top: 0; border-radius: var(--r-l) var(--r-l) 0 0; }
a.vz { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto 7.5rem 12px; gap: 14px; align-items: center;
  padding: 11px 22px; border-top: 1px solid var(--linie); color: var(--text); text-decoration: none; }
.gruppe-kopf + a.vz { border-top: 0; }
a.vz:hover { background: var(--flaeche); text-decoration: none; }
a.vz:last-child { border-radius: 0 0 var(--r-l) var(--r-l); }
.vz .vz-text { display: flex; flex-direction: column; min-width: 0; }
.vz .konto { font-size: 14.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vz .system { font-size: 13px; color: var(--text-leise); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vz .nutzung-kurz { font-size: 13px; color: var(--text-leise); text-align: right; white-space: nowrap; }
.vz .chev { color: var(--text-still); }
.block.achtung { border-color: color-mix(in oklch, var(--wartet) 40%, var(--linie)); }
.block.achtung > header h2 { display: flex; align-items: center; gap: 8px; }
.az { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 11px 22px; border-top: 1px solid var(--linie); }
.block > header + .az { border-top: 0; }
.az .az-text { min-width: 0; overflow-wrap: anywhere; }
.az .satz { font-size: 13px; color: var(--text-leise); }
.az form { margin: 0; }
.vdetail-kopf { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.vdetail-kopf > .dz-rahmen { width: 44px; height: 44px; }
.vdetail-text { min-width: 0; }
.vdetail-kopf h1.titel { margin: 0 0 2px; overflow-wrap: anywhere; }
.vdetail-kopf p.unter { margin: 0; font-size: 13px; }
.vdetail-kopf p.unter .zustand { vertical-align: baseline; }
.nz { display: flex; align-items: baseline; gap: 8px 12px; flex-wrap: wrap; padding: 11px 22px; border-top: 1px solid var(--linie); }
.block > header + .nz { border-top: 0; }
.nz .art { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-still); }
.nz .was { font-weight: 500; }
.nz .nz-tat { margin-left: auto; }
.nz .wie { flex-basis: 100%; font-size: 13px; color: var(--text-leise); }

/* Apps teilen Konten (A2): das Zeichen „für alle“ in der Zeile eines Kontos
   und unter „Wird genutzt von“ — die einzige Nutzung, die andere betrifft. */
.geteilt-chip { display: inline-flex; align-items: center; gap: 4px; flex: none; font-size: 12px; font-weight: 500; line-height: 1.6;
  color: var(--akzent-dunkel); background: var(--akzent-hell); border: 1px solid var(--akzent-linie); border-radius: var(--r-voll); padding: 0 8px; white-space: nowrap; }
.vz .konto-zeile { display: flex; align-items: center; gap: 8px; min-width: 0; }

/* Seite je App (A2): „Wer die App öffnen darf“ als Radioliste; „Verbindungen
   der App“ je Kennung mit zwei Radiokarten, der Wahl des Kontos und dem Satz,
   was die Einstellung bedeutet. */
.nur-vorleser { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
fieldset.radio-liste { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.radio-liste label.radio { display: flex; gap: 10px; align-items: flex-start; margin: 0; font-size: 14px; font-weight: 400; cursor: pointer; }
.radio-liste label.radio > input { margin-top: 3px; }
.radio-liste label.radio .klein { display: block; }
.radio-liste label.radio.aus { color: var(--text-leise); cursor: not-allowed; }
.radio-liste .radio-unter { margin: -2px 0 2px 26px; }
.av { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; padding: 16px 22px; border-top: 1px solid var(--linie); scroll-margin-top: 1rem; }
.block > header + .av { border-top: 0; }
.av-inhalt { min-width: 0; }
.av .kopfzeile { display: flex; align-items: baseline; gap: 4px 12px; flex-wrap: wrap; }
.av .kopfzeile h3 { margin: 0; font-size: 15px; font-weight: 600; }
.av .kennung { font-size: 12.5px; color: var(--text-leise); }
.av .av-weg { margin: 0 0 0 auto; }
.av form[data-av] { margin: 0; }
.modi { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0 10px; }
.modus { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 2px 10px; margin: 0; padding: 10px 12px; border: 1px solid var(--linie-stark);
  border-radius: var(--r-m); font-weight: 400; cursor: pointer; }
.modus input { margin-top: 3px; }
.modus b { font-size: 14px; font-weight: 600; }
.modus span { grid-column: 2; font-size: 13px; color: var(--text-leise); }
.modus:has(input:checked) { border-color: var(--akzent); background: var(--akzent-hell); }
.modus.aus { opacity: .55; cursor: not-allowed; }
.feldzeile { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 16px; margin: 0 0 10px; }
/* `min-width: 0` und die Bremse am `select`: die Mindestbreite eines Auswahlfelds
   richtet sich sonst nach der längsten Option, und ein langer Kontoname macht die
   Zeile breiter als die Karte (wie auf der Freigabekarte, `.fk-inhalt select`). */
.feldzeile label { margin: 0; min-width: 0; font-size: 13px; color: var(--text-leise); }
.feldzeile select { max-width: 100%; }
.folge { display: flex; gap: 9px; align-items: flex-start; max-width: 640px; margin: 0 0 10px; padding: 9px 12px; font-size: 13.5px;
  background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--r-m); }
.folge .ic { flex: none; margin-top: 2px; color: var(--akzent); }
.folge.warn { color: var(--text); background: color-mix(in oklch, var(--wartet) 10%, var(--grund)); border-color: color-mix(in oklch, var(--wartet) 45%, var(--grund)); }
.folge.warn .ic { color: var(--wartet); }
.av-neu { position: relative; flex: none; }
.av-neu > summary { list-style: none; cursor: pointer; }
.av-neu > summary::-webkit-details-marker { display: none; }
.av-neu-feld { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; width: min(26rem, calc(100vw - 32px)); padding: 16px;
  background: var(--grund); border: 1px solid var(--linie-stark); border-radius: var(--r-m); box-shadow: 0 4px 18px oklch(24% .012 275 / .08); }
.av-neu-feld form { margin: 0; }

/* Freigabeseite (A3, /konto/freigabe): eine Karte in der Mitte wie im Entwurf
   (Ansicht 4). Je Eintrag „eigenes“ eine Zeile mit Logo, System und der Wahl
   des eigenen Kontos; unten eine Hauptaktion und „Nicht jetzt“. */
.freigabe-karte { max-width: 560px; margin: 8px auto 0; padding: 26px 28px; background: var(--grund); border: 1px solid var(--linie); border-radius: var(--r-m); }
.freigabe-karte .vorab { margin: 0 0 6px; font-size: 12.5px; color: var(--text-leise); }
.freigabe-karte h1 { margin: 0 0 10px; font-size: 21px; line-height: 1.3; }
.freigabe-karte .fk-punkte { margin: 10px 0 16px; padding-left: 18px; }
.freigabe-karte .fk-punkte li { margin-bottom: 4px; }
.freigabe-karte form { margin: 0; }
.fk-wahl { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-top: 1px solid var(--linie); }
.fk-inhalt { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.fk-kopf { display: flex; align-items: baseline; gap: 4px 12px; flex-wrap: wrap; }
.fk-inhalt label { margin: 0; font-size: 13px; color: var(--text-leise); max-width: 100%; }
.fk-inhalt select { max-width: 100%; }
.fk-inhalt p { margin: 0; }
.freigabe-karte .aktionen { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--linie); }
.freigabe-karte .fk-fuss { margin: 16px 0 0; }
@media (max-width: 860px) { .freigabe-karte { margin-top: 0; padding: 20px 18px; } }
.leer .leer-offen { margin: 12px auto 0; }
.block .fuss form.vnutzen { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; margin: 0; }
.block .fuss form.vnutzen label { margin: 0; font-size: 13px; color: var(--text-leise); }
.bl-summe { margin: 10px 0 8px; }
.bl-offen { list-style: none; margin: 0 0 12px; padding: 0; }
.bl-offen li { display: flex; align-items: center; gap: 8px 16px; flex-wrap: wrap; padding: 8px 0; border-top: 1px solid var(--linie); }
.bl-offen li > a { font-weight: 500; min-width: 8rem; }
.bl-offen li form, .bl-offen li div { margin: 0 !important; }

/* Die Zeilen der Anmeldung beim Anbieter (V4): Formulare klappen darunter auf;
   Rückfragen stehen als eigener Block oben. */
.vb { padding: 14px 22px; border-top: 1px solid var(--linie); }
.block > header + .vb { border-top: 0; }
.vkopf { display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; }
.vkopf .haupt { flex: 1 1 16rem; min-width: 0; }
.vkopf .n { font-size: 14.5px; font-weight: 500; overflow-wrap: anywhere; }
.vkopf .s { font-size: 13px; color: var(--text-leise); overflow-wrap: anywhere; }
.vkopf > .zustand { flex: none; width: 170px; white-space: normal; }
.vkopf .tat { display: flex; gap: 8px; flex: none; align-items: center; flex-wrap: wrap; }
.vkopf .tat form { margin: 0; }
.vteil { margin: 4px 0 0 52px; }
.vteil > details.erweitert-auf { margin-top: 6px; }
.vteil .wa-koppeln { margin-top: 8px; }
.vteil form.vnutzen { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; margin: 10px 0 0; }
.vteil form.vnutzen label { margin: 0; font-size: 13px; color: var(--text-leise); }
.block.rueckfrage { border-color: color-mix(in oklch, var(--fehler) 35%, var(--linie)); }
.block.rueckfrage ul { margin: 4px 0 12px; padding-left: 20px; }
.block.rueckfrage .knoepfe { margin-top: 8px; }

/* Dienstkacheln: Symbol des Systems, Häkchen wenn verbunden, die Konten als
   Pillen mit Kürzel. Ein Klick öffnet den Dialog mit den Einstellungen. Die
   Farben der Symbole sind die einzigen Fremdfarben der Oberfläche. */
.dienstflaeche { display: flex; flex-direction: column; gap: 24px; }
.dienstgruppe .gk { margin: 0 0 10px; }
.dienstgruppe .gk .n { font-size: 13px; font-weight: 600; color: var(--text-leise); letter-spacing: .01em; }
.dienstgruppe .gk .s { font-size: 13px; color: var(--text-still); }
.dienste { display: grid; grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr)); gap: 10px; }
button.dienst {
  display: flex; align-items: center; justify-content: flex-start; gap: 13px;
  min-height: 66px; padding: 12px 14px; text-align: left; white-space: normal; font-weight: 400;
  background: var(--grund); color: var(--text); border: 1px solid var(--linie); border-radius: var(--r-m);
}
button.dienst:hover { background: var(--flaeche); border-color: var(--linie-stark); color: var(--text); }
.dz-rahmen { position: relative; flex: none; width: 36px; height: 36px; }
.dz-rahmen .dz { display: block; width: 100%; height: 100%; }
/* Echte Logos stehen in Originalfarben auf weißer Kachel mit Rand. */
.dz-logo { align-items: center; justify-content: center; background: var(--grund); border: 1px solid var(--linie); border-radius: 10px; }
.dz-rahmen .dz-logo, dialog.konfig .dkopf .dz-logo { display: flex; }
.dz-logo img { display: block; width: 66%; height: 66%; object-fit: contain; }
.dz-platz { flex: none; display: flex; }
.dz-platz:empty { display: none; }
.dienst.aus .dz { filter: grayscale(1); opacity: .42; transition: filter .15s ease-out, opacity .15s ease-out; }
.dienst.aus:hover .dz { filter: none; opacity: 1; }
.abzeichen {
  position: absolute; right: -5px; bottom: -5px; width: 18px; height: 18px;
  border-radius: var(--r-voll); border: 2px solid var(--grund);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 11px; font-weight: 700; line-height: 1;
}
.abzeichen.an { background: var(--laeuft); }
.abzeichen.klemmt { background: var(--wartet); }
button.dienst:hover .abzeichen { border-color: var(--flaeche); }
.dienst .dt { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.dienst .dn { font-size: 14px; font-weight: 500; line-height: 1.3; }
.dienst.aus .dn { color: var(--text-leise); }
.dienst .ds { font-size: 12.5px; color: var(--text-still); line-height: 1.3; }
.kzs { display: flex; flex-wrap: wrap; gap: 4px; }
.kz {
  display: inline-flex; align-items: center; height: 19px; padding: 0 7px; border-radius: var(--r-voll);
  font-size: 10.5px; font-weight: 600; letter-spacing: .04em; line-height: 1;
  background: var(--akzent-hell); color: var(--akzent-dunkel); border: 1px solid var(--akzent-linie);
}
.kz.klemmt { background: color-mix(in oklch, var(--wartet) 12%, var(--grund)); color: color-mix(in oklch, var(--wartet) 70%, var(--text)); border-color: color-mix(in oklch, var(--wartet) 40%, var(--grund)); }
.kz.mehr { background: var(--flaeche-2); color: var(--text-leise); border-color: var(--linie); }

/* Der Dialog hinter einer Kachel. Innenabstand sitzt auf Kopf und Inhalt,
   nicht auf dem Dialog: so trifft ein Klick auf den Dialog selbst nur den
   Hintergrund, und der schließt. */
dialog.konfig { max-width: 36rem; padding: 0; max-height: calc(100vh - 2rem); overflow: auto; }
dialog.konfig .dkopf { display: flex; align-items: flex-start; gap: 14px; padding: 20px 22px 16px; border-bottom: 1px solid var(--linie); }
dialog.konfig .dkopf .dz { flex: none; width: 40px; height: 40px; }
dialog.konfig .dtitel { flex: 1; min-width: 0; }
dialog.konfig .dtitel h2 { margin: 1px 0 2px; font-size: 16.5px; }
dialog.konfig .dtitel p { margin: 0; font-size: 13px; color: var(--text-leise); }
dialog.konfig .zu { flex: none; min-height: 0; padding: 6px; margin: -3px -8px 0 0; background: none; border-color: transparent; color: var(--text-still); }
dialog.konfig .zu:hover { background: var(--flaeche-2); border-color: transparent; color: var(--text); }
dialog.konfig .dinhalt { padding: 0 22px 20px; }
.dteil { margin: 0; max-width: none; padding: 16px 0; border-bottom: 1px solid var(--linie); }
.dteil:last-child { border-bottom: 0; padding-bottom: 0; }
.dteil > h3 { font-size: 13.5px; font-weight: 600; margin: 0 0 8px; }
.dteil > p.klein { margin: 8px 0 12px; }
.dteil > :last-child { margin-bottom: 0; }
.dstand { display: flex; align-items: flex-start; gap: 9px; margin: 0 0 12px; font-size: 14px; max-width: none; }
.dstand .punkt { margin-top: 7.5px; }
.dstand:last-child { margin-bottom: 0; }
dialog.konfig .rechte form { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
dialog.konfig .rechte label.umfang { display: flex; align-items: center; gap: 10px; flex: 1 1 100%; margin: 0; font-size: 13px; font-weight: 400; color: var(--text-leise); }
dialog.konfig .rechte label.umfang select { flex: 1; margin: 0; }
dialog.konfig .rechte + p.klein { margin: 12px 0 0; }
/* Anmeldung im Browser aus der Tabelle auf /verbindungen (Feedback 327): ein
   Dialog für Link, Code und Stand. Der Knopf „Anmeldung fortsetzen“ gibt es
   nur mit JavaScript; ohne stehen Link und Code in der Zeile. Während der
   Arbeitsplatz geweckt wird, dreht sich der Kreisel und die Sekunden laufen. */
.nur-js { display: none; }
.js .nur-js { display: inline-flex; }
dialog.browserlogin .bl-warten { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 13.5px; color: var(--text-leise); max-width: none; }
dialog.browserlogin .bl-schritt { margin: 0 0 10px; font-size: 13.5px; max-width: none; }
dialog.browserlogin [data-fuer] { margin-top: 18px; }
dialog.browserlogin .bl-einmal { font-size: 15px; letter-spacing: .04em; }
dialog.browserlogin .bl-frist { margin: 16px 0 0; }
dialog.browserlogin .bl-frist button.text { min-height: 0; padding: 0 4px; font-size: 13px; }
dialog.browserlogin .hinweis { margin: 14px 0 0; max-width: none; }
.kreisel { flex: none; width: 16px; height: 16px; border-radius: var(--r-voll); border: 2px solid var(--linie-stark); border-top-color: var(--akzent); animation: kreisen .8s linear infinite; }
@keyframes kreisen { to { transform: rotate(360deg); } }
/* Werkzeugwahl: Zahl und Vorbelegen oben, je Art eine Gruppe Häkchen. Die
   Namen sind Werkzeugkennungen, deshalb Monospace. Senden und Löschen tragen
   einen Strich in --wartet, damit man beim Anhaken sieht, was nach draußen
   geht oder verschwindet. */
.werkzeugwahl { margin: 0; }
.werkzeugwahl .wkopf { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.werkzeugwahl .wstand { font-size: 13.5px; color: var(--text-leise); }
.werkzeugwahl .wstand strong { color: var(--text); font-weight: 600; }
.werkzeugwahl .wknoepfe { display: none; gap: 6px; flex-wrap: wrap; }
.js .werkzeugwahl .wknoepfe { display: inline-flex; }
.werkzeugwahl details.wdetails { margin: 8px 0 0; }
.werkzeugwahl .wgruppe { border: 0; margin: 0; padding: 10px 0 2px; min-width: 0; }
.werkzeugwahl .wgruppe + .wgruppe { border-top: 1px solid var(--linie); }
.werkzeugwahl .wgruppe legend { padding: 0; }
.werkzeugwahl .wgruppe.senden, .werkzeugwahl .wgruppe.loeschen { box-shadow: inset 2px 0 0 var(--wartet); padding-left: 10px; }
.werkzeugwahl .wgruppe > p.klein { margin: 4px 0 6px; }
.werkzeugwahl label.wz { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 12.5px; font-weight: 400; min-width: 0; cursor: pointer; }
.werkzeugwahl label.wz > span { overflow-wrap: anywhere; }
.werkzeugwahl label.wz.kopf { font-size: 13px; font-weight: 600; padding: 2px 0 6px; }
.werkzeugwahl label.wz.kopf .wanz { font-weight: 400; color: var(--text-still); font-size: 12px; margin-left: 2px; }
.werkzeugwahl .wliste { display: grid; grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr)); gap: 5px 14px; padding: 0 0 8px 24px; }
.werkzeugwahl .wliste label.wz > span { font-family: var(--mono); font-size: 12px; }
.werkzeugwahl label.wz input:disabled + span { color: var(--text-still); }
.werkzeugwahl label.wz input:disabled { cursor: not-allowed; }
.werkzeugwahl .wschreiben { margin: 14px 0 0; }
.werkzeugwahl .wfuss { display: flex; align-items: center; gap: 12px; margin: 14px 0 0; }
/* Vorlagen (Baustein U4): je Konnektor ein Kasten mit Häkchen und Werkzeugwahl,
   darüber die drei Beispiele zum Übernehmen. */
#formular fieldset.wgruppe { border: 1px solid var(--linie); border-radius: var(--r-m); margin: 0 0 12px; padding: 10px 12px; }
#formular fieldset.wgruppe legend { padding: 0 4px; font-weight: 600; }
#formular fieldset.wgruppe .werkzeugwahl { margin: 6px 0 0; }
.beispiele { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.beispiele .beispiel { border: 1px solid var(--linie); border-radius: var(--r-m); padding: 12px 14px; margin: 0; }
.beispiele .beispiel p { margin: 4px 0 10px; }
.pkopf { display: flex; align-items: flex-start; gap: 10px 16px; flex-wrap: wrap; margin: 0 0 12px; }
.pkopf:last-child { margin-bottom: 0; }
.pkopf .haupt { flex: 1 1 14rem; min-width: 0; }
.pkopf .n { display: flex; align-items: center; gap: 9px; font-weight: 500; }
.pkopf .s { font-size: 13px; color: var(--text-leise); padding-left: 16px; }
.pkopf .tat { display: flex; gap: 8px; flex: none; }

/* WhatsApp-Kopplung: der QR-Code auf Weiß, auch im dunklen Thema — auf
   dunklem Grund scannt die Kamera schlecht. Die Fläche hat feste Maße, damit
   der Dialog nicht springt, wenn der Code nachgeladen wird. */
.wa-koppeln .wa-schritte { margin: 0 0 12px; padding-left: 20px; }
.wa-koppeln .wa-schritte li { margin: 2px 0; }
.wa-qr { display: grid; place-items: center; width: 248px; height: 248px; margin: 4px 0 14px; padding: 12px; box-sizing: border-box;
  background: #fff; border: 1px solid var(--linie); border-radius: 12px; }
.wa-qr img { width: 100%; height: 100%; image-rendering: pixelated; }
.wa-qr .wa-meldung { color: #555; font-size: 13px; text-align: center; padding: 0 10px; }
.wa-nummer { margin: 0 0 14px; }
.wa-nummer summary { font-size: 13px; cursor: pointer; }
.wa-nummer form { margin: 10px 0 6px; }
.wa-nummer label { display: block; font-size: 13px; }
.wa-nummer input { display: block; max-width: 18rem; margin: 4px 0 10px; }
.wa-code { margin: 6px 0 0; font-size: 13.5px; }
.wa-code.wa-gross { font-family: var(--mono); font-size: 18px; letter-spacing: .08em; font-weight: 600; }

/* Die Konten einer Microsoft-App im Dialog ihrer Dienste. Jede Zeile trägt
   ihren eigenen Trennen-Knopf, damit sichtbar bleibt, welches Konto gemeint
   ist. */
.konten .kontenliste { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.konten .kontenliste li { display: flex; align-items: center; gap: 12px; }
.konten .kontenliste .kz { flex: none; height: 24px; min-width: 32px; justify-content: center; font-size: 11px; }
.konten .kontenliste .kinfo { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.konten .kontenliste .upn { font-size: 13.5px; font-weight: 500; overflow-wrap: anywhere; }
.konten .kontenliste .s, .konten .kontenliste .zustand { font-size: 12.5px; color: var(--text-leise); }
.konten .kontenliste .zustand { gap: 5px; }
.konten .kontenliste form { flex: none; margin: 0; }
.konten .kontenliste button { min-width: 0; }

/* Budget */
.budget .zeile { display: flex; align-items: baseline; gap: 10px 16px; margin-bottom: 10px; flex-wrap: wrap; }
.budget .gross { font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.budget .von { font-size: 14px; color: var(--text-leise); }
.budget .rest { margin-left: auto; font-size: 14px; color: var(--text-leise); }
.balken { height: 6px; border-radius: var(--r-voll); background: var(--flaeche-2); overflow: hidden; margin: 4px 0; }
.balken > span { display: block; height: 100%; background: var(--akzent); border-radius: var(--r-voll); }
.balken.warn > span { background: var(--wartet); }
.balken.voll > span { background: var(--fehler); }
/* Der Nutzungs-Chip der Kopfzeile trägt denselben Balken, nur schmal. */
.chip .balken { width: 44px; flex: none; margin: 0; }
/* „Deine Nutzung“ ganz oben in der Seitenleiste (plan-verbindungen, V2). */
.nutzungsgruppe { padding-bottom: 12px; border-bottom: 1px solid var(--linie); }
.nav a.nutzung-zeile { flex-direction: column; align-items: stretch; gap: 2px; padding: 8px 10px; }
.nutzung-zeile .nz-kopf { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.nutzung-zeile .nz-kopf b { font-weight: 500; color: var(--text); font-variant-numeric: tabular-nums; }
.nutzung-zeile .balken { margin: 3px 0 1px; }
.nutzung-zeile .nz-satz, .nutzung-zeile .nz-un { font-size: 12px; line-height: 1.4; color: var(--text-still); }
.leiste-schmal .nav a.nutzung-zeile { align-items: center; padding: 6px 4px; }
.leiste-schmal .nutzung-zeile .nz-kopf { justify-content: center; }
.leiste-schmal .nutzung-zeile .balken { width: 36px; }
.leiste-schmal .nutzung-zeile .nz-satz, .leiste-schmal .nutzung-zeile .nz-un { display: none; }
.hmehr-liste a.nutzung-zeile { flex-direction: column; align-items: stretch; gap: 2px; border-bottom: 1px solid var(--linie); margin-bottom: 4px; }

/* ------------------------------------------------------------------ Karten */
.karte { background: var(--grund); border: 1px solid var(--linie); border-radius: var(--r-l); padding: 18px 22px; margin-bottom: 20px; }
.karte > h1, .karte > h2, .karte > h3 { margin-bottom: 8px; }
.karte.aus { opacity: .75; }

/* Zeilen der Arbeitsplätze in „Meine Arbeitsplätze“ */
.ap-liste { border: 1px solid var(--linie); border-radius: var(--r-l); overflow: hidden; margin: 0 0 8px; }
.ap { display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap; padding: 20px 22px; border-bottom: 1px solid var(--linie); }
.ap:last-child { border-bottom: 0; }
.ap .haupt { flex: 1 1 18rem; min-width: 0; }
.ap .name { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ap .name h2 { margin: 0; font-size: 16.5px; font-weight: 600; }
.ap .name h2 a { color: var(--text); text-decoration: none; }
.ap .name h2 a:hover { color: var(--akzent); }
.ap .meta { margin: 4px 0 0; font-size: 13px; color: var(--text-leise); max-width: none; }
.ap .meta a { color: inherit; }
.ap .meta a:hover { color: var(--akzent); }
.ap .tat { display: flex; gap: 8px; flex: none; flex-wrap: wrap; }
.ap .tat form { margin: 0; }
/* /apps (A1): „Deine Apps“ und „Von Kollegen“ als zwei Abschnitte. */
.apps-abschnitt { margin: 24px 0 28px; }
.apps-abschnitt > h2 { margin: 0 0 10px; font-size: 16.5px; font-weight: 600; }
.apps-abschnitt > p.klein { margin: 8px 0 0; }
.leer { padding: 32px 22px; color: var(--text-leise); text-align: center; }
.leer p { margin: 0 auto 12px; }
.leer .knoepfe { justify-content: center; margin-top: 0; }

/* ---------------------------------------------------------------- Fakten */
dl.fakten { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 24px; margin: 0 0 8px; font-size: 13.5px; }
dl.fakten dt { color: var(--text-leise); }
dl.fakten dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
dl.fakten dd .klein { display: block; margin-top: 2px; }
dl.fakten.kompakt { gap: 5px 20px; }

/* --------------------------------------------------------------- Tabellen */
.scroll { overflow-x: auto; margin: 0 0 12px; }
table { border-collapse: collapse; width: 100%; font-size: 13.5px; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--linie); vertical-align: top; }
thead th { color: var(--text-still); font-weight: 600; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; padding-top: 6px; padding-bottom: 7px; white-space: nowrap; }
tbody tr:hover { background: var(--flaeche); }
td:first-child, th:first-child { padding-left: 2px; }
td:last-child, th:last-child { padding-right: 2px; }
table.zahlen td:not(:first-child), table.zahlen th:not(:first-child) { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
tfoot th { font-weight: 600; border-bottom: none; border-top: 1px solid var(--linie-stark); }
tr.nutzer th { padding-top: 22px; color: var(--text); font-weight: 600; font-size: 13.5px; text-transform: none; letter-spacing: 0; border-bottom: 1px solid var(--linie-stark); }
/* Zweite Ebene der Gruppierung auf /betreiber: Unternehmen, darin Nutzer. */
tr.gruppe-nutzer th { padding-top: 16px; padding-left: 18px; color: var(--text-leise); font-weight: 600; font-size: 13px; text-transform: none; letter-spacing: 0; }
/* Kürzel vor dem Namensfeld beim Anlegen eines Arbeitsplatzes. */
.praefix { color: var(--text-leise); font-size: 14px; }
tr.summe td { color: var(--text-leise); }
td .zeile { gap: 6px 12px; }
td form.zeile { margin: 0; }
td .knopf, td button { vertical-align: middle; }
table.dicht th, table.dicht td { padding: 7px 9px; }
/* Anmeldung im Browser auf /verbindungen (Feedback 328): ohne Schieber am
   Rechner. Feste Spalten, der Zustand bricht um, die Zeit des letzten Stands
   steht klein darunter. Am Handy stapelt sie wie jede .stapelbar. */
table.anmeldetabelle { table-layout: fixed; margin: 0 0 12px; }
table.anmeldetabelle th:first-child { width: 22%; }
table.anmeldetabelle td { overflow-wrap: anywhere; }
table.anmeldetabelle .zustand { display: flex; align-items: baseline; white-space: normal; }
table.anmeldetabelle .zustand .punkt { align-self: flex-start; margin-top: 6px; }
table.anmeldetabelle .zeitstand { display: block; margin: 1px 0 0; font-size: 12px; color: var(--text-still); }

/* Gestapelte Tabellen auf schmalen Bildschirmen: jede Zelle trägt ihre Spalte
   als data-l, der Kopf verschwindet. */
@media (max-width: 720px) {
  table.stapelbar thead { display: none; }
  table.stapelbar, table.stapelbar tbody, table.stapelbar tr, table.stapelbar td, table.stapelbar th { display: block; width: 100%; }
  table.stapelbar tr { padding: 10px 0; border-bottom: 1px solid var(--linie); }
  table.stapelbar td, table.stapelbar th { border: none; padding: 3px 0; }
  table.stapelbar td[data-l]::before, table.stapelbar th[data-l]::before {
    content: attr(data-l); display: block; font-size: 11px; color: var(--text-still);
    text-transform: uppercase; letter-spacing: .06em; margin-bottom: 1px;
  }
  table.stapelbar td:empty { display: none; }
  table.stapelbar tbody tr:hover { background: none; }
  table.stapelbar tr.nutzer th { padding-top: 18px; }
}

/* ------------------------------------- Mitgliedertabelle (Feedback-Fall 295)
   Rolle in ihrer Spalte, Grenze als „2 von höchstens 3“, Seltenes im ⋯-Menü.
   Ohne Schieber: die Tabelle passt in die Seitenbreite. */
.nur-vorlesen { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
table.mitgliedertabelle { margin: 0 0 4px; }
table.mitgliedertabelle td { vertical-align: middle; }
table.mitgliedertabelle td[data-l="Zustand"], table.mitgliedertabelle td[data-l="zuletzt aktiv"] { white-space: nowrap; }
.marke-klein { display: inline-block; margin-top: 4px; padding: 1px 7px; border-radius: var(--r-s); background: var(--flaeche-2); color: var(--text-leise); font-size: 11.5px; }
form.rollenwahl { display: flex; align-items: center; gap: 6px; margin: 0; }
form.rollenwahl select { width: auto; min-width: 8.5rem; }
.js form.rollenwahl [data-speichern] { display: none; }
.js form.rollenwahl.geaendert [data-speichern] { display: inline-flex; }
td.zeilenaktion { width: 1%; text-align: right; }
.zeilenmenue { position: relative; display: inline-block; }
.zeilenmenue > summary {
  list-style: none; cursor: pointer; user-select: none; display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: var(--r-m); color: var(--text-leise); font-size: 18px; line-height: 1;
}
.zeilenmenue > summary::-webkit-details-marker { display: none; }
.zeilenmenue > summary:hover, .zeilenmenue[open] > summary { background: var(--flaeche-2); color: var(--text); }
.zeilenmenue > div {
  position: absolute; right: 0; top: calc(100% + 4px); z-index: 30; width: 260px; padding: 6px; text-align: left;
  background: var(--grund); border: 1px solid var(--linie-stark); border-radius: var(--r-m); box-shadow: 0 4px 18px oklch(24% .012 275 / .08);
}
.zeilenmenue form { margin: 0; }
.zeilenmenue .menuepunkt {
  display: block; width: 100%; min-height: 0; padding: 9px 10px; border: 0; border-radius: var(--r-s);
  background: transparent; color: var(--text); text-align: left; font-size: 13px; font-weight: 400; white-space: normal;
}
.zeilenmenue .menuepunkt:hover { background: var(--flaeche); border: 0; color: var(--text); }
.zeilenmenue .menuepunkt.gefahr, .zeilenmenue .menuepunkt.gefahr:hover { color: var(--fehler); }
.menuelinie { border: 0; border-top: 1px solid var(--linie); margin: 4px 0; }
.menuenotiz { margin: 0; padding: 8px 10px; max-width: none; font-size: 12px; line-height: 1.45; color: var(--text-leise); }
.deckel-feld { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.deckel-feld input { width: 6rem; }
@media (max-width: 720px) {
  table.mitgliedertabelle td.zeilenaktion { width: auto; text-align: left; }
  .zeilenmenue > div { right: auto; left: 0; }
}

/* ------------------------------------------------------------ Systemkatalog */
.konnektor { padding: 0; border: none; background: none; margin: 0 0 24px; }
.konnektor h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 6px; }
.konnektor > p.klein { margin-bottom: 12px; }
/* Die geplanten Systeme stehen als dieselben Dienstkacheln und Gruppen wie
   oben — ohne die Einrückung aufgeklappter Bereiche, sonst fehlt am Handy die
   Breite für die zweite Spalte. */
.sys.mehr .haupt > details { align-self: stretch; }
details.katalog > .inhalt { margin-left: 0; padding-left: 0; border-left: 0; }
details.katalog .dienstflaeche { margin-top: 16px; }

/* ----------------------------------------------------------------- Dialoge */
dialog { border: 1px solid var(--linie); border-radius: var(--r-l); background: var(--grund); color: var(--text); padding: 24px; max-width: 30rem; width: calc(100% - 2rem); box-shadow: 0 16px 40px oklch(0% 0 0 / .16); }
dialog::backdrop { background: oklch(24% 0.012 275 / .4); }
dialog h2 { margin-bottom: 8px; }
dialog .knoepfe { justify-content: flex-end; margin-top: 20px; }

/* ------------------------------------------------------ Anmeldung, Einladung */
.allein { display: grid; place-items: center; min-height: 100vh; background: var(--flaeche); padding: 32px 16px; }
.allein main { width: 100%; max-width: 24rem; padding: 0; }
.allein .marke { display: flex; align-items: center; gap: 9px; justify-content: center; margin-bottom: 22px; color: var(--text); text-decoration: none; }
.allein .marke .zeichen { width: 26px; height: 26px; border-radius: 7px; background: var(--akzent); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; }
.allein .marke b { font-size: 14.5px; font-weight: 600; }
.anmelden { background: var(--grund); border: 1px solid var(--linie); border-radius: var(--r-l); padding: 26px; }
.anmelden h1 { margin-bottom: 4px; }
.anmelden > p { margin-bottom: 20px; }
.anmelden button { width: 100%; margin-top: 4px; }
.allein .fussnote { margin: 18px 0 0; text-align: center; font-size: 12.5px; color: var(--text-still); }

/* „Für Techniker“: eine Zeile, die sich aufklappt. Der ganze Block ist der
   Rahmen, es gibt keinen eigenen Kopf darüber. */
details.tech { border: 1px solid var(--linie); border-radius: var(--r-l); background: var(--grund); margin: 0 0 24px; }
details.tech > summary {
  list-style: none; cursor: pointer; padding: 14px 22px;
  font-size: 14px; color: var(--text-leise); display: flex; align-items: center; gap: 9px;
}
details.tech > summary::-webkit-details-marker { display: none; }
details.tech > summary:hover { color: var(--text); }
details.tech > summary .chev { flex: none; transition: transform .15s ease-out; }
details.tech[open] > summary .chev { transform: rotate(90deg); }
details.tech[open] > summary { border-bottom: 1px solid var(--linie); }
details.tech > .innen { padding: 20px 22px 22px; }
details.tech > .innen > :last-child { margin-bottom: 0; }

/* Teile innerhalb eines Blocks (z. B. unter „Für Techniker“) */
.teil { margin: 0 0 28px; }
.teil:last-of-type { margin-bottom: 0; }
.teil > h3 { margin-bottom: 6px; }
.teil.aus { opacity: .75; }

/* ================================================================== Handy */
@media (max-width: 860px) {
  .seite { display: none; }
  .app { display: block; }
  .flaeche { min-height: 100vh; padding-bottom: 62px; }

  .hkopf {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px; border-bottom: 1px solid var(--linie); background: var(--grund);
    position: sticky; top: 0; z-index: 20;
  }
  .hkopf .mitte { flex: 1; min-width: 0; }
  .hkopf .mitte b { display: block; font-size: 14.5px; font-weight: 600; line-height: 1.3;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hkopf .mitte span { display: block; font-size: 11.5px; color: var(--text-still); line-height: 1.3; }
  .hkopf .zeichen { width: 26px; height: 26px; border-radius: 7px; flex: none; background: var(--akzent); color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; }
  .hkopf .wahl { margin: 0; flex: none; max-width: 45%; }
  .hkopf .wahl > summary { padding: 6px 10px; }
  .hkopf .wahl > summary .vor { display: none; }
  .hkopf .wahlliste { position: absolute; right: 14px; top: 52px; left: 14px; z-index: 30; background: var(--grund);
    box-shadow: 0 12px 28px oklch(0% 0 0 / .12); }

  .hnav {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
    border-top: 1px solid var(--linie); background: var(--flaeche);
    padding: 7px 4px calc(7px + env(safe-area-inset-bottom));
  }
  .hnav a { flex: 1; text-decoration: none; color: var(--text-still); font-size: 10.5px;
    display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 5px 2px; border-radius: var(--r-s); }
  .hnav a .ic { color: currentColor; }
  .hnav a[aria-current] { color: var(--akzent); font-weight: 500; }

  .hnav > a { min-width: 0; min-height: 44px; color: var(--text-leise); }
  .hmehr { flex: 1; min-width: 0; }
  .hmehr > summary { display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 44px; padding: 5px 2px; border-radius: var(--r-s); font-size: 10.5px; color: var(--text-leise); cursor: pointer; list-style: none; }
  .hmehr > summary::-webkit-details-marker { display: none; }
  .hmehr[data-aktiv] > summary,.hmehr[open] > summary { color: var(--akzent); background: var(--akzent-hell); }
  .hmehr-liste { position: fixed; z-index: 40; bottom: calc(72px + env(safe-area-inset-bottom)); right: 12px; left: 12px; max-height: 60dvh; overflow: auto; padding: 8px; background: var(--grund); border: 1px solid var(--linie-stark); border-radius: var(--r-m); box-shadow: 0 4px 18px oklch(24% .012 275 / .08); }
  .hmehr-liste a,.hmehr-liste button { display: flex; width: 100%; justify-content: flex-start; align-items: center; flex-direction: row; min-height: 44px; padding: 10px 12px; font-size: 14px; color: var(--text); background: transparent; border: 0; text-decoration: none; text-align: left; font-weight: 400; }
  .hmehr-liste a:hover,.hmehr-liste button:hover { background: var(--flaeche); }
  .hmehr-liste form { margin: 4px 0 0; border-top: 1px solid var(--linie); padding-top: 4px; }

  .oben { padding: 11px 16px; }
  main { padding: 22px 16px; padding-bottom: 44px; }
  .block > header, .sys, .block .innen, .block .fuss { padding-left: 16px; padding-right: 16px; }
  .sys.unter { padding-left: 28px; }
  .vb { padding: 14px 16px; }
  .vteil { margin-left: 0; }
  .vkopf > .zustand { width: auto; }
  /* Verbindungen (A4): die Zeile stapelt Konto, Zustand und Nutzung unter
     dem Logo; der Pfeil bleibt rechts. Die Reiter scrollen in ihrer Leiste. */
  .gruppe-kopf, .az, .nz { padding-left: 16px; padding-right: 16px; }
  a.vz { grid-template-columns: 36px minmax(0, 1fr) 12px; gap: 2px 12px; padding: 11px 16px; }
  a.vz > .dz-rahmen { grid-row: 1 / span 3; align-self: start; }
  a.vz > .chev { grid-column: 3; grid-row: 1 / span 3; }
  a.vz > .zustand, a.vz > .nutzung-kurz { grid-column: 2; justify-self: start; text-align: left; }
  .az { grid-template-columns: 36px minmax(0, 1fr); }
  .az > form, .az > .knopf { grid-column: 2; justify-self: start; }
  /* Verbindungen der App (A2): die Karten untereinander. */
  .av { padding: 14px 16px; gap: 12px; }
  .modi { grid-template-columns: 1fr; }
  /* Das Aufklappmenü „+ Verbindung hinzufügen“ hängt auf dem Desktop rechtsbündig
     unter seinem Knopf. Auf dem Handy bricht der Knopf unter den Beschreibungstext
     in eine zweite Zeile; das Feld bliebe rechtsbündig und fast bildschirmbreit und
     ragte damit links aus dem Bild (Feedback 335). Hier steht es deshalb im Fluss
     und nimmt die ganze Breite. */
  .av-neu { width: 100%; }
  .av-neu-feld { position: static; width: auto; margin-top: 8px; box-shadow: none; }
  .ap { padding: 16px; }
  .ap .tat { width: 100%; }
  .ap .tat > :first-child { flex: 1 1 auto; }
  .ap .tat > form:first-child > button { width: 100%; }
  dl.fakten { grid-template-columns: 1fr; gap: 2px; }
  dl.fakten dt { padding-top: 8px; }
  dl.fakten dt:first-child { padding-top: 0; }
  .budget .rest { margin-left: 0; width: 100%; }
  /* Mindestens zwei Spalten, auch auf 360 px schmalen Geräten: eine Spalte
     ist nie breiter als die Hälfte. Mit mehr Platz werden es mehr. */
  .dienste { grid-template-columns: repeat(auto-fill, minmax(min(9.25rem, calc(50% - 4px)), 1fr)); gap: 8px; }
  button.dienst { padding: 10px 11px; gap: 10px; align-items: flex-start; }
  .dienst .dn { font-size: 13.5px; }
  dialog.konfig .dkopf, dialog.konfig .dinhalt { padding-left: 16px; padding-right: 16px; }
  dialog.konfig .rechte label.umfang { flex-direction: column; align-items: stretch; gap: 5px; }
  .sys .rechte, .sys .rechte form { flex-direction: column; align-items: flex-start; gap: 8px; }
  .sys .rechte form button { align-self: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

.zur-zentrale { margin: 0 0 22px; font-size: 13px; }
