/* =====================================================================
   Wolf Projektmanagement – Designsystem (Apple-inspiriert, Stand 24.11.2026)
   Aufbau: 1 Tokens · 2 Basis · 3 Rahmen/Navigation · 4 Komponenten ·
           5 Ansichten · 6 Plantafel · 7 Overlays · 8 Responsive · 9 Bewegung
   Alle Farben, Abstände, Radien und Schatten nur über die Tokens unten.
   ===================================================================== */

/* ---------- 1 Tokens ---------- */
:root {
  --schrift: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --schrift-titel: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Abstände (4er-Raster) */
  --a1: 4px; --a2: 8px; --a3: 12px; --a4: 16px; --a5: 20px; --a6: 24px; --a8: 32px; --a10: 40px;
  /* Radien */
  --r-s: 8px; --r-m: 12px; --r-l: 16px; --r-xl: 22px; --r-voll: 999px;
  /* Schriftgrößen (iOS-Textstile) */
  --t-grosstitel: 34px; --t-titel1: 28px; --t-titel2: 22px; --t-titel3: 20px; --t-headline: 17px;
  --t-body: 17px; --t-callout: 16px; --t-sub: 15px; --t-fuss: 13px; --t-cap: 12px; --t-cap2: 11px;
  /* Maße */
  --tap: 44px; --seitenleiste: 260px; --navleiste: 52px; --tabbar: 64px; --inhalt-max: 1180px;
  --sicher-oben: env(safe-area-inset-top, 0px); --sicher-unten: env(safe-area-inset-bottom, 0px);
  --sicher-links: env(safe-area-inset-left, 0px); --sicher-rechts: env(safe-area-inset-right, 0px);
  /* Bewegung */
  --kurve: cubic-bezier(.2, .8, .2, 1); --kurve-feder: cubic-bezier(.32, .72, 0, 1);
  --dauer-s: 140ms; --dauer-m: 240ms; --dauer-l: 380ms;
}

/* Hell (Standard) */
[data-theme="light"] {
  color-scheme: light;
  --bg: #f2f2f7;                 /* systemGroupedBackground */
  --karte: #ffffff;              /* secondarySystemGroupedBackground */
  --karte-2: #f7f7f9;
  --fuellung: rgba(118, 118, 128, .12);
  --fuellung-2: rgba(118, 118, 128, .08);
  --text: #1d1d1f;
  --text-2: rgba(60, 60, 67, .72);
  --text-3: rgba(60, 60, 67, .45);
  --linie: rgba(60, 60, 67, .14);
  --linie-stark: rgba(60, 60, 67, .22);
  --akzent: #a8854a;             /* Wolf-Gold */
  --akzent-text: #8a6a34;        /* Gold für Text auf Weiß (Kontrast ≥ 4.5:1) */
  --akzent-weich: rgba(168, 133, 74, .13);
  --akzent-auf: #ffffff;
  --gruen: #2e9d5b;  --gruen-weich: rgba(46, 157, 91, .12);
  --orange: #d9821c; --orange-weich: rgba(217, 130, 28, .13);
  --rot: #e0453a;    --rot-weich: rgba(224, 69, 58, .11);
  --blau: #3478f6;   --blau-weich: rgba(52, 120, 246, .11);
  --grau: #8e8e93;   --grau-weich: rgba(142, 142, 147, .14);
  --schatten-1: 0 1px 2px rgba(0, 0, 0, .04), 0 1px 1px rgba(0, 0, 0, .03);
  --schatten-2: 0 2px 8px rgba(0, 0, 0, .05), 0 1px 2px rgba(0, 0, 0, .04);
  --schatten-3: 0 18px 50px rgba(0, 0, 0, .16), 0 4px 14px rgba(0, 0, 0, .08);
  --glas: rgba(250, 250, 252, .74);
  --glas-rand: rgba(255, 255, 255, .7);
  --glas-linie: rgba(60, 60, 67, .12);
  --abdunkeln: rgba(0, 0, 0, .28);
  --logo-filter: none;
  --we: rgba(118, 118, 128, .06);
}
/* Dunkel */
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #121214;
  --karte: #1d1d20;
  --karte-2: #26262a;
  --fuellung: rgba(118, 118, 128, .24);
  --fuellung-2: rgba(118, 118, 128, .16);
  --text: #f5f5f7;
  --text-2: rgba(235, 235, 245, .64);
  --text-3: rgba(235, 235, 245, .38);
  --linie: rgba(84, 84, 88, .5);
  --linie-stark: rgba(110, 110, 115, .6);
  --akzent: #d6bc8c;             /* Champagner */
  --akzent-text: #e0c798;
  --akzent-weich: rgba(214, 188, 140, .15);
  --akzent-auf: #1a1712;
  --gruen: #4cc77d;  --gruen-weich: rgba(76, 199, 125, .15);
  --orange: #f2a540; --orange-weich: rgba(242, 165, 64, .15);
  --rot: #ff6b5f;    --rot-weich: rgba(255, 107, 95, .15);
  --blau: #6aa5ff;   --blau-weich: rgba(106, 165, 255, .15);
  --grau: #8e8e93;   --grau-weich: rgba(142, 142, 147, .2);
  --schatten-1: 0 0 0 1px rgba(255, 255, 255, .04);
  --schatten-2: 0 0 0 1px rgba(255, 255, 255, .05), 0 6px 18px rgba(0, 0, 0, .25);
  --schatten-3: 0 0 0 1px rgba(255, 255, 255, .06), 0 24px 60px rgba(0, 0, 0, .55);
  --glas: rgba(30, 30, 33, .72);
  --glas-rand: rgba(255, 255, 255, .08);
  --glas-linie: rgba(255, 255, 255, .08);
  --abdunkeln: rgba(0, 0, 0, .5);
  --logo-filter: none; /* eigenes Logo logo-dunkel.svg: Schrift hell, Wolfskopf in Originalfarben */
  --we: rgba(255, 255, 255, .025);
}

/* ---------- 2 Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font-family: var(--schrift); font-size: var(--t-sub); line-height: 1.42; letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; min-height: 100dvh;
  -webkit-tap-highlight-color: transparent; transition: background-color var(--dauer-m) var(--kurve), color var(--dauer-m) var(--kurve);
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
::selection { background: var(--akzent-weich); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--akzent) 55%, transparent); outline-offset: 2px; border-radius: var(--r-s); }
.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.i.klein { width: 15px; height: 15px; stroke-width: 2; }
.i.mini { width: 13px; height: 13px; stroke-width: 2.2; }
.zahlen, .nr { font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.laden { min-height: 100dvh; display: grid; place-items: center; }
.ladeanzeige { display: flex; align-items: center; gap: var(--a3); color: var(--text-2); font-size: var(--t-sub); }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--fuellung); border-top-color: var(--akzent); animation: drehen .8s linear infinite; }

/* ---------- 3 Rahmen & Navigation ---------- */
.shell { min-height: 100dvh; display: grid; grid-template-columns: var(--seitenleiste) minmax(0, 1fr); }

/* Seitenleiste (iPad/Desktop) – wie eine Apple-Quellliste */
.seitenleiste {
  position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; gap: var(--a2);
  padding: calc(var(--a5) + var(--sicher-oben)) var(--a3) var(--a4) calc(var(--a3) + var(--sicher-links));
  background: var(--glas); backdrop-filter: saturate(180%) blur(24px); -webkit-backdrop-filter: saturate(180%) blur(24px);
  border-right: 1px solid var(--glas-linie); overflow-y: auto; z-index: 20;
}
.marke { display: flex; flex-direction: column; align-items: flex-start; gap: var(--a2); padding: var(--a1) var(--a3) var(--a4); }
.marke img { width: 168px; height: auto; display: block; filter: var(--logo-filter); }
.marke .unter { font-size: var(--t-cap2); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--akzent-text); }
.navliste { display: flex; flex-direction: column; gap: 2px; }
.navgruppe { font-size: var(--t-cap); font-weight: 600; color: var(--text-3); padding: var(--a4) var(--a3) var(--a1); }
.navpunkt {
  display: flex; align-items: center; gap: var(--a3); min-height: 38px; padding: 0 var(--a3); border-radius: var(--r-s);
  color: var(--text); font-size: var(--t-sub); font-weight: 500; transition: background-color var(--dauer-s) var(--kurve);
}
.navpunkt .i { color: var(--akzent); }
.navpunkt:hover { background: var(--fuellung-2); }
.navpunkt.aktiv { background: var(--akzent-weich); color: var(--akzent-text); font-weight: 600; }
.navpunkt .zaehler { margin-left: auto; font-size: var(--t-fuss); color: var(--text-2); font-weight: 500; }
.navpunkt.aktiv .zaehler { color: var(--akzent-text); }
.seitenfuss { margin-top: auto; padding-top: var(--a3); border-top: 1px solid var(--linie); }
.profil { display: flex; align-items: center; gap: var(--a3); padding: var(--a2) var(--a3); border-radius: var(--r-m); transition: background-color var(--dauer-s); }
.profil:hover { background: var(--fuellung-2); }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: linear-gradient(145deg, color-mix(in srgb, var(--akzent) 85%, #fff), var(--akzent)); color: var(--akzent-auf);
  font-weight: 600; font-size: 13px; letter-spacing: .02em;
}
.avatar.gross { width: 60px; height: 60px; font-size: 22px; }
.profil-text { display: flex; flex-direction: column; min-width: 0; }
.profil-text b { font-size: var(--t-sub); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profil-text span { font-size: var(--t-cap); color: var(--text-2); }

/* Hauptbereich */
.haupt { min-width: 0; display: flex; flex-direction: column; }
.navleiste {
  position: sticky; top: 0; z-index: 15; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  min-height: calc(var(--navleiste) + var(--sicher-oben)); padding: var(--sicher-oben) calc(var(--a4) + var(--sicher-rechts)) 0 calc(var(--a4) + var(--sicher-links));
  background: transparent; border-bottom: 1px solid transparent;
  transition: background-color var(--dauer-m) var(--kurve), border-color var(--dauer-m) var(--kurve);
}
.navleiste.gescrollt, .navleiste.kompakt { background: var(--glas); backdrop-filter: saturate(180%) blur(22px); -webkit-backdrop-filter: saturate(180%) blur(22px); border-bottom-color: var(--glas-linie); }
.nl-links, .nl-rechts { display: flex; align-items: center; gap: var(--a1); min-width: 0; }
.nl-rechts { justify-content: flex-end; }
.nl-titel { font-size: var(--t-headline); font-weight: 600; opacity: 0; transform: translateY(4px); transition: opacity var(--dauer-m) var(--kurve), transform var(--dauer-m) var(--kurve); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 52vw; }
.navleiste.kompakt .nl-titel { opacity: 1; transform: none; }
.nl-logo { display: none; }
.nl-logo img { height: 28px; width: auto; display: block; filter: var(--logo-filter); }
.knopf-icon {
  width: var(--tap); height: var(--tap); display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent;
  color: var(--akzent-text); cursor: pointer; transition: background-color var(--dauer-s), transform var(--dauer-s);
}
.knopf-icon:hover { background: var(--fuellung-2); }
.knopf-icon:active { transform: scale(.92); }
.knopf-icon .i { width: 22px; height: 22px; }
.knopf-zurueck {
  display: inline-flex; align-items: center; gap: 2px; min-height: var(--tap); padding: 0 var(--a2) 0 0; border: 0; background: none;
  color: var(--akzent-text); font-size: var(--t-body); cursor: pointer; margin-left: -6px; white-space: nowrap;
}
.knopf-zurueck .i { width: 26px; height: 26px; stroke-width: 2.2; }
.knopf-zurueck:active { opacity: .55; }
[data-theme="dark"] .nur-hell, [data-theme="light"] .nur-dunkel { display: none; }
.nur-mobil { display: none !important; }
.tl[data-einsatz] { cursor: pointer; transition: background-color var(--dauer-s); }
.tl[data-einsatz]:hover { background: var(--karte-2); }

.inhalt {
  width: 100%; max-width: var(--inhalt-max); margin: 0 auto;
  padding: 0 calc(var(--a8) + var(--sicher-rechts)) calc(var(--a10) + var(--sicher-unten)) calc(var(--a8) + var(--sicher-links));
}
.grosstitel { padding: var(--a1) 0 var(--a5); }
.grosstitel h1 { font-family: var(--schrift-titel); font-size: var(--t-grosstitel); line-height: 1.12; font-weight: 700; letter-spacing: -.025em; overflow-wrap: anywhere; }
.untertitel { margin-top: var(--a1); color: var(--text-2); font-size: var(--t-sub); }
.untertitel b { color: var(--text); font-weight: 600; }

/* Tabbar (iPhone) – schwebende Glas-Leiste wie iOS 26 */
.tabbar { display: none; }

/* ---------- 4 Komponenten ---------- */
/* Abschnitt */
.abschnitt { margin-top: var(--a8); }
.abschnitt:first-child { margin-top: 0; }
.abschnitt-kopf { display: flex; align-items: baseline; justify-content: space-between; gap: var(--a3); margin: 0 0 var(--a3); padding: 0 var(--a1); }
.abschnitt-kopf h2 { font-family: var(--schrift-titel); font-size: var(--t-titel3); font-weight: 700; letter-spacing: -.02em; display: flex; align-items: center; gap: var(--a2); }
.abschnitt-kopf .mehr { color: var(--akzent-text); font-size: var(--t-sub); font-weight: 500; white-space: nowrap; }
.abschnitt-kopf .mehr:hover { text-decoration: underline; }
.gruppentitel { font-size: var(--t-fuss); color: var(--text-2); text-transform: uppercase; letter-spacing: .02em; margin: var(--a6) var(--a4) var(--a2); }
.gruppentitel:first-child { margin-top: 0; }
.fussnote { font-size: var(--t-fuss); color: var(--text-2); margin: var(--a2) var(--a4) 0; line-height: 1.45; }

/* Karte & gruppierte Liste (Einstellungen-Stil) */
.karte { background: var(--karte); border-radius: var(--r-l); box-shadow: var(--schatten-1); }
.karte.innen { padding: var(--a4) var(--a5); }
.gruppe { background: var(--karte); border-radius: var(--r-l); box-shadow: var(--schatten-1); overflow: hidden; overflow: clip; }
.zeile {
  position: relative; display: flex; align-items: center; gap: var(--a3); min-height: var(--tap); padding: var(--a3) var(--a4);
  background: var(--karte); transition: background-color var(--dauer-s);
}
.zeile + .zeile::before { content: ""; position: absolute; top: 0; left: var(--a4); right: 0; height: 1px; background: var(--linie); transform: scaleY(.6); }
.zeile.mit-icon + .zeile.mit-icon::before, .zeile.mit-icon + .zeile::before { left: 56px; }
a.zeile:hover, button.zeile:hover { background: var(--karte-2); }
a.zeile:active, button.zeile:active { background: var(--fuellung-2); }
button.zeile { width: 100%; border: 0; text-align: left; cursor: pointer; font-size: var(--t-body); }
.zeile .bez { color: var(--text); flex: none; }
.zeile .wert { margin-left: auto; color: var(--text-2); text-align: right; min-width: 0; overflow-wrap: anywhere; }
.zeile .chev { color: var(--text-3); margin-left: auto; }
.zeile .wert + .chev { margin-left: 0; }
.zeile.link { color: var(--akzent-text); font-weight: 500; }
.zeile.gefahr { color: var(--rot); }
.zeile.gestapelt { flex-direction: column; align-items: stretch; gap: var(--a1); }
.zeile.gestapelt .bez { font-size: var(--t-fuss); color: var(--text-2); }
.zeile.gestapelt .wert { margin: 0; text-align: left; color: var(--text); white-space: pre-line; }
.zeile .leer-wert { color: var(--text-3); }
.symbolkachel { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; flex: none; color: #fff; background: var(--grau); }
.symbolkachel .i { width: 17px; height: 17px; stroke-width: 2; }

/* Töne (für Symbolkacheln, Punkte, Pillen) */
.ton-gold { --ton: var(--akzent); --ton-weich: var(--akzent-weich); --ton-text: var(--akzent-text); }
.ton-gruen { --ton: var(--gruen); --ton-weich: var(--gruen-weich); --ton-text: var(--gruen); }
.ton-orange { --ton: var(--orange); --ton-weich: var(--orange-weich); --ton-text: var(--orange); }
.ton-rot { --ton: var(--rot); --ton-weich: var(--rot-weich); --ton-text: var(--rot); }
.ton-blau { --ton: var(--blau); --ton-weich: var(--blau-weich); --ton-text: var(--blau); }
.ton-grau { --ton: var(--grau); --ton-weich: var(--grau-weich); --ton-text: var(--text-2); }
.symbolkachel[class*="ton-"] { background: var(--ton); }
[data-theme="dark"] .symbolkachel.ton-gold { color: var(--akzent-auf); }

/* Pillen (Status) */
.pill {
  display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: var(--r-voll);
  font-size: var(--t-cap); font-weight: 600; letter-spacing: 0; white-space: nowrap;
  color: var(--ton-text, var(--text-2)); background: var(--ton-weich, var(--fuellung-2));
  transition: background-color var(--dauer-m), color var(--dauer-m);
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ton, var(--grau)); }
.pill.ohne-punkt::before { display: none; }
.pill.umriss { background: transparent; box-shadow: inset 0 0 0 1px var(--linie-stark); color: var(--text-2); }
.pill.umriss::before { display: none; }

/* Projektstatus → Ton */
.s-einzuplanen { --ton: var(--akzent); --ton-weich: var(--akzent-weich); --ton-text: var(--akzent-text); }
.s-eingeplant { --ton: var(--gruen); --ton-weich: var(--gruen-weich); --ton-text: var(--gruen); }
.s-pausiert { --ton: var(--orange); --ton-weich: var(--orange-weich); --ton-text: var(--orange); }
.s-demnaechst { --ton: var(--blau); --ton-weich: var(--blau-weich); --ton-text: var(--blau); }
.s-archiviert, .s-nicht { --ton: var(--grau); --ton-weich: var(--grau-weich); --ton-text: var(--text-2); }
.pr-sehr_hoch { --ton: var(--rot); --ton-weich: var(--rot-weich); --ton-text: var(--rot); }
.pr-hoch { --ton: var(--orange); --ton-weich: var(--orange-weich); --ton-text: var(--orange); }
.pr-niedrig, .pr-normal { --ton: var(--grau); --ton-weich: var(--grau-weich); --ton-text: var(--text-2); }
/* Einsatzstatus → Ton */
.es-vorschlag { --ton: var(--grau); --ton-weich: var(--grau-weich); --ton-text: var(--text-2); }
.es-geplant { --ton: var(--blau); --ton-weich: var(--blau-weich); --ton-text: var(--blau); }
.es-zugesagt { --ton: var(--gruen); --ton-weich: var(--gruen-weich); --ton-text: var(--gruen); }
.es-ausgesetzt { --ton: var(--orange); --ton-weich: var(--orange-weich); --ton-text: var(--orange); }
.es-erledigt, .es-storniert { --ton: var(--grau); --ton-weich: var(--grau-weich); --ton-text: var(--text-3); }

/* Knöpfe */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--a2); min-height: 46px; padding: 0 var(--a5);
  border: 0; border-radius: var(--r-m); background: var(--akzent); color: var(--akzent-auf); font-size: var(--t-body); font-weight: 600;
  cursor: pointer; transition: transform var(--dauer-s) var(--kurve), filter var(--dauer-s), background-color var(--dauer-m), opacity var(--dauer-s);
}
.knopf:hover { filter: brightness(1.05); }
.knopf:active { transform: scale(.97); }
.knopf:disabled { opacity: .5; cursor: default; }
.knopf.zweit { background: var(--akzent-weich); color: var(--akzent-text); }
.knopf.neutral { background: var(--fuellung); color: var(--text); }
.knopf.breit { width: 100%; }
.knopf.erfolg { background: var(--gruen); color: #fff; }
.knopf.klein { min-height: 34px; padding: 0 var(--a3); font-size: var(--t-sub); border-radius: var(--r-voll); }
.link { background: none; border: 0; padding: 0; color: var(--akzent-text); cursor: pointer; font: inherit; }
.link:hover { text-decoration: underline; }

/* Segmentsteuerung */
.segment {
  display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px; padding: 2px; border-radius: 10px;
  background: var(--fuellung); max-width: 100%; position: relative;
}
.segment a, .segment button {
  display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 32px; padding: 0 var(--a3); border: 0; border-radius: 8px;
  background: transparent; color: var(--text); font-size: var(--t-fuss); font-weight: 500; cursor: pointer; white-space: nowrap;
  transition: background-color var(--dauer-m) var(--kurve), box-shadow var(--dauer-m) var(--kurve);
}
.segment .aktiv { background: var(--karte); box-shadow: 0 3px 8px rgba(0, 0, 0, .12), 0 0 0 .5px rgba(0, 0, 0, .04); font-weight: 600; }
[data-theme="dark"] .segment .aktiv { background: #5a5a5f; box-shadow: none; }
.segment .anzahl { color: var(--text-2); font-weight: 500; }
.segment.breit { display: grid; width: 100%; }

/* Suche */
.suchfeld { position: relative; display: block; margin-bottom: var(--a4); }
.suchfeld .i { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--text-2); width: 17px; height: 17px; }
.suchfeld input {
  width: 100%; height: 40px; border: 0; border-radius: 11px; padding: 0 var(--a3) 0 34px; background: var(--fuellung);
  color: var(--text); font: inherit; font-size: var(--t-body); outline: none; transition: box-shadow var(--dauer-s);
}
.suchfeld input::placeholder { color: var(--text-2); }
.suchfeld input:focus { box-shadow: 0 0 0 3px var(--akzent-weich); }

/* Formulare (gruppiert) */
.feld { display: flex; flex-direction: column; gap: 6px; padding: var(--a3) var(--a4); position: relative; }
.feld + .feld::before { content: ""; position: absolute; top: 0; left: var(--a4); right: 0; height: 1px; background: var(--linie); transform: scaleY(.6); }
.feld > span { font-size: var(--t-fuss); color: var(--text-2); font-weight: 500; }
.feld input, .feld select, .feld textarea, .eingabe {
  width: 100%; border: 0; border-radius: var(--r-s); background: var(--fuellung-2); color: var(--text); font: inherit; font-size: var(--t-body);
  padding: 10px 12px; outline: none; transition: box-shadow var(--dauer-s), background-color var(--dauer-s); -webkit-appearance: none; appearance: none;
}
.feld textarea { resize: vertical; min-height: 76px; max-height: 360px; line-height: 1.4; field-sizing: content; }
.feld select {
  background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%);
  background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px;
}
.feld input:focus, .feld select:focus, .feld textarea:focus, .eingabe:focus { box-shadow: 0 0 0 3px var(--akzent-weich); background: var(--karte); }
.formular-fuss { display: flex; align-items: center; gap: var(--a3); flex-wrap: wrap; margin-top: var(--a4); }
.meldung { font-size: var(--t-fuss); min-height: 1em; }
.rot { color: var(--rot); } .gruen { color: var(--gruen); }

/* Banner */
.banner { display: flex; align-items: flex-start; gap: var(--a3); padding: var(--a3) var(--a4); border-radius: var(--r-m); margin-bottom: var(--a4); font-size: var(--t-sub); }
.banner .i { margin-top: 1px; }
.banner.info { background: var(--fuellung-2); color: var(--text-2); }
.banner.fehler { background: var(--rot-weich); color: var(--text); }
.banner.fehler .i { color: var(--rot); }
.banner.fehler b { color: var(--rot); }

/* Leerzustand */
.leer { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--a2); padding: var(--a8) var(--a5); color: var(--text-2); font-size: var(--t-sub); }
.leer .i { width: 34px; height: 34px; stroke-width: 1.5; color: var(--text-3); }
.leer b { color: var(--text); font-size: var(--t-headline); }
.leer.klein { padding: var(--a5); }

/* ---------- 5 Ansichten ---------- */
/* Kennzahlen */
.kennzahlen { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--a3); }
.kachel {
  display: flex; flex-direction: column; gap: var(--a2); padding: var(--a3) var(--a4) var(--a4); min-height: 112px;
  background: var(--karte); border-radius: var(--r-l); box-shadow: var(--schatten-1); position: relative; overflow: hidden;
  transition: transform var(--dauer-s) var(--kurve), box-shadow var(--dauer-m) var(--kurve);
}
.kachel:hover { box-shadow: var(--schatten-2); }
.kachel:active { transform: scale(.975); }
.kachel-kopf { display: flex; align-items: center; justify-content: space-between; }
.kachel .symbolkachel { width: 28px; height: 28px; border-radius: 50%; }
.kachel .symbolkachel .i { width: 15px; height: 15px; }
.kachel .chev { color: var(--text-3); width: 16px; height: 16px; }
.kachel-wert { font-family: var(--schrift-titel); font-size: 34px; line-height: 1; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; margin-top: auto; }
.kachel-titel { font-size: var(--t-fuss); font-weight: 600; color: var(--text-2); line-height: 1.25; }
.kachel.hervor { background: linear-gradient(160deg, color-mix(in srgb, var(--akzent) 16%, var(--karte)), var(--karte) 70%); box-shadow: var(--schatten-1), inset 0 0 0 1px color-mix(in srgb, var(--akzent) 30%, transparent); }
.kachel.hervor .kachel-wert { color: var(--akzent-text); }

/* Sync-Status */
.syncstatus { display: flex; align-items: center; gap: var(--a3); margin-top: var(--a3); padding: var(--a3) var(--a4); background: var(--karte); border-radius: var(--r-l); box-shadow: var(--schatten-1); }
.syncstatus .punkt { width: 9px; height: 9px; border-radius: 50%; background: var(--gruen); flex: none; box-shadow: 0 0 0 4px var(--gruen-weich); }
.syncstatus.fehler .punkt { background: var(--rot); box-shadow: 0 0 0 4px var(--rot-weich); animation: pulsieren 2s var(--kurve) infinite; }
.syncstatus.alt .punkt { background: var(--orange); box-shadow: 0 0 0 4px var(--orange-weich); }
.syncstatus .st-text { display: flex; flex-direction: column; min-width: 0; }
.syncstatus .st-text b { font-size: var(--t-sub); font-weight: 600; }
.syncstatus .st-text span { font-size: var(--t-fuss); color: var(--text-2); }
.syncstatus .st-rechts { margin-left: auto; font-size: var(--t-fuss); color: var(--text-2); text-align: right; white-space: nowrap; }

/* Dashboard-Raster */
.raster-dash { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: var(--a8); align-items: start; margin-top: var(--a8); }
.raster-dash > .abschnitt { margin-top: 0; }
.chips { display: flex; gap: var(--a2); overflow-x: auto; scrollbar-width: none; padding: 2px 2px var(--a3); margin: 0 -2px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 var(--a3); border-radius: var(--r-voll); border: 0;
  background: var(--karte); box-shadow: var(--schatten-1); color: var(--text); font-size: var(--t-fuss); font-weight: 500; cursor: pointer; white-space: nowrap;
  transition: background-color var(--dauer-s), color var(--dauer-s);
}
.chip .anzahl { color: var(--text-2); }
.chip.aktiv { background: var(--text); color: var(--bg); }
.chip.aktiv .anzahl { color: inherit; opacity: .7; }

/* Hinweise */
.hinweis { position: relative; display: flex; align-items: stretch; background: var(--karte); }
.hinweis + .hinweis::before { content: ""; position: absolute; top: 0; left: 58px; right: 0; height: 1px; background: var(--linie); transform: scaleY(.6); }
.hinweis-haupt { flex: 1; min-width: 0; display: flex; align-items: flex-start; gap: var(--a3); padding: var(--a3) var(--a2) var(--a3) var(--a4); transition: background-color var(--dauer-s); }
a.hinweis-haupt:hover { background: var(--karte-2); }
a.hinweis-haupt:active { background: var(--fuellung-2); }
.hinweis .symbolkachel { margin-top: 1px; }
.hinweis-text { flex: 1; min-width: 0; }
.hinweis-z1 { display: flex; align-items: baseline; gap: var(--a2); }
.hinweis-z1 b { font-size: var(--t-sub); font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.hinweis-z1 .zeit { margin-left: auto; font-size: var(--t-cap); color: var(--text-3); white-space: nowrap; }
.hinweis-z2 { font-size: var(--t-fuss); color: var(--text-2); margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hinweis-z3 { display: flex; gap: var(--a2); margin-top: 6px; flex-wrap: wrap; }
.hinweis .chev { color: var(--text-3); margin-top: 6px; }
.hinweis.p-sehr_hoch .hinweis-z1 b { color: var(--rot); }
.hinweis.p-hoch .symbolkachel, .hinweis.p-sehr_hoch .symbolkachel { box-shadow: 0 0 0 3px var(--karte), 0 0 0 4.5px color-mix(in srgb, var(--ton) 45%, transparent); }
.erledigt-knopf {
  flex: none; width: 52px; border: 0; background: transparent; color: var(--text-3); cursor: pointer; display: grid; place-items: center;
  transition: color var(--dauer-s), background-color var(--dauer-s);
}
.erledigt-knopf .ring { width: 24px; height: 24px; border-radius: 50%; box-shadow: inset 0 0 0 1.6px currentColor; display: grid; place-items: center; transition: background-color var(--dauer-m), box-shadow var(--dauer-m); }
.erledigt-knopf .i { width: 14px; height: 14px; stroke-width: 2.6; opacity: 0; transition: opacity var(--dauer-s); }
.erledigt-knopf:hover { color: var(--gruen); }
.erledigt-knopf:hover .i { opacity: 1; }
.erledigt-knopf.fertig .ring { background: var(--gruen); box-shadow: none; color: #fff; }
.erledigt-knopf.fertig .i { opacity: 1; }
.hinweis.weg { animation: wegschieben var(--dauer-l) var(--kurve) forwards; }

/* Projektkarten */
.karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: var(--a3); }
.karten.einspaltig { grid-template-columns: 1fr; }
.pkarte {
  position: relative; display: flex; flex-direction: column; gap: 6px; padding: var(--a4) 40px var(--a4) var(--a4);
  background: var(--karte); border-radius: var(--r-l); box-shadow: var(--schatten-1);
  transition: transform var(--dauer-s) var(--kurve), box-shadow var(--dauer-m) var(--kurve);
}
.pkarte:hover { box-shadow: var(--schatten-2); }
.pkarte:active { transform: scale(.985); }
.pkarte::after { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--ton, transparent); }
.pk-kopf { display: flex; align-items: center; gap: var(--a2); flex-wrap: wrap; }
.pk-kopf .nr { font-size: var(--t-cap); color: var(--text-2); font-weight: 500; letter-spacing: .02em; }
.pk-titel { font-size: var(--t-headline); font-weight: 600; letter-spacing: -.015em; line-height: 1.3; overflow-wrap: anywhere; }
.pk-zeile { display: flex; align-items: center; gap: 6px; font-size: var(--t-fuss); color: var(--text-2); min-width: 0; }
.pk-zeile .i { color: var(--text-3); }
.pk-zeile span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk-meta { display: flex; flex-wrap: wrap; gap: 4px var(--a4); }
.pk-termin.offen { color: var(--akzent-text); }
.pk-hinweis { display: flex; gap: 6px; align-items: flex-start; font-size: var(--t-fuss); color: var(--text); background: var(--orange-weich); border-radius: var(--r-s); padding: 6px var(--a2); margin-top: 2px; }
.pk-hinweis .i { color: var(--orange); margin-top: 2px; }
.pk-hinweis span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pkarte .chev { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--text-3); }

/* Projektdetail */
.detail-kopf { display: flex; gap: var(--a2); flex-wrap: wrap; align-items: center; margin-top: var(--a2); }
.detail-kopf .nr { font-size: var(--t-fuss); color: var(--text-2); font-weight: 500; }
.raster-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: var(--a6); align-items: start; }
.raster-detail > div > .gruppe + .gruppentitel { margin-top: var(--a6); }
.speichern-leiste { display: flex; align-items: center; gap: var(--a3); margin-top: var(--a4); }

/* Zeitleiste (Einsätze) */
.zeitleiste { list-style: none; margin: 0; padding: 0; }
.tl { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: var(--a3); padding: var(--a3) var(--a4); background: var(--karte); }
.tl + .tl::before { content: ""; position: absolute; top: 0; left: 80px; right: 0; height: 1px; background: var(--linie); transform: scaleY(.6); }
.tl-datum { display: flex; flex-direction: column; align-items: center; line-height: 1.1; padding-top: 2px; }
.tl-tag { font-family: var(--schrift-titel); font-size: 22px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.tl-mon { font-size: var(--t-cap2); font-weight: 600; color: var(--akzent-text); text-transform: uppercase; letter-spacing: .04em; }
.tl-inhalt { min-width: 0; padding-left: var(--a3); border-left: 3px solid var(--ton, var(--grau)); }
.tl.e-vorschlag .tl-inhalt { border-left-style: dashed; }
.tl-kopf { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 2px var(--a2); }
.tl-kopf .tl-titel { flex: 1 1 190px; }
.tl-kopf .pill { margin-top: 1px; flex: none; }
.tl-titel { font-size: var(--t-sub); font-weight: 600; overflow-wrap: break-word; hyphens: auto; min-width: 0; }
.tl-projekt { font-size: var(--t-fuss); color: var(--akzent-text); font-weight: 500; display: block; margin-bottom: 1px; }
.tl-projekt:hover { text-decoration: underline; }
.tl-sub, .tl-notiz { font-size: var(--t-fuss); color: var(--text-2); overflow-wrap: anywhere; }
.tl .marken { margin-top: 6px; }
.tl.e-storniert { opacity: .55; }
.tl.e-storniert .tl-titel { text-decoration: line-through; }
.marken { display: flex; flex-wrap: wrap; gap: 4px; }
.marke-k { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: var(--r-voll); background: var(--fuellung-2); font-size: var(--t-cap); font-weight: 600; color: var(--text); }
.marke-k.geraet { background: transparent; box-shadow: inset 0 0 0 1px var(--linie-stark); color: var(--text-2); font-weight: 500; }
.marke-k.konflikt { background: var(--rot-weich); color: var(--rot); }

/* Chronik */
.chronik { list-style: none; margin: 0; padding: 0; }
.chronik li { position: relative; display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: var(--a3); padding: var(--a3) var(--a4); background: var(--karte); }
.chronik li + li::before { content: ""; position: absolute; top: 0; left: 46px; right: 0; height: 1px; background: var(--linie); transform: scaleY(.6); }
.chronik .punkt { width: 9px; height: 9px; border-radius: 50%; margin: 6px 0 0 4px; background: var(--ton, var(--grau)); }
.chronik .c-text { font-size: var(--t-sub); overflow-wrap: anywhere; }
.chronik .c-meta { font-size: var(--t-cap); color: var(--text-2); margin-top: 1px; }
details.mehr-anzeigen > summary { list-style: none; cursor: pointer; padding: var(--a3) var(--a4); color: var(--akzent-text); font-weight: 500; background: var(--karte); border-top: 1px solid var(--linie); }
details.mehr-anzeigen > summary::-webkit-details-marker { display: none; }
details.mehr-anzeigen[open] > summary { display: none; }

/* Einstellungen */
.profilkopf { display: flex; flex-direction: column; align-items: center; gap: var(--a2); padding: var(--a5) var(--a4); text-align: center; }
.profilkopf b { font-size: var(--t-titel3); font-weight: 600; }
.profilkopf span { color: var(--text-2); font-size: var(--t-sub); }
.einstellungen { max-width: 640px; }
.zeile .segment { margin-left: auto; }

/* Anmelden */
.anmelden { min-height: 100dvh; display: grid; place-items: center; padding: calc(var(--a5) + var(--sicher-oben)) var(--a5) calc(var(--a5) + var(--sicher-unten)); }
.anmelden-box { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: var(--a4); animation: einblenden var(--dauer-l) var(--kurve) both; }
.anmelden-box .marke { align-items: center; padding-bottom: var(--a3); }
.anmelden-box .marke img { width: 220px; }
.anmelden-box h1 { font-family: var(--schrift-titel); font-size: var(--t-titel1); font-weight: 700; text-align: center; letter-spacing: -.02em; }
.anmelden-box .untertitel { text-align: center; margin-top: -8px; }
.anmelden-box .meldung { text-align: center; }

/* ---------- 6 Plantafel ---------- */
.tafel-werkzeuge { display: flex; align-items: center; gap: var(--a3); flex-wrap: wrap; margin-bottom: var(--a4); }
.tafel-werkzeuge .zeitraum { display: flex; align-items: center; gap: var(--a1); margin-left: auto; }
.tafel-werkzeuge .zeitraum b { font-size: var(--t-headline); font-weight: 600; min-width: 0; padding: 0 var(--a2); white-space: nowrap; }
.rund {
  width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; border: 0; background: var(--karte); box-shadow: var(--schatten-1);
  color: var(--akzent-text); cursor: pointer; transition: transform var(--dauer-s);
}
.rund:active { transform: scale(.9); }
.rund .i { width: 18px; height: 18px; stroke-width: 2.2; }
.konfliktleiste { display: flex; align-items: center; gap: var(--a2); padding: var(--a2) var(--a3); margin-bottom: var(--a3); border-radius: var(--r-m); background: var(--rot-weich); color: var(--text); font-size: var(--t-fuss); }
.konfliktleiste .i { color: var(--rot); }

.tafel { --n: 7; --spalte: 1fr; --label: 230px; background: var(--karte); border-radius: var(--r-l); box-shadow: var(--schatten-1); overflow: hidden; }
.tafel-scroll { overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.tafel-innen { min-width: 100%; width: max-content; }
.modus-woche .tafel-innen { width: 100%; }
.tf-zeile { display: grid; grid-template-columns: var(--label) minmax(0, 1fr); position: relative; }
.tf-zeile + .tf-zeile { border-top: 1px solid var(--linie); }
.tf-kopf { position: sticky; top: 0; z-index: 3; background: var(--karte); border-bottom: 1px solid var(--linie-stark); }
.tf-label {
  position: sticky; left: 0; z-index: 2; display: flex; flex-direction: column; justify-content: center; gap: 1px; min-width: 0;
  padding: var(--a2) var(--a3) var(--a2) var(--a4); background: var(--karte); border-right: 1px solid var(--linie);
}
.tf-label .nr { font-size: var(--t-cap2); color: var(--text-2); font-weight: 600; letter-spacing: .02em; }
.tf-label b { font-size: var(--t-fuss); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
a.tf-label:hover b { color: var(--akzent-text); }
.tf-label.gruppe-titel { font-size: var(--t-cap); color: var(--text-2); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.tf-label .konflikt-punkt { color: var(--rot); font-size: var(--t-cap2); font-weight: 600; }
.tf-spur { position: relative; display: grid; grid-template-columns: repeat(var(--n), minmax(var(--spalte-min, 0px), 1fr)); min-height: 50px; }
.tf-raster { position: absolute; inset: 0; display: grid; grid-template-columns: inherit; pointer-events: none; }
.tf-raster > span { border-left: 1px solid var(--linie); }
.tf-raster > span:first-child { border-left: 0; }
.tf-raster > .we { background: var(--we); }
.tf-raster > .heute { background: var(--akzent-weich); }
.tf-balken { grid-column: 1 / -1; display: grid; grid-template-columns: inherit; grid-auto-rows: 28px; gap: 4px 0; padding: 8px 0; align-content: center; position: relative; z-index: 1; }
.tf-tage { min-height: 48px; }
.tf-tag { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; font-size: var(--t-cap2); color: var(--text-2); font-weight: 500; border-left: 1px solid var(--linie); }
.tf-tag:first-child { border-left: 0; }
.tf-tag b { font-size: var(--t-sub); font-weight: 600; color: var(--text); width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; font-variant-numeric: tabular-nums; }
.tf-tag.we { background: var(--we); }
.tf-tag.we b { color: var(--text-2); }
.tf-tag.heute { color: var(--akzent-text); }
.tf-tag.heute b { background: var(--akzent); color: var(--akzent-auf); }
.tf-kopf .tf-label { font-size: var(--t-cap); font-weight: 600; color: var(--text-2); }

.balken {
  position: relative; display: flex; align-items: center; gap: 4px; min-width: 0; margin: 0 3px; padding: 0 8px; border: 0; border-radius: 7px;
  background: var(--ton-weich); color: var(--ton-text); font-size: var(--t-cap); font-weight: 600; cursor: pointer; text-align: left;
  box-shadow: inset 3px 0 0 var(--ton); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: transform var(--dauer-s) var(--kurve), filter var(--dauer-s);
}
.balken span { overflow: hidden; text-overflow: ellipsis; }
.balken { contain: inline-size; } /* Balkentext bestimmt nie die Spaltenbreite */
.balken:hover { filter: brightness(.97) saturate(1.2); }
[data-theme="dark"] .balken:hover { filter: brightness(1.15); }
.balken:active { transform: scale(.97); }
.balken.es-geplant, .balken.es-zugesagt { background: var(--ton); color: #fff; box-shadow: none; }
[data-theme="dark"] .balken.es-geplant, [data-theme="dark"] .balken.es-zugesagt { color: #0d0d0f; }
.balken.es-vorschlag { background: repeating-linear-gradient(135deg, var(--fuellung-2) 0 6px, transparent 6px 12px); box-shadow: inset 0 0 0 1.5px var(--linie-stark); color: var(--text-2); border-radius: 7px; }
.balken.es-zugesagt::after { content: ""; position: absolute; right: 6px; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.balken.vorher { border-top-left-radius: 0; border-bottom-left-radius: 0; margin-left: 0; }
.balken.weiter { border-top-right-radius: 0; border-bottom-right-radius: 0; margin-right: 0; }
.balken.konflikt { outline: 2px solid var(--rot); outline-offset: -2px; }
.balken.konflikt::before { content: "!"; display: grid; place-items: center; flex: none; width: 15px; height: 15px; border-radius: 50%; background: var(--rot); color: #fff; font-size: 10px; font-weight: 800; }
.modus-monat .balken { font-size: var(--t-cap2); padding: 0 5px; margin: 0 1px; }
.modus-monat .tf-tag b { width: 22px; height: 22px; font-size: var(--t-fuss); }
.legende { display: flex; flex-wrap: wrap; gap: var(--a2) var(--a4); align-items: center; padding: var(--a3) var(--a4) 0; font-size: var(--t-cap); color: var(--text-2); }
.legende .muster { display: inline-block; width: 18px; height: 10px; border-radius: 3px; vertical-align: -1px; margin-right: 6px; background: var(--ton); }
.legende .muster.es-vorschlag { background: repeating-linear-gradient(135deg, var(--fuellung) 0 3px, transparent 3px 6px); box-shadow: inset 0 0 0 1px var(--linie-stark); }
.legende .muster.es-ausgesetzt, .legende .muster.es-erledigt { background: var(--ton-weich); box-shadow: inset 3px 0 0 var(--ton); }
.legende .muster.konflikt { background: transparent; box-shadow: inset 0 0 0 2px var(--rot); }
.agenda-tag { font-size: var(--t-fuss); font-weight: 600; color: var(--text-2); padding: var(--a2) var(--a4); background: var(--karte-2); position: sticky; top: calc(var(--navleiste) + var(--sicher-oben)); z-index: 1; }
.agenda-tag.heute { color: var(--akzent-text); }

/* ---------- 7 Overlays: Blatt (Sheet) & Toast ---------- */
.blatt-huelle { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; justify-content: center; }
.blatt-hg { position: absolute; inset: 0; background: var(--abdunkeln); animation: abblenden var(--dauer-m) var(--kurve) both; }
.blatt {
  position: relative; width: 100%; max-width: 560px; max-height: calc(100dvh - 60px - var(--sicher-oben)); overflow-y: auto;
  padding: var(--a2) var(--a4) calc(var(--a6) + var(--sicher-unten)); background: var(--bg); border-radius: 20px 20px 0 0;
  box-shadow: var(--schatten-3); animation: hochfahren var(--dauer-l) var(--kurve-feder) both;
}
.blatt-griff { width: 36px; height: 5px; border-radius: 3px; background: var(--fuellung); margin: 0 auto var(--a3); }
.blatt-kopf { display: flex; align-items: flex-start; gap: var(--a3); margin-bottom: var(--a4); padding: 0 var(--a1); }
.blatt-kopf h2 { font-family: var(--schrift-titel); font-size: var(--t-titel3); font-weight: 700; letter-spacing: -.02em; flex: 1; overflow-wrap: anywhere; }
.blatt-kopf .knopf-icon { width: 32px; height: 32px; background: var(--fuellung); color: var(--text-2); margin-top: -2px; }
.blatt-kopf .knopf-icon .i { width: 16px; height: 16px; stroke-width: 2.4; }
.blatt-huelle.zu .blatt { animation: runterfahren var(--dauer-m) var(--kurve) both; }
.blatt-huelle.zu .blatt-hg { animation: abblenden var(--dauer-m) var(--kurve) reverse both; }

.toast-bereich { position: fixed; left: 50%; top: calc(var(--a3) + var(--sicher-oben)); transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: var(--a2); pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: var(--a2); padding: 10px 18px 10px 12px; border-radius: var(--r-voll);
  background: var(--glas); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  box-shadow: var(--schatten-3), inset 0 0 0 1px var(--glas-rand); font-size: var(--t-sub); font-weight: 600; white-space: nowrap;
  animation: toastEin var(--dauer-l) var(--kurve-feder) both;
}
.toast .i { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--gruen); color: #fff; stroke-width: 3; }
.toast.fehler .i { background: var(--rot); }
.toast.weg { animation: toastAus var(--dauer-m) var(--kurve) both; }

/* ---------- 8 Responsive ---------- */
@media (max-width: 1180px) {
  .kennzahlen { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .raster-dash { grid-template-columns: minmax(0, 1fr); gap: var(--a8); }
}
@media (max-width: 1024px) {
  :root { --seitenleiste: 232px; }
  .inhalt { padding-left: calc(var(--a6) + var(--sicher-links)); padding-right: calc(var(--a6) + var(--sicher-rechts)); }
  .raster-detail { grid-template-columns: minmax(0, 1fr); }
  .tafel { --label: 190px; }
}
/* iPhone & kleine Tablets im Hochformat */
@media (max-width: 760px) {
  :root { --t-grosstitel: 32px; }
  .shell { grid-template-columns: minmax(0, 1fr); }
  .seitenleiste { display: none; }
  .nl-logo { display: flex; }
  .nur-mobil { display: grid !important; }
  .navleiste { padding-left: calc(var(--a4) + var(--sicher-links)); padding-right: calc(var(--a2) + var(--sicher-rechts)); }
  .inhalt { padding: 0 calc(var(--a4) + var(--sicher-rechts)) calc(var(--tabbar) + var(--a8) + var(--sicher-unten)) calc(var(--a4) + var(--sicher-links)); }
  .grosstitel { padding-bottom: var(--a4); }
  .kennzahlen { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kachel { min-height: 96px; padding: var(--a3); }
  .kachel-wert { font-size: 30px; }
  .karten { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .abschnitt { margin-top: var(--a6); }
  .raster-dash { margin-top: var(--a6); gap: var(--a6); }
  .syncstatus .st-rechts { display: none; }

  .tabbar {
    display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; z-index: 30;
    left: calc(var(--a3) + var(--sicher-links)); right: calc(var(--a3) + var(--sicher-rechts)); bottom: calc(var(--a2) + var(--sicher-unten));
    height: var(--tabbar); padding: 6px; border-radius: 32px;
    background: var(--glas); backdrop-filter: saturate(180%) blur(24px); -webkit-backdrop-filter: saturate(180%) blur(24px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .14), 0 1px 3px rgba(0, 0, 0, .08), inset 0 0 0 1px var(--glas-rand);
  }
  .tab {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: 26px;
    color: var(--text-2); font-size: 10.5px; font-weight: 600; letter-spacing: 0; transition: color var(--dauer-s), background-color var(--dauer-m) var(--kurve);
  }
  .tab .i { width: 23px; height: 23px; stroke-width: 1.9; }
  .tab.aktiv { color: var(--akzent-text); background: var(--fuellung-2); }
  .tab:active { transform: scale(.94); }
  .tab .abzeichen { position: absolute; top: 3px; left: calc(50% + 6px); min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px; background: var(--rot); color: #fff; font-size: 10.5px; font-weight: 700; display: grid; place-items: center; line-height: 1; }

  .raster-detail { gap: 0; }
  .speichern-leiste .knopf { flex: 1; }
  .tafel-werkzeuge .zeitraum { margin-left: 0; width: 100%; justify-content: space-between; }
  .tafel-werkzeuge .zeitraum b { flex: 1; min-width: 0; text-align: center; font-size: var(--t-sub); overflow: hidden; text-overflow: ellipsis; }
  .tafel-werkzeuge .segment { flex: 1; }
  .tafel { --label: 100%; border-radius: var(--r-l); }
  /* iPhone: Projektname über der Spur, damit die Tage die volle Breite haben */
  .tf-zeile { grid-template-columns: minmax(0, 1fr); }
  .tf-zeile .tf-label { border-right: 0; padding: var(--a2) var(--a3) 0; flex-direction: row; align-items: baseline; justify-content: flex-start; gap: var(--a2); background: transparent; }
  .tf-kopf .tf-label { display: none; }
  .tf-balken { padding: 6px 0 10px; }
  .modus-monat { --spalte-min: 30px; }
  .tf-tag b { width: 24px; height: 24px; font-size: var(--t-fuss); }
  .blatt { border-radius: 16px 16px 0 0; }
}
@media (min-width: 761px) {
  .modus-monat { --spalte-min: 34px; }
  .blatt-huelle { align-items: center; }
  .blatt { border-radius: 20px; padding-bottom: var(--a6); animation-name: einblendenGross; }
  .blatt-huelle.zu .blatt { animation: abblendenGross var(--dauer-m) var(--kurve) both; }
  .blatt-griff { display: none; }
}
/* Querformat iPhone: Tabbar schmaler */
@media (max-width: 960px) and (max-height: 500px) and (orientation: landscape) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .seitenleiste { display: none; }
  .nl-logo { display: flex; }
  .tabbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; z-index: 30; left: 50%; transform: translateX(-50%); width: min(520px, 80vw);
    bottom: calc(6px + var(--sicher-unten)); height: 52px; padding: 4px; border-radius: 28px;
    background: var(--glas); backdrop-filter: saturate(180%) blur(24px); -webkit-backdrop-filter: saturate(180%) blur(24px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .14), inset 0 0 0 1px var(--glas-rand); }
  .tab { display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 6px; border-radius: 24px; color: var(--text-2); font-size: var(--t-cap); font-weight: 600; }
  .tab .i { width: 20px; height: 20px; }
  .tab.aktiv { color: var(--akzent-text); background: var(--fuellung-2); }
  .tab .abzeichen { display: none; }
  .inhalt { padding-bottom: calc(80px + var(--sicher-unten)); }
}
@media (hover: none) {
  .kachel:hover, .pkarte:hover { box-shadow: var(--schatten-1); }
}

/* ---------- 9 Bewegung ---------- */
.ansicht-ein { animation: einblenden var(--dauer-l) var(--kurve) backwards; }   /* nicht „both“: eine stehen bleibende Transformation macht <main> zum Bezugsrahmen für position:fixed → Blätter im Bereich Termine landen außerhalb des Bildschirms */
.ansicht-ein .kachel, .ansicht-ein .pkarte { animation: einblenden var(--dauer-l) var(--kurve) both; }
.ansicht-ein .kachel:nth-child(2), .ansicht-ein .pkarte:nth-child(2) { animation-delay: 30ms; }
.ansicht-ein .kachel:nth-child(3), .ansicht-ein .pkarte:nth-child(3) { animation-delay: 60ms; }
.ansicht-ein .kachel:nth-child(4), .ansicht-ein .pkarte:nth-child(4) { animation-delay: 90ms; }
.ansicht-ein .kachel:nth-child(5), .ansicht-ein .pkarte:nth-child(5) { animation-delay: 120ms; }
.ansicht-ein .kachel:nth-child(6), .ansicht-ein .pkarte:nth-child(n+6) { animation-delay: 150ms; }
@keyframes einblenden { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes einblendenGross { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
@keyframes abblendenGross { to { opacity: 0; transform: scale(.97); } }
@keyframes abblenden { from { opacity: 0; } to { opacity: 1; } }
@keyframes hochfahren { from { transform: translateY(100%); } to { transform: none; } }
@keyframes runterfahren { to { transform: translateY(100%); } }
@keyframes toastEin { from { opacity: 0; transform: translateY(-16px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes toastAus { to { opacity: 0; transform: translateY(-10px) scale(.97); } }
@keyframes wegschieben { to { opacity: 0; transform: translateX(24px); } }
@keyframes drehen { to { transform: rotate(360deg); } }
@keyframes pulsieren { 50% { box-shadow: 0 0 0 7px transparent; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
}

/* ---------- 10 Logo hell/dunkel ---------- */
.logo-dunkel { display: none !important; }
[data-theme="dark"] .logo-hell { display: none !important; }
[data-theme="dark"] .logo-dunkel { display: block !important; }

/* ---------- 11 Plantafel groß + Drag & Drop (24.11.2026) ---------- */
.inhalt.breit { max-width: 1680px; }
.tafel { --label: 270px; }
.tafel-innen { width: max-content; min-width: 100%; }
.modus-woche .tafel-innen { width: max-content; }
.modus-woche { --spalte-min: 0px; }
.modus-zwei { --spalte-min: 52px; }
.modus-monat { --spalte-min: 42px; }
.tf-tage { min-height: 70px; }
.tf-tag { gap: 3px; font-size: var(--t-cap); text-transform: uppercase; letter-spacing: .04em; position: relative; }
.tf-tag b { width: 34px; height: 34px; font-size: 18px; letter-spacing: -.01em; text-transform: none; }
.tf-tag i { position: absolute; top: 4px; left: 6px; font-style: normal; font-size: 10px; font-weight: 700; color: var(--akzent-text); letter-spacing: 0; text-transform: none; }
.tf-tag.wochenstart, .tf-raster > .wochenstart { border-left: 1px solid var(--linie-stark); }
.tf-tage .tf-tag:first-child, .tf-raster > span:first-child { border-left: 0; }
.tf-label { padding: var(--a3) var(--a4) var(--a3) var(--a5); gap: 3px; }
.tf-label b { font-size: var(--t-sub); display: flex; align-items: center; gap: 6px; }
.tf-label .nr { font-size: var(--t-cap); }
.tf-spur { min-height: 84px; }
.tf-balken { grid-auto-rows: 48px; gap: 8px 0; padding: 14px 0; grid-auto-flow: row dense; }
.modus-monat .tf-balken { grid-auto-rows: 36px; gap: 6px 0; padding: 10px 0; }
.tf-leer .tf-spur { min-height: 120px; }
.tf-leer .tf-label b { color: var(--text-2); }

.balken { align-items: center; gap: 6px; margin: 0 4px; padding: 0 12px; border-radius: 10px; font-size: var(--t-fuss); user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: pan-x pan-y; }
.balken .b-text { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.2; }
.balken .b-titel { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.balken .b-meta { font-size: var(--t-cap2); font-weight: 500; opacity: .8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.balken > .i { flex: none; opacity: .85; }
.modus-monat .balken { padding: 0 7px; margin: 0 2px; border-radius: 8px; }
.modus-monat .balken .b-meta { display: none; }
.modus-woche .balken .b-titel, .modus-zwei .balken .b-titel { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.modus-woche .tf-balken, .modus-zwei .tf-balken { grid-auto-rows: 52px; }
.balken.es-zugesagt::after { display: none; }
.balken.ziehbar { cursor: grab; }
.griff { position: absolute; top: 0; bottom: 0; width: 12px; z-index: 2; cursor: ew-resize; }
.griff-l { left: 0; } .griff-r { right: 0; }
.griff::after { content: ""; position: absolute; top: 50%; width: 3px; height: 16px; margin-top: -8px; border-radius: 2px; background: currentColor; opacity: 0; transition: opacity var(--dauer-s); }
.griff-l::after { left: 4px; } .griff-r::after { right: 4px; }
.balken.ziehbar:hover .griff::after { opacity: .55; }
.balken.gedrueckt { transform: scale(.97); }
.balken.zieht { cursor: grabbing; z-index: 6; transform-origin: center; box-shadow: 0 10px 26px rgba(0, 0, 0, .22), 0 0 0 2px var(--akzent); filter: none; transition: none; opacity: .95; }
body.zieht-gerade, body.zieht-gerade * { cursor: grabbing !important; user-select: none !important; -webkit-user-select: none !important; }
.zieh-info {
  position: fixed; z-index: 300; pointer-events: none; transform: translate(-50%, calc(-100% - 18px));
  padding: 7px 12px; border-radius: var(--r-voll); background: var(--text); color: var(--bg); font-size: var(--t-fuss); font-weight: 600; white-space: nowrap;
  box-shadow: var(--schatten-3);
}
.tafel-tipp { display: flex; align-items: flex-start; gap: 6px; margin: 0; padding: var(--a2) var(--a4) var(--a3); font-size: var(--t-cap); color: var(--text-2); }
.tafel-tipp .i { margin-top: 2px; color: var(--akzent-text); }
.stepper { margin-left: auto; display: flex; gap: var(--a2); }
.stepper .rund { width: 38px; height: 38px; font-size: 20px; font-weight: 600; background: var(--fuellung-2); box-shadow: none; }
.stepper .rund:disabled { opacity: .35; cursor: default; }
.toast { pointer-events: auto; }
.toast-aktion { margin-left: 6px; padding: 4px 10px; border: 0; border-radius: var(--r-voll); background: var(--akzent-weich); color: var(--akzent-text); font: inherit; font-size: var(--t-fuss); font-weight: 700; cursor: pointer; }
@media (max-width: 1024px) { .tafel { --label: 210px; } }
@media (max-width: 760px) {
  .tafel { --label: 100%; }
  .modus-woche { --spalte-min: 78px; }
  .modus-woche .balken .b-meta { display: none; }
  .modus-woche .balken { padding: 0 8px; }
  .modus-zwei { --spalte-min: 54px; }
  .modus-monat { --spalte-min: 40px; }
  .tf-zeile .tf-label { position: sticky; left: 0; width: min(calc(100vw - 32px), 100%); padding: var(--a3) var(--a3) 0; }
  .tf-tage { min-height: 62px; }
  .tf-tag b { width: 30px; height: 30px; font-size: 16px; }
  .tf-spur { min-height: 72px; }
  .tf-balken { grid-auto-rows: 46px; padding: 8px 0 12px; }
  .tafel-werkzeuge .segment { flex: 1 1 100%; }
  .tafel-werkzeuge .segment + .segment { flex: 1 1 100%; }
}

/* ---------- 12 Plantafel im Plancraft-Stil + selbst einplanen (25.11.2026) ---------- */
/* Projektfarben: jede Baustelle hat eine feste Farbe (aus der Projekt-ID), wie in Plancraft */
.pf-0 { --pf: #3b7ddd; } .pf-1 { --pf: #2e9d5b; } .pf-2 { --pf: #d9821c; } .pf-3 { --pf: #8e5bd0; }
.pf-4 { --pf: #d1495b; } .pf-5 { --pf: #1f9aa8; } .pf-6 { --pf: #a8854a; } .pf-7 { --pf: #5d6bd8; }
.pf-8 { --pf: #c2569b; } .pf-9 { --pf: #5b8c2a; } .pf-10 { --pf: #b5651d; } .pf-11 { --pf: #4a7a99; }
.balken[class*="pf-"].es-geplant, .balken[class*="pf-"].es-zugesagt,
[data-theme="dark"] .balken[class*="pf-"].es-geplant, [data-theme="dark"] .balken[class*="pf-"].es-zugesagt { background: var(--pf); color: #fff; box-shadow: none; }
.balken[class*="pf-"].es-vorschlag {
  background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--pf) 22%, transparent) 0 6px, transparent 6px 12px), color-mix(in srgb, var(--pf) 10%, var(--karte));
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--pf) 55%, transparent); color: var(--text); border-radius: 10px;
}
.balken[class*="pf-"].es-ausgesetzt { background: var(--orange-weich); color: var(--text-2); box-shadow: inset 3px 0 0 var(--orange); }
.balken[class*="pf-"].es-zugesagt { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .55); }
.balken.zieht { pointer-events: none; }

/* Abschnitte (Projekte · Mitarbeiter · Geräte) und Kolonnen */
.tf-abschnitt { background: var(--fuellung-2); }
.tf-abschnitt .tf-spur { min-height: 36px; }
.tf-abschnitt .tf-label { padding-top: var(--a2); padding-bottom: var(--a2); flex-direction: row; align-items: center; justify-content: space-between; }
.tf-abschnitt .tf-label b { font-size: var(--t-cap); text-transform: uppercase; letter-spacing: .06em; color: var(--text-2); }
.tf-unterkopf .tf-spur { min-height: 26px; }
.tf-unterkopf .tf-label { padding-top: 6px; padding-bottom: 2px; font-size: var(--t-cap2); font-weight: 600; color: var(--akzent-text); }
.tf-zeile.ma .tf-spur { min-height: 64px; }
.tf-zeile.ma .tf-balken { padding: 8px 0; }
.tf-leer.klein .tf-spur { min-height: 56px; }
.tf-label .farbpunkt { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--pf); margin-right: 6px; vertical-align: 0; }
.tf-spur.planbar { cursor: cell; }
.tf-spur.planbar:hover { background: color-mix(in srgb, var(--akzent) 3%, transparent); }
.tf-spur.ziel { background: var(--akzent-weich); box-shadow: inset 0 0 0 2px var(--akzent); }
.auswahl {
  position: absolute; top: 8px; bottom: 8px; z-index: 2; pointer-events: none; display: flex; align-items: center; justify-content: center;
  border-radius: 10px; background: var(--akzent-weich); box-shadow: inset 0 0 0 2px var(--akzent);
  color: var(--akzent-text); font-size: var(--t-cap); font-weight: 700; white-space: nowrap; overflow: hidden;
}
.abwesend {
  display: flex; align-items: center; gap: 5px; margin: 0 4px; padding: 0 10px; min-width: 0; border-radius: 10px; overflow: hidden; white-space: nowrap;
  font-size: var(--t-cap); font-weight: 600; color: var(--text-2); cursor: default;
  background: repeating-linear-gradient(45deg, var(--grau-weich) 0 6px, transparent 6px 12px); box-shadow: inset 0 0 0 1px var(--linie-stark);
}
.abwesend span { overflow: hidden; text-overflow: ellipsis; }
.legende .muster.abw { background: repeating-linear-gradient(45deg, var(--grau-weich) 0 3px, transparent 3px 6px); box-shadow: inset 0 0 0 1px var(--linie-stark); }
.legende .leg-hinweis { margin-left: auto; }

/* Layout: Projektliste links, Tafel rechts */
.tafel-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--a4); align-items: start; }
.tafel-layout.mit-leiste { grid-template-columns: 270px minmax(0, 1fr); }
.planleiste {
  background: var(--karte); border-radius: var(--r-l); box-shadow: var(--schatten-1); padding: var(--a3);
  position: sticky; top: calc(var(--navleiste) + var(--sicher-oben) + 12px); max-height: calc(100vh - var(--navleiste) - 40px);
  display: flex; flex-direction: column; gap: var(--a2); min-width: 0;
}
.planleiste .suchfeld { margin: 0; }
.pl-kopf { display: flex; align-items: baseline; justify-content: space-between; padding: 0 var(--a1); }
.pl-kopf b { font-size: var(--t-headline); font-weight: 700; }
.pl-kopf .nr { font-size: var(--t-cap); color: var(--text-2); }
.pl-liste { overflow-y: auto; display: flex; flex-direction: column; gap: 6px; min-height: 0; padding: 2px; margin: -2px; }
.pl-gruppe { font-size: var(--t-cap2); text-transform: uppercase; letter-spacing: .05em; color: var(--text-2); font-weight: 600; margin: var(--a2) 0 0; padding: 0 var(--a1); }
.pl-gruppe span { color: var(--text-3, var(--text-2)); font-weight: 500; }
.pl-karte {
  display: flex; gap: 10px; align-items: stretch; padding: 8px 10px; border-radius: 10px; background: var(--bg);
  cursor: grab; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: pan-y;
  transition: background var(--dauer-s), transform var(--dauer-s);
}
.pl-karte:hover { background: color-mix(in srgb, var(--pf) 10%, var(--bg)); }
.pl-karte:focus-visible { outline: 2px solid var(--akzent); outline-offset: 1px; }
.pl-karte.gedrueckt { transform: scale(.97); }
.pl-karte.zieht { opacity: .45; }
.pl-karte[hidden] { display: none; }
.pl-farbe { width: 4px; border-radius: 2px; background: var(--pf); flex: none; }
.pl-text { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.pl-text .nr { font-size: var(--t-cap2); color: var(--text-2); font-weight: 600; }
.pl-text b { font-size: var(--t-fuss); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-text .pl-sub { font-size: var(--t-cap2); color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-tipp { display: flex; gap: 6px; align-items: flex-start; font-size: var(--t-cap); color: var(--text-2); margin: 0; padding: var(--a1) var(--a1) 0; }
.pl-tipp .i { flex: none; margin-top: 2px; color: var(--akzent-text); }
.pl-geist {
  position: fixed; z-index: 200; pointer-events: none; transform: translate(-50%, -130%);
  padding: 8px 12px; border-radius: 10px; background: var(--pf); color: #fff; font-size: var(--t-fuss); font-weight: 600;
  max-width: 260px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 10px 26px rgba(0, 0, 0, .25);
}
.knopf-icon.aktiv { background: var(--akzent-weich); color: var(--akzent-text); }
.abschnitt-kopf .rechts { margin-left: auto; align-self: center; }

/* Einsatz-Formular */
.feld-reihe { display: grid; grid-template-columns: 1fr 1fr; position: relative; }
.feld-reihe::before { content: ""; position: absolute; top: 0; left: var(--a4); right: 0; height: 1px; background: var(--linie); transform: scaleY(.6); }
.feld-reihe .feld + .feld::before { display: none; }
.feld input[type="date"] { min-height: 40px; }
.wahl-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: var(--a3) var(--a4); align-items: center; }
.wahl-chips .kolonne { width: 100%; font-size: var(--t-cap2); color: var(--text-2); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; margin-top: 4px; }
.wahl-chips .kolonne:first-child { margin-top: 0; }
.wahl-chip { position: relative; display: inline-flex; }
.wahl-chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.wahl-chip > span {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: var(--r-voll);
  background: var(--fuellung); font-size: var(--t-fuss); font-weight: 600; transition: background var(--dauer-s), color var(--dauer-s);
}
.wahl-chip small { font-size: var(--t-cap2); font-weight: 500; opacity: .85; }
.wahl-chip small:empty { display: none; }
.wahl-chip.warn > span { box-shadow: inset 0 0 0 1.5px var(--orange); }
.wahl-chip input:checked + span { background: var(--akzent); color: var(--akzent-auf); }
.wahl-chip input:focus-visible + span { outline: 2px solid var(--akzent); outline-offset: 2px; }
.form-knoepfe { display: flex; gap: var(--a2); flex-wrap: wrap; align-items: center; margin: var(--a4) 0 var(--a2); }
.form-knoepfe .rechts { margin-left: auto; }
.form-knoepfe .meldung { flex-basis: 100%; }
.knopf.gefahr-zweit { background: var(--rot-weich); color: var(--rot); }
.knopf.gefahr-zweit.bestaetigen { background: var(--rot); color: #fff; }
.blatt form .banner { margin-bottom: var(--a3); }

@media (max-width: 1024px) { .tafel-layout.mit-leiste { grid-template-columns: 220px minmax(0, 1fr); } }
@media (max-width: 760px) {
  .tafel-layout.mit-leiste { grid-template-columns: minmax(0, 1fr); }
  .planleiste, .nur-breit { display: none !important; }
  .tf-zeile.ma .tf-spur { min-height: 56px; }
  .tf-abschnitt .tf-spur, .tf-unterkopf .tf-spur { display: none; }
  .tf-abschnitt .tf-label { padding: var(--a2) var(--a3); }
  .tf-unterkopf .tf-label { padding: 6px var(--a3) 0; }
  .legende .leg-hinweis { margin-left: 0; }
  .feld-reihe { grid-template-columns: 1fr; }
}

/* ---------- 13 KI-Umplanung anfordern (26.11.2026) ---------- */
.anfragen { list-style: none; margin: 0; padding: 0; }
.anfragen li { padding: var(--a3) var(--a4); display: flex; flex-direction: column; gap: 6px; position: relative; }
.anfragen li + li::before { content: ""; position: absolute; top: 0; left: var(--a4); right: 0; height: 1px; background: var(--linie); transform: scaleY(.6); }
.af-kopf { display: flex; align-items: center; gap: var(--a2); flex-wrap: wrap; }
.af-kopf .zeit { font-size: var(--t-cap); color: var(--text-2); }
.af-projekt { font-size: var(--t-fuss); font-weight: 600; color: var(--akzent-text); }
.af-projekt:hover { text-decoration: underline; }
.af-text { font-size: var(--t-sub); line-height: 1.4; overflow-wrap: anywhere; }
.af-antwort { display: flex; gap: 8px; align-items: flex-start; font-size: var(--t-fuss); line-height: 1.4; color: var(--text); background: var(--blau-weich); border-radius: var(--r-m); padding: var(--a2) var(--a3); overflow-wrap: anywhere; }
.af-antwort .i { flex: none; margin-top: 2px; color: var(--blau); }

/* ---------- 14 Adressen (26.11.2026) ---------- */
.tf-label .tf-ort { display: flex; align-items: center; gap: 4px; font-size: var(--t-cap2); color: var(--text-2); font-weight: 500; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; min-width: 0; }
.tf-label .tf-ort .i { flex: none; }
.ort-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; overflow-wrap: anywhere; }
.ort-text .bez { font-size: var(--t-cap); color: var(--text-2); }
@media (max-width: 760px) { .tf-label .tf-ort { display: none; } }

/* ---------- Bereich „Termine“ (assistent/) ---------- */
[data-as-host] { display: block; min-height: 50vh; }
[data-as-host]:not([data-bereit]) { visibility: hidden; }
body.as-blatt-offen { overflow: hidden; }
@media (max-width: 760px) { .tabbar.tabs-6 { grid-template-columns: repeat(6, 1fr); } .tabbar.tabs-5 { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 761px) { .tabbar.tabs-6 { grid-template-columns: repeat(6, 1fr); } .tabbar.tabs-5 { grid-template-columns: repeat(5, 1fr); } }
