@charset "UTF-8";
/* GFH Aufträge – Erscheinungsbild (Design-Handoff 10/2026). Für das Handy zuerst gedacht. */

/* Schrift: Atkinson Hyperlegible, selbst gehostet (kein Abruf bei Google, geht offline). Lizenz: fonts/OFL.txt */
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/atkinson-hyperlegible-400.f1f8a8210104.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/atkinson-hyperlegible-700.13a58e05dfd2.woff2") format("woff2"); }

/* Design-Tokens – die zentrale Stelle für Farben, Schrift, Radien und Abstände */
:root {
  /* Marke */
  --gfh-navy: #003363;
  --gfh-green: #219900;
  --gfh-green-light: #69CC4D;
  --gfh-green-bright: #8EF471;   /* Akzent auf Dunkel: aktiver Menüpunkt, Fortschritt */

  /* Flächen und Text */
  --header: #12300C;
  --header-muted: #C9D6C4;
  --header-step-off: #2F5426;
  --primary: #1D6A0C;
  --link: #004F9A;
  --link-hover: #003363;
  --bg: #F5F6F2;
  --surface: #FFFFFF;
  --surface-sunken: #F1F3EE;
  --segment: #EEF0EA;
  --text: #14200F;
  --text-muted: #5B6458;
  --border: #DFE3DA;
  --border-input: #CFD4C9;
  --divider: #ECEEE8;
  --tageslinie: #E6E9E2;
  --avatar-bg: #E3E8DE;
  --avatar-fg: #1F4A16;
  --fokus: #1A90FF;

  /* Fehlendes / Konflikt (Orange) */
  --alert-bg: #FFEDE5;
  --alert-title: #5E2100;
  --alert-text: #6B3A1F;
  --alert-action: #C24100;
  --badge: #FF5700;

  /* Info-Kasten */
  --info-bg: #E6F2FF;
  --info-title: #004F9A;
  --info-text: #003363;

  /* Fehler */
  --fehler: #A4262C;
  --fehler-bg: #FDE2E2;

  /* Status: Fläche / Text / Rand links */
  --st-anfrage-bg: #F1F2EE;  --st-anfrage-fg: #3D4439;  --st-anfrage-bd: #8A9285;
  --st-offen-bg:   #E6F2FF;  --st-offen-fg:   #003363;  --st-offen-bd:   #1A90FF;
  --st-fertig-bg:  #FDF0D9;  --st-fertig-fg:  #7F4E00;  --st-fertig-bd:  #D79E43;
  --st-abger-bg:   #E5F5DE;  --st-abger-fg:   #1B4D0C;  --st-abger-bd:   #69CC4D;
  --st-abgesagt-bg:#F1EFE8;  --st-abgesagt-fg:#5F5E5A;
  --outlook-bg: #EEF0EA;     --outlook-fg: #4A5246;
  --absence-bg: #FFEDE5;     --absence-fg: #8A2E00;

  /* Schrift */
  --font: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-base: 17px; --lh-base: 1.5;
  --fs-h1: 26px; --fs-h2: 19px; --fs-h3: 17px;
  --fs-small: 15px; --fs-xs: 14px; --fs-tag: 13px; --fs-micro: 12px;

  /* Radien, Abstände */
  --r-card: 12px; --r-btn: 10px; --r-input: 8px; --r-bar: 6px; --r-pill: 12px;
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 18px; --sp-6: 22px; --sp-7: 24px;

  /* Ergänzende Flächen: Hover, grüne Tönung (heute, gewählt), Ablageziel */
  --surface-hover: #FAFBF8;
  --gruen-hell: #EEF5EA;
  --gruen-ziel: #DCEFD4;
  /* Grün als Text (auf hellen Flächen = Markengrün, im Dunkeln heller) */
  --primary-text: var(--primary);

  /* Schatten und Bewegung */
  --schatten-1: 0 1px 2px rgba(20, 32, 15, .05), 0 1px 3px rgba(20, 32, 15, .06);
  --schatten-2: 0 4px 14px rgba(20, 32, 15, .10);
  --schatten-3: 0 20px 60px rgba(0, 0, 0, .25);
  --dauer: .16s;
  --kurve: cubic-bezier(.2, .7, .3, 1);

  /* Alte Namen, damit ältere Regeln weiter passen */
  --gruen: var(--primary);
  --leise: var(--text-muted);
  --flaeche: var(--bg);
  --karte: var(--surface);
  --rahmen: var(--border);

  color-scheme: light;
}

/* Dunkelmodus: dieselben Namen, dunkle Werte. Gesetzt über <html data-theme="dark"> (darstellung.js:
   folgt dem System oder der Wahl im Kontomenü). Ausdrucke bleiben immer hell. */
@media screen {
  :root[data-theme="dark"] {
    --header: #0C1E08;
    --header-muted: #B5C4AE;
    --header-step-off: #24401C;
    --primary: #3A8C29;
    --primary-text: #82D066;
    --link: #8CC4FF;
    --link-hover: #B8DAFF;
    --bg: #0E140C;
    --surface: #172014;
    --surface-sunken: #121A10;
    --surface-hover: #1D2819;
    --segment: #1B2418;
    --text: #E4EAE0;
    --text-muted: #A2AD9D;
    --border: #2A3626;
    --border-input: #3B4936;
    --divider: #232E20;
    --tageslinie: #26321F;
    --avatar-bg: #283A22;
    --avatar-fg: #CDE8C1;
    --fokus: #5AB0FF;
    --gruen-hell: #1C2D16;
    --gruen-ziel: #26421C;

    --alert-bg: #36200F;
    --alert-title: #FFD0B0;
    --alert-text: #F0C1A2;
    --alert-action: #FF9255;
    --badge: #FF6A1A;
    --info-bg: #12263A;
    --info-title: #9BCBFF;
    --info-text: #D2E6FF;
    --fehler: #FF8F94;
    --fehler-bg: #3A1619;

    --st-anfrage-bg: #242A21;  --st-anfrage-fg: #CBD1C6;  --st-anfrage-bd: #7E8779;
    --st-offen-bg:   #12293F;  --st-offen-fg:   #AFD3FF;  --st-offen-bd:   #4DA6FF;
    --st-fertig-bg:  #392A10;  --st-fertig-fg:  #F3C678;  --st-fertig-bd:  #D79E43;
    --st-abger-bg:   #1B3214;  --st-abger-fg:   #A9E192;  --st-abger-bd:   #69CC4D;
    --st-abgesagt-bg:#262521;  --st-abgesagt-fg:#B3B1AA;
    --outlook-bg: #212A1E;     --outlook-fg: #B8C1B3;
    --absence-bg: #3A2110;     --absence-fg: #FFB78C;

    --schatten-1: 0 1px 2px rgba(0, 0, 0, .35);
    --schatten-2: 0 6px 18px rgba(0, 0, 0, .45);
    --schatten-3: 0 20px 60px rgba(0, 0, 0, .6);

    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--text);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}
input, select, textarea, button { font-family: inherit; }

/* Sichtbarer Fokusring auf allen Bedienelementen */
:focus-visible { outline: 3px solid var(--fokus); outline-offset: 2px; }

.hinweis-instanz {
  background: #F2C94C;
  --text: #14200F;
  color: var(--text);
  text-align: center;
  font-size: var(--fs-xs);
  padding: 4px 16px;
}

/* Kopfzeile: Handy – Marke und Konto-Kreis, darunter das Menü (seitlich wischbar);
   PC – alles in einer Zeile, 56 px hoch */
.kopf { background: var(--header); color: #fff; }
.kopf-zeile { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px 0; }
.kopf .marke { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 700; font-size: 18px; text-decoration: none; white-space: nowrap; }
.kopf .marke img { width: 26px; height: 26px; display: block; }
.kopf-konto { position: relative; margin: 0 0 0 auto; }
.kopf-konto > summary { list-style: none; cursor: pointer; border-radius: 50%; }
.kopf-konto > summary::-webkit-details-marker { display: none; }
.kopf-initialen { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%;
  background: #1F4A16; color: #fff; font-size: 14px; font-weight: 700; }
.kopf-konto-fenster { position: absolute; right: 0; top: 44px; z-index: 60; min-width: 220px; padding: 14px 16px;
  background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: var(--r-card);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .18); }
.kopf-konto-fenster b { display: block; font-size: 16px; }
.kopf-konto-fenster small { display: block; color: var(--text-muted); font-size: var(--fs-xs); margin-bottom: 12px; }
.kopf-konto-fenster form { margin: 0; }
.kopf-konto-fenster button { width: 100%; min-height: 44px; border: 1px solid var(--border-input); border-radius: var(--r-input);
  background: var(--surface); color: var(--text); font: inherit; font-weight: 700; cursor: pointer; }
.kopf-menue { display: flex; gap: 22px; padding: 0 18px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.kopf-menue::-webkit-scrollbar { display: none; }
.kopf-menue a { flex: 0 0 auto; color: var(--header-muted); text-decoration: none; font-size: 16px; padding: 12px 0 10px;
  border-bottom: 3px solid transparent; white-space: nowrap; }
.kopf-menue a:hover { color: #fff; }
.kopf-menue a.aktiv { color: #fff; font-weight: 700; border-bottom-color: var(--gfh-green-bright); }
.kopf-menue .zaehler { margin-left: 4px; }
@media (min-width: 900px) {
  .kopf { display: flex; align-items: stretch; height: 56px; padding: 0 24px; gap: 24px; }
  .kopf-menue { padding: 0; gap: 24px; flex: 1 1 auto; align-items: stretch; }
  .kopf-menue a { font-size: 15px; padding: 0; display: flex; align-items: center; }
  /* PC: Marke links, Menü in der Mitte, Kontokreis rechts (kopf-zeile löst sich auf) */
  .kopf-zeile { display: contents; }
  .kopf .marke { align-self: center; }
  .kopf-konto { order: 3; align-self: center; margin: 0; }
  .kopf-konto > summary:hover .kopf-initialen { box-shadow: 0 0 0 2px var(--gfh-green-bright); }
}

.inhalt { max-width: 720px; margin: 0 auto; padding: 22px 18px; }

.karte {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 16px;
  margin-bottom: 16px;
}
.karte.schmal { max-width: 400px; margin: 32px auto; }

h1 { font-size: var(--fs-h1); line-height: 1.25; margin: 0 0 12px; }
h2 { font-size: var(--fs-h2); line-height: 1.3; margin: 0 0 10px; }

.leise { color: var(--leise); }
.fehler { color: var(--fehler); font-weight: 600; }

label { display: block; margin-bottom: 14px; font-weight: 700; font-size: var(--fs-small); }
input[type="text"], input[type="password"] {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 11px 12px;
  font-size: 16px;
  border: 1px solid var(--border-input);
  border-radius: var(--r-input);
  background: var(--surface);
  color: var(--text);
}

.knopf, .knopf-klein {
  border: 0;
  border-radius: var(--r-btn);
  cursor: pointer;
  font: inherit;
}
.knopf { width: 100%; min-height: 48px; padding: 12px 15px; background: var(--primary); color: #fff; font-size: 17px; font-weight: 700; }
.knopf:hover { filter: brightness(1.08); }
.knopf-klein { padding: 6px 12px; background: var(--surface); color: var(--primary-text); font-size: var(--fs-xs); font-weight: 700; border-radius: var(--r-input); }

.angaben { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 0; }
.angaben dt { color: var(--leise); }
.angaben dd { margin: 0; }

/* --- Aufträge ------------------------------------------------------------ */
h3 { font-size: var(--fs-h3); margin: 16px 0 4px; }
a { color: var(--link); }
a:hover { color: var(--link-hover); }

.titelzeile { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.titelzeile h1 { margin: 0; }

.reiter { display: flex; gap: 4px; flex-wrap: wrap; margin: 12px 0 16px; }
.reiter a {
  padding: 8px 14px; border: 1px solid var(--border-input); border-radius: 20px;
  background: var(--surface); color: var(--text); text-decoration: none; font-size: var(--fs-small);
}
.reiter a.aktiv { background: var(--header); border-color: var(--header); color: #fff; font-weight: 700; }

a.karte.auftrag { display: block; color: var(--text); text-decoration: none; margin-bottom: 8px; }
a.karte.auftrag:hover { border-color: var(--gruen); }

/* Status-Etikett: Fläche + Text (Anfrage mit gestricheltem Rand) */
.status { display: inline-block; font-size: var(--fs-tag); font-weight: 700; line-height: 1.4; padding: 2px 10px; border-radius: var(--r-pill);
  background: var(--surface-sunken); color: var(--text); white-space: nowrap; border: 1px solid transparent; }
.status.status-anfrage { background: var(--st-anfrage-bg); color: var(--st-anfrage-fg); border: 1px dashed var(--st-anfrage-bd); }
.status.status-offen { background: var(--st-offen-bg); color: var(--st-offen-fg); }
.status.status-abgesagt, .status.status-storniert { background: var(--st-abgesagt-bg); color: var(--st-abgesagt-fg); text-decoration: line-through; }
.status.status-fertig { background: var(--st-fertig-bg); color: var(--st-fertig-fg); }
.status.status-abgerechnet { background: var(--st-abger-bg); color: var(--st-abger-fg); }

.aktionen { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.aktionen form { margin: 0; }
.aktionen .knopf { width: auto; }
a.knopf { display: inline-block; text-align: center; text-decoration: none; }
.knopf-zweit {
  display: inline-block; min-height: 48px; padding: 11px 15px; border: 1px solid var(--border-input); border-radius: var(--r-btn);
  background: var(--surface); color: var(--text); font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; text-align: center;
}
.knopf-gruen { background: var(--primary); color: #fff; border: 1px solid var(--primary); text-decoration: none; }
a.knopf-gruen:hover { color: #fff; }
.kopf a.knopf-klein { text-decoration: none; }

table { width: 100%; border-collapse: collapse; }
td { padding: 6px 0; border-bottom: 1px solid var(--divider); }
td.zahl, .zahl { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }

.erfassung { border-top: 1px solid var(--rahmen); padding: 12px 0; }
.erfassung:first-of-type { border-top: 0; }
.positionen { margin: 4px 0; padding-left: 20px; }

.meldung { padding: 12px 14px; border-radius: 10px; background: var(--st-abger-bg); color: var(--st-abger-fg); }
.meldung-error { background: var(--fehler-bg); color: var(--fehler); }
.meldung-info { background: var(--info-bg); color: var(--info-text); }

/* Formulare */
.formular > div, .formular label { margin-bottom: 14px; }
.formular label { display: block; font-weight: 700; font-size: var(--fs-small); }
.formular input:not([type="checkbox"]):not([type="hidden"]):where(:not([type="radio"])), .formular select, .formular textarea {
  display: block; width: 100%; margin-top: 6px; padding: 11px 12px; font: inherit; font-size: 16px; font-weight: 400;
  border: 1px solid var(--border-input); border-radius: var(--r-input); background: var(--surface); color: var(--text);
}
.formular input[type="checkbox"] { width: 24px; height: 24px; vertical-align: middle; margin-left: 8px; accent-color: var(--primary); }
.formular input[type="radio"] { accent-color: var(--primary); }
.formular .helptext { display: block; margin-top: 4px; font-size: var(--fs-xs); font-weight: normal; color: var(--text-muted); }
.formular .errorlist { color: var(--fehler); margin: 4px 0; padding-left: 18px; font-weight: 600; }
fieldset { border: 1px solid var(--border); border-radius: var(--r-card); margin: 0 0 16px; padding: 8px 12px; min-width: 0; }
legend { font-weight: 600; padding: 0 4px; }

@media print {
  .kopf, .hinweis-instanz, .aktionen, .reiter, .meldung { display: none; }
  body { background: var(--surface); }
  .karte { border: 0; padding: 0; }
}

/* Fotos */
.knopf-rahmen { border: 1px solid var(--gruen); }
.fotos { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.fotos img { width: 96px; height: 96px; object-fit: cover; border-radius: 6px; border: 1px solid var(--rahmen); }

/* Offline-Hinweis */
.offline-hinweis { background: var(--st-fertig-bg); color: var(--st-fertig-fg); border-bottom: 1px solid var(--st-fertig-bd); padding: 8px 18px; font-size: var(--fs-small); }
.offline-hinweis p { max-width: 720px; margin: 4px auto; }

/* Übersichten und Verwaltung */
.inhalt:has(.tabelle) { max-width: 1100px; }
.kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; margin: 12px 0; }
.kachel {
  display: block; padding: 10px 12px; border: 1px solid var(--rahmen); border-radius: 8px;
  background: var(--karte); color: var(--leise); text-decoration: none; font-size: 15px;
}
a.kachel:hover, .kachel.aktiv { border-color: var(--gruen); }
.kachel.aktiv { box-shadow: inset 0 0 0 1px var(--gruen); }
.kachel-fertig { background: var(--alert-bg); }
.kachel-anfrage { background: var(--surface-sunken); }
.zahl-gross { display: block; font-size: 24px; font-weight: 700; color: var(--text); }

.filterzeile { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 12px; margin: 12px 0; }
.filterzeile label { display: flex; flex-direction: column; font-size: 14px; color: var(--leise); }
.filterzeile input, .filterzeile select {
  padding: 8px; font: inherit; border: 1px solid var(--rahmen); border-radius: 6px; background: var(--surface); min-width: 160px;
}

.tabelle-rahmen { overflow-x: auto; padding: 0; }
.tabelle { min-width: 640px; }
.tabelle th { text-align: left; font-size: 14px; color: var(--leise); font-weight: 600; padding: 8px; border-bottom: 2px solid var(--rahmen); }
.tabelle td { padding: 8px; vertical-align: top; }
.tabelle th.zahl { text-align: right; }

.bereiche { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
a.karte.bereich { display: flex; flex-direction: column; gap: 4px; color: var(--text); text-decoration: none; margin: 0; }
a.karte.bereich:hover { border-color: var(--gruen); }


/* --- Einsatzplanung ---------------------------------------------------------- */
[hidden] { display: none !important; }
.klein { font-size: 13px; }
.marke-aushilfe { display: inline-block; font-size: 12px; color: var(--st-fertig-fg); background: var(--st-fertig-bg); border-radius: 10px; padding: 1px 8px; font-weight: 600; }
.knopf-gefahr { border-color: var(--fehler); color: var(--fehler); }

.inhalt:has(.pl) { max-width: none; padding: 16px 20px 80px; }
.pl { --namebreite: 200px; --spalte: 120px; --balkenhoehe: 62px; --freiraum: 28px; }
.pl .ansicht-tag { --spalte: 320px; }
.pl .ansicht-2wochen { --spalte: 88px; }
.pl .ansicht-monat { --spalte: 46px; --balkenhoehe: 34px; }

/* Werkzeugleiste */
.pl-leiste { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.pl-navi { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pl-titel { font-size: 20px; margin: 0 0 0 10px; }
.pl-knopf {
  display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 12px;
  border: 1px solid var(--rahmen); border-radius: 8px; background: var(--surface); color: var(--text);
  text-decoration: none; font: inherit; font-size: 15px; cursor: pointer;
}
.pl-knopf:hover { border-color: var(--gruen); color: var(--primary-text); }
.pl-umschalter { display: inline-flex; border: 1px solid var(--rahmen); border-radius: 8px; overflow: hidden; background: var(--surface); }
.pl-umschalter a { padding: 7px 14px; color: var(--leise); text-decoration: none; font-size: 15px; border-left: 1px solid var(--rahmen); }
.pl-umschalter a:first-child { border-left: 0; }
.pl-umschalter a:hover { color: var(--primary-text); }
.pl-umschalter a.aktiv { background: var(--gruen); color: #fff; }
.pl-neu { height: 36px; display: inline-flex; align-items: center; padding: 0 14px; font-size: 15px; border-radius: 8px; }
.pl-filter { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.pl-filter select { height: 34px; padding: 0 8px; border: 1px solid var(--rahmen); border-radius: 8px; background: var(--surface); font: inherit; font-size: 14px; }
.pl-legende { margin-left: auto; display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--leise); }
.pl-punkt { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-left: 10px; }

/* Raster */
.pl-bereich { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 16px; align-items: start; }
.pl-raster-rahmen { overflow-x: auto; background: var(--surface); border: 1px solid var(--rahmen); border-radius: 12px; }
.pl-raster { min-width: calc(var(--namebreite) + var(--spalten) * var(--spalte)); }
.pl-kopf, .pl-zeile { display: grid; grid-template-columns: var(--namebreite) repeat(var(--spalten), minmax(var(--spalte), 1fr)); }
.pl-kopf { position: sticky; top: 0; z-index: 3; background: var(--surface); border-bottom: 1px solid var(--rahmen); border-radius: 12px 12px 0 0; }
.pl-ecke { padding: 10px 14px; font-size: 13px; color: var(--leise); position: sticky; left: 0; background: var(--surface); z-index: 4; border-right: 1px solid var(--rahmen); }
.pl-tagkopf { padding: 8px 2px; text-align: center; font-size: 12px; color: var(--leise); line-height: 1.25; }
.pl-tagkopf b { display: block; margin: 2px auto 0; font-size: 15px; color: var(--text); width: fit-content; min-width: 26px; padding: 1px 6px; border-radius: 12px; }
.pl-tagkopf.we { background: var(--surface-hover); }
.pl-tagkopf.heute span { color: var(--primary-text); font-weight: 600; }
.pl-tagkopf.heute b { background: var(--gruen); color: #fff; }
.pl-zeile { border-top: 1px solid var(--rahmen); }
.pl-kopf + .pl-zeile { border-top: 0; }
.pl-person {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px; min-width: 0;
  position: sticky; left: 0; z-index: 2; background: var(--surface); border-right: 1px solid var(--rahmen);
}
.pl-avatar {
  flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--avatar-bg); color: var(--primary-text);
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700;
}
.pl-avatar.aushilfe { background: var(--st-fertig-bg); color: var(--st-fertig-fg); }
.pl-person-text { min-width: 0; }
.pl-person-text b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-person-text small { display: block; color: var(--leise); font-size: 12px; }
.pl-tage { grid-column: 2 / -1; display: grid; grid-template-columns: repeat(var(--spalten), minmax(var(--spalte), 1fr)); padding: 4px 0; }

/* Tagesflächen: Klick plant ein, beim Ziehen sind sie das Ziel */
.pl-tag { grid-row: 1 / -1; position: relative; border-left: 1px solid var(--tageslinie); text-decoration: none; color: var(--leise); min-height: calc(var(--freiraum) + 8px); }
.pl-tag:first-child { border-left: 0; }
.pl-tag.we { background: var(--surface-hover); }
.pl-tag.heute { background: var(--gruen-hell); }
.pl-tag:hover { background: var(--gruen-hell); }
.pl-stunden { position: absolute; right: 6px; bottom: 4px; font-size: 11px; color: var(--leise); }
.pl-plus { position: absolute; left: 50%; bottom: 1px; transform: translateX(-50%); font-size: 18px; line-height: 1; color: var(--primary-text); opacity: 0; transition: opacity .15s; }
.pl-tag:hover .pl-plus { opacity: 1; }
.pl-tag.pl-ziel { background: var(--gruen-ziel); box-shadow: inset 0 0 0 2px var(--gruen); }
.pl-modus-ziel .pl-tag { cursor: copy; }
.pl-modus-ziel .pl-plus { opacity: 0 !important; }
/* Während des Verschiebens lassen andere Balken die Maus zum Tag darunter durch */
.pl-modus-ziel .pl-balken:not(.pl-gewaehlt) { pointer-events: none; }

/* Balken */
.pl-balken {
  z-index: 1; min-width: 0; margin: 2px 3px; padding: 5px 9px; border-radius: 8px;
  border: 1px solid transparent; border-left-width: 4px;
  text-decoration: none; overflow: hidden; line-height: 1.25; cursor: grab;
  transition: box-shadow .15s, transform .15s, opacity .15s;
}
.pl-balken:active { cursor: grabbing; }
.pl-balken b, .pl-balken span, .pl-balken small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-balken b { font-size: 13px; }
.pl-balken span { font-size: 12px; opacity: .85; }
.pl-balken small { font-size: 11px; opacity: .75; }
.pl-balken:hover { box-shadow: 0 3px 10px rgba(0, 0, 0, .12); transform: translateY(-1px); }
.ansicht-monat .pl-balken { padding: 6px; }
.ansicht-monat .pl-balken span, .ansicht-monat .pl-balken small { display: none; }

/* Farben nach Auftragsstatus (Balken, Legende) */
.pl-balken.status-anfrage { background: var(--st-anfrage-bg); color: var(--st-anfrage-fg); border-left-color: #7f77dd; }
.pl-balken.status-offen { background: var(--st-offen-bg); color: var(--st-offen-fg); border-left-color: var(--st-offen-bd); }
.pl-balken.status-fertig { background: var(--st-fertig-bg); color: var(--st-fertig-fg); border-left-color: var(--st-fertig-bd); }
.pl-balken.status-abgerechnet { background: var(--st-abger-bg); color: var(--st-abger-fg); border-left-color: var(--st-abger-bd); }
.pl-punkt.status-anfrage { background: #7f77dd; }
.pl-punkt.status-offen { background: #378add; }
.pl-punkt.status-fertig { background: #ba7517; }
.pl-balken.einsatz-verschoben { border-style: dashed; border-left-style: solid; border-color: currentColor; }
.pl-balken.einsatz-ausgefallen {
  background: repeating-linear-gradient(135deg, var(--surface-sunken) 0 6px, var(--divider) 6px 12px);
  color: var(--text-muted); border-left-color: var(--border-input); text-decoration: line-through;
}
.pl-balken.aushilfe { box-shadow: inset 0 0 0 1px #d9a74a; }
.pl-zieht, .pl-wartet { opacity: .45; }
.pl-wartet { pointer-events: none; }
.pl-gewaehlt { outline: 3px solid var(--gruen); outline-offset: 1px; }

/* Seitenleiste */
.pl-seite {
  background: var(--surface); border: 1px solid var(--rahmen); border-radius: 12px; padding: 14px;
  position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow: auto;
}
.pl-seite-kopf { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pl-seite-kopf h2 { font-size: 16px; margin: 0; }
.pl-anzahl { background: var(--tageslinie); border-radius: 10px; padding: 1px 9px; font-size: 13px; font-weight: 600; }
.pl-sortierung { font-size: 12px; color: var(--leise); margin: 6px 0 12px; }
.pl-sortierung a { margin-left: 6px; color: var(--leise); }
.pl-sortierung a.aktiv { color: var(--primary-text); font-weight: 600; text-decoration: none; }
.pl-karte {
  border: 1px solid var(--rahmen); border-left: 4px solid var(--st-anfrage-bd); border-radius: 8px;
  padding: 8px 10px; margin-bottom: 8px; background: var(--surface); cursor: grab; transition: box-shadow .15s, border-color .15s;
}
.pl-karte:hover, .pl-karte:focus-visible { border-color: var(--gruen); box-shadow: 0 3px 10px rgba(0, 0, 0, .1); outline: none; }
.pl-karte b, .pl-karte span, .pl-karte small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-karte b { font-size: 14px; }
.pl-karte span { font-size: 13px; color: var(--leise); }
.pl-karte small { font-size: 12px; color: var(--leise); }
.pl-seite-leer, .pl-tipp { font-size: 13px; color: var(--leise); margin: 8px 0 0; }
.pl-leer { padding: 16px; color: var(--leise); }

/* Hinweisleisten unten: Auswahl beim Antippen, Rückmeldung nach dem Speichern */
.pl-auswahl, .pl-meldung {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 20;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px; max-width: calc(100% - 32px);
  background: var(--header); color: #fff; padding: 10px 16px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}
.pl-meldung.fehler { background: var(--fehler); }
.pl-auswahl .pl-knopf, .pl-meldung button {
  height: 32px; padding: 0 12px; background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 8px; font: inherit; font-size: 14px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center;
}

/* Dialog Einplanen */
.pl-dialog { border: 0; border-radius: 14px; padding: 22px; width: min(460px, calc(100% - 32px)); box-shadow: 0 20px 60px rgba(0, 0, 0, .25); }
.pl-dialog::backdrop { background: rgba(20, 30, 22, .4); }
.pl-dialog h2 { margin: 0 0 2px; }
.pl-dialog-reihe { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pl-dialog .pl-haken { display: flex; align-items: center; gap: 8px; font-weight: normal; }
.pl-dialog .pl-haken input { margin: 0; }
.pl-dialog-knoepfe { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.pl-dialog-knoepfe .knopf { width: auto; padding: 0 18px; height: 38px; }

@media (max-width: 1000px) {
  .pl-bereich { grid-template-columns: minmax(0, 1fr); }
  .pl-seite { position: static; max-height: none; }
}
@media (max-width: 700px) {
  .pl { --namebreite: 118px; }
  .inhalt:has(.pl) { padding: 12px 10px 80px; }
  .pl-avatar { display: none; }
  .pl-titel { font-size: 17px; margin-left: 4px; }
  .pl-legende { display: none; }
}
.pl-meldung .pl-zu { border: 0; font-size: 20px; padding: 0 4px; opacity: .8; }
/* In engen Ansichten: Kundenname darf auf zwei Zeilen umbrechen, Objekt steht im Tooltip */
.ansicht-2wochen .pl-balken { padding: 5px 7px; }
.ansicht-2wochen .pl-balken b { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.2; }
.ansicht-2wochen .pl-balken span { display: none; }

/* Termine aus Outlook im Raster */
.pl { --terminhoehe: 40px; }
.pl .ansicht-monat { --terminhoehe: 20px; }
.pl-kalender { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -4px 0 12px; font-size: 13px; color: var(--leise); }
.pl-knopf-klein { height: 28px; font-size: 13px; padding: 0 10px; }
.pl-testhinweis { background: var(--st-fertig-bg); color: var(--st-fertig-fg); border-radius: 10px; padding: 1px 8px; font-weight: 600; }
.pl-termine { z-index: 1; min-width: 0; margin: 2px 3px 0; display: flex; flex-direction: column; gap: 2px; overflow: hidden; }
.pl-termin {
  display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  font-size: 11px; line-height: 1.45; padding: 0 6px; border-radius: 4px;
  background: repeating-linear-gradient(135deg, var(--divider) 0 4px, var(--surface-sunken) 4px 8px); color: var(--text-muted);
}
.pl-termin b { font-weight: 600; }
.pl-termin.termin-abwesend { background: var(--absence-bg); color: var(--absence-fg); }
.pl-termin.termin-vorlaeufig { background: var(--surface-sunken); border: 1px dashed var(--border-input); line-height: 1.3; }
.pl-termin.termin-woanders { background: var(--st-anfrage-bg); color: var(--st-anfrage-fg); }
.pl-termin-mehr { font-size: 11px; color: var(--leise); padding: 0 6px; }
.ansicht-monat .pl-termin { font-size: 0; padding: 0; height: 6px; }
.ansicht-monat .pl-termine .pl-termin:nth-child(n+2), .ansicht-monat .pl-termin-mehr { display: none; }
.pl-modus-ziel .pl-termine { pointer-events: none; }
.meldung-warning { background: var(--st-fertig-bg); color: var(--st-fertig-fg); }

/* Zusatz-Kennzeichen und Absage */
.marke-zusatz { display: inline-block; font-size: 12px; font-weight: 600; color: var(--st-fertig-fg); background: var(--st-fertig-bg); border-radius: 10px; padding: 0 8px; }
details.absage { display: inline-block; }
details.absage > summary { list-style: none; cursor: pointer; }
details.absage > summary::-webkit-details-marker { display: none; }
details.absage[open] { display: block; flex-basis: 100%; border: 1px solid var(--rahmen); border-radius: 8px; padding: 10px; }
details.absage .formular { margin-top: 10px; }
details.absage select, details.absage input[type="text"] { display: block; width: 100%; padding: 8px; font: inherit; border: 1px solid var(--rahmen); border-radius: 6px; }

/* Stundenzettel */
.sz-titel { margin-bottom: 0; }
.sz-anweisung summary { font-weight: 600; cursor: pointer; }
.sz-anweisung p { margin: 8px 0 0; }
.sz-entwurf { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; background: var(--info-bg); }
.sz-kopf { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0 12px; }
.sz-kopf label { margin-bottom: 0; }
.sz-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.formular .sz-chip { display: inline-flex; align-items: center; margin: 0; padding: 8px 14px; border: 1px solid var(--rahmen); border-radius: 20px; background: var(--surface); font-weight: 600; cursor: pointer; user-select: none; }
.formular .sz-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.formular .sz-chip:has(input:checked) { background: var(--gruen); border-color: var(--gruen); color: #fff; }
.formular .sz-chip-tn:has(input:checked) { background: #3F7A2E; border-color: #3F7A2E; }
.formular .sz-chip:has(input:focus-visible) { outline: 2px solid var(--fokus); outline-offset: 2px; }
.sz-uhr { text-align: center; }
.sz-uhr-anzeige { font-size: 44px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.2; }
.sz-uhr [data-uhr-abschnitte] { min-height: 1.5em; margin-bottom: 8px; }
.sz-uhr-knopf { font-size: 20px; padding: 16px; margin-bottom: 8px; }
.sz-uhr-knopf.laeuft { background: var(--alert-action); }
.sz-tabelle-rahmen { overflow-x: auto; margin: 0 -4px; }
.sz-zeiten { width: 100%; border-collapse: collapse; font-size: 15px; }
.sz-zeiten th, .sz-zeiten td { padding: 3px 2px; text-align: center; }
.sz-zeiten th[scope="row"] { text-align: left; font-weight: 600; min-width: 72px; max-width: 110px; hyphens: auto; padding-right: 6px; font-size: 14px; line-height: 1.25; }
.sz-zeiten thead th { font-size: 13px; color: var(--leise); font-weight: 600; }
.sz-zeiten tbody tr + tr { border-top: 1px solid var(--rahmen); }
.sz-zeiten .sz-alle { background: var(--gruen-hell); }
.sz-zeiten tfoot td, .sz-zeiten tfoot th { border-top: 2px solid var(--text); font-weight: 600; }
.formular.sz .sz-zeiten input { min-width: 40px; margin: 0; padding: 8px 2px; text-align: center; font-size: 16px; }
.sz-reihe { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 8px 0; border-bottom: 1px solid var(--rahmen); }
.sz-reihe:last-child { border-bottom: 0; }
.sz-name { flex: 1 1 120px; font-weight: 600; }
.formular.sz .sz-reihe input[type="number"] { width: 90px; margin: 0; }
.formular.sz .sz-reihe input[type="text"] { flex: 1 1 100%; margin: 0; }
.formular.sz .sz-reihe select { width: auto; margin: 0; }
.formular .sz-haken { display: inline-flex; align-items: center; gap: 4px; margin: 0; font-weight: normal; }
.formular .sz-haken input[type="checkbox"] { margin: 0; }
.sz-einheit { min-width: 30px; color: var(--leise); }
.sz-absenden { position: sticky; bottom: 0; padding: 12px 0; background: linear-gradient(transparent, var(--flaeche) 30%); }
.sz-absenden .knopf { font-size: 18px; padding: 14px; }

/* Korrekturen und Storno */
.marke-korrigiert, .marke-storniert { display: inline-block; font-size: 12px; font-weight: 600; border-radius: 10px; padding: 0 8px; margin-left: 4px; }
.marke-korrigiert { color: var(--link); background: var(--info-bg); }
.marke-storniert { color: var(--fehler); background: var(--fehler-bg); }
.erfassung.storniert .positionen, .erfassung.storniert > p:not(.klein) { text-decoration: line-through; color: var(--leise); }
.erfassung.storniert .fotos { opacity: .5; }
.protokoll { margin: 8px 0; font-size: 15px; }
.protokoll summary { cursor: pointer; color: var(--leise); }
.protokoll-eintrag { border-left: 3px solid var(--st-offen-bd); padding: 4px 0 4px 10px; margin: 8px 0; }
.protokoll-eintrag ul { margin: 4px 0 0; padding-left: 18px; }
.zettel-aktionen { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; margin: 8px 0; }
.zettel-aktionen a { text-decoration: none; }
.sz-begruendung { border-color: var(--st-offen-bd); }

/* Fehlende Stundenzettel */
.zaehler { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 10px; background: var(--fehler); color: #fff; font-size: 12px; font-weight: 700; text-align: center; line-height: 18px; }
.fz-anzahl { display: inline-block; min-width: 26px; padding: 0 8px; border-radius: 12px; background: var(--flaeche); border: 1px solid var(--rahmen); font-size: 15px; text-align: center; }
.fz-zeile { border-top: 1px solid var(--rahmen); padding: 10px 0; }
.fz-zeile:first-of-type { border-top: 0; }
.fz-alter { font-size: 14px; color: var(--leise); }
.fz-alter.alt { color: var(--fehler); font-weight: 600; }
.fz-aktionen { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; }
.fz-aktionen form { margin: 0; }
.fz-aktionen a { text-decoration: none; }
.fz-hell { background: var(--surface-hover); }
.fz-meine { border-color: var(--st-fertig-bd); background: var(--alert-bg); }

/* Abrechnung */
.marke-abgerechnet { display: inline-block; font-size: 12px; font-weight: 600; border-radius: 10px; padding: 0 8px; margin-left: 4px; color: var(--text-muted); background: var(--divider); }
.ab-posten { display: block; color: inherit; text-decoration: none; border-top: 1px solid var(--rahmen); padding: 10px 0; }
.ab-posten:first-child { border-top: 0; }
.ab-posten:hover strong { text-decoration: underline; }
.ab-hinweise { margin: 4px 0 0; padding-left: 18px; font-size: 14px; color: var(--st-fertig-fg); }
.ab-monat { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; margin: 12px 0 0; }
.ab-monat label { margin: 0; font-size: 14px; font-weight: 600; }
.ab-monat input { display: block; padding: 6px; font: inherit; border: 1px solid var(--rahmen); border-radius: 6px; }
.ab-tabelle { width: 100%; border-collapse: collapse; }
.ab-tabelle td, .ab-tabelle th { padding: 6px 4px; border-top: 1px solid var(--rahmen); }
.ab-tabelle tr:first-child td, .ab-tabelle tr:first-child th { border-top: 0; }
.ab-tabelle th { text-align: left; font-size: 14px; color: var(--leise); }
.ab-tabelle td.zahl { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; cursor: copy; }
.ab-tabelle td.zahl.kopiert { background: var(--st-abger-bg); }
.ab-einheit { width: 40px; color: var(--leise); }
.ab-info { opacity: .7; }
.ab-info h2::after { content: " – nur zur Info"; font-size: 14px; font-weight: normal; color: var(--leise); }
.ab-zettel summary { font-weight: 600; cursor: pointer; }
.ab-abschluss { border-color: var(--gruen); }
@media print {
  .nicht-drucken, details.ab-zettel:not([open]) { display: none !important; }
  .ab-abschnitt { break-inside: avoid; }
}

/* Anfragen und Notizen */
.anfrage-alter { color: var(--leise); margin: 0 0 8px; }
.anfrage-alter.ueberfaellig { color: var(--fehler); font-weight: 600; }
.notiz-formular { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; margin-bottom: 8px; }
.notiz-formular textarea { flex: 1 1 240px; }
.formular.notiz-formular textarea { margin: 0; }
.notiz { border-top: 1px solid var(--rahmen); padding: 8px 0; }

/* Meine Woche */
.mw-navi { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.mw-navi a { text-decoration: none; }
.mw-navi select { padding: 4px 6px; font: inherit; border: 1px solid var(--rahmen); border-radius: 6px; }
.mw-tag h2 { font-size: 18px; }
.mw-tag.heute { border: 2px solid var(--gruen); }
.mw-tag.vorbei { opacity: .75; }
.mw-einsatz { border-top: 1px solid var(--rahmen); padding: 10px 0 4px; }
.mw-tag h2 + .mw-einsatz, .mw-termin + .mw-einsatz { border-top: 0; }
.mw-einsatz p { margin: 4px 0; }
.mw-einsatz.ausgefallen > :not(.fz-aktionen) { text-decoration: line-through; color: var(--leise); }
.mw-termin { margin: 4px 0; padding: 2px 8px; border-radius: 4px; font-size: 14px; background: var(--outlook-bg); }
.mw-termin.termin-abwesend { background: var(--fehler-bg); }
.mw-erfasst { color: var(--primary-text); font-weight: 600; }

/* Wochenplan zum Aushang */
.wp-titel { font-size: 20px; }
.wp-tabelle { width: 100%; border-collapse: collapse; table-layout: fixed; background: var(--surface); font-size: 13px; }
.wp-tabelle th, .wp-tabelle td { border: 1px solid var(--border-input); padding: 4px; vertical-align: top; text-align: left; }
.wp-tabelle thead th { background: var(--gruen-hell); font-size: 13px; }
.wp-tabelle thead th span { font-weight: normal; color: var(--leise); }
.wp-tabelle thead th.heute { background: var(--gruen-ziel); }
.wp-tabelle .wp-name { width: 120px; }
.wp-einsatz { margin-bottom: 4px; line-height: 1.25; }
.wp-einsatz + .wp-einsatz { border-top: 1px dashed var(--border-input); padding-top: 3px; }
.wp-einsatz b, .wp-einsatz span, .wp-einsatz small { display: block; overflow-wrap: anywhere; }
.wp-einsatz small { color: var(--leise); }
.wp-termin { font-size: 12px; background: var(--outlook-bg); border-radius: 3px; padding: 0 4px; margin-bottom: 3px; }
.wp-termin.termin-abwesend { background: var(--fehler-bg); font-weight: 600; }
.wp-fuss { font-size: 12px; color: var(--leise); }
@media print {
  .inhalt { max-width: none; padding: 0; }
  .wp .tabelle-rahmen { overflow: visible; }
  .wp-tabelle { font-size: 11px; }
  .wp-tabelle tr { break-inside: avoid; }
  .wp-termin, .wp-tabelle thead th { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.inhalt:has(.wp) { max-width: 1300px; }

/* Tageszeit (vormittags/nachmittags) */
.tageszeit { display: inline-block; font-size: 12px; font-weight: 700; color: var(--link); background: var(--info-bg); border-radius: 4px; padding: 0 5px; vertical-align: 1px; }
.wp-einsatz .tageszeit { display: inline-block; margin-bottom: 1px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.pl-tageszeit { font-weight: 700; }

/* Hinweis „Uhr läuft“ auf allen Seiten */
.laufende-uhr { position: sticky; top: 0; z-index: 50; }
.laufende-uhr-eintrag { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 8px 16px; color: #fff; text-decoration: none; font-size: 15px; }
.laufende-uhr-eintrag.laeuft { background: var(--alert-action); }
.laufende-uhr-eintrag.pausiert { background: var(--st-fertig-bg); color: var(--st-fertig-fg); }
.laufende-uhr-eintrag + .laufende-uhr-eintrag { border-top: 1px solid rgba(255, 255, 255, .4); }
.laufende-uhr-eintrag b { font-variant-numeric: tabular-nums; font-size: 17px; }
.laufende-uhr-eintrag span { overflow-wrap: anywhere; }
.laufende-uhr-weiter { margin-left: auto; font-weight: 600; white-space: nowrap; }
@media print { .laufende-uhr { display: none; } }

/* Zurück-Link oben auf Unterseiten: ruhig, mit Pfeil, große Tippfläche */
.zurueck-zeile { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0 0 8px; }
.zurueck, .zurueck-weiter { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; color: var(--leise); text-decoration: none; font-size: 15px; }
.zurueck::before { content: ""; width: 8px; height: 8px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-right: 2px; }
.zurueck:hover, .zurueck-weiter:hover { color: var(--primary-text); }
.zurueck-weiter::after { content: "›"; font-size: 18px; line-height: 1; }
/* Rechts ausblenden, wenn das Menü breiter als der Bildschirm ist (Hinweis: wischen) */
.kopf-menue.ueberlauf { mask-image: linear-gradient(to right, #000 85%, transparent); -webkit-mask-image: linear-gradient(to right, #000 85%, transparent); }
.kopf-menue.ueberlauf.am-ende { mask-image: none; -webkit-mask-image: none; }

/* --- Prüfbericht 01.10.2026: Fehler, Pflichtfelder, Handy ----------------- */
/* Fehlerhafte Felder deutlich markieren (Django setzt aria-invalid an Feldern mit Fehler) */
.formular [aria-invalid="true"] { border-color: var(--fehler) !important; background-color: var(--fehler-bg) !important; box-shadow: 0 0 0 1px var(--fehler); }
.formular .sz-chip:has(input[aria-invalid="true"]) { border-color: var(--fehler); }
/* Pflichtfelder: Sternchen hinter der Beschriftung */
.formular div:has(> [required]) > label::after { content: " *"; color: var(--fehler); }
/* Haken im Team-Chip: Platz immer freihalten, damit nichts springt */
.formular .sz-chip::before { content: "✓"; margin-right: 6px; visibility: hidden; }
.formular .sz-chip:has(input:checked)::before { visibility: visible; }
/* Lange Wörter (z. B. E-Mail, Objektbezeichnungen) umbrechen statt die Seite zu verbreitern */
.angaben dd, .karte p, .meldung, a.karte.auftrag { overflow-wrap: anywhere; }
/* Am Handy: Angaben untereinander, Knöpfe groß genug für den Finger */
@media (max-width: 500px) {
  .angaben { grid-template-columns: 1fr; gap: 0; }
  .angaben dd { margin-bottom: 8px; }
}
@media (pointer: coarse) {
  .knopf-klein { min-height: 44px; padding: 8px 14px; }
  .pl-knopf-klein { height: 44px; min-width: 44px; }
}
.knopf-anrufen { display: inline-block; margin-top: 8px; }
.kachel-hinweis { display: block; font-size: 13px; color: var(--fehler); font-weight: 600; }
/* Planung: Wochenansicht passt bei 1280 px samt Seitenleiste ganz auf den Schirm (Sonntag nicht abgeschnitten) */
@media (min-width: 1001px) and (max-width: 1440px) {
  .pl { --namebreite: 168px; }
  .pl .ansicht-woche { --spalte: 100px; }
}
/* Feiertage im Raster */
.pl-tagkopf.feiertag, .pl-tag.feiertag { background: var(--st-fertig-bg); }
.pl-tagkopf .pl-feiertag { display: block; font-size: 10px; color: var(--st-fertig-fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Einsatz trifft auf eine Abwesenheit (Urlaub, krank) laut Outlook */
.pl-balken.konflikt { outline: 2px dashed var(--fehler); outline-offset: -2px; }
/* Abrechnung: Summe, Kopieren, Ausdruck */
.ab-summe td { border-top: 2px solid var(--text) !important; color: var(--leise); }
.ab-tabelle td.zahl.nicht-kopiert { background: var(--st-fertig-bg); }
.ab-tabelle td.zahl[data-kopieren]:focus-visible { outline: 2px solid var(--fokus); outline-offset: -2px; }
.nur-drucken { display: none; }
@media print { .nur-drucken { display: block; } }
/* Wochenplan am Handy: nach Tagen untereinander statt der breiten Tabelle (Ausdruck bleibt Tabelle) */
.wp-liste { display: none; }
.wp-liste-tag h2 { font-size: 18px; }
.wp-liste-tag.heute { border: 2px solid var(--gruen); }
.wp-liste-person { padding: 6px 0; border-top: 1px solid var(--rahmen); }
.wp-liste-person:first-of-type { border-top: 0; }
.wp-liste .wp-einsatz { display: block; margin: 2px 0 0; }
.wp-liste .wp-einsatz .tageszeit { display: inline-block; margin-right: 4px; }
@media screen and (max-width: 700px) {
  .wp-liste { display: block; }
  .wp-tabelle-rahmen { display: none; }
}
/* Benutzer bearbeiten: Abschnitte und Standortliste */
.formular-abschnitt { font-size: 18px; margin: 20px 0 8px; padding-top: 12px; border-top: 1px solid var(--rahmen); }
.formular h2.formular-abschnitt:first-of-type { border-top: 0; padding-top: 0; margin-top: 4px; }
.formular ul[id^="id_weitere_standorte"] { list-style: none; padding: 0; margin: 4px 0; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.formular ul[id^="id_weitere_standorte"] label { font-weight: normal; margin: 0; }
/* Fertig gemeldete Aufträge: Balken nur ansehen, nicht ziehen */
.pl-balken[draggable="false"] { cursor: pointer; opacity: .85; }
/* Stundenzettel: Knopf „Gestoppte Zeit für alle eintragen“ */
.sz-uhr-eintragen { background: var(--surface); color: var(--primary-text); border: 2px solid var(--gruen); margin-bottom: 8px; }
/* Stundenzettel in Schritten: Leiste oben, Übersicht am Ende */
.sz-schritte { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin: 0 0 12px; padding: 4px 0;
  position: sticky; top: 0; z-index: 5; background: var(--flaeche); scroll-margin-top: 8px; }
.sz-schritte::-webkit-scrollbar { display: none; }
.sz-schritt-knopf { flex: 1 0 auto; display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px;
  padding: 6px 10px; border: 1px solid var(--rahmen); border-radius: 22px; background: var(--surface); color: var(--text);
  font: inherit; font-size: 14px; cursor: pointer; white-space: nowrap; }
.sz-schritt-knopf span { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px;
  border-radius: 50%; background: var(--divider); font-size: 12px; font-weight: 700; }
.sz-schritt-knopf.erledigt span { background: var(--st-abger-bg); color: var(--primary-text); }
.sz-schritt-knopf.aktiv { background: var(--gruen); border-color: var(--gruen); color: #fff; font-weight: 600; }
.sz-schritt-knopf.aktiv span { background: var(--surface); color: var(--primary-text); }
@media (max-width: 500px) {
  .sz-schritt-knopf { flex: 0 0 auto; }
  .sz-schritt-knopf:not(.aktiv) { font-size: 0; gap: 0; padding: 6px 11px; } /* am Handy nur die Nummer, der aktive mit Namen */
}
.sz-nur-arbeit { max-width: 360px; }
.sz-zusatzarbeit { margin-top: 12px; font-weight: 600; }
.sz-ue-block { border-top: 1px solid var(--rahmen); padding: 10px 0; }
.sz-ue-block:first-child { border-top: 0; padding-top: 0; }
.sz-ue-kopf { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.sz-ue-kopf h3 { margin: 0; }
.sz-ue-block ul { list-style: none; margin: 6px 0 0; padding: 0; }
.sz-ue-block li { display: flex; justify-content: space-between; gap: 12px; padding: 2px 0; }
.sz-ue-block li.sz-ue-text { display: block; }
.sz-ue-block li.sz-ue-text span { display: block; color: var(--leise); font-size: 14px; }
.sz-ue-fotos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.sz-ue-fotos img { width: 96px; height: 96px; object-fit: cover; border-radius: 6px; border: 1px solid var(--rahmen); }
.sz-fertig .sz-haken { display: flex; align-items: center; gap: 8px; font-weight: normal; margin-bottom: 8px; }
.formular .sz-fertig input[type=radio] { display: inline-block; width: 22px; height: 22px; margin: 0; padding: 0; flex: none; }
/* Abrechnung: Leistungsbeschreibung (Arbeitsanweisung und ausgeführte Arbeiten) */
.ab-leistung h3 { margin: 12px 0 4px; }
.ab-anweisung { margin: 0; padding: 8px 10px; background: var(--gruen-hell); border-left: 4px solid var(--gruen); border-radius: 4px; }
.ab-arbeiten { padding: 8px 0; border-top: 1px solid var(--rahmen); }
.ab-arbeiten:first-of-type { border-top: 0; }
.ab-arbeiten p { margin: 2px 0 0; }
.ab-leistungstext { display: block; width: 100%; margin-top: 8px; font: inherit; font-size: 14px; }
.ab-leistungstext[hidden] { display: none; }
@media print { .ab-leistung { break-inside: avoid-page; } .ab-anweisung { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }
/* Abrechnung: Fotos je Stundenzettel als Vorschau (Antippen öffnet groß) */
.ab-fotos { margin-top: 6px; }
.ab-fotos img { width: 88px; height: 88px; object-fit: cover; }
@media print { .ab-fotos img { width: 60px; height: 60px; } }
/* Anfrage: Bemerkung und Besichtigungswunsch gut sichtbar */
.auftrag-bemerkung { margin: 8px 0 12px; overflow-wrap: anywhere; }
.marke-besichtigung { display: inline-block; font-size: 14px; font-weight: 600; padding: 2px 10px; border-radius: 10px; background: var(--st-fertig-bg); color: var(--st-fertig-fg); }
.aktionen-kopf { margin-top: 0; }
/* Suchfeld über langen Auswahllisten (static/js/auswahl.js) */
.formular input.auswahl-suche, input.auswahl-suche { display: block; width: 100%; margin: 4px 0 4px; padding: 8px 10px; font: inherit; font-size: 15px;
  border: 1px solid var(--rahmen); border-radius: 6px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 10px center; padding-left: 34px; }
/* Auftragsformular in Abschnitten */
.formular h2.formular-abschnitt { font-size: 18px; margin: 20px 0 8px; padding-top: 12px; border-top: 1px solid var(--rahmen); }
.formular h2.formular-abschnitt:first-of-type { border-top: 0; padding-top: 0; margin-top: 4px; }
/* --- Planung: Darstellungen, Filter, Optionen ---------------------------------- */
.pl.kompakt { --balkenhoehe: 40px; }
.pl.kompakt .pl-balken span { display: none; }
.pl-suche { height: 34px; padding: 0 10px; border: 1px solid var(--rahmen); border-radius: 8px; font: inherit; font-size: 14px; min-width: 200px; }
.pl-optionen { position: relative; }
.pl-optionen summary { list-style: none; cursor: pointer; }
.pl-optionen summary::-webkit-details-marker { display: none; }
.pl-optionen-inhalt { position: absolute; z-index: 20; top: 40px; left: 0; min-width: 300px; background: var(--surface); border: 1px solid var(--rahmen);
  border-radius: 10px; padding: 10px 12px; box-shadow: 0 6px 20px rgba(0,0,0,.12); }
.pl-optionen-inhalt .pl-haken { display: flex; align-items: center; gap: 8px; font-weight: normal; font-size: 14px; margin: 6px 0; }
.pl-ansicht-merken { display: inline-flex; gap: 6px; margin-left: auto; }
.pl-filterhinweis { font-size: 13px; color: var(--st-fertig-fg); margin: -6px 0 10px; }
.pl-zettel { font-weight: 700; }
/* Aufträge */
.pl-auftrag-tage { padding: 2px 0; }
.pl-zelle { position: relative; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 3px; padding: 4px; min-height: 44px; border-left: 1px solid var(--tageslinie); }
.pl-zelle.we { background: var(--surface-hover); }
.pl-zelle.heute { background: var(--gruen-hell); }
.pl-zelle.ohne-zettel { box-shadow: inset 0 0 0 2px var(--badge); }
.pl-person-marke { display: inline-flex; align-items: center; gap: 2px; height: 26px; padding: 0 7px; border-radius: 13px; font-size: 12px; font-weight: 700;
  text-decoration: none; color: var(--text); background: var(--info-bg); border: 2px solid transparent; }
.pl-person-marke.status-anfrage { background: var(--st-anfrage-bg); }
.pl-person-marke.status-fertig { background: var(--st-fertig-bg); }
.pl-person-marke.helfer { background: var(--surface); border-color: var(--st-offen-bd); }
.pl-person-marke.ausgefallen { opacity: .45; text-decoration: line-through; }
.pl-ohne-zettel { color: var(--alert-action); font-weight: 800; padding: 0 3px; }
.pl-zelle-plus { margin-left: auto; align-self: flex-start; color: var(--leise); text-decoration: none; font-size: 18px; line-height: 22px; padding: 0 4px; opacity: 0; }
.pl-zelle:hover .pl-zelle-plus, .pl-zelle-plus:focus { opacity: 1; }
@media (pointer: coarse) { .pl-zelle-plus { opacity: .6; } }
/* Zeitskala */
.pl-skala-tag { margin-bottom: 18px; }
.pl-skala-titel { font-size: 17px; margin: 0 0 6px; }
.pl-skala-tag.heute .pl-skala-titel { color: var(--primary-text); }
.pl-skala { background: var(--surface); border: 1px solid var(--rahmen); border-radius: 12px; overflow-x: auto; }
.pl-skala-kopf, .pl-skala-zeile { display: grid; grid-template-columns: var(--namebreite) minmax(640px, 1fr); }
.pl-skala-zeile { border-top: 1px solid var(--rahmen); }
.pl-skala-achse { position: relative; height: 26px; }
.pl-skala-achse span { position: absolute; top: 6px; transform: translateX(-50%); font-size: 11px; color: var(--leise); }
.pl-skala-bahn { position: relative; min-height: 52px;
  background-image: repeating-linear-gradient(to right, var(--tageslinie) 0 1px, transparent 1px calc(100% / var(--stunden))); }
.pl.kompakt .pl-skala-bahn { min-height: 36px; }
.pl-skala-termin { position: absolute; top: 3px; bottom: 3px; border-radius: 6px; background: repeating-linear-gradient(45deg, var(--divider) 0 6px, var(--surface-sunken) 6px 12px);
  font-size: 11px; color: var(--text-muted); overflow: hidden; padding: 1px 4px; }
.pl-skala-termin.termin-abwesend { background: repeating-linear-gradient(45deg, var(--absence-bg) 0 6px, var(--fehler-bg) 6px 12px); color: var(--absence-fg); }
.pl-skala-termin span { white-space: nowrap; }
.pl-skala-block { position: absolute; top: 6px; bottom: 6px; z-index: 1; border-radius: 7px; padding: 3px 6px; overflow: hidden; text-decoration: none;
  color: var(--text); background: var(--info-bg); border: 1px solid var(--st-offen-bd); border-left-width: 4px; font-size: 12px; line-height: 1.2; }
.pl-skala-block.status-fertig { background: var(--st-fertig-bg); border-color: var(--badge); }
.pl-skala-block.status-anfrage { background: var(--st-anfrage-bg); border-color: #a5b4fc; }
.pl-skala-block.geschaetzt { border-style: dashed; }
.pl-skala-block.ausgefallen { opacity: .45; text-decoration: line-through; }
.pl-skala-block.konflikt { outline: 2px solid var(--badge); }
.pl-skala-block b, .pl-skala-block small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-feiertag-marke { font-size: 12px; font-weight: 600; color: var(--st-fertig-fg); background: var(--st-fertig-bg); border-radius: 8px; padding: 1px 8px; vertical-align: 2px; }
/* Liste */
.pl-liste-tag.heute { border: 2px solid var(--gruen); }
.pl-liste-tabelle td { vertical-align: top; padding: 6px 4px; }
.pl-liste-tabelle tr.ohne-zettel td { background: var(--alert-bg); }
.pl-liste-person { text-decoration: none; color: var(--text); }
.pl-liste-person.ausgefallen { opacity: .5; text-decoration: line-through; }
@media (max-width: 700px) {
  .pl-suche { min-width: 0; flex: 1 1 100%; }
  .pl-ansicht-merken { margin-left: 0; }
  .pl-optionen-inhalt { position: static; box-shadow: none; margin-top: 6px; }
}
@media print { .pl-filter, .pl-leiste .pl-navi:last-child, .pl-kalender { display: none !important; } }
/* Zeitskala: Termine als Leiste oben, Einsätze darunter – Überschneidungen bleiben sichtbar */
.pl-skala-bahn { min-height: 62px; }
.pl-skala-termin { top: 2px; bottom: auto; height: 16px; line-height: 14px; z-index: 2; }
.pl-skala-block { top: 21px; bottom: 4px; }
.pl.kompakt .pl-skala-bahn { min-height: 46px; }

/* ==========================================================================
   Neues Erscheinungsbild (Design-Handoff 10/2026): Bausteine und Referenzbildschirme
   ========================================================================== */

/* Tippflächen am Handy mindestens 44 px */
@media (pointer: coarse) {
  .knopf, .knopf-zweit, .reiter a, .pl-knopf, .link-knopf { min-height: 44px; }
}
.klein { font-size: var(--fs-tag); }
.abschnitt-titel { font-size: var(--fs-h2); font-weight: 700; margin: 0 0 10px; }
.weiter-link { display: inline-block; margin-top: 4px; font-weight: 700; text-decoration: none; font-size: var(--fs-small); }
.link-knopf { background: none; border: 0; padding: 6px 0; font: inherit; font-size: var(--fs-small); font-weight: 700; color: var(--link); cursor: pointer; text-align: left; }
.link-knopf.leise { color: var(--text-muted); font-weight: 400; }

/* Info-Kasten (z. B. Arbeitsanweisung) */
.info-kasten { background: var(--info-bg); color: var(--info-text); border-radius: 10px; padding: 12px 14px; margin-bottom: 18px; }
.info-kasten h2 { font-size: var(--fs-tag); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--info-title); margin: 0 0 2px; }
.info-kasten p { font-size: var(--fs-small); margin: 0; overflow-wrap: anywhere; }

/* Fußleiste: Hauptaktion fest unten. Sie klebt am unteren Rand, solange ihr Bereich sichtbar ist;
   der Inhalt liegt nie darunter, weil die Leiste selbst im Fluss steht. */
.fussleiste {
  position: sticky; bottom: 0; z-index: 30;
  margin: 22px -18px -22px; padding: 14px 18px max(16px, calc(env(safe-area-inset-bottom) + 12px));
  background: var(--bg); border-top: 1px solid var(--border);
}
.fussleiste .knopf { display: block; width: 100%; font-size: 17px; padding: 15px; border-radius: var(--r-btn); text-align: center; text-decoration: none; }
.fussleiste a.knopf, .fussleiste a.knopf:hover { color: #fff; }
.karte .fussleiste { margin: 18px -16px -16px; padding: 12px 16px max(12px, env(safe-area-inset-bottom));
  background: var(--surface); border-top: 1px solid var(--divider); border-radius: 0 0 var(--r-card) var(--r-card); }

/* Hinweis „fehlt“ (Orange) */
.hinweis-fehlt { background: var(--alert-bg); border-radius: var(--r-card); padding: 16px; margin-bottom: 22px; }
.hinweis-fehlt h2 { font-size: 17px; color: var(--alert-title); margin: 0 0 4px; }
.hinweis-fehlt p { font-size: var(--fs-small); color: var(--alert-text); margin: 0 0 12px; }
.knopf-orange, a.knopf-orange { display: block; min-height: 0; background: var(--alert-action); color: #fff; font-size: 16px; padding: 12px; border-radius: var(--r-input); text-align: center; text-decoration: none; }
a.knopf-orange:hover { color: #fff; }

/* Karten-Listen (Zeilen mit Trennlinie) */
.liste-karte { padding: 0; overflow: hidden; }

/* --- 1a Start ------------------------------------------------------------ */
.start-gruss { margin-bottom: 22px; position: relative; }
/* „+ Neue Anfrage“ klein oben rechts im Gruß (statt in der Fußleiste) */
.start-anfrage { position: absolute; top: 0; right: 0; }
.start-gruss:has(.start-anfrage) .start-datum { padding-right: 150px; }
.start-datum { font-size: var(--fs-small); color: var(--text-muted); margin: 0; }
.start-gruss h1 { font-size: 26px; margin: 0; }
.start-stunden { font-size: var(--fs-xs); color: var(--text-muted); margin: 4px 0 0; }
.start-stunden b { color: var(--text); font-variant-numeric: tabular-nums; }
.start-block { margin-bottom: 22px; }
.start-block .mw-tag { margin-bottom: 8px; }
.einsatz-zeile { display: grid; grid-template-columns: 52px 1fr; gap: 12px; padding: 14px 16px; border-top: 1px solid var(--divider); align-items: start; }
.einsatz-zeile:first-child { border-top: 0; }
.datum-kachel { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 62px; border-radius: var(--r-input);
  background: var(--surface-sunken); line-height: 1.15; }
.datum-kachel span { font-size: var(--fs-micro); color: var(--text-muted); }
.datum-kachel b { font-size: 18px; font-variant-numeric: tabular-nums; }
.einsatz-text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.einsatz-kunde { font-size: 16px; font-weight: 700; color: var(--text); text-decoration: none; overflow-wrap: anywhere; }
.einsatz-kunde:hover { color: var(--link); }
.einsatz-objekt { font-size: var(--fs-xs); color: var(--text-muted); }
.zettel-fehlt { font-size: var(--fs-small); font-weight: 700; color: var(--alert-action); text-decoration: none; padding: 2px 0; }
.zettel-fehlt:hover { color: var(--alert-title); text-decoration: underline; }
.zettel-da { font-size: var(--fs-xs); color: var(--primary-text); }
.anfrage-zeile { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-top: 1px solid var(--divider);
  color: var(--text); text-decoration: none; }
.anfrage-zeile:first-child { border-top: 0; }
.anfrage-zeile:hover { background: var(--surface-hover); color: var(--text); }
.anfrage-text { min-width: 0; display: flex; flex-direction: column; }
.anfrage-text b { font-size: 16px; }
.anfrage-text span { font-size: var(--fs-xs); color: var(--text-muted); overflow-wrap: anywhere; }
a.karte.auftrag:hover { border-color: var(--border-input); box-shadow: 0 2px 8px rgba(0, 0, 0, .06); }

/* --- 1b Stundenzettel ---------------------------------------------------- */
.sz-kopfzeile { display: block; height: auto; padding: 14px 18px 16px; }
.sz-kopfzeile > * { max-width: 684px; margin-left: auto; margin-right: auto; }
.sz-kopf-zurueck { display: block; color: var(--header-muted); text-decoration: none; font-size: var(--fs-xs); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 4px 0; }
.sz-kopf-zurueck:hover { color: #fff; }
.sz-kopfzeile h1 { color: #fff; font-size: 21px; margin-top: 2px; margin-bottom: 12px; }
.sz-fortschritt { display: flex; gap: 4px; }
.sz-segment { flex: 1 1 0; height: 20px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
.sz-segment::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 5px; border-radius: 3px; background: var(--header-step-off); }
.sz-segment.an::before { background: var(--gfh-green-bright); }
.sz-schritt-text { color: var(--header-muted); font-size: var(--fs-xs); margin-top: 6px; margin-bottom: 0; }
.sz-schritt-text b { color: #fff; }
.sz-schritt-text:empty { display: none; }
.sz-kopf { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.sz-kopf:has(> label:only-child) { grid-template-columns: 1fr; max-width: 340px; }
.sz-kopf label { margin-bottom: 14px; }
.sz-uhr { text-align: center; margin: 0 0 22px; padding: 18px 16px 14px; }
.sz-uhr-label { font-size: var(--fs-xs); color: var(--text-muted); margin: 0; }
.sz-uhr-anzeige { font-size: 48px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.15; margin: 6px 0 4px; letter-spacing: .01em; }
.sz-uhr-knopf, .sz-uhr-knopf.laeuft { background: var(--header); font-size: 17px; padding: 14px; margin: 8px 0 6px; }
.sz-uhr-links { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.sz-uhr-links .sz-uhr-eintragen { background: none; border: 0; color: var(--link); margin: 0; }
.sz-uhr-hilfe { text-align: left; margin: 8px 0 0; }
.sz-team-hilfe { margin: -6px 0 10px; }
.sz-team { margin-bottom: 8px; }
.sz-person { display: grid; grid-template-columns: 1fr 112px; align-items: center; gap: 12px; min-height: 56px; padding: 6px 16px; border-top: 1px solid var(--divider); }
.sz-person:first-child, .sz-person[hidden] + .sz-person { border-top: 0; }
.formular .sz-person-haken { display: flex; align-items: center; gap: 14px; margin: 0; font-weight: 400; font-size: 17px; min-height: 44px; cursor: pointer; min-width: 0; }
.sz-person-name { min-width: 0; overflow-wrap: anywhere; }
.sz-person-name small { display: block; font-size: var(--fs-micro); color: var(--text-muted); font-weight: 400; }
.sz-person-name small.sz-tn { display: inline; font-weight: 700; }
.formular .sz-person-haken input[type="checkbox"] {
  appearance: none; -webkit-appearance: none; flex: none; width: 24px; height: 24px; margin: 0; border-radius: 6px;
  border: 2px solid var(--border-input); background: var(--surface); display: grid; place-content: center; cursor: pointer;
}
.formular .sz-person-haken input[type="checkbox"]:checked { background: var(--primary); border-color: var(--primary); }
.formular .sz-person-haken input[type="checkbox"]:checked::after { content: "✓"; color: #fff; font-size: 16px; font-weight: 700; line-height: 1; }
.sz-std { display: flex; align-items: center; gap: 6px; }
.sz-std > span { font-size: var(--fs-xs); color: var(--text-muted); }
.formular.sz .sz-std input { margin: 0; text-align: right; padding: 10px 8px; font-variant-numeric: tabular-nums; }
.sz-person.nicht-dabei .sz-person-name { color: var(--text-muted); }
.sz-person.nicht-dabei .sz-std { visibility: hidden; }
.sz-fuer-alle { background: var(--surface-hover); }
.sz-fuer-alle .sz-person-name b { font-size: var(--fs-small); }
.sz-summe { text-align: right; font-size: var(--fs-xs); color: var(--text-muted); margin: 0 4px 14px; }
.sz-summe b { color: var(--text); font-variant-numeric: tabular-nums; }
/* Fußleiste mit Zurück | Weiter */
.sz-fuss { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; }
.sz-fuss > [hidden] { display: none !important; }
.sz-fuss .knopf-zweit { width: 100%; font-size: 17px; }
.formular:not(.mit-schritten) .sz-fuss > .knopf { grid-column: 1 / -1; }

/* --- 1c Planung ---------------------------------------------------------- */
.inhalt:has(.pl) { padding: 0 24px 80px; }
.pl-werkzeug { margin: 0 -24px 16px; padding: 18px 24px 14px; background: var(--surface); border-bottom: 1px solid var(--border); }
.pl-werkzeug .pl-leiste { display: flex; flex-wrap: wrap; justify-content: flex-start; align-items: center; gap: 12px 14px; margin: 0 0 14px; }
.pl-titel { font-size: 22px; margin: 0 6px 0 0; white-space: nowrap; }
.pl-gruppe { display: inline-flex; border: 1px solid var(--border-input); border-radius: var(--r-input); overflow: hidden; background: var(--surface); }
.pl-gruppe a { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 38px; padding: 0 14px; color: var(--text);
  text-decoration: none; font-size: var(--fs-small); border-left: 1px solid var(--border-input); }
.pl-gruppe a:first-child { border-left: 0; }
.pl-gruppe a:hover { background: var(--surface-sunken); color: var(--text); }
.pl-segment { display: inline-flex; padding: 3px; background: var(--segment); border-radius: var(--r-input); }
.pl-segment a { padding: 6px 13px; border-radius: var(--r-bar); color: var(--text); text-decoration: none; font-size: var(--fs-small); white-space: nowrap; }
.pl-segment a:hover { color: var(--text); background: var(--surface-hover); }
.pl-segment a.aktiv { background: var(--surface); font-weight: 700; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.pl-abstand { flex: 1 1 0; }
.pl-werkzeug .pl-neu { width: auto; height: auto; min-height: 40px; padding: 8px 18px; font-size: 16px; border-radius: var(--r-input); display: inline-flex; align-items: center; text-decoration: none; }
.pl-werkzeug .pl-neu:hover { color: #fff; }
.pl-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin: 0; font-size: var(--fs-xs); }
.pl-filter select, .pl-suche { height: 38px; padding: 0 12px; border: 1px solid var(--border-input); border-radius: var(--r-input); background-color: var(--surface);
  color: var(--text); font: inherit; font-size: var(--fs-xs); white-space: nowrap; }
.pl-suche { width: 240px; min-width: 0; }
.pl-optionen summary { color: var(--link); font-weight: 700; padding: 8px 2px; white-space: nowrap; }
.pl-optionen-knoepfe { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--divider); }
.pl-knopf { border-color: var(--border-input); border-radius: var(--r-input); }
.pl-knopf:hover { border-color: var(--text-muted); color: var(--text); }
.pl-legende { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; font-size: var(--fs-xs); color: var(--text-muted); }
.pl-legende > span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.pl-punkt { width: 12px; height: 12px; border-radius: 3px; display: inline-block; margin: 0; }
.pl-punkt.status-anfrage { background: var(--st-anfrage-bg); border: 1px dashed var(--st-anfrage-bd); }
.pl-punkt.status-offen { background: var(--st-offen-bd); }
.pl-punkt.status-fertig { background: var(--st-fertig-bd); }
.pl-punkt.status-abgerechnet { background: var(--st-abger-bd); }
.pl-filterhinweis { color: var(--alert-action); }
.pl-kalender { margin: 0 0 12px; }

/* Raster: Namen | Tage | Stunden */
.pl { --namebreite: 200px; --summenbreite: 72px; --balkenhoehe: 64px; --terminhoehe: 30px; }
.pl-raster-rahmen { border-radius: var(--r-card); border-color: var(--border); }
.pl-raster { min-width: calc(var(--namebreite) + var(--spalten) * var(--spalte) + var(--summenbreite)); }
.pl-kopf, .pl-zeile { grid-template-columns: var(--namebreite) repeat(var(--spalten), minmax(var(--spalte), 1fr)) var(--summenbreite); }
.pl-auftraege { min-width: calc(var(--namebreite) + var(--spalten) * var(--spalte)); }
.pl-auftraege .pl-kopf, .pl-auftraege .pl-zeile { grid-template-columns: var(--namebreite) repeat(var(--spalten), minmax(var(--spalte), 1fr)); }
.pl-tage { grid-column: 2 / span var(--spalten); }
.pl-ecke { font-size: var(--fs-xs); padding: 12px 14px; display: flex; align-items: center; }
.pl-tagkopf { font-size: var(--fs-xs); color: var(--text-muted); text-align: left; padding: 12px 10px; border-left: 1px solid var(--tageslinie);
  display: flex; flex-wrap: wrap; gap: 0 4px; align-items: baseline; }
.pl-tagkopf span { font-weight: 700; color: var(--text); }
.pl-tagkopf b { display: inline; margin: 0; font-size: var(--fs-xs); font-weight: 400; color: var(--text-muted); width: auto; min-width: 0; padding: 0; border-radius: 0; font-variant-numeric: tabular-nums; }
.pl-tagkopf.heute span { color: var(--primary-text); }
.pl-tagkopf.heute b { background: none; color: var(--primary-text); font-weight: 700; }
.pl-tagkopf .pl-feiertag { flex-basis: 100%; font-weight: 400; }
.pl-summe-kopf { padding: 12px 14px; font-size: var(--fs-xs); color: var(--text-muted); text-align: right; }
.pl-zeile { border-top: 1px solid var(--border); min-height: 98px; }
.pl.kompakt .pl-zeile { min-height: 0; }
.pl-person { align-items: flex-start; padding: 14px; gap: 10px; }
.pl-avatar { width: 32px; height: 32px; background: var(--avatar-bg); color: var(--avatar-fg); font-size: 13px; }
.pl-avatar.aushilfe { background: var(--st-fertig-bg); color: var(--st-fertig-fg); }
.pl-person-text b { font-size: var(--fs-small); }
.pl-person-text small { font-size: var(--fs-tag); color: var(--text-muted); }
.pl-summe { padding: 14px; text-align: right; font-size: var(--fs-small); font-weight: 700; font-variant-numeric: tabular-nums; }
.pl-tag, .pl-tag:first-child { border-left: 1px solid var(--tageslinie); }
.pl-tag:hover { background: var(--gruen-hell); }
.pl-tag.heute { background: var(--gruen-hell); }
.pl-stunden { display: none; }

/* Balken: Statusfarbe + 4 px Rand links */
.pl-balken { margin: 3px 6px; padding: 6px 10px; border-radius: var(--r-bar); border: 0; border-left: 4px solid transparent; line-height: 1.3; }
.pl-balken b { font-size: var(--fs-xs); font-weight: 700; }
.pl-balken small { font-size: var(--fs-micro); opacity: 1; margin-top: 2px; }
.pl-balken.status-anfrage { background: var(--st-anfrage-bg); color: var(--st-anfrage-fg); border-left-color: var(--st-anfrage-bd); }
.pl-balken.status-offen { background: var(--st-offen-bg); color: var(--st-offen-fg); border-left-color: var(--st-offen-bd); }
.pl-balken.status-fertig { background: var(--st-fertig-bg); color: var(--st-fertig-fg); border-left-color: var(--st-fertig-bd); }
.pl-balken.status-abgerechnet { background: var(--st-abger-bg); color: var(--st-abger-fg); border-left-color: var(--st-abger-bd); }
.pl-balken.einsatz-verschoben { border: 1px dashed currentColor; border-left: 4px solid; }
.pl-balken.konflikt { outline: 0; box-shadow: 0 0 0 2px var(--badge); }
.pl-balken.konflikt:hover { box-shadow: 0 0 0 2px var(--badge), 0 3px 10px rgba(0, 0, 0, .12); }
.pl-balken .pl-zettel { font-weight: 400; display: inline; }
.pl-kein-zettel { font-weight: 700; color: var(--alert-action); }
.pl-balken span.pl-kein-zettel, .pl-balken span.pl-tageszeit { display: inline; }
.pl-gewaehlt { outline: 3px solid var(--fokus); }

/* Outlook-Termine oben in der Zeile */
.pl-termin { font-size: var(--fs-micro); line-height: 1.6; padding: 0 8px; border-radius: 4px; background: var(--outlook-bg); color: var(--outlook-fg); }
.pl-termin.termin-abwesend { background: var(--absence-bg); color: var(--absence-fg); }
.pl-termin.termin-vorlaeufig { background: var(--surface); border: 1px dashed var(--border-input); }
.pl-termin.termin-woanders { background: var(--st-offen-bg); color: var(--st-offen-fg); }
.pl-termine { margin: 6px 6px 4px; }
/* Termine nicht zusammenquetschen – sonst schieben sich zwei Termine eines Tages übereinander */
.pl-termin, .pl-termin-mehr { flex-shrink: 0; }

/* Übrige Darstellungen in den neuen Farben */
.pl-person-marke { background: var(--st-offen-bg); color: var(--st-offen-fg); }
.pl-person-marke.status-anfrage { background: var(--st-anfrage-bg); color: var(--st-anfrage-fg); }
.pl-person-marke.status-fertig { background: var(--st-fertig-bg); color: var(--st-fertig-fg); }
.pl-person-marke.status-abgerechnet { background: var(--st-abger-bg); color: var(--st-abger-fg); }
.pl-person-marke.helfer { background: var(--surface); border-color: var(--st-offen-bd); }
.pl-ohne-zettel { color: var(--alert-action); }
.pl-zelle { border-left: 1px solid var(--tageslinie); }
.pl-zelle.ohne-zettel { box-shadow: inset 0 0 0 2px var(--badge); }
.pl-skala-block { background: var(--st-offen-bg); color: var(--st-offen-fg); border-color: var(--st-offen-bd); }
.pl-skala-block.status-fertig { background: var(--st-fertig-bg); color: var(--st-fertig-fg); border-color: var(--st-fertig-bd); }
.pl-skala-block.status-anfrage { background: var(--st-anfrage-bg); color: var(--st-anfrage-fg); border-color: var(--st-anfrage-bd); }
.pl-skala-block.status-abgerechnet { background: var(--st-abger-bg); color: var(--st-abger-fg); border-color: var(--st-abger-bd); }
.pl-skala-block.konflikt { outline: 2px solid var(--badge); }
.pl-skala-termin { background: var(--outlook-bg); color: var(--outlook-fg); }
.pl-skala-termin.termin-abwesend { background: var(--absence-bg); color: var(--absence-fg); }
.pl-karte { border-radius: var(--r-input); }
.pl-karte.status-anfrage { border-left-color: var(--st-anfrage-bd); }
.pl-karte.status-offen { border-left-color: var(--st-offen-bd); }
.pl-seite, .pl-dialog { border-radius: var(--r-card); }

@media (max-width: 1000px) {
  .pl-abstand { display: none; }
  .pl-legende { margin-left: 0; flex-basis: 100%; }
}
@media (max-width: 700px) {
  .inhalt:has(.pl) { padding: 0 10px 80px; }
  .pl-werkzeug { margin: 0 -10px 12px; padding: 14px 10px 12px; }
  .pl-titel { font-size: 18px; flex-basis: 100%; }
  .pl { --namebreite: 118px; --summenbreite: 44px; }
  .pl-suche { width: 100%; }
  .pl-summe, .pl-summe-kopf { padding: 14px 6px; }
}
@media print {
  .pl-werkzeug { margin: 0; padding: 0; border: 0; }
  .pl-filter, .pl-gruppe, .pl-segment, .pl-neu { display: none !important; }
}

/* Übrige Seiten */
.mw-tag.heute, .wp-liste-tag.heute, .pl-liste-tag.heute { border: 2px solid var(--primary); }
.mw-termin { background: var(--outlook-bg); color: var(--outlook-fg); }
.mw-termin.termin-abwesend { background: var(--absence-bg); color: var(--absence-fg); }
.mw-erfasst { color: var(--primary-text); }
.zaehler { background: var(--badge); color: #fff; font-size: var(--fs-micro); font-weight: 700; padding: 1px 7px; border-radius: 10px; line-height: 1.4; min-width: 0; }
.kachel { border-radius: var(--r-card); }
a.kachel:hover, .kachel.aktiv { border-color: var(--primary); }
.fz-meine { border-color: var(--alert-action); background: var(--alert-bg); }
.fz-alter.alt, .kachel-hinweis { color: var(--alert-action); }
.ab-anweisung { background: var(--info-bg); color: var(--info-text); border-left-color: var(--info-title); }
.tageszeit { color: var(--link); }
.laufende-uhr-eintrag.laeuft { background: var(--header); }
.tabelle th { color: var(--text-muted); border-bottom-color: var(--border); }
.tabelle td { border-bottom-color: var(--divider); }
.filterzeile input, .filterzeile select, .ab-monat input, .mw-navi select, details.absage select, details.absage input[type="text"] {
  border-color: var(--border-input); border-radius: var(--r-input); }
.formular input.auswahl-suche, input.auswahl-suche { border-color: var(--border-input); border-radius: var(--r-input); background-color: var(--surface); }
.formular .sz-chip { border-color: var(--border-input); }

/* Anmelden: Logo mit Wortmarke */
.anmelden-logo { display: flex; align-items: center; gap: 12px; margin: 4px 0 22px; color: var(--gfh-navy); }
.anmelden-logo img { width: 56px; height: 56px; }
.wortmarke { display: flex; flex-direction: column; line-height: 1; }
.wortmarke > span { font-size: 30px; letter-spacing: -.02em; }
.wortmarke small { margin-top: 6px; font-size: 9px; font-weight: 700; letter-spacing: .22em; color: var(--gfh-green); }
a.knopf-m365, a.knopf-m365:hover { display: block; text-align: center; text-decoration: none; color: #fff; }

@media print {
  .fussleiste, .kopf-konto, .sz-fortschritt { display: none !important; }
  .sz-kopfzeile { background: none; color: var(--text); }
  .sz-kopfzeile h1 { color: var(--text); }
}
/* Geräte/Material: Name und Feld in einer Zeile */
.sz-name { flex: 1 1 80px; }
.formular.sz .sz-reihe input[type="number"] { width: 84px; }
/* Kacheln der Verwaltungsübersicht in Statusfarben, Filterfelder in normaler Schrift */
.kachel-fertig { background: var(--st-fertig-bg); }
.kachel-anfrage { background: var(--st-anfrage-bg); }
.filterzeile input, .filterzeile select { font-weight: 400; color: var(--text); }
a.knopf-klein, a.knopf-zweit { text-decoration: none; }
.knopf-rahmen { border: 1px solid var(--border-input); color: var(--text); }
.knopf-rahmen:hover { border-color: var(--text-muted); }

/* --- Eigene Fenster und Auswahlfelder statt der Browser-Bedienelemente (meldung.js, auswahl.js) --- */
/* Unsichtbar, aber für Formular und Pflichtfeld-Prüfung weiter vorhanden */
.auswahl-versteckt { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: 0 !important;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); border: 0 !important; opacity: 0; pointer-events: none; }
.formular div:has(> select.auswahl-versteckt), .formular label:has(> select.auswahl-versteckt) { position: relative; }

/* Hinweis- und Rückfragefenster */
.meldung-fenster { border: 0; border-radius: 16px; padding: 22px 20px 18px; width: min(420px, calc(100% - 36px)); background: var(--surface); color: var(--text);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .28); }
.meldung-fenster::backdrop { background: rgba(18, 48, 12, .45); }
.meldung-fenster h2 { font-size: var(--fs-h2); margin: 0 0 6px; }
.meldung-fenster p { font-size: var(--fs-base); line-height: 1.45; margin: 0 0 20px; overflow-wrap: anywhere; }
.meldung-knoepfe { display: grid; gap: 10px; }
.meldung-knoepfe.zwei { grid-template-columns: 1fr 1fr; }
.meldung-knoepfe .knopf, .meldung-knoepfe .knopf-zweit { width: 100%; min-height: 48px; font-size: 16px; }
.knopf-gefahr-voll { background: var(--fehler); }

/* Kurze Auswahllisten als Knöpfe */
.auswahl-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.auswahl-knopf { flex: 1 1 auto; min-height: 48px; padding: 10px 16px; border: 1px solid var(--border-input); border-radius: var(--r-btn);
  background: var(--surface); color: var(--text); font: inherit; font-size: 16px; font-weight: 400; cursor: pointer; text-align: center; }
.auswahl-knopf:hover { border-color: var(--text-muted); }
.auswahl-knopf.an { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 700; }
.auswahl-knopf.an::before { content: "✓ "; }
.auswahl-knoepfe.ungueltig .auswahl-knopf { border-color: var(--fehler); }

/* Foto-Feld */
.formular label.datei-knopf { display: flex; flex-direction: column; align-items: stretch; gap: 6px; margin: 6px 0 0; cursor: pointer; font-weight: 400; position: relative; }
.datei-knopf-text { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 16px; border: 1px dashed var(--border-input);
  border-radius: var(--r-btn); background: var(--surface); color: var(--primary-text); font-size: 16px; font-weight: 700; text-align: center; }
.datei-knopf:hover .datei-knopf-text, .datei-knopf:focus-within .datei-knopf-text { border-color: var(--primary); background: var(--gruen-hell); }
.datei-knopf:focus-within .datei-knopf-text { outline: 3px solid var(--fokus); outline-offset: 2px; }
.datei-stand { font-size: var(--fs-xs); color: var(--text-muted); overflow-wrap: anywhere; }
.datei-knopf.gewaehlt .datei-stand { color: var(--primary-text); font-weight: 700; }
/* Wochenplan nur zum Ansehen (ohne Planungsrecht): keine Seitenleiste, nichts zum Ziehen */
.pl-bereich.ohne-seite { grid-template-columns: minmax(0, 1fr); }
.nur-lesen .pl-balken, .nur-lesen .pl-balken[draggable="false"] { cursor: pointer; opacity: 1; }
.nur-lesen .pl-tag:hover { background: transparent; }
.nur-lesen .pl-tag.heute:hover { background: var(--gruen-hell); }

/* --- Felder im App-Design: Auswahllisten, Haken, Optionsfelder, Zahlen, Hinweise (auswahl.js) --- */
/* Auswahlliste: eigener Pfeil, öffnet das Auswahlfenster */
select:not([multiple]) {
  -webkit-appearance: none; appearance: none; padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235B6458' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 14px;
}
.auswahl-feld { position: relative; display: block; }
.formular .auswahl-feld { margin-top: 6px; }
.formular .auswahl-feld > select { margin-top: 0; }
.pl-filter .auswahl-feld, .mw-navi .auswahl-feld, .filterzeile .auswahl-feld, .ab-monat .auswahl-feld { display: inline-block; }
.auswahl-feld > select { pointer-events: none; }
.auswahl-oeffnen { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; background: transparent;
  border-radius: var(--r-input); cursor: pointer; }
.auswahl-oeffnen:hover + select, .auswahl-feld:hover > select { border-color: var(--text-muted); }
.auswahl-feld.ungueltig > select { border-color: var(--fehler); }

/* Haken und Optionsfelder überall wie im Stundenzettel: 24 px, grün mit weißem ✓ */
input[type="checkbox"], input[type="radio"] {
  -webkit-appearance: none; appearance: none; flex: none; width: 24px; height: 24px; margin-top: 0; margin-bottom: 0;
  border: 2px solid var(--border-input); background: var(--surface); display: inline-grid; place-content: center;
  vertical-align: middle; cursor: pointer; transition: background .1s, border-color .1s;
}
input[type="checkbox"] { border-radius: 6px; }
input[type="radio"] { border-radius: 50%; }
input[type="checkbox"]:hover, input[type="radio"]:hover { border-color: var(--text-muted); }
input[type="checkbox"]:checked { background: var(--primary); border-color: var(--primary); }
input[type="checkbox"]:checked::after { content: "✓"; color: #fff; font-size: 16px; font-weight: 700; line-height: 1; }
input[type="radio"]:checked { border-color: var(--primary); }
input[type="radio"]:checked::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--primary); }
input[type="checkbox"]:disabled, input[type="radio"]:disabled { opacity: .5; cursor: default; }
input[type="checkbox"][aria-invalid="true"], input[type="radio"][aria-invalid="true"] { border-color: var(--fehler); }
.pl-haken, .sz-haken, .formular .pl-haken { gap: 10px; }

/* Zahlenfelder ohne Pfeile, Suchfelder einheitlich */
input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input[type="search"] { -webkit-appearance: none; appearance: none; }

/* Hinweis bei fehlenden oder falschen Angaben */
.feld-hinweis { display: flex; align-items: center; gap: 6px; margin: 6px 0 0; color: var(--fehler); font-size: var(--fs-xs); font-weight: 700; }
.feld-hinweis::before { content: "!"; display: inline-grid; place-content: center; width: 18px; height: 18px; border-radius: 50%;
  background: var(--fehler); color: #fff; font-size: 12px; flex: none; }


/* --- Weniger Fenster: Aufklappliste unter dem Feld, Hinweis-Meldung unten (auswahl.js, meldung.js) --- */
/* Aufklappliste: gleicher Kasten wie „Optionen“ im Wochenplan, direkt unter dem Feld */
.auswahl-feld.offen { z-index: 40; }
.auswahl-feld.offen > select { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.aufklappliste { position: absolute; z-index: 40; left: 0; top: calc(100% + 4px); width: max(100%, 260px); max-width: calc(100vw - 20px);
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 6px 20px rgba(0, 0, 0, .14);
  display: flex; flex-direction: column; overflow: hidden; text-align: left; font-weight: 400; }
.aufklappliste.nach-oben { top: auto; bottom: calc(100% + 4px); }
.aufklappliste-suche { margin: 8px; padding: 9px 10px 9px 34px; font: inherit; font-size: 16px; border: 1px solid var(--border-input);
  border-radius: var(--r-input); -webkit-appearance: none; appearance: none;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235B6458' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 10px center; }
.aufklappliste-eintraege { max-height: 280px; overflow-y: auto; overscroll-behavior: contain; }
.aufklappliste-suche + .aufklappliste-eintraege { border-top: 1px solid var(--divider); }
.aufklappliste .auswahl-eintrag { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 44px;
  padding: 10px 14px; border: 0; border-bottom: 1px solid var(--divider); background: var(--surface); color: var(--text);
  font: inherit; font-size: var(--fs-small); text-align: left; cursor: pointer; }
.aufklappliste .auswahl-eintrag:last-child { border-bottom: 0; }
.aufklappliste .auswahl-eintrag:hover, .aufklappliste .auswahl-eintrag:focus-visible { background: var(--surface-sunken); outline: 0; }
.aufklappliste .auswahl-eintrag.an { background: var(--gruen-hell); color: var(--primary-text); font-weight: 700; }
.aufklappliste .auswahl-eintrag.an::after { content: "✓"; font-size: 16px; }
.aufklappliste .auswahl-eintrag.leer-wert { color: var(--text-muted); }
.aufklappliste .auswahl-eintrag[hidden] { display: none; }
.aufklappliste .auswahl-eintrag:disabled { color: var(--text-muted); cursor: default; }
.aufklappliste-leer { margin: 0; padding: 12px 14px; color: var(--text-muted); font-size: var(--fs-small); }
/* Felder im Wochenplan-Filter liegen in einer Zeile: Liste nicht abschneiden */
.pl-werkzeug, .pl-filter { overflow: visible; }

/* Hinweis-Meldung unten (verschwindet von selbst) */
.hinweis-leiste { position: fixed; z-index: 70; left: 50%; bottom: max(96px, calc(env(safe-area-inset-bottom) + 90px)); transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px; width: max-content; max-width: calc(100% - 32px);
  padding: 12px 10px 12px 16px; background: var(--header); color: #fff; border-radius: var(--r-card); box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.hinweis-leiste p { margin: 0; font-size: var(--fs-small); }
.hinweis-leiste button { flex: none; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .15); color: #fff;
  font-size: 22px; line-height: 1; cursor: pointer; }

/* Team zum Einplanen ankreuzen (_team_auswahl.html): je Person Rolle und Stundenzettel */
.team-auswahl { border: 0; padding: 0; margin: 0 0 14px; }
.team-auswahl legend { font-weight: 700; font-size: var(--fs-small); padding: 0; margin-bottom: 2px; }
.team-auswahl .pflicht { color: var(--fehler); }
.team-liste { border: 1px solid var(--border); border-radius: var(--r-card); background: var(--surface); max-height: 340px; overflow-y: auto; margin-top: 6px; }
.team-zeile { padding: 8px 12px; border-top: 1px solid var(--divider); }
.team-zeile:first-child { border-top: 0; }
.formular .team-name { display: flex; align-items: center; gap: 12px; margin: 0; font-weight: 400; font-size: 16px; min-height: 40px; cursor: pointer; }
.formular .team-name input[type="checkbox"] { margin: 0; }
.team-name small { display: block; font-size: var(--fs-micro); color: var(--text-muted); }
.team-extra { display: none; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 6px 0 4px 36px; }
.team-zeile:has(input[type="checkbox"]:checked) { background: var(--gruen-hell); }
.team-zeile:has(input[type="checkbox"]:checked) .team-extra { display: flex; }
.team-extra .auswahl-feld, .team-extra .auswahl-knoepfe { flex: 0 1 260px; margin: 0; }
.team-extra .auswahl-knopf { min-height: 40px; padding: 6px 12px; font-size: var(--fs-small); }
.formular .team-zettel, .formular .team-zettel-auto { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 400; font-size: var(--fs-small); cursor: pointer; }
.formular .team-zettel-auto { margin-top: 8px; }
.team-zettel input, .team-zettel-auto input { margin: 0; }
.team-auswahl .auswahl-suche { margin-top: 6px; }
.pl-dialog .team-liste { max-height: 220px; }

/* Balken am Rand ziehen (verlängern/kürzen): Griffe links und rechts im Balken */
.pl-balken { position: relative; }
.pl-griff { position: absolute; top: 0; bottom: 0; width: 12px; z-index: 2; cursor: ew-resize; touch-action: none; }
.pl-griff.anfang { left: -4px; }
.pl-griff.ende { right: 0; }
.pl-griff::after { content: ""; position: absolute; top: 50%; transform: translateY(-50%); width: 4px; height: 22px; border-radius: 2px; background: currentColor; opacity: 0; transition: opacity .15s; }
.pl-griff.anfang::after { left: 5px; }
.pl-griff.ende::after { right: 3px; }
.pl-balken:hover .pl-griff::after, .pl-dehnt .pl-griff::after { opacity: .35; }
.pl-griff:hover::after { opacity: .7 !important; }
.pl-dehnt { box-shadow: 0 0 0 2px var(--fokus), 0 6px 16px rgba(0, 0, 0, .15) !important; z-index: 5; transition: none; }
@media (pointer: coarse) { .pl-griff { width: 20px; } .pl-griff::after { opacity: .3; } }

/* --- Fortschreibung und Verlauf: bewusst anders als Angaben und Eingabefelder --------------
   Kleine, kursive, graue Schrift mit Uhr-Zeichen; Verlauf als Zeitleiste mit Linie und Punkten */
.fortschreibung { color: var(--text-muted); font-size: var(--fs-xs); font-style: italic; }
.fortschreibung::before { content: "🕓 "; font-style: normal; }
.fortschreibung-kopf { display: flex; flex-wrap: wrap; gap: 2px 14px; margin: -4px 0 12px; }
.fortschreibung-kopf::before { content: none; }
.fortschreibung-kopf span::before { content: "🕓 "; font-style: normal; }
.fortschreibung-kopf a, .fortschreibung-feld a { color: var(--text-muted); }
.fortschreibung-feld { display: block; margin-top: 4px; }

.zeitleiste { list-style: none; margin: 0; padding: 0 0 0 4px; }
.zl-eintrag { position: relative; padding: 0 0 14px 22px; border-left: 2px solid var(--divider); margin-left: 6px; }
.zl-eintrag:last-child { border-left-color: transparent; padding-bottom: 0; }
.zl-eintrag::before { content: ""; position: absolute; left: -7px; top: 3px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--border-input); }
.zl-angelegt::before, .zl-zusage::before { border-color: var(--primary); background: var(--primary); }
.zl-aenderung::before { border-color: var(--st-offen-bd); background: var(--st-offen-bg); }
.zl-status::before { border-color: var(--st-fertig-bd); background: var(--st-fertig-bg); }
.zl-abrechnung::before { border-color: var(--st-abger-bd); background: var(--st-abger-bg); }
.zl-absage::before { border-color: var(--fehler); background: var(--fehler-bg); }
.zl-zettel::before { border-color: var(--text-muted); }
.zl-kopf { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; }
.zl-titel { font-size: var(--fs-small); font-weight: 700; }
.zl-wann { font-size: var(--fs-xs); color: var(--text-muted); font-variant-numeric: tabular-nums; }
.zl-text { margin: 2px 0 0; font-size: var(--fs-xs); color: var(--text-muted); overflow-wrap: anywhere; }
.zl-details { margin-top: 4px; font-size: var(--fs-xs); }
.zl-details summary { cursor: pointer; color: var(--link); font-weight: 700; width: max-content; }
.zl-aenderungen { margin: 6px 0 0; display: grid; grid-template-columns: max-content 1fr; gap: 6px 12px; }
.zl-aenderungen dt { color: var(--text-muted); font-weight: 700; }
.zl-aenderungen dd { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; overflow-wrap: anywhere; }
.zl-aenderungen dd.zl-lang { flex-direction: column; }
.zl-aenderungen del { background: var(--fehler-bg); color: var(--fehler); text-decoration: line-through; border-radius: 4px; padding: 1px 6px; }
.zl-aenderungen ins { background: var(--st-abger-bg); color: var(--st-abger-fg); text-decoration: none; border-radius: 4px; padding: 1px 6px; }
.zl-aenderungen dd.zl-lang del, .zl-aenderungen dd.zl-lang ins { display: block; padding: 6px 8px; }
@media (max-width: 500px) { .zl-aenderungen { grid-template-columns: 1fr; gap: 2px; } .zl-aenderungen dd { margin-bottom: 6px; } }
@media print { .zl-details:not([open]) .zl-aenderungen { display: none; } }

/* Verlaufsfeld (templates/historie/_verlauf.html): zugeklappt nur der letzte Bearbeitungsstand */
.verlauf { margin: 10px 0 0; }
.verlauf > summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px;
  list-style: none; cursor: pointer; padding: 8px 12px; border-radius: var(--r-input); background: var(--surface-sunken);
  color: var(--text-muted); font-size: var(--fs-xs); font-style: italic; }
.verlauf > summary::-webkit-details-marker { display: none; }
.verlauf > summary:hover { background: var(--segment); }
.verlauf-stand::before { content: "🕓 "; font-style: normal; }
.verlauf-mehr { font-style: normal; font-weight: 700; color: var(--link); white-space: nowrap; }
.verlauf-mehr::after { content: " ▾"; }
.verlauf[open] .verlauf-mehr::after { content: " ▴"; }
.verlauf[open] > summary { margin-bottom: 14px; }
.verlauf-karte { padding: 12px 16px; }
.verlauf-karte .verlauf { margin: 0; }
.erfassung .verlauf > summary { background: transparent; padding: 4px 0; }
.kachel-zusatz { display: block; font-size: 13px; color: var(--text-muted); font-weight: 400; }

/* Kontomenü und PC-Kopf: Verweise (Benachrichtigungen, Einführung) */
.kopf-konto-link { display: block; margin: 0 0 10px; font-weight: 700; text-decoration: none; }

/* Profil → Benachrichtigungen */
.push-status { font-weight: 700; }
.push-geraete { list-style: none; margin: 0 0 14px; padding: 0; }
.push-geraete li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0;
  border-top: 1px solid var(--divider); }
.push-geraete form { margin: 0; flex: none; }

/* Stundenzettel/Material: Preis bei „vor Ort gekauft“, weitere Zeilen */
.formular .sz-preis { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-weight: normal; font-size: var(--fs-small); }
.formular.sz .sz-preis input[type="number"] { width: 100px; }
.sz-mehr { margin-top: 10px; }
/* --- Einführung (templates/einfuehrung.html) --- */
.sz-fuss:has(> .knopf-zweit[hidden]) > .knopf { grid-column: 1 / -1; }
.ef-schritt { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); padding: 20px 18px; }
.ef-titel { font-size: 22px; margin: 0 0 10px; }
.ef-bild { font-size: 56px; line-height: 1; text-align: center; margin: 4px 0 14px; }
.ef-bild img { width: 72px; height: 72px; }
.ef-schritt h3 { margin: 18px 0 6px; }
.ef-liste { padding-left: 20px; margin: 8px 0; }
.ef-liste li { margin: 6px 0; }
.ef-liste.ef-haken { list-style: none; padding-left: 0; }
.ef-liste.ef-haken li { padding-left: 28px; position: relative; }
.ef-liste.ef-haken li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 6px;
  background: var(--primary); color: #fff; font-size: 13px; font-weight: 700; display: grid; place-content: center; }
.ef-anleitung { padding-left: 0; margin: 12px 0; list-style: none; counter-reset: schritt; }
.ef-anleitung li { counter-increment: schritt; position: relative; padding: 10px 0 10px 40px; border-top: 1px solid var(--divider); }
.ef-anleitung li:first-child { border-top: 0; }
.ef-anleitung li::before { content: counter(schritt); position: absolute; left: 0; top: 9px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--header); color: #fff; font-weight: 700; font-size: 14px; display: grid; place-content: center; }
.ef-anleitung .leise { display: block; margin-top: 4px; }
.ef-symbol { display: inline-flex; vertical-align: -4px; color: var(--link); }
.ef-reiter { display: inline-flex; flex-wrap: wrap; padding: 3px; background: var(--segment); border-radius: var(--r-input); margin: 6px 0 4px; }
.ef-reiter button { border: 0; background: none; font: inherit; font-size: var(--fs-small); padding: 8px 14px; border-radius: var(--r-bar); cursor: pointer; color: var(--text); min-height: 40px; }
.ef-reiter button.aktiv { background: var(--surface); font-weight: 700; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.ef-wichtig { margin-top: 10px; }
.ef-installiert { margin: 8px 0; }
.ef-beispiel { border: 1px dashed var(--border-input); border-radius: var(--r-input); overflow: hidden; margin: 12px 0; }
.ef-beispiel .offline-hinweis { border-bottom: 0; }
.ef-ueberspringen { text-align: center; margin: 14px 0 0; }
.einfuehrung .fussleiste { margin-top: 18px; }

/* Navigation zur Adresse (templates/auftraege/_navigation.html, js/navi.js) */
.kontakt-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; }
.kontakt-knoepfe .knopf-anrufen { margin-top: 0; }
.navi { position: relative; display: inline-flex; gap: 2px; }
.navi .navi-wahl { padding-left: 10px; padding-right: 10px; }
.navi-liste { width: 280px; }
.navi-titel { padding: 10px 14px; font-size: var(--fs-xs); color: var(--text-muted); border-bottom: 1px solid var(--divider); }

/* Verwaltung → Geräte im Stundenzettel: Reihenfolge je Standort */
.reihenfolge { list-style: none; margin: 0; padding: 0; counter-reset: platz; }
.reihenfolge-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 10px 0; border-top: 1px solid var(--divider); }
.reihenfolge-zeile:first-child { border-top: 0; }
.reihenfolge-zeile .sz-haken { flex: 1 1 160px; }
.reihenfolge-zeile.aus .sz-haken { color: var(--text-muted); text-decoration: line-through; }
.reihenfolge-knoepfe { display: inline-flex; gap: 4px; margin-left: auto; }

/* Auftragsseite: Schnellaktionen oben, Büro-Angaben zugeklappt */
.kontakt-knoepfe { align-items: center; margin: 12px 0; }
.weitere-angaben { margin: 4px 0 12px; }
.weitere-angaben > summary { display: flex; align-items: center; min-height: 44px; cursor: pointer; color: var(--link);
  font-size: var(--fs-small); }
.weitere-angaben .angaben { margin-top: 4px; }

/* Kleiner oranger Knopf („Nachtragen“ in Meine Woche) */
a.knopf-klein.knopf-orange { display: inline-flex; align-items: center; padding: 6px 12px; font-size: var(--fs-xs); font-weight: 700; }

/* Wochenplan am Handy: Filter hinter „Filter ▾“ (planung.js setzt .einklappbar) */
.pl-filter.einklappbar:not(.offen) > :not(.pl-filter-schalter):not([type="hidden"]) { display: none; }

/* Tippflächen am Handy mindestens 44 px hoch (auch mit Arbeitshandschuhen gut zu treffen) */
@media (pointer: coarse) {
  .knopf-klein, .weiter-link, .tel-link, .kopf-konto-link, .zurueck, .zurueck-weiter, .sz-mehr,
  .pl-gruppe a, .pl-segment a, .pl-knopf, .pl-optionen > summary {
    min-height: 44px; display: inline-flex; align-items: center;
  }
  .verlauf > summary { min-height: 44px; }
  .kopf-konto-link { display: flex; margin-bottom: 4px; }
  .sz-kopf-zurueck { padding: 12px 0; }
  .formular .sz-haken { min-height: 44px; }
  .formular .sz-haken input[type="checkbox"] { width: 24px; height: 24px; }
}

/* Zwei Felder nebeneinander (z. B. Wunschzeitraum von – bis) */
.formular-paar { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }

/* Wochenplan „Liste“ am Handy: je Auftrag ein Block statt breiter Tabelle (sonst seitliches Wischen) */
@media (max-width: 700px) {
  .pl-liste-tabelle, .pl-liste-tabelle tbody, .pl-liste-tabelle tr, .pl-liste-tabelle td { display: block; width: auto; min-width: 0; }
  .pl-liste-tabelle thead { display: none; }
  .pl-liste-tabelle tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 10px 0; border-top: 1px solid var(--divider); }
  .pl-liste-tabelle tr:first-child { border-top: 0; }
  .pl-liste-tabelle td { padding: 0; border: 0; }
  .pl-liste-tabelle td:nth-child(1) { grid-column: 1 / -1; order: 0; font-size: var(--fs-xs); }
  .pl-liste-tabelle td:nth-child(2) { grid-column: 1; order: 1; }
  .pl-liste-tabelle td:nth-child(4) { grid-column: 2; order: 2; }
  .pl-liste-tabelle td:nth-child(3) { grid-column: 1 / -1; order: 3; }
}

/* Such-/Filterzeilen am Handy hinter „Suche und Filter ▾“ (base.html setzt .einklappbar) */
.filterzeile.einklappbar:not(.offen) > :not(.filter-schalter) { display: none; }
.filterzeile .filter-schalter { width: 100%; justify-content: space-between; }

/* Auftragsübersicht: Nummer nicht umbrechen; Kacheln gleichmäßig */
.ta-nummer { white-space: nowrap; }
@media (min-width: 701px) {
  .kacheln { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1100px) {
  .kacheln { grid-template-columns: repeat(6, 1fr); }
}
/* Auftragsübersicht am Handy: je Auftrag eine Karte mit Status (statt breiter Tabelle) */
@media (max-width: 700px) {
  .tabelle-auftraege, .tabelle-auftraege tbody, .tabelle-auftraege tr, .tabelle-auftraege td { display: block; min-width: 0; width: auto; }
  .tabelle-auftraege thead { display: none; }
  .tabelle-auftraege tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 12px; border-top: 1px solid var(--divider); }
  .tabelle-auftraege tr:first-child { border-top: 0; }
  .tabelle-auftraege td { padding: 0; border: 0; }
  .tabelle-auftraege .ta-kunde { grid-column: 1; grid-row: 1; font-weight: 700; }
  .tabelle-auftraege .ta-status { grid-column: 2; grid-row: 1 / span 2; text-align: right; }
  .tabelle-auftraege .ta-nummer, .tabelle-auftraege .ta-art, .tabelle-auftraege .ta-standort,
  .tabelle-auftraege .ta-stunden, .tabelle-auftraege .ta-letzter { grid-column: 1; font-size: var(--fs-xs); color: var(--text-muted); text-align: left; }
  .tabelle-auftraege .ta-nummer a { color: inherit; }
  .tabelle-auftraege .ta-letzter::before { content: "Letzter Einsatz: "; }
  .tabelle-auftraege .ta-stunden::before { content: "Stunden: "; }
  .tabelle-rahmen:has(.tabelle-auftraege) { overflow-x: visible; }
}

/* Wochenplan am Handy: Zeitraum/Darstellung im Filterbereich (planung.js), Liste ohne leere Zeit */
@media (max-width: 700px) {
  .pl-filter.einklappbar.offen .pl-segment { display: inline-flex; margin: 0 0 6px; }
  .pl-filter-schalter { margin-left: auto; }
  .pl-liste-tabelle td:empty { display: none; }
}

/* Weitere Tippflächen am Handy: Such-/Filterfelder, Zurücksetzen, aufklappbare Bereiche, „+ Einplanen“ */
@media (pointer: coarse) {
  .filterzeile input, .filterzeile select, .filterzeile .knopf-zweit, .filterzeile a,
  .pl-suche, .pl-filter select, .pl-neu { min-height: 44px; }
  .filterzeile a { display: inline-flex; align-items: center; }
  details > summary { min-height: 44px; }
  details:not(.verlauf):not(.weitere-angaben):not(.formular-mehr) > summary { display: flex; align-items: center; }
}

/* Einplanen: unter der Personenliste Platz lassen, damit die feste Speichern-Leiste nichts verdeckt */
.formular .team-liste { margin-bottom: 20px; }
.formular:has(.team-liste) { padding-bottom: 24px; }

/* Zeilen, die als Ganzes zu einer Seite führen: Pfeil rechts */
.ab-posten { position: relative; padding-right: 24px; }
.ab-posten::after { content: "›"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--text-muted); }
.ab-sprung[hidden] { display: none; }

/* Verwaltungslisten am Handy: je Eintrag ein Block, weitere Spalten klein darunter */
@media (max-width: 700px) {
  .tabelle-verwaltung, .tabelle-verwaltung tbody, .tabelle-verwaltung tr, .tabelle-verwaltung td { display: block; min-width: 0; width: auto; }
  .tabelle-verwaltung thead { display: none; }
  .tabelle-verwaltung tr { padding: 10px 12px; border-top: 1px solid var(--divider); }
  .tabelle-verwaltung tr:first-child { border-top: 0; }
  .tabelle-verwaltung td { padding: 0; border: 0; font-size: var(--fs-xs); color: var(--text-muted); }
  .tabelle-verwaltung td:first-child { font-size: var(--fs-body, 17px); color: var(--text); font-weight: 700; }
  .tabelle-verwaltung td[data-spalte]::before { content: attr(data-spalte) ": "; }
  .tabelle-verwaltung td:empty { display: none; }
  .tabelle-verwaltung .zeilen-link { display: flex; justify-content: space-between; align-items: center; min-height: 44px; }
  .tabelle-verwaltung .zeilen-link::after { content: "›"; font-size: 22px; color: var(--text-muted); font-weight: 400; }
  .tabelle-rahmen:has(.tabelle-verwaltung) { overflow-x: visible; }
}

.nowrap { white-space: nowrap; }
.ab-noch-nicht { margin: 0 4px 16px; }
.formular .auswahl-fest { margin: 4px 0 8px; font-weight: 700; }

/* Einzelne Haken in Formularen (z. B. „Aktiv“): Haken vor der Beschriftung, Hinweis darunter */
.formular div:has(> input[type="checkbox"]:only-of-type) { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.formular div:has(> input[type="checkbox"]:only-of-type) > input[type="checkbox"] { order: -1; margin: 0; }
.formular div:has(> input[type="checkbox"]:only-of-type) > .helptext,
.formular div:has(> input[type="checkbox"]:only-of-type) > .errorlist { flex-basis: 100%; order: 2; }

/* Fahrzeuge und Geräte (Inventar) in Planung, Meine Woche, Wochenplan und Stundenzettel */
.pl-inventar { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pl-inventar-wahl { margin: 4px 0; }
.pl-inventar-wahl summary { cursor: pointer; font-weight: 600; padding: 4px 0; }
.pl-inventar-wahl .pl-haken[hidden] { display: none; }
.inventar-liste { display: grid; gap: 4px; margin-bottom: 8px; }
.inventar-belegt { background: var(--alert-bg); border-radius: 4px; padding: 0 6px; }
.wp-inventar { display: block; color: var(--leise); }
.sz-eingeplant .sz-name { font-weight: 600; }
.sz-marke { background: var(--st-offen-bg); color: var(--st-offen-fg); border-radius: 4px; padding: 0 6px; font-weight: 600; }
.sz-eingeplant-hinweis { margin-bottom: 8px; }

/* Fuhrpark: Ampel wie in der Excel-Mappe (rot, gelb, grün, grau) */
.fp-status { display: inline-block; font-size: var(--fs-tag); font-weight: 700; line-height: 1.4; padding: 1px 10px; border-radius: var(--r-pill); white-space: nowrap; }
.fp-ueberfaellig { background: #F8CBAD; color: #9C0006; }
.fp-bald { background: #FFE699; color: #7F6000; }
.fp-ok { background: #C6EFCE; color: #006100; }
.fp-kein { background: #D9D9D9; color: #404040; }
.fp-ohne { background: transparent; color: var(--leise); font-weight: 400; }
.fp-kachel-ueberfaellig .zahl-gross { color: var(--fehler); }
.fp-kachel-bald .zahl-gross { color: var(--st-fertig-fg); }
.fp-rueckschritt { color: var(--fehler); font-weight: 700; }
.fp-neu { margin: 8px 0 12px; }
.fp-neu summary { display: inline-block; cursor: pointer; }
.fp-zaehler-form { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: flex-end; }
.fp-zaehler-zeile { display: flex; justify-content: space-between; align-items: center; gap: 8px; }

/* Fotos markieren und Skizzen (zeichnen.js) */
.zeichnen-bereich { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; margin-top: 8px; }
.zeichnen-foto { display: grid; gap: 4px; justify-items: center; width: 110px; }
.zeichnen-foto img { width: 110px; height: 82px; object-fit: cover; border-radius: 6px; border: 1px solid var(--rahmen); }
.zeichnen-dialog { width: min(96vw, 1000px); max-height: 96vh; padding: 10px; border: 0; border-radius: var(--r-card); }
.zeichnen-dialog::backdrop { background: rgba(0, 0, 0, .6); }
.zeichnen-dialog canvas { display: block; width: 100%; height: auto; max-height: calc(96vh - 80px); object-fit: contain;
  touch-action: none; background: #fff; border-radius: 6px; }
.zeichnen-leiste { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.zeichnen-platz { flex: 1; }
.zeichnen-farbe { width: 36px; height: 36px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--rahmen); cursor: pointer; }
.zeichnen-farbe.aktiv { box-shadow: 0 0 0 3px var(--gruen); }

/* Dokumente am Auftrag, Terminmail-Hinweis, Auswertung */
.dokumente { list-style: none; padding: 0; margin: 0 0 8px; }
.dokumente li { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--rahmen); }
.dokumente li form { margin-left: auto; }
.dokument-neu summary { display: inline-block; cursor: pointer; }
.terminmail-info { margin: -4px 0 12px; }
.aw-auffaellig td { background: var(--alert-bg); }
.aw-raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }

/* Auftragsübersicht (Büro-Ansicht): kompakte Tabelle, Gruppen als einklappbare Zwischenzeilen,
   rechts ein Detailbereich (ab 1100 px, buero.js). Am Handy werden die Zeilen zu Karten. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.inhalt:has(.au-flaeche) { max-width: 1600px; }
.au-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-bottom: 14px; }
.au-kopf h1 { margin: 0; }
.au-suche { display: flex; flex-wrap: wrap; gap: 8px; flex: 1 1 360px; min-width: 0; margin: 0; }
.au-suche label { margin: 0; font-weight: 400; }
.au-suchfeld { position: relative; flex: 1 1 260px; min-width: 0; }
.au-leeren, .au-taste { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: var(--text-muted); text-decoration: none; }
.au-taste, .au-tipps kbd { font: inherit; font-size: var(--fs-micro); border: 1px solid var(--border-input); border-radius: 4px; padding: 0 5px; background: var(--surface-sunken); }
.au-standort { flex: 0 1 220px; }
.au-suchfeld input, .au-standort select { display: block; width: 100%; margin: 0; padding: 8px 12px; font: inherit;
  border: 1px solid var(--border-input); border-radius: var(--r-input); background: var(--surface); color: var(--text); }
.au-suchfeld input { padding-left: 38px; padding-right: 36px;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%235B6458' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 12px center; }
.au-suchfeld input:focus, .au-standort select:focus { outline: 2px solid var(--fokus); outline-offset: 1px; }
.au-detail-schalter[aria-pressed="true"] { background: var(--divider); }
.au-neu { position: relative; margin-left: auto; }
.au-neu summary { list-style: none; cursor: pointer; }
.au-neu summary::-webkit-details-marker { display: none; }
.au-neu-menue { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 260px; display: grid; padding: 6px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); box-shadow: 0 8px 24px rgba(0, 0, 0, .12); }
.au-neu-menue a { display: grid; gap: 2px; padding: 10px 12px; border-radius: var(--r-input); color: var(--text); text-decoration: none; }
.au-neu-menue a:hover, .au-neu-menue a:focus-visible { background: var(--divider); }
.au-neu-menue span { font-size: var(--fs-xs); color: var(--text-muted); }

/* Fläche: Tabelle links, Detailbereich rechts */
.au-flaeche { display: block; }
.au-flaeche.au-mit-detail { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(340px, 1fr); gap: 16px; align-items: start; }
.au-tabelle-rahmen { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); overflow-x: auto; }
.au-tabelle { width: 100%; border-collapse: collapse; font-size: var(--fs-xs); }
.au-tabelle th, .au-tabelle td { padding: 6px 10px; text-align: left; vertical-align: middle; }
.au-tabelle thead th { background: var(--surface-sunken); border-bottom: 1px solid var(--border);
  font-size: var(--fs-micro); font-weight: 700; color: var(--text-muted); white-space: nowrap; cursor: pointer; user-select: none; }
.au-tabelle thead th:hover { color: var(--text); }
.au-tabelle thead th:focus-visible { outline: 2px solid var(--fokus); outline-offset: -2px; }
.au-tabelle thead th[aria-sort="ascending"]::after { content: " ▲"; font-size: 9px; }
.au-tabelle thead th[aria-sort="descending"]::after { content: " ▼"; font-size: 9px; }
.au-zahl-kopf, .au-stunden { text-align: right !important; }
tr.au-zeile { border-top: 1px solid var(--divider); cursor: pointer; }
tr.au-zeile:hover { background: var(--surface-sunken); }
tr.au-zeile:focus-visible { outline: 2px solid var(--fokus); outline-offset: -2px; }
tr.au-zeile.au-aktiv { background: var(--st-offen-bg); box-shadow: inset 3px 0 0 var(--gruen); }
.au-nr { color: var(--text-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.au-kunde { font-weight: 700; }
.au-kunde a { color: var(--text); text-decoration: none; }
.au-kunde a:hover { text-decoration: underline; }
.au-objekt { color: var(--text-muted); max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.au-standort-sp { color: var(--text-muted); white-space: nowrap; }
.au-stand { line-height: 1.7; }
.au-stand > * + * { margin-left: 4px; }
.au-stunden, .au-zettel { white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--text-muted); }
.au-zusatz { display: none; }
.au-text { color: var(--text-muted); white-space: nowrap; }
.au-marke { font-size: var(--fs-micro); font-weight: 700; border-radius: var(--r-pill); padding: 1px 8px; background: var(--divider); color: var(--text-muted); white-space: nowrap; }
.au-marke.au-warnung { background: var(--fehler-bg); color: var(--fehler); }
.au-marke.au-hinweis { background: var(--alert-bg); color: var(--alert-title); }
tr.au-leer td { color: var(--text-muted); padding: 10px 14px; border-top: 1px solid var(--divider); }
.au-mit-detail .au-objekt { max-width: 180px; }

/* Gruppen-Zwischenzeilen: offen schlicht, eingeklappt als deutliche Leiste */
tr.au-kopfzeile th { padding: 0; text-align: left; background: var(--surface); border-top: 1px solid var(--border); font-size: var(--fs-small); color: var(--text); }
tbody:first-of-type tr.au-kopfzeile th { border-top: 0; }
#treffer tr.au-kopfzeile th { padding: 10px 12px; }
.au-klappe { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; width: 100%; padding: 10px 12px; margin: 0;
  border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.au-klappe:hover { background: var(--surface-sunken); }
.au-klappe:focus-visible { outline: 2px solid var(--fokus); outline-offset: -2px; }
.au-pfeil { width: 0; height: 0; border-left: 6px solid var(--text-muted); border-top: 5px solid transparent;
  border-bottom: 5px solid transparent; transform: rotate(90deg); transition: transform .15s; }
.au-zu .au-pfeil { transform: none; }
.au-gruppe-name { font-weight: 700; }
.au-erledigt { font-size: var(--fs-micro); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.au-anzahl { font-size: var(--fs-micro); font-weight: 700; color: var(--text-muted); background: var(--divider); border-radius: var(--r-pill); padding: 0 8px; }
.au-untertitel { font-size: var(--fs-micro); font-weight: 400; color: var(--text-muted); }
.au-zu-hinweis { display: none; margin-left: auto; font-size: var(--fs-micro); font-weight: 700; color: var(--text-muted); }
.au-zu tr.au-zeile, .au-zu tr.au-leer { display: none; }
.au-zu .au-klappe { background: var(--surface-sunken); box-shadow: inset 4px 0 0 var(--text-muted); }
.au-zu .au-zu-hinweis { display: inline; }
@media (prefers-reduced-motion: reduce) { .au-pfeil { transition: none; } }

/* Detailbereich */
.au-detail { position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow: auto; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r-card); padding: 16px 18px; transition: opacity .15s; }
.au-detail.au-laedt { opacity: .55; }
.au-detail-leer { color: var(--text-muted); font-size: var(--fs-xs); margin: 0; }
.au-tipps { margin: 10px 2px 0; font-size: var(--fs-micro); color: var(--text-muted); }
.bd-kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.bd-titel { margin: 0; font-size: var(--fs-h2); }
.bd-klein { font-size: var(--fs-micro); color: var(--text-muted); }
.bd-knoepfe { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 14px; }
.bd-angaben { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 14px; margin: 0 0 14px; font-size: var(--fs-xs); }
.bd-angaben dt { color: var(--text-muted); }
.bd-angaben dd { margin: 0; overflow-wrap: anywhere; }
.bd-zahlen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.bd-zahlen div { background: var(--surface-sunken); border-radius: var(--r-input); padding: 8px 10px; display: grid; }
.bd-zahlen b { font-size: var(--fs-small); font-variant-numeric: tabular-nums; }
.bd-zahlen span { font-size: var(--fs-micro); color: var(--text-muted); }
.bd-abschnitt { margin-bottom: 14px; }
.bd-abschnitt h3 { font-size: var(--fs-micro); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); margin: 0 0 6px; }
.bd-liste, .bd-notizen { list-style: none; margin: 0; padding: 0; font-size: var(--fs-xs); }
.bd-liste li { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-top: 1px solid var(--divider); }
.bd-notizen li { display: grid; gap: 2px; padding: 6px 0; border-top: 1px solid var(--divider); }
.bd-voll { display: inline-block; margin-top: 4px; font-size: var(--fs-xs); font-weight: 700; }

/* Handy und schmale Fenster: jede Zeile eine Karte */
@media (max-width: 760px) {
  .au-tabelle-rahmen { background: none; border: 0; border-radius: 0; overflow: visible; }
  .au-tabelle, .au-tabelle tbody, .au-tabelle tr, .au-tabelle td, .au-tabelle th { display: block; }
  .au-tabelle thead { display: none; }
  .au-gruppe { margin-bottom: 14px; }
  tr.au-kopfzeile th { border: 0; background: none; }
  .au-klappe { padding: 8px 4px; border-radius: var(--r-input); }
  .au-zu .au-klappe { padding: 12px 14px; border: 1px solid var(--border-input); }
  tr.au-zeile { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "kunde nr" "objekt objekt" "stand stand" "stunden zettel";
    gap: 2px 12px; padding: 10px 14px; background: var(--surface); border: 1px solid var(--border); border-top: 0; }
  .au-gruppe tr.au-zeile:nth-child(2), #treffer tr.au-zeile:nth-child(2) { border-top: 1px solid var(--border); border-radius: var(--r-card) var(--r-card) 0 0; }
  .au-gruppe tr.au-zeile:last-of-type { border-radius: 0 0 var(--r-card) var(--r-card); }
  .au-tabelle td { padding: 0; border: 0; }
  .au-suche { order: 3; flex-basis: 100%; }
  .au-taste { display: none; }
  .au-kunde { grid-area: kunde; font-size: var(--fs-small); }
  .au-nr { grid-area: nr; font-size: var(--fs-micro); }
  .au-objekt { grid-area: objekt; max-width: none; white-space: normal; }
  .au-standort-sp { display: none !important; }
  .au-stand { grid-area: stand; }
  .au-stand:empty, .au-stunden:empty, .au-zettel:empty { display: none; }
  .au-stunden { grid-area: stunden; text-align: left !important; }
  .au-zettel { grid-area: zettel; text-align: right; }
  .au-zusatz { display: inline; }
  tr.au-leer td { padding: 10px 4px; border: 0; }
}

/* Wochenplan: Seitenleiste mit Auftragsdetails (oben) und „Noch nicht eingeplant“, beide einklappbar;
   die ganze Leiste blendet der Knopf „Seitenleiste“ aus (planung.js) */
@media (min-width: 1001px) { .pl-bereich:has(.pl-seite):not(.seite-zu) { grid-template-columns: minmax(0, 1fr) 330px; } }
.pl-bereich.seite-zu { grid-template-columns: minmax(0, 1fr); }
.pl-bereich.seite-zu .pl-seite { display: none; }
.pl-seite-schalter[aria-pressed="true"] { background: var(--divider); }
.pl-abschnitt > summary { list-style: none; cursor: pointer; justify-content: flex-start; padding: 2px 0; }
.pl-abschnitt > summary::-webkit-details-marker { display: none; }
.pl-abschnitt > summary::before { content: ""; border-left: 6px solid var(--text-muted); border-top: 5px solid transparent;
  border-bottom: 5px solid transparent; transform: rotate(90deg); transition: transform .15s; }
.pl-abschnitt:not([open]) > summary::before { transform: none; }
.pl-abschnitt > summary .pl-anzahl { margin-left: auto; }
.pl-abschnitt > summary:focus-visible { outline: 2px solid var(--fokus); outline-offset: 2px; }
.pl-abschnitt + .pl-abschnitt { border-top: 1px solid var(--divider); margin-top: 12px; padding-top: 12px; }
.pl-abschnitt[open] > summary { margin-bottom: 8px; }
.pl-detail { transition: opacity .15s; }
.pl-detail.pl-laedt { opacity: .55; }
.pl-detail .bd-titel { font-size: var(--fs-h3); }
.pl-detail .bd-angaben { grid-template-columns: minmax(0, 1fr); gap: 0; }
.pl-detail .bd-angaben dt { margin-top: 6px; font-size: var(--fs-micro); }
.bd-einsatz { display: grid; gap: 6px; justify-items: start; margin: 12px 0 0; padding: 10px 12px; font-size: var(--fs-xs);
  background: var(--info-bg); color: var(--info-text); border-radius: var(--r-input); }
.bd-tipp { font-size: var(--fs-micro); color: var(--text-muted); margin: -6px 0 12px; }
/* Gewählter Auftrag: alle seine Einsätze hervorgehoben, die übrigen blasser */
.pl-mit-markierung .pl-balken:not(.pl-markiert) { opacity: .45; }
.pl-balken.pl-markiert { box-shadow: 0 0 0 2px var(--gruen); }
.pl-balken.pl-angeklickt { box-shadow: 0 0 0 3px var(--gruen), 0 3px 10px rgba(0, 0, 0, .15); }
.pl-karte.pl-markiert { border-color: var(--gruen); box-shadow: 0 0 0 1px var(--gruen); }
@media (prefers-reduced-motion: reduce) { .pl-abschnitt > summary::before, .pl-detail { transition: none; } }
/* Schmal: die Leiste steht unter dem Plan, ein Klick auf einen Einsatz öffnet ihn wie bisher */
@media (max-width: 1000px) { .pl-abschnitt[data-abschnitt="auftrag"] { display: none; } .pl-abschnitt + .pl-abschnitt { border-top: 0; margin-top: 0; padding-top: 0; } }

.formular .team-zettel-auto { align-items: flex-start; padding: 10px 12px; border: 1px dashed var(--border-input); border-radius: var(--r-input); }
.formular .team-zettel-auto input { margin-top: 3px; }
.team-zettel-auto span { display: grid; gap: 2px; }
.team-zettel-auto small { color: var(--text-muted); font-size: var(--fs-xs); }

/* Feld „Zeit“ beim Einplanen: Ganzer Tag · Vormittags · Nachmittags · Uhrzeit, darunter von – bis und Stunden */
.zeit-wahl { border: 0; padding: 0; margin: 0 0 14px; min-width: 0; display: grid; gap: 8px; }
.zeit-wahl legend { font-weight: 700; font-size: var(--fs-small); margin-bottom: 6px; padding: 0; }
.zeit-arten { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--border-input); border-radius: var(--r-input); overflow: hidden; }
.zeit-arten label { margin: 0; font-weight: 400; }
.zeit-arten input { position: absolute; opacity: 0; pointer-events: none; }
.zeit-arten span { display: block; text-align: center; padding: 9px 4px; font-size: var(--fs-xs); cursor: pointer; background: var(--surface); }
.zeit-arten label + label span { border-left: 1px solid var(--border-input); }
.zeit-arten input:checked + span { background: var(--primary); color: #fff; font-weight: 700; }
.zeit-arten input:focus-visible + span { outline: 2px solid var(--fokus); outline-offset: -3px; }
.zeit-zeile { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.zeit-zeile label { margin: 0; font-size: var(--fs-xs); }
.zeit-zeile label[hidden] { display: none; }
.zeit-zeile input { display: block; width: 100%; margin-top: 4px; }
.zeit-zeile .zeit-stunden { grid-column: 3; }
.zeit-hilfe { margin: 0; }
@media (max-width: 420px) { .zeit-arten { grid-template-columns: repeat(2, minmax(0, 1fr)); } .zeit-arten label:nth-child(3) span { border-left: 0; } }

/* Auftragsseite: Ablauf-Leiste und „Nächster Schritt“ (auftraege/ablauf.py) */
.auftrag-unterzeile { margin: 2px 0 0; }
.ablauf { list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; margin: 14px 0 12px; padding: 0; counter-reset: schritt; }
.ablauf li { counter-increment: schritt; display: grid; gap: 4px; font-size: var(--fs-micro); color: var(--text-muted); text-align: center; }
.ablauf li::before { content: ""; height: 6px; border-radius: var(--r-bar); background: var(--divider); }
.ablauf li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ablauf .ablauf-erledigt::before { background: var(--gfh-green-light); }
.ablauf .ablauf-erledigt { color: var(--text); }
.ablauf .ablauf-jetzt::before { background: repeating-linear-gradient(90deg, var(--gfh-green-light) 0 6px, var(--divider) 6px 10px); }
.ablauf .ablauf-jetzt { color: var(--text); font-weight: 700; }
.naechster-schritt { background: var(--surface-sunken); border-left: 4px solid var(--gruen); border-radius: var(--r-input); padding: 12px 14px; }
.naechster-schritt.ueberfaellig { border-left-color: var(--alert-action); background: var(--alert-bg); }
.naechster-text { margin: 0 0 10px; font-weight: 700; }
.naechster-knoepfe { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; }
.naechster-knoepfe form { margin: 0; }
.naechster-knoepfe details.absage[open] { flex-basis: 100%; }
.naechster-knoepfe details.absage .formular { margin-top: 10px; }
.auftrag-kopf .kontakt-knoepfe { margin-top: 12px; }
@media (max-width: 560px) {
  .ablauf { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 8px; }
}

/* Darstellung umschalten (darstellung.js): im Kontomenü am Handy, rechts oben am PC */
.kopf-darstellung { display: block; width: 100%; margin: 0 0 10px; padding: 0; border: 0; background: none; color: var(--link);
  font: inherit; font-weight: 700; text-align: left; cursor: pointer; }
.kopf-konto-fenster .kopf-darstellung { min-height: 0; border: 0; }

/* Bewegung und Tiefe: weiche Übergänge, leichte Schatten, sanftes Aufklappen, Seitenwechsel ohne Flackern.
   Wer „Bewegung reduzieren“ eingestellt hat, bekommt nichts davon (ganz unten). */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .18s; }
body { transition: background-color var(--dauer), color var(--dauer); }
a, button, summary, input, select, textarea,
.knopf, .knopf-klein, .knopf-zweit, .karte, .status, .pl-karte, .pl-balken, tr.au-zeile {
  transition: background-color var(--dauer) var(--kurve), border-color var(--dauer) var(--kurve), color var(--dauer) var(--kurve),
              box-shadow var(--dauer) var(--kurve), transform var(--dauer) var(--kurve), opacity var(--dauer) var(--kurve);
}
.karte, .pl-raster-rahmen, .au-tabelle-rahmen, .au-detail, .pl-seite, .pl-skala { box-shadow: var(--schatten-1); }
a.karte:hover, .anfrage-zeile:hover, .pl-karte:hover { box-shadow: var(--schatten-2); }
.au-neu-menue, .kopf-konto-fenster, .pl-optionen-inhalt { box-shadow: var(--schatten-2); }
.pl-dialog, .meldung-fenster { box-shadow: var(--schatten-3); }
/* Knöpfe geben beim Drücken kurz nach */
.knopf:active, .knopf-klein:active, .knopf-zweit:active, .knopf-gruen:active, .pl-knopf:active { transform: scale(.97); }
.knopf, .knopf-gruen { box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.knopf:hover, a.knopf-gruen:hover, button.knopf-gruen:hover { filter: brightness(1.08); }
.knopf-klein.knopf-rahmen:hover, .knopf-zweit:hover { border-color: var(--primary-text); }
/* Eingabefelder: weicher Fokusring statt harter Kante */
.formular input:not([type="checkbox"]):not([type="radio"]):focus, .formular select:focus, .formular textarea:focus,
input[type="text"]:focus, input[type="search"]:focus, input[type="password"]:focus {
  outline: none; border-color: var(--fokus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--fokus) 28%, transparent);
}
/* Meldungen oben gleiten herein */
main > .meldung { animation: hereingleiten .25s var(--kurve) both; }
@keyframes hereingleiten { from { opacity: 0; transform: translateY(-6px); } }
/* Sanftes Aufklappen (neuere Browser; ältere klappen wie bisher sofort auf) */
:root { interpolate-size: allow-keywords; }
.verlauf::details-content, .absage::details-content, .pl-abschnitt::details-content, .dokument-neu::details-content {
  block-size: 0; overflow: clip;
  transition: block-size .22s var(--kurve), content-visibility .22s allow-discrete;
}
.verlauf[open]::details-content, .absage[open]::details-content, .pl-abschnitt[open]::details-content,
.dokument-neu[open]::details-content { block-size: auto; }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .knopf:active, .knopf-klein:active, .knopf-zweit:active, .knopf-gruen:active, .pl-knopf:active { transform: none; }
}
