/* Shared administration theme. Load after the module stylesheets. */
body.workspace {
  --grund:#f4f6f8; --flaeche:#fff; --vertieft:#edf1f5; --schrift:#242424;
  --leise:#56616e; --linie:#d7dce1; --linie2:#a6b0bb; --akzent:#0f6cbd;
  --akzent2:#e5f0fa; --radius:3px; --ink:#242424; --muted:#56616e;
  --brand:#0f6cbd; --brand-dark:#07528f; --border:#d7dce1;
  --green:#0f6cbd; --cream:#f4f6f8; --paper:#fff; --line:#d7dce1;
  --gut:#186138; --gut-bg:#e6f3eb; --warn:#805611; --warn-bg:#fff3d9;
  --stopp:#a4262c; --stopp-bg:#fce8e9; --schatten:none;
  --tab-kopf:#f5f7f9; --tab-kopf-hover:#e9eef3; --tab-filter:#f5f7f9;
  --tab-zebra:#fafbfd; --tab-hover:#edf4fa; --tab-trenner:#e5e9ed; --tab-aktiv:#e5f0fa;
  --titel-bg:#f4f6f8; --titel-text:#242424;
  margin:0; background:var(--grund); color:var(--schrift); color-scheme:light;
  font:1rem/1.5 "Segoe UI",system-ui,Arial,sans-serif;
}
.workspace .adminbar,.workspace .wdp-kopf,.workspace .f-kopf {
  background:#182634; color:#fff; border:0; position:sticky; top:0; z-index:40;
}
.workspace .adminbar .wrap,.workspace .wdp-kopf-innen {
  width:100%; max-width:none; min-height:52px; padding:8px 16px; gap:16px;
  display:flex; align-items:center; flex-wrap:wrap;
}
.workspace .adminbar strong {font-size:1rem;letter-spacing:0;font-weight:600;margin:0;}
.workspace .adminbar a,.workspace .wdp-kopf a,.workspace .wdp-marke span,
.workspace .wdp-wer,.workspace .wdp-wer strong {color:#fff;font-size:.875rem;}
.workspace .admnav {display:flex;gap:4px;flex:1;align-items:center;flex-wrap:wrap;}
.workspace .adminbar a.on,.workspace .wdp-nav a[aria-current] {background:#304a62;color:#fff;}
.workspace .adminbar a:hover,.workspace .wdp-nav a:hover {background:#304a62;color:#fff;}
.workspace .admtoggle,.workspace .wdp-navknopf {display:inline-flex;padding:6px 10px;border:1px solid #7890a5;color:#fff;background:transparent;border-radius:3px;font:inherit;cursor:pointer;}
.workspace .navschale {display:grid;grid-template-columns:244px minmax(0,1fr);align-items:start;}
.workspace .navpane {display:block;background:#fff;border-right:1px solid var(--linie);top:var(--workspace-top,68px);height:calc(100dvh - var(--workspace-top,68px));overflow:auto;padding:12px 8px;position:sticky;}
.workspace .navpane .np-punkt {display:block;min-height:40px;padding:9px 12px;font-size:.875rem;line-height:1.5;color:var(--schrift);border-left:3px solid transparent;border-radius:2px;}
.workspace .navpane .np-punkt:hover {background:#edf1f5;color:#242424;}
.workspace .navpane .np-punkt.on {background:#e5f0fa;color:#0f6cbd;border-left-color:#0f6cbd;font-weight:600;}
.workspace .navpane .np-gruppe>summary {padding:13px 12px 7px;font-size:.875rem;color:#56616e;text-transform:none;letter-spacing:0;font-weight:600;cursor:pointer;}
.workspace .navpane .np-gruppe>summary:hover,.workspace .navpane .np-gruppe[open]>summary {color:#0f6cbd;}
.workspace.nav-compact .navschale {grid-template-columns:72px minmax(0,1fr);}
.workspace.nav-compact .navpane .np-label {display:none;}
/* Die Buchstabenkuerzel waren der Ersatz, solange es keine Symbole gab.
   Jetzt stuenden beide da. Sie bleiben nur an den Gruppenaufschriften,
   die kein Symbol tragen. */
.workspace.nav-compact .navpane summary[data-short]::before {content:attr(data-short);font-weight:600;}
.workspace.nav-compact .navpane .np-punkt,.workspace.nav-compact .navpane summary {text-align:center;padding-inline:4px;}
.workspace.nav-compact .navpane summary::after {display:none;}
.workspace .adminmain,.workspace .wdp-inhalt {min-width:0;width:100%;max-width:none;padding:22px 24px 64px;margin:0;}
.workspace .adminmain>.wrap {width:100%;max-width:none;margin:0;}
.workspace .adminmain h1,.workspace .wdp-titel h1 {font-size:1.65rem;font-weight:500;line-height:1.3;margin:0 0 12px;letter-spacing:0;}
.workspace .adminmain h2 {font-size:1.2rem;color:var(--schrift);background:transparent;}
.workspace .adminmain h3 {font-size:1rem;}
.workspace .adminmain .lead,.workspace .wdp-titel p,.workspace .card p {font-size:.875rem;color:var(--leise);}
.workspace .workspace-context {font-size:.875rem;color:var(--leise);margin-bottom:12px;}
.workspace .wdp-schnell {display:flex;gap:8px;flex-wrap:wrap;margin:0 0 18px;}
.workspace .wdp-eingebettet {--titel-bg:#f4f6f8;--leiste:var(--workspace-top,68px);}
body.workspace:not(.fahrer) {--leiste:var(--workspace-top,68px);}
body.workspace:not(.fahrer) .wdp-titel h1 {font-size:1.65rem;line-height:1.3;}
.workspace .adminmain .btn,.workspace .wdp-knopf {font-size:.875rem;padding:7px 12px;border-radius:3px;box-shadow:none;transform:none;}
.workspace .adminmain .btn:not(.ghost):not(.danger):not(.secondary),.workspace .wdp-knopf:not(.stumm):not(.grau):not(.gefahr) {background:#0f6cbd;border-color:#0f6cbd;color:#fff;}
.workspace .adminmain .btn.sm,.workspace .wdp-knopf.klein {font-size:.875rem;padding:5px 10px;}
.workspace .adminmain .form,.workspace .wdp-form,.workspace .card,.workspace .wdp-kachel {background:#fff;border:1px solid var(--linie);border-radius:3px;box-shadow:none;}
.workspace .wdp-kachel .was {font-size:.875rem;}
.workspace .adminmain label,.workspace .wdp-feld>label {font-size:.875rem;color:var(--schrift);}
.workspace .adminmain input:not([type=checkbox]):not([type=radio]),
.workspace .adminmain select,.workspace .adminmain textarea,
.workspace .wdp-inhalt input:not([type=checkbox]):not([type=radio]),
.workspace .wdp-inhalt select,.workspace .wdp-inhalt textarea {
  font:inherit;font-size:1rem;padding:7px 9px;border:1px solid #a6b0bb;border-radius:3px;background:#fff;color:#242424;
}
.workspace .adminmain table th,.workspace .adminmain table td,
.workspace table.wdp th,.workspace table.wdp td {font-size:.875rem;padding:9px 12px;line-height:1.45;}
.workspace .adminmain table th,.workspace table.wdp th {background:#f5f7f9;color:#56616e;text-transform:none;letter-spacing:0;font-weight:600;}
.workspace .tablewrap,.workspace .wdp-tafel {border:1px solid var(--linie);border-radius:3px;box-shadow:none;background:#fff;}
.workspace .adminmain table tbody tr:nth-child(even) {background:#fafbfd;}
.workspace .adminmain table tbody tr:hover {background:#edf4fa;}
.workspace :focus-visible {outline:2px solid #0f6cbd;outline-offset:3px;}
.workspace .f-kopf p {color:#e2edf5;}
.workspace.fahrer .wdp-knopf {min-height:44px;font-size:1rem;}
@media(max-width:900px) {
  .workspace .navschale,.workspace.nav-compact .navschale {grid-template-columns:minmax(0,1fr);}
  .workspace .navpane {position:static;height:auto;max-height:none;border-bottom:1px solid var(--linie);}
  .workspace.nav-ready .navpane {display:none;}
  .workspace.nav-ready .navpane.np-offen {display:block;}
  .workspace.nav-compact .navpane .np-label {display:inline;}
  .workspace.nav-compact .navpane summary[data-short]::before {content:none;}
  .workspace.nav-compact .navpane .np-punkt,.workspace.nav-compact .navpane summary {text-align:left;padding-inline:12px;}
  .workspace .adminmain,.workspace .wdp-inhalt {padding:16px 12px 60px;}
  .workspace .admnav {flex-basis:100%;}
  .workspace .wdp-wer {flex-wrap:wrap;}
  .workspace .admtoggle,.workspace .wdp-navknopf,.workspace .np-punkt {min-height:44px;}
}
@media print {.workspace .adminbar,.workspace .wdp-kopf,.workspace .navpane,.workspace .workspace-context {display:none!important;}.workspace .navschale {display:block;}}

/* ---------- Knopf: Sprung nach Lexware Office (2026-09-10) ----------
   Er sitzt in der dunklen Kopfleiste zwischen "Menü" und den
   Benutzerlinks. Damit er dort als KNOPF und nicht als weiterer
   Menüpunkt gelesen wird, bekommt er einen Rahmen und etwas Luft -
   dieselbe Form wie .admtoggle daneben, damit die Leiste ruhig bleibt.

   Auf schmalen Geräten fällt die Aufschrift weg und das Abzeichen
   bleibt: in einer Leiste, die ohnehin umbricht, sind zwölf Zeichen
   Text teurer als ein Symbol. */
.adminbar .lexknopf {
  display: inline-flex; align-items: center; gap: 7px;
  margin-left: 10px; padding: 5px 11px 5px 7px;
  border: 1px solid #7890a5; border-radius: 3px;
  color: #fff; text-decoration: none; white-space: nowrap;
  font-size: .87rem; line-height: 1.2;
}
.adminbar .lexknopf:hover { background: #304a62; color: #fff; border-color: #a9bccd; }
.adminbar .lexknopf .lexsym { flex: 0 0 18px; display: block; }
.adminbar .lexknopf-raus { opacity: .65; font-size: .8em; }
/* Knöpfe ohne Abzeichen (XL-Automaten) zeigen auf schmalen Geräten
   ein Kürzel statt der Aufschrift - sonst bliebe nur der Pfeil. */
.adminbar .lexknopf-kurz { display: none; font-weight: 600; }

@media (max-width: 700px) {
  .adminbar .lexknopf-text { display: none; }
  .adminbar .lexknopf-kurz { display: inline; }
  .adminbar .lexknopf { padding: 5px 8px; margin-left: 6px; }
}

/* ---------- Symbole der Menuepunkte (2026-09-08) ----------
   Der Vorrat steht in admin/_header.php, hier nur die Darstellung.
   Gezeichnet wird in currentColor: damit folgt das Symbol der Farbe
   des Punktes - leise im Normalfall, Akzent beim aktiven, und in
   hell wie dunkel ohne eigene Regel.

   Nebenwirkung, die eine Absicht ist: die schmale Leiste
   (.nav-compact) blendete bisher zwei Buchstaben per
   content:attr(data-short) ein - fuer Screenreader nichts und als
   Ikone unleserlich. Jetzt bleibt dort das Symbol stehen, weil nur
   noch die Aufschrift (.np-label) verschwindet. */
.workspace .navpane .np-punkt {
  display: flex;
  align-items: center;
  gap: 9px;
}
.np-sym {
  width: 16px; height: 16px;
  flex: 0 0 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--leise);
  opacity: .85;
}
.workspace .navpane .np-punkt:hover .np-sym { color: var(--schrift); opacity: 1; }
.workspace .navpane .np-punkt.on .np-sym,
.workspace .navpane .np-punkt[aria-current] .np-sym { color: var(--akzent); opacity: 1; }
.np-label { min-width: 0; }

/* Schmale Leiste: nur noch Symbole, mittig. */
.workspace.nav-compact .navpane .np-punkt { justify-content: center; gap: 0; }
.workspace.nav-compact .navpane .np-sym { flex: 0 0 19px; width: 19px; height: 19px; }

@media (max-width: 900px) {
  /* Dort wird die Leiste wieder breit, also auch die Aufschrift. */
  .workspace.nav-compact .navpane .np-punkt { justify-content: flex-start; gap: 9px; }
}

/* ==================================================================
   Neue Ordnung, 2026-09-13
   ------------------------------------------------------------------
   Geschaeftsbereiche, Reiter, Statuskette, Statusfarben,
   Aufgabenleiste, Kruemelspur.

   Alles hier haengt an eigenen Klassen und wirkt deshalb nur, wo es
   auch gesetzt ist - keine bestehende Seite aendert sich, nur weil
   diese Regeln dazugekommen sind.
   ================================================================== */

/* ---- Geschaeftsbereichs-Umschalter -------------------------------
   Steht in der dunklen Kopfleiste, gleich hinter dem Namen. Er ist
   die Antwort auf "wo bin ich hier" und gehoert deshalb nach oben
   links und nicht in eine Ecke. */
.workspace .wdp-bereiche {
  display: inline-flex; gap: 2px; padding: 2px;
  background: rgba(255,255,255,.10); border-radius: 4px;
}
.workspace .wdp-bereiche .wdp-bereich {
  padding: 5px 13px; border-radius: 3px; font-size: .8125rem; font-weight: 600;
  color: #c6d3df; text-decoration: none; white-space: nowrap; line-height: 1.4;
}
.workspace .wdp-bereiche .wdp-bereich:hover { background: #304a62; color: #fff; }
.workspace .wdp-bereiche .wdp-bereich.an { background: #fff; color: #182634; }

/* P2: Der Mandantenumschalter sah aus wie eine Reiterleiste, ist aber
   ein KONTEXTWECHSEL - danach zeigt die ganze Anwendung andere Daten.
   Der Rahmen und die Aufschrift davor sagen das; Reiter haben weder
   das eine noch das andere. */
.workspace .wdp-bereiche {
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  padding: 2px;
}
.workspace .wdp-bereiche::before {
  content: 'Bereich';
  align-self: center;
  padding: 0 8px 0 6px;
  font-size: .7rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  opacity: .65;
}
.workspace .wdp-bereiche .wdp-bereich { border-radius: 999px; }
/* Die Farbe des Bereichs als schmaler Streifen darunter - erkennbar,
   ohne dass die Leiste bunt wird. */
.workspace .wdp-bereiche .wdp-bereich.an[data-bereich="wichtel"]   { box-shadow: inset 0 -3px 0 #17803d; }
.workspace .wdp-bereiche .wdp-bereich.an[data-bereich="wiesengut"] { box-shadow: inset 0 -3px 0 #a16207; }
.workspace .wdp-bereiche .wdp-bereich.an[data-bereich="gesamt"]    { box-shadow: inset 0 -3px 0 #64748b; }

/* ---- Reiter innerhalb einer Seite ------------------------------- */
.workspace .wdp-reiter {
  display: flex; gap: 2px; flex-wrap: wrap;
  border-bottom: 1px solid var(--linie); margin: 0 0 18px;
}
.workspace .wdp-reiter .rt {
  padding: 9px 15px; font-size: .875rem; color: var(--leise); text-decoration: none;
  border: 1px solid transparent; border-bottom: 0; border-radius: 3px 3px 0 0;
  margin-bottom: -1px; white-space: nowrap;
}
.workspace .wdp-reiter .rt:hover { background: var(--vertieft); color: var(--schrift); }
.workspace .wdp-reiter .rt.an {
  background: var(--flaeche); color: var(--akzent); font-weight: 700;
  border-color: var(--linie); border-bottom: 1px solid var(--flaeche);
  /* Deutlicher als bisher (15.09.2026): eine Kante in Akzentfarbe
     oben. Farbe allein trug die Aussage vorher zu leise - auf einem
     Tablet im Hellen war kaum zu sehen, welcher Reiter offen ist. */
  box-shadow: inset 0 2px 0 var(--akzent);
}
/* Ein Reiter, hinter dem nichts steht. Nicht ausgeblendet - er sagt ja
   auch etwas: dass dort noch nichts ist. */
.workspace .wdp-reiter .rt.leer { color: #b3bcc6; }
.workspace .wdp-reiter .rt.leer:hover { color: var(--schrift); }
.workspace .wdp-reiter .rt-zahl {
  display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 4px;
  background: var(--vertieft); color: var(--leise);
  border-radius: 9px; font-size: .75rem; text-align: center; font-weight: 600;
}
.workspace .wdp-reiter .rt.an .rt-zahl { background: var(--akzent2); color: var(--akzent); }

/* ---- Statusfarben ------------------------------------------------
   Fuenf Toene, und zwar ueberall dieselben. Siehe admin/inc/ui.php:
   grau = noch nicht begonnen, blau = unterwegs, gruen = fertig,
   orange = jemand muss etwas tun, rot = es klemmt. */
.workspace .wdp-chip {
  display: inline-block; padding: 1px 8px; border-radius: 10px;
  font-size: .75rem; font-weight: 600; line-height: 1.6; white-space: nowrap;
  border: 1px solid transparent;
}
.workspace .wdp-chip.grau   { background: #eef1f4; color: #50596a; border-color: #dde2e8; }
.workspace .wdp-chip.blau   { background: #e5f0fa; color: #0f6cbd; border-color: #cfe2f4; }
.workspace .wdp-chip.gruen  { background: #e6f3eb; color: #186138; border-color: #cfe6d9; }
.workspace .wdp-chip.orange { background: #fff3d9; color: #805611; border-color: #f4e2bd; }
.workspace .wdp-chip.rot    { background: #fce8e9; color: #a4262c; border-color: #f3d2d4; }

/* ---- Statuskette -------------------------------------------------
   Der gefuellte Punkt ist der naechste Handgriff. Deshalb ist er der
   einzige, der Farbe bekommt - er soll gefunden werden, ohne dass man
   die Zeile liest. */
.workspace .wdp-kette {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0;
  list-style: none; margin: 0 0 16px; padding: 10px 14px;
  background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius);
  font-size: .8125rem;
}
.workspace .wdp-kette .kt-schritt { display: flex; align-items: center; }
.workspace .wdp-kette .kt-schritt + .kt-schritt::before {
  content: ""; width: 18px; height: 1px; background: var(--linie2);
  margin: 0 9px; flex: 0 0 18px;
}
.workspace .wdp-kette a { text-decoration: none; display: inline-flex; align-items: center; gap: 5px; }
.workspace .wdp-kette .kt-zeichen { font-size: .875rem; line-height: 1; }
.workspace .wdp-kette .kt-schritt.fertig { color: #186138; }
.workspace .wdp-kette .kt-schritt.jetzt  { color: #0f6cbd; font-weight: 700; }
.workspace .wdp-kette .kt-schritt.offen  { color: #9aa5b1; }

/* Dritter Zustand: begonnen, aber lueckenhaft (P0-1). Bernstein statt
   Rot - es ist kein Fehler, sondern eine Luecke. Der Grund steht als
   kleiner Text daneben und nicht nur im title: was nur die Maus
   zeigt, sieht am Tablet niemand. */
.workspace .wdp-kette .kt-schritt.teil { color: #8a5a12; font-weight: 600; }

/* ---- Was DRAN ist, und was noch wartet (15.09.2026) ----
   Der erste nicht fertige Schritt traegt zusaetzlich .dran: kraeftig,
   fett, mit einem Ring um das Zeichen. Was danach kommt, wird blass -
   es ist noch nicht die Aufgabe. Die Farbe des Zustands bleibt
   erhalten (offen blau-grau, teil amber), nur die Staerke wechselt. */
.workspace .wdp-kette .kt-schritt.dran { font-weight: 700; }
.workspace .wdp-kette .kt-schritt.dran.offen { color: #0f6cbd; }
.workspace .wdp-kette .kt-schritt.dran .kt-zeichen {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: currentColor;
  color: #fff;
  font-size: .7rem;
}
.workspace .wdp-kette .kt-schritt.dran .kt-text { text-decoration: underline; text-underline-offset: 3px; }
.workspace .wdp-kette .kt-schritt.spaeter { color: #b3bcc6; font-weight: 400; }
.workspace .wdp-kette .kt-schritt.spaeter .kt-grund { display: none; }

/* Kette und die eine Handlung daneben - eine Zeile, die sagt, wo der
   Kunde steht und was als naechstes zu tun ist. */
.workspace .kd-kette-zeile {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.workspace .kd-kette-zeile > .wdp-kette { flex: 1 1 auto; margin-bottom: 0; }
.workspace .wdp-kette .kt-grund {
  font-size: .75rem;
  font-weight: 400;
  color: #9aa5b1;
  margin-left: 4px;
}
.workspace .wdp-kette .kt-schritt.teil .kt-grund { color: #8a5a12; }
.workspace .wdp-kette .kt-schritt.fertig .kt-grund { display: none; }
.workspace .wdp-kette .kt-schritt.jetzt .kt-text {
  box-shadow: 0 2px 0 #0f6cbd;   /* der naechste Schritt, unterstrichen */
}
.workspace .wdp-kette a:hover .kt-text { text-decoration: underline; }

/* ---- Aufgabenleiste ---------------------------------------------
   Steht ueber einer Liste und nennt nur, was NICHT null ist. */
.workspace .wdp-aufgaben {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px;
}
.workspace .wdp-aufgaben .auf {
  display: inline-flex; align-items: baseline; gap: 6px;
  padding: 7px 13px; border-radius: var(--radius); font-size: .8125rem;
  text-decoration: none; border: 1px solid transparent;
}
.workspace .wdp-aufgaben .auf strong { font-size: 1.0625rem; font-weight: 700; }
.workspace .wdp-aufgaben .auf.orange { background: #fff3d9; color: #805611; border-color: #f4e2bd; }
.workspace .wdp-aufgaben .auf.rot    { background: #fce8e9; color: #a4262c; border-color: #f3d2d4; }
.workspace .wdp-aufgaben .auf.blau   { background: #e5f0fa; color: #0f6cbd; border-color: #cfe2f4; }
.workspace .wdp-aufgaben .auf.gruen  { background: #e6f3eb; color: #186138; border-color: #cfe6d9; }
.workspace .wdp-aufgaben .auf.grau   { background: #eef1f4; color: #50596a; border-color: #dde2e8; }
.workspace .wdp-aufgaben a.auf:hover { filter: brightness(.97); }

/* ---- Kruemelspur ------------------------------------------------- */
.workspace .wdp-spur { margin: 0 0 6px; font-size: .8125rem; color: var(--leise); }
.workspace .wdp-spur ol { display: flex; flex-wrap: wrap; gap: 0; list-style: none; margin: 0; padding: 0; }
.workspace .wdp-spur li + li::before { content: "\203A"; margin: 0 7px; color: var(--linie2); }
.workspace .wdp-spur a { color: var(--leise); text-decoration: none; }
.workspace .wdp-spur a:hover { color: var(--akzent); text-decoration: underline; }
.workspace .wdp-spur [aria-current] { color: var(--schrift); }

/* ---- Zahl am Menuepunkt ------------------------------------------ */
.workspace .navpane .np-zahl {
  margin-left: auto; min-width: 18px; padding: 0 5px;
  background: #fff3d9; color: #805611; border-radius: 9px;
  font-size: .6875rem; font-weight: 700; text-align: center; line-height: 17px;
}
.workspace.nav-compact .navpane .np-zahl { display: none; }

/* ---- Hauptaktion einer Seite -------------------------------------
   Genau EINE je Seite (Marcel: "Nicht zehn gleichwertig hervorgehobene
   Buttons"). Alles andere bleibt stumm oder grau. */
.workspace .wdp-knopf.haupt {
  background: #17803d; border-color: #136a33; color: #fff; font-weight: 600;
}
.workspace .wdp-knopf.haupt:hover { background: #136a33; }

/* ---- Kachel mit Zweck --------------------------------------------
   Eine Kachel, die zu etwas fuehrt, sieht anders aus als eine, die
   nur eine Zahl nennt. */
.workspace .wdp-kachel.tat { text-decoration: none; display: block; }
.workspace .wdp-kachel.tat:hover { border-color: var(--akzent); background: var(--akzent2); }
.workspace .wdp-kachel.warnt { border-left: 3px solid #d08700; }

@media (max-width: 700px) {
  .workspace .wdp-bereiche { width: 100%; }
  .workspace .wdp-bereiche .wdp-bereich { flex: 1; text-align: center; }
  .workspace .wdp-kette { font-size: .75rem; padding: 8px 10px; }
  .workspace .wdp-kette .kt-schritt + .kt-schritt::before { width: 10px; flex-basis: 10px; margin: 0 5px; }
}
/* Untermenü: eingerückt, eine Spur leiser (siehe wdp.css). */
.workspace .navpane .np-punkt.np-unter {padding-left:32px;font-size:.8125rem;opacity:.9;}
.workspace.nav-compact .navpane .np-punkt.np-unter {padding-inline:4px;}


/* ==================================================================
   Konto-Menue oben rechts (P2)
   ------------------------------------------------------------------
   Statt dreier loser Textlinks (Benutzer / Passwort / Abmelden) ein
   Punkt, der sie zusammenfasst. <details> statt Javascript: er geht
   auch ohne auf, und ohne Skript bleibt er eine Liste.
   ================================================================== */
.kontomenue { position: relative; display: inline-block; }
.kontomenue > summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.kontomenue > summary::-webkit-details-marker { display: none; }
.kontomenue > summary::marker { content: ''; }
.kontomenue > summary:hover { background: rgba(255, 255, 255, .12); }
.kontomenue .kontoname { max-width: 12rem; overflow: hidden; text-overflow: ellipsis; }

.kontoliste {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 80;
  min-width: 13rem;
  display: flex;
  flex-direction: column;
  padding: 6px;
  border: 1px solid #d6dee6;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .16);
}
.kontoliste a {
  padding: 7px 10px;
  border-radius: 6px;
  color: #2b3a47;
  text-decoration: none;
  white-space: nowrap;
}
.kontoliste a:hover { background: #eef3f8; }

/* ==================================================================
   Statuskette vs. Reiter (P2)
   ------------------------------------------------------------------
   Beide waren waagerechte Linkleisten direkt uebereinander und
   teilten Begriffe (Objekt/Objekte, Preis/Leistungen & Preise). Die
   Kette ist eine ANZEIGE und keine Navigation - also schmaler,
   leiser und ohne Reiter-Anmutung.
   ================================================================== */
.workspace .wdp-kette {
  font-size: .78rem;
  padding: 6px 0 8px;
  border-bottom: 1px dashed #e3e9ef;
  margin-bottom: 10px;
}
.workspace .wdp-kette .kt-text { font-weight: 400; }

/* ==================================================================
   Abschnittsueberschriften im Formular (P2)
   ------------------------------------------------------------------
   Klein, grau und in Versalien waren sie kaum wahrnehmbar - sie
   sollen die Bloecke trennen und nicht verschwinden.
   ================================================================== */
.workspace .wdp-form .sp-kopf,
.workspace .wdp-abschnitt > h3 {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: #3f4c59;
}
.workspace .wdp-form .wdp-abschnitt { margin-top: 20px; padding-top: 16px; }

/* KEINE Inhaltsbreite mehr.

   P2 der Aufgabe schlug eine maximale Breite vor, weil das Formular
   auf 1568 px ausgeduennt wirkte. Ich hatte daraufhin die linke
   Spalte auf 72 rem gedeckelt - und damit auch die Reiterinhalte
   darin: Tabellen, Objektlisten, Rechnungen standen schmal in einer
   halbleeren Seite.

   Marcel am 14.09.2026: „jetzt sind die Tabs noch zu schmal, mach sie
   wieder breit." Er hat recht - eine Tabelle lebt von der Breite,
   ein Formular nicht. Die Grenze faellt darum ganz weg; die
   Lesbarkeit der Formularzeilen regeln die Feldbreiten selbst.

   min-width: 0 bleibt: ohne das sprengt eine breite Tabelle das
   Raster und schiebt die Seitenspalte hinaus. */
.workspace .wdp-karte-zwei > div:first-child { min-width: 0; }
