/* Gestaltung der Webseite: Richtung „Vorschau B“ (Konzept Punkt 4, Oberfläche und Navigation, 12.11.2026).
   Seitenleiste links in Kundenblau, Hell/Dunkel per Schalter, ohne fremde Schriften oder Skripte (CSP).
   Seitenleiste mit Kundenlogo und Übersicht neu gestaltet am 13.11.2026 (Vorschau docs/vorschau/uebersicht-neu.html).
   Die alten Klassennamen (kopfzeile, kachel, angaben, verlauf, …) bleiben gültig und bekommen das neue Aussehen. */

/* ---------- Farben ---------- */
:root {
  color-scheme: light;
  --bg: #f3f5f9;
  --flaeche: #ffffff;
  --flaeche-2: #f7f9fc;
  --flaeche-3: #edf1f6;
  --linie: #e1e6ee;
  --linie-stark: #c9d2de;
  --text: #132036;
  --text-2: #4b5a72;
  --text-3: #6b7890;
  --akzent: #1f5fae;
  --akzent-hover: #184d8f;
  --akzent-weich: #e7f0fb;
  --akzent-text: #ffffff;
  --ok: #18794e;
  --ok-weich: #e2f5ea;
  --warn: #8f5400;
  --warn-weich: #fdf0d8;
  --fehler: #b42318;
  --fehler-weich: #fdeceb;
  --lila: #5b3fc4;
  --lila-weich: #efeafd;
  --tuerkis: #0b6e85;
  --tuerkis-weich: #def3f7;
  --grau: #56637a;
  --grau-weich: #eef1f5;
  --gelb: #a16207;
  --gelb-weich: #fef6d4;
  --schatten-1: 0 1px 2px rgba(16, 24, 40, .05);
  --schatten-3: 0 12px 32px rgba(16, 24, 40, .18);
  --schatten-karte: 0 1px 2px rgba(9, 30, 70, .05), 0 10px 28px -18px rgba(9, 30, 70, .22);
  --schatten-hoch: 0 2px 4px rgba(9, 30, 70, .06), 0 20px 38px -18px rgba(9, 30, 70, .34);
  --stark: #0c2a66;
  --stark-hover: #123a8a;
  --stark-text: #ffffff;
  --fokus: 0 0 0 3px rgba(31, 95, 174, .35);
  --radius: 8px;
  --leiste-breite: 244px;
  --oben-hoehe: 64px; /* Kopfzeile .oben klebt oben; mitlaufende Elemente setzen sich darunter */
  --leiste-bg: #071d49; /* aus dem Blau des Kundenlogos (#00205b), etwas tiefer */
  --leiste-text: #c3d0e6;
  --leiste-stark: #ffffff;
  --leiste-leise: #8da0c2;
  --leiste-hover: rgba(255, 255, 255, .07);
  --leiste-aktiv: #1f5fae;
  --leiste-linie: rgba(255, 255, 255, .1);
  --leiste-rand: transparent;
  --schrift: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --schrift-gross: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --weich: cubic-bezier(.2, .7, .2, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-thema="hell"]) {
    color-scheme: dark;
    --bg: #0c121b; --flaeche: #131b27; --flaeche-2: #18212f; --flaeche-3: #1f2a3a;
    --linie: #243042; --linie-stark: #34435b;
    --text: #e8edf4; --text-2: #a9b5c7; --text-3: #8592a7;
    --akzent: #6ea8f0; --akzent-hover: #8fbcf4; --akzent-weich: #162d4b; --akzent-text: #07111f;
    --ok: #5fcf98; --ok-weich: #11301f; --warn: #f3b55c; --warn-weich: #352610;
    --fehler: #f58b80; --fehler-weich: #3a1916; --lila: #b4a2f8; --lila-weich: #261f45;
    --tuerkis: #5cc8de; --tuerkis-weich: #0f2d36; --grau: #a3afc2; --grau-weich: #1f2937;
    --gelb: #facc15; --gelb-weich: #322a0c;
    --schatten-1: 0 1px 2px rgba(0, 0, 0, .3); --schatten-3: 0 16px 40px rgba(0, 0, 0, .55);
    --fokus: 0 0 0 3px rgba(110, 168, 240, .45);
    --leiste-bg: #060d1a; --leiste-aktiv: #1d4f8f; --leiste-rand: rgba(255, 255, 255, .07);
    --schatten-karte: 0 1px 2px rgba(0, 0, 0, .3); --schatten-hoch: 0 18px 40px -18px rgba(0, 0, 0, .8);
    --stark: #6ea8f0; --stark-hover: #8fbcf4; --stark-text: #07111f;
  }
}

:root[data-thema="dunkel"] {
  color-scheme: dark;
  --bg: #0c121b; --flaeche: #131b27; --flaeche-2: #18212f; --flaeche-3: #1f2a3a;
  --linie: #243042; --linie-stark: #34435b;
  --text: #e8edf4; --text-2: #a9b5c7; --text-3: #8592a7;
  --akzent: #6ea8f0; --akzent-hover: #8fbcf4; --akzent-weich: #162d4b; --akzent-text: #07111f;
  --ok: #5fcf98; --ok-weich: #11301f; --warn: #f3b55c; --warn-weich: #352610;
  --fehler: #f58b80; --fehler-weich: #3a1916; --lila: #b4a2f8; --lila-weich: #261f45;
  --tuerkis: #5cc8de; --tuerkis-weich: #0f2d36; --grau: #a3afc2; --grau-weich: #1f2937;
  --gelb: #facc15; --gelb-weich: #322a0c;
  --schatten-1: 0 1px 2px rgba(0, 0, 0, .3); --schatten-3: 0 16px 40px rgba(0, 0, 0, .55);
  --fokus: 0 0 0 3px rgba(110, 168, 240, .45);
  --leiste-bg: #060d1a; --leiste-aktiv: #1d4f8f; --leiste-rand: rgba(255, 255, 255, .07);
  --schatten-karte: 0 1px 2px rgba(0, 0, 0, .3); --schatten-hoch: 0 18px 40px -18px rgba(0, 0, 0, .8);
  --stark: #6ea8f0; --stark-hover: #8fbcf4; --stark-text: #07111f;
}

/* ---------- Grundlage ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--oben-hoehe) + 16px); } /* Sprunglinks landen unter der Kopfzeile */
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--schrift);
  font-size: 15.5px; /* vorher 14.5px; größer für bessere Lesbarkeit (Nutzer, 18.11.2026) */
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--akzent); }
a:hover { color: var(--akzent-hover); }
h1 { font-size: 26px; font-weight: 700; letter-spacing: -.015em; line-height: 1.2; margin: 0 0 12px; }
h2 { font-size: 18px; font-weight: 680; margin: 0 0 8px; }
h3 { font-size: 16px; font-weight: 680; margin: 0 0 6px; }
p { margin: 0 0 10px; }
:focus-visible { outline: none; box-shadow: var(--fokus); border-radius: 6px; }
[hidden] { display: none !important; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.ic--klein { width: 16px; height: 16px; }
[data-thema="dunkel"] .ic-mond, [data-thema="hell"] .ic-sonne { display: none; }
:root:not([data-thema]) .ic-sonne { display: none; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sprung { position: absolute; left: -999px; }
.sprung:focus { left: 16px; top: 16px; z-index: 100; padding: 8px 12px; background: var(--akzent); color: var(--akzent-text); border-radius: 8px; }
.zahl { font-variant-numeric: tabular-nums; white-space: nowrap; }
.leise { color: var(--text-3); font-size: 13.5px; }
.rechts { text-align: right; }

/* ---------- Hülle: Seitenleiste + Hauptbereich ---------- */
.schale { display: grid; grid-template-columns: var(--leiste-breite) minmax(0, 1fr); min-height: 100vh; }
.leiste {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column;
  padding: 24px 14px 14px;
  background: var(--leiste-bg); color: var(--leiste-text);
  border-right: 1px solid var(--leiste-rand);
  overflow-y: auto; overflow-x: hidden;
  scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .22) transparent;
}
.leiste :focus-visible { box-shadow: 0 0 0 3px rgba(255, 255, 255, .5); }
.marke { display: flex; align-items: center; gap: 10px; padding: 4px 6px 14px; font-weight: 650; font-size: 15px; text-decoration: none; color: var(--text); }
.leiste .marke { color: var(--leiste-stark); }
.marke:hover { color: inherit; }
.marke__zeichen {
  width: 34px; height: 34px; flex: none; display: grid; place-items: center;
  border-radius: 9px; background: #1f5fae; color: #fff;
  font-weight: 750; font-size: 13px; letter-spacing: .02em;
}
.leiste .marke__zeichen { background: #fff; color: #0b2545; }
.marke__text { display: flex; flex-direction: column; line-height: 1.2; white-space: nowrap; }
.marke__unter { font-size: 11.5px; font-weight: 500; color: var(--leiste-leise); }
/* In der Seitenleiste: Kundenlogo im Original auf einer weißen Karte (rotes „Projektmanagement“ war auf Blau kaum lesbar,
   Vorschau docs/vorschau/logo-leiste.html, Variante A vom 13.11.2026), darunter Name der Anwendung und Rolle.
   Eingeklappt bleibt nur das Kürzel „RP“. */
.leiste .marke { display: block; padding: 4px 12px; }
.marke__logo { display: block; width: 184px; max-width: 100%; height: auto; }
.marke__karte { display: block; padding: 12px 14px; border-radius: 12px; background: #fff; box-shadow: 0 6px 18px -10px rgba(0, 0, 0, .55); }
.marke__karte .marke__logo { width: 100%; }
:root[data-thema="dunkel"] .marke__karte { background: #f3f5f9; box-shadow: none; }
@media (prefers-color-scheme: dark) { :root:not([data-thema="hell"]) .marke__karte { background: #f3f5f9; box-shadow: none; } }
.leiste .marke__zeichen { display: none; width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .13); color: #fff; font-size: 14px; }
.leiste .marke__text { gap: 1px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--leiste-linie); font-size: 14.5px; font-weight: 640; line-height: 1.3; }
.leiste .marke__unter { font-size: 12.5px; }
.leiste .leiste__neu { margin: 18px 0 0; min-height: 44px; border-radius: 12px; background: #2f74e0; border-color: #2f74e0; color: #fff; font-weight: 650; transition: background-color .16s, border-color .16s, box-shadow .2s; }
.leiste .leiste__neu:hover { background: #4687f0; border-color: #4687f0; color: #fff; box-shadow: 0 10px 22px -12px rgba(0, 0, 0, .7); }
.leiste__gruppe { margin-top: 20px; display: flex; flex-direction: column; gap: 3px; }
.leiste__titel { margin: 0; padding: 0 12px 6px; font-size: 12.5px; font-weight: 600; color: var(--leiste-leise); white-space: nowrap; }
.nav-punkt {
  position: relative;
  display: flex; align-items: center; justify-content: flex-start; gap: 12px;
  width: 100%; height: 42px; padding: 0 12px;
  border: 0; border-radius: 12px; background: transparent;
  color: inherit; font: inherit; font-weight: 540; text-decoration: none; white-space: nowrap; text-align: left;
  cursor: pointer;
  transition: background-color .16s, color .16s;
}
.nav-punkt:hover { background: var(--leiste-hover); color: var(--leiste-stark); }
.nav-punkt[aria-current="page"] { background: rgba(255, 255, 255, .13); color: #fff; font-weight: 640; }
.nav-punkt[aria-current="page"]::before { content: ""; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 4px; border-radius: 0 4px 4px 0; background: #7fb0ff; }
.nav-punkt__zahl {
  margin-left: auto; min-width: 24px; height: 22px; padding: 0 7px;
  display: grid; place-items: center; border-radius: 999px;
  background: #7fb0ff; color: #071d49; font-size: 12.5px; font-weight: 700;
}
.nav-punkt__zahl--warn { background: #ffc857; color: #2a1a00; }
.leiste__fuss { margin-top: auto; padding-top: 18px; display: flex; flex-direction: column; gap: 6px; }
.ich { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; background: rgba(255, 255, 255, .06); color: inherit; text-decoration: none; transition: background-color .16s; }
.ich:hover, .ich[aria-current="page"] { background: rgba(255, 255, 255, .11); color: inherit; }
.ich__text { display: flex; flex-direction: column; min-width: 0; }
.ich__name { font-weight: 640; color: var(--leiste-stark); font-size: 14.5px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ich__rolle { font-size: 12.5px; color: var(--leiste-leise); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.avatar { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--akzent-weich); color: var(--akzent); font-weight: 700; font-size: 13px; }
.avatar--gross { width: 56px; height: 56px; font-size: 20px; }
.leiste .avatar { width: 38px; height: 38px; background: linear-gradient(140deg, #3b7de6, #7fb0ff); color: #fff; font-size: 14px; }
.leiste__zeile { display: flex; align-items: center; gap: 4px; }
.leiste__abmelden { flex: 1; margin: 0; }
.symbolknopf {
  width: 42px; height: 42px; flex: none; display: grid; place-items: center;
  padding: 0; border: 0; border-radius: 12px; background: transparent; color: inherit; cursor: pointer;
  transition: background-color .16s, color .16s, border-color .16s;
}
.symbolknopf:hover { background: var(--leiste-hover); }
[data-aktion="einklappen"] .ic { transition: transform .25s var(--weich); }

.haupt { min-width: 0; display: flex; flex-direction: column; }
.oben {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 12px;
  height: var(--oben-hoehe); padding: 0 24px;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  -webkit-backdrop-filter: blur(12px) saturate(1.3); backdrop-filter: blur(12px) saturate(1.3);
  border-bottom: 1px solid var(--linie);
  transition: box-shadow .25s;
}
/* Schatten, sobald gescrollt ist (static/js/seite.js) */
.oben.ist-gescrollt { box-shadow: 0 14px 26px -22px rgba(9, 30, 70, .55); }
/* Name der Seite links in der Kopfzeile (Block „seitenname“ in base.html); leer = unsichtbar */
.oben__titel { font-size: 15px; font-weight: 640; color: var(--text-2); white-space: nowrap; }
.oben__titel:empty { display: none; }
.oben .symbolknopf { border: 1px solid var(--linie); background: var(--flaeche); color: var(--text-2); }
.oben .symbolknopf:hover { color: var(--text); background: var(--flaeche-3); }
.oben__fueller { flex: 1; }
.mobil-marke { display: none; }
.suche {
  flex: 1; max-width: 460px; margin: 0 0 0 auto;
  display: flex; align-items: center; gap: 8px;
  height: 42px; padding: 0 12px 0 14px;
  border: 1px solid var(--linie); border-radius: 12px;
  background: var(--flaeche); color: var(--text-3);
  transition: border-color .16s, box-shadow .16s;
}
.suche:focus-within { border-color: var(--akzent); box-shadow: var(--fokus); }
.suche input[type="search"] { flex: 1; min-width: 0; min-height: 0; height: 100%; padding: 0; border: 0; background: transparent; outline: none; box-shadow: none; color: var(--text); }
.suche input[type="search"]:focus { outline: none; box-shadow: none; }
.taste { font-size: 11px; border: 1px solid var(--linie-stark); border-radius: 5px; padding: 0 5px; color: var(--text-3); white-space: nowrap; }
.testschild {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px;
  border-radius: 999px; background: var(--warn-weich); color: var(--warn);
  font-size: 12px; font-weight: 650; white-space: nowrap;
}
/* Kopfzeile rechts: Testschild, Suche, Hell/Dunkel (Nutzer, 12.11.2026) */
.oben > .testschild { margin-left: auto; }
.oben > .testschild + .suche { margin-left: 0; }
.inhalt { width: 100%; max-width: 1400px; margin: 0 auto; padding: 22px 24px 32px; flex: 1; }
.fuss { padding: 14px 24px 22px; color: var(--text-3); font-size: 12.5px; text-align: center; }
.fuss a { color: inherit; }
.schleier { display: none; }
.nur-mobil { display: none !important; }
body:not(.leiste-einklappbar) .nur-einklappbar { display: none !important; }

/* Eingeklappte Seitenleiste am großen Bildschirm (Platz für PDF neben dem Formular) */
@media (min-width: 901px) {
  .schale { transition: grid-template-columns .2s ease; }
  [data-leiste="eingeklappt"] .leiste-einklappbar { --leiste-breite: 76px; }
  [data-leiste="eingeklappt"] .leiste-einklappbar .leiste__text,
  [data-leiste="eingeklappt"] .leiste-einklappbar .marke__text,
  [data-leiste="eingeklappt"] .leiste-einklappbar .ich__text { display: none; }
  [data-leiste="eingeklappt"] .leiste-einklappbar { --leiste-breite: 82px; }
  [data-leiste="eingeklappt"] .leiste-einklappbar .marke__karte { display: none; }
  [data-leiste="eingeklappt"] .leiste-einklappbar .marke__zeichen { display: grid; }
  [data-leiste="eingeklappt"] .leiste-einklappbar .marke { display: grid; place-items: center; padding-left: 0; padding-right: 0; }
  [data-leiste="eingeklappt"] .leiste-einklappbar .leiste__titel { font-size: 0; height: 1px; padding: 0; margin: 0 10px 8px; background: var(--leiste-linie); }
  [data-leiste="eingeklappt"] .leiste-einklappbar .nav-punkt { justify-content: center; padding: 0; }
  [data-leiste="eingeklappt"] .leiste-einklappbar .nav-punkt__zahl { position: absolute; top: 2px; right: 6px; min-width: 17px; height: 17px; padding: 0 4px; font-size: 10px; }
  [data-leiste="eingeklappt"] .leiste-einklappbar .leiste__neu { padding: 0; }
  [data-leiste="eingeklappt"] .leiste-einklappbar .ich { justify-content: center; padding: 6px 0; background: transparent; }
  [data-leiste="eingeklappt"] .leiste-einklappbar .leiste__zeile { flex-direction: column; }
  [data-leiste="eingeklappt"] .leiste-einklappbar .leiste__abmelden { width: 100%; }
  [data-leiste="eingeklappt"] .leiste-einklappbar [data-aktion="einklappen"] .ic { transform: scaleX(-1); }
}

/* Handy und schmale Fenster */
@media (max-width: 900px) {
  .schale { grid-template-columns: minmax(0, 1fr); }
  .nur-mobil { display: grid !important; }
  .nur-gross { display: none !important; }
  .oben { padding: 0 12px; gap: 8px; }
  .testschild span { display: none; }
  .testschild { padding: 0 7px; }
  .suche { margin: 0; }
  .inhalt { padding: 18px 14px 28px; }

  /* PS und Technik: Seitenleiste als Schublade */
  .leiste-einklappbar .leiste {
    position: fixed; left: 0; top: 0; bottom: 0; z-index: 50; width: 284px;
    transform: translateX(-102%); transition: transform .22s ease; box-shadow: var(--schatten-3);
  }
  .leiste-einklappbar.leiste-offen .leiste { transform: none; }
  .leiste-einklappbar .schleier { display: block; position: fixed; inset: 0; z-index: 40; background: rgba(8, 14, 24, .5); opacity: 0; pointer-events: none; transition: opacity .2s; }
  .leiste-einklappbar.leiste-offen .schleier { opacity: 1; pointer-events: auto; }

  /* Fachprüfer und Bauherr: Leiste unten */
  .leiste-extern { padding-bottom: 68px; }
  .leiste-extern .leiste {
    position: fixed; top: auto; left: 0; right: 0; bottom: 0; z-index: 30;
    height: 64px; padding: 0 6px; flex-direction: row; overflow: visible;
    border-top: 1px solid var(--leiste-linie);
  }
  .leiste-extern .leiste .marke, .leiste-extern .leiste .leiste__fuss, .leiste-extern .leiste .leiste__titel { display: none; }
  .leiste-extern .leiste__nav { flex: 1; }
  .leiste-extern .leiste__gruppe { flex-direction: row; margin: 0; height: 100%; }
  .leiste-extern .nav-punkt { flex: 1; flex-direction: column; justify-content: center; gap: 2px; height: 100%; padding: 0; border-radius: 0; font-size: 11.5px; text-align: center; }
  .leiste-extern .nav-punkt[aria-current="page"] { background: transparent; color: #fff; }
  .leiste-extern .nav-punkt[aria-current="page"]::before { display: none; }
  .leiste-extern .nav-punkt[aria-current="page"] .ic { color: #8fbcf4; }
  .leiste-extern .nav-punkt__zahl { position: absolute; top: 6px; left: calc(50% + 6px); margin: 0; min-width: 18px; height: 18px; font-size: 10.5px; }
  .leiste-extern .mobil-marke { display: flex; align-items: center; gap: 8px; margin-right: auto; font-weight: 700; color: var(--text); text-decoration: none; }
  .leiste-extern .mobil-marke .marke__zeichen { width: 28px; height: 28px; font-size: 11px; border-radius: 7px; }
  .leiste-extern .oben__fueller { display: none; }
}

/* Seiten ohne Anmeldung (Anmeldung, Zugangslink, Impressum, Fehlerseiten) */
.eingang { min-height: 100vh; display: flex; flex-direction: column; }
.eingang__kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; max-width: 1100px; margin: 0 auto; padding: 18px 24px 0; }
.eingang__kopf .marke { padding: 0; }
.eingang__rechts { display: flex; align-items: center; gap: 10px; }
.eingang__kopf .symbolknopf { border: 1px solid var(--linie); background: var(--flaeche); color: var(--text-2); }
.eingang__inhalt { flex: 1; width: 100%; max-width: 1100px; margin: 0 auto; padding: 32px 24px; }

/* ---------- Seitenkopf, Karten, Knöpfe ---------- */
.kopfzeile, .seitenkopf { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 16px; margin-bottom: 18px; }
.kopfzeile h1, .seitenkopf h1 { margin: 0; }
.seitenkopf p { margin: 4px 0 0; color: var(--text-2); }
.seitenkopf__aktionen { display: flex; flex-wrap: wrap; gap: 8px; }
.hinweis { color: var(--text-2); max-width: 52rem; }

button, .knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 38px; padding: 0 16px;
  border: 1px solid var(--akzent); border-radius: 8px;
  background: var(--akzent); color: var(--akzent-text);
  font: inherit; font-weight: 620; line-height: 1.2; text-decoration: none; white-space: nowrap;
  cursor: pointer;
}
button:hover, .knopf:hover { background: var(--akzent-hover); border-color: var(--akzent-hover); color: var(--akzent-text); }
.knopf--zweit { background: var(--flaeche); color: var(--text); border-color: var(--linie-stark); }
.knopf--zweit:hover { background: var(--flaeche-3); color: var(--text); border-color: var(--linie-stark); }
.knopf--leise { background: transparent; border-color: transparent; color: var(--akzent); padding: 0 10px; }
.knopf--leise:hover { background: var(--akzent-weich); border-color: transparent; color: var(--akzent); }
.knopf--warnung { background: var(--flaeche); color: var(--fehler); border-color: var(--linie-stark); }
.knopf--warnung:hover { background: var(--fehler-weich); color: var(--fehler); border-color: var(--fehler); }
.knopf--klein { min-height: 32px; padding: 0 12px; font-size: 14px; }
.knopf--breit { width: 100%; }
.knopf-link { min-height: 0; padding: 0; border: 0; background: none; color: var(--akzent); font-weight: 500; text-decoration: underline; }
.knopf-link:hover { background: none; color: var(--akzent-hover); }
.leiste .nav-punkt, .leiste .symbolknopf { min-height: 0; }
.leiste button.nav-punkt:hover { background: var(--leiste-hover); border-color: transparent; color: var(--leiste-stark); }
.symbolknopf:hover { border-color: transparent; color: inherit; }
.oben .symbolknopf, .eingang__kopf .symbolknopf { min-height: 0; }
.oben .symbolknopf:hover, .eingang__kopf .symbolknopf:hover { border-color: var(--linie); }
.knoepfe { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 16px; }
.inline { display: inline; margin: 0; }

.karte, .kachel { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); box-shadow: var(--schatten-1); }
.karte__kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--linie); }
.karte__kopf h2 { margin: 0; font-size: 16px; }
.karte__kopf p { margin: 2px 0 0; font-size: 13px; color: var(--text-3); }
.karte__inhalt { padding: 18px; }
.kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 14px; margin-top: 18px; }
.kachel { padding: 16px 18px; }
.kachel h2 { font-size: 16px; }
.kachel p { margin: 0; color: var(--text-2); }
.kachel form { margin-top: 10px; }
.raster-gleich { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
@media (max-width: 1000px) { .raster-gleich { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Meldungen, Hinweise ---------- */
.meldungen { list-style: none; padding: 0; margin: 0 0 16px; }
.meldung { padding: 11px 14px; margin-bottom: 8px; border: 1px solid var(--linie); border-left-width: 4px; border-radius: var(--radius); background: var(--flaeche); }
.meldung--success { border-left-color: var(--ok); background: var(--ok-weich); }
.meldung--error { border-left-color: var(--fehler); background: var(--fehler-weich); }
.meldung--warnung, .meldung--warning { border-left-color: var(--warn); background: var(--warn-weich); }
.meldung--info { border-left-color: var(--akzent); background: var(--akzent-weich); }
.hinweisbox { display: flex; gap: 12px; align-items: flex-start; padding: 13px 16px; margin-bottom: 16px; border-radius: var(--radius); background: var(--akzent-weich); }
.hinweisbox > .ic { color: var(--akzent); margin-top: 1px; }
.hinweisbox p { margin: 0; }

/* ---------- Formulare ---------- */
.schmal { max-width: 40rem; }
.formular > div, form > p, form > div { margin-bottom: 16px; }
label { display: block; font-weight: 620; margin-bottom: 5px; }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="search"],
input[type="date"], input[type="url"], input[type="tel"], select, textarea {
  width: 100%; min-height: 40px; padding: 8px 12px;
  border: 1px solid var(--linie-stark); border-radius: 8px;
  background: var(--flaeche); color: var(--text); font: inherit;
}
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--akzent); box-shadow: var(--fokus); }
input[type="checkbox"], input[type="radio"] { width: 17px; height: 17px; accent-color: var(--akzent); vertical-align: middle; }
input[type="file"] { max-width: 100%; }
input[type="file"]::file-selector-button {
  margin-right: 10px; min-height: 34px; padding: 0 12px;
  border: 1px solid var(--linie-stark); border-radius: 8px; background: var(--flaeche); color: var(--text);
  font: inherit; font-weight: 600; cursor: pointer;
}
.helptext, .hilfe, form ul:not(.errorlist) { display: block; font-size: 13.5px; color: var(--text-3); }
.errorlist { color: var(--fehler); padding-left: 18px; margin: 4px 0; }
fieldset { border: 1px solid var(--linie); border-radius: var(--radius); margin: 0 0 16px; padding: 12px 16px; background: var(--flaeche); }
legend { font-weight: 650; padding: 0 6px; }
/* Pflichtfelder: roter Stern plus leises „(Pflichtfeld)“ (Nutzer, 12.11.2026) */
.pflicht { color: var(--fehler); font-weight: 700; margin-left: 3px; }
.pflicht-text { margin-left: 6px; font-size: 12px; font-weight: 500; color: var(--text-3); letter-spacing: .01em; }
details summary { cursor: pointer; margin: 8px 0; font-weight: 600; }

/* Prüfweg als zwei Karten (Auftrag) und „Wer prüft?“ (Rechnungsentwurf), Variante 3 vom 12.11.2026 */
div.wegwahl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 6px; }
div.wegwahl > div { margin: 0; }
.wegkarte { display: flex; gap: 10px; align-items: flex-start; height: 100%; margin: 0; padding: 12px 14px; border: 1px solid var(--linie-stark); border-radius: var(--radius); background: var(--flaeche); font-weight: 400; cursor: pointer; }
.wegkarte input { flex: none; margin-top: 2px; }
.wegkarte b { display: block; font-size: 14px; }
.wegkarte span span { display: block; font-size: 13px; color: var(--text-2); }
.wegkarte:has(input:checked) { border-color: var(--akzent); background: var(--akzent-weich); box-shadow: inset 0 0 0 1px var(--akzent); }
.wegkarte:has(input:focus-visible) { box-shadow: var(--fokus); }
.wegkarte:has(input:disabled) { cursor: default; }
.wegkarte:has(input:disabled:not(:checked)) { opacity: .55; }
@media (max-width: 700px) { div.wegwahl { grid-template-columns: minmax(0, 1fr); } }
.wer { list-style: none; margin: 0 0 10px; padding: 0; border: 1px solid var(--linie); border-radius: var(--radius); background: var(--flaeche); }
.wer li { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--linie); }
.wer li:first-child { border-top: 0; }
.wer__name { flex: 1; min-width: 0; }
.wer__name small { display: block; font-size: 12.5px; color: var(--text-3); }
.wer li.wer--aus { background: var(--flaeche-2); color: var(--text-3); }
.wer__stand { font-size: 12.5px; color: var(--text-3); white-space: nowrap; }
.link-feld { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 13px; }

/* ---------- Tabellen, Angaben, Verlauf ---------- */
.tabelle-rahmen { overflow-x: auto; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); box-shadow: var(--schatten-1); }
.karte .tabelle-rahmen { border: 0; border-radius: 0; box-shadow: none; background: transparent; }
.tabelle { width: 100%; border-collapse: collapse; font-size: 14px; }
.tabelle th {
  text-align: left; white-space: nowrap; padding: 8px 14px;
  font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: .05em;
  color: var(--text-3); background: var(--flaeche-2); border-bottom: 1px solid var(--linie);
}
.tabelle td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--linie); vertical-align: middle; }
.tabelle tbody tr:last-child td { border-bottom: 0; }
.tabelle tbody tr:hover td { background: var(--flaeche-2); }
.tabelle .rechts { text-align: right; }
.zeilenlink { font-weight: 650; color: var(--text); text-decoration: none; white-space: nowrap; }
.zeilenlink:hover { color: var(--akzent); text-decoration: underline; }
.gruppenzeile td { padding: 7px 14px !important; background: var(--flaeche-2) !important; font-size: 11.5px; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; color: var(--text-2); }
.gruppenzeile--ueberfaellig td { color: var(--fehler); }
.gruppenzeile--bald td { color: var(--warn); }
@media (max-width: 700px) {
  .tabelle--karten thead { display: none; }
  .tabelle--karten, .tabelle--karten tbody, .tabelle--karten tr, .tabelle--karten td { display: block; width: 100%; }
  .tabelle--karten tr { padding: 10px 14px; border-bottom: 1px solid var(--linie); }
  .tabelle--karten tbody tr:last-child { border-bottom: 0; }
  .tabelle--karten td { padding: 2px 0; border: 0 !important; text-align: left !important; background: transparent !important; }
  .tabelle--karten .mobil-aus { display: none; }
  .tabelle--karten .gruppenzeile td { padding: 4px 0 !important; }
}

.angaben { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0 0 16px; }
.angaben dt { color: var(--text-3); }
.angaben dd { margin: 0; }
.verlauf { list-style: none; padding: 0; margin: 0 0 16px; }
.verlauf li { padding: 8px 0; border-bottom: 1px solid var(--linie); }
.verlauf time { font-variant-numeric: tabular-nums; color: var(--text-3); margin-right: 8px; }

/* Status-Marken: Rechnungen, Aufgaben, Konten, Projekte, Aufträge */
.marke-status, .marke-s {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 24px; padding: 0 9px; border-radius: 999px;
  font-size: 12.5px; font-weight: 620; white-space: nowrap;
  background: var(--grau-weich); color: var(--grau);
}
.marke-status::before, .marke-s::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.marke-status--fachpruefung, .marke-status--offen, .marke-status--eingeladen { background: var(--akzent-weich); color: var(--akzent); }
.marke-status--plausibilisierung { background: var(--lila-weich); color: var(--lila); }
.marke-status--bauherrenfreigabe { background: var(--tuerkis-weich); color: var(--tuerkis); }
.marke-status--freigegeben, .marke-status--aktiv, .marke-status--erledigt { background: var(--ok-weich); color: var(--ok); }
.marke-status--abgebrochen, .marke-status--verworfen, .marke-status--gesperrt { background: var(--fehler-weich); color: var(--fehler); }
.marke-status--zurueckgegeben, .marke-status--planer { background: var(--warn-weich); color: var(--warn); }
.marke-s--fehler { background: var(--fehler-weich); color: var(--fehler); }

.frist { display: inline-flex; flex-direction: column; line-height: 1.3; white-space: nowrap; }
.frist small { font-size: 12px; color: var(--text-3); }
.frist--ueber small { color: var(--fehler); font-weight: 650; }
.frist--bald small { color: var(--warn); font-weight: 650; }
.in-arbeit { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--warn); font-weight: 600; white-space: nowrap; }

/* ---------- Übersicht (PS) ---------- */
.alarm { margin-bottom: 16px; border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent); border-radius: var(--radius); background: var(--warn-weich); }
.alarm summary { display: flex; align-items: center; gap: 10px; margin: 0; padding: 11px 16px; cursor: pointer; list-style: none; font-weight: 680; }
.alarm summary::-webkit-details-marker { display: none; }
.alarm summary > .ic { color: var(--warn); }
.alarm summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; flex: none; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s; }
.alarm[open] summary::after { transform: rotate(-135deg); }
.alarm ul { list-style: none; margin: 0; padding: 0 16px 6px; }
.alarm li { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 9px 0; border-top: 1px solid color-mix(in srgb, var(--warn) 22%, transparent); }
.alarm li > .ic { color: var(--warn); }
.alarm li .knopf { margin-left: auto; }
.alarm__text b { font-weight: 650; }

.kennzahlen { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
@media (max-width: 1000px) { .kennzahlen { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kennzahl { position: relative; display: block; padding: 14px 16px 14px 18px; overflow: hidden; color: var(--text); text-decoration: none; }
.kennzahl::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--streifen, var(--akzent)); }
a.kennzahl:hover { border-color: var(--akzent); color: var(--text); }
.kennzahl p { margin: 0; }
.kennzahl__titel { font-size: 12.5px; color: var(--text-3); font-weight: 650; }
.kennzahl__wert { font-size: 26px; font-weight: 750; letter-spacing: -.02em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.kennzahl__unter { font-size: 12.5px; color: var(--text-2); }
.kennzahl--rot { --streifen: var(--fehler); }
.kennzahl--rot .kennzahl__unter { color: var(--fehler); font-weight: 650; }
.kennzahl--gelb { --streifen: var(--warn); }
.kennzahl--gruen { --streifen: var(--ok); }

.kurzliste { list-style: none; margin: 0; padding: 0; }
.kurzliste > li { display: flex; align-items: center; gap: 12px; padding: 11px 18px; border-bottom: 1px solid var(--linie); }
.kurzliste > li:last-child { border-bottom: 0; }
.kurzliste__rechts { margin-left: auto; text-align: right; }
.leer-text { padding: 18px; margin: 0; color: var(--text-3); }

/* Übersicht: drei Tabellen mit gleichen Spaltenbreiten, „Wartet auf andere“ nach Variante 3 (12.11.2026) */
.karte--folgt { margin-top: 16px; }
/* Abschnitte, Spaltenbreiten und Kennzahlen der Übersicht stehen seit 13.11.2026 ganz unten („.ueb“). */
.wartet-bei { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; line-height: 1.35; }
.wartet-bei__personen { font-weight: 600; }
.wartet-bei__fertig { color: var(--text-3); font-weight: 400; white-space: nowrap; }
.wartet-bei__fertig .ic { width: 13px; height: 13px; color: var(--ok); vertical-align: -2px; margin-right: 2px; }
.wartet-bei small { font-size: 12px; color: var(--text-3); }
.wartet-bei__lang { color: var(--warn); font-weight: 650; }
.wartet-bei .in-arbeit { margin-top: 2px; white-space: normal; }
.wartet-bei__warnung { display: block; margin-top: 4px; padding: 3px 9px; border-radius: 8px; background: var(--fehler-weich); color: var(--fehler); font-size: 12px; font-weight: 650; line-height: 1.4; }
.wartet-bei__warnung .ic { width: 13px; height: 13px; vertical-align: -2px; margin-right: 4px; }
.wartet-bei__warnung a { color: inherit; }
.zeile--haengt td:first-child { box-shadow: inset 3px 0 0 var(--fehler); }
.haengt-marke { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px; background: var(--fehler-weich); color: var(--fehler); font-size: 12px; font-weight: 700; vertical-align: 2px; white-space: nowrap; }
.karte__fuss--zeile { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 11px 18px; border-top: 1px solid var(--linie); font-size: 13px; }
.karte__fuss--zeile a { font-weight: 600; }
.wartet-bei { min-width: 190px; }
@media (max-width: 700px) {
  .wartet-bei { min-width: 0; }
  .tabelle--karten .zeile--haengt td:first-child { box-shadow: none; }
  .tabelle--karten tr.zeile--haengt { box-shadow: inset 3px 0 0 var(--fehler); }
}

/* Kleine Stand-Leiste: fünf Punkte, darunter der Schritt in Worten */
.stand-anzeige { display: inline-flex; flex-direction: column; gap: 3px; }
.mini-stand { display: flex; align-items: center; width: 128px; margin: 0; padding: 0; list-style: none; }
.mini-stand li { position: relative; flex: 1; height: 16px; display: flex; align-items: center; justify-content: center; }
.mini-stand li::after { content: ""; position: absolute; left: -50%; right: 50%; top: 50%; height: 2px; transform: translateY(-50%); background: var(--linie-stark); }
.mini-stand li:first-child::after { display: none; }
.mini-stand li::before { content: ""; position: relative; z-index: 1; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--linie-stark); background: var(--flaeche); }
.mini-stand .erledigt::before { background: var(--ok); border-color: var(--ok); }
.mini-stand .erledigt::after, .mini-stand .aktuell::after { background: var(--ok); }
.mini-stand .aktuell::before { width: 14px; height: 14px; border-color: var(--akzent); box-shadow: 0 0 0 3px var(--akzent-weich); }
.mini-stand--warten .aktuell::before { border-color: var(--text-3); box-shadow: 0 0 0 3px var(--grau-weich); }
.stand-anzeige__text { font-size: 12.5px; color: var(--text-2); white-space: nowrap; }
.stand-anzeige__text b { color: var(--text); font-weight: 650; }

/* Große Stand-Leiste mit Daten */
.schritte { display: flex; list-style: none; margin: 0; padding: 0; counter-reset: s; }
.schritte li { flex: 1; position: relative; padding-top: 32px; font-size: 12.5px; color: var(--text-3); text-align: center; line-height: 1.3; }
.schritte li::before {
  content: counter(s); counter-increment: s;
  position: absolute; top: 0; left: 50%; transform: translateX(-50%); z-index: 1;
  width: 24px; height: 24px; display: grid; place-items: center;
  border-radius: 50%; border: 2px solid var(--linie-stark); background: var(--flaeche); color: var(--text-3);
  font-size: 12px; font-weight: 700;
}
.schritte li::after { content: ""; position: absolute; top: 11px; left: calc(-50% + 14px); right: calc(50% + 14px); height: 2px; background: var(--linie-stark); }
.schritte li:first-child::after { display: none; }
.schritte .erledigt { color: var(--text-2); }
.schritte .erledigt::before { content: "✓"; background: var(--ok); border-color: var(--ok); color: var(--flaeche); }
.schritte .erledigt::after, .schritte .aktuell::after { background: var(--ok); }
.schritte .aktuell { color: var(--text); font-weight: 650; }
.schritte .aktuell::before { border-color: var(--akzent); color: var(--akzent); box-shadow: 0 0 0 4px var(--akzent-weich); }
.schritte--warten .aktuell::before { border-color: var(--text-3); color: var(--text-3); box-shadow: 0 0 0 4px var(--grau-weich); }
.schritte small { display: block; font-weight: 400; color: var(--text-3); }

/* Seite „Aufgaben“ (PS) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px;
  border: 1px solid var(--linie-stark); border-radius: 999px; background: var(--flaeche);
  color: var(--text-2); font-size: 13.5px; font-weight: 560; text-decoration: none;
}
.chip:hover { border-color: var(--akzent); color: var(--text); }
.chip b { font-weight: 700; opacity: .75; }
.abstand-unten { margin-bottom: 16px; }
.chip[aria-current="page"] { background: var(--akzent); border-color: var(--akzent); color: var(--akzent-text); }
.aufgaben-liste { display: flex; flex-direction: column; gap: 10px; }
.gruppe { margin: 10px 0 0; font-size: 12px; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; color: var(--text-2); }
.gruppe:first-child { margin-top: 0; }
.gruppe--ueberfaellig { color: var(--fehler); }
.gruppe--bald { color: var(--warn); }
.aufgabe {
  display: grid; grid-template-columns: minmax(200px, 1fr) minmax(380px, 1.9fr) 210px;
  gap: 28px; align-items: center; padding: 16px 20px;
  border-left: 4px solid var(--rand, var(--linie));
}
.aufgabe--ueberfaellig { --rand: var(--fehler); }
.aufgabe--bald { --rand: var(--warn); }
.aufgabe__titel h3 { margin: 0; font-size: 16px; }
.aufgabe__titel p { margin: 0; font-size: 14px; color: var(--text-2); }
.aufgabe__titel .leise { font-size: 12.5px; }
.aufgabe__titel .in-arbeit { margin-top: 4px; }
.aufgabe__rechts { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: right; }
.aufgabe__rechts .frist { align-items: flex-end; }
.aufgabe__betrag { font-weight: 720; font-size: 15px; font-variant-numeric: tabular-nums; }
@media (max-width: 1150px) {
  .aufgabe { grid-template-columns: minmax(0, 1fr) auto; row-gap: 18px; }
  .aufgabe .schritte { grid-column: 1 / -1; order: 3; }
}
@media (max-width: 600px) {
  .aufgabe { grid-template-columns: minmax(0, 1fr); padding: 14px 16px; }
  .aufgabe .schritte { order: 2; }
  .aufgabe__rechts { order: 3; flex-direction: row; flex-wrap: wrap; align-items: center; text-align: left; gap: 10px 14px; }
  .aufgabe__rechts .frist { align-items: flex-start; }
  .aufgabe__rechts .knopf { width: 100%; }
  .aufgabe .schritte li { font-size: 12px; white-space: nowrap; }
  .aufgabe .schritte li:not(.aktuell) { font-size: 0; }
  .aufgabe .schritte small { display: none; }
}

/* ---------- Fachprüfer und Bauherr ---------- */
.aufgabenkarten { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-bottom: 24px; }
.aufgabenkarte { display: flex; flex-direction: column; gap: 12px; padding: 20px; border-top: 4px solid var(--akzent); }
.aufgabenkarte--bald { border-top-color: var(--warn); }
.aufgabenkarte--ueberfaellig { border-top-color: var(--fehler); }
.aufgabenkarte__kopf { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.aufgabenkarte h2 { margin: 0; font-size: 20px; font-weight: 740; }
.aufgabenkarte__firma { margin: -8px 0 0; color: var(--text-2); }
.aufgabenkarte dl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; padding: 12px 0; border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie); }
.aufgabenkarte dt { font-size: 12px; color: var(--text-3); font-weight: 600; }
.aufgabenkarte dd { margin: 0; font-weight: 650; font-variant-numeric: tabular-nums; }
.aufgabenkarte .knopf { min-height: 44px; font-size: 15px; }
.frist-zeile { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 650; color: var(--text-2); }
.frist-zeile--bald { color: var(--warn); }
.frist-zeile--ueber { color: var(--fehler); }
.so-gehts { padding: 18px 20px; }
.so-gehts h2 { font-size: 16px; margin-bottom: 14px; }
.so-gehts ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: n; }
.so-gehts li { display: flex; gap: 12px; color: var(--text-2); }
.so-gehts li::before { counter-increment: n; content: counter(n); width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--akzent-weich); color: var(--akzent); font-weight: 750; }
.so-gehts b { display: block; color: var(--text); }
@media (max-width: 800px) { .so-gehts ol { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Mein Konto ---------- */
.konto-kopf { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 18px 20px; margin-bottom: 16px; }
.konto-kopf h1 { margin: 0; font-size: 21px; }
.konto-kopf p { margin: 2px 0 0; color: var(--text-2); }
.reiter { display: flex; gap: 4px; margin-bottom: 18px; border-bottom: 1px solid var(--linie); overflow-x: auto; overflow-y: hidden; }
.reiter a {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; margin-bottom: -1px;
  border-bottom: 2px solid transparent; color: var(--text-2); font-weight: 620; text-decoration: none; white-space: nowrap;
}
.reiter a:hover { color: var(--text); }
.reiter a[aria-current="page"] { color: var(--akzent); border-bottom-color: var(--akzent); }
.konto-inhalt { max-width: 760px; padding: 22px 24px; }
.konto-inhalt h1 { font-size: 19px; }

/* ---------- Aufgabe: Rechnung neben dem Formular, auf dem Handy untereinander ---------- */
.zweispaltig { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 64rem) { .zweispaltig { grid-template-columns: 1.2fr 1fr; align-items: start; } }
.pdf { width: 100%; height: 75vh; border: 1px solid var(--linie); border-radius: var(--radius); background: var(--flaeche); }
@media (max-width: 48rem) { .pdf { display: none; } }

/* ---------- Plausibilisierung (Etappe 4) ---------- */
.stand { display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: 8px 16px; margin: 0 0 16px; }
.stand dt { font-size: 13px; color: var(--text-3); }
.stand dd { margin: 0; font-weight: 620; font-variant-numeric: tabular-nums; }
.deckblatt { display: grid; grid-template-columns: 1fr; gap: 0 24px; }
@media (min-width: 48rem) { .deckblatt { grid-template-columns: 1fr 1fr; } }

/* ---------- Neue Rechnung in einem Schritt (Weg C, 12.11.2026) ---------- */
.erfassen { max-width: 48rem; }
.abschnitt > legend { font-size: 15px; }
.einschub { margin: 0 0 16px; padding: 14px 16px 4px; border: 0; border-left: 3px solid var(--akzent); border-radius: 0 var(--radius) var(--radius) 0; background: var(--akzent-weich); }
.einschub__titel { font-weight: 700; margin-bottom: 10px; }
.einschub--klappe { padding: 4px 16px; }
.einschub--klappe[open] { padding-bottom: 4px; }
.freiwillig { margin: 6px 0 12px; padding-top: 12px; border-top: 1px dashed var(--linie-stark); }
.freiwillig__titel { font-weight: 650; margin-bottom: 10px; }
.wegwahl-feld { padding: 8px 12px 10px; }
.vorab { display: flex; align-items: center; gap: 8px; padding: 8px 12px; margin-bottom: 8px; border: 1px solid var(--ok); border-radius: 8px; background: var(--ok-weich); font-weight: 600; }
.vorab .leise { font-weight: 400; }
.einladungen { margin: 0 0 16px; padding: 14px 16px; border: 1px solid var(--lila); border-radius: var(--radius); background: var(--lila-weich); }
.einladungen h2 { margin-top: 0; font-size: 16px; }
.einladungen input { margin-bottom: 10px; }

/* Suche statt langer Liste (static/js/suchauswahl.js); ohne JavaScript bleibt die normale Auswahlliste */
.suchwahl { position: relative; }
.suchwahl__feld { position: relative; }
.suchwahl__treffer { position: absolute; z-index: 30; left: 0; right: 0; top: 100%; max-height: 420px; overflow-y: auto; margin: 4px 0 0; padding: 4px; list-style: none; background: var(--flaeche); border: 1px solid var(--linie-stark); border-radius: var(--radius); box-shadow: 0 12px 32px rgba(16, 24, 40, .18); }
/* Gegen „form ul:not(.errorlist)“ (Hilfetexte, grau und klein): in Formularen sonst blasse Trefferliste */
.suchwahl .suchwahl__treffer { font-size: 14px; color: var(--text); }
.suchwahl__treffer li > button { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 7px; cursor: pointer; font-size: 14px; }
.suchwahl__treffer li > button:hover, .suchwahl__treffer li > button:focus-visible { background: var(--akzent-weich); }
.suchwahl__treffer b { display: block; font-weight: 620; }
.suchwahl__treffer small { display: block; color: var(--text-3); font-size: 12.5px; }
.suchwahl__treffer mark { background: var(--warn-weich); color: inherit; border-radius: 3px; padding: 0 1px; }
.suchwahl__treffer .marke-status { margin-left: auto; flex: none; }
.suchwahl__kopf { padding: 6px 10px 4px; font-size: 11.5px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .05em; }
.suchwahl__mehr { padding: 6px 10px; font-size: 12.5px; color: var(--text-3); border-top: 1px solid var(--linie); }
.suchwahl__entwurf { display: flex; align-items: center; gap: 10px; padding: 8px 10px; color: var(--text-3); font-size: 14px; }
.suchwahl__entwurf > span { flex: 1; min-width: 0; }
.suchwahl__entwurf a { flex: none; font-size: 13px; }
.suchwahl__auswahl { display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 8px 8px 8px 14px; border: 1px solid var(--akzent); border-radius: 8px; background: var(--akzent-weich); }
.suchwahl__auswahl span { flex: 1; min-width: 0; }
.suchwahl__auswahl b { display: block; }
.suchwahl__auswahl small { display: block; color: var(--text-2); font-size: 12.5px; }

/* Kostengruppe als Suchfeld (static/js/kostengruppe.js, 18.11.2026); ohne JavaScript die normale Auswahlliste */
.kgwahl .kgwahl__liste { max-height: 340px; }
.kgwahl__option { display: flex; align-items: baseline; gap: 12px; padding: 7px 10px; border-radius: 7px; cursor: pointer; }
.kgwahl__option.ist-aktiv { background: var(--akzent-weich); }
.kgwahl__option[aria-selected="true"] { font-weight: 620; }
.kgwahl__nr { flex: none; width: 3ch; font-variant-numeric: tabular-nums; font-weight: 700; color: var(--akzent); }
.kgwahl__bez { flex: 1; min-width: 0; }
.kgwahl__haken { flex: none; margin-left: auto; color: var(--akzent); font-weight: 700; }
.kgwahl__hinweis { display: block; margin-top: 4px; font-size: 13.5px; color: var(--warn); }
.kgwahl__hinweis[hidden] { display: none; }

/* Neues Projekt auf einer Seite und Projektseite als Checkliste (12.11.2026) */
.eintrag { margin: 0 0 14px; padding: 12px 14px 2px; border: 1px solid var(--linie-stark); border-radius: var(--radius); background: var(--flaeche-2); }
.eintrag__kopf { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.checkliste { margin: 0 0 18px; padding: 14px 16px; border: 1px solid var(--linie); border-radius: var(--radius); background: var(--flaeche-2); }
.checkliste ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.checkliste li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--linie-stark); border-radius: 9px; background: var(--flaeche); }
.checkliste li > span:nth-child(2) { flex: 1; min-width: 0; }
.checkliste li small { display: block; font-size: 12.5px; color: var(--text-3); }
.checkliste__punkt { width: 22px; height: 22px; flex: none; border: 2px solid var(--linie-stark); border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; }
.checkliste li.erledigt { border-color: var(--ok); }
.checkliste li.erledigt .checkliste__punkt { background: var(--ok); border-color: var(--ok); color: var(--flaeche); }
.checkliste li.erledigt .checkliste__punkt::before { content: "✓"; }
.checkliste .hinweis { margin: 10px 0 0; }
.checkliste__fertig { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; color: var(--ok); font-weight: 650; }
.checkliste__fertig .knopf { margin-left: auto; }
.abstand-oben { display: block; margin-top: 18px; }
@media (max-width: 760px) { .checkliste ol { grid-template-columns: minmax(0, 1fr); } }

/* Personen-Suchfeld (static/js/personensuche.js), 12.11.2026 */
.personensuche { margin-bottom: 6px; }
.person-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.person-chips:empty { display: none; }
.person-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 2px 4px 2px 6px; border: 1px solid var(--linie-stark); border-radius: 999px; background: var(--flaeche-2); font-size: 14px; }
.person-chip .avatar, .suchwahl__treffer .avatar { width: 24px; height: 24px; font-size: 10px; }
.person-chip small { color: var(--text-3); font-size: 12px; }
.person-chip__neu { padding: 1px 7px; border-radius: 999px; background: var(--lila-weich); color: var(--lila); font-size: 11.5px; font-weight: 700; }
.person-chip button { all: unset; cursor: pointer; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; color: var(--text-3); }
.person-chip button:hover, .person-chip button:focus-visible { background: var(--flaeche-3); color: var(--text); }
.personensuche__hinweis { padding: 6px 10px; font-size: 13px; color: var(--text-3); }
.suchwahl__treffer .personensuche__neu { color: var(--akzent); font-weight: 620; }

/* ---------- Anmeldeseite (Vorschau C „Bauzeitenplan“, gewählt am 12.11.2026) ----------
   Geteilte Karte: links Kundenlogo und erfundener Beispiel-Terminplan, rechts das Formular.
   Farben aus dem Kundenlogo (Dunkelblau #00205a, Rot nur als kleiner Akzent). */
.anm {
  --anm-marke: #00205a; --anm-marke-hover: #0b3184; --anm-rot: #d4111b;
  --anm-buehne: #edf1f7; --anm-punkt: rgba(0, 32, 90, .13);
  --anm-balken: #c9d6ec; --anm-balken-fertig: #00205a;
  --anm-schatten: 0 1px 2px rgba(16, 24, 40, .06), 0 30px 70px -20px rgba(0, 22, 60, .28);
  min-height: 100vh; display: grid; place-items: center; padding: 24px 16px;
  background: var(--bg);
  background-image: radial-gradient(1200px 600px at 10% -10%, rgba(0, 32, 90, .10), transparent 60%),
    radial-gradient(900px 500px at 110% 110%, rgba(0, 32, 90, .08), transparent 60%);
}
:root[data-thema="dunkel"] .anm {
  --anm-marke: #2f62c8; --anm-marke-hover: #3d70d6; --anm-rot: #ff5b61;
  --anm-buehne: #0b1427; --anm-punkt: rgba(255, 255, 255, .07);
  --anm-balken: #2a3c5c; --anm-balken-fertig: #5b8be6;
  --anm-schatten: 0 30px 70px -20px rgba(0, 0, 0, .7);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-thema="hell"]) .anm {
    --anm-marke: #2f62c8; --anm-marke-hover: #3d70d6; --anm-rot: #ff5b61;
    --anm-buehne: #0b1427; --anm-punkt: rgba(255, 255, 255, .07);
    --anm-balken: #2a3c5c; --anm-balken-fertig: #5b8be6;
    --anm-schatten: 0 30px 70px -20px rgba(0, 0, 0, .7);
  }
}
.anm__karte {
  width: 100%; max-width: 1120px; min-height: min(690px, calc(100vh - 48px));
  display: grid; grid-template-columns: 1.08fr 1fr; padding: 10px;
  background: var(--flaeche); border: 1px solid var(--linie); border-radius: 24px; box-shadow: var(--anm-schatten);
}

/* Linke Bildfläche */
.anm__buehne {
  position: relative; overflow: hidden; display: flex; flex-direction: column; padding: 30px 36px 36px;
  border-radius: 16px; color: var(--text);
  background-color: var(--anm-buehne);
  background-image: radial-gradient(var(--anm-punkt) 1px, transparent 1.2px); background-size: 18px 18px;
}
.anm__logo { display: block; width: 210px; height: auto; }
.anm__logo--dunkel { display: none; }
:root[data-thema="dunkel"] .anm__logo--hell { display: none; }
:root[data-thema="dunkel"] .anm__logo--dunkel { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-thema]) .anm__logo--hell { display: none; }
  :root:not([data-thema]) .anm__logo--dunkel { display: block; }
}
.anm__bild { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; margin: 8px -12px 12px; }
.anm__oberzeile { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); }
.anm__oberzeile::before { content: ""; width: 22px; height: 3px; border-radius: 2px; background: var(--anm-rot); }
.anm__text h2 { margin: 0 0 14px; font-size: clamp(28px, 3.1vw, 40px); line-height: 1.08; font-weight: 700; letter-spacing: -.015em; }
.anm__text > p:not(.anm__oberzeile) { margin: 0; max-width: 44ch; color: var(--text-2); }
.anm__saeulen { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.anm__saeulen li { padding: 4px 11px; font-size: 12.5px; color: var(--text-2); background: var(--flaeche); border: 1px solid var(--linie-stark); border-radius: 999px; }

/* Beispiel-Terminplan (nur Bild, erfundene Werte) */
.anm-plan { width: 100%; max-width: 470px; padding: 16px 18px 14px; font-size: 12.5px; background: var(--flaeche); border: 1px solid var(--linie); border-radius: 14px; box-shadow: 0 18px 40px -18px rgba(0, 32, 90, .35); }
.anm-plan__kopf { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.anm-plan__kopf b { font-size: 13.5px; }
.anm-plan__kopf span { font-size: 12px; color: var(--text-3); }
.anm-plan__raster { position: relative; display: grid; gap: 8px; }
.anm-plan__skala, .anm-plan__zeile { display: grid; grid-template-columns: 76px 1fr; align-items: center; }
.anm-plan__skala span:last-child { display: grid; grid-template-columns: repeat(4, 1fr); font-size: 11px; color: var(--text-3); }
.anm-plan__skala i { font-style: normal; padding-left: 4px; border-left: 1px solid var(--linie); }
.anm-plan__zeile > span:first-child { color: var(--text-2); white-space: nowrap; }
.anm-plan__spur { position: relative; height: 22px; background-image: linear-gradient(90deg, var(--linie) 1px, transparent 1px); background-size: 25% 100%; }
.anm-balken { position: absolute; top: 5px; height: 12px; overflow: hidden; border-radius: 6px; background: var(--anm-balken); transform-origin: left center; }
.anm-balken::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--fertig); background: var(--anm-balken-fertig); }
.anm-balken--1 { left: 0; width: 26%; --fertig: 100%; --v: .4s; }
.anm-balken--2 { left: 16%; width: 38%; --fertig: 100%; --v: .6s; }
.anm-balken--3 { left: 42%; width: 32%; --fertig: 62%; --v: .8s; }
.anm-balken--4 { left: 48%; width: 42%; --fertig: 38%; --v: 1s; }
.anm-balken--5 { left: 64%; width: 36%; --fertig: 0%; --v: 1.2s; }
.anm-meilenstein { position: absolute; top: 4px; left: calc(54% - 7px); width: 14px; height: 14px; background: var(--anm-rot); border: 2px solid var(--flaeche); border-radius: 2px; transform: rotate(45deg) scale(.8); --v: 1.6s; }
.anm-plan__heute-spur { position: absolute; top: 26px; bottom: -4px; left: 76px; right: 0; pointer-events: none; }
.anm-heute { position: absolute; top: 0; bottom: 0; left: 62%; width: 0; border-left: 2px solid var(--anm-rot); --v: 1.8s; }
.anm-heute::before { content: "Heute"; position: absolute; top: -20px; left: -21px; padding: 0 6px; font-size: 10.5px; font-style: normal; font-weight: 700; color: #fff; background: var(--anm-rot); border-radius: 4px; }
.anm-toast { position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px; font-size: 13px; white-space: nowrap; color: var(--text); background: var(--flaeche); border: 1px solid var(--linie); border-radius: 12px; box-shadow: 0 16px 36px -14px rgba(0, 32, 90, .45); }
.anm-toast small { display: block; font-size: 11.5px; color: var(--text-3); }
.anm-toast__symbol { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; color: var(--akzent); background: var(--akzent-weich); }
.anm-toast__symbol--ok { color: var(--ok); background: var(--ok-weich); }
.anm-toast--1 { right: 0; bottom: -10px; --v: 2.3s; }
.anm-toast--2 { left: 2%; top: 2%; --v: 2.9s; }

/* Rechte Seite: Formular */
.anm__formseite { display: flex; flex-direction: column; padding: 18px 26px 22px; }
.anm__kopf { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.anm__kopf .symbolknopf { width: 38px; height: 38px; min-height: 0; color: var(--text-2); background: var(--flaeche); border: 1px solid var(--linie); border-radius: 10px; }
.anm__kopf .symbolknopf:hover { color: var(--text); background: var(--flaeche-2); border-color: var(--linie); }
.anm__huelle { flex: 1; display: flex; flex-direction: column; justify-content: center; width: 100%; max-width: 384px; margin: 0 auto; padding: 28px 0; }
.anm__strich { width: 36px; height: 4px; margin-bottom: 18px; background: var(--anm-rot); border-radius: 2px; }
.anm__huelle h1 { margin: 0 0 8px; font-size: 30px; line-height: 1.15; font-weight: 700; letter-spacing: -.015em; }
.anm__unterzeile { margin: 0 0 28px; color: var(--text-2); }
.anm__huelle .meldungen { margin: 0 0 18px; }
.anm__fehler { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 20px; padding: 12px 14px; font-size: 14px; color: var(--fehler); background: var(--fehler-weich); border-radius: 10px; }
.anm__fehler p { margin: 0; }
.anm__fehler .ic { margin-top: 2px; }
.anm__feld { margin-bottom: 18px; }
.anm__feld label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; }
.anm__eingabe { position: relative; display: flex; align-items: center; }
.anm__eingabe > .ic { position: absolute; left: 14px; color: var(--text-3); pointer-events: none; }
.anm__eingabe input {
  width: 100%; max-width: none; height: 48px; margin: 0; padding: 0 14px 0 44px;
  color: var(--text); background: var(--flaeche); border: 1px solid var(--linie-stark); border-radius: 10px;
  font: inherit; transition: border-color .15s, box-shadow .15s;
}
.anm__eingabe input::placeholder { color: var(--text-3); }
.anm__eingabe input:hover { border-color: var(--text-3); }
.anm__eingabe input:focus { outline: none; border-color: var(--anm-marke); box-shadow: var(--fokus); }
.anm__eingabe--passwort input { padding-right: 50px; }
.anm__feld--fehler input { border-color: var(--fehler); }
.anm__auge { position: absolute; right: 6px; display: grid; place-items: center; width: 38px; height: 38px; min-height: 0; padding: 0; color: var(--text-3); background: none; border: 0; border-radius: 8px; cursor: pointer; }
.anm__auge:hover { color: var(--text); background: var(--flaeche-2); }
.anm__auge-zu, .anm__auge[aria-pressed="true"] .anm__auge-auf { display: none; }
.anm__auge[aria-pressed="true"] .anm__auge-zu { display: block; }
.anm__zeile { display: flex; justify-content: flex-end; margin: -6px 0 22px; }
.anm__link { font-size: 14px; font-weight: 600; color: var(--akzent); text-decoration: none; border-radius: 4px; }
.anm__link:hover { text-decoration: underline; text-underline-offset: 3px; }
.anm__knopf {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 50px;
  color: #fff; background: var(--anm-marke); border: 0; border-radius: 10px;
  font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; transition: background .15s, transform .05s;
}
.anm__knopf:hover { background: var(--anm-marke-hover); }
.anm__knopf:active { transform: translateY(1px); }
.anm__knopf .ic { transition: transform .2s; }
.anm__knopf:hover .ic { transform: translateX(3px); }
.anm__auge:focus-visible, .anm__link:focus-visible, .anm__knopf:focus-visible, .anm__kopf .symbolknopf:focus-visible { outline: none; box-shadow: var(--fokus); }
.anm__hinweis { display: flex; gap: 10px; margin: 26px 0 0; padding-top: 20px; font-size: 13.5px; color: var(--text-2); border-top: 1px solid var(--linie); }
.anm__hinweis .ic { margin-top: 2px; color: var(--text-3); }
.anm__fuss { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; font-size: 12.5px; color: var(--text-3); }
.anm__fuss a { color: inherit; text-decoration: none; }
.anm__fuss a:hover { color: var(--text); text-decoration: underline; }

/* Weitere Seiten im selben Rahmen: Passwort zurücksetzen (12.11.2026) */
a.anm__knopf { text-decoration: none; }
a.anm__knopf:hover { color: #fff; }
.anm__knopf--zweit { margin-top: 10px; color: var(--text-2); background: none; border: 1px solid var(--linie-stark); }
.anm__knopf--zweit:hover { color: var(--text); background: var(--flaeche-2); }
.anm__knopf--zweit:focus-visible { outline: none; box-shadow: var(--fokus); }
.anm__zurueck { display: flex; justify-content: center; margin-top: 20px; }
.anm__zurueck .anm__link { display: inline-flex; align-items: center; gap: 6px; }
.ic--links { transform: scaleX(-1); }
.anm__symbol { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 20px; color: var(--akzent); background: var(--akzent-weich); border-radius: 16px; }
.anm__symbol .ic { width: 26px; height: 26px; }
.anm__symbol--ok { color: var(--ok); background: var(--ok-weich); }
.anm__symbol--fehler { color: var(--fehler); background: var(--fehler-weich); }
.anm__hilfe { margin: 6px 0 0; font-size: 12.5px; color: var(--text-3); }
.anm__hilfe ul { margin: 0; padding-left: 18px; }
.anm__info { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 20px; padding: 12px 14px; font-size: 14px; color: var(--text); background: var(--akzent-weich); border-radius: 10px; }
.anm__info p { margin: 0; }
.anm__huelle > p.anm__text-lang { margin: 0 0 24px; color: var(--text-2); }

/* Dezente Bewegung beim Laden; ruht bei Fehlern (anm--still) und bei „Bewegung reduzieren“ */
.anm__logo, .anm__text, .anm-plan { opacity: 0; transform: translateY(10px); animation: anm-auftritt .8s cubic-bezier(.2, .8, .2, 1) var(--v, 0s) forwards; }
.anm__text { --v: .3s; }
.anm-plan { --v: .2s; }
.anm-balken { transform: scaleX(0); animation: anm-wachsen 1s cubic-bezier(.2, .8, .2, 1) var(--v, 0s) forwards; }
.anm-meilenstein, .anm-heute { opacity: 0; animation: anm-einblenden .6s ease var(--v, 0s) forwards; }
.anm-toast { opacity: 0; transform: translateY(10px); animation: anm-auftritt .7s cubic-bezier(.2, .8, .2, 1) var(--v, 0s) forwards, anm-schweben 6s ease-in-out calc(var(--v, 0s) + .8s) infinite; }
@keyframes anm-auftritt { to { opacity: 1; transform: none; } }
@keyframes anm-einblenden { to { opacity: 1; } }
@keyframes anm-wachsen { to { transform: scaleX(1); } }
@keyframes anm-schweben { 0%, 100% { translate: 0 0; } 50% { translate: 0 -5px; } }
.anm--still *, .anm--still *::before, .anm--still *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; }
@media (prefers-reduced-motion: reduce) {
  .anm *, .anm *::before, .anm *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition: none !important; }
}

@media (max-width: 900px) {
  .anm { place-items: start center; padding: 12px; }
  .anm__karte { grid-template-columns: minmax(0, 1fr); min-height: 0; border-radius: 20px; }
  .anm__buehne { padding: 22px 22px 24px; }
  .anm__bild { flex: none; height: 240px; }
  .anm__text h2 { font-size: 26px; }
  .anm__formseite { padding: 14px 16px 18px; }
  .anm__huelle { padding: 16px 0 24px; }
}
@media (max-width: 560px) {
  .anm__bild, .anm__text > p, .anm__saeulen { display: none; }
  .anm__text > .anm__oberzeile { display: none; }
  .anm__logo { width: 150px; }
  .anm__text h2 { margin: 18px 0 0; font-size: 22px; }
  .anm__text h2 br { display: none; }
  .anm__huelle h1 { font-size: 26px; }
}

/* ---------- Projekt-Einzelseite: Vorschau B „Team-Tafel oben“ mit Einrichtungs-Leiste (Nutzer, 12.11.2026) ---------- */
.zurueck-link { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 10px; font-size: 13.5px; color: var(--text-2); text-decoration: none; }
.zurueck-link:hover { color: var(--akzent); }
.projektkopf { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.projektkopf h1 { margin: 4px 0 6px; font-size: 26px; }
.projektkopf__code { display: inline-block; padding: 2px 8px; border-radius: 6px; background: var(--flaeche-3); color: var(--text-2); font-size: 12.5px; font-weight: 700; letter-spacing: .04em; }
.projektkopf__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0; color: var(--text-2); font-size: 13.5px; }
.projektkopf__aktionen { display: flex; align-items: center; gap: 8px; }
.abschnitt-symbol { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--flaeche-3); color: var(--text-2); }
.abschnitt-symbol .ic { width: 18px; height: 18px; }
.anzahl { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: var(--flaeche-3); color: var(--text-2); font-size: 12px; font-weight: 700; vertical-align: 2px; }

/* Menü „⋯“ (details/summary, geht auch ohne JavaScript) */
.menue { position: relative; }
.menue > summary { list-style: none; display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid transparent; border-radius: 8px; color: var(--text-2); cursor: pointer; }
.menue > summary::-webkit-details-marker { display: none; }
.menue > summary:hover, .menue[open] > summary { background: var(--flaeche-3); color: var(--text); }
.menue > summary:focus-visible { outline: none; box-shadow: var(--fokus); }
.menue--rahmen > summary { width: 38px; height: 38px; border-color: var(--linie-stark); background: var(--flaeche); }
.menue__liste { position: absolute; right: 0; top: calc(100% + 4px); z-index: 30; min-width: 240px; padding: 6px; border: 1px solid var(--linie); border-radius: 10px; background: var(--flaeche); box-shadow: var(--schatten-3); }
.menue__liste form { margin: 0; }
.menue__liste a, .menue__liste button { display: flex; align-items: center; justify-content: flex-start; gap: 10px; width: 100%; min-height: 36px; padding: 0 10px; border: 0; border-radius: 6px; background: none; color: var(--text); font-size: 14px; font-weight: 500; text-decoration: none; }
.menue__liste a:hover, .menue__liste button:hover { background: var(--flaeche-3); color: var(--text); }
.menue__liste .ic { width: 16px; height: 16px; color: var(--text-3); }
.menue__liste hr { margin: 6px 4px; border: 0; border-top: 1px solid var(--linie); }
.menue__liste .gefahr, .menue__liste .gefahr .ic { color: var(--fehler); }
.menue__liste .gefahr:hover { background: var(--fehler-weich); color: var(--fehler); }

/* Einrichtung: drei verbundene Schritte */
.einrichtung { margin: 0 0 16px; padding: 14px 16px; border: 1px solid var(--linie); border-radius: 12px; background: var(--flaeche); box-shadow: var(--schatten-1); }
.einrichtung__kopf { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.einrichtung__kopf h2 { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.einrichtung__stand { font-size: 12.5px; font-weight: 650; color: var(--ok); }
.einrichtung__stand--offen { color: var(--akzent); }
.einrichtung__schritte { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.einrichtung__schritte li { position: relative; display: flex; align-items: center; gap: 12px; min-width: 0; padding: 11px 12px; border: 1px solid var(--linie-stark); border-radius: 10px; background: var(--flaeche); }
.einrichtung__schritte li + li::before { content: ""; position: absolute; left: -23px; top: 50%; width: 22px; height: 2px; background: var(--linie-stark); }
.einrichtung__schritte li.erledigt + li::before { background: var(--ok); }
.einrichtung__punkt { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border: 2px solid var(--linie-stark); border-radius: 50%; font-size: 13px; font-weight: 800; color: var(--text-2); }
.einrichtung__text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.einrichtung__text b { font-weight: 680; }
.einrichtung__text small { font-size: 12.5px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.einrichtung__gelb { color: var(--gelb); font-weight: 650; }
.einrichtung__schritte .knopf { flex: none; }
.einrichtung li.erledigt { border-color: color-mix(in srgb, var(--ok) 55%, var(--linie)); background: color-mix(in srgb, var(--ok-weich) 35%, var(--flaeche)); }
.einrichtung li.erledigt .einrichtung__punkt { border-color: var(--ok); background: var(--ok); color: var(--flaeche); }
.einrichtung li.erledigt .einrichtung__punkt::before { content: "✓"; }
.einrichtung li.einrichtung__naechster { border-color: var(--akzent); box-shadow: 0 0 0 3px var(--akzent-weich); }
.einrichtung li.einrichtung__naechster .einrichtung__punkt { border-color: var(--akzent); color: var(--akzent); }
.einrichtung__fuss { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--linie); font-size: 14px; color: var(--text-2); }
.einrichtung__fuss > span { flex: 1 1 0; min-width: 0; }
.einrichtung__fuss--ok { color: var(--ok); }
.einrichtung__fuss--ok b { font-weight: 700; }
.einrichtung__fuss .knopf { margin-left: auto; }

/* Warnstreifen */
.warnstreifen { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.warnstreifen li { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border: 1px solid color-mix(in srgb, var(--warn) 30%, var(--linie)); border-left: 4px solid var(--warn); border-radius: var(--radius); background: var(--warn-weich); }
.warnstreifen li > .ic { color: var(--warn); }
.warnstreifen p { flex: 1; margin: 0; font-size: 14px; }
.warnstreifen p b { font-weight: 680; }
.warnstreifen .knopf { flex: none; }
.warnstreifen form { flex: none; margin: 0; }

/* Personenliste: offene Einladungen erklären (Vorschau personen-offen.html, Variante A + Status aus D, 18.11.2026) */
.kopfzeile__unter { margin: 4px 0 0; color: var(--text-2); font-size: 14px; }
.text-warn { color: var(--warn); font-weight: 650; }
.marke-status--abgelaufen { background: var(--warn-weich); color: var(--warn); }
.personstatus { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.personstatus small { font-size: 12.5px; color: var(--text-3); white-space: nowrap; }
.personstatus__satz { max-width: 300px; font-size: 13.5px; line-height: 1.45; color: var(--text-2); }
.personstatus form { margin: 4px 0 0; }
.tabelle tbody tr.zeile--offen td { background: color-mix(in srgb, var(--warn-weich) 55%, transparent); }
.tabelle tbody tr.zeile--offen:hover td { background: var(--warn-weich); }
.tabelle tbody tr.zeile--offen td:first-child { box-shadow: inset 4px 0 0 var(--warn); }
@media (prefers-reduced-motion: no-preference) {
  .tabelle tbody tr.zeile--offen td { animation: zeile-aufblitzen 1.6s ease .35s 2; }
}
@keyframes zeile-aufblitzen {
  0%, 100% { background: color-mix(in srgb, var(--warn-weich) 55%, transparent); }
  45% { background: color-mix(in srgb, var(--warn) 26%, transparent); }
}

/* Team-Tafel: Bauherr und Fachprüfer als Karten */
.team { margin-bottom: 16px; }
.team__kopf { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.team__kopf h2 { margin: 0; font-size: 18px; }
.team__kopf p { margin: 2px 0 0; font-size: 13px; color: var(--text-3); }
.team__gruppen { display: grid; grid-template-columns: minmax(230px, 1fr) minmax(0, 3fr); gap: 16px; margin-bottom: 12px; }
.team__gruppe { margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text-3); }
.personenkarten { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.personenkarte { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 16px; border: 1px solid var(--linie); border-radius: 12px; background: var(--flaeche); box-shadow: var(--schatten-1); }
.personenkarte__oben { display: flex; align-items: flex-start; justify-content: space-between; }
.personenkarte .avatar { width: 48px; height: 48px; font-size: 16px; }
.personenkarte .menue { margin: -4px -8px 0 0; }
.personenkarte__wer { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.personenkarte__wer b { font-size: 16px; font-weight: 680; }
.personenkarte__wer small { font-size: 12.5px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.personenkarte__zugang { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.personenkarte__zugang small { font-size: 12px; color: var(--text-3); }
.personenkarte__aufgaben { margin: 0; padding-top: 8px; border-top: 1px solid var(--linie); font-size: 12.5px; color: var(--text-2); }
.personenkarte__aufgaben b { color: var(--text); }
.personenkarte--bauherr { border-top: 4px solid var(--tuerkis); }
.personenkarte--bauherr .avatar { background: var(--tuerkis-weich); color: var(--tuerkis); }
.personenkarte--offen { border-color: color-mix(in srgb, var(--gelb) 55%, var(--linie)); background: color-mix(in srgb, var(--gelb-weich) 45%, var(--flaeche)); }
.personenkarte--offen .avatar { background: var(--gelb-weich); color: var(--gelb); box-shadow: 0 0 0 2px var(--flaeche), 0 0 0 4px color-mix(in srgb, var(--gelb) 55%, transparent); }
.personenkarte--offen .personenkarte__zugang small { color: var(--gelb); font-weight: 600; }
.personenkarte--abgelaufen, .personenkarte--gesperrt { border-color: color-mix(in srgb, var(--fehler) 45%, var(--linie)); }
.personenkarte--abgelaufen .personenkarte__zugang small, .personenkarte--gesperrt .personenkarte__zugang small { color: var(--fehler); font-weight: 600; }
.personenkarte.personenkarte--bauherr { border-top-color: var(--tuerkis); }
.personenkarte-neu { display: grid; place-items: center; align-content: center; gap: 6px; height: 100%; min-height: 160px; padding: 16px; border: 2px dashed var(--linie-stark); border-radius: 12px; color: var(--akzent); font-weight: 650; text-align: center; text-decoration: none; }
.personenkarte-neu:hover { border-color: var(--akzent); background: var(--akzent-weich); }
.personenkarte-neu .ic { width: 24px; height: 24px; }
.personenkarte-neu small { color: var(--text-3); font-weight: 400; font-size: 12.5px; }

/* Gewerk- und Zugangs-Marken */
.gewerk { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 0 10px; border: 1px solid var(--linie-stark); border-radius: 7px; background: var(--flaeche-2); color: var(--text); font-size: 13px; font-weight: 650; white-space: nowrap; }
.gewerk .ic { width: 14px; height: 14px; color: var(--text-3); }
.gewerk--bauherr { border-color: color-mix(in srgb, var(--tuerkis) 40%, var(--linie)); background: var(--tuerkis-weich); color: var(--tuerkis); }
.gewerk--bauherr .ic { color: var(--tuerkis); }
.gewerk--leer { border-style: dashed; background: transparent; color: var(--text-3); font-weight: 500; }
.zugang { display: inline-flex; align-items: center; gap: 6px; min-height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12.5px; font-weight: 650; white-space: nowrap; }
.zugang::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.zugang--aktiv { background: var(--ok-weich); color: var(--ok); }
.zugang--offen { background: var(--gelb-weich); color: var(--gelb); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gelb) 45%, transparent); }
.zugang--abgelaufen, .zugang--gesperrt { background: var(--fehler-weich); color: var(--fehler); }

/* Aufträge: Anteil freigegeben (Breite setzt seite.js aus data-anteil, CSP erlaubt keine Inline-Stile) */
.auftrag-name { display: flex; flex-direction: column; line-height: 1.35; }
.auftrag-name small { font-size: 12.5px; color: var(--text-3); }
.balken { display: flex; flex-direction: column; gap: 4px; min-width: 120px; }
.balken__spur { display: block; height: 6px; border-radius: 999px; background: var(--flaeche-3); overflow: hidden; }
.balken__fuell { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--ok); }
.balken small { font-size: 12px; color: var(--text-3); white-space: nowrap; }
.einschub--in-karte { margin: 0; border-radius: 0 0 var(--radius) var(--radius); }
/* Formular-Klappen der Projektseite erscheinen erst, wenn Knopf oder Karte sie öffnet (data-oeffnet) */
.projektseite .einschub--klappe:not([open]) { display: none; }

/* Verlauf als Zeitleiste */
.zeitlinie { list-style: none; margin: 0; padding: 8px 18px 12px; }
.zeitlinie li { position: relative; padding: 8px 0 8px 20px; font-size: 13.5px; }
.zeitlinie li::before { content: ""; position: absolute; left: 3px; top: 14px; width: 8px; height: 8px; border-radius: 50%; background: var(--linie-stark); }
.zeitlinie li::after { content: ""; position: absolute; left: 6px; top: 24px; bottom: -8px; width: 2px; background: var(--linie); }
.zeitlinie li:last-child::after { display: none; }
.zeitlinie time { display: block; font-size: 12px; color: var(--text-3); }
.zeitlinie-mehr summary { padding: 0 18px 12px 38px; color: var(--akzent); font-size: 13.5px; font-weight: 600; cursor: pointer; }

@media (max-width: 1100px) {
  .team__gruppen { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .einrichtung__schritte { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .einrichtung__schritte li + li::before { left: 24px; top: -11px; width: 2px; height: 10px; }
  .einrichtung__text small { white-space: normal; }
  .einrichtung__fuss .knopf { margin-left: 0; width: 100%; }
}
@media (max-width: 760px) {
  .projektkopf h1 { font-size: 22px; }
  .projektkopf__aktionen { width: 100%; }
  .projektkopf__aktionen .knopf { flex: 1; }
  .warnstreifen li { flex-wrap: wrap; }
  .warnstreifen p { flex-basis: calc(100% - 40px); }
  .warnstreifen .knopf { margin-left: 32px; }
  .warnstreifen form .knopf { margin-left: 0; }
  .warnstreifen form { margin-left: 32px; }
  .projektseite .kennzahlen { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Übersicht (PS), neu gestaltet am 13.11.2026 ----------
   Vorlage: docs/vorschau/uebersicht-neu.html (vom Nutzer abgenommen). Alles steht unter „.ueb“, damit andere Seiten
   (Projektseite, Listen, Aufgaben) ihr Aussehen behalten. Inhaltsbereich mit gerader Kante zur Seitenleiste.
   Bewegung: einmal beim Laden, sonst nur als Antwort auf Zeiger und Zustand; bei „Bewegung reduzieren“ aus. */
.haupt:has(.ueb) { background: radial-gradient(70% 380px at 78% 0, color-mix(in srgb, var(--akzent) 9%, transparent), transparent 72%) no-repeat; }
.ueb { --r-karte: 22px; font-size: 15px; }

.ueb .seitenkopf { gap: 16px 24px; margin-bottom: 22px; }
.ueb .seitenkopf h1 { font-family: var(--schrift-gross); font-size: 34px; font-weight: 680; line-height: 1.12; letter-spacing: -.022em; }
.ueb .seitenkopf p { margin-top: 6px; }
.ueb .seitenkopf__aktionen { gap: 10px; }
.ueb .knopf { min-height: 42px; padding: 0 18px; border-radius: 12px; transition: background-color .16s, border-color .16s, color .16s, box-shadow .2s, transform .12s; }
.ueb .knopf:active { transform: scale(.98); }
.ueb .seitenkopf .knopf:not(.knopf--zweit) { background: var(--stark); border-color: var(--stark); color: var(--stark-text); }
.ueb .seitenkopf .knopf:not(.knopf--zweit):hover { background: var(--stark-hover); border-color: var(--stark-hover); box-shadow: 0 8px 18px -10px var(--stark); }
.ueb .knopf--klein { min-height: 36px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.ueb .knopf--leise.knopf--klein { padding: 0 10px 0 14px; }
.ueb .knopf--leise .ic { transition: transform .2s var(--weich); }
.ueb .knopf--leise:hover .ic { transform: translateX(3px); }

/* Braucht Aufmerksamkeit */
.ueb .alarm { margin-bottom: 18px; border-radius: 18px; border-color: color-mix(in srgb, var(--warn) 30%, transparent); }
.ueb .alarm summary { gap: 12px; padding: 12px 22px 12px 12px; border-radius: 18px; font-weight: 660; }
.ueb .alarm summary::after { color: var(--warn); margin-top: -4px; }
.ueb .alarm[open] summary::after { margin-top: 4px; }
.alarm__zeichen { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 11px; background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); }
.ueb .alarm ul { padding: 0 18px 6px; }
.ueb .alarm li { padding: 10px 0 10px 10px; border-top-color: color-mix(in srgb, var(--warn) 20%, transparent); }
.ueb .alarm__text { flex: 1 1 260px; }
@supports (interpolate-size: allow-keywords) {
  .ueb .alarm { interpolate-size: allow-keywords; }
  .ueb .alarm::details-content { block-size: 0; overflow: clip; transition: block-size .3s var(--weich), content-visibility .3s allow-discrete; }
  .ueb .alarm[open]::details-content { block-size: auto; }
}

/* Kennzahlen: links die eigene Arbeit als dunkle Hauptkarte, daneben drei ruhige Karten */
.ueb-zahlen { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 16px; }
.ueb-zahl {
  --ton: var(--akzent); --ton-weich: var(--akzent-weich);
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
  min-height: 176px; padding: 20px 22px 22px;
  border: 1px solid var(--linie); border-radius: var(--r-karte);
  background: var(--flaeche); box-shadow: var(--schatten-karte);
  color: var(--text); text-decoration: none;
  transition: transform .28s var(--weich), box-shadow .28s var(--weich);
}
.ueb-zahl:hover { transform: translateY(-3px); box-shadow: var(--schatten-hoch); color: var(--text); }
.ueb-zahl--gelb { --ton: var(--warn); --ton-weich: var(--warn-weich); }
.ueb-zahl--gruen { --ton: var(--ok); --ton-weich: var(--ok-weich); }
.ueb-zahl > * { position: relative; z-index: 1; }
.ueb-zahl__kopf { display: flex; align-items: center; gap: 12px; }
.ueb-zahl__symbol { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 13px; background: var(--ton-weich); color: var(--ton); }
.ueb-zahl__titel { font-size: 14.5px; font-weight: 600; color: var(--text-2); }
.ueb-zahl__pfeil {
  margin-left: auto; width: 32px; height: 32px; flex: none; display: grid; place-items: center;
  border: 1px solid var(--linie); border-radius: 50%; color: var(--text-3);
  transition: transform .28s var(--weich), background-color .2s, color .2s, border-color .2s;
}
.ueb-zahl:hover .ueb-zahl__pfeil { transform: translate(2px, -2px); background: var(--ton); border-color: var(--ton); color: var(--flaeche); }
.ueb-zahl__fuss { display: flex; flex-direction: column; gap: 3px; }
.ueb-zahl__fuss .ueb-zahl__titel { margin-bottom: 3px; }
.ueb-zahl__wert { font-family: var(--schrift-gross); font-size: 32px; font-weight: 680; line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ueb-zahl__unter { font-size: 14px; color: var(--text-2); }

.ueb-zahl--haupt {
  gap: 14px; border-color: rgba(255, 255, 255, .09); color: #fff;
  background:
    radial-gradient(110% 150% at 100% 0%, #2e6fe0 0%, rgba(46, 111, 224, 0) 58%),
    radial-gradient(80% 120% at 0% 100%, #0f3a8c 0%, rgba(15, 58, 140, 0) 62%),
    #071d49;
}
.ueb-zahl--haupt:hover { color: #fff; }
.ueb-zahl--haupt::after {
  content: ""; position: absolute; right: -70px; top: -90px; width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(140, 185, 255, .4), rgba(140, 185, 255, 0));
  transition: transform .9s var(--weich); pointer-events: none;
}
.ueb-zahl--haupt:hover::after { transform: translate(-22px, 16px); }
.ueb-zahl--haupt .ueb-zahl__symbol { background: rgba(255, 255, 255, .14); color: #fff; }
.ueb-zahl--haupt .ueb-zahl__titel { color: rgba(255, 255, 255, .84); }
.ueb-zahl--haupt .ueb-zahl__pfeil { border-color: rgba(255, 255, 255, .3); color: #fff; }
.ueb-zahl--haupt:hover .ueb-zahl__pfeil { background: #fff; border-color: #fff; color: #071d49; }
.ueb-zahl__zeile { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 8px 16px; }
.ueb-zahl--haupt .ueb-zahl__wert { font-size: 58px; line-height: .92; }
.ueb-zahl__marke {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 4px; padding: 4px 12px 4px 9px;
  border-radius: 999px; background: rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .9); font-size: 13.5px; font-weight: 650;
}
.ueb-zahl__marke .ic { width: 15px; height: 15px; }
.ueb-zahl__marke--rot { background: rgba(255, 134, 116, .22); color: #ffd6d0; }
.verteilung { display: flex; gap: 3px; height: 10px; }
.verteilung__teil { flex: 1 1 0; min-width: 12px; border-radius: 4px; transform-origin: left center; }
.verteilung__teil--ueber, .punkt--ueber { background: #ff8674; }
.verteilung__teil--bald, .punkt--bald { background: #ffc857; }
.verteilung__teil--spaeter, .punkt--spaeter { background: #9db3dd; }
.verteilung__legende { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 13px; color: rgba(255, 255, 255, .82); }
.verteilung__legende b { color: #fff; font-weight: 680; margin-left: 2px; }
.punkt { display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; }

/* Abschnitte: Blau = du bist dran, Gelb = andere sind dran, Grün = erledigt (Farben wie seit 12.11.2026) */
.abschnitt--meine  { --ton: var(--akzent); --ton-weich: var(--akzent-weich); }
.abschnitt--wartet { --ton: var(--gelb);   --ton-weich: var(--gelb-weich); }
.abschnitt--fertig { --ton: var(--ok);     --ton-weich: var(--ok-weich); }
.ueb .abschnitt {
  margin-top: 18px; overflow: hidden;
  border: 1px solid var(--linie); border-radius: var(--r-karte);
  background: var(--flaeche); box-shadow: var(--schatten-karte);
}
.abschnitt__kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 20px 14px 24px; }
.abschnitt__titel { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ueb .abschnitt__titel { gap: 14px; }
.abschnitt__symbol { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 13px; background: var(--ton-weich); color: var(--ton); }
.ueb .abschnitt__titel h2 { margin: 0; font-family: var(--schrift-gross); font-size: 19px; font-weight: 660; line-height: 1.25; letter-spacing: -.01em; }
.ueb .abschnitt__titel p { margin: 1px 0 0; font-size: 13.5px; color: var(--text-3); }
.ueb .haengt-marke { padding: 2px 10px; font-family: var(--schrift); font-size: 12.5px; font-weight: 680; letter-spacing: 0; }
.ueb .karte__fuss--zeile { padding: 12px 24px; }

/* Tabellen der Übersicht: ruhige Kopfzeile, Gruppen als kleine Marke, Firma unter der Rechnungsnummer */
.ueb .tabelle { font-size: 14.5px; }
.ueb .tabelle th { padding: 10px 14px; font-size: 13px; font-weight: 600; text-transform: none; letter-spacing: 0; background: transparent; }
.ueb .tabelle td { padding: 13px 14px; transition: background-color .15s; }
.ueb .tabelle th:first-child, .ueb .tabelle td:first-child { padding-left: 24px; }
.ueb .tabelle th:last-child, .ueb .tabelle td:last-child { padding-right: 24px; }
.ueb .tabelle td.zahl { font-weight: 600; }
.ueb .tabelle td.leise { padding-top: 20px; padding-bottom: 22px; font-size: 14.5px; }
.ueb .gruppenzeile td { padding: 16px 24px 2px !important; background: transparent !important; border-bottom: 0; font-size: inherit; font-weight: 400; text-transform: none; letter-spacing: 0; }
.ueb-gruppe { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 660; }
.ueb-gruppe::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.ueb-gruppe b { min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--flaeche-3); color: var(--text-2); font-size: 12px; font-weight: 680; text-align: center; }

.ueb .zeilenlink { display: inline-flex; align-items: center; gap: 6px; font-weight: 660; font-variant-numeric: tabular-nums; white-space: normal; overflow-wrap: anywhere; }
.ueb .zeilenlink:hover { text-decoration: none; }
.ueb .zeilenlink .ic { width: 15px; height: 15px; opacity: 0; transform: translateX(-5px); color: var(--akzent); transition: opacity .2s, transform .25s var(--weich); }
.ueb tr:hover .zeilenlink, .ueb .zeilenlink:focus-visible { color: var(--akzent); }
.ueb tr:hover .zeilenlink .ic, .ueb .zeilenlink:focus-visible .ic { opacity: 1; transform: none; }
.zelle-unter { display: block; margin-top: 1px; font-size: 13.5px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; }
.ueb-schild { display: inline-block; padding: 3px 10px; border-radius: 8px; background: var(--flaeche-3); color: var(--text-2); font-size: 12.5px; font-weight: 620; overflow-wrap: anywhere; }
.ueb .zeile--haengt td:first-child { box-shadow: inset 4px 0 0 var(--fehler); }

.ueb .stand-anzeige { gap: 4px; }
.ueb .mini-stand { width: 132px; margin-left: -8px; }
.ueb .stand-anzeige__text { font-size: 13px; white-space: normal; }
.ueb .frist { align-items: flex-start; gap: 3px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ueb .frist small { font-size: 12.5px; font-weight: 500; }
.ueb .frist--ueber small, .ueb .frist--bald small { margin-left: -2px; padding: 1px 9px; border-radius: 999px; font-weight: 660; }
.ueb .frist--ueber small { background: var(--fehler-weich); }
.ueb .frist--bald small { background: var(--warn-weich); }
.ueb .in-arbeit { gap: 7px; font-size: 13px; white-space: normal; }
.ueb .in-arbeit::before { content: ""; width: 7px; height: 7px; flex: none; border-radius: 50%; background: currentColor; }
.ueb .wartet-bei { line-height: 1.4; }
.ueb .wartet-bei__personen { font-weight: 620; }
.ueb .wartet-bei small { font-size: 12.5px; }
.ueb .wartet-bei__fertig .ic { margin: 0 2px 0 4px; }
.ueb .wartet-bei__warnung { margin-top: 5px; padding: 4px 10px; border-radius: 9px; font-size: 12.5px; font-weight: 640; }
.ueb .marke-status { gap: 7px; padding: 3px 11px 3px 9px; font-weight: 650; }
.ueb .marke-status::before { width: 7px; height: 7px; }

/* Feste Breiten nur bei genug Platz; schmaler gilt die normale Tabelle (mit Querscrollen wie bisher) */
@media (min-width: 1300px) {
  .ueb .tabelle { table-layout: fixed; }
  .sp-nr { width: 19%; }
  .sp-projekt { width: 13%; }
  .sp-stand { width: 19%; }
  .sp-netto { width: 11%; }
  .sp-ziel { width: 13%; }
  .sp-letzte { width: 25%; }
}

@media (prefers-reduced-motion: no-preference) {
  .ueb .auf { animation: ueb-auf .6s var(--weich) both; animation-delay: 40ms; }
  .ueb .auf--1 { animation-delay: 110ms; }
  .ueb .auf--2 { animation-delay: 180ms; }
  .ueb .auf--3 { animation-delay: 260ms; }
  .ueb .auf--4 { animation-delay: 340ms; }
  .ueb .auf--5 { animation-delay: 420ms; }
  @keyframes ueb-auf { from { opacity: 0; transform: translateY(14px); } }

  .verteilung__teil { animation: ueb-wachsen .8s var(--weich) both; animation-delay: .55s; }
  .verteilung__teil--bald { animation-delay: .67s; }
  .verteilung__teil--spaeter { animation-delay: .79s; }
  @keyframes ueb-wachsen { from { transform: scaleX(0); opacity: 0; } }

  /* „Du bist dran“: der aktuelle Schritt meldet sich zweimal, dann ist Ruhe */
  .ueb .abschnitt--meine .mini-stand .aktuell::before { animation: ueb-ring 1.5s ease-out 1.1s 2; }
  @keyframes ueb-ring {
    0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--akzent) 55%, transparent); }
    100% { box-shadow: 0 0 0 10px color-mix(in srgb, var(--akzent) 0%, transparent); }
  }

  /* Jemand hat die Rechnung gerade offen */
  .ueb .in-arbeit::before { animation: ueb-puls 1.9s ease-in-out infinite; }
  @keyframes ueb-puls { 50% { opacity: .3; transform: scale(.8); } }
}
@media (prefers-reduced-motion: reduce) {
  .ueb *, .ueb *::before, .ueb *::after, .leiste *, .oben { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

@media (max-width: 1280px) {
  .ueb-zahlen { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ueb-zahl--haupt { grid-column: 1 / -1; min-height: 0; }
  .ueb-zahl { min-height: 150px; }
}
@media (max-width: 900px) {
  .ueb .seitenkopf h1 { font-size: 28px; }
}
@media (max-width: 760px) {
  .ueb-zahlen { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .ueb-zahl { min-height: 0; gap: 14px; }
  .ueb .seitenkopf__aktionen { width: 100%; }
  .ueb .seitenkopf__aktionen .knopf { flex: 1; }
  .abschnitt__kopf { flex-wrap: wrap; padding: 16px 14px 10px 16px; }
  .ueb .alarm li .knopf, .ueb .alarm li form { margin-left: 28px; }
  .ueb .wartet-bei { min-width: 0; }

  /* Tabellenzeilen werden zu Karten: Rechnung oben, darunter die Angaben mit Beschriftung (data-t) */
  .ueb .tabelle thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ueb .tabelle, .ueb .tabelle tbody, .ueb .tabelle td { display: block; }
  .ueb .tabelle colgroup { display: none; }
  .ueb .tabelle tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 16px; padding: 14px 16px; border-bottom: 1px solid var(--linie); }
  .ueb .tabelle tbody tr:last-child { border-bottom: 0; }
  .ueb .tabelle tbody tr.gruppenzeile { display: block; padding: 14px 16px 0; border-bottom: 0; }
  .ueb .tabelle td, .ueb .tabelle td:first-child, .ueb .tabelle td:last-child, .ueb .gruppenzeile td { padding: 0 !important; border: 0; background: transparent !important; }
  .ueb .tabelle td.rechts { text-align: left; }
  .ueb .tabelle td[data-t]::before { content: attr(data-t); display: block; margin-bottom: 2px; font-size: 12.5px; font-weight: 500; color: var(--text-3); }
  .ueb .zelle-rechnung, .ueb .zelle-breit { grid-column: 1 / -1; }
  .ueb .zeile--haengt td:first-child { box-shadow: none; }
  .ueb .tabelle tbody tr.zeile--haengt { box-shadow: inset 4px 0 0 var(--fehler); }
}

/* ---------- Aufgabenseiten (Plausibilisierung, Fachprüfung, Freigabe) im Stil der Projektseite ----------
   Gewählt nach Vorschau docs/vorschau/aufgabe.html: Variante A mit Deckblatt-Knöpfen aus B,
   Unterlagen links und ausblendbar, Angaben rechts (Nutzer, 18.11.2026). */
.aufgabe-raster { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
.aufgabe-haupt { container: haupt / inline-size; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.aufgabe-haupt > * { margin: 0; }
@media (min-width: 1200px) {
  .aufgabe-raster { grid-template-columns: minmax(380px, 44%) minmax(0, 1fr); }
  .aufgabe-raster > .belegansicht, .aufgabe-raster > .beleg-leiste { order: -1; }
}

/* Kopf */
.aufgabenkopf { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.aufgabenkopf > div:first-child { flex: 1 1 24rem; min-width: 0; }
.aufgabenkopf h1 { margin: 6px 0 4px; font-size: 28px; line-height: 1.15; }
.aufgabenkopf__firma { margin: 0 0 10px; font-size: 16.5px; color: var(--text-2); }
.aufgabenkopf__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 0; color: var(--text-2); font-size: 14px; }
.aufgabenkopf__meta .ic { width: 15px; height: 15px; color: var(--text-3); vertical-align: -2px; margin-right: 4px; }
.aufgabenkopf__aktionen { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.art-schild { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 6px; font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.art-schild--plausibilisierung { background: var(--lila-weich); color: var(--lila); }
.art-schild--fachpruefung { background: var(--akzent-weich); color: var(--akzent); }
.art-schild--bauherrenfreigabe { background: var(--tuerkis-weich); color: var(--tuerkis); }
.frist-text { font-weight: 650; color: var(--text); }
.frist-text--bald { color: var(--warn); }
.frist-text--ueber { color: var(--fehler); }

/* Kennzahlen und Schritte in der Arbeitsspalte */
.aufgabe-haupt .kennzahlen { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.aufgabe-haupt .kennzahl__wert { font-size: 24px; white-space: nowrap; }
.kennzahl__wert small { font-size: 15px; font-weight: 600; color: var(--text-3); }
.kennzahl--lila { --streifen: var(--lila); }
.kennzahl__unter--warn { color: var(--warn) !important; font-weight: 650; }
.aufgabe-haupt .einrichtung__text small { white-space: normal; }
.aufgabe-haupt .karte { box-shadow: var(--schatten-karte); }
.aufgabe-haupt .karte__kopf { flex-wrap: wrap; }
.aufgabe-haupt .karte__kopf h2 { font-size: 17.5px; }
.aufgabe-haupt .karte__kopf p { font-size: 13.5px; }
.karte__fuss { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 13px 18px; border-top: 1px solid var(--linie); background: var(--flaeche-2); border-radius: 0 0 var(--radius) var(--radius); }
.karte__fuss form { margin: 0; }
.aufgabe-haupt .warnstreifen p q { display: block; margin-top: 4px; font-style: italic; }
.aufgabe-haupt .meldung { margin: 0; }

/* Angaben als Raster */
.fakten { display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: 16px 24px; margin: 0; padding: 18px; }
.fakten > div { min-width: 0; }
.fakten dt { font-size: 13px; color: var(--text-3); font-weight: 600; margin-bottom: 2px; }
.fakten dd { margin: 0; font-weight: 600; line-height: 1.4; font-variant-numeric: tabular-nums; }
.fakten dd small { display: block; font-weight: 400; font-size: 13.5px; color: var(--text-2); }
.fakten--breit { grid-column: 1 / -1; }

/* Stand Abrechnung als Balken (Breiten setzt seite.js aus data-anteil) */
.stand-neu { padding: 0 18px 18px; }
.stand-neu__titel { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text-3); }
.stand-neu__titel span { text-transform: none; letter-spacing: 0; font-weight: 500; }
.stand-balken { display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: var(--flaeche-3); }
.stand-balken span { display: block; width: 0; height: 100%; }
.stand-balken__bisher { background: var(--ok); }
.stand-balken__diese { background: repeating-linear-gradient(-45deg, var(--akzent), var(--akzent) 5px, color-mix(in srgb, var(--akzent) 70%, var(--flaeche)) 5px, color-mix(in srgb, var(--akzent) 70%, var(--flaeche)) 10px); }
.stand-legende { display: grid; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); gap: 10px 18px; margin: 12px 0 0; }
.stand-legende dt { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-3); }
.stand-legende dt::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--linie-stark); flex: none; }
.stand-legende .f-bisher dt::before { background: var(--ok); }
.stand-legende .f-diese dt::before { background: var(--akzent); }
.stand-legende .f-offen dt::before { background: var(--flaeche-3); box-shadow: inset 0 0 0 1px var(--linie-stark); }
.stand-legende .f-gesamt dt::before { background: transparent; box-shadow: inset 0 0 0 2px var(--text-3); }
.stand-legende dd { margin: 0 0 0 17px; font-weight: 650; font-variant-numeric: tabular-nums; }

/* Fachprüfung als Personenzeilen */
.prueferliste { list-style: none; margin: 0; padding: 0; }
.prueferliste > li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 14px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--linie); }
.prueferliste > li:last-child { border-bottom: 0; }
.prueferliste .avatar { width: 42px; height: 42px; font-size: 15px; }
.prueferliste__wer { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.prueferliste__wer b { font-weight: 680; }
.prueferliste__wer small { font-size: 13px; color: var(--text-3); }
.prueferliste__betrag { text-align: right; font-size: 18px; font-weight: 750; font-variant-numeric: tabular-nums; white-space: nowrap; }
.prueferliste__betrag small { display: block; font-size: 12.5px; font-weight: 500; color: var(--text-3); }
.prueferliste__mehr { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; color: var(--text-2); }
.prueferliste__mehr q { font-style: italic; }
.datei-link { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; text-decoration: none; }
.datei-link .ic { width: 15px; height: 15px; }
.datei-link:hover { text-decoration: underline; }
.summe-zeile { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.summe-zeile b { font-size: 18px; font-variant-numeric: tabular-nums; }
.differenz { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--warn-weich); color: var(--warn); font-size: 13px; font-weight: 650; }
.differenz .ic { width: 14px; height: 14px; }

/* Dateien */
.dateiliste { list-style: none; margin: 0; padding: 0; }
.dateiliste > li { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--linie); }
.dateiliste__symbol { flex: none; display: grid; place-items: center; width: 38px; height: 44px; border-radius: 6px; background: var(--fehler-weich); color: var(--fehler); font-size: 10.5px; font-weight: 800; letter-spacing: .04em; }
.dateiliste__text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.dateiliste__text a, .dateiliste__text s { font-weight: 650; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dateiliste__text small { font-size: 13px; color: var(--text-3); }
.dateiliste > li.dateiliste--aus .dateiliste__symbol { background: var(--flaeche-3); color: var(--text-3); }
.dateiliste form { margin: 0; }
.ablagefeld { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 16px 18px 18px; padding: 16px 18px; border: 2px dashed var(--linie-stark); border-radius: 12px; background: var(--flaeche-2); }
.ablagefeld > .ic { width: 28px; height: 28px; color: var(--akzent); flex: none; }
.ablagefeld__text { flex: 1 1 14rem; margin: 0; min-width: 0; }
.ablagefeld__text label { margin: 0 0 6px; }
.ablagefeld__text small { display: block; margin-top: 4px; color: var(--text-3); font-size: 13.5px; }
form.ablagefeld > div { margin: 0; }
.leer-hinweis { padding: 14px 18px 0; margin: 0; color: var(--text-2); }
.leer-hinweis b { color: var(--warn); }

/* Formulare in Karten */
.karte .formular { padding: 18px 18px 4px; }
.betrag-feld { position: relative; max-width: 18rem; }
.betrag-feld input { padding-right: 34px; font-size: 18px; font-weight: 650; font-variant-numeric: tabular-nums; text-align: right; }
.betrag-feld__einheit { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--text-3); font-weight: 600; pointer-events: none; }
.zwei-felder { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 20px; }
.zwei-felder > div { margin-bottom: 16px; }
@container haupt (min-width: 640px) { .zwei-felder { grid-template-columns: minmax(0, 18rem) minmax(0, 1fr); } }
.erklaerung { margin: 0 0 16px; padding: 16px 18px; border-radius: 10px; border: 1px solid var(--linie); border-left: 4px solid var(--akzent); background: var(--akzent-weich); }
.erklaerung p { margin: 0; font-size: 16px; line-height: 1.6; }
.erklaerung p + p { margin-top: 6px; }
.erklaerung .erklaerung__titel { font-size: 12.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--akzent); }
.bestaetigen-feld { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 12px 14px; border: 1px solid var(--linie-stark); border-radius: 10px; background: var(--flaeche); cursor: pointer; font-weight: 600; }
.bestaetigen-feld input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; }
.unterschrift-feld input { font-size: 18px; font-style: italic; }
.knoepfe--rechts { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; }
.knopf--gross { min-height: 46px; padding: 0 20px; font-size: 15.5px; }
.formular__zwischen { margin: 6px 0 4px; padding-top: 16px; border-top: 1px solid var(--linie); font-size: 16px; }
.formular fieldset.ohne-rahmen { margin: 0; padding: 0; border: 0; min-width: 0; }

/* Deckblatt: Knopfgruppen statt Auswahllisten */
.deckblatt-b { list-style: none; margin: 0 0 12px; padding: 0; }
.deckblatt-b > li { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; padding: 11px 0; border-bottom: 1px solid var(--linie); }
.deckblatt-b > li:last-child { border-bottom: 0; }
.deckblatt-b__frage { font-weight: 600; }
.deckblatt-b__frage small { display: block; font-weight: 400; font-size: 13px; color: var(--text-3); }
.deckblatt-b .errorlist { flex-basis: 100%; margin: 0; }
.segment { display: inline-flex; margin: 0; padding: 0; border: 1px solid var(--linie-stark); border-radius: 9px; overflow: hidden; background: var(--flaeche); }
.segment label { position: relative; margin: 0; font-size: 14px; font-weight: 600; cursor: pointer; }
.segment input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.segment span { display: block; padding: 7px 13px; color: var(--text-2); border-left: 1px solid var(--linie); }
.segment label:first-child span { border-left: 0; }
.segment label:hover span { background: var(--flaeche-3); color: var(--text); }
.segment input:checked + span { background: var(--akzent); color: var(--akzent-text); }
.segment input:focus-visible + span { box-shadow: inset var(--fokus); }
.segment--offen { border-color: var(--warn); box-shadow: 0 0 0 3px var(--warn-weich); }
fieldset:disabled .segment label { cursor: default; }
fieldset:disabled .segment label:hover span { background: none; color: var(--text-2); }
fieldset:disabled .segment input:checked + span { background: var(--akzent); color: var(--akzent-text); opacity: .75; }

/* Deckblatt zum Lesen (Bauherr) */
.deckblatt-lesen { list-style: none; margin: 0; padding: 4px 18px 14px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 28px; }
@container haupt (min-width: 700px) { .deckblatt-lesen { grid-template-columns: 1fr 1fr; } }
.deckblatt-lesen > li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--linie); }
.antwort { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; background: var(--flaeche-3); color: var(--text-3); }
.antwort--ja { background: var(--ok-weich); color: var(--ok); }
.antwort--nein { background: var(--grau-weich); color: var(--grau); }

/* Weitere Aktionen am Seitenende */
.seitenende { padding: 4px 2px; font-size: 14px; }
.seitenende > summary, .karte__fuss details > summary { color: var(--text-2); cursor: pointer; font-weight: 600; }
.seitenende > summary:hover { color: var(--fehler); }
.seitenende[open] { padding: 14px 16px; border: 1px solid var(--linie); border-radius: var(--radius); background: var(--flaeche); }
.karte__fuss details[open] { flex-basis: 100%; }

/* Unterlagen: PDF links, mitlaufend, ausblendbar (Wahl in localStorage, setzt thema.js vor dem Zeichnen) */
.belegansicht { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--linie); border-radius: 12px; background: var(--flaeche); box-shadow: var(--schatten-karte); overflow: hidden; }
@media (min-width: 1200px) { .belegansicht { position: sticky; top: calc(var(--oben-hoehe) + 16px); height: calc(100vh - var(--oben-hoehe) - 32px); } }
.belegansicht__kopf { display: flex; align-items: center; gap: 10px; padding: 12px 12px 0 16px; }
.belegansicht__kopf h2 { flex: 1; margin: 0; font-size: 15.5px; }
.belegansicht__reiter { display: flex; gap: 2px; padding: 6px 10px 0; border-bottom: 1px solid var(--linie); overflow-x: auto; scrollbar-width: none; }
.belegansicht__reiter button { flex: none; min-height: 36px; padding: 0 11px; border: 0; border-radius: 7px 7px 0 0; background: none; color: var(--text-2); font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.belegansicht__reiter button:hover { background: var(--flaeche-3); color: var(--text); }
.belegansicht__reiter button[aria-selected="true"] { background: var(--flaeche-3); color: var(--text); box-shadow: inset 0 -2px 0 var(--akzent); }
.belegansicht__flaeche { flex: 1; min-height: 0; display: flex; background: var(--flaeche-3); }
.belegansicht__flaeche iframe { flex: 1; width: 100%; min-height: 70vh; border: 0; background: var(--flaeche); }
@media (min-width: 1200px) { .belegansicht__flaeche iframe { min-height: 0; } }
.belegansicht__leer { margin: auto; padding: 24px; color: var(--text-2); text-align: center; }
.belegansicht__fuss { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 14px; border-top: 1px solid var(--linie); font-size: 13px; color: var(--text-3); }
.belegansicht__fuss span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.beleg-umschalter { gap: 8px; }
.beleg-leiste { display: none; }
html[data-unterlagen="aus"] .belegansicht { display: none; }
html[data-unterlagen="aus"] .beleg-leiste {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 50px; padding: 0 16px;
  border: 1px solid var(--linie-stark); border-radius: 12px;
  background: var(--flaeche); color: var(--akzent); box-shadow: var(--schatten-karte);
  font-size: 15.5px; font-weight: 650;
}
.beleg-leiste:hover { background: var(--akzent-weich); color: var(--akzent); border-color: var(--akzent); }
.beleg-leiste .ic { width: 22px; height: 22px; transform: scaleX(-1); }
@media (min-width: 1200px) {
  html[data-unterlagen="aus"] .aufgabe-raster { grid-template-columns: 64px minmax(0, 1fr); }
  html[data-unterlagen="aus"] .beleg-leiste { position: sticky; top: calc(var(--oben-hoehe) + 16px); height: calc(100vh - var(--oben-hoehe) - 32px); flex-direction: column; justify-content: flex-start; gap: 14px; padding: 18px 0; }
  html[data-unterlagen="aus"] .beleg-leiste span { writing-mode: vertical-rl; transform: rotate(180deg); }
}

/* Schmale Arbeitsspalte (neben dem PDF oder auf dem Handy) */
@container haupt (max-width: 900px) { .aufgabe-haupt .kennzahlen { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container haupt (max-width: 860px) {
  .einrichtung__schritte { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .einrichtung__schritte li + li::before { left: 24px; top: -11px; width: 2px; height: 10px; }
}
@container haupt (max-width: 460px) {
  .aufgabe-haupt .kennzahl__wert { font-size: 19px; }
  .aufgabe-haupt .kennzahl { padding: 12px 12px 12px 15px; }
  .prueferliste > li { grid-template-columns: auto minmax(0, 1fr); }
  .prueferliste__betrag { grid-column: 2; text-align: left; }
}

/* Formulare in Karten der Aufgabenseiten: kein Abstand der allgemeinen Formular-Regel an Fuß und Inhalt */
.aufgabe-haupt .karte form > .formular, .aufgabe-haupt .karte form > .karte__fuss { margin: 0; }
.aufgabe-haupt .warnstreifen small { display: block; margin-top: 6px; font-size: 13.5px; }
.zwei-felder > div > div { margin-bottom: 0; }

/* ---------- Rechnungsseite im Stil der Aufgabenseiten (Vorschau docs/vorschau/rechnung.html, Nutzer 18.11.2026) ----------
   Arbeit links, rechts Rechnung und Auftrag, Unterlagen als Liste und Verlauf; oben Ablauf-Leiste mit „wartet bei“. */
.rechnung-raster { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
@media (min-width: 1200px) { .rechnung-raster { grid-template-columns: minmax(0, 1fr) minmax(320px, 30%); } }
.rechnung-seite { container: haupt / inline-size; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.rechnung-seite > * { margin: 0; }
.rechnung-neben { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.rechnung-neben .fakten { grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.rechnung-seite .karte, .rechnung-neben .karte { box-shadow: var(--schatten-karte); }
.rechnung-seite .karte__kopf, .rechnung-neben .karte__kopf { flex-wrap: wrap; }
.art-schild--rechnung { background: var(--flaeche-3); color: var(--text-2); }
.rechnung-seite .einschub--klappe:not([open]) { display: none; }
.rechnung-seite .einschub--klappe > summary { display: none; }

/* Ablauf-Leiste (große Variante der Stand-Schritte) */
.ablauf { padding: 18px 18px 16px; border: 1px solid var(--linie); border-radius: 12px; background: var(--flaeche); box-shadow: var(--schatten-karte); }
.ablauf__kopf { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 14px; flex-wrap: wrap; margin-bottom: 16px; }
.ablauf__kopf h2 { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.ablauf__wartet { font-size: 14px; color: var(--text-2); }
.ablauf .schritte li { padding-top: 38px; font-size: 14px; }
.ablauf .schritte li::before { width: 30px; height: 30px; font-size: 13px; }
.ablauf .schritte li::after { top: 14px; left: calc(-50% + 17px); right: calc(50% + 17px); height: 3px; }
.ablauf .schritte small { margin-top: 2px; font-size: 12.5px; }
.ablauf .schritte .aktuell small { color: var(--akzent); font-weight: 600; }
.schritte .abbruch { color: var(--fehler); font-weight: 650; }
.schritte .abbruch::before { content: "✕"; background: var(--fehler); border-color: var(--fehler); color: var(--flaeche); }
.schritte .ausgelassen { opacity: .45; }
@container haupt (max-width: 700px) {
  .ablauf .schritte { flex-direction: column; gap: 10px; }
  .ablauf .schritte li { padding: 2px 0 2px 42px; text-align: left; min-height: 30px; }
  .ablauf .schritte li::before { left: 0; transform: none; }
  .ablauf .schritte li::after { left: 14px; right: auto; top: -12px; width: 3px; height: 12px; }
}

/* Kennzahlen, Hinweise, Abbruch */
.rechnung-seite .kennzahlen { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; }
@container haupt (max-width: 900px) { .rechnung-seite .kennzahlen { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rechnung-seite .kennzahl__wert { font-size: 24px; white-space: nowrap; }
@container haupt (max-width: 460px) { .rechnung-seite .kennzahl__wert { font-size: 19px; } }
.kennzahl--tuerkis { --streifen: var(--tuerkis); }
.kennzahl__wert--leer { color: var(--text-3); font-weight: 600 !important; }
.rechnung-seite .warnstreifen, .rechnung-seite .einrichtung { margin: 0; }
.rechnung-seite .warnstreifen form { margin: 0; flex: none; }
.abbruch-karte { padding: 16px 18px; border: 1px solid color-mix(in srgb, var(--fehler) 35%, var(--linie)); border-left: 4px solid var(--fehler); border-radius: var(--radius); background: var(--fehler-weich); }
.abbruch-karte p { margin: 0; }
.abbruch-karte p + p { margin-top: 6px; }

/* Prüfer mit Menü und aufklappenden Formularen */
.prueferliste > li.mit-menue { grid-template-columns: auto minmax(0, 1fr) auto auto; }
.prueferliste .menue { align-self: start; }
.einschub-zeile { grid-column: 1 / -1; margin: 8px 0 0; }
.einschub-zeile form > div { margin-bottom: 12px; }
.nachladen { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; margin: 0; }
.nachladen > div { margin: 0; flex: 1 1 14rem; }
.rechnung-seite .karte__fuss form { margin: 0; }
.rechnung-seite .karte form > div:last-child { margin-bottom: 0; }

/* Prüferauswahl im Entwurf als Karten mit Haken */
.auswahlkarten { list-style: none; margin: 0; padding: 18px; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.auswahlkarte { display: flex; align-items: center; gap: 12px; margin: 0; padding: 12px 14px; border: 1px solid var(--linie-stark); border-radius: 10px; background: var(--flaeche); cursor: pointer; font-weight: 600; }
.auswahlkarte:hover { border-color: var(--akzent); }
.auswahlkarte input { width: 20px; height: 20px; margin: 0; flex: none; }
.auswahlkarte:has(input:checked) { border-color: var(--akzent); background: var(--akzent-weich); box-shadow: 0 0 0 3px var(--akzent-weich); }
.rechnung-seite .wer { margin: 0; }

/* Abschluss als Statusliste */
.statusliste { list-style: none; margin: 0; padding: 0; }
.statusliste > li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 2px 14px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--linie); }
.statusliste > li:last-child { border-bottom: 0; }
.statusliste > li form { margin: 0; }
.statusliste__zeichen { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ok-weich); color: var(--ok); }
.statusliste__zeichen .ic { width: 17px; height: 17px; }
.statusliste li.warn .statusliste__zeichen { background: var(--warn-weich); color: var(--warn); }
.statusliste li.fehler .statusliste__zeichen { background: var(--fehler-weich); color: var(--fehler); }
.statusliste li.wartet .statusliste__zeichen { background: var(--flaeche-3); color: var(--text-3); }
.statusliste__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.4; overflow-wrap: anywhere; }
.statusliste__text b { font-weight: 680; }
.statusliste__text small { font-size: 13.5px; color: var(--text-2); }
.statusliste li.warn .statusliste__text small:first-of-type { color: var(--warn); font-weight: 600; }
@container haupt (max-width: 560px) { .statusliste > li { grid-template-columns: auto minmax(0, 1fr); } .statusliste > li > form, .statusliste > li > .knopf { grid-column: 2; justify-self: start; } }

/* Unterlagen als gruppierte Liste (rechts) */
.unterlagen-gruppe { margin: 0; padding: 10px 18px 2px; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text-3); }
.rechnung-neben .dateiliste > li { padding: 9px 18px; }
.rechnung-neben .dateiliste__symbol { width: 30px; height: 36px; font-size: 9.5px; }
.rechnung-neben .dateiliste:last-child > li:last-child { border-bottom: 0; }
.leer-hinweis.karte__inhalt { padding: 14px 18px; }

/* ---------- „Neues Projekt“ nach Vorschau A (docs/vorschau/projekt-neu.html, Nutzer 18.11.2026) ----------
   Nummerierte Karten mit Feldern im Raster, rechts „Das wird angelegt“ (static/js/projekt_neu.js).
   Freiwillige Auftragsangaben bleiben sichtbar. Nur auf dieser Seite (.projekt-neu). */
.projekt-neu { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
@media (min-width: 1200px) {
  .projekt-neu { grid-template-columns: minmax(0, 1fr) 340px; }
  .projekt-neu .neu-knoepfe-unten { display: none; }
}
.projekt-neu .neu-haupt { container: neu / inline-size; display: flex; flex-direction: column; gap: 16px; min-width: 0; margin: 0; }
.projekt-neu .neu-haupt > * { margin: 0; }
.neukopf h1 { margin: 6px 0 4px; font-size: 28px; }
.neukopf p { margin: 0; color: var(--text-2); max-width: 46rem; }
.neukopf .pflicht-legende { margin-top: 8px; font-size: 13.5px; color: var(--text-3); }
.projekt-neu .pflicht-text { display: none; }  /* nur das rote Sternchen, erklärt einmal oben */

/* Karten mit Nummer und grünem Haken, wenn fertig */
.abschnitt-karte { box-shadow: var(--schatten-karte); }
.abschnitt-karte .karte__kopf { flex-wrap: wrap; }
.abschnitt-karte .karte__kopf h2 { font-size: 17.5px; }
.abschnitt-karte .karte__inhalt { padding: 18px; }
.abschnitt-karte .karte__inhalt > :last-child { margin-bottom: 0; }
.abschnitt-karte .nummer { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--akzent-weich); color: var(--akzent); font-weight: 800; font-size: 15px; }
.abschnitt-karte.fertig .nummer { background: var(--ok); color: var(--flaeche); }
.abschnitt-karte.fertig .nummer::before { content: "✓"; }
.abschnitt-karte.fertig .nummer span { display: none; }

/* Felder im Raster */
.projekt-neu .feldraster { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px 20px; }
.projekt-neu .feldraster > div, .projekt-neu .feldraster > div > div { margin: 0; min-width: 0; }
.projekt-neu .feld--breit { grid-column: 1 / -1; }
@container neu (min-width: 620px) { .projekt-neu .feldraster { grid-template-columns: 1fr 1fr; } }

/* Aufträge: Pflichtangaben und freiwillige im Raster, alles sichtbar */
.projekt-neu [data-formset="auf"] .eintrag { margin: 0 0 14px; padding: 0; border: 1px solid var(--linie-stark); border-radius: 12px; background: var(--flaeche); overflow: hidden; }
.projekt-neu [data-formset="auf"] .eintrag__kopf { margin: 0; padding: 12px 16px; background: var(--flaeche-2); border-bottom: 1px solid var(--linie); }
.projekt-neu [data-auftrag-block] { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px 20px; padding: 16px 16px 0; }
.projekt-neu [data-auftrag-block] > div, .projekt-neu [data-auftrag-block] > fieldset { margin: 0; min-width: 0; }
.projekt-neu [data-auftrag-block] > .meldung, .projekt-neu [data-auftrag-block] > .wegwahl-feld, .projekt-neu [data-auftrag-block] > .freiwillig { grid-column: 1 / -1; }
.projekt-neu .freiwillig { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px 20px; margin: 4px 0 0; padding-top: 14px; }
.projekt-neu .freiwillig > * { margin: 0; min-width: 0; }
.projekt-neu .freiwillig__titel { grid-column: 1 / -1; }
.projekt-neu [data-formset="auf"] .eintrag > .wegwahl-feld { margin: 14px 16px 16px; }
@container neu (min-width: 620px) {
  .projekt-neu [data-auftrag-block] { grid-template-columns: 1fr 1fr; }
  .projekt-neu .freiwillig { grid-template-columns: 1fr 1fr 1fr; }
}
/* Status „gleich aktiv / als Entwurf“ als Umschalter */
.projekt-neu .eintrag > .wegwahl-feld > div { display: inline-flex; border: 1px solid var(--linie-stark); border-radius: 9px; overflow: hidden; background: var(--flaeche); }
.projekt-neu .eintrag > .wegwahl-feld > div > div { margin: 0; }
.projekt-neu .eintrag > .wegwahl-feld > div label { position: relative; display: block; margin: 0; padding: 7px 14px; border-left: 1px solid var(--linie); font-size: 14px; font-weight: 600; color: var(--text-2); cursor: pointer; }
.projekt-neu .eintrag > .wegwahl-feld > div > div:first-child label { border-left: 0; }
.projekt-neu .eintrag > .wegwahl-feld > div input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.projekt-neu .eintrag > .wegwahl-feld > div label:has(input:checked) { background: var(--akzent); color: var(--akzent-text); }
.projekt-neu .eintrag > .wegwahl-feld > div label:has(input:focus-visible) { box-shadow: inset var(--fokus); }
.projekt-neu .auftrag-dazu { width: 100%; min-height: 48px; border: 2px dashed var(--linie-stark); border-radius: 12px; background: transparent; color: var(--akzent); font-weight: 650; }
.projekt-neu .auftrag-dazu:hover { border-color: var(--akzent); background: var(--akzent-weich); color: var(--akzent); }

/* Zusammenfassung rechts */
.zusammenfassung { display: flex; flex-direction: column; box-shadow: var(--schatten-karte); }
@media (min-width: 1200px) { .zusammenfassung { position: sticky; top: calc(var(--oben-hoehe) + 16px); } }
.zusammenfassung .karte__kopf h2 { font-size: 16px; }
.zf-liste { list-style: none; margin: 0; padding: 6px 0; }
.zf-liste > li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 2px 10px; padding: 10px 18px; }
.zf-zeichen { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--linie-stark); color: var(--text-3); font-size: 12px; font-weight: 800; }
.zf-liste li.fertig .zf-zeichen { border-color: var(--ok); background: var(--ok); color: var(--flaeche); }
.zf-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.zf-text b { font-weight: 650; }
.zf-text small { font-size: 13px; color: var(--text-2); overflow-wrap: anywhere; }
.zf-text small.offen { color: var(--warn); font-weight: 600; }
.zf-text a { font-size: 13px; }
.zf-fuss { display: flex; flex-direction: column; gap: 10px; padding: 14px 18px; border-top: 1px solid var(--linie); background: var(--flaeche-2); border-radius: 0 0 var(--radius) var(--radius); }
.zf-fuss .knopf { width: 100%; min-height: 46px; font-size: 15.5px; }
.zf-fuss p { margin: 0; font-size: 13px; color: var(--text-3); text-align: center; }
.zf-fuss p:empty { display: none; }
.zf-fuss .warn { color: var(--warn); font-weight: 600; }
