:root { --rot:#d7261e; --rot-dunkel:#b81f18; --schwarz:#111; --grau:#6b6b6b; --linie:#e5e5e5; --hell:#f5f5f5;
  --flaeche:#fafafa; --gruen:#1f8a3b; --gelb:#d49a00; --ampelrot:#c62828; --nav:220px; }
* { box-sizing:border-box; }
body { margin:0; font-family:Outfit, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif; color:var(--schwarz); background:var(--flaeche); font-size:15px; }
a { color:var(--rot); text-decoration:none; } a:hover { text-decoration:underline; }

/* Navigation links */
aside.seite { position:fixed; inset:0 auto 0 0; width:var(--nav); background:var(--schwarz); color:#fff; overflow-y:auto; padding:18px 0; }
.logo { display:block; padding:0 20px 18px; color:#fff; border-bottom:1px solid #2a2a2a; margin-bottom:10px; }
.logo:hover { text-decoration:none; } .logo b { color:var(--rot); display:block; letter-spacing:1px; font-size:18px; } .logo span { font-size:14px; color:#ddd; }
.nav-titel { font-size:11px; text-transform:uppercase; letter-spacing:.8px; color:#888; padding:16px 20px 6px; }
nav a { display:flex; align-items:center; justify-content:space-between; color:#ddd; padding:9px 20px; border-left:3px solid transparent; }
nav a:hover { background:#1d1d1d; color:#fff; text-decoration:none; }
nav a.aktiv { background:#1d1d1d; color:#fff; border-left-color:var(--rot); font-weight:500; }
nav b { background:var(--rot); color:#fff; border-radius:9px; padding:0 7px; font-size:12px; font-weight:500; } nav b:empty { display:none; }
main { margin-left:var(--nav); padding:26px 32px 80px; min-height:100vh; }

h1 { font-size:26px; margin:0 0 18px; } h2 { font-size:17px; margin:0 0 12px; } h3 { font-size:14px; margin:14px 0 8px; }
.kopf { display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin-bottom:18px; } .kopf h1 { margin:0; } .kopf .rechts { margin-left:auto; }
.leiste { display:flex; gap:10px; align-items:center; flex-wrap:wrap; margin-bottom:14px; } .leiste .rechts { margin-left:auto; }
input, select, textarea { font:inherit; padding:8px 10px; border:1px solid #cfcfcf; border-radius:6px; background:#fff; color:inherit; }
input:focus, select:focus, textarea:focus { outline:2px solid var(--rot); outline-offset:-1px; border-color:var(--rot); }
textarea { width:100%; min-height:90px; resize:none; }
button, .btn { font:inherit; font-weight:500; padding:8px 14px; border-radius:8px; border:1px solid var(--schwarz); background:#fff; color:var(--schwarz); cursor:pointer; display:inline-block; white-space:nowrap; }
button:hover, .btn:hover { background:var(--hell); text-decoration:none; }
button.primaer, .btn.primaer { background:var(--rot); border-color:var(--rot); color:#fff; font-weight:600; } /* Knöpfe A */ button.primaer:hover, .btn.primaer:hover { background:var(--rot-dunkel); }
button.klein, .btn.klein { padding:4px 9px; font-size:13px; } button.link { border:none; background:none; color:var(--rot); padding:0; font-weight:400; }
button.leise { border-color:#d5d5d5; color:#555; }
button:disabled { opacity:.5; cursor:default; }

table { width:100%; border-collapse:collapse; background:#fff; } th, td { text-align:left; padding:9px 10px; border-bottom:1px solid var(--linie); vertical-align:middle; }
th { font-size:11.5px; text-transform:uppercase; letter-spacing:.4px; color:var(--grau); font-weight:500; background:#fff; position:sticky; top:0; }
tr.klick { cursor:pointer; } tr.klick:hover td { background:#fff6f6; }
td.zahl, th.zahl { text-align:right; white-space:nowrap; }
.tabelle { background:#fff; border:1px solid var(--linie); border-radius:10px; overflow:auto; }
.tabelle tr:last-child td { border-bottom:none; }
.klein-text { color:var(--grau); font-size:13px; }

.raster { display:grid; gap:18px; align-items:start; } .raster.zwei { grid-template-columns:repeat(2, minmax(0, 1fr)); }
.raster.material { grid-template-columns:300px minmax(0, 1fr); }
@media (max-width:1100px) { .raster.zwei, .raster.material { grid-template-columns:1fr; } }
.karte { background:#fff; border:1px solid var(--linie); border-radius:10px; padding:18px; }
.karte > h2 { display:flex; align-items:center; gap:8px; } .karte > h2 .rechts { margin-left:auto; }
.kacheln { display:grid; grid-template-columns:repeat(auto-fill, minmax(190px, 1fr)); gap:14px; margin-bottom:22px; }
.kachel { background:#fff; border:1px solid var(--linie); border-radius:10px; padding:16px; color:inherit; }
.kachel:hover { border-color:var(--schwarz); text-decoration:none; }
.kachel .zahl { font-size:30px; font-weight:700; } .kachel.warn .zahl { color:var(--rot); }

.formular { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:12px 16px; }
.formular.drei { grid-template-columns:repeat(3, minmax(0, 1fr)); }
.formular label { display:flex; flex-direction:column; gap:4px; font-size:13px; color:var(--grau); }
.formular label.breit, .formular .breit { grid-column:1 / -1; }
.formular input, .formular select, .formular textarea { color:var(--schwarz); width:100%; }
@media (max-width:700px) { .formular, .formular.drei { grid-template-columns:1fr; } }
.zaehler { font-size:12px; color:var(--grau); text-align:right; } .zaehler.voll { color:var(--rot); font-weight:700; }

.ampel { display:inline-flex; align-items:center; gap:6px; white-space:nowrap; font-size:13px; }
.ampel::before { content:""; width:10px; height:10px; border-radius:50%; background:#bbb; }
.ampel.gruen::before { background:var(--gruen); } .ampel.gelb::before { background:var(--gelb); } .ampel.rot::before { background:var(--ampelrot); }
.marke { display:inline-block; font-size:11px; font-weight:500; padding:2px 8px; border-radius:10px; background:var(--hell); border:1px solid var(--linie); white-space:nowrap; }
.marke.rot { background:var(--rot); border-color:var(--rot); color:#fff; } .marke.schwarz { background:var(--schwarz); color:#fff; border-color:var(--schwarz); }
.bild-mini { width:44px; height:44px; object-fit:contain; border:1px solid var(--linie); border-radius:6px; background:#fff; display:block; }
.sbild .bild-mini { object-fit:cover; border:none; } /* Schlüsselfotos quadratisch zugeschnitten */
.platz { width:44px; height:44px; border:1px dashed #ccc; border-radius:6px; }

/* Drag & Drop */
.ablage { border:2px dashed #cfcfcf; border-radius:10px; padding:16px; text-align:center; color:var(--grau); font-size:13px; cursor:pointer; background:#fff; transition:all .15s; position:relative; }
.ablage:hover { border-color:#999; } .ablage.drueber { border-color:var(--rot); background:#fff4f4; color:var(--rot); }
.ablage.bild { min-height:220px; display:flex; align-items:center; justify-content:center; padding:10px; }
.ablage.bild img { max-width:100%; max-height:260px; object-fit:contain; display:block; }
.ablage .symbol { font-size:26px; display:block; margin-bottom:4px; }
.ablage.lädt::after { content:"wird hochgeladen …"; position:absolute; inset:0; display:flex; align-items:center; justify-content:center; background:rgba(255,255,255,.85); color:var(--schwarz); border-radius:8px; }
.datei-zeile { display:flex; align-items:center; gap:8px; background:var(--hell); border-radius:8px; padding:8px 10px; font-size:13px; }
.datei-zeile a { flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

/* Angebotskarten */
.angebote { display:grid; grid-template-columns:repeat(auto-fill, minmax(300px, 1fr)); gap:14px; }
.angebot { background:#fff; border:1px solid var(--linie); border-radius:10px; padding:16px; display:flex; flex-direction:column; gap:10px; }
.angebot.gilt { border-color:var(--rot); box-shadow:0 0 0 1px var(--rot) inset; }
.angebot .preis { font-size:24px; font-weight:700; } .angebot .zeile { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.angebot .zeile .rechts { margin-left:auto; } .angebot hr { border:none; border-top:1px solid var(--linie); margin:2px 0; width:100%; }
.angebot textarea { min-height:54px; font-size:13px; }
.sterne { display:inline-flex; } .sterne button { border:none; background:none; font-size:22px; padding:0 1px; color:#d0d0d0; line-height:1; }
.sterne button.an { color:var(--rot); } .sterne button:hover { background:none; }
.stern-anzeige { color:var(--rot); letter-spacing:1px; } .stern-anzeige i { color:#d0d0d0; font-style:normal; }

.hinweis { background:#fff4f4; border-left:4px solid var(--rot); padding:10px 14px; border-radius:4px; margin:0 0 14px; }
.ok-box { background:#f1f8f3; border-left:4px solid var(--gruen); padding:10px 14px; border-radius:4px; margin:0 0 14px; }
.leer { color:var(--grau); padding:30px 0; text-align:center; }
pre.bestelltext { white-space:pre-wrap; background:#fff; border:1px solid var(--linie); padding:16px; border-radius:10px; font-family:inherit; margin:0; }
#toast { position:fixed; bottom:20px; left:calc(50% + var(--nav) / 2); transform:translateX(-50%); background:var(--schwarz); color:#fff; padding:10px 18px; border-radius:8px; opacity:0; transition:opacity .2s; pointer-events:none; z-index:50; }
#toast.zeigen { opacity:1; } #toast.fehler { background:var(--rot); }
#toast.zeigen button { pointer-events:auto; } /* „Rückgängig“ in der Meldung klickbar (Dom 28.10.2026: Klick ging durch die Meldung auf den Knopf darunter) */
body:has(.pe) #toast { bottom:84px; } /* im Posteingang über der Knopfleiste der Mail, sonst liegt „Rückgängig“ auf „Aufgabe“ (28.10.2026) */
dialog { border:none; border-radius:12px; padding:22px; width:min(860px, 94vw); box-shadow:0 10px 40px rgba(0,0,0,.25); }
dialog::backdrop { background:rgba(0,0,0,.4); }
.seiten { display:flex; gap:8px; align-items:center; margin-top:12px; }

@media (max-width:760px) {
  aside.seite { position:static; width:auto; } main { margin-left:0; padding:18px 14px; }
  nav { display:flex; flex-wrap:wrap; } .nav-titel { display:none; } nav a { padding:8px 12px; }
  table { display:block; overflow-x:auto; white-space:nowrap; } #toast { left:50%; }
}
@media print { aside.seite, .leiste, button, .nicht-drucken { display:none !important; } main { margin:0; padding:0; } body { background:#fff; } }
input[type=range] { accent-color:var(--rot); }

/* Eigene Auswahlfelder statt der macOS-Standardfelder */
.auswahl { position:relative; display:inline-block; min-width:160px; vertical-align:middle; }
.formular .auswahl, .auswahl.vorschlag { display:block; width:100%; }
.auswahl > select { position:absolute; inset:0; opacity:0; pointer-events:none; width:100%; }
.auswahl-knopf { width:100%; display:flex; align-items:center; justify-content:space-between; gap:10px; text-align:left;
  font-weight:400; border:1px solid #cfcfcf; border-radius:6px; padding:8px 10px; background:#fff; color:var(--schwarz); }
.auswahl-knopf span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.auswahl-knopf svg { flex:none; color:var(--grau); }
.auswahl-knopf:hover { background:#fff; border-color:#999; }
.auswahl-knopf:focus { outline:2px solid var(--rot); outline-offset:-1px; border-color:var(--rot); }
.auswahl-knopf.leer span { color:var(--grau); } .auswahl-knopf.ungueltig { border-color:var(--rot); }
.auswahl-liste { position:fixed; max-width:460px; z-index:60; background:#fff;
  border:1px solid var(--linie); border-radius:8px; box-shadow:0 8px 24px rgba(0,0,0,.14); padding:4px; }
.auswahl-suche { width:100%; margin-bottom:4px; }
.auswahl-eintraege { max-height:280px; overflow-y:auto; }
.auswahl-eintrag { display:flex; justify-content:space-between; gap:14px; padding:7px 10px; border-radius:5px; cursor:pointer; white-space:nowrap; }
.auswahl-eintrag.aktiv { background:#fff0f0; } .auswahl-eintrag.gewaehlt { font-weight:500; color:var(--rot); }
.auswahl-eintrag .klein-text { font-weight:400; }
.auswahl-leer { padding:8px 10px; color:var(--grau); font-size:13px; }
input[type=checkbox] { accent-color:var(--rot); width:16px; height:16px; vertical-align:middle; cursor:pointer; }
input[type=radio] { accent-color:var(--rot); } /* Dom 25.11.2026: Auswahlpunkte in Rot statt Blau (CI) */
.haken { display:flex; align-items:center; gap:8px; margin-top:10px; font-size:13px; cursor:pointer; }

/* Dialoge */
dialog.klein { width:min(520px, 94vw); } dialog.breit { width:min(1100px, 96vw); }
.frage-zeile { display:flex; align-items:center; gap:10px; flex-wrap:wrap; font-size:15px; }
table.sammel td { vertical-align:middle; } table.sammel input { padding:6px 8px; }

/* Mehrfachauswahl */
.aktionsleiste { display:none; position:sticky; top:0; z-index:20; align-items:center; gap:10px; flex-wrap:wrap;
  background:var(--schwarz); color:#fff; padding:10px 14px; border-radius:10px; margin-bottom:12px; }
.aktionsleiste.sichtbar { display:flex; } .aktionsleiste button.link { color:#fff; text-decoration:underline; }
.aktionsleiste button:not(.primaer):not(.link) { background:#fff; }
tr.markiert td { background:#fff4f4; }

/* Fortschrittsbalken beim Import */
.fortschritt { background:var(--hell); border-radius:8px; padding:12px 14px; }
.fortschritt-text { display:flex; justify-content:space-between; gap:12px; font-size:13px; margin-bottom:8px; }
.fortschritt-spur { height:10px; background:#e2e2e2; border-radius:5px; overflow:hidden; }
.fortschritt-balken { height:100%; background:var(--rot); border-radius:5px; transition:width .3s; }
.fortschritt-balken.unbestimmt { background:linear-gradient(90deg, var(--rot) 0 30%, #f3b0b0 30% 60%, var(--rot) 60%); background-size:200% 100%; animation:laufen 1.2s linear infinite; }
@keyframes laufen { from { background-position:100% 0; } to { background-position:-100% 0; } }

/* V1.7: Bild am Händlerartikel, Import-Protokoll */
.angebot-kopf { display:grid; grid-template-columns:1fr 84px; gap:10px; align-items:start; }
.angebot-kopf > div:first-child { display:flex; flex-direction:column; gap:8px; min-width:0; }
.ha-bild-feld { display:flex; flex-direction:column; gap:2px; }
.ablage.ha-bild { width:84px; height:84px; padding:0; display:flex; align-items:center; justify-content:center; font-size:11px; line-height:1.3; border-width:1px; overflow:hidden; }
.ablage.ha-bild img { width:100%; height:100%; object-fit:contain; display:block; }
.ablage.ha-bild.lädt::after { content:"…"; }
.mit-bild { display:flex; gap:10px; align-items:center; }
.klick-bild { cursor:zoom-in; flex:none; }
.rechnung { width:100%; background:transparent; }
.rechnung td { padding:3px 6px; border:none; font-size:13px; }
.rechnung tr.summe td { border-top:1px solid #999; font-weight:700; }
.bericht { margin-top:8px; }
tr.imp-details > td { background:#fafafa; padding:12px 14px; }
tr.klick.offen td { background:#fff4f4; }

/* V1.8: Menü, Rückgängig */
.menue-zelle { text-align:right; width:44px; }
.menue-knopf { font-size:18px; line-height:1; padding:4px 10px; }
.dialog-info { font-size:14px; } .dialog-info ul { padding-left:18px; margin:6px 0; } .dialog-info p { margin:6px 0; }
tr.zurueckgenommen td { color:var(--grau); text-decoration:line-through; } tr.zurueckgenommen td .marke, tr.zurueckgenommen td .klein-text { text-decoration:none; }
.link-knoepfe .btn { white-space:nowrap; } .kopf .link-knoepfe { margin-left:12px; } td .link-knoepfe { gap:6px; flex-wrap:nowrap; }
/* Bildbibliothek */
.bib-neu { padding:18px; text-align:center; }
.bib-raster { display:grid; grid-template-columns:repeat(auto-fill, minmax(130px, 1fr)); gap:10px; max-height:52vh; overflow:auto; padding:2px; }
.bib-kachel { display:flex; flex-direction:column; gap:4px; align-items:stretch; padding:8px; background:#fff; border:1px solid var(--linie); border-radius:8px; cursor:pointer; text-align:left; font:inherit; }
.bib-kachel:hover, .bib-kachel:focus { border-color:var(--rot, #D01414); outline:none; }
.bib-kachel img { width:100%; aspect-ratio:1; object-fit:contain; background:#fff; border-radius:4px; }
.bib-pdf { font-size:42px; text-align:center; padding:18px 0; }
.bib-text { font-size:12px; line-height:1.3; overflow:hidden; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
tr.klick-ha { cursor:pointer; } tr.klick-ha:hover td { background:#fafafa; }
table.daten th { text-align:left; font-weight:600; vertical-align:top; color:#555; font-size:13px; text-transform:none; letter-spacing:0; }
[data-ziehbild] { cursor:grab; }
.haken-zelle { cursor:pointer; }
.datei-raster { display:grid; grid-template-columns:repeat(auto-fill, minmax(170px, 1fr)); gap:12px; }
.datei-karte { position:relative; display:flex; flex-direction:column; gap:6px; padding:10px; background:#fff; border:1px solid var(--linie); border-radius:10px; }
.datei-karte.markiert { border-color:var(--rot); box-shadow:0 0 0 2px rgba(228,0,0,.15); }
.datei-karte img { width:100%; aspect-ratio:1; object-fit:contain; cursor:zoom-in; }
.datei-karte .bib-pdf { display:block; text-align:center; text-decoration:none; }
.datei-haken { position:absolute; top:6px; left:6px; background:#fff; border-radius:4px; padding:2px 4px; cursor:pointer; }
.datei-karte button { align-self:flex-start; }
/* Anmeldung */
body.abgemeldet aside.seite { display:none; } body.abgemeldet main { margin-left:0; }
.anmeldung { min-height:80vh; display:flex; align-items:center; justify-content:center; }
.anmeldung .karte { width:min(420px, 94vw); padding:28px; }
/* Zwei-Faktor (Dom 29.10.2026): QR-Code, Schlüssel als Text, Ersatzcodes, Wege unter dem Formular, gemerkte Geräte */
.zf-qr { width:176px; height:176px; margin:6px auto 4px; } .zf-qr svg { width:100%; height:100%; display:block; }
.zf-geheim { display:flex; flex-direction:column; align-items:center; gap:2px; margin:0 0 14px; } .zf-geheim code { font-size:14px; letter-spacing:1px; overflow-wrap:anywhere; text-align:center; }
.zf-ersatz { display:grid; grid-template-columns:1fr 1fr; gap:6px 18px; background:#f5f5f5; border-radius:8px; padding:12px 16px; } .zf-ersatz code { font-size:15px; letter-spacing:1px; }
.zf-wege { display:flex; flex-wrap:wrap; gap:6px 18px; justify-content:center; margin-top:14px; font-size:13px; }
.zf-geraete { display:flex; flex-direction:column; } .zf-geraet { display:flex; align-items:center; gap:10px; padding:10px 0; border-top:1px solid var(--linie-tabelle, #eee); }
.zf-geraet > span:first-child { flex:1; min-width:0; } .zf-geraet .klein-text { display:block; }
.logo-gross { display:flex; flex-direction:column; margin-bottom:10px; } .logo-gross b { color:var(--rot); font-size:24px; letter-spacing:1px; } .logo-gross span { font-size:14px; }
.formular.einspaltig { grid-template-columns:1fr; }
#konto { margin-top:14px; } .konto-name { padding:6px 20px; color:#fff; font-weight:500; }
/* ---------- Seitenleiste wie plancraft: Icons, einklappbar, Konto unten ---------- */
:root { --nav:236px; --nav-zu:64px; }
aside.seite { display:flex; flex-direction:column; padding:12px 0 0; overflow:visible; transition:width .18s ease; z-index:30; }
main { transition:margin-left .18s ease; }
.seite-kopf { display:flex; align-items:center; gap:6px; padding:0 10px 12px 12px; border-bottom:1px solid #2a2a2a; margin-bottom:8px; }
.seite-kopf .logo { display:flex; align-items:center; gap:10px; padding:4px; border:none; margin:0; flex:1; min-width:0; }
.logo-zeichen { flex:0 0 32px; height:32px; border-radius:8px; background:var(--rot); color:#fff; font-weight:700; font-size:13px; display:flex; align-items:center; justify-content:center; letter-spacing:.5px; }
.logo-text { display:flex; flex-direction:column; min-width:0; line-height:1.2; } .logo-text b { color:#fff !important; font-size:14px !important; letter-spacing:0 !important; white-space:nowrap; } .logo-text span { font-size:12px; color:#aaa; }
.einklappen { background:none; border:none; color:#aaa; padding:6px; border-radius:6px; cursor:pointer; display:flex; } .einklappen:hover { background:#222; color:#fff; }
#nav { flex:1; overflow-y:auto; padding:0 8px; }
#nav a { gap:12px; justify-content:flex-start; padding:9px 12px; border-left:none; border-radius:8px; margin-bottom:2px; white-space:nowrap; }
#nav a.aktiv { background:#262626; border-left:none; }
#nav a b { margin-left:auto; }
.ic { width:19px; height:19px; flex:0 0 19px; }
.nav-trenner { height:1px; background:#2a2a2a; margin:8px 4px; }
.seite-fuss { display:flex; align-items:center; gap:6px; padding:10px 12px; border-top:1px solid #2a2a2a; position:relative; }
.fuss-knopf { display:flex; padding:8px; border-radius:8px; color:#bbb; } .fuss-knopf:hover, .fuss-knopf.aktiv { background:#262626; color:#fff; text-decoration:none; }
#konto-platz { margin-left:auto; }
.avatar { width:34px; height:34px; border-radius:50%; background:var(--rot); color:#fff; font-weight:600; font-size:13px; display:flex; align-items:center; justify-content:center; border:2px solid #333; cursor:pointer; padding:0; }
.avatar:hover { border-color:#666; }
.konto-menue { position:absolute; bottom:58px; left:10px; width:220px; background:#fff; color:var(--schwarz); border-radius:10px; box-shadow:0 10px 30px rgba(0,0,0,.35); padding:6px; z-index:50; }
.konto-menue .wer { padding:10px 10px 8px; border-bottom:1px solid var(--linie); margin-bottom:4px; } .konto-menue .wer b { display:block; } .konto-menue .wer span { font-size:12px; color:var(--grau); }
.konto-menue a { display:flex; align-items:center; gap:10px; padding:8px 10px; border-radius:6px; color:var(--schwarz); } .konto-menue a:hover { background:var(--hell); text-decoration:none; }
/* eingeklappt */
body.nav-zu aside.seite { width:var(--nav-zu); } body.nav-zu main { margin-left:var(--nav-zu); }
body.nav-zu .logo-text, body.nav-zu .nav-text { display:none; }
body.nav-zu .seite-kopf { flex-direction:column; padding:0 8px 10px; } body.nav-zu .seite-kopf .logo { justify-content:center; }
body.nav-zu .einklappen svg { transform:scaleX(-1); }
body.nav-zu #nav a { justify-content:center; padding:10px 0; position:relative; }
body.nav-zu #nav a b { position:absolute; top:4px; right:8px; padding:0; min-width:8px; height:8px; font-size:0; border-radius:50%; }
body.nav-zu .seite-fuss { flex-direction:column; padding:10px 0; } body.nav-zu #konto-platz { margin:0; }
body.nav-zu .konto-menue { left:8px; }
@media (max-width:760px) {
  aside.seite { flex-direction:column; } .einklappen { display:none; } #nav { display:flex; flex-wrap:wrap; } .nav-trenner { display:none; }
  body.nav-zu main { margin-left:0; } .konto-menue { bottom:auto; top:56px; }
}
/* Einstellungen: Menü links, Inhalt rechts */
.einst { display:flex; margin:-26px -32px -80px; min-height:100vh; }
.einst-menue { width:250px; flex:0 0 250px; background:#fff; border-right:1px solid var(--linie); padding:22px 12px; }
.einst-menue h1 { font-size:20px; padding:0 10px; margin-bottom:14px; }
.einst-titel { font-size:11px; text-transform:uppercase; letter-spacing:.8px; color:var(--grau); padding:14px 10px 6px; }
.einst-menue a { display:block; padding:8px 10px; border-radius:8px; color:var(--schwarz); } .einst-menue a:hover { background:var(--hell); text-decoration:none; }
.einst-menue a.aktiv { background:#efefef; font-weight:500; }
.einst-inhalt { flex:1; min-width:0; padding:26px 32px 80px; }
.kommission-knopf { max-width:260px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.bestell-leiste { margin:14px 0 0; } .bestell-leiste select { margin-left:6px; }

@media (max-width:760px) { .einst { flex-direction:column; margin:-18px -14px; } .einst-menue { width:auto; flex:none; border-right:none; border-bottom:1px solid var(--linie); } .einst-inhalt { padding:18px 14px; } }
nav.einst-menue a { display:block; color:var(--schwarz); border-left:none; } nav.einst-menue a:hover { color:var(--schwarz); background:var(--hell); }
nav.einst-menue a.aktiv { background:#ececec; color:var(--schwarz); border-left:none; font-weight:600; }
.formular label .marke { align-self:flex-start; margin-bottom:2px; }

/* Schlüsselverwaltung */
.rot-text { color:var(--rot); font-weight:500; }
.kacheln.klein { grid-template-columns:repeat(auto-fill, minmax(150px, 1fr)); } .kacheln.klein .kachel { padding:12px 14px; } .kacheln.klein .zahl { font-size:24px; }
.nummer-feld { display:flex; align-items:center; border:1px solid #ccc; border-radius:8px; background:#fff; overflow:hidden; }
.nummer-feld span { padding:0 4px 0 12px; font-weight:700; color:var(--grau); } .nummer-feld input { border:none; flex:1; min-width:0; }
.nummer-feld input:focus { outline:none; } .nummer-feld:focus-within { outline:2px solid var(--rot); outline-offset:-1px; border-color:var(--rot); }
.nummer-feld.gross span, .nummer-feld.gross input { font-size:34px; font-weight:700; padding-top:8px; padding-bottom:8px; }
.k-gross { font-size:64px; font-weight:700; text-align:center; letter-spacing:2px; color:var(--rot); }
.schluessel-treffer { display:flex; gap:12px; align-items:center; width:100%; text-align:left; padding:12px; margin-bottom:8px; border-radius:10px; font-weight:400; }
.schluessel-treffer img, .ue-kopf img { width:56px; height:56px; object-fit:cover; border-radius:8px; flex:none; }
.ue-kopf { display:flex; gap:12px; align-items:center; margin-bottom:14px; } .ue-kopf h2 { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.art-knoepfe { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:14px; } .art-knoepfe button { padding:10px 14px; }
.personen-knoepfe { display:grid; grid-template-columns:repeat(auto-fill, minmax(160px, 1fr)); gap:8px; margin-top:8px; max-height:38vh; overflow:auto; }
.personen-knoepfe button { padding:12px 10px; text-align:left; font-weight:500; display:flex; flex-direction:column; gap:2px; }
.personen-knoepfe button span { font-size:12px; font-weight:400; color:var(--grau); }
.personen-knoepfe button.gewaehlt { background:var(--rot); border-color:var(--rot); color:#fff; } .personen-knoepfe button.gewaehlt span { color:#fff; }
canvas.unterschrift { width:100%; height:180px; border:1px dashed #bbb; border-radius:8px; background:#fff; touch-action:none; display:block; cursor:crosshair; }
.unterschrift-mini { height:44px; max-width:160px; border:1px solid var(--linie); border-radius:6px; background:#fff; vertical-align:middle; margin-top:6px; cursor:zoom-in; }
.schluessel-foto { width:160px; height:160px; object-fit:cover; border-radius:8px; display:block; cursor:zoom-in; }
.schluessel-foto.leer { border:1px solid var(--linie); }
.schluessel-foto.leer { display:flex; align-items:center; justify-content:center; color:var(--grau); font-size:13px; border-style:dashed; cursor:default; }
.feld-knopf { flex:1; text-align:left; font-weight:400; min-height:38px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.verlauf { border-top:1px solid var(--linie); padding:10px 0; } .verlauf:first-of-type { border-top:none; } .verlauf.storniert > :not(.klein-text):not(.leiste) { text-decoration:line-through; color:var(--grau); }
.formular.einspaltig { grid-template-columns:1fr; }
/* Schlüssel-Übergabeprotokoll: am Bildschirm ein A4-Blatt, gedruckt randlos auf A4 */
body.nur-druck { background:#ececec; }
.pk-leiste { max-width:210mm; margin:0 auto 14px; display:flex; align-items:center; }
.protokoll { width:210mm; min-height:297mm; margin:0 auto; background:#fff; padding:18mm 18mm 14mm; box-shadow:0 2px 14px rgba(0,0,0,.12); display:flex; flex-direction:column; color:#111; box-sizing:border-box; }
.pk-kopf { display:flex; align-items:center; gap:14px; padding-bottom:12px; border-bottom:3px solid var(--rot); }
.pk-kopf img { width:46px; height:46px; object-fit:contain; } .pk-kopf b { display:block; font-size:20px; letter-spacing:.5px; } .pk-kopf span { color:#555; font-size:14px; }
.pk-nr { margin-left:auto; text-align:right; font-size:13px; color:#555; line-height:1.5; }
.pk-titel { display:flex; justify-content:space-between; align-items:flex-start; gap:20px; margin:26px 0 22px; }
.pk-titel h1 { margin:4px 0 2px; font-size:30px; } .pk-titel p { margin:0; color:#444; font-size:16px; }
.pk-titel img { width:42mm; height:42mm; object-fit:cover; border-radius:6px; flex:none; }
.pk-art { display:inline-block; background:#111; color:#fff; font-size:12px; font-weight:600; letter-spacing:.6px; text-transform:uppercase; padding:4px 10px; border-radius:4px; }
.pk-storno { border:2px solid var(--rot); color:var(--rot); font-weight:600; padding:10px 12px; border-radius:6px; margin-bottom:16px; }
.protokoll.storniert .pk-felder, .protokoll.storniert .pk-titel h1 { text-decoration:line-through; text-decoration-color:var(--rot); }
.pk-felder { display:grid; grid-template-columns:1fr 1fr; border-top:1px solid #d9d9d9; }
.pk-feld { padding:10px 12px 10px 0; border-bottom:1px solid #d9d9d9; } .pk-feld.breit { grid-column:1 / -1; }
.pk-feld span { display:block; font-size:11px; color:#666; text-transform:uppercase; letter-spacing:.5px; margin-bottom:3px; } .pk-feld b { font-weight:500; font-size:15px; }
.pk-text { margin:26px 0 0; font-size:14px; color:#333; }
.pk-unterschriften { display:grid; grid-template-columns:1fr 1fr; gap:16mm; margin-top:auto; padding-top:24mm; }
.pk-linie { height:26mm; border-bottom:1px solid #111; display:flex; align-items:flex-end; } .pk-linie img { max-height:25mm; max-width:100%; }
.pk-unterschriften span { display:block; font-size:13px; color:#444; padding-top:5px; }
.pk-fuss { margin-top:12mm; padding-top:8px; border-top:1px solid #d9d9d9; font-size:11px; color:#777; text-align:center; }
@page protokoll { size:A4; margin:0; } .protokoll { page:protokoll; }
.logo-rot { color:var(--rot); letter-spacing:1px; }
.protokoll-tabelle th { text-align:left; width:170px; color:var(--grau); font-weight:400; vertical-align:top; } .protokoll-tabelle td, .protokoll-tabelle th { padding:6px 8px 6px 0; border-bottom:1px solid var(--linie); }
.protokoll-unterschrift { margin-top:36px; width:320px; } .protokoll-unterschrift img { max-width:320px; max-height:120px; display:block; }
.protokoll-unterschrift div:last-child, .protokoll-unterschrift > div { border-top:1px solid var(--schwarz); padding-top:4px; font-size:13px; }
.protokoll-unterschrift img + div { margin-top:2px; }
@media print { body.nur-druck, body.nur-druck main, body.nur-druck #app { margin:0 !important; padding:0 !important; background:#fff !important; max-width:none !important; height:auto !important; overflow:visible !important; }
  body.nur-druck .protokoll { box-shadow:none; margin:0; width:210mm; height:297mm; min-height:0; overflow:hidden; page-break-after:avoid; }
  * { -webkit-print-color-adjust:exact; print-color-adjust:exact; } }
@media (max-width:760px) {
  dialog.handy-voll { width:100vw; max-width:100vw; height:100dvh; max-height:100dvh; margin:0; border-radius:0; padding:16px; }
  .art-knoepfe button { flex:1 1 100%; } .kopf .rechts { margin-left:0; width:100%; } .kopf .rechts button { flex:1; }
}
.feld-gruppe { display:flex; flex-direction:column; gap:4px; font-size:13px; color:var(--grau); } .feld-gruppe input { color:var(--schwarz); width:100%; }
.personen-knoepfe button, .schluessel-treffer, .art-knoepfe button { white-space:normal; }
.lfd { color:var(--grau); font-weight:400; font-size:.8em; } .k-gross .lfd { font-size:.5em; }
.chips { display:inline-flex; border:1px solid var(--linie); border-radius:8px; overflow:hidden; background:#fff; }

.personalkarte h3 { margin:14px 0 0; font-size:14px; color:var(--grau); text-transform:uppercase; letter-spacing:.5px; border-bottom:1px solid var(--linie); padding-bottom:4px; }
a.schluessel-treffer { color:inherit; } a.schluessel-treffer:hover { text-decoration:none; }
tr.storniert td { text-decoration:line-through; color:var(--grau); }

/* Übergabe-Dialog */
.ue-label { margin:12px 0 4px; } .ue-form { display:flex; flex-direction:column; gap:10px; margin-top:4px; }
.ue-form label { display:flex; flex-direction:column; gap:4px; font-size:13px; color:var(--grau); } .ue-form input { color:var(--schwarz); width:100%; }
.ue-zeile { display:flex; gap:10px; } .ue-zeile > * { flex:1; min-width:0; }
.ue-fuss { display:flex; justify-content:space-between; align-items:center; margin-top:6px; } .ue-fuss .primaer { min-width:160px; padding:10px 16px; }
.ue-icon { width:56px; height:56px; border-radius:8px; border:1px solid var(--linie); display:flex; align-items:center; justify-content:center; flex:none; } .ue-icon .ic { width:26px; height:26px; }
/* Umschalter A (Bausteine Runde 4): graue Schiene, die gewählte Stelle weiß mit Schatten – überall gleich */
.segment { display:inline-flex; flex-wrap:nowrap; align-items:center; gap:2px; background:#e9e9e9; border:none; border-radius:9px; padding:3px; }
.segment > button, .segment > a { flex:0 0 auto; border:none; border-radius:7px; padding:4px 12px; min-height:0; font-size:13.5px; font-weight:500; line-height:1.45; background:none; color:#5e5e5e; box-shadow:none; white-space:nowrap; }
.segment > button:hover, .segment > a:hover { background:rgba(255,255,255,.55); }
.segment > button.an, .segment > a.an { background:#fff; color:#131313; box-shadow:0 1px 2px rgba(0,0,0,.14); }
.such-feld { position:relative; } .such-treffer { border:1px solid var(--linie); border-top:none; border-radius:0 0 8px 8px; overflow:hidden; } .such-treffer:empty { display:none; }
.such-treffer button { display:block; width:100%; text-align:left; border:none; border-top:1px solid var(--linie); border-radius:0; padding:10px 12px; font-weight:400; white-space:normal; }
.such-treffer button:first-child { border-top:none; background:#fff6f6; }
.gewaehlt-person { display:flex; align-items:center; gap:8px; padding:9px 12px; border:1px solid var(--schwarz); border-radius:8px; } .gewaehlt-person .link { margin-left:auto; }
.verlauf-aktionen { display:flex; gap:14px; align-items:center; margin-top:4px; font-size:13px; }
.unterschrift-gross { max-width:100%; max-height:140px; border:1px solid var(--linie); border-radius:8px; background:#fff; display:block; }
.gelb-text { color:#9a6b00; font-weight:500; }
/* Personalakte */
.zurueck-link { display:inline-block; margin-bottom:10px; }
.akte-kopfzeile { display:flex; align-items:center; gap:16px; background:#fff; border:1px solid var(--linie); border-radius:12px; padding:16px 18px; margin-bottom:16px; flex-wrap:wrap; }
.avatar-gross { width:60px; height:60px; border-radius:50%; background:var(--schwarz); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:700; font-size:20px; flex:none; }
.akte-name { flex:1; min-width:200px; } .akte-name h1 { margin:0 0 2px; display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.akte-raster { display:grid; grid-template-columns:minmax(240px, 1fr) minmax(0, 2.4fr); gap:16px; align-items:start; }
.akte-links { display:flex; flex-direction:column; gap:16px; }
.akte-kaesten { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:16px; align-items:start; }
.akte-kasten { background:#fff; border:1px solid var(--linie); border-radius:12px; padding:14px 16px; } .akte-kasten.breit { grid-column:1 / -1; }
.akte-kasten.erledigen { border-color:var(--rot); background:#fff8f8; } .akte-kasten.erledigen div { margin:2px 0; }
.akte-kopf { display:flex; align-items:center; justify-content:space-between; margin-bottom:8px; } .akte-kopf h2 { margin:0; font-size:15px; }
.akte-werte { display:grid; grid-template-columns:auto 1fr; gap:6px 14px; margin:0; font-size:14px; } .akte-werte dt { color:var(--grau); } .akte-werte dd { margin:0; }
.leer-wert { color:#c4c4c4; }
.akte-schluessel { display:block; padding:8px 0; border-top:1px solid var(--linie); color:inherit; } .akte-schluessel:first-of-type { border-top:none; } .akte-schluessel:hover { text-decoration:none; background:#fafafa; }
@media (max-width:1100px) { .akte-raster { grid-template-columns:1fr; } }
@media (max-width:760px) { .akte-kaesten { grid-template-columns:1fr; } .ue-zeile { flex-direction:column; } }
.ue-form > .link { align-self:flex-start; }
@media (max-width:760px) { canvas.unterschrift { height:150px; } }

/* ---------- Clean wie plancraft (eigene Farben) ---------- */
body { background:#f3f3f3; }
h1 { font-size:22px; font-weight:600; } h2 { font-weight:600; }
button, .btn { border-color:#dcdcdc; } button:hover, .btn:hover { border-color:#bdbdbd; } /* Knöpfe A: Rahmen grau */
button.leise { border-color:#e2e2e2; }
.karte, .tabelle, .kachel, .akte-kasten, .akte-kopfzeile { border-color:#e6e6e6; border-radius:10px; }
/* Etiketten C (Bausteine Runde 4): kantig 4 px, normale Schreibweise, Nodus-Farbreihe – Farben unten bei .pstatus */
.marke { border:none; border-radius:4px; padding:2px 8px; font-size:12.5px; font-weight:500; line-height:1.45; text-transform:none; letter-spacing:0; background:#ebeae7; color:#4a4844; }
.marke.schwarz { background:#2a2a2a; color:#fff; }
.icon-knopf { display:inline-flex; align-items:center; justify-content:center; width:36px; height:36px; padding:0; border:1px solid #dcdcdc; border-radius:8px; background:#fff; color:var(--schwarz); flex:none; }
.icon-knopf:hover { background:var(--hell); text-decoration:none; } .icon-knopf.klein { width:30px; height:30px; border-color:transparent; } .icon-knopf.klein:hover { border-color:#d9d9d9; }
td .icon-knopf { width:32px; height:32px; border-color:transparent; background:transparent; } td .icon-knopf:hover { border-color:#d9d9d9; background:#fff; }
.seitenkopf { display:flex; align-items:center; gap:14px; margin-bottom:18px; flex-wrap:wrap; }
.seitenkopf-titel { flex:1; min-width:200px; display:flex; flex-wrap:wrap; align-items:center; gap:4px 10px; } .seitenkopf-titel h1 { margin:0; } .seitenkopf-titel > .klein-text { flex-basis:100%; }
.seitenkopf-rechts { display:flex; align-items:center; gap:8px; margin-left:auto; }
.auswahl-eintrag.gefahr span:first-child { color:var(--rot); }
.menue-zelle { width:48px; }
.form-fuss { display:flex; justify-content:flex-end; gap:8px; margin-top:4px; }
.angaben { display:flex; gap:16px; align-items:flex-start; } .angaben .schluessel-foto { width:140px; height:140px; flex:none; }
.verlauf-liste { margin:0 -8px; }
.vz { display:grid; grid-template-columns:minmax(0, 1fr) auto; align-items:center; border-top:1px solid #efefef; } .vz:first-child { border-top:none; }
.vz-zeile { display:flex; align-items:center; gap:10px; width:100%; border:none; background:none; text-align:left; padding:10px 8px; font-weight:400; border-radius:6px; min-width:0; white-space:nowrap; }
.vz-zeile:hover { background:#f7f7f7; } .vz.offen .vz-zeile { background:#f7f7f7; }
.vz-art { font-weight:500; } .vz-wer { color:var(--grau); overflow:hidden; text-overflow:ellipsis; flex:1; min-width:0; } .vz-datum { color:var(--grau); font-size:13px; }
.vz.storniert .vz-art, .vz.storniert .vz-wer { text-decoration:line-through; color:#aaa; }
.vz-details { grid-column:1 / -1; padding:2px 8px 12px; display:flex; flex-direction:column; gap:4px; }
.punkt-gelb { width:8px; height:8px; border-radius:50%; background:#e0b100; flex:none; }
.akte-kopfzeile > .icon-knopf { align-self:flex-start; }
@media (max-width:760px) { .angaben { flex-direction:column; } .seitenkopf-rechts { margin-left:0; width:100%; } .seitenkopf-rechts .primaer { flex:1; } }
.vz-details[hidden] { display:none; }
.akte-werte dd { overflow-wrap:anywhere; min-width:0; }

/* ---------- Einheitliches System (Tabellen, Filter, Seitenleiste) ---------- */
main { padding:24px 28px 60px; }
.kopf { margin-bottom:16px; min-height:40px; } .kopf h1 { font-size:22px; }
/* Tabellen: überall gleich – Kopf wie plancraft, gleiche Zeilenhöhe, Fußzeile mit Anzahl */
.tabelle { background:#fff; border:1px solid #e6e6e6; border-radius:10px; overflow:auto; }
.tabelle table { background:none; }
.tabelle th, .tabelle td { padding:12px 14px; border-bottom:1px solid #eeeeee; font-size:14px; }
.tabelle th { font-size:14px; font-weight:600; color:#2b2b2b; text-transform:none; letter-spacing:0; background:#fff; height:52px; white-space:nowrap; }
.tabelle td { height:64px; }
.tabelle tr:last-child td { border-bottom:1px solid #eeeeee; }
.tabelle tr.klick:hover td, .tabelle tr.klick-ha:hover td { background:#fafafa; cursor:pointer; }
.tabelle tr.markiert td { background:#fff1f1; }
.tabelle .haken-zelle { width:44px; padding-right:0; } .tabelle .bild-zelle { width:60px; padding-right:4px; } .tabelle .menue-zelle { width:52px; text-align:right; }
.tabelle-fuss { display:flex; align-items:center; gap:10px; padding:14px 16px; color:var(--grau); font-size:14px; background:#fff; }
.tabelle-fuss .rechts { margin-left:auto; display:flex; align-items:center; gap:8px; }
.auswahl-zeile th { background:#fff6f6; } .auswahl-zeile th:first-child { width:44px; }
.auswahl-aktionen { display:flex; align-items:center; gap:22px; font-weight:400; flex-wrap:wrap; }
.auswahl-aktionen > span { color:var(--grau); }
.auswahl-aktionen .aktion { border:none; background:none; padding:0; font-weight:600; color:var(--schwarz); display:inline-flex; gap:6px; align-items:center; }
.auswahl-aktionen .aktion:hover { color:var(--rot); background:none; } .auswahl-aktionen .aktion.gefahr { color:var(--rot); }
.aktionsleiste:empty { display:none; }
/* Filterleiste */
.filterleiste { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-bottom:14px; }
.suchfeld { position:relative; display:flex; align-items:center; flex:0 1 320px; min-width:220px; }
.suchfeld input { width:100%; padding-right:34px; height:40px; border-color:#d9d9d9; border-radius:8px; }
.suchfeld .ic { position:absolute; right:11px; color:var(--grau); pointer-events:none; }
.fbtn { display:inline-flex; align-items:center; gap:7px; height:40px; padding:0 12px; border:1px solid #dcdcdc; border-radius:8px; background:#fff; font-weight:500; color:var(--schwarz); }
.fbtn:hover { background:#f6f6f6; } .fbtn.an { border-color:var(--schwarz); box-shadow:inset 0 0 0 1px var(--schwarz); }
.fbtn .ic { color:#555; }
.filter-rechts { margin-left:auto; display:flex; gap:8px; }
.filter-zurueck { color:var(--rot); } .filter-zurueck.still { color:#c5c5c5; }
.filter-standard.an { background:var(--rot); border-color:var(--rot); color:#fff; } .filter-standard.an:hover { background:var(--rot-dunkel); }
.filter-panel { position:fixed; z-index:60; background:#fff; border:1px solid #e3e3e3; border-radius:10px; box-shadow:0 10px 30px rgba(0,0,0,.12); width:280px; padding:6px; }
.fp-suche { display:flex; align-items:center; gap:8px; border:1px solid #d9d9d9; border-radius:8px; padding:0 10px; margin:2px 2px 6px; }
.fp-suche input { border:none; padding:8px 0; flex:1; outline:none; } .fp-suche input:focus { outline:none; }
.fp-liste { max-height:300px; overflow:auto; }
.fp-eintrag { display:flex; align-items:center; gap:10px; padding:9px 10px; border-radius:6px; cursor:pointer; }
.fp-eintrag:hover { background:#f2f2f2; } .fp-eintrag.gewaehlt { font-weight:600; }
.fp-eintrag.gewaehlt:not(:has(.fp-box)) { background:#fff1f1; color:var(--rot); }
.fp-box { width:18px; height:18px; border:1.5px solid #bdbdbd; border-radius:4px; display:inline-flex; align-items:center; justify-content:center; flex:none; }
.fp-eintrag.gewaehlt .fp-box { background:var(--rot); border-color:var(--rot); color:#fff; }
.fp-leeren { display:block; width:100%; text-align:left; border:none; border-top:1px solid #eee; border-radius:0; margin-top:4px; padding:9px 10px; color:var(--rot); font-weight:500; background:none; }
.auswahl-eintrag.aktiv { background:#f2f2f2; } /* Markierung folgt der Maus (zeigeListe), daher kein eigenes :hover */
/* Seitenleiste mit Logo – eingeklappt nur der Knopf */
.logo-bild { width:34px; height:34px; object-fit:contain; background:#fff; border-radius:8px; padding:3px; flex:none; }
.logo-text b { font-size:16px !important; }
body.nav-zu .seite-kopf .logo { display:none; }
.logo-gross { align-items:center; gap:6px; } .logo-gross b { color:var(--schwarz); }
/* Angebotskarte schlank: Kopf mit ⋮, Bild + Preis nebeneinander */
.angebot-kopf { grid-template-columns:minmax(0, 1fr) auto; }
.angebot-mitte { display:flex; gap:14px; align-items:flex-start; }
.ablage.ha-bild.klein { width:72px; height:72px; flex:none; color:#bbb; }
.angebot textarea { min-height:40px; }
.tabelle-titel { display:flex; align-items:center; gap:10px; padding:14px 16px; border-bottom:1px solid #eeeeee; font-size:15px; } .tabelle-titel .rechts { margin-left:auto; }
[hidden] { display:none !important; } /* versteckte Hilfsknöpfe hinter ⋮ nie anzeigen (der Knopf-Stil würde display überschreiben) */
textarea { resize:none; overflow:hidden; min-height:42px; line-height:1.45; }
.akte-raster.einspaltig { grid-template-columns:1fr; } .akte-kasten.erledigen { margin-bottom:16px; }
@media (min-width:1300px) { .akte-raster.einspaltig .akte-kaesten { grid-template-columns:repeat(3, minmax(0, 1fr)); } }
/* Listen-Seite: Seite scrollt nicht, die Tabelle ist eine Box mit fester Höhe */
@media (min-width:761px) {
  main.listen-seite { height:100vh; min-height:0; display:flex; flex-direction:column; overflow:hidden; padding-bottom:24px; }
  main.listen-seite > * { flex:none; }
  main.listen-seite > .tabelle { flex:1 1 auto; min-height:0; display:flex; flex-direction:column; overflow:hidden; }
  main.listen-seite .tabelle-scroll { flex:1 1 auto; min-height:0; overflow:auto; }
  main.listen-seite .tabelle-fuss { flex:none; border-top:1px solid #eeeeee; }
  main.listen-seite .tabelle-scroll tr:last-child td { border-bottom:none; }
  main.listen-seite .tabelle th { position:sticky; top:0; z-index:2; }
}
/* Personalakte: Kästen einer Reihe gleich hoch */
.akte-kaesten { align-items:stretch; grid-auto-rows:auto; }
.akte-kaesten > .akte-kasten { display:flex; flex-direction:column; height:100%; }
.akte-kasten.lohnverlauf { margin-top:16px; } .lohn-tabelle th, .lohn-tabelle td { padding:10px 8px; border-bottom:1px solid #eeeeee; font-size:14px; }
.lohn-tabelle th { font-weight:600; color:#2b2b2b; text-transform:none; letter-spacing:0; } .lohn-tabelle tr:last-child td { border-bottom:none; }
.gruen-text { color:var(--gruen); font-weight:500; }
.akte-kasten.lohnverlauf { margin-top:16px; } .lohn-tabelle th, .lohn-tabelle td { padding:10px 8px; border-bottom:1px solid #eeeeee; font-size:14px; }
.lohn-tabelle th { font-weight:600; color:#2b2b2b; text-transform:none; letter-spacing:0; } .lohn-tabelle tr:last-child td { border-bottom:none; }
.gruen-text { color:var(--gruen); font-weight:500; }
.fp-punkt { width:16px; display:inline-flex; color:var(--rot); flex:none; }
/* Eigene Datumsauswahl */
.datumsfeld { position:relative; display:flex; align-items:center; width:100%; }
.datumsfeld input[type=text] { width:100%; padding-right:36px; }
.dp-knopf { position:absolute; right:4px; border:none; background:none; padding:6px; color:#666; display:flex; } .dp-knopf:hover { background:none; color:var(--rot); }
.kalender { position:fixed; z-index:70; background:#fff; border:1px solid #e3e3e3; border-radius:12px; box-shadow:0 10px 30px rgba(0,0,0,.14); padding:12px; width:288px; }
.kal-kopf { display:flex; align-items:center; justify-content:space-between; margin-bottom:8px; } .kal-kopf b { font-weight:600; }
.kal-kopf button { border:none; background:none; font-size:20px; line-height:1; padding:4px 10px; border-radius:6px; } .kal-kopf button:hover { background:#f2f2f2; }
.kal-raster { display:grid; grid-template-columns:repeat(7, 1fr); gap:2px; }
.kal-wt { text-align:center; font-size:12px; color:var(--grau); padding:4px 0; }
.kal-tag { border:none; background:none; padding:0; height:34px; border-radius:8px; font-weight:400; font-size:14px; }
.kal-tag:hover { background:#f2f2f2; } .kal-tag.fremd { color:#bbb; } .kal-tag.heute { box-shadow:inset 0 0 0 1px var(--schwarz); }
.kal-tag.gewaehlt { background:var(--rot); color:#fff; font-weight:600; } .kal-monate { width:260px; } .kal-monatsraster { display:grid; grid-template-columns:repeat(4, 1fr); gap:4px; } .kal-monatsraster .kal-tag { height:38px; } .kal-tag:disabled { color:#ddd; background:none; cursor:default; }
.kal-fuss { display:flex; gap:8px; justify-content:flex-end; align-items:center; margin-top:10px; border-top:1px solid #eee; padding-top:10px; }
.kal-fuss button { padding:6px 10px; font-size:13px; } .kal-zeit { width:70px; margin-right:auto; text-align:center; }
.kalender.mit-zeit { width:min(410px, calc(100vw - 16px)); } .mit-zeit .kal-fuss button:first-child { margin-right:auto; }
.kal-flaeche { display:flex; gap:12px; } .kal-links { flex:1; min-width:0; }
.kal-uhr { width:84px; display:flex; flex-direction:column; gap:6px; border-left:1px solid #eee; padding-left:12px; }
.kal-uhr .kal-zeit { width:100%; margin:0; padding:6px 4px; font-size:14px; }
.kal-uhren { height:232px; overflow-y:auto; display:flex; flex-direction:column; gap:2px; overscroll-behavior:contain; }
.kal-uhren button { border:none; background:none; padding:6px 0; border-radius:8px; font-size:14px; font-weight:400; flex:none; } .kal-uhren button:hover { background:#f2f2f2; }
.kal-uhren button.gewaehlt { background:var(--rot); color:#fff; font-weight:600; }
.nur-beta { display:none; } body.beta .nur-beta { display:block; }
.beta-bereich { margin-top:10px; border-top:1px solid #2a2a2a; padding-top:8px; }
.nav-titel-beta { padding:6px 20px 4px; font-size:11px; letter-spacing:.8px; text-transform:uppercase; color:#e0a800; }
body.nav-zu .nav-titel-beta { text-align:center; padding:6px 0; }
.akte-kaesten.drei { grid-template-columns:repeat(auto-fit, minmax(300px, 1fr)); }
.verweis { display:block; padding:9px 0; border-top:1px solid #f0f0f0; color:inherit; } .verweis:first-of-type { border-top:none; } .verweis:hover { text-decoration:none; color:var(--rot); }

/* Lieferanten-Angebote: links PDF, rechts erkannte Daten */
.ang-pruef { display:grid; grid-template-columns:minmax(0, 6fr) minmax(0, 5fr); gap:16px; align-items:start; }
.ang-pdf { position:sticky; top:12px; padding:0; overflow:hidden; height:calc(100vh - 120px); min-height:420px; }
.ang-pdf iframe { width:100%; height:100%; border:0; display:block; }
.ang-kopf { margin-bottom:14px; }
.ang-pos td { vertical-align:top; } .ang-pos td.zahl { white-space:nowrap; } .ang-pos .ang-artikel { width:100%; min-width:200px; }
.ang-pos .ang-artikel .klein-text { margin-top:2px; } .ang-aktionen { white-space:nowrap; text-align:right; } .ang-aktionen .icon-knopf { display:inline-flex; }
.ang-pos tr.ang-std td { border-bottom:none; }
.ang-pos tr.ang-alt td { background:#fafafa; } .ang-pos tr.ang-alt td.ang-artikel { padding-left:22px; border-left:3px solid #e2e2e2; }
.ang-teurer { color:var(--rot); } .ang-billiger { color:var(--gruen); } .ang-projekt { color:var(--schwarz); font-weight:500; }
.ang-marke { margin-top:4px; }
@media (max-width:1100px) { .ang-pruef { grid-template-columns:1fr; } .ang-pdf { position:static; height:60vh; } }
.ang-pos tr.ang-anderes td:first-child { box-shadow:inset 3px 0 0 #f0a64a; }
#angdrop { position:fixed; inset:0; z-index:200; display:none; align-items:center; justify-content:center; background:rgba(200,16,46,.08); border:3px dashed var(--rot); pointer-events:none; }
#angdrop.sichtbar { display:flex; } #angdrop div { background:#fff; padding:18px 28px; border-radius:12px; font-size:18px; font-weight:600; box-shadow:0 6px 24px rgba(0,0,0,.12); }
.ang-pos .ang-artnr { white-space:nowrap; color:#555; font-size:13px; } .ang-titel { font-weight:600; } .ang-titel .marke { font-weight:500; vertical-align:1px; }
.ang-langtext { color:var(--grau); font-size:12.5px; margin-top:2px; white-space:pre-line; }

.ang-pos table { width:100%; } .ang-pos .ang-artikel { width:auto; min-width:150px; } .ang-pos td.ang-aktionen { width:1%; padding-left:4px; padding-right:6px; }
.ang-pos td.ang-aktionen .icon-knopf { width:28px; height:28px; } .ang-pos th, .ang-pos td { padding-left:8px; padding-right:8px; }
.bmail-kopf { display:flex; align-items:center; gap:8px; } .bmail-kopf h2 { margin:0; }
.bmail-felder { display:grid; grid-template-columns:auto 1fr; gap:4px 12px; margin:10px 0 12px; font-size:14px; } .bmail-felder dt { color:var(--grau); } .bmail-felder dd { margin:0; }
.ang-pos .ang-scroll { max-height:calc(100vh - 360px); min-height:240px; overflow:auto; }
.ang-pos .ang-scroll th { position:sticky; top:0; background:#fff; z-index:1; }
.ang-mat { display:block; margin-top:4px; font-size:12px; color:#1d6b36; text-decoration:none; white-space:normal; max-width:150px; } .ang-mat:hover { text-decoration:underline; }
.angebot-quelle { font-size:12px; font-weight:600; color:#555; margin:2px 0; } .angebot-quelle a { color:inherit; }
.angebot-text { margin-top:2px; }
@media (max-width:1100px) { .ang-pos .ang-scroll { max-height:none; } }
/* Prüfseite eines Angebots: Seite steht, nur die Positionen scrollen (Kopf mit Speichern und Fußzeile bleiben sichtbar) */
@media (min-width:1101px) {
  main.feste-seite { height:100vh; min-height:0; display:flex; flex-direction:column; overflow:hidden; padding-bottom:20px; }
  main.feste-seite > .seitenkopf { flex:none; }
  main.feste-seite .ang-pruef { flex:1 1 auto; min-height:0; align-items:stretch; }
  main.feste-seite .ang-pdf { position:static; height:auto; min-height:0; }
  main.feste-seite #angdaten { display:flex; flex-direction:column; min-height:0; }
  main.feste-seite .ang-kopf { flex:none; }
  main.feste-seite #angtab { flex:1 1 auto; min-height:0; display:flex; flex-direction:column; }
  main.feste-seite .ang-pos { flex:1 1 auto; min-height:0; display:flex; flex-direction:column; overflow:hidden; }
  main.feste-seite .ang-pos .ang-scroll { flex:1 1 auto; min-height:0; max-height:none; overflow:auto; }
  main.feste-seite .ang-pos .tabelle-fuss { flex:none; border-top:1px solid #eeeeee; }
}
.ang-mailtext { white-space:pre-wrap; font-family:inherit; font-size:13px; margin:0; padding:16px; height:100%; overflow:auto; background:#fff; }
.mailansicht { min-width:min(860px, 90vw); } .mail-html { width:100%; height:60vh; border:1px solid var(--linie); border-radius:8px; background:#fff; }
.mailansicht .ang-mailtext { max-height:60vh; border:1px solid var(--linie); border-radius:8px; }

/* Projektstatus wie in plancraft: Pille mit heller Farbe und dunkler Schrift */
.pstatus { display:inline-block; padding:2px 8px; border-radius:4px; font-size:12.5px; font-weight:500; line-height:1.45; white-space:nowrap; background:#ebeae7; color:#4a4844; }
/* Nodus-Farbreihe: Stein · Kobalt · Petrol · Moos · Sand · Senf · Ziegel · Mohn · Beere · Pflaume · Himmel · Holz */
.marke.grau, .kx-marke.grau, .pstatus.grau { background:#ebeae7; color:#4a4844; }
.marke.blau, .kx-marke.blau, .pstatus.blau { background:#e1e9f7; color:#2c4a86; }
.marke.tuerkis, .kx-marke.tuerkis, .pstatus.tuerkis { background:#d8ebe6; color:#1f5e54; }
.marke.gruen, .kx-marke.gruen, .pstatus.gruen { background:#e3eedb; color:#3d5e26; }
.marke.limette, .kx-marke.limette, .pstatus.limette { background:#f1ebdd; color:#6b5c3a; }
.marke.gelb, .kx-marke.gelb, .pstatus.gelb { background:#f7edc4; color:#6e5410; }
.marke.orange, .kx-marke.orange, .pstatus.orange { background:#f7e0cf; color:#8c4318; }
.marke.rot, .kx-marke.rot, .pstatus.rot { background:#f6dcdb; color:#962626; }
.marke.rosa, .kx-marke.rosa, .pstatus.rosa { background:#f3dde6; color:#83304f; }
.marke.lila, .kx-marke.lila, .pstatus.lila { background:#e9e1f1; color:#55387a; }
.marke.himmel, .kx-marke.himmel, .pstatus.himmel { background:#dcecf3; color:#21607a; }
.marke.braun, .kx-marke.braun, .pstatus.braun { background:#eee3d6; color:#6b4a2a; }
.projekt-tabelle td { height:80px; } .projekt-tabelle td.pname { max-width:460px; }
.projekt-tabelle td.pname b, .projekt-tabelle td.pname .klein-text { display:block; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; } .projekt-tabelle td.pname .klein-text { font-weight:400; margin-top:2px; }
.tabelle th.sortierbar { cursor:pointer; user-select:none; } .tabelle th.sortierbar.an { color:#000; }

/* Allgemeine Suche (⌘K) wie in plancraft */
#suchknopf { cursor:pointer; } .nav-kbd { margin-left:auto; font:500 11px/1 inherit; color:#8a8a8a; border:1px solid #444; border-radius:5px; padding:3px 5px; }
body.nav-zu .nav-kbd { display:none; }
dialog.suchfenster { width:min(880px, calc(100vw - 32px)); max-width:none; height:min(580px, calc(100vh - 80px)); padding:0; display:flex; flex-direction:column; border-radius:12px; overflow:hidden; margin:auto; inset:0; }
dialog.suchfenster:not([open]) { display:none; }
.gs-kopf { padding:12px 12px 0; }
.gs-feld { display:flex; align-items:center; gap:8px; border:2px solid #1d4ed8; border-radius:8px; padding:0 12px; height:44px; }
.gs-feld svg { width:18px; height:18px; color:#555; flex:none; } .gs-feld input { border:none; outline:none; box-shadow:none; flex:1; font-size:16px; padding:0; height:100%; background:none; }
.gs-reiter { display:flex; gap:0; margin:6px 12px 0; border-bottom:1px solid #e6e6e6; overflow-x:auto; scrollbar-width:none; flex:none; }
.gs-reiter button { background:none; border:none; border-bottom:2px solid transparent; border-radius:0; padding:8px 9px 9px; font-size:14px; color:#2b2b2b; white-space:nowrap; cursor:pointer; flex:none; }
.gs-reiter button:hover { color:#000; }
.gs-reiter button.an { border-bottom-color:#111; font-weight:600; }
.gs-liste { flex:1; overflow:auto; padding:8px 8px 12px; }
.gs-gruppe { display:flex; align-items:center; justify-content:space-between; padding:12px 12px 6px; color:#777; font-size:14px; font-weight:500; }
.gs-mehr { background:none; border:none; color:#777; font-size:13px; cursor:pointer; padding:0; } .gs-mehr:hover { color:#111; text-decoration:underline; }
.gs-zeile { display:flex; align-items:center; gap:12px; padding:9px 12px; border-radius:8px; color:inherit; text-decoration:none; }
.gs-zeile.aktiv { background:#f1f1f1; }
.gs-text { flex:1; min-width:0; display:flex; flex-direction:column; }
.gs-text b, .gs-text span { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; } .gs-text b { font-weight:600; font-size:15px; } .gs-text span { color:#777; font-size:13px; margin-top:1px; }
.gs-leer { color:#888; padding:24px 12px; font-size:14px; }
.gs-fuss { display:flex; gap:20px; flex-wrap:wrap; padding:11px 16px; background:#f5f5f5; color:#6b6b6b; font-size:13px; flex:none; border-top:1px solid #ececec; }
.gs-fuss span { display:inline-flex; align-items:center; gap:6px; }
.gs-fuss i { font-style:normal; font-size:12px; letter-spacing:.5px; color:#555; } .gs-fuss svg { width:15px; height:15px; color:#555; }

/* Bild groß: Fenster passt sich dem Bild an */
dialog.bild-voll { width:fit-content; height:fit-content; max-width:none; margin:auto; inset:0; padding:0; background:#000; border:none; border-radius:10px; overflow:hidden; position:fixed; }
dialog.bild-voll img { display:block; max-width:92vw; max-height:88vh; width:auto; height:auto; cursor:zoom-out; }
dialog.bild-voll .bv-titel { position:absolute; left:0; right:0; bottom:0; padding:22px 14px 10px; color:#fff; font-size:14px; background:linear-gradient(transparent, rgba(0,0,0,.6)); }
dialog.bild-voll .bv-zu { position:absolute; top:8px; right:8px; width:34px; height:34px; padding:0; border:none; border-radius:50%; background:rgba(0,0,0,.55); color:#fff; font-size:16px; line-height:34px; }
dialog.bild-voll .bv-zu:hover { background:rgba(0,0,0,.8); }

/* Sortierbare Spaltenköpfe: Pfeil hinter dem Titel */
.tabelle th.sortierbar[data-pfeil]::after { content:attr(data-pfeil); }
.tabelle th.sortierbar:hover { color:#000; }

/* Bestellstatus */
.pstatus[data-bstatus], #bstatus { cursor:pointer; }

.bestell-status { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin:-4px 0 16px; } .bestell-status > span:first-child { color:var(--grau); font-size:13px; }
.gruen-knopf, button.primaer.gruen-knopf { background:#2f7d32; border-color:#2f7d32; color:#fff; } .gruen-knopf:hover { background:#256628; border-color:#256628; }
tr.pos-da td:not(.haken-zelle) { color:#6b6b6b; } tr.pos-da td:nth-child(4) { text-decoration:line-through; text-decoration-color:#9a9a9a; }
.pos-haken { width:20px; height:20px; }
.nur-handy, .handy-leiste { display:none; }
@media (max-width:760px) {
  .handy-weg { display:none; } .nur-handy { display:block; margin-top:2px; }
  .bestell-raster { display:flex; flex-direction:column-reverse; gap:18px; }
  .bestell-pos .tabelle td { height:auto; padding:14px 10px; } .pos-haken { width:28px; height:28px; }
  .bestell-pos .haken-zelle { width:48px; }
  .seitenkopf-rechts #allesda { display:none; }
  .handy-leiste { display:flex; flex-direction:column; gap:8px; position:sticky; bottom:0; background:#fff; padding:12px 0 calc(12px + env(safe-area-inset-bottom)); border-top:1px solid var(--linie); margin-top:12px; z-index:5; }
  .handy-leiste button { width:100%; padding:14px; font-size:16px; border-radius:10px; }
}

/* Handy: oben nur Logo und ☰, Menü klappt auf */
.handymenue { display:none; }
@media (max-width:760px) {
  aside.seite { position:sticky; top:0; z-index:40; }
  .seite-kopf { flex-direction:row !important; align-items:center; padding:8px 12px !important; }
  .handymenue { display:flex; margin-left:auto; background:none; border:none; color:inherit; padding:6px; } .handymenue .ic { width:26px; height:26px; }
  body:not(.nav-offen) #nav, body:not(.nav-offen) #seite-fuss { display:none !important; }
  body.nav-offen #nav { padding-bottom:8px; }
  .bestell-pos table { display:table; white-space:normal; }
}
@media (max-width:760px) { .seitenkopf-titel { min-width:0; } .seitenkopf-titel .klein-text { white-space:normal; overflow-wrap:anywhere; } }
@media (max-width:760px) { .bestell-liste table { display:table; white-space:normal; width:100%; } .bestell-liste td { height:auto; padding:12px 10px; } }

/* CRM (Vertrieb) */
.crm-ansicht { width:auto; } 
.crm-aufgabe { display:flex; align-items:center; gap:12px; padding:10px 0; border-bottom:1px solid var(--linie); cursor:pointer; }
.crm-aufgabe:last-child { border-bottom:none; } .crm-aufgabe input[type=checkbox] { width:22px; height:22px; flex:none; accent-color:var(--rot); }
.crm-aufgabe-text { flex:1; min-width:0; } .crm-aufgabe-rechts { text-align:right; font-size:14px; white-space:nowrap; }
.crm-heute { color:var(--rot); font-weight:500; } .crm-tel { white-space:nowrap; } .crm-tel .ic { vertical-align:-3px; }
.crm-heute-kasten { margin-bottom:16px; }
.crm-board { display:grid; grid-template-columns:repeat(6, minmax(0, 1fr)); gap:10px; align-items:start; }
.crm-spalte { background:#efefef; border-radius:10px; padding:8px; min-height:140px; } .crm-spalte.ziel, .crm-zu-feld.ziel { outline:2px dashed var(--rot); outline-offset:-2px; }
.crm-spalte-kopf { display:flex; justify-content:space-between; align-items:baseline; gap:6px; font-weight:500; font-size:13px; padding:2px 4px 8px; }
.crm-spalte-kopf .klein-text { font-size:12px; white-space:nowrap; }
.crm-karte { background:#fff; border:1px solid var(--linie); border-radius:8px; padding:8px 10px; margin-bottom:6px; cursor:pointer; font-size:13.5px; min-width:0; }
.crm-karte:hover { border-color:#bbb; } .crm-karte.warn { border-left:3px solid var(--rot); } .crm-karte.zieht { opacity:.4; }
.crm-karte-kopf { display:flex; justify-content:space-between; align-items:center; gap:4px; min-height:22px; }
.crm-karte-kopf b, .crm-karte-zeile { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; min-width:0; }
.crm-karte-kopf .icon-knopf { margin:-6px -6px -6px 0; flex:none; }
@media (hover:hover) { .crm-karte-kopf .icon-knopf { opacity:0; } .crm-karte:hover .icon-knopf { opacity:1; } }
.crm-karte-zeile { color:var(--grau); font-size:12.5px; }
.crm-karte-fuss { display:flex; justify-content:space-between; gap:8px; font-size:12.5px; margin-top:5px; color:#444; }
.crm-karte-fuss > span { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; min-width:0; } .crm-karte-fuss b { font-weight:500; white-space:nowrap; }
.crm-zu { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:10px; margin-top:12px; align-items:start; }
.crm-zu-feld { background:#fff; border:1px dashed #c8c8c8; border-radius:10px; padding:8px; min-height:90px; }
.crm-zu-feld .crm-karte { background:var(--flaeche); } .crm-zu-leer { color:#aaa; font-size:13px; text-align:center; padding:14px 0; }
.crm-zu-mehr { font-size:13px; padding:2px 4px; }
body.crm-zieht .crm-zu-feld, body.crm-zieht .crm-spalte { background:#fff6f6; } body.crm-zieht .crm-zu-feld { border-color:var(--rot); }
body.crm-zieht .crm-spalte *, body.crm-zieht .crm-zu-feld * { pointer-events:none; }
.crm-suche { margin-left:auto; } .crm-suche .suchfeld input { width:200px; } .kopf .crm-suche + .primaer { margin-left:0; }
@media (max-width:1100px) { .crm-board { grid-template-columns:repeat(6, minmax(170px, 1fr)); overflow-x:auto; padding-bottom:6px; } .crm-suche .suchfeld input { width:140px; } }
.crm-seite { display:grid; grid-template-columns:minmax(0, 1.25fr) minmax(0, 1fr); gap:16px; align-items:start; }
.crm-rechts { display:grid; gap:16px; } .crm-schritt { border-color:var(--rot); }
.crm-verlauf .crm-v { padding:10px 0 10px 14px; border-left:2px solid var(--linie); margin-left:4px; }
.crm-verlauf .crm-v.gespraech { border-left-color:var(--schwarz); }
.crm-v-kopf { display:flex; align-items:center; gap:6px; flex-wrap:wrap; } .crm-v-kopf .icon-knopf { margin-left:auto; }
.crm-notiz { white-space:pre-wrap; font-size:14px; background:var(--flaeche); border-radius:8px; padding:10px 12px; margin-top:6px; }
.crm-v details summary { cursor:pointer; margin-top:4px; }
.crm-angebot { display:flex; align-items:center; gap:8px; padding:8px 0; border-bottom:1px solid var(--linie); } .crm-angebot > div { flex:1; }
.crm-angebot:last-child { border-bottom:none; } .crm-angebot.ersetzt { opacity:.55; }
.crm-balken { display:flex; align-items:center; gap:10px; font-size:14px; padding:4px 0; } .crm-balken > span:first-child { width:160px; flex:none; }
.crm-balken-spur { flex:1; height:8px; background:var(--hell); border-radius:4px; overflow:hidden; } .crm-balken-spur i { display:block; height:100%; background:var(--rot); }
@media (max-width:1100px) { .crm-seite { grid-template-columns:1fr; } }
@media (max-width:760px) { .crm-aufgabe { flex-wrap:wrap; } .crm-aufgabe [data-ortstermin] { width:100%; } .crm-balken > span:first-child { width:110px; } .kopf .crm-ansicht { order:3; width:100%; } .kopf .crm-ansicht button { flex:1; } }
@media (max-width:760px) { .seitenkopf-rechts { flex-wrap:wrap; } .seitenkopf-rechts #weiter { order:3; flex-basis:100%; } .crm-board { grid-template-columns:minmax(0, 1fr); overflow:visible; } .crm-spalte { min-height:0; } .crm-zu { grid-template-columns:1fr; } .crm-suche { margin-left:0; flex:1; } .crm-suche .suchfeld input { width:100%; } }

.drop-overlay { position:fixed; inset:0; background:rgba(228,0,0,.08); border:3px dashed var(--rot); display:none; align-items:center; justify-content:center; z-index:50; pointer-events:none; font-size:22px; font-weight:500; color:var(--rot); }
.drop-overlay.sichtbar { display:flex; }
.crm-angebot.klick { cursor:pointer; } .crm-angebot.klick:hover { background:var(--flaeche); }
.ablage.gewaehlt { border-color:var(--gruen); color:var(--gruen); }

.status-chip { display:inline-flex; align-items:center; gap:4px; border:none; border-radius:8px; padding:4px 10px; font-size:13px; font-weight:400; background:#ececec; color:#3d3d3d; }
.status-chip:hover { background:#e0e0e0; } .status-chip .ic { opacity:.7; }
.status-chip.gelb { background:#fbefc5; color:#7a5b00; } .status-chip.gruen { background:#dcf2e3; color:#1d6b36; } .status-chip.rot { background:#fde3e3; color:#a40f0f; }
.ausg-tabelle td { padding-top:13px; padding-bottom:13px; }

.ges-tabelle { table-layout:fixed; } .ges-tabelle th:nth-child(1) { width:105px; } .ges-tabelle th:nth-child(2) { width:150px; } .ges-tabelle th:nth-child(4) { width:22%; } .ges-tabelle th:nth-child(5) { width:90px; } .ges-tabelle th:nth-child(6) { width:48px; }
.ges-text { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; } .ges-text b { margin-right:8px; } .ges-text span { color:var(--grau); }
.ges-tabelle td:nth-child(4) { overflow:hidden; text-overflow:ellipsis; }
@media (max-width:760px) { .ges-tabelle th:nth-child(2), .ges-tabelle td:nth-child(2), .ges-tabelle th:nth-child(5), .ges-tabelle td:nth-child(5) { display:none; } }

/* Aufgaben */
.auf-neu-karte { padding:10px 14px; margin-bottom:16px; }
.auf-eingabe-zeile { display:flex; align-items:center; gap:10px; } .auf-eingabe-zeile input { flex:1; border:none; padding:6px 0; font-size:15px; outline:none; background:transparent; }
.auf-eingabe-zeile input:focus { outline:none; } .auf-plus { color:var(--rot); font-size:22px; line-height:1; width:22px; text-align:center; }
.auf-vorschau { display:flex; flex-wrap:wrap; align-items:center; gap:6px; } .auf-vorschau:not(:empty) { margin-top:8px; }
.auf-chip { font-size:12px; border-radius:6px; padding:2px 8px; background:#ececec; color:#3d3d3d; }
.auf-chip.datum { background:#dcf2e3; color:#1d6b36; } .auf-chip.wer { background:#ebe9fc; color:#3c3489; } .auf-chip.ziel { background:#fbefc5; color:#7a5b00; }
.auf-chip.p1 { background:#fde3e3; color:#a40f0f; } .auf-chip.p2 { background:#fde9d3; color:#8a4a00; } .auf-chip.p3 { background:#dde9fb; color:#0c447c; }
.auf-knoepfe { margin-left:auto; display:flex; gap:6px; }
.auf-gruppe { margin-bottom:16px; } .auf-gruppe-kopf { display:flex; justify-content:space-between; align-items:baseline; font-weight:500; font-size:14px; margin:0 4px 6px; }
.auf-liste { padding:0 14px; } .auf-liste.flach { padding:0; }
.auf-zeile { display:flex; align-items:center; gap:12px; padding:10px 0; border-bottom:1px solid var(--linie); cursor:pointer; min-width:0; }
.auf-liste .auf-zeile:last-child { border-bottom:none; }
.auf-kreis { width:22px; height:22px; flex:none; border-radius:50%; border:2px solid #b8b8b8; background:#fff; padding:0; display:flex; align-items:center; justify-content:center; color:#fff; }
.auf-kreis:hover { background:#f2f2f2; } .auf-kreis .ic { width:12px; height:12px; }
.auf-kreis.p1 { border-color:#d93025; background:#fdecea; } .auf-kreis.p2 { border-color:#ef8a17; background:#fef1e2; } .auf-kreis.p3 { border-color:#2f7de1; background:#e8f1fd; }
.auf-zeile.erledigt .auf-kreis { background:#9a9a9a; border-color:#9a9a9a; } .auf-zeile.erledigt .auf-text > span { text-decoration:line-through; color:var(--grau); }
.auf-text { flex:1; min-width:0; } .auf-text > span { margin-right:8px; }
.auf-bezug { font-size:12.5px; color:var(--grau); background:var(--flaeche); border-radius:6px; padding:1px 7px; white-space:nowrap; display:inline-block; max-width:100%; overflow:hidden; text-overflow:ellipsis; vertical-align:middle; }
.auf-bezug:hover { color:var(--rot); text-decoration:none; }
.auf-datum { font-size:13px; white-space:nowrap; }
.auf-zeile .icon-knopf { flex:none; } @media (hover:hover) { .auf-zeile .icon-knopf { opacity:0; } .auf-zeile:hover .icon-knopf { opacity:1; } }
.auf-prio button { padding:6px 4px; }
@media (max-width:760px) { .auf-knoepfe { margin-left:0; width:100%; } .auf-wer { display:none; } }

.auf-popup { max-height:300px; overflow:auto; padding:4px; } .auf-popup .auswahl-eintrag { white-space:normal; flex-direction:column; gap:0; align-items:flex-start; text-align:left; }
button.auf-chip { border:none; font:inherit; font-size:12px; cursor:pointer; display:inline-flex; align-items:center; gap:3px; padding:2px 6px 2px 8px; }
button.auf-chip .ic { width:11px; height:11px; opacity:.7; } button.auf-chip.leer { background:#f1f1f1; color:var(--grau); }
.auf-chip-weg { border:none; background:none; color:var(--grau); padding:0 4px; font-size:12px; cursor:pointer; }

/* Avatare */
.avatar-bild, .avatar-kreis { width:26px; height:26px; border-radius:50%; flex:none; object-fit:cover; display:inline-flex; align-items:center; justify-content:center; background:#ececec; color:#555; font-size:11px; font-weight:500; vertical-align:middle; }
.avatar.mit-bild { padding:0; overflow:hidden; } .avatar.mit-bild img { width:100%; height:100%; object-fit:cover; border-radius:50%; display:block; }
.benutzer-name { display:flex; align-items:center; gap:8px; }
.profil-karte { display:flex; gap:16px; align-items:center; } .profil-bild { width:72px; height:72px; border-radius:50%; overflow:hidden; background:#ececec; display:flex; align-items:center; justify-content:center; font-size:24px; font-weight:500; color:#555; flex:none; } .profil-bild img { width:100%; height:100%; object-fit:cover; }
/* Aufgabe groß */
dialog.auf-detail { width:min(1000px, 96vw); max-width:none; padding:0; }
.auf-detail-kopf { display:flex; align-items:center; justify-content:space-between; padding:12px 18px; border-bottom:1px solid var(--linie); }
.auf-detail-bezug { color:#111; font-weight:500; } .auf-detail-bezug:hover { color:#444; } /* nicht blau (Dom 27.10.2026) */ .auf-detail-knoepfe { display:flex; gap:4px; } .auf-detail-knoepfe .icon-knopf:disabled { opacity:.3; }
.auf-detail-raster { display:grid; grid-template-columns:minmax(0, 1fr) 280px; min-height:420px; }
.auf-detail-links { padding:18px 22px 24px; } .auf-detail-rechts { background:#f8f8f7; padding:18px 20px; border-left:1px solid var(--linie); }
.auf-detail-titel { display:flex; gap:12px; align-items:flex-start; }
.auf-detail-titel textarea { border:none; font-size:22px; font-weight:500; padding:0; min-height:0; resize:none; flex:1; background:transparent; } .auf-detail-titel textarea:focus { outline:none; } .auf-detail-titel textarea.erledigt { text-decoration:line-through; color:var(--grau); }
.auf-kreis.gross { width:26px; height:26px; margin-top:3px; } .auf-kreis.mini { width:18px; height:18px; }
.auf-detail-notiz { border:none; padding:6px 0 6px 38px; min-height:0; resize:none; color:#444; background:transparent; } .auf-detail-notiz:focus { outline:none; }
.auf-detail-abschnitt { margin:18px 0 6px; padding-bottom:6px; border-bottom:1px solid var(--linie); }
.auf-unter { display:flex; align-items:center; gap:10px; padding:8px 0 8px 4px; border-bottom:1px solid var(--linie); } .auf-unter span { flex:1; } .auf-unter.erledigt span { text-decoration:line-through; color:var(--grau); }
.auf-weg { border:none; background:none; color:#999; padding:2px 6px; cursor:pointer; opacity:0; } .auf-unter:hover .auf-weg, .auf-weg.sichtbar { opacity:1; }
.auf-unter-neu { display:flex; align-items:center; gap:10px; padding:6px 0 6px 2px; } .auf-unter-neu input, .auf-kommentar.neu input { border:none; flex:1; padding:6px 0; background:transparent; } .auf-unter-neu input:focus { outline:none; }
.auf-kommentar { display:flex; gap:10px; padding:10px 0; } .auf-kommentar > div { flex:1; } .auf-kommentar .icon-knopf { float:right; margin:-4px 0 0; }
.auf-kommentar.neu { align-items:center; } .auf-kommentar.neu input { border:1px solid #d5d5d5; border-radius:18px; padding:8px 14px; }
.auf-feld { padding:10px 0; border-bottom:1px solid #e6e6e4; position:relative; } .auf-feld > span { display:block; font-size:13px; color:var(--grau); margin-bottom:6px; font-weight:500; }
.auf-feld-wert { border:none; background:none; padding:2px 0; font:inherit; display:flex; align-items:center; gap:8px; cursor:pointer; text-align:left; font-weight:400; color:inherit; white-space:normal; }
.auf-feld-wert:hover { color:var(--rot); background:none; } .auf-feld .auf-weg { position:absolute; right:-6px; top:6px; }
.auf-feld-wert.datum input { border:none; background:transparent; padding:2px 0; } .auf-feld-wert.datum input[type=time] { width:90px; }
.prio-p1 .ic { color:#d93025; } .prio-p2 .ic { color:#ef8a17; } .prio-p3 .ic { color:#2f7de1; }
.auf-erstellt { margin-top:14px; }
.auf-info { display:flex; gap:10px; margin-top:2px; } .auf-info span { display:inline-flex; align-items:center; gap:3px; } .auf-notiz { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:420px; }
@media (max-width:760px) { .auf-detail-raster { grid-template-columns:1fr; } .auf-detail-rechts { border-left:none; border-top:1px solid var(--linie); } }

/* Anfrage-Seite (22.10.2026): Phasenleiste, links Kontakt, rechts Inhalt, Gespräche einzeilig */
.crm-phasen { display:flex; gap:4px; margin:-4px 0 16px; overflow-x:auto; }
.crm-phasen span { flex:1; min-width:max-content; text-align:center; padding:6px 10px; border-radius:6px; background:#f0f0f0; color:#777; font-size:13px; white-space:nowrap; }
.crm-phasen span.fertig { background:#dcf3e4; color:#1f6b3a; } .crm-phasen span.jetzt { background:#fbe7c6; color:#7a4a00; font-weight:600; }
.crm-phasen span.jetzt.gewonnen { background:#cdeedb; color:#16603a; } .crm-phasen span.jetzt.verloren { background:#fcd9d9; color:#a32020; } .crm-phasen span.jetzt.wiedervorlage { background:#e2ddfc; color:#5b3fd1; }
.crm-seite2 { grid-template-columns:minmax(280px, 1fr) minmax(0, 2fr); }
.crm-links, .crm-rechts { display:flex; flex-direction:column; gap:16px; min-width:0; } .crm-seite2 .akte-kasten { margin:0; }
.crm-gespraeche { display:flex; flex-direction:column; }
.crm-gz { display:flex; align-items:center; gap:10px; padding:9px 4px; border-top:1px solid #eee; } .crm-gz:first-child { border-top:none; }
.crm-gz:hover { background:#fafafa; } .crm-gz-datum { color:#777; font-size:13px; white-space:nowrap; min-width:78px; }
.crm-gz-titel { flex:1; min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
@media (max-width:1100px) { .crm-seite2 { grid-template-columns:1fr; } }

/* KI-Zugang: Schlüssel und Befehle zum Kopieren */
.ki-wert { display:flex; align-items:center; gap:8px; background:#f5f5f5; border-radius:8px; padding:8px 10px; margin:6px 0 10px; }
.ki-wert code { flex:1; min-width:0; overflow-wrap:anywhere; font-size:12.5px; }
.crm-phasen span { cursor:pointer; } .crm-phasen span:hover { filter:brightness(.96); } .crm-phasen span.jetzt[data-phase] { cursor:default; }

/* Leiste (22.10.2026): Nodus oben mit Lupe, Gruppen Lager und Kontakte mit Ausklapp-Liste rechts, Abschnitt Ressourcen */
.kopf-lupe { background:none; border:none; color:#aaa; padding:6px; border-radius:6px; cursor:pointer; display:flex; } .kopf-lupe:hover { background:#222; color:#fff; } .kopf-lupe .ic { width:18px; height:18px; }
body.nav-zu .kopf-lupe { display:none; }
.nav-gruppe { position:relative; outline:none; }
.nav-gruppe-kopf { display:flex; align-items:center; gap:12px; padding:9px 12px; border-radius:8px; margin-bottom:2px; color:#ddd; cursor:default; white-space:nowrap; user-select:none; }
.nav-gruppe:hover .nav-gruppe-kopf, .nav-gruppe.offen .nav-gruppe-kopf { background:#1d1d1d; color:#fff; }
.nav-gruppe.aktiv .nav-gruppe-kopf { background:#262626; color:#fff; font-weight:500; }
.nav-pfeil { width:14px; height:14px; color:#777; flex:none; }
.gruppen-punkt { display:none; width:7px; height:7px; border-radius:50%; background:var(--rot); padding:0 !important; min-width:0 !important; }
.gruppen-punkt.an { display:block; } .nav-gruppe-kopf .nav-text { flex:1; }
.nav-flyout { display:none; position:fixed; z-index:80; min-width:230px; background:#151515; border:1px solid #2c2c2c; border-radius:10px; padding:6px; box-shadow:0 10px 30px rgba(0,0,0,.35); }
.nav-gruppe.offen .nav-flyout { display:block; }
.flyout-titel { font-size:11px; letter-spacing:.8px; text-transform:uppercase; color:#888; padding:6px 10px 6px; }
body.nav-zu .nav-flyout .nav-text { display:inline; } body.nav-zu #nav .nav-flyout a { justify-content:flex-start; padding:9px 12px; }
body.nav-zu .nav-gruppe-kopf { justify-content:center; padding:10px 0; position:relative; } body.nav-zu .nav-gruppe-kopf .nav-pfeil { display:none; }
body.nav-zu .gruppen-punkt.an { position:absolute; top:6px; right:10px; }
.nur-beta-inline { display:none; } body.beta .nur-beta-inline { display:contents; }
.nav-titel-gruppe { padding:14px 12px 4px; font-size:11px; letter-spacing:.8px; text-transform:uppercase; color:#888; }
body.nav-zu .nav-titel-gruppe { padding:10px 0 4px; } body.nav-zu .nav-titel-gruppe .nav-text { display:none; } body.nav-zu .nav-titel-gruppe::after { content:''; display:block; height:1px; background:#2a2a2a; margin:0 10px; }
@media (max-width:760px) {
  #nav { display:block !important; }
  .nav-flyout { display:block; position:static; background:none; border:none; box-shadow:none; padding:0 0 4px 18px; min-width:0; }
  .flyout-titel, .nav-pfeil { display:none; } .nav-gruppe-kopf { cursor:default; color:#999; font-size:12px; text-transform:uppercase; letter-spacing:.6px; padding:10px 12px 2px; }
  .nav-gruppe:hover .nav-gruppe-kopf { background:none; } .nav-gruppe-kopf .ic { display:none; }
}

/* Projektakte wie plancraft (23.10.2026, nach Doms Screenshots): graue Fläche, weiße Karten, Kästen mit feinem Rahmen, Chat rechts */
main.feste-seite { height:100vh; display:flex; flex-direction:column; overflow:hidden; }
main.pa-seite { background:#f0f0f0; }
.pa-kopf { display:flex; align-items:center; gap:14px; margin:1px 0 14px; flex:none; }
.pa-kopf h1 { margin:0; font-size:21px; font-weight:700; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; } .pa-kopf .rechts { margin-left:auto; }
.pa-knopf { display:inline-flex; align-items:center; justify-content:center; gap:7px; height:38px; min-width:38px; padding:0 10px; background:#fff; border:1px solid #d9d9d9; border-radius:8px; color:#222; cursor:pointer; font:inherit; font-size:14.5px; font-weight:500; text-decoration:none; }
.pa-knopf:hover { background:#f6f6f6; text-decoration:none; } .pa-knopf svg { width:17px; height:17px; } .pa-knopf.klein { height:28px; min-width:28px; padding:0 6px; }
.pa-knopf.an { border-color:#111; }
.pa { flex:1; min-height:0; display:grid; grid-template-columns:minmax(0, 1fr) 450px; gap:12px; }
.pa-links { display:flex; flex-direction:column; gap:12px; min-height:0; min-width:0; }
.pa-karte { background:#fff; border-radius:10px; }
.pa-uebersicht-karte { flex:none; padding:0 10px 10px; }
.pa-uebersicht { display:grid; grid-template-columns:1fr 1fr 1fr; grid-template-rows:auto auto; gap:6px; margin-top:10px; }
.pa-uebersicht .g1 { grid-column:1; grid-row:1; } .pa-uebersicht .g2 { grid-column:1; grid-row:2; } .pa-uebersicht .g3 { grid-column:2; grid-row:1; } .pa-uebersicht .g4 { grid-column:2; grid-row:2; } .pa-uebersicht .g5 { grid-column:3; grid-row:1 / span 2; }
.pa-box { border:1px solid #ececec; border-radius:8px; padding:14px 16px; min-width:0; line-height:1.55; font-size:15px; position:relative; }
.pa-box-titel { display:flex; align-items:center; gap:8px; font-size:13px; letter-spacing:.3px; text-transform:uppercase; color:#444; margin-bottom:10px; } .pa-box-titel svg { width:17px; height:17px; color:#333; }
.pa-gross { font-size:19px; } button.pa-link { background:none; border:none; padding:0; font:inherit; font-size:19px; cursor:pointer; }
.pa-link { color:#111; text-decoration:underline; text-underline-offset:3px; } .pa-link:hover { color:var(--rot); }
.pa-tel { color:#111; } .pa-tag { position:absolute; right:14px; top:50%; background:#ececec; color:#444; font-size:12.5px; padding:2px 8px; border-radius:6px; }
.pa-text { max-height:150px; overflow:auto; color:#333; } .pa-keine { color:#666; display:flex; align-items:center; justify-content:flex-start; min-height:90px; }
.pa-unten { flex:1; min-height:0; display:flex; flex-direction:column; padding:0 10px; }
.pa-reiter { display:flex; align-items:center; gap:2px; padding-top:10px; flex:none; min-height:48px; }
.pa-reiter > button { background:none; border:none; border-bottom:2px solid transparent; border-radius:0; padding:8px 6px 8px; margin-right:10px; font-size:15px; font-weight:500; color:#6a6a6a; cursor:pointer; }
.pa-reiter > button.an { color:#131313; font-weight:600; border-bottom-color:#131313; } /* Reiter B */
.pa-reiter-rechts { margin-left:auto; display:flex; gap:8px; align-items:center; flex-shrink:0; }
.pa-reiter-rechts .knopf { white-space:nowrap; }
.pa-inhalt { flex:1; min-height:0; overflow:auto; padding:6px 0 10px; }
.pa-liste { display:flex; flex-direction:column; } .pa-ablage.drueber { outline:2px dashed var(--rot); outline-offset:4px; border-radius:8px; }
.pa-zeile { display:flex; align-items:center; gap:16px; padding:12px 10px; border-bottom:1px solid #f0f0f0; color:inherit; text-decoration:none; min-height:62px; box-sizing:border-box; }
.pa-zeile:hover { background:#f5f5f5; text-decoration:none; } .pa-zeile.klick { cursor:pointer; }
.pa-ic { width:30px; flex:none; display:flex; align-items:center; justify-content:center; color:#111; } .pa-ic svg { width:22px; height:22px; } .pa-ic img { width:34px; height:34px; object-fit:cover; border-radius:5px; }
.pa-zeile-text { flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; } .pa-zeile-text b { font-weight:600; font-size:15px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; } .pa-zeile-text span { font-size:13px; color:#666; }
.pa-betrag { white-space:nowrap; }
.pa-leer { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:12px; color:#666; text-align:center; padding:60px 20px; height:100%; box-sizing:border-box; line-height:1.6; } .pa-leer b { color:#555; }
.pa-pfad { padding:8px 10px 4px; font-size:14px; }
.pakte { max-width:760px; } .pakte-titel { display:flex; align-items:center; gap:10px; font-size:17px; margin:22px 0 10px; } .pakte-titel:first-child { margin-top:0; }
.pakte-titel::after { content:''; flex:1; height:1px; background:#e6e6e6; }
.pk-zeile { display:grid; grid-template-columns:150px 1fr; gap:12px; padding:7px 0; align-items:baseline; } .pk-zeile > span { color:#555; font-size:14px; }
.pakte-kunde { display:flex; gap:12px; align-items:flex-start; border:1px solid #e6e6e6; border-radius:10px; padding:12px 14px; color:inherit; max-width:420px; } .pakte-kunde:hover { background:#fafafa; text-decoration:none; }
/* Chat */
.pa-chat { display:flex; flex-direction:column; min-height:0; overflow:hidden; }
.ch-titel { margin:0; padding:18px 16px 6px; font-size:20px; font-weight:700; }
.ch-reiter { display:flex; align-items:center; gap:2px; margin:0 8px; border-bottom:1px solid #e3e3e3; flex:none; }
.ch-reiter > button[data-kanal] { background:none; border:none; border-bottom:2px solid transparent; border-radius:0; padding:10px 12px; font-size:15px; font-weight:500; color:#333; cursor:pointer; margin-bottom:-1px; }
.ch-reiter > button[data-kanal].an { font-weight:600; color:#111; border-bottom-color:#111; }
.ch-filter { margin-left:auto; height:32px; margin-bottom:6px; font-size:13.5px; }
.ch-angeheftet { flex:none; border-bottom:1px solid #eee; max-height:84px; overflow:auto; background:#fafafa; } .ch-pin-zeile { padding:7px 16px; font-size:13px; cursor:pointer; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; } .ch-pin-zeile:hover { background:#f2f2f2; }
.ch-verlauf { flex:1; min-height:0; overflow-y:auto; padding:6px 10px 10px; display:flex; flex-direction:column; gap:10px; }
.ch-ziel { outline:2px solid var(--rot) !important; outline-offset:-2px; border-radius:12px; }
.ch-tag { display:flex; align-items:center; gap:10px; color:#666; font-size:12.5px; margin:10px 0 2px; } .ch-tag::before, .ch-tag::after { content:''; flex:1; height:1px; background:#e2e2e2; }
.ch-n { display:flex; align-items:flex-start; gap:10px; max-width:90%; } .ch-n.ich { align-self:flex-end; flex-direction:row-reverse; }
.ch-av { width:30px !important; height:30px !important; font-size:11px; flex:none; margin-top:2px; } .ch-av-platz { width:30px; flex:none; }
.ch-blase { background:#f2f2f2; border-radius:8px; padding:9px 12px 6px; min-width:90px; overflow-wrap:anywhere; }
.ch-n.ich .ch-blase { background:#e4e4e4; } .ch-n.erwaehnt .ch-blase { box-shadow:inset 3px 0 0 #e0a800; }
.ch-blase.geloescht { color:#888; font-style:italic; font-size:13.5px; }
.ch-wer { font-size:13.5px; font-weight:600; margin-bottom:4px; }
.ch-text { font-size:14.5px; line-height:1.5; } .ch-at { color:#1d4ed8; font-weight:600; }
.ch-zeit { font-size:12px; color:#555; text-align:right; margin-top:4px; display:flex; justify-content:flex-end; align-items:center; gap:4px; } .ch-pin-ic svg { width:12px; height:12px; }
.ch-bild { display:block; max-width:240px; max-height:240px; border-radius:6px; cursor:zoom-in; margin:2px 0 4px; }
.ch-datei { display:flex; align-items:center; gap:8px; color:#111; margin:2px 0; font-size:14px; text-decoration:none; } .ch-datei:hover b { text-decoration:underline; } .ch-datei svg { width:18px; height:18px; flex:none; }
.ch-zitat { border-left:3px solid #999; background:rgba(0,0,0,.05); border-radius:4px; padding:4px 8px; margin-bottom:6px; font-size:13px; cursor:pointer; display:flex; flex-direction:column; } .ch-zitat span { color:#555; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ch-aktion { display:flex; gap:2px; align-self:flex-start; margin-top:4px; opacity:0; transition:opacity .1s; } .ch-n:hover .ch-aktion { opacity:1; }
.ch-aktion button { background:none; border:none; padding:4px; border-radius:6px; color:#444; cursor:pointer; display:flex; } .ch-aktion button:hover { background:#eee; } .ch-aktion svg { width:16px; height:16px; }
.ch-n.blink .ch-blase { animation:chBlink 1.2s; } @keyframes chBlink { 30% { box-shadow:0 0 0 3px #e0a800; } }
.ch-galerie { display:grid; grid-template-columns:repeat(3, 1fr); gap:6px; padding-top:6px; }
.ch-kachel { aspect-ratio:1; border:none; padding:0; border-radius:6px; overflow:hidden; background:#f2f2f2; cursor:zoom-in; display:flex; }
.ch-kachel img { width:100%; height:100%; object-fit:cover; } .ch-kachel.datei { flex-direction:column; align-items:center; justify-content:center; gap:6px; color:#111; text-decoration:none; cursor:pointer; padding:8px; text-align:center; font-size:12px; } .ch-kachel.datei svg { width:28px; height:28px; } .ch-kachel.datei span { overflow:hidden; text-overflow:ellipsis; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
.ch-unten { flex:none; background:#f2f2f2; border-radius:0 0 10px 10px; }
.ch-antwort { display:flex; align-items:center; gap:8px; padding:8px 12px 0; } .ch-antwort div { flex:1; min-width:0; border-left:3px solid #999; padding-left:8px; display:flex; flex-direction:column; font-size:13px; } .ch-antwort span { color:#666; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ch-eingabe { display:flex; align-items:flex-end; gap:8px; padding:12px; }
.ch-feld { flex:1; min-width:0; background:#fff; border:1px solid #d9d9d9; border-radius:8px; }
.ch-feld:focus-within { border-color:#999; }
.ch-werkzeug { display:none; gap:2px; padding:5px 6px 0; } .ch-feld:focus-within .ch-werkzeug { display:flex; }
.ch-werkzeug button { background:none; border:none; width:28px; height:26px; border-radius:5px; color:#222; cursor:pointer; font-size:14px; display:flex; align-items:center; justify-content:center; } .ch-werkzeug button:hover { background:#f0f0f0; } .ch-werkzeug svg { width:16px; height:16px; }
.ch-feld textarea { display:block; width:100%; box-sizing:border-box; border:none; outline:none; resize:none; padding:9px 10px; font:inherit; font-size:14.5px; line-height:1.4; max-height:140px; background:none; }
.ch-senden { color:#aaa; } .ch-senden.bereit { color:#fff; background:var(--rot); border-color:var(--rot); }
@media (max-width:1100px) { .pa { grid-template-columns:1fr; overflow:auto; } main.feste-seite { height:auto; overflow:visible; } .pa-chat { height:75vh; } .pa-uebersicht { grid-template-columns:1fr; } .pa-uebersicht > .pa-box { grid-column:1 !important; grid-row:auto !important; } .pa-unten { min-height:420px; } }

/* Chat-Eingabe (3.39): Knöpfe so hoch wie das Feld, Textfeld mit Formatierung, Erwähnung als graue Marke */
.ch-eingabe { align-items:stretch; }
.ch-eingabe > .pa-knopf { height:auto; min-height:42px; width:44px; padding:0; }
.ch-editor { min-height:22px; max-height:160px; overflow-y:auto; padding:10px 12px; font-size:14.5px; line-height:1.45; outline:none; overflow-wrap:anywhere; }
/* Platzhalter im Chat-Feld: siehe .md-feld.md-leer */
.ch-marke { display:inline-block; background:#e9e9e9; color:#111; border-radius:6px; padding:0 6px; font-weight:500; white-space:nowrap; }
.ch-werkzeug button.an { background:#e6e6e6; }
/* Ablage: Haken beim Überfahren statt Symbol, Auswahl-Leiste, Ziehen auf Ordner */
.ab-haken { display:none; width:18px; height:18px; margin:0; cursor:pointer; }
.ab-zeile:hover .ab-haken, .ab-zeile.gewaehlt .ab-haken, .mit-wahl .ab-haken { display:block; }
.ab-zeile:hover .ab-symbol, .ab-zeile.gewaehlt .ab-symbol, .mit-wahl .ab-symbol { display:none; }
.ab-symbol { display:flex; align-items:center; justify-content:center; }
.ab-zeile.gewaehlt { background:#f3f3f3; } .ab-zeile.zieht { opacity:.45; }
.ab-zeile.ziel-an, .ab-ziel.ziel-an { background:#fde8e8; box-shadow:inset 0 0 0 2px var(--rot); border-radius:6px; }
.ab-leiste { display:flex; align-items:center; gap:14px; padding:10px 12px; border-bottom:1px solid #f0f0f0; position:sticky; top:0; background:#fff; z-index:2; }
.ab-alle { display:flex; align-items:center; gap:10px; font-size:14.5px; cursor:pointer; } .ab-alle input { width:18px; height:18px; margin:0; }
.ab-trenner { width:1px; height:22px; background:#ddd; }
.ab-icon { background:none; border:none; padding:6px; border-radius:6px; color:#222; cursor:pointer; display:flex; } .ab-icon:hover { background:#f0f0f0; } .ab-icon.gefahr, button.ab-icon.gefahr { color:var(--rot); background:none; border:none; } button.ab-icon.gefahr:hover { background:#fdeaea; filter:none; } .ab-icon svg { width:19px; height:19px; }
.pa-zeile.aus { opacity:.45; cursor:default; } .pa-pfad .link { font-size:14px; }

/* Pfad-Leiste der Ablage (Tiefe der Ordner): Zurück-Knopf, Ebenen mit Pfeil, jede Ebene ist Ablageziel */
.ab-pfad { display:flex; align-items:center; gap:10px; padding:6px 4px 10px; border-bottom:1px solid #f0f0f0; margin-bottom:2px; position:sticky; top:0; background:#fff; z-index:3; }
.ab-hoch-ebene { width:36px; min-width:36px; height:36px; padding:0; }
.ab-krumen { display:flex; align-items:center; gap:4px; min-width:0; overflow-x:auto; scrollbar-width:none; }
.ab-krumen > svg { width:14px; height:14px; color:#999; flex:none; }
.ab-krume { display:inline-flex; align-items:center; gap:7px; padding:6px 10px; border-radius:8px; border:1px dashed transparent; background:none; font:inherit; font-size:15px; color:#555; cursor:pointer; white-space:nowrap; max-width:240px; }
.ab-krume span { overflow:hidden; text-overflow:ellipsis; } .ab-krume svg { width:17px; height:17px; flex:none; }
button.ab-krume:hover { background:#f2f2f2; color:#111; }
.ab-krume.jetzt { color:#111; font-weight:600; cursor:default; }
.ab-pfad.ziehen .ab-ziel { border-color:#c9c9c9; }
.ab-krume.ziel-an, .ab-hoch-ebene.ziel-an { background:#fde8e8; border:1px solid var(--rot); color:var(--rot); }
/* Leerer Ordner: gestricheltes Feld über die ganze Fläche zum Auswählen oder Hineinziehen */
.ab-leerfeld { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:12px; width:100%; min-height:360px; height:100%; border:1.5px dashed #d6d6d6; border-radius:8px; background:none; color:#aaa; font:inherit; font-size:15px; cursor:pointer; }
.ab-leerfeld:hover, .pa-ablage.drueber .ab-leerfeld { border-color:#999; color:#777; } .ab-leerfeld svg { width:22px; height:22px; }
.pa-ablage.leer { height:calc(100% - 52px); }

/* Dateiansicht wie plancraft: dunkle Leiste, Bild/PDF in der Mitte, Zoom oben */
dialog.dv { position:fixed; inset:0; width:100vw; height:100vh; max-width:none; max-height:none; margin:0; padding:0; border:none; border-radius:0; background:transparent; box-shadow:none; display:flex; flex-direction:column; overflow:hidden; }
dialog.dv:not([open]) { display:none; } dialog.dv::backdrop { background:rgba(0,0,0,.55); }
.dv-leiste { flex:none; height:56px; background:#141414; color:#fff; display:flex; align-items:center; justify-content:center; gap:14px; padding:0 14px; position:relative; }
.dv-name { font-weight:600; font-size:17px; max-width:min(60vw, 720px); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.dv-rechts { position:absolute; right:12px; top:0; bottom:0; display:flex; align-items:center; gap:4px; } .dv-links { position:absolute; left:12px; top:0; bottom:0; display:flex; align-items:center; } /* Kreuz links (Dom 29.10.2026) */
.dv-knopf { background:none; border:none; color:#fff; width:38px; height:38px; border-radius:8px; display:flex; align-items:center; justify-content:center; cursor:pointer; padding:0; } .dv-knopf:hover { background:#2a2a2a; } .dv-knopf:disabled { opacity:.3; cursor:default; background:none; } .dv-knopf svg { width:20px; height:20px; }
.dv-buehne { flex:1; min-height:0; display:flex; align-items:center; justify-content:center; overflow:hidden; position:relative; }
.dv-bild { max-width:calc(100vw - 200px); max-height:calc(100vh - 56px); object-fit:contain; transform-origin:center; user-select:none; box-shadow:0 6px 30px rgba(0,0,0,.35); }
.dv-pdf { width:100%; height:100%; overflow:auto; }
.dv-seiten { display:flex; flex-direction:column; align-items:center; gap:14px; padding:24px 24px 60px; width:max-content; min-width:100%; box-sizing:border-box; }
.dv-seiten .pdf-seite { background:#fff; box-shadow:0 4px 20px rgba(0,0,0,.35); border-radius:3px; } .dv-seiten canvas { border-radius:3px; } /* Platzhalter weiß, bis die Seite gezeichnet ist (6.11.2026) */
.dv-lade { color:#eee; text-align:center; padding:40vh 20px 0; }
.dv-zoom { position:absolute; top:66px; left:50%; transform:translateX(-50%); display:flex; align-items:center; gap:2px; background:#3a3a3a; color:#fff; border-radius:6px; padding:3px; font-size:14px; font-weight:600; z-index:2; }
.dv-zoom span { min-width:54px; text-align:center; } .dv-zoom button { background:none; border:none; color:#fff; width:28px; height:26px; border-radius:4px; cursor:pointer; font-size:17px; padding:0; } .dv-zoom button:hover { background:#555; }
.dv-keine { background:#fff; border-radius:10px; padding:30px 40px; display:flex; flex-direction:column; align-items:center; gap:14px; color:#444; }
.dv-druck { position:fixed; right:0; bottom:0; width:1px; height:1px; border:0; opacity:0; }
button.ch-datei { background:none; border:none; padding:0; font:inherit; cursor:pointer; text-align:left; } button.ch-kachel.datei { border:none; font:inherit; }

/* Objekt-Adresse wählen (Projekt / Kunde / andere) */
.adr-wahl { border:1px solid var(--linie); border-radius:8px; background:#fff; overflow:hidden; margin-top:4px; }
.formular label.adr-zeile, label.adr-zeile { display:grid; grid-template-columns:18px 130px 1fr; align-items:center; gap:10px; padding:10px 12px; border-bottom:1px solid var(--linie); color:var(--schwarz); font-size:14px; cursor:pointer; }
.adr-zeile:last-child { border-bottom:none; } .adr-zeile:hover { background:var(--flaeche); } .adr-zeile.an { background:#fff5f5; }
.adr-zeile input[type=radio] { accent-color:var(--rot); width:16px; height:16px; margin:0; }
.adr-zeile .adr-titel { font-weight:500; } .adr-zeile .adr-text { color:var(--grau); }
.adr-zeile input[data-objekt] { margin:0; }
@media (max-width:700px) { .formular label.adr-zeile, label.adr-zeile { grid-template-columns:18px 1fr; } .adr-zeile .adr-text, .adr-zeile input[data-objekt] { grid-column:2; } }

/* Anfrage-Seite 3.46: drei Spalten, rechts Notiz-Chat mit Gesprächskarten; Anruf-Fenster */
.crm-seite3 { flex:1; min-height:0; display:grid; grid-template-columns:minmax(260px, 1fr) minmax(0, 1.1fr) minmax(360px, 430px); gap:14px; margin-top:4px; }
.crm-seite3 > .crm-links, .crm-seite3 > .crm-rechts { min-height:0; overflow-y:auto; padding:0 2px 12px; }
.crm-seite3 .akte-kasten { margin:0; }
.crm-chat { border:1px solid var(--linie); min-height:0; }
.ch-reiter.einzeln { border-bottom:none; }
.cg-karte { align-self:stretch; border:1px solid #dcdcdc; border-radius:10px; background:#fff; padding:9px 12px 6px; cursor:pointer; }
.cg-karte:hover { border-color:#bbb; }
.cg-kopf { display:flex; align-items:center; gap:8px; font-size:14px; } .cg-kopf b { font-weight:600; }
.cg-ic { display:flex; color:#444; } .cg-ic svg { width:15px; height:15px; }
.cg-titel { color:var(--grau); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; min-width:0; }
.cg-dauer { margin-left:auto; background:#e8f5ec; color:var(--gruen); font-size:12px; padding:1px 8px; border-radius:10px; white-space:nowrap; }
.cg-kopf .icon-knopf { margin-left:auto; width:26px; height:26px; } .cg-dauer + .icon-knopf { margin-left:0; }
.cg-nicht { color:var(--ampelrot); font-size:13px; margin-top:4px; }
.cg-haken { display:flex; flex-wrap:wrap; gap:4px 10px; margin-top:6px; font-size:13px; color:#333; } .cg-haken span { white-space:nowrap; }
.cg-text { font-size:14px; line-height:1.45; margin-top:6px; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; white-space:pre-line; }
.cg-haken-liste { margin:8px 0 0; padding-left:18px; font-size:14px; }
.an-dialog { max-width:560px; }
.an-kopf { display:flex; align-items:center; gap:10px; } .an-kopf h2 { margin:0; flex:1; font-size:19px; }
.an-uhr { display:inline-flex; align-items:center; gap:6px; background:#e8f5ec; color:var(--gruen); font-weight:600; font-variant-numeric:tabular-nums; padding:4px 12px; border-radius:14px; font-size:14px; }
.an-uhr svg { width:15px; height:15px; }
.an-unter { margin:2px 0 14px; }
.an-jn { display:flex; gap:8px; } .an-jn button { flex:1; border-color:var(--linie); color:#444; }
.an-jn button[data-er="1"].an { background:#e8f5ec; border-color:var(--gruen); color:var(--gruen); }
.an-jn button[data-er="0"].an { background:#fdecec; border-color:var(--ampelrot); color:var(--ampelrot); }
.an-jetzt { align-self:flex-start; margin-top:12px; font-size:13px; }
.an-haken { display:grid; grid-template-columns:1fr 1fr; gap:6px 14px; }
.an-h { display:flex; flex-direction:column; gap:4px; } .an-h .haken { color:var(--schwarz); font-size:14px; } .an-h input:not([type=checkbox]), .an-h select { font-size:14px; }
@media (max-width:1100px) { .crm-seite3 { grid-template-columns:1fr; } .crm-seite3 > .crm-links, .crm-seite3 > .crm-rechts { overflow:visible; } .crm-chat { height:75vh; } }
@media (max-width:600px) { .an-haken { grid-template-columns:1fr; } }
.formular .an-h label.haken, .formular #an-haken > label.haken { flex-direction:row; align-items:center; justify-content:flex-start; gap:8px; margin:0; text-align:left; color:var(--schwarz); font-size:14px; }
.an-h label.haken input { width:16px; height:16px; margin:0; flex:none; }
/* Schlüsselfoto: Ziehen und ⌘V (3.47) */
.foto-ablage .schluessel-foto.leer { text-align:center; line-height:1.5; padding:10px; box-sizing:border-box; }
.foto-ablage.drueber .schluessel-foto { outline:2px dashed var(--rot); outline-offset:3px; } .foto-ablage.drueber .schluessel-foto.leer { color:var(--rot); background:#fff4f4; }
.foto-ablage.lädt { opacity:.6; pointer-events:none; }
/* Unterschrift erst nach „Unterschreiben“ in eigenem Fenster, größeres Feld (3.48) */
.unterschrift-fenster canvas.unterschrift { height:min(260px, 42vh); }
.ue-fuss #uohne { margin-left:auto; margin-right:8px; }
#ubuch svg { width:16px; height:16px; vertical-align:-3px; margin-right:4px; }

/* Feedback / Fehler (3.49, Knopf seit 3.50 in der Fußleiste zwischen Einstellungen und Profilbild) */
#feedbackknopf { position:relative; } #feedbackknopf b { position:absolute; top:3px; right:3px; min-width:8px; height:8px; padding:0; font-size:0; border-radius:50%; background:var(--rot); } #feedbackknopf b:empty { display:none; }
.fb-arten { display:flex; gap:6px; } .fb-arten button { flex:1; border-color:var(--linie); color:#444; }
.fb-arten button.an { background:var(--rot); border-color:var(--rot); color:#fff; }
.fb-bild { border:1px dashed #c8c8c8; border-radius:8px; padding:12px; text-align:center; color:var(--grau); font-size:13px; cursor:pointer; }
.fb-bild.drueber { border-color:var(--rot); background:#fff4f4; color:var(--rot); } .fb-bild img { max-width:100%; max-height:180px; border-radius:6px; display:block; margin:0 auto 6px; }
.fb-seite { font-size:12.5px; color:var(--grau); }
.fb-board { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:12px; align-items:start; }
.fb-spalte { background:#f0f0f0; border-radius:10px; padding:10px; min-height:120px; } .fb-spalte.drueber { outline:2px dashed var(--rot); outline-offset:-2px; }
.fb-spalte h3 { margin:0 0 8px; font-size:14px; display:flex; gap:6px; align-items:center; } .fb-spalte h3 span { color:var(--grau); font-weight:400; }
.fb-karte { background:#fff; border:1px solid #e3e3e3; border-radius:8px; padding:9px 11px; margin-bottom:8px; cursor:pointer; }
.fb-karte:hover { border-color:#bbb; } .fb-karte[draggable=true] { cursor:grab; }
.fb-karte b { display:block; font-weight:500; font-size:14px; margin-top:4px; } .fb-karte .klein-text { margin-top:3px; }
.fb-karte img { width:100%; max-height:110px; object-fit:cover; border-radius:5px; margin-top:6px; display:block; }
.fb-art { font-size:11.5px; padding:1px 7px; border-radius:5px; display:inline-block; font-weight:500; }
.fb-art.fehler { background:#fde8e8; color:#a32020; } .fb-art.idee { background:#e6effb; color:#1d4f91; } .fb-art.frage { background:#fbf0d9; color:#7a4a00; }
.fb-antwort { border-left:3px solid var(--rot); background:#fafafa; padding:8px 12px; border-radius:0 6px 6px 0; margin-top:12px; font-size:14px; }
@media (max-width:900px) { .fb-board { grid-template-columns:1fr; } }
/* Beta-Umgebung (3.51) */
#beta-leiste { position:fixed; top:0; left:0; right:0; z-index:1000; background:#f59e0b; color:#111; font-size:12.5px; font-weight:600; text-align:center; padding:3px 8px; pointer-events:none; }
body.beta-umgebung aside.seite { top:22px; } body.beta-umgebung main { padding-top:48px; } body.beta-umgebung main.feste-seite { padding-top:48px; }

/* Anfrage-Seite 3.54 (nach Doms Entwurf): Jetzt zu tun | Steckbrief/Verknüpfung | Notiz-Chat */
button.dunkel { background:#111; border-color:#111; color:#fff; } button.dunkel:hover { background:#333; } button.dunkel svg { width:16px; height:16px; vertical-align:-3px; margin-right:4px; }
.crm-seite4 { flex:1; min-height:0; display:grid; grid-template-columns:minmax(0, 1.3fr) minmax(300px, 1fr) minmax(340px, 410px); gap:14px; margin-top:4px; }
.crm-seite4 > .crm-spalte { min-height:0; overflow-y:auto; padding:0 2px 12px; }
.crm-seite4 .akte-kasten { margin:0 0 12px; }
.an-jetzt { background:#fff; border:1.5px solid #111; border-radius:12px; padding:16px 20px; }
.an-jetzt-kopf { display:flex; align-items:center; justify-content:space-between; font-size:12.5px; letter-spacing:.6px; text-transform:uppercase; font-weight:600; color:#333; margin-bottom:6px; }
.an-seit { text-transform:none; letter-spacing:0; font-weight:600; font-size:12px; background:#e8f5ec; color:var(--gruen); padding:2px 9px; border-radius:10px; } .an-seit.alt { background:#fdecec; color:var(--ampelrot); }
.an-jetzt #schritte { border-bottom:1px solid #eee; padding-bottom:6px; margin-bottom:10px; }
.an-fortschritt { display:flex; align-items:center; gap:10px; font-size:13px; color:var(--grau); margin:4px 0 6px; }
.an-fortschritt span { width:180px; height:5px; background:#eee; border-radius:3px; overflow:hidden; } .an-fortschritt i { display:block; height:100%; background:var(--gruen); border-radius:3px; }
.an-frage { display:grid; grid-template-columns:22px 150px minmax(0, 1fr) 28px; align-items:center; gap:10px; padding:9px 0; border-bottom:1px dashed #eee; min-height:44px; }
.an-frage:last-child { border-bottom:none; }
.an-frage input[type=checkbox] { width:20px; height:20px; accent-color:var(--gruen); margin:0; }
.an-frage .an-fname { font-weight:500; font-size:14.5px; } .an-frage.fertig .an-fname { font-weight:400; color:#555; }
.an-frage .an-fwert { font-size:14.5px; min-width:0; } .an-frage .an-fwert input, .an-frage .an-fwert select { max-width:360px; width:100%; }
.an-jetzt-fuss { display:flex; align-items:center; gap:8px; margin-top:14px; padding-top:12px; border-top:1px solid #eee; } .an-jetzt-fuss > span { flex:1; }
.an-weiter { border-color:var(--rot); color:var(--rot); font-weight:600; } .an-weiter.bereit { background:var(--rot); color:#fff; }
.an-reiter { display:flex; gap:4px; background:#e9e9e9; border-radius:9px; padding:3px; margin-bottom:12px; position:sticky; top:0; z-index:2; }
.an-reiter button { flex:1; border:none; background:none; padding:7px 10px; border-radius:7px; font-weight:500; color:#555; }
.an-reiter button.an { background:#fff; color:#111; box-shadow:0 1px 2px rgba(0,0,0,.08); } .an-reiter button span { background:#ddd; border-radius:8px; padding:0 6px; font-size:12px; margin-left:4px; }
.an-aktionen { display:flex; gap:6px; margin:0 0 10px; flex-wrap:wrap; } .an-aktionen > * { flex:1; text-align:center; padding:7px 10px; font-size:14px; } .an-aktionen svg { width:15px; height:15px; vertical-align:-2px; }
.fehlt { color:#aaa; font-style:italic; }
.an-ap { display:flex; align-items:flex-start; gap:8px; padding:8px 0; border-bottom:1px solid #f0f0f0; } .an-ap:last-child { border-bottom:none; } .an-ap > div { flex:1; min-width:0; }
@media (max-width:1400px) { .crm-seite4 { grid-template-columns:minmax(0, 1.15fr) minmax(260px, 1fr) minmax(300px, 350px); } .an-frage { grid-template-columns:22px 120px minmax(0, 1fr) 28px; } }
@media (max-width:1100px) { .crm-seite4 { grid-template-columns:1fr; } .crm-seite4 > .crm-spalte { overflow:visible; } .crm-seite4 > .crm-chat { height:75vh; } }
.crm-seite4 > * { min-width:0; }
@media (max-width:900px) { .an-jetzt { padding:14px; } .an-frage { grid-template-columns:22px minmax(0, 1fr) 28px; gap:6px 10px; }
  .an-frage .an-fname { grid-column:2; grid-row:1; } .an-frage > :last-child { grid-column:3; grid-row:1; } .an-frage .an-fwert { grid-column:2 / 4; grid-row:2; }
  .an-fortschritt span { width:90px; } .an-jetzt-fuss { flex-wrap:wrap; } .an-jetzt-fuss > span { flex-basis:100%; } }
/* Chat-Eingabe wie plancraft (3.55): Knöpfe quadratisch unten bündig, Werkzeugleiste mit Trenner, Ordner und Dokument */
.ch-eingabe { align-items:flex-end; }
.ch-eingabe > .pa-knopf { height:42px; min-height:42px; width:42px; flex:none; }
.ch-trenner { width:1px; height:16px; background:#d6d6d6; margin:0 4px; align-self:center; }
.ch-werkzeug button svg { width:16px; height:16px; }

/* ---------- Dokumente (3.56, nach plancraft) ---------- */
/* Gruppen-Überschriften richtig schwarz, aber ruhiger (Dom 2.11.2026) */
.dok-gruppe { font-size:14.5px; font-weight:600; color:#131313; padding:16px 10px 8px; border-bottom:1px solid #eee; }
.dok-zeile { gap:10px; } .dok-zeile .icon-knopf { flex:none; }
.dok-marke { font-size:12.5px; padding:2px 8px; border-radius:4px; line-height:1.45; white-space:nowrap; font-weight:500; background:#ebeae7; color:#4a4844; } /* Etiketten C */
.dok-marke.entwurf { background:#ebeae7; color:#4a4844; } .dok-marke.fertig { background:#e3eedb; color:#3d5e26; } .dok-marke.storno { background:#ebeae7; color:#888; text-decoration:line-through; }
.dok-arten { display:flex; flex-direction:column; gap:8px; } .dok-arten button { display:flex; justify-content:space-between; align-items:center; padding:14px 16px; border:1px solid #e3e3e3; background:#fafafa; border-radius:8px; font-weight:600; text-align:left; }
.dok-arten button:hover { background:#f0f0f0; }
.dok-kopf { gap:10px; } .dok-stand { color:var(--gruen); display:flex; } .dok-stand.laeuft { color:#999; } .dok-stand.fehler { color:var(--ampelrot); }
#dok-anh-n:not(:empty) { font-size:12px; background:var(--rot); color:#fff; border-radius:8px; padding:0 6px; }
.dok-seite { flex:1; min-height:0; display:grid; grid-template-columns:230px minmax(0, 1fr) 380px; gap:12px; }
.dok-nav { overflow-y:auto; padding:10px 0; font-size:14px; } .dok-nav-kopf { font-weight:600; padding:4px 16px 10px; }
.dok-nav a { display:block; padding:5px 16px 5px 26px; color:#333; cursor:pointer; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; } .dok-nav a:hover { background:#f4f4f4; text-decoration:none; }
.dok-nav a.titel { font-weight:600; padding-left:16px; } .dok-nav-titel { font-size:12px; letter-spacing:.5px; text-transform:uppercase; color:#666; padding:12px 16px 4px; }
.dok-nav-summe { display:flex; justify-content:space-between; padding:12px 16px 0; margin-top:10px; border-top:1px solid #eee; font-size:13px; text-transform:uppercase; letter-spacing:.4px; }
.dok-blatt { overflow-y:auto; padding:0 0 40px; }
.dok-karte { padding:20px 28px; border-bottom:1px solid #f0f0f0; } .dok-karte h2 { font-size:17px; }
.dok-kopf-form { grid-template-columns:2fr 1fr; } .dok-empf { display:block; width:100%; text-align:left; background:#f7f7f7; border:1px solid #e5e5e5; border-radius:8px; padding:12px 14px; font-weight:400; color:#111; line-height:1.5; }
.dok-texte textarea, .dok-anrede { width:100%; box-sizing:border-box; border:1px solid transparent; background:none; font:inherit; font-size:15px; padding:6px 8px; border-radius:6px; resize:vertical; }
.dok-texte textarea:hover, .dok-anrede:hover { border-color:#e3e3e3; } .dok-texte textarea:focus, .dok-anrede:focus { border-color:#bbb; background:#fff; outline:none; }
.dok-tabelle { padding:0 12px; }
.dok-pos { display:grid; grid-template-columns:18px 44px 70px 60px minmax(0, 1fr) 90px 100px 32px; gap:8px; align-items:start; padding:12px 8px; border-radius:6px; cursor:pointer; font-size:14.5px; }
.dok-pos:hover { background:#fafafa; } .dok-pos.kopf { background:#efefef; font-weight:600; cursor:default; border-radius:0; margin:0 -12px; padding:12px 20px; }
.dok-pos .dok-menge, .dok-pos .dok-preis, .dok-pos .dok-gesamt { text-align:right; } .dok-pos.titel { font-size:15px; } .dok-pos.titel .dok-pos-titel { grid-column:3 / 8; }
.dok-pos.text .dok-pos-text, .dok-pos.bild > div { grid-column:3 / 8; color:#333; } .dok-pos.bild img { max-height:140px; border-radius:6px; display:block; }
.dok-pos.markiert { box-shadow:inset 3px 0 0 var(--rot); } .dok-pos.alternativ { color:#777; } .dok-pos.zieht { opacity:.4; }
.dok-griff { color:#c4c4c4; cursor:grab; font-size:12px; letter-spacing:-2px; user-select:none; } .dok-pos .icon-knopf { width:28px; height:28px; opacity:0; } .dok-pos:hover .icon-knopf { opacity:1; }
.dok-lang ul { margin:4px 0 0; padding-left:18px; } .dok-lang { color:#333; font-size:14px; line-height:1.45; } .dok-pos-bild { max-height:90px; border-radius:6px; margin-top:6px; display:block; }
.dok-einfuegen { display:grid; grid-template-columns:1fr auto auto auto 1fr; gap:6px; align-items:center; height:8px; overflow:hidden; opacity:0; transition:height .1s, opacity .1s; }
.dok-einfuegen span { height:1px; background:#ddd; } .dok-einfuegen button { font-size:12px; padding:2px 8px; border-color:#ddd; color:#555; }
.dok-tabelle:hover .dok-einfuegen:hover, .dok-einfuegen.drueber { height:28px; opacity:1; } .dok-einfuegen.drueber span { background:var(--rot); height:2px; }
.dok-leer { padding:30px 10px; color:#777; text-align:center; }
.dok-pos-edit { background:#f6f6f6; border-radius:8px; padding:14px 16px; margin:4px 0; display:flex; flex-direction:column; gap:10px; }
.dok-pos-edit label { display:flex; flex-direction:column; gap:4px; font-size:13px; color:var(--grau); }
.dok-edit-zeile { display:grid; grid-template-columns:44px 80px 80px minmax(0, 1fr) 100px 110px; gap:8px; align-items:center; } .dok-edit-zeile .r, .dok-kalk .r { text-align:right; } .dok-edit-zeile .fett { font-weight:600; }
.dok-edit-optionen { display:flex; flex-direction:column; gap:0; padding-left:132px; } .dok-edit-optionen > .dok-toggle { padding:10px 0; border-top:1px solid #e6e6e6; }
.dok-unter { margin:0 0 10px; } textarea.dok-unter { width:100%; box-sizing:border-box; }
.dok-toggle { display:flex !important; flex-direction:row !important; align-items:center; gap:10px; cursor:pointer; color:#111 !important; font-size:14px !important; font-weight:500; }
.dok-toggle input { display:none; } .dok-toggle span { width:36px; height:20px; border-radius:10px; background:#bbb; position:relative; flex:none; transition:background .15s; }
.dok-toggle span::after { content:''; position:absolute; left:2px; top:2px; width:16px; height:16px; border-radius:50%; background:#fff; transition:left .15s; } .dok-toggle input:checked + span { background:var(--gruen); } .dok-toggle input:checked + span::after { left:18px; }
.dok-edit-fuss { display:flex; justify-content:flex-end; }
.dok-kalk { background:#fff; border:1px solid #e6e6e6; border-radius:8px; padding:12px; } .dok-kalk-titel { font-weight:600; font-size:13.5px; margin-bottom:6px; }
.dok-kalk-k { display:grid; grid-template-columns:120px 70px 70px minmax(0, 1fr) 90px 90px 28px; gap:6px; align-items:center; margin-bottom:6px; font-size:13.5px; } .dok-kalk-k.kopf { color:var(--grau); font-size:12.5px; }
.dok-kalk-k input, .dok-kalk-k select, .dok-kalk-v input { font-size:13.5px; padding:5px 7px; } .dok-kalk-wert { background:#f2f2f2; border-radius:5px; padding:5px 7px; }
.dok-kalk-v { display:grid; grid-template-columns:110px 90px 14px 80px 16px 14px 100px; gap:6px; align-items:center; margin-bottom:5px; font-size:13.5px; } .dok-kalk-v.summe { border-top:1px solid #eee; padding-top:6px; }
.dok-summen { background:#f7f7f7; margin:10px 20px; border-radius:10px; border:none; display:flex; flex-direction:column; gap:10px; }
.dok-summe-zeilen { align-self:flex-end; width:300px; display:flex; flex-direction:column; gap:4px; } .dok-summe-zeilen > div { display:flex; justify-content:space-between; font-size:14.5px; }
.dok-summe-zeilen .brutto { border-top:1px solid #ddd; padding-top:6px; margin-top:2px; } .dok-summe-zeilen button { align-self:flex-end; margin-top:8px; }
.dok-schalter { background:#fff; border-radius:8px; padding:12px 14px; }
.dok-rechts { display:flex; flex-direction:column; min-height:0; overflow:hidden; }
.dok-rechts-reiter { display:flex; gap:2px; padding:8px 8px 0; border-bottom:1px solid #eee; flex:none; } .dok-rechts-reiter button { border:none; background:none; padding:8px 10px; font-weight:600; color:#555; border-bottom:2px solid transparent; border-radius:0; }
.dok-rechts-reiter button.an { color:var(--rot); border-bottom-color:var(--rot); }
.dok-rechts-inhalt { flex:1; min-height:0; overflow-y:auto; padding:12px; display:flex; flex-direction:column; } .dok-rechts-inhalt > input { width:100%; box-sizing:border-box; }
.dok-baustein { display:flex; align-items:center; gap:10px; border:1px solid #e3e3e3; border-radius:8px; padding:10px 12px; margin-bottom:8px; cursor:pointer; background:#fff; } .dok-baustein:hover { border-color:#bbb; } .dok-baustein .rechts { font-size:18px; }
.dok-treffer { margin-top:8px; } .dok-treffer-z { display:flex; flex-direction:column; align-items:flex-start; width:100%; text-align:left; border:none; background:none; padding:8px 6px; border-bottom:1px solid #f0f0f0; border-radius:0; font-weight:400; }
.dok-treffer-z:hover { background:#f6f6f6; } .dok-treffer-z span { font-size:12.5px; color:var(--grau); }
.dok-bildwahl { display:grid; grid-template-columns:repeat(auto-fill, minmax(110px, 1fr)); gap:8px; } .dok-bildwahl.klein { grid-template-columns:repeat(3, 1fr); margin-bottom:10px; }
.dok-bildwahl button { padding:0; border:1px solid transparent; border-radius:8px; overflow:hidden; aspect-ratio:1; background:#f2f2f2; } .dok-bildwahl button:hover { border-color:var(--rot); } .dok-bildwahl img { width:100%; height:100%; object-fit:cover; display:block; }
.dok-chat { flex:1; min-height:0; margin:-12px; } .dok-chat .ch-titel { display:none; }
.dok-anh-gitter { display:grid; grid-template-columns:repeat(auto-fill, minmax(110px, 1fr)); gap:10px; max-height:55vh; overflow-y:auto; }
.dok-anh, .dok-anh-hoch { position:relative; border:2px solid #eee; border-radius:8px; aspect-ratio:1; display:flex; flex-direction:column; align-items:center; justify-content:center; overflow:hidden; cursor:pointer; background:#f7f7f7; font-size:12px; }
.dok-anh-hoch { border-style:dashed; gap:6px; } .dok-anh.an { border-color:var(--gruen); } .dok-anh input { position:absolute; top:6px; left:6px; z-index:2; width:18px; height:18px; }
.dok-anh img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; } .dok-anh-name { position:absolute; left:0; right:0; bottom:0; background:rgba(255,255,255,.9); padding:3px 5px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.dok-vorschau { flex:1; min-height:0; overflow:auto; display:flex; flex-direction:column; align-items:center; gap:16px; padding:10px 0 40px; position:relative; }
.dok-vorschau canvas { box-shadow:0 2px 12px rgba(0,0,0,.12); background:#fff; } .dok-zoom { position:sticky; top:0; z-index:5; background:#333; color:#fff; font-size:13px; padding:3px 12px; border-radius:6px; }

@media (max-width:1000px) { .dok-seite { grid-template-columns:1fr; } .dok-rechts { min-height:60vh; } .dok-edit-optionen { padding-left:0; } .dok-pos { grid-template-columns:14px 36px 54px 46px minmax(0, 1fr) 70px 80px 28px; font-size:13.5px; } }
.dok-baustein .rechts { margin-left:auto; color:#555; }
.dok-edit-optionen { padding-left:52px; } .dok-edit-zeile { grid-template-columns:40px 64px 66px minmax(0, 1fr) 88px 96px; }
.dok-pos-edit .dok-kalk label.haken { flex-direction:row; align-items:center; gap:6px; color:#111; font-size:13.5px; }
.dok-kalk-k { grid-template-columns:104px 58px 58px minmax(60px, 1fr) 76px 76px 26px; } .dok-kalk-v { grid-template-columns:96px 76px 12px 68px 14px 12px 86px; }
/* Dokumente 3.57: Einstellungen, Briefpapier, Editor-Feinschliff */
.dok-einst { max-width:1000px; } .dok-einst h1 { font-size:20px; margin:0 0 14px; }
.dok-einst-karte { background:#fff; border-radius:10px; padding:20px 22px; margin-bottom:14px; }
.dok-einst-kopf { display:flex; align-items:center; gap:12px; margin-bottom:12px; } .dok-einst-kopf h2 { margin:0; font-size:16px; } .dok-einst-kopf svg { color:#111; } .dok-einst-kopf .rechts { margin-left:auto; }
.dok-einst-werte { display:flex; flex-direction:column; gap:14px; padding-left:34px; } .dok-einst-werte.reihe { flex-direction:row; flex-wrap:wrap; gap:14px 40px; }
.dok-einst-werte span { display:block; font-size:11.5px; letter-spacing:.5px; text-transform:uppercase; color:#666; margin-bottom:3px; } .dok-einst-werte > div > div { font-size:15px; line-height:1.45; min-height:1.2em; }
.dok-einst-form { padding-left:34px; }
.dok-logo-kachel { display:inline-flex; border:1px solid #eee; border-radius:8px; padding:14px; } .dok-logo-kachel img { max-width:160px; max-height:90px; }
.dok-einst-info { display:flex; gap:10px; align-items:flex-start; background:#fff; border-radius:10px; padding:14px 18px; font-size:14px; margin-bottom:14px; } .dok-einst-info svg { flex:none; margin-top:1px; }
.dok-einst-info.blau { background:#eaf3fd; border:1px solid #9cc3ef; } .dok-einst-info.grau { background:#f4f4f4; }
.dok-zuschlag-form { display:flex; flex-direction:column; gap:10px; padding-left:34px; } .dok-zuschlag-form label { display:grid; grid-template-columns:200px 100px 20px; align-items:center; gap:8px; font-size:14.5px; } .dok-zuschlag-form input { text-align:right; }
.dok-einheiten { display:grid; grid-template-columns:repeat(3, 190px); gap:10px 0; padding-left:34px; font-size:14.5px; grid-auto-flow:column; grid-template-rows:repeat(10, auto); }
.dok-bp { display:grid; grid-template-columns:minmax(0, 1fr) minmax(320px, 520px); gap:16px; align-items:start; } .dok-bp-rechts { background:#fff; border-radius:10px; padding:12px; position:sticky; top:0; }
.dok-bp-vk { text-align:center; font-size:14px; margin-bottom:8px; } .dok-bp-vorschau { display:flex; justify-content:center; } .dok-bp-vorschau canvas { box-shadow:0 2px 10px rgba(0,0,0,.12); }
.dok-bp-warn { background:#fdf3d8; color:#9a6b00; border-radius:12px; padding:3px 12px; font-size:13px; font-weight:500; }
.dok-bp-hg { display:flex; flex-direction:column; align-items:center; gap:6px; font-size:13px; color:#555; }
.dok-bp-hg-bild { position:relative; width:150px; height:212px; border:1px solid #e3e3e3; border-radius:6px; overflow:hidden; background:#fafafa; display:flex; align-items:center; justify-content:center; }
.dok-bp-hg-bild img, .dok-bp-hg-bild canvas { width:100%; height:100%; object-fit:cover; } .dok-bp-hg-bild .icon-knopf { position:absolute; top:6px; right:6px; background:#fff; }
.dok-bp-hg-bild label { display:flex; flex-direction:column; align-items:center; gap:6px; cursor:pointer; color:#555; border:1.5px dashed #ccc; inset:8px; position:absolute; justify-content:center; border-radius:6px; }
.dok-beta { background:#dbeefb; color:#1b5e8c; font-size:11.5px; border-radius:8px; padding:1px 7px; }
.dok-nav-spalte { display:flex; flex-direction:column; gap:8px; min-height:0; } .dok-nav-spalte .dok-nav { flex:1; } .dok-nav-knopf { align-self:flex-start; }
.dok-seite.nav-zu { grid-template-columns:44px minmax(0, 1fr) 380px; } .dok-seite.nav-zu .dok-nav { display:none; }
.dok-nav a.gross { padding-left:16px; text-transform:uppercase; font-size:13px; letter-spacing:.4px; }
button.dok-nav-titel { display:flex; align-items:center; gap:6px; border:none; background:none; width:100%; text-align:left; font-weight:500; } button.dok-nav-titel.zu svg { transform:rotate(-90deg); }
.dok-empf-box { position:relative; } .dok-empf-weg { position:absolute; right:10px; top:50%; transform:translateY(-50%); color:var(--rot); }
.dok-beschr-kopf { display:flex; align-items:center; gap:4px; } .dok-beschr-kopf .icon-knopf { width:24px; height:24px; opacity:1 !important; }
.dok-pos.zwischensumme { cursor:default; font-size:14px; padding-top:4px; } .dok-pos.zwischensumme:hover { background:none; }
.dok-edit-fuss { gap:8px; }
.dok-lang-edit { border:1px solid #cfd8e6; border-radius:6px; background:#fff; } .dok-lang-edit:focus-within { border-color:#5b9be6; }
.dok-lang-werkzeug { display:flex; gap:2px; padding:4px; border-bottom:1px solid #eee; } .dok-lang-werkzeug button { border:none; background:none; padding:4px 6px; border-radius:5px; } .dok-lang-werkzeug button:hover { background:#f0f0f0; }
.dok-lang-feld { min-height:70px; padding:8px 10px; font-size:14px; line-height:1.5; outline:none; color:#111; } .dok-lang-feld ul { margin:0; padding-left:20px; }
.dok-aufmass { background:#fff; border:1px solid #e6e6e6; border-radius:8px; padding:10px; } .dok-aufmass-z { display:grid; grid-template-columns:minmax(0, 1fr) 160px 80px 28px; gap:6px; align-items:center; margin-bottom:6px; } .dok-aufmass .r { text-align:right; }
.dok-rechts-reiter button { display:flex; align-items:center; gap:6px; font-size:14px; } .dok-rechts-reiter button svg { width:17px; height:17px; }
.dok-suchfeld { display:flex; align-items:center; gap:8px; border:1.5px solid #c9d6ea; border-radius:8px; padding:0 10px; } .dok-suchfeld:focus-within { border-color:#4a8be0; } .dok-suchfeld input { border:none; outline:none !important; flex:1; padding:9px 0; }
.dok-such-reiter { display:flex; gap:2px; border-bottom:1px solid #eee; margin:10px 0 4px; } .dok-such-reiter button { border:none; background:none; border-bottom:2px solid transparent; border-radius:0; padding:8px 10px; font-weight:500; color:#555; } .dok-such-reiter button.an { color:#111; border-bottom-color:#111; }
.dok-ab-ordner { display:flex; align-items:center; gap:12px; width:100%; border:none; border-bottom:1px solid #f0f0f0; background:none; padding:12px 6px; border-radius:0; font-weight:400; text-align:left; } .dok-ab-ordner:hover { background:#f7f7f7; }
.dok-ab-ic { width:34px; height:34px; border-radius:8px; background:#f2f2f2; display:flex; align-items:center; justify-content:center; } .dok-ab-zurueck { display:flex; align-items:center; gap:6px; border:none; background:none; padding:4px 0 10px; font-weight:600; }
.dok-best-z { display:grid; grid-template-columns:22px minmax(0, 1fr) 80px 50px; gap:8px; align-items:center; padding:8px 4px; border-bottom:1px solid #f0f0f0; font-size:14px; } .dok-best-z .r { text-align:right; }
.dok-frist { font-size:14px; padding-bottom:10px; margin-bottom:10px; border-bottom:1px solid #eee; }
.tabelle .r, .tabelle th.r { text-align:right; }
/* Fuhrpark (3.58) */
.fz-filter { flex-wrap:wrap; gap:10px; } .fz-filter .segment a { text-decoration:none; }
.fz-kennz { font-family:ui-monospace, Menlo, monospace; letter-spacing:.5px; background:#f3f3f3; border:1px solid #ddd; border-radius:4px; padding:1px 6px; white-space:nowrap; }
.fz-ja { color:var(--gruen); font-weight:700; } tr.fz-weg td { color:#999; }
.einst-bereiche { display:flex; gap:4px; background:#ececec; border-radius:8px; padding:3px; margin:0 0 10px; } .einst-bereiche a { flex:1; text-align:center; padding:6px 8px; border-radius:6px; color:#555; font-weight:500; font-size:14px; text-decoration:none !important; }
.einst-bereiche a.an { background:#fff; color:#111; box-shadow:0 1px 2px rgba(0,0,0,.08); }
/* CRM in der echten App (3.59): eigener Abschnitt „Vertrieb“ in der Seitenleiste, nur für Admins */
.nur-crm { display:none; } body.crm .nur-crm { display:block; }
aside .ohne-recht { display:none !important; } /* Menüpunkte ohne Recht (Rollen & Rechte) */

/* Rollen & Rechte: Häkchen-Tabelle */
.rollen-tabelle { max-width:1200px; overflow-x:auto; }
.rollen-tabelle td, .rollen-tabelle th { vertical-align:middle; }
.rollen-tabelle td:first-child, .rollen-tabelle th:first-child { min-width:210px; }
.rollen-tabelle .rolle-spalte { text-align:center; min-width:84px; padding-left:4px; padding-right:4px; white-space:nowrap; }
.rollen-tabelle th.rolle-spalte { font-size:13px; }
.rollen-tabelle .rolle-kopf { display:flex; align-items:center; justify-content:center; gap:0; }
.rollen-tabelle .rolle-kopf .icon-knopf { padding:2px; }
.rollen-tabelle input[type=checkbox] { width:18px; height:18px; accent-color:var(--rot, #E40000); cursor:pointer; }
.rollen-tabelle input[type=checkbox]:disabled { cursor:not-allowed; opacity:.45; }
.rollen-tabelle .rechte-gruppe td { font-size:11px; text-transform:uppercase; letter-spacing:.8px; color:var(--grau); background:var(--hell); padding-top:14px; }

/* ---------- Seitenleiste unten (Dom 23.10.2026): Chat über dem Profilbild; Einstellungen und Feedback nur bei offener Leiste ---------- */
.seite-fuss { flex-wrap:wrap; }
.fuss-chat { flex:1 0 100%; display:flex; align-items:center; gap:12px; padding:9px 12px; margin:0 -4px 4px; border-radius:8px; color:#bbb; white-space:nowrap; }
.fuss-chat:hover, .fuss-chat.aktiv { background:#262626; color:#fff; text-decoration:none; }
.fuss-chat b { margin-left:auto; background:var(--rot); color:#fff; border-radius:9px; padding:0 7px; font-size:12px; font-weight:500; } .fuss-chat b:empty { display:none; }
.fuss-knopf .ic { width:21px; height:21px; flex-basis:21px; }
body.nav-zu .seite-fuss .fuss-knopf { display:none; }
body.nav-zu .fuss-chat { flex:none; justify-content:center; margin:0 0 6px; padding:10px; position:relative; }
body.nav-zu .fuss-chat b { position:absolute; top:4px; right:4px; padding:0; min-width:8px; height:8px; font-size:0; border-radius:50%; }

/* ---------- Firmen-Chat: Liste links, Verlauf rechts ---------- */
.cl { flex:1 1 auto; min-height:0; display:grid; grid-template-columns:340px 1fr; background:#fff; border:1px solid #e3e3e3; border-radius:10px; overflow:hidden; }
.cl-liste { display:flex; flex-direction:column; min-height:0; border-right:1px solid #e3e3e3; }
.cl-kopf { display:flex; align-items:center; justify-content:space-between; padding:14px 12px 8px 16px; } .cl-kopf h1 { margin:0; font-size:22px; }
.cl-suche { display:flex; align-items:center; gap:8px; margin:0 12px 8px; padding:0 10px; height:38px; background:#f2f2f2; border-radius:8px; color:#666; }
.cl-suche input { border:none; background:none; outline:none; flex:1; min-width:0; font:inherit; font-size:14.5px; padding:0; height:100%; }
.cl-zeilen { flex:1; min-height:0; overflow-y:auto; }
.cl-zeile { display:flex; align-items:center; gap:12px; padding:10px 14px; color:inherit; text-decoration:none; border-bottom:1px solid #f2f2f2; }
.cl-zeile:hover { background:#f7f7f7; text-decoration:none; } .cl-zeile.an { background:#efefef; }
.cl-av { width:44px !important; height:44px !important; font-size:15px; flex:none; }
.cl-av.klein { width:32px !important; height:32px !important; font-size:12px; } .cl-av.gross { width:56px !important; height:56px !important; font-size:18px; }
.cl-gruppe { display:inline-flex; align-items:center; justify-content:center; border-radius:50%; background:#1b1b1b; color:#fff; } .cl-gruppe svg { width:55%; height:55%; }
.cl-mitte { flex:1; min-width:0; display:flex; flex-direction:column; gap:3px; }
.cl-oben, .cl-unten { display:flex; align-items:center; gap:8px; min-width:0; }
.cl-oben b { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:15px; font-weight:600; }
.cl-zeit { font-size:12px; color:#777; flex:none; } .cl-zeit.neu { color:var(--rot); font-weight:600; }
.cl-vorschau { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:13.5px; color:#666; }
.cl-zahl { flex:none; min-width:20px; height:20px; padding:0 6px; border-radius:10px; background:var(--rot); color:#fff; font-size:12px; display:inline-flex; align-items:center; justify-content:center; }
.cl-chat { display:flex; flex-direction:column; min-height:0; background:#fff; }
.cl-leer { flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; color:#888; }
.cl-chat-kopf { flex:none; display:flex; align-items:center; gap:12px; padding:10px 12px; border-bottom:1px solid #e3e3e3; }
.cl-zurueck { display:none; }
.cl-titel { flex:1; min-width:0; display:flex; flex-direction:column; align-items:flex-start; background:none; border:none; padding:0; cursor:pointer; font:inherit; text-align:left; color:inherit; }
.cl-titel b { font-size:16px; } .cl-titel span { font-size:13px; color:#666; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:100%; }
.cl-verlauf { flex:1 1 auto; min-height:0; }
.cl-verlauf .ch-reiter { border-bottom:none; justify-content:flex-end; padding-top:6px; }
.cl-verlauf .ch-unten { border-radius:0; }
.cl-personen { max-height:50vh; overflow-y:auto; display:flex; flex-direction:column; }
.cl-person { display:flex; align-items:center; gap:10px; padding:8px 6px; border-radius:8px; cursor:pointer; background:none; border:none; font:inherit; color:inherit; text-align:left; width:100%; }
.cl-person:hover { background:#f4f4f4; } .cl-person > span:not(.cl-av):not(.marke) { flex:1; } .cl-person input { margin:0; }
.cl-neue-gruppe { margin-bottom:8px; font-weight:600; }
.cl-feld { display:flex; flex-direction:column; gap:4px; margin-bottom:10px; }
.cl-info-kopf { display:flex; align-items:center; gap:14px; margin-bottom:12px; } .cl-info-kopf h2 { margin:0 0 2px; }
.cl-beschreibung { margin:0 0 12px; white-space:pre-wrap; }
.cl-info-titel { display:flex; align-items:center; justify-content:space-between; margin:6px 0 4px; }
.cl-links .ch-link, .ch-links .ch-link { display:flex; align-items:center; gap:10px; padding:10px 6px; border-bottom:1px solid #f0f0f0; }
.ch-link a { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; } .ch-link > span { font-size:12.5px; color:#777; flex:none; }
@media (max-width:760px) {
  .cl { grid-template-columns:1fr; border:none; border-radius:0; }
  .cl.mit-chat .cl-liste { display:none; } .cl:not(.mit-chat) .cl-chat { display:none; }
  .cl-zurueck { display:inline-flex; }
  .ch-link > span { display:none; }
}
@media (max-width:1100px) { .cl { flex:none; height:calc(100dvh - 90px); } }
@media (max-width:760px) { .cl { position:fixed; left:0; right:0; bottom:0; top:57px; height:auto; z-index:5; } }
.cl-liste, .cl-chat { min-width:0; }
/* Sprachnachricht und Video im Verlauf */
.ch-sprache { display:flex; flex-direction:column; gap:4px; margin:2px 0 4px; } .ch-sprache audio { width:260px; max-width:100%; height:40px; }
.ch-transkript { font-size:13.5px; color:#444; line-height:1.45; border-left:2px solid #ccc; padding-left:8px; max-width:320px; }
.ch-video { position:relative; display:flex; align-items:center; justify-content:center; width:240px; min-height:140px; max-height:300px; padding:0; border:none; border-radius:6px; margin:2px 0 4px; background:#222; overflow:hidden; cursor:pointer; }
.ch-video img { display:block; width:100%; max-height:300px; object-fit:cover; }
.ch-play { position:absolute; inset:0; margin:auto; width:52px; height:52px; border-radius:50%; background:rgba(0,0,0,.55); color:#fff; display:flex; align-items:center; justify-content:center; padding-left:3px; }
.ch-play svg { fill:#fff; stroke:none; } .ch-video:hover .ch-play { background:rgba(0,0,0,.75); }
/* Mikrofon statt Senden, solange nichts getippt ist (wie WhatsApp) */
.ch-eingabe.mit-mikro:not(.hat-text) .ch-senden { display:none; }
.ch-eingabe.hat-text .ch-mikro { display:none; }
.ch-aufnahme { display:flex; align-items:center; gap:10px; padding:12px; }
.ch-aufnahme > .pa-knopf { height:42px; width:42px; padding:0; flex:none; }
.ch-auf-punkt { width:10px; height:10px; border-radius:50%; background:var(--rot); animation:chPuls 1s infinite; flex:none; } @keyframes chPuls { 50% { opacity:.3; } }
#ch-auf-zeit { font-variant-numeric:tabular-nums; font-weight:600; flex:none; }
.ch-auf-text { flex:1; min-width:0; color:#666; font-size:13.5px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
/* Aufgaben 3.63: automatisch, Status, Board, Kalender, Kommentare mit Datei */
.auf-auto { display:inline-flex; align-items:center; gap:3px; color:#7a7a7a; font-size:12px; } .auf-auto .ic, .auf-erstellt .ic { width:12px; height:12px; vertical-align:-2px; }
.auf-status { display:inline-block; font-size:12px; font-weight:500; padding:1px 8px; border-radius:10px; background:#eee; color:#555; }
.auf-status.in_arbeit { background:#e8f1fd; color:#1f5fae; } .auf-status.warten { background:#fff1e0; color:#8a4b00; } .auf-status.erledigt { background:#e6f4ea; color:#1e6b34; }
.auf-sicht button { display:inline-flex; align-items:center; gap:6px; } .auf-sicht .ic { width:16px; height:16px; }
@media (max-width:760px) { .auf-sicht span { display:none; } }
.auf-board { display:grid; grid-template-columns:repeat(4, minmax(220px, 1fr)); gap:14px; overflow-x:auto; padding-bottom:10px; align-items:start; }
.auf-spalte { background:#f4f4f4; border-radius:10px; padding:10px; min-height:200px; border:1px solid transparent; } .auf-spalte.drueber { border-color:var(--rot); background:#fdf2f2; }
.auf-spalte-kopf { display:flex; align-items:center; gap:8px; margin:0 2px 10px; }
.auf-karten { display:flex; flex-direction:column; gap:8px; } .auf-karten-leer { color:#aaa; font-size:13px; text-align:center; padding:24px 0; border:1px dashed #d4d4d4; border-radius:8px; }
.auf-karte { background:#fff; border-radius:8px; padding:10px 12px; box-shadow:0 1px 2px rgba(0,0,0,.08); cursor:pointer; border-left:3px solid #d4d4d4; }
.auf-karte.p1 { border-left-color:#d93025; } .auf-karte.p2 { border-left-color:#ef8a17; } .auf-karte.p3 { border-left-color:#2f7de1; }
.auf-karte:hover { box-shadow:0 2px 8px rgba(0,0,0,.12); } .auf-karte.zieht { opacity:.4; } .auf-karte.erledigt .auf-karte-titel { text-decoration:line-through; color:var(--grau); }
.auf-karte-titel { font-weight:500; line-height:1.35; } .auf-karte-bezug { margin-top:3px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.auf-karte-fuss { display:flex; align-items:center; gap:8px; margin-top:8px; font-size:13px; } .auf-karte-wer { margin-left:auto; } .auf-karte-fuss .avatar-kreis, .auf-karte-fuss .avatar-bild { width:22px; height:22px; font-size:10px; }
.akal-kopf { display:flex; align-items:center; gap:8px; margin:4px 0 10px; } .akal-kopf h2 { margin:0; min-width:170px; text-align:center; font-size:18px; }
.akal { display:grid; grid-template-columns:repeat(7, minmax(0, 1fr)); border-top:1px solid var(--linie); border-left:1px solid var(--linie); background:#fff; border-radius:8px; overflow:hidden; }
.akal-wt { font-size:12px; color:var(--grau); text-transform:uppercase; letter-spacing:.6px; padding:6px 8px; border-right:1px solid var(--linie); border-bottom:1px solid var(--linie); background:#fafafa; }
.akal-tag { min-height:112px; padding:4px 5px 6px; border-right:1px solid var(--linie); border-bottom:1px solid var(--linie); display:flex; flex-direction:column; gap:3px; min-width:0; }
.akal-tag.anders { background:#fafafa; } .akal-tag.anders .kal-nr { color:#bbb; } .akal-tag.we { background:#fcfcfc; } .akal-tag.drueber { background:#fdf2f2; outline:2px solid var(--rot); outline-offset:-2px; }
.kal-nr { font-size:13px; color:#555; padding:2px 4px; align-self:flex-start; border-radius:12px; } .akal-tag.heute .kal-nr { background:var(--rot); color:#fff; font-weight:600; }
.kal-auf { font-size:12px; line-height:1.3; padding:3px 6px; border-radius:5px; background:#f1f1f1; border-left:3px solid #c8c8c8; cursor:pointer; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.kal-auf.p1 { border-left-color:#d93025; } .kal-auf.p2 { border-left-color:#ef8a17; } .kal-auf.p3 { border-left-color:#2f7de1; } .kal-auf:hover { background:#e7e7e7; }
.kal-auf.ueber { background:#fdecea; } .kal-auf.erledigt { color:#999; text-decoration:line-through; } .kal-auf.mehr { display:none; } .akal-tag.offen .kal-auf.mehr { display:block; }
.kal-auf .ic { width:11px; height:11px; vertical-align:-1px; } .kal-mehr { font-size:12px; align-self:flex-start; padding:0 4px; }
.auf-k-feld { flex:1; border:1px solid var(--linie); border-radius:8px; padding:6px 8px; } .auf-kommentar.neu.ziehen .auf-k-feld { border-color:var(--rot); background:#fdf2f2; }
.auf-k-feld textarea, .auf-k-edit { width:100%; border:none; resize:none; background:transparent; font:inherit; padding:4px 0; } .auf-k-feld textarea:focus, .auf-k-edit:focus { outline:none; }
.auf-k-edit { border:1px solid var(--linie); border-radius:6px; padding:6px 8px; }
.auf-k-leiste { display:flex; align-items:center; justify-content:flex-end; gap:6px; margin-top:4px; } .auf-k-leiste [data-kdatei] { margin-right:auto; }
.auf-k-datei { display:flex; align-items:center; gap:6px; font-size:13px; background:#f4f4f4; border-radius:6px; padding:4px 8px; margin:4px 0; }
.auf-feld-wert .auf-chip { white-space:nowrap; }
.auf-chip-x { border:none; background:none; padding:0 2px; color:#888; cursor:pointer; font-size:12px; }
.auf-k-inhalt { flex:1; min-width:0; } .auf-k-bild img { display:block; max-width:260px; max-height:200px; border-radius:6px; margin-top:6px; border:1px solid var(--linie); }
.auf-k-anhang { display:inline-flex; align-items:center; gap:8px; margin-top:6px; padding:6px 10px; border:1px solid var(--linie); border-radius:8px; color:var(--schwarz); } .auf-k-anhang:hover { background:var(--hell); text-decoration:none; }

/* Aufgaben-Woche 3.64: Zeitraster mit Blöcken */
.akal-kopf .kal-art { margin-right:8px; }  .akal-kopf .kal-art.rechts { margin-left:auto; margin-right:0; } .akal-kopf h2 .klein-text { font-weight:400; margin-left:6px; }
.wo { background:#fff; border:1px solid var(--linie); border-radius:8px; overflow:hidden; user-select:none; }
.wo-kopf, .wo-ganz-zeile, .wo-raster { display:grid; }
.wo-tagkopf { text-align:center; padding:8px 4px 6px; border-left:1px solid var(--linie); font-size:12px; color:var(--grau); text-transform:uppercase; letter-spacing:.5px; }
.wo-tagkopf b { display:block; font-size:20px; color:var(--schwarz); font-weight:500; letter-spacing:0; } .wo-tagkopf.heute b { color:var(--rot); }
.wo-ganz-zeile { border-top:1px solid var(--linie); border-bottom:2px solid var(--linie); }
.wo-ecke { font-size:11px; color:var(--grau); padding:6px 4px; text-align:right; }
.wo-ganz { border-left:1px solid var(--linie); padding:3px; min-height:30px; display:flex; flex-direction:column; gap:2px; min-width:0; }
.wo-chip { font-size:12px; padding:3px 6px; border-radius:5px; background:#f1f1f1; border-left:3px solid #c8c8c8; cursor:grab; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; touch-action:none; }
.wo-raster { max-height:calc(100vh - 330px); min-height:360px; overflow-y:auto; }
.wo-stunden div { position:relative; font-size:11px; color:var(--grau); text-align:right; padding-right:6px; } .wo-stunden span { position:relative; top:-7px; }
.wo-stunden div:first-child span { visibility:hidden; }
.wo-spalte { position:relative; border-left:1px solid var(--linie); background-image:linear-gradient(to bottom, var(--linie) 1px, transparent 1px); cursor:copy; }
.wo-spalte.we { background-color:#fcfcfc; } .wo-spalte.heute { background-color:#fffafa; }
.wo-block { position:absolute; border-radius:6px; background:#eef4fd; border-left:3px solid #2f7de1; padding:2px 6px; font-size:12px; line-height:1.3; overflow:hidden; cursor:grab; box-shadow:0 1px 2px rgba(0,0,0,.08); touch-action:none; }
.wo-block.p1, .wo-chip.p1 { background:#fdecea; border-left-color:#d93025; } .wo-block.p2, .wo-chip.p2 { background:#fef1e2; border-left-color:#ef8a17; } .wo-block.p3, .wo-chip.p3 { background:#e8f1fd; border-left-color:#2f7de1; }
.wo-block.p4 { background:#f1f1f1; border-left-color:#9a9a9a; }
.wo-block.erledigt, .wo-chip.erledigt { opacity:.55; } .wo-block.erledigt .wo-titel, .wo-chip.erledigt { text-decoration:line-through; }
.wo-block.ueber { box-shadow:inset 0 0 0 1px #d93025; } .wo-block.zieht, .wo-chip.zieht { opacity:.35; }
.wo-zeit { font-size:11px; color:#555; } .wo-titel { font-weight:500; } .wo-bezug { font-size:11px; color:#666; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.wo-block .ic, .wo-chip .ic { width:11px; height:11px; vertical-align:-1px; }
.wo-griff { position:absolute; left:0; right:0; bottom:0; height:7px; cursor:ns-resize; }
.wo-geist { position:absolute; left:2px; right:2px; border:2px dashed var(--rot); background:rgba(228,0,0,.06); border-radius:6px; font-size:11px; padding:2px 6px; pointer-events:none; color:var(--rot); overflow:hidden; z-index:3; }
.wo-ganz .wo-geist { position:static; }
.wo-jetzt { position:absolute; left:0; right:0; height:2px; background:var(--rot); z-index:2; pointer-events:none; } .wo-jetzt::before { content:''; position:absolute; left:-5px; top:-4px; width:10px; height:10px; border-radius:50%; background:var(--rot); }

/* ---------- Markdown in Chats und Kommentaren ---------- */
.md > div { min-height:1.2em; } .md .md-luecke { height:.5em; min-height:0; }
.md ul, .md ol { margin:2px 0; padding-left:22px; } .md li { margin:1px 0; }
.md .md-h1 { font-size:1.35em; font-weight:700; margin:4px 0 2px; } .md .md-h2 { font-size:1.18em; font-weight:700; margin:4px 0 2px; } .md .md-h3 { font-weight:700; margin:2px 0; }
.md .md-zitat { border-left:3px solid #bbb; padding-left:8px; color:#555; }
.md code { background:rgba(0,0,0,.07); border-radius:4px; padding:0 4px; font-size:.92em; font-family:ui-monospace, Menlo, monospace; }
.md .md-code { background:rgba(0,0,0,.06); border-radius:6px; padding:8px 10px; margin:4px 0; font-size:13px; white-space:pre-wrap; overflow-wrap:anywhere; font-family:ui-monospace, Menlo, monospace; }
.md .md-linie { border:none; border-top:1px solid #ccc; margin:6px 0; }
.md ul.md-todo { list-style:none; padding-left:2px; } .md-todo li { display:flex; align-items:flex-start; gap:8px; } .md-todo li.erledigt > span:last-child { color:#888; text-decoration:line-through; }
.md-kasten { flex:none; width:16px; height:16px; margin-top:2px; border:1.6px solid #888; border-radius:4px; background:#fff; padding:0; cursor:default; display:inline-flex; align-items:center; justify-content:center; }
button.md-kasten { cursor:pointer; } button.md-kasten:hover { border-color:#111; }
.md-kasten.an { background:var(--rot); border-color:var(--rot); } .md-kasten.an::after { content:''; width:8px; height:4px; border:2px solid #fff; border-top:none; border-right:none; transform:rotate(-45deg) translate(1px,-1px); }
/* ---------- Firmen-Chat: angeheftete Chats als Kacheln, Gruppenbild ---------- */
.cl-pins { display:flex; justify-content:center; gap:6px; padding:2px 10px 10px; border-bottom:1px solid #eee; } .cl-pins > .cl-pin { flex:0 1 25%; } .cl-pin.zieht { opacity:.4; } .cl-pin[draggable] { cursor:grab; } /* mittig; ziehen = Reihenfolge (Dom 27.10.2026) */ .cl-pins[hidden] { display:none; }
.cl-pin { display:flex; flex-direction:column; align-items:center; gap:5px; padding:8px 4px; border-radius:10px; color:inherit; text-decoration:none; min-width:0; }
.cl-pin:hover { background:#f4f4f4; text-decoration:none; } .cl-pin.an { background:#efefef; }
.cl-pin-bild { position:relative; } .cl-pin-bild .cl-zahl { position:absolute; top:-4px; right:-6px; border:2px solid #fff; }
.cl-pin-name { font-size:12.5px; font-weight:500; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
img.cl-av { object-fit:cover; border-radius:50%; }
.cl-bild-wahl { background:none; border:none; padding:0; cursor:pointer; border-radius:50%; flex:none; } .cl-bild-wahl:hover { opacity:.85; }
.cl-neu-kopf { display:flex; gap:14px; align-items:flex-start; margin-bottom:6px; } .cl-neu-felder { flex:1; min-width:0; }
.cl-feld textarea { resize:none; font:inherit; }
/* ---------- Eingabe mit Markdown wie Notion (mdFeld): Zeilen-Arten sieht man direkt beim Tippen ---------- */
.md-feld { position:relative; outline:none; overflow-wrap:anywhere; cursor:text; }
.md-feld.md-leer::before { content:attr(data-platzhalter); color:#999; pointer-events:none; position:absolute; top:var(--md-oben, auto); left:var(--md-links, auto); }
.ch-editor { --md-oben:10px; --md-links:12px; } .md-eingabe.auf-detail-notiz { --md-oben:6px; --md-links:38px; } .auf-k-feld .md-eingabe { --md-oben:2px; --md-links:2px; }
.md-feld > div { min-height:1.45em; }
.md-feld > .ed-li, .md-feld > .ed-ol { position:relative; padding-left:22px; }
.md-feld > .ed-li::before { content:'•'; position:absolute; left:7px; }
.md-feld { counter-reset:mdnr; } .md-feld > :not(.ed-ol) { counter-reset:mdnr; } .md-feld > .ed-ol { counter-increment:mdnr; }
.md-feld > .ed-ol::before { content:counter(mdnr) '.'; position:absolute; left:2px; font-variant-numeric:tabular-nums; }
.md-feld > .ed-todo { position:relative; padding-left:26px; }
.md-feld > .ed-todo::before { content:''; position:absolute; left:2px; top:.2em; width:15px; height:15px; border:1.6px solid #888; border-radius:4px; background:#fff; box-sizing:border-box; cursor:pointer; }
.md-feld > .ed-todo.an::before { background:var(--rot); border-color:var(--rot); }
.md-feld > .ed-todo.an::after { content:''; position:absolute; left:6.5px; top:calc(.2em + 3.5px); width:7px; height:3.5px; border:2px solid #fff; border-top:none; border-right:none; transform:rotate(-45deg); pointer-events:none; }
.md-feld > .ed-todo.an { color:#888; text-decoration:line-through; }
.md-feld > .ed-h1 { font-size:1.5em; font-weight:700; line-height:1.3; } .md-feld > .ed-h2 { font-size:1.22em; font-weight:700; line-height:1.35; } .md-feld > .ed-h3 { font-size:1.04em; font-weight:600; color:#444; }
.md-feld > .ed-zitat { border-left:3px solid #bbb; padding-left:10px; color:#555; }
.md-eingabe { width:100%; box-sizing:border-box; min-height:58px; padding:8px 10px; border:1px solid #cfcfcf; border-radius:6px; background:#fff; line-height:1.45; color:var(--schwarz); }
.md-eingabe:focus { border-color:#999; }
.md-eingabe.auf-detail-notiz { border:none; padding:6px 0 6px 38px; min-height:0; background:transparent; color:#444; }
.auf-k-feld .md-eingabe { border:none; padding:2px; min-height:22px; background:transparent; }
.md-feld.ch-editor { min-height:42px; box-sizing:border-box; }
/* ---------- Firmen-Chat am Laptop: schmaler Seitenrand wie im Dokumenten-Editor, größere Bilder ---------- */
main.chat-seite { padding:8px 10px 10px; } body.beta-umgebung main.chat-seite { padding-top:30px; }
.cl-verlauf .ch-n { max-width:72%; }
.cl-verlauf .ch-bild { max-width:min(440px, 100%); max-height:440px; }
.cl-verlauf .ch-video { width:min(340px, 100%); max-height:400px; } .cl-verlauf .ch-video img { max-height:400px; }
/* Projekt-Verweis (#) */
a.ch-projekt { display:inline-block; background:#fdecec; color:var(--rot); border-radius:6px; padding:0 6px; font-weight:500; text-decoration:none; } a.ch-projekt:hover { background:#fbd9d9; text-decoration:none; }
.ch-marke.ch-projekt { background:#fdecec; color:var(--rot); }
/* Anhänge warten über dem Eingabefeld */
.ch-wartend { display:flex; gap:8px; padding:10px 12px 0; flex-wrap:wrap; }
.ch-w { position:relative; width:84px; height:84px; border-radius:8px; overflow:hidden; background:#fff; border:1px solid #ddd; flex:none; }
.ch-w img { width:100%; height:100%; object-fit:cover; display:block; }
.ch-w-datei { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; height:100%; padding:6px; font-size:11px; text-align:center; overflow:hidden; } .ch-w-datei span { overflow:hidden; text-overflow:ellipsis; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; word-break:break-all; }
.ch-w button { position:absolute; top:4px; right:4px; width:22px; height:22px; border-radius:50%; border:none; background:rgba(0,0,0,.6); color:#fff; font-size:11px; cursor:pointer; display:flex; align-items:center; justify-content:center; padding:0; }
/* Bearbeiten-Leiste */
.ch-antwort.bearbeiten div { border-left-color:var(--rot); }
.ch-bearbeitet { font-style:italic; margin-right:4px; }
/* Reaktionen wie WhatsApp: unten links an der Blase */
.ch-blase { position:relative; }
.ch-n:has(.ch-reakt) { margin-bottom:12px; }
.ch-reakt { position:absolute; left:8px; bottom:-14px; display:flex; gap:3px; }
.ch-reakt button { display:inline-flex; align-items:center; gap:3px; height:24px; padding:0 7px; border-radius:12px; border:1px solid #e2e2e2; background:#fff; font-size:13px; cursor:pointer; box-shadow:0 1px 2px rgba(0,0,0,.08); }
.ch-reakt button span { font-size:11.5px; color:#555; } .ch-reakt button.meins { border-color:var(--rot); background:#fdf2f2; }
.ch-aktion button[data-reakt] { font-size:14px; line-height:1; }
.ch-emoji-wahl { position:fixed; z-index:80; display:flex; gap:4px; padding:6px 8px; background:#fff; border-radius:30px; box-shadow:0 6px 22px rgba(0,0,0,.18); }
.ch-emoji-wahl button { width:46px; height:46px; border:none; background:none; border-radius:50%; font-size:28px; cursor:pointer; } .ch-emoji-wahl button:hover { background:#f2f2f2; transform:scale(1.12); }
/* Dokumenten-Editor 3.66 (Dom 23.10.2026, wie plancraft): A4-Blatt mittig, beschreibbare Felder grau, Griffe nur beim Darüberfahren */
.dok-seite { grid-template-columns:230px minmax(0, 1fr) 340px; gap:18px; }
.dok-seite.nav-zu { grid-template-columns:52px minmax(0, 1fr) 340px; }
.dok-nav-spalte { gap:0; } .dok-nav-kopf { display:flex; align-items:center; justify-content:space-between; padding:0 8px 8px 16px; }
.dok-seite.nav-zu .dok-nav { display:block; flex:none; padding:6px 0; } .dok-seite.nav-zu .dok-nav > :not(.dok-nav-kopf), .dok-seite.nav-zu .dok-nav-kopf span { display:none; }
.dok-seite.nav-zu .dok-nav-kopf { padding:0; justify-content:center; } .dok-seite.nav-zu #dok-nav-auf svg { transform:scaleX(-1); }
.dok-blatt { overflow-y:auto; padding:4px 6px 60px; background:none; }
.dok-a4 { position:relative; width:100%; max-width:794px; min-height:1123px; margin:0 auto; background:#fff; box-shadow:0 1px 4px rgba(0,0,0,.10); border-radius:3px; padding:30px 0 50px; box-sizing:border-box; }
.dok-a4 .dok-karte { padding:16px 52px; border-bottom:none; } .dok-a4 .dok-tabelle { padding:0 40px; } .dok-a4 .dok-pos.kopf { margin:0 -40px; padding:10px 52px; }
.dok-a4 input:not([type=checkbox]):not([type=radio]), .dok-a4 select, .dok-a4 textarea, .dok-a4 .dok-empf { background:#f2f3f5; border:1px solid transparent; border-radius:6px; }
.dok-a4 input:not([type=checkbox]):not([type=radio]):hover, .dok-a4 textarea:hover, .dok-a4 select:hover { border-color:#e0e2e6; }
.dok-a4 input:not([type=checkbox]):not([type=radio]):focus, .dok-a4 textarea:focus, .dok-a4 select:focus { background:#fff; border-color:#9db8e0; outline:none; }
.dok-texte textarea { resize:none; overflow:hidden; min-height:0; line-height:1.5; } .dok-texte .dok-anrede { margin-bottom:6px; }
.dok-griff { opacity:0; color:#9a9a9a; cursor:grab; display:flex; align-items:center; justify-content:center; transition:opacity .1s; } .dok-pos:hover .dok-griff, .dok-baustein:hover .dok-griff { opacity:1; }
.dok-griff:active { cursor:grabbing; }
.dok-ziel-linie { position:absolute; height:3px; background:var(--rot); border-radius:2px; pointer-events:none; z-index:3; }
.dok-pos.ziel-kalk { outline:2px dashed var(--rot); outline-offset:-2px; background:#fdf2f2; }
.dok-pos.ziel-kalk::after { content:'in die Kalkulation'; position:absolute; right:12px; top:4px; font-size:11px; color:var(--rot); font-weight:600; }
.dok-pos { position:relative; }
.dok-leer { border:1.5px dashed #ddd; border-radius:8px; margin:10px 0; padding:26px 10px; }
.dok-bild-leer { display:block; border:1.5px dashed #d4d4d4; border-radius:8px; padding:26px 10px; text-align:center; color:#888; font-size:13px; }
.dok-summen { background:none; margin:0; border-radius:0; gap:6px; }
.dok-summe-zeilen { width:320px; } .dok-summe-zeilen button { align-self:flex-end; background:#f2f3f5; border-color:transparent; color:#555; }
.dok-bedingungen { display:block; width:100%; text-align:left; border:1px solid transparent; background:none; font-weight:400; color:#111; padding:8px 10px; margin:8px -10px 0; border-radius:6px; line-height:1.55; white-space:normal; font-size:14.5px; }
.dok-bedingungen:hover { background:#f6f7f8; border-color:#e6e8eb; } .dok-summen.offen .dok-bedingungen { background:#f6f7f8; }
.dok-einst-box { background:#f6f7f8; border-radius:8px; padding:10px; display:flex; flex-direction:column; gap:8px; }
.dok-rechts { background:#fff; border:none; border-radius:12px; box-shadow:0 1px 4px rgba(0,0,0,.08); align-self:start; max-height:100%; }
.dok-rechts-reiter { border-bottom:1px solid #f0f0f0; } .dok-rechts-inhalt { padding:14px; }
.dok-baustein { border:none; background:#f6f7f8; padding:11px 12px; margin-bottom:6px; font-weight:500; cursor:pointer; } .dok-baustein:hover { background:#eef0f2; }
.dok-baustein .dok-griff { width:12px; } .dok-hinweis { margin:10px 2px 0; line-height:1.45; }
.dok-treffer-z { cursor:grab; }
.dok-kopf > .rechts { margin-left:auto; } /* Knöpfe oben rechts wie plancraft */
.dok-rechts-reiter { gap:0; padding:6px 6px 0; } .dok-rechts-reiter button { padding:8px 8px; font-size:13.5px; gap:5px; flex:1; justify-content:center; }

/* Dokumenten-Editor 3.67 – nach plancraft-Screenshots (Dom 23.10.2026): schmale Ränder, weißes Blatt, graue Felder, schwarzer Rahmen = in Bearbeitung */
main.dok-app { padding:8px 10px 10px; } main.dok-app .pa-kopf { margin:0 0 10px; }
.dok-seite { grid-template-columns:250px minmax(560px, 920px) minmax(300px, 1fr); gap:8px; }
.dok-seite.nav-zu { grid-template-columns:38px minmax(560px, 920px) minmax(300px, 1fr); }
.dok-nav { border-radius:8px; padding:12px 0; align-self:start; max-height:100%; } .dok-nav-kopf { padding:0 10px 10px 14px; border-bottom:1px solid #eee; margin-bottom:8px; }
.dok-seite.nav-zu .dok-nav { background:#fff; border:1px solid #ddd; border-radius:8px; padding:0; width:38px; height:38px; display:flex; align-items:center; justify-content:center; }
.dok-seite.nav-zu .dok-nav-kopf { border:none; margin:0; }
.dok-blatt { padding:0 0 30px; } .dok-a4 { max-width:none; min-height:100%; border-radius:8px; box-shadow:none; border:1px solid #e8e8e8; padding:0 0 40px; }
.dok-a4 .dok-karte { padding:22px 32px; } #dok-kopfkarte { border-bottom:1px solid #eee; padding-bottom:30px; }
#dok-kopfkarte h2 { font-size:16px; font-weight:700; } 
.dok-kopf-form { grid-template-columns:minmax(0, 3fr) minmax(0, 1fr); gap:16px 16px; } .dok-kopf-form label, .dok-kopf-form .feld-gruppe { font-size:14px; color:#111; gap:8px; }
.dok-a4 .dok-kopf-form input, .dok-a4 .dok-kopf-form select, .dok-a4 .dok-empf { background:#f7f7f7; border:1px solid #dcdcdc; border-radius:6px; min-height:38px; padding:8px 12px; font-size:14px; }
.dok-a4 .dok-empf { padding:14px 16px; }
/* Texte sind weiß wie auf dem Papier; beim Draufklicken schwarzer Rahmen */
.dok-a4 .dok-texte { padding:28px 64px; } .dok-a4 .dok-texte textarea, .dok-a4 .dok-texte .dok-anrede { background:#fff; border:1px solid transparent; border-radius:8px; padding:8px 10px; font-size:14.5px; }
.dok-a4 .dok-texte textarea:hover, .dok-a4 .dok-texte .dok-anrede:hover { border-color:#e4e4e4; background:#fff; } .dok-a4 .dok-texte textarea:focus, .dok-a4 .dok-texte .dok-anrede:focus { border-color:#111; background:#fff; }
.dok-a4 .dok-texte .dok-anrede { margin-bottom:28px; }
/* Leistungsverzeichnis */
.dok-a4 .dok-tabelle { padding:0 18px; } .dok-a4 .dok-pos.kopf { margin:0 -18px 14px; padding:18px 18px; background:#f2f2f2; font-weight:700; font-size:14.5px; }
.dok-pos { grid-template-columns:22px 56px 62px 70px minmax(0, 1fr) 96px 104px 30px; gap:8px; padding:16px 10px; border:1px solid transparent; border-radius:8px; font-size:14.5px; }
.dok-pos:hover { background:#fff; border-color:#111; } .dok-pos.kopf:hover, .dok-pos.zwischensumme:hover { border-color:transparent; }
.dok-pos .dok-nr { padding-left:4px; } .dok-kurz { line-height:1.45; } .dok-platzhalter { color:#b4b4b4; } .dok-lang { margin-top:4px; }
.dok-preis, .dok-gesamt { display:flex; flex-direction:column; align-items:flex-end; gap:6px; }
.dok-pille { display:inline-block; background:#4a4a4a; color:#fff; font-size:11.5px; font-weight:700; line-height:1.25; padding:4px 8px; border-radius:7px; text-align:right; max-width:92px; }
.dok-pos.alternativ { color:#111; } .dok-pos.markiert { box-shadow:none; }
.dok-pos .icon-knopf { width:26px; height:26px; }
/* Position in Bearbeitung: schwarzer Rahmen, oben grau mit den Feldern, darunter Schalter-Zeilen mit Trennlinien */
.dok-pos-edit { background:#fff; border:1px solid #222; border-radius:8px; padding:8px 12px 12px; margin:6px 0; gap:0; }
.dok-edit-oben { display:grid; grid-template-columns:56px 76px 92px minmax(0, 1fr) 96px 104px 30px; gap:8px; align-items:start; background:#f4f4f4; border-radius:6px; padding:10px 10px 12px; }
.dok-edit-oben input, .dok-edit-zeilen input:not([type=checkbox]):not([type=radio]), .dok-edit-zeilen select { background:#fff !important; border:1px solid #dcdcdc !important; border-radius:6px; padding:7px 10px; font-size:14px; min-height:36px; box-sizing:border-box; width:100%; }
.dok-edit-oben input[readonly] { background:#ececec !important; color:#999; } .dok-edit-oben .r, .dok-kalk .r { text-align:right; }
.dok-edit-oben .dok-nr { padding-top:8px; } .dok-edit-beschr { display:flex; flex-direction:column; gap:8px; } .dok-edit-beschr .dok-toggle { font-size:14px !important; }
.dok-edit-preis { display:flex; flex-direction:column; align-items:center; gap:8px; }
.dok-edit-zeilen { padding:0 10px; } .dok-edit-z { border-top:1px solid #e2e2e2; padding:14px 0; } .dok-edit-z:first-child { border-top:none; }
.dok-edit-z.reihe { display:flex; align-items:center; gap:18px; } .dok-edit-z.reihe select { width:190px !important; }
.dok-lang-edit { border:1px solid #9db8e0; border-radius:6px; background:#fff; } .dok-lang-feld { min-height:46px; }
.dok-toggle span { width:40px; height:22px; border-radius:11px; } .dok-toggle span::after { width:18px; height:18px; } .dok-toggle input:checked + span { background:#1f7a4d; }
.dok-edit-fuss { gap:10px; padding-top:12px; } .dok-edit-fuss button { min-width:110px; }
/* Kalkulation */
.dok-kalk { background:none; border:none; padding:6px 0 0; }
.dok-kalk-modus { display:flex; gap:26px; margin:4px 0 14px; } .dok-kalk-modus label { margin:0; font-size:14px; color:#111; display:flex; align-items:center; gap:8px; }
.dok-kalk-titel { display:flex; align-items:center; gap:6px; border:none; background:none; padding:10px 0; font-weight:700; font-size:14.5px; width:100%; border-bottom:1px solid #e6e6e6; border-radius:0; margin-bottom:10px; color:#111; }
.dok-kalk-k { grid-template-columns:16px 96px 92px 80px minmax(80px, 1fr) 96px 96px 28px; gap:6px; margin-bottom:8px; }
.dok-kalk-k.kopf { font-size:13.5px; color:#111; margin-bottom:4px; } .dok-kalk-k.kopf span { padding-left:2px; }
.dok-kalk-k .dok-griff { opacity:.6; } .dok-kalk-k.fuss { margin-top:4px; } .dok-kalk-neu { font-weight:700; color:#111 !important; text-align:left; white-space:nowrap; grid-column:2 / 5; }
.dok-kalk-wert { background:#ececec; border:1px solid #dcdcdc; border-radius:6px; padding:7px 10px; font-size:14px; min-height:36px; box-sizing:border-box; display:flex; align-items:center; justify-content:flex-end; }
.dok-kalk-v { grid-template-columns:86px 104px 14px 96px 82px 16px 14px 104px minmax(90px, auto); gap:6px; margin-bottom:8px; font-size:14px; }
.dok-kalk-v.kopf { margin-bottom:2px; } .dok-kalk-v.summe { border-top:1px solid #e6e6e6; padding-top:12px; margin-top:6px; }
.dok-kalk-zeit { display:flex; align-items:center; gap:4px; font-weight:700; white-space:nowrap; }
/* Summen: weiß und rechtsbündig; Klick öffnet den Bereich mit schwarzem Rahmen */
.dok-summen { padding:10px 32px 6px; cursor:pointer; border:1px solid transparent; border-radius:8px; margin:4px 16px; display:flex; flex-direction:column; }
.dok-summen:hover { border-color:#111; } .dok-summe-zeilen { width:330px; align-self:flex-end; gap:6px; }
.dok-summe-zeilen .brutto { border-top:3px double #cfcfcf; padding-top:8px; } .dok-summe-zeilen button { margin-top:12px; background:#ededed; border-color:#ededed; color:#888; padding:8px 18px; }
.dok-bedingungen { margin:22px 0 0; padding:0; border:none; font-size:14.5px; line-height:1.6; } .dok-bedingungen:hover { background:none; }
.dok-summen-edit { border:1px solid #222; border-radius:8px; margin:4px 16px; padding:6px 10px 12px; display:flex; flex-direction:column; gap:16px; }
.dok-grau-karte { background:#f2f2f2; border-radius:6px; padding:18px 12px; font-size:14.5px; } .dok-summen-box { display:flex; flex-direction:column; }
.dok-grau-karte select, .dok-grau-karte input:not([type=checkbox]) { background:#fff !important; border:1px solid #dcdcdc !important; border-radius:6px; min-height:38px; padding:7px 10px; }
.dok-ust { display:grid; grid-template-columns:200px minmax(0, 1fr); gap:8px; margin-top:12px; } .dok-frist { border-bottom:1px solid #ddd; padding-bottom:12px; margin-bottom:14px; }
/* Rechte Seite: Reiter als kleine Karte; Bausteine schweben als kleine Karten, Suche/Ablage/Chat als große Karte */
.dok-rechts { container-type:inline-size; background:none; box-shadow:none; border-radius:0; display:flex; flex-direction:column; gap:8px; min-height:0; align-self:stretch; max-height:none; }
.dok-rechts-reiter { background:#fff; border-radius:8px; border:none; padding:6px 8px; align-self:flex-start; flex:none; }
.dok-rechts-reiter button { flex:none; border:none !important; padding:6px 9px; font-weight:700; color:#111; font-size:14px; border-radius:6px; }
.dok-rechts-reiter button.an { color:#1f7a4d; background:none; } .dok-rechts-reiter button:hover { background:#f2f2f2; }
@container (max-width:470px) { .dok-rechts-reiter span { display:none; } .dok-rechts-reiter { align-self:flex-end; } }
.dok-rechts-inhalt { background:#fff; border-radius:8px; padding:14px; flex:1; min-height:0; }
.dok-rechts[data-reiter="bausteine"] .dok-rechts-inhalt { background:none; padding:0; flex:none; width:250px; }
.dok-baustein { background:#fff; border-radius:8px; padding:10px 12px; margin-bottom:8px; font-weight:700; box-shadow:none; } .dok-baustein:hover { background:#fff; box-shadow:0 0 0 1px #ccc; }
.dok-baustein .dok-griff { opacity:1; color:#555; } .dok-baustein .rechts { font-size:20px; font-weight:400; color:#111; }
.dok-rechts[data-reiter="bausteine"] .dok-hinweis { display:none; }
.dok-suchfeld { border:1px solid #dcdcdc; border-radius:6px; padding:0 12px; } .dok-suchfeld:focus-within { border:1px solid #1d4ed8; } .dok-suchfeld input { padding:10px 0; font-size:14px; }
.dok-such-reiter button { color:#111; padding:10px 14px; } .dok-such-reiter button.an { font-weight:700; border-bottom-color:#111; color:#111; }
.dok-rechts[data-reiter="chat"] .dok-rechts-inhalt { padding:0; overflow:hidden; } .dok-chat { margin:0; height:100%; }
@media (max-width:1400px) { .dok-seite { grid-template-columns:220px minmax(0, 1fr) 320px; } .dok-seite.nav-zu { grid-template-columns:38px minmax(0, 1fr) 320px; } }
.dok-kalk-k select, .dok-kalk-k input, .dok-kalk-v input { min-width:0 !important; width:100% !important; }
.dok-kalk-k.fuss .dok-kalk-neu { grid-column:2 / 7; } .dok-kalk-k.fuss .dok-kalk-wert { grid-column:7; }
.dok-a4 .dok-texte input.dok-anrede { background:#fff; border:1px solid transparent; } .dok-a4 .dok-texte input.dok-anrede:hover { border-color:#e4e4e4; } .dok-a4 .dok-texte input.dok-anrede:focus { border-color:#111; }
.dok-kalk-k > .auswahl, .dok-edit-z .auswahl, .dok-grau-karte .auswahl, .dok-ust .auswahl { min-width:0 !important; width:100% !important; }
.dok-edit-z.reihe .auswahl { width:230px !important; }
/* 3.68: rechte Spalte fest rechts und gleich breit, Blatt bleibt gleich breit (Dom 23.10.2026) */
.dok-seite, .dok-seite.nav-zu { grid-template-columns:250px minmax(0, 920px) minmax(340px, 1fr); }
.dok-seite.nav-zu { grid-template-columns:38px minmax(0, 920px) minmax(340px, 1fr); }
.dok-rechts { justify-self:end; width:min(100%, 440px); }
.dok-rechts-reiter { align-self:stretch; justify-content:space-between; }
@container (max-width:470px) { .dok-rechts-reiter { align-self:stretch; } }
.dok-rechts[data-reiter="bausteine"] .dok-rechts-inhalt { width:auto; }
@media (max-width:1400px) { .dok-seite { grid-template-columns:220px minmax(0, 1fr) 340px; } .dok-seite.nav-zu { grid-template-columns:38px minmax(0, 1fr) 340px; } .dok-rechts { width:100%; } }
/* Position: Menge mit Marke, Rabatt, durchgestrichener Gesamtpreis */
.dok-pos .dok-menge { display:flex; flex-direction:column; align-items:flex-end; gap:6px; }
.dok-rabatt { display:flex; flex-direction:column; gap:8px; } .dok-rabatt label { display:flex; flex-direction:column; gap:4px; font-size:14px; color:#111; }
.dok-edit-oben input.durch { text-decoration:line-through; } .dok-rabatt-wert { width:100%; gap:6px; color:#999; justify-content:space-between; }
.ziel-kalk.dok-pos-edit { outline:2px dashed var(--rot); outline-offset:3px; }
/* Aufschlag je Kostenzeile */
.dok-kalk-k .dok-kalk-wert { justify-content:space-between; gap:4px; } .dok-kalk-z { border:none; background:none; padding:0; font-size:11px; color:#999; font-weight:500; cursor:pointer; }
.dok-kalk-z.eigen { color:#1f7a4d; font-weight:700; } .dok-kalk-z:hover { text-decoration:underline; }
/* Aufmaß wie plancraft */
.dok-aufmass { background:none; border:none; padding:6px 0 0; }
.dok-aufmass-z { grid-template-columns:16px minmax(0, 1fr) minmax(0, 1fr) 96px 28px; gap:6px; margin-bottom:8px; } .dok-aufmass-z.kopf { font-size:14px; margin-bottom:4px; }
.dok-aufmass-z.fuss { display:flex; justify-content:space-between; align-items:center; } .dok-aufmass-z.fuss .dok-kalk-neu { padding-left:22px; }
/* Bild hochladen */
.dok-bild-feld { margin-top:12px; border:1.5px dashed #cfcfcf; border-radius:8px; padding:30px 10px; display:flex; flex-direction:column; align-items:center; gap:6px; cursor:pointer; background:#f7f7f7; font-size:14px; }
.dok-bild-feld span { font-size:13px; color:#555; } .dok-bild-feld:hover, .dok-bild-feld.drueber { border-color:#111; background:#fff; }
/* Preis anpassen */
.pa-dialog h2 { margin:0 -20px 18px; padding:0 20px 16px; border-bottom:1px solid #eee; font-size:19px; }
.pa-oben { display:grid; grid-template-columns:1fr 1.6fr; gap:16px; margin-bottom:16px; } .pa-oben label { display:flex; flex-direction:column; gap:8px; font-size:14px; }
.pa-oben .dok-kalk-wert { width:130px; min-height:38px; } .pa-zwei { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.pa-prozent { display:flex; align-items:center; border:1px solid #dcdcdc; border-radius:6px; padding-left:12px; color:#666; } .pa-prozent input { border:none !important; min-width:0; }
.pa-dialog input[data-pa] { border:1px solid #dcdcdc; border-radius:6px; min-height:38px; padding:7px 10px; width:100%; box-sizing:border-box; background:#fff; }
.pa-summen { display:flex; flex-direction:column; gap:10px; } .pa-summen > div { display:flex; justify-content:space-between; align-items:center; } .pa-summen input { width:130px !important; }
.pa-summen .brutto { border-top:1px solid #d8d8d8; padding-top:10px; }
.pa-umv { display:flex; justify-content:space-between; align-items:center; margin:16px 0 4px; } .pa-diff { font-size:13px; max-width:none; }
.pa-dialog .dok-edit-fuss { border-top:1px solid #eee; margin:12px -20px 0; padding:16px 20px 0; }
/* Briefpapier-Vorschau: alle Seiten untereinander, eigener Scrollbereich */
.dok-bp-rechts { max-height:calc(100vh - 120px); overflow-y:auto; } .dok-bp-seiten { display:flex; flex-direction:column; align-items:center; gap:6px; }
.dok-bp-seite-nr { font-size:12px; color:#777; margin-top:8px; } .dok-bp-seiten canvas { box-shadow:0 2px 10px rgba(0,0,0,.12); }
/* 3.69 rechte Seite wie plancraft (Dom 23.10.2026): Navigation offen → rechts außen, nur Symbole; zugeklappt → direkt neben dem Blatt mit Beschriftung.
   Bausteine schmal, Suche/Ablage/Chat breit – mit kurzer Bewegung. Navigation etwas breiter. */
.dok-seite { grid-template-columns:270px minmax(0, 920px) minmax(270px, 1fr); }
.dok-seite.nav-zu { grid-template-columns:38px minmax(0, 920px) minmax(270px, 1fr); }
.dok-rechts { justify-self:end; width:250px; transition:width .22s ease; overflow:visible; }
.dok-rechts:not([data-reiter="bausteine"]) { width:min(100%, 460px); }
.dok-seite.nav-zu .dok-rechts { justify-self:start; }
.dok-rechts-reiter, .dok-seite .dok-rechts-reiter { align-self:flex-end; width:max-content; justify-content:flex-start; gap:2px; }
.dok-seite.nav-zu .dok-rechts-reiter { align-self:flex-start; }
.dok-rechts-reiter span { display:none; } .dok-seite.nav-zu .dok-rechts-reiter span { display:inline !important; }
.dok-rechts-reiter button { padding:6px 8px; }
.dok-rechts-inhalt { animation:dokEin .22s ease; } @keyframes dokEin { from { opacity:0; transform:translateX(8px); } to { opacity:1; transform:none; } }
.dok-nav { font-size:14.5px; } .dok-nav a { padding:7px 16px 7px 30px; } .dok-nav a.gross { padding-left:18px; } .dok-nav-titel { font-size:13px; padding:12px 18px 6px; }
.dok-nav a.titel { font-weight:700; padding-left:22px; } .dok-nav-kopf { font-size:15px; padding:2px 12px 12px 18px; }
@media (max-width:1400px) { .dok-seite { grid-template-columns:230px minmax(0, 1fr) 300px; } .dok-seite.nav-zu { grid-template-columns:38px minmax(0, 1fr) 300px; } .dok-rechts, .dok-rechts:not([data-reiter="bausteine"]) { width:100%; } }
/* 3.69 tiefere Kalkulation: Kostenzeile aufschlüsseln (eingerückte Unterzeilen je Einheit) */
.dok-kalk-k { grid-template-columns:16px 96px 88px 92px minmax(70px, 1fr) 92px 104px 28px 28px; }
.dok-kalk-tief { color:#888; } .dok-kalk-tief.an { color:#1f7a4d; }
.dok-kalk-unter { margin:-2px 0 10px 22px; padding:8px 10px 4px; border-left:2px solid #d6e9de; background:#fafafa; border-radius:0 6px 6px 0; }
.dok-kalk-unter-titel { font-size:12.5px; color:#555; margin-bottom:6px; }
.dok-kalk-k.unter { grid-template-columns:4px 92px 84px 88px minmax(70px, 1fr) 88px 104px 28px; }
.dok-kalk-k.fuss.unter .dok-kalk-neu { grid-column:2 / 6; } .dok-kalk-k.fuss.unter .dok-kalk-wert { grid-column:6 / 8; }
.dok-kalk-z:disabled { cursor:default; text-decoration:none; color:#1f7a4d; }
.dok-lohn span { white-space:nowrap; }

/* Nachricht wie WhatsApp: beim Drüberfahren Smiley neben der Blase, Pfeil oben rechts in der Blase (Menü) */
.ch-aktion { display:none !important; }
.ch-pfeil { position:absolute; top:4px; right:4px; width:26px; height:24px; border:none; border-radius:6px; padding:0; display:flex; align-items:center; justify-content:center;
  background:linear-gradient(to left, #f2f2f2 60%, rgba(242,242,242,0)); color:#555; cursor:pointer; opacity:0; transition:opacity .1s; z-index:2; }
.ch-n.ich .ch-pfeil { background:linear-gradient(to left, #e4e4e4 60%, rgba(228,228,228,0)); }
.ch-n:hover .ch-pfeil, .ch-pfeil:focus { opacity:1; } .ch-pfeil:hover { color:#111; }
.ch-smiley { align-self:center; flex:none; width:32px; height:32px; border:none; border-radius:50%; background:#fff; box-shadow:0 1px 3px rgba(0,0,0,.15); color:#666; cursor:pointer;
  display:flex; align-items:center; justify-content:center; padding:0; opacity:0; transition:opacity .1s; }
.ch-n:hover .ch-smiley, .ch-smiley:focus { opacity:1; } .ch-smiley:hover { color:#111; }
.auf-k-blase { display:flex; align-items:center; gap:6px; } .auf-k-blase > :not(.ch-smiley) { min-width:0; } .vl-msg:hover .ch-smiley { opacity:1; }
@media (hover:none) { .vl-msg .ch-smiley { opacity:.7; } }
.vl-msg .ch-reakt { position:static; margin-top:4px; flex-wrap:wrap; } .vl-msg.ich .ch-reakt { justify-content:flex-end; } .vl-msg.ich .auf-k-blase { flex-direction:row-reverse; }
.ch-weiter { display:flex; align-items:center; gap:4px; font-size:12.5px; font-style:italic; color:#777; margin-bottom:3px; } .ch-weiter svg { width:13px; height:13px; }
/* 3.70 Formatierungsleiste beim Markieren (wie plancraft), Kurztext als formatierbares Feld */
.dok-fmt { position:fixed; z-index:2000; transform:translate(-50%, -100%); background:#222; border-radius:8px; padding:4px; display:flex; gap:2px; box-shadow:0 4px 14px rgba(0,0,0,.25); }
.dok-fmt::after { content:''; position:absolute; left:50%; bottom:-6px; margin-left:-6px; border:6px solid transparent; border-bottom:0; border-top-color:#222; }
.dok-fmt button { background:none; border:none; color:#fff; padding:5px 9px; border-radius:5px; font-size:15px; min-width:30px; } .dok-fmt button:hover { background:#444; } .dok-fmt .ic { width:16px; height:16px; }
.dok-kurz-feld, .dok-lang-feld { background:#fff; border:1px solid #dcdcdc; border-radius:6px; padding:7px 10px; font-size:14px; line-height:1.45; outline:none; min-height:36px; box-sizing:border-box; }
.dok-kurz-feld:focus, .dok-lang-feld:focus { border-color:#9db8e0; } .dok-lang-edit { border:none; background:none; }
.dok-kurz-feld:empty::before, .dok-lang-feld:empty::before { content:attr(data-leer); color:#b4b4b4; }
.dok-lang-feld ol, .dok-lang ol { margin:4px 0 0; padding-left:20px; }
/* Einheit nicht fett und nicht breitgezogen */
.dok-edit-oben .auswahl, .dok-edit-oben select { font-weight:400 !important; } .dok-pos .dok-einheit { font-weight:400; }
/* Unterkalkulation deutlich erkennbar */
.dok-kalk-k.mit-unter > select, .dok-kalk-k.mit-unter > .auswahl, .dok-kalk-k.mit-unter input { font-weight:700; } .dok-kalk-k.mit-unter input[readonly] { background:#ececec !important; color:#555; }
.dok-kalk-text { position:relative; min-width:0; } .dok-kalk-text input { width:100%; }
.dok-unter-marke { position:absolute; right:6px; top:50%; transform:translateY(-50%); background:#1f7a4d; color:#fff; font-size:10.5px; font-weight:700; padding:2px 6px; border-radius:6px; pointer-events:none; }
.dok-kalk-unter { border-left-color:#1f7a4d; } .dok-kalk-unter-titel { display:flex; align-items:center; gap:8px; } .dok-kalk-unter-titel .dok-pille { background:#1f7a4d; max-width:none; }
/* Ansprechpersonen wie plancraft */
.ap-dialog { display:flex; flex-direction:column; gap:14px; } .ap-kopf { display:flex; align-items:center; gap:10px; margin:0 -20px; padding:0 20px 14px; border-bottom:1px solid #eee; } .ap-kopf h2 { margin:0; font-size:19px; }
.ap-tabelle { width:100%; border-collapse:collapse; } .ap-tabelle th { text-align:left; font-size:12px; letter-spacing:.6px; text-transform:uppercase; color:#666; font-weight:500; padding:8px 10px; border-bottom:1px solid #eee; }
.ap-tabelle td { padding:8px 10px; border-bottom:1px solid #eee; } .ap-tabelle input { width:100%; box-sizing:border-box; border:1px solid #dcdcdc; border-radius:6px; padding:8px 12px; background:#f7f7f7; }
.ap-name { display:flex; align-items:center; gap:12px; white-space:nowrap; } .ap-name .avatar-bild, .ap-name .avatar-kreis { width:30px; height:30px; }
.ap-schalter { display:flex; align-items:center; gap:14px; flex-wrap:wrap; font-size:14px; }
.ap-dialog .dok-edit-fuss { border-top:1px solid #eee; margin:0 -20px; padding:14px 20px 0; }
.ap-kopf .rechts { margin-left:auto; }
/* Einheit in der Position: Auswahl so breit wie die Spalte (Mindestbreite der Auswahlfelder hat sie gesprengt) */
.dok-edit-oben .auswahl, .dok-edit-oben .dok-edit-preis .auswahl { min-width:0 !important; width:100% !important; }
.dok-edit-oben { grid-template-columns:52px 76px 84px minmax(0, 1fr) 96px 104px 30px; }
/* 3.74 Standard für alle Seiten (Dom 23.10.2026): schmaler Rand wie im Angebots-Editor bzw. plancraft – oben 8 px, seitlich 10 px */
main, main.feste-seite, main.listen-seite { padding:8px 10px 16px; }
body.beta-umgebung main, body.beta-umgebung main.feste-seite, body.beta-umgebung main.dok-app, body.beta-umgebung main.chat-seite { padding-top:30px; }
.einst { margin:-8px -10px -16px; } body.beta-umgebung .einst { margin-top:-8px; }
.einst-inhalt { padding:18px 22px 40px; } .einst-menue { padding:16px 10px; }
main > .kopf:first-child, main > .seitenkopf:first-child { margin-top:2px; }
@media (max-width:760px) { main { padding:10px 10px 16px; } }
.kopf, .seitenkopf { margin-bottom:10px; }

/* 3.75 Editor für kleinere Bildschirme (Laptop, Tablet; Dom 23.10.2026): Navigation bleibt ganz sichtbar und einklappbar,
   die rechte Seite (Bausteine, Suche, Ablage, Chat) liegt dann über dem Dokument, das Dokument läuft darunter durch */
.dok-nav-spalte { min-width:0; } .dok-seite { column-gap:10px; }
@media (max-width:1400px) {
  .dok-seite, .dok-seite.nav-zu { position:relative; grid-template-columns:230px minmax(0, 1fr); }
  .dok-seite.nav-zu { grid-template-columns:38px minmax(0, 1fr); }
  .dok-seite .dok-nav { display:block; } .dok-seite.nav-zu .dok-nav { display:flex; }
  .dok-rechts, .dok-rechts:not([data-reiter="bausteine"]), .dok-seite.nav-zu .dok-rechts { position:absolute; top:0; right:0; bottom:0; z-index:6; width:250px; justify-self:auto; pointer-events:none; }
  .dok-rechts:not([data-reiter="bausteine"]) { width:min(420px, 62%) !important; }
  .dok-rechts > * { pointer-events:auto; }
  .dok-rechts-reiter, .dok-seite.nav-zu .dok-rechts-reiter { align-self:flex-end; box-shadow:0 2px 10px rgba(0,0,0,.12); }
  .dok-rechts-reiter span, .dok-seite.nav-zu .dok-rechts-reiter span { display:none !important; }
  .dok-rechts .dok-rechts-inhalt { box-shadow:0 4px 18px rgba(0,0,0,.14); }
  .dok-rechts[data-reiter="bausteine"] .dok-rechts-inhalt { box-shadow:none; } .dok-rechts[data-reiter="bausteine"] .dok-baustein { box-shadow:0 2px 8px rgba(0,0,0,.12); }
}
@media (max-width:1000px) {
  .dok-seite, .dok-seite.nav-zu { grid-template-columns:200px minmax(0, 1fr); } .dok-seite.nav-zu { grid-template-columns:38px minmax(0, 1fr); }
  .dok-a4 .dok-karte { padding:16px 18px; } .dok-a4 .dok-texte { padding:18px 24px; } .dok-a4 .dok-tabelle { padding:0 8px; } .dok-a4 .dok-pos.kopf { margin:0 -8px 10px; padding:14px 8px; }
}
/* Tablet: Dokument nicht zusammenquetschen – behält seine Mindestbreite und läuft unter der rechten Spalte durch (seitlich scrollbar) */
@media (max-width:1400px) { .dok-blatt { overflow-x:auto; } .dok-a4 { min-width:640px; } .dok-rechts { display:flex; flex-direction:column; } .dok-rechts .dok-rechts-inhalt { min-height:0; } }
/* 3.76 Datum nur über den Kalender wählen; Leistung von/bis je zur Hälfte */
.datumsfeld.nurwahl input[type=text] { cursor:pointer; caret-color:transparent; }
.dok-zwei { display:grid; grid-template-columns:1fr 1fr; gap:16px; } .dok-zwei label { display:flex; flex-direction:column; gap:8px; font-size:14px; color:#111; }
/* 3.76 Editor: Navigation füllt ihre Spalte (gleicher Spalt wie eingeklappt), Dokument immer gleich breit – beim Ein-/Ausklappen rückt es nur nach links */
.dok-nav-spalte .dok-nav { width:100%; box-sizing:border-box; } .dok-seite.nav-zu .dok-nav-spalte .dok-nav { width:38px; }
:root { --seite:var(--nav); } body.nav-zu { --seite:var(--nav-zu); }
.dok-seite { grid-template-columns:270px minmax(0, auto) minmax(270px, 1fr); } .dok-seite.nav-zu { grid-template-columns:38px minmax(0, auto) minmax(270px, 1fr); }
.dok-a4 { width:min(920px, calc(100vw - var(--seite) - 580px)); }
@media (max-width:1400px) {
  .dok-seite, .dok-seite.nav-zu { grid-template-columns:230px minmax(0, auto); } .dok-seite.nav-zu { grid-template-columns:38px minmax(0, auto); }
  .dok-a4 { width:min(920px, max(640px, calc(100vw - var(--seite) - 260px))); }
}
@media (max-width:1000px) {
  .dok-seite, .dok-seite.nav-zu { grid-template-columns:200px minmax(0, auto); } .dok-seite.nav-zu { grid-template-columns:38px minmax(0, auto); }
  .dok-a4 { width:max(640px, calc(100vw - var(--seite) - 230px)); }
}
.dok-a4 { margin:0; } /* Dokument links an der Navigation, nicht mittig in seiner Spalte */
/* 3.77 rechte Seite zugeklappt (nur Symbolleiste), damit sie auf kleineren Bildschirmen keine Felder verdeckt */
.dok-rechts[data-zu] .dok-rechts-inhalt { display:none; } .dok-rechts[data-zu] { width:auto !important; bottom:auto; }
.dok-rechts[data-zu] .dok-rechts-reiter button.an { color:#111; }

/* 3.78 Aufgaben: Seite steht still, nur Liste/Board/Kalender scrollen in sich (Dom 23.10.2026) */
main.auf-seite > * { flex:none; } main.auf-seite { padding-bottom:10px; }
main.auf-seite > .auf-scroll, main.auf-seite > .auf-zwei, main.auf-seite > .auf-board, main.auf-seite > .akal, main.auf-seite > .wo { flex:1 1 auto; min-height:0; } /* .auf-zwei: Liste mit Erledigt-Kasten, sonst scrollt nichts (4.11.2026) */
.auf-scroll { overflow-y:auto; }
.auf-board { overflow:auto; align-items:stretch; } .auf-spalte { display:flex; flex-direction:column; min-height:0; } .auf-karten { flex:1; min-height:0; overflow-y:auto; padding-bottom:4px; }
.akal { overflow-y:auto; grid-auto-rows:minmax(112px, auto); }
/* Woche: ein Scrollbereich für beide Richtungen, Kopfzeile oben und Stunden links bleiben stehen */
.wo-scroll { overflow:auto; position:relative; scroll-snap-type:x proximity; } .wo-scroll .wo-raster { max-height:none; overflow:visible; min-height:0; }
.wo-innen { width:max-content; min-width:100%; }
.wo-oben { position:sticky; top:0; z-index:4; background:#fff; }
.wo-ecke-l { position:sticky; left:0; z-index:3; background:#fff; }
.wo-stunden.wo-ecke-l { z-index:2; } .wo-kopf .wo-ecke-l, .wo-ganz-zeile .wo-ecke-l { z-index:5; }
.wo-tagkopf, .wo-spalte { scroll-snap-align:start; } .wo-tagkopf.mo, .wo-ganz.mo, .wo-spalte.mo { border-left:2px solid #cfcfcf; }
.wo-scroll .wo-ganz { max-height:92px; overflow-y:auto; } /* viele ganztägige Aufgaben: eigene kleine Scrollbox, damit der Kalender sichtbar bleibt */
.wo-scroll { scroll-padding-left:54px; } /* Tage rasten neben der festen Stundenleiste ein, nicht darunter */
/* 3.80 Beta-Hinweis klein unten links statt orangem Balken oben (Dom 24.10.2026) – kein zusätzlicher Platz oben mehr */
#beta-leiste.beta-marke { position:static; flex:none; background:none; color:#f59e0b; border:1px solid #f59e0b; border-radius:6px; font-size:11px; font-weight:600; letter-spacing:.4px; text-transform:uppercase; padding:1px 6px; margin:0 0 6px 12px; pointer-events:auto; cursor:default; align-self:flex-start; }
body.beta-umgebung aside.seite { top:0; }
body.beta-umgebung main, body.beta-umgebung main.feste-seite, body.beta-umgebung main.dok-app, body.beta-umgebung main.chat-seite { padding-top:8px; }
body.nav-zu #beta-leiste.beta-marke { margin:0 auto 6px; font-size:9px; padding:1px 3px; }
/* 3.81 Plantafel (Beta) nach plancraft: links feste Spalte, oben fester Kopf, Balken in den Zeilen */
main.pt-seite > * { flex:none; } main.pt-seite > .pt { flex:1 1 auto; min-height:0; }
.pt-knoepfe { display:flex; gap:8px; align-items:center; } .pt-knoepfe .segment button { min-width:36px; }
.pt { overflow:auto; background:#fff; border:1px solid #e3e3e3; border-radius:8px; position:relative; }
.pt-innen { position:relative; min-height:100%; }
.pt-hinter { position:absolute; top:0; bottom:0; pointer-events:none; z-index:0; } .pt-hinter div { position:absolute; top:0; bottom:0; } .pt-hinter .frei { background:#f5f5f5; } .pt-hinter .heute { background:#eaf5ee; }
.pt-zeile { display:flex; position:relative; z-index:1; border-bottom:1px solid #eee; }
.pt-l { position:sticky; left:0; z-index:3; flex:0 0 230px; width:230px; background:#fff; border-right:1px solid #e3e3e3; display:flex; align-items:center; gap:6px; padding:0 8px 0 10px; box-sizing:border-box; min-width:0; }
.pt-r { position:relative; flex:1; min-height:100%; background-image:linear-gradient(to right, #eee 1px, transparent 1px); background-size:var(--tw) 100%; }
.pt-kopf { position:sticky; top:0; z-index:5; background:#fff; } .pt-kopf .pt-zeile { background:#fff; } .pt-kopf .pt-r { background-image:none; }
.pt-monate, .pt-kws { height:30px; } .pt-monate span, .pt-kws span { position:absolute; top:0; bottom:0; display:flex; align-items:center; padding:0 8px; box-sizing:border-box; border-left:1px solid #eee; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.pt-monate span { font-weight:700; font-size:15px; } .pt-kws span { font-size:13px; color:#555; }
.pt-tage { height:54px; } .pt-tage .pt-r { display:flex; } .pt-tag { flex:none; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:1px; border-left:1px solid #eee; box-sizing:border-box; font-size:12px; color:#666; overflow:hidden; }
.pt-tag b { font-size:15px; font-weight:500; color:#111; } .pt-tag.we { background:#f5f5f5; } .pt-tag.feiertag { background:#f5f5f5; }
.pt-tag.feiertag i { font-style:normal; font-size:10.5px; background:#1f7a4d; color:#fff; border-radius:4px; padding:0 4px; max-width:calc(100% - 6px); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.pt-tag.heute { background:#1f7a4d; color:#fff; } .pt-tag.heute b { color:#fff; font-weight:700; }
.pt-l-kopf { font-size:15px; } .pt-l-kopf .rechts, .pt-l-kopf .icon-knopf { margin-left:auto; } .pt-auf { border:none; background:none; padding:2px; display:flex; color:#111; }
.pt-reihe { height:52px; } .pt-person { height:58px; } .pt-gruppe, .pt-bereich-kopf { height:46px; background:#fff; } .pt-bereich-kopf { border-top:2px solid #e3e3e3; }
.pt-projekt { display:flex; align-items:center; gap:6px; border:none; border-radius:6px; padding:6px 8px; width:100%; min-width:0; font-weight:500; text-align:left; color:#111; } .pt-projekt span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.pt-name { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; padding-left:22px; } .pt-person .icon-knopf { opacity:0; } .pt-person:hover .icon-knopf { opacity:1; } .pt-person.aus .pt-name { color:#aaa; }
.pt-balken { position:absolute; top:7px; bottom:7px; border-radius:6px; background:#e8e8e8; display:flex; align-items:center; font-size:14px; color:#111; cursor:grab; z-index:2; overflow:hidden; user-select:none; touch-action:none; box-sizing:border-box; }
.pt-balken.abw { background:#e6e6e6; color:#444; justify-content:center; } .pt-balken .ic { width:14px; height:14px; vertical-align:-2px; }
.pt-text { flex:1; min-width:0; padding:0 8px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; } .pt-balken.abw .pt-text { flex:none; }
.pt-griff { flex:none; width:7px; align-self:stretch; cursor:ew-resize; } .pt-balken:hover .pt-griff { background:rgba(0,0,0,.08); }
.pt-balken.zieht { opacity:.35; } .pt-geist { opacity:.85; outline:2px dashed #111; pointer-events:none; z-index:4; } .pt-geist.neu { background:rgba(31,122,77,.15); outline-color:#1f7a4d; }
.pt-reihe.drueber .pt-r { background-color:#f2f8f4; } .pt-leer { height:52px; } .pt-leer .pt-l { flex-basis:auto; width:auto; border:none; }
.gefahr-text { color:#5e5e5e !important; } /* Löschen als stiller grauer Text, kein roter Link (Bausteine Runde 4) */
/* Beschriftung wandert mit: Name eines Balkens bzw. Monat/KW bleibt sichtbar, wenn der Anfang links aus dem Bild gescrollt ist */
.pt-balken { overflow:clip; } .pt-text { position:sticky; left:238px; }
.pt-monate span, .pt-kws span { overflow:clip; } .pt-monate em, .pt-kws em { position:sticky; left:238px; font-style:normal; white-space:nowrap; }
.pt-balken .pt-text { flex:0 1 auto; } .pt-balken .pt-griff.r { margin-left:auto; }

/* ---------- Berichte (3.82, nach plancraft) ---------- */
.ber-einst-kopf { display:flex; align-items:center; gap:12px; margin-bottom:12px; } .ber-einst-kopf h1 { margin:0; } .ber-einst-kopf .rechts { margin-left:auto; }
.ber-tab { padding:0; overflow:hidden; } .ber-tab .tabelle { margin:0; } .ber-zelle-rechts { text-align:right; width:44px; }
.ber-status { font-size:12.5px; padding:3px 10px; border-radius:12px; background:#f1f1f1; color:#777; font-weight:500; } .ber-status.an { background:#e3f4e8; color:#1f6b3a; }
.ber-edit { flex:1 1 auto; min-height:0; display:grid; grid-template-columns:minmax(0, 1fr) minmax(320px, 600px); gap:12px; }
.ber-links { min-height:0; overflow-y:auto; display:flex; flex-direction:column; gap:8px; padding:0 2px 30px 0; }
.ber-rechts { min-height:0; overflow-y:auto; background:#fff; border:1px solid #e3e3e3; border-radius:8px; padding:10px; }
.ber-vorschau .ber-seiten, .dok-vorschau .ber-seiten { display:flex; flex-direction:column; align-items:center; gap:14px; }
.ber-seiten canvas { box-shadow:0 2px 10px rgba(0,0,0,.12); background:#fff; }
.ber-karte { background:#fff; border:1px solid #e3e3e3; border-radius:8px; padding:12px 14px; }
.ber-karte-kopf { display:flex; align-items:center; gap:10px; margin-bottom:10px; }
.ber-typ { font-size:12px; color:#666; background:#f3f3f3; border-radius:6px; padding:3px 8px; white-space:nowrap; }
.ber-titel { flex:1 1 auto; min-width:0; font-weight:600; font-size:15px; border:1px solid transparent !important; background:transparent !important; padding:5px 8px !important; }
.ber-titel:hover, .ber-titel:focus { border-color:#d9d9d9 !important; background:#fff !important; }
.ber-karte-kopf .icon-knopf[disabled] { opacity:.3; }
.ber-grid2 { display:grid; grid-template-columns:1fr 1fr; gap:10px 16px; } .ber-grid2.eng { gap:8px; }
.ber-grid2 label, .ber-spalte label, .ber-feld { display:flex; flex-direction:column; gap:5px; font-size:13px; color:#333; }
.ber-spalte { display:flex; flex-direction:column; gap:8px; min-width:0; }
.ber-zeile { display:flex; align-items:center; gap:8px; } .ber-zeile input { flex:1 1 auto; min-width:0; } .ber-zeile .auswahl { width:130px !important; flex:none; }
.ber-mini { font-size:12px; color:#777; width:96px; flex:none; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ber-fuss { display:flex; align-items:center; gap:16px; margin-top:10px; flex-wrap:wrap; } .ber-fuss .dok-toggle { margin-left:auto; }
.ber-opt { display:flex; align-items:flex-end; padding-bottom:8px; }
.ber-dazu { display:inline-flex; align-items:center; gap:6px; align-self:flex-start; background:#fff; border:1px solid #d9d9d9; border-radius:8px; padding:8px 12px; font-size:14px; color:#222; cursor:pointer; }
.ber-dazu.klein { padding:5px 10px; font-size:13px; margin-top:6px; } .ber-dazu:hover { border-color:#999; } .ber-dazu[disabled] { opacity:.4; cursor:default; }
.ber-hinweis { font-size:13px; color:#666; }
.ber-karte textarea, .ber-ab textarea { width:100%; resize:none; field-sizing:content; min-height:70px; }
/* Bericht ausfüllen: A4-Blatt */
.ber-blatt-box { flex:1 1 auto; min-height:0; overflow-y:auto; display:flex; justify-content:center; padding:0 0 40px; }
.ber-blatt { width:min(860px, 100%); background:#fff; border:1px solid #e3e3e3; border-radius:8px; padding:24px 34px 40px; align-self:flex-start; }
.ber-name { margin:0 0 14px; } .ber-name input { width:100%; font-size:22px; font-weight:700; border:1px solid transparent !important; background:transparent !important; padding:4px 6px !important; }
.ber-name input:hover, .ber-name input:focus { border-color:#d9d9d9 !important; }
.ber-ab { padding:14px 0; border-top:1px solid #eee; } .ber-ab h3 { margin:0 0 10px; font-size:15px; font-weight:700; }
.ber-auto { background:#f3f3f3; border:1px solid #e3e3e3; border-radius:6px; padding:8px 12px; min-height:38px; color:#555; font-size:14px; line-height:1.45; }
.ber-ab input:not([type=checkbox]):not([type=radio]), .ber-ab select { min-height:36px; }
.ber-optionen { display:flex; flex-direction:column; gap:6px; } .ber-optionen .haken { margin:0; }
.ber-tabelle { display:flex; flex-direction:column; border:1px solid #e3e3e3; border-radius:6px; overflow:hidden; }
.ber-tz { display:grid; grid-template-columns:var(--sp); gap:6px; align-items:center; padding:5px 6px; border-top:1px solid #eee; }
.ber-tz.kopf { background:#f5f5f5; border-top:0; font-size:13px; font-weight:600; color:#333; padding:8px 6px; }
.ber-tz > input, .ber-tz > select, .ber-tz > .datumsfeld { min-width:0; width:100%; } .ber-tz .auswahl { min-width:0 !important; width:100% !important; }
.ber-rech { font-size:14px; color:#333; text-align:right; padding-right:6px; }
.ber-bilder { display:grid; grid-template-columns:repeat(auto-fill, minmax(180px, 1fr)); gap:10px; }
.ber-bilder figure { margin:0; position:relative; border:1px solid #e3e3e3; border-radius:6px; overflow:hidden; display:flex; flex-direction:column; }
.ber-bilder img { width:100%; height:140px; object-fit:cover; display:block; } .ber-bilder input { border:0 !important; border-top:1px solid #eee !important; border-radius:0 !important; }
.ber-bilder .icon-knopf { position:absolute; top:6px; right:6px; background:#fff; }
/* Dialoge */
dialog.ber-neu { width:min(640px, 94vw); padding:18px 20px; } .ber-neu-kopf { display:flex; align-items:center; justify-content:space-between; margin-bottom:12px; } .ber-neu-kopf h2 { margin:0; font-size:18px; }
.ber-neu-liste { display:grid; grid-template-columns:1fr 1fr; gap:8px; max-height:60vh; overflow-y:auto; }
.ber-neu-liste button { display:flex; align-items:center; gap:10px; text-align:left; background:#fff; border:1px solid #e3e3e3; border-radius:8px; padding:12px; font-weight:500; color:#111; cursor:pointer; }
.ber-neu-liste button:hover { border-color:#999; } .ber-neu-liste em { color:#777; font-style:normal; font-weight:400; }
.ber-neu-fuss { margin-top:12px; font-size:13px; }
dialog.ber-sign { width:min(620px, 96vw); padding:18px 20px; }
.ber-sign-reiter { display:flex; gap:6px; margin-bottom:12px; } .ber-sign-reiter button { flex:1; border:1px solid #d9d9d9; background:#fff; border-radius:8px; padding:8px; }
.ber-sign-reiter button.an { border-color:#131313; font-weight:600; } .ber-sign-reiter button[disabled] { color:#aaa; }
.ber-sign-name { display:flex; flex-direction:column; gap:5px; font-size:13px; margin-bottom:10px; }
.ber-sign-feld { position:relative; border:1px solid #d9d9d9; border-radius:8px; height:200px; background:#fafafa; margin-bottom:14px; touch-action:none; }
.ber-sign-feld canvas { width:100%; height:100%; display:block; cursor:crosshair; touch-action:none; }
.ber-sign-linie { position:absolute; left:24px; right:24px; bottom:44px; border-bottom:1px solid #bbb; pointer-events:none; }
.ber-sign-leeren { position:absolute; top:8px; right:8px; font-size:12.5px; padding:4px 10px; }
@media (max-width:1100px) { .ber-edit { grid-template-columns:1fr; overflow-y:auto; } .ber-links, .ber-rechts { overflow:visible; } .ber-neu-liste { grid-template-columns:1fr; } }
@media (max-width:700px) { .ber-grid2 { grid-template-columns:1fr; } .ber-blatt { padding:16px; } }

/* ---------- Plantafel 3.84: einheitliche Spalten, Seitenleisten wie plancraft ---------- */
.pt-gruppe, .pt-bereich-kopf { background:transparent; } .pt-gruppe .pt-l, .pt-bereich-kopf .pt-l { background:#fff; }
.pt-bereich-kopf { border-top:1px solid #e3e3e3; }
.pt { display:block; } .pt-innen { min-height:100%; }
.pt-tag.heute { background:#eaf5ee; color:#1f7a4d; } .pt-tag.heute b { color:#fff; background:#1f7a4d; border-radius:12px; padding:0 7px; font-weight:600; }
.pt-tag { border-left-color:#eee; } .pt-tag.we, .pt-tag.feiertag { background:#f5f5f5; }
.pt-balken.abw { background:#ececec; color:#333; } .pt-balken.abw .ic, .pt-balken.abw svg { color:#555; }
dialog.pt-panel { position:fixed; inset:0 0 0 auto; margin:0; height:100vh; max-height:100vh; width:min(560px, 100vw); border-radius:0; padding:0; display:flex; flex-direction:column; box-shadow:-6px 0 30px rgba(0,0,0,.18); }
dialog.pt-panel:not([open]) { display:none; }
.pt-panel-kopf { display:flex; align-items:center; justify-content:space-between; padding:16px 20px; border-bottom:1px solid #e6e6e6; flex:none; } .pt-panel-kopf h2 { margin:0; font-size:20px; }
.pt-panel-inhalt { flex:1 1 auto; min-height:0; overflow-y:auto; padding:16px 20px; display:flex; flex-direction:column; gap:14px; }
.pt-panel-inhalt > div:not([hidden]) { display:flex; flex-direction:column; gap:14px; }
.pt-panel-fuss { flex:none; display:flex; align-items:center; gap:8px; padding:12px 20px; border-top:1px solid #e6e6e6; } .pt-panel-fuss .rechts { margin-left:auto; }
.pt-reiter { display:flex; gap:4px; border-bottom:1px solid #e3e3e3; } .pt-reiter button { border:none; background:none; border-bottom:2px solid transparent; border-radius:0; padding:8px 12px; font-size:15px; font-weight:500; color:#6a6a6a; margin-bottom:-1px; }
.pt-reiter button.an { border-bottom-color:#131313; color:#111; font-weight:600; }
.pt-feld { display:flex; flex-direction:column; gap:6px; font-size:14px; color:#222; }
.pt-fest { background:#f3f3f3; border:1px solid #e6e6e6; border-radius:6px; padding:9px 12px; color:#333; }
.pt-wahl { text-align:left; width:100% !important; min-height:38px; } .pt-wahl.leer { color:#888; }
.pt-zeitraum { display:flex !important; flex-direction:row !important; align-items:flex-end; gap:10px; } .pt-zeitraum > .pt-feld { flex:1; min-width:0; } .pt-zeitraum[hidden] { display:none !important; }
.pt-ganz { flex:none; padding-bottom:9px; }
.pt-panel textarea { resize:none; field-sizing:content; min-height:80px; }
.pt-arten { display:flex; flex-direction:column; border:1px solid #e3e3e3; border-radius:8px; overflow:hidden; }
.pt-arten button { display:flex; align-items:center; gap:10px; border:none; border-top:1px solid #f0f0f0; border-radius:0; background:#fff; padding:10px 12px; text-align:left; font-size:14.5px; color:#222; }
.pt-arten button:first-child { border-top:none; } .pt-arten button:hover { background:#f7f7f7; } .pt-arten button.an { background:#eef4fb; font-weight:600; } .pt-arten svg { color:#555; flex:none; }
dialog.pt-panel:has(.pt-projekt-panel) { width:min(900px, 100vw); }
.pt-projekt-panel { display:grid !important; grid-template-columns:minmax(0, 1fr) 280px; gap:18px; align-items:start; }
.pt-pp-links { display:flex; flex-direction:column; gap:8px; } .pt-pp-links h3 { margin:0 0 4px; font-size:16px; }
.pt-pp-reihe { display:grid; grid-template-columns:minmax(0, 1fr) auto minmax(0, 1fr) minmax(0, 1.2fr) 34px; gap:6px; align-items:center; } .pt-pp-reihe > span { color:#777; }
.pt-pp-reihe .datumsfeld { min-width:0; }
.pt-dazu { display:inline-flex; align-items:center; gap:6px; align-self:flex-start; border:none; background:none; padding:6px 4px; font-weight:600; color:#111; }
.pt-pp-rechts { display:flex; flex-direction:column; gap:10px; } .pt-pp-rechts section { background:#f5f5f5; border-radius:8px; padding:12px 14px; display:flex; flex-direction:column; gap:8px; align-items:flex-start; }
.pt-pp-name { font-size:15px; } .pt-pp-zeile { display:flex; gap:8px; align-items:flex-start; font-size:14px; } .pt-pp-zeile svg { flex:none; color:#666; margin-top:1px; }
.pt-pp-link { display:inline-flex; align-items:center; gap:6px; font-weight:600; color:#111; text-decoration:none; padding-top:6px; border-top:1px solid #e3e3e3; width:100%; }
.pt-pp-rechts .pt-feld { width:100%; } .pt-pp-rechts .auswahl { width:100% !important; }
@media (max-width:760px) { .pt-projekt-panel { grid-template-columns:1fr; } .pt-pp-reihe { grid-template-columns:1fr 1fr 34px; } .pt-pp-reihe > span { display:none; } .pt-pp-reihe [data-k=titel] { grid-column:1 / 3; } }

/* ---------- Projekt-Reiter Bilder (3.85) ---------- */
.bi-tag { display:flex; align-items:baseline; gap:10px; margin:14px 0 8px; } .bi-tag:first-child { margin-top:4px; } .bi-tag b { font-size:15px; } .bi-tag span { font-size:13px; color:#777; }
.bi-raster { display:grid; grid-template-columns:repeat(auto-fill, minmax(140px, 1fr)); gap:6px; }
.bi-kachel { padding:0; border:1px solid #e3e3e3; border-radius:6px; overflow:hidden; aspect-ratio:1; background:#f3f3f3; cursor:zoom-in; }
.bi-kachel img { width:100%; height:100%; object-fit:cover; display:block; transition:transform .15s; } .bi-kachel:hover img { transform:scale(1.03); }
.pa-inhalt.bi-ziel { outline:2px dashed #999; outline-offset:-4px; }
dialog.bb { width:100vw; height:100vh; max-width:100vw; max-height:100vh; margin:0; padding:0; border-radius:0; background:#111; color:#fff; display:flex; flex-direction:column; }
dialog.bb:not([open]) { display:none; } dialog.bb::backdrop { background:#111; }
.bb-kopf { display:flex; align-items:center; gap:12px; padding:10px 16px; flex:none; } .bb-info { display:flex; flex-direction:column; gap:2px; } .bb-info span { font-size:13px; color:#bbb; }
.bb-kopf .icon-knopf { color:#fff; background:transparent; border-color:#444; }
.bb-buehne { flex:1 1 auto; min-height:0; display:flex; align-items:center; justify-content:center; position:relative; padding:0 60px 20px; touch-action:pan-y; }
.bb-buehne img { max-width:100%; max-height:100%; object-fit:contain; user-select:none; }
.bb-pfeil { position:absolute; top:50%; transform:translateY(-50%); width:46px; height:46px; border-radius:50%; border:none; background:rgba(255,255,255,.12); color:#fff; display:flex; align-items:center; justify-content:center; }
.bb-pfeil.l { left:10px; } .bb-pfeil.r { right:10px; } .bb-pfeil:hover { background:rgba(255,255,255,.22); } .bb-pfeil[hidden] { display:none; }
@media (max-width:700px) { .bb-buehne { padding:0 0 10px; } .bb-pfeil { display:none; } .bi-raster { grid-template-columns:repeat(3, 1fr); gap:3px; } }
.pt-hinter { background-image:linear-gradient(to right, #eee 1px, transparent 1px); background-size:var(--tw) 100%; }
.pt-panel-inhalt > .pt-reiter { flex-direction:row !important; gap:4px !important; } .pt-wahl { height:38px; min-height:38px !important; padding:0 12px !important; display:flex !important; align-items:center; } .pt-zeitraum .pt-ganz { white-space:nowrap; }

/* ---------- Plantafel 3.89: Projekte und Mitarbeiter getrennt scrollbar ---------- */
.pt { display:flex !important; flex-direction:column; overflow:hidden !important; }
.pt-teil { flex:none; overflow-x:hidden; overflow-y:auto; scrollbar-gutter:stable; position:relative; }
.pt-teil-kopf, .pt-teil-makopf { overflow:hidden; }
.pt-teil-kopf .pt-kopf { position:static; }
.pt-teil-projekte { flex:0 1 auto; min-height:0; max-height:45%; }
.pt-teil-makopf { border-top:1px solid #d9d9d9; } .pt-teil-makopf .pt-bereich-kopf { border-top:none; }
.pt-teil-ma { flex:1 1 0; min-height:0; overflow-x:auto; }
.pt-teil .pt-innen { min-height:100%; }
.pt.p-zu .pt-teil-projekte { display:none; }
.pt.m-zu .pt-teil-ma { flex:0 0 auto; } .pt.m-zu .pt-teil-ma .pt-innen { min-height:0; height:1px; }
/* Mitarbeiter zugeklappt (Dom 4.11.2026): die Leiste rutscht ganz nach unten, die Projekte bekommen die ganze Höhe – wie umgekehrt beim Zuklappen der Projekte */
.pt.m-zu .pt-teil-projekte { flex:1 1 0; max-height:none !important; height:auto !important; }
.pt-teiler { flex:none; height:7px; margin:-3px 0 -4px; position:relative; z-index:6; cursor:row-resize; }
.pt-teiler:hover, .pt-teiler.zieht { background:linear-gradient(#0000 2px, #9aa 2px, #9aa 4px, #0000 4px); }
.pt.p-zu .pt-teiler, .pt.m-zu .pt-teiler { display:none; }

/* ---------- KPI-Übersicht Startseite (3.90) ---------- */
.kpi { margin:18px 0 22px; } .kpi:empty { display:none; }
.kpi-kopf { display:flex; align-items:center; gap:14px; margin-bottom:12px; flex-wrap:wrap; } .kpi-kopf h2 { margin:0; font-size:18px; }
.kpi-kacheln { display:grid; grid-template-columns:repeat(auto-fill, minmax(190px, 1fr)); gap:10px; margin-bottom:10px; }
.kpi-kachel { background:#fff; border:1px solid var(--linie); border-radius:10px; padding:14px 16px; color:inherit; display:flex; flex-direction:column; gap:4px; min-width:0; }
a.kpi-kachel[href]:hover { border-color:#131313; text-decoration:none; }
.kpi-kachel .kpi-t { font-size:13px; color:#666; } .kpi-kachel b { font-size:26px; font-weight:700; line-height:1.15; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.kpi-kachel.warn b { color:var(--rot); }
.kpi-d { font-size:12.5px; color:#777; display:block; } .kpi-d.plus { color:#1f7a4d; } .kpi-d.minus { color:#b42323; }
.kpi-raster { display:grid; grid-template-columns:repeat(auto-fill, minmax(340px, 1fr)); gap:10px; }
.kpi-karte { background:#fff; border:1px solid var(--linie); border-radius:10px; padding:14px 16px; display:flex; flex-direction:column; gap:6px; min-width:0; }
.kpi-karte.breit { grid-column:1 / -1; } .kpi-karte h3 { margin:0 0 4px; font-size:15px; }
.kpi-legende { display:flex; align-items:center; gap:6px; font-size:12.5px; color:#666; } .kpi-legende span { width:10px; height:10px; border-radius:2px; display:inline-block; margin-left:8px; }
.kpi-legende .b, .kpi-saeulen .b { background:#E40000; } .kpi-legende .l, .kpi-saeulen .l { background:#989EA1; }
.kpi-balken { display:grid; grid-template-columns:repeat(12, 1fr); gap:8px; height:150px; align-items:end; }
.kpi-monat { display:flex; flex-direction:column; align-items:center; gap:4px; height:100%; } .kpi-monat span { font-size:12px; color:#777; flex:none; }
.kpi-saeulen { flex:1; width:100%; display:flex; align-items:flex-end; justify-content:center; gap:3px; border-bottom:1px solid #e3e3e3; }
.kpi-saeulen i { width:38%; max-width:16px; min-height:1px; border-radius:3px 3px 0 0; }
.kpi-zeile { display:grid; grid-template-columns:150px minmax(0, 1fr) 32px 90px; gap:10px; align-items:center; font-size:14px; color:inherit; padding:3px 0; }
a.kpi-zeile:hover { text-decoration:none; background:#fafafa; } .kpi-zeile b { text-align:right; } .kpi-zeile em { font-style:normal; color:#666; text-align:right; font-size:13px; }
.kpi-bar { height:8px; background:#f1f1f1; border-radius:4px; overflow:hidden; } .kpi-bar i { display:block; height:100%; background:#303030; border-radius:4px; }
.kpi-status { display:flex; flex-wrap:wrap; gap:8px; } .kpi-status a { display:inline-flex; align-items:center; gap:6px; color:inherit; } .kpi-status a:hover { text-decoration:none; opacity:.8; } .kpi-status b { font-size:14px; }
.kpi-liste { display:flex; align-items:center; gap:10px; padding:6px 0; border-top:1px solid #f0f0f0; color:inherit; font-size:14px; } .kpi-liste:first-of-type { border-top:none; }
a.kpi-liste:hover { text-decoration:none; background:#fafafa; } .kpi-liste > span { flex:1; min-width:0; display:flex; flex-direction:column; } .kpi-liste > span b { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.kpi-liste em { font-style:normal; color:#777; font-size:12.5px; } .kpi-seit { white-space:nowrap; }
@media (max-width:700px) { .kpi-zeile { grid-template-columns:110px minmax(0, 1fr) 28px 70px; } .kpi-raster { grid-template-columns:1fr; } }
/* Plantafel 3.91: seitlich nur über die Tafel (alle Bereiche gleichzeitig), eigene Leiste unten */
.pt-teil-ma { overflow-x:hidden !important; }
.pt-hbar { flex:none; overflow-x:auto; overflow-y:hidden; height:14px; scrollbar-gutter:stable; border-top:1px solid #eee; } .pt-hbar > div { height:1px; }
.pt-teil { overscroll-behavior-x:none; }

/* ---------- Gesprächsnotizen gegliedert (3.92) ---------- */
.nz-rahmen { display:flex; flex-direction:column; gap:10px; margin-top:12px; font-size:14.5px; line-height:1.55; }
.nz-kurz { background:#f5f5f5; border-radius:8px; padding:10px 14px; color:#222; } .nz-kurz .md > div { margin:0; }
.nz-kurz.lang:not(.auf) .md { display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; } .nz-kurz .link { margin-top:4px; font-size:13px; }
.nz-schritt { display:flex; gap:8px; align-items:flex-start; background:#fff6db; color:#6b4f00; border-radius:8px; padding:9px 14px; } .nz-schritt svg { flex:none; margin-top:2px; } .nz-schritt b { font-weight:600; margin-right:4px; }
.nz { display:flex; flex-direction:column; gap:2px; }
.nz-ab { padding:8px 0; border-top:1px solid #eee; } .nz-ab:first-child { border-top:none; padding-top:0; }
.nz-ab h4 { margin:0 0 4px; font-size:13px; font-weight:600; color:#575D5E; text-transform:none; letter-spacing:.01em; }
.nz-ab.wichtig h4 { color:#131313; } .nz-ab.wichtig { background:#fafafa; border-radius:8px; border-top:none; padding:8px 12px; margin:4px 0; }
details.nz-ab summary { display:flex; align-items:baseline; gap:10px; cursor:pointer; list-style:none; } details.nz-ab summary::-webkit-details-marker { display:none; }
details.nz-ab summary::before { content:''; flex:none; width:7px; height:7px; border-right:1.5px solid #777; border-bottom:1.5px solid #777; transform:rotate(-45deg); margin-right:2px; transition:transform .15s; align-self:center; }
details.nz-ab[open] summary::before { transform:rotate(45deg); } details.nz-ab summary h4 { margin:0; flex:none; } details.nz-ab summary span { color:#888; font-size:13px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; min-width:0; }
details.nz-ab[open] summary span { display:none; } details.nz-ab[open] > :not(summary) { margin-top:6px; }
.nz .md ul, .nz .md ol { margin:2px 0; padding-left:20px; } .nz .md .md-luecke { height:6px; }
.nz-kv { display:grid; grid-template-columns:minmax(120px, max-content) minmax(0, 1fr); gap:3px 14px; margin:4px 0; } .nz-kv dt { color:#666; } .nz-kv dd { margin:0; } .nz-kv dd .md > div { margin:0; }
.nz-alle { align-self:flex-start; font-size:13px; margin-top:4px; }
@media (max-width:600px) { .nz-kv { grid-template-columns:1fr; } .nz-kv dd { margin-bottom:6px; } }

/* ---------- Gesprächsnotiz als Seite (3.93): links Angaben, rechts Markdown ---------- */
.nt-titel { flex:1 1 auto; min-width:0; font-size:21px !important; font-weight:700; border:1px solid transparent !important; background:transparent !important; padding:4px 8px !important; }
.nt-titel:hover, .nt-titel:focus { border-color:#d9d9d9 !important; background:#fff !important; }
.nt { flex:1 1 auto; min-height:0; display:grid; grid-template-columns:300px minmax(0, 1fr); gap:12px; }
.nt-links { background:#fff; border:1px solid #e3e3e3; border-radius:10px; padding:14px; display:flex; flex-direction:column; gap:12px; overflow-y:auto; min-height:0; }
.nt-f { display:flex; flex-direction:column; gap:5px; font-size:13px; color:#555; } .nt-f > input, .nt-f > select, .nt-f .auswahl, .nt-f .feld-knopf { width:100% !important; }
.nt-f .md-eingabe { min-height:64px; font-size:14px; color:#111; }
.nt-fest { color:#111; font-size:14px; } .nt-info { border-top:1px solid #eee; padding-top:10px; margin-top:auto; line-height:1.5; }
.nt-rechts { background:#fff; border:1px solid #e3e3e3; border-radius:10px; display:flex; flex-direction:column; min-height:0; overflow:hidden; }
.nt-hilfe { display:flex; gap:14px; align-items:center; padding:8px 18px; border-bottom:1px solid #eee; font-size:12.5px; color:#888; flex:none; } .nt-hilfe span { font-family:ui-monospace, Menlo, monospace; }
.nt-hilfe .link { margin-left:auto; font-size:13px; }
.nt-rechts .md-eingabe { flex:1 1 auto; min-height:0; overflow-y:auto; border:none !important; border-radius:0 !important; padding:18px 26px 60px !important; font-size:15px; line-height:1.6; max-width:none; box-shadow:none !important; }
.nt-rechts .md-eingabe:focus { outline:none; }
@media (max-width:900px) { .nt { grid-template-columns:1fr; overflow-y:auto; } .nt-links, .nt-rechts { overflow:visible; } .nt-rechts .md-eingabe { min-height:50vh; } }
.nt-rechts .md-eingabe > [data-md^="#"] { margin-top:16px; } .nt-rechts .md-eingabe > [data-md^="#"]:first-child { margin-top:0; }

/* ---------- CRM-Bausteine (3.94): Beteiligte, Objekt, Kontakt-/Firmenseite ---------- */
.ck-reiter { margin-left:14px; } .ck-reiter a { text-decoration:none; }
.ck-ic { flex:none; width:28px; height:28px; border-radius:50%; background:#f1f1f1; display:inline-flex; align-items:center; justify-content:center; color:#555; }
.ck-bet, .ck-obj { display:flex; gap:10px; align-items:flex-start; padding:8px 0; border-top:1px solid #f0f0f0; } .ck-bet:first-of-type, .ck-obj { border-top:none; }
.ck-bet-text { flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; } .ck-bet-text a { color:inherit; } .ck-notiz { font-style:italic; }
.ck-rolle { display:inline-block; font-size:12px; padding:1px 8px; border-radius:10px; background:#eef1f4; color:#33495e; border:none; cursor:pointer; margin-left:4px; white-space:nowrap; }
.ck-werte { margin-top:6px; }
.ck-treffer { display:flex; flex-direction:column; gap:4px; margin:6px 0 10px; max-height:260px; overflow-y:auto; }
.ck-treffer-zeile { display:flex; gap:10px; align-items:center; text-align:left; background:#fff; border:1px solid #e3e3e3; border-radius:8px; padding:7px 10px; color:#111; cursor:pointer; }
.ck-treffer-zeile:hover { border-color:#999; } .ck-treffer-zeile > span:last-child { display:flex; flex-direction:column; min-width:0; }
.ck-neu-kopf { margin:10px 0 6px; padding-top:10px; border-top:1px solid #eee; }
.ck-seite { display:grid; grid-template-columns:minmax(280px, 380px) minmax(0, 1fr); gap:12px; align-items:start; }
.ck-hist { display:flex; flex-direction:column; }
.ck-hist-zeile { display:grid; grid-template-columns:84px 28px minmax(0, 1fr) auto; gap:10px; align-items:center; padding:8px 4px; border-top:1px solid #f0f0f0; color:inherit; text-decoration:none; }
.ck-hist-zeile:first-child { border-top:none; } .ck-hist-zeile:hover { background:#fafafa; text-decoration:none; }
.ck-hist-datum { font-size:13px; color:#777; font-variant-numeric:tabular-nums; } .ck-hist-text { display:flex; flex-direction:column; min-width:0; } .ck-hist-text b { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ck-hist-text .klein-text { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; } .ck-hist-unter { text-align:right; white-space:nowrap; }
@media (max-width:900px) { .ck-seite { grid-template-columns:1fr; } .ck-hist-zeile { grid-template-columns:70px 28px minmax(0, 1fr); } .ck-hist-unter { grid-column:3; text-align:left; } }
.pa-box:has(.pa-bet-box) .pa-tag { position:static; display:inline-block; margin-top:4px; }
.pa-bet a { color:#111; text-decoration:underline; text-decoration-color:#ccc; }
a.ck-bet b { color:#111; }
/* CRM Schritt 2 (3.95) */
.ck-spalte { display:flex; flex-direction:column; gap:12px; min-width:0; }
.ck-zahlen { display:grid; grid-template-columns:repeat(auto-fill, minmax(130px, 1fr)); gap:8px; }
.ck-zahlen > div { background:#fff; border:1px solid var(--linie); border-radius:10px; padding:10px 14px; display:flex; flex-direction:column; gap:2px; } .ck-zahlen span { font-size:12.5px; color:#666; } .ck-zahlen b { font-size:20px; }
a.ck-bet { color:inherit; text-decoration:none; } a.ck-bet:hover { background:#fafafa; }
.pa-bet-box { margin-top:8px; padding-top:6px; border-top:1px solid #eee; display:flex; flex-direction:column; gap:3px; }
.pa-bet-kopf { display:flex; align-items:center; justify-content:space-between; font-size:12px; color:#777; } .pa-bet-kopf .icon-knopf { width:24px; height:24px; min-width:24px; }
.pa-bet { display:flex; align-items:center; gap:6px; flex-wrap:wrap; font-size:14px; } .pa-bet .ck-rolle { margin-left:0; cursor:default; }
.pa-bet-weg { border:none; background:none; padding:2px; color:#999; cursor:pointer; margin-left:auto; } .pa-bet-weg:hover { color:var(--rot); }
/* Kunden & Kontakte (3.96) */
.ck-name { display:flex; gap:10px; align-items:center; }
.ck-bs { display:flex; gap:10px; align-items:center; width:100%; text-align:left; background:none; border:none; border-top:1px solid #f0f0f0; padding:8px 2px; color:#111; cursor:pointer; border-radius:0; }
.ck-bs:first-of-type { border-top:none; } .ck-bs:hover { background:#fafafa; } .ck-bs-text { flex:1; min-width:0; display:flex; flex-direction:column; }
/* Chat 3.97: Herkunft weitergeleiteter Nachrichten, Admin entfernt Lösch-Hinweis */
.ch-quelle { display:flex; align-items:center; gap:6px; margin:2px 0 6px; padding:6px 10px; border:1px solid #e3e3e3; border-radius:8px; background:#fff; color:#111; text-decoration:none; font-size:13px; max-width:100%; }
.ch-quelle:hover { border-color:#999; text-decoration:none; } .ch-quelle span { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-weight:500; } .ch-quelle em { font-style:normal; color:#777; font-weight:400; margin-left:4px; } .ch-quelle svg { flex:none; color:#666; }
.ch-n.ich .ch-quelle { background:rgba(255,255,255,.75); }
.ch-weg-ganz { border:none; background:none; padding:0 0 0 8px; color:#999; cursor:pointer; vertical-align:middle; } .ch-weg-ganz:hover { color:var(--rot); }

/* ---------- Geräte, Werkstatt, Lagerbestand, Anforderungen (3.99) ---------- */
.rs-ampel { display:inline-block; width:9px; height:9px; border-radius:50%; vertical-align:1px; } .rs-ampel.rot { background:var(--rot); } .rs-ampel.gelb { background:#e3a008; } .rs-ampel.gruen { background:#1f7a4d; }
.rs-qr { display:flex; align-items:center; gap:12px; margin-top:10px; } .rs-qr svg { width:96px; height:96px; flex:none; }
.rs-tab { width:100%; border-collapse:collapse; font-size:14px; } .rs-tab th { text-align:left; font-size:12.5px; color:#666; font-weight:600; padding:6px 8px; border-bottom:1px solid #e3e3e3; }
.rs-tab td { padding:7px 8px; border-bottom:1px solid #f0f0f0; vertical-align:top; } .rs-tab .zahl { text-align:right; white-space:nowrap; }
.rs-board { flex:1 1 auto; min-height:0; display:grid; grid-template-columns:repeat(4, minmax(220px, 1fr)); gap:10px; overflow-x:auto; padding-bottom:6px; }
.rs-spalte { background:#f4f4f4; border-radius:10px; padding:8px; display:flex; flex-direction:column; min-height:0; border:1px solid transparent; } .rs-spalte.drueber { border-color:#999; background:#eee; }
.rs-spalte-kopf { display:flex; justify-content:space-between; align-items:center; padding:2px 4px 8px; font-size:14px; } .rs-spalte-kopf span { color:#777; font-size:13px; }
.rs-karten { flex:1 1 auto; min-height:40px; overflow-y:auto; display:flex; flex-direction:column; gap:6px; }
.rs-karte { background:#fff; border:1px solid #e3e3e3; border-radius:8px; padding:9px 10px; cursor:grab; display:flex; flex-direction:column; gap:4px; font-size:14px; }
.rs-karte:hover { border-color:#999; } .rs-karte.zieht { opacity:.4; } .rs-karte.prio1 { border-left:3px solid var(--rot); } .rs-karte .klein-text svg { vertical-align:-3px; }
.rs-karte-fuss { display:flex; flex-wrap:wrap; gap:6px; align-items:center; }
.rs-bestand { display:flex; flex-direction:column; align-items:flex-start; gap:2px; background:#fff; border:1px solid var(--linie); border-radius:10px; padding:14px 18px; margin:0 0 10px; }
.rs-bestand span:first-child { font-size:13px; color:#666; } .rs-bestand b { font-size:32px; }
.rs-buchen { display:grid; grid-template-columns:repeat(3, 1fr); gap:8px; margin-bottom:12px; } .rs-buchen button { min-height:52px; font-size:16px; }
.rs-arten { margin:0 0 12px; } 
.rs-anf { margin-bottom:10px; } .rs-anf .akte-kopf { gap:10px; flex-wrap:wrap; } .rs-anf h2 a { color:#111; }
.rs-pos { display:flex !important; gap:8px; align-items:baseline; padding:5px 0; border-top:1px solid #f3f3f3; margin:0; } .rs-pos .klein-text { margin-left:auto; white-space:nowrap; }
.rs-anf-zeile { display:flex; gap:10px; align-items:flex-start; padding:10px 0; border-top:1px solid #f0f0f0; } .rs-anf-zeile:first-child { border-top:none; } .rs-anf-zeile > div { flex:1; } .rs-anf-zeile ul { margin:6px 0 0; padding-left:20px; font-size:14px; }
.rs-pos-tab input { width:70px; } .rs-pos-tab td { vertical-align:middle; }
@media (max-width:900px) { .rs-board { grid-template-columns:repeat(4, 80vw); } }
.formular label.haken.breit { flex-direction:row !important; align-items:center; gap:8px; color:#111; font-size:14px; }

/* 4.00: Fotos an Geräten, Fahrzeugen, Schäden; Schaden melden; Lagerbilder; Nachkalkulation */
.rs-feldtitel { font-size:13px; color:var(--grau); margin-bottom:4px; }
.rs-fotos { display:flex; flex-wrap:wrap; gap:8px; }
.rs-foto, .rs-foto-neu { position:relative; width:72px; height:72px; border:1px solid var(--linie); border-radius:8px; background:#fff; overflow:hidden; flex:none; }
.rs-fotos.gross .rs-foto, .rs-fotos.gross .rs-foto-neu { width:96px; height:96px; }
.rs-foto img { width:100%; height:100%; object-fit:cover; cursor:zoom-in; display:block; }
.rs-foto.laedt { display:flex; align-items:center; justify-content:center; }
.rs-foto-weg { position:absolute; top:3px; right:3px; width:20px; height:20px; padding:0; border-radius:50%; border:none; background:rgba(0,0,0,.6); color:#fff; display:flex; align-items:center; justify-content:center; cursor:pointer; }
.rs-foto-neu { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px; border-style:dashed; color:var(--grau); font-size:12px; cursor:pointer; }
.rs-foto-neu:hover { border-color:#999; color:#333; }
.verweis + .rs-fotos { margin:4px 0 8px; }
.rs-karte-bild { width:100%; height:90px; object-fit:cover; border-radius:6px; margin-bottom:6px; display:block; }
.rs-melden-karte { max-width:620px; }
.rs-melden textarea { font-size:15px; }
.rs-bestand { flex-direction:row !important; align-items:center !important; gap:16px !important; }
.rs-bestand > div { display:flex; flex-direction:column; gap:2px; }
.rs-bestand-bild { width:84px; height:84px; object-fit:contain; border:1px solid var(--linie); border-radius:8px; background:#fff; cursor:zoom-in; flex:none; }

/* Nachkalkulation im Projektkopf */
.pa-uebersicht-karte.nk-an { max-height:62vh; display:flex; flex-direction:column; }
.nk { overflow:auto; margin-top:10px; min-height:0; }
.nk-hinweis { background:#fff8e1; border:1px solid #f0d58a; border-radius:8px; padding:8px 12px; font-size:13.5px; margin-bottom:6px; }
.nk-oben { display:grid; grid-template-columns:1fr 1fr; gap:6px; }
.nk-gesamt .pa-box-titel { margin-bottom:6px; }
.nk-diff { margin-left:auto; font-size:13px; font-weight:600; text-transform:none; letter-spacing:0; padding:2px 8px; border-radius:10px; background:#e8f5ec; color:var(--gruen); }
.nk-diff.minus { background:#fdecec; color:var(--ampelrot); }
.nk-gesamt-zeile { display:flex; align-items:center; gap:16px; justify-content:space-between; }
.nk-zahl { font-size:26px; font-weight:600; line-height:1.2; }
.nk-budget { font-size:15px; }
.nk-ring { --p:0; width:92px; height:92px; border-radius:50%; flex:none; display:flex; align-items:center; justify-content:center;
  background:conic-gradient(var(--gruen) calc(var(--p) * 1%), #ececec 0); }
.nk-ring.ueber { background:conic-gradient(var(--ampelrot) calc(var(--p) * 1%), #ececec 0); }
.nk-ring span { width:74px; height:74px; border-radius:50%; background:#fff; display:flex; align-items:center; justify-content:center; font-weight:600; font-size:17px; }
.nk-balken { display:grid; grid-template-columns:96px 1fr 90px; align-items:center; gap:10px; font-size:14px; padding:3px 0; }
.nk-spur { height:10px; background:#f2f2f2; border-radius:5px; overflow:hidden; }
.nk-spur i { display:block; height:100%; border-radius:5px; min-width:0; }
.nk-betrag { text-align:right; font-variant-numeric:tabular-nums; }
.nk-teile { display:grid; grid-template-columns:1fr; gap:6px; margin-top:6px; }
.nk-teile section { border:1px solid #ececec; border-radius:8px; padding:12px 14px; min-width:0; }
.nk-teile h3 { font-size:14px; margin:0 0 8px; display:flex; gap:8px; align-items:baseline; flex-wrap:wrap; }
.nk-teile .rs-tab { font-size:13px; }
@media (max-width:1100px) { .pa-uebersicht-karte.nk-an { max-height:none; } .nk-oben, .nk-teile { grid-template-columns:1fr; } }
/* Handy: Eingabefelder mit 16 px, sonst zoomt iOS beim Antippen hinein */
@media (max-width:700px) { input, select, textarea { font-size:16px !important; } }
/* Rückmeldung des Lagers an der Materialanforderung */
.rs-antwort { background:#f6f6f6; border-left:3px solid #999; border-radius:4px; padding:6px 10px; margin:4px 0 8px; font-size:14px; }
.rs-antwort.rot { background:#fdecec; border-left-color:var(--ampelrot); }

/* Eingangsrechnungen (4.01) */
.re-zahl { display:inline-block; min-width:18px; padding:0 5px; border-radius:9px; background:#111; color:#fff; font-size:11px; line-height:17px; text-align:center; margin-left:4px; }
.re-tabelle td { vertical-align:middle; }
.re-pruef { grid-template-columns:minmax(0, 6fr) minmax(0, 5fr); }
.re-rechts { display:flex; flex-direction:column; gap:12px; min-width:0; }
.re-titel { display:flex; align-items:center; gap:10px; margin-bottom:10px; } .re-titel h2 { margin:0; font-size:17px; } .re-titel > :last-child:not(h2) { margin-left:auto; }
/* E-Rechnung (28.10.2026): Ansicht der XRechnung im Rahmen, Marke, Prüfhinweise, weitere Angaben aus der XML */
.re-ansicht { display:block; width:100%; height:100%; border:0; background:#fff; }
.marke.re-emarke { background:#e4eefc; color:#1f4f99; }
.re-hinweise ul { margin:4px 0 0; padding-left:18px; } .re-hinweise li { margin:2px 0; }
.re-ewerte { margin-top:14px; font-size:13px; grid-template-columns:auto 1fr; }
.re-zeile { display:grid; grid-template-columns:minmax(0, 1fr) 130px 110px 30px; gap:6px; align-items:center; margin-bottom:6px; }
.re-zeile input { text-align:right; }
.re-zeile-text { grid-column:1 / -1; margin:-4px 0 4px 4px; }
.re-naechste { display:flex; align-items:center; justify-content:space-between; gap:10px; }
@media (max-width:700px) { .re-zeile { grid-template-columns:1fr 1fr 30px; } .re-zeile .feld-knopf { grid-column:1 / -1; } }

/* Google-Kalender (4.02) */
.gk-kalender { display:flex; flex-wrap:wrap; gap:6px 14px; margin:0 0 10px; }
.gk-kal { display:inline-flex; align-items:center; gap:6px; font-size:13.5px; cursor:pointer; color:#333; }
.gk-kal input { display:none; }
.gk-kal span { width:14px; height:14px; border-radius:4px; border:2px solid var(--f); background:var(--f); }
.gk-kal input:not(:checked) + span { background:#fff; }
.gk-chip { font-size:12px; padding:2px 6px; border-radius:4px; background:color-mix(in srgb, var(--f) 18%, #fff); border-left:3px solid var(--f); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; cursor:pointer; }
.gk-woche { padding:0; overflow:hidden; display:flex; flex-direction:column; height:calc(100vh - 230px); min-height:420px; }
.gk-kopfzeile, .gk-ganz, .gk-raster-innen { display:grid; }
.gk-kopfzeile { border-bottom:1px solid var(--linie); }
.gk-tagkopf { text-align:center; padding:6px 0; font-size:12px; color:var(--grau); display:flex; flex-direction:column; }
.gk-tagkopf b { font-size:18px; color:#111; font-weight:500; } .gk-tagkopf.heute b { color:var(--rot); }
.gk-ganz { border-bottom:1px solid var(--linie); min-height:26px; } .gk-ganz > div { padding:3px 2px; display:flex; flex-direction:column; gap:2px; min-width:0; border-left:1px solid #f0f0f0; }
.gk-ecke { font-size:11px; color:var(--grau); padding:6px 4px; }
.gk-raster { overflow-y:auto; flex:1; min-height:0; }
.gk-stunden > div { position:relative; } .gk-stunden span { position:absolute; top:-7px; right:6px; font-size:11px; color:var(--grau); }
.gk-spalte { position:relative; border-left:1px solid #f0f0f0; background-image:linear-gradient(#f0f0f0 1px, transparent 1px); }
.gk-spalte.we { background-color:#fbfbfb; } .gk-spalte.heute { background-color:#fffaf9; }
.gk-block { position:absolute; border-radius:6px; background:color-mix(in srgb, var(--f) 16%, #fff); border-left:3px solid var(--f); padding:2px 6px; font-size:12px; line-height:1.3; overflow:hidden; cursor:pointer; box-shadow:0 1px 2px rgba(0,0,0,.06); }
.gk-zeit { color:#555; font-size:11px; } .gk-titel { font-weight:500; } .gk-ort { color:#666; font-size:11px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.gk-monat .akal-tag { cursor:default; }
.gk-punkt { display:inline-block; width:9px; height:9px; border-radius:50%; background:var(--f); margin-right:5px; vertical-align:0; }
.gk-beschreibung { white-space:pre-wrap; font-size:14px; background:#f7f7f7; border-radius:6px; padding:8px 10px; max-height:260px; overflow:auto; }
.gk-anleitung { padding-left:20px; line-height:1.6; } .gk-anleitung li { margin-bottom:8px; }
@media (max-width:700px) { .gk-woche { height:calc(100vh - 260px); } .gk-tagkopf b { font-size:15px; } }
.akal.gk-monat { grid-auto-rows:auto; overflow:visible; } .gk-monat .akal-tag { min-height:96px; } .gk-monat .akal-wt { padding:6px; }
@media (max-width:700px) { .gk-kopf { flex-wrap:wrap; row-gap:8px; } .gk-kopf h2 { order:-1; flex:1 0 100%; font-size:16px; } }

/* Ablage-Vorlage, Freigabe für die Baustelle (4.03) */
.av-zeile { display:flex; align-items:center; gap:8px; padding:8px 12px; border-bottom:1px solid #f0f0f0; }
.av-zeile:last-child { border-bottom:none; } .av-zeile .ic, .av-zeile svg:first-child { width:18px; height:18px; color:#888; flex:none; }
.av-zeile b { font-weight:500; flex:1; min-width:0; }
.av-frei { display:inline-flex; align-items:center; gap:5px; font-size:13px; color:#555; cursor:pointer; } .av-frei.geerbt { color:#aaa; cursor:default; }
.ab-frei { margin-left:8px; font-weight:400; vertical-align:1px; }
.ab-hinweis { margin:0 0 8px; }

/* Nachkalkulation als eigene Ansicht (4.05): Dashboard oben, Teile unten als Reiter */
.pa-reiter-knoepfe { display:flex; align-items:center; gap:2px; min-width:0; overflow-x:auto; scrollbar-width:none; flex:1 1 auto; }
.pa-reiter-knoepfe::-webkit-scrollbar { display:none; }
.reiter-mehr { flex:none; display:inline-flex; align-items:center; gap:3px; background:none; border:none; border-bottom:2px solid transparent; border-radius:0; padding:8px 6px; margin-right:10px; font-size:15px; font-weight:600; color:#999; cursor:pointer; white-space:nowrap; }
.reiter-mehr[hidden] { display:none; } .reiter-mehr:hover { color:#555; } .reiter-mehr.an { color:#111; border-bottom-color:#111; }
.pa-reiter-knoepfe > button { background:none; border:none; border-bottom:2px solid transparent; border-radius:0; padding:8px 6px 8px; margin-right:10px; font-size:15px; font-weight:500; color:#6a6a6a; cursor:pointer; white-space:nowrap; flex:none; }
.pa-reiter-knoepfe > button.an { color:#131313; font-weight:600; border-bottom-color:#131313; }
.nk-reiter-zahl { font-weight:500; font-size:12px; color:#333; background:#e4e4e4; border-radius:999px; padding:1px 7px; margin-left:4px; }
.nk { margin-top:10px; overflow:visible; }
.nk-dash { display:grid; grid-template-columns:1.1fr 1.3fr 1fr; gap:6px; height:100%; }
.nk-dash > .pa-box { display:flex; flex-direction:column; }
.nk-d1 .nk-gesamt-zeile { flex:1; align-items:center; }
.nk-zahl { font-size:30px; font-weight:600; letter-spacing:-.5px; }
.nk-budget { font-size:14px; color:#555; }
.nk-ring { width:96px; height:96px; }
.nk-ring.knapp { background:conic-gradient(var(--gelb) calc(var(--p) * 1%), #ececec 0); }
.nk-stapel { display:flex; height:14px; border-radius:7px; overflow:hidden; gap:2px; background:#f2f2f2; margin:2px 0 12px; }
.nk-stapel i { display:block; min-width:4px; }
.nk-legende { display:grid; gap:5px; font-size:14px; }
.nk-legende > div { display:grid; grid-template-columns:12px 1fr auto 42px; align-items:center; gap:8px; } .nk-legende > div.nk-null { color:#aaa; }
.nk-legende b { font-weight:500; font-variant-numeric:tabular-nums; } .nk-legende .klein-text { text-align:right; }
.nk-punkt { width:10px; height:10px; border-radius:3px; display:inline-block; }
.nk-kennzahlen { display:grid; grid-template-columns:1fr 1fr; gap:10px 14px; }
.nk-kennzahlen div { display:flex; flex-direction:column; } .nk-kennzahlen b { font-size:20px; font-weight:600; line-height:1.2; } .nk-kennzahlen span { font-size:12.5px; color:var(--grau); }
.nk-hinweise { margin-top:auto; padding-top:10px; display:flex; flex-direction:column; gap:3px; } .nk-hinweise span { font-size:12.5px; color:#8a6100; }
.nk-hinweise span::before { content:''; display:inline-block; width:6px; height:6px; border-radius:50%; background:var(--gelb); margin-right:6px; vertical-align:1px; }
.nk-tab { font-size:14px; } .nk-tab tr.klick:hover td { background:#fafafa; }
@media (max-width:1100px) { .nk-dash { grid-template-columns:1fr; } }
.nk-legende > div { grid-template-columns:12px minmax(0, 1fr) 84px 40px; }
.nk-legende > div > span:nth-child(2) { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.nk-legende { align-content:start; }
.nk { display:grid; } /* Boxen füllen die Höhe der Übersicht */
.nk-legende > div { grid-template-columns:10px minmax(0, 1fr) 70px 32px; gap:6px; }

/* Ablage-Vorlage wie plancraft (4.07) */
.av-karte { max-width:900px; padding:0; }
.av-kopf { display:flex; align-items:center; gap:10px; padding:14px 18px; border-bottom:1px solid var(--linie); }
.av-kopf h2 { margin:0; font-size:17px; } .av-kopf .primaer { margin-left:auto; } .av-kopf > svg { color:#444; }
.av-liste .av-zeile { display:flex; align-items:center; gap:8px; padding:11px 18px 11px calc(10px + var(--tiefe) * 32px); border-bottom:1px solid #f0f0f0; min-height:50px; }
.av-liste .av-zeile.unter { border-bottom-color:transparent; }
.av-liste .av-zeile:last-child { border-bottom:none; }
.av-auf, .av-auf-platz { width:26px; height:26px; flex:none; }
.av-auf { border:none; background:none; padding:0; display:flex; align-items:center; justify-content:center; color:#333; cursor:pointer; border-radius:5px; }
.av-auf:hover { background:var(--hell); } .av-auf.zu svg { transform:rotate(-90deg); }
.av-liste .av-zeile > svg { width:18px; height:18px; color:#333; flex:none; }
.av-name { flex:1; min-width:0; font-size:15px; }
.av-frei { display:inline-flex; align-items:center; gap:5px; border:none; border-radius:16px; padding:5px 12px; font-size:13px; font-weight:500; background:transparent; color:#bbb; visibility:hidden; }
.av-zeile:hover .av-frei, .av-frei.an { visibility:visible; } .av-frei:hover { background:var(--hell); color:#555; }
.av-frei.an { background:#ececec; color:#444; } .av-frei.an.geerbt { background:#f5f5f5; color:#999; cursor:default; }
.av-info { max-width:900px; display:flex; gap:10px; align-items:flex-start; margin-top:14px; padding:11px 14px; border:1px solid var(--linie); border-radius:8px; background:#fafafa; font-size:14px; color:#444; }
.av-info svg { flex:none; margin-top:1px; color:#666; }
@media (hover:none) { .av-frei { visibility:visible; } }
/* Sprachnachricht wie WhatsApp (gleich wie in der Handy-App): Profilbild außen, beim Abspielen Tempo-Knopf, Kurve mittig, darunter Dauer links und Uhrzeit rechts */
.ch-sprache .sprache { width:254px; max-width:100%; display:flex; align-items:center; gap:10px; padding:2px 0; }
.sp-block { flex:1; min-width:0; } .sp-reihe { display:flex; align-items:center; gap:6px; }
.sp-play { width:32px; height:32px; flex:none; border-radius:50%; border:none; background:none; color:#555; display:flex; align-items:center; justify-content:center; padding:0; cursor:pointer; }
.sp-play .ic, .sp-play svg { width:26px; height:26px; }
.sp-play svg:last-child, .sprache.spielt .sp-play svg:first-child { display:none; } .sprache.spielt .sp-play svg:last-child { display:block; }
.sp-mitte { flex:1; min-width:0; }
.sp-welle { display:flex; align-items:center; gap:2px; height:28px; cursor:pointer; }
.sp-welle i { flex:1; min-height:3px; border-radius:2px; background:#c4c4c4; } .sp-welle i.an { background:var(--rot, #e40000); }
.sp-fuss { display:flex; justify-content:space-between; align-items:center; gap:6px; margin-top:-3px; padding-left:38px; font-size:11.5px; line-height:1.2; color:#888; font-variant-numeric:tabular-nums; } .sp-uhr { display:inline-flex; align-items:center; gap:4px; }
.sp-seite { position:relative; width:38px; height:38px; flex:none; display:flex; align-items:center; justify-content:center; }
.sp-seite .sp-av { width:38px !important; height:38px !important; border-radius:50%; font-size:13px; display:flex; align-items:center; justify-content:center; object-fit:cover; }
.sp-mikro { position:absolute; right:-3px; bottom:-2px; width:16px; height:16px; border-radius:50%; background:#fff; color:#e40000; display:flex; align-items:center; justify-content:center; box-shadow:0 1px 2px rgba(0,0,0,.2); }
.sp-mikro svg { width:10px; height:10px; }
.sp-tempo { display:none; border:none; background:rgba(0,0,0,.55); color:#fff; border-radius:13px; font-size:12px; font-weight:600; padding:4px 8px; cursor:pointer; }
.sprache.spielt .sp-seite .sp-av, .sprache.spielt .sp-mikro { display:none; } .sprache.spielt .sp-tempo { display:block; }

/* Zeiterfassung (4.09) */
.zt-summen { display:flex; gap:44px; align-items:flex-end; padding:16px 22px; margin-bottom:14px; flex-wrap:wrap; }
.zt-summen > div { display:flex; flex-direction:column; gap:2px; } .zt-summen span { font-size:13.5px; color:var(--grau); } .zt-summen b { font-size:20px; font-weight:600; }
.zt-spanne { margin-left:auto; }
.zt-art { display:inline-flex; align-items:center; gap:6px; white-space:nowrap; } .zt-art svg { color:#555; flex:none; }
.zt-tabelle td { vertical-align:top; } .zt-text { max-width:260px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.zt-projekt { color:inherit; text-decoration:underline; text-underline-offset:2px; }
.zt-reiter { padding:0 20px; border-bottom:1px solid #e6e6e6; min-height:auto; }
.zt-zeile { display:grid; grid-template-columns:1fr 1fr auto; gap:10px; align-items:end; }
.zt-zeile:has(> label:nth-child(2):last-child) { grid-template-columns:1fr 1fr; }
.zt-dauer { padding-bottom:9px; font-size:15px; white-space:nowrap; min-width:72px; }
.zt-verlauf { padding:10px 0; border-bottom:1px solid #f0f0f0; display:flex; flex-direction:column; gap:2px; } .zt-verlauf ul { margin:4px 0 0; padding-left:18px; font-size:14px; }
#zt-historie { padding:4px 2px; }
.pa-stunden-balken { height:8px; border-radius:4px; background:#ececec; overflow:hidden; margin:6px 0 4px; } .pa-stunden-balken i { display:block; height:100%; background:var(--gruen); border-radius:4px; }
.pa-stunden-balken.ueber i { background:var(--ampelrot); }
.kd-knopf { display:inline-flex; align-items:center; gap:6px; padding:6px 10px; font-size:14px; border-color:var(--linie); }
.kd-zahl { background:#111; color:#fff; border-radius:9px; font-size:11px; min-width:18px; line-height:18px; text-align:center; padding:0 5px; }
.kd-liste { width:420px; max-height:70vh; overflow:auto; padding:0; }
.kd-titel { padding:10px 14px; font-weight:600; font-size:14px; border-bottom:1px solid var(--linie); }
.kd-zeile { display:flex; align-items:center; gap:10px; padding:9px 14px; border-bottom:1px solid #f2f2f2; cursor:pointer; } .kd-zeile:hover { background:#fafafa; }
.kd-zeile > span:nth-child(2) { flex:1; min-width:0; display:flex; flex-direction:column; } .kd-betrag { font-variant-numeric:tabular-nums; white-space:nowrap; }
.kd-fuss { display:flex; justify-content:flex-end; gap:8px; padding:10px 14px; }
.nk-legende.mit-soll > div { grid-template-columns:10px minmax(0, 1fr) 66px 30px 62px; } .nk-soll { text-align:right; }
.nk-legende.mit-soll > div { grid-template-columns:10px minmax(0, 1fr) 62px 62px; }
.nk-legende-kopf { font-size:11px; color:var(--grau); text-transform:uppercase; letter-spacing:.3px; } .nk-legende-kopf span { text-align:right; }

/* 4.11: Chat-Eingabe gehört sichtbar zum Chat (weiß mit Trennlinie statt grau wie der Hintergrund) */
.pa-chat .ch-unten, .cl-verlauf .ch-unten { background:#fff; border-top:1px solid var(--linie); }

/* 4.11: Projektkopf kompakter (Dom: mehr Platz für Ablage, Dokumente …) – Kästen niedriger, Schrift kleiner, Knöpfe in der Titelzeile */
.pa-uebersicht { margin-top:8px; gap:6px; }
.pa-box { padding:8px 12px; font-size:13.5px; line-height:1.4; }
.pa-box-titel { font-size:11.5px; margin-bottom:4px; gap:6px; } .pa-box-titel svg { width:14px; height:14px; }
.pa-box-rechts { margin-left:auto; display:flex; align-items:center; text-transform:none; letter-spacing:0; }
.pa-box-rechts .icon-knopf.klein { width:24px; height:24px; padding:0; border:none; } .pa-box-rechts .link { font-size:12.5px; }
.pa-gross, button.pa-link { font-size:16px; }
.pa-text { max-height:62px; } .pa-keine { min-height:0; }
.pa-tag { top:auto; bottom:8px; }
.pa-bet-box { margin-top:4px; padding-top:4px; } .pa-bet-box[hidden] { display:none; }
.pa-uebersicht .g5 .pa-text, .pa-uebersicht .g5 .pa-keine { font-size:13.5px; }
.pa-box.klick { cursor:pointer; } .pa-box.klick:hover { border-color:#cfcfcf; background:#fcfcfc; }
.pa-stunden-balken { height:6px; margin:4px 0 2px; }
/* Nachkalkulation im gleichen kompakten Maß */
.nk { margin-top:8px; }
.nk-zahl { font-size:22px; } .nk-budget { font-size:12.5px; }
.nk-ring { width:64px; height:64px; } .nk-ring span { width:50px; height:50px; font-size:13px; }
.nk-stapel { height:8px; margin:0 0 6px; } .nk-legende { gap:1px; font-size:12.5px; } .nk-legende-kopf { font-size:10px; }
.nk-kennzahlen { gap:4px 10px; } .nk-kennzahlen b { font-size:15px; } .nk-kennzahlen span { font-size:11.5px; }
.nk-hinweise { padding-top:4px; } .nk-hinweise span { font-size:11.5px; }
.nk-dash .pa-box-titel { margin-bottom:4px; }

/* Zeitraum wählen (Kalender wie plancraft) */
.zr-panel { padding:0; width:auto; max-width:calc(100vw - 16px); }
.zr-oben { display:flex; }
.zr-schnell { display:flex; flex-direction:column; padding:10px 6px; border-right:1px solid var(--linie); min-width:190px; }
.zr-schnell button { display:flex; align-items:center; gap:8px; border:none; background:none; padding:8px 12px; font-size:14.5px; text-align:left; border-radius:6px; font-weight:400; }
.zr-schnell button:hover { background:var(--hell); } .zr-schnell button.an { font-weight:500; } .zr-schnell button svg { color:var(--gruen); } .zr-schnell i { width:14px; display:inline-block; }
.zr-kalender { position:relative; display:flex; gap:22px; padding:14px 46px 12px; }
.zr-pfeil { position:absolute; top:10px; } .zr-pfeil.l { left:8px; } .zr-pfeil.r { right:8px; }
.zr-mname { text-align:center; font-weight:600; font-size:15px; margin:4px 0 10px; }
.zr-raster { display:grid; grid-template-columns:26px repeat(7, 36px); row-gap:3px; align-items:center; }
.zr-wt { font-size:12px; color:var(--grau); text-align:center; font-weight:500; } .zr-kw { font-size:11.5px; color:#aaa; text-align:center; border-right:1px solid #eee; }
.zr-tag { height:34px; border:none; background:none; padding:0; font-size:14px; font-weight:400; border-radius:0; }
.zr-tag:hover { background:var(--hell); } .zr-tag.heute { color:var(--rot); font-weight:600; }
.zr-tag.drin { background:#f0f0f0; } .zr-tag.start, .zr-tag.ende { background:#111; color:#fff; border-radius:6px; }
.zr-fuss { display:flex; align-items:center; gap:8px; padding:10px 14px; border-top:1px solid var(--linie); } .zr-fuss .rechts { margin-left:auto; }
.zr-zurueck { display:inline-flex; align-items:center; gap:6px; }
@media (max-width:820px) { .zr-oben { flex-direction:column; } .zr-schnell { border-right:none; border-bottom:1px solid var(--linie); flex-direction:row; flex-wrap:wrap; } .zr-kalender > .zr-monat:nth-of-type(3) { display:none; } }

/* 4.14: Projektkopf wieder „normal“ wie plancraft (4.11 war zu gedrückt) */
.pa-box { padding:14px 16px; font-size:15px; line-height:1.5; min-height:118px; box-sizing:border-box; }
.pa-box-titel { font-size:12.5px; margin-bottom:10px; gap:8px; } .pa-box-titel svg { width:17px; height:17px; }
.pa-gross, button.pa-link { font-size:17px; }
.pa-text { max-height:150px; }
.pa-adresse { color:#111; text-decoration:none; } .pa-adresse:hover { text-decoration:underline; }
.pa-tag { top:50%; bottom:auto; }
.pa-stunden-zeile { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.pa-wert { font-size:19px; } .pa-wert u { text-underline-offset:4px; text-decoration-thickness:1px; } .pa-unterwert { font-size:15px; margin-top:2px; }
.pa-ring { --p:0; width:78px; height:78px; border-radius:50%; flex:none; display:flex; align-items:center; justify-content:center; background:conic-gradient(var(--gruen) calc(var(--p) * 1%), #ececec 0); }
.pa-ring.ueber { background:conic-gradient(var(--ampelrot) calc(var(--p) * 1%), #ececec 0); }
.pa-ring span { width:66px; height:66px; border-radius:50%; background:#fff; display:flex; align-items:center; justify-content:center; font-size:14px; }
.pa-plan-ic { color:#333; display:flex; }
.pp-kopf { display:flex; align-items:center; justify-content:space-between; margin:14px 0 6px; } .pp-kopf h3 { margin:0; font-size:15px; } .pp-kopf:first-child { margin-top:0; }
.pp-zeile { display:flex; align-items:center; gap:10px; padding:9px 4px; border-bottom:1px solid #f0f0f0; cursor:pointer; } .pp-zeile:hover { background:#fafafa; }
.pp-zeile b { font-weight:500; min-width:0; } .pp-zeile span { margin-left:auto; color:#555; font-size:14px; white-space:nowrap; }
/* Nachkalkulation: wieder normale Größen */
.nk-zahl { font-size:26px; } .nk-budget { font-size:14px; } .nk-ring { width:84px; height:84px; } .nk-ring span { width:68px; height:68px; font-size:15px; }
.nk-stapel { height:10px; margin:2px 0 8px; } .nk-legende { gap:3px; font-size:13.5px; } .nk-kennzahlen { gap:8px 12px; } .nk-kennzahlen b { font-size:18px; } .nk-kennzahlen span { font-size:12.5px; }
/* Filterlisten: jede Zeile einzeilig (Dom), breite Liste für Projekte; „Kein Projekt“ abgesetzt */
.filter-panel .fp-eintrag > span:last-child { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; min-width:0; }
.filter-panel .fp-eintrag { min-width:0; } .filter-panel.breit { width:380px; max-width:calc(100vw - 16px); }
.filter-panel.breit .fp-eintrag[data-w="-"] { border-bottom:1px solid var(--linie); }

/* 4.14 Kalender wie Notion/Google: links Monat + Kalender, rechts Woche (0–24 Uhr) */
main.ka-seite { padding-bottom:0; }
.ka { display:flex; gap:0; flex:1 1 auto; min-height:0; margin:-4px 0 0; }
.ka-links { width:236px; flex:none; padding:4px 18px 16px 0; border-right:1px solid var(--linie); display:flex; flex-direction:column; min-height:0; overflow:hidden; }
.ka-links > .ka-leistenkopf, .ka-links > .ka-mini { flex:none; } .ka-links > .ka-unten { flex:1 1 auto; min-height:0; overflow-y:auto; } /* Monatsblock bleibt stehen, nur darunter scrollt (Dom 27.10.2026) */
.ka-neu { width:100%; display:flex; align-items:center; justify-content:center; gap:6px; margin-bottom:16px; }
.ka-mini-kopf { display:flex; align-items:center; justify-content:space-between; margin-bottom:4px; } .ka-mini-kopf b { font-size:14px; font-weight:600; }
.ka-mini-kopf .icon-knopf { width:26px; height:26px; }
.ka-mini-raster { display:grid; grid-template-columns:repeat(7, 1fr); gap:1px; }
.ka-mini-raster span { font-size:11px; color:var(--grau); text-align:center; padding:3px 0; }
.ka-mini-raster button { border:none; background:none; padding:0; height:28px; font-size:12px; font-weight:400; border-radius:50%; color:var(--schwarz); }
.ka-mini-raster button:hover { background:#f2f2f2; } .ka-mini-raster button.fremd { color:#bbb; }
.ka-mini-raster button.im { background:#f3f3f3; border-radius:0; } .ka-mini-raster button.heute { background:var(--rot); color:#fff; font-weight:600; border-radius:50%; }
.ka-mini-raster button.gewaehlt:not(.heute) { box-shadow:inset 0 0 0 1px var(--schwarz); border-radius:50%; }
.ka-gruppe { margin-top:20px; } .ka-gruppe-kopf { font-size:12px; font-weight:600; color:var(--grau); text-transform:uppercase; letter-spacing:.5px; margin-bottom:6px; display:flex; flex-direction:column; gap:1px; }
.ka-gruppe-kopf span { text-transform:none; letter-spacing:0; font-weight:400; font-size:12px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ka-kal { display:flex; align-items:center; gap:8px; padding:4px 2px; font-size:14px; cursor:pointer; border-radius:6px; } .ka-kal:hover { background:#f6f6f6; }
.ka-kal input { position:absolute; opacity:0; pointer-events:none; }
.ka-box { width:15px; height:15px; border-radius:4px; border:2px solid var(--f); flex:none; position:relative; }
.ka-kal input:checked + .ka-box { background:var(--f); } .ka-kal input:checked + .ka-box::after { content:''; position:absolute; left:3px; top:0; width:4px; height:8px; border:solid #fff; border-width:0 2px 2px 0; transform:rotate(45deg); }
.ka-kal input:focus-visible + .ka-box { outline:2px solid var(--schwarz); outline-offset:2px; }
.ka-kal-name { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ka-hinweis { font-size:13px; color:var(--grau); margin:4px 0 8px; line-height:1.4; }
.ka-haupt { flex:1 1 auto; min-width:0; display:flex; flex-direction:column; padding-left:18px; }
.ka-laden { padding:40px; color:var(--grau); }
.ka-kopf { display:flex; align-items:center; gap:6px; margin:0 0 10px; flex:none; }
.ka-kopf h1 { margin:0 0 0 8px; font-size:20px; font-weight:600; white-space:nowrap; } .ka-kopf h1 .klein-text { font-weight:400; margin-left:6px; font-size:14px; }
.ka-kopf .kal-art { margin-left:auto; }
.ka-woche { flex:1 1 auto; min-height:0; display:flex; flex-direction:column; border:1px solid var(--linie); border-radius:10px; background:#fff; overflow:hidden; }
.ka-kopfzeile, .ka-ganzzeile { display:grid; overflow-y:hidden; scrollbar-gutter:stable; flex:none; }
.ka-ganzzeile { border-bottom:1px solid var(--linie); }
.ka-tagkopf { text-align:center; padding:6px 0 4px; border-left:1px solid var(--linie); }
.ka-tagkopf span { display:block; font-size:12px; color:var(--grau); text-transform:uppercase; letter-spacing:.4px; }
.ka-tagkopf button { border:none; background:none; font-size:20px; font-weight:500; width:36px; height:36px; border-radius:50%; padding:0; color:var(--schwarz); }
.ka-tagkopf button:hover { background:#f2f2f2; } .ka-tagkopf.heute button { background:var(--rot); color:#fff; } .ka-tagkopf.heute span { color:var(--rot); }
.ka-ecke { font-size:11px; color:var(--grau); text-align:right; padding:5px 6px 0 0; }
.ka-ganz { display:grid; row-gap:2px; padding:2px 0 4px; max-height:120px; overflow-y:auto; min-height:28px; }
.ka-ganz-zelle { border-left:1px solid var(--linie); cursor:copy; position:relative; } .ka-ganz-zelle.heute { background:#fffafa; }
.ka-balken, .ka-chip { position:relative; z-index:1; margin:0 3px; font-size:12px; line-height:20px; height:20px; padding:0 7px; border-radius:5px; background:var(--f); color:#fff; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; cursor:pointer; }
.ka-balken.ziehbar, .ka-chip.ziehbar { cursor:grab; } .ka-balken.erledigt, .ka-chip.erledigt, .ka-block.erledigt { opacity:.5; text-decoration:line-through; }
.ka-balken.abschnitt, .ka-chip.abschnitt { background:color-mix(in srgb, var(--f) 18%, #fff); color:#222; border-left:3px solid var(--f); }
.ka-scroll { flex:1 1 auto; min-height:0; overflow-y:auto; scrollbar-gutter:stable; position:relative; }
.ka-raster { display:grid; }
.ka-stunden div { position:relative; font-size:11px; color:var(--grau); text-align:right; padding-right:8px; } .ka-stunden span { position:relative; top:-7px; }
.ka-spalte { position:relative; border-left:1px solid var(--linie); background-image:linear-gradient(to bottom, var(--linie) 1px, transparent 1px); cursor:copy; touch-action:none; }
.ka-spalte.we { background-color:#fcfcfc; } .ka-spalte.heute { background-color:#fffafa; }
.ka-block { position:absolute; border-radius:6px; background:color-mix(in srgb, var(--f) 16%, #fff); border-left:3px solid var(--f); padding:2px 6px; font-size:12px; line-height:1.3; overflow:hidden; cursor:pointer; color:#1f1f1f; touch-action:none; box-shadow:0 0 0 1px #fff; }
.ka-block.ziehbar:not(.fest) { cursor:grab; } .ka-block:hover { background:color-mix(in srgb, var(--f) 24%, #fff); }
.ka-b-titel { font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; } .ka-b-zeit, .ka-b-unter { color:#555; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ka-haken { display:inline-block; width:10px; height:10px; border:1.5px solid currentColor; border-radius:3px; margin-right:5px; vertical-align:-1px; opacity:.8; }
.ka-griff { position:absolute; left:0; right:0; bottom:0; height:7px; cursor:ns-resize; }
.ka-block.zieht, .ka-balken.zieht, .ka-chip.zieht { opacity:.35; }
.ka-geist { position:absolute; left:2px; right:2px; border:2px dashed var(--rot); background:rgba(228,0,0,.06); border-radius:6px; font-size:11px; padding:1px 6px; pointer-events:none; color:var(--rot); overflow:hidden; white-space:nowrap; z-index:4; }
.ka-ganz-zelle .ka-geist, .ka-m-tag .ka-geist { position:relative; inset:auto; margin:2px; height:18px; display:block; }
.ka-monat { flex:1 1 auto; min-height:0; display:flex; flex-direction:column; border:1px solid var(--linie); border-radius:10px; overflow:hidden; background:#fff; }
.ka-m-wt { display:grid; grid-template-columns:repeat(7, minmax(0, 1fr)); border-bottom:1px solid var(--linie); } .ka-m-wt div { font-size:12px; color:var(--grau); text-transform:uppercase; padding:6px 8px; }
.ka-m-raster { flex:1 1 auto; display:grid; grid-template-columns:repeat(7, minmax(0, 1fr)); grid-template-rows:repeat(6, minmax(0, 1fr)); min-height:0; overflow-y:auto; }
.ka-m-tag { border-right:1px solid var(--linie); border-bottom:1px solid var(--linie); padding:3px 2px; display:flex; flex-direction:column; gap:2px; min-width:0; min-height:96px; cursor:copy; }
.ka-m-tag.fremd { background:#fafafa; } .ka-m-tag.fremd .ka-m-nr { color:#bbb; }
.ka-m-nr { align-self:flex-start; border:none; background:none; font-size:13px; padding:2px 6px; border-radius:12px; color:#444; font-weight:400; } .ka-m-nr:hover { background:#f2f2f2; }
.ka-m-tag.heute .ka-m-nr { background:var(--rot); color:#fff; font-weight:600; }
.ka-chip:not(.ganz) { background:none; color:#1f1f1f; padding-left:16px; } .ka-chip:not(.ganz)::before { content:''; position:absolute; left:5px; top:6px; width:7px; height:7px; border-radius:50%; background:var(--f); }
.ka-chip:not(.ganz):hover { background:#f2f2f2; } .ka-chip b { font-weight:500; color:#555; }
.ka-mehr { font-size:12px; align-self:flex-start; padding:0 6px; }
.ka-dialog { width:min(540px, calc(100vw - 32px)); }
.ka-form-kopf { display:flex; align-items:center; gap:8px; } .ka-titel { flex:1; font-size:20px; font-weight:600; border:none; border-bottom:1px solid var(--linie); border-radius:0; padding:6px 2px; }
.ka-titel:focus { outline:none; border-bottom-color:var(--schwarz); }
.ka-wo { display:flex; align-items:center; gap:6px; margin:0; } .ka-wo .gk-punkt { background:var(--f); }
.ka-zeitzeile { display:flex; align-items:flex-end; gap:8px; flex-wrap:wrap; } .ka-zeitzeile label { margin:0; } .ka-uhr input { width:78px; text-align:center; }
.ka-strich { padding-bottom:9px; color:var(--grau); }
@media (max-width: 900px) { .ka-links { display:none; } .ka-haupt { padding-left:0; } .ka-kopf h1 { font-size:16px; } }
#pp-inhalt { gap:0; } #pp-inhalt > div.pp-kopf, #pp-inhalt > div.pp-zeile { flex-direction:row; gap:10px; } #pp-inhalt > div.pp-kopf { justify-content:space-between; }
/* 4.16 Zeiten: Projekt-Feld so hoch wie die anderen Felder */
#zt-projekt { flex:none; height:38px; min-height:38px; display:flex; align-items:center; gap:6px; }
#zt-projekt b { font-weight:600; flex:none; }
/* 4.16 Kalender: flüssig seitlich scrollen (Kopf oben, Stunden links fest), Kalenderzeilen wie Notion (Auge, ⋮, Farbe) */
.ka-woche { display:flex; flex-direction:column; }
.ka-woche .ka-scroll { flex:1 1 auto; min-height:0; overflow:auto; scrollbar-gutter:auto; overscroll-behavior-x:contain; }
.ka-oben { position:sticky; top:0; z-index:6; background:#fff; }
.ka-woche .ka-kopfzeile, .ka-woche .ka-ganzzeile { overflow:visible; scrollbar-gutter:auto; }
.ka-fest { position:sticky; left:0; z-index:5; background:#fff; }
.ka-stunden.ka-fest { z-index:3; border-right:1px solid var(--linie); }
.ka-woche .ka-ganz { overflow-x:hidden; }
.ka-spalte .ka-geist { z-index:2; } .ka-block { z-index:1; }
.ka-kal { display:grid; grid-template-columns:12px minmax(0, 1fr) 26px 26px; align-items:center; gap:8px; padding:2px 2px 2px 4px; cursor:default; }
.ka-punkt { width:10px; height:10px; border-radius:3px; background:var(--f); }
.ka-kal-name { cursor:pointer; }
.ka-kal .icon-knopf { width:26px; height:26px; opacity:0; transition:opacity .1s; } .ka-kal .icon-knopf svg { width:15px; height:15px; }
.ka-kal:hover .icon-knopf, .ka-kal .icon-knopf:focus-visible, .ka-kal.aus .ka-auge { opacity:1; }
.ka-kal.aus .ka-punkt, .ka-kal.aus .ka-kal-name { opacity:.4; } .ka-kal.aus .ka-auge { color:var(--grau); }
.ka-farbwahl { position:fixed; z-index:200; background:#fff; border:1px solid #e3e3e3; border-radius:10px; box-shadow:0 10px 30px rgba(0,0,0,.14); padding:10px; width:200px; display:grid; grid-template-columns:repeat(6, 1fr); gap:6px; }
.ka-farbwahl button { width:24px; height:24px; border-radius:50%; border:none; padding:0; background:var(--f); }
.ka-farbwahl button.an { box-shadow:0 0 0 2px #fff, 0 0 0 4px var(--f); }
.ka-farbwahl .ka-farb-standard { grid-column:1 / -1; width:auto; height:auto; border-radius:6px; background:none; font-size:13px; font-weight:400; padding:5px; text-align:left; } .ka-farbwahl .ka-farb-standard:hover { background:#f2f2f2; }
.ka-ort { display:flex; gap:6px; align-items:center; } .ka-ort input { flex:1; min-width:0; } .ka-ort .icon-knopf[hidden] { display:none; }
/* 4.18 Kalenderliste wie Notion: Farbfeld, Name, rechts ⋯ (beim Drüberfahren) und Auge ohne Rahmen */
.ka-gruppe-kopf { text-transform:none; letter-spacing:0; font-size:13px; font-weight:500; color:var(--grau); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; display:block; }
.ka-kal { grid-template-columns:18px minmax(0, 1fr) auto auto; gap:8px; padding:3px 4px; border-radius:6px; }
.ka-kal:hover { background:#f4f4f4; }
.ka-punkt { width:16px; height:16px; border-radius:4px; border:none; padding:0; background:var(--f); cursor:pointer; }
.ka-kal.haupt .ka-punkt { box-shadow:0 0 0 2px #fff, 0 0 0 3px var(--f); width:14px; height:14px; margin:1px; }
.ka-kal-name { font-size:14px; cursor:default; } .ka-kal-name i { font-style:normal; color:#aaa; margin-left:4px; font-size:13px; }
.ka-knopf { border:none; background:none; padding:3px; width:26px; height:26px; border-radius:6px; display:inline-flex; align-items:center; justify-content:center; color:#777; font-weight:400; cursor:pointer; }
.ka-knopf:hover { background:#e9e9e9; color:var(--schwarz); }
.ka-kal .ka-knopf { opacity:0; } .ka-kal:hover .ka-knopf, .ka-kal .ka-knopf:focus-visible { opacity:1; }
.ka-kal.aus .ka-auge { opacity:1; color:#999; } .ka-kal.aus .ka-punkt { opacity:.35; } .ka-kal.aus .ka-kal-name { opacity:.45; }

/* 4.18 Termin-Karte wie Notion: schwebt neben dem Termin, Zeilen mit Symbol, Felder ohne Rahmen */
.ka-karte { position:fixed; z-index:150; width:400px; max-width:calc(100vw - 24px); max-height:calc(100vh - 24px); overflow-y:auto; background:#fff; border:1px solid #e3e3e3; border-radius:14px; box-shadow:0 16px 40px rgba(0,0,0,.16); }
.kk-kopf { display:flex; align-items:center; gap:4px; padding:12px 12px 4px 20px; } .kk-kopf .rechts { flex:1; }
.kk-art { font-size:14px; color:var(--grau); }
.kk-titel { width:100%; border:none; font-size:20px; font-weight:600; padding:6px 20px 12px; outline:none; border-bottom:1px solid #eee; border-radius:0; }
.kk-zeile { display:grid; grid-template-columns:22px minmax(0, 1fr); gap:12px; padding:12px 20px; border-bottom:1px solid #f0f0f0; align-items:start; }
.kk-zeile[hidden] { display:none; }
.kk-ic { color:#999; display:flex; align-items:center; justify-content:center; height:30px; }
.kk-inhalt { min-width:0; display:flex; flex-direction:column; gap:6px; }
.kk-feld { border:none; background:none; padding:4px 6px; margin-left:-6px; font-size:15px; border-radius:6px; min-height:30px; width:100%; font-family:inherit; color:var(--schwarz); }
.kk-feld:hover { background:#f5f5f5; } .kk-feld:focus { background:#f2f2f2; outline:none; }
.kk-feld::placeholder { color:#aaa; }
select.kk-feld { width:auto; cursor:pointer; appearance:none; -webkit-appearance:none; padding-right:6px; }
.kk-zeit, .kk-datum { display:flex; align-items:center; gap:6px; } .kk-zeit[hidden] { display:none; }
.kk-uhr { width:64px; flex:none; font-size:16px; } .kk-datum .kk-feld { width:auto; flex:none; } .kk-datum [data-bistag] { display:inline-flex; align-items:center; gap:6px; } .kk-datum [data-bistag][hidden] { display:none; }
.kk-pfeil { color:#aaa; } .kk-dauer { color:var(--grau); font-size:14px; margin-left:4px; white-space:nowrap; }
.kk-optionen { display:flex; align-items:center; gap:14px; flex-wrap:wrap; color:var(--grau); font-size:14px; }
.kk-schalter { display:inline-flex; align-items:center; gap:6px; cursor:pointer; margin:0; font-size:14px; color:var(--grau); }
.kk-schalter input { width:15px; height:15px; margin:0; accent-color:var(--rot); }
.kk-wdh { display:inline-flex; align-items:center; gap:2px; margin:0; color:var(--grau); } .kk-wdh .kk-feld { font-size:14px; color:var(--grau); } .kk-wdh[hidden] { display:none; }
.kk-leise { font-size:13px; color:#999; }
.kk-mit { display:flex; align-items:center; gap:4px; } .kk-mit .ka-knopf[hidden] { display:none; }
.kk-text { resize:none; min-height:30px; line-height:1.45; }
.kk-hinweis { font-size:12px; color:var(--grau); }
.kk-kal { border-bottom:none; align-items:center; } .kk-farbe { width:14px; height:14px; border-radius:4px; display:block; }
.kk-kal .kk-inhalt { font-size:15px; }
.kk-fuss { display:flex; justify-content:flex-end; gap:8px; padding:6px 16px 16px; }
.ka-karte input.kk-feld, .ka-karte select.kk-feld, .ka-karte textarea.kk-feld { border:none; box-shadow:none; background-color:transparent; height:auto; }
.ka-karte input.kk-feld:hover, .ka-karte select.kk-feld:hover, .ka-karte textarea.kk-feld:hover { background-color:#f5f5f5; }
.ka-karte input.kk-feld:focus, .ka-karte select.kk-feld:focus, .ka-karte textarea.kk-feld:focus { background-color:#f0f0f0; box-shadow:none; }
.ka-karte input.kk-titel { border:none; border-bottom:1px solid #eee; box-shadow:none; height:auto; }
.ka-links { width:264px; }
.ka-karte .datumsfeld { width:auto; flex:none; } .ka-karte .datumsfeld input { border:none; box-shadow:none; background:none; width:112px; padding:4px 6px; font-size:15px; height:auto; border-radius:6px; }
.ka-karte .datumsfeld input:hover { background:#f5f5f5; } .ka-karte .datumsfeld input:focus { background:#f0f0f0; box-shadow:none; }
.ka-karte .datumsfeld .dp-knopf { opacity:0; } .ka-karte .datumsfeld:hover .dp-knopf { opacity:1; }
.ka-karte .auswahl { width:auto; } .ka-karte .auswahl-knopf { border:none; box-shadow:none; background:none; min-height:30px; padding:4px 6px; font-size:15px; gap:6px; }
.ka-karte .auswahl-knopf:hover { background:#f5f5f5; } .ka-karte .kk-wdh .auswahl-knopf { font-size:14px; color:var(--grau); }
.ka-karte .kk-kal .auswahl-knopf { margin-left:-6px; }
.ka-karte { z-index:50; } /* Auswahllisten (z-index 60) liegen darüber */
.ka-karte input.kk-titel:focus { outline:none; box-shadow:none; border-bottom-color:#ddd; }
/* 4.20 Kalender ruhiger (Dom: Farben zu grell): helle Fläche, Farbe nur als Kante; ausgewählter Termin mit Rahmen */
.ka-block { background:color-mix(in srgb, var(--f) 13%, #fff); border-left-color:color-mix(in srgb, var(--f) 75%, #fff); color:#2b2b2b; }
.ka-block:hover { background:color-mix(in srgb, var(--f) 19%, #fff); }
.ka-balken, .ka-chip.ganz { background:color-mix(in srgb, var(--f) 15%, #fff); color:#2b2b2b; border-left:3px solid color-mix(in srgb, var(--f) 75%, #fff); }
.ka-balken.abschnitt, .ka-chip.abschnitt { background:color-mix(in srgb, var(--f) 10%, #fff); }
.ka-chip:not(.ganz)::before { background:color-mix(in srgb, var(--f) 80%, #fff); }
.ka-punkt { background:color-mix(in srgb, var(--f) 85%, #fff); }
.ka-block.gewaehlt, .ka-balken.gewaehlt, .ka-chip.gewaehlt { box-shadow:0 0 0 2px color-mix(in srgb, var(--f) 55%, #fff); z-index:2; }
/* 4.20 feste Seiten (Kalender, Projekt, Chat, Aufgaben …): unten der gleiche schmale Rand wie an den Seiten */
main.feste-seite, main.ka-seite, main.chat-seite, main.dok-app, main.auf-seite, main.pt-seite { padding-bottom:10px; }
.zt-emoji { font-size:15px; line-height:1; display:inline-block; width:20px; text-align:center; }
/* 4.24 Unteraufgabe zuweisen, Glocke mit Mitteilungen */
.auf-u-wer { border:none; background:none; color:#aaa; padding:2px 6px; border-radius:12px; font-size:12px; font-weight:400; cursor:pointer; opacity:0; display:inline-flex; align-items:center; }
.auf-unter:hover .auf-u-wer, .auf-u-wer.an { opacity:1; } .auf-u-wer:hover { background:#f2f2f2; color:var(--schwarz); }
.auf-u-wer.an { background:#eef4fd; color:#2f5fa8; }
.glocke { position:relative; } .glocke b { position:absolute; top:0; right:0; min-width:15px; height:15px; border-radius:8px; background:var(--rot); color:#fff; font-size:10px; line-height:15px; text-align:center; padding:0 3px; }
.glocke b:empty { display:none; }
.mt-liste { position:fixed; z-index:120; width:330px; max-height:70vh; overflow-y:auto; background:#fff; border:1px solid #e3e3e3; border-radius:12px; box-shadow:0 12px 32px rgba(0,0,0,.16); }
.mt-kopf { display:flex; justify-content:space-between; align-items:center; padding:12px 14px 8px; } .mt-kopf .link { font-size:13px; }
.mt-eintrag { display:flex; flex-direction:column; gap:2px; width:100%; text-align:left; border:none; background:none; padding:10px 14px; border-top:1px solid #f0f0f0; font-weight:400; font-size:14px; cursor:pointer; }
.mt-eintrag:hover { background:#f7f7f7; } .mt-eintrag.neu { background:#fff7f7; } .mt-eintrag.neu span:first-child { font-weight:600; }
.mt-eintrag span { white-space:normal; }
/* 4.26 Benachrichtigungen: Panel neben der Seitenleiste (doppelt so breit), legt sich über die Seite */
.mt-panel { position:fixed; top:0; bottom:0; left:var(--nav); width:min(calc(var(--nav) * 2), calc(100vw - var(--nav))); z-index:45; background:#fff; border-right:1px solid var(--linie);
  box-shadow:8px 0 30px rgba(0,0,0,.10); display:flex; flex-direction:column; transform:translateX(-16px); opacity:0; transition:transform .18s ease, opacity .18s ease; }
.mt-panel.offen { transform:none; opacity:1; }
body.nav-zu .mt-panel { left:var(--nav-zu); }
.mt-kopf { display:flex; align-items:center; gap:4px; padding:16px 14px 8px 20px; } .mt-kopf h2 { margin:0; font-size:18px; } .mt-kopf .rechts { flex:1; }
.mt-reiter { display:flex; align-items:center; gap:4px; padding:0 20px 10px; border-bottom:1px solid var(--linie); } .mt-reiter .rechts { flex:1; }
.mt-reiter > button:not(.link) { border:none; background:none; padding:6px 10px; border-radius:6px; font-size:14px; font-weight:500; color:var(--grau); cursor:pointer; }
.mt-reiter > button.an { background:#f0f0f0; color:var(--schwarz); } .mt-reiter .link { font-size:13px; }
.mt-liste-innen { flex:1; overflow-y:auto; padding:4px 0 16px; }
.mt-tag { font-size:12px; color:var(--grau); font-weight:600; padding:14px 20px 4px; }
.mt-eintrag { display:grid; grid-template-columns:22px minmax(0, 1fr) 10px; gap:12px; align-items:start; width:100%; text-align:left; border:none; background:none; padding:10px 20px; font-weight:400; font-size:14px; cursor:pointer; border-top:none; }
.mt-eintrag:hover { background:#f7f7f7; } .mt-eintrag.neu { background:none; } .mt-eintrag.neu:hover { background:#f7f7f7; }
.mt-ic { color:#999; padding-top:1px; } .mt-eintrag.neu .mt-ic { color:var(--rot); }
.mt-text { display:flex; flex-direction:column; gap:2px; min-width:0; } .mt-text span:first-child { white-space:normal; line-height:1.4; } .mt-eintrag.neu .mt-text span:first-child { font-weight:600; }
.mt-punkt { width:8px; height:8px; border-radius:50%; background:var(--rot); margin-top:6px; }
.mt-leer { text-align:center; color:#aaa; padding:60px 20px; } .mt-leer p { margin:10px 0 0; font-size:14px; }
.glocke.an { background:#222; color:#fff; }
/* 4.28 Benachrichtigungs-Filter wie im Vorbild: Bereiche, Kästchen mit rotem Haken; „Alle gelesen“ als Doppelhaken oben */
.mt-filter { position:fixed; z-index:130; width:300px; background:#fff; border:1px solid #e3e3e3; border-radius:12px; box-shadow:0 12px 32px rgba(0,0,0,.16); overflow:hidden; }
.mt-f-gruppe { padding:10px 8px 8px; } .mt-f-gruppe + .mt-f-gruppe { border-top:1px solid #eee; }
.mt-f-titel { font-size:13px; font-weight:600; color:var(--grau); padding:2px 10px 6px; }
.mt-f-zeile { display:flex; align-items:center; gap:12px; padding:8px 10px; border-radius:8px; cursor:pointer; font-size:15px; margin:0; color:var(--schwarz); font-weight:400; }
.mt-f-zeile:hover { background:#f5f5f5; }
.mt-f-zeile input { position:absolute; opacity:0; pointer-events:none; }
.mt-f-box { width:18px; height:18px; border-radius:5px; border:1.5px solid #cfcfcf; flex:none; position:relative; background:#fff; }
.mt-f-zeile input:checked + .mt-f-box { background:var(--rot); border-color:var(--rot); }
.mt-f-zeile input:checked + .mt-f-box::after { content:''; position:absolute; left:5px; top:1.5px; width:5px; height:10px; border:solid #fff; border-width:0 2px 2px 0; transform:rotate(45deg); }
.mt-f-zeile input:focus-visible + .mt-f-box { outline:2px solid var(--schwarz); outline-offset:2px; }
.mt-kopf .ka-knopf[disabled] { opacity:.35; cursor:default; } .mt-kopf .ka-knopf[disabled]:hover { background:none; }
/* 4.30 kein Plus-Mauszeiger im Kalender (Dom) */
.ka-spalte, .ka-ganz-zelle, .ka-m-tag { cursor:default; }
/* 4.32 Ablauf: Fortschritt und Meilenstein auf der Plantafel, To-do-Listen, Einsätze-Liste, Ablauf-Vorlagen */
.pt-balken .pt-fort { position:absolute; left:0; top:0; bottom:0; background:rgba(0,0,0,.13); pointer-events:none; }
.pt-balken.mit-todos { padding-right:34px; }
.pt-zahl { position:absolute; right:8px; top:50%; transform:translateY(-50%); font-size:11px; font-weight:600; opacity:.7; white-space:nowrap; pointer-events:none; }
.pt-raute { position:absolute; top:11px; width:11px; height:11px; background:#d85a30; transform:rotate(45deg); border-radius:2px; z-index:2; pointer-events:auto; box-shadow:0 0 0 2px #fff; }
.pt-raute.fertig { background:#1f8a3b; }
.pt-raute-ic { display:inline-block; width:9px; height:9px; background:#d85a30; transform:rotate(45deg); border-radius:1px; margin:0 4px 0 2px; vertical-align:1px; }
.td-box { margin-top:6px; } .td-kopf { display:flex; align-items:baseline; gap:10px; margin:6px 0 6px; } .td-kopf b { font-size:15px; }
.td-balken { display:block; height:5px; border-radius:3px; background:#eee; overflow:hidden; margin:0 0 6px; } .td-balken > span { display:block; height:100%; background:var(--rot); border-radius:3px; }
.td-balken.klein { width:60px; height:4px; margin:0; display:inline-block; vertical-align:middle; }
.td-zeile { display:flex; align-items:center; gap:8px; padding:4px 0; border-bottom:1px solid #f0f0f0; } .td-zeile:hover .td-weg { opacity:1; }
.td-haken { padding:6px; margin:0; } .td-text { flex:1; min-width:0; cursor:text; font-size:14px; } .td-zeile.erledigt .td-text { color:var(--grau); text-decoration:line-through; }
.td-chip { border:none; background:none; color:#aaa; font-size:12px; font-weight:400; padding:3px 8px; border-radius:12px; cursor:pointer; white-space:nowrap; max-width:150px; overflow:hidden; text-overflow:ellipsis; display:inline-flex; align-items:center; }
.td-chip:hover { background:#f2f2f2; color:var(--schwarz); } .td-chip.an { background:#f3f3f3; color:#333; }
.td-weg { border:none; background:none; color:#999; padding:2px 6px; cursor:pointer; opacity:0; }
.td-neu { display:flex; align-items:center; gap:10px; padding:6px 0 6px 6px; } .td-neu input { border:none !important; box-shadow:none !important; flex:1; padding:6px 0; background:transparent; } .td-neu input:focus { outline:none; }
.pt-ansicht { margin-left:16px; } .pt-ansicht a { text-decoration:none; }
.pt-ab-projekt { color:var(--grau); }
.pp-fort { display:inline-flex; align-items:center; gap:6px; font-size:12px; color:var(--grau); margin-left:auto; } .pp-zeile .pp-fort + span { margin-left:12px; }
.ei-filter { display:flex; align-items:center; gap:10px; margin:0 0 12px; flex-wrap:wrap; } .ei-filter select { width:auto; min-width:180px; } .ei-filter .rechts { margin-left:auto; }
.ei-karte { padding:0; overflow:hidden; }
.ei-tag { padding:12px 18px 6px; font-size:13px; font-weight:600; color:var(--grau); background:#fafafa; border-bottom:1px solid var(--linie); } .ei-tag.heute { color:var(--rot); }
.ei-zeile { display:grid; grid-template-columns:110px 160px minmax(0, 1fr) 170px; gap:14px; align-items:center; width:100%; text-align:left; border:none; border-bottom:1px solid #f0f0f0; background:none; padding:12px 18px; font-weight:400; font-size:14px; cursor:pointer; }
.ei-zeile:hover { background:#f8f8f8; } .ei-was { display:flex; flex-direction:column; min-width:0; } .ei-was b { font-weight:600; } .ei-was span, .ei-was b { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ei-todos { display:flex; align-items:center; gap:8px; justify-content:flex-end; } .ei-zeit { color:var(--grau); }
.abv-zeile { cursor:pointer; gap:14px; } .abv-zeile .av-name { font-weight:600; min-width:160px; }
.abv-inhalt { gap:12px !important; }
.abv-ab { border:1px solid var(--linie); border-radius:10px; padding:10px 12px; display:flex !important; flex-direction:column; gap:6px !important; }
.abv-ab-kopf { display:flex; align-items:center; gap:8px; } .abv-ab-kopf > input { flex:1; font-weight:600; }
.abv-nr { width:22px; height:22px; border-radius:50%; background:#f2f2f2; font-size:12px; display:flex; align-items:center; justify-content:center; flex:none; }
.abv-tage { display:flex; align-items:center; gap:6px; margin:0; font-size:13px; color:var(--grau); white-space:nowrap; } .abv-tage input { width:64px; text-align:center; }
.abv-todos { padding-left:30px; } .abv-todo { display:flex; align-items:center; gap:10px; } .abv-todo input { flex:1; border:none !important; box-shadow:none !important; padding:6px 0; background:transparent; } .abv-todo:hover .td-weg { opacity:1; }
.abv-meilenstein { display:flex; align-items:center; gap:10px; margin:0 0 0 30px; } .abv-meilenstein input { flex:1; } .abv-raute { width:10px; height:10px; background:#d85a30; transform:rotate(45deg); border-radius:2px; flex:none; }
.pt-ansicht a { display:flex; align-items:center; }

.pt-ab-projekt { display:block; margin:0 0 4px; font-size:13px; } .pt-ab-projekt .link { display:inline; padding:0; }

/* Gerät: ein großes Foto (Dom 24.10.2026) – im Dialog oben rechts, auf der Seite oben */
.gd-raster { display:grid; grid-template-columns:minmax(0, 1fr) 260px; gap:20px; align-items:start; }
.gd-foto { position:sticky; top:0; }
.haupt-foto { width:100%; aspect-ratio:1; border:1.5px dashed var(--linie); border-radius:14px; background:#fafafa; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; color:var(--grau); cursor:pointer; overflow:hidden; }
.haupt-foto.mit { border-style:solid; } .haupt-foto.ueber { border-color:var(--rot); background:#fff5f5; } .haupt-foto img { width:100%; height:100%; object-fit:cover; display:block; }
.haupt-foto-knoepfe { display:flex; justify-content:space-between; margin-top:6px; }
.geraet-foto-kasten { padding:0; overflow:hidden; } .geraet-foto { display:block; width:100%; aspect-ratio:1; object-fit:cover; cursor:zoom-in; border:none; }
.geraet-foto.leer { background:#fafafa; color:var(--grau); display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; cursor:pointer; font:inherit; }
@media (max-width:760px) { .gd-raster { grid-template-columns:1fr; } .gd-foto { position:static; order:-1; max-width:260px; } }
@media print { #versionshinweis { display:none !important; } } body.nur-druck #versionshinweis { display:none; } /* nicht ins Protokoll-PDF */
/* 4.34 Plantafel: Profilbilder, Mitarbeiter ziehen, ⋮ nur an der Gruppe */
.pt-zieh { cursor:grab; gap:10px; touch-action:none; } .pt-zieh .pt-name { padding-left:0; } .pt-avatar { width:28px; height:28px; margin-left:22px; font-size:11px; }
.pt-person.pt-zieht { opacity:.45; }
.pt-drop-vor { box-shadow:inset 0 2px 0 var(--rot); } .pt-drop-nach { box-shadow:inset 0 -2px 0 var(--rot); } .pt-drop-in { background:#fff5f5 !important; box-shadow:inset 0 0 0 1px var(--rot); }
.pt-gruppe [data-gm] { margin-left:auto; opacity:0; } .pt-gruppe:hover [data-gm], .pt-gruppe [data-gm]:focus-visible { opacity:1; }
/* 4.38 Plantafel: Mitarbeiter „in der Hand“ beim Ziehen */
.pt-hand { position:fixed; z-index:300; pointer-events:none; display:flex; align-items:center; gap:10px; padding:8px 14px 8px 0; background:#fff; border-radius:10px; box-shadow:0 10px 28px rgba(0,0,0,.22); font-weight:600; font-size:14px; transform:rotate(-1.5deg); }
.pt-hand .pt-avatar { margin-left:10px; } .pt-hand .pt-name { padding-left:0; }
body.pt-greift, body.pt-greift * { cursor:grabbing !important; }
.pt-person.pt-zieht { opacity:.3; background:#fafafa; }
.pt-drop-vor { box-shadow:inset 0 3px 0 var(--rot); } .pt-drop-nach { box-shadow:inset 0 -3px 0 var(--rot); }
/* 4.38 Kalender-Kopf: Heute, Pfeile und Ansicht gleich hoch */
.ka-kopf > .klein, .ka-kopf > .icon-knopf { height:36px; min-height:36px; } .ka-kopf > .klein { padding:0 14px; font-size:14px; } .ka-kopf > .icon-knopf { width:36px; }

/* 4.38 Eigene PDF-Ansicht (statt Browser-Leiste) */
.pdfa { position:relative; display:flex; flex-direction:column; background:#ececec; }
.pdfa-seiten { flex:1 1 auto; min-height:0; overflow:auto; padding:16px; }
.pdfa-innen { transition:transform .18s ease-out; display:flex; flex-direction:column; align-items:center; gap:14px; width:fit-content; min-width:100%; } .pdfa-innen canvas { background:#fff; box-shadow:0 1px 6px rgba(0,0,0,.14); display:block; }
.pdfa-lade { padding:40px; text-align:center; color:var(--grau); }
/* Zoom und Herunterladen oben rechts am Dokument und immer sichtbar (Dom 3.11.2026, vorher unten rechts nur beim Drüberfahren) */
.pdfa-leiste { position:absolute; left:50%; transform:translateX(-50%); top:10px; z-index:3; display:flex; align-items:center; gap:2px; background:rgba(30,30,30,.82); color:#fff; border-radius:10px; padding:4px; }
.pdfa-leiste button, .pdfa-leiste a { border:none; background:none; color:#fff; width:30px; height:30px; border-radius:7px; display:inline-flex; align-items:center; justify-content:center; font-size:18px; font-weight:400; cursor:pointer; padding:0; }
.pdfa-leiste button:hover, .pdfa-leiste a:hover { background:rgba(255,255,255,.16); } .pdfa-leiste span { font-size:12px; min-width:42px; text-align:center; }
/* 4.38 Ausgangsrechnungen (wie plancraft) */
.ar-marke { display:inline-block; padding:3px 10px; border-radius:12px; font-size:13px; font-weight:500; }
.ar-entwurf { background:#d7f1fb; color:#22677d; } .ar-offen { background:#dce8fd; color:#1d4fb8; } .ar-bezahlt { background:#d3f2e3; color:#1c6b47; }
.ar-ueberfaellig { background:#fbe8a6; color:#7a5b00; } .ar-angemahnt { background:#fdd8d6; color:#a3241f; } .ar-storniert { background:#ececec; color:#555; }
.ar-rot { color:#c62828; } .ar-nb { width:auto; min-width:110px; }
.ar-tabelle td.zahl, .ar-tabelle th.zahl { text-align:right; white-space:nowrap; } .ar-tabelle td { vertical-align:middle; }
.ar-fuss-offen { margin-left:48px; } .ar-fuss-bez { margin-left:28px; color:var(--grau); }
.ar-detail { display:grid; grid-template-columns:minmax(0, 1.05fr) minmax(0, 1fr); gap:16px; flex:1 1 auto; min-height:0; }
.ar-detail .ang-pdf { position:static; height:auto; min-height:0; }
.ar-rechts { overflow-y:auto; min-height:0; padding:18px 22px; }
.ar-kopf { display:flex; flex-wrap:wrap; gap:22px; align-items:center; padding-bottom:14px; border-bottom:1px solid var(--linie); }
.ar-raster { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:16px 24px; padding:16px 0; border-bottom:1px solid var(--linie); }
.ar-raster h3, .ar-teil h3 { margin:0 0 6px; font-size:15px; } .ar-raster p { margin:0; line-height:1.55; }
.ar-summen td { padding:1px 0; } .ar-summen td + td { text-align:right; padding-left:24px; } .ar-summen .ar-brutto td { border-top:1px solid #333; font-weight:600; }
.ar-teil { padding:14px 0; border-bottom:1px solid var(--linie); } .ar-teil:last-child { border-bottom:none; }
.ar-zeile { display:grid; grid-template-columns:96px minmax(0, 1fr) auto 32px; gap:10px; align-items:center; padding:6px 0; border-bottom:1px solid #f2f2f2; color:inherit; text-decoration:none; }
.ar-zeile.ar-dok { grid-template-columns:96px minmax(0, 1fr) auto auto; cursor:pointer; } .ar-zeile.ar-dok:hover { background:#fafafa; } .ar-zeile.ar-dok .icon-knopf { width:28px; height:28px; }
.ar-dazu { display:inline-flex; align-items:center; gap:8px; border:none; background:none; font-weight:600; font-size:14px; padding:8px 4px; margin-right:14px; cursor:pointer; color:var(--schwarz); }
.ar-dazu:hover { color:var(--rot); }
#ar-notiz { width:100%; border:1px solid var(--linie); border-radius:8px; padding:8px 10px; resize:none; }
@media (max-width:1100px) { .ar-detail { grid-template-columns:1fr; } .ar-detail .ang-pdf { height:70vh; } }

/* 4.40: Anfangs-/Schlusstext als Textfeld mit Formatierung (fett, kursiv, Aufzählung) */
.dok-text-feld { min-height:24px; padding:8px 10px; border:1px solid transparent; border-radius:8px; font-size:14.5px; line-height:1.5; outline:none; background:#fff; }
.dok-text-feld:hover { border-color:#e4e4e4; } .dok-text-feld:focus { border-color:#111; }
.dok-text-feld:empty::before { content:attr(data-leer); color:#b4b4b4; }
.dok-text-feld ul, .dok-text-feld ol { margin:2px 0; padding-left:22px; }
.auswahl-eintrag.aus { color:#b5b5b5; cursor:default; } .auswahl-eintrag.aus.aktiv { background:none; }
/* 4.40: Folgedokument wie plancraft, feste Knopfplätze in der Vorschau */
.dok-folge-kopf { display:flex; justify-content:space-between; align-items:center; padding:10px 0; border-bottom:1px solid #eee; }
.dok-folge-liste { max-height:52vh; overflow:auto; margin:0 -4px; }
.dok-folge-z { display:grid; grid-template-columns:22px 44px minmax(0, 1fr) 110px 100px; gap:8px; align-items:center; padding:9px 4px; border-bottom:1px solid #f0f0f0; font-size:14px; cursor:pointer; }
.dok-folge-z.titel { font-weight:700; } .dok-folge-z:hover { background:#fafafa; }
.dok-folge-text { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; } .dok-folge-menge, .dok-folge-preis { text-align:right; white-space:nowrap; } .dok-folge-nr { color:#777; }
.dok-folge-fuss { display:flex; align-items:center; gap:22px; padding-top:14px; flex-wrap:wrap; } .dok-folge-fuss .rechts { margin-left:auto; }
.dv-haupt { width:208px; justify-content:center; text-align:center; white-space:nowrap; flex:none; } span.dv-haupt { display:inline-block; } .icon-platz { display:inline-block; width:32px; }
/* PDF-Text markierbar (pdf.js-Textebene) */
.pdf-seite { position:relative; margin:0 auto; flex:none; } .pdf-seite canvas { display:block; }
.textLayer { position:absolute; inset:0; overflow:hidden; line-height:1; text-size-adjust:none; forced-color-adjust:none; transform-origin:0 0; z-index:2; }
.textLayer span, .textLayer br { color:transparent; position:absolute; white-space:pre; cursor:text; transform-origin:0% 0%; }
.textLayer ::selection { background:rgba(0, 90, 255, .25); color:transparent; }
.textLayer > :not(.endOfContent) { z-index:1; }
.textLayer .endOfContent { display:block; position:absolute; inset:100% 0 0; z-index:0; cursor:default; user-select:none; } .textLayer.selecting .endOfContent { top:0; }
/* 4.42: Neues Dokument – Blanko oder aus bestehendem Dokument */
.ds-kopf { display:flex; align-items:center; gap:12px; padding-bottom:14px; margin-bottom:16px; border-bottom:1px solid #eee; } .ds-kopf h2 { margin:0; font-size:20px; } .ds-kopf .rechts { margin-left:auto; }
.icon-knopf.ohne-rand { border-color:transparent; background:none; }
.ds-wege button { padding:16px 18px; } .ds-wege b { display:block; font-size:15px; } .ds-wege small, .ds-zeile small { display:block; color:#777; font-weight:400; margin-top:3px; font-size:13px; }
.ds-suche { width:100%; box-sizing:border-box; margin-bottom:10px; }
.ds-liste { max-height:56vh; overflow:auto; display:flex; flex-direction:column; }
.ds-zeile { display:flex; justify-content:space-between; align-items:center; gap:14px; text-align:left; padding:10px 8px; border:none; border-bottom:1px solid #f0f0f0; background:none; border-radius:0; font-weight:400; }
.ds-zeile:hover { background:#fafafa; } .ds-zeile > span:last-child { white-space:nowrap; }
.dok-tabelle.brief .dok-pos.text .dok-pos-text, .dok-tabelle.brief .dok-pos.bild > div { grid-column:2 / 8; }
.dok-pos-text ul, .dok-pos-text ol { margin:2px 0; padding-left:20px; }
/* 4.42: Mitarbeiterakte mit Reitern oben, Leiste links */
.ma-reiter { margin:-4px 0 14px; border-bottom:1px solid #eee; }
.ma-akte { display:grid; grid-template-columns:240px minmax(0, 1fr); gap:20px; align-items:start; }
.ma-nav { display:flex; flex-direction:column; background:#fff; border:1px solid #e6e6e6; border-radius:10px; padding:6px; position:sticky; top:10px; }
.ma-nav button { text-align:left; background:none; border:none; border-radius:7px; padding:10px 12px; font-weight:500; color:#444; cursor:pointer; }
.ma-nav button:hover { background:#f6f6f6; } .ma-nav button.an { background:#f1f1f1; color:#111; font-weight:600; }
.ma-teil .akte-kasten { max-width:900px; width:100%; box-sizing:border-box; }
.ma-leiste { display:flex; align-items:center; gap:10px; margin-bottom:14px; } .ma-leiste .rechts { margin-left:auto; }
.ma-karten { display:grid; grid-template-columns:repeat(auto-fit, minmax(320px, 1fr)); gap:16px; margin-bottom:16px; }
.ma-karte h3 { margin:0 0 12px; font-size:15px; } .ma-zahlen { display:grid; grid-template-columns:repeat(auto-fit, minmax(90px, 1fr)); gap:10px; }
.ma-zahl { display:flex; flex-direction:column; align-items:center; text-align:center; } .ma-zahl span { font-size:12px; color:#777; text-transform:uppercase; letter-spacing:.03em; }
.ma-zahl b { font-size:26px; font-weight:600; margin:4px 0 2px; } .ma-zahl small { color:#999; font-size:12px; }
.ma-tabelle-karte { padding:6px 14px 14px; } .ma-tabelle-karte .tabelle { border:none; }
.ma-dok { display:flex; align-items:center; gap:10px; padding:12px 4px; border-bottom:1px solid #f0f0f0; } .ma-dok .rechts { margin-left:auto; }
@media (max-width:900px) { .ma-akte { grid-template-columns:1fr; } .ma-nav { position:static; flex-direction:row; flex-wrap:wrap; } }
/* 4.42: Ressourcen am Einsatz */
.pt-res { display:flex; flex-wrap:wrap; gap:6px; align-items:center; min-height:30px; }
.pt-res-chip { display:inline-flex; align-items:center; gap:6px; background:#f2f2f2; border-radius:14px; padding:4px 6px 4px 10px; font-size:13px; }
.pt-res-chip.belegt { background:#fff3e0; color:#9a5b00; } .pt-res-chip button { border:none; background:none; padding:0 2px; cursor:pointer; color:#888; font-size:12px; }
.preis-kurve { width:100%; height:120px; display:block; overflow:visible; } .preis-kurve-achse { display:flex; justify-content:space-between; font-size:12px; color:#999; }
.preis-tabelle { width:100%; font-size:13px; } .preis-tabelle td { padding:3px 0; border-bottom:1px solid #f2f2f2; }
.ap-zeile { display:flex; justify-content:space-between; align-items:flex-start; gap:10px; padding:10px 0; border-bottom:1px solid #f0f0f0; } .ap-zeile:last-child { border-bottom:none; }
/* 4.42: Kennzahlen mit Reitern */
.kpi-reiter { margin:0 0 12px; border-bottom:1px solid #eee; min-height:0; padding-top:0; }
.kpi-saeulen i.g { background:#d6d6d6; } .kpi-legende span.g { background:#d6d6d6; }
.kpi-bar.zwei { position:relative; display:flex; flex-direction:column; gap:3px; background:none; height:auto; } .kpi-bar.zwei i { display:block; height:5px; border-radius:3px; background:#d6d6d6; }
.kpi-bar.zwei i.ist { background:var(--rot); } .kpi-bar.zwei i.ist.drueber { background:#d97706; }
.kpi-zeile.zeit { grid-template-columns:minmax(120px, 220px) minmax(0, 1fr) 150px; } .kpi-zeile.zeit b { text-align:right; font-weight:500; white-space:nowrap; }
.kpi-saeulen i.d, .kpi-legende span.d { background:#303030; } .kpi-saeulen i:nth-last-child(3), .kpi-saeulen i:nth-last-child(3) ~ i { width:26%; }
/* 4.44: Material, das es noch nicht gibt */
.such-neu { display:flex; align-items:center; gap:8px; width:100%; margin-top:8px; padding:10px 12px; border:1px dashed #cfcfcf; border-radius:8px; background:#fafafa; color:#111; font-weight:500; text-align:left; cursor:pointer; }
.such-neu:hover { background:#f2f2f2; } .af-einheit { width:auto; min-width:70px; padding:4px 6px; }
/* 4.44: Notizen ruhiger – Schreibfläche mittig und schmaler, Angaben links einklappbar, Leiste beim Markieren */
.nt.links-zu { grid-template-columns:minmax(0, 1fr); } .nt.links-zu .nt-links { display:none; }
/* 4.46: Notiz als handliche Karte statt Riesenblatt – wächst mit dem Text; Cursor und Platzhalter stehen bündig links in der Karte */
.nt-rechts { align-self:start; justify-self:center; width:100%; max-width:820px; max-height:100%; }
.nt-rechts .md-eingabe { flex:0 1 auto; min-height:220px; padding:22px 28px 28px !important; font-size:14.5px; line-height:1.6; }
.nt-hilfe { gap:16px; color:#aaa; border-bottom-color:#f2f2f2; } .nt-hilfe em { font-style:normal; font-size:12.5px; }
.nt-links { background:#fcfcfc; }
/* 4.46: Verlauf unten auf Detailseiten */
.verlauf-zeile { margin:22px 0 6px; font-size:12.5px; color:#999; } .verlauf-zeile .link { font-size:12.5px; }
.verlauf-liste { max-height:60vh; overflow:auto; } .verlauf-liste > div { display:grid; grid-template-columns:130px 160px minmax(0, 1fr); gap:10px; padding:8px 0; border-bottom:1px solid #f0f0f0; font-size:13.5px; }
.verlauf-liste em { display:block; font-style:normal; color:#999; font-size:12px; }
/* 4.54: Geräte – wo ist es, Verlauf */
.g-ort-jetzt { font-size:16px; font-weight:600; display:flex; flex-direction:column; gap:2px; } .g-ort-jetzt .klein-text { font-weight:400; }
.g-orte { margin-top:12px; border-top:1px solid #f0f0f0; } .g-orte > div { display:grid; grid-template-columns:120px minmax(0, 1fr); gap:2px 10px; padding:8px 0; border-bottom:1px solid #f4f4f4; font-size:13.5px; }
.g-orte > div > .klein-text { grid-column:2; } .g-orte b { font-weight:500; }
/* 4.56: Fahrzeugakte */
.fz-bild { width:92px; height:92px; border-radius:12px; object-fit:cover; flex:none; background:#f2f2f2; } .fz-bild.leer { display:flex; align-items:center; justify-content:center; color:#aaa; }
.fz-kopf { align-items:center; } .fz-kopf h1 { display:flex; align-items:center; gap:10px; }
.fz-liste { padding:0 16px; } .fz-eintrag { display:grid; grid-template-columns:100px minmax(0, 1fr) 110px; gap:14px; padding:14px 0; border-bottom:1px solid #f0f0f0; cursor:pointer; color:inherit; text-decoration:none; }
.fz-eintrag:last-child { border-bottom:none; } .fz-eintrag:hover { background:#fcfcfc; } .fz-datum { color:#777; font-size:13.5px; padding-top:1px; }
.fz-kosten { text-align:right; font-weight:600; } .fz-notiz { margin-top:6px; font-size:13.5px; color:#444; white-space:pre-wrap; } .fz-eintrag .rs-fotos { margin-top:8px; }
.fz-summe { display:flex; justify-content:space-between; padding:14px 0; border-top:1px solid #e6e6e6; font-size:15px; } .fz-unter { margin:22px 0 10px; font-size:15px; }
.fz-arten { flex-wrap:wrap; margin-bottom:12px; }
@media (max-width:700px) { .fz-eintrag { grid-template-columns:80px minmax(0, 1fr); } .fz-kosten { grid-column:2; text-align:left; } }
/* 4.56: Personalakte mit Profilbild und Login */
img.avatar-gross.avatar-foto { object-fit:cover; background:#eee; }
.ma-login { max-width:760px; } .ma-login h3 { margin:0 0 8px; } .ma-login-kopf { display:flex; align-items:center; gap:14px; margin-bottom:16px; }
/* 4.60: Einstellungen – Einheiten, Lohnkosten, Mahnungen, Lohngruppen, Arbeitszeitmodelle */
.ein-neu { display:flex; gap:8px; margin-bottom:8px; } .ein-neu input { flex:1; }
.ein-liste { max-height:52vh; overflow:auto; } .ein-liste > div { display:flex; justify-content:space-between; align-items:center; padding:8px 4px; border-bottom:1px solid #f2f2f2; }
.lk-raster { display:flex; gap:60px; padding:0 0 4px 34px; } .lk-raster b { display:block; margin-bottom:8px; } .lk-raster .haken { display:flex; margin:6px 0; }
.mahn-titel { font-size:15px; margin:16px 0 6px; } .dok-einst-karte .mahn-titel:first-of-type { margin-top:4px; }
.lg-tab td, .lg-tab th { padding:12px 8px; } .lg-leute { display:inline-flex; } .lg-leute .avatar-kreis { margin-left:-6px; border:2px solid #fff; } .lg-leute .avatar-kreis:first-child { margin-left:0; }
.avatar-kreis.klein { width:28px; height:28px; font-size:11px; }
.lg-chips { display:flex; flex-wrap:wrap; gap:6px; margin-top:8px; }
.lg-kasten { background:#f5f5f5; border-radius:10px; padding:16px 18px; } .lg-k-titel { font-size:12px; letter-spacing:.04em; text-transform:uppercase; color:#777; margin-bottom:12px; }
.lg-kasten .dok-toggle { margin:8px 0; } .lg-std { margin:4px 0 10px 46px; display:flex; }
.lg-rechnung { display:grid; grid-template-columns:minmax(0, 1fr) 150px 110px; gap:10px 16px; align-items:center; } .lg-rechnung hr { grid-column:1 / -1; border:none; border-top:1px solid #ddd; margin:4px 0; }
.lg-rechnung input { text-align:right; } .zahl { text-align:right; }
.az-name { display:grid; grid-template-columns:minmax(0, 1fr) auto; gap:16px; align-items:end; }
.az-raster { display:grid; grid-template-columns:120px 110px 110px 140px minmax(90px, 1fr); gap:10px 12px; align-items:center; }
@media (max-width:700px) { .az-raster { grid-template-columns:80px 1fr 1fr 1fr; } .az-raster [data-g], .az-raster b.zahl { display:none; } .lk-raster { flex-direction:column; gap:16px; } }
.dok-kalk-ek { display:flex; flex-direction:column; gap:3px; } .dok-kalk-ek select { font-size:11.5px; padding:1px 4px; height:auto; min-height:0; color:#555; background:#fafafa; }
.lg-kasten label.haken, .az-name label.haken { display:flex !important; flex-direction:row !important; align-items:center; justify-content:flex-start; gap:8px; } .lg-kasten label.haken input, .az-name label.haken input { width:auto; margin:0; }
.std-einheiten { grid-template-columns:repeat(auto-fill, minmax(140px, 1fr)) !important; } .std-einheiten select { width:100%; max-width:180px; } .std-einheiten label:first-child { grid-column:1 / -1; max-width:220px; }
/* 4.62: PDF über dem Dokument, Bilder ziehen */
.dok-pdf-inhalt.pdfa { height:100%; } .dok-vorschau.pdfa { overflow:hidden; padding:0; gap:0; align-items:stretch; background:transparent; } .dok-bildwahl button[draggable] { cursor:grab; }
/* 4.62: Stammdaten */
.sd-kopf { margin-bottom:4px; } .sd-reiter { border-bottom:1px solid #eee; margin-bottom:14px; }
.sd-seite { flex:1 1 auto; min-height:0; display:grid; grid-template-columns:280px minmax(0, 1fr); gap:14px; }
.sd-links { padding:8px; overflow:auto; min-height:0; } .sd-rechts { display:flex; flex-direction:column; min-height:0; gap:12px; } .sd-suche { max-width:430px; }
.sd-tabelle { padding:0; overflow:auto; flex:1; min-height:0; } .sd-tabelle .tabelle { border:none; } .sd-lang { max-width:640px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.sd-ordner { display:flex; align-items:center; gap:6px; padding:9px 10px; border-radius:7px; cursor:pointer; font-size:14px; } .sd-ordner:hover { background:#f6f6f6; } .sd-ordner.an { background:#f0f0f0; font-weight:600; }
.sd-ordner .klein-text { margin-left:auto; } .sd-o-name { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; } .sd-o-ic { color:#777; display:flex; }
.sd-auf { width:18px; height:18px; padding:0; border:none; background:none; display:flex; align-items:center; justify-content:center; color:#777; cursor:pointer; } .sd-auf.leer-auf { cursor:default; }
.sd-ordner .icon-knopf { width:24px; height:24px; opacity:0; border-color:transparent; } .sd-ordner:hover .icon-knopf { opacity:1; }
.sd-ordner-kopf { display:flex; justify-content:space-between; align-items:center; padding:12px 10px 6px; font-size:12px; color:#777; text-transform:uppercase; letter-spacing:.04em; }
.ld-dialog { max-width:1060px !important; } .ld-zeile { display:grid; grid-template-columns:140px minmax(0, 1fr) 120px 110px 120px; gap:12px; align-items:end; }
.ld-linie { border:none; border-top:1px solid #eee; margin:4px 0; } .ld-lang { border:1px solid #dcdcdc !important; min-height:70px; }
.ld-bild img { max-height:160px; border-radius:8px; display:block; margin-bottom:6px; } .ld-bild-ablage { display:flex; flex-direction:column; align-items:center; gap:4px; padding:26px; border:1.5px dashed #ccc; border-radius:10px; cursor:pointer; color:#555; }
.ld-kosten { display:flex; flex-direction:column; gap:6px; } .ld-k { display:grid; grid-template-columns:120px 90px 100px minmax(0, 1fr) 130px 90px 30px; gap:8px; align-items:center; }
.ld-k.kopf span { font-size:12.5px; color:#777; } .ld-k.fuss { margin-top:4px; } .ld-zuschlaege { display:flex; flex-wrap:wrap; gap:10px; margin-top:10px; padding-top:10px; border-top:1px solid #f0f0f0; } .ld-zuschlaege label { width:120px; font-size:12.5px; }
@media (max-width:900px) { .sd-seite { grid-template-columns:1fr; } .ld-zeile { grid-template-columns:1fr 1fr; } .ld-k { grid-template-columns:1fr 1fr; } }
/* 4.62: Suche im Editor mit Haken */
.dok-treffer-z.mit-haken { display:grid; grid-template-columns:20px minmax(0, 1fr); gap:8px; align-items:start; text-align:left; cursor:pointer; } .dok-treffer-z.mit-haken > div { display:flex; flex-direction:column; }
.dok-treffer-z.mit-haken input { margin-top:3px; } .dok-wahl-leiste { position:sticky; bottom:0; display:flex; align-items:center; gap:10px; background:#fff; border-top:1px solid #eee; padding:10px 4px; margin-top:6px; } .dok-wahl-leiste .primaer { margin-left:auto; }
.dok-such-reiter { flex-wrap:wrap; }
/* 4.62: Reiter Zeiten im Editor */
.dok-zeit-kopf { display:flex; align-items:center; gap:10px; margin-bottom:8px; } .dok-zeit-kopf .fwahl { margin-right:auto; } .dok-zeit-kopf .pa-knopf { position:relative; } .dz-n { position:absolute; right:-6px; bottom:-6px; background:#111; color:#fff; border-radius:9px; font-size:11px; padding:0 5px; }
.dok-zeit { display:grid; grid-template-columns:14px minmax(0, 1fr) auto 18px; gap:10px; align-items:center; padding:12px 6px; border-bottom:1px solid #f0f0f0; cursor:pointer; }
.dok-zeit > div:nth-child(2) { display:flex; flex-direction:column; } .dok-zeit b span { font-weight:400; } .dok-zeit .zahl { display:flex; flex-direction:column; } .dok-zeit.an { background:#eef8f2; }
.ld-k .auswahl, .ld-zeile .auswahl, .dok-kalk-ek .auswahl { width:100% !important; min-width:0 !important; max-width:100%; } .ld-k > *, .ld-zeile > * { min-width:0; }
/* 4.64: Anfangs-/Schlusstext als Textblöcke */
/* Textblöcke bündig mit der Anrede (Dom 25.10.2026): Griff und ✕ hängen außen, der Text nimmt die ganze Breite */
.dok-bloecke { display:flex; flex-direction:column; gap:10px; } .dok-block { position:relative; border-radius:8px; }
.dok-block .dok-griff { position:absolute; left:-20px; top:10px; opacity:0; cursor:grab; color:#999; } .dok-block:hover .dok-griff, .dok-block:hover .dok-block-weg { opacity:1; }
.dok-block-weg { position:absolute; right:-34px; top:4px; opacity:0; }
.dok-block .dok-text-feld { overflow-wrap:anywhere; }
.dok-block.ziel { box-shadow:0 -2px 0 var(--rot); } .dok-block-neu { align-self:flex-start; margin-left:10px; color:#888; }
.dok-pos.text .dok-pos-text, .dok-pos-text { min-width:0; overflow-wrap:anywhere; white-space:normal; }
.dok-pos-edit.text .dok-lang-edit { margin:0 0 10px; } .dok-pos-edit.text .dok-lang-feld { min-height:90px; }

/* Trefferliste im Dokument-Editor wie plancraft (Dom 25.10.2026): Griff links, Preis und Haken rechts, Einfügen oben */
.dsu-kopf { display:flex; align-items:center; gap:10px; padding:6px 2px 10px; }
.dsu-titel { flex:1; min-width:0; font-size:16px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.dsu-ein { position:relative; width:44px; height:40px; border:none; border-radius:10px; background:#ececec; color:#111; display:flex; align-items:center; justify-content:center; cursor:pointer; padding:0; }
.dsu-ein:disabled { color:#aaa; cursor:default; } .dsu-ein:not(:disabled):hover { background:#e0e0e0; }
.dsu-n { position:absolute; top:-6px; right:-6px; min-width:18px; height:18px; border-radius:9px; background:var(--rot); color:#fff; font-size:11px; font-weight:700; display:flex; align-items:center; justify-content:center; padding:0 4px; } .dsu-n:empty { display:none; }
.dsu-kopf input[type=checkbox], .dsu-z input[type=checkbox], .dsu-mengen input { width:18px; height:18px; margin:0; accent-color:var(--rot); cursor:pointer; flex:none; }
.dsu-mengen { display:flex; align-items:center; gap:10px; margin:-2px 0 10px 2px; font-size:14px; cursor:pointer; }
.dsu-z { display:grid; grid-template-columns:18px minmax(0,1fr) auto 20px; gap:10px; align-items:start; padding:12px 10px; border-bottom:1px solid #eee; cursor:grab; background:#fff; border-radius:10px; }
.dsu-z:hover { background:#f6f6f6; } .dsu-z.an { background:#f1f8f4; } .dsu-z:active { cursor:grabbing; }
.dsu-z .dok-griff { opacity:1; color:#444; padding-top:2px; cursor:grab; }
.dsu-t { min-width:0; display:flex; flex-direction:column; gap:3px; } .dsu-t b { font-size:14px; line-height:1.35; }
.dsu-lang { font-size:13.5px; color:#333; line-height:1.4; white-space:pre-line; display:-webkit-box; -webkit-line-clamp:4; -webkit-box-orient:vertical; overflow:hidden; }
.dsu-t img { width:90px; height:68px; object-fit:cover; border:1px solid #e3e3e3; border-radius:6px; margin-top:6px; }
.dsu-p { display:flex; flex-direction:column; align-items:flex-end; gap:3px; text-align:right; white-space:nowrap; } .dsu-p b { font-size:14px; } .dsu-p span { font-size:13px; color:#444; }
.dsu-z.titel .dsu-t b { font-size:14.5px; }
.dsu-chip { position:fixed; top:-200px; left:-400px; display:inline-flex; align-items:center; gap:8px; max-width:280px; padding:9px 14px; border-radius:12px; background:#fff; border:1px solid #d9d9d9; box-shadow:0 6px 18px rgba(0,0,0,.14); font:600 13.5px/1.2 inherit; color:#111; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.dsu-chip .dok-griff { opacity:1; color:#666; }
.dok-chat .ch-n[draggable=true] .ch-blase { cursor:grab; }

/* Briefpapier: Reiter Dokumente | Berichte, Karten im Design der Einstellungen (Dom 25.10.2026) */
.bp-reiter { margin:0 0 16px; } .bp-inhalt { margin-left:34px; } .bp-seg { max-width:460px; } 
.bp-logo { display:flex; align-items:center; gap:16px; flex-wrap:wrap; } .bp-logo .dok-logo-kachel { min-width:160px; min-height:60px; align-items:center; justify-content:center; }
.bp-knoepfe { display:flex; gap:8px; align-items:center; flex-wrap:wrap; } .bp-knoepfe.spalte { flex-direction:column; align-items:flex-start; gap:10px; }
#bp-schrift { width:100%; max-width:460px; }
/* Kalkulation: Lohngruppe in derselben Zeile wie die Beschreibung, Kostenzeilen verschieben (Dom 25.10.2026) */
.dok-kalk-text { display:flex; align-items:center; gap:6px; } .dok-kalk-text input { flex:1; min-width:0; }
.formular label.dok-kalk-lg, .dok-kalk-lg { display:inline-flex; flex-direction:row; align-items:center; gap:4px; flex:none; margin:0; font-size:12px; color:#555; background:#f3f3f3; border-radius:6px; padding:0 2px 0 8px; height:30px; cursor:pointer; }
.dok-kalk-lg span { white-space:nowrap; } .dok-kalk-lg select { border:none; background:transparent; font-size:12.5px; font-weight:600; color:#111; padding:0 4px; height:28px; min-height:0; width:auto; max-width:140px; cursor:pointer; }
.dok-kalk-lg .auswahl { width:auto !important; min-width:0 !important; }
.dok-kalk-k .dok-griff { cursor:grab; } .dok-kalk-k.zieht { opacity:.4; } .dok-kalk-k.ziel { box-shadow:0 -2px 0 var(--rot); }
.ld-kalk .dok-kalk { background:#fff; border:1px solid #e6e6e6; border-radius:10px; padding:12px 14px; margin-top:6px; }
/* Aufgabe: „Kommentieren“ steht unten wie bei einem Chat, auch wenn die Aufgabe kurz ist; bei langen Aufgaben bleibt es unten sichtbar (Dom 25.10.2026) */
.auf-detail-links { display:flex; flex-direction:column; }
.auf-detail-links > .auf-kommentar.neu { margin-top:auto; position:sticky; bottom:0; z-index:2; background:#fff; padding-top:12px; padding-bottom:4px; border-top:1px solid var(--linie); }
/* gebündelte Benachrichtigungen derselben Person (Dom 25.10.2026) */
.mt-eintrag.stapel { box-shadow:0 4px 0 -1px #fff, 0 5px 0 0 var(--linie); margin-bottom:5px; } .mt-mehr { display:block; font-size:12px; color:#888; }
.vs { position:relative; display:flex; max-width:100%; max-height:100%; border-radius:8px; overflow:hidden; background:#000; }
.vs video { display:block; max-width:100%; max-height:calc(100vh - 140px); min-width:200px; min-height:160px; cursor:pointer; }
.vs-gross { position:absolute; inset:0; margin:auto; width:68px; height:68px; border:none; border-radius:50%; background:rgba(0,0,0,.55); color:#fff; display:flex; align-items:center; justify-content:center; padding:0 0 0 4px; transition:opacity .2s; }
.vs-gross svg, .vs-knoepfe svg { fill:#fff; stroke:#fff; } .vs-gross svg { width:30px; height:30px; } .vs.laeuft .vs-gross { opacity:0; pointer-events:none; }
.vs-leiste { position:absolute; left:10px; right:10px; bottom:10px; background:rgba(0,0,0,.6); border-radius:10px; padding:8px 10px 6px; color:#fff; opacity:0; transition:opacity .25s; }
.vs.wach .vs-leiste, .vs:not(.laeuft) .vs-leiste { opacity:1; } .vs.laeuft:not(.wach) { cursor:none; }
.vs-linie { position:relative; height:14px; cursor:pointer; touch-action:none; } .vs-linie::before, .vs-linie i, .vs-linie b { content:''; position:absolute; left:0; top:5px; height:4px; border-radius:2px; }
.vs-linie::before { right:0; background:rgba(255,255,255,.25); } .vs-linie i { background:rgba(255,255,255,.4); } .vs-linie b { background:var(--rot); } .vs-linie b::after { content:''; position:absolute; right:-6px; top:-4px; width:12px; height:12px; border-radius:50%; background:#fff; }
.vs-knoepfe { display:flex; align-items:center; gap:4px; } .vs-knoepfe .rechts { flex:1; }
.vs-knoepfe button { border:none; background:none; color:#fff; padding:5px; border-radius:6px; display:flex; } .vs-knoepfe button:hover { background:rgba(255,255,255,.15); }
.vs-knoepfe [data-vs=ton] svg, .vs-knoepfe [data-vs=voll] svg { fill:none; } .vs-zeit { font-size:13px; font-variant-numeric:tabular-nums; margin-left:4px; }
.vs:fullscreen { border-radius:0; align-items:center; justify-content:center; } .vs:fullscreen video { max-height:100vh; max-width:100vw; }
.vs.kaputt { background:none; } .dv-audio { width:min(480px, 90%); } /* Video-/Tonvorschau in der Dateiansicht */

/* CI Rot statt Grün für Auswahl, Schalter und Kalkulation (Dom 25.10.2026); Trefferliste kleiner, Haken bündig mit „alle“ */
.dok-toggle input:checked + span, .dok-a4 .dok-toggle input:checked + span { background:var(--rot); }
.dok-rechts-reiter button.an { color:var(--rot); }
.dok-kalk-z.eigen, .dok-kalk-z:disabled, .dok-kalk-tief.an { color:var(--rot); }
.dok-unter-marke { background:var(--rot); } .dok-kalk-unter { border-left-color:var(--rot); } .dok-kalk-unter-titel .dok-pille { background:var(--rot); }
.dsu-kopf { padding:4px 8px 8px; gap:8px; } .dsu-titel { font-size:15px; }
.dsu-ein { width:36px; height:32px; border-radius:8px; } .dsu-ein svg { width:16px; height:16px; }
.dsu-mengen { margin:0 0 6px 8px; font-size:13.5px; gap:8px; }
.dsu-z { grid-template-columns:14px minmax(0,1fr) auto 18px; gap:8px; padding:8px 8px; border-radius:8px; border-bottom:1px solid #f0f0f0; }
.dsu-z.an { background:#fff3f3; } .dsu-t b { font-size:13.5px; } .dsu-lang { font-size:13px; -webkit-line-clamp:3; }
.dsu-p b { font-size:13.5px; } .dsu-p span { font-size:12.5px; } .dsu-t img { width:72px; height:54px; }
.dok-zeit-kopf { padding:0 8px; }

/* Kalkulation: Beschreibung breiter, Menge schmaler, Lohngruppe über den Pfeil im EK-Feld (Dom 25.10.2026) */
.dok-kalk-k, .dok-kalk-k.unter { grid-template-columns:12px 80px 50px 62px minmax(80px, 1fr) 88px 96px 22px 22px; gap:5px; }
.dok-kalk-k input, .dok-kalk-k select { padding-left:6px; padding-right:6px; }
.dok-kalk-wert { font-size:12.5px; } .dok-kalk-z { font-size:11px; }
.dok-kalk-ek.mit-lg { position:relative; } .dok-kalk-ek.mit-lg input { padding-right:26px; }
.dok-kalk-lgk { position:absolute; right:3px; top:50%; transform:translateY(-50%); width:22px; height:24px; border:none; background:none; padding:0; color:#555; cursor:pointer; display:flex; align-items:center; justify-content:center; border-radius:4px; }
.dok-kalk-lgk:hover { background:#eee; color:#111; }
.dok-kalk-wert { white-space:nowrap; }

/* Positionsrabatt wie plancraft: Etikett unter dem Kurztext, alter Gesamtpreis durchgestrichen, neuer darunter */
.dok-rabatt-zeile { display:flex; align-items:center; gap:6px; color:#555; font-size:13px; margin-top:2px; } .dok-rabatt-zeile svg { color:#777; flex:none; }
.dok-gesamt .dok-alt-preis { display:block; color:#888; font-weight:400; } .dok-gesamt i { display:block; }

/* Textblöcke: Ablagefeld erscheint nur beim Ziehen (Dom 25.10.2026) */
.dok-block-ziel { display:none; border:1.5px dashed #d0d0d0; border-radius:8px; padding:10px; text-align:center; color:#999; font-size:13px; }
.dok-bloecke.ziel-feld .dok-block-ziel { display:block; border-color:var(--rot); color:var(--rot); background:#fff6f6; }
body.dok-zieht .dok-block-ziel { display:block; }

/* Berichtsvorlagen wie plancraft (Dom 25.10.2026): einklappbare Blöcke mit Griff, Unterpunkte als kleine Karten */
.bv-name { margin-bottom:12px; }
.bv-block { background:#fff; border:1px solid #e6e6e6; border-radius:10px; margin-bottom:10px; }
.bv-block.zieht { opacity:.4; } .bv-block.ziel { box-shadow:0 -2px 0 var(--rot); }
.bv-kopf { display:flex; align-items:center; gap:12px; padding:12px 14px; cursor:pointer; } .bv-kopf:hover { background:#fafafa; border-radius:10px; }
.bv-griff { opacity:1; color:#333; cursor:grab; flex:none; } .bv-ic { display:flex; color:#111; } .bv-titel { flex:1; min-width:0; font-size:15px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.bv-knoepfe { display:flex; align-items:center; gap:4px; } .bv-knoepfe .gefahr { color:var(--rot); }
.bv-inhalt { padding:2px 14px 14px; display:flex; flex-direction:column; gap:8px; }
.bv-gruppe { font-size:12px; letter-spacing:.6px; text-transform:uppercase; color:#777; margin:6px 0 0; }
.bv-unter { border:1px solid #ececec; border-radius:8px; background:#fff; } .bv-unter.ziel { box-shadow:0 -2px 0 var(--rot); }
.bv-unter-kopf { display:flex; align-items:center; gap:10px; padding:8px 10px; cursor:pointer; }
.bv-unter-text { flex:1; min-width:0; display:flex; flex-direction:column; } .bv-art { font-size:11px; letter-spacing:.5px; text-transform:uppercase; color:#666; } .bv-unter-text span:last-child { font-size:14px; }
.bv-unter-inhalt { display:grid; grid-template-columns:1fr 1fr; gap:8px; padding:0 10px 10px 34px; align-items:end; } .bv-unter-inhalt label { display:flex; flex-direction:column; gap:4px; font-size:12.5px; color:#555; }
.bv-unter-weg { grid-column:1 / -1; justify-self:start; color:var(--rot) !important; font-size:13px; }
.bv-dazu { display:flex; align-items:center; gap:10px; width:100%; background:#fff; border:1px solid #ececec; border-radius:8px; padding:10px 12px; font-size:14px; color:#111; cursor:pointer; text-align:left; }
.bv-dazu:hover { border-color:#bbb; } .bv-dazu.gross { padding:12px 14px; border-radius:10px; }
.bv-feld { display:flex; flex-direction:column; gap:4px; font-size:13px; color:#555; } .bv-feld textarea { width:100%; }

/* Neuer Bericht: Vorlagen als Liste untereinander, „Vorlagen verwalten“ dezent (Dom 25.10.2026) */
.ber-neu-liste { grid-template-columns:1fr !important; gap:6px; } .ber-neu-liste button { padding:11px 14px; } .ber-neu-liste button span { flex:1; }
.ber-abr { font-size:12px; color:#666 !important; background:#f2f2f2; border-radius:10px; padding:2px 8px; }
.ber-neu-fuss { display:flex; justify-content:flex-end; } .ber-neu-fuss a { display:inline-flex; align-items:center; gap:6px; color:#555; font-size:13px; } .ber-neu-fuss a:hover { color:#111; text-decoration:none; }
/* Rapport: Pause mit −/+, Vorschläge aus den Stammdaten */
.ber-stepper { display:flex; align-items:stretch; border:1px solid #d9d9d9; border-radius:8px; overflow:hidden; background:#fff; }
.ber-stepper input { border:none !important; border-radius:0 !important; min-width:0; width:100%; text-align:center; }
.ber-stepper button { border:none; background:#f4f4f4; width:30px; font-size:17px; padding:0; cursor:pointer; color:#111; } .ber-stepper button:hover { background:#e9e9e9; }
.ber-such { position:relative; } .ber-such input { width:100%; }
.ber-vorschlag { position:absolute; left:0; right:0; top:calc(100% + 4px); z-index:40; background:#fff; border:1px solid #e0e0e0; border-radius:8px; box-shadow:0 8px 24px rgba(0,0,0,.12); padding:4px; max-height:280px; overflow-y:auto; }
.ber-vorschlag button { display:flex; flex-direction:column; align-items:flex-start; gap:1px; width:100%; text-align:left; background:none; border:none; padding:7px 9px; border-radius:6px; cursor:pointer; color:#111; } .ber-vorschlag button:hover { background:#f5f5f5; }
.ber-vorschlag button span { font-size:12px; color:#777; } .ber-vorschlag .klein-text { padding:8px; }
/* Aufmaß wie plancraft: Art-Symbol, Name, Beschreibung, Menge, Maße, Summe, Einheit */
.ber-am { display:flex; flex-direction:column; gap:10px; }
.ber-am-z { display:grid; grid-template-columns:26px minmax(0,2fr) minmax(0,1.6fr) 74px 84px 84px 84px 96px 34px; gap:8px; align-items:end; }
.ber-am-z label { display:flex; flex-direction:column; gap:3px; font-size:12.5px; color:#555; min-width:0; } .ber-am-z label input { width:100%; }
.ber-am-z .ber-am-breit { grid-column:span 2; } .ber-am-ic { display:flex; align-items:center; justify-content:center; height:36px; color:#111; }
.ber-am-summe { display:flex; align-items:center; height:36px; padding:0 10px; background:#f2f2f2; border-radius:8px; color:#111; font-variant-numeric:tabular-nums; }
.ber-am-z .gefahr { color:var(--rot); } .ber-am-z .auswahl { width:100% !important; min-width:0 !important; }
@media (max-width:1100px) { .ber-am-z { grid-template-columns:26px 1fr 1fr; } .ber-am-z .ber-am-breit { grid-column:span 1; } }
/* Fuhrpark (Konzept 25.10.2026): Übersicht und Fahrzeugakte */
.fz-tabelle td { vertical-align:top; } .fz-bedarf { font-size:12.5px; color:var(--rot); white-space:nowrap; }
.fz-kopf-info { display:flex; gap:22px; margin-left:18px; padding-left:18px; border-left:1px solid var(--linie); } .fz-kopf-info div { display:flex; flex-direction:column; min-width:0; }
.fz-kopf-info span { font-size:12px; color:var(--grau); } .fz-kopf-info b { font-size:14.5px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:260px; }
@media (max-width:1100px) { .fz-kopf-info { display:none; } }
.fz-hinweis { margin:0 0 14px; }
.fz-fristen { display:flex; gap:12px; flex-wrap:wrap; } .fz-frist { background:#fff; border:1px solid var(--linie); border-radius:10px; padding:12px 16px; display:flex; flex-direction:column; gap:2px; min-width:220px; }
.fz-frist > span:first-child { font-size:12.5px; color:var(--grau); } .fz-frist b { font-size:17px; } .fz-frist.rot { border-color:var(--rot); } .fz-frist.rot b { color:var(--rot); } .fz-frist.gelb { border-color:#e0b000; }
.fz-frist .link { align-self:flex-start; padding:0; margin-top:4px; }
.fz-kosten-kopf { display:flex; gap:10px; flex-wrap:wrap; margin-bottom:14px; } .fz-kz { background:#fff; border:1px solid var(--linie); border-radius:10px; padding:10px 14px; display:flex; flex-direction:column; min-width:130px; }
.fz-kz span { font-size:12.5px; color:var(--grau); } .fz-kz b { font-size:16px; } .fz-kz.gross { background:#111; color:#fff; border-color:#111; } .fz-kz.gross span { color:#ccc; } .fz-kz.gross b { font-size:20px; }
.fz-jahre { margin-bottom:14px; } .fz-jahre h3 { margin:0 0 8px; } .fz-jahr { display:grid; grid-template-columns:50px 1fr 110px; align-items:center; gap:10px; margin:5px 0; font-size:13.5px; }
.fz-jahr i { display:block; height:10px; background:var(--rot); border-radius:5px; } .fz-jahr b { text-align:right; }
.re-fz { margin-top:12px; }

/* Kostenzuweisung: Ziel-Knopf, Kostenart und Betrag ohne Überlappung (Dom 25.10.2026) */
.re-zeile { grid-template-columns:minmax(0, 1fr) 140px 120px 30px; } .re-zeile .auswahl { width:100% !important; min-width:0 !important; } .re-zeile > * { min-width:0; }
.re-ziel { display:inline-block; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.4px; color:#666; background:#f1f1f1; border-radius:5px; padding:1px 6px; margin-right:4px; }
.kz-reiter { margin:0; } .kz-liste { max-height:52vh; overflow-y:auto; display:flex; flex-direction:column; gap:2px; }
.kz-liste button { display:flex; flex-direction:column; align-items:flex-start; text-align:left; background:none; border:none; border-radius:8px; padding:8px 10px; cursor:pointer; color:#111; } .kz-liste button:hover { background:#f5f5f5; }
.re-fz { display:none; }

.fz-verlauf { display:grid; grid-template-columns:1fr 1fr; gap:14px; align-items:start; } .fz-sp-titel { margin:4px 0 8px; font-size:15px; }
@media (max-width:1000px) { .fz-verlauf { grid-template-columns:1fr; } }
.pa-ressourcen { margin-bottom:6px; } .pa-res-titel { margin-top:14px; }

/* Rechnung: Knöpfe ruhig wie plancraft statt roter Links */
.re-dazu { display:inline-flex; align-items:center; gap:6px; background:#fff; border:1px solid #d9d9d9; border-radius:8px; padding:6px 12px; font-size:13.5px; color:#111; cursor:pointer; } .re-dazu:hover { border-color:#999; }
.re-ziel-weg { font-weight:400; margin-left:4px; color:#777; } .re-ziel-weg:hover { color:#111; }
/* Menü „Belege“ (Dom 25.10.2026): Eingang (Angebote, Rechnungen) und Ausgang (Angebote, Rechnungen) zusammen */
.nur-crm-inline { display:none; } body.crm .nur-crm-inline { display:contents; }
.flyout-gruppe { font-size:11px; letter-spacing:.6px; text-transform:uppercase; color:#888; padding:8px 14px 2px; }
body:not(.beta) .flyout-gruppe { display:none; }
/* Filter „Zuweisung“: Name links, Status und Anzahl rechts, ruhig */
.fp-eintrag .fp-zt { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-weight:400; } .fp-zahl { margin-left:auto; color:#777; font-size:12.5px; min-width:22px; text-align:right; }
.fp-eintrag > span:has(.fp-zt) { display:flex; align-items:center; gap:8px; flex:1; min-width:0; }
.re-dazu-liste { display:flex; flex-direction:column; align-items:flex-start; gap:6px; margin:8px 0 0; }
/* Kosten-Ziel-Suche: Einträge ruhig, beim Drüberfahren nur grau hinterlegt */
.suchfenster.kz .gs-text b { font-weight:500; font-size:14.5px; } .suchfenster.kz .gs-zeile { cursor:pointer; } .suchfenster.kz .gs-zeile:hover { text-decoration:none; }
.fb-fotos { display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; } .fb-fotos img { width:120px; height:90px; object-fit:cover; border-radius:8px; border:1px solid #e3e3e3; cursor:zoom-in; }
/* Urlaubsplaner (public/urlaub.js): Monatsraster, ein Farbchip je Tag */
.zk-planer { padding:0; overflow-x:auto; } .zk-planer table { border-collapse:collapse; width:100%; font-size:12px; }
.zk-planer th, .zk-planer td { border-bottom:1px solid var(--linie); text-align:center; padding:4px 0; min-width:26px; }
.zk-planer th { font-weight:500; color:var(--grau); } .zk-planer th span { display:block; font-size:10px; }
.zk-planer .zk-name { text-align:left; padding:6px 12px; min-width:160px; white-space:nowrap; position:sticky; left:0; background:#fff; font-size:13px; }
.zk-planer .frei { background:var(--hell); } .zk-planer .heute { box-shadow:inset 0 0 0 1px var(--schwarz); }
.zk-z { display:inline-block; width:16px; height:16px; border-radius:4px; vertical-align:middle; background:#303030; }
.zk-z.urlaub { background:var(--rot); } .zk-z.beantragt { background:#fff; border:2px dashed var(--rot); box-sizing:border-box; }
.zk-z.krank { background:#575D5E; } .zk-z.ueberstunden { background:#c9a227; } .zk-z.abwesend { background:#989EA1; }
.zk-z.unbezahlt { background:#d6d6d6; } .zk-z.schule { background:#8a7fb0; } .zk-z.halb { width:8px; }
.zk-legende { display:flex; gap:14px; flex-wrap:wrap; font-size:13px; color:var(--grau); } .zk-legende span { display:inline-flex; align-items:center; gap:6px; } .zk-legende .zk-z { width:12px; height:12px; }
/* Anfrage (Dom 25.10.2026): erst was passiert, dann der Kunde; Kontakt schlicht statt rot */
.an-kopf-kunde { font-weight:400; color:var(--grau); margin-left:10px; font-size:.8em; }
a.an-still { color:#111; text-decoration:none; } a.an-still:hover { text-decoration:underline; }
/* Pipeline: Farbe nach Liegezeit in der Phase */
.crm-karte.alt-gruen { background:#eef8f1; border-color:#cfe9d8; } .crm-karte.alt-gelb { background:#fff6e6; border-color:#f5ddb0; } .crm-karte.alt-rot { background:#fdeeee; border-color:#f3c9c9; }
.verlauf-diff { display:flex; flex-direction:column; gap:2px; margin-top:3px; font-size:13px; color:#444; } .verlauf-diff b { font-weight:500; }
.verlauf-diff details summary { cursor:pointer; color:var(--grau); font-size:12.5px; } .verlauf-diff details span { display:block; }
.verlauf-bereich { font-style:normal; background:#f1f1f1; border-radius:4px; padding:0 5px; font-size:12px; }
.fb-foto-neu { position:relative; display:inline-block; } .fb-foto-neu img { width:96px; height:72px; object-fit:cover; border-radius:8px; border:1px solid #e3e3e3; }
.fb-foto-neu button { position:absolute; top:3px; right:3px; width:22px; height:22px; padding:0; border-radius:50%; border:none; background:rgba(0,0,0,.6); color:#fff; font-size:11px; cursor:pointer; }
/* Beantragter Urlaub in der Plantafel: gestrichelt, nach dem Genehmigen fest */
.pt-balken.abw.beantragt { background:repeating-linear-gradient(135deg, #f4f4f4 0 6px, #e9e9e9 6px 12px); border:1.5px dashed #9a9a9a; color:#555; }
/* Einsatz-Fenster der Plantafel (Dom 25.10.2026): Projekt als Karte, Ganztägig eigene Zeile, kein roter Link */
.pt-wahl[data-projektwahl] { height:auto !important; min-height:52px !important; padding:8px 12px !important; justify-content:space-between; gap:10px; font-weight:400; }
.pt-wahl-text { display:flex; flex-direction:column; gap:2px; min-width:0; } .pt-wahl-text > span { font-size:15px; color:#111; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.pt-wahl-text small { font-size:12.5px; color:var(--grau); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; } .pt-wahl[data-projektwahl] .ic { flex:none; color:#999; }
.pt-wahl.leer .pt-wahl-text > span { color:#888; }
.pt-ganz-zeile { align-self:flex-start; font-size:14px; color:#333; }
.pt-res-neu { border:1px dashed #cfcfcf; background:#fff; color:#555; border-radius:14px; padding:4px 10px; font-size:13px; display:inline-flex; align-items:center; gap:4px; font-weight:400; }
.pt-res-neu:hover { border-color:#999; color:#111; }
/* Zeiten-Tabelle (Dom 25.10.2026): Beginn/Ende eigene Spalten, Projekt zweizeilig, Summen im Fuß unter Stunden und Pause */
.zt-tabelle td { vertical-align:middle; height:auto; padding-top:10px; padding-bottom:10px; }
.zt-projekt-zelle { max-width:280px; }
.zt-projekt { display:flex; flex-direction:column; color:inherit; text-decoration:none; line-height:1.3; } .zt-projekt:hover span { text-decoration:underline; }
.zt-projekt span { white-space:normal; } .zt-projekt small { color:var(--grau); font-size:12.5px; }
.zt-tabelle tfoot td { background:#fafafa; border-top:1px solid #e6e6e6; border-bottom:none; height:auto; padding-top:12px; padding-bottom:12px; position:sticky; bottom:0; z-index:2; }
.zt-seitenreiter { margin:-4px 0 16px; }
.zt-seitenreiter a { color:inherit; text-decoration:none; }
.pa-reiter > a { background:none; border-bottom:2px solid transparent; padding:8px 6px 8px; margin-right:10px; font-size:15px; font-weight:500; color:#6a6a6a; text-decoration:none; }
.pa-reiter > a.an { color:#131313; font-weight:600; border-bottom-color:#131313; } .pa-reiter > a:hover { color:#111; text-decoration:none; }
/* Feste Tabellen in Unterbereichen (Zeiten-Reiter, Personalakte): Seite steht, Tabelle scrollt, Fuß unten */
@media (min-width:761px) {
  main.listen-seite .fest-huelle { flex:1 1 auto; min-height:0; display:flex; flex-direction:column; overflow:hidden; }
  main.listen-seite .fest-huelle > * { flex:none; }
  main.listen-seite .tabelle.fest { flex:1 1 auto !important; min-height:160px; display:flex; flex-direction:column; overflow:hidden; }
  main.listen-seite .tabelle.fest > .tabelle-scroll { flex:1 1 auto; min-height:0; overflow:auto; }
  main.listen-seite .tabelle.fest th { position:sticky; top:0; z-index:2; }
  main.listen-seite .tabelle.fest tfoot td { position:sticky; bottom:0; z-index:2; }
}
.tabelle tfoot td { background:#fafafa; border-top:1px solid #e6e6e6; border-bottom:none !important; height:auto; padding-top:12px; padding-bottom:12px; font-size:14px; }
/* Zeitkonto */
.zk-leiste { flex-wrap:wrap; gap:10px; }
.zk-blaettern { display:inline-flex; align-items:center; gap:6px; } .zk-blaettern b { min-width:150px; text-align:center; font-weight:600; }
.zk-karten { display:grid; grid-template-columns:minmax(0, 1.2fr) minmax(0, 1.5fr) minmax(220px, .8fr); gap:16px; margin-bottom:16px; }
@media (max-width:1100px) { .zk-karten { grid-template-columns:1fr 1fr; } .zk-antraege-klein { grid-column:1 / -1; } }
.zk-karten .ma-karte { margin:0; } .zk-karten .ma-zahlen { flex-wrap:wrap; row-gap:12px; }
.zk-antraege-klein { display:flex; flex-direction:column; gap:6px; }
.zk-antrag-zeile { display:grid; grid-template-columns:1fr auto auto auto; align-items:center; gap:8px; font-size:13.5px; padding:4px 0; border-bottom:1px solid #f0f0f0; }
.zk-antrag-zeile:last-of-type { border-bottom:none; } .zk-antrag-zeile .punkte-knopf, .zk-antrag-zeile .icon-knopf { width:28px; height:28px; }
.zk-mehr-link { font-size:13px; color:var(--grau); margin-top:4px; } .zk-mehr-link:hover { color:#111; }
.zk-tabelle td { height:auto; padding-top:9px; padding-bottom:9px; }
.zk-tabelle tr.zk-frei td { background:#fafafa; color:#999; } .zk-tabelle tr.zk-zukunft td { color:#aaa; } .zk-tabelle tr.zk-heute td { box-shadow:inset 0 -2px 0 #111; }
.zk-person { margin:0 0 12px; }
/* Urlaubsplaner wie die Plantafel */
.zp-tafel { background:#fff; border:1px solid var(--linie); border-radius:10px; overflow:auto; max-height:calc(100vh - 230px); }
.zp-kopf, .zp-zeile { display:flex; min-width:max-content; }
.zp-kopf { position:sticky; top:0; z-index:3; background:#fff; border-bottom:1px solid var(--linie); }
.zp-name { flex:none; width:190px; position:sticky; left:0; z-index:2; background:#fff; border-right:1px solid var(--linie); padding:0 14px; display:flex; align-items:center; font-size:14px; }
.zp-kopf .zp-name { z-index:4; }
.zp-tage { position:relative; display:flex; flex:none; }
.zp-tag { flex:none; width:38px; border-right:1px solid #f1f1f1; text-align:center; font-size:12px; color:var(--grau); display:flex; flex-direction:column; justify-content:center; }
.zp-kopf .zp-tag { height:46px; } .zp-kopf .zp-tag b { font-size:14px; color:#222; font-weight:500; }
.zp-zeile { border-bottom:1px solid #f1f1f1; } .zp-zeile .zp-tag, .zp-zeile .zp-name { height:42px; }
.zp-tag.frei { background:#f6f6f6; } .zp-tag.heute { background:#eaf5ee; } .zp-kopf .zp-tag.heute b { color:#1f7a4d; font-weight:700; }
.zp-balken { position:absolute; top:7px; height:28px; border-radius:6px; border:none; background:#e6e6e6; color:#333; display:flex; align-items:center; gap:5px; padding:0 8px; font-size:13px; font-weight:400; overflow:hidden; white-space:nowrap; cursor:pointer; z-index:1; }
.zp-balken:hover { filter:brightness(.96); } .zp-text { overflow:hidden; text-overflow:ellipsis; }
.zp-balken.zp-urlaub { background:#d3f1e3; } .zp-balken.zp-krank, .zp-balken.zp-abwesend { background:#e9e9e9; } .zp-balken.zp-ueberstunden { background:#f9e7a8; } .zp-balken.zp-schule { background:#e2ddfc; } .zp-balken.zp-unbezahlt { background:#fde0cf; }
.zp-balken.beantragt { background:repeating-linear-gradient(135deg, #fff 0 6px, #f1f1f1 6px 12px) !important; border:1.5px dashed #9a9a9a; color:#555; }
.zp-muster { display:inline-block; width:22px; height:12px; border-radius:3px; background:#d3f1e3; vertical-align:middle; } .zp-muster.beantragt { background:repeating-linear-gradient(135deg, #fff 0 4px, #eee 4px 8px); border:1.5px dashed #9a9a9a; }
.zk-karten .ma-zahlen { flex-wrap:nowrap; gap:6px; } .zk-karten .ma-zahl { min-width:0; flex:1; } .zk-karten .ma-zahl b { font-size:22px; } .zk-karten .ma-zahl small, .zk-karten .ma-zahl span { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.pt-emoji { font-size:14px; line-height:1; }
.ma-links { display:flex; gap:8px; margin-bottom:12px; }
.ma-ablage { padding:0; } .ma-ablage-kopf { display:flex; align-items:center; padding:10px 14px; border-bottom:1px solid var(--linie); } .ma-ablage #ma-ab-inhalt { padding:6px 0; }
/* Bonussystem */
.bo-raster { display:grid; grid-template-columns:minmax(0, 1.3fr) minmax(0, 1fr); gap:16px; margin-bottom:16px; } @media (max-width:1000px) { .bo-raster { grid-template-columns:1fr; } }
.bo-rang h3, .bo-regeln h3 { margin:0 0 10px; }
.bo-zeile { display:grid; grid-template-columns:34px minmax(110px, 1fr) 2fr 60px 70px; align-items:center; gap:10px; padding:8px 4px; border-bottom:1px solid #f1f1f1; border-radius:6px; }
.bo-zeile:hover { background:#fafafa; } .bo-med { font-size:20px; text-align:center; } .bo-platz { font-size:14px; color:var(--grau); }
.bo-balken { height:8px; background:#f1f1f1; border-radius:4px; overflow:hidden; } .bo-balken i { display:block; height:100%; background:#303030; border-radius:4px; } .bo-balken i.minus { background:var(--rot); }
.bo-punkte { text-align:right; font-size:15px; } .bo-detail { text-align:right; }
.bo-regel { display:grid; grid-template-columns:44px 1fr auto; align-items:center; gap:10px; padding:7px 0; border-bottom:1px solid #f1f1f1; } .bo-regel.aus { opacity:.5; }
.bo-regel > span { display:flex; flex-direction:column; } .bo-regel small { font-size:12.5px; }
.bo-regel > span .marke { align-self:flex-start; margin:2px 0; }

/* Benachrichtigung wieder ungelesen (Glocke bei gelesenen, Dom 26.10.2026) */
.mt-eintrag { grid-template-columns:22px minmax(0, 1fr) 26px; }
.mt-wieder { display:flex; align-items:center; justify-content:center; width:26px; height:26px; border-radius:50%; color:#aaa; opacity:0; transition:opacity .12s; }
.mt-eintrag:hover .mt-wieder, .mt-wieder:focus { opacity:1; } .mt-wieder:hover { background:#ececec; color:var(--rot, #e40000); }
.mt-eintrag .mt-punkt { justify-self:center; }

/* Benachrichtigungen unter Profil & Passwort (Dom 26.10.2026) */
.bn-rechner .bn-zeile { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:7px 0; }
.bn-rechner .bn-zeile > span { display:flex; flex-direction:column; gap:2px; }
.bn-rechner .bn-titel { font-weight:600; margin:16px 0 4px; }
.bn-rechner .bn-gruppe { margin-top:6px; }
.bn-rechner input[type=checkbox] { width:18px; height:18px; accent-color:var(--rot, #e40000); }
.bn-schalter { width:46px; height:27px; border-radius:14px; border:none; background:#d9d9d9; position:relative; padding:0; cursor:pointer; flex:none; transition:background .15s; }
.bn-schalter span { position:absolute; top:3px; left:3px; width:21px; height:21px; border-radius:50%; background:#fff; box-shadow:0 1px 3px rgba(0,0,0,.25); transition:left .15s; }
.bn-schalter.an { background:var(--rot, #e40000); } .bn-schalter.an span { left:22px; }
/* Zurück links, Schließen rechts (Dom 27.10.2026, ersetzt „Schließen immer links“ vom 26.10.): ✕ steht in Fenstern, Seitenfenstern und Betrachtern rechts oben */
.dv-trenner { width:1px; height:22px; background:rgba(255,255,255,.2); margin:0 6px; }
dialog .pt-panel-kopf > [data-zu].icon-knopf, dialog .ber-neu-kopf > [data-zu].icon-knopf, dialog .leiste > [data-zu].icon-knopf { margin-left:auto; }
dialog .leiste:has(> [data-zu].icon-knopf) > h2 { flex:1; }
.td-senden { flex:none; width:30px; height:30px; padding:0; border-radius:50%; border:none; background:#111; color:#fff; display:inline-flex; align-items:center; justify-content:center; cursor:pointer; }
.td-senden:hover { background:#333; } .td-neu { display:flex; align-items:center; gap:6px; } .td-neu input { flex:1; min-width:0; }
.auf-eingabe-zeile { display:flex; align-items:center; gap:6px; } .auf-eingabe-zeile input { flex:1; min-width:0; }
/* Plantafel-Balken (Dom 26.10.2026): Griffe immer ganz außen (auch mit „2/4“ und Meilenstein), ruhiger Mauszeiger */
.pt-balken .pt-griff { position:absolute; top:0; bottom:0; width:10px; margin:0 !important; z-index:3; cursor:ew-resize; }
.pt-balken .pt-griff.l { left:0; border-radius:6px 0 0 6px; } .pt-balken .pt-griff.r { right:0; border-radius:0 6px 6px 0; }
.pt-balken { padding-left:10px; padding-right:10px; } .pt-balken.mit-todos { padding-right:40px; } .pt-zahl { right:12px; }
.pt-balken:hover .pt-griff { background:none; } .pt-balken .pt-griff:hover { background:rgba(0,0,0,.12); }
.pt-raute { pointer-events:none; z-index:1; }
.zk-karten > .ma-karte:nth-child(2) .ma-zahlen { grid-template-columns:repeat(4, minmax(0, 1fr)); }
/* Urlaubsplaner zum Ziehen (Dom 26.10.2026) */
.zp-gruppe { display:flex; min-width:max-content; background:#fafafa; border-bottom:1px solid var(--linie); } .zp-gruppe .zp-name { height:30px; font-size:12.5px; font-weight:600; color:var(--grau); background:#fafafa; text-transform:none; }
.zp-balken { padding:0 12px; } .zp-balken.ziehbar { cursor:grab; touch-action:none; user-select:none; } .zp-balken.zieht { opacity:.75; cursor:grabbing; z-index:5; box-shadow:0 4px 12px rgba(0,0,0,.15); }
.zp-griff { position:absolute; top:0; bottom:0; width:9px; cursor:ew-resize; } .zp-griff.l { left:0; } .zp-griff.r { right:0; } .zp-griff:hover { background:rgba(0,0,0,.1); }
.zp-geist { background:rgba(31,122,77,.15); outline:2px dashed #1f7a4d; pointer-events:none; }
.zp-zeile .zp-tage { cursor:cell; }
.zp-wahl { display:grid; grid-template-columns:repeat(auto-fill, minmax(200px, 1fr)); gap:10px 18px; max-height:340px; overflow:auto; border:1px solid var(--linie); border-radius:8px; padding:10px 12px; }
.zp-wahl-gruppe { display:flex; flex-direction:column; gap:4px; } .zp-wahl .haken { margin:0; font-size:14px; }
/* Bonus-Statistik */
.bo-statistik { display:grid; grid-template-columns:minmax(0, 1fr) minmax(0, 1fr); gap:16px; margin-bottom:16px; } @media (max-width:1000px) { .bo-statistik { grid-template-columns:1fr; } }
.bo-kennzahlen { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:14px; } .bo-kennzahlen div { display:flex; flex-direction:column; gap:3px; min-width:0; }
.bo-kennzahlen span { font-size:12.5px; color:var(--grau); } .bo-kennzahlen b { font-size:20px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.bo-monate-kopf { display:flex; justify-content:space-between; align-items:baseline; margin-bottom:8px; }
.bo-saeulen { display:grid; grid-template-columns:repeat(12, 1fr); gap:4px; align-items:end; }
.bo-saeule { display:flex; flex-direction:column; align-items:center; justify-content:flex-end; gap:0; height:112px; border:none; background:none; padding:0; cursor:pointer; border-radius:6px; }
.bo-saeule:hover, .bo-saeule.an { background:#f3f3f3; } .bo-s-plus { width:60%; background:#303030; border-radius:3px 3px 0 0; } .bo-s-minus { width:60%; background:var(--rot); border-radius:0 0 3px 3px; }
.bo-saeule small { font-size:11px; color:var(--grau); margin-top:3px; }
/* Bonus 6.26 (Dom 26.10.2026): Zeitraum Monat/Quartal/Jahr, alles auf einer Seite, Listen scrollen in ihren Kästen, luftig wie im Entwurf */
.bo-kopf-rechts { display:flex; align-items:center; gap:10px; } .bo-segment { width:auto; } 
.bo-titel { min-width:124px; text-align:center; }
.bo-av { display:inline-flex; align-items:center; justify-content:center; border-radius:50%; background:#ececec; color:#444; font-weight:600; flex:none; object-fit:cover; }
.bo-av.dunkel { background:var(--schwarz); color:#fff; }
.bo-pl { width:28px; height:28px; border-radius:50%; background:#e6e6e6; color:#444; font-weight:700; font-size:13px; display:inline-flex; align-items:center; justify-content:center; flex:none; }
.bo-pl.p1 { background:var(--rot); color:#fff; } .bo-pl.p2 { background:var(--schwarz); color:#fff; } .bo-pl.p3 { background:#8a8a8a; color:#fff; }
.bo-inhalt { display:flex; flex-direction:column; gap:18px; }
.bo-podest { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:18px; flex:none; }
.bo-top { display:flex; flex-direction:column; gap:14px; text-align:left; font:inherit; color:inherit; cursor:pointer; background:#fff; border:1px solid var(--linie); border-radius:12px; padding:16px 18px; }
.bo-top:hover { border-color:#bbb; background:#fff; } .bo-top.erst { border-color:var(--schwarz); box-shadow:0 1px 0 var(--schwarz); } .bo-top.leer { align-items:center; justify-content:center; cursor:default; background:#fafafa; }
.bo-top-kopf { display:flex; align-items:center; gap:12px; } .bo-top-name { flex:1; min-width:0; display:flex; flex-direction:column; gap:4px; } .bo-top-name b { font-size:16px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.bo-top-punkte { display:flex; flex-direction:column; align-items:flex-end; } .bo-top-punkte b { font-size:30px; line-height:32px; }
.bo-top-fuss { display:flex; align-items:center; gap:16px; } .bo-top-fuss > :first-child { flex:1; min-width:0; }
.bo-fort { display:flex; flex-direction:column; gap:6px; } .bo-fort-balken { height:8px; background:#efefef; border-radius:4px; overflow:hidden; } .bo-fort-balken i { display:block; height:100%; background:#303030; border-radius:4px; }
.bo-stufe { font-size:12px; padding:2px 9px; }
.bo-kacheln { display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:18px; flex:none; }
.bo-kachel { background:#fff; border:1px solid var(--linie); border-radius:12px; padding:14px 18px; display:flex; flex-direction:column; gap:4px; min-width:0; }
.bo-kachel > b { font-size:26px; line-height:32px; white-space:nowrap; } .bo-kachel-fuss { border-top:1px solid #f0f0f0; margin-top:6px; padding-top:8px; display:flex; flex-direction:column; gap:4px; min-height:42px; }
.bo-vgl { display:flex; justify-content:space-between; gap:8px; font-size:12.5px; } .bo-vgl > span:first-child { font-weight:600; white-space:nowrap; } .bo-vgl > span:last-child { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.bo-kasten { background:#fff; border:1px solid var(--linie); border-radius:12px; padding:16px 18px; display:flex; flex-direction:column; min-height:0; min-width:0; }
.bo-kasten-kopf { display:flex; align-items:baseline; justify-content:space-between; gap:12px; margin-bottom:10px; flex:none; } .bo-kasten-kopf h2 { margin:0; font-size:15px; font-weight:600; }
.bo-scroll { flex:1 1 auto; min-height:0; overflow:auto; }
.bo-unten { display:grid; grid-template-columns:minmax(0, 1.65fr) minmax(0, 1fr); gap:18px; min-height:0; }
.bo-rechts { display:grid; grid-template-rows:minmax(0, 1fr) minmax(0, 1fr); gap:18px; min-height:0; }
.bo-tab { width:100%; border-collapse:collapse; } .bo-tab th { position:sticky; top:0; background:#fff; z-index:1; font-size:13px; font-weight:600; color:#6b6b6b; text-align:left; padding:8px 10px; border-bottom:1px solid #eee; white-space:nowrap; }
.bo-tab td { padding:10px; border-bottom:1px solid #f1f1f1; font-size:14px; } .bo-tab tr:last-child td { border-bottom:none; } .bo-tab .zahl { text-align:right; } .bo-tab tr.klick { cursor:pointer; } .bo-tab tr.klick:hover td { background:#fafafa; }
.bo-name { display:inline-flex; align-items:center; gap:10px; white-space:nowrap; } .bo-balken-zelle { width:24%; } .bo-balken-zelle .bo-balken { display:block; } .bo-balken i.erst { background:var(--rot); }
.bo-regel-zeile { display:grid; grid-template-columns:1fr 40px 52px; gap:8px; align-items:center; padding:8px 0; border-bottom:1px solid #f1f1f1; font-size:14px; } .bo-regel-zeile > :nth-child(2), .bo-regel-zeile b { text-align:right; }
.bo-letzt { display:grid; grid-template-columns:50px 26px 1fr auto; gap:10px; align-items:center; padding:8px 0; border-bottom:1px solid #f1f1f1; font-size:14px; } .bo-letzt:last-child { border-bottom:none; }
.bo-person-kopf { display:flex; align-items:center; gap:18px; background:#fff; border:1px solid var(--linie); border-radius:12px; padding:16px 20px; flex:none; flex-wrap:wrap; }
.bo-kz-name { flex:1; min-width:180px; display:flex; flex-direction:column; gap:4px; } .bo-kz-name b { font-size:22px; }
.bo-kz-wert { display:flex; flex-direction:column; align-items:center; padding:0 18px; border-left:1px solid var(--linie); } .bo-kz-wert b { font-size:26px; line-height:32px; }
.bo-kz-stufe { width:240px; display:flex; flex-direction:column; gap:6px; padding-left:18px; border-left:1px solid var(--linie); }
.bo-wer { align-self:flex-start; }
.bo-person-mitte { display:grid; grid-template-columns:minmax(0, 1.3fr) minmax(0, 1fr); gap:18px; flex:none; height:270px; }
.bo-monate-grafik { width:100%; height:auto; flex:1; min-height:0; }
.bo-wofuer { display:flex; flex-direction:column; gap:8px; } .bo-wofuer-karte { display:flex; align-items:center; gap:12px; border:1px solid var(--linie); border-radius:10px; padding:10px 14px; }
.bo-wofuer-karte > div { flex:1; min-width:0; display:flex; flex-direction:column; } .bo-wofuer-karte > div b { font-size:14px; } .bo-wofuer-karte > b { font-size:18px; }
.bo-person-liste { min-height:0; }
.bo-regeln-seite { height:auto; flex:1; min-height:0; grid-template-columns:minmax(0, 1.3fr) minmax(0, 1fr); }
.bo-legende { display:flex; gap:12px; } .bo-legende i { display:inline-block; width:10px; height:10px; border-radius:2px; margin-right:5px; vertical-align:-1px; } .bo-legende i.schwarz { background:#303030; } .bo-legende i.grau { background:#bdbdbd; }
@media (min-width:1101px) {
  main.bo-seite-fest { padding-bottom:24px; } main.bo-seite-fest > .kopf, main.bo-seite-fest > .pa-reiter { flex:none; }
  main.bo-seite-fest .bo-inhalt { flex:1 1 auto; min-height:0; } main.bo-seite-fest .bo-unten, main.bo-seite-fest .bo-person-liste, main.bo-seite-fest .bo-regeln-seite { flex:1 1 auto; }
  main.bo-seite-fest .bo-inhalt > .bo-person-liste:only-child { flex:1 1 auto; }
}
@media (max-width:1100px) { .bo-podest, .bo-unten, .bo-person-mitte { grid-template-columns:1fr; height:auto; } .bo-kacheln { grid-template-columns:repeat(2, minmax(0, 1fr)); } .bo-scroll { max-height:420px; } }
.marke.ab-ziel { background:#eef3ff; color:#30406b; font-size:11.5px; margin-left:6px; } /* nur die alte Marke – der Pfad in der Ablage (.ab-krume.ab-ziel) bleibt neutral (Dom 29.10.2026) */
.zp-wahl label.haken { display:flex !important; flex-direction:row !important; align-items:center; gap:8px; text-align:left; } .zp-wahl label.haken input { width:auto; margin:0; }
.dv-trenner { display:none; } .dv-rechts .dv-trenner { display:block; }
/* Feedback-Board mit sechs Stufen (Dom 26.10.2026): nebeneinander, bei wenig Platz waagerecht scrollen */
.fb-board { grid-template-columns:repeat(6, minmax(210px, 1fr)); overflow-x:auto; padding-bottom:6px; }
@media (max-width:900px) { .fb-board { grid-template-columns:repeat(6, 260px); } }
.fb-spalte[data-spalte="verworfen"] { opacity:.8; }

/* Plantafel: Einsatz erledigt (aus der Handy-App) */
.pt-balken.erledigt { opacity:.55; background-image:repeating-linear-gradient(135deg, rgba(255,255,255,.35) 0 6px, transparent 6px 12px) !important; }
.pt-haken { display:inline-flex; align-items:center; justify-content:center; width:15px; height:15px; margin-right:4px; border-radius:50%; background:#fff; color:#1a8a3a; font-size:11px; font-weight:700; }
.pt-erledigt-info { margin:0 0 12px; padding:10px 12px; border-radius:8px; background:#e8f6ec; color:#14612a; font-size:14px; } .pt-erledigt-info div { margin-top:4px; color:#333; }
.pp-zeile.pp-erledigt b, .pp-zeile.pp-erledigt span { color:#1a8a3a; } .pp-zeile.pp-erledigt .pt-haken { background:#1a8a3a; color:#fff; }
.fb-mehr { width:100%; margin-top:4px; border:1px dashed #cfcfcf; background:#fff; color:#555; font-size:13px; font-weight:400; padding:6px; border-radius:8px; }
.fb-notiz-ic { display:inline-flex; align-items:center; gap:3px; font-size:11.5px; color:#555; background:#f3f3f3; border-radius:4px; padding:1px 5px; margin-top:4px; }
.fbs-zeile { display:grid; grid-template-columns:1fr auto 26px 30px 30px 30px; gap:6px; align-items:center; padding:5px 0; } .fbs-zeile .haken { display:flex; gap:6px; align-items:center; margin:0; font-size:13px; white-space:nowrap; }
/* Übersicht / Dashboard (Bauplan aus dem Design-Canvas, Dom 26.10.2026) */
.db { display:flex; flex-direction:column; gap:16px; }
.db-kopf { display:flex; align-items:flex-end; justify-content:space-between; gap:12px; flex-wrap:wrap; } .db-kopf h1 { margin:0; }
.db-zeit { display:flex; align-items:center; gap:8px; flex-wrap:wrap; } .db-zeit b { min-width:120px; text-align:center; } 
.db-reiter { margin:-6px 0 0; }
.db-suche input { flex:1; max-width:700px; }
.db-kacheln { display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:16px; }
.db-kachel { display:flex; flex-direction:column; gap:6px; background:#fff; border:1px solid #e5e5e5; border-radius:12px; padding:14px 16px; min-width:0; text-decoration:none !important; color:#111 !important; }
.db-kachel:hover { border-color:#c9c9c9; } .db-k-titel { font-size:13px; color:#6b6b6b; } .db-k-wert { font-size:26px; line-height:32px; font-variant-numeric:tabular-nums; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.db-k-fuss { display:flex; flex-direction:column; gap:3px; border-top:1px solid #f1f1f1; padding-top:7px; min-height:18px; }
.db-vgl { display:flex; justify-content:space-between; gap:8px; font-size:12.5px; } .db-vgl span:first-child { font-weight:600; white-space:nowrap; } .db-vgl span:last-child { color:#6b6b6b; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.db-k-extra { font-size:12.5px; color:#6b6b6b; }
.db-k-balken { height:6px; border-radius:3px; background:#efefef; overflow:hidden; } .db-k-balken i { display:block; height:100%; background:#303030; border-radius:3px; }
.db-reihe { display:grid; grid-template-columns:minmax(0, 1fr); gap:16px; align-items:stretch; } .db-reihe.zwei-eins { grid-template-columns:minmax(0, 2fr) minmax(0, 1fr); } .db-reihe.zwei { grid-template-columns:minmax(0, 1fr) minmax(0, 1fr); }
.db-kasten { background:#fff; border:1px solid #e5e5e5; border-radius:12px; padding:16px 18px; display:flex; flex-direction:column; gap:12px; min-width:0; }
.db-kasten-kopf { display:flex; align-items:baseline; gap:10px; } .db-kasten-kopf > div { flex:1; } .db-kasten h3 { margin:0; font-size:15px; }
.db-legende { display:flex; gap:14px; font-size:12.5px; color:#6b6b6b; } .db-legende span { display:inline-flex; align-items:center; gap:6px; }
.db-legende .linie { width:18px; height:0; border-top:2.5px solid #303030; } .db-legende .linie.vgl { border-top:2px dashed #a8a8a8; }
.db-linie { width:100%; height:auto; display:block; }
.db-vert { display:flex; flex-direction:column; gap:10px; }
.db-vert-zeile { display:grid; grid-template-columns:120px 1fr 96px; gap:10px; align-items:center; text-decoration:none !important; color:#111 !important; font-size:13.5px; }
.db-vert-zeile > span:first-child { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.db-vert-balken { height:14px; background:#f3f3f3; border-radius:4px; } .db-vert-zeile.trichter .db-vert-balken { height:24px; }
.db-vert-balken i { display:flex; align-items:center; justify-content:flex-end; padding-right:8px; box-sizing:border-box; height:100%; background:#303030; border-radius:4px; color:#fff; font-size:12px; font-weight:600; font-style:normal; }
.db-vert-wert { font-size:13px; text-align:right; font-variant-numeric:tabular-nums; color:#444; }
.db-saeulen { position:relative; display:grid; grid-template-columns:repeat(8, 1fr); gap:8px; align-items:end; height:170px; padding-top:10px; }
.db-saeule { display:flex; flex-direction:column; align-items:center; justify-content:flex-end; gap:3px; height:100%; text-decoration:none !important; color:#111 !important; }
.db-saeule i { width:70%; border-radius:4px 4px 0 0; } .db-saeule small { font-size:11px; color:#6b6b6b; } .db-s-wert { font-size:11.5px; font-weight:600; }
.db-s-linie { position:absolute; left:0; right:0; border-top:1px dashed #bbb; pointer-events:none; }
.db-tab { border:none; } .db-tab td small { display:block; color:#6b6b6b; font-size:12px; } .db-tab td { height:auto; padding-top:9px; padding-bottom:9px; }
.db-ampel { display:flex; align-items:center; gap:12px; padding:10px 0; border-bottom:1px solid #f1f1f1; text-decoration:none !important; color:#111 !important; }
.db-ampel > span:first-child { width:24px; height:24px; border-radius:50%; font-weight:700; font-size:13px; display:flex; align-items:center; justify-content:center; flex:none; }
.db-ampel-text { flex:1; font-size:14px; } .db-ampel b { font-variant-numeric:tabular-nums; } .db-pfeil { color:#bbb; }
.db-sich { display:flex; align-items:center; gap:12px; font-size:13px; color:#6b6b6b; } .db-sich.warn { color:#c62828; }
@media (max-width:1000px) { .db-kacheln { grid-template-columns:repeat(2, minmax(0, 1fr)); } .db-reihe.zwei-eins, .db-reihe.zwei { grid-template-columns:1fr; } }
.segment > a { text-decoration:none !important; text-align:center; }
.db-leer { display:flex; align-items:center; justify-content:center; min-height:180px; color:#8a8a8a; font-size:14px; background:#fafafa; border-radius:8px; }
.db-linie { max-height:320px; }
.fb-rest { margin-top:6px; background:#fff; border-radius:8px; padding:6px 8px; max-height:240px; overflow:auto; }
.fb-rest-zeile { display:flex; justify-content:space-between; gap:8px; padding:5px 2px; border-top:1px solid #f1f1f1; font-size:13px; cursor:pointer; } .fb-rest-zeile:hover span { text-decoration:underline; }
.fb-rest-zeile span { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; min-width:0; } .fb-rest-zeile small { flex:none; color:var(--grau); font-size:11.5px; }

/* Rollen & Rechte wie plancraft (6.16) */
.rr-wahl { display:flex; align-items:center; gap:8px; margin:4px 0 16px; flex-wrap:wrap; }
.rr-wahl select { min-width:280px; font-weight:600; }
.rr-wahl .icon-knopf { width:30px; height:30px; border-color:transparent; background:none; color:var(--grau); }
.rr-wahl .icon-knopf:hover { border-color:#d9d9d9; color:var(--schwarz); }
.rr-tabelle { max-width:860px; }
.rr-tabelle td, .rr-tabelle th { vertical-align:middle; }
.rr-tabelle .rr-spalte { width:90px; text-align:center; }
.rr-tabelle .rechte-gruppe td { font-size:11px; text-transform:uppercase; letter-spacing:.8px; color:var(--grau); background:var(--hell); padding-top:14px; }
.rr-haken { width:22px; height:22px; padding:0; display:inline-flex; align-items:center; justify-content:center; border:1.5px solid #c9cdd0; border-radius:6px; background:#fff; color:#fff; cursor:pointer; }
.rr-haken.an { background:var(--rot, #E40000); border-color:var(--rot, #E40000); }
.rr-haken:disabled { cursor:not-allowed; opacity:.45; }
.rr-strich { color:#b8bdc0; }
.rr-lizenz { display:grid; gap:8px; margin-top:14px; }
.rr-lizenz-wahl { display:flex; gap:10px; align-items:flex-start; padding:10px 12px; border:1px solid #e3e3e3; border-radius:8px; cursor:pointer; }
.rr-lizenz-wahl:has(input:checked) { border-color:var(--rot, #E40000); }
.rr-lizenz-wahl > span { display:flex; flex-direction:column; gap:2px; }
body > .nur-handy { max-width:420px; margin:12vh auto; padding:0 16px; text-align:center; display:flex; flex-direction:column; align-items:center; gap:12px; }
body > .nur-handy h1 { margin:12px 0 0; } body > .nur-handy p { color:var(--grau); margin:0 0 8px; }
body > .nur-handy .knopf { display:inline-block; padding:10px 18px; border-radius:8px; background:var(--rot, #E40000); color:#fff; text-decoration:none; font-weight:600; }
body > .nur-handy button { background:none; border:none; color:var(--grau); cursor:pointer; }
.rr-hinweis { max-width:860px; margin:-6px 0 14px; padding:10px 12px; border-left:3px solid var(--rot, #E40000); background:var(--hell); font-size:13px; }
/* Mitarbeiter im Projekt (6.20) */
.pakte-ma { display:flex; flex-direction:column; gap:10px; max-width:560px; }
.pma-dazu { max-width:560px; }
.pma-liste { display:flex; flex-wrap:wrap; gap:6px; }
.pma-chip { display:inline-flex; align-items:center; gap:6px; padding:4px 8px 4px 10px; border-radius:6px; background:#ececec; font-size:14px; }
.pma-chip button { border:none; background:none; padding:2px; cursor:pointer; color:var(--grau); display:inline-flex; }
.pma-chip button:hover { color:var(--schwarz); }
/* Linie anfassen: genaue Zahlen über der Grafik (6.35) */
.db-linie[data-punkte] { touch-action:pan-y; cursor:crosshair; }
.db-linie-info { display:flex; flex-wrap:wrap; gap:4px 14px; align-items:baseline; font-size:13.5px; min-height:20px; } .db-linie-info b { font-size:14px; } .db-linie-info .vgl { color:#8a8a8a; }
/* Nodus als Hauptsystem (6.24): Projekt bearbeiten, Kunden, Empfänger */
a.knopf.primaer, a.knopf-link { display:inline-flex; align-items:center; height:38px; padding:0 14px; border-radius:8px; text-decoration:none; font-weight:600; font-size:14px; }
a.knopf.primaer { background:var(--rot, #E40000); color:#fff; } a.knopf.primaer:hover { filter:brightness(.95); }
a.knopf-link { border:1px solid #d9d9d9; background:#fff; color:var(--schwarz); } a.knopf-link:hover { background:var(--hell); }
.seitenkopf-rechts { display:flex; gap:8px; align-items:center; }
.pb { max-width:900px; }
.pb-feld { display:grid; grid-template-columns:140px minmax(0, 560px); gap:12px; align-items:center; margin:8px 0; }
.pb-feld > span { color:var(--schwarz); font-size:14px; }
.pb-feld textarea { resize:none; }
.pb-haken { display:flex; gap:8px; align-items:center; margin:6px 0 10px 152px; font-size:14px; }
.pb-karte { display:flex; gap:12px; align-items:flex-start; max-width:560px; padding:14px 16px; border:1px solid #e1e1e1; border-radius:8px; background:#fafafa; margin-top:8px; line-height:1.45; }
.pb-karte > svg { flex:none; margin-top:3px; color:var(--grau); }
.pb-karte > div { flex:1; }
.pb-zeile { display:flex; gap:8px; max-width:560px; } .pb-zeile select { flex:1; }
.pb-suche { position:relative; max-width:560px; } .pb-suche input { width:100%; }
.pb-treffer { position:absolute; left:0; right:0; top:calc(100% + 4px); z-index:20; background:#fff; border:1px solid #e1e1e1; border-radius:8px; box-shadow:0 8px 24px rgba(0,0,0,.08); max-height:320px; overflow:auto; }
.pb-treffer button { display:flex; flex-direction:column; align-items:flex-start; width:100%; padding:8px 12px; border:none; background:none; text-align:left; cursor:pointer; gap:2px; }
.pb-treffer button:hover { background:var(--hell); } :is(.pb-treffer, .is-treffer, .ck-treffer, .such-treffer, .dok-treffer, .ch-suche-treffer, .cl-zeilen) .such-aktiv { background:var(--hell); outline:2px solid var(--rot); outline-offset:-2px; } .pb-treffer .pb-neu { color:var(--schwarz); font-weight:600; border-top:1px solid #eee; }
.pb-zwischen { margin:8px 0 0; font-size:14px; }
.kd-typ { display:inline-flex; gap:0; } .kd-typ label { cursor:pointer; } .kd-typ input { display:none; }
.kd-typ span { display:inline-block; padding:6px 14px; border:1px solid #d9d9d9; } .kd-typ label:first-child span { border-radius:8px 0 0 8px; } .kd-typ label:last-child span { border-radius:0 8px 8px 0; border-left:none; }
.kd-typ input:checked + span { background:var(--schwarz, #131313); color:#fff; border-color:var(--schwarz, #131313); }
.em-suche { width:100%; margin-bottom:8px; }
.em-liste { max-height:420px; overflow:auto; }
.em-zeile { display:flex; justify-content:space-between; align-items:center; gap:8px; padding:8px 0; border-bottom:1px solid #f0f0f0; } .em-zeile:last-child { border-bottom:none; }
@media (max-width:700px) { .pb-feld { grid-template-columns:1fr; gap:4px; } .pb-haken { margin-left:0; } }
.pb-zeile select { width:100%; } .pb-adresse input:disabled, .pb-adresse select:disabled { background:#f6f6f6; color:#555; }
.em-zeile .icon-knopf, .ap-zeile .icon-knopf { width:30px; height:30px; border-color:transparent; background:none; color:var(--grau); } .em-zeile .icon-knopf:hover, .ap-zeile .icon-knopf:hover { border-color:#d9d9d9; color:var(--schwarz); }

/* Felder A (Bausteine Runde 4, vorher Felder 6.28): der Name steht über dem Feld, das Feld ist 42 px hoch und 9 px rund.
   Gilt für alle Formulare am Rechner (.formular in Fenstern und Seitenfenstern, Plantafel-Felder). Haken und Schalter bleiben wie sie sind. */
.formular label:not(.haken):not(.dok-toggle):not(.schalter):not(:has(> input[type=checkbox])):not(:has(> input[type=radio])), :is(label, div).pt-feld {
  position:relative; box-sizing:border-box; display:flex; flex-direction:column; justify-content:flex-start; flex-shrink:0; gap:5px; padding:0; min-height:0;
  border:none; border-radius:0; background:none; box-shadow:none; font-size:13px; font-weight:400; color:#5e5e5e; }
:is(.formular label:not(.haken):not(.dok-toggle):not(.schalter), label.pt-feld) :where(input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=range]):not([type=color]):not(.datumsfeld *), select, textarea, .auswahl-knopf, .feld-knopf, .datumsfeld, .pt-fest, .pt-wahl) {
  box-sizing:border-box; min-height:42px !important; height:auto; width:100%; border:1px solid #d9d9d9 !important; border-radius:9px !important; background:#fff !important;
  box-shadow:none !important; outline:none !important; padding:9px 12px !important; font-family:inherit; font-size:15px !important; font-weight:400; color:#131313 !important;
  transition:border-color .15s, box-shadow .15s; }
:is(.formular label, label.pt-feld) :is(input:not(.datumsfeld *), select, textarea, .auswahl-knopf, .feld-knopf, .datumsfeld, .pt-wahl):hover { border-color:#c4c4c4 !important; }
:is(.formular label, label.pt-feld) :is(input:not(.datumsfeld *), select, textarea, .auswahl-knopf, .feld-knopf, .pt-wahl):focus, :is(.formular label, label.pt-feld) .datumsfeld:focus-within,
:is(.formular label, label.pt-feld) .auswahl.offen .auswahl-knopf { border-color:#131313 !important; box-shadow:0 0 0 3px rgba(17,17,17,.07) !important; }
:is(.formular label, label.pt-feld) :is(.ungueltig, :user-invalid) { border-color:var(--rot) !important; }
:is(.formular label:not(.haken):not(.dok-toggle):not(.schalter), label.pt-feld) textarea { min-height:84px !important; resize:none; line-height:1.45; }
:is(.formular label, label.pt-feld) :is(input, textarea)::placeholder { color:#a8a8a8; font-weight:400; }
:is(.formular label, label.pt-feld) .auswahl-knopf { display:flex; align-items:center; justify-content:space-between; gap:10px; }
:is(.formular label, label.pt-feld) .auswahl-knopf.leer span { color:#a8a8a8 !important; font-weight:400; }
:is(.formular label, label.pt-feld) .auswahl-knopf svg { color:#9a9a9a; margin-right:-2px; }
:is(.formular label, label.pt-feld) .auswahl { min-width:0; }
:is(.formular label, label.pt-feld) .feld-knopf { display:flex; align-items:center; text-align:left; } :is(.formular label, label.pt-feld) .feld-knopf .klein-text { font-size:15px; color:#a8a8a8; font-weight:400; }
:is(.formular label:not(.haken):not(.dok-toggle):not(.schalter), label.pt-feld) .datumsfeld { position:relative; display:flex; align-items:center; padding:0 !important; }
:is(.formular label, label.pt-feld) .datumsfeld input[type=text] { border:none !important; background:none !important; box-shadow:none !important; outline:none !important; border-radius:9px !important;
  width:100%; min-height:40px; padding:9px 34px 9px 12px !important; font-family:inherit; font-size:15px !important; color:#131313 !important; }
:is(.formular label, label.pt-feld) .datumsfeld .dp-knopf { right:8px; }
/* Liste unter dem Feld: rund, mit Schatten, Suche grau, gewählter Eintrag mit rotem Haken */
.auswahl-liste { border:1px solid #ececec; border-radius:14px; box-shadow:0 18px 44px rgba(0,0,0,.18); padding:8px; }
.auswahl-suche { height:40px; border:none !important; background:#f3f3f3; border-radius:10px; padding:0 12px; font-size:14.5px; margin-bottom:6px; outline:none; }
.auswahl-suche:focus, .auswahl-suche:focus-visible { outline:none !important; box-shadow:none !important; border:none !important; background:#ececec; }
.auswahl-eintrag { padding:9px 10px; border-radius:10px; font-size:14.5px; align-items:center; }
.auswahl-eintrag.aktiv { background:#f4f4f4; }
.auswahl-eintrag.gewaehlt { color:#111; font-weight:600; } .auswahl-eintrag.gewaehlt::after { content:'✓'; color:var(--rot); font-weight:700; margin-left:auto; }
.auswahl-eintraege { max-height:320px; }
/* Arbeitskleidung 6.28 (Dom 26.10.2026) – Seite steht wie beim Bonus (bo-*), Ausgabe-Fenster mit mehreren Teilen */
.kl-artikel { display:flex; align-items:center; gap:12px; } .kl-artikel > span:last-child { display:flex; flex-direction:column; }
.kl-bild { width:42px; height:42px; border-radius:10px; background:#f2f2f2; display:inline-flex; align-items:center; justify-content:center; font-size:21px; flex:none; } .kl-bild.klein { width:34px; height:34px; font-size:17px; }
.kl-groessen { display:flex; gap:5px; flex-wrap:wrap; }
.kl-gr { min-width:44px; height:30px; padding:0 8px; border:none; border-radius:8px; background:#f4f4f4; font:inherit; font-size:12.5px; color:#555; display:inline-flex; align-items:center; justify-content:center; gap:4px; cursor:pointer; }
.kl-gr b { font-size:13.5px; color:#111; } .kl-gr:hover { background:#ebebeb; } .kl-gr.klein { min-width:0; height:20px; padding:0 7px; font-size:11.5px; cursor:default; }
.kl-gr.knapp { background:#fff4e5; color:#8a5a00; } .kl-gr.knapp b { color:#8a5a00; } .kl-gr.leer { background:#fdecec; color:#b42323; } .kl-gr.leer b { color:#b42323; }
.kl-letzt { grid-template-columns:30px 1fr auto; } .kl-letzt > span:nth-child(2) { display:flex; flex-direction:column; min-width:0; } .kl-wunsch-knoepfe { display:flex; align-items:center; gap:4px; }
.kl-mitarbeiter { display:grid; grid-template-columns:250px minmax(0, 1fr); gap:18px; min-height:0; flex:1 1 auto; }
.kl-links { padding:10px; } .kl-links .auswahl-suche { margin:2px 2px 8px; width:calc(100% - 4px); }
.kl-p { display:flex; align-items:center; gap:10px; padding:8px 10px; border-radius:10px; font-size:14px; color:inherit; text-decoration:none; } .kl-p:hover { background:#f6f6f6; text-decoration:none; }
.kl-p.an { background:#f0f0f0; font-weight:600; } .kl-p small { margin-left:auto; font-weight:400; } .kl-p[hidden] { display:none; }
.kl-rechts { display:flex; flex-direction:column; gap:18px; min-height:0; min-width:0; }
.kl-person-mitte { display:grid; grid-template-columns:minmax(0, 1.8fr) minmax(0, 1fr); gap:18px; min-height:0; flex:1 1 auto; }
.kl-seite { grid-template-rows:auto minmax(0, 1fr); }
.kl-masse { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:10px; }
.kl-mass { border:1px solid #ececec; border-radius:10px; padding:10px 12px; display:flex; flex-direction:column; gap:2px; } .kl-mass small { color:#8a8a8a; font-size:12px; } .kl-mass b { font-size:18px; }
.kl-anspruch { display:grid; grid-template-columns:1fr auto; gap:6px 12px; align-items:center; font-size:14px; padding:4px 0 8px; } .kl-anspruch .bo-fort-balken { grid-column:1 / -1; height:7px; }
/* Ausgabe-Fenster */
dialog.kl-fenster { width:min(760px, 96vw); padding:20px 22px; border-radius:16px; }
.kl-kopf { display:flex; align-items:center; gap:12px; margin-bottom:14px; } .kl-kopf h2 { margin:0; font-size:19px; } .kl-kopf > div { display:flex; flex-direction:column; }
.ns-zu { width:34px; height:34px; border-radius:50%; background:#f2f2f2; border:none; display:inline-flex; align-items:center; justify-content:center; color:#555; font-size:15px; flex:none; padding:0; cursor:pointer; }
.kl-titel { font-size:13px; font-weight:600; color:#6b6b6b; margin:16px 0 8px; display:flex; gap:8px; align-items:baseline; }
.kl-karten { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:10px; }
.kl-karte { border:1px solid #e1e1e1; border-radius:12px; padding:10px 12px; display:flex; align-items:center; gap:10px; background:#fff; font:inherit; text-align:left; cursor:pointer; color:inherit; }
.kl-karte > span:last-child { display:flex; flex-direction:column; min-width:0; } .kl-karte b { font-size:14px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.kl-karte:hover { border-color:#bbb; background:#fff; } .kl-karte.an { border-color:#111; box-shadow:inset 0 0 0 1px #111; }
.kl-liste { display:flex; flex-direction:column; border:1px solid #ececec; border-radius:12px; overflow:hidden; max-height:240px; overflow-y:auto; }
.kl-zeile { display:grid; grid-template-columns:34px 140px 1fr auto 30px; gap:10px; align-items:center; padding:8px 10px; border-bottom:1px solid #f1f1f1; } .kl-zeile:last-child { border-bottom:none; }
.kl-zeile-name { font-size:14px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.kl-chips, .kl-anzahl { display:flex; gap:5px; flex-wrap:wrap; }
.kl-chip { height:30px; min-width:34px; padding:0 9px; border-radius:15px; border:1px solid #dcdcdc; background:#fff; font:inherit; font-size:13px; font-weight:500; color:#333; cursor:pointer; }
.kl-chip.rund { width:30px; min-width:30px; padding:0; } .kl-chip.an { background:#111; border-color:#111; color:#fff; } .kl-chip.leer:not(.an) { color:#b5b5b5; border-style:dashed; }
.kl-fuss { display:flex; align-items:center; gap:10px; margin-top:18px; } .kl-fuss .rechts { margin-left:auto; }
.kl-us { margin-top:12px; } .kl-us canvas.unterschrift { height:240px; }
.ml-verbinden { display:flex; gap:10px; align-items:center; margin:0 0 14px; } .ml-verbinden select { max-width:360px; }
/* Umschalter im Formular (Person/Firma) wie in der Handy-App: graue Schiene, weiße Pille */
.formular .kd-typ { width:max-content; border:none; border-radius:11px; background:#f1f1f1; padding:3px; gap:2px; }
.formular .kd-typ span { border:none !important; border-radius:8px !important; padding:7px 16px; font-size:13.5px; color:#555; }
.formular .kd-typ input:checked + span { background:#fff; color:#111; font-weight:600; box-shadow:0 1px 3px rgba(0,0,0,.1); }
/* Plantafel-Panel: Felder A wie überall */
label.pt-feld .pt-fest, label.pt-feld .pt-wahl { display:flex; align-items:center; } /* Felder A: Feld wie die anderen, siehe oben */
label.pt-feld .pt-wahl :is(b, strong, .pt-wahl-name) { font-weight:500; }
label.pt-feld .pt-wahl.leer .pt-wahl-text > span { color:#a8a8a8; }
/* Projekte (6.30): Status-Auswahl, Status verwalten, Liste */
.status-wahl { padding:6px; min-width:240px; max-height:420px; overflow:auto; }
.status-wahl .sw-liste { display:flex; flex-direction:column; gap:2px; }
.status-wahl .sw-liste button { display:flex; align-items:center; justify-content:space-between; gap:8px; border:none; background:none; padding:5px 8px; border-radius:6px; cursor:pointer; text-align:left; }
.status-wahl .sw-liste button:hover, .status-wahl .sw-liste button.an { background:var(--hell); }
.status-wahl .sw-verwalten { display:flex; align-items:center; gap:8px; width:100%; margin-top:6px; padding:9px 8px 6px; border:none; border-top:1px solid #eee; background:none; cursor:pointer; color:var(--schwarz); font-size:14px; }
.sv-kopf { display:flex; align-items:center; justify-content:space-between; } .sv-kopf h2 { margin:0; }
.sv-liste { display:flex; flex-direction:column; gap:6px; margin:14px 0 8px; max-height:55vh; overflow:auto; }
.sv-zeile { display:flex; align-items:center; gap:8px; } .sv-zeile input { flex:1; }
.sv-farbe { width:26px; height:26px; padding:0; border-radius:50%; border:none; cursor:pointer; flex:none; }
.sv-pfeile { display:flex; flex-direction:column; } .sv-pfeile button, .sv-weg { border:none; background:none; padding:1px 4px; cursor:pointer; color:var(--grau); } .sv-pfeile button:disabled { opacity:.3; cursor:default; }
.sv-weg:hover, .sv-pfeile button:not(:disabled):hover { color:var(--schwarz); }
.sv-palette { display:flex; gap:6px; padding:8px; } .sv-palette button { width:24px; height:24px; padding:0; border-radius:50%; border:none; cursor:pointer; }
.sv-neu { margin:4px 0 0; } .sv-fuss { display:flex; justify-content:flex-end; gap:8px; margin-top:16px; }
.pl-status-in { display:inline-flex; align-items:center; gap:8px; white-space:nowrap; }
.pl-sw { display:inline-flex; align-items:center; gap:2px; border:none; background:none; padding:0; cursor:pointer; color:var(--grau); } .pl-sw:disabled { cursor:inherit; }
.pl-sw.leer { font-size:13px; } .pl-seit { color:var(--grau); font-size:13px; }
.pl-kunde { display:inline-flex; align-items:center; gap:6px; } .pl-kunde svg { color:var(--grau); flex:none; }
.pl-bearb { white-space:nowrap; } .pl-bearb > span { display:block; } .pl-bearb .klein-text { font-size:12px; }
.kopf-bilder { display:inline-flex; } .kopf-bilder > * { width:26px; height:26px; border-radius:50%; border:2px solid #fff; margin-left:-6px; background:#e7e7e7; color:#444; font-size:11px; font-weight:600; display:inline-flex; align-items:center; justify-content:center; object-fit:cover; }
.kopf-bilder > *:first-child { margin-left:0; } .kopf-bilder .mehr { background:#f3f3f3; color:var(--grau); }
.pa-leute { display:inline-flex; margin-left:8px; } .pa-leute .kopf-bilder > * { width:32px; height:32px; font-size:12px; }
.pa-kontakt { font-size:14px; margin-top:2px; display:flex; align-items:center; gap:4px; min-width:0; } .pa-kontakt a { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; min-width:0; }
/* Kopieren-Knopf rechts neben Telefon und E-Mail (Dom 3.11.2026): leise, erst beim Drüberfahren deutlich */
.kontakt-kopie { border:none; background:none; padding:3px; border-radius:6px; color:#9a9a9a; cursor:pointer; display:inline-flex; flex:none; margin-left:auto; } .kontakt-kopie:hover { background:rgba(0,0,0,.06); color:var(--schwarz); } .pa-kontakt a { color:var(--schwarz); text-decoration:none; } .pa-kontakt a:hover { text-decoration:underline; }
#pa-status { margin-left:4px; }
/* Planung im Projekt (6.30) */
dialog.pp2 { width:min(620px, 100vw); }
.pp2-kopf { display:flex; align-items:center; gap:10px; padding:14px 18px; border-bottom:1px solid #ececec; flex:none; }
.pp2-titel { flex:1; min-width:0; } .pp2-titel h2 { margin:0; font-size:19px; } .pp2-titel .klein-text { display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.pp2-kopf .icon-knopf:focus { outline:none; } .pp2-kopf .icon-knopf:focus-visible { outline:2px solid #d9d9d9; }
.pp2-inhalt { flex:1 1 auto; overflow-y:auto; padding:6px 18px 18px; }
.pp2-teil { padding:14px 0 6px; } .pp2-teil + .pp2-teil { border-top:1px solid #f0f0f0; }
.pp2-teil-kopf { display:flex; align-items:center; gap:10px; margin-bottom:8px; } .pp2-teil-kopf h3 { margin:0; font-size:15px; } .pp2-teil-kopf .rechts { flex:1; }
.pp2-text-knopf { border:none; background:none; padding:4px 6px; font-size:14px; font-weight:600; color:var(--schwarz); cursor:pointer; border-radius:6px; } .pp2-text-knopf:hover { background:var(--hell); }
.pp2-ab { border:1px solid #ececec; border-radius:10px; padding:10px 12px; margin-bottom:8px; background:#fff; }
.pp2-zeile1 { display:flex; align-items:center; gap:8px; }
.pp2-name { flex:1; min-width:0; border:1px solid transparent; background:none; font-weight:600; font-size:15px; padding:5px 6px; border-radius:6px; } .pp2-name:hover, .pp2-name:focus { border-color:#e1e1e1; background:#fff; }
.pp2-daten { display:inline-flex; align-items:center; gap:4px; color:var(--grau); flex:none; }
.pp2-daten input { width:132px; border:1px solid transparent; background:none; padding:4px 4px; border-radius:6px; font-size:13px; color:var(--schwarz); } .pp2-daten input:hover, .pp2-daten input:focus { border-color:#e1e1e1; }
.pp2-zeile2 { display:flex; align-items:center; gap:10px; margin-top:4px; }
.pp2-meilenstein { flex:1; display:flex; align-items:center; gap:6px; } .pp2-meilenstein input { flex:1; border:1px solid transparent; background:none; font-size:13px; padding:4px 6px; border-radius:6px; color:var(--grau); }
.pp2-meilenstein input:hover, .pp2-meilenstein input:focus { border-color:#e1e1e1; color:var(--schwarz); }
.pp2-todos-knopf { display:inline-flex; align-items:center; gap:6px; border:none; background:none; font-size:13px; color:var(--grau); cursor:pointer; padding:4px 6px; border-radius:6px; } .pp2-todos-knopf:hover { background:var(--hell); color:var(--schwarz); }
.pp2-todos { margin-top:8px; padding-top:8px; border-top:1px dashed #ececec; } .pp2-hinweis { margin:4px 6px 0; }
.pp2-ei { display:flex; align-items:center; gap:8px; padding:8px 4px; border-bottom:1px solid #f3f3f3; } .pp2-ei:last-of-type { border-bottom:none; }
.pp2-person { flex:1; min-width:0; display:flex; align-items:center; gap:8px; } .pp2-person b { font-weight:500; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.pp2-person-wahl { flex:1; min-width:0; } .pp2-ab-wahl { width:150px; font-size:13px; }
.pp2 .icon-knopf.klein, .pp2-ab .icon-knopf, .pp2-ei .icon-knopf { width:30px; height:30px; border-color:transparent; background:none; color:var(--grau); flex:none; }
.pp2-ab .icon-knopf:hover, .pp2-ei .icon-knopf:hover { border-color:#d9d9d9; color:var(--schwarz); }
.pp2-leer { color:var(--grau); font-size:14px; margin:4px 0 10px; }
.pp2-fuss { display:flex; align-items:center; justify-content:space-between; padding:12px 18px; border-top:1px solid #ececec; flex:none; }
.pa-plan-ic[data-tafel] { cursor:pointer; border-radius:6px; padding:3px; } .pa-plan-ic[data-tafel]:hover { background:var(--hell); }
.pp2 .pp2-daten input[type=date] { width:122px; min-width:0; flex:none; height:30px; }
.pp2 .pp2-name { min-width:140px; width:auto; } .pp2 .pp2-ab-wahl { width:140px; flex:none; height:30px; padding-top:0; padding-bottom:0; }
.pp2 .pp2-person .kopf-bilder > * { width:28px; height:28px; }
.pp2 .pp2-daten .datumsfeld { width:126px; flex:none; } .pp2 .pp2-daten .datumsfeld input { height:30px; font-size:13px; padding-top:0; padding-bottom:0; }
.pp2 .pp2-zeile2 { flex-wrap:wrap; } .pp2 .pp2-meilenstein { min-width:160px; }
.pp2 .pp2-ei { flex-wrap:wrap; row-gap:4px; } .pp2 .pp2-ei .pp2-person, .pp2 .pp2-ei .pp2-person-wahl { flex:1 1 calc(100% - 46px); order:1; }
.pp2 .pp2-ei > .icon-knopf { order:2; } .pp2 .pp2-ei .pp2-daten { order:3; padding-left:34px; } .pp2 .pp2-ei .pp2-ab-wahl { order:4; }
.pp2 .pp2-ei > :not(.pp2-person):not(.pp2-daten):not(.icon-knopf):not(.pp2-person-wahl) { order:4; width:150px; flex:none; }
.pb .pb-text { resize:none; overflow:hidden; min-height:42px; }
.pb-nummer { display:flex; align-items:center; gap:10px; } .pb-nummer input { flex:1; }
.pb-vorschlag { border:none; background:none; color:var(--rot, #E40000); font-weight:600; cursor:pointer; white-space:nowrap; padding:4px 2px; font-size:14px; }
.pb-feld > div, .pb-feld > #pb-kunde, .pb-feld > #pb-empf { max-width:560px; }
.pb .pb-karte { max-width:none; margin-top:0; }
.pb-kunde-link { display:flex; gap:12px; flex:1; color:inherit; text-decoration:none; align-items:flex-start; } .pb-kunde-link svg { color:var(--grau); margin-top:3px; flex:none; }
.pb-kunde-karte:hover { border-color:#cfcfcf; }
.pb-treffer button { flex-direction:row; align-items:center; gap:10px; } .pb-treffer button > span:last-child { display:flex; flex-direction:column; }
.pb-tr-ic { width:28px; height:28px; border-radius:50%; background:#f0f0f0; display:inline-flex; align-items:center; justify-content:center; color:#666; flex:none; }
.pb .pb-haken { margin:0; }
.pb .pakte-ma { max-width:560px; }
.kd-namen { display:grid; grid-template-columns:140px 1fr 1fr; gap:12px; } .kd-namen .kd-firma { grid-column:span 2; }
.kd-kom { display:flex; flex-direction:column; gap:6px; } .kd-kom-titel { font-size:13px; color:var(--grau); }
.kd-kom-zeile { display:flex; gap:8px; align-items:center; } .kd-kom-zeile input { flex:1; } .kd-kom-zeile select { width:130px; flex:none; } .kd-x-platz { width:36px; flex:none; }
.kd-plus { align-self:flex-start; border:none; background:none; padding:2px 0; cursor:pointer; font-size:14px; font-weight:600; color:var(--schwarz); }
.kd-plus:hover { text-decoration:underline; }
@media (max-width:700px) { .kd-namen { grid-template-columns:1fr; } .kd-namen .kd-firma { grid-column:auto; } }
.pb-zeile > :first-child { flex:1; min-width:0; }
.kd-form .kd-kom-zeile { display:flex; } .kd-form .kd-kom-zeile > input { flex:1 1 auto; min-width:0; width:auto; }
.kd-form .kd-kom-zeile > .auswahl, .kd-form .kd-kom-zeile > select { width:140px; flex:none; }
.pp2-person .pt-haken { background:#1a8a3a; color:#fff; margin:0 0 0 6px; font-size:10px; } /* erledigter Einsatz in der Planung (6.45) */

/* Kontakte und Personal 6.32 (Dom 26.10.2026, Entwurf im Canvas): Kopf mit Kennzahlen, Listen in festen Kästen, Akte auf einen Blick */
main.kx-seite { gap:16px; } main.kx-seite > * { flex:none; } main.kx-seite > .kx-flex { flex:1 1 auto; min-height:0; }
.kx-spalten { display:grid; grid-template-columns:340px minmax(0, 1fr) 340px; gap:14px; } .kx-spalte { display:flex; flex-direction:column; gap:14px; min-height:0; min-width:0; }
.kx-spalte > .kx-gross { flex:1 1 auto; }
.kx-kopf { display:flex; align-items:center; gap:14px; }
.kx-kopf h1 { margin:0; font-size:22px; font-weight:600; display:flex; align-items:center; gap:10px; }
.kx-kopf .kx-unter { color:#6b6b6b; font-size:13.5px; margin-top:2px; }
.kx-kopf .kx-rechts { margin-left:auto; display:flex; align-items:center; gap:8px; }
.kx-zurueck { width:36px; height:36px; border:1px solid #dcdcdc; border-radius:8px; background:#fff; display:inline-flex; align-items:center; justify-content:center; color:#111; flex:none; }
.kx-ik { width:38px; height:38px; border:1px solid #dcdcdc; border-radius:8px; background:#fff; display:inline-flex; align-items:center; justify-content:center; color:#222; padding:0; }
.kx-logo { width:52px; height:52px; border-radius:14px; background:#111; color:#fff; font-weight:700; font-size:17px; display:inline-flex; align-items:center; justify-content:center; flex:none; }
.kx-av { width:34px; height:34px; border-radius:50%; background:#ececec; color:#444; font-weight:600; font-size:12px; display:inline-flex; align-items:center; justify-content:center; flex:none; }
.kx-av.eckig { border-radius:9px; background:#f1f1f1; } .kx-av.dunkel { background:#111; color:#fff; } .kx-av.gross { width:56px; height:56px; font-size:19px; }
.kx-av.f1 { background:#e8eefc; color:#2d4a9a; } .kx-av.f2 { background:#fdeee3; color:#9a4d16; } .kx-av.f3 { background:#e7f5ec; color:#22693b; } .kx-av.f4 { background:#f3e9fb; color:#6b3596; }
.kx-reiter { display:flex; gap:22px; border-bottom:1px solid #e6e6e6; }
.kx-reiter a { padding:0 0 10px; font-size:14.5px; font-weight:500; color:#6a6a6a; text-decoration:none; border-bottom:2px solid transparent; margin-bottom:-1px; display:inline-flex; gap:6px; align-items:center; }
.kx-reiter a.an { color:#131313; font-weight:600; border-color:#131313; } .kx-reiter a small { font-size:12px; color:#333; font-weight:500; background:#e4e4e4; border-radius:999px; padding:1px 7px; margin-left:-2px; }
.kx-kacheln { display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:14px; }
.kx-kachel { background:#fff; border:1px solid #e6e6e6; border-radius:12px; padding:13px 16px; display:flex; flex-direction:column; gap:2px; }
.kx-kachel span { font-size:13px; color:#6b6b6b; } .kx-kachel b { font-size:24px; line-height:30px; font-weight:600; } .kx-kachel small { font-size:12.5px; color:#8a8a8a; }
.kx-kachel small .plus { color:#1d7a3e; font-weight:600; } .kx-kachel small .minus { color:#b42323; font-weight:600; }
.kx-filter { display:flex; gap:8px; align-items:center; }
.kx-suche { height:38px; min-width:320px; border:1px solid #e1e1e1; border-radius:10px; background:#fff; display:inline-flex; align-items:center; gap:8px; padding:0 12px; color:#9a9a9a; font-size:14px; }
.kx-fbtn { height:38px; border:1px solid #e1e1e1; border-radius:10px; background:#fff; display:inline-flex; align-items:center; gap:6px; padding:0 12px; font-size:14px; font-weight:500; color:#222; }
.kx-fbtn.an { border-color:#111; }
.kx-kasten { background:#fff; border:1px solid #e6e6e6; border-radius:12px; display:flex; flex-direction:column; min-height:0; min-width:0; }
.kx-kasten-kopf { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:14px 18px 8px; }
.kx-kasten-kopf h2 { margin:0; font-size:15px; font-weight:600; display:flex; gap:8px; align-items:center; } .kx-kasten-kopf h2 small { font-size:12.5px; color:#9a9a9a; font-weight:500; }
.kx-kasten-kopf .kx-mini { width:28px; height:28px; border:none; background:none; border-radius:8px; color:#777; display:inline-flex; align-items:center; justify-content:center; padding:0; }
.kx-kasten-inhalt { padding:0 18px 14px; overflow:auto; min-height:0; }
.kx-scroll { overflow:auto; min-height:0; flex:1; }
.kx-tab { width:100%; border-collapse:collapse; }
.kx-tab th { position:sticky; top:0; background:#fff; z-index:1; font-size:13px; font-weight:600; color:#6b6b6b; text-align:left; padding:10px 14px; border-bottom:1px solid #eee; white-space:nowrap; }
.kx-tab td { padding:10px 14px; border-bottom:1px solid #f2f2f2; font-size:14px; vertical-align:middle; white-space:nowrap; } .kx-tab tr:last-child td { border-bottom:none; }
.kx-tab .zahl { text-align:right; } .kx-tab .grau { color:#8a8a8a; }
.kx-tab tr.an td { background:#fafafa; }
.kx-name { display:flex; align-items:center; gap:12px; } .kx-name > span:last-child { display:flex; flex-direction:column; } .kx-name b { font-weight:600; } .kx-name small { color:#8a8a8a; font-size:12.5px; }
.kx-fuss { border-top:1px solid #eee; padding:10px 18px; font-size:13px; color:#6b6b6b; display:flex; justify-content:space-between; }
.kx-marke { display:inline-flex; align-items:center; padding:2px 8px; border-radius:4px; font-size:12.5px; font-weight:500; line-height:1.45; background:#ebeae7; color:#4a4844; } /* Etiketten C */
.kx-marke.schwarz { background:#111; color:#fff; }
.kx-werte { display:grid; grid-template-columns:104px 1fr; gap:9px 12px; margin:0; font-size:14px; }
.kx-werte dt { color:#8a8a8a; } .kx-werte dd { margin:0; color:#111; } .kx-werte dd.kx-leer { color:#b5b5b5; }
.kx-werte a { color:#111; text-decoration:none; border-bottom:1px solid #d6d6d6; }
.kx-zeile { display:flex; align-items:center; gap:12px; padding:10px 0; border-bottom:1px solid #f2f2f2; font-size:14px; } .kx-zeile:last-child { border-bottom:none; }
.kx-zeile > span.kx-t { flex:1; min-width:0; display:flex; flex-direction:column; } .kx-zeile small { color:#8a8a8a; font-size:12.5px; }
.kx-zeile .kx-ik { width:32px; height:32px; border-radius:8px; }
.kx-zeit { position:relative; padding-left:22px; } .kx-zeit::before { content:''; position:absolute; left:6px; top:6px; bottom:6px; width:2px; background:#f0f0f0; }
.kx-zeit .kx-ev { position:relative; padding:0 0 14px; font-size:14px; } .kx-zeit .kx-ev::before { content:''; position:absolute; left:-20px; top:5px; width:10px; height:10px; border-radius:50%; background:#fff; border:2px solid #c9c9c9; }
.kx-zeit .kx-ev.rot::before { border-color:var(--rot, #E40000); } .kx-zeit .kx-ev small { display:block; color:#8a8a8a; font-size:12.5px; }
.kx-schritt { display:flex; gap:10px; align-items:flex-start; padding:9px 0; border-bottom:1px solid #f2f2f2; font-size:14px; } .kx-schritt:last-child { border-bottom:none; }
.kx-schritt i { width:16px; height:16px; border-radius:50%; border:2px solid #c9c9c9; flex:none; margin-top:2px; } .kx-schritt span { flex:1; display:flex; flex-direction:column; } .kx-schritt small { color:#8a8a8a; font-size:12.5px; }
.kx-schritt em { font-style:normal; font-size:12.5px; font-weight:600; color:#6b6b6b; white-space:nowrap; } .kx-schritt em.heute { color:var(--rot, #E40000); }
.kx-erledigen { display:flex; align-items:center; gap:10px; background:#fff; border:1px solid #f1d9a8; border-radius:12px; padding:10px 14px; font-size:14px; }
.kx-erledigen b { margin-right:4px; }
.kx-akte { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:14px; align-content:start; }
.kx-akte .kx-kasten-inhalt { overflow:visible; }
.kx-schloss { color:#9a9a9a; display:inline-flex; }
.kx-balken { height:6px; border-radius:3px; background:#f0f0f0; overflow:hidden; margin-top:6px; } .kx-balken i { display:block; height:100%; background:#111; border-radius:3px; }
.kx-reiter a, .kx-reiter a.an { border-left:none !important; border-top:none; border-right:none; background:none !important; border-radius:0 !important; padding-left:0 !important; box-shadow:none !important; }

.kx-tab tr.klick { cursor:pointer; } .kx-tab tr.klick:hover td { background:#fafafa; }
.kx-av img, .kx-logo img { width:100%; height:100%; object-fit:cover; border-radius:inherit; }
.kx-kasten .akte-kasten { border:none; padding:0; background:none; box-shadow:none; } .kx-kasten .akte-kasten > .akte-kopf { display:none; }
.kx-kachel a { color:inherit; text-decoration:none; }
.kx-leerzeile { color:#9a9a9a; font-size:13.5px; padding:4px 0 6px; }
.kx-voll { flex:1 1 auto; min-height:0; overflow:auto; }
@media (max-width:1200px) { .kx-spalten { grid-template-columns:300px minmax(0, 1fr); } .kx-spalten > .kx-spalte:last-child { grid-column:1 / -1; } .kx-akte { grid-template-columns:repeat(2, minmax(0, 1fr)); } }
@media (max-width:760px) { .kx-kacheln { grid-template-columns:repeat(2, minmax(0, 1fr)); } .kx-spalten, .kx-akte { grid-template-columns:1fr; } .kx-suche { min-width:0; flex:1; } .kx-reiter { overflow-x:auto; } main.kx-seite { height:auto; overflow:visible; } }
.kx-kopf.akte-kopfzeile { background:none; border:none; padding:0; margin:0; border-radius:0; flex-wrap:nowrap; }
.kx-kopf .kx-zurueck.icon-knopf { align-self:center; }
.kx-reiter button { padding:0 0 10px; font-size:14.5px; font-weight:500; color:#6a6a6a; background:none; border:none; border-bottom:2px solid transparent; border-radius:0; margin-bottom:-1px; cursor:pointer; }
.kx-reiter button.an { color:#131313; font-weight:600; border-color:#131313; } .kx-reiter button small { font-size:12px; color:#333; font-weight:500; background:#e4e4e4; border-radius:999px; padding:1px 7px; margin-left:4px; } /* Zähler auch an Knopf-Reitern (Dom 1.11.2026) */
.kx-seite .akte-kasten { background:#fff; border:1px solid #e6e6e6; border-radius:12px; padding:14px 18px; margin:0; min-width:0; }
.kx-seite .akte-kasten .akte-kopf h2 { font-size:15px; }
.kx-akte .akte-kasten .akte-werte { grid-template-columns:150px 1fr; } .kx-akte .akte-werte dd:empty::before { content:"–"; color:#c4c4c4; }
.kx-seite .kx-ik { text-decoration:none; }
.kx-seite .akte-kasten a:not(.knopf):not(.primaer), .kx-seite .kx-kasten a:not(.knopf):not(.primaer) { color:#111; }

/* Arbeitskleidung Bestellen (6.34): je Artikel eine Zeile, je Größe ein kleines Zahlenfeld */
.kl-tabelle { display:flex; flex-direction:column; gap:8px; max-height:52vh; overflow:auto; }
.kl-tz { display:grid; grid-template-columns:220px 1fr; gap:12px; align-items:center; padding:8px 0; border-bottom:1px solid var(--linie, #eee); }
.kl-tz:last-child { border-bottom:0; }
.kl-gfelder { display:flex; flex-wrap:wrap; gap:6px; }
.kl-gfeld { display:flex; flex-direction:column; align-items:center; gap:2px; font-size:12px; color:var(--grau); }
.formular .kl-gfeld input { width:56px; height:38px; text-align:center; padding:0 4px; border:1px solid #e3e3e3; border-radius:8px; font-size:15px; font-weight:600; color:#111; }
.formular .kl-gfeld input:focus { border-color:#111; outline:none; }
.formular .kl-gfeld input:placeholder-shown { font-weight:400; }
.zt-seitenreiter .cl-zahl { margin-left:6px; height:18px; min-width:18px; font-size:11px; }
@media (max-width: 700px) { .kl-tz { grid-template-columns:1fr; } }
.fp-verwalten { margin-top:4px; } .pa-kopf .pa-leute.rechts { margin-left:auto; margin-right:6px; }
.pb-maps { display:inline-flex; align-items:center; gap:6px; font-size:14px; color:var(--schwarz); text-decoration:none; } .pb-maps:hover { text-decoration:underline; } .pb-maps svg { color:var(--grau); }
.pb-adr-treffer button { flex-direction:row; align-items:center; gap:8px; } .pb-adr-treffer svg { color:var(--grau); flex:none; }
@media (min-width:1101px) { main.feste-seite { overflow:clip; } }
/* Projekt-Reiter 6.38 */
.pa-uebersicht .g12 { grid-column:1; grid-row:1 / span 2; }
.akte-kaesten.zwei { display:grid; grid-template-columns:1fr 1fr; gap:12px; } @media (max-width:900px) { .akte-kaesten.zwei { grid-template-columns:1fr; } }
.pa-ressourcen .verweis { display:flex; gap:6px; align-items:baseline; } .pa-ressourcen .verweis .rechts { margin-left:auto; } .pa-ressourcen .verweis.gewesen { color:#555; }
.pe-summen { display:flex; gap:12px; margin-bottom:12px; } .pe-summen > div { flex:1; border:1px solid #ececec; border-radius:10px; padding:10px 14px; background:#fff; display:flex; flex-direction:column; gap:2px; }
.pe-summen span { font-size:13px; color:var(--grau); } .pe-summen b { font-size:18px; }
.pe-teil { margin-bottom:16px; } .pe-kopf { display:flex; align-items:baseline; gap:8px; margin:4px 0 6px; } .pe-kopf h3 { margin:0; font-size:15px; }
.pe-tab { width:100%; border-collapse:collapse; font-size:14px; } .pe-tab th { text-align:left; font-weight:500; color:var(--grau); font-size:12px; padding:6px 8px; border-bottom:1px solid #ececec; }
.pe-tab td { padding:8px; border-bottom:1px solid #f3f3f3; } .pe-tab tr.klick { cursor:pointer; } .pe-tab tr.klick:hover td { background:var(--hell); } .pe-tab .zahl { text-align:right; white-space:nowrap; }
.pe-leer { color:var(--grau); font-size:14px; margin:0 0 6px; } .pe-ja { color:#1f7a4d; font-size:13px; }
@media (min-width:1101px) { main.pb-seite .pb-scroll { flex:1 1 auto; min-height:0; overflow-y:auto; margin-bottom:10px; } }
.pb-fuss { flex:none; display:flex; } .pb-fuss .knopf-link { gap:4px; }
.pb .pb-adresse .pb-feld { position:relative; }
.adr-maps { color:inherit; text-decoration:none; } .adr-maps:hover { text-decoration:underline; }

/* 6.42 CRM (Dom 27.10.2026): Chat und Verlauf als ein Strom, Anfrage abschließen, Stand */
.ch-strom { margin-right:auto; align-self:center; margin-left:4px; } 
.ch-reiter:has(.ch-strom) { padding:6px 0; }
.ch-sys { display:flex; align-items:flex-start; gap:8px; margin:4px 36px; font-size:12.5px; color:#6b6b6b; line-height:1.45; }
.ch-sys > span:last-child { min-width:0; } .ch-sys b { color:#333; font-weight:600; } .ch-sys em { font-style:normal; color:#9a9a9a; margin-left:6px; white-space:nowrap; }
.ch-sys .verlauf-diff { display:inline; } .ch-sys .verlauf-diff span { display:inline; margin-right:6px; }
.cv-ic { width:22px; height:22px; flex:none; border-radius:50%; background:#f1f1f1; color:#555; display:inline-flex; align-items:center; justify-content:center; }
.cv-ic.status { background:#fff2e0; color:#a35a00; } .cv-ic.haken { background:#e7f5ec; color:#1d6b38; } .cv-ic.dokument { background:#e8eefc; color:#2d4a9a; } .cv-ic.geld { background:#e7f5ec; color:#1d6b38; }
.cv-liste { padding:8px 10px; display:flex; flex-direction:column; }
.cv-ev { display:grid; grid-template-columns:44px 22px minmax(0, 1fr); gap:8px; padding-bottom:14px; position:relative; }
.cv-ev::before { content:''; position:absolute; left:62px; top:24px; bottom:2px; width:1px; background:#e8e8e8; } .cv-ev:last-child::before { display:none; }
.cv-tag { display:flex; flex-direction:column; align-items:flex-end; line-height:1.2; padding-top:2px; } .cv-tag b { font-size:12.5px; font-weight:600; } .cv-tag small { font-size:11.5px; color:#9a9a9a; }
.cv-inhalt { display:flex; flex-direction:column; gap:1px; font-size:13.5px; min-width:0; padding-top:2px; } .cv-inhalt b { font-weight:600; } .cv-inhalt span { color:#444; } .cv-inhalt small { color:#9a9a9a; font-size:12px; }
.cv-inhalt .verlauf-diff { display:flex; flex-direction:column; }
.ab-karten { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.ab-karte { display:flex; flex-direction:column; align-items:flex-start; gap:2px; text-align:left; padding:10px 12px; border:1px solid #e1e1e1; border-radius:12px; background:#fff; }
.ab-karte b { font-size:14.5px; } .ab-karte small { font-size:12px; color:#8a8a8a; font-weight:400; }
.ab-karte.gewonnen b { color:#1d6b38; } .ab-karte.verloren b { color:#b42323; } .ab-karte.abgesagt b { color:#555; } .ab-karte.wiedervorlage b { color:#8a5a00; }
.ab-karte.an { border-color:#111; box-shadow:0 0 0 1px #111 inset; }
.ab-frage { margin:14px 0 4px; font-size:13px; color:#666; }
.ab-gruende { display:flex; flex-direction:column; }
.ab-gruende button { display:flex; align-items:center; gap:10px; border:none; border-bottom:1px solid #f0f0f0; border-radius:0; background:none; padding:9px 2px; text-align:left; font-size:14px; font-weight:400; }
.ab-gruende i { width:16px; height:16px; border-radius:50%; border:1.5px solid #cfcfcf; box-sizing:border-box; flex:none; } .ab-gruende button.an i { border:5px solid #111; }
.ab-datum, .ab-notiz { display:flex; flex-direction:column; gap:4px; margin-top:12px; font-size:13px; color:#666; } .ab-notiz textarea { width:100%; }
@media (min-width:761px) { .crm-zu { grid-template-columns:repeat(4, minmax(0, 1fr)); } }


/* 6.44 Anfrage wie die Vorlage (Canvas „Nodus Vorlagen“ › Akte im CRM, Dom 27.10.2026) */
.an4-kopf { display:flex; align-items:center; gap:14px; margin:0 0 14px; }
.an4-av { width:48px; height:48px; border-radius:50%; background:#fde9d9; color:#9a4a16; font-weight:600; font-size:16px; display:inline-flex; align-items:center; justify-content:center; flex:none; }
.an4-titel { min-width:0; flex:1; } .an4-titel h1 { margin:0; font-size:24px; font-weight:600; display:flex; align-items:center; gap:10px; flex-wrap:wrap; } .an4-titel .klein-text { font-size:13.5px; margin-top:2px; }
.an4-rechts { display:flex; align-items:center; gap:8px; flex:none; } .an4-rechts .icon-knopf { width:38px; height:38px; }
.an4-rechts .primaer { height:38px; padding:0 16px; white-space:nowrap; }
.crm-phasen { gap:4px; margin:0 0 6px; }
.crm-phasen span { height:34px; display:flex; align-items:center; justify-content:center; gap:6px; border-radius:8px; background:#fff; border:1px solid #e6e6e6; color:#9a9a9a; font-size:13px; font-weight:600; padding:0 10px; box-sizing:border-box; }
.crm-phasen span.fertig { background:#ececec; border-color:#ececec; color:#555; } .crm-phasen span.fertig::before { content:'✓'; font-size:12px; }
.crm-phasen span.jetzt { background:#111; border-color:#111; color:#fff; }
.crm-phasen span[data-abschluss] { flex:0 0 150px; color:#111; border-color:#d9d9d9; } .crm-phasen span[data-abschluss]::after { content:'▾'; font-size:11px; margin-left:2px; }
.crm-phasen span.jetzt.ende { flex:0 0 auto; } .crm-phasen span.jetzt.gewonnen { background:#e7f5ec; border-color:#cfe9d8; color:#1d6b38; } .crm-phasen span.jetzt.verloren { background:#fbeeee; border-color:#f1d0d0; color:#b42323; }
.crm-phasen span.jetzt.abgesagt { background:#ececec; border-color:#d9d9d9; color:#444; } .crm-phasen span.jetzt.wiedervorlage { background:#fff4e0; border-color:#f3e1bf; color:#8a5a00; }
.an4-reiter { display:flex; gap:22px; border-bottom:1px solid #e6e6e6; margin:8px 0 14px; flex:none; }
.an4-reiter button { background:none; border:none; border-bottom:2px solid transparent; border-radius:0; padding:8px 0 10px; margin-bottom:-1px; font-size:14.5px; font-weight:500; color:#777; }
.an4-reiter button.an { color:#111; font-weight:600; border-bottom-color:#E40000; } .an4-reiter small { font-size:12px; color:#9a9a9a; margin-left:3px; font-weight:500; }
.an4-raster { flex:1; min-height:0; display:grid; grid-template-columns:minmax(0, 2fr) minmax(360px, 1fr); gap:14px; }
.an4-links { min-height:0; overflow-y:auto; display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:14px; align-content:start; padding-bottom:14px; }
.an4-spalte { display:flex; flex-direction:column; gap:14px; min-width:0; }
.an4-links .akte-kasten { margin:0 !important; border:1px solid #e6e6e6; border-radius:12px; padding:0 0 4px; }
.an4-links .akte-kopf { padding:14px 18px 6px; margin:0; } .an4-links .akte-kopf h2 { font-size:15px; font-weight:600; }
.an4-links .akte-werte { display:grid; grid-template-columns:minmax(96px, auto) 1fr; gap:0; padding:0 18px 8px; font-size:14px; }
.an4-links .akte-werte dt, .an4-links .akte-werte dd { padding:9px 0; border-bottom:1px solid #f2f2f2; } .an4-links .akte-werte dt { color:#8a8a8a; font-size:13.5px; padding-right:12px; }
.an4-links .akte-werte dt:nth-last-child(2), .an4-links .akte-werte dd:last-child { border-bottom:none; }
.an4-links .akte-kasten > :not(.akte-kopf):not(.akte-werte):not(.an4-leer):not(form) { margin-left:18px; margin-right:18px; }
.an4-links .akte-kasten form { padding:0 18px 14px; } .an4-links .an-aktionen { margin:0 18px 6px; }
.an4-leer { margin:2px 18px 12px; font-size:13px; color:#8a8a8a; } /* statt „+ … ergänzen“ (Bausteine Runde 4) */
.an4-links .an-jetzt { margin:0; align-self:stretch; }
.an4-dateien { grid-column:1 / -1; background:#fff; border:1px solid #e6e6e6; border-radius:12px; padding:16px 18px; }
.an4-d-titel { font-size:16px; margin:0 0 6px; } .an4-datei { width:100%; background:none; border:none; border-bottom:1px solid #f0f0f0; font:inherit; text-align:left; min-height:56px; padding:8px 10px; }
.an4-datei:last-of-type { border-bottom:none; } .an4-datei .pa-ic { width:36px; } .an4-datei .pa-ic img { width:36px; height:36px; }
.an4-vid { position:relative; width:36px; height:36px; border-radius:5px; background:#333; display:flex; align-items:center; justify-content:center; overflow:hidden; }
.an4-vid img { position:absolute; inset:0; } .an4-vid svg { position:relative; width:14px !important; height:14px !important; fill:#fff; stroke:none; filter:drop-shadow(0 0 2px rgba(0,0,0,.6)); }
.an4-chat { border:1px solid #e6e6e6; border-radius:12px; }
.an4-chat .ch-titel { font-size:15px; font-weight:600; padding:14px 18px 4px; }

.an4-chat .ch-sys { margin:6px 22px; font-size:13px; }
.an4-chat .cv-liste { padding:12px 18px; } .an4-chat .cv-ev { padding-bottom:16px; }
@media (max-width:1100px) { .an4-raster { grid-template-columns:1fr; } .an4-links { grid-template-columns:1fr; overflow:visible; } .an4-chat { height:75vh; } .an4-kopf { flex-wrap:wrap; } }
.an4-breit { grid-column:1 / -1; }
/* 6.46 Dokumente (Dom 27.10.2026): Dialoge schmal, Haken hinten, Ablageflächen gleich groß, Rabatt/Einstellungen in einer Zeile, Kalkulation mit Aufschlag-Spalte */
dialog.ds-dialog { width:min(560px, 94vw); } dialog.df-dialog { width:min(820px, 96vw); }
.dok-folge-kopf { padding:10px 6px; gap:12px; } .dok-folge-alle { display:flex; align-items:center; gap:10px; margin-left:auto; cursor:pointer; } .dok-folge-alle input { width:18px; height:18px; margin:0; }
.dok-folge-liste { max-height:62vh; }
.dok-folge-z { grid-template-columns:44px minmax(0, 1fr) 110px 110px 22px; gap:10px; align-items:start; padding:12px 6px; font-size:14.5px; }
.dok-folge-z input[type=checkbox] { width:18px; height:18px; margin:2px 0 0; justify-self:end; }
.dok-folge-z.titel { background:#fafafa; font-weight:400; } .dok-folge-nr { padding-top:1px; }
.dok-folge-text { white-space:normal; overflow:visible; display:flex; flex-direction:column; gap:3px; min-width:0; }
.dok-folge-lang { color:#666; font-size:13px; line-height:1.45; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.dok-folge-art { font-size:12px; color:#888; font-weight:600; }
.ab-wahl { display:flex; gap:6px; flex-wrap:wrap; margin-bottom:16px; } .ab-wahl button { flex:1 1 auto; } .ab-wahl button.an { background:#111; color:#fff; border-color:#111; }
.ab-wert { display:flex; align-items:center; gap:10px; } .ab-wert input { width:130px; font-size:16px; } .ab-wert .rechts { margin-left:auto; font-weight:700; }
/* „Text hierher ziehen“ oben und „Bausteine hierher ziehen“ unten: gleich hoch und gleich breit; die Textfelder selbst bleiben schmaler */
.dok-a4 .dok-leer, .dok-block-ziel { box-sizing:border-box; min-height:64px; align-items:center; justify-content:center; border:1.5px dashed #d0d0d0; border-radius:8px; color:#999; font-size:13.5px; padding:10px; background:none; text-align:center; }
.dok-a4 .dok-leer { display:flex; margin:6px 0; }
.dok-block-ziel { display:none; margin:2px -46px; } body.dok-zieht .dok-block-ziel, .dok-bloecke.ziel-feld .dok-block-ziel { display:flex; }
.dok-bloecke.ziel-feld .dok-block-ziel, .dok-a4 .dok-leer.ziel-feld { border-color:var(--rot); color:var(--rot); background:#fff6f6; }
@media (max-width:1000px) { .dok-block-ziel { margin:2px -16px; } }
/* Anrede mit Wahl persönlich / Damen und Herren */
.dok-anrede-z { display:flex; align-items:center; gap:8px; margin-bottom:28px; } .dok-a4 .dok-texte .dok-anrede-z .dok-anrede { flex:1; margin:0; min-width:0; }
.dok-anrede-z .auswahl { width:auto !important; flex:none; } .dok-anrede-z .auswahl-knopf { background:none !important; border-color:transparent !important; color:#888; font-size:13px; }
.dok-anrede-z .auswahl-knopf:hover { border-color:#e4e4e4 !important; }
/* Zahl mit Einheit dahinter (%, €, Tage) statt langer Auswahl */
.dok-einst-z { display:flex; align-items:center; gap:8px; margin-top:10px; } .dok-einst-z > input { flex:1; min-width:0; }
.dok-zahl-einheit { display:inline-flex; align-items:stretch; flex:none; border:1px solid #dcdcdc; border-radius:6px; background:#fff; overflow:hidden; min-height:38px; }
.dok-zahl-einheit input { width:84px !important; min-width:0 !important; border:none !important; border-radius:0 !important; background:#fff !important; }
.dok-zahl-einheit.breit input { width:110px !important; }
.dok-zahl-einheit > span { display:flex; align-items:center; padding:0 10px; color:#555; white-space:nowrap; border-left:1px solid #eee; background:#fafafa; font-size:13.5px; }
.dok-zahl-einheit .auswahl { width:auto !important; min-width:0 !important; border-left:1px solid #eee; } .dok-zahl-einheit .auswahl-knopf { border:none !important; border-radius:0 !important; min-height:36px; padding:0 8px; background:#fafafa !important; }
.dok-rabatt.dok-einst-z { flex-direction:row; margin-top:8px; }
.dok-einst-reihe { display:flex; align-items:center; gap:10px; flex-wrap:wrap; min-height:38px; } .dok-einst-reihe + .dok-einst-reihe { margin-top:8px; }
.dok-einst-reihe .dok-toggle { min-width:180px; } .dok-einst-reihe .auswahl { width:150px !important; }
.dok-frist-vorschau { margin:12px 0 0; padding-top:10px; border-top:1px solid #e2e2e2; color:#444; font-size:13.5px; line-height:1.5; }
/* Summen wie plancraft; Sätze darunter auf einer Linie mit den Texten */
.dok-summe-zeilen .dok-sum-rabatt { color:#333; } .dok-summe-zeilen .dok-sum-rabatt i:first-child { display:flex; align-items:center; gap:6px; } .dok-summe-zeilen .dok-sum-rabatt svg { color:#777; }
.dok-summe-zeilen .netto { border-top:1px solid #ddd; padding-top:6px; }
.dok-a4 .dok-summen .dok-bedingungen { padding:0 42px 0 26px; }
.dok-schluss { margin:6px 48px 10px; padding:14px 16px; border:1px solid #e6e6e6; border-radius:8px; font-size:13.5px; }
.dok-schluss-tab { width:100%; border-collapse:collapse; } .dok-schluss-tab th { text-align:left; font-weight:600; color:#777; font-size:12.5px; padding:4px 6px; border-bottom:1px solid #eee; }
.dok-schluss-tab td { padding:5px 6px; border-bottom:1px solid #f3f3f3; } .dok-schluss-tab .r { text-align:right; white-space:nowrap; }
/* Kalkulation: Aufschlag als eigene Spalte zwischen EK und EK gesamt, Beschreibung kleiner, Zahlen und Einheit gut lesbar, ohne €-Zeichen in den Feldern */
.dok-kalk-k, .dok-kalk-k.unter { grid-template-columns:12px 104px 60px 86px minmax(60px, 1fr) 84px 44px 82px 22px 22px; gap:5px; }
.dok-kalk-k .auswahl-knopf { padding-left:6px !important; padding-right:4px !important; font-size:13px; }
.dok-bedingungen > div + div { margin-top:10px; }
.dok-kalk-k [data-kf="text"], .dok-kalk-k [data-uf="text"] { font-size:12.5px !important; color:#444; }
.dok-kalk-k [data-kf="menge"], .dok-kalk-k [data-uf="menge"], .dok-kalk-k [data-kf="ek"], .dok-kalk-k [data-uf="ek"] { font-size:14px !important; font-weight:600; }
.dok-kalk-k .auswahl-knopf { color:#111; font-weight:600; }
.dok-kalk-k > .dok-kalk-z { justify-self:center; font-size:12px; color:#666; font-weight:600; white-space:nowrap; }
.dok-kalk-k .dok-kalk-wert { justify-content:flex-end; font-size:14px; font-weight:600; }
.dok-kalk-ek.mit-lg { display:flex; align-items:center; gap:2px; } .dok-kalk-ek.mit-lg input { padding-right:6px !important; flex:1; min-width:0; }
.dok-kalk-ek.mit-lg .dok-kalk-lgk { position:static; transform:none; flex:none; width:18px; }
.dok-kalk-k.fuss { margin-top:6px; } .dok-kalk-k.fuss .dok-kalk-neu-k { grid-column:2 / 8; } .dok-kalk-k.fuss .dok-kalk-wert { grid-column:8; }
.dok-kalk-neu-k { display:flex; gap:6px; flex-wrap:wrap; } .dok-kalk-neu-k button { padding:6px 12px; font-size:13px; font-weight:600; background:#f2f2f2; border-color:#e2e2e2; display:inline-flex; align-items:center; gap:4px; }
.dok-kalk-neu-k button:hover { background:#e9e9e9; }
.dok-kalk-k.fuss.unter .dok-kalk-neu-k { grid-column:2 / 8; } .dok-kalk-k.fuss.unter .dok-kalk-wert { grid-column:8 / 10; }
.dok-kalk-v .dok-kalk-wert, .dok-kalk-v input { font-size:14px !important; } .dok-kalk-v.summe .dok-kalk-wert { font-weight:700; }

/* Einzelchat mit Ausgeschiedenen: nur noch lesen (27.10.2026) */
.ch-nur-lesen { padding:12px 14px; margin:6px 10px 10px; border-radius:10px; background:#f3f3f3; color:#666; font-size:13.5px; text-align:center; }

/* 6.54 Dokumente (Dom 27.10.2026): Dialogkopf mit Zurück, Schlussrechnung wählen, Zahlungsaufstellung wie plancraft, Referenz, Lohngruppen-Pfeil vorne im Feld */
.dlg-kopf { margin:0 0 12px; gap:6px; } .dlg-kopf h2 { margin:0; font-size:19px; }
.sr-liste { max-height:62vh; overflow:auto; display:flex; flex-direction:column; gap:10px; } .sr-liste h3 { margin:10px 0 0; font-size:16px; }
.sr-karte { display:flex; justify-content:space-between; align-items:center; gap:16px; text-align:left; padding:16px 18px; border:1px solid #e3e3e3; background:#fafafa; border-radius:8px; font-weight:400; }
.sr-karte:hover { background:#f2f2f2; } .sr-karte > span:first-child { display:flex; flex-direction:column; gap:8px; } .sr-wann { color:#444; font-size:13.5px; white-space:nowrap; }
.sr-pillen { display:flex; gap:6px; flex-wrap:wrap; } .sr-pille { background:#3a3a3a; color:#fff; border-radius:999px; padding:3px 11px; font-size:13px; } .sr-pille.entwurf { background:#d8f0fb; color:#155e75; }
.dok-referenz { margin:-2px 0 12px; font-size:13.5px; color:#555; }
.dok-za { width:100%; border-collapse:collapse; margin:18px 0 6px; font-size:14px; } .dok-za th { background:#ececec; text-align:left; padding:8px 8px; font-weight:700; }
.dok-za td { padding:9px 8px; border-bottom:1px solid #eee; } .dok-za .r { text-align:right; white-space:nowrap; } .dok-za .dok-za-offen td { font-weight:700; border-bottom:none; }
.dok-za-fuss { display:flex; justify-content:flex-end; margin:0 0 6px; } .dok-za-fuss button { background:#f2f3f5; border-color:transparent; color:#555; }
.dok-a4 .dok-summen .dok-za { width:auto; margin-left:26px; margin-right:26px; }
.dok-kalk-ek.mit-lg { position:relative; display:block; } .dok-kalk-ek.mit-lg input { padding-left:24px !important; padding-right:7px !important; width:100% !important; }
.dok-kalk-ek.mit-lg .dok-kalk-lgk { position:absolute; left:2px; top:50%; transform:translateY(-50%); width:20px; height:26px; z-index:1; }
.dok-protokoll { width:100%; border-collapse:collapse; font-size:13.5px; } .dok-protokoll td { padding:7px 6px; border-bottom:1px solid #f0f0f0; vertical-align:top; } .dok-protokoll td:first-child { white-space:nowrap; color:#666; }
.dok-such-dok > span:nth-child(2) { flex:1; min-width:0; } .dok-such-dok .rechts { margin-left:auto; white-space:nowrap; font-size:13.5px; }
.dlg-kopf [hidden] { display:none !important; }
/* 6.64 Dokumente (Dom 27.10.2026): Textpositionen von „Menge“ bis „Preis“ (Editor = PDF), Marken, Storno/Kürzen, Nummernkreise wie plancraft, Ablage-Ziele, Suche */
.dok-a4 .dok-pos.text .dok-pos-text { grid-column:3 / 7; }
.dok-pos-edit.text .dok-lang-edit { margin-left:91px; margin-right:147px; }
@media (max-width:1000px) { .dok-pos-edit.text .dok-lang-edit { margin-left:0; margin-right:0; } }
.dok-marke.mahnung { background:#f6dcdb; color:#962626; } .dok-marke.angenommen { background:#e3eedb; color:#3d5e26; } .dok-marke.abgelehnt { background:#ebeae7; color:#666; }
button.gefahr { background:var(--rot); border-color:var(--rot); color:#fff; } button.gefahr:hover { filter:brightness(.93); }
.dok-hinweis-box { display:flex; align-items:center; gap:10px; border:1px solid #c9dbf5; background:#eef5ff; border-radius:8px; padding:10px 14px; margin:12px 0 0; font-size:14px; } .dok-hinweis-box svg { color:#1b5e8c; flex:none; }
.kz-liste { display:flex; flex-direction:column; max-height:52vh; overflow:auto; }
.kz-z { display:grid; grid-template-columns:44px minmax(0, 1fr) 100px 150px; gap:10px; align-items:center; padding:8px 4px; border-bottom:1px solid #f0f0f0; font-size:14px; } .kz-z .r { text-align:right; }
.nk-karte { overflow-x:auto; } .nk-tab { width:100%; border-collapse:collapse; font-size:14.5px; } .nk-tab th { text-align:left; font-size:12.5px; color:#777; font-weight:500; text-transform:uppercase; letter-spacing:.03em; padding:8px; border-bottom:1px solid #eee; }
.nk-tab td { padding:8px; border-bottom:1px solid #f0f0f0; } .nk-tab td input { width:130px; min-height:38px; } .nk-tab td input.r { width:100px; } .nk-tab .auswahl { width:90px !important; } .nk-naechst { white-space:nowrap; }
.nk-info { display:flex; gap:40px; align-items:flex-start; background:#f2f2f2; border-radius:8px; padding:16px 20px; margin-top:16px; font-size:14px; } .nk-info ul { margin:6px 0 0; padding-left:18px; } .nk-info li b { display:inline-block; min-width:56px; } .nk-info > svg { flex:none; margin-top:2px; }
.dok-such-dok { align-items:flex-start; } .dsd-text { display:flex; flex-direction:column; gap:2px; flex:1; min-width:0; } .dsd-oben { display:flex; justify-content:space-between; gap:10px; align-items:baseline; }
.dsd-oben b:first-child { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; min-width:0; } .dsd-betrag { white-space:nowrap; flex:none; font-size:13.5px; }
.dsd-text .klein-text { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.dok-za .za-offen { color:#b42318; font-weight:600; } .dok-za-hinweis { margin:0 26px 8px; font-weight:600; font-size:14px; }
.av-ziel { margin-left:auto; display:inline-flex; align-items:center; gap:4px; background:none; border:1px dashed #d4d4d4; color:#888; border-radius:999px; padding:3px 10px; font-size:12.5px; font-weight:500; white-space:nowrap; }
.av-ziel.an { border-style:solid; border-color:#e3e3e3; background:#fafafa; color:#222; } .av-ziel:hover { border-color:#bbb; }
.az-chips { display:inline-flex; gap:4px; flex-wrap:wrap; } .az-chip { display:inline-flex; align-items:center; gap:4px; font-size:12px; color:#333; } .az-chip + .az-chip::before { content:'·'; color:#aaa; margin-right:2px; }
.az-liste { display:flex; flex-direction:column; } .az-z { display:flex; align-items:center; gap:12px; padding:10px 6px; border-bottom:1px solid #f0f0f0; cursor:pointer; font-size:14.5px; } .az-z input { margin-left:auto; width:18px; height:18px; }
.az-ic { width:30px; height:30px; border-radius:8px; background:#f2f2f2; display:flex; align-items:center; justify-content:center; color:#333; }
dialog.mail-dialog { width:min(680px, 94vw); } .mail-fenster textarea { min-height:220px; } .mail-anhang { display:flex; align-items:center; gap:6px; margin:0; color:#555; font-size:13.5px; }
.mail-optionen { display:flex; flex-wrap:wrap; gap:8px 22px; } .mail-optionen input:disabled + span { opacity:.5; }
/* 6.70 Dokumente (Dom 27.10.2026): Liste wie plancraft – Nummer grün hinter dem Namen, Status, Bündel; Kürzen-Bilanz; E-Mail-Empfänger; Ablage */
.dok-titel { display:flex; align-items:center; gap:10px; flex-wrap:wrap; } .dok-titel b { font-size:15px; font-weight:600; color:#131313; }
.dok-nummer { display:inline-flex; align-items:center; border-radius:999px; padding:3px 11px; font-size:13.5px; font-weight:600; background:#e3f4e8; color:#1f6b3a; white-space:nowrap; }
.dok-nummer.entwurf { background:#ebeae7; color:#4a4844; border:none; border-radius:4px; }
/* Nummer bzw. „Entwurf“ als Spalte ganz vorne (Dom 2.11.2026) */
.dok-nr-spalte { flex:none; width:150px; display:flex; } .dok-nr-spalte .dok-nummer { max-width:100%; overflow:hidden; text-overflow:ellipsis; }
.dok-unter .dok-nr-spalte { width:122px; }
@media (max-width:700px) { .dok-nr-spalte { width:auto; } } .dok-nummer.storno { background:#f1f1f1; color:#888; text-decoration:line-through; }
.dok-a4 .dok-summen .dok-za { width:calc(100% - 52px); }
.dok-st { display:inline-flex; align-items:center; gap:4px; border-radius:999px; padding:5px 13px; font-size:14px; white-space:nowrap; background:#f1f1f1; color:#444; border:none; font-weight:500; }
.dok-st.offen { background:#e7f0ff; color:#1b5e8c; } .dok-st.bezahlt, .dok-st.angenommen { background:#e3f4e8; color:#1f6b3a; } .dok-st.ueberfaellig { background:#fff4cc; color:#8a6100; }
.dok-st.angemahnt, .dok-st.mahnung { background:#fdecec; color:#b42318; } .dok-st.storniert { background:#f1f1f1; color:#777; } .dok-st.abgelehnt { background:#fdecec; color:#b42318; } .dok-st.knopf { cursor:pointer; } .dok-st.knopf:hover { filter:brightness(.96); }
.dok-er { display:inline-flex; align-items:center; border-radius:999px; padding:2px 9px; font-size:12px; font-weight:500; background:#eef1f6; color:#3d4a5c; white-space:nowrap; } /* E-Rechnung (ZUGFeRD) */
.dok-typ { display:inline-flex; align-items:center; border-radius:999px; padding:5px 13px; font-size:14px; background:#3a3a3a; color:#fff; white-space:nowrap; }
.dok-zeile { gap:10px; } .dok-buendel { border-bottom:1px solid #e3e3e3; } .dok-buendel:last-child { border-bottom:none; } .dok-buendel .pa-zeile { border-bottom:none; }
.dok-zeile.dok-unter { padding-left:28px; background:#fafafa; } .dok-zeile.dok-unter .dok-titel b { font-weight:500; }
.kz-bilanz { width:100%; border-collapse:collapse; margin:16px 0 4px; font-size:14.5px; } .kz-bilanz th { text-align:left; padding:8px; } .kz-bilanz th.r, .kz-bilanz td.r { text-align:right; }
.kz-bilanz td { padding:6px 8px; } .kz-bilanz .kz-wert { display:inline-block; min-width:130px; background:#f2f2f2; border-radius:8px; padding:9px 12px; text-align:right; } .kz-bilanz input { width:150px; min-height:40px; }
.kz-bilanz .kz-brutto td { border-top:1px solid #e3e3e3; padding-top:10px; }
.mail-weitere { display:flex; flex-direction:column; gap:6px; margin-top:6px; } .mail-weitere .haken { font-weight:400; }
.ab-hoch-ebene { height:34px !important; min-height:34px; width:34px !important; } .ab-krume { height:34px; box-sizing:border-box; }
.ab-zeile[data-ordner] .ab-symbol svg, .ab-krume svg { color:#c62828; fill:#fde8e8; }
.dok-a4 .dok-texte + .dok-tabelle { margin-top:14px; }
.dok-pos.text .dok-pos-text { min-width:0; }

/* 6.74 Projekt-Chat (Dom 27.10.2026): Baustelle | Büro ganz oben ohne Titel, im Büro Alles · Chat · Verlauf klein rechts, Filter schwebt darunter */
.pa-chat { position:relative; }
.ch-reiter.ch-pkopf { padding:4px 0 0 !important; }
.ch-pkopf .ch-strom { margin:0 0 0 auto; } .ch-pkopf .ch-strom button { padding:3px 10px; font-size:12.5px; }
.ch-pkopf .ch-strom:not([hidden]) ~ .ch-filter { position:absolute; right:14px; top:56px; z-index:4; margin:0; background:rgba(255,255,255,.92); backdrop-filter:blur(6px); box-shadow:0 2px 10px rgba(0,0,0,.08); border-radius:18px; height:32px; padding:0 12px; }
.ch-pkopf .ch-filter { margin-bottom:0; }
a.ch-dokverweis { display:inline-flex; align-items:center; gap:5px; background:#f1f1f1; color:#222; padding:2px 8px; } a.ch-dokverweis:hover { background:#e8e8e8; }

/* Kalender (Dom 27.10.2026): Leiste oben mit Leiste ein/aus, Suche (klappt auf), Stift; Umschalter Termin | Aufgaben rechts im Seitenkopf
   wechselt nur den Bereich unter der Monatsübersicht; links offene Aufgaben zum Einplanen */
.ka.ohne-leiste .ka-links { display:none; } .ka.ohne-leiste .ka-haupt { padding-left:0; }
.ka-leistenkopf { display:flex; align-items:center; gap:4px; margin:0 0 12px; min-height:36px; }
.ka-leistenkopf .icon-knopf { width:36px; height:36px; min-height:36px; }
.ka-leistenkopf .ka-suche { flex:1; min-width:0; }
.ka-kopf .ka-leiste-knopf { display:none; } .ka.ohne-leiste .ka-kopf .ka-leiste-knopf { display:inline-flex; }
.ka-suche { display:inline-flex; align-items:center; gap:4px; height:36px; border:1px solid #999; border-radius:8px; padding:0 4px 0 10px; background:#fff; }
.ka-suche input { border:none; outline:none; padding:0; height:100%; width:100%; font-size:14px; background:none; min-width:0; }
.ka-umschalter { display:inline-flex; align-items:center; gap:2px; padding:3px; border:1px solid var(--linie); border-radius:20px; background:#fff; margin-left:8px; }
.ka-umschalter button { height:30px; min-width:30px; border:none; border-radius:15px; background:none; padding:0 12px; font-size:13.5px; display:inline-flex; align-items:center; justify-content:center; color:#333; cursor:pointer; }
.ka-umschalter button[data-modus="aufg"] { padding:0; width:30px; }
.ka-umschalter button.an { background:#111; color:#fff; }
.ka-auf-kopf { display:flex; align-items:baseline; justify-content:space-between; margin:6px 0 0; } .ka-auf-kopf b { font-size:15px; }
.ka-gruppe-kopf.rot { color:var(--rot); }
.ka-auf { display:flex; align-items:flex-start; gap:4px; padding:7px 8px; border-radius:8px; cursor:grab; font-size:13.5px; line-height:1.3; touch-action:pan-y; user-select:none; } .ka-auf:hover { background:#f4f4f4; }
.ka-auf .ka-haken { margin-top:3px; flex:none; color:#7a5af8; } .ka-auf-text { display:flex; flex-direction:column; min-width:0; } .ka-auf-text b { font-weight:500; overflow:hidden; text-overflow:ellipsis; } .ka-auf-text small { color:var(--grau); font-size:12px; }
.ka-auf.zieht { opacity:.45; }
.ka-zieh-schild { position:fixed; z-index:50; pointer-events:none; background:#fff; border:1px solid #ddd; box-shadow:0 4px 14px rgba(0,0,0,.12); border-radius:8px; padding:5px 10px; font-size:13px; max-width:240px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ka-haupt { min-width:0; } .ka-kopf { min-width:0; } .ka-kopf > * { flex:none; } .ka-kopf h1 { flex:0 1 auto; min-width:0; overflow:hidden; text-overflow:ellipsis; }
@media (max-width: 900px) { /* Handy: Leiste schwebt über dem Kalender; Kopf: Leiste, Heute, Pfeile, Tag/Woche/Monat, Umschalter – darunter der Titel */
  .ka.leiste-mobil .ka-links { display:flex; position:fixed; left:0; top:0; bottom:0; width:min(300px, 86vw); z-index:40; background:#fff; padding:16px; box-shadow:0 0 30px rgba(0,0,0,.18); overflow-y:auto; }
  .ka-kopf { flex-wrap:wrap; row-gap:8px; } .ka-kopf .ka-leiste-knopf { display:inline-flex; }
  .ka-kopf .kal-art { margin-left:auto; } .ka-kopf .kal-art button { padding:4px 10px; } .ka-kopf h1 { order:9; flex:1 1 100%; margin:0; }
  .ka-umschalter { margin-left:4px; }
}

/* 6.97 Logins (Dom 27.10.2026): Konten ohne Person einmal zuordnen */
.lg-zeile { display:flex; align-items:center; gap:10px; padding:10px 0; border-top:1px solid #f0f0f0; flex-wrap:wrap; } .lg-zeile select { width:auto; max-width:220px; }
.lg-name { display:flex; flex-direction:column; flex:1 1 220px; min-width:0; }
a.link-schwarz { color:#111; text-decoration:underline; text-underline-offset:2px; } a.link-schwarz:hover { color:#444; } /* keine roten Links (DESIGN.md) */

/* Interne Projekte (Dom 27.10.2026) */
.ip-balken { height:6px; border-radius:3px; background:#eee; overflow:hidden; margin-top:8px; } .ip-balken i { display:block; height:100%; background:#1f7a4d; border-radius:3px; }
.ip-ziel { font-size:16px !important; text-align:left; font-weight:600; }
.ip-notizen { padding:12px 4px; display:flex; flex-direction:column; gap:6px; } .ip-notiz-feld { min-height:240px; border:1px solid var(--linie); border-radius:10px; padding:12px 14px; font-size:15px; line-height:1.55; outline:none; }
.ip-notiz-feld:focus { border-color:#999; } .pb-art { margin-right:8px; }

/* Kalender Runde 3 (Dom 27.10.2026): Leiste oben Leiste | 📅 Termin · ☑️ Aufgaben | Stift, Suche rechts im Kopf, Aufgaben als 30-Minuten-Blöcke */
.ka-leistenkopf .ka-modus { flex:1; display:flex; justify-content:center; gap:2px; }
.ka-modus button { height:32px; border:1px solid var(--linie); background:#fff; padding:0 10px; font-size:13.5px; border-radius:16px; cursor:pointer; white-space:nowrap; color:#333; }
.ka-modus button.an { background:#111; border-color:#111; color:#fff; }
.ka-kopf .ka-suche { margin-left:8px; width:150px; border-color:var(--linie); color:var(--grau); } .ka-kopf .ka-suche:focus-within { border-color:#999; }
.ka-auf-neu { width:100%; box-sizing:border-box; height:36px; border:1px solid var(--linie); border-radius:8px; padding:0 10px; font-size:14px; margin:4px 0 8px; }
.ka-auf-neu:focus { border-color:#999; outline:none; }
.ka-unten .ka-auf { background:color-mix(in srgb, var(--f, #7a5af8) 16%, #fff); border-left:3px solid var(--f, #7a5af8); border-radius:6px; margin:4px 0; padding:5px 8px; }
.ka-unten .ka-auf:hover { background:color-mix(in srgb, var(--f, #7a5af8) 24%, #fff); } .ka-unten .ka-auf .ka-haken { color:var(--f, #7a5af8); }
.ka-geist.farbig { background:color-mix(in srgb, var(--f, #4285f4) 22%, #fff); border:2px solid var(--rot); color:#111; }
.ka-block-schild { background:color-mix(in srgb, var(--f) 22%, #fff); border:2px solid var(--rot); border-left-width:4px; box-shadow:0 6px 18px rgba(0,0,0,.14); font-size:12px; font-weight:600; padding:2px 7px; max-width:none; }
.ka-block.zieht, .ka-balken.zieht, .ka-chip.zieht { outline:2px solid var(--rot); outline-offset:-1px; }
.kk-wahl { margin-right:auto; } 
@media (max-width: 900px) { .ka-kopf .ka-suche { width:auto; flex:1 1 120px; margin-left:0; } }
.pl-kopf-rechts { display:flex; align-items:center; gap:16px; } .pl-intern { white-space:nowrap; }
.ip-ziel .pt-raute-ic { margin-right:6px; vertical-align:1px; }

/* Kalender Runde 4 (Dom 27.10.2026): Anlege-Fenster in der Form des Einsatz-Fensters, Termin-Karte mit Datum über der Uhrzeit, Raster rastet an Tagen ein */
dialog.ue-dialog.kn-dialog { padding:16px 20px 18px; } .kn-dialog .ue-form input:focus, .kn-dialog .ue-form textarea:focus { outline:none; }
.kn-dialog .ue-form textarea { border:none; padding:0; font-size:15px; font-weight:500; color:#111; background:none; resize:none; min-height:22px; outline:none; }
.kn-dialog .kn-optionen { display:flex; align-items:center; gap:14px; } .kn-dialog .ue-form .kn-optionen label { min-height:0; border:none; padding:0; background:none; font-size:14px; color:#111; box-shadow:none; }
.kn-dialog .kn-termin { display:flex; flex-direction:column; gap:10px; } .kn-dialog .kn-wann > label:first-child { flex:1.6; }
.kn-dialog .datumsfeld input[type=text] { border:none !important; padding:0 !important; font-size:15px; font-weight:600; background:none; box-shadow:none !important; height:auto; }
.ka-karte .kk-datum { display:flex; align-items:center; gap:6px; flex-wrap:wrap; } .ka-karte .kk-datum .datumsfeld { flex:1 1 150px; min-width:0; }
.ka-karte .kk-zeit { display:flex; align-items:center; gap:8px; margin-top:8px; } .ka-karte .kk-zeit .kk-uhr { width:84px; text-align:center; }
.ka-karte .kk-dauer { display:block; color:var(--grau); font-size:13px; margin:4px 0 0; } .ka-karte .kk-dauer:empty { display:none; }
.ka-scroll { scroll-snap-type:x mandatory; scroll-padding-left:56px; } .ka-spalte { scroll-snap-align:start; }
.ka-auf-kopf a { color:inherit; text-decoration:none; } .ka-auf-kopf a:hover { text-decoration:underline; }

/* Aufgaben „Heute“: kleines Dashboard rechts (Dom 27.10.2026) */
.auf-zwei { flex:1 1 auto; min-height:0; display:grid; grid-template-columns:minmax(0, 1fr) 260px; gap:18px; } .auf-zwei > .auf-scroll { min-height:0; overflow-y:auto; }
.auf-dash { align-self:start; border:1px solid var(--linie); border-radius:12px; background:#fff; padding:14px 16px; display:flex; flex-direction:column; gap:12px; }
.ad-kopf { display:flex; align-items:center; justify-content:space-between; gap:8px; } .ad-kopf select { width:auto; max-width:140px; }
.ad-kacheln { display:grid; grid-template-columns:repeat(3, 1fr); gap:6px; } .ad-kachel { border:1px solid #eee; border-radius:10px; padding:8px; text-align:center; display:flex; flex-direction:column; }
.ad-kachel b { font-size:22px; } .ad-kachel span { font-size:12px; color:var(--grau); } .ad-kachel.heute { border-color:#1f7a4d; } .ad-kachel.heute b { color:#1f7a4d; }
.ad-satz { font-size:13.5px; color:#333; }
.ad-woche { display:grid; grid-template-columns:repeat(7, 1fr); gap:4px; height:70px; align-items:end; } .ad-woche div { display:flex; flex-direction:column; align-items:center; justify-content:flex-end; height:100%; gap:3px; }
.ad-woche i { display:block; width:100%; max-width:18px; background:#cfe6d9; border-radius:3px 3px 0 0; min-height:2px; } .ad-woche div:last-child i { background:#1f7a4d; } .ad-woche span { font-size:10.5px; color:var(--grau); }
.ad-liste { font-size:13px; color:#555; display:flex; flex-direction:column; gap:3px; border-top:1px solid #f0f0f0; padding-top:8px; }
@media (max-width: 1000px) { .auf-zwei { grid-template-columns:1fr; } .auf-dash { display:none; } }
.sw-reiter { margin:10px 0 6px; gap:16px; flex-wrap:wrap; } .ges-bezug { white-space:nowrap; max-width:240px; overflow:hidden; text-overflow:ellipsis; }
.kn-dialog .kn-auf { margin-top:12px; } .kn-dialog .kn-auf .auf-eingabe { border:1px solid #e1e1e1; border-radius:12px; padding:8px 12px; } .kn-dialog .kn-auf .auf-eingabe:focus-within { border-color:#111; }
.kn-dialog .kn-auf .auf-vorschau { gap:8px; } .kn-dialog .kn-auf button.auf-chip { font-size:14px; padding:7px 10px 7px 12px; border-radius:8px; } .kn-dialog .kn-auf button.auf-chip .ic { width:13px; height:13px; }
.kn-dialog .kn-wdh { display:flex; flex-direction:column; gap:8px; } .kn-dialog .kn-wdh .dok-toggle { min-height:0; border:none; padding:0; background:none; font-size:14px; color:#111; }
.ad-mehr { justify-content:center; text-align:center; }
.pl-art { margin-left:14px; } .pl-art a { text-decoration:none; }
/* ⋮ → Verlauf als Fenster: derselbe Verlaufs-Baustein wie in jeder Akte (Dom 27.10.2026) */
dialog.vl-dialog { width:min(640px, 94vw); padding:0; } dialog.vl-dialog > .vl-block { margin:0; border:none; box-shadow:none; }
dialog.vl-dialog .vl-block-kopf { display:flex; align-items:center; justify-content:space-between; } .vl-dialog-unter { margin:-4px 0 10px; }
dialog.vl-dialog .vl-ev-liste { max-height:65vh; overflow:auto; }

/* Personalakte → Login: Benachrichtigungen (Dom 27.10.2026) */
.ma-bn { margin-top:16px; } .bn-raster { display:grid; grid-template-columns:repeat(auto-fill, minmax(240px, 1fr)); gap:14px 24px; }
.bn-gruppe { display:flex; flex-direction:column; gap:8px; } .bn-gruppe > b { font-size:13px; color:var(--grau); font-weight:600; }
.bn-gruppe .dok-toggle { font-size:14px; } .bn-uhr-r { display:flex; align-items:center; gap:8px; font-size:13px; color:var(--grau); margin:-2px 0 2px 44px; } .bn-uhr-r input { width:auto; }
/* Einstellungen übertragen (Dom 28.10.2026) */
.ub-spalten { display:grid; grid-template-columns:repeat(auto-fit, minmax(300px, 1fr)); gap:16px; max-width:980px; }
.ub-spalten .karte { display:flex; flex-direction:column; } .ub-spalten .karte .form-fuss { margin-top:auto; padding-top:12px; }
.ub-karte { max-width:980px; margin-top:16px; } .ub-karte > h2 .klein-text { font-weight:400; margin-left:6px; }
.ub-gruppe { border-top:1px solid var(--linie-tabelle, #eee); padding:4px 0; } .ub-gruppe.leer .ub-name { color:var(--grau); }
.ub-gruppe .mt-f-zeile { flex-wrap:wrap; } .ub-name { font-weight:500; min-width:260px; text-align:left; } .ub-zahlen { display:flex; gap:6px; align-items:center; flex-wrap:wrap; }
.ub-details { margin:0 0 6px 40px; } .ub-details summary { cursor:pointer; } .ub-details ul { margin:6px 0 0; padding:0; list-style:none; display:grid; gap:4px; font-size:14px; }

/* Rückmeldung nach dem Senden (Dom 28.10.2026) */
.versand-daten { display:grid; grid-template-columns:max-content 1fr; gap:6px 14px; margin:0; font-size:14px; } .versand-daten dt { color:var(--grau); } .versand-daten dd { margin:0; word-break:break-all; }
.versand-schritte { margin:6px 0 0; padding-left:20px; font-size:14px; line-height:1.6; }
.mail-fehler { margin:0; }
.dv-online { color:var(--gruen); font-size:12px; font-weight:500; max-width:250px; flex:none; line-height:1.35; text-align:right; text-decoration:none; }
.dv-online span { display:inline-flex; align-items:center; gap:4px; color:var(--schwarz); text-decoration:underline; } .dv-online:hover span { color:var(--rot); }
/* Rechtliches und Bank (Dom 28.10.2026): mehrere verantwortliche Personen und Konten, Bezahlcode */
.dok-vp { display:flex; flex-direction:column; gap:8px; } .dok-vp-zeile { display:grid; grid-template-columns:220px minmax(0, 1fr) auto; gap:10px; align-items:end; }
.dok-vp-neu { justify-self:start; color:var(--rot); font-weight:600; }
.dok-konten { display:flex; flex-direction:column; gap:10px; padding-left:34px; } .dok-konto { display:flex; flex-direction:column; gap:2px; font-size:14px; } .dok-konto span { color:var(--grau); }
.dok-konto-form { display:grid; grid-template-columns:auto 1fr 1fr 1.4fr 0.8fr auto; gap:10px; align-items:end; padding:8px 0; border-bottom:1px solid #f0f0f0; }
.dok-konto-std { display:flex; align-items:center; gap:6px; font-size:13px; padding-bottom:10px; white-space:nowrap; } .dok-konto-std input { width:auto; }
.dok-giro { margin:14px 0 0 34px; } .dok-giro-info { margin:6px 0 0 34px; max-width:620px; }
@media (max-width: 760px) { .dok-vp-zeile, .dok-konto-form { grid-template-columns:1fr; } }

/* Beta-Kennzeichen oben in der Seitenleiste (Dom 28.10.2026): ruhig, aber sofort zu sehen; eingeklappt bleibt die Marke unten */
.logo-text .beta-pille { align-self:flex-start; margin-top:2px; font-size:10px; font-weight:700; letter-spacing:.6px; text-transform:uppercase; color:#f59e0b; border:1px solid #f59e0b; border-radius:6px; padding:0 5px; line-height:1.5; }
body.beta-umgebung:not(.nav-zu) #beta-leiste.beta-marke { display:none; }
/* Aufgabe geöffnet nach der Vorlage „Aufgabe (neu, Mittelding)“ (Dom 28.10.2026) – Bausteine aus vorlagen.css (vl-fen-kopf, vl-aufg, vl-msg, vl-sys, vl-gfeld, vl-prio …) */
dialog.auf-detail.auf-vl { width:min(900px, 96vw); border-radius:16px; box-shadow:0 18px 50px rgba(0,0,0,.18); font-size:14px; color:#111; overflow:hidden; }
dialog.auf-vl .auf-detail-huelle { display:flex; flex-direction:column; max-height:calc(100vh - 3em); }
dialog.auf-vl .vl-fen-kopf { padding:14px 16px 10px; border-bottom:1px solid #eee; }
dialog.auf-vl .kx-ik { width:32px; height:32px; } dialog.auf-vl .kx-ik:disabled { opacity:.3; cursor:default; }
.auf-vl-bezug { flex:1; min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.auf-vl-bezug a { font-size:14px; font-weight:500; color:#555; text-decoration:none; } .auf-vl-bezug a:hover { color:#111; }
.auf-vl-bezug .link { font-size:13.5px; color:#8a8a8a; } .auf-vl-bezug .link:hover { color:#111; }
.auf-vl-knoepfe { display:flex; gap:6px; }
dialog.auf-vl .vl-aufg { flex:1; min-height:0; }
dialog.auf-vl .vl-aufg { grid-template-rows:minmax(0, 1fr); }
dialog.auf-vl .vl-aufg-links { padding:0; gap:0; overflow:hidden; min-height:0; display:flex; flex-direction:column; }
/* links scrollt nur der Inhalt; die Kommentarzeile steht fest unten (Dom 28.10.2026) */
.auf-vl-scroll { flex:1; min-height:0; overflow-y:auto; padding:16px 22px 12px; display:flex; flex-direction:column; gap:12px; }
dialog.auf-vl .vl-aufg-rechts { padding:16px 16px 16px; overflow-y:auto; }
/* Titel mit Erledigt-Kreis */
dialog.auf-vl .vl-aufg h3 { align-items:flex-start; }
dialog.auf-vl .vl-aufg h3 textarea { flex:1; border:none; padding:0; margin:0; min-height:0; resize:none; background:transparent; font:inherit; font-size:20px; font-weight:600; line-height:1.3; color:#111; }
dialog.auf-vl .vl-aufg h3 textarea:focus, .auf-vl-notiz:focus, .auf-vl-uneu input:focus { outline:none; }
dialog.auf-vl .vl-aufg h3 textarea.erledigt { text-decoration:line-through; color:#9a9a9a; }
dialog.auf-vl button.vl-kreis { padding:0; background:#fff; cursor:pointer; display:inline-flex; align-items:center; justify-content:center; color:#fff; }
dialog.auf-vl h3 .vl-kreis { margin-top:3px; } dialog.auf-vl button.vl-kreis:hover { border-color:#111; }
dialog.auf-vl .vl-kreis.fertig { background:#111; border-color:#111; } dialog.auf-vl .vl-kreis svg { width:12px; height:12px; }
.auf-vl-notiz { border:none; padding:0; margin:0; min-height:0; resize:none; background:transparent; font:inherit; color:#444; font-size:14px; line-height:1.5; }
/* Unteraufgaben */
dialog.auf-vl .vl-unter .auf-vl-utext { flex:1; min-width:0; }
dialog.auf-vl .vl-unter:hover .auf-weg, dialog.auf-vl .vl-unter:hover .auf-u-wer { opacity:1; }
dialog.auf-vl .vl-unter.fertig .auf-u-wer { text-decoration:none; }
.auf-vl-uneu input.vl-mehr { border:none; background:transparent; padding:8px 0 0; width:100%; font:inherit; font-size:13px; color:#111; }
.auf-vl-uneu input.vl-mehr::placeholder { color:#666; }
/* Kommentare und Verlauf als Strom */
.auf-vl-strom { display:flex; flex-direction:column; gap:10px; }
dialog.auf-vl .vl-msg img.vl-ev-av { object-fit:cover; padding:0; }
dialog.auf-vl .vl-blase p { margin:0; } dialog.auf-vl .vl-blase p + p { margin-top:6px; } dialog.auf-vl .vl-msg.ich .vl-blase a { color:#fff; }
.auf-vl-kmenue { border:none; background:none; padding:0 4px; color:#9a9a9a; cursor:pointer; opacity:0; font-size:13px; } .vl-msg:hover .auf-vl-kmenue { opacity:1; } .auf-vl-kmenue:hover { color:#111; }
.auf-vl-kedit { display:flex; flex-direction:column; gap:6px; min-width:280px; }
dialog.auf-vl .vl-kommentar { color:#111; }
dialog.auf-vl .vl-kommentar .ic { border:none; background:none; padding:0; cursor:pointer; } dialog.auf-vl .vl-kommentar .ic:hover { color:#111; }
.auf-vl-feld { flex:1; min-width:0; display:flex; flex-direction:column; }
.auf-vl-feld textarea { border:none; padding:5px 0; margin:0; min-height:29px; box-sizing:border-box; resize:none; background:transparent; font:inherit; font-size:13.5px; line-height:1.4; color:#111; max-height:160px; }
.auf-vl-feld textarea:focus { outline:none; } .auf-vl-feld textarea::placeholder { color:#9a9a9a; }
dialog.auf-vl .vl-kommentar:focus-within { border-color:#111; } dialog.auf-vl .vl-kommentar.ziehen { border-color:#111; background:#fafafa; }
dialog.auf-vl .vl-kommentar .auf-k-datei { font-size:12.5px; color:#555; display:flex; align-items:center; gap:4px; padding-bottom:4px; }
/* rechte Spalte: große Felder */
dialog.auf-vl button.vl-gfeld { width:100%; font:inherit; text-align:left; cursor:pointer; } dialog.auf-vl button.vl-gfeld:hover { border-color:#bbb; }
dialog.auf-vl button.vl-gfeld:disabled { cursor:default; opacity:.6; } dialog.auf-vl .vl-gfeld img.kx-av { width:32px; height:32px; object-fit:cover; }
dialog.auf-vl button.vl-dfeld { width:100%; font:inherit; text-align:left; cursor:pointer; } dialog.auf-vl button.vl-dfeld:hover { border-color:#bbb; }
.auf-vl-dauer { align-self:flex-start; font-size:12.5px; margin:-2px 0 0 2px; color:#8a8a8a !important; } .auf-vl-dauer:hover { color:#111 !important; }
dialog.auf-vl .vl-prio button { flex:1; text-align:center; border:1px solid #e1e1e1; border-radius:10px; padding:8px 0; font:inherit; font-size:13px; font-weight:600; background:#fff; color:#111; cursor:pointer; }
dialog.auf-vl .vl-prio button:hover { border-color:#bbb; } dialog.auf-vl .vl-prio button.an { border-color:#d93025; color:#d93025; box-shadow:0 0 0 1px #d93025 inset; }
.auf-vl-erstellt { margin-top:6px; line-height:1.5; }
dialog.auf-vl .auf-vl-feld .md-feld { border:none; box-shadow:none; background:transparent; padding:5px 0; min-height:0; max-height:160px; overflow-y:auto; font-size:13.5px; line-height:1.4; color:#111; }
dialog.auf-vl .auf-vl-feld .md-feld:focus { outline:none; box-shadow:none; }
dialog.auf-vl .auf-vl-feld .md-eingabe { --md-oben:5px; --md-links:0px; } dialog.auf-vl .md-eingabe.auf-vl-notiz { --md-oben:0px; --md-links:0px; border:none; padding:0; min-height:1.5em; background:transparent; color:#444; line-height:1.5; }

/* Fenster „Feedback melden“ (Dom 27.10.2026, Vorlage aus Doms Bild): weich, große Rundungen, Auswahlkarten, gestrichelte Bilder-Ablage */
dialog.fbm-dialog { width:min(640px, 94vw); border-radius:22px; padding:22px 24px 20px; }
.fbm-kopf { display:flex; align-items:center; gap:14px; margin:0 0 18px; }
.fbm-kopf > div { flex:1; min-width:0; } .fbm-zu { margin-left:auto; } .fbm-kopf h2 { margin:0; font-size:20px; } .fbm-kopf span { font-size:13px; color:var(--grau); }
.fbm-zu { flex:none; width:38px; height:38px; padding:0; border:none; border-radius:50%; background:var(--hell); color:#444; font-size:16px; line-height:38px; }
.fbm-zu:hover { background:#e9e9e9; }
.fbm { display:flex; flex-direction:column; gap:10px; }
.fbm-t { font-size:13px; font-weight:600; color:#444; margin-top:6px; }
.fbm-arten { display:grid; grid-template-columns:repeat(3, 1fr); gap:10px; }
.fbm-arten button { display:flex; flex-direction:column; align-items:flex-start; gap:3px; padding:14px 16px; border:1.5px solid var(--linie); border-radius:16px; background:#fff; text-align:left; font-weight:400; }
.fbm-arten button:hover { border-color:#c9c9c9; }
.fbm-arten button.an { border:2px solid var(--schwarz); padding:13.5px 15.5px; }
.fbm-arten .fbm-ic { font-size:22px; line-height:1; margin-bottom:4px; } .fbm-arten b { font-size:15px; } .fbm-arten span:last-child { font-size:12.5px; color:var(--grau); }
.fbm-feld { display:flex; flex-direction:column; gap:2px; border:1.5px solid var(--linie); border-radius:14px; padding:8px 14px; }
.fbm-feld > span { font-size:12px; color:var(--grau); }
dialog.fbm-dialog .fbm-feld .auswahl-knopf { border:none; border-radius:0; padding:2px 0; min-height:0; height:auto; width:100%; font-size:15px; background:transparent; box-shadow:none; }
dialog.fbm-dialog .fbm-feld select { border:none; border-radius:0; padding:2px 0; height:auto; font-size:15px; background-color:transparent; box-shadow:none; outline:none; }
.fbm input[name=titel], .fbm textarea { border:1.5px solid var(--linie); border-radius:14px; padding:11px 14px; font-size:15px; }
dialog.fbm-dialog .fbm textarea { min-height:130px; resize:vertical; }
.fbm-ablage { border:1.5px dashed #c9c9c9; border-radius:16px; padding:18px; text-align:center; color:var(--grau); font-size:13.5px; cursor:pointer; background:var(--flaeche); }
.fbm-ablage:hover, .fbm-ablage.drueber { border-color:#999; color:#333; }
.fbm-fuss { display:flex; justify-content:flex-end; gap:10px; margin-top:8px; }
.fbm-fuss button { min-width:120px; padding:11px 18px; border-radius:12px; }
@media (max-width:760px) { dialog.fbm-dialog.handy-voll { border-radius:0; } .fbm-arten { gap:8px; } .fbm-arten button { padding:12px; } .fbm-arten span:last-child { font-size:11.5px; } }

/* Rollen & Rechte als Matrix (Dom 27.10.2026): Rollen oben, Rechte links, je Zelle 💻 Web und 📱 Mobil; erste Spalte und Kopf bleiben stehen */
.rm-wrap { width:fit-content; max-width:100%; overflow:auto; max-height:calc(100vh - 160px); border:1px solid var(--linie); border-radius:12px; background:#fff; }
.rm { border-collapse:separate; border-spacing:0; width:max-content; table-layout:fixed; }
.rm th, .rm td { border-bottom:1px solid #f0f0f0; padding:8px 10px; background:#fff; }
.rm thead th { position:sticky; top:0; z-index:2; vertical-align:bottom; border-bottom:1px solid var(--linie); text-transform:none; letter-spacing:0; }
.rm .rm-erste { position:sticky; left:0; z-index:1; width:270px; min-width:270px; max-width:270px; text-align:left; border-right:1px solid var(--linie); }
.rm thead .rm-erste { z-index:3; }
.rm td.rm-erste b { display:block; font-size:13.5px; } .rm td.rm-erste span { display:block; font-size:11.5px; color:var(--grau); line-height:1.35; margin-top:1px; }
.rm-rolle { width:148px; min-width:148px; max-width:148px; text-align:center; font-weight:400; } /* feste Breite: viele Rollen = seitlich scrollen statt quetschen */
.rm-rolle b { overflow:hidden; text-overflow:ellipsis; max-width:116px; display:inline-block; vertical-align:middle; }
.rm td.rm-zelle { width:148px; min-width:148px; max-width:148px; }
.rm-rolle > div { display:flex; align-items:center; justify-content:center; gap:2px; } .rm-rolle b { font-size:12.5px; white-space:nowrap; }
.rm-rolle .icon-knopf { width:20px; min-width:20px; height:24px; padding:0; border-color:transparent; background:none; color:var(--grau); }
.rm-lizenz { display:inline-block; margin:3px 0 1px; padding:1px 8px; border-radius:20px; font-size:11px; font-weight:600; background:#eef3fb; color:#1f4f99; }
.rm-lizenz.mobil { background:#fff2e0; color:#9a5b00; }
.rm-rolle .klein-text { display:block; font-size:11px; }
.rm-gruppe td { background:var(--hell); font-size:11px; text-transform:uppercase; letter-spacing:.8px; color:var(--grau); padding-top:12px; }
.rm-zelle { text-align:center; } .rm-zelle > div { display:inline-flex; flex-direction:column; gap:4px; }
.rm-box { display:inline-flex; align-items:center; justify-content:center; width:30px; height:26px; padding:0; border:none; border-radius:6px; background:none; color:#a8acaf; cursor:pointer; } /* aus: nur Umriss */
.rm-box svg { fill:none; stroke:currentColor; }
.rm-box.an { color:var(--rot); } .rm-box.an svg rect { fill:currentColor; } .rm-box.an svg path { stroke:currentColor; } /* an: Symbol gefüllt */
.rm-box.an svg rect + path[d^="M11"] { stroke:#fff; } /* Knopf des Handys bleibt sichtbar */
.rm-box:not(.leer):hover { background:var(--hell); color:#555; } .rm-box.an:not(:disabled):hover { color:var(--rot-dunkel); }
.rm-box:disabled { cursor:not-allowed; } .rm-box.an:disabled { color:#6b6b6b; }
.rm-box.leer { color:#b8bdc0; font-size:13px; cursor:default; }
.rm-legende { display:flex; gap:8px; flex-wrap:wrap; margin:0 0 10px; } /* Legende als eigene Leiste über der Tabelle (Dom 27.10.2026) */
.rm-leg-box { display:flex; align-items:center; gap:10px; padding:6px 10px; border:1px solid var(--linie); border-radius:10px; background:#fff; font-size:13px; color:#333; }
.rm-leg-box > b { font-size:11px; text-transform:uppercase; letter-spacing:.6px; color:var(--grau); margin-right:2px; }
.rm-leg-box > span { display:inline-flex; align-items:center; gap:5px; } .rm-leg-box .rm-box { cursor:default; width:22px; height:20px; } .rm-leg-box .rm-box.wo { color:#444; }
.rm-griff { display:inline-flex; color:#b0b4b7; cursor:grab; margin-right:2px; }
.rm-griff-zeile { display:flex; justify-content:center; height:14px; margin:-4px 0 2px; } .rm-griff-zeile .rm-griff { padding:0 8px; border-radius:6px; } .rm-griff-zeile .rm-griff:hover { background:var(--hell); } .rm-griff svg circle { fill:currentColor; stroke:none; } .rm-griff:hover { color:#555; }
.rm th.zieht { opacity:.5; } .rm th.davor { box-shadow:inset 3px 0 0 var(--rot); } .rm th.danach { box-shadow:inset -3px 0 0 var(--rot); }

/* Mitarbeiter auswählen als Checkliste (Dom 27.10.2026): Suche, Alle/Keine, Liste bleibt offen, ein Speichern */
dialog.mw-dialog { width:min(480px, 94vw); }
.mw-leiste { display:flex; gap:8px; align-items:center; margin:4px 0 10px; } .mw-leiste input { flex:1; min-width:0; }
.mw-liste { max-height:min(52vh, 460px); overflow:auto; border:1px solid var(--linie); border-radius:10px; }
.mw-zeile { display:flex; align-items:center; gap:10px; height:42px; padding:0 12px; border-bottom:1px solid #f2f2f2; cursor:pointer; }
.mw-zeile:last-child { border-bottom:none; } .mw-zeile:hover { background:var(--flaeche); }
.mw-zeile input { width:18px; height:18px; margin:0; accent-color:var(--rot); flex:none; }
.mw-name { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; } .mw-zeile .klein-text { flex:none; }
.mw-zeile.fest { cursor:default; } .mw-zeile.fest .mw-name { color:var(--grau); }
/* Runde 2 (Dom 28.10.2026): Bezug oben als Knopf mit Auswahl, Kommentarzeile fest unten und höher, Unteraufgaben mit Datum und Person, Pfeil zum Anlegen */
.auf-vl-bezugknopf { border:none; background:none; padding:0; margin:0; max-width:100%; font:inherit; font-size:14px; font-weight:500; color:#555; cursor:pointer; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; text-align:left; }
.auf-vl-bezugknopf:hover { color:#111; text-decoration:underline; text-underline-offset:3px; }
dialog.auf-vl .vl-aufg-links > .vl-kommentar { flex:none; margin:0 22px 16px; padding:6px 6px 6px 12px; align-items:flex-end; box-shadow:0 -10px 14px -12px rgba(0,0,0,.12); background:#fff; }
dialog.auf-vl .vl-aufg-links > .vl-kommentar .ic { padding:0 0 9px; }
dialog.auf-vl .auf-vl-feld .md-feld { min-height:44px; padding:6px 0; }
dialog.auf-vl .vl-kommentar button.primaer { height:32px; }
.auf-u-tag { border:none; background:none; color:#aaa; padding:2px 6px; border-radius:12px; font-size:12px; font-weight:500; cursor:pointer; opacity:0; display:inline-flex; align-items:center; white-space:nowrap; }
.auf-u-tag.an { opacity:1; color:#555; background:#f2f2f2; } .auf-u-tag.alt { color:#d93025; background:#fdecea; } .auf-u-tag:hover { background:#e9e9e9; color:#111; }
dialog.auf-vl .vl-unter:hover .auf-u-tag, .auf-u-tag.an-sichtbar, .auf-u-wer.an-sichtbar { opacity:1; }
dialog.auf-vl .vl-unter.fertig .auf-u-tag { text-decoration:none; }
.auf-vl-uneu { display:flex; align-items:center; gap:4px; padding-top:4px; } .auf-vl-uneu input.vl-mehr { flex:1; min-width:0; padding:6px 0; }
.auf-vl-pfeil { flex:none; width:28px; height:28px; padding:0; border:none; border-radius:8px; background:#111; color:#fff; display:inline-flex; align-items:center; justify-content:center; cursor:pointer; }
.auf-vl-pfeil:hover { background:#333; }
/* Bonus-Regeln mit Schalter (Dom 28.10.2026): eingeschaltete oben, „Ausgeschaltet“ darunter – nicht grau, nur getrennt */
.bo-regel.mit-schalter { grid-template-columns:44px 1fr auto auto; }
.bo-regel.mit-schalter .bn-schalter { width:40px; height:23px; } .bo-regel.mit-schalter .bn-schalter span { width:17px; height:17px; } .bo-regel.mit-schalter .bn-schalter.an span { left:20px; }
.bo-aus-titel { font-size:14px; font-weight:600; margin:18px 0 4px; display:flex; gap:8px; align-items:baseline; flex-wrap:wrap; }
.rm-legende { display:flex; align-items:center; gap:6px; flex-wrap:wrap; margin:0 0 12px; } .rm-legende .rm-box { cursor:default; margin-left:6px; }
/* Lohngruppe: Zuschlag je Gruppe mit Komma, Zielsatz rechnet ihn aus (8.07) */
.lg-zu, .lg-ziel { display:flex; align-items:center; gap:10px; min-width:0; } .lg-ziel .klein-text { margin:0; }
.lg-proz { display:inline-flex; align-items:center; gap:6px; margin-left:auto; } .lg-proz input { width:110px; }
/* Entwickler-Seite (8.09): Kacheln je Bereich, darunter Sicherung/Abgleich und Fehler nebeneinander */
.ew-reiter { margin-bottom:14px; } .ew-titel { font-size:13px; font-weight:600; color:var(--grau, #6b6b6b); margin:4px 0 10px; }
.ew-spalten { display:grid; grid-template-columns:repeat(auto-fit, minmax(320px, 1fr)); gap:16px; align-items:start; }
.ew-log { display:flex; flex-direction:column; max-height:360px; overflow:auto; } .ew-log > div { display:grid; grid-template-columns:130px 1fr; gap:10px; padding:8px 0; border-top:1px solid var(--linie, #e5e5e5); font-size:13px; } .ew-log > div:first-child { border-top:none; }
#ew-inhalt .kachel .zahl { overflow-wrap:anywhere; }
#ew-inhalt .kacheln.klein { grid-template-columns:repeat(auto-fit, minmax(140px, 1fr)); }
.fb-leiste { margin:0 0 12px; gap:8px; } .ew-reiter .fb-leiste { margin:0 0 0 auto; padding-bottom:6px; } .ew-reiter .fb-leiste .rechts { display:none; }
.ew-reiter { flex-wrap:wrap; } @media (max-width:700px) { .ew-reiter .fb-leiste { width:100%; margin:6px 0 4px; padding:0; display:flex; flex-direction:row; flex-wrap:nowrap; align-items:center; } .ew-reiter .fb-leiste select { flex:1; min-width:0; } } #ew-inhalt .fb-board { max-height:calc(100vh - 210px); overflow:auto; }
/* Feedback-Symbol: Zahl neuer Meldungen im roten Punkt (Dom 27.10.2026) */
#feedbackknopf b { top:-2px; right:-4px; min-width:16px; height:16px; padding:0 4px; font-size:10px; font-weight:700; line-height:16px; color:#fff; text-align:center; border-radius:8px; box-sizing:border-box; }

/* Ticket-Karten der Pipeline (Dom 27.10.2026): Art als Symbol + Marke, fetter Titel, 2 Zeilen Text, Vorschaubild, unten Von · Datum · Bereich und Version */
.fb-karte { padding:10px 12px; border-radius:10px; }
.fb-k-kopf { display:flex; align-items:center; gap:6px; } .fb-k-kopf .fb-k-ic { color:var(--grau); display:inline-flex; } .fb-k-kopf .fb-k-ic:first-of-type { margin-left:auto; }
.fb-karte .fb-art, .fb-t-kopf .fb-art { display:inline-flex; align-items:center; gap:4px; }
.fb-karte b.fb-k-titel { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; font-weight:700; font-size:14px; line-height:1.3; margin-top:7px; }
.fb-k-text { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; font-size:12.5px; line-height:1.4; color:#555; margin-top:3px; }
.fb-karte img { max-height:96px; border-radius:7px; margin-top:8px; }
.fb-k-fuss { display:flex; align-items:center; gap:6px; margin-top:8px; font-size:11.5px; color:var(--grau); }
.fb-k-fuss > span:first-child { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; } .fb-k-fuss .marke { flex:none; font-size:11px; }
.fb-t-kopf { margin:0 0 4px; gap:6px; } .fb-t-bearb { background:var(--flaeche); border:1px solid var(--linie); border-radius:12px; padding:14px; }
/* Einstellungen → Dateinamen (8.15): Elemente als Chips, ziehen zum Umsortieren, Liste mit Haken unter dem Feld */
.dn-feld { position:relative; }
.dn-chips { display:flex; flex-wrap:wrap; gap:6px; align-items:center; min-height:58px; padding:10px 12px; border:1px solid #e1e1e1; border-radius:12px; background:#fff; cursor:pointer; margin-top:6px; }
.dn-chips:focus, .dn-chips:hover { border-color:#111; }
.dn-chip { display:inline-flex; align-items:center; gap:6px; background:#f0f0f0; border:1px solid #e3e3e3; border-radius:16px; padding:4px 6px 4px 12px; font-size:14px; font-weight:500; cursor:grab; }
.dn-chip.drueber { border-color:#111; } .dn-chip button { background:none; border:none; padding:2px 6px; cursor:pointer; color:#6b6b6b; font-size:12px; }
.dn-chip.klein { padding:3px 10px; font-size:13px; cursor:pointer; } .dn-chip.klein .klein-text { margin-left:2px; }
.dn-plus { margin-left:auto; color:#a8a8a8; display:inline-flex; align-items:center; gap:6px; font-size:14px; }
.dn-liste { margin-top:6px; background:#fff; border:1px solid #e1e1e1; border-radius:14px; box-shadow:0 10px 30px rgba(0,0,0,.12); padding:8px; display:flex; flex-direction:column; }
.dn-liste label.haken { padding:8px 10px; border-radius:8px; display:flex !important; flex-direction:row !important; gap:10px; align-items:center; font-size:15px; } .dn-liste label.haken:hover { background:#f5f5f5; } .dn-liste input { width:auto; margin:0; }
.dn-trenner { margin-top:6px; } 
.dn-vorschau { background:#f5f5f5; border-radius:10px; padding:12px 14px; display:flex; flex-direction:column; gap:4px; } .dn-vorschau b { word-break:break-all; }
/* E-Mail-Versand: Konten und Vorlagen (8.15) */
.mv-titel { font-size:15px; font-weight:600; margin:0 0 10px; }
.mv-konto { display:flex; align-items:center; gap:12px; padding:10px 0; } .mv-konto > div { flex:1; min-width:0; } .mv-konto .avatar-kreis { background:#f0f0f0; color:#111; }
.mv-gruppe { font-size:12px; letter-spacing:.04em; text-transform:uppercase; color:#777; margin:16px 0 6px; }
.mv-vorlage { border:1px solid #e5e5e5; border-radius:10px; margin-bottom:8px; background:#fff; }
.mv-kopf { width:100%; display:flex; align-items:center; gap:10px; background:none; border:none; padding:12px 14px; text-align:left; cursor:pointer; font:inherit; }
.mv-kopf .mv-betreff { margin-left:auto; max-width:50%; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; } .mv-pfeil { transform:rotate(-90deg); transition:transform .15s; display:inline-flex; } .mv-vorlage.offen .mv-pfeil { transform:none; }
.mv-form { padding:0 14px 14px; } .mv-platz { display:flex; flex-wrap:wrap; gap:6px; }
.mv-vorschau { background:#f5f5f5; border-radius:10px; padding:12px 14px; } .mv-vorschau pre { white-space:pre-wrap; font:inherit; font-size:14px; margin:6px 0 0; }
.dn-form.dok-einst-form, .mv-form.dok-einst-form { padding-left:14px; } .dn-form.dok-einst-form { padding:0; }

/* Einstellungen → Seitenleiste (Dom 27.10.2026): Punkte und Gruppen ziehen, ein- und ausblenden */
.sl-hinweis { max-width:760px; margin:-4px 0 14px; }
.sl-liste { max-width:620px; display:flex; flex-direction:column; gap:6px; }
.sl-zeile { display:flex; align-items:center; gap:10px; height:42px; padding:0 8px 0 4px; border:1px solid var(--linie); border-radius:10px; background:#fff; }
.sl-zeile.aus .sl-name, .sl-zeile.aus .sl-ic, .sl-gruppe.aus .sl-gkopf input { opacity:.4; text-decoration:line-through; }
.sl-griff { display:inline-flex; color:#b0b4b7; cursor:grab; padding:4px; } .sl-griff svg circle { fill:currentColor; }
.sl-ic { display:inline-flex; color:#555; } .sl-ic svg { width:18px; height:18px; } .sl-name { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:14px; }
.sl-auge { color:#555; margin-left:auto; }
.sl-gruppe { border:1px solid var(--linie); border-radius:12px; background:var(--flaeche); padding:6px; }
.sl-gkopf { display:flex; align-items:center; gap:8px; padding:2px 2px 6px; } .sl-gkopf input { flex:1; min-width:0; font-weight:600; } .sl-gkopf select { width:auto; }
.sl-innen { display:flex; flex-direction:column; gap:5px; padding-left:22px; min-height:34px; border-radius:8px; }
.sl-zwischen input { flex:1; border:none; background:transparent; font-size:11.5px; text-transform:uppercase; letter-spacing:.6px; color:var(--grau); }
.sl-leer, .sl-ende { padding:9px 12px; border:1.5px dashed #d6d9db; border-radius:10px; color:var(--grau); font-size:12.5px; text-align:center; }
.sl-ende { margin-top:4px; }
.sl-liste .zieht { opacity:.4; } .sl-liste .davor { box-shadow:0 -3px 0 var(--rot); } .sl-liste .danach { box-shadow:0 3px 0 var(--rot); } .sl-liste .hinein { outline:2px dashed var(--rot); outline-offset:2px; }
body:not(.beta) aside .nur-beta-a { display:none !important; } /* Beta-Umgebung ohne Recht „Beta“ */
.nav-abschnitt.ohne-recht { display:none; }
.nav-abschnitt { padding-bottom:6px; margin-bottom:6px; border-bottom:1px solid #2a2a2a; } /* Überschrift-Gruppe endet sichtbar */

/* Rückfall der PDF-Anzeige: Meldung + „PDF öffnen“ (eingebauter Betrachter) */
.pdf-rueckfall { padding: 28px 18px; text-align: center; line-height: 1.45; }
.pdf-rueckfall .pdf-fehlertext { font-size: 12px; opacity: .7; word-break: break-word; }
.pdf-oeffnen { display: inline-block; border-radius: 8px; padding: 10px 18px; background: #E40000; color: #fff !important; font-weight: 600; text-decoration: none; }
/* Urlaubsplaner = Plantafel ohne Projekte (Dom 28.10.2026): Übersicht oben, Gruppen ziehbar, Balken aus der Zeiterfassung nur zum Ansehen */
.up-legende { margin-left:auto; } .up-muster { display:inline-block; width:22px; height:12px; border-radius:3px; background:#ececec; vertical-align:middle; }
.up-muster.beantragt { background:repeating-linear-gradient(135deg, #f4f4f4 0 4px, #e9e9e9 4px 8px); border:1.5px dashed #9a9a9a; }
main.pt-seite .kopf .pt-knoepfe { margin-left:12px; }
.up-uebersicht { margin:0 0 10px; } .up-ueber-kopf { display:inline-flex; align-items:center; gap:6px; background:none; border:0; padding:2px 0; cursor:pointer; font:inherit; color:inherit; }
.up-ueber-kopf .klein-text { font-weight:400; }
.up-leute { display:flex; gap:8px; overflow-x:auto; padding:6px 0 4px; scrollbar-width:thin; }
.up-person { flex:none; display:flex; flex-direction:column; gap:1px; min-width:118px; padding:6px 10px; border:1px solid var(--linie, #e3e3e3); border-radius:8px; background:var(--karte, #fff); font-size:12px; }
.up-person .up-name { font-weight:600; font-size:13px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:150px; }
.up-zahl { color:var(--grau); white-space:nowrap; } .up-zahl b { color:var(--text, #222); font-variant-numeric:tabular-nums; } .up-zahl.rot-text b { color:var(--rot, #c00); }
.pt-gruppe [data-gzieh] { cursor:grab; }
.pt-gruppe [data-gzieh] { user-select:none; }
/* Unteraufgaben (Dom 28.10.2026): Person immer als Avatar, Titel öffnet die Unteraufgabe im selben Fenster; ein gemeinsamer Kommentar-Strom mit „zu:“ */
dialog.auf-vl .vl-unter .auf-vl-utext { border:0; background:none; padding:0; font:inherit; color:inherit; text-align:left; cursor:pointer; display:flex; align-items:center; gap:8px; }
dialog.auf-vl .vl-unter .auf-vl-utext:hover { color:var(--rot); } dialog.auf-vl .vl-unter.fertig .auf-vl-utext { text-decoration:line-through; color:#9a9a9a; }
.auf-u-komm { display:inline-flex; align-items:center; gap:3px; font-size:11.5px; color:#8a8a8a; text-decoration:none; }
.auf-u-wer.auf-u-av { padding:0; background:none !important; } .auf-u-wer.auf-u-av .vl-ev-av { width:22px; height:22px; font-size:11px; margin:0; }
.auf-vl-wurzel { display:block; margin:0 0 8px; font-size:13px; color:var(--grau); text-align:left; } .auf-vl-wurzel:hover { color:var(--rot); }
.auf-vl-filter { float:right; display:inline-flex; gap:2px; font-weight:400; } .auf-vl-filter button { border:0; background:none; font:inherit; font-size:12px; color:#8a8a8a; padding:1px 7px; border-radius:10px; cursor:pointer; }
.auf-vl-filter button.an { background:#f0f0f0; color:#222; }
.auf-k-zu { border:0; background:#f2f2f2; color:#666; font:inherit; font-size:11px; padding:0 6px; border-radius:8px; cursor:pointer; margin-left:4px; max-width:220px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; vertical-align:middle; }
.auf-k-zu:hover { background:#e6e6e6; color:#111; } .auf-k-zu.hier { cursor:default; }
/* Hauptaufgabe nur über die eigene Unteraufgabe: nur ansehen und kommentieren (Dom 28.10.2026) */
.auf-vl-nurlesen { display:flex; align-items:center; gap:6px; margin:0 0 8px; padding:6px 10px; border-radius:8px; background:#f5f5f5; color:#666; font-size:12.5px; }
.auf-detail-huelle.nur-lesen button:disabled { cursor:default; opacity:.6; } .auf-detail-huelle.nur-lesen .vl-gfeld:disabled svg, .auf-detail-huelle.nur-lesen .vl-dfeld:disabled svg { display:none; }
.auf-detail-huelle.nur-lesen textarea[readonly] { cursor:default; }
.auf-detail-huelle.nur-lesen [data-uweg]:disabled, .auf-detail-huelle.nur-lesen [data-ziel], .auf-detail-huelle.nur-lesen .auf-u-tag:disabled:not(.an), .auf-detail-huelle.nur-lesen .auf-u-wer:disabled:not(.auf-u-av) { display:none; }

/* ---------- Lager als eine Seite (Dom 28.10.2026, public/lager.js) ---------- */
.lg-kopf { margin-bottom:6px; }
.lg-reiter { margin-bottom:10px; }
.lg-kacheln { display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:10px; margin-bottom:12px; }
.lg-kachel { display:grid; grid-template-columns:auto 1fr; column-gap:12px; align-items:center; padding:10px 14px; background:#fff; border:1px solid var(--linie); border-radius:10px; color:var(--schwarz); text-decoration:none !important; }
.lg-kachel b { grid-row:1 / 3; font-size:24px; font-weight:700; min-width:36px; } .lg-kachel b.gelb { color:#b46a00; } .lg-kachel b.rot { color:var(--ampelrot); }
.lg-kachel span { font-size:13px; color:#555; } .lg-kachel small { grid-column:2; font-size:12.5px; color:#8a8a8a; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.lg-kachel:hover { border-color:#cfcfcf; } .lg-kachel.an { border-color:var(--schwarz); }
main.feste-seite .lg-seite { display:grid; grid-template-columns:minmax(0, 1fr) 360px; gap:14px; flex:1; min-height:0; }
.lg-links { display:flex; flex-direction:column; gap:10px; min-width:0; min-height:0; flex:1; }
main.feste-seite .lg-tabelle { flex:1; min-height:0; display:flex; flex-direction:column; } main.feste-seite .lg-tabelle .tabelle-scroll { flex:1; min-height:0; overflow:auto; }
.lg-tabelle .filter, .lg-links > form { margin:0; }
.lg-bestand { font-size:16px; } .lg-bestand.knapp { color:#b46a00; } .lg-bestand.leer { color:var(--ampelrot); }
.lg-knoepfe { white-space:nowrap; text-align:right; width:120px; } .lg-knoepfe .icon-knopf.klein { width:30px; height:30px; margin-left:4px; }
.lg-verlauf { min-height:0; overflow:auto; margin:0; }
.lg-inv-leiste { display:flex; align-items:center; gap:12px; } .lg-inv-leiste > form { flex:1; margin:0; }
.lg-gezaehlt { width:90px; text-align:right; }
dialog.lg-buchen { width:600px; padding:18px 22px 20px; } .lg-buchen .lg-art { width:max-content; margin:6px 0 4px; } .lg-buchen .lg-art button { padding:8px 22px; }
.lg-was { gap:12px; } .lg-was .bild-mini, .lg-was .platz { width:40px; height:40px; flex:none; }
.lg-menge { display:flex; align-items:stretch; border:1px solid #e1e1e1; border-radius:10px; overflow:hidden; height:46px; }
.lg-menge button { width:46px; border:none; border-radius:0; background:#f6f6f6; font-size:20px; padding:0; } .lg-menge input { border:none !important; text-align:center; font-size:17px; font-weight:600; min-width:0; }
.lg-chips { display:flex; flex-wrap:wrap; gap:8px; } .lg-chips button { height:36px; padding:0 14px; border:1px solid #e1e1e1; border-radius:18px; background:#fff; font-weight:500; }
.lg-chips button.an { background:var(--schwarz); color:#fff; border-color:var(--schwarz); }
@media (max-width:900px) { main.feste-seite .lg-seite { grid-template-columns:1fr; } .lg-verlauf { display:none; } .lg-kacheln { grid-template-columns:repeat(2, minmax(0, 1fr)); } }

/* ---------- Stammdaten (Dom 28.10.2026): Ordnerbaum, Filter-Chips, Suche findet Ordner ---------- */
.sd-reiter.kx-reiter { margin-bottom:12px; border-bottom:1px solid #e6e6e6; }
.sd-seite { grid-template-columns:260px minmax(0, 1fr); }
.sd-suche { display:flex; align-items:center; gap:8px; height:38px; min-width:300px; padding:0 12px; border:1px solid #d9d9d9; border-radius:9px; background:#fff; color:#8a8a8a; }
.sd-suche input { border:none !important; outline:none; padding:0; flex:1; min-width:0; font-size:14px; background:none; box-shadow:none !important; } .sd-suche:focus-within { border-color:var(--schwarz); }
a.sd-ordner { color:inherit; text-decoration:none !important; }
.sd-ordner { padding:8px 8px; } .sd-ordner .sd-auf { flex:none; width:18px; } .sd-ordner .sd-o-ic { flex:none; }
.sd-ordner .klein-text { margin-left:auto; } .sd-ordner .icon-knopf { flex:none; }
.sd-ordner-kopf:has(.sd-ordner-knoepfe) { flex-wrap:wrap; row-gap:6px; } .sd-ordner-knoepfe { display:flex; justify-content:space-between; gap:12px; text-transform:none; letter-spacing:0; flex-basis:100%; } .sd-ordner-knoepfe .link { font-size:12.5px; color:#555; display:inline-flex; align-items:center; gap:3px; }
.sd-neu-ordner { color:var(--schwarz) !important; font-weight:600; }
.sd-filter { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.sd-chip { display:inline-flex; align-items:center; gap:6px; height:36px; padding:0 12px; border:1px solid #cfcfcf; border-radius:8px; background:#fff; color:#111; font:inherit; font-size:14px; font-weight:500; cursor:pointer; }
.sd-chip:hover { border-color:#999; } .sd-chip.an { border-color:var(--schwarz); box-shadow:0 0 0 1px var(--schwarz) inset; }
.sd-von { cursor:default; color:#555; } .sd-von input { width:62px; height:26px; padding:0 6px; border:none !important; border-radius:6px; background:#f3f3f3; text-align:right; font-size:14px; color:#111; box-shadow:none !important; }
.sd-gruppiert { margin-left:auto; }
.sd-treffer { display:flex; flex-wrap:wrap; align-items:center; gap:8px; } .sd-treffer:empty { display:none; } .sd-treffer > .klein-text { margin-right:2px; }
.sd-o-treffer { display:inline-flex; align-items:center; gap:8px; height:34px; padding:0 12px; border:1px solid #e1e1e1; border-radius:8px; background:#fff; font-weight:500; font-size:14px; }
.sd-o-treffer svg { color:#8a8a8a; } .sd-o-treffer small { color:#8a8a8a; font-weight:400; } .sd-o-treffer:hover { border-color:#999; }
.sd-tabelle { display:flex; flex-direction:column; } .sd-tabelle > .tabelle { flex:1; min-height:0; overflow:auto; } .sd-fuss { padding:10px 14px; border-top:1px solid #eee; font-size:13px; color:#8a8a8a; }
.sd-bild-zelle { width:52px; } .sd-bild { width:40px; height:40px; border-radius:8px; object-fit:cover; border:1px solid #eee; display:inline-flex; align-items:center; justify-content:center; background:#f6f6f6; color:#bbb; vertical-align:middle; cursor:zoom-in; } .sd-bild.ohne { cursor:default; }
.sd-preis { display:inline-flex; align-items:center; height:24px; padding:0 9px; border-radius:7px; font-size:12.5px; background:#eef6f0; color:#1f6b35; white-space:nowrap; }
.sd-preis.alt { background:#fff4e0; color:#8a5a00; } .sd-preis.sehr { background:#fdecec; color:#b42323; }
.sd-tabelle tr.sd-gruppe td { background:#fafafa; font-weight:600; font-size:13px; padding:8px 14px; } .sd-tabelle tr.sd-gruppe svg { color:#8a8a8a; vertical-align:-3px; margin-right:4px; }
.sd-mat { max-width:170px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.sd-ordner-kopf .link { color:#555; text-transform:none; letter-spacing:0; font-size:12.5px; }

/* ---------- Material geöffnet (Dom 28.10.2026, public/materialakte.js) ---------- */
.ma-akte .vl-links { display:grid; grid-template-columns:1fr 1fr; gap:12px; align-content:start; overflow:auto; min-height:0; } .ma-akte .vl-links .breit { grid-column:1 / -1; }
.ma-akte .vl-block { position:relative; margin:0; } .ma-verlauf { min-height:0; overflow:auto; }
.ma-kopfbild { overflow:hidden; background:#f3f3f3; color:#555; } .ma-kopfbild img { width:100%; height:100%; object-fit:cover; cursor:zoom-in; }
.ma-innen { padding:0 18px 14px; margin:0; } .ma-notiz { margin:6px 18px 12px; padding:8px 10px; border-radius:8px; background:#f7f7f7; color:#555; font-size:13.5px; white-space:pre-wrap; }
.ma-vgl { width:calc(100% - 36px); margin:0 18px; border-collapse:collapse; font-size:14px; } .ma-vgl th { font-weight:400; color:#8a8a8a; font-size:12px; text-align:left; padding:4px 6px 6px; border-bottom:1px solid #eee; }
.ma-vgl td { padding:8px 6px; border-bottom:1px solid #f2f2f2; vertical-align:middle; } .ma-vgl tr:last-child td { border-bottom:none; } .ma-vgl .zahl { text-align:right; white-space:nowrap; }
.ma-quelle { padding:8px 18px 14px; font-size:12.5px; color:#8a8a8a; }
.ma-gilt, .ma-guenstig { display:inline-block; margin-left:6px; padding:1px 7px; border-radius:6px; font-size:11.5px; font-weight:600; } .ma-gilt { background:#111; color:#fff; } .ma-guenstig { background:#eef6f0; color:#1f6b35; }
.ma-bf { padding:0 18px 12px; } .ma-bilder { display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin-bottom:8px; }
.ma-bild { position:relative; width:64px; height:64px; border-radius:8px; overflow:hidden; border:1px solid #eee; background:#f6f6f6; } .ma-bild img { width:100%; height:100%; object-fit:cover; cursor:zoom-in; }
.ma-bild small { position:absolute; left:3px; bottom:3px; font-size:10px; background:rgba(255,255,255,.92); padding:0 5px; border-radius:5px; }
.ma-plus { width:64px; height:64px; border-radius:8px; border:1px dashed #cfcfcf; background:#fff; color:#8a8a8a; display:inline-flex; align-items:center; justify-content:center; padding:0; }
.ma-datei { display:flex; align-items:center; gap:8px; padding:7px 0; border-top:1px solid #f2f2f2; font-size:14px; color:#111; text-decoration:none !important; } .ma-datei svg { color:#8a8a8a; } .ma-datei small { color:#8a8a8a; }
@media (max-width:900px) { .ma-akte .vl-links { grid-template-columns:1fr; } }

/* ---------- Werkstatt (Dom 28.10.2026, public/werkstatt.js) ---------- */
.ws-ansicht { margin-left:14px; } .ws-ansicht a, .sd-filter .segment a { text-decoration:none !important; }
.ws-pille { display:inline-flex; align-items:center; height:24px; padding:0 9px; border-radius:7px; font-size:12.5px; font-weight:500; vertical-align:middle; background:#f1f1f1; color:#444; }
.ws-pille.rot { background:#fdecec; color:#b42323; } .ws-pille.orange { background:#fff0e0; color:#9a4a00; } .ws-pille.gelb { background:#fff7cc; color:#7a5d00; } .ws-pille.gruen { background:#eef6f0; color:#1f6b35; }
.ws-av { width:24px; height:24px; border-radius:50%; background:var(--schwarz); color:#fff; font-size:10.5px; font-weight:600; display:inline-flex; align-items:center; justify-content:center; flex:none; vertical-align:middle; } .ws-av.hell { background:#e9e9e9; color:#333; }
main.feste-seite .ws-tabelle { flex:1; min-height:0; display:flex; flex-direction:column; } main.feste-seite .ws-tabelle .tabelle-scroll { flex:1; min-height:0; overflow:auto; }
.ws-zuletzt { max-width:240px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ws-karte { border-left:3px solid #ccc; } .ws-karte.rot { border-left-color:#d64545; } .ws-karte.orange { border-left-color:#e08a2e; } .ws-karte.gelb { border-left-color:#e6c200; } .ws-karte.gruen { border-left-color:#3a9a5b; }
.ws-karte .rs-karte-fuss { display:flex; align-items:center; gap:8px; }
.ws-status { display:flex; align-items:center; gap:6px; }
.ws-schritt { flex:1; height:36px; border-radius:8px; display:flex; align-items:center; justify-content:center; gap:6px; font-size:13.5px; font-weight:600; background:#f1f1f1; color:#8a8a8a; border:1px solid #e6e6e6; cursor:pointer; }
.ws-schritt.fertig { background:var(--schwarz); color:#fff; border-color:var(--schwarz); } .ws-schritt.jetzt { background:#fff; color:#111; border:2px solid var(--schwarz); } .ws-schritt:hover:not(.jetzt) { border-color:#999; }
.ws-wer { display:inline-flex; align-items:center; gap:8px; height:40px; padding:0 10px 0 6px; border:1px solid #e1e1e1; border-radius:8px; background:#fff; flex:none; }
.ws-wer > span:last-child { display:flex; flex-direction:column; line-height:1.1; } .ws-wer small { color:#8a8a8a; font-size:11px; } .ws-wer select { border:none !important; padding:0; height:auto; font-weight:600; background:none; box-shadow:none !important; }
.ws-fall { display:grid; grid-template-columns:minmax(0, 1fr) 400px; gap:14px; min-height:0; } .ws-links { display:flex; flex-direction:column; gap:12px; overflow:auto; min-height:0; }
.ws-zwei { display:grid; grid-template-columns:1fr 1fr; gap:12px; align-items:start; } .ws-zwei .vl-block, .ws-links .vl-block { margin:0; }
.ws-galerie { display:flex; gap:10px; padding:0 18px 16px; overflow-x:auto; }
.ws-foto { width:150px; height:110px; border-radius:10px; flex:none; overflow:hidden; border:1px solid #eee; background:#f6f6f6; } .ws-foto img { width:100%; height:100%; object-fit:cover; cursor:zoom-in; }
.ws-foto.plus { border:1px dashed #cfcfcf; background:#fff; display:flex; align-items:center; justify-content:center; gap:6px; color:#8a8a8a; font-size:13px; padding:0; }
.ws-aufg { display:flex; align-items:center; gap:10px; padding:10px 18px; border-top:1px solid #f2f2f2; font-size:14px; cursor:pointer; } .ws-aufg input { width:16px; height:16px; flex:none; }
.ws-aufg.fertig b { text-decoration:line-through; color:#8a8a8a; font-weight:500; } .ws-aufg .rechts { margin-left:auto; display:flex; align-items:center; gap:8px; } .ws-aufg small { color:#8a8a8a; }
.ws-neu { display:flex; align-items:center; gap:8px; padding:8px 12px 12px 18px; border-top:1px solid #f2f2f2; color:#8a8a8a; } .ws-neu input[name=text] { flex:1; min-width:0; border:none !important; box-shadow:none !important; padding:6px 0; }
.ws-neu select { width:110px; height:32px; font-size:13px; } .ws-neu .datumsfeld { width:130px; } .ws-neu .datumsfeld input { height:32px; font-size:13px; }
.ws-strom { display:flex; flex-direction:column; min-height:0; margin:0; } .ws-strom .vl-strom { flex:1; min-height:0; overflow:auto; }
.ws-eingabe input { flex:1; border:none !important; box-shadow:none !important; background:none; min-width:0; } .ws-strom-bilder img { width:84px; height:64px; object-fit:cover; border-radius:8px; margin:4px 4px 0 0; cursor:zoom-in; }
@media (max-width:1000px) { .ws-fall, .ws-zwei { grid-template-columns:1fr; } }
.ws-neu { flex-wrap:wrap; } .ws-neu input[name=text] { flex:1 1 calc(100% - 32px); } .ws-neu select { margin-left:24px; flex:1; max-width:180px; } .ws-neu .datumsfeld { flex:none; }

/* Stammdaten Runde 2 (Dom 28.10.2026): Baumkopf wie plancraft, weniger Einrückung, Zu prüfen, Sammel-Leiste, Ordner bearbeiten */
.sd-links { padding:6px; } .sd-ordner { padding:7px 6px; gap:5px; } .sd-ordner .sd-auf { width:16px; }
.sd-baum-kopf { display:flex; align-items:center; gap:4px; padding:4px 2px 8px; font-size:12px; color:#777; text-transform:uppercase; letter-spacing:.04em; }
.sd-baum-kopf .rechts { margin-left:auto; display:flex; gap:2px; } .sd-baum-kopf .icon-knopf { width:28px; height:28px; color:#555; } .sd-baum-kopf .icon-knopf:hover { color:#111; background:#f2f2f2; }
.sd-anzahl { margin-left:auto; }
.sd-pruefen b { display:inline-flex; align-items:center; justify-content:center; min-width:20px; height:20px; padding:0 6px; border-radius:10px; background:#f1f1f1; color:#555; font-size:12px; }
.sd-pruefen.hat b { background:#ffe58f; color:#5c4400; }
.sd-pruef-marke { display:inline-block; margin-left:6px; padding:1px 7px; border-radius:6px; background:#fff3c4; color:#6b5200; font-size:11.5px; font-weight:600; vertical-align:1px; }
.sd-aktionen { display:flex; align-items:center; gap:8px; padding:8px 12px; border-radius:10px; background:#111; color:#fff; font-size:14px; }
.sd-aktionen button { height:30px; padding:0 12px; border-radius:7px; border:1px solid #444; background:#222; color:#fff; font:inherit; font-size:13.5px; } .sd-aktionen .sd-ak-weg { margin-left:auto; border:none; background:none; }
.sd-tabelle tr.gewaehlt td { background:#f7f7f7; } .sd-tabelle .haken-zelle { width:36px; } .sd-lf { max-width:150px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.sd-tabelle tr.sd-mehr td { text-align:center; padding:14px; }
.sd-tabelle tr.sd-zuletzt td { animation:sd-zuletzt 2.4s ease-out; } /* zuletzt geöffnete Zeile nach dem Zurückkommen (Dom 12.11.2026) */
@keyframes sd-zuletzt { 0%, 40% { background:#fdecec; } 100% { background:transparent; } }
@media (prefers-reduced-motion: reduce) { .sd-tabelle tr.sd-zuletzt td { animation:none; background:#fdecec; } }
.sd-tabelle thead th { position:sticky; top:0; background:#fff; z-index:1; }
.sd-oe-kopf { display:flex; align-items:center; gap:12px; } .sd-oe-kopf .klein-text { max-width:520px; }
.sd-oe input, .sd-oe select { height:34px; font-size:14px; width:100%; } .sd-oe input.zahl { text-align:right; } .sd-oe td { padding-top:6px; padding-bottom:6px; }
.sd-oe input.gespeichert { box-shadow:0 0 0 2px #cfe9d6 !important; }

/* Buchen-Fenster Runde 2 (Dom 28.10.2026): passt ohne Scrollen, gleich hohe Feld-Karten, nichts springt */
dialog.ue-dialog.lg-buchen { overflow:visible; width:640px; max-width:calc(100vw - 24px); padding:18px 22px 16px; }
.lgb-art { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin:6px 0 12px; }
.lgb-art button { display:flex; align-items:center; gap:12px; height:64px; padding:0 16px; border:1px solid #e1e1e1; border-radius:12px; background:#fff; text-align:left; font:inherit; }
.lgb-art button b { display:block; font-size:16px; } .lgb-art button small { display:block; font-size:12.5px; color:#8a8a8a; font-weight:400; }
.lgb-art button .lgb-ic { width:34px; height:34px; border-radius:50%; background:#f3f3f3; display:inline-flex; align-items:center; justify-content:center; flex:none; }
.lgb-art button.an { border-color:#111; box-shadow:0 0 0 1px #111 inset; } .lgb-art button.an .lgb-ic { background:#111; color:#fff; }
.formular.lgb { gap:10px; }
.lgb label { min-height:58px !important; height:58px; }
.lgb-was { position:relative; } .lgb-was > span:first-child { display:block; } .lgb-bestand { position:absolute; right:14px; top:9px; font-size:12px; color:#8a8a8a; }
.lgb-treffer { position:absolute; left:-1px; right:-1px; top:calc(100% + 4px); z-index:20; background:#fff; border:1px solid #ececec; border-radius:12px; box-shadow:0 18px 44px rgba(0,0,0,.16); padding:6px; max-height:300px; overflow:auto; }
.lgb-treffer button { display:block; width:100%; text-align:left; border:none; background:none; border-radius:8px; padding:8px 10px; font:inherit; color:#111; } .lgb-treffer button:hover { background:#f4f4f4; }
.lgb-treffer button b { display:block; font-size:14px; } .lgb-treffer button small { color:#8a8a8a; font-size:12.5px; }
.lgb-menge { display:flex; align-items:center; gap:6px; } .lgb-menge input { text-align:center; font-weight:600 !important; }
.lgb-menge button { width:28px; height:24px; padding:0; border:1px solid #e1e1e1; border-radius:6px; background:#f6f6f6; font-size:16px; line-height:1; flex:none; color:#111; }
.lgb .datumsfeld .dp-knopf { right:-6px; } .lgb .datumsfeld input[type=text] { height:22px !important; }
.lgb-zweck { grid-template-columns:repeat(3, minmax(0, 1fr)); } .lgb-zweck button { height:54px; justify-content:center; padding:6px 12px; }
.lgb-ziel { min-height:58px; display:flex; align-items:stretch; } .lgb-ziel > * { flex:1; } .lgb-ziel > [hidden] { display:none !important; }
.lgb-ziel .lg-chips { align-items:center; } .lgb-hinweis { display:flex; align-items:center; padding:0 4px; }
dialog.lg-buchen.ist-eingang .lgb-aus { display:none !important; }
.lgb-fuss { margin-top:4px; gap:8px; } .lgb-fehler { margin-right:auto; color:var(--rot); font-size:13px; }
.lgb .feld-knopf.ungueltig, .lgb [data-iproj].ungueltig { color:var(--rot) !important; } .lgb label:has(.ungueltig) { border-color:var(--rot) !important; }
@media (max-width:700px) { dialog.lg-buchen { width:100%; } .lgb-zweck button small { display:none; } }

/* Lagerdaten (Material → Lager, Lager → Bestand → Zeile) */
.ld { display:flex; flex-direction:column; gap:12px; }
.ld-oben { display:flex; align-items:center; gap:10px; } .ld-zahl { flex:1; padding:10px 14px; border:1px solid var(--linie); border-radius:10px; background:#fff; }
.ld-zahl span { display:block; font-size:12.5px; color:#8a8a8a; } .ld-zahl b { font-size:22px; } .ld-zahl b small { font-size:13px; font-weight:500; color:#666; } .ld-zahl b.knapp { color:#b46a00; } .ld-zahl b.ld-platz { font-size:16px; }
.ld-knoepfe { display:flex; gap:8px; align-items:center; }
.ld-kasten { border:1px solid var(--linie); border-radius:10px; background:#fff; padding:12px 14px; }
.ld-kopf { display:flex; align-items:center; justify-content:space-between; margin-bottom:8px; font-size:14px; }
.ld-grafik { width:100%; height:110px; display:block; } .ld-grafik rect { fill:#303030; } .ld-grafik rect:hover { fill:#111; } .ld-grafik line { stroke:#e5e5e5; stroke-width:.4; vector-effect:non-scaling-stroke; }
.ld-monate { display:flex; justify-content:space-around; font-size:11px; color:#8a8a8a; margin-top:2px; } .ld-monate span { flex:1; text-align:center; }
.ld-summen { display:flex; gap:18px; align-items:baseline; margin-top:10px; font-size:13.5px; color:#555; } .ld-summen b { color:#111; } .ld-summen .klein-text { margin-left:auto; }
.ld-zwei { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.ld-zeile { display:flex; align-items:baseline; gap:10px; padding:7px 0; border-top:1px solid #f2f2f2; font-size:13.5px; } .ld-zeile:first-of-type { border-top:none; } .ld-zeile > span { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ld-zeile small { color:#8a8a8a; margin-right:4px; } .ld-zeile b { white-space:nowrap; } .ld-zeile b.ld-plus { color:#1f6b35; } .ld-zeile.klick { cursor:pointer; } .ld-zeile.klick:hover { background:#fafafa; }
dialog.ld-panel { width:min(620px, 100vw); } dialog.ld-panel .ld-zwei { grid-template-columns:1fr; }
.ma-lager { overflow:auto; max-width:1000px; }

/* Bestellungen (Dom 28.10.2026): feste Spalten, Pipeline, Positionen über der E-Mail */
table.feste-spalten { table-layout:fixed; width:100%; } table.feste-spalten td, table.feste-spalten th { overflow:hidden; text-overflow:ellipsis; }
.bl-kurz { white-space:nowrap; } .bp-pos td:nth-child(n+3) { white-space:nowrap; } .bp-pos td { vertical-align:middle; }
.raster.zwei.bestell-raster { display:flex; flex-direction:column-reverse; gap:18px; } .bestell-mail { max-width:900px; }
.lg-ansicht { margin-right:6px; } .lg-ansicht a { text-decoration:none !important; }
.bp-board { flex:1; min-height:0; } .bp-karte .rs-karte-fuss { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.nb-liste { display:flex; flex-direction:column; border:1px solid var(--linie); border-radius:10px; overflow:hidden; }
.nb-zeile { display:grid; grid-template-columns:minmax(0, 1fr) 110px 150px auto; gap:10px; align-items:center; padding:10px 12px; border-top:1px solid #f0f0f0; } .nb-zeile:first-child { border-top:none; }
.nb-zeile small { display:block; color:#8a8a8a; font-size:12.5px; } .nb-zeile > b { text-align:right; } .nb-zeile select { height:34px; }
dialog.ue-dialog.nb-dialog { width:680px; padding:18px 22px; }
.sd-tabelle td b, .sd-tabelle td .klein-text { overflow:hidden; text-overflow:ellipsis; } .sd-tabelle tbody td:nth-child(4) { white-space:normal; }
.sd-oe td > span { width:100%; } .sd-oe td > span input { flex:1; min-width:0; } .sd-oe tbody td { height:auto; }
dialog.ue-dialog:not(:has(> #ue)):not(.lg-buchen):not(.nb-dialog) { padding:16px 20px 18px; } /* Fenster ohne #ue-Hülle (Material bearbeiten/prüfen, werkstatt) bekommen den Innenrand */
.form-fuss > .gefahr-text:first-child { margin-right:auto; } /* Löschen links, Abbrechen und Speichern rechts (DESIGN.md) */
.sd-tabelle tbody td { height:64px; padding-top:6px; padding-bottom:6px; } /* Zeilen 64px wie DESIGN.md */
table.feste-spalten td.sd-bild-zelle, table.feste-spalten td.haken-zelle, table.feste-spalten td.menue-zelle { text-overflow:clip; }
.sd-tabelle .stern-anzeige { font-size:13px; letter-spacing:0; white-space:nowrap; }

/* Schaden melden (Dom 28.10.2026): wie „Feedback melden“ */
.fbm.sm .fbm-feld { margin-top:8px; } .fbm.sm .fbm-feld.ungueltig, .fbm.sm label.ungueltig { border-color:var(--rot) !important; }
.sm-ablage { min-height:76px; display:flex; align-items:center; justify-content:center; }
.sm-dring button b { font-size:14px; } .sm-dring button { padding:10px 12px; }
.sm-fehler { color:var(--rot); font-size:13px; min-height:18px; margin-top:4px; }
.sm-seite { max-width:720px; padding:18px 22px; }
.fbm.sm .fbm-t { margin-top:10px; } .fbm.sm textarea { min-height:70px; }
.fbm.sm textarea { height:84px; min-height:60px !important; } .fbm.sm .fbm-arten button { padding:10px 12px; gap:2px; } .fbm.sm .fbm-ic { font-size:18px; line-height:1; }
/* Dom 28.10.2026: Materialzeilen 58px wie die Projektseite, leere Werte grau, Fortschritt bei teilweise geliefert */
.sd-tabelle tbody td { height:58px; padding-top:4px; padding-bottom:4px; } .sd-tabelle .sd-bild { width:36px; height:36px; } .sd-leer { color:#c2c2c2; }
.bp-fort { display:flex; flex-direction:column; gap:3px; min-width:110px; } .bp-fort i { display:block; height:5px; border-radius:3px; background:#ececec; overflow:hidden; } .bp-fort i b { display:block; height:100%; background:#e08a2e; }

/* Posteingang info@ (Dom 28.10.2026, Entwurf „Posteingang“): geteilt = Liste links, Mail rechts; breit = schlanke Zeilen über die ganze Breite, Mail in voller Breite */
.pe-seitenkopf h1 { margin-right:10px; }
.pe-ansicht button { display:inline-flex; align-items:center; justify-content:center; padding:4px 10px; }
.pe-reiter > button small { font-size:12.5px; font-weight:600; color:inherit; margin-left:2px; }
.pe { display:grid; gap:14px; flex:1; min-height:0; margin-top:8px; }
.pe.pe-geteilt { grid-template-columns:430px minmax(0, 1fr); }
.pe.pe-breit { grid-template-columns:minmax(0, 1fr); } .pe.pe-breit .pe-mail { display:none; } .pe.pe-breit.pe-offen .pe-liste { display:none; } .pe.pe-breit.pe-offen .pe-mail { display:flex; }
.pe-liste, .pe-mail { background:#fff; border:1px solid var(--linie); border-radius:10px; display:flex; flex-direction:column; min-height:0; overflow:hidden; }
.pe-scroll { flex:1; overflow:auto; }
.pe-fuss { padding:10px 16px; border-top:1px solid #eee; font-size:13px; color:var(--grau); background:var(--flaeche); flex:none; }
.pe-leer { padding:28px 18px; color:var(--grau); font-size:14px; text-align:center; }
.pe-leer-ganz { display:flex; flex-direction:column; align-items:center; gap:8px; padding:70px 20px; color:var(--grau); text-align:center; } .pe-leer-ganz svg { width:32px; height:32px; } .pe-leer-ganz b { color:var(--schwarz); font-size:16px; } .pe-leer-ganz .btn { margin-top:8px; }
/* Zeile geteilt: zwei bis vier Zeilen */
.pe-z { display:grid; grid-template-columns:10px minmax(0, 1fr) auto; column-gap:8px; row-gap:2px; padding:12px 16px 12px 10px; border-bottom:1px solid #f0f0f0; color:var(--schwarz) !important; text-decoration:none !important; font-size:14px; }
.pe-z:hover { background:#f7f7f7; } .pe-z.an { background:#f1f1f1; }
.pe-z .pkt { grid-row:1; grid-column:1; width:7px; height:7px; border-radius:50%; margin-top:7px; } .pe-z.neu .pkt { background:var(--schwarz); }
.pe-z .wer { grid-row:1; grid-column:2; font-weight:500; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; } .pe-z.neu .wer, .pe-z.neu .bt { font-weight:600; }
.pe-z .zeit { grid-row:1; grid-column:3; color:var(--grau); font-size:12.5px; white-space:nowrap; display:inline-flex; align-items:center; gap:6px; } .pe-z .zeit svg { width:14px; height:14px; }
.pe-z .bt { grid-column:2 / 4; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.pe-z .vs { grid-column:2 / 4; color:#8f8f8f !important; font-weight:400 !important; font-size:13px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.pe-z .fuss { grid-column:2 / 4; display:flex; align-items:center; gap:6px; } .pe-z .fuss:not(:empty) { margin-top:4px; }
.pe-marke { display:inline-flex; align-items:center; height:22px; padding:0 8px; border-radius:6px; font-size:12px; background:var(--hell); border:1px solid var(--linie); color:#3d3d3d; white-space:nowrap; max-width:260px; overflow:hidden; text-overflow:ellipsis; }
.pe-marke.vor { background:#fff; border:1px dashed #b9b9b9; color:#555; } .pe-marke.vor::before { content:'Vorschlag: '; margin-right:3px; color:#8a8a8a; }
.pe-av { width:22px; height:22px; border-radius:50%; background:var(--schwarz); color:#fff; font-size:10.5px; font-weight:600; display:inline-flex; align-items:center; justify-content:center; flex:none; }
.pe-z .fuss .pe-av { margin-left:auto; }
/* Zeile breit: eine Zeile, 44px – Absender · Betreff – Vorschau · Bezug · Zuständig · Datum */
.pe-breit .pe-z { grid-template-columns:10px 200px minmax(0, max-content) minmax(0, 1fr) auto auto; align-items:center; column-gap:12px; padding:0 16px 0 12px; height:44px; }
.pe-breit .pe-z .pkt { margin:0; grid-row:1; } .pe-breit .pe-z .wer { grid-column:2; } .pe-breit .pe-z .bt { grid-column:3; grid-row:1; max-width:420px; }
.pe-breit .pe-z .vs { grid-column:4; grid-row:1; } .pe-breit .pe-z .vs::before { content:'– '; }
.pe-breit .pe-z .fuss { grid-column:5; grid-row:1; margin:0 !important; } .pe-breit .pe-z .fuss .pe-av { margin-left:0; } .pe-breit .pe-z .zeit { grid-column:6; grid-row:1; min-width:56px; justify-content:flex-end; }
/* Mail */
.pe-mkopf { display:flex; align-items:center; gap:8px; padding:16px 18px 6px; flex:none; } .pe-mkopf h2 { margin:0; font-size:17px; font-weight:600; flex:1; min-width:0; overflow-wrap:anywhere; }
.pe-von { display:flex; align-items:center; gap:10px; padding:4px 18px 12px; font-size:14px; flex:none; } .pe-von small { color:var(--grau); font-size:13px; }
.pe-von .avatar-kreis { width:34px; height:34px; font-size:12px; flex:none; } .pe-von-text { min-width:0; overflow-wrap:anywhere; } .pe-wann { margin-left:auto; color:var(--grau); font-size:13px; white-space:nowrap; }
.pe-felder { display:grid; grid-template-columns:minmax(0, 1.7fr) minmax(0, 1fr); gap:10px; padding:0 18px 12px; flex:none; }
.pe-feld { white-space:normal; min-height:58px; border:1px solid #e1e1e1; border-radius:12px; padding:8px 12px; display:flex; flex-direction:column; justify-content:center; align-items:stretch; gap:2px; background:#fff; text-align:left; font:inherit; color:var(--schwarz); cursor:pointer; }
.pe-feld:hover { border-color:#cfcfcf; } .pe-feld:focus-visible { outline:none; border-color:var(--schwarz); box-shadow:0 0 0 3px rgba(17,17,17,.08); }
.pe-feld small { font-size:12px; color:var(--grau); } .pe-feld b { font-size:15px; font-weight:600; display:flex; align-items:center; gap:8px; min-width:0; } .pe-feld.vor { border-style:dashed; border-color:#b9b9b9; }
.pe-leer-wert { color:#a8a8a8; font-weight:500; } .pe-warum { font-size:12px; color:var(--grau); }
.pe-ueb { margin-left:auto; height:28px; padding:0 10px; border:1px solid var(--schwarz); border-radius:6px; background:#fff; font-size:13px; font-weight:500; display:inline-flex; align-items:center; flex:none; } .pe-ueb:hover { background:var(--hell); }
.pe-inhalt { flex:1; overflow:auto; padding:4px 18px 10px; border-top:1px solid #f0f0f0; display:flex; flex-direction:column; min-height:0; }
.pe-frueher { display:flex; flex-direction:column; gap:4px; margin:12px 0 4px; }
.pe-frueh { white-space:nowrap; display:flex; align-items:center; gap:8px; padding:8px 12px; border:none; border-radius:8px; background:var(--flaeche); color:var(--grau); font:inherit; font-size:13px; text-align:left; cursor:pointer; min-width:0; }
.pe-frueh:hover { background:var(--hell); } .pe-frueh b { color:var(--schwarz); font-weight:500; flex:none; } .pe-frueh span { flex:1; min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; } .pe-frueh small { flex:none; }
.pe-text { font-size:15px; line-height:1.55; color:var(--schwarz); max-width:760px; padding:12px 0; overflow-wrap:anywhere; }
.pe-text[data-html="1"] { max-width:none; flex:1; display:flex; min-height:360px; } .pe-html { border:0; width:100%; flex:1; min-height:360px; background:#fff; }
.pe-original { align-self:flex-start; font-size:13px; color:var(--grau) !important; text-decoration:underline; }
.pe-anh { display:flex; gap:10px; flex-wrap:wrap; margin:12px 0 6px; }
.pe-datei { display:flex; align-items:center; gap:10px; min-height:52px; padding:0 8px 0 10px; border:1px solid var(--linie); border-radius:10px; min-width:250px; font-size:14px; }
.pe-datei-name { display:flex; align-items:center; gap:10px; color:var(--schwarz) !important; text-decoration:none !important; min-width:0; } .pe-datei-name small { display:block; color:var(--grau); font-size:12px; }
.pe-datei .ty { width:34px; height:34px; border-radius:7px; background:#f3f3f3; display:inline-flex; align-items:center; justify-content:center; font-size:10.5px; font-weight:700; color:#555; flex:none; }
.pe-abl { margin-left:auto; display:inline-flex; align-items:center; gap:6px; height:30px; padding:0 10px; border:1px solid #d9d9d9; border-radius:7px; background:#fff; font:inherit; font-size:13px; color:var(--schwarz); white-space:nowrap; }
.pe-abl.fertig { border-color:transparent; color:#1d6b36; background:#dcf2e3; }
.pe-mfuss { display:flex; align-items:center; gap:8px; padding:12px 18px; border-top:1px solid #eee; flex:none; } .pe-mfuss > button, .pe-mfuss .rechts > button { display:inline-flex; align-items:center; gap:6px; }
.pe-mfuss .rechts { margin-left:auto; display:flex; gap:8px; }
.pe-tasten-liste { display:grid; grid-template-columns:1fr 1fr; gap:6px 24px; font-size:14px; } .pe-tasten-liste div { display:flex; align-items:center; gap:10px; } .pe-tasten-liste span { min-width:76px; display:inline-flex; gap:4px; }
.pe-tasten-liste kbd, .pe-kbd { display:inline-flex; align-items:center; justify-content:center; min-width:24px; height:24px; padding:0 6px; border:1px solid #d9d9d9; border-bottom-width:2px; border-radius:6px; background:#fff; font:inherit; font-size:12.5px; font-weight:600; }
.pe-tasten-dialog { width:min(560px, 94vw); } .pe-auf-dialog { width:min(620px, 94vw); } .pe-auf-bezug { display:flex; align-items:center; gap:6px; margin:0 0 10px; }
.pe-lesen-dialog { width:min(760px, 94vw); } .pe-lesen .pe-text { max-height:55vh; overflow:auto; padding:0 0 8px; }
/* zugeordnete Mail im Chat und Verlauf (Projekt, Anfrage) */
.pe-ch-karte { display:flex; flex-direction:column; gap:2px; max-width:360px; white-space:normal; padding:10px 12px; border:1px solid var(--linie); border-radius:12px; background:#fff; font:inherit; font-size:14px; text-align:left; color:var(--schwarz); cursor:pointer; }
.pe-ch-karte:hover { border-color:#cfcfcf; } .ch-n.ich .pe-ch-karte { background:var(--flaeche); }
.pe-ch-k { display:flex; align-items:center; gap:6px; color:var(--grau); font-size:12.5px; } .pe-ch-v { color:var(--grau); font-size:13px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.pe-ch-a { display:flex; flex-wrap:wrap; gap:6px; margin-top:6px; } .pe-ch-a i { font-style:normal; display:inline-flex; align-items:center; gap:4px; height:24px; padding:0 8px; border-radius:6px; background:var(--hell); font-size:12px; color:#3d3d3d; }
.pe-ch-zeile { display:flex; align-items:center; gap:8px; color:var(--grau); font-size:13px; }
@media (max-width:900px) { .pe.pe-geteilt { grid-template-columns:300px minmax(0, 1fr); } .pe-felder { grid-template-columns:1fr; } .pe-breit .pe-z { grid-template-columns:10px 120px minmax(0, 1fr) auto; } .pe-breit .pe-z .vs, .pe-breit .pe-z .fuss { display:none; } .pe-breit .pe-z .zeit { grid-column:4; } }
/* Posteingang am Handy (Dom 28.10.2026): Suche als eigene Zeile, ⋮ oben neben der Ansicht, keine Tastenkürzel, Reiter wischbar, unten nur „Antworten“ (Rest im ⋮) */
.pe-seitenkopf .pe-suche { margin-left:auto; }
@media (max-width:760px) {
  .pe-seitenkopf { gap:8px; } .pe-seitenkopf h1 { margin-right:0; } .pe-ansicht { display:none !important; } .pe-seitenkopf #pe-mehr { margin-left:auto; } .pe-tasten-knopf { display:none !important; }
  .pe-seitenkopf .pe-suche { order:5; flex:1 0 100%; min-width:0; margin-left:0; }
  .pe-reiter { overflow-x:auto; flex-wrap:nowrap; scrollbar-width:none; -webkit-overflow-scrolling:touch; } .pe-reiter::-webkit-scrollbar { display:none; } .pe-reiter > button { flex:none; white-space:nowrap; }
  .pe-mfuss #pe-erledigt, .pe-mfuss #pe-aufgabe, .pe-mfuss #pe-weiter { display:none; } .pe-mfuss .rechts { margin-left:0; flex:1; } .pe-mfuss #pe-antworten { flex:1; justify-content:center; }
  .pe-mkopf, .pe-von, .pe-felder, .pe-inhalt, .pe-mfuss { padding-left:12px; padding-right:12px; } .pe-von { flex-wrap:wrap; } .pe-wann { margin-left:44px; }
  .pe-datei { min-width:0; width:100%; } .pe-z .bt, .pe-z .vs { min-width:0; }
  dialog.suchfenster { width:calc(100vw - 16px); max-width:calc(100vw - 16px); min-width:0; } dialog.suchfenster .gs-reiter { overflow-x:auto; flex-wrap:nowrap; } dialog.suchfenster .gs-reiter button { flex:none; }
}
/* Posteingang Runde 2 (Dom 28.10.2026): Mail wie Gmail, Verfassen mit Chips und Format, Reiter „E-Mails“ */
.pe-text.html { max-width:none; padding:8px 0 0; } .pe-text.html .pe-html { display:block; width:100%; min-height:120px; border:0; background:#fff; }
.pe-wer-chip { height:30px; margin:0 10px 0 -2px; font-size:13px; gap:4px; flex:none; } .pe-wer-chip svg { color:var(--grau); }
.pe-z.erl .wer, .pe-z.erl .bt { color:var(--grau); }
.pe.pe-im-reiter { height:min(72vh, 760px); min-height:360px; margin-top:0; } .pa-inhalt > .pe.pe-im-reiter { height:100%; } /* Projekt: so hoch wie der Reiterbereich, Fußleiste bleibt sichtbar */
.pv-dialog { width:min(820px, 96vw); padding:0 !important; } .pv-dialog .dlg-kopf { padding:14px 18px 6px; }
.pv { display:flex; flex-direction:column; max-height:calc(100vh - 120px); }
.pv-zeile { display:flex; align-items:center; gap:10px; min-height:44px; padding:4px 18px; border-bottom:1px solid #eee; } .pv-name { width:56px; flex:none; color:var(--grau); font-size:14px; }
.pv-feld { flex:1; min-width:0; } .pv-ccbcc { border:none; background:none; color:var(--grau); font:inherit; font-size:14px; padding:4px 6px; cursor:pointer; } .pv-ccbcc:hover { color:var(--schwarz); }
.pv-betreff { flex:1; border:none !important; outline:none; box-shadow:none !important; font:inherit; font-size:15px; padding:6px 0; background:none; min-width:0; }
.pv-werkzeug { display:flex; gap:2px; padding:6px 14px; border-bottom:1px solid #eee; } .pv-werkzeug button { width:34px; height:30px; border:none; background:none; border-radius:6px; font:inherit; font-size:15px; color:#333; display:inline-flex; align-items:center; justify-content:center; cursor:pointer; } .pv-werkzeug button:hover { background:var(--hell); }
.pv-text { flex:1; min-height:220px; overflow:auto; padding:14px 18px; font-family:Arial, Helvetica, sans-serif; font-size:14px; line-height:1.5; outline:none; } .pv-text a { color:#1155cc; } .pv-sig { color:#555; }
.pv-zitat-knopf { align-self:flex-start; margin:0 18px 8px; height:18px; padding:0 8px; border:1px solid #d9d9d9; border-radius:9px; background:var(--hell); font-size:11px; letter-spacing:1px; color:#555; cursor:pointer; line-height:1; }
.pv-zitat { margin:0 18px 10px; font-family:Arial, Helvetica, sans-serif; font-size:13px; color:#555; max-height:240px; overflow:auto; outline:none; }
.pv-anh { display:flex; align-items:center; gap:6px; margin:0 18px 8px; font-size:13px; color:#444; } .pv-anh svg { width:14px; height:14px; }
.pv-fuss { padding:12px 18px; margin:0; border-top:1px solid #eee; display:flex; align-items:center; gap:8px; } .pv-fuss .rechts { margin-left:auto; display:flex; gap:8px; }
.ef { position:relative; display:flex; flex-wrap:wrap; align-items:center; gap:4px; min-height:34px; cursor:text; } .ef-chips { display:contents; }
.ef-chip { display:inline-flex; align-items:center; gap:4px; height:26px; padding:0 4px 0 10px; border-radius:13px; background:#eef1f5; font-size:13px; color:#222; max-width:100%; overflow:hidden; } .ef-chip.falsch { background:#fde3e3; color:#a40f0f; }
.ef-chip button { width:20px; height:20px; border:none; background:none; border-radius:50%; font-size:11px; color:#666; cursor:pointer; padding:0; } .ef-chip button:hover { background:rgba(0,0,0,.08); }
.ef-eingabe { flex:1; min-width:120px; border:none !important; outline:none; box-shadow:none !important; font:inherit; font-size:14px; padding:4px 0; background:none; }
.ef-liste { position:absolute; left:0; top:100%; z-index:20; min-width:300px; max-width:min(460px, 90vw); max-height:260px; overflow:auto; background:#fff; border-radius:12px; box-shadow:0 8px 28px rgba(0,0,0,.16); border:1px solid #eee; padding:4px; }
.ef-t { display:flex; flex-direction:column; padding:7px 10px; border-radius:8px; cursor:pointer; font-size:14px; } .ef-t span { color:var(--grau); font-size:12.5px; } .ef-t.an, .ef-t:hover { background:var(--hell); }
@media (max-width:760px) { .pv-dialog { width:100vw; max-width:100vw; } .pv-zeile { padding:4px 12px; } .pv-name { width:44px; } .pv-text { padding:12px; } .pe.pe-im-reiter { height:auto; min-height:0; } }
.pv .ef-eingabe:focus, .pv .ef-eingabe:focus-visible, .pv-betreff:focus, .pv-betreff:focus-visible, .pv-text:focus-visible, .pv-zitat:focus-visible { outline:none !important; box-shadow:none !important; } .pv-zeile:focus-within { background:#fcfcfc; box-shadow:inset 2px 0 0 var(--schwarz); }
.pe-reiter > button.pe-wer-chip { display:inline-flex; align-items:center; gap:4px; height:30px; padding:0 10px; margin:0 14px 0 -4px; border:1px solid #cfcfcf; border-radius:8px; color:#111; font-size:13px; font-weight:500; background:#fff; } .pe-reiter > button.pe-wer-chip:hover { border-color:#999; }
/* Mailansicht richtet sich nach ihrer eigenen Breite (schmaler Reiter in der Anfrage, Handy): unten nur „Antworten“, Erledigt/Aufgabe/Weiterleiten im ⋮ */
.pe-mail { container-type:inline-size; container-name:pemail; }
@container pemail (max-width:560px) {
  .pe-mfuss #pe-erledigt, .pe-mfuss #pe-aufgabe, .pe-mfuss #pe-weiter { display:none; } .pe-mfuss .rechts { margin-left:0; flex:1; } .pe-mfuss #pe-antworten { flex:1; justify-content:center; }
  .pe-felder { grid-template-columns:1fr; } .pe-von { flex-wrap:wrap; } .pe-von > .avatar-kreis { display:none; } .pe-wann { margin-left:0; } .pe-mkopf, .pe-von, .pe-felder, .pe-inhalt, .pe-mfuss { padding-left:12px; padding-right:12px; } .pe-datei { min-width:0; width:100%; }
}
/* iPhone: An Nodus teilen (Profil & Passwort) – drei Schritte und QR-Code zur Einrichtung in der Handy-App */
.tl-schritte { margin:10px 0 12px; padding-left:20px; line-height:1.6; } .tl-schritte a { color:inherit; font-weight:600; }
.tl-qr { display:flex; align-items:center; gap:14px; padding:10px 0 0; border-top:1px solid #eee; } .tl-qr svg { width:132px; height:132px; flex:none; }
.tl-selbst { margin:0 0 12px; } .tl-selbst summary { cursor:pointer; font-weight:600; } .tl-selbst ol { padding-left:20px; line-height:1.6; } .tl-selbst code { font-size:12.5px; }
/* Signatur (Einstellungen → E-Mail-Versand) */
.sig-wann { display:flex; flex-wrap:wrap; gap:8px 24px; margin:0 0 16px; } .sig-wann .dok-toggle { margin:0; }
.sig-spalten { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:24px; align-items:start; } @media (max-width:1100px) { .sig-spalten { grid-template-columns:1fr; } }
.sig-titel { font-size:12px; color:var(--grau); margin:0 0 6px; } .sig-als { display:flex; align-items:center; gap:8px; } .sig-als .auswahl, .sig-als select { min-width:180px; }
.sig-bloecke { display:flex; flex-direction:column; border:1px solid #e1e1e1; border-radius:12px; background:#fff; overflow:hidden; }
.sig-block { padding:8px 10px 8px 12px; border-top:1px solid #f0f0f0; } .sig-block:first-child { border-top:0; } .sig-block:not(.an) .sig-b-name b { color:var(--grau); font-weight:500; }
.sig-b-zeile { display:flex; align-items:center; gap:10px; min-height:34px; } .sig-b-zeile .dok-toggle { margin:0; }
.sig-b-name { flex:1; min-width:0; display:flex; flex-direction:column; } .sig-b-name b { font-size:14px; font-weight:600; } .sig-b-name small { font-size:11.5px; color:var(--grau); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.sig-b-pfeile { display:flex; gap:2px; } .sig-b-pfeile .icon-knopf { width:28px; height:28px; } .sig-b-pfeile .icon-knopf:disabled { opacity:.25; }
.sig-logo { display:flex; align-items:center; gap:6px; margin:0; font-size:13px; white-space:nowrap; }
.sig-gruss { display:block; width:100%; margin:6px 0 2px; height:34px; } .sig-block .sig-rahmen { margin:8px 0 2px; }
.sig-fehlt { margin-top:6px; color:#b26a00; }
.sig-rahmen { border:1px solid #e1e1e1; border-radius:12px; overflow:hidden; background:#fff; } .sig-werkzeug { align-items:center; flex-wrap:wrap; } .sig-werkzeug .rechts { margin-left:auto; }
.sig-gmail { height:30px; padding:0 12px; border:1px solid #d9d9d9 !important; border-radius:7px; font-size:13px !important; width:auto !important; }
.sig-ed { min-height:140px; } .sig-ed:empty::before { content:attr(data-platzhalter); color:#a8a8a8; } .sig-ed.drueber { background:#f6f9ff; box-shadow:inset 0 0 0 2px #9db7e8; }
.sig-ed img { cursor:pointer; } .sig-ed img.sig-an { outline:2px solid var(--schwarz); outline-offset:2px; }
.sig-breite { display:inline-flex; align-items:center; gap:8px; margin-left:10px; font-size:13px; color:var(--grau); } .sig-breite input { width:160px; } .sig-breite b { color:var(--schwarz); font-weight:600; min-width:52px; }
.sig-person { display:flex; align-items:center; gap:8px; margin:12px 0 0; font-size:14px; }
.sig-vorschau-titel { margin:16px 0 6px; font-size:12px; color:var(--grau); } .sig-vorschau { width:100%; min-height:160px; border:1px solid #eee; border-radius:10px; background:#fff; display:block; }
.pv-sig img { max-width:100%; }
.zt-ziel { margin:0 0 10px; display:flex; } .zt-ziel > button { flex:1 1 0; text-align:center; } /* Zeit: Projekt · Büro · Lager (Feedback #46) */
/* Posteingang Runde 3 (Dom 29.10.2026, „wie Superhuman“): Verlauf untereinander, Lesespalte ~760 px, rechts wer schreibt, interne Kommentare */
.pe-koerper { flex:1; min-height:0; overflow:auto; display:grid; grid-template-columns:minmax(0, 1fr); gap:24px; padding:0 18px 16px; scroll-behavior:smooth; border-top:1px solid #f0f0f0; container-type:inline-size; }
.pe-lese { min-width:0; max-width:760px; width:100%; } .pe-lese .pe-felder { padding:12px 0; }
.pe-seite { display:none; }
@container pemail (min-width:1080px) { .pe-koerper { grid-template-columns:minmax(0, 760px) minmax(240px, 300px); } .pe-seite { display:block; padding-top:12px; } }
.pe-anzahl { display:inline-flex; align-items:center; justify-content:center; min-width:22px; height:20px; padding:0 6px; border-radius:10px; background:var(--hell); font-size:12px; font-weight:600; color:var(--grau); vertical-align:2px; }
.pe-hinweis { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin:0 0 10px; padding:8px 12px; border-radius:8px; background:#fff8e6; color:#6b4b00; font-size:13.5px; } .pe-hinweis .link { color:#6b4b00 !important; text-decoration:underline; font-size:13.5px; }
.pe-verlauf { display:flex; flex-direction:column; border:1px solid var(--linie); border-radius:10px; overflow:hidden; }
.pe-nachricht + .pe-nachricht { border-top:1px solid #eee; }
.pe-n-kopf { display:flex; align-items:center; gap:10px; width:100%; padding:10px 14px; border:none; background:#fff; font:inherit; font-size:14px; text-align:left; cursor:pointer; color:var(--schwarz); white-space:nowrap; }
.pe-n-kopf:hover { background:#fafafa; } .pe-nachricht:not(.offen) .pe-n-kopf { color:#444; } .pe-nachricht.wir .avatar-kreis { background:#111; color:#fff; }
.pe-n-wer { flex:1; min-width:0; display:flex; align-items:baseline; gap:8px; overflow:hidden; } .pe-n-wer b { flex:none; font-weight:600; } .pe-n-wer small { color:var(--grau); font-size:12.5px; overflow:hidden; text-overflow:ellipsis; }
.pe-nachricht.offen .pe-n-wer { flex-wrap:wrap; row-gap:0; white-space:normal; } .pe-n-an { flex-basis:100%; }
.pe-n-vs { color:var(--grau); overflow:hidden; text-overflow:ellipsis; min-width:0; }
.pe-n-zeit { flex:none; display:inline-flex; align-items:center; gap:6px; color:var(--grau); font-size:12.5px; } .pe-n-zeit svg { width:13px; height:13px; }
.pe-n-inhalt { padding:0 14px 12px 52px; } .pe-n-inhalt .pe-text { padding-top:4px; } .pe-n-inhalt .pe-text.html { padding-top:0; }
.pe-zitat-knopf { margin:6px 0; } .pe-zitat { color:#666; font-size:14px; border-left:2px solid #ddd; padding-left:10px; margin-top:6px; }
.pe-komm { margin:16px 0 4px; } .pe-komm-kopf { display:flex; align-items:center; gap:6px; font-size:13px; font-weight:600; color:#333; margin-bottom:8px; } .pe-komm-kopf svg { color:var(--grau); }
.pe-komm-liste { display:flex; flex-direction:column; gap:8px; margin-bottom:8px; }
.pe-k { display:flex; gap:10px; align-items:flex-start; padding:8px 10px; border-radius:10px; background:#fffbea; border:1px solid #f3e7b5; } .pe-k > div { flex:1; min-width:0; } .pe-k small { color:var(--grau); font-size:12.5px; }
.pe-k-text { font-size:14px; overflow-wrap:anywhere; } .pe-k-weg { border:none; background:none; color:#999; cursor:pointer; font-size:12px; padding:2px 4px; } .pe-k-weg:hover { color:var(--schwarz); }
.pe-k-form { display:flex; gap:8px; align-items:flex-end; } .pe-k-form .md-eingabe { flex:1; min-height:40px; border:1px solid #e1e1e1; border-radius:10px; padding:9px 12px; background:#fff; font-size:14px; } .pe-k-form .md-eingabe:focus-within { border-color:var(--schwarz); }
.pe-s-block { border:1px solid var(--linie); border-radius:10px; padding:12px; margin-bottom:12px; background:#fff; font-size:14px; }
.pe-s-person { display:flex; align-items:center; gap:10px; margin-bottom:8px; } .pe-s-person > div { min-width:0; } .pe-s-person b { display:block; overflow:hidden; text-overflow:ellipsis; } .pe-s-person small { color:var(--grau); font-size:12.5px; overflow-wrap:anywhere; }
.pe-s-titel { margin:10px 0 4px; font-size:11.5px; letter-spacing:.5px; text-transform:uppercase; color:var(--grau); } .pe-s-block > .pe-s-titel:first-child { margin-top:0; }
.pe-s-zeile { display:flex; align-items:center; gap:6px; padding:5px 0; color:var(--schwarz) !important; text-decoration:none !important; font-size:13.5px; min-width:0; } .pe-s-zeile span { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; } .pe-s-zeile small { color:var(--grau); flex:none; } .pe-s-zeile:hover span, .pe-s-zeile:hover b { text-decoration:underline; } .pe-s-zeile svg { flex:none; color:var(--grau); width:14px; height:14px; }
.pe-s-anlegen { margin-top:4px; height:32px; padding:0 12px; border:1px solid #111; border-radius:6px; background:#fff; font:inherit; font-size:13px; cursor:pointer; }
.pe-spaeter { display:inline-flex; align-items:center; gap:4px; color:#8a5a00; } .pe-spaeter svg { width:13px; height:13px; }
.pe-zeit-dialog { width:min(440px, 94vw); } .pe-zeit { display:flex; flex-direction:column; gap:6px; }
.pe-zeit-k { display:flex; align-items:center; gap:10px; height:44px; padding:0 12px; border:1px solid #e1e1e1; border-radius:10px; background:#fff; font:inherit; font-size:14px; cursor:pointer; text-align:left; } .pe-zeit-k:hover, .pe-zeit-k:focus-visible { border-color:var(--schwarz); outline:none; }
.pe-zeit-k b { flex:1; font-weight:600; } .pe-zeit-k span { color:var(--grau); font-size:13px; } .pe-zeit-k kbd, .gs-kbd, .pe-tasten-z kbd { display:inline-flex; align-items:center; justify-content:center; min-width:22px; height:22px; padding:0 6px; border:1px solid #d9d9d9; border-bottom-width:2px; border-radius:6px; background:#fff; font:inherit; font-size:12px; font-weight:600; color:#333; }
.pe-zeit-eigen { margin-top:10px; padding:0 !important; }
.gs-kbd { margin-left:auto; flex:none; }
.pv-chip { display:inline-flex; align-items:center; gap:6px; height:32px; padding:0 10px; border:1px solid #d9d9d9; border-radius:16px; background:#fff; font:inherit; font-size:13px; color:#444; cursor:pointer; } .pv-chip.an { border-color:#111; color:#111; background:#f5f5f5; } .pv-chip svg { width:13px; height:13px; }
.pv-von { margin-left:4px; }
.pe-tasten-dialog { width:min(760px, 96vw); } .pe-tasten-gruppen { display:grid; grid-template-columns:repeat(auto-fit, minmax(220px, 1fr)); gap:4px 28px; } .pe-tasten-gruppen h3 { font-size:12px; text-transform:uppercase; letter-spacing:.5px; color:var(--grau); margin:12px 0 6px; }
.pe-tasten-z { display:flex; align-items:center; gap:10px; padding:3px 0; font-size:14px; } .pe-tasten-z > span { min-width:86px; display:inline-flex; gap:4px; flex:none; }
.ab-zahl { font-size:13px; font-weight:600; color:#222; } /* „3 ausgewählt“ */
.ab-stapel { position:fixed; top:-200px; left:-200px; padding:8px 12px; background:#fff; border:1px solid #d8d8d8; border-radius:8px; font:600 13px/1.2 Outfit, system-ui, sans-serif; color:#222; box-shadow:3px 3px 0 #fff, 4px 4px 0 #d8d8d8, 7px 7px 0 #fff, 8px 8px 0 #d8d8d8; } /* Stapel beim Ziehen mehrerer Einträge */
/* Ablage-Auswahl (Dom 29.10.2026): runde Haken, „Alle auswählen“ übernimmt beim Auswählen die Reiterzeile oben (immer sichtbar, kein Platzverlust) */
.ab-haken, .ab-alle input { -webkit-appearance:none; appearance:none; width:18px; height:18px; min-width:18px; max-width:18px; aspect-ratio:1; box-sizing:border-box; margin:0; border:1.5px solid #c9c9c9; border-radius:6px; background:#fff; cursor:pointer; flex:none; }
.ab-haken:checked, .ab-alle input:checked, .ab-alle input:indeterminate { background:var(--rot) no-repeat center/12px; border-color:var(--rot); }
.ab-haken:checked, .ab-alle input:checked { background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.ab-alle input:indeterminate { background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round'%3E%3Cpath d='M6 12h12'/%3E%3C/svg%3E"); }
.pa-reiter.ab-auswahl > :not(.ab-leiste) { display:none !important; }
.pa-reiter > .ab-leiste { flex:1; position:static; border-bottom:none; padding:0 0 0 var(--ab-haken-x, 12px); min-height:44px; }
.ab-drueber { position:relative; } .ab-drueber::after { content:'Zum Hochladen loslassen'; position:absolute; inset:0; display:flex; align-items:center; justify-content:center; background:rgba(255,244,244,.85); outline:2px dashed var(--rot); outline-offset:-6px; border-radius:10px; color:var(--rot); font-weight:600; font-size:15px; z-index:6; pointer-events:none; }
.ab-fortschritt { position:sticky; top:0; z-index:5; display:flex; align-items:center; gap:12px; padding:8px 12px; margin-bottom:6px; background:#fff; border:1px solid #eee; border-radius:8px; font-size:13px; }
.ab-fortschritt i { flex:1; height:6px; border-radius:3px; background:#f0f0f0; overflow:hidden; } .ab-fortschritt b { display:block; height:100%; width:0; background:var(--rot); transition:width .2s; }
.ab-handy { display:inline-flex; align-items:center; color:#8a8a8a; margin-right:2px; } .ab-handy svg { width:16px; height:16px; }
.hoch-stand { position:fixed; left:calc(var(--nav, 0px) + 20px); bottom:20px; z-index:60; width:320px; background:#fff; border:1px solid #e3e3e3; border-radius:12px; box-shadow:0 6px 24px rgba(0,0,0,.12); padding:12px 14px; font-size:13.5px; }
.hoch-stand .hs-kopf { display:flex; align-items:center; gap:8px; margin-bottom:8px; } .hoch-stand .hs-kopf b { flex:1; } .hoch-stand .hs-zu { margin-left:auto; border:none; background:none; font-size:15px; color:#666; cursor:pointer; }
.hoch-stand > i { display:block; height:6px; border-radius:3px; background:#f0f0f0; overflow:hidden; } .hoch-stand > i > b { display:block; height:100%; background:var(--rot); transition:width .2s; }
.hoch-stand .hs-fehler { margin-top:10px; color:#a11; } .hoch-stand .hs-fehler ul { margin:4px 0 8px; padding-left:16px; color:#444; max-height:120px; overflow:auto; }
/* Signatur im Verfassen-Fenster (29.10.2026): eingeklappt wie das Zitat, nur zum Ansehen – geändert wird sie in den Einstellungen */
.pv-sig-knopf { width:auto !important; padding:0 10px !important; font-size:12px !important; letter-spacing:0 !important; }
.pv-sig-zeige { padding:6px 18px 10px; font-family:Arial, Helvetica, sans-serif; font-size:14px; line-height:1.45; color:#555; } .pv-sig-zeige img { max-width:100%; height:auto; }
/* Einstellungen → Google: weitere Postfächer (29.10.2026, vorbereitet) */
.pf-weitere { margin-top:14px; } .pf-weiteres { display:flex; align-items:center; gap:10px; padding:8px 0; border-top:1px solid #f0f0f0; } .pf-weiteres > span { flex:1; display:flex; flex-direction:column; } .pf-weiteres small { color:var(--grau); font-size:12px; }
.pf-weiter-fuss { justify-content:flex-start; margin-top:10px; } .pf-weiter-fuss button { display:inline-flex; align-items:center; gap:6px; }
/* Eigene Vorlagen (Snippets, 29.10.2026) in den E-Mail-Vorlagen */
.mv-gruppe { display:flex; align-items:baseline; gap:8px; } .mv-gruppe .klein-text, .mv-neu { text-transform:none; letter-spacing:0; } .mv-neu { margin-left:auto; font-size:13px; }
/* Runde 4 (Dom 29.10.2026): Mail mittig, rechts eine Spalte (Person, Zuständig, Gehört zu, Kommentare wie im Chat); Vorschauspalte in der Listenansicht */
.pe-rumpf { flex:1; min-height:0; display:flex; border-top:1px solid #f0f0f0; }
.pe-koerper { flex:1; min-width:0; display:block; padding:0 28px 18px; border-top:0; }
.pe-lese { max-width:740px; width:100%; margin:0 auto; }
.pe-felder-seite, .pe-felder-vorschau { display:flex; flex-direction:column; gap:8px; padding:0; }
.pe-felder-seite .pe-feld, .pe-felder-vorschau .pe-feld { min-height:52px; }
.pe-seite { display:none; flex-direction:column; min-height:0; padding:0; }
.pe-s-oben { flex:none; max-height:58%; overflow:auto; padding:14px; display:flex; flex-direction:column; gap:10px; } .pe-s-oben:empty { display:none; }
.pe-s-oben .pe-s-block { margin:0; } #pe-s-mehr:empty, #pe-s-bezug:empty, #pe-s-person:empty { display:none; } #pe-s-mehr { display:flex; flex-direction:column; gap:10px; }
@container pemail (min-width:1000px) {
  .pe-seite { display:flex !important; width:330px; flex:none; border-left:1px solid #f0f0f0; background:#fbfbfb; padding:0 !important; }
  .pe-felder-oben { display:none; }
}
@container pemail (max-width:999.98px) {
  .pe-rumpf { flex-direction:column; }
  .pe-seite { display:flex; flex:none; max-height:44%; border-top:1px solid #eee; }
  .pe-s-oben { display:none; }
  .pe-koerper { padding:0 18px 14px; }
}
.pe-bezug-karte { display:flex; flex-direction:column; gap:1px; padding:10px 12px; border:1px solid var(--linie); border-radius:10px; background:#fff; color:var(--schwarz) !important; text-decoration:none !important; font-size:13.5px; }
.pe-bezug-karte small { color:var(--grau); font-size:12px; } .pe-bezug-karte span { color:#555; font-size:12.5px; } .pe-bezug-karte:hover { border-color:#bbb; }
/* Kommentare wie der Chat: Blasen, eigene rechts, Eingabe unten */
.pe-seite .pe-komm { flex:1; min-height:140px; display:flex; flex-direction:column; margin:0; border-top:1px solid #eee; background:#fff; }
.pe-seite .pe-komm-kopf { padding:10px 14px 6px; margin:0; } .pe-komm-n { margin-left:auto; min-width:20px; height:20px; border-radius:10px; background:#f0f0f0; font-size:11.5px; display:inline-flex; align-items:center; justify-content:center; padding:0 6px; color:#555; }
.pe-seite .pe-komm-liste { flex:1; min-height:0; overflow:auto; padding:4px 12px 10px; margin:0; display:flex; flex-direction:column; gap:8px; }
.pe-kn { max-width:92%; gap:8px; } .pe-kn .ch-blase { min-width:0; padding:7px 10px 5px; } .pe-kn .ch-wer { font-size:12.5px; margin-bottom:2px; } .pe-kn .ch-text { font-size:13.5px; line-height:1.45; } .pe-kn .ch-zeit { font-size:11px; color:#777; }
.pe-kn .avatar-kreis { width:26px !important; height:26px !important; font-size:10.5px; } .pe-kn .pe-k-weg { padding:0 0 0 4px; font-size:11px; opacity:0; } .pe-kn:hover .pe-k-weg { opacity:1; }
.pe-komm-leer { color:var(--grau); font-size:13px; padding:8px 2px; }
.pe-seite .pe-k-form { flex:none; padding:8px 10px 10px; border-top:1px solid #f0f0f0; margin:0; } .pe-k-senden { width:36px; height:36px; padding:0 !important; display:inline-flex; align-items:center; justify-content:center; }
/* Vorschauspalte der Listenansicht (mit ↑/↓ sofort sichtbar) */
.pe-vorschau { display:none; }
.pe.pe-breit:not(.pe-offen) { grid-template-columns:minmax(0, 1fr) 360px; }
.pe.pe-breit:not(.pe-offen) .pe-vorschau { display:flex; flex-direction:column; gap:10px; min-height:0; overflow:auto; padding:14px; background:#fff; border:1px solid var(--linie); border-radius:10px; }
.pe-vorschau .pe-s-block { margin:0; } .pe-v-mail { padding:2px 2px 0; } .pe-v-betreff { font-size:15px; font-weight:600; overflow-wrap:anywhere; } .pe-v-zeit { margin:2px 0 8px; display:flex; align-items:center; gap:4px; }
.pe-v-text { font-size:13.5px; line-height:1.5; color:#333; max-height:230px; overflow:hidden; overflow-wrap:anywhere; -webkit-mask-image:linear-gradient(#000 80%, transparent); mask-image:linear-gradient(#000 80%, transparent); }
.pe-v-tasten { margin-top:auto; padding-top:6px; } .pe-v-tasten kbd { display:inline-flex; min-width:18px; height:18px; padding:0 4px; border:1px solid #d9d9d9; border-radius:4px; font:inherit; font-size:11px; align-items:center; justify-content:center; background:#fff; }
@media (max-width:1180px) { .pe.pe-breit:not(.pe-offen) { grid-template-columns:minmax(0, 1fr) 300px; } }
.pe-wer-chips { display:inline-flex; align-items:center; gap:4px; margin:0 6px 0 2px; } .pe-wer-chip { display:inline-flex; align-items:center; gap:5px; height:28px; padding:0 10px 0 5px; border:1px solid #e1e1e1; border-radius:14px; background:#fff; font:inherit; font-size:13px; cursor:pointer; color:#444; }
.pe-wer-chip.an { background:var(--schwarz); border-color:var(--schwarz); color:#fff; } .pe-wer-chip kbd { min-width:16px; height:16px; border-radius:4px; background:rgba(0,0,0,.06); font:inherit; font-size:10.5px; display:inline-flex; align-items:center; justify-content:center; }
.pe-wer-chip.an kbd { background:rgba(255,255,255,.18); } .pe-postfach { margin-left:8px; }
/* Signatur: Bild mit Link (29.10.2026) */
.sig-bild { display:grid; grid-template-columns:120px minmax(0, 1fr); gap:6px 12px; margin:8px 0 2px; align-items:center; }
.sig-bild-vorschau { grid-row:span 2; height:72px; border:1px dashed #cfcfcf; border-radius:10px; background:#fafafa; display:flex; align-items:center; justify-content:center; gap:6px; font:inherit; font-size:12.5px; color:var(--grau); cursor:pointer; overflow:hidden; padding:4px; }
.sig-bild-vorschau img { max-width:100%; max-height:100%; object-fit:contain; } .sig-bild-vorschau:hover { border-color:#999; }
.sig-bild-feld { display:flex; flex-direction:column; gap:2px; font-size:12px; color:var(--grau); margin:0; } .sig-bild-feld input[data-bild-link] { height:32px; }
.sig-bild-feld span { display:flex; align-items:center; gap:8px; } .sig-bild-feld b { color:var(--schwarz); font-size:12.5px; }
/* Entwürfe (29.10.2026): im Verlauf als eigene Zeile, im Verfassen-Fenster Stand und „Entwurf verwerfen“ */
.pe-entwurf-zeile { display:flex; align-items:stretch; margin:8px 0 0; border:1px dashed #e0b25c; border-radius:10px; background:#fffaf0; }
.pe-entwurf-auf { flex:1; min-width:0; display:flex; align-items:center; gap:8px; padding:10px 12px; border:0; background:none; font:inherit; font-size:13.5px; text-align:left; cursor:pointer; color:inherit; }
.pe-entwurf-auf b { color:#a2610a; } .pe-entwurf-auf span { flex:1; min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; color:#555; } .pe-entwurf-auf small { color:var(--grau); }
.pe-entwurf-weg { border:0; background:none; color:#999; padding:0 12px; cursor:pointer; } .pe-entwurf-weg:hover { color:var(--schwarz); }
.pv-stand { margin-left:10px; } .pv-verwerfen { margin-right:6px; }
.pe-s-anlegen { height:auto !important; min-height:32px; padding:6px 12px !important; white-space:normal; text-align:left; line-height:1.3; max-width:100%; }
.pe-s-lief b { margin-left:4px; }
/* Bild-Anhänge als Vorschau-Kacheln (29.10.2026) */
.pe-kacheln { display:grid; grid-template-columns:repeat(auto-fill, minmax(132px, 1fr)); gap:10px; margin:12px 0 4px; }
.pe-kachel { position:relative; display:flex; flex-direction:column; gap:4px; min-width:0; }
.pe-kachel-bild { aspect-ratio:4/3; padding:0; border:1px solid var(--linie); border-radius:10px; background:#f4f4f4; overflow:hidden; cursor:zoom-in; display:flex; }
.pe-kachel-bild img { width:100%; height:100%; object-fit:cover; display:block; } .pe-kachel-bild img:not([src]) { visibility:hidden; } .pe-kachel-bild:hover { border-color:#bbb; }
.pe-kachel-name { font-size:12px; color:var(--grau); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.pe-kachel .pe-abl.klein { position:absolute; top:6px; right:6px; width:28px; height:28px; padding:0; display:inline-flex; align-items:center; justify-content:center; border-radius:8px; background:rgba(255,255,255,.92); }
.pe-neu-knopf { display:inline-flex; align-items:center; gap:6px; height:38px; padding:0 14px; white-space:nowrap; }
.projekt-tabelle .pl-pin { display:inline-flex; vertical-align:-2px; margin-right:6px; color:#111; } /* angepinnt (Feedback #61) */

/* ---------- Plantafel: offene Einsätze links, Kundentermin (Feedback #70/#71, 30.10.2026) ---------- */
main.pt-seite > .pt-rahmen { flex:1 1 auto; min-height:0; display:flex; gap:12px; }
.pt-rahmen > .pt { flex:1 1 auto; min-width:0; }
.pt-offen { flex:0 0 260px; width:260px; display:flex; flex-direction:column; min-height:0; background:#fff; border:1px solid #e3e3e3; border-radius:8px; overflow:hidden; }
.pt-offen[hidden] { display:none; }
.pt-offen.zu { flex:0 0 40px; width:40px; }
.pt-offen-streifen { flex:1; display:flex; flex-direction:column; align-items:center; gap:10px; border:none; border-radius:0; background:none; padding:12px 0; color:#111; }
.pt-offen-streifen span { writing-mode:vertical-rl; transform:rotate(180deg); font-weight:600; font-size:14px; }
.pt-offen-streifen:hover { background:var(--hell); }
.pt-offen-zahl { min-width:20px; height:20px; border-radius:10px; background:var(--rot); color:#fff; font-size:12px; display:flex; align-items:center; justify-content:center; padding:0 5px; box-sizing:border-box; }
.pt-offen-kopf { display:flex; align-items:center; gap:6px; padding:10px 8px 6px 12px; } .pt-offen-kopf b { font-size:15px; } .pt-offen-kopf .rechts { margin-left:auto; }
.pt-offen-suche { display:flex; align-items:center; gap:6px; margin:0 10px 8px; padding:0 10px; height:36px; border:1px solid var(--rahmen); border-radius:8px; color:#888; }
.pt-offen-suche input { border:none; outline:none; flex:1; min-width:0; font-size:14px; padding:0; height:34px; background:none; }
.pt-offen-liste { flex:1 1 auto; min-height:0; overflow-y:auto; padding:0 10px 10px; display:flex; flex-direction:column; gap:8px; }
.pt-of-karte { display:flex; flex-direction:column; gap:2px; padding:8px 10px 8px 14px; border:1px solid var(--linie); border-radius:8px; background:#fff; cursor:grab; user-select:none; touch-action:none; position:relative; font-size:14px; }
.pt-of-karte::before { content:''; position:absolute; left:0; top:0; bottom:0; width:5px; border-radius:8px 0 0 8px; background:var(--of-farbe, #e9e9e9); }
.pt-of-karte:hover { background:var(--hell); } .pt-of-karte b { font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.pt-of-karte > span { color:var(--grau); font-size:13px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.pt-of-unten { display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
.pt-of-leer { margin:6px 2px; }
.pt-of-hand { padding:8px 14px; font-weight:600; }
.pt-balken.kt-unbestaetigt { background-image:repeating-linear-gradient(135deg, rgba(255,255,255,.75) 0 6px, transparent 6px 12px) !important; outline:1.5px dashed #7a5b00; outline-offset:-1.5px; }
.pt-kt { display:inline-block; font-size:11px; font-weight:600; padding:1px 6px; border-radius:6px; background:#fbefc5; color:#7a5b00; margin-right:2px; vertical-align:1px; }
.pt-kt.ok { background:#dcf2e3; color:#1d6b36; }
.pt-kt-feld { box-sizing:border-box; min-height:58px; padding:8px 14px 9px; border:1px solid #e1e1e1; border-radius:12px; background:#fff; gap:6px !important; } .pt-kt-feld > span { font-size:12px; color:#8a8a8a; }
.pt-kt-feld .pt-kt-wahl { display:flex; border:none; border-radius:9px; background:#e9e9e9; padding:3px; gap:2px; } /* wie der Umschalter im Formular (Person/Firma) */
.pt-kt-feld .pt-kt-wahl button { flex:1 1 0; border:none !important; border-radius:7px; padding:6px 4px; font-size:13.5px; color:#5e5e5e; background:none; white-space:nowrap; }
.pt-kt-feld .pt-kt-wahl button.an { background:#fff; color:#131313; font-weight:500; box-shadow:0 1px 2px rgba(0,0,0,.14); }
[data-kt-felder][hidden] { display:none !important; }
/* Problemmeldungen (Feedback #65, 30.10.2026) */
.pm-panel .pm-oben { display:flex; align-items:center; gap:6px; flex-direction:row !important; }
.pm-text { font-size:15px; line-height:1.45; white-space:normal; }
.pm-bilder { display:grid !important; grid-template-columns:repeat(3, 1fr); gap:6px !important; } .pm-bilder img { width:100%; aspect-ratio:1; object-fit:cover; border-radius:8px; cursor:zoom-in; }
.pm-verlauf { gap:0 !important; border-top:1px solid var(--linie); padding-top:10px; } .pm-verlauf > b { margin-bottom:6px; }
.pm-v { display:flex; flex-direction:column; gap:2px; padding:8px 0 8px 12px; border-left:2px solid var(--linie); font-size:14px; }
.pm-v-kopf { font-weight:600; display:flex; gap:8px; align-items:baseline; flex-wrap:wrap; } .pm-v-kopf .klein-text { font-weight:400; }
.pm-bauleiter { display:flex; align-items:center; gap:8px; padding:4px 2px 12px; } .pm-bauleiter > span { flex:1; }
.pm-projekt-tab { margin-top:0; }
/* Textblöcke in den Einstellungen (Anfangs-/Schlusstexte, Dom 30.10.2026): wie im Editor, Zeilen und Leerzeilen bleiben */
.dtb { display:flex; flex-direction:column; gap:8px; } .dtb + .dtb { margin-top:14px; } .dtb-titel { font-size:13.5px; }
.dtb .dok-bloecke { padding-left:22px; } .dtb .dok-block { display:flex; align-items:flex-start; gap:4px; } .dtb .dok-block .dok-text-feld { flex:1; min-width:0; border-color:#e4e4e4; }
.dtb .dok-block .dok-griff { left:-20px; } .dtb .dok-block .icon-knopf { flex:none; margin-top:4px; }
.dtb .dok-block.auto .dok-text-feld, .dtb-lese-block.auto { color:#777; font-style:italic; background:#f6f7f8; }
.dtb-neu { align-self:flex-start; margin-left:22px; }
.dtb-lese { display:flex; flex-direction:column; gap:10px; } .dtb-lese-block.auto { padding:4px 8px; border-radius:6px; font-size:13.5px; align-self:flex-start; }
/* Editor: ⋮ am Textblock statt ✕ (wie plancraft) */
.dok-block > .icon-knopf[data-bmenue] { position:absolute; right:-40px; top:4px; }

/* Problemmeldungen: Dringlichkeit Hoch rot, Mittel orange, Niedrig blau (Beta-Feedback 30.10.2026), letzte Antwort unter dem Status */
.marke.pm-m-hoch { background:#fde3e3; color:#a40f0f; border-color:transparent; } .marke.pm-m-mittel { background:#fff1e0; color:#8a4b00; border-color:transparent; } .marke.pm-m-niedrig { background:#e8eefc; color:#2d4a9a; border-color:transparent; }
.pm-letzte-d { max-width:260px; margin-top:3px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
/* Dom 30.10.2026 (8.135): jeder Text im Editor ist eine Zeile wie eine Position – Anrede, Anfangs-/Schlusstexte, Zahlungsbedingungen, Textpositionen.
   Ein runder Rahmen über die ganze Breite der Positionsliste (wie .dok-pos: unsichtbar, beim Drüberfahren/Schreiben schwarz), Griff links in der Griff-Spalte,
   Text von „Menge“ bis „Preis“ (bricht dort um), ⋮ rechts in der ⋮-Spalte. Breite/Lage der Blöcke oben setzt ausrichten() in dokumente.js. Das PDF bleibt, wie es ist. */
.dok-a4 .dok-texte .dok-bloecke { gap:0; } .dok-a4 .dok-texte .dok-anrede-bl { margin-bottom:10px; }
.dok-a4 .dok-texte .dok-block, .dok-tabelle:not(.brief) .dok-pos.text { display:grid; grid-template-columns:22px 56px 62px 70px minmax(0, 1fr) 96px 104px 30px; gap:8px; align-items:start;
  box-sizing:border-box; padding:16px 10px; border:1px solid transparent; border-radius:8px; background:#fff; font-size:14.5px; cursor:text; }
.dok-a4 .dok-texte .dok-block { margin:0 -46px; } .dok-a4 .dok-texte .dok-anrede-z { margin-bottom:0; }
.dok-a4 .dok-texte .dok-block:hover, .dok-a4 .dok-texte .dok-block:focus-within, .dok-tabelle:not(.brief) .dok-pos.text:hover, .dok-tabelle:not(.brief) .dok-pos.text:focus-within { background:#fff; border-color:#111; }
.dok-a4 .dok-texte .dok-block > .dok-griff, .dok-tabelle:not(.brief) .dok-pos.text > .dok-griff { position:static; grid-column:1; grid-row:1; width:auto; }
.dok-a4 .dok-texte .dok-block:hover > .dok-griff, .dok-tabelle:not(.brief) .dok-pos.text:hover > .dok-griff { opacity:1; }
/* Text von „Menge“ bis „Preis“ (Dom 30.10.2026: „ausrichten an Menge und Preis, wie besprochen“) */
.dok-a4 .dok-texte .dok-block > .dok-text-feld, .dok-tabelle:not(.brief) .dok-pos.text > .dok-pos-text { grid-column:3 / 7; grid-row:1; margin-left:-10px !important; margin-right:-10px !important; /* Kopfzeile hat 10 px weniger Einzug: Text beginnt genau am „M“ von Menge und endet mit „Preis“ */ min-width:0; min-height:0; margin:0; padding:0; border:0; border-radius:0;
  background:none; font:inherit; font-size:14.5px; line-height:1.45; color:inherit; outline:none; overflow-wrap:anywhere; }
.dok-a4 .dok-texte .dok-block > .dok-text-feld:hover, .dok-a4 .dok-texte .dok-block > .dok-text-feld:focus { border:0; background:none; }
.dok-a4 .dok-texte input.dok-anrede.dok-text-feld { width:calc(100% + 20px); height:auto; box-sizing:border-box; } /* mit den −10 px links/rechts wie die anderen Texte */
.dok-a4 .dok-texte .dok-block > .icon-knopf, .dok-tabelle:not(.brief) .dok-pos.text > .icon-knopf { position:static; grid-column:8; grid-row:1; width:26px; height:26px; opacity:0; }
.dok-a4 .dok-texte .dok-block:hover > .icon-knopf, .dok-a4 .dok-texte .dok-block:focus-within > .icon-knopf, .dok-tabelle:not(.brief) .dok-pos.text:hover > .icon-knopf, .dok-tabelle:not(.brief) .dok-pos.text:focus-within > .icon-knopf { opacity:1; }
/* Textpositionen in der Pos.-Liste (Dom 30.10.2026): Text auf den Kanten der Positionen – links an der Spalte „Einheit“, rechts bis zur Spalte „Preis“ (gleiches Raster wie .dok-pos);
   oben und unten bleibt es bei „Menge“ bis „Preis“ */
/* Dom 30.10.2026 (wie plancraft): Textblock genau so breit wie die Beschreibung einer Position – gleiche Spalte, gleiche Kanten */
.dok-tabelle:not(.brief) .dok-pos.text > .dok-pos-text { grid-column:5 / 6; margin-left:0 !important; margin-right:0 !important; }
/* Text bearbeiten mit Speichern (Dom 30.10.2026, wie früher): Kasten um den Text, darunter rechts „Abbrechen“ | „Speichern“; der Text bleibt auf seinen Kanten */
.dok-a4 .dok-texte .dok-block.text-offen, .dok-tabelle:not(.brief) .dok-pos.text.text-offen, .dok-a4 .dok-texte .dok-block.text-offen:hover, .dok-tabelle:not(.brief) .dok-pos.text.text-offen:hover,
.dok-a4 .dok-texte .dok-block.text-offen:focus-within, .dok-tabelle:not(.brief) .dok-pos.text.text-offen:focus-within { border-color:transparent; cursor:default; }
.dok-a4 .dok-texte .dok-block.text-offen > .dok-text-feld, .dok-tabelle:not(.brief) .dok-pos.text.text-offen > .dok-pos-text { outline:1px solid #d4d4d4 !important; outline-offset:8px; border-radius:1px; cursor:text; }
.dok-a4 .dok-texte .dok-block.text-offen > .dok-text-feld:focus, .dok-tabelle:not(.brief) .dok-pos.text.text-offen > .dok-pos-text:focus { outline-color:#9a9a9a !important; }
.text-offen > .dok-text-fuss { grid-row:2; grid-column:3 / 7; margin:16px -18px 0 0; padding-top:0; } .dok-pos.text.text-offen > .dok-text-fuss { grid-column:4 / 6; margin-right:-16px; }
.dok-pos.text .dok-pos-text { cursor:text; } .dok-pos.text .dok-pos-text:empty::before { content:attr(data-leer); color:#b4b4b4; }
.dok-a4 .dok-texte .dok-block.ziel { box-shadow:0 -2px 0 var(--rot); }
/* Einstellungen → Anfangs- & Schlusstexte: dieselbe Zeile (Griff links, Text, ⋮ rechts, Rahmen wie eine Position) */
.dtb .dok-bloecke { padding-left:0; gap:0; }
.dtb .dok-bloecke .dok-block { display:grid; grid-template-columns:22px minmax(0, 1fr) 30px; gap:8px; align-items:start; padding:16px 10px; border:1px solid transparent; border-radius:8px; background:#fff; font-size:14.5px; cursor:text; }
.dtb .dok-bloecke .dok-block:hover, .dtb .dok-bloecke .dok-block:focus-within { border-color:#111; }
.dtb .dok-bloecke .dok-block > .dok-griff { position:static; grid-column:1; width:auto; } .dtb .dok-bloecke .dok-block:hover > .dok-griff { opacity:1; }
.dtb .dok-bloecke .dok-block > .dok-text-feld { grid-column:2; min-width:0; min-height:0; padding:0; border:0; border-radius:0; background:none; font-size:14.5px; line-height:1.45; }
.dtb .dok-bloecke .dok-block.auto > .dok-text-feld { font-style:normal; background:none; color:#8a8a8a; }
.dtb .dok-bloecke .dok-block > .icon-knopf { position:static; grid-column:3; width:26px; height:26px; margin:0; opacity:0; }
.dtb .dok-bloecke .dok-block:hover > .icon-knopf, .dtb .dok-bloecke .dok-block:focus-within > .icon-knopf { opacity:1; }
.dtb-neu { margin-left:40px; }
/* Plantafel → Reiter „Einsätze“: Chips „was ist zu tun“ mit Anzahl (Mehrfachauswahl, Dom 30.10.2026) */
.ei-tun { display:flex; flex-wrap:wrap; gap:8px; margin:0 0 14px; }
.ei-tun button { display:inline-flex; align-items:center; gap:8px; height:36px; padding:0 8px 0 14px; border:1px solid #e1e1e1; border-radius:18px; background:#fff; font:inherit; font-size:14px; font-weight:500; color:#2b2b2b; cursor:pointer; }
.ei-tun button:hover { border-color:#111; }
.ei-tun button.an { background:var(--schwarz); color:#fff; border-color:var(--schwarz); }
.ei-tun-n { min-width:22px; height:22px; padding:0 6px; border-radius:999px; background:#f1f1f1; color:#2b2b2b; font-size:12px; font-weight:600; display:inline-flex; align-items:center; justify-content:center; font-variant-numeric:tabular-nums; }
.ei-tun button.an .ei-tun-n { background:rgba(255,255,255,.2); color:#fff; }
.ei-tabelle tr.ei-offen td:first-child { box-shadow:inset 3px 0 0 #f0d27a; }
.ei-tabelle td .marke + .marke { margin-left:4px; }


/* Chat am Rechner wie in der Handy-App (#56, #58): Haken, online-Punkt, „schreibt …“, Abstimmungen, Anheft-Leiste */
.ch-haken { display:inline-flex; color:#999; margin-left:1px; } .ch-haken .ic { width:15px; height:15px; } .ch-haken.gelesen { color:var(--rot); }
.cl-online { position:relative; display:inline-flex; flex:none; }
.cl-online.an::after { content:''; position:absolute; right:0; bottom:0; width:11px; height:11px; border-radius:50%; background:var(--rot); border:2px solid #fff; box-sizing:border-box; }
.cl-titel span.tippt { color:var(--rot); }
.ch-tippt { padding:6px 16px 0; font-size:12.5px; color:var(--grau); font-style:italic; }
.ch-angeheftet { display:flex; align-items:center; gap:10px; padding:8px 16px; cursor:pointer; max-height:none; overflow:hidden; background:#fff; }
.ch-angeheftet[hidden] { display:none; } .ch-angeheftet:hover { background:#fafafa; } .ch-angeheftet > .ic { color:var(--grau); flex:none; }
.ch-pl-text { min-width:0; display:flex; flex-direction:column; font-size:13px; } .ch-pl-text b { font-size:12px; font-weight:600; color:#444; }
.ch-pl-text span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#333; }
.ch-umfrage { min-width:260px; max-width:380px; padding:2px 0 2px; }
.ch-umfrage .u-frage { font-weight:600; font-size:14.5px; margin-bottom:2px; } .ch-umfrage .u-art { font-size:12px; color:var(--grau); margin-bottom:4px; }
.ch-umfrage .u-opt { display:flex; align-items:flex-start; gap:10px; width:100%; padding:6px 0; background:none; border:none; font:inherit; color:inherit; text-align:left; cursor:pointer; border-radius:0; }
.ch-umfrage .u-kreis { width:18px; height:18px; border-radius:50%; border:1.5px solid #aaa; flex:none; display:flex; align-items:center; justify-content:center; margin-top:1px; background:#fff; }
.ch-umfrage .u-opt.mehr .u-kreis { border-radius:4px; } .ch-umfrage .u-opt.an .u-kreis { background:#111; border-color:#111; color:#fff; } .ch-umfrage .u-kreis .ic { width:12px; height:12px; }
.ch-umfrage .u-opt:hover .u-kreis { border-color:#111; }
.ch-umfrage .u-mitte { flex:1; min-width:0; } .ch-umfrage .u-zeile { display:flex; justify-content:space-between; gap:8px; font-size:14px; } .ch-umfrage .u-zeile b { font-weight:600; font-size:13px; }
.ch-umfrage .u-balken { display:block; height:4px; border-radius:2px; background:#d6d6d6; margin-top:5px; overflow:hidden; } .ch-umfrage .u-balken i { display:block; height:100%; background:#111; border-radius:2px; transition:width .2s; }
.ch-umfrage .u-stimmen { display:block; width:100%; margin-top:4px; padding:7px 0 0; border:none; border-top:1px solid #d6d6d6; border-radius:0; background:none; color:#111; font:inherit; font-size:13px; font-weight:500; cursor:pointer; }
.ch-umfrage .u-stimmen:hover { text-decoration:underline; }
.ch-info-titel { display:flex; align-items:center; gap:6px; font-size:12.5px; font-weight:600; color:var(--grau); margin:14px 0 6px; } .ch-info-titel .ic { width:15px; height:15px; }
.ch-info-zeile { display:flex; align-items:center; gap:10px; padding:5px 0; font-size:14px; }
.ch-info-leer { padding:2px 0 6px; }
.ch-info-vorschau { background:#f2f2f2; border-radius:8px; padding:8px 12px; font-size:13.5px; color:#333; }
.ch-u-eingaben { display:flex; flex-direction:column; gap:8px; } .ch-u-eingaben input { width:100%; box-sizing:border-box; }
.ch-u-mehr { display:flex; align-items:center; gap:8px; margin:14px 0 16px; font-size:14px; cursor:pointer; }
/* ⋮ im Dokument-Editor: alle drei Punkte gefüllt (das Symbol hat nur Ränder – r 1,2 mit Strich 1,9 lässt ein winziges Loch, beim mittleren Punkt fällt es auf halbe Pixel und wirkt leer) */
.dok-app svg circle[r="1.2"], .dtb svg circle[r="1.2"] { fill:currentColor; }
/* Kalkulation (Dom 31.10.2026): Mülleimer und „Tiefer kalkulieren“ ohne Rahmen, beim Darüberfahren rot hinterlegt */
.dok-kalk-k .icon-knopf { border-color:transparent; background:transparent; box-shadow:none; }
.dok-kalk-k .icon-knopf:hover, .dok-kalk-k .icon-knopf:focus-visible { background:#fdeaea; color:var(--rot); border-color:transparent; }
/* Zahl mit Einheit (Skonto, Zahlungsziel, Lohnkostenanteil) wie das Rabatt-Feld (Dom 31.10.2026: „nicht so kastig“): ein Feld, Einheit als leiser Zusatz ohne graue Kachel */
.dok-zahl-einheit { border-radius:8px; border-color:#dcdcdc; }
.dok-zahl-einheit input { width:64px !important; padding-right:4px !important; }
.dok-zahl-einheit.breit input { width:104px !important; }
.dok-zahl-einheit > span { border-left:none; background:#fff; padding:0 12px 0 2px; color:#8a8a8a; }
.dok-zahl-einheit .auswahl { border-left:none; } .dok-zahl-einheit .auswahl-knopf { background:#fff !important; }
.dok-zahl-einheit:focus-within { border-color:#999; }
.dok-einst-reihe .dok-toggle { min-width:150px; }
.ber-info { align-items:start; }
/* Seitenumbruch von Hand im Dokument (Dom 31.10.2026): gestrichelte Linie „Neue Seite“ über der Zeile, entfernen über ⋮ */
.dok-umbruch { display:flex; align-items:center; gap:10px; margin:6px 0; color:#999; font-size:12px; }
.dok-umbruch::before, .dok-umbruch::after { content:''; flex:1; border-top:1px dashed #c8c8c8; }
/* Suche im Chat (#78) */
/* Suche im Chat (Dom 31.10.2026, CI): großes Suchfeld wie in der Filterleiste, liegt über dem Chat (schiebt nichts), Linie über die volle Breite */
.ch-suche { position:absolute; left:0; right:0; z-index:20; padding:10px 14px 0; background:#fff; border-bottom:1px solid #e5e5e5; box-shadow:0 8px 18px rgba(0,0,0,.06); }
.ch-suche[hidden] { display:none; }
.ch-suche .ch-suchfeld { flex:none; width:100%; min-width:0; margin-bottom:10px; } .ch-suche .ch-suchfeld input { width:100%; font-size:15px; }
.ch-suche-treffer { max-height:320px; overflow:auto; margin:0 -14px; } .ch-suche-treffer:empty { display:none; }
.ch-suche-z { display:flex; flex-direction:column; align-items:flex-start; gap:3px; width:100%; text-align:left; border:0; border-top:1px solid #eee; border-radius:0; background:#fff; padding:10px 14px; font-size:14px; }
.ch-suche-z:hover { background:#fafafa; } .ch-suche-z mark { background:#ffe7a3; color:inherit; padding:0 1px; border-radius:2px; }
.ch-gefunden .ch-blase { box-shadow:0 0 0 2px var(--rot); transition:box-shadow .3s; }
/* Automatisierungen (#77) */
.au-karte { max-width:900px; margin-bottom:14px; } .au-karte h2 { margin:0 0 6px; font-size:16px; }
.au-regel { display:grid; grid-template-columns:48px minmax(0, 1fr) auto; gap:12px; align-items:center; padding:12px 0; border-top:1px solid #eee; }
.au-regel:first-of-type { border-top:none; } .au-text { font-size:14px; line-height:1.45; } .au-wenn { color:#888; font-size:12.5px; min-width:38px; display:inline-block; }
.au-tage { display:flex; flex-direction:column; align-items:flex-end; gap:2px; }
.au-weiter { display:grid; grid-template-columns:130px minmax(0, 1fr) 260px; gap:12px; padding:10px 0; border-top:1px solid #eee; font-size:14px; align-items:baseline; }
.au-weiter:first-of-type { border-top:none; }
/* Login-Reiter der Personalakte (Dom 31.10.2026): Konto links, Benachrichtigungen rechts */
.ma-login-raster { display:grid; grid-template-columns:minmax(0, 1fr) minmax(0, 1fr); gap:16px; align-items:start; }
.ma-login-raster .ma-login { margin:0; max-width:none; }
@media (max-width:1100px) { .ma-login-raster { grid-template-columns:1fr; } }
/* Postfächer: wer sieht welches (Dom 31.10.2026) */
.pf-weiteres { flex-wrap:wrap; gap:8px; } .pf-art { width:auto !important; min-width:220px; }
.pf-personen { flex-basis:100%; display:flex; flex-wrap:wrap; gap:6px 16px; padding:6px 0 2px; }
/* Dom 31.10.2026: kein großes „Text hierher ziehen“ mehr – die rote Einfügelinie reicht. Das Feld bleibt als unsichtbare Ablage, beim Darüberziehen eine rote Linie */
body.dok-zieht .dok-block-ziel, .dok-bloecke.ziel-feld .dok-block-ziel { min-height:10px; padding:0; border:none; background:none; font-size:0; color:transparent; position:relative; }
.dok-bloecke.ziel-feld .dok-block-ziel::after { content:''; position:absolute; left:0; right:0; top:4px; height:2px; border-radius:1px; background:var(--rot); }
/* letzter Stand von Chat/Stunden beim Zurück ins Projekt, bis die echten Daten da sind (paOhneZucken) */
.pa-vorher { position:absolute !important; z-index:5; overflow:hidden; pointer-events:none; margin:0 !important; box-sizing:border-box; }
.pa-vorher:not(.pa-karte) { background:#fff; }
/* Dom 31.10.2026 (Aufmaß): „Löschbutton komplett rot“ – nach CI ist Löschen roter Text bzw. ein rotes Zeichen, kein roter Kasten. Rote Fläche nur für button.gefahr als Knopf im Bestätigen-Fenster */
button.icon-knopf.gefahr { background:#fff; border-color:var(--linie, #e5e5e5); color:var(--rot); filter:none; }
button.icon-knopf.gefahr.ohne-rand { border-color:transparent; background:none; }
button.icon-knopf.gefahr:hover { background:#fdf0f0; border-color:#f1c4c4; filter:none; }
button.link.gefahr { background:none; border-color:transparent; color:#5e5e5e; } button.link.gefahr:hover { background:none; text-decoration:underline; filter:none; }
/* Dom 31.10.2026: „Die drei Punkte daneben sind kleiner als der Knopf“ – im Seitenkopf sind alle Knöpfe gleich hoch (CI 40 px, Symbolknöpfe quadratisch) */
:is(.kopf, .pa-kopf, .seitenkopf) :is(.leiste, .rechts) > :is(button, .btn, a.knopf) { box-sizing:border-box; height:40px; display:inline-flex; align-items:center; justify-content:center; }
:is(.kopf, .pa-kopf, .seitenkopf) :is(.leiste, .rechts) > .icon-knopf { width:40px; height:40px; padding:0; }
:is(.kopf, .pa-kopf, .seitenkopf) :is(.leiste, .rechts) > .pa-knopf { height:40px; min-width:40px; }
.ch-suchfeld input::-webkit-search-cancel-button { -webkit-appearance:none; appearance:none; }
.pt-geist.gelandet { opacity:1; outline:none; } /* nach dem Loslassen: Balken steht schon an der neuen Stelle (Dom 31.10.2026) */
/* Zahlungsblock fest im Preisblock (Dom 1.11.2026): kein Griff, kein ⋮, nicht als Text änderbar – Klick öffnet Zahlungsziel/Skonto */
.dok-block.auto.fest { cursor:pointer; } .dok-block.auto.fest:hover { background:none; } .dok-block.auto.fest .dok-text-feld { color:inherit; }
/* Automatisierungen als Editor (Dom 1.11.2026) – Datenblöcke im Aufbau der Vorlagen */
.au-seite { max-width:1100px; display:flex; flex-direction:column; gap:16px; }
.au-kasten .akte-kopf { gap:12px; align-items:baseline; } .au-kasten .akte-kopf .klein-text { margin-left:0; }
.au-z { display:grid; grid-template-columns:48px minmax(0, 1fr) auto; gap:14px; align-items:center; padding:12px 0; border-top:1px solid #eee; }
.au-was { display:flex; flex-direction:column; gap:6px; min-width:0; font-size:14.5px; } .au-was select { width:auto; display:inline-block; margin-left:4px; }
.au-wenn { color:var(--grau); font-weight:500; }
.au-feld { display:flex; flex-direction:column; gap:2px; padding:6px 12px; border:1px solid #e1e1e1; border-radius:10px; background:#fff; max-width:560px; }
.au-feld:focus-within { border-color:#111; } .au-feld span { font-size:12px; color:var(--grau); } .au-feld input { border:none; outline:none; padding:0; height:24px; font-size:15px; font-weight:500; background:none; }
.au-rechts { display:flex; align-items:center; gap:10px; }
.au-tage { display:inline-flex; align-items:center; gap:8px; white-space:nowrap; font-size:13.5px; color:var(--grau); } .au-tage input { width:64px; height:36px; text-align:right; }
.au-wer { height:36px; max-width:210px; }
.au-dazu { margin-top:10px; font-weight:600; } .au-leer { padding:12px 0; border-top:1px solid #eee; }
/* Postfächer als Datenblock (Dom 1.11.2026, Design-Plan) */
.pf-kopf { display:flex; align-items:center; gap:10px; } .pf-kopf h2 { margin:0; } .pf-kopf .rechts { margin-left:auto; display:flex; gap:8px; align-items:center; }
.pf-zeile { display:grid; grid-template-columns:minmax(0, 1fr) auto auto; gap:12px; align-items:center; padding:12px 0; border-top:1px solid #eee; }
.pf-zeile-text b { font-weight:600; } .pf-wer { white-space:nowrap; max-width:280px; overflow:hidden; text-overflow:ellipsis; }
.pf-sig { margin-top:12px; }
.pf-personen-karten { display:flex; flex-wrap:wrap; gap:8px; } .pf-person { border:1px solid #e1e1e1; border-radius:10px; background:#fff; padding:10px 14px; font-weight:500; }
.pf-person.an { border-color:#111; box-shadow:0 0 0 1px #111; } .pf-fenster { min-width:min(520px, 90vw); }
button.link.link-schwarz { color:#111; text-decoration:underline; text-underline-offset:2px; } /* keine roten Links (CI) */

/* ---------- PDF bearbeiten (Dom 1.11.2026, public/pdfeditor.js): hell wie plancraft, Werkzeuge oben in der Mitte, Speichern rechts ---------- */
dialog.pdfb { position:fixed; inset:0; width:100vw; height:100vh; height:100dvh; max-width:none; max-height:none; margin:0; padding:0; border:none; border-radius:0; display:flex; flex-direction:column; overflow:hidden; background:#ececec; }
dialog.pdfb:not([open]) { display:none; }
.pdfb-kopf { flex:none; height:56px; background:#fff; border-bottom:1px solid var(--linie); display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); align-items:center; gap:8px; padding:0 10px; position:relative; }
.pdfb-k-l, .pdfb-k-r, .pdfb-k-m { display:flex; align-items:center; gap:4px; min-width:0; } .pdfb-k-r { justify-content:flex-end; } .pdfb-k-m { gap:8px; }
.pdfb-name { font-weight:600; font-size:15px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; margin-left:4px; }
.pdfb-trenn { width:1px; height:26px; background:var(--linie); margin:0 4px; }
.pdfb-zoomknopf { border:1px solid var(--linie); background:#fff; border-radius:9px; height:36px; padding:0 12px; font-size:14px; font-weight:500; cursor:pointer; white-space:nowrap; color:var(--schwarz); }
.pdfb-zoomknopf::after { content:''; display:inline-block; width:6px; height:6px; border-right:1.5px solid currentColor; border-bottom:1.5px solid currentColor; transform:rotate(45deg); margin:0 0 3px 8px; }
.pdfb-ic { width:40px; height:40px; border:none; background:none; border-radius:9px; color:var(--schwarz); display:flex; align-items:center; justify-content:center; cursor:pointer; padding:0; flex:none; }
.pdfb-ic:hover { background:#efefef; } .pdfb-ic:disabled { color:#c8c8c8; cursor:default; background:none; }
/* Werkzeugleiste wie GoodNotes (Dom 5.11.2026): Werkzeuge mit Namen in der Mitte, Rückgängig und Wiederholen rechts */
.pdfb-wzleiste { flex:none; background:#fff; border-bottom:1px solid var(--linie); display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); align-items:center; padding:4px 10px; position:relative; z-index:3; }
.pdfb-werkzeuge { display:flex; gap:2px; align-items:stretch; }
.pdfb-wz { border:none; background:none; border-radius:10px; min-width:60px; height:50px; padding:0 6px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px; cursor:pointer; color:#333; font-size:11px; font-weight:500; }
.pdfb-wz:hover { background:var(--hell); } .pdfb-wz.an { background:var(--schwarz); color:#fff; }
.pdfb-gr { width:1px; background:var(--linie); margin:8px 5px; }
.pdfb-verlauf { display:flex; justify-content:flex-end; gap:2px; }
/* Leiste des gewählten Werkzeugs: Art, drei Stärken, Farben */
.pdfb-ablage { position:absolute; left:50%; transform:translateX(-50%); top:118px; z-index:6; background:#fff; border:1px solid var(--linie); border-radius:14px; box-shadow:0 8px 28px rgba(0,0,0,.12); padding:8px 10px; display:flex; align-items:center; gap:12px; white-space:nowrap; max-width:calc(100vw - 24px); overflow-x:auto; }
.pdfb-ablage[hidden] { display:none; }
.pdfb-chips { display:flex; gap:3px; background:var(--hell); border-radius:10px; padding:3px; }
.pdfb-chips button { border:none; background:none; border-radius:8px; height:32px; padding:0 10px; font-size:13px; font-weight:500; cursor:pointer; color:#444; }
.pdfb-chips button.an { background:#fff; box-shadow:0 1px 3px rgba(0,0,0,.14); color:var(--schwarz); }
.pdfb-dicken { display:flex; gap:4px; } .pdfb-dicken button { width:34px; height:34px; border-radius:50%; border:1.5px solid transparent; background:none; display:flex; align-items:center; justify-content:center; cursor:pointer; padding:0; }
.pdfb-dicken button.an { border-color:var(--schwarz); } .pdfb-dicken i { display:block; border-radius:50%; }
.pdfb-farben { display:flex; gap:6px; align-items:center; }
.pdfb-farbe { width:26px; height:26px; border-radius:50%; border:2px solid #fff; background:var(--f); box-shadow:0 0 0 1px #ccc; cursor:pointer; padding:0; flex:none; }
.pdfb-farbe.an { box-shadow:0 0 0 2px var(--schwarz); } .pdfb-farbe.plus { background:#fff; color:#555; font-size:17px; line-height:20px; }
.pdfb-gr-wahl { display:flex; align-items:center; gap:6px; font-size:13px; color:var(--grau); } .pdfb-gr-wahl select { padding:4px 8px; font-size:14px; }
/* Stempel-Schnellmenü unten (zuletzt benutzt, eigene, hochladen) */
.pdfb-schnell { position:absolute; left:50%; transform:translateX(-50%); bottom:18px; z-index:6; background:#fff; border:1px solid var(--linie); border-radius:16px; box-shadow:0 10px 30px rgba(0,0,0,.16); padding:8px 8px 8px 12px; display:flex; align-items:center; gap:6px; max-width:calc(100vw - 24px); }
.pdfb-schnell[hidden] { display:none; }
.pdfb-schnell-l { display:flex; align-items:center; gap:8px; overflow-x:auto; min-width:0; padding:2px; }
.pdfb-schnell .pdfb-lab { margin:0; font-size:11px; text-transform:uppercase; letter-spacing:.05em; white-space:nowrap; }
.pdfb-schnell-tr { width:1px; align-self:stretch; background:var(--linie); margin:0 4px; flex:none; }
.pdfb-st { flex:none; border:2px solid currentColor; border-radius:6px; background:#fff; padding:5px 10px; font-weight:700; font-size:12px; letter-spacing:.06em; cursor:pointer; font-family:"Liberation Sans", Helvetica, Arial, sans-serif; height:44px; }
.pdfb-st.bild { border:1px solid var(--linie); padding:3px; width:78px; display:flex; align-items:center; justify-content:center; } .pdfb-st.bild img { max-width:100%; max-height:100%; object-fit:contain; }
.pdfb-st.neu { border:1px dashed #aaa; color:#555; font-weight:500; letter-spacing:0; font-family:inherit; display:flex; align-items:center; gap:4px; }
.pdfb-st:hover { box-shadow:0 0 0 2px rgba(0,0,0,.08); }
.pdfb-mitte { flex:1; min-height:0; display:flex; }
.pdfb-flaeche { flex:1; min-height:0; min-width:0; overflow:auto; }
/* Seitenleiste wie Vorschau: kleine Seiten, ziehen zum Umordnen, drehen, löschen, PDF anhängen */
.pdfb-leiste { flex:none; width:168px; background:#f6f6f6; border-right:1px solid var(--linie); display:flex; flex-direction:column; min-height:0; }
dialog.pdfb.ohne-leiste .pdfb-leiste { display:none; }
.pdfb-daumen { flex:1; overflow:auto; padding:14px 0 8px; display:flex; flex-direction:column; align-items:center; gap:12px; }
.pdfb-daumen-s { display:flex; flex-direction:column; align-items:center; gap:4px; cursor:grab; padding:4px 0; border-top:2px solid transparent; border-bottom:2px solid transparent; }
.pdfb-daumen-s.vor { border-top-color:var(--schwarz); } .pdfb-daumen-s.nach { border-bottom-color:var(--schwarz); } .pdfb-daumen-s.zieht { opacity:.4; }
.pdfb-daumen-bild { position:relative; background:#fff; box-shadow:0 1px 5px rgba(0,0,0,.18); line-height:0; }
.pdfb-daumen-k { position:absolute; top:4px; right:4px; display:none; gap:3px; }
.pdfb-daumen-s:hover .pdfb-daumen-k { display:flex; }
.pdfb-daumen-k button { width:26px; height:26px; border-radius:6px; border:1px solid var(--linie); background:#fff; display:flex; align-items:center; justify-content:center; padding:0; cursor:pointer; color:var(--schwarz); }
.pdfb-daumen-k button:hover { background:var(--hell); }
.pdfb-daumen-nr { font-size:12px; color:var(--grau); }
.pdfb-anhaengen { flex:none; margin:8px 12px 12px; display:flex; align-items:center; justify-content:center; gap:6px; font-size:13.5px; padding:8px 10px; }
.pdfb-formknopf { font-size:14px; padding:7px 12px; white-space:nowrap; } .pdfb-formknopf.an { background:var(--schwarz); color:#fff; border-color:var(--schwarz); }
/* Formularfelder des PDFs über der Seite */
.pdfb-form { position:absolute; inset:0; pointer-events:none; }
.pdfb-form [data-ff] { position:absolute; box-sizing:border-box; pointer-events:auto; margin:0; border:none; border-bottom:1px solid rgba(0,0,0,.25); background:rgba(255,228,51,.18); padding:0 3px; font-family:"Liberation Sans", Helvetica, Arial, sans-serif; color:#111; border-radius:0; min-height:0; }
.pdfb-form textarea[data-ff] { resize:none; line-height:1.2; }
.pdfb-form input[type=checkbox][data-ff], .pdfb-form input[type=radio][data-ff] { padding:0; accent-color:var(--schwarz); }
dialog.pdfb.formular-an .pdfb-form [data-ff] { background:rgba(255,228,51,.42); }
.pdfb-form [data-ff]:focus { outline:1.5px solid var(--schwarz); background:#fff; }
.pdfb-text.leer { outline:1px dashed rgba(0,0,0,.35); background:rgba(255,228,51,.32); min-width:40px; cursor:text; }
dialog.pdfb:not(.formular-an) .pdfb-text.leer { display:none; }
.pdfb-ta { display:block; border:none; outline:none; padding:0; margin:0; background:transparent; font-family:"Liberation Sans", Helvetica, Arial, sans-serif; line-height:1.22; resize:none; overflow:hidden; white-space:pre; min-width:40px; }
.pdfb-hervor i, .pdfb-vorschau.pdfb-hervor i { position:absolute; display:block; mix-blend-mode:multiply; opacity:.85; }
.pdfb-strich { pointer-events:none; } .pdfb-strich svg { position:absolute; inset:0; width:100%; height:100%; overflow:visible; }
.pdfb-strich svg line, .pdfb-strich svg polyline { pointer-events:none; } .pdfb-strich svg line.treffer { stroke:transparent; stroke-width:14px; pointer-events:stroke; cursor:move; }
.pdfb-strich.an { outline:1px dashed var(--schwarz); }
.pdfb-stempel { border:2px solid currentColor; border-radius:6px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2%; font-family:"Liberation Sans", Helvetica, Arial, sans-serif; opacity:.9; overflow:hidden; text-align:center; line-height:1; }
.pdfb-stempel b { letter-spacing:.04em; white-space:nowrap; } .pdfb-stempel small { white-space:nowrap; }
.pdfb-feld.datum { border-style:dotted; border-color:#888; background:rgba(0,0,0,.03); } .pdfb-feld.datum span { color:#666; }
/* kleines Fenster am Unterschriftfeld */
.pdfb-pop { position:absolute; z-index:5; width:270px; background:#fff; border:1px solid var(--linie); border-radius:12px; box-shadow:0 10px 30px rgba(0,0,0,.18); padding:14px; display:flex; flex-direction:column; gap:10px; font-size:14px; cursor:default; }
.pdfb-pop-t { font-weight:600; font-size:15px; }
.pdfb-seg { display:flex; background:var(--hell); border-radius:8px; padding:3px; gap:2px; }
.pdfb-seg button { flex:1; border:none; background:none; padding:6px 4px; border-radius:6px; font-size:13px; cursor:pointer; color:var(--schwarz); }
.pdfb-seg button.an { background:#fff; box-shadow:0 1px 3px rgba(0,0,0,.14); font-weight:600; }
.pdfb-pop select, .pdfb-pop input[type=text] { width:100%; box-sizing:border-box; }
.pdfb-pop-l { display:flex; flex-direction:column; gap:5px; font-size:13px; color:var(--grau); }
.pdfb-pop-c { display:flex; align-items:center; gap:8px; font-size:14px; cursor:pointer; }
.pdfb-pop-fuss { display:flex; justify-content:space-between; align-items:center; margin-top:2px; }
.pdfb-stempel-wahl { display:flex; flex-wrap:wrap; gap:8px; }
.pdfb-stempel-wahl button { border:2px solid var(--f); color:var(--f); background:#fff; border-radius:6px; padding:7px 12px; font-weight:700; letter-spacing:.04em; font-size:13px; cursor:pointer; opacity:.75; }
.pdfb-stempel-wahl button.an { opacity:1; box-shadow:0 0 0 2px var(--schwarz); }
dialog.pdfb-stempel-dlg input[type=text], dialog.pdfb-stempel-dlg input[type=datetime-local] { width:100%; box-sizing:border-box; }
.pdfb-stempel-z { display:flex; align-items:flex-end; gap:14px; } .pdfb-stempel-z .pdfb-lab { flex:1; display:flex; flex-direction:column; gap:6px; } .pdfb-stempel-z .pdfb-pop-c { margin-bottom:8px; }
dialog.pdfb-stempel-dlg .pdfb-lab { display:flex; flex-direction:column; gap:6px; }
.pdfb-meine { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:-6px 0 12px; }
.pdfb-meine-bild { width:100%; height:100%; object-fit:contain; padding:16px; box-sizing:border-box; }
.pdfb-uslassen { margin-right:6px; }
.pdfb-seiten { display:flex; flex-direction:column; align-items:center; gap:18px; padding:28px 28px 80px; width:max-content; min-width:100%; box-sizing:border-box; }
.pdfb-lade { color:var(--grau); padding:30vh 20px 0; text-align:center; }
.pdfb-seite { position:relative; background:#fff; box-shadow:0 2px 14px rgba(0,0,0,.18); flex:none; }
.pdfb-seite canvas { display:block; width:100%; height:100%; }
.pdfb-ebene { -webkit-touch-callout:none; }
.pdfb-ebene { position:absolute; inset:0; user-select:none; -webkit-user-select:none; touch-action:none; }
.pdfb-flaeche:not([data-wz="auswahl"]) .pdfb-ebene { cursor:crosshair; } .pdfb-flaeche[data-wz="text"] .pdfb-ebene { cursor:text; }
.pdfb-el { position:absolute; box-sizing:border-box; cursor:move; }
.pdfb-el.an { outline:1.5px solid var(--schwarz); outline-offset:2px; }
.pdfb-text { white-space:pre; line-height:1.22; font-family:"Liberation Sans", Helvetica, Arial, sans-serif; overflow:visible; padding:0; }
.pdfb-text.bearbeitet { cursor:text; outline:1.5px dashed var(--schwarz); outline-offset:2px; user-select:text; -webkit-user-select:text; min-height:1.22em; }
.pdfb-markieren { background:rgba(255,219,26,.42); mix-blend-mode:multiply; }
.pdfb-schwaerzen { background:#000; }
.pdfb-zug svg, .pdfb-haken svg, .pdfb-vorschau svg { position:absolute; inset:0; width:100%; height:100%; overflow:visible; }
.pdfb-bild img { width:100%; height:100%; object-fit:contain; pointer-events:none; }
.pdfb-feld { border:1.5px dashed var(--rot); background:rgba(228,0,0,.05); border-radius:4px; display:flex; align-items:flex-end; padding:3px 6px; }
.pdfb-feld span { font-size:11px; color:var(--rot); font-weight:600; display:flex; align-items:center; gap:4px; white-space:nowrap; overflow:hidden; }
.pdfb-vorschau { position:absolute; pointer-events:none; box-sizing:border-box; } .pdfb-vorschau.pdfb-rechteck { border:1.5px solid var(--schwarz); } .pdfb-vorschau.pdfb-feld { display:block; }
.pdfb-griff { position:absolute; right:-7px; bottom:-7px; width:12px; height:12px; background:#fff; border:1.5px solid var(--schwarz); border-radius:3px; cursor:nwse-resize; }
.pdfb-weg { position:absolute; right:-10px; top:-10px; width:20px; height:20px; border-radius:50%; border:1px solid var(--linie); background:#fff; color:var(--grau); display:flex; align-items:center; justify-content:center; padding:0; cursor:pointer; box-shadow:0 1px 3px rgba(0,0,0,.15); }
.pdfb-weg:hover { color:var(--schwarz); }
/* Auswahl wie GoodNotes: Rahmen mit Griffen (Ecken rund, Seiten länglich), Drehrad unten, schwarze Leiste darüber */
.pdfb-rahmen { position:absolute; box-sizing:border-box; border:1.5px solid #145CC7; cursor:move; z-index:3; touch-action:none; }
.pdfb-rahmen.schnitt { border:2px solid #fff; outline:1px solid rgba(0,0,0,.5); box-shadow:0 0 0 4000px rgba(0,0,0,.45); }
.pdfb-g { position:absolute; width:16px; height:16px; margin:-8px 0 0 -8px; background:#fff; border:1.5px solid #145CC7; border-radius:50%; box-sizing:border-box; }
.pdfb-g::before { content:''; position:absolute; inset:-10px; } /* größere Fläche für Finger */
.g-nw { left:0; top:0; cursor:nwse-resize; } .g-ne { left:100%; top:0; cursor:nesw-resize; } .g-se { left:100%; top:100%; cursor:nwse-resize; } .g-sw { left:0; top:100%; cursor:nesw-resize; }
.g-n, .g-s { width:24px; height:10px; margin:-5px 0 0 -12px; border-radius:6px; left:50%; cursor:ns-resize; } .g-n { top:0; } .g-s { top:100%; }
.g-e, .g-w { width:10px; height:24px; margin:-12px 0 0 -5px; border-radius:6px; top:50%; cursor:ew-resize; } .g-w { left:0; } .g-e { left:100%; }
.pdfb-drehrad { position:absolute; left:50%; top:100%; margin:26px 0 0 -17px; width:34px; height:34px; border-radius:50%; background:#fff; border:1.5px solid #145CC7; color:#145CC7; display:flex; align-items:center; justify-content:center; cursor:grab; box-sizing:border-box; }
.pdfb-drehrad::before { content:''; position:absolute; left:50%; bottom:100%; width:1.5px; height:18px; background:#145CC7; }
.pdfb-kbar { position:absolute; z-index:4; transform:translate(-50%, calc(-100% - 14px)); background:#111; border-radius:14px; display:flex; align-items:center; gap:1px; padding:5px 6px; box-shadow:0 8px 24px rgba(0,0,0,.25); white-space:nowrap; cursor:default; }
.pdfb-kbar.unten { transform:translate(-50%, 74px); }
.pdfb-kbar button { border:none; background:none; color:#fff; height:42px; min-width:48px; border-radius:9px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:1px; font-size:10px; font-weight:500; cursor:pointer; padding:0 6px; }
.pdfb-kbar button:hover { background:#2b2b2b; } .pdfb-kbar button.weg { color:#ff6b6b; } .pdfb-kbar-tr { width:1px; height:26px; background:#3a3a3a; margin:0 3px; }
.pdfb-gruppe { position:absolute; border:1.5px dashed #145CC7; background:rgba(20,92,199,.05); cursor:move; z-index:3; touch-action:none; }
.pdfb-el.an-m { outline:1px dashed #145CC7; outline-offset:1px; }
/* Striche fangen keine Klicks (sonst lägen sie über Bildern) – getroffen wird über ihre Linie */
.pdfb-zug, .pdfb-strich { pointer-events:none; }
.pdfb-markerbild { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; mix-blend-mode:multiply; overflow:visible; }
.pdfb-rahmenform { pointer-events:none; } .pdfb-rahmenform.kreis, .pdfb-vorschau.pdfb-kreis { border-radius:50%; } .pdfb-vorschau.pdfb-kreis { border:1.5px solid var(--schwarz); }
.pdfb-bild { transform-origin:50% 50%; } .pdfb-bild img { -webkit-touch-callout:none; user-select:none; -webkit-user-select:none; }
.pdfb-bild.schneidet { z-index:2; }
.pdfb-gummi { position:absolute; transform:translate(-50%, -50%); border-radius:50%; border:1.5px solid rgba(0,0,0,.45); background:rgba(255,255,255,.35); pointer-events:none; z-index:5; }
/* „Nur Stift zeichnet“: der Finger blättert auf der Seite (der Stift nie) */
.pdfb-flaeche.nur-stift .pdfb-ebene { touch-action:pan-x pan-y; }
.pdfb-eig-bild { display:flex; align-items:center; justify-content:center; }
/* Einstellungs-Fenster eines Werkzeugs (zweites Antippen, wie GoodNotes): Probe-Strich, Arten als Kacheln, Regler, Schalter */
.pdfb-panel { position:fixed; z-index:9; width:340px; max-width:calc(100vw - 16px); max-height:calc(100vh - 140px); overflow:auto; background:#fff; border:1px solid var(--linie); border-radius:16px; box-shadow:0 14px 40px rgba(0,0,0,.18); padding:14px; display:flex; flex-direction:column; gap:10px; }
.pdfb-panel-t { font-weight:600; font-size:16px; text-align:center; } .pdfb-panel-u { font-size:12px; color:var(--grau); text-transform:uppercase; letter-spacing:.05em; margin-top:4px; }
.pdfb-panel-h { margin:0; font-size:13px; color:var(--grau); text-align:center; }
.pdfb-probe { width:100%; height:80px; color:var(--schwarz); background:var(--hell); border-radius:10px; }
.pdfb-kacheln { display:grid; grid-template-columns:repeat(auto-fit, minmax(90px, 1fr)); gap:6px; }
.pdfb-kachel { border:1.5px solid transparent; background:var(--hell); border-radius:12px; padding:10px 6px; display:flex; flex-direction:column; align-items:center; gap:5px; cursor:pointer; font-size:12.5px; font-weight:500; color:#333; }
.pdfb-kachel.an { border-color:var(--schwarz); background:#fff; color:var(--schwarz); }
.pdfb-gruppe-e { background:var(--hell); border-radius:12px; padding:4px 12px; display:flex; flex-direction:column; }
.pdfb-regler { display:flex; flex-direction:column; gap:4px; padding:8px 0; border-bottom:1px solid #e6e6e6; } .pdfb-regler:last-child { border-bottom:none; }
.pdfb-regler span { display:flex; justify-content:space-between; font-size:12.5px; text-transform:uppercase; letter-spacing:.03em; color:#444; } .pdfb-regler b { font-weight:600; }
.pdfb-regler input { width:100%; accent-color:var(--schwarz); padding:0; border:none; }
.pdfb-sch { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 0; border-bottom:1px solid #e6e6e6; font-size:14px; cursor:pointer; } .pdfb-sch:last-child { border-bottom:none; }
.pdfb-sch input { position:absolute; opacity:0; pointer-events:none; }
.pdfb-sch i { flex:none; width:40px; height:24px; border-radius:12px; background:#d4d4d4; position:relative; transition:background .15s; }
.pdfb-sch i::after { content:''; position:absolute; left:2px; top:2px; width:20px; height:20px; border-radius:50%; background:#fff; box-shadow:0 1px 2px rgba(0,0,0,.2); transition:left .15s; }
.pdfb-sch input:checked + i { background:var(--schwarz); } .pdfb-sch input:checked + i::after { left:18px; }
.pdfb-panel-weg { border:none; background:none; color:var(--rot); text-align:left; padding:10px 0; font-size:14px; cursor:pointer; }
.pdfb-chips.symbole button { width:40px; padding:0; display:flex; align-items:center; justify-content:center; }
/* Textfeld: kein roter Rahmen beim Schreiben, Schriftgröße wie eingestellt (auch am Handy) */
dialog.pdfb .pdfb-ta, dialog.pdfb .pdfb-ta:focus { outline:none !important; border:none !important; box-shadow:none !important; min-height:0; border-radius:0; }
.pdfb-text.bearbeitet { outline:1.5px dashed #145CC7; }
.pdfb-hervor { pointer-events:none; }
/* Griffe am Tablet größer (Finger) */
@media (pointer:coarse) { .pdfb-g { width:24px; height:24px; margin:-12px 0 0 -12px; } .g-n, .g-s { width:36px; height:14px; margin:-7px 0 0 -18px; } .g-e, .g-w { width:14px; height:36px; margin:-18px 0 0 -7px; }
  .pdfb-drehrad { width:40px; height:40px; margin:28px 0 0 -20px; } }
/* Handy (Dom 5.11.2026: „am Handy leichter“): Werkzeuge unten, ohne Namen der Datei, Seitenleiste nur auf Wunsch */
@media (max-width:719px) {
  dialog.pdfb .pdfb-wzleiste { order:3; border-bottom:none; border-top:1px solid var(--linie); grid-template-columns:minmax(0,1fr) auto; padding:4px 4px calc(4px + env(safe-area-inset-bottom)); }
  dialog.pdfb .pdfb-wzleiste > span:first-child { display:none; }
  dialog.pdfb .pdfb-werkzeuge { overflow-x:auto; min-width:0; width:100%; max-width:100%; scrollbar-width:none; justify-self:stretch; } dialog.pdfb .pdfb-wz { min-width:56px; flex:none; } dialog.pdfb .pdfb-gr { display:none; }
  dialog.pdfb .pdfb-mitte { order:2; } dialog.pdfb .pdfb-schnell { bottom:76px; }
  dialog.pdfb .pdfb-ablage { top:auto; bottom:72px; }
  dialog.pdfb .pdfb-name, dialog.pdfb .pdfb-formknopf { display:none; }
  dialog.pdfb .pdfb-kopf { display:flex; padding:0 6px; gap:4px; } dialog.pdfb .pdfb-k-l, dialog.pdfb .pdfb-k-r { flex:none; } dialog.pdfb .pdfb-k-m { flex:1; justify-content:center; }
  dialog.pdfb .pdfb-zoomknopf { padding:0 10px; } dialog.pdfb .pdfb-k-r .primaer { padding-left:12px; padding-right:12px; }
  dialog.pdfb .pdfb-leiste { position:absolute; z-index:7; top:56px; bottom:64px; left:0; box-shadow:4px 0 16px rgba(0,0,0,.12); }
  dialog.pdfb .pdfb-seiten { padding:12px 8px 60px; gap:12px; }
}
.pdfb-lab { display:block; font-size:13px; color:var(--grau); margin:14px 0 6px; }
.pdfb-wahl { display:flex; gap:6px; flex-wrap:wrap; } .pdfb-wahl-k input { position:absolute; opacity:0; pointer-events:none; }
.pdfb-wahl-k span { display:inline-block; padding:8px 12px; border:1px solid var(--linie); border-radius:8px; cursor:pointer; } .pdfb-wahl-k input:checked + span { border-color:var(--schwarz); font-weight:600; }
.pdfb-wahl-k input:focus-visible + span { outline:2px solid var(--schwarz); }
dialog.klein #pdfb-titel, dialog.klein #pdfb-pers, dialog.pdfb-unterschreiben #pu-name { width:100%; box-sizing:border-box; }
.pdfb-fuss { margin:20px 0 0; justify-content:flex-end; } .pdfb-fuss .pdfb-links { margin-right:auto; }
/* Unterschriftfelder in der Dateiansicht */
.pdf-feld { position:absolute; box-sizing:border-box; border:2px dashed var(--rot); background:rgba(228,0,0,.07); border-radius:4px; display:flex; align-items:flex-end; justify-content:flex-start; padding:4px 6px; cursor:pointer; font:inherit; z-index:2; }
.pdf-feld:hover { background:rgba(228,0,0,.13); } .pdf-feld span { font-size:12px; font-weight:600; color:var(--rot); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.pdf-feld.fertig { border:none; background:none; cursor:default; pointer-events:none; }

/* ---------- Zeiten prüfen (Dom 1.11.2026) ---------- */
.zt-stand { font-size:12.5px; font-weight:500; line-height:1.45; color:#4a4844; background:#ebeae7; border-radius:4px; padding:2px 8px; white-space:nowrap; display:inline-flex; align-items:center; gap:3px; }
.zt-stand.gut { background:#e3eedb; color:#3d5e26; } .zt-stand.klaer { background:#f7edc4; color:#6e5410; }
.zt-wahl { width:34px; text-align:center; } .zt-wahl input { width:16px; height:16px; cursor:pointer; }
.zt-auswahl { display:flex; align-items:center; gap:8px; background:#fff; border:1px solid var(--linie); border-radius:10px; padding:8px 12px; margin:10px 0; position:sticky; top:0; z-index:3; }
.zt-auswahl[hidden] { display:none; } .zt-auswahl b { margin-right:6px; } .zt-auswahl button:not(.link) { display:inline-flex; align-items:center; gap:4px; }
.zt-pruefleiste { display:flex; flex-wrap:wrap; align-items:center; gap:10px; padding:0 0 14px; margin-bottom:14px; border-bottom:1px solid var(--linie); }
/* Prüfung im Seitenfenster ruhig wie plancraft (Dom 1.11.2026): „Prüfung: Marke“, rechts Haken und ⋮ */
.zt-pz { font-size:14px; color:var(--grau); display:inline-flex; align-items:center; gap:6px; } .zt-pz-knoepfe { margin-left:auto; display:inline-flex; align-items:center; gap:2px; }
.zt-pz-haken.an { color:var(--gruen); } .zt-ueb:empty { display:none; } .zt-ueb .ueb-notiz { margin-top:0; }
.zt-klaer-notiz { flex-basis:100%; background:#fff4d6; color:#5c4300; border-radius:8px; padding:6px 10px; font-size:13px; margin-top:4px; }
.zpr-leiste { display:flex; align-items:center; gap:12px; margin:14px 0 6px; flex-wrap:wrap; }
.zpr-tag { margin-top:18px; } .zpr-tag h3 { font-size:15px; margin:0 0 8px; }
.zpr-gruppe { padding:0; margin-bottom:12px; overflow:hidden; }
.zpr-kopf { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 16px; border-bottom:1px solid var(--linie); }
.zpr-alle { display:inline-flex; align-items:center; gap:5px; }
.zpr-tabelle { width:100%; border-collapse:collapse; font-size:14px; }
.zpr-tabelle th { text-align:left; font-weight:500; color:var(--grau); font-size:12px; padding:8px 12px; border-bottom:1px solid var(--linie); }
.zpr-tabelle td { padding:9px 12px; border-bottom:1px solid #f1f1f1; vertical-align:top; } .zpr-tabelle tr:last-child td { border-bottom:none; }
.zpr-tabelle .zahl { text-align:right; } .zpr-tabelle tr.klick:hover td { background:var(--flaeche); cursor:pointer; }
.zpr-tabelle td.abw { background:#fff4d6; font-weight:600; color:#5c4300; }
.zpr-tabelle tr.gut td:first-child { box-shadow:inset 3px 0 0 var(--gruen); } .zpr-tabelle tr.klaer td:first-child { box-shadow:inset 3px 0 0 var(--gelb); }
.zpr-knoepfe { white-space:nowrap; text-align:right; width:90px; } .zpr-kw { display:inline-flex; align-items:center; gap:4px; vertical-align:middle; } .zpr-knoepfe-th { text-align:right !important; }
.zpr-k { width:32px; height:32px; border-radius:8px; border:1px solid var(--linie); background:#fff; color:var(--grau); display:inline-flex; align-items:center; justify-content:center; padding:0; margin:0; box-sizing:border-box; flex:none; line-height:0; vertical-align:middle; cursor:pointer; }
.zpr-k:hover { border-color:#bbb; color:var(--schwarz); } .zpr-k.an { background:var(--gruen); border-color:var(--gruen); color:#fff; } .zpr-k.klaer.an { background:var(--gelb); border-color:var(--gelb); color:#fff; }
.zpr-abw { padding:2px 4px 6px; display:flex; flex-wrap:wrap; gap:4px 10px; align-items:center; }

/* ---------- Übersetzung am Rechner (Dom 1.11.2026, public/uebersetzen.js) ---------- */
.ch-blase .ueb-text { margin-top:6px; padding-top:6px; border-top:1px solid rgba(0,0,0,.08); font-size:14px; white-space:pre-wrap; }
.ch-blase .ueb-text small { display:block; font-size:11px; color:var(--grau); margin-bottom:2px; }
/* Übersetzung selbst geschriebener Texte (Zeit-Notizen, Dom 1.11.2026): klein unter dem Original, Knopf schwarz */
.ueb-notiz { margin-top:4px; font-size:13px; color:#333; white-space:pre-wrap; } .ueb-notiz small { display:block; font-size:11px; color:var(--grau); margin-bottom:1px; }
button.link.ueb-knopf { display:block; margin-top:3px; font-size:12px; }
.ueb-sprachen { display:grid; grid-template-columns:repeat(2, 1fr); gap:8px; margin:6px 0 12px; }
.ueb-sprache input { position:absolute; opacity:0; pointer-events:none; }
.ueb-sprache span { display:block; padding:12px 14px; border:1px solid var(--linie); border-radius:10px; cursor:pointer; font-size:15px; }
.ueb-sprache input:checked + span { border-color:var(--schwarz); font-weight:600; } .ueb-sprache input:focus-visible + span { outline:2px solid var(--schwarz); }
.ueb-auto { display:flex; gap:10px; align-items:flex-start; cursor:pointer; } .ueb-auto input { margin-top:3px; width:16px; height:16px; }
.ueb-vorab { display:flex; justify-content:space-between; align-items:center; gap:10px; padding:10px 0; border-top:1px solid var(--linie); }
.abl-us { color:var(--rot); font-weight:600; } .abl-us.fertig { color:var(--gruen); }
.pdfb-pad { margin-bottom:12px; } dialog.pdfb-sign .pdfb-pad canvas.unterschrift { height:220px; } .pdfb-pad .pdfb-meine-bild { height:220px; display:block; border:1px dashed #bbb; border-radius:8px; }
/* Reiter „E-Mails“ in Projekt, Anfrage und Kunde (Dom 1.11.2026: „zu kurz abgeschnitten“): Zeilen wie im Posteingang – Absender und Datum, Betreff, zwei Zeilen Vorschau –
   über die ganze Breite; die geöffnete Mail kommt als Seitenfenster rechts in voller Höhe, die Liste bleibt dahinter stehen */
.pe.pe-im-reiter.pe-breit, .pe.pe-im-reiter.pe-breit:not(.pe-offen) { grid-template-columns:minmax(0, 1fr); } .pe.pe-im-reiter.pe-breit.pe-offen .pe-liste { display:flex; }
.pe-im-reiter.pe-breit .pe-z { grid-template-columns:10px minmax(0, 1fr) auto; align-items:start; column-gap:10px; row-gap:2px; height:auto; padding:12px 18px 12px 12px; }
.pe-im-reiter.pe-breit .pe-z .pkt { grid-column:1; grid-row:1; margin-top:7px; } .pe-im-reiter.pe-breit .pe-z .wer { grid-column:2; grid-row:1; }
.pe-im-reiter.pe-breit .pe-z .zeit { grid-column:3; grid-row:1; min-width:0; } .pe-im-reiter.pe-breit .pe-z .bt { grid-column:2 / 4; grid-row:2; max-width:none; }
.pe-im-reiter.pe-breit .pe-z .vs { grid-column:2 / 4; grid-row:3; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; white-space:normal; line-height:1.45; } .pe-im-reiter.pe-breit .pe-z .vs::before { content:none; }
.pe-im-reiter.pe-breit .pe-z .fuss { display:flex; grid-column:2 / 4; grid-row:4; margin-top:4px !important; } .pe-im-reiter .pe-z .fuss:empty { display:none; }
.pe.pe-im-reiter.pe-breit.pe-offen .pe-mail { position:fixed; inset:0 0 0 auto; z-index:60; width:min(880px, calc(100vw - 280px)); height:100vh; border:none; border-radius:0; box-shadow:-6px 0 30px rgba(0,0,0,.18); }
@media (max-width:900px) { .pe.pe-im-reiter.pe-breit.pe-offen .pe-mail { width:100vw; } }
/* KI beim E-Mail-Schreiben (⌘J, public/kimail.js, Dom 1.11.2026): kleines Feld über dem Text, dezenter Hinweis im Fuß */
.kis-box { display:flex; align-items:center; gap:8px; min-height:44px; padding:0 12px; border:1px solid var(--schwarz); border-radius:10px; background:#fff; box-shadow:0 4px 16px rgba(0,0,0,.08); }
.pv .kis-box { margin:10px 18px 0; } .kis-box .kis-ic { display:inline-flex; color:var(--schwarz); flex:none; } .kis-box.laeuft .kis-ic { animation:kis-puls 1s ease-in-out infinite; }
@keyframes kis-puls { 50% { opacity:.3; } }
.formular .kis-box input.kis-eingabe, .kis-box input.kis-eingabe { flex:1; min-width:0; width:auto; min-height:0; height:40px; border:none !important; box-shadow:none !important; outline:none; padding:0; background:none; font:inherit; font-size:15px; color:var(--schwarz); }
.kis-stand { flex:none; font-size:12px; color:var(--grau); white-space:nowrap; }
.kis-hinweis { display:inline-flex; align-items:center; gap:6px; height:30px; padding:0 8px; border:none; border-radius:6px; background:none; font:inherit; font-size:12.5px; color:var(--grau); cursor:pointer; white-space:nowrap; } .kis-hinweis:hover { background:var(--hell); color:var(--schwarz); }
.kis-hinweis kbd { display:inline-flex; align-items:center; height:20px; padding:0 5px; border:1px solid #d9d9d9; border-bottom-width:2px; border-radius:5px; background:#fff; font:inherit; font-size:11.5px; font-weight:600; color:#444; }
.mail-fenster .form-fuss .kis-hinweis { margin-right:auto; }
.kis-profil { max-width:720px; } .kis-profil-info { margin:0; } .kis-titel { display:block; font-size:13px; color:var(--grau); margin-bottom:8px; } .kis-beispiele { display:flex; flex-direction:column; gap:10px; } .kis-beispiele > button { align-self:flex-start; }
.kis-profil .form-fuss .rechts { margin-left:auto; }
.kis-profil.lesen .auswahl, .kis-profil.lesen #sp-dazu { display:none; }
/* Zeiten exportieren und Stundenkontoauszug (Dom 1.11.2026, wie plancraft) */
.zt-export h3 { font-size: 15px; margin: 18px 0 8px; }
.zt-export h3:first-child { margin-top: 4px; }
.zt-export p { margin: 0 0 4px; }
.zt-export > .haken, .zt-export [data-nurpdf] .haken { display: flex; margin: 0 0 6px; }
.zt-export-spalten { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(7, auto); grid-auto-flow: column; gap: 6px 24px; }
.zt-export .form-fuss { margin-top: 18px; }
.zk-auszug-t { display: block; margin-bottom: 6px; }
#zka label.haken { flex-direction: row; align-items: center; gap: 8px; color: #111; font-size: 14px; margin: 0 0 6px; } #zka label.haken input { width: auto; margin: 0; }
@media (max-width: 560px) { .zt-export-spalten { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; } }
.zt-export-spalten.aus { opacity: .45; }
.zt-export h3 .klein-text { font-weight: 400; margin-left: 4px; }
/* Kein Gummiband-Federn der ganzen Seite (Dom 1.11.2026: „im Projekt zuckt beim Scrollen der ganze Bildschirm“) – Mac-Trackpad und Safari
   ließen die Seite mitfedern, wo es nichts zu scrollen gibt; Listen, Chat und Spalten scrollen weiter selbst */
html, body { overscroll-behavior: none; }
/* Betrieb wählen bei der Anmeldung, Betrieb wechseln im Konto-Menü (Dom 1.11.2026) */
.betrieb-wahl { display: grid; gap: 8px; margin: 12px 0 4px; min-width: min(360px, 80vw); }
.betrieb-wahl .knopf { justify-content: flex-start; text-align: left; }
#betrieb-wechsel:empty { display: none; }
#betrieb-wechsel { border-top: 1px solid var(--linie, #e5e5e5); border-bottom: 1px solid var(--linie, #e5e5e5); margin: 4px 0; padding: 4px 0; }
/* Einstellungen (Dom 1.11.2026, wie plancraft): Zeichen vor jedem Punkt, Sammelseiten mit Teilen untereinander */
nav.einst-menue a { display:flex; align-items:center; justify-content:flex-start; text-align:left; gap:10px; } nav.einst-menue a span { flex:1; min-width:0; text-align:left; }
nav.einst-menue a .ic { flex:none; color:var(--grau); } nav.einst-menue a.aktiv .ic { color:var(--schwarz); }
.einst-gruppe .einst-teil { scroll-margin-top:16px; } .einst-gruppe .einst-teil + .einst-teil { margin-top:34px; padding-top:26px; border-top:1px solid var(--linie); }
.einst-teil-titel { display:flex; align-items:center; gap:10px; font-size:17px; margin:0 0 14px; } .einst-teil-titel .ic { color:var(--grau); }
/* Profil kurz und Meine Verknüpfungen (Dom 1.11.2026) */
.konto-karte { display:flex; align-items:center; gap:16px; } .konto-karte .konto-text { flex:1; min-width:0; } .konto-karte h2 { margin:0 0 4px; }
.mv-titel { display:flex; align-items:center; gap:10px; } .mv-titel .ic { color:var(--grau); }
.mv-zeile { display:flex; align-items:flex-start; gap:12px; padding:12px 0; border-top:1px solid var(--linie); cursor:pointer; }
.mv-zeile .dok-toggle { flex:none; margin-top:1px; } .mv-text { display:flex; flex-direction:column; gap:3px; } .mv-text .klein-text { line-height:1.45; }
/* PDF am Tablet (Dom 2.11.2026): Zurück/Vor und „Nur Stift“ oben rechts, Lasso, festes Format, eigene Stempel */
.pdfb-werkzeuge { position:static; transform:none; margin:0 auto; } /* in der Zeile mittig zwischen Name und rechter Gruppe – überlappt nichts */
.pdfb-verlauf { display:flex; align-items:center; gap:2px; } .pdfb-verlauf + .pdfb-rechts { margin-left:6px; }
.pdfb-ic:disabled { opacity:.3; cursor:default; } .pdfb-ic:disabled:hover { background:none; }
.pdfb-stift { width:auto; gap:5px; padding:0 9px; } .pdfb-stift small { font-size:12.5px; font-weight:600; } .pdfb-stift[hidden] { display:none; }
.pdfb-stift:not(.an) { color:var(--grau); } .pdfb-stift.an { background:var(--hell); }
.pdfb-flaeche.nur-stift .pdfb-ebene { touch-action:pan-x pan-y; }
.pdfb-el.an-m { outline:1px dashed #145CC7; outline-offset:1px; }
.pdfb-gruppe { position:absolute; box-sizing:border-box; border:1.5px dashed #145CC7; background:rgba(20,92,199,.04); cursor:move; touch-action:none; }
.pdfb-flaeche[data-wz="lasso"] .pdfb-el { cursor:crosshair; }
.pdfb-eigene { display:flex; flex-wrap:wrap; gap:10px; align-items:flex-start; }
.pdfb-eig { position:relative; width:112px; display:flex; flex-direction:column; gap:4px; font-size:12.5px; }
.pdfb-eig > span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; padding-right:22px; }
.pdfb-eig-bild { width:112px; height:72px; border:1px solid var(--linie); border-radius:8px; background:#fff; padding:6px; cursor:pointer; display:flex; align-items:center; justify-content:center; }
.pdfb-eig-bild:hover { border-color:var(--schwarz); } .pdfb-eig-bild img { max-width:100%; max-height:100%; object-fit:contain; }
.pdfb-eig-m { position:absolute; right:-4px; bottom:-4px; width:26px; height:26px; border:none; background:none; border-radius:6px; color:var(--grau); cursor:pointer; padding:0; display:flex; align-items:center; justify-content:center; } .pdfb-eig-m:hover { background:var(--hell); color:var(--schwarz); }
.pdfb-eig-neu { width:112px; height:72px; border:1.5px dashed #c4c4c4; border-radius:8px; background:#fff; color:var(--grau); cursor:pointer; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; font-size:12px; padding:4px; }
.pdfb-eig-neu:hover { border-color:var(--schwarz); color:var(--schwarz); }
.pdfb-mu { border:1px dashed #ccc; border-radius:8px; min-height:140px; display:flex; align-items:center; justify-content:center; background:#fff; } .pdfb-mu .pdfb-meine-bild { max-height:200px; } .pdfb-mu p { padding:0 20px; text-align:center; }
@media (pointer:coarse) { .pdfb-griff { width:22px; height:22px; right:-12px; bottom:-12px; border-radius:5px; } .pdfb-weg { width:30px; height:30px; right:-15px; top:-15px; } }
@media (max-width:1000px) and (min-width:720px) { .pdfb-wz { min-width:50px; padding:0 3px; font-size:10px; } .pdfb-werkzeuge { overflow-x:auto; scrollbar-width:none; } .pdfb-name { max-width:22vw; } }
/* Suchtreffer markieren (Dom 2.11.2026, wie plancraft): gelb hinterlegt mit feinem Rand; „Gefunden in …“ unter dem Eintrag */
mark.treffer { background:#fde68a; color:inherit; border:1px solid #f2c94c; border-radius:3px; padding:0 1px; margin:0 -1px; box-decoration-break:clone; -webkit-box-decoration-break:clone; }
.treffer-in { display:block; font-size:12.5px; font-weight:400; color:var(--grau); margin-top:3px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:420px; }
.status-chip.blau { background:#d4ecfb; color:#1c5f78; }
/* Projektliste (Dom 2.11.2026): Status kräftiger und höher, Name und Straße 2 px größer */
.projekt-tabelle .pstatus, .pa-kopf .pstatus { padding:3px 9px; font-weight:500; font-size:13.5px; }
.projekt-tabelle td.pname b { font-size:16px; } .projekt-tabelle td.pname .klein-text { font-size:14px; }
/* Preis anpassen (Dom 2.11.2026, wie plancraft): Rundungsabweichung und Auswahl der Positionen */
.pa-rundung { display:flex; align-items:center; gap:8px; margin:14px 0 0; font-size:14px; } .pa-rundung[hidden] { display:none; }
.pa-rund-pille { background:#dbeafe; color:#1d4ed8; font-size:12.5px; font-weight:600; padding:3px 8px; border-radius:7px; }
.pa-auswahl[hidden] { display:none; } .pa-auswahl > p { margin:8px 0; }
.pa-wahl-liste { display:flex; flex-direction:column; gap:6px; max-height:340px; overflow:auto; padding-right:2px; }
.pa-wahl-z { display:flex; align-items:center; gap:10px; border:1px solid #e3e3e3; border-radius:8px; padding:9px 12px; font-size:14px; cursor:pointer; background:#fff; }
.pa-wahl-z.fett { font-weight:600; } .pa-wahl-z.aus { color:var(--grau); cursor:default; }
.pa-wahl-z input { flex:none; margin:0; width:16px; height:16px; }
.pa-wahl-nr { flex:none; min-width:30px; } .pa-wahl-t { flex:1; min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; } .pa-wahl-b { flex:none; white-space:nowrap; }
/* „Preis anpassen“ als richtiger Knopf (Dom 2.11.2026: „so richtig verblasst … muss schon so sein wie ein Knopf“), wie plancraft: weiß, Rand, dunkle Schrift */
.dok-summe-zeilen button#dok-preis-anpassen { display:inline-flex; align-items:center; gap:7px; background:#fff; border:1px solid #d4d4d4; color:#1f1f1f; font-weight:600; font-size:14px; padding:8px 14px; border-radius:8px; box-shadow:0 1px 2px rgba(0,0,0,.05); cursor:pointer; }
.dok-summe-zeilen button#dok-preis-anpassen:hover { background:#f6f6f6; border-color:#bdbdbd; }
/* Projektakte: Umschalter Baustelle | Büro links neben dem roten Knopf (Dom 2.11.2026) */
.pa-bereich { margin-left:auto; display:inline-flex; background:#f0f0f0; border-radius:9px; padding:3px; gap:2px; flex:none; } .pa-bereich[hidden] { display:none; }
.pa-bereich button { border:none; background:none; border-radius:7px; padding:6px 12px; font-size:14px; font-weight:600; color:#777; cursor:pointer; white-space:nowrap; }
.pa-bereich button.an { background:#fff; color:#111; box-shadow:0 1px 3px rgba(0,0,0,.12); }
.pa-bereich + .pa-reiter-rechts { margin-left:10px; }

/* Belegkette (8.190): Schrittleiste oben in jedem Einkaufsbeleg – vorhanden dunkel mit Haken, fehlend grau, nie rot */
.kette-leiste { display:flex; align-items:center; gap:12px; background:#fff; border:1px solid var(--linie); border-radius:10px; padding:8px 10px 8px 14px; margin:0 0 14px; flex:0 0 auto; }
.kette-schritte { display:flex; flex:1 1 auto; min-width:0; margin:0; padding:0; list-style:none; }
.ks { display:flex; align-items:center; gap:8px; flex:1 1 0; min-width:0; padding:4px 8px 4px 0; position:relative; border-radius:8px; cursor:pointer; }
.ks + .ks { padding-left:26px; } .ks + .ks::before { content:''; position:absolute; left:4px; top:50%; width:16px; border-top:1.5px solid #d5d5d5; }
.ks.da + .ks.da::before { border-top-color:var(--schwarz); }
.ks:hover .ks-text b, .ks:focus-visible .ks-text b { text-decoration:underline; } .ks:focus-visible { outline:2px solid var(--rot); outline-offset:2px; }
.ks-punkt { flex:0 0 auto; width:20px; height:20px; border-radius:50%; border:1.5px dashed #c4c4c4; display:grid; place-items:center; color:#fff; }
.ks.da .ks-punkt { background:var(--schwarz); border:1.5px solid var(--schwarz); }
.ks.ich .ks-punkt { background:var(--rot); border-color:var(--rot); } .ks.ich { cursor:default; } .ks.ich:hover .ks-text b { text-decoration:none; }
.ks-text { display:flex; flex-direction:column; min-width:0; line-height:1.25; }
.ks-text b { font-size:13.5px; font-weight:500; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; } .ks-text span { font-size:12px; color:var(--grau); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ks.leer .ks-text b { color:#9a9a9a; font-weight:400; } .ks.leer .ks-text span { color:#b0b0b0; }
.ks-zahl { display:inline-block; min-width:17px; padding:0 5px; border-radius:9px; background:var(--hell); color:var(--schwarz); font-size:11px; text-align:center; }
.kette-vorschlag { flex:0 0 auto; font-size:13px; color:var(--grau); white-space:nowrap; } .kette-vorschlag button.link { font-size:13px; }
.kette-punkte { display:inline-flex; gap:4px; } .kette-punkte i { width:8px; height:8px; border-radius:50%; border:1.5px solid #c9c9c9; }
.kette-punkte i.an { background:var(--schwarz); border-color:var(--schwarz); } .kette-punkte i.aus { border-style:dashed; border-color:#e0e0e0; }
.lb-pos { border:1px solid var(--linie); border-radius:8px; overflow:auto; max-height:46vh; } .lb-pos th, .lb-pos td { padding:7px 9px; font-size:13.5px; }
@media (max-width:1100px) { .kette-leiste { flex-wrap:wrap; } .kette-schritte { overflow-x:auto; } .ks { flex:0 0 auto; } .kette-vorschlag { white-space:normal; } }
/* Abgleich (8.191): ruhig, wenn alles passt; gelb nur bei echten Abweichungen */
.kette-abgleich { flex:0 0 auto; font-size:12.5px; font-weight:500; padding:4px 10px; border-radius:14px; border:1px solid var(--linie); background:#fff; display:inline-flex; align-items:center; gap:5px; white-space:nowrap; }
.kette-abgleich.gelb { background:#fff3cf; border-color:#f1dc9a; color:#7a5800; } .kette-abgleich.ok { color:var(--gruen); border-color:#cfe8d6; }
.pos-hinweise { margin-top:3px; display:flex; gap:4px; flex-wrap:wrap; }
/* Prüfseite (8.192, Dom 2.11.2026: „dass die alle ähnlich aussehen“): ein Baustein für Angebot, AB, Lieferschein und Rechnung.
   PDF links schmaler (5 : 6), rechts Karten „Belegdaten“ (3 Spalten), „Positionen“ (Artikel fett, Art.-Nr. darunter, Zahlen rechtsbündig), bei Rechnungen „Kostenzuweisung“ */
.ang-pruef, .re-pruef { grid-template-columns:minmax(0, 5fr) minmax(0, 6fr); }
.beleg-rechts { display:flex; flex-direction:column; gap:12px; min-width:0; }
.beleg-karte { background:#fff; border:1px solid var(--linie); border-radius:10px; padding:14px 16px; }
.beleg-titel { display:flex; align-items:center; gap:10px; margin-bottom:10px; } .beleg-titel h2 { margin:0; font-size:16px; } .beleg-titel > :last-child:not(h2) { margin-left:auto; }
.beleg-karte > .formular { grid-template-columns:repeat(3, minmax(0, 1fr)); gap:8px 10px; } .beleg-karte > .formular .b2 { grid-column:span 2; }
.beleg-karte > .formular .feld-gruppe { display:flex; flex-direction:column; gap:4px; font-size:13px; color:var(--grau); }
.beleg-bezug { display:flex; flex-wrap:wrap; gap:6px; align-items:center; margin-top:10px; font-size:12.5px; color:var(--grau); }
.beleg-bezug em { font-style:normal; background:var(--hell); color:var(--schwarz); border-radius:12px; padding:2px 9px; }
.beleg-pos-tab table th { padding:6px 8px; } .beleg-pos-tab td { padding:9px 8px; vertical-align:top; border-bottom:1px solid #f0f0f0; }
.beleg-pos-tab tr:nth-child(odd) td, .ang-pos tr:nth-child(odd):not(.ang-alt) td { background:#fbfbfb; }
.beleg-pos-tab .bp-nr { color:var(--grau); width:38px; } .bp-t { font-weight:500; } .bp-n, .ang-pos .ang-artnr { color:var(--grau); font-size:12.5px; margin-top:2px; white-space:normal; }
.beleg-pos-tab td.zahl { white-space:nowrap; }
.beleg-summe { display:flex; justify-content:flex-end; align-items:baseline; gap:20px; padding:10px 8px 0; font-size:13px; } .beleg-summe b { font-size:15px; }
.ang-pos-titel { padding:12px 14px 0; margin-bottom:6px; }
.ang-kopf.beleg-karte { margin-bottom:12px; }
@media (min-width:1101px) {
  main.feste-seite > #ang-kette, main.feste-seite > #re-kette, main.feste-seite > #lb-kette, main.feste-seite > #best-kette { flex:none; }
  main.feste-seite .beleg-rechts { min-height:0; overflow:auto; padding-bottom:2px; }
}
@media (max-width:1100px) { .beleg-karte > .formular { grid-template-columns:repeat(2, minmax(0, 1fr)); } }
/* Projekt erstellen (Dom 3.11.2026): Kontaktpersonen vor Ort als Zeilen (Name · Rolle · Telefon · ✕), darunter die Suche; Entwurf-Hinweis im Kopf */
.pb-vo { display:grid; grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) minmax(0,1fr) 34px; gap:8px; align-items:center; padding:6px 0; border-bottom:1px solid #f0f0f0; }
.pb-vo-name { display:flex; flex-direction:column; min-width:0; } .pb-vo-name b { font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.pb-vo select, .pb-vo input { height:38px; } #pb-vorort .pb-suche { margin-top:8px; }
.pb-entwurf { margin-right:6px; white-space:nowrap; }
.pa-ap { margin-top:8px; font-size:14px; }
/* Arbeitsstunden (Dom 3.11.2026): über dem Ring, wie viele Stunden übrig bzw. drüber sind */
.pa-ring-spalte { display:flex; flex-direction:column; align-items:center; gap:4px; flex:none; } .pa-rest { font-size:12px; font-weight:600; color:var(--gruen, #1f8a4c); white-space:nowrap; } .pa-rest.ueber { color:var(--rot); }
/* Zahlungsübersicht (Dom 3.11.2026): Projekt-Link schwarz statt rot; Zahlung/Abzug als Eingabezeile direkt im Feld */
.ar-raster a { color:var(--schwarz); text-decoration:none; } .ar-raster a:hover { text-decoration:underline; }
.ar-zeile.ar-edit { grid-template-columns:132px 120px minmax(0,1fr) auto; background:#fafafa; border-radius:8px; padding:6px; margin:4px 0; }
.ar-edit input, .ar-edit select { height:34px; min-width:0; } .ar-edit-mitte { display:flex; gap:6px; min-width:0; } .ar-edit-mitte select { flex:1; } .ar-edit-betrag { text-align:right; }
.ar-edit-knoepfe { display:flex; gap:2px; } .ar-edit-knoepfe .icon-knopf { width:32px; height:32px; } .ar-edit-ok { color:var(--gruen, #1f8a4c); } .ar-edit .gefahr:hover { color:var(--rot); }
/* Baustelle (Dom 3.11.2026, Entwurf „Baustelle mit Karte“): links Karte · Angaben · Kontaktpersonen, Mitte Projekte | Anfragen, rechts der Verlauf über die ganze Höhe */
.bs-seite { display:grid; grid-template-columns:340px minmax(0,1fr) 400px; gap:12px; align-items:start; }
.bs-karte { position:relative; display:block; height:170px; border-radius:12px; overflow:hidden; background:#eef1ea; border:1px solid #e8e8e8; color:var(--schwarz); text-decoration:none; }
.bs-karte img { width:100%; height:100%; object-fit:cover; display:block; }
.bs-pin { position:absolute; left:50%; top:50%; transform:translate(-50%,-80%); color:var(--rot); } .bs-pin svg { width:30px; height:30px; }
.bs-karte-adr { position:absolute; left:8px; bottom:8px; right:8px; background:rgba(255,255,255,.94); border-radius:8px; padding:5px 9px; font-size:13px; font-weight:500; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.bs-karte:hover .bs-karte-adr { text-decoration:underline; }
.bs-person { flex:1; min-width:0; display:flex; flex-direction:column; } .bs-person .pa-kontakt { font-size:13px; }
.bs-liste { padding-top:0; } .bs-liste .pa-reiter { margin:0 -16px 4px; padding:0 16px; }
.bs-zeile { display:grid; grid-template-columns:100px minmax(0,1fr) auto; gap:10px; align-items:center; padding:10px 0; border-top:1px solid #f2f2f2; color:var(--schwarz); text-decoration:none; } .bs-zeile:first-child { border-top:none; }
.bs-zeile span:not(.pstatus):not([class*="phase"]) { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; } .bs-zeile:hover b { text-decoration:underline; } .bs-leer { margin:10px 0; }
.bs-verlauf { position:sticky; top:12px; max-height:calc(100vh - 110px); display:flex; flex-direction:column; } .bs-verlauf-inhalt { overflow:auto; min-height:0; }
@media (max-width:1280px) { .bs-seite { grid-template-columns:320px minmax(0,1fr); } .bs-verlauf { grid-column:1 / -1; position:static; max-height:none; } }
@media (max-width:900px) { .bs-seite { grid-template-columns:1fr; } }
.bs-seite .ck-werte a { color:var(--schwarz); text-decoration:none; } .bs-seite .ck-werte a:hover { text-decoration:underline; }
/* Verlauf im Chat (Dom 3.11.2026): Dokument-Links schwarz, nicht rot */
.ch-sys a, .cv-inhalt a { color:var(--schwarz); text-decoration:none; } .ch-sys a:hover, .cv-inhalt a:hover { text-decoration:underline; }
/* Ein Verlauf je Dokument (Dom 3.11.2026): Fassung als Kopf, darunter ihre Ereignisse */
.dv-vl-fassung { border-bottom:1px solid var(--linie); padding:4px 0 8px; } .dv-vl-fassung:last-child { border-bottom:none; }
.dv-vl-ev { display:grid; grid-template-columns:120px minmax(0,1fr) auto; gap:10px; padding:4px 10px 4px 14px; font-size:13.5px; } .dv-vl-ev > span:first-child { color:var(--grau); }
/* Referenz als Textblock unter dem Einleitungstext wie im PDF (Dom 3.11.2026) */
.dok-texte .dok-block .dok-ref-zeile { grid-column:3 / 7; } .dok-ref-zeile { display:flex; align-items:baseline; gap:5px; min-width:0; } .dok-ref-zeile b { font-weight:600; flex:none; } .dok-a4 .dok-texte .dok-ref-zeile .dok-text-feld { flex:1; margin:0; min-width:0; }

/* Dom 4.11.2026: nirgends ein Ziehgriff unten rechts an Textfeldern – die Felder wachsen mit dem Text */
textarea { resize:none !important; }
.bs-kacheln { position:absolute; inset:0; overflow:hidden; } .bs-kacheln img { position:absolute; width:256px; height:256px; max-width:none; }
/* Dom 4.11.2026: Telefonnummern und E-Mails beim Kunden immer untereinander (die allgemeine Link-Regel der Kästen machte sie inline-block) */
a.kd-li { display:block !important; }

/* Support-Zugang aus der Zentrale (Dom 4.11.2026): schmales rotes Band ganz oben */
#support-band { position:fixed; inset:0 0 auto; z-index:9999; height:30px; display:flex; align-items:center; justify-content:center; gap:14px; background:var(--rot); color:#fff; font-size:13px; padding:0 max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px)); }
#support-band button { border:1px solid rgba(255,255,255,.7); background:none; color:#fff; border-radius:6px; padding:2px 10px; font:inherit; cursor:pointer; }
body.mit-support-band { padding-top:30px; }
/* Drive: Zielordner wählen (Einstellungen → Ablage & Drive) */
.dr-ziel { display: flex; align-items: center; gap: 6px; }
.dr-liste { display: flex; flex-direction: column; gap: 2px; max-height: 50vh; overflow-y: auto; border: 1px solid var(--linie, #e6e4e1); border-radius: 10px; padding: 4px; }
.dr-ordner { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 0; background: none; border-radius: 8px; text-align: left; font: inherit; cursor: pointer; color: inherit; }
.dr-ordner:hover { background: var(--hell, #f4f3f2); } .dr-ordner svg { flex: none; opacity: .6; }
.dr-zurueck { border: 0; background: none; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
.dr-link { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
/* Kosten zuweisen: Suche als Klappe unter der Zeile (Feedback #82) */
.kz-unter { grid-column:1 / -1; width:100%; display:flex; flex-direction:column; border:1px solid var(--linie); border-radius:12px; background:#fff; box-shadow:0 8px 24px rgba(0,0,0,.08); margin:6px 0 10px; overflow:hidden; }
.kz-unter .gs-liste { max-height:300px; flex:none; } .kz-unter .gs-fuss { font-size:12px; }
/* Zoom-Knopf oben mittig (Dom 5.11.2026): Prozentzahl, Klick = Auswahl */
.pdfa-leiste .pdfa-zoom { width:auto; min-width:64px; padding:0 12px; font-size:13px; font-weight:600; letter-spacing:.01em; }
.dv-zoom span { cursor:pointer; border-radius:4px; } .dv-zoom span:hover { background:rgba(255,255,255,.16); }
/* Prüfseite Eingangsrechnung, Entwurf 2 (Dom 5.11.2026) */
/* die Seite selbst scrollt nie (sonst rutscht das Fenster am Ende der PDF mit und springt zurück) – nur PDF und rechte Hälfte, ohne Nachfedern */
@media (min-width:1101px) { html:has(main.feste-seite), body:has(main.feste-seite) { overflow:hidden; overscroll-behavior:none; }
  main.feste-seite .pdfa-seiten, main.feste-seite .beleg-rechts, main.feste-seite .ang-scroll, main.feste-seite .tabelle-scroll { overscroll-behavior:none; } }
/* Teilung genau zwischen der 2. und 3. Spalte des Vorgangs: beide Raster gleich breit, gleicher Abstand */
.ang-pruef.re-pruef { grid-template-columns:minmax(0, 1fr) minmax(0, 1fr); gap:14px; }
.re-pdf { background:#e9e8e6; border:none; border-radius:14px; box-shadow:none; overflow:hidden; } .re-pdf.pdfa, .re-pdf .pdfa { background:#e9e8e6; }
.re-huelle { position:relative; min-width:0; min-height:0; display:flex; flex-direction:column; }
.re-huelle > .re-rechts { flex:1 1 auto; scrollbar-gutter:stable; }
@media (min-width:1101px) { main.feste-seite .re-huelle > .re-rechts { overflow-y:auto; padding-bottom:4px; } }
.re-daten .beleg-titel { gap:8px; } .re-daten .beleg-titel h2 { margin-right:2px; }
.marke.re-ki { background:#eef1fb; color:#3a4f9c; }
.re-geprueft { margin-left:auto; display:inline-flex; align-items:center; gap:7px; font-size:13.5px; font-weight:500; border:1px solid var(--linie); border-radius:8px; padding:4px 10px; cursor:pointer; white-space:nowrap; }
.re-geprueft input { width:16px; height:16px; margin:0; accent-color:#1f7a44; cursor:pointer; } .re-geprueft:has(input:checked) { border-color:#cfe8d6; background:#f1f9f4; color:#1f7a44; }
#re-kreis { display:inline-flex; margin-right:8px; vertical-align:-1px; }
/* Kreis der Zuweisung */
.zuw-kreis { width:15px; height:15px; border-radius:50%; display:inline-block; flex:none; vertical-align:-2px; }
.zuw-kreis.leer { background:#cfcdca; } .zuw-kreis.voll { background:#1f7a44; } .zuw-kreis.teil { background:conic-gradient(#2357d6 0 var(--p), #d6e2fb var(--p) 100%); }
.re-zuw { display:inline-flex; align-items:center; gap:8px; } .fp-eintrag .zuw-kreis { margin-left:auto; width:15px; height:15px; min-height:0; padding:0; align-self:center; flex:none; }
.fp-eintrag > span:has(> .zuw-kreis) { display:flex; align-items:center; gap:10px; flex:1; }
.re-sym { color:var(--grau); display:inline-flex; vertical-align:middle; } td.re-sym { width:1%; padding-left:4px; padding-right:4px; } .re-lupe { color:#8a6d00; }
/* Suche der Kostenzuweisung über der ganzen rechten Hälfte */
.kz-feld { position:absolute; inset:0; z-index:5; display:flex; flex-direction:column; background:#fff; border:1px solid var(--linie); border-radius:12px; box-shadow:0 8px 24px rgba(0,0,0,.08); overflow:hidden; }
.kz-feld-kopf { display:flex; align-items:center; justify-content:space-between; padding:10px 12px 0 16px; } .kz-feld-kopf b { font-size:15px; }
.kz-feld .gs-liste { flex:1 1 auto; min-height:0; max-height:none; overflow:auto; overscroll-behavior:none; } .kz-feld .gs-fuss { font-size:12px; }
/* Zoom-Knopf sitzt oben mittig über dem PDF (Dom 5.11.2026) – dort, wo die PDF-Karte sonst „static“ ist */
main.feste-seite .ang-pdf.pdfa, .ar-detail .ang-pdf.pdfa { position:relative; top:auto; } @media (max-width:1100px) { .ang-pdf.pdfa { position:relative; top:auto; } }
/* Belegsuche (Bestellung, AB, Lieferschein … verknüpfen): gleiche feste Größe wie die Suche mit ⌘K, damit nichts zuckt (Dom 5.11.2026) */
dialog.such-wahl { width:min(880px, calc(100vw - 32px)); max-width:none; height:min(580px, calc(100vh - 80px)); display:flex; flex-direction:column; margin:auto; inset:0; }
dialog.such-wahl:not([open]) { display:none; } dialog.such-wahl > h2, dialog.such-wahl > .leiste { flex:none; }
dialog.such-wahl #wliste { flex:1 1 auto; min-height:0; overflow:auto; overscroll-behavior:none; }
@media (max-width:700px) { dialog.such-wahl { width:calc(100vw - 16px); height:calc(100vh - 40px); } }
/* Lupe „zu prüfen“: beim Drüberfahren ein Kästchen und sofort der Hinweis */
.re-lupe { position:relative; padding:4px; border:1px solid transparent; border-radius:7px; cursor:default; }
.re-lupe:hover { background:#fbf3d6; border-color:#f1dc9a; }
.re-lupe[data-tipp]:hover::after { content:attr(data-tipp); position:absolute; right:0; top:calc(100% + 6px); z-index:20; background:#1e1e1e; color:#fff; font-size:12.5px; font-weight:500; white-space:nowrap; padding:5px 9px; border-radius:7px; pointer-events:none; }

/* Dateiansicht (Dom 5.11.2026): Pfeile fest am linken und rechten Rand statt oben neben dem Namen (wanderten mit der Namenslänge);
   Doppeltippen auf Knöpfe zoomt am Tablet nicht mehr die Seite; Zoom als ein Knopf mit Auswahl */
.dv { touch-action:manipulation; } .dv .dv-knopf, .dv .dv-pfeil, .dv .dv-zoom { touch-action:manipulation; -webkit-user-select:none; user-select:none; }
.dv-pfeil { position:absolute; top:calc(50% + 28px); transform:translateY(-50%); z-index:6; width:48px; height:48px; border-radius:50%; border:none; background:rgba(20,20,20,.62); color:#fff; display:flex; align-items:center; justify-content:center; cursor:pointer; padding:0; }
.dv-pfeil:hover { background:rgba(20,20,20,.85); } .dv-pfeil:disabled { opacity:0; pointer-events:none; } .dv-pfeil.links { left:14px; } .dv-pfeil.rechts { right:14px; }
.dv-zoom span { padding:4px 12px; min-width:64px; }

/* Oberes Feld der Projektseite je Bereich (Dom 5.11.2026, Runde 5) – Büro bleibt so hoch wie bisher, Baustelle hat die Beschreibung darunter */
.pa-uebersicht.modus-buero { grid-template-columns:repeat(3, minmax(0,1fr)); }
.pa-geld-zeile1 { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.pa-uebersicht.modus-baustelle { grid-template-columns:repeat(3, minmax(0,1fr)); grid-template-rows:auto auto auto; }
.pa-uebersicht .g6 { grid-column:3; grid-row:1; } .pa-uebersicht .g7 { grid-column:3; grid-row:2; }
.pa-uebersicht .g8 { grid-column:1 / -1; grid-row:3; min-height:0 !important; }
.pa-seite .pa-uebersicht.modus-baustelle { grid-template-rows:var(--pa-box-h) var(--pa-box-h); } /* zwei feste Reihen wie bisher, die Beschreibung darunter nur so hoch wie nötig */
.pa-besch-unten .pa-text { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; cursor:pointer; } .pa-besch-unten.auf .pa-text { -webkit-line-clamp:unset; }
.pa-geld-zeile { display:flex; align-items:baseline; gap:8px; flex-wrap:wrap; }
.pa-geld-balken { position:relative; height:8px; border-radius:4px; background:#efefef; margin:8px 0 6px; overflow:hidden; }
.pa-geld-balken i { position:absolute; left:0; top:0; bottom:0; border-radius:4px; } .pa-geld-balken .ab { background:#cfd8cf; } .pa-geld-balken .bz { background:#1f7a46; }
.pa-geld-unter { display:flex; justify-content:space-between; gap:8px; flex-wrap:wrap; } .pa-geld-quelle { margin-top:4px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.pa-vo + .pa-vo { margin-top:6px; } .pa-vo b { font-weight:600; }
.pa-fs { display:flex; justify-content:space-between; gap:8px; font-size:13px; } .pa-fs-t { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.pa-fs-balken { height:6px; border-radius:3px; background:#efefef; margin:3px 0 7px; overflow:hidden; } .pa-fs-balken i { display:block; height:100%; background:#141414; border-radius:3px; } .pa-fs-balken i.fertig { background:#1f7a46; }
@media (max-width:1100px) { .pa-uebersicht.modus-buero, .pa-uebersicht.modus-baustelle { grid-template-columns:1fr; } .pa-uebersicht .g6, .pa-uebersicht .g7, .pa-uebersicht .g8 { grid-column:1 !important; grid-row:auto !important; } }

/* Nachkalkulation wie der Entwurf (Dom 5.11.2026, Runde 5) */
.nk-dash.nk-neu { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.5fr) minmax(0,1fr); gap:6px; }
.nk-neu .nk-links { display:flex; flex-direction:column; gap:6px; min-width:0; }
.nk-art { margin:0 0 9px; } .nk-art-kopf { display:grid; grid-template-columns:1fr auto 52px; gap:8px; font-size:13px; align-items:baseline; } .nk-art-kopf b:last-child { text-align:right; }
.nk-art-balken { position:relative; height:10px; border-radius:5px; background:#efefef; margin-top:4px; } .nk-art-balken i { display:block; height:100%; border-radius:5px; }
.nk-art-balken em { position:absolute; top:-3px; bottom:-3px; width:2px; background:#141414; border-radius:1px; }
.nk-zeile { display:flex; justify-content:space-between; gap:8px; font-size:13.5px; padding:2px 0; } .nk-zeile.nk-strich { border-top:1px solid #eee; margin-top:4px; padding-top:6px; }
.nk-dashboard { display:grid; grid-template-columns:minmax(0,1.7fr) minmax(0,1fr); gap:10px; padding:4px 0 10px; } .nk-dk { min-height:0 !important; } .nk-dk > b { font-size:14.5px; }
.nk-svg { display:block; max-height:260px; } .nk-legende-zeile { display:flex; gap:16px; flex-wrap:wrap; }
.nk-kreis { display:flex; align-items:center; gap:14px; flex-wrap:wrap; } .nk-kreis-liste { flex:1; min-width:160px; } .nk-kreis-liste > div { display:grid; grid-template-columns:1fr auto 40px; gap:8px; padding:3px 0; font-size:13.5px; }
.nk-kreis-liste i { display:inline-block; width:10px; height:10px; border-radius:3px; margin-right:7px; vertical-align:0; } .nk-kreis-liste > div > :last-child { text-align:right; }
.nk-abw-zeile { display:grid; grid-template-columns:120px minmax(0,1fr) 110px; gap:10px; align-items:center; padding:6px 0; font-size:13.5px; } .nk-abw-zeile b { text-align:right; }
.nk-abw-achse { position:relative; height:20px; } .nk-abw-achse::before { content:""; position:absolute; left:50%; top:-4px; bottom:-4px; width:1.5px; background:#141414; }
.nk-abw-achse i { position:absolute; top:3px; bottom:3px; border-radius:4px; } .nk-abw-achse i.drueber { background:#d7261e; } .nk-abw-achse i.drunter { background:#1f7a46; }
.nk-abw-fuss { display:flex; justify-content:space-between; padding:4px 130px 0 130px; }
.nk-ma-balken { position:relative; height:18px; background:#f2f2f2; border-radius:5px; min-width:120px; } .nk-ma-balken i { position:absolute; left:0; top:0; bottom:0; background:#141414; border-radius:5px; opacity:.85; }
.nk-ma-balken span { position:relative; padding-left:8px; font-size:12.5px; font-weight:600; color:#fff; mix-blend-mode:difference; line-height:18px; }
@media (max-width:1100px) { .nk-dash.nk-neu, .nk-dashboard { grid-template-columns:1fr; } .nk-abw-fuss { padding:4px 0 0; } }

.nk-dashboard .nk-dk.ganz { grid-column:1 / -1; } .nk-dashboard .nk-svg { max-height:240px; }

.nk-kz-raster { display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:8px; } .nk-kz { background:#f6f6f6; border-radius:8px; padding:8px 10px; display:flex; flex-direction:column; gap:2px; }
.nk-kz b { font-size:17px; } .nk-kz span { font-size:12px; color:var(--grau); } .nk-kz.gruen b { color:#1f7a46; } .nk-kz.rot b { color:#d7261e; } .nk-kz-raster .nk-kz:last-child { grid-column:1 / -1; }
.nk-dashboard .nk-abw-zeile { grid-template-columns:100px minmax(0,1fr) 96px; } .nk-dashboard .nk-abw-fuss { padding:4px 106px 0 110px; }

/* Nachkalkulation (Dom 5.11.2026): oben Gesamtkosten + Stunden | Kostenarten | Wohin das Geld ging; unten Kurve und Abweichung nebeneinander, ohne Scrollen */
.nk-neu .nk-links > .pa-box { flex:1 1 0; min-height:0; }
.nk-neu .nk-kreis-box .nk-kreis svg { width:118px; height:118px; } .nk-neu .nk-kreis-box .nk-kreis { gap:10px; } .nk-neu .nk-kreis-box .nk-kreis-liste { min-width:0; } .nk-neu .nk-kreis-box .nk-kreis-liste > div { font-size:12.5px; grid-template-columns:1fr auto 34px; }
.nk-dashboard.zwei { grid-template-columns:repeat(2, minmax(0,1fr)); } .nk-dashboard.zwei .nk-svg { max-height:210px; }
.nk-unterzeile { margin-top:4px; }

/* Nachkalkulation oben auch bei 1440 px (Dom 5.11.2026): kleinere Zahlen und Ringe, Kreis über der Legende */
.nk-dash.nk-neu { grid-template-columns:minmax(0,1fr) minmax(0,1.25fr) minmax(0,1fr); }
.nk-neu .nk-zahl { font-size:22px; line-height:1.15; white-space:nowrap; } .nk-neu .nk-budget { font-size:12.5px; }
.nk-neu .nk-gesamt-zeile { display:flex; align-items:center; justify-content:space-between; gap:8px; min-width:0; } .nk-neu .nk-gesamt-zeile > div:first-child { min-width:0; }
.nk-neu .nk-ring { width:62px; height:62px; flex:none; } .nk-neu .nk-ring span { font-size:13px; }
.nk-neu .nk-kreis-box .nk-kreis { flex-direction:column; align-items:stretch; gap:6px; } .nk-neu .nk-kreis-box .nk-kreis svg { width:96px; height:96px; align-self:center; }
.nk-neu .nk-kreis-box .nk-kreis-liste > div { padding:1px 0; }
.nk-dashboard.zwei .nk-svg { max-height:230px; }
.nk-neu .nk-ring span { width:50px; height:50px; font-size:13px; }
.nk-neu .nk-kreis-box .nk-kreis-liste > div > span:first-child { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; min-width:0; }

/* Dom 5.11.2026: frischer Behälter je Reiter, ohne eigenes Layout */
.pa-teil { display:contents; }
/* Nachkalkulation: gleiche Höhe wie Büro/Baustelle, größere Ringe, „übrig/drüber“ unter der Zahl, Kreis links mit Legende rechts */
#pa-nk { overflow:hidden; } .nk-dash.nk-neu { height:100%; } .nk-neu > .pa-box, .nk-neu .nk-links { min-height:0; overflow:hidden; }
.nk-neu .nk-ring { width:84px; height:84px; } .nk-neu .nk-ring span { width:66px; height:66px; font-size:15px; }
.nk-neu .nk-gesamt-zeile { flex:1; } .nk-neu .nk-links > .pa-box { display:flex; flex-direction:column; } .nk-neu .nk-diff { display:inline-block; margin-top:6px; }
.nk-neu .nk-kreis-box .nk-kreis { flex-direction:row; align-items:center; gap:12px; } .nk-neu .nk-kreis-box .nk-kreis svg { width:104px; height:104px; flex:none; }
.nk-neu .nk-kreis-box .nk-kreis-liste { flex:1; } .nk-neu .nk-kreis-box .nk-kreis-liste > div { grid-template-columns:minmax(0,1fr) auto; } .nk-neu .nk-kreis-box .nk-kreis-liste > div > span:last-child { display:none; }
.nk-dashboard.zwei { gap:14px; } .nk-dashboard.zwei .nk-svg { max-height:none; height:auto; } .nk-dashboard.zwei .nk-legende-zeile { margin-bottom:4px; }
#pa-nk { margin-top:4px !important; } /* gleiche Höhe wie Büro/Baustelle */
.nk-dash.nk-neu { grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) minmax(0,1fr); } .nk-neu .nk-diff { margin-top:4px; font-size:12px; padding:2px 8px; } .nk-neu .nk-links .pa-box { padding-top:10px; padding-bottom:10px; } .nk-neu .nk-links .nk-budget { white-space:nowrap; }

/* Kreis oben: Name und Prozent, der Betrag beim Drüberfahren (passt auch bei 1440 px) */
.nk-neu .nk-kreis-box .nk-kreis-liste > div > span:nth-child(2) { display:none; } .nk-neu .nk-kreis-box .nk-kreis-liste > div > span:last-child { display:inline; text-align:right; }
.nk-neu .nk-kreis-box .nk-kreis svg { width:96px; height:96px; }
@media (max-width:1700px) { .nk-neu .nk-kreis-box .nk-kreis { flex-direction:column; align-items:stretch; gap:4px; } .nk-neu .nk-kreis-box .nk-kreis svg { width:92px; height:92px; align-self:center; } }
.nk-dashboard.zwei { align-items:stretch; }

/* Dom 5.11.2026 (8.255): Marke „übrig/drüber“ seitlich in der Titelzeile mit Pfeil, Ring etwas größer, Kreis deutlich größer mit Legende daneben */
.nk-dash.nk-neu { grid-template-columns:minmax(0,1.15fr) minmax(0,1fr) minmax(0,1.3fr); }
.nk-neu .pa-box-titel .nk-diff { margin:0 0 0 auto; display:inline-flex; align-items:center; gap:3px; font-size:12.5px; padding:3px 10px 3px 7px; border-radius:999px; white-space:nowrap; box-shadow:inset 0 0 0 1px rgba(31,122,70,.18); }
.nk-neu .pa-box-titel .nk-diff.minus { box-shadow:inset 0 0 0 1px rgba(215,38,30,.22); }
.nk-neu .nk-ring { width:96px; height:96px; } .nk-neu .nk-ring span { width:76px; height:76px; font-size:16px; }
.nk-neu .nk-kreis-box { display:flex; flex-direction:column; } .nk-neu .nk-kreis-box .nk-kreis { flex:1; flex-direction:row !important; align-items:center; gap:16px; min-height:0; }
.nk-neu .nk-kreis-box .nk-kreis svg { width:clamp(140px, 11vw, 190px) !important; height:clamp(140px, 11vw, 190px) !important; flex:none; align-self:center !important; }
.nk-neu .nk-kreis-box .nk-kreis-liste { flex:1; min-width:0; } .nk-neu .nk-kreis-box .nk-kreis-liste > div { font-size:13px; padding:3px 0; }
.nk-dash.nk-neu { grid-template-columns:minmax(0,1.3fr) minmax(0,0.9fr) minmax(0,1.2fr); }
.nk-neu .nk-kreis-box .nk-kreis { gap:12px; } .nk-neu .nk-kreis-box .nk-kreis svg { width:clamp(112px, 8vw, 180px) !important; height:clamp(112px, 8vw, 180px) !important; }
@media (max-width:1600px) { .nk-neu .nk-ring { width:84px; height:84px; } .nk-neu .nk-ring span { width:66px; height:66px; font-size:15px; } .nk-neu .pa-box-titel .nk-diff { font-size:12px; padding:2px 8px 2px 5px; } }
/* schmalere Fenster: Kreis groß oben, Legende darunter als Zeile */
@media (max-width:1700px) { .nk-neu .nk-kreis-box .nk-kreis { flex-direction:column !important; gap:8px; } .nk-neu .nk-kreis-box .nk-kreis svg { width:150px !important; height:150px !important; }
  .nk-neu .nk-kreis-box .nk-kreis-liste { flex:none; width:100%; display:flex; flex-wrap:wrap; justify-content:center; gap:2px 14px; }
  .nk-neu .nk-kreis-box .nk-kreis-liste > div { display:flex; gap:5px; padding:0; font-size:12.5px; } .nk-neu .nk-kreis-box .nk-kreis-liste > div > span:first-child { overflow:visible; } }
@media (max-width:1600px) { .nk-neu .nk-zahl { font-size:20px; } .nk-neu .nk-gesamt-zeile { gap:6px; } }
.nk-neu .nk-ring { width:88px; height:88px; } .nk-neu .nk-ring span { width:70px; height:70px; } .nk-neu .nk-links .pa-box-titel { margin-bottom:4px; }
@media (max-width:1600px) { .nk-neu .nk-ring { width:80px; height:80px; } .nk-neu .nk-ring span { width:63px; height:63px; font-size:14px; } .nk-neu .nk-links .nk-budget { white-space:normal; font-size:12px; } }

/* Nachkalkulation Dashboard (Dom 5.11.2026, Entwurf A): Kurve breit + Kennzahlen im Blick, darunter Säulen und Plus/Minus */
.nk-dash3 { display:flex; flex-direction:column; gap:12px; padding:2px 2px 8px; }
.nk-dash3-oben { display:flex; flex-direction:column; gap:10px; min-height:0; }
.nk-dash3-oben .nk-kurve-box { flex:1; min-height:0; overflow:hidden; display:flex; flex-direction:column; } .nk-dash3 .nk-svg { max-height:none; height:auto; display:block; }
.nk-dk-kopf { display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin-bottom:6px; } .nk-dk-kopf .nk-legende-zeile { margin:0 0 0 auto; }
.nk-kacheln { display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:10px; flex:none; }
.nk-kz { background:#fff; border:1px solid var(--rand, #ececec); border-radius:10px; padding:9px 12px 9px 14px; display:flex; flex-direction:column; position:relative; overflow:hidden; min-width:0; }
.nk-kz::before { content:''; position:absolute; left:0; top:10px; bottom:10px; width:3px; border-radius:0 3px 3px 0; background:#2b2b2b; } .nk-kz.gruen::before { background:var(--gruen, #1f7a46); } .nk-kz.rot::before { background:#d7261e; }
.nk-kz-t { font-size:11px; color:#6a6a6a; font-weight:600; letter-spacing:.05em; text-transform:uppercase; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.nk-kz b { font-size:19px; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; } .nk-kz.rot b { color:#d7261e; } .nk-kz-u { font-size:12px; color:#8a8a8a; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.nk-dash3-unten { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(0,1fr); gap:12px; align-items:stretch; }
.nk-pm { display:flex; flex-direction:column; font-variant-numeric:tabular-nums; }
.nk-pm-z { display:flex; align-items:baseline; justify-content:space-between; gap:12px; padding:7px 2px; border-bottom:1px solid #f1f1f1; font-size:14px; }
.nk-pm-z small { display:block; font-size:11.5px; color:#9a9a9a; } .nk-pm-z b { font-weight:500; white-space:nowrap; } .nk-pm-z.plus b { color:var(--gruen, #1f7a46); } .nk-pm-z.minus b { color:#444; }
.nk-pm-z.summe { border-bottom:none; border-top:2px solid #131313; margin-top:2px; padding-top:9px; font-weight:600; } .nk-pm-z.summe b { font-size:18px; font-weight:600; } .nk-pm-z.summe.rot b { color:#d7261e; } .nk-pm-z.summe.gruen b { color:var(--gruen, #1f7a46); }
.nk-pm-hinweis { margin-top:8px; padding:7px 10px; background:#f7f7f7; border-radius:8px; }
@media (max-width:1600px) { .nk-kz b { font-size:17px; } .nk-kacheln { gap:8px; } }
@media (max-width:1600px) { .nk-kz-t { font-size:10.5px; letter-spacing:.03em; } .nk-kz { padding:8px 10px 8px 12px; } }

/* Dom 5.11.2026 (8.257): Säulen nach Kostenart mit Aufschlüsselung, Abweichung als Tabelle mit Balken links/rechts, Rechnungspunkte */
.nk-saeulen { position:relative; } .nk-saeule { cursor:default; } .nk-saeule:hover rect[fill="transparent"] { fill:rgba(0,0,0,.04); }
.nk-tip { position:absolute; z-index:5; width:200px; background:#fff; border:1px solid #e3e3e3; border-radius:10px; box-shadow:0 8px 24px rgba(0,0,0,.12); padding:9px 11px; font-size:13px; pointer-events:none; }
.nk-tip > div { display:flex; justify-content:space-between; gap:10px; padding:2px 0; font-variant-numeric:tabular-nums; } .nk-tip i, .nk-dash3 .nk-legende-zeile i, .nk-abw-tab i { display:inline-block; width:9px; height:9px; border-radius:2px; margin-right:6px; }
.nk-tip-summe { border-top:1px solid #eee; margin-top:4px; padding-top:5px !important; font-weight:600; }
.nk-dash3 .nk-legende-zeile { display:flex; gap:14px; flex-wrap:wrap; margin-top:4px; }
.nk-abr-punkt { cursor:default; } .nk-abr-punkt:hover circle:last-of-type { r:6; }
.nk-abw-tab .nk-abw-zeile { grid-template-columns:minmax(0,1.1fr) 88px 88px minmax(80px,1.4fr) 96px; font-variant-numeric:tabular-nums; } .nk-abw-tab .nk-abw-zeile > span:nth-child(2), .nk-abw-tab .nk-abw-zeile > span:nth-child(3) { text-align:right; color:#555; }
.nk-abw-tab .nk-abw-zeile.kopf { padding:0 0 4px; border-bottom:1px solid #eee; } .nk-abw-tab .nk-abw-zeile.kopf span:last-child { text-align:right; }
.nk-abw-tab .nk-abw-zeile.summe { border-top:2px solid #131313; margin-top:2px; font-weight:600; } .nk-abw-tab .nk-abw-fuss { padding:4px 104px 0 auto; justify-content:flex-end; gap:24px; }
.nk-abw-tab .nk-abw-zeile { grid-template-columns:minmax(0,1.25fr) minmax(70px,1fr) 88px !important; padding:6px 0; border-bottom:1px solid #f3f3f3; }
.nk-abw-name { display:flex; flex-direction:column; min-width:0; } .nk-abw-name small { font-size:11.5px; color:#9a9a9a; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.nk-abw-tab .nk-abw-zeile.summe { border-bottom:none; } .nk-abw-tab .nk-abw-fuss { display:flex; justify-content:space-between; padding:6px 98px 0 calc(55% - 30px); white-space:nowrap; font-size:11.5px; }
.nk-dash3-unten { grid-template-columns:minmax(0,1fr) minmax(0,1.15fr); }
.nk-abw-tab .nk-abw-zeile.fuss { border-bottom:none; padding-top:2px; color:#9a9a9a; font-size:11.5px; } .nk-abw-fuss2 { display:flex; justify-content:space-between; white-space:nowrap; }
/* Dom 5.11.2026: Mitte (Kostenarten-Balken) breiter, links und rechts schmaler */
.nk-dash.nk-neu { grid-template-columns:minmax(0,0.95fr) minmax(0,1.5fr) minmax(0,0.9fr); }
.nk-neu .nk-kreis-box .pa-box-titel span { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
@media (max-width:2100px) { .nk-neu .nk-kreis-box .nk-kreis { flex-direction:column !important; gap:8px; } .nk-neu .nk-kreis-box .nk-kreis svg { width:150px !important; height:150px !important; }
  .nk-neu .nk-kreis-box .nk-kreis-liste { flex:none; width:100%; display:flex; flex-wrap:wrap; justify-content:center; gap:2px 14px; }
  .nk-neu .nk-kreis-box .nk-kreis-liste > div { display:flex; gap:5px; padding:0; font-size:12.5px; } .nk-neu .nk-kreis-box .nk-kreis-liste > div > span:first-child { overflow:visible; } .nk-neu .nk-kreis-box .nk-kreis-liste > div > span:nth-child(2) { display:none; } }

/* Dokumente auswählen (Dom 5.11.2026): breiter, eine Zeile je Dokument, Auge zum Öffnen, Rechnungen als zweite Gruppe */
.kd-liste { width:510px; max-width:calc(100vw - 16px); padding:0 !important; display:flex; flex-direction:column; max-height:min(560px, 80vh); }
.kd-kopf { display:flex; flex-direction:column; gap:1px; padding:14px 16px 10px; border-bottom:1px solid #eee; }
.kd-rumpf { overflow:auto; padding:4px 8px; }
.kd-liste .kd-zeile { display:grid !important; grid-template-columns:20px minmax(0,1fr) auto 32px; align-items:center; gap:10px; padding:8px 8px; border-radius:8px; border:none !important; cursor:pointer; }
.kd-liste .kd-zeile:hover { background:#f6f6f6; }
.kd-text { display:flex; flex-direction:column; min-width:0; } .kd-text b { font-weight:600; } .kd-titel2 { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; color:#333; font-size:13.5px; }
.kd-betrag { font-variant-numeric:tabular-nums; white-space:nowrap; font-weight:500; } .kd-auge { width:30px; height:30px; color:#666; }
.kd-gruppe { display:flex; flex-direction:column; gap:1px; padding:12px 8px 4px; margin-top:6px; border-top:1px solid #eee; }
.kd-leer { padding:10px 8px; margin:0; } .kd-liste .kd-fuss { border-top:1px solid #eee; padding:10px 14px; }
.kd-kopf { align-items:flex-start; text-align:left; } .kd-gruppe { align-items:flex-start; text-align:left; }
#pa-geld .pa-geld-zeile1 { white-space:normal; }
/* Dom 6.11.2026: Meldungen in der Dokument-Vorschau lesbar (vorher #eee auf Hellgrau – „Dokument öffnet nicht“) */
.dok-app .dv-lade { color:#555; font-size:14px; padding:30vh 20px 0; max-width:640px; margin:0 auto; }

/* Kurzbefehle (Dom 6.11.2026, 8.263): gewählte Zeile, „Gehe zu“ nach g, Übersicht mit ? */
.kb-aktiv { outline:2px solid #131313; outline-offset:-2px; background:#f6f6f6 !important; }
tr.kb-aktiv > td { background:#f6f6f6 !important; }
.kb-gehe { position:fixed; left:50%; top:18vh; transform:translateX(-50%); z-index:9000; width:min(420px, calc(100vw - 32px)); background:#fff; border:1px solid #e3e3e3; border-radius:12px; box-shadow:0 16px 40px rgba(0,0,0,.16); padding:8px; }
.kb-gehe-kopf { display:flex; align-items:center; gap:10px; padding:4px 6px 8px; border-bottom:1px solid #f0f0f0; }
.kb-gehe-titel { font-size:11px; font-weight:600; letter-spacing:.06em; text-transform:uppercase; color:#6a6a6a; white-space:nowrap; }
.kb-gehe-feld { flex:1; min-width:0; border:none !important; outline:none; box-shadow:none !important; font-size:15px; padding:6px 0 !important; height:auto !important; background:transparent; }
.kb-gehe-liste { display:flex; flex-direction:column; padding-top:6px; }
.kb-gehe-liste button { text-align:left; background:none; border:none; border-radius:8px; padding:8px 10px; font-size:14px; color:#131313; cursor:pointer; }
.kb-gehe-liste button.an { background:#f2f2f2; font-weight:600; } .kb-gehe-liste .klein-text { padding:8px 10px; }
.kb-gehe-liste button { display:flex; align-items:center; justify-content:space-between; gap:12px; } .kb-gehe-liste kbd { font-family:inherit; font-size:11px; font-weight:500; color:#6a6a6a; background:#f4f4f4; border:1px solid #e6e6e6; border-radius:5px; padding:1px 6px; min-width:20px; text-align:center; }
kbd { margin-left:auto; font:500 11px/1 inherit; color:#8a8a8a; border:1px solid #444; border-radius:5px; padding:3px 5px; }
body.nav-zu .nav-kbd { display:none; }
dialog.suchfenster { width:min(880px, calc(100vw - 32px)); max-width:none; height:min(580px, calc(100vh - 80px)); padding:0; display:flex; flex-direction:column; border-radius:12px; overflow:hidden; margin:auto; inset:0; }
dialog.suchfenster:not([open]) { display:none; }
.gs-kopf { padding:12px 12px 0; }
.gs-feld { display:flex; align-items:center; gap:8px; border:2px solid #1d4ed8; border-radius:8px; padding:0 12px; height:44px; }
.gs-feld svg { width:18px; height:18px; color:#555; flex:none; } .gs-feld input { border:none; outline:none; box-shadow:none; flex:1; font-size:16px; padding:0; height:100%; background:none; }
.gs-reiter { display:flex; gap:0; margin:6px 12px 0; border-bottom:1px solid #e6e6e6; overflow-x:auto; scrollbar-width:none; flex:none; }
.gs-reiter button { background:none; border:none; border-bottom:2px solid transparent; border-radius:0; padding:8px 9px 9px; font-size:14px; color:#2b2b2b; white-space:nowrap; cursor:pointer; flex:none; }
.gs-reiter button:hover { color:#000; }
.gs-reiter button.an { border-bottom-color:#111; font-weight:600; }
.gs-liste { flex:1; overflow:auto; padding:8px 8px 12px; }
.gs-gruppe { display:flex; align-items:center; justify-content:space-between; padding:12px 12px 6px; color:#777; font-size:14px; font-weight:500; }
.gs-mehr { background:none; border:none; color:#777; font-size:13px; cursor:pointer; padding:0; } .gs-mehr:hover { color:#111; text-decoration:underline; }
.gs-zeile { display:flex; align-items:center; gap:12px; padding:9px 12px; border-radius:8px; color:inherit; text-decoration:none; }
.gs-zeile.aktiv { background:#f1f1f1; }
.gs-text { flex:1; min-width:0; display:flex; flex-direction:column; }
.gs-text b, .gs-text span { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; } .gs-text b { font-weight:600; font-size:15px; } .gs-text span { color:#777; font-size:13px; margin-top:1px; }
.gs-leer { color:#888; padding:24px 12px; font-size:14px; }
.gs-fuss { display:flex; gap:20px; flex-wrap:wrap; padding:11px 16px; background:#f5f5f5; color:#6b6b6b; font-size:13px; flex:none; border-top:1px solid #ececec; }
.gs-fuss span { display:inline-flex; align-items:center; gap:6px; }
.gs-fuss i { font-style:normal; font-size:12px; letter-spacing:.5px; color:#555; } .gs-fuss svg { width:15px; height:15px; color:#555; }

/* Bild groß: Fenster passt sich dem Bild an */
dialog.bild-voll { width:fit-content; height:fit-content; max-width:none; margin:auto; inset:0; padding:0; background:#000; border:none; border-radius:10px; overflow:hidden; position:fixed; }
dialog.bild-voll img { display:block; max-width:92vw; max-height:88vh; width:auto; height:auto; cursor:zoom-out; }
dialog.bild-voll .bv-titel { position:absolute; left:0; right:0; bottom:0; padding:22px 14px 10px; color:#fff; font-size:14px; background:linear-gradient(transparent, rgba(0,0,0,.6)); }
dialog.bild-voll .bv-zu { position:absolute; top:8px; right:8px; width:34px; height:34px; padding:0; border:none; border-radius:50%; background:rgba(0,0,0,.55); color:#fff; font-size:16px; line-height:34px; }
dialog.bild-voll .bv-zu:hover { background:rgba(0,0,0,.8); }

/* Sortierbare Spaltenköpfe: Pfeil hinter dem Titel */
.tabelle th.sortierbar[data-pfeil]::after { content:attr(data-pfeil); }
.tabelle th.sortierbar:hover { color:#000; }

/* Bestellstatus */
.pstatus[data-bstatus], #bstatus { cursor:pointer; }

.bestell-status { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin:-4px 0 16px; } .bestell-status > span:first-child { color:var(--grau); font-size:13px; }
.gruen-knopf, button.primaer.gruen-knopf { background:#2f7d32; border-color:#2f7d32; color:#fff; } .gruen-knopf:hover { background:#256628; border-color:#256628; }
tr.pos-da td:not(.haken-zelle) { color:#6b6b6b; } tr.pos-da td:nth-child(4) { text-decoration:line-through; text-decoration-color:#9a9a9a; }
.pos-haken { width:20px; height:20px; }
.nur-handy, .handy-leiste { display:none; }
@media (max-width:760px) {
  .handy-weg { display:none; } .nur-handy { display:block; margin-top:2px; }
  .bestell-raster { display:flex; flex-direction:column-reverse; gap:18px; }
  .bestell-pos .tabelle td { height:auto; padding:14px 10px; } .pos-haken { width:28px; height:28px; }
  .bestell-pos .haken-zelle { width:48px; }
  .seitenkopf-rechts #allesda { display:none; }
  .handy-leiste { display:flex; flex-direction:column; gap:8px; position:sticky; bottom:0; background:#fff; padding:12px 0 calc(12px + env(safe-area-inset-bottom)); border-top:1px solid var(--linie); margin-top:12px; z-index:5; }
  .handy-leiste button { width:100%; padding:14px; font-size:16px; border-radius:10px; }
}

/* Handy: oben nur Logo und ☰, Menü klappt auf */
.handymenue { display:none; }
@media (max-width:760px) {
  aside.seite { position:sticky; top:0; z-index:40; }
  .seite-kopf { flex-direction:row !important; align-items:center; padding:8px 12px !important; }
  .handymenue { display:flex; margin-left:auto; background:none; border:none; color:inherit; padding:6px; } .handymenue .ic { width:26px; height:26px; }
  body:not(.nav-offen) #nav, body:not(.nav-offen) #seite-fuss { display:none !important; }
  body.nav-offen #nav { padding-bottom:8px; }
  .bestell-pos table { display:table; white-space:normal; }
}
@media (max-width:760px) { .seitenkopf-titel { min-width:0; } .seitenkopf-titel .klein-text { white-space:normal; overflow-wrap:anywhere; } }
@media (max-width:760px) { .bestell-liste table { display:table; white-space:normal; width:100%; } .bestell-liste td { height:auto; padding:12px 10px; } }

/* CRM (Vertrieb) */
.crm-ansicht { width:auto; } 
.crm-aufgabe { display:flex; align-items:center; gap:12px; padding:10px 0; border-bottom:1px solid var(--linie); cursor:pointer; }
.crm-aufgabe:last-child { border-bottom:none; } .crm-aufgabe input[type=checkbox] { width:22px; height:22px; flex:none; accent-color:var(--rot); }
.crm-aufgabe-text { flex:1; min-width:0; } .crm-aufgabe-rechts { text-align:right; font-size:14px; white-space:nowrap; }
.crm-heute { color:var(--rot); font-weight:500; } .crm-tel { white-space:nowrap; } .crm-tel .ic { vertical-align:-3px; }
.crm-heute-kasten { margin-bottom:16px; }
.crm-board { display:grid; grid-template-columns:repeat(6, minmax(0, 1fr)); gap:10px; align-items:start; }
.crm-spalte { background:#efefef; border-radius:10px; padding:8px; min-height:140px; } .crm-spalte.ziel, .crm-zu-feld.ziel { outline:2px dashed var(--rot); outline-offset:-2px; }
.crm-spalte-kopf { display:flex; justify-content:space-between; align-items:baseline; gap:6px; font-weight:500; font-size:13px; padding:2px 4px 8px; }
.crm-spalte-kopf .klein-text { font-size:12px; white-space:nowrap; }
.crm-karte { background:#fff; border:1px solid var(--linie); border-radius:8px; padding:8px 10px; margin-bottom:6px; cursor:pointer; font-size:13.5px; min-width:0; }
.crm-karte:hover { border-color:#bbb; } .crm-karte.warn { border-left:3px solid var(--rot); } .crm-karte.zieht { opacity:.4; }
.crm-karte-kopf { display:flex; justify-content:space-between; align-items:center; gap:4px; min-height:22px; }
.crm-karte-kopf b, .crm-karte-zeile { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; min-width:0; }
.crm-karte-kopf .icon-knopf { margin:-6px -6px -6px 0; flex:none; }
@media (hover:hover) { .crm-karte-kopf .icon-knopf { opacity:0; } .crm-karte:hover .icon-knopf { opacity:1; } }
.crm-karte-zeile { color:var(--grau); font-size:12.5px; }
.crm-karte-fuss { display:flex; justify-content:space-between; gap:8px; font-size:12.5px; margin-top:5px; color:#444; }
.crm-karte-fuss > span { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; min-width:0; } .crm-karte-fuss b { font-weight:500; white-space:nowrap; }
.crm-zu { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:10px; margin-top:12px; align-items:start; }
.crm-zu-feld { background:#fff; border:1px dashed #c8c8c8; border-radius:10px; padding:8px; min-height:90px; }
.crm-zu-feld .crm-karte { background:var(--flaeche); } .crm-zu-leer { color:#aaa; font-size:13px; text-align:center; padding:14px 0; }
.crm-zu-mehr { font-size:13px; padding:2px 4px; }
body.crm-zieht .crm-zu-feld, body.crm-zieht .crm-spalte { background:#fff6f6; } body.crm-zieht .crm-zu-feld { border-color:var(--rot); }
body.crm-zieht .crm-spalte *, body.crm-zieht .crm-zu-feld * { pointer-events:none; }
.crm-suche { margin-left:auto; } .crm-suche .suchfeld input { width:200px; } .kopf .crm-suche + .primaer { margin-left:0; }
@media (max-width:1100px) { .crm-board { grid-template-columns:repeat(6, minmax(170px, 1fr)); overflow-x:auto; padding-bottom:6px; } .crm-suche .suchfeld input { width:140px; } }
.crm-seite { display:grid; grid-template-columns:minmax(0, 1.25fr) minmax(0, 1fr); gap:16px; align-items:start; }
.crm-rechts { display:grid; gap:16px; } .crm-schritt { border-color:var(--rot); }
.crm-verlauf .crm-v { padding:10px 0 10px 14px; border-left:2px solid var(--linie); margin-left:4px; }
.crm-verlauf .crm-v.gespraech { border-left-color:var(--schwarz); }
.crm-v-kopf { display:flex; align-items:center; gap:6px; flex-wrap:wrap; } .crm-v-kopf .icon-knopf { margin-left:auto; }
.crm-notiz { white-space:pre-wrap; font-size:14px; background:var(--flaeche); border-radius:8px; padding:10px 12px; margin-top:6px; }
.crm-v details summary { cursor:pointer; margin-top:4px; }
.crm-angebot { display:flex; align-items:center; gap:8px; padding:8px 0; border-bottom:1px solid var(--linie); } .crm-angebot > div { flex:1; }
.crm-angebot:last-child { border-bottom:none; } .crm-angebot.ersetzt { opacity:.55; }
.crm-balken { display:flex; align-items:center; gap:10px; font-size:14px; padding:4px 0; } .crm-balken > span:first-child { width:160px; flex:none; }
.crm-balken-spur { flex:1; height:8px; background:var(--hell); border-radius:4px; overflow:hidden; } .crm-balken-spur i { display:block; height:100%; background:var(--rot); }
@media (max-width:1100px) { .crm-seite { grid-template-columns:1fr; } }
@media (max-width:760px) { .crm-aufgabe { flex-wrap:wrap; } .crm-aufgabe [data-ortstermin] { width:100%; } .crm-balken > span:first-child { width:110px; } .kopf .crm-ansicht { order:3; width:100%; } .kopf .crm-ansicht button { flex:1; } }
@media (max-width:760px) { .seitenkopf-rechts { flex-wrap:wrap; } .seitenkopf-rechts #weiter { order:3; flex-basis:100%; } .crm-board { grid-template-columns:minmax(0, 1fr); overflow:visible; } .crm-spalte { min-height:0; } .crm-zu { grid-template-columns:1fr; } .crm-suche { margin-left:0; flex:1; } .crm-suche .suchfeld input { width:100%; } }

.drop-overlay { position:fixed; inset:0; background:rgba(228,0,0,.08); border:3px dashed var(--rot); display:none; align-items:center; justify-content:center; z-index:50; pointer-events:none; font-size:22px; font-weight:500; color:var(--rot); }
.drop-overlay.sichtbar { display:flex; }
.crm-angebot.klick { cursor:pointer; } .crm-angebot.klick:hover { background:var(--flaeche); }
.ablage.gewaehlt { border-color:var(--gruen); color:var(--gruen); }

.status-chip { display:inline-flex; align-items:center; gap:4px; border:none; border-radius:8px; padding:4px 10px; font-size:13px; font-weight:400; background:#ececec; color:#3d3d3d; }
.status-chip:hover { background:#e0e0e0; } .status-chip .ic { opacity:.7; }
.status-chip.gelb { background:#fbefc5; color:#7a5b00; } .status-chip.gruen { background:#dcf2e3; color:#1d6b36; } .status-chip.rot { background:#fde3e3; color:#a40f0f; }
.ausg-tabelle td { padding-top:13px; padding-bottom:13px; }

.ges-tabelle { table-layout:fixed; } .ges-tabelle th:nth-child(1) { width:105px; } .ges-tabelle th:nth-child(2) { width:150px; } .ges-tabelle th:nth-child(4) { width:22%; } .ges-tabelle th:nth-child(5) { width:90px; } .ges-tabelle th:nth-child(6) { width:48px; }
.ges-text { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; } .ges-text b { margin-right:8px; } .ges-text span { color:var(--grau); }
.ges-tabelle td:nth-child(4) { overflow:hidden; text-overflow:ellipsis; }
@media (max-width:760px) { .ges-tabelle th:nth-child(2), .ges-tabelle td:nth-child(2), .ges-tabelle th:nth-child(5), .ges-tabelle td:nth-child(5) { display:none; } }

/* Aufgaben */
.auf-neu-karte { padding:10px 14px; margin-bottom:16px; }
.auf-eingabe-zeile { display:flex; align-items:center; gap:10px; } .auf-eingabe-zeile input { flex:1; border:none; padding:6px 0; font-size:15px; outline:none; background:transparent; }
.auf-eingabe-zeile input:focus { outline:none; } .auf-plus { color:var(--rot); font-size:22px; line-height:1; width:22px; text-align:center; }
.auf-vorschau { display:flex; flex-wrap:wrap; align-items:center; gap:6px; } .auf-vorschau:not(:empty) { margin-top:8px; }
.auf-chip { font-size:12px; border-radius:6px; padding:2px 8px; background:#ececec; color:#3d3d3d; }
.auf-chip.datum { background:#dcf2e3; color:#1d6b36; } .auf-chip.wer { background:#ebe9fc; color:#3c3489; } .auf-chip.ziel { background:#fbefc5; color:#7a5b00; }
.auf-chip.p1 { background:#fde3e3; color:#a40f0f; } .auf-chip.p2 { background:#fde9d3; color:#8a4a00; } .auf-chip.p3 { background:#dde9fb; color:#0c447c; }
.auf-knoepfe { margin-left:auto; display:flex; gap:6px; }
.auf-gruppe { margin-bottom:16px; } .auf-gruppe-kopf { display:flex; justify-content:space-between; align-items:baseline; font-weight:500; font-size:14px; margin:0 4px 6px; }
.auf-liste { padding:0 14px; } .auf-liste.flach { padding:0; }
.auf-zeile { display:flex; align-items:center; gap:12px; padding:10px 0; border-bottom:1px solid var(--linie); cursor:pointer; min-width:0; }
.auf-liste .auf-zeile:last-child { border-bottom:none; }
.auf-kreis { width:22px; height:22px; flex:none; border-radius:50%; border:2px solid #b8b8b8; background:#fff; padding:0; display:flex; align-items:center; justify-content:center; color:#fff; }
.auf-kreis:hover { background:#f2f2f2; } .auf-kreis .ic { width:12px; height:12px; }
.auf-kreis.p1 { border-color:#d93025; background:#fdecea; } .auf-kreis.p2 { border-color:#ef8a17; background:#fef1e2; } .auf-kreis.p3 { border-color:#2f7de1; background:#e8f1fd; }
.auf-zeile.erledigt .auf-kreis { background:#9a9a9a; border-color:#9a9a9a; } .auf-zeile.erledigt .auf-text > span { text-decoration:line-through; color:var(--grau); }
.auf-text { flex:1; min-width:0; } .auf-text > span { margin-right:8px; }
.auf-bezug { font-size:12.5px; color:var(--grau); background:var(--flaeche); border-radius:6px; padding:1px 7px; white-space:nowrap; display:inline-block; max-width:100%; overflow:hidden; text-overflow:ellipsis; vertical-align:middle; }
.auf-bezug:hover { color:var(--rot); text-decoration:none; }
.auf-datum { font-size:13px; white-space:nowrap; }
.auf-zeile .icon-knopf { flex:none; } @media (hover:hover) { .auf-zeile .icon-knopf { opacity:0; } .auf-zeile:hover .icon-knopf { opacity:1; } }
.auf-prio button { padding:6px 4px; }
@media (max-width:760px) { .auf-knoepfe { margin-left:0; width:100%; } .auf-wer { display:none; } }

.auf-popup { max-height:300px; overflow:auto; padding:4px; } .auf-popup .auswahl-eintrag { white-space:normal; flex-direction:column; gap:0; align-items:flex-start; text-align:left; }
button.auf-chip { border:none; font:inherit; font-size:12px; cursor:pointer; display:inline-flex; align-items:center; gap:3px; padding:2px 6px 2px 8px; }
button.auf-chip .ic { width:11px; height:11px; opacity:.7; } button.auf-chip.leer { background:#f1f1f1; color:var(--grau); }
.auf-chip-weg { border:none; background:none; color:var(--grau); padding:0 4px; font-size:12px; cursor:pointer; }

/* Avatare */
.avatar-bild, .avatar-kreis { width:26px; height:26px; border-radius:50%; flex:none; object-fit:cover; display:inline-flex; align-items:center; justify-content:center; background:#ececec; color:#555; font-size:11px; font-weight:500; vertical-align:middle; }
.avatar.mit-bild { padding:0; overflow:hidden; } .avatar.mit-bild img { width:100%; height:100%; object-fit:cover; border-radius:50%; display:block; }
.benutzer-name { display:flex; align-items:center; gap:8px; }
.profil-karte { display:flex; gap:16px; align-items:center; } .profil-bild { width:72px; height:72px; border-radius:50%; overflow:hidden; background:#ececec; display:flex; align-items:center; justify-content:center; font-size:24px; font-weight:500; color:#555; flex:none; } .profil-bild img { width:100%; height:100%; object-fit:cover; }
/* Aufgabe groß */
dialog.auf-detail { width:min(1000px, 96vw); max-width:none; padding:0; }
.auf-detail-kopf { display:flex; align-items:center; justify-content:space-between; padding:12px 18px; border-bottom:1px solid var(--linie); }
.auf-detail-bezug { color:#111; font-weight:500; } .auf-detail-bezug:hover { color:#444; } /* nicht blau (Dom 27.10.2026) */ .auf-detail-knoepfe { display:flex; gap:4px; } .auf-detail-knoepfe .icon-knopf:disabled { opacity:.3; }
.auf-detail-raster { display:grid; grid-template-columns:minmax(0, 1fr) 280px; min-height:420px; }
.auf-detail-links { padding:18px 22px 24px; } .auf-detail-rechts { background:#f8f8f7; padding:18px 20px; border-left:1px solid var(--linie); }
.auf-detail-titel { display:flex; gap:12px; align-items:flex-start; }
.auf-detail-titel textarea { border:none; font-size:22px; font-weight:500; padding:0; min-height:0; resize:none; flex:1; background:transparent; } .auf-detail-titel textarea:focus { outline:none; } .auf-detail-titel textarea.erledigt { text-decoration:line-through; color:var(--grau); }
.auf-kreis.gross { width:26px; height:26px; margin-top:3px; } .auf-kreis.mini { width:18px; height:18px; }
.auf-detail-notiz { border:none; padding:6px 0 6px 38px; min-height:0; resize:none; color:#444; background:transparent; } .auf-detail-notiz:focus { outline:none; }
.auf-detail-abschnitt { margin:18px 0 6px; padding-bottom:6px; border-bottom:1px solid var(--linie); }
.auf-unter { display:flex; align-items:center; gap:10px; padding:8px 0 8px 4px; border-bottom:1px solid var(--linie); } .auf-unter span { flex:1; } .auf-unter.erledigt span { text-decoration:line-through; color:var(--grau); }
.auf-weg { border:none; background:none; color:#999; padding:2px 6px; cursor:pointer; opacity:0; } .auf-unter:hover .auf-weg, .auf-weg.sichtbar { opacity:1; }
.auf-unter-neu { display:flex; align-items:center; gap:10px; padding:6px 0 6px 2px; } .auf-unter-neu input, .auf-kommentar.neu input { border:none; flex:1; padding:6px 0; background:transparent; } .auf-unter-neu input:focus { outline:none; }
.auf-kommentar { display:flex; gap:10px; padding:10px 0; } .auf-kommentar > div { flex:1; } .auf-kommentar .icon-knopf { float:right; margin:-4px 0 0; }
.auf-kommentar.neu { align-items:center; } .auf-kommentar.neu input { border:1px solid #d5d5d5; border-radius:18px; padding:8px 14px; }
.auf-feld { padding:10px 0; border-bottom:1px solid #e6e6e4; position:relative; } .auf-feld > span { display:block; font-size:13px; color:var(--grau); margin-bottom:6px; font-weight:500; }
.auf-feld-wert { border:none; background:none; padding:2px 0; font:inherit; display:flex; align-items:center; gap:8px; cursor:pointer; text-align:left; font-weight:400; color:inherit; white-space:normal; }
.auf-feld-wert:hover { color:var(--rot); background:none; } .auf-feld .auf-weg { position:absolute; right:-6px; top:6px; }
.auf-feld-wert.datum input { border:none; background:transparent; padding:2px 0; } .auf-feld-wert.datum input[type=time] { width:90px; }
.prio-p1 .ic { color:#d93025; } .prio-p2 .ic { color:#ef8a17; } .prio-p3 .ic { color:#2f7de1; }
.auf-erstellt { margin-top:14px; }
.auf-info { display:flex; gap:10px; margin-top:2px; } .auf-info span { display:inline-flex; align-items:center; gap:3px; } .auf-notiz { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:420px; }
@media (max-width:760px) { .auf-detail-raster { grid-template-columns:1fr; } .auf-detail-rechts { border-left:none; border-top:1px solid var(--linie); } }

/* Anfrage-Seite (22.10.2026): Phasenleiste, links Kontakt, rechts Inhalt, Gespräche einzeilig */
.crm-phasen { display:flex; gap:4px; margin:-4px 0 16px; overflow-x:auto; }
.crm-phasen span { flex:1; min-width:max-content; text-align:center; padding:6px 10px; border-radius:6px; background:#f0f0f0; color:#777; font-size:13px; white-space:nowrap; }
.crm-phasen span.fertig { background:#dcf3e4; color:#1f6b3a; } .crm-phasen span.jetzt { background:#fbe7c6; color:#7a4a00; font-weight:600; }
.crm-phasen span.jetzt.gewonnen { background:#cdeedb; color:#16603a; } .crm-phasen span.jetzt.verloren { background:#fcd9d9; color:#a32020; } .crm-phasen span.jetzt.wiedervorlage { background:#e2ddfc; color:#5b3fd1; }
.crm-seite2 { grid-template-columns:minmax(280px, 1fr) minmax(0, 2fr); }
.crm-links, .crm-rechts { display:flex; flex-direction:column; gap:16px; min-width:0; } .crm-seite2 .akte-kasten { margin:0; }
.crm-gespraeche { display:flex; flex-direction:column; }
.crm-gz { display:flex; align-items:center; gap:10px; padding:9px 4px; border-top:1px solid #eee; } .crm-gz:first-child { border-top:none; }
.crm-gz:hover { background:#fafafa; } .crm-gz-datum { color:#777; font-size:13px; white-space:nowrap; min-width:78px; }
.crm-gz-titel { flex:1; min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
@media (max-width:1100px) { .crm-seite2 { grid-template-columns:1fr; } }

/* KI-Zugang: Schlüssel und Befehle zum Kopieren */
.ki-wert { display:flex; align-items:center; gap:8px; background:#f5f5f5; border-radius:8px; padding:8px 10px; margin:6px 0 10px; }
.ki-wert code { flex:1; min-width:0; overflow-wrap:anywhere; font-size:12.5px; }
.crm-phasen span { cursor:pointer; } .crm-phasen span:hover { filter:brightness(.96); } .crm-phasen span.jetzt[data-phase] { cursor:default; }

/* Leiste (22.10.2026): Nodus oben mit Lupe, Gruppen Lager und Kontakte mit Ausklapp-Liste rechts, Abschnitt Ressourcen */
.kopf-lupe { background:none; border:none; color:#aaa; padding:6px; border-radius:6px; cursor:pointer; display:flex; } .kopf-lupe:hover { background:#222; color:#fff; } .kopf-lupe .ic { width:18px; height:18px; }
body.nav-zu .kopf-lupe { display:none; }
.nav-gruppe { position:relative; outline:none; }
.nav-gruppe-kopf { display:flex; align-items:center; gap:12px; padding:9px 12px; border-radius:8px; margin-bottom:2px; color:#ddd; cursor:default; white-space:nowrap; user-select:none; }
.nav-gruppe:hover .nav-gruppe-kopf, .nav-gruppe.offen .nav-gruppe-kopf { background:#1d1d1d; color:#fff; }
.nav-gruppe.aktiv .nav-gruppe-kopf { background:#262626; color:#fff; font-weight:500; }
.nav-pfeil { width:14px; height:14px; color:#777; flex:none; }
.gruppen-punkt { display:none; width:7px; height:7px; border-radius:50%; background:var(--rot); padding:0 !important; min-width:0 !important; }
.gruppen-punkt.an { display:block; } .nav-gruppe-kopf .nav-text { flex:1; }
.nav-flyout { display:none; position:fixed; z-index:80; min-width:230px; background:#151515; border:1px solid #2c2c2c; border-radius:10px; padding:6px; box-shadow:0 10px 30px rgba(0,0,0,.35); }
.nav-gruppe.offen .nav-flyout { display:block; }
.flyout-titel { font-size:11px; letter-spacing:.8px; text-transform:uppercase; color:#888; padding:6px 10px 6px; }
body.nav-zu .nav-flyout .nav-text { display:inline; } body.nav-zu #nav .nav-flyout a { justify-content:flex-start; padding:9px 12px; }
body.nav-zu .nav-gruppe-kopf { justify-content:center; padding:10px 0; position:relative; } body.nav-zu .nav-gruppe-kopf .nav-pfeil { display:none; }
body.nav-zu .gruppen-punkt.an { position:absolute; top:6px; right:10px; }
.nur-beta-inline { display:none; } body.beta .nur-beta-inline { display:contents; }
.nav-titel-gruppe { padding:14px 12px 4px; font-size:11px; letter-spacing:.8px; text-transform:uppercase; color:#888; }
body.nav-zu .nav-titel-gruppe { padding:10px 0 4px; } body.nav-zu .nav-titel-gruppe .nav-text { display:none; } body.nav-zu .nav-titel-gruppe::after { content:''; display:block; height:1px; background:#2a2a2a; margin:0 10px; }
@media (max-width:760px) {
  #nav { display:block !important; }
  .nav-flyout { display:block; position:static; background:none; border:none; box-shadow:none; padding:0 0 4px 18px; min-width:0; }
  .flyout-titel, .nav-pfeil { display:none; } .nav-gruppe-kopf { cursor:default; color:#999; font-size:12px; text-transform:uppercase; letter-spacing:.6px; padding:10px 12px 2px; }
  .nav-gruppe:hover .nav-gruppe-kopf { background:none; } .nav-gruppe-kopf .ic { display:none; }
}

/* Projektakte wie plancraft (23.10.2026, nach Doms Screenshots): graue Fläche, weiße Karten, Kästen mit feinem Rahmen, Chat rechts */
main.feste-seite { height:100vh; display:flex; flex-direction:column; overflow:hidden; }
main.pa-seite { background:#f0f0f0; }
.pa-kopf { display:flex; align-items:center; gap:14px; margin:1px 0 14px; flex:none; }
.pa-kopf h1 { margin:0; font-size:21px; font-weight:700; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; } .pa-kopf .rechts { margin-left:auto; }
.pa-knopf { display:inline-flex; align-items:center; justify-content:center; gap:7px; height:38px; min-width:38px; padding:0 10px; background:#fff; border:1px solid #d9d9d9; border-radius:8px; color:#222; cursor:pointer; font:inherit; font-size:14.5px; font-weight:500; text-decoration:none; }
.pa-knopf:hover { background:#f6f6f6; text-decoration:none; } .pa-knopf svg { width:17px; height:17px; } .pa-knopf.klein { height:28px; min-width:28px; padding:0 6px; }
.pa-knopf.an { border-color:#111; }
.pa { flex:1; min-height:0; display:grid; grid-template-columns:minmax(0, 1fr) 450px; gap:12px; }
.pa-links { display:flex; flex-direction:column; gap:12px; min-height:0; min-width:0; }
.pa-karte { background:#fff; border-radius:10px; }
.pa-uebersicht-karte { flex:none; padding:0 10px 10px; }
.pa-uebersicht { display:grid; grid-template-columns:1fr 1fr 1fr; grid-template-rows:auto auto; gap:6px; margin-top:10px; }
.pa-uebersicht .g1 { grid-column:1; grid-row:1; } .pa-uebersicht .g2 { grid-column:1; grid-row:2; } .pa-uebersicht .g3 { grid-column:2; grid-row:1; } .pa-uebersicht .g4 { grid-column:2; grid-row:2; } .pa-uebersicht .g5 { grid-column:3; grid-row:1 / span 2; }
.pa-box { border:1px solid #ececec; border-radius:8px; padding:14px 16px; min-width:0; line-height:1.55; font-size:15px; position:relative; }
.pa-box-titel { display:flex; align-items:center; gap:8px; font-size:13px; letter-spacing:.3px; text-transform:uppercase; color:#444; margin-bottom:10px; } .pa-box-titel svg { width:17px; height:17px; color:#333; }
.pa-gross { font-size:19px; } button.pa-link { background:none; border:none; padding:0; font:inherit; font-size:19px; cursor:pointer; }
.pa-link { color:#111; text-decoration:underline; text-underline-offset:3px; } .pa-link:hover { color:var(--rot); }
.pa-tel { color:#111; } .pa-tag { position:absolute; right:14px; top:50%; background:#ececec; color:#444; font-size:12.5px; padding:2px 8px; border-radius:6px; }
.pa-text { max-height:150px; overflow:auto; color:#333; } .pa-keine { color:#666; display:flex; align-items:center; justify-content:flex-start; min-height:90px; }
.pa-unten { flex:1; min-height:0; display:flex; flex-direction:column; padding:0 10px; }
.pa-reiter { display:flex; align-items:center; gap:2px; padding-top:10px; flex:none; min-height:48px; }
.pa-reiter > button { background:none; border:none; border-bottom:2px solid transparent; border-radius:0; padding:8px 6px 8px; margin-right:10px; font-size:15px; font-weight:500; color:#6a6a6a; cursor:pointer; }
.pa-reiter > button.an { color:#131313; font-weight:600; border-bottom-color:#131313; } /* Reiter B */
.pa-reiter-rechts { margin-left:auto; display:flex; gap:8px; align-items:center; flex-shrink:0; }
.pa-reiter-rechts .knopf { white-space:nowrap; }
.pa-inhalt { flex:1; min-height:0; overflow:auto; padding:6px 0 10px; }
.pa-liste { display:flex; flex-direction:column; } .pa-ablage.drueber { outline:2px dashed var(--rot); outline-offset:4px; border-radius:8px; }
.pa-zeile { display:flex; align-items:center; gap:16px; padding:12px 10px; border-bottom:1px solid #f0f0f0; color:inherit; text-decoration:none; min-height:62px; box-sizing:border-box; }
.pa-zeile:hover { background:#f5f5f5; text-decoration:none; } .pa-zeile.klick { cursor:pointer; }
.pa-ic { width:30px; flex:none; display:flex; align-items:center; justify-content:center; color:#111; } .pa-ic svg { width:22px; height:22px; } .pa-ic img { width:34px; height:34px; object-fit:cover; border-radius:5px; }
.pa-zeile-text { flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; } .pa-zeile-text b { font-weight:600; font-size:15px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; } .pa-zeile-text span { font-size:13px; color:#666; }
.pa-betrag { white-space:nowrap; }
.pa-leer { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:12px; color:#666; text-align:center; padding:60px 20px; height:100%; box-sizing:border-box; line-height:1.6; } .pa-leer b { color:#555; }
.pa-pfad { padding:8px 10px 4px; font-size:14px; }
.pakte { max-width:760px; } .pakte-titel { display:flex; align-items:center; gap:10px; font-size:17px; margin:22px 0 10px; } .pakte-titel:first-child { margin-top:0; }
.pakte-titel::after { content:''; flex:1; height:1px; background:#e6e6e6; }
.pk-zeile { display:grid; grid-template-columns:150px 1fr; gap:12px; padding:7px 0; align-items:baseline; } .pk-zeile > span { color:#555; font-size:14px; }
.pakte-kunde { display:flex; gap:12px; align-items:flex-start; border:1px solid #e6e6e6; border-radius:10px; padding:12px 14px; color:inherit; max-width:420px; } .pakte-kunde:hover { background:#fafafa; text-decoration:none; }
/* Chat */
.pa-chat { display:flex; flex-direction:column; min-height:0; overflow:hidden; }
.ch-titel { margin:0; padding:18px 16px 6px; font-size:20px; font-weight:700; }
.ch-reiter { display:flex; align-items:center; gap:2px; margin:0 8px; border-bottom:1px solid #e3e3e3; flex:none; }
.ch-reiter > button[data-kanal] { background:none; border:none; border-bottom:2px solid transparent; border-radius:0; padding:10px 12px; font-size:15px; font-weight:500; color:#333; cursor:pointer; margin-bottom:-1px; }
.ch-reiter > button[data-kanal].an { font-weight:600; color:#111; border-bottom-color:#111; }
.ch-filter { margin-left:auto; height:32px; margin-bottom:6px; font-size:13.5px; }
.ch-angeheftet { flex:none; border-bottom:1px solid #eee; max-height:84px; overflow:auto; background:#fafafa; } .ch-pin-zeile { padding:7px 16px; font-size:13px; cursor:pointer; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; } .ch-pin-zeile:hover { background:#f2f2f2; }
.ch-verlauf { flex:1; min-height:0; overflow-y:auto; padding:6px 10px 10px; display:flex; flex-direction:column; gap:10px; }
.ch-ziel { outline:2px solid var(--rot) !important; outline-offset:-2px; border-radius:12px; }
.ch-tag { display:flex; align-items:center; gap:10px; color:#666; font-size:12.5px; margin:10px 0 2px; } .ch-tag::before, .ch-tag::after { content:''; flex:1; height:1px; background:#e2e2e2; }
.ch-n { display:flex; align-items:flex-start; gap:10px; max-width:90%; } .ch-n.ich { align-self:flex-end; flex-direction:row-reverse; }
.ch-av { width:30px !important; height:30px !important; font-size:11px; flex:none; margin-top:2px; } .ch-av-platz { width:30px; flex:none; }
.ch-blase { background:#f2f2f2; border-radius:8px; padding:9px 12px 6px; min-width:90px; overflow-wrap:anywhere; }
.ch-n.ich .ch-blase { background:#e4e4e4; } .ch-n.erwaehnt .ch-blase { box-shadow:inset 3px 0 0 #e0a800; }
.ch-blase.geloescht { color:#888; font-style:italic; font-size:13.5px; }
.ch-wer { font-size:13.5px; font-weight:600; margin-bottom:4px; }
.ch-text { font-size:14.5px; line-height:1.5; } .ch-at { color:#1d4ed8; font-weight:600; }
.ch-zeit { font-size:12px; color:#555; text-align:right; margin-top:4px; display:flex; justify-content:flex-end; align-items:center; gap:4px; } .ch-pin-ic svg { width:12px; height:12px; }
.ch-bild { display:block; max-width:240px; max-height:240px; border-radius:6px; cursor:zoom-in; margin:2px 0 4px; }
.ch-datei { display:flex; align-items:center; gap:8px; color:#111; margin:2px 0; font-size:14px; text-decoration:none; } .ch-datei:hover b { text-decoration:underline; } .ch-datei svg { width:18px; height:18px; flex:none; }
.ch-zitat { border-left:3px solid #999; background:rgba(0,0,0,.05); border-radius:4px; padding:4px 8px; margin-bottom:6px; font-size:13px; cursor:pointer; display:flex; flex-direction:column; } .ch-zitat span { color:#555; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ch-aktion { display:flex; gap:2px; align-self:flex-start; margin-top:4px; opacity:0; transition:opacity .1s; } .ch-n:hover .ch-aktion { opacity:1; }
.ch-aktion button { background:none; border:none; padding:4px; border-radius:6px; color:#444; cursor:pointer; display:flex; } .ch-aktion button:hover { background:#eee; } .ch-aktion svg { width:16px; height:16px; }
.ch-n.blink .ch-blase { animation:chBlink 1.2s; } @keyframes chBlink { 30% { box-shadow:0 0 0 3px #e0a800; } }
.ch-galerie { display:grid; grid-template-columns:repeat(3, 1fr); gap:6px; padding-top:6px; }
.ch-kachel { aspect-ratio:1; border:none; padding:0; border-radius:6px; overflow:hidden; background:#f2f2f2; cursor:zoom-in; display:flex; }
.ch-kachel img { width:100%; height:100%; object-fit:cover; } .ch-kachel.datei { flex-direction:column; align-items:center; justify-content:center; gap:6px; color:#111; text-decoration:none; cursor:pointer; padding:8px; text-align:center; font-size:12px; } .ch-kachel.datei svg { width:28px; height:28px; } .ch-kachel.datei span { overflow:hidden; text-overflow:ellipsis; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
.ch-unten { flex:none; background:#f2f2f2; border-radius:0 0 10px 10px; }
.ch-antwort { display:flex; align-items:center; gap:8px; padding:8px 12px 0; } .ch-antwort div { flex:1; min-width:0; border-left:3px solid #999; padding-left:8px; display:flex; flex-direction:column; font-size:13px; } .ch-antwort span { color:#666; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ch-eingabe { display:flex; align-items:flex-end; gap:8px; padding:12px; }
.ch-feld { flex:1; min-width:0; background:#fff; border:1px solid #d9d9d9; border-radius:8px; }
.ch-feld:focus-within { border-color:#999; }
.ch-werkzeug { display:none; gap:2px; padding:5px 6px 0; } .ch-feld:focus-within .ch-werkzeug { display:flex; }
.ch-werkzeug button { background:none; border:none; width:28px; height:26px; border-radius:5px; color:#222; cursor:pointer; font-size:14px; display:flex; align-items:center; justify-content:center; } .ch-werkzeug button:hover { background:#f0f0f0; } .ch-werkzeug svg { width:16px; height:16px; }
.ch-feld textarea { display:block; width:100%; box-sizing:border-box; border:none; outline:none; resize:none; padding:9px 10px; font:inherit; font-size:14.5px; line-height:1.4; max-height:140px; background:none; }
.ch-senden { color:#aaa; } .ch-senden.bereit { color:#fff; background:var(--rot); border-color:var(--rot); }
@media (max-width:1100px) { .pa { grid-template-columns:1fr; overflow:auto; } main.feste-seite { height:auto; overflow:visible; } .pa-chat { height:75vh; } .pa-uebersicht { grid-template-columns:1fr; } .pa-uebersicht > .pa-box { grid-column:1 !important; grid-row:auto !important; } .pa-unten { min-height:420px; } }

/* Chat-Eingabe (3.39): Knöpfe so hoch wie das Feld, Textfeld mit Formatierung, Erwähnung als graue Marke */
.ch-eingabe { align-items:stretch; }
.ch-eingabe > .pa-knopf { height:auto; min-height:42px; width:44px; padding:0; }
.ch-editor { min-height:22px; max-height:160px; overflow-y:auto; padding:10px 12px; font-size:14.5px; line-height:1.45; outline:none; overflow-wrap:anywhere; }
/* Platzhalter im Chat-Feld: siehe .md-feld.md-leer */
.ch-marke { display:inline-block; background:#e9e9e9; color:#111; border-radius:6px; padding:0 6px; font-weight:500; white-space:nowrap; }
.ch-werkzeug button.an { background:#e6e6e6; }
/* Ablage: Haken beim Überfahren statt Symbol, Auswahl-Leiste, Ziehen auf Ordner */
.ab-haken { display:none; width:18px; height:18px; margin:0; cursor:pointer; }
.ab-zeile:hover .ab-haken, .ab-zeile.gewaehlt .ab-haken, .mit-wahl .ab-haken { display:block; }
.ab-zeile:hover .ab-symbol, .ab-zeile.gewaehlt .ab-symbol, .mit-wahl .ab-symbol { display:none; }
.ab-symbol { display:flex; align-items:center; justify-content:center; }
.ab-zeile.gewaehlt { background:#f3f3f3; } .ab-zeile.zieht { opacity:.45; }
.ab-zeile.ziel-an, .ab-ziel.ziel-an { background:#fde8e8; box-shadow:inset 0 0 0 2px var(--rot); border-radius:6px; }
.ab-leiste { display:flex; align-items:center; gap:14px; padding:10px 12px; border-bottom:1px solid #f0f0f0; position:sticky; top:0; background:#fff; z-index:2; }
.ab-alle { display:flex; align-items:center; gap:10px; font-size:14.5px; cursor:pointer; } .ab-alle input { width:18px; height:18px; margin:0; }
.ab-trenner { width:1px; height:22px; background:#ddd; }
.ab-icon { background:none; border:none; padding:6px; border-radius:6px; color:#222; cursor:pointer; display:flex; } .ab-icon:hover { background:#f0f0f0; } .ab-icon.gefahr, button.ab-icon.gefahr { color:var(--rot); background:none; border:none; } button.ab-icon.gefahr:hover { background:#fdeaea; filter:none; } .ab-icon svg { width:19px; height:19px; }
.pa-zeile.aus { opacity:.45; cursor:default; } .pa-pfad .link { font-size:14px; }

/* Pfad-Leiste der Ablage (Tiefe der Ordner): Zurück-Knopf, Ebenen mit Pfeil, jede Ebene ist Ablageziel */
.ab-pfad { display:flex; align-items:center; gap:10px; padding:6px 4px 10px; border-bottom:1px solid #f0f0f0; margin-bottom:2px; position:sticky; top:0; background:#fff; z-index:3; }
.ab-hoch-ebene { width:36px; min-width:36px; height:36px; padding:0; }
.ab-krumen { display:flex; align-items:center; gap:4px; min-width:0; overflow-x:auto; scrollbar-width:none; }
.ab-krumen > svg { width:14px; height:14px; color:#999; flex:none; }
.ab-krume { display:inline-flex; align-items:center; gap:7px; padding:6px 10px; border-radius:8px; border:1px dashed transparent; background:none; font:inherit; font-size:15px; color:#555; cursor:pointer; white-space:nowrap; max-width:240px; }
.ab-krume span { overflow:hidden; text-overflow:ellipsis; } .ab-krume svg { width:17px; height:17px; flex:none; }
button.ab-krume:hover { background:#f2f2f2; color:#111; }
.ab-krume.jetzt { color:#111; font-weight:600; cursor:default; }
.ab-pfad.ziehen .ab-ziel { border-color:#c9c9c9; }
.ab-krume.ziel-an, .ab-hoch-ebene.ziel-an { background:#fde8e8; border:1px solid var(--rot); color:var(--rot); }
/* Leerer Ordner: gestricheltes Feld über die ganze Fläche zum Auswählen oder Hineinziehen */
.ab-leerfeld { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:12px; width:100%; min-height:360px; height:100%; border:1.5px dashed #d6d6d6; border-radius:8px; background:none; color:#aaa; font:inherit; font-size:15px; cursor:pointer; }
.ab-leerfeld:hover, .pa-ablage.drueber .ab-leerfeld { border-color:#999; color:#777; } .ab-leerfeld svg { width:22px; height:22px; }
.pa-ablage.leer { height:calc(100% - 52px); }

/* Dateiansicht wie plancraft: dunkle Leiste, Bild/PDF in der Mitte, Zoom oben */
dialog.dv { position:fixed; inset:0; width:100vw; height:100vh; max-width:none; max-height:none; margin:0; padding:0; border:none; border-radius:0; background:transparent; box-shadow:none; display:flex; flex-direction:column; overflow:hidden; }
dialog.dv:not([open]) { display:none; } dialog.dv::backdrop { background:rgba(0,0,0,.55); }
.dv-leiste { flex:none; height:56px; background:#141414; color:#fff; display:flex; align-items:center; justify-content:center; gap:14px; padding:0 14px; position:relative; }
.dv-name { font-weight:600; font-size:17px; max-width:min(60vw, 720px); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.dv-rechts { position:absolute; right:12px; top:0; bottom:0; display:flex; align-items:center; gap:4px; } .dv-links { position:absolute; left:12px; top:0; bottom:0; display:flex; align-items:center; } /* Kreuz links (Dom 29.10.2026) */
.dv-knopf { background:none; border:none; color:#fff; width:38px; height:38px; border-radius:8px; display:flex; align-items:center; justify-content:center; cursor:pointer; padding:0; } .dv-knopf:hover { background:#2a2a2a; } .dv-knopf:disabled { opacity:.3; cursor:default; background:none; } .dv-knopf svg { width:20px; height:20px; }
.dv-buehne { flex:1; min-height:0; display:flex; align-items:center; justify-content:center; overflow:hidden; position:relative; }
.dv-bild { max-width:calc(100vw - 200px); max-height:calc(100vh - 56px); object-fit:contain; transform-origin:center; user-select:none; box-shadow:0 6px 30px rgba(0,0,0,.35); }
.dv-pdf { width:100%; height:100%; overflow:auto; }
.dv-seiten { display:flex; flex-direction:column; align-items:center; gap:14px; padding:24px 24px 60px; width:max-content; min-width:100%; box-sizing:border-box; }
.dv-seiten .pdf-seite { background:#fff; box-shadow:0 4px 20px rgba(0,0,0,.35); border-radius:3px; } .dv-seiten canvas { border-radius:3px; } /* Platzhalter weiß, bis die Seite gezeichnet ist (6.11.2026) */
.dv-lade { color:#eee; text-align:center; padding:40vh 20px 0; }
.dv-zoom { position:absolute; top:66px; left:50%; transform:translateX(-50%); display:flex; align-items:center; gap:2px; background:#3a3a3a; color:#fff; border-radius:6px; padding:3px; font-size:14px; font-weight:600; z-index:2; }
.dv-zoom span { min-width:54px; text-align:center; } .dv-zoom button { background:none; border:none; color:#fff; width:28px; height:26px; border-radius:4px; cursor:pointer; font-size:17px; padding:0; } .dv-zoom button:hover { background:#555; }
.dv-keine { background:#fff; border-radius:10px; padding:30px 40px; display:flex; flex-direction:column; align-items:center; gap:14px; color:#444; }
.dv-druck { position:fixed; right:0; bottom:0; width:1px; height:1px; border:0; opacity:0; }
button.ch-datei { background:none; border:none; padding:0; font:inherit; cursor:pointer; text-align:left; } button.ch-kachel.datei { border:none; font:inherit; }

/* Objekt-Adresse wählen (Projekt / Kunde / andere) */
.adr-wahl { border:1px solid var(--linie); border-radius:8px; background:#fff; overflow:hidden; margin-top:4px; }
.formular label.adr-zeile, label.adr-zeile { display:grid; grid-template-columns:18px 130px 1fr; align-items:center; gap:10px; padding:10px 12px; border-bottom:1px solid var(--linie); color:var(--schwarz); font-size:14px; cursor:pointer; }
.adr-zeile:last-child { border-bottom:none; } .adr-zeile:hover { background:var(--flaeche); } .adr-zeile.an { background:#fff5f5; }
.adr-zeile input[type=radio] { accent-color:var(--rot); width:16px; height:16px; margin:0; }
.adr-zeile .adr-titel { font-weight:500; } .adr-zeile .adr-text { color:var(--grau); }
.adr-zeile input[data-objekt] { margin:0; }
@media (max-width:700px) { .formular label.adr-zeile, label.adr-zeile { grid-template-columns:18px 1fr; } .adr-zeile .adr-text, .adr-zeile input[data-objekt] { grid-column:2; } }

/* Anfrage-Seite 3.46: drei Spalten, rechts Notiz-Chat mit Gesprächskarten; Anruf-Fenster */
.crm-seite3 { flex:1; min-height:0; display:grid; grid-template-columns:minmax(260px, 1fr) minmax(0, 1.1fr) minmax(360px, 430px); gap:14px; margin-top:4px; }
.crm-seite3 > .crm-links, .crm-seite3 > .crm-rechts { min-height:0; overflow-y:auto; padding:0 2px 12px; }
.crm-seite3 .akte-kasten { margin:0; }
.crm-chat { border:1px solid var(--linie); min-height:0; }
.ch-reiter.einzeln { border-bottom:none; }
.cg-karte { align-self:stretch; border:1px solid #dcdcdc; border-radius:10px; background:#fff; padding:9px 12px 6px; cursor:pointer; }
.cg-karte:hover { border-color:#bbb; }
.cg-kopf { display:flex; align-items:center; gap:8px; font-size:14px; } .cg-kopf b { font-weight:600; }
.cg-ic { display:flex; color:#444; } .cg-ic svg { width:15px; height:15px; }
.cg-titel { color:var(--grau); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; min-width:0; }
.cg-dauer { margin-left:auto; background:#e8f5ec; color:var(--gruen); font-size:12px; padding:1px 8px; border-radius:10px; white-space:nowrap; }
.cg-kopf .icon-knopf { margin-left:auto; width:26px; height:26px; } .cg-dauer + .icon-knopf { margin-left:0; }
.cg-nicht { color:var(--ampelrot); font-size:13px; margin-top:4px; }
.cg-haken { display:flex; flex-wrap:wrap; gap:4px 10px; margin-top:6px; font-size:13px; color:#333; } .cg-haken span { white-space:nowrap; }
.cg-text { font-size:14px; line-height:1.45; margin-top:6px; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; white-space:pre-line; }
.cg-haken-liste { margin:8px 0 0; padding-left:18px; font-size:14px; }
.an-dialog { max-width:560px; }
.an-kopf { display:flex; align-items:center; gap:10px; } .an-kopf h2 { margin:0; flex:1; font-size:19px; }
.an-uhr { display:inline-flex; align-items:center; gap:6px; background:#e8f5ec; color:var(--gruen); font-weight:600; font-variant-numeric:tabular-nums; padding:4px 12px; border-radius:14px; font-size:14px; }
.an-uhr svg { width:15px; height:15px; }
.an-unter { margin:2px 0 14px; }
.an-jn { display:flex; gap:8px; } .an-jn button { flex:1; border-color:var(--linie); color:#444; }
.an-jn button[data-er="1"].an { background:#e8f5ec; border-color:var(--gruen); color:var(--gruen); }
.an-jn button[data-er="0"].an { background:#fdecec; border-color:var(--ampelrot); color:var(--ampelrot); }
.an-jetzt { align-self:flex-start; margin-top:12px; font-size:13px; }
.an-haken { display:grid; grid-template-columns:1fr 1fr; gap:6px 14px; }
.an-h { display:flex; flex-direction:column; gap:4px; } .an-h .haken { color:var(--schwarz); font-size:14px; } .an-h input:not([type=checkbox]), .an-h select { font-size:14px; }
@media (max-width:1100px) { .crm-seite3 { grid-template-columns:1fr; } .crm-seite3 > .crm-links, .crm-seite3 > .crm-rechts { overflow:visible; } .crm-chat { height:75vh; } }
@media (max-width:600px) { .an-haken { grid-template-columns:1fr; } }
.formular .an-h label.haken, .formular #an-haken > label.haken { flex-direction:row; align-items:center; justify-content:flex-start; gap:8px; margin:0; text-align:left; color:var(--schwarz); font-size:14px; }
.an-h label.haken input { width:16px; height:16px; margin:0; flex:none; }
/* Schlüsselfoto: Ziehen und ⌘V (3.47) */
.foto-ablage .schluessel-foto.leer { text-align:center; line-height:1.5; padding:10px; box-sizing:border-box; }
.foto-ablage.drueber .schluessel-foto { outline:2px dashed var(--rot); outline-offset:3px; } .foto-ablage.drueber .schluessel-foto.leer { color:var(--rot); background:#fff4f4; }
.foto-ablage.lädt { opacity:.6; pointer-events:none; }
/* Unterschrift erst nach „Unterschreiben“ in eigenem Fenster, größeres Feld (3.48) */
.unterschrift-fenster canvas.unterschrift { height:min(260px, 42vh); }
.ue-fuss #uohne { margin-left:auto; margin-right:8px; }
#ubuch svg { width:16px; height:16px; vertical-align:-3px; margin-right:4px; }

/* Feedback / Fehler (3.49, Knopf seit 3.50 in der Fußleiste zwischen Einstellungen und Profilbild) */
#feedbackknopf { position:relative; } #feedbackknopf b { position:absolute; top:3px; right:3px; min-width:8px; height:8px; padding:0; font-size:0; border-radius:50%; background:var(--rot); } #feedbackknopf b:empty { display:none; }
.fb-arten { display:flex; gap:6px; } .fb-arten button { flex:1; border-color:var(--linie); color:#444; }
.fb-arten button.an { background:var(--rot); border-color:var(--rot); color:#fff; }
.fb-bild { border:1px dashed #c8c8c8; border-radius:8px; padding:12px; text-align:center; color:var(--grau); font-size:13px; cursor:pointer; }
.fb-bild.drueber { border-color:var(--rot); background:#fff4f4; color:var(--rot); } .fb-bild img { max-width:100%; max-height:180px; border-radius:6px; display:block; margin:0 auto 6px; }
.fb-seite { font-size:12.5px; color:var(--grau); }
.fb-board { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:12px; align-items:start; }
.fb-spalte { background:#f0f0f0; border-radius:10px; padding:10px; min-height:120px; } .fb-spalte.drueber { outline:2px dashed var(--rot); outline-offset:-2px; }
.fb-spalte h3 { margin:0 0 8px; font-size:14px; display:flex; gap:6px; align-items:center; } .fb-spalte h3 span { color:var(--grau); font-weight:400; }
.fb-karte { background:#fff; border:1px solid #e3e3e3; border-radius:8px; padding:9px 11px; margin-bottom:8px; cursor:pointer; }
.fb-karte:hover { border-color:#bbb; } .fb-karte[draggable=true] { cursor:grab; }
.fb-karte b { display:block; font-weight:500; font-size:14px; margin-top:4px; } .fb-karte .klein-text { margin-top:3px; }
.fb-karte img { width:100%; max-height:110px; object-fit:cover; border-radius:5px; margin-top:6px; display:block; }
.fb-art { font-size:11.5px; padding:1px 7px; border-radius:5px; display:inline-block; font-weight:500; }
.fb-art.fehler { background:#fde8e8; color:#a32020; } .fb-art.idee { background:#e6effb; color:#1d4f91; } .fb-art.frage { background:#fbf0d9; color:#7a4a00; }
.fb-antwort { border-left:3px solid var(--rot); background:#fafafa; padding:8px 12px; border-radius:0 6px 6px 0; margin-top:12px; font-size:14px; }
@media (max-width:900px) { .fb-board { grid-template-columns:1fr; } }
/* Beta-Umgebung (3.51) */
#beta-leiste { position:fixed; top:0; left:0; right:0; z-index:1000; background:#f59e0b; color:#111; font-size:12.5px; font-weight:600; text-align:center; padding:3px 8px; pointer-events:none; }
body.beta-umgebung aside.seite { top:22px; } body.beta-umgebung main { padding-top:48px; } body.beta-umgebung main.feste-seite { padding-top:48px; }

/* Anfrage-Seite 3.54 (nach Doms Entwurf): Jetzt zu tun | Steckbrief/Verknüpfung | Notiz-Chat */
button.dunkel { background:#111; border-color:#111; color:#fff; } button.dunkel:hover { background:#333; } button.dunkel svg { width:16px; height:16px; vertical-align:-3px; margin-right:4px; }
.crm-seite4 { flex:1; min-height:0; display:grid; grid-template-columns:minmax(0, 1.3fr) minmax(300px, 1fr) minmax(340px, 410px); gap:14px; margin-top:4px; }
.crm-seite4 > .crm-spalte { min-height:0; overflow-y:auto; padding:0 2px 12px; }
.crm-seite4 .akte-kasten { margin:0 0 12px; }
.an-jetzt { background:#fff; border:1.5px solid #111; border-radius:12px; padding:16px 20px; }
.an-jetzt-kopf { display:flex; align-items:center; justify-content:space-between; font-size:12.5px; letter-spacing:.6px; text-transform:uppercase; font-weight:600; color:#333; margin-bottom:6px; }
.an-seit { text-transform:none; letter-spacing:0; font-weight:600; font-size:12px; background:#e8f5ec; color:var(--gruen); padding:2px 9px; border-radius:10px; } .an-seit.alt { background:#fdecec; color:var(--ampelrot); }
.an-jetzt #schritte { border-bottom:1px solid #eee; padding-bottom:6px; margin-bottom:10px; }
.an-fortschritt { display:flex; align-items:center; gap:10px; font-size:13px; color:var(--grau); margin:4px 0 6px; }
.an-fortschritt span { width:180px; height:5px; background:#eee; border-radius:3px; overflow:hidden; } .an-fortschritt i { display:block; height:100%; background:var(--gruen); border-radius:3px; }
.an-frage { display:grid; grid-template-columns:22px 150px minmax(0, 1fr) 28px; align-items:center; gap:10px; padding:9px 0; border-bottom:1px dashed #eee; min-height:44px; }
.an-frage:last-child { border-bottom:none; }
.an-frage input[type=checkbox] { width:20px; height:20px; accent-color:var(--gruen); margin:0; }
.an-frage .an-fname { font-weight:500; font-size:14.5px; } .an-frage.fertig .an-fname { font-weight:400; color:#555; }
.an-frage .an-fwert { font-size:14.5px; min-width:0; } .an-frage .an-fwert input, .an-frage .an-fwert select { max-width:360px; width:100%; }
.an-jetzt-fuss { display:flex; align-items:center; gap:8px; margin-top:14px; padding-top:12px; border-top:1px solid #eee; } .an-jetzt-fuss > span { flex:1; }
.an-weiter { border-color:var(--rot); color:var(--rot); font-weight:600; } .an-weiter.bereit { background:var(--rot); color:#fff; }
.an-reiter { display:flex; gap:4px; background:#e9e9e9; border-radius:9px; padding:3px; margin-bottom:12px; position:sticky; top:0; z-index:2; }
.an-reiter button { flex:1; border:none; background:none; padding:7px 10px; border-radius:7px; font-weight:500; color:#555; }
.an-reiter button.an { background:#fff; color:#111; box-shadow:0 1px 2px rgba(0,0,0,.08); } .an-reiter button span { background:#ddd; border-radius:8px; padding:0 6px; font-size:12px; margin-left:4px; }
.an-aktionen { display:flex; gap:6px; margin:0 0 10px; flex-wrap:wrap; } .an-aktionen > * { flex:1; text-align:center; padding:7px 10px; font-size:14px; } .an-aktionen svg { width:15px; height:15px; vertical-align:-2px; }
.fehlt { color:#aaa; font-style:italic; }
.an-ap { display:flex; align-items:flex-start; gap:8px; padding:8px 0; border-bottom:1px solid #f0f0f0; } .an-ap:last-child { border-bottom:none; } .an-ap > div { flex:1; min-width:0; }
@media (max-width:1400px) { .crm-seite4 { grid-template-columns:minmax(0, 1.15fr) minmax(260px, 1fr) minmax(300px, 350px); } .an-frage { grid-template-columns:22px 120px minmax(0, 1fr) 28px; } }
@media (max-width:1100px) { .crm-seite4 { grid-template-columns:1fr; } .crm-seite4 > .crm-spalte { overflow:visible; } .crm-seite4 > .crm-chat { height:75vh; } }
.crm-seite4 > * { min-width:0; }
@media (max-width:900px) { .an-jetzt { padding:14px; } .an-frage { grid-template-columns:22px minmax(0, 1fr) 28px; gap:6px 10px; }
  .an-frage .an-fname { grid-column:2; grid-row:1; } .an-frage > :last-child { grid-column:3; grid-row:1; } .an-frage .an-fwert { grid-column:2 / 4; grid-row:2; }
  .an-fortschritt span { width:90px; } .an-jetzt-fuss { flex-wrap:wrap; } .an-jetzt-fuss > span { flex-basis:100%; } }
/* Chat-Eingabe wie plancraft (3.55): Knöpfe quadratisch unten bündig, Werkzeugleiste mit Trenner, Ordner und Dokument */
.ch-eingabe { align-items:flex-end; }
.ch-eingabe > .pa-knopf { height:42px; min-height:42px; width:42px; flex:none; }
.ch-trenner { width:1px; height:16px; background:#d6d6d6; margin:0 4px; align-self:center; }
.ch-werkzeug button svg { width:16px; height:16px; }

/* ---------- Dokumente (3.56, nach plancraft) ---------- */
/* Gruppen-Überschriften richtig schwarz, aber ruhiger (Dom 2.11.2026) */
.dok-gruppe { font-size:14.5px; font-weight:600; color:#131313; padding:16px 10px 8px; border-bottom:1px solid #eee; }
.dok-zeile { gap:10px; } .dok-zeile .icon-knopf { flex:none; }
.dok-marke { font-size:12.5px; padding:2px 8px; border-radius:4px; line-height:1.45; white-space:nowrap; font-weight:500; background:#ebeae7; color:#4a4844; } /* Etiketten C */
.dok-marke.entwurf { background:#ebeae7; color:#4a4844; } .dok-marke.fertig { background:#e3eedb; color:#3d5e26; } .dok-marke.storno { background:#ebeae7; color:#888; text-decoration:line-through; }
.dok-arten { display:flex; flex-direction:column; gap:8px; } .dok-arten button { display:flex; justify-content:space-between; align-items:center; padding:14px 16px; border:1px solid #e3e3e3; background:#fafafa; border-radius:8px; font-weight:600; text-align:left; }
.dok-arten button:hover { background:#f0f0f0; }
.dok-kopf { gap:10px; } .dok-stand { color:var(--gruen); display:flex; } .dok-stand.laeuft { color:#999; } .dok-stand.fehler { color:var(--ampelrot); }
#dok-anh-n:not(:empty) { font-size:12px; background:var(--rot); color:#fff; border-radius:8px; padding:0 6px; }
.dok-seite { flex:1; min-height:0; display:grid; grid-template-columns:230px minmax(0, 1fr) 380px; gap:12px; }
.dok-nav { overflow-y:auto; padding:10px 0; font-size:14px; } .dok-nav-kopf { font-weight:600; padding:4px 16px 10px; }
.dok-nav a { display:block; padding:5px 16px 5px 26px; color:#333; cursor:pointer; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; } .dok-nav a:hover { background:#f4f4f4; text-decoration:none; }
.dok-nav a.titel { font-weight:600; padding-left:16px; } .dok-nav-titel { font-size:12px; letter-spacing:.5px; text-transform:uppercase; color:#666; padding:12px 16px 4px; }
.dok-nav-summe { display:flex; justify-content:space-between; padding:12px 16px 0; margin-top:10px; border-top:1px solid #eee; font-size:13px; text-transform:uppercase; letter-spacing:.4px; }
.dok-blatt { overflow-y:auto; padding:0 0 40px; }
.dok-karte { padding:20px 28px; border-bottom:1px solid #f0f0f0; } .dok-karte h2 { font-size:17px; }
.dok-kopf-form { grid-template-columns:2fr 1fr; } .dok-empf { display:block; width:100%; text-align:left; background:#f7f7f7; border:1px solid #e5e5e5; border-radius:8px; padding:12px 14px; font-weight:400; color:#111; line-height:1.5; }
.dok-texte textarea, .dok-anrede { width:100%; box-sizing:border-box; border:1px solid transparent; background:none; font:inherit; font-size:15px; padding:6px 8px; border-radius:6px; resize:vertical; }
.dok-texte textarea:hover, .dok-anrede:hover { border-color:#e3e3e3; } .dok-texte textarea:focus, .dok-anrede:focus { border-color:#bbb; background:#fff; outline:none; }
.dok-tabelle { padding:0 12px; }
.dok-pos { display:grid; grid-template-columns:18px 44px 70px 60px minmax(0, 1fr) 90px 100px 32px; gap:8px; align-items:start; padding:12px 8px; border-radius:6px; cursor:pointer; font-size:14.5px; }
.dok-pos:hover { background:#fafafa; } .dok-pos.kopf { background:#efefef; font-weight:600; cursor:default; border-radius:0; margin:0 -12px; padding:12px 20px; }
.dok-pos .dok-menge, .dok-pos .dok-preis, .dok-pos .dok-gesamt { text-align:right; } .dok-pos.titel { font-size:15px; } .dok-pos.titel .dok-pos-titel { grid-column:3 / 8; }
.dok-pos.text .dok-pos-text, .dok-pos.bild > div { grid-column:3 / 8; color:#333; } .dok-pos.bild img { max-height:140px; border-radius:6px; display:block; }
.dok-pos.markiert { box-shadow:inset 3px 0 0 var(--rot); } .dok-pos.alternativ { color:#777; } .dok-pos.zieht { opacity:.4; }
.dok-griff { color:#c4c4c4; cursor:grab; font-size:12px; letter-spacing:-2px; user-select:none; } .dok-pos .icon-knopf { width:28px; height:28px; opacity:0; } .dok-pos:hover .icon-knopf { opacity:1; }
.dok-lang ul { margin:4px 0 0; padding-left:18px; } .dok-lang { color:#333; font-size:14px; line-height:1.45; } .dok-pos-bild { max-height:90px; border-radius:6px; margin-top:6px; display:block; }
.dok-einfuegen { display:grid; grid-template-columns:1fr auto auto auto 1fr; gap:6px; align-items:center; height:8px; overflow:hidden; opacity:0; transition:height .1s, opacity .1s; }
.dok-einfuegen span { height:1px; background:#ddd; } .dok-einfuegen button { font-size:12px; padding:2px 8px; border-color:#ddd; color:#555; }
.dok-tabelle:hover .dok-einfuegen:hover, .dok-einfuegen.drueber { height:28px; opacity:1; } .dok-einfuegen.drueber span { background:var(--rot); height:2px; }
.dok-leer { padding:30px 10px; color:#777; text-align:center; }
.dok-pos-edit { background:#f6f6f6; border-radius:8px; padding:14px 16px; margin:4px 0; display:flex; flex-direction:column; gap:10px; }
.dok-pos-edit label { display:flex; flex-direction:column; gap:4px; font-size:13px; color:var(--grau); }
.dok-edit-zeile { display:grid; grid-template-columns:44px 80px 80px minmax(0, 1fr) 100px 110px; gap:8px; align-items:center; } .dok-edit-zeile .r, .dok-kalk .r { text-align:right; } .dok-edit-zeile .fett { font-weight:600; }
.dok-edit-optionen { display:flex; flex-direction:column; gap:0; padding-left:132px; } .dok-edit-optionen > .dok-toggle { padding:10px 0; border-top:1px solid #e6e6e6; }
.dok-unter { margin:0 0 10px; } textarea.dok-unter { width:100%; box-sizing:border-box; }
.dok-toggle { display:flex !important; flex-direction:row !important; align-items:center; gap:10px; cursor:pointer; color:#111 !important; font-size:14px !important; font-weight:500; }
.dok-toggle input { display:none; } .dok-toggle span { width:36px; height:20px; border-radius:10px; background:#bbb; position:relative; flex:none; transition:background .15s; }
.dok-toggle span::after { content:''; position:absolute; left:2px; top:2px; width:16px; height:16px; border-radius:50%; background:#fff; transition:left .15s; } .dok-toggle input:checked + span { background:var(--gruen); } .dok-toggle input:checked + span::after { left:18px; }
.dok-edit-fuss { display:flex; justify-content:flex-end; }
.dok-kalk { background:#fff; border:1px solid #e6e6e6; border-radius:8px; padding:12px; } .dok-kalk-titel { font-weight:600; font-size:13.5px; margin-bottom:6px; }
.dok-kalk-k { display:grid; grid-template-columns:120px 70px 70px minmax(0, 1fr) 90px 90px 28px; gap:6px; align-items:center; margin-bottom:6px; font-size:13.5px; } .dok-kalk-k.kopf { color:var(--grau); font-size:12.5px; }
.dok-kalk-k input, .dok-kalk-k select, .dok-kalk-v input { font-size:13.5px; padding:5px 7px; } .dok-kalk-wert { background:#f2f2f2; border-radius:5px; padding:5px 7px; }
.dok-kalk-v { display:grid; grid-template-columns:110px 90px 14px 80px 16px 14px 100px; gap:6px; align-items:center; margin-bottom:5px; font-size:13.5px; } .dok-kalk-v.summe { border-top:1px solid #eee; padding-top:6px; }
.dok-summen { background:#f7f7f7; margin:10px 20px; border-radius:10px; border:none; display:flex; flex-direction:column; gap:10px; }
.dok-summe-zeilen { align-self:flex-end; width:300px; display:flex; flex-direction:column; gap:4px; } .dok-summe-zeilen > div { display:flex; justify-content:space-between; font-size:14.5px; }
.dok-summe-zeilen .brutto { border-top:1px solid #ddd; padding-top:6px; margin-top:2px; } .dok-summe-zeilen button { align-self:flex-end; margin-top:8px; }
.dok-schalter { background:#fff; border-radius:8px; padding:12px 14px; }
.dok-rechts { display:flex; flex-direction:column; min-height:0; overflow:hidden; }
.dok-rechts-reiter { display:flex; gap:2px; padding:8px 8px 0; border-bottom:1px solid #eee; flex:none; } .dok-rechts-reiter button { border:none; background:none; padding:8px 10px; font-weight:600; color:#555; border-bottom:2px solid transparent; border-radius:0; }
.dok-rechts-reiter button.an { color:var(--rot); border-bottom-color:var(--rot); }
.dok-rechts-inhalt { flex:1; min-height:0; overflow-y:auto; padding:12px; display:flex; flex-direction:column; } .dok-rechts-inhalt > input { width:100%; box-sizing:border-box; }
.dok-baustein { display:flex; align-items:center; gap:10px; border:1px solid #e3e3e3; border-radius:8px; padding:10px 12px; margin-bottom:8px; cursor:pointer; background:#fff; } .dok-baustein:hover { border-color:#bbb; } .dok-baustein .rechts { font-size:18px; }
.dok-treffer { margin-top:8px; } .dok-treffer-z { display:flex; flex-direction:column; align-items:flex-start; width:100%; text-align:left; border:none; background:none; padding:8px 6px; border-bottom:1px solid #f0f0f0; border-radius:0; font-weight:400; }
.dok-treffer-z:hover { background:#f6f6f6; } .dok-treffer-z span { font-size:12.5px; color:var(--grau); }
.dok-bildwahl { display:grid; grid-template-columns:repeat(auto-fill, minmax(110px, 1fr)); gap:8px; } .dok-bildwahl.klein { grid-template-columns:repeat(3, 1fr); margin-bottom:10px; }
.dok-bildwahl button { padding:0; border:1px solid transparent; border-radius:8px; overflow:hidden; aspect-ratio:1; background:#f2f2f2; } .dok-bildwahl button:hover { border-color:var(--rot); } .dok-bildwahl img { width:100%; height:100%; object-fit:cover; display:block; }
.dok-chat { flex:1; min-height:0; margin:-12px; } .dok-chat .ch-titel { display:none; }
.dok-anh-gitter { display:grid; grid-template-columns:repeat(auto-fill, minmax(110px, 1fr)); gap:10px; max-height:55vh; overflow-y:auto; }
.dok-anh, .dok-anh-hoch { position:relative; border:2px solid #eee; border-radius:8px; aspect-ratio:1; display:flex; flex-direction:column; align-items:center; justify-content:center; overflow:hidden; cursor:pointer; background:#f7f7f7; font-size:12px; }
.dok-anh-hoch { border-style:dashed; gap:6px; } .dok-anh.an { border-color:var(--gruen); } .dok-anh input { position:absolute; top:6px; left:6px; z-index:2; width:18px; height:18px; }
.dok-anh img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; } .dok-anh-name { position:absolute; left:0; right:0; bottom:0; background:rgba(255,255,255,.9); padding:3px 5px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.dok-vorschau { flex:1; min-height:0; overflow:auto; display:flex; flex-direction:column; align-items:center; gap:16px; padding:10px 0 40px; position:relative; }
.dok-vorschau canvas { box-shadow:0 2px 12px rgba(0,0,0,.12); background:#fff; } .dok-zoom { position:sticky; top:0; z-index:5; background:#333; color:#fff; font-size:13px; padding:3px 12px; border-radius:6px; }

@media (max-width:1000px) { .dok-seite { grid-template-columns:1fr; } .dok-rechts { min-height:60vh; } .dok-edit-optionen { padding-left:0; } .dok-pos { grid-template-columns:14px 36px 54px 46px minmax(0, 1fr) 70px 80px 28px; font-size:13.5px; } }
.dok-baustein .rechts { margin-left:auto; color:#555; }
.dok-edit-optionen { padding-left:52px; } .dok-edit-zeile { grid-template-columns:40px 64px 66px minmax(0, 1fr) 88px 96px; }
.dok-pos-edit .dok-kalk label.haken { flex-direction:row; align-items:center; gap:6px; color:#111; font-size:13.5px; }
.dok-kalk-k { grid-template-columns:104px 58px 58px minmax(60px, 1fr) 76px 76px 26px; } .dok-kalk-v { grid-template-columns:96px 76px 12px 68px 14px 12px 86px; }
/* Dokumente 3.57: Einstellungen, Briefpapier, Editor-Feinschliff */
.dok-einst { max-width:1000px; } .dok-einst h1 { font-size:20px; margin:0 0 14px; }
.dok-einst-karte { background:#fff; border-radius:10px; padding:20px 22px; margin-bottom:14px; }
.dok-einst-kopf { display:flex; align-items:center; gap:12px; margin-bottom:12px; } .dok-einst-kopf h2 { margin:0; font-size:16px; } .dok-einst-kopf svg { color:#111; } .dok-einst-kopf .rechts { margin-left:auto; }
.dok-einst-werte { display:flex; flex-direction:column; gap:14px; padding-left:34px; } .dok-einst-werte.reihe { flex-direction:row; flex-wrap:wrap; gap:14px 40px; }
.dok-einst-werte span { display:block; font-size:11.5px; letter-spacing:.5px; text-transform:uppercase; color:#666; margin-bottom:3px; } .dok-einst-werte > div > div { font-size:15px; line-height:1.45; min-height:1.2em; }
.dok-einst-form { padding-left:34px; }
.dok-logo-kachel { display:inline-flex; border:1px solid #eee; border-radius:8px; padding:14px; } .dok-logo-kachel img { max-width:160px; max-height:90px; }
.dok-einst-info { display:flex; gap:10px; align-items:flex-start; background:#fff; border-radius:10px; padding:14px 18px; font-size:14px; margin-bottom:14px; } .dok-einst-info svg { flex:none; margin-top:1px; }
.dok-einst-info.blau { background:#eaf3fd; border:1px solid #9cc3ef; } .dok-einst-info.grau { background:#f4f4f4; }
.dok-zuschlag-form { display:flex; flex-direction:column; gap:10px; padding-left:34px; } .dok-zuschlag-form label { display:grid; grid-template-columns:200px 100px 20px; align-items:center; gap:8px; font-size:14.5px; } .dok-zuschlag-form input { text-align:right; }
.dok-einheiten { display:grid; grid-template-columns:repeat(3, 190px); gap:10px 0; padding-left:34px; font-size:14.5px; grid-auto-flow:column; grid-template-rows:repeat(10, auto); }
.dok-bp { display:grid; grid-template-columns:minmax(0, 1fr) minmax(320px, 520px); gap:16px; align-items:start; } .dok-bp-rechts { background:#fff; border-radius:10px; padding:12px; position:sticky; top:0; }
.dok-bp-vk { text-align:center; font-size:14px; margin-bottom:8px; } .dok-bp-vorschau { display:flex; justify-content:center; } .dok-bp-vorschau canvas { box-shadow:0 2px 10px rgba(0,0,0,.12); }
.dok-bp-warn { background:#fdf3d8; color:#9a6b00; border-radius:12px; padding:3px 12px; font-size:13px; font-weight:500; }
.dok-bp-hg { display:flex; flex-direction:column; align-items:center; gap:6px; font-size:13px; color:#555; }
.dok-bp-hg-bild { position:relative; width:150px; height:212px; border:1px solid #e3e3e3; border-radius:6px; overflow:hidden; background:#fafafa; display:flex; align-items:center; justify-content:center; }
.dok-bp-hg-bild img, .dok-bp-hg-bild canvas { width:100%; height:100%; object-fit:cover; } .dok-bp-hg-bild .icon-knopf { position:absolute; top:6px; right:6px; background:#fff; }
.dok-bp-hg-bild label { display:flex; flex-direction:column; align-items:center; gap:6px; cursor:pointer; color:#555; border:1.5px dashed #ccc; inset:8px; position:absolute; justify-content:center; border-radius:6px; }
.dok-beta { background:#dbeefb; color:#1b5e8c; font-size:11.5px; border-radius:8px; padding:1px 7px; }
.dok-nav-spalte { display:flex; flex-direction:column; gap:8px; min-height:0; } .dok-nav-spalte .dok-nav { flex:1; } .dok-nav-knopf { align-self:flex-start; }
.dok-seite.nav-zu { grid-template-columns:44px minmax(0, 1fr) 380px; } .dok-seite.nav-zu .dok-nav { display:none; }
.dok-nav a.gross { padding-left:16px; text-transform:uppercase; font-size:13px; letter-spacing:.4px; }
button.dok-nav-titel { display:flex; align-items:center; gap:6px; border:none; background:none; width:100%; text-align:left; font-weight:500; } button.dok-nav-titel.zu svg { transform:rotate(-90deg); }
.dok-empf-box { position:relative; } .dok-empf-weg { position:absolute; right:10px; top:50%; transform:translateY(-50%); color:var(--rot); }
.dok-beschr-kopf { display:flex; align-items:center; gap:4px; } .dok-beschr-kopf .icon-knopf { width:24px; height:24px; opacity:1 !important; }
.dok-pos.zwischensumme { cursor:default; font-size:14px; padding-top:4px; } .dok-pos.zwischensumme:hover { background:none; }
.dok-edit-fuss { gap:8px; }
.dok-lang-edit { border:1px solid #cfd8e6; border-radius:6px; background:#fff; } .dok-lang-edit:focus-within { border-color:#5b9be6; }
.dok-lang-werkzeug { display:flex; gap:2px; padding:4px; border-bottom:1px solid #eee; } .dok-lang-werkzeug button { border:none; background:none; padding:4px 6px; border-radius:5px; } .dok-lang-werkzeug button:hover { background:#f0f0f0; }
.dok-lang-feld { min-height:70px; padding:8px 10px; font-size:14px; line-height:1.5; outline:none; color:#111; } .dok-lang-feld ul { margin:0; padding-left:20px; }
.dok-aufmass { background:#fff; border:1px solid #e6e6e6; border-radius:8px; padding:10px; } .dok-aufmass-z { display:grid; grid-template-columns:minmax(0, 1fr) 160px 80px 28px; gap:6px; align-items:center; margin-bottom:6px; } .dok-aufmass .r { text-align:right; }
.dok-rechts-reiter button { display:flex; align-items:center; gap:6px; font-size:14px; } .dok-rechts-reiter button svg { width:17px; height:17px; }
.dok-suchfeld { display:flex; align-items:center; gap:8px; border:1.5px solid #c9d6ea; border-radius:8px; padding:0 10px; } .dok-suchfeld:focus-within { border-color:#4a8be0; } .dok-suchfeld input { border:none; outline:none !important; flex:1; padding:9px 0; }
.dok-such-reiter { display:flex; gap:2px; border-bottom:1px solid #eee; margin:10px 0 4px; } .dok-such-reiter button { border:none; background:none; border-bottom:2px solid transparent; border-radius:0; padding:8px 10px; font-weight:500; color:#555; } .dok-such-reiter button.an { color:#111; border-bottom-color:#111; }
.dok-ab-ordner { display:flex; align-items:center; gap:12px; width:100%; border:none; border-bottom:1px solid #f0f0f0; background:none; padding:12px 6px; border-radius:0; font-weight:400; text-align:left; } .dok-ab-ordner:hover { background:#f7f7f7; }
.dok-ab-ic { width:34px; height:34px; border-radius:8px; background:#f2f2f2; display:flex; align-items:center; justify-content:center; } .dok-ab-zurueck { display:flex; align-items:center; gap:6px; border:none; background:none; padding:4px 0 10px; font-weight:600; }
.dok-best-z { display:grid; grid-template-columns:22px minmax(0, 1fr) 80px 50px; gap:8px; align-items:center; padding:8px 4px; border-bottom:1px solid #f0f0f0; font-size:14px; } .dok-best-z .r { text-align:right; }
.dok-frist { font-size:14px; padding-bottom:10px; margin-bottom:10px; border-bottom:1px solid #eee; }
.tabelle .r, .tabelle th.r { text-align:right; }
/* Fuhrpark (3.58) */
.fz-filter { flex-wrap:wrap; gap:10px; } .fz-filter .segment a { text-decoration:none; }
.fz-kennz { font-family:ui-monospace, Menlo, monospace; letter-spacing:.5px; background:#f3f3f3; border:1px solid #ddd; border-radius:4px; padding:1px 6px; white-space:nowrap; }
.fz-ja { color:var(--gruen); font-weight:700; } tr.fz-weg td { color:#999; }
.einst-bereiche { display:flex; gap:4px; background:#ececec; border-radius:8px; padding:3px; margin:0 0 10px; } .einst-bereiche a { flex:1; text-align:center; padding:6px 8px; border-radius:6px; color:#555; font-weight:500; font-size:14px; text-decoration:none !important; }
.einst-bereiche a.an { background:#fff; color:#111; box-shadow:0 1px 2px rgba(0,0,0,.08); }
/* CRM in der echten App (3.59): eigener Abschnitt „Vertrieb“ in der Seitenleiste, nur für Admins */
.nur-crm { display:none; } body.crm .nur-crm { display:block; }
aside .ohne-recht { display:none !important; } /* Menüpunkte ohne Recht (Rollen & Rechte) */

/* Rollen & Rechte: Häkchen-Tabelle */
.rollen-tabelle { max-width:1200px; overflow-x:auto; }
.rollen-tabelle td, .rollen-tabelle th { vertical-align:middle; }
.rollen-tabelle td:first-child, .rollen-tabelle th:first-child { min-width:210px; }
.rollen-tabelle .rolle-spalte { text-align:center; min-width:84px; padding-left:4px; padding-right:4px; white-space:nowrap; }
.rollen-tabelle th.rolle-spalte { font-size:13px; }
.rollen-tabelle .rolle-kopf { display:flex; align-items:center; justify-content:center; gap:0; }
.rollen-tabelle .rolle-kopf .icon-knopf { padding:2px; }
.rollen-tabelle input[type=checkbox] { width:18px; height:18px; accent-color:var(--rot, #E40000); cursor:pointer; }
.rollen-tabelle input[type=checkbox]:disabled { cursor:not-allowed; opacity:.45; }
.rollen-tabelle .rechte-gruppe td { font-size:11px; text-transform:uppercase; letter-spacing:.8px; color:var(--grau); background:var(--hell); padding-top:14px; }

/* ---------- Seitenleiste unten (Dom 23.10.2026): Chat über dem Profilbild; Einstellungen und Feedback nur bei offener Leiste ---------- */
.seite-fuss { flex-wrap:wrap; }
.fuss-chat { flex:1 0 100%; display:flex; align-items:center; gap:12px; padding:9px 12px; margin:0 -4px 4px; border-radius:8px; color:#bbb; white-space:nowrap; }
.fuss-chat:hover, .fuss-chat.aktiv { background:#262626; color:#fff; text-decoration:none; }
.fuss-chat b { margin-left:auto; background:var(--rot); color:#fff; border-radius:9px; padding:0 7px; font-size:12px; font-weight:500; } .fuss-chat b:empty { display:none; }
.fuss-knopf .ic { width:21px; height:21px; flex-basis:21px; }
body.nav-zu .seite-fuss .fuss-knopf { display:none; }
body.nav-zu .fuss-chat { flex:none; justify-content:center; margin:0 0 6px; padding:10px; position:relative; }
body.nav-zu .fuss-chat b { position:absolute; top:4px; right:4px; padding:0; min-width:8px; height:8px; font-size:0; border-radius:50%; }

/* ---------- Firmen-Chat: Liste links, Verlauf rechts ---------- */
.cl { flex:1 1 auto; min-height:0; display:grid; grid-template-columns:340px 1fr; background:#fff; border:1px solid #e3e3e3; border-radius:10px; overflow:hidden; }
.cl-liste { display:flex; flex-direction:column; min-height:0; border-right:1px solid #e3e3e3; }
.cl-kopf { display:flex; align-items:center; justify-content:space-between; padding:14px 12px 8px 16px; } .cl-kopf h1 { margin:0; font-size:22px; }
.cl-suche { display:flex; align-items:center; gap:8px; margin:0 12px 8px; padding:0 10px; height:38px; background:#f2f2f2; border-radius:8px; color:#666; }
.cl-suche input { border:none; background:none; outline:none; flex:1; min-width:0; font:inherit; font-size:14.5px; padding:0; height:100%; }
.cl-zeilen { flex:1; min-height:0; overflow-y:auto; }
.cl-zeile { display:flex; align-items:center; gap:12px; padding:10px 14px; color:inherit; text-decoration:none; border-bottom:1px solid #f2f2f2; }
.cl-zeile:hover { background:#f7f7f7; text-decoration:none; } .cl-zeile.an { background:#efefef; }
.cl-av { width:44px !important; height:44px !important; font-size:15px; flex:none; }
.cl-av.klein { width:32px !important; height:32px !important; font-size:12px; } .cl-av.gross { width:56px !important; height:56px !important; font-size:18px; }
.cl-gruppe { display:inline-flex; align-items:center; justify-content:center; border-radius:50%; background:#1b1b1b; color:#fff; } .cl-gruppe svg { width:55%; height:55%; }
.cl-mitte { flex:1; min-width:0; display:flex; flex-direction:column; gap:3px; }
.cl-oben, .cl-unten { display:flex; align-items:center; gap:8px; min-width:0; }
.cl-oben b { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:15px; font-weight:600; }
.cl-zeit { font-size:12px; color:#777; flex:none; } .cl-zeit.neu { color:var(--rot); font-weight:600; }
.cl-vorschau { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:13.5px; color:#666; }
.cl-zahl { flex:none; min-width:20px; height:20px; padding:0 6px; border-radius:10px; background:var(--rot); color:#fff; font-size:12px; display:inline-flex; align-items:center; justify-content:center; }
.cl-chat { display:flex; flex-direction:column; min-height:0; background:#fff; }
.cl-leer { flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; color:#888; }
.cl-chat-kopf { flex:none; display:flex; align-items:center; gap:12px; padding:10px 12px; border-bottom:1px solid #e3e3e3; }
.cl-zurueck { display:none; }
.cl-titel { flex:1; min-width:0; display:flex; flex-direction:column; align-items:flex-start; background:none; border:none; padding:0; cursor:pointer; font:inherit; text-align:left; color:inherit; }
.cl-titel b { font-size:16px; } .cl-titel span { font-size:13px; color:#666; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:100%; }
.cl-verlauf { flex:1 1 auto; min-height:0; }
.cl-verlauf .ch-reiter { border-bottom:none; justify-content:flex-end; padding-top:6px; }
.cl-verlauf .ch-unten { border-radius:0; }
.cl-personen { max-height:50vh; overflow-y:auto; display:flex; flex-direction:column; }
.cl-person { display:flex; align-items:center; gap:10px; padding:8px 6px; border-radius:8px; cursor:pointer; background:none; border:none; font:inherit; color:inherit; text-align:left; width:100%; }
.cl-person:hover { background:#f4f4f4; } .cl-person > span:not(.cl-av):not(.marke) { flex:1; } .cl-person input { margin:0; }
.cl-neue-gruppe { margin-bottom:8px; font-weight:600; }
.cl-feld { display:flex; flex-direction:column; gap:4px; margin-bottom:10px; }
.cl-info-kopf { display:flex; align-items:center; gap:14px; margin-bottom:12px; } .cl-info-kopf h2 { margin:0 0 2px; }
.cl-beschreibung { margin:0 0 12px; white-space:pre-wrap; }
.cl-info-titel { display:flex; align-items:center; justify-content:space-between; margin:6px 0 4px; }
.cl-links .ch-link, .ch-links .ch-link { display:flex; align-items:center; gap:10px; padding:10px 6px; border-bottom:1px solid #f0f0f0; }
.ch-link a { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; } .ch-link > span { font-size:12.5px; color:#777; flex:none; }
@media (max-width:760px) {
  .cl { grid-template-columns:1fr; border:none; border-radius:0; }
  .cl.mit-chat .cl-liste { display:none; } .cl:not(.mit-chat) .cl-chat { display:none; }
  .cl-zurueck { display:inline-flex; }
  .ch-link > span { display:none; }
}
@media (max-width:1100px) { .cl { flex:none; height:calc(100dvh - 90px); } }
@media (max-width:760px) { .cl { position:fixed; left:0; right:0; bottom:0; top:57px; height:auto; z-index:5; } }
.cl-liste, .cl-chat { min-width:0; }
/* Sprachnachricht und Video im Verlauf */
.ch-sprache { display:flex; flex-direction:column; gap:4px; margin:2px 0 4px; } .ch-sprache audio { width:260px; max-width:100%; height:40px; }
.ch-transkript { font-size:13.5px; color:#444; line-height:1.45; border-left:2px solid #ccc; padding-left:8px; max-width:320px; }
.ch-video { position:relative; display:flex; align-items:center; justify-content:center; width:240px; min-height:140px; max-height:300px; padding:0; border:none; border-radius:6px; margin:2px 0 4px; background:#222; overflow:hidden; cursor:pointer; }
.ch-video img { display:block; width:100%; max-height:300px; object-fit:cover; }
.ch-play { position:absolute; inset:0; margin:auto; width:52px; height:52px; border-radius:50%; background:rgba(0,0,0,.55); color:#fff; display:flex; align-items:center; justify-content:center; padding-left:3px; }
.ch-play svg { fill:#fff; stroke:none; } .ch-video:hover .ch-play { background:rgba(0,0,0,.75); }
/* Mikrofon statt Senden, solange nichts getippt ist (wie WhatsApp) */
.ch-eingabe.mit-mikro:not(.hat-text) .ch-senden { display:none; }
.ch-eingabe.hat-text .ch-mikro { display:none; }
.ch-aufnahme { display:flex; align-items:center; gap:10px; padding:12px; }
.ch-aufnahme > .pa-knopf { height:42px; width:42px; padding:0; flex:none; }
.ch-auf-punkt { width:10px; height:10px; border-radius:50%; background:var(--rot); animation:chPuls 1s infinite; flex:none; } @keyframes chPuls { 50% { opacity:.3; } }
#ch-auf-zeit { font-variant-numeric:tabular-nums; font-weight:600; flex:none; }
.ch-auf-text { flex:1; min-width:0; color:#666; font-size:13.5px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
/* Aufgaben 3.63: automatisch, Status, Board, Kalender, Kommentare mit Datei */
.auf-auto { display:inline-flex; align-items:center; gap:3px; color:#7a7a7a; font-size:12px; } .auf-auto .ic, .auf-erstellt .ic { width:12px; height:12px; vertical-align:-2px; }
.auf-status { display:inline-block; font-size:12px; font-weight:500; padding:1px 8px; border-radius:10px; background:#eee; color:#555; }
.auf-status.in_arbeit { background:#e8f1fd; color:#1f5fae; } .auf-status.warten { background:#fff1e0; color:#8a4b00; } .auf-status.erledigt { background:#e6f4ea; color:#1e6b34; }
.auf-sicht button { display:inline-flex; align-items:center; gap:6px; } .auf-sicht .ic { width:16px; height:16px; }
@media (max-width:760px) { .auf-sicht span { display:none; } }
.auf-board { display:grid; grid-template-columns:repeat(4, minmax(220px, 1fr)); gap:14px; overflow-x:auto; padding-bottom:10px; align-items:start; }
.auf-spalte { background:#f4f4f4; border-radius:10px; padding:10px; min-height:200px; border:1px solid transparent; } .auf-spalte.drueber { border-color:var(--rot); background:#fdf2f2; }
.auf-spalte-kopf { display:flex; align-items:center; gap:8px; margin:0 2px 10px; }
.auf-karten { display:flex; flex-direction:column; gap:8px; } .auf-karten-leer { color:#aaa; font-size:13px; text-align:center; padding:24px 0; border:1px dashed #d4d4d4; border-radius:8px; }
.auf-karte { background:#fff; border-radius:8px; padding:10px 12px; box-shadow:0 1px 2px rgba(0,0,0,.08); cursor:pointer; border-left:3px solid #d4d4d4; }
.auf-karte.p1 { border-left-color:#d93025; } .auf-karte.p2 { border-left-color:#ef8a17; } .auf-karte.p3 { border-left-color:#2f7de1; }
.auf-karte:hover { box-shadow:0 2px 8px rgba(0,0,0,.12); } .auf-karte.zieht { opacity:.4; } .auf-karte.erledigt .auf-karte-titel { text-decoration:line-through; color:var(--grau); }
.auf-karte-titel { font-weight:500; line-height:1.35; } .auf-karte-bezug { margin-top:3px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.auf-karte-fuss { display:flex; align-items:center; gap:8px; margin-top:8px; font-size:13px; } .auf-karte-wer { margin-left:auto; } .auf-karte-fuss .avatar-kreis, .auf-karte-fuss .avatar-bild { width:22px; height:22px; font-size:10px; }
.akal-kopf { display:flex; align-items:center; gap:8px; margin:4px 0 10px; } .akal-kopf h2 { margin:0; min-width:170px; text-align:center; font-size:18px; }
.akal { display:grid; grid-template-columns:repeat(7, minmax(0, 1fr)); border-top:1px solid var(--linie); border-left:1px solid var(--linie); background:#fff; border-radius:8px; overflow:hidden; }
.akal-wt { font-size:12px; color:var(--grau); text-transform:uppercase; letter-spacing:.6px; padding:6px 8px; border-right:1px solid var(--linie); border-bottom:1px solid var(--linie); background:#fafafa; }
.akal-tag { min-height:112px; padding:4px 5px 6px; border-right:1px solid var(--linie); border-bottom:1px solid var(--linie); display:flex; flex-direction:column; gap:3px; min-width:0; }
.akal-tag.anders { background:#fafafa; } .akal-tag.anders .kal-nr { color:#bbb; } .akal-tag.we { background:#fcfcfc; } .akal-tag.drueber { background:#fdf2f2; outline:2px solid var(--rot); outline-offset:-2px; }
.kal-nr { font-size:13px; color:#555; padding:2px 4px; align-self:flex-start; border-radius:12px; } .akal-tag.heute .kal-nr { background:var(--rot); color:#fff; font-weight:600; }
.kal-auf { font-size:12px; line-height:1.3; padding:3px 6px; border-radius:5px; background:#f1f1f1; border-left:3px solid #c8c8c8; cursor:pointer; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.kal-auf.p1 { border-left-color:#d93025; } .kal-auf.p2 { border-left-color:#ef8a17; } .kal-auf.p3 { border-left-color:#2f7de1; } .kal-auf:hover { background:#e7e7e7; }
.kal-auf.ueber { background:#fdecea; } .kal-auf.erledigt { color:#999; text-decoration:line-through; } .kal-auf.mehr { display:none; } .akal-tag.offen .kal-auf.mehr { display:block; }
.kal-auf .ic { width:11px; height:11px; vertical-align:-1px; } .kal-mehr { font-size:12px; align-self:flex-start; padding:0 4px; }
.auf-k-feld { flex:1; border:1px solid var(--linie); border-radius:8px; padding:6px 8px; } .auf-kommentar.neu.ziehen .auf-k-feld { border-color:var(--rot); background:#fdf2f2; }
.auf-k-feld textarea, .auf-k-edit { width:100%; border:none; resize:none; background:transparent; font:inherit; padding:4px 0; } .auf-k-feld textarea:focus, .auf-k-edit:focus { outline:none; }
.auf-k-edit { border:1px solid var(--linie); border-radius:6px; padding:6px 8px; }
.auf-k-leiste { display:flex; align-items:center; justify-content:flex-end; gap:6px; margin-top:4px; } .auf-k-leiste [data-kdatei] { margin-right:auto; }
.auf-k-datei { display:flex; align-items:center; gap:6px; font-size:13px; background:#f4f4f4; border-radius:6px; padding:4px 8px; margin:4px 0; }
.auf-feld-wert .auf-chip { white-space:nowrap; }
.auf-chip-x { border:none; background:none; padding:0 2px; color:#888; cursor:pointer; font-size:12px; }
.auf-k-inhalt { flex:1; min-width:0; } .auf-k-bild img { display:block; max-width:260px; max-height:200px; border-radius:6px; margin-top:6px; border:1px solid var(--linie); }
.auf-k-anhang { display:inline-flex; align-items:center; gap:8px; margin-top:6px; padding:6px 10px; border:1px solid var(--linie); border-radius:8px; color:var(--schwarz); } .auf-k-anhang:hover { background:var(--hell); text-decoration:none; }

/* Aufgaben-Woche 3.64: Zeitraster mit Blöcken */
.akal-kopf .kal-art { margin-right:8px; }  .akal-kopf .kal-art.rechts { margin-left:auto; margin-right:0; } .akal-kopf h2 .klein-text { font-weight:400; margin-left:6px; }
.wo { background:#fff; border:1px solid var(--linie); border-radius:8px; overflow:hidden; user-select:none; }
.wo-kopf, .wo-ganz-zeile, .wo-raster { display:grid; }
.wo-tagkopf { text-align:center; padding:8px 4px 6px; border-left:1px solid var(--linie); font-size:12px; color:var(--grau); text-transform:uppercase; letter-spacing:.5px; }
.wo-tagkopf b { display:block; font-size:20px; color:var(--schwarz); font-weight:500; letter-spacing:0; } .wo-tagkopf.heute b { color:var(--rot); }
.wo-ganz-zeile { border-top:1px solid var(--linie); border-bottom:2px solid var(--linie); }
.wo-ecke { font-size:11px; color:var(--grau); padding:6px 4px; text-align:right; }
.wo-ganz { border-left:1px solid var(--linie); padding:3px; min-height:30px; display:flex; flex-direction:column; gap:2px; min-width:0; }
.wo-chip { font-size:12px; padding:3px 6px; border-radius:5px; background:#f1f1f1; border-left:3px solid #c8c8c8; cursor:grab; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; touch-action:none; }
.wo-raster { max-height:calc(100vh - 330px); min-height:360px; overflow-y:auto; }
.wo-stunden div { position:relative; font-size:11px; color:var(--grau); text-align:right; padding-right:6px; } .wo-stunden span { position:relative; top:-7px; }
.wo-stunden div:first-child span { visibility:hidden; }
.wo-spalte { position:relative; border-left:1px solid var(--linie); background-image:linear-gradient(to bottom, var(--linie) 1px, transparent 1px); cursor:copy; }
.wo-spalte.we { background-color:#fcfcfc; } .wo-spalte.heute { background-color:#fffafa; }
.wo-block { position:absolute; border-radius:6px; background:#eef4fd; border-left:3px solid #2f7de1; padding:2px 6px; font-size:12px; line-height:1.3; overflow:hidden; cursor:grab; box-shadow:0 1px 2px rgba(0,0,0,.08); touch-action:none; }
.wo-block.p1, .wo-chip.p1 { background:#fdecea; border-left-color:#d93025; } .wo-block.p2, .wo-chip.p2 { background:#fef1e2; border-left-color:#ef8a17; } .wo-block.p3, .wo-chip.p3 { background:#e8f1fd; border-left-color:#2f7de1; }
.wo-block.p4 { background:#f1f1f1; border-left-color:#9a9a9a; }
.wo-block.erledigt, .wo-chip.erledigt { opacity:.55; } .wo-block.erledigt .wo-titel, .wo-chip.erledigt { text-decoration:line-through; }
.wo-block.ueber { box-shadow:inset 0 0 0 1px #d93025; } .wo-block.zieht, .wo-chip.zieht { opacity:.35; }
.wo-zeit { font-size:11px; color:#555; } .wo-titel { font-weight:500; } .wo-bezug { font-size:11px; color:#666; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.wo-block .ic, .wo-chip .ic { width:11px; height:11px; vertical-align:-1px; }
.wo-griff { position:absolute; left:0; right:0; bottom:0; height:7px; cursor:ns-resize; }
.wo-geist { position:absolute; left:2px; right:2px; border:2px dashed var(--rot); background:rgba(228,0,0,.06); border-radius:6px; font-size:11px; padding:2px 6px; pointer-events:none; color:var(--rot); overflow:hidden; z-index:3; }
.wo-ganz .wo-geist { position:static; }
.wo-jetzt { position:absolute; left:0; right:0; height:2px; background:var(--rot); z-index:2; pointer-events:none; } .wo-jetzt::before { content:''; position:absolute; left:-5px; top:-4px; width:10px; height:10px; border-radius:50%; background:var(--rot); }

/* ---------- Markdown in Chats und Kommentaren ---------- */
.md > div { min-height:1.2em; } .md .md-luecke { height:.5em; min-height:0; }
.md ul, .md ol { margin:2px 0; padding-left:22px; } .md li { margin:1px 0; }
.md .md-h1 { font-size:1.35em; font-weight:700; margin:4px 0 2px; } .md .md-h2 { font-size:1.18em; font-weight:700; margin:4px 0 2px; } .md .md-h3 { font-weight:700; margin:2px 0; }
.md .md-zitat { border-left:3px solid #bbb; padding-left:8px; color:#555; }
.md code { background:rgba(0,0,0,.07); border-radius:4px; padding:0 4px; font-size:.92em; font-family:ui-monospace, Menlo, monospace; }
.md .md-code { background:rgba(0,0,0,.06); border-radius:6px; padding:8px 10px; margin:4px 0; font-size:13px; white-space:pre-wrap; overflow-wrap:anywhere; font-family:ui-monospace, Menlo, monospace; }
.md .md-linie { border:none; border-top:1px solid #ccc; margin:6px 0; }
.md ul.md-todo { list-style:none; padding-left:2px; } .md-todo li { display:flex; align-items:flex-start; gap:8px; } .md-todo li.erledigt > span:last-child { color:#888; text-decoration:line-through; }
.md-kasten { flex:none; width:16px; height:16px; margin-top:2px; border:1.6px solid #888; border-radius:4px; background:#fff; padding:0; cursor:default; display:inline-flex; align-items:center; justify-content:center; }
button.md-kasten { cursor:pointer; } button.md-kasten:hover { border-color:#111; }
.md-kasten.an { background:var(--rot); border-color:var(--rot); } .md-kasten.an::after { content:''; width:8px; height:4px; border:2px solid #fff; border-top:none; border-right:none; transform:rotate(-45deg) translate(1px,-1px); }
/* ---------- Firmen-Chat: angeheftete Chats als Kacheln, Gruppenbild ---------- */
.cl-pins { display:flex; justify-content:center; gap:6px; padding:2px 10px 10px; border-bottom:1px solid #eee; } .cl-pins > .cl-pin { flex:0 1 25%; } .cl-pin.zieht { opacity:.4; } .cl-pin[draggable] { cursor:grab; } /* mittig; ziehen = Reihenfolge (Dom 27.10.2026) */ .cl-pins[hidden] { display:none; }
.cl-pin { display:flex; flex-direction:column; align-items:center; gap:5px; padding:8px 4px; border-radius:10px; color:inherit; text-decoration:none; min-width:0; }
.cl-pin:hover { background:#f4f4f4; text-decoration:none; } .cl-pin.an { background:#efefef; }
.cl-pin-bild { position:relative; } .cl-pin-bild .cl-zahl { position:absolute; top:-4px; right:-6px; border:2px solid #fff; }
.cl-pin-name { font-size:12.5px; font-weight:500; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
img.cl-av { object-fit:cover; border-radius:50%; }
.cl-bild-wahl { background:none; border:none; padding:0; cursor:pointer; border-radius:50%; flex:none; } .cl-bild-wahl:hover { opacity:.85; }
.cl-neu-kopf { display:flex; gap:14px; align-items:flex-start; margin-bottom:6px; } .cl-neu-felder { flex:1; min-width:0; }
.cl-feld textarea { resize:none; font:inherit; }
/* ---------- Eingabe mit Markdown wie Notion (mdFeld): Zeilen-Arten sieht man direkt beim Tippen ---------- */
.md-feld { position:relative; outline:none; overflow-wrap:anywhere; cursor:text; }
.md-feld.md-leer::before { content:attr(data-platzhalter); color:#999; pointer-events:none; position:absolute; top:var(--md-oben, auto); left:var(--md-links, auto); }
.ch-editor { --md-oben:10px; --md-links:12px; } .md-eingabe.auf-detail-notiz { --md-oben:6px; --md-links:38px; } .auf-k-feld .md-eingabe { --md-oben:2px; --md-links:2px; }
.md-feld > div { min-height:1.45em; }
.md-feld > .ed-li, .md-feld > .ed-ol { position:relative; padding-left:22px; }
.md-feld > .ed-li::before { content:'•'; position:absolute; left:7px; }
.md-feld { counter-reset:mdnr; } .md-feld > :not(.ed-ol) { counter-reset:mdnr; } .md-feld > .ed-ol { counter-increment:mdnr; }
.md-feld > .ed-ol::before { content:counter(mdnr) '.'; position:absolute; left:2px; font-variant-numeric:tabular-nums; }
.md-feld > .ed-todo { position:relative; padding-left:26px; }
.md-feld > .ed-todo::before { content:''; position:absolute; left:2px; top:.2em; width:15px; height:15px; border:1.6px solid #888; border-radius:4px; background:#fff; box-sizing:border-box; cursor:pointer; }
.md-feld > .ed-todo.an::before { background:var(--rot); border-color:var(--rot); }
.md-feld > .ed-todo.an::after { content:''; position:absolute; left:6.5px; top:calc(.2em + 3.5px); width:7px; height:3.5px; border:2px solid #fff; border-top:none; border-right:none; transform:rotate(-45deg); pointer-events:none; }
.md-feld > .ed-todo.an { color:#888; text-decoration:line-through; }
.md-feld > .ed-h1 { font-size:1.5em; font-weight:700; line-height:1.3; } .md-feld > .ed-h2 { font-size:1.22em; font-weight:700; line-height:1.35; } .md-feld > .ed-h3 { font-size:1.04em; font-weight:600; color:#444; }
.md-feld > .ed-zitat { border-left:3px solid #bbb; padding-left:10px; color:#555; }
.md-eingabe { width:100%; box-sizing:border-box; min-height:58px; padding:8px 10px; border:1px solid #cfcfcf; border-radius:6px; background:#fff; line-height:1.45; color:var(--schwarz); }
.md-eingabe:focus { border-color:#999; }
.md-eingabe.auf-detail-notiz { border:none; padding:6px 0 6px 38px; min-height:0; background:transparent; color:#444; }
.auf-k-feld .md-eingabe { border:none; padding:2px; min-height:22px; background:transparent; }
.md-feld.ch-editor { min-height:42px; box-sizing:border-box; }
/* ---------- Firmen-Chat am Laptop: schmaler Seitenrand wie im Dokumenten-Editor, größere Bilder ---------- */
main.chat-seite { padding:8px 10px 10px; } body.beta-umgebung main.chat-seite { padding-top:30px; }
.cl-verlauf .ch-n { max-width:72%; }
.cl-verlauf .ch-bild { max-width:min(440px, 100%); max-height:440px; }
.cl-verlauf .ch-video { width:min(340px, 100%); max-height:400px; } .cl-verlauf .ch-video img { max-height:400px; }
/* Projekt-Verweis (#) */
a.ch-projekt { display:inline-block; background:#fdecec; color:var(--rot); border-radius:6px; padding:0 6px; font-weight:500; text-decoration:none; } a.ch-projekt:hover { background:#fbd9d9; text-decoration:none; }
.ch-marke.ch-projekt { background:#fdecec; color:var(--rot); }
/* Anhänge warten über dem Eingabefeld */
.ch-wartend { display:flex; gap:8px; padding:10px 12px 0; flex-wrap:wrap; }
.ch-w { position:relative; width:84px; height:84px; border-radius:8px; overflow:hidden; background:#fff; border:1px solid #ddd; flex:none; }
.ch-w img { width:100%; height:100%; object-fit:cover; display:block; }
.ch-w-datei { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; height:100%; padding:6px; font-size:11px; text-align:center; overflow:hidden; } .ch-w-datei span { overflow:hidden; text-overflow:ellipsis; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; word-break:break-all; }
.ch-w button { position:absolute; top:4px; right:4px; width:22px; height:22px; border-radius:50%; border:none; background:rgba(0,0,0,.6); color:#fff; font-size:11px; cursor:pointer; display:flex; align-items:center; justify-content:center; padding:0; }
/* Bearbeiten-Leiste */
.ch-antwort.bearbeiten div { border-left-color:var(--rot); }
.ch-bearbeitet { font-style:italic; margin-right:4px; }
/* Reaktionen wie WhatsApp: unten links an der Blase */
.ch-blase { position:relative; }
.ch-n:has(.ch-reakt) { margin-bottom:12px; }
.ch-reakt { position:absolute; left:8px; bottom:-14px; display:flex; gap:3px; }
.ch-reakt button { display:inline-flex; align-items:center; gap:3px; height:24px; padding:0 7px; border-radius:12px; border:1px solid #e2e2e2; background:#fff; font-size:13px; cursor:pointer; box-shadow:0 1px 2px rgba(0,0,0,.08); }
.ch-reakt button span { font-size:11.5px; color:#555; } .ch-reakt button.meins { border-color:var(--rot); background:#fdf2f2; }
.ch-aktion button[data-reakt] { font-size:14px; line-height:1; }
.ch-emoji-wahl { position:fixed; z-index:80; display:flex; gap:4px; padding:6px 8px; background:#fff; border-radius:30px; box-shadow:0 6px 22px rgba(0,0,0,.18); }
.ch-emoji-wahl button { width:46px; height:46px; border:none; background:none; border-radius:50%; font-size:28px; cursor:pointer; } .ch-emoji-wahl button:hover { background:#f2f2f2; transform:scale(1.12); }
/* Dokumenten-Editor 3.66 (Dom 23.10.2026, wie plancraft): A4-Blatt mittig, beschreibbare Felder grau, Griffe nur beim Darüberfahren */
.dok-seite { grid-template-columns:230px minmax(0, 1fr) 340px; gap:18px; }
.dok-seite.nav-zu { grid-template-columns:52px minmax(0, 1fr) 340px; }
.dok-nav-spalte { gap:0; } .dok-nav-kopf { display:flex; align-items:center; justify-content:space-between; padding:0 8px 8px 16px; }
.dok-seite.nav-zu .dok-nav { display:block; flex:none; padding:6px 0; } .dok-seite.nav-zu .dok-nav > :not(.dok-nav-kopf), .dok-seite.nav-zu .dok-nav-kopf span { display:none; }
.dok-seite.nav-zu .dok-nav-kopf { padding:0; justify-content:center; } .dok-seite.nav-zu #dok-nav-auf svg { transform:scaleX(-1); }
.dok-blatt { overflow-y:auto; padding:4px 6px 60px; background:none; }
.dok-a4 { position:relative; width:100%; max-width:794px; min-height:1123px; margin:0 auto; background:#fff; box-shadow:0 1px 4px rgba(0,0,0,.10); border-radius:3px; padding:30px 0 50px; box-sizing:border-box; }
.dok-a4 .dok-karte { padding:16px 52px; border-bottom:none; } .dok-a4 .dok-tabelle { padding:0 40px; } .dok-a4 .dok-pos.kopf { margin:0 -40px; padding:10px 52px; }
.dok-a4 input:not([type=checkbox]):not([type=radio]), .dok-a4 select, .dok-a4 textarea, .dok-a4 .dok-empf { background:#f2f3f5; border:1px solid transparent; border-radius:6px; }
.dok-a4 input:not([type=checkbox]):not([type=radio]):hover, .dok-a4 textarea:hover, .dok-a4 select:hover { border-color:#e0e2e6; }
.dok-a4 input:not([type=checkbox]):not([type=radio]):focus, .dok-a4 textarea:focus, .dok-a4 select:focus { background:#fff; border-color:#9db8e0; outline:none; }
.dok-texte textarea { resize:none; overflow:hidden; min-height:0; line-height:1.5; } .dok-texte .dok-anrede { margin-bottom:6px; }
.dok-griff { opacity:0; color:#9a9a9a; cursor:grab; display:flex; align-items:center; justify-content:center; transition:opacity .1s; } .dok-pos:hover .dok-griff, .dok-baustein:hover .dok-griff { opacity:1; }
.dok-griff:active { cursor:grabbing; }
.dok-ziel-linie { position:absolute; height:3px; background:var(--rot); border-radius:2px; pointer-events:none; z-index:3; }
.dok-pos.ziel-kalk { outline:2px dashed var(--rot); outline-offset:-2px; background:#fdf2f2; }
.dok-pos.ziel-kalk::after { content:'in die Kalkulation'; position:absolute; right:12px; top:4px; font-size:11px; color:var(--rot); font-weight:600; }
.dok-pos { position:relative; }
.dok-leer { border:1.5px dashed #ddd; border-radius:8px; margin:10px 0; padding:26px 10px; }
.dok-bild-leer { display:block; border:1.5px dashed #d4d4d4; border-radius:8px; padding:26px 10px; text-align:center; color:#888; font-size:13px; }
.dok-summen { background:none; margin:0; border-radius:0; gap:6px; }
.dok-summe-zeilen { width:320px; } .dok-summe-zeilen button { align-self:flex-end; background:#f2f3f5; border-color:transparent; color:#555; }
.dok-bedingungen { display:block; width:100%; text-align:left; border:1px solid transparent; background:none; font-weight:400; color:#111; padding:8px 10px; margin:8px -10px 0; border-radius:6px; line-height:1.55; white-space:normal; font-size:14.5px; }
.dok-bedingungen:hover { background:#f6f7f8; border-color:#e6e8eb; } .dok-summen.offen .dok-bedingungen { background:#f6f7f8; }
.dok-einst-box { background:#f6f7f8; border-radius:8px; padding:10px; display:flex; flex-direction:column; gap:8px; }
.dok-rechts { background:#fff; border:none; border-radius:12px; box-shadow:0 1px 4px rgba(0,0,0,.08); align-self:start; max-height:100%; }
.dok-rechts-reiter { border-bottom:1px solid #f0f0f0; } .dok-rechts-inhalt { padding:14px; }
.dok-baustein { border:none; background:#f6f7f8; padding:11px 12px; margin-bottom:6px; font-weight:500; cursor:pointer; } .dok-baustein:hover { background:#eef0f2; }
.dok-baustein .dok-griff { width:12px; } .dok-hinweis { margin:10px 2px 0; line-height:1.45; }
.dok-treffer-z { cursor:grab; }
.dok-kopf > .rechts { margin-left:auto; } /* Knöpfe oben rechts wie plancraft */
.dok-rechts-reiter { gap:0; padding:6px 6px 0; } .dok-rechts-reiter button { padding:8px 8px; font-size:13.5px; gap:5px; flex:1; justify-content:center; }

/* Dokumenten-Editor 3.67 – nach plancraft-Screenshots (Dom 23.10.2026): schmale Ränder, weißes Blatt, graue Felder, schwarzer Rahmen = in Bearbeitung */
main.dok-app { padding:8px 10px 10px; } main.dok-app .pa-kopf { margin:0 0 10px; }
.dok-seite { grid-template-columns:250px minmax(560px, 920px) minmax(300px, 1fr); gap:8px; }
.dok-seite.nav-zu { grid-template-columns:38px minmax(560px, 920px) minmax(300px, 1fr); }
.dok-nav { border-radius:8px; padding:12px 0; align-self:start; max-height:100%; } .dok-nav-kopf { padding:0 10px 10px 14px; border-bottom:1px solid #eee; margin-bottom:8px; }
.dok-seite.nav-zu .dok-nav { background:#fff; border:1px solid #ddd; border-radius:8px; padding:0; width:38px; height:38px; display:flex; align-items:center; justify-content:center; }
.dok-seite.nav-zu .dok-nav-kopf { border:none; margin:0; }
.dok-blatt { padding:0 0 30px; } .dok-a4 { max-width:none; min-height:100%; border-radius:8px; box-shadow:none; border:1px solid #e8e8e8; padding:0 0 40px; }
.dok-a4 .dok-karte { padding:22px 32px; } #dok-kopfkarte { border-bottom:1px solid #eee; padding-bottom:30px; }
#dok-kopfkarte h2 { font-size:16px; font-weight:700; } 
.dok-kopf-form { grid-template-columns:minmax(0, 3fr) minmax(0, 1fr); gap:16px 16px; } .dok-kopf-form label, .dok-kopf-form .feld-gruppe { font-size:14px; color:#111; gap:8px; }
.dok-a4 .dok-kopf-form input, .dok-a4 .dok-kopf-form select, .dok-a4 .dok-empf { background:#f7f7f7; border:1px solid #dcdcdc; border-radius:6px; min-height:38px; padding:8px 12px; font-size:14px; }
.dok-a4 .dok-empf { padding:14px 16px; }
/* Texte sind weiß wie auf dem Papier; beim Draufklicken schwarzer Rahmen */
.dok-a4 .dok-texte { padding:28px 64px; } .dok-a4 .dok-texte textarea, .dok-a4 .dok-texte .dok-anrede { background:#fff; border:1px solid transparent; border-radius:8px; padding:8px 10px; font-size:14.5px; }
.dok-a4 .dok-texte textarea:hover, .dok-a4 .dok-texte .dok-anrede:hover { border-color:#e4e4e4; background:#fff; } .dok-a4 .dok-texte textarea:focus, .dok-a4 .dok-texte .dok-anrede:focus { border-color:#111; background:#fff; }
.dok-a4 .dok-texte .dok-anrede { margin-bottom:28px; }
/* Leistungsverzeichnis */
.dok-a4 .dok-tabelle { padding:0 18px; } .dok-a4 .dok-pos.kopf { margin:0 -18px 14px; padding:18px 18px; background:#f2f2f2; font-weight:700; font-size:14.5px; }
.dok-pos { grid-template-columns:22px 56px 62px 70px minmax(0, 1fr) 96px 104px 30px; gap:8px; padding:16px 10px; border:1px solid transparent; border-radius:8px; font-size:14.5px; }
.dok-pos:hover { background:#fff; border-color:#111; } .dok-pos.kopf:hover, .dok-pos.zwischensumme:hover { border-color:transparent; }
.dok-pos .dok-nr { padding-left:4px; } .dok-kurz { line-height:1.45; } .dok-platzhalter { color:#b4b4b4; } .dok-lang { margin-top:4px; }
.dok-preis, .dok-gesamt { display:flex; flex-direction:column; align-items:flex-end; gap:6px; }
.dok-pille { display:inline-block; background:#4a4a4a; color:#fff; font-size:11.5px; font-weight:700; line-height:1.25; padding:4px 8px; border-radius:7px; text-align:right; max-width:92px; }
.dok-pos.alternativ { color:#111; } .dok-pos.markiert { box-shadow:none; }
.dok-pos .icon-knopf { width:26px; height:26px; }
/* Position in Bearbeitung: schwarzer Rahmen, oben grau mit den Feldern, darunter Schalter-Zeilen mit Trennlinien */
.dok-pos-edit { background:#fff; border:1px solid #222; border-radius:8px; padding:8px 12px 12px; margin:6px 0; gap:0; }
.dok-edit-oben { display:grid; grid-template-columns:56px 76px 92px minmax(0, 1fr) 96px 104px 30px; gap:8px; align-items:start; background:#f4f4f4; border-radius:6px; padding:10px 10px 12px; }
.dok-edit-oben input, .dok-edit-zeilen input:not([type=checkbox]):not([type=radio]), .dok-edit-zeilen select { background:#fff !important; border:1px solid #dcdcdc !important; border-radius:6px; padding:7px 10px; font-size:14px; min-height:36px; box-sizing:border-box; width:100%; }
.dok-edit-oben input[readonly] { background:#ececec !important; color:#999; } .dok-edit-oben .r, .dok-kalk .r { text-align:right; }
.dok-edit-oben .dok-nr { padding-top:8px; } .dok-edit-beschr { display:flex; flex-direction:column; gap:8px; } .dok-edit-beschr .dok-toggle { font-size:14px !important; }
.dok-edit-preis { display:flex; flex-direction:column; align-items:center; gap:8px; }
.dok-edit-zeilen { padding:0 10px; } .dok-edit-z { border-top:1px solid #e2e2e2; padding:14px 0; } .dok-edit-z:first-child { border-top:none; }
.dok-edit-z.reihe { display:flex; align-items:center; gap:18px; } .dok-edit-z.reihe select { width:190px !important; }
.dok-lang-edit { border:1px solid #9db8e0; border-radius:6px; background:#fff; } .dok-lang-feld { min-height:46px; }
.dok-toggle span { width:40px; height:22px; border-radius:11px; } .dok-toggle span::after { width:18px; height:18px; } .dok-toggle input:checked + span { background:#1f7a4d; }
.dok-edit-fuss { gap:10px; padding-top:12px; } .dok-edit-fuss button { min-width:110px; }
/* Kalkulation */
.dok-kalk { background:none; border:none; padding:6px 0 0; }
.dok-kalk-modus { display:flex; gap:26px; margin:4px 0 14px; } .dok-kalk-modus label { margin:0; font-size:14px; color:#111; display:flex; align-items:center; gap:8px; }
.dok-kalk-titel { display:flex; align-items:center; gap:6px; border:none; background:none; padding:10px 0; font-weight:700; font-size:14.5px; width:100%; border-bottom:1px solid #e6e6e6; border-radius:0; margin-bottom:10px; color:#111; }
.dok-kalk-k { grid-template-columns:16px 96px 92px 80px minmax(80px, 1fr) 96px 96px 28px; gap:6px; margin-bottom:8px; }
.dok-kalk-k.kopf { font-size:13.5px; color:#111; margin-bottom:4px; } .dok-kalk-k.kopf span { padding-left:2px; }
.dok-kalk-k .dok-griff { opacity:.6; } .dok-kalk-k.fuss { margin-top:4px; } .dok-kalk-neu { font-weight:700; color:#111 !important; text-align:left; white-space:nowrap; grid-column:2 / 5; }
.dok-kalk-wert { background:#ececec; border:1px solid #dcdcdc; border-radius:6px; padding:7px 10px; font-size:14px; min-height:36px; box-sizing:border-box; display:flex; align-items:center; justify-content:flex-end; }
.dok-kalk-v { grid-template-columns:86px 104px 14px 96px 82px 16px 14px 104px minmax(90px, auto); gap:6px; margin-bottom:8px; font-size:14px; }
.dok-kalk-v.kopf { margin-bottom:2px; } .dok-kalk-v.summe { border-top:1px solid #e6e6e6; padding-top:12px; margin-top:6px; }
.dok-kalk-zeit { display:flex; align-items:center; gap:4px; font-weight:700; white-space:nowrap; }
/* Summen: weiß und rechtsbündig; Klick öffnet den Bereich mit schwarzem Rahmen */
.dok-summen { padding:10px 32px 6px; cursor:pointer; border:1px solid transparent; border-radius:8px; margin:4px 16px; display:flex; flex-direction:column; }
.dok-summen:hover { border-color:#111; } .dok-summe-zeilen { width:330px; align-self:flex-end; gap:6px; }
.dok-summe-zeilen .brutto { border-top:3px double #cfcfcf; padding-top:8px; } .dok-summe-zeilen button { margin-top:12px; background:#ededed; border-color:#ededed; color:#888; padding:8px 18px; }
.dok-bedingungen { margin:22px 0 0; padding:0; border:none; font-size:14.5px; line-height:1.6; } .dok-bedingungen:hover { background:none; }
.dok-summen-edit { border:1px solid #222; border-radius:8px; margin:4px 16px; padding:6px 10px 12px; display:flex; flex-direction:column; gap:16px; }
.dok-grau-karte { background:#f2f2f2; border-radius:6px; padding:18px 12px; font-size:14.5px; } .dok-summen-box { display:flex; flex-direction:column; }
.dok-grau-karte select, .dok-grau-karte input:not([type=checkbox]) { background:#fff !important; border:1px solid #dcdcdc !important; border-radius:6px; min-height:38px; padding:7px 10px; }
.dok-ust { display:grid; grid-template-columns:200px minmax(0, 1fr); gap:8px; margin-top:12px; } .dok-frist { border-bottom:1px solid #ddd; padding-bottom:12px; margin-bottom:14px; }
/* Rechte Seite: Reiter als kleine Karte; Bausteine schweben als kleine Karten, Suche/Ablage/Chat als große Karte */
.dok-rechts { container-type:inline-size; background:none; box-shadow:none; border-radius:0; display:flex; flex-direction:column; gap:8px; min-height:0; align-self:stretch; max-height:none; }
.dok-rechts-reiter { background:#fff; border-radius:8px; border:none; padding:6px 8px; align-self:flex-start; flex:none; }
.dok-rechts-reiter button { flex:none; border:none !important; padding:6px 9px; font-weight:700; color:#111; font-size:14px; border-radius:6px; }
.dok-rechts-reiter button.an { color:#1f7a4d; background:none; } .dok-rechts-reiter button:hover { background:#f2f2f2; }
@container (max-width:470px) { .dok-rechts-reiter span { display:none; } .dok-rechts-reiter { align-self:flex-end; } }
.dok-rechts-inhalt { background:#fff; border-radius:8px; padding:14px; flex:1; min-height:0; }
.dok-rechts[data-reiter="bausteine"] .dok-rechts-inhalt { background:none; padding:0; flex:none; width:250px; }
.dok-baustein { background:#fff; border-radius:8px; padding:10px 12px; margin-bottom:8px; font-weight:700; box-shadow:none; } .dok-baustein:hover { background:#fff; box-shadow:0 0 0 1px #ccc; }
.dok-baustein .dok-griff { opacity:1; color:#555; } .dok-baustein .rechts { font-size:20px; font-weight:400; color:#111; }
.dok-rechts[data-reiter="bausteine"] .dok-hinweis { display:none; }
.dok-suchfeld { border:1px solid #dcdcdc; border-radius:6px; padding:0 12px; } .dok-suchfeld:focus-within { border:1px solid #1d4ed8; } .dok-suchfeld input { padding:10px 0; font-size:14px; }
.dok-such-reiter button { color:#111; padding:10px 14px; } .dok-such-reiter button.an { font-weight:700; border-bottom-color:#111; color:#111; }
.dok-rechts[data-reiter="chat"] .dok-rechts-inhalt { padding:0; overflow:hidden; } .dok-chat { margin:0; height:100%; }
@media (max-width:1400px) { .dok-seite { grid-template-columns:220px minmax(0, 1fr) 320px; } .dok-seite.nav-zu { grid-template-columns:38px minmax(0, 1fr) 320px; } }
.dok-kalk-k select, .dok-kalk-k input, .dok-kalk-v input { min-width:0 !important; width:100% !important; }
.dok-kalk-k.fuss .dok-kalk-neu { grid-column:2 / 7; } .dok-kalk-k.fuss .dok-kalk-wert { grid-column:7; }
.dok-a4 .dok-texte input.dok-anrede { background:#fff; border:1px solid transparent; } .dok-a4 .dok-texte input.dok-anrede:hover { border-color:#e4e4e4; } .dok-a4 .dok-texte input.dok-anrede:focus { border-color:#111; }
.dok-kalk-k > .auswahl, .dok-edit-z .auswahl, .dok-grau-karte .auswahl, .dok-ust .auswahl { min-width:0 !important; width:100% !important; }
.dok-edit-z.reihe .auswahl { width:230px !important; }
/* 3.68: rechte Spalte fest rechts und gleich breit, Blatt bleibt gleich breit (Dom 23.10.2026) */
.dok-seite, .dok-seite.nav-zu { grid-template-columns:250px minmax(0, 920px) minmax(340px, 1fr); }
.dok-seite.nav-zu { grid-template-columns:38px minmax(0, 920px) minmax(340px, 1fr); }
.dok-rechts { justify-self:end; width:min(100%, 440px); }
.dok-rechts-reiter { align-self:stretch; justify-content:space-between; }
@container (max-width:470px) { .dok-rechts-reiter { align-self:stretch; } }
.dok-rechts[data-reiter="bausteine"] .dok-rechts-inhalt { width:auto; }
@media (max-width:1400px) { .dok-seite { grid-template-columns:220px minmax(0, 1fr) 340px; } .dok-seite.nav-zu { grid-template-columns:38px minmax(0, 1fr) 340px; } .dok-rechts { width:100%; } }
/* Position: Menge mit Marke, Rabatt, durchgestrichener Gesamtpreis */
.dok-pos .dok-menge { display:flex; flex-direction:column; align-items:flex-end; gap:6px; }
.dok-rabatt { display:flex; flex-direction:column; gap:8px; } .dok-rabatt label { display:flex; flex-direction:column; gap:4px; font-size:14px; color:#111; }
.dok-edit-oben input.durch { text-decoration:line-through; } .dok-rabatt-wert { width:100%; gap:6px; color:#999; justify-content:space-between; }
.ziel-kalk.dok-pos-edit { outline:2px dashed var(--rot); outline-offset:3px; }
/* Aufschlag je Kostenzeile */
.dok-kalk-k .dok-kalk-wert { justify-content:space-between; gap:4px; } .dok-kalk-z { border:none; background:none; padding:0; font-size:11px; color:#999; font-weight:500; cursor:pointer; }
.dok-kalk-z.eigen { color:#1f7a4d; font-weight:700; } .dok-kalk-z:hover { text-decoration:underline; }
/* Aufmaß wie plancraft */
.dok-aufmass { background:none; border:none; padding:6px 0 0; }
.dok-aufmass-z { grid-template-columns:16px minmax(0, 1fr) minmax(0, 1fr) 96px 28px; gap:6px; margin-bottom:8px; } .dok-aufmass-z.kopf { font-size:14px; margin-bottom:4px; }
.dok-aufmass-z.fuss { display:flex; justify-content:space-between; align-items:center; } .dok-aufmass-z.fuss .dok-kalk-neu { padding-left:22px; }
/* Bild hochladen */
.dok-bild-feld { margin-top:12px; border:1.5px dashed #cfcfcf; border-radius:8px; padding:30px 10px; display:flex; flex-direction:column; align-items:center; gap:6px; cursor:pointer; background:#f7f7f7; font-size:14px; }
.dok-bild-feld span { font-size:13px; color:#555; } .dok-bild-feld:hover, .dok-bild-feld.drueber { border-color:#111; background:#fff; }
/* Preis anpassen */
.pa-dialog h2 { margin:0 -20px 18px; padding:0 20px 16px; border-bottom:1px solid #eee; font-size:19px; }
.pa-oben { display:grid; grid-template-columns:1fr 1.6fr; gap:16px; margin-bottom:16px; } .pa-oben label { display:flex; flex-direction:column; gap:8px; font-size:14px; }
.pa-oben .dok-kalk-wert { width:130px; min-height:38px; } .pa-zwei { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.pa-prozent { display:flex; align-items:center; border:1px solid #dcdcdc; border-radius:6px; padding-left:12px; color:#666; } .pa-prozent input { border:none !important; min-width:0; }
.pa-dialog input[data-pa] { border:1px solid #dcdcdc; border-radius:6px; min-height:38px; padding:7px 10px; width:100%; box-sizing:border-box; background:#fff; }
.pa-summen { display:flex; flex-direction:column; gap:10px; } .pa-summen > div { display:flex; justify-content:space-between; align-items:center; } .pa-summen input { width:130px !important; }
.pa-summen .brutto { border-top:1px solid #d8d8d8; padding-top:10px; }
.pa-umv { display:flex; justify-content:space-between; align-items:center; margin:16px 0 4px; } .pa-diff { font-size:13px; max-width:none; }
.pa-dialog .dok-edit-fuss { border-top:1px solid #eee; margin:12px -20px 0; padding:16px 20px 0; }
/* Briefpapier-Vorschau: alle Seiten untereinander, eigener Scrollbereich */
.dok-bp-rechts { max-height:calc(100vh - 120px); overflow-y:auto; } .dok-bp-seiten { display:flex; flex-direction:column; align-items:center; gap:6px; }
.dok-bp-seite-nr { font-size:12px; color:#777; margin-top:8px; } .dok-bp-seiten canvas { box-shadow:0 2px 10px rgba(0,0,0,.12); }
/* 3.69 rechte Seite wie plancraft (Dom 23.10.2026): Navigation offen → rechts außen, nur Symbole; zugeklappt → direkt neben dem Blatt mit Beschriftung.
   Bausteine schmal, Suche/Ablage/Chat breit – mit kurzer Bewegung. Navigation etwas breiter. */
.dok-seite { grid-template-columns:270px minmax(0, 920px) minmax(270px, 1fr); }
.dok-seite.nav-zu { grid-template-columns:38px minmax(0, 920px) minmax(270px, 1fr); }
.dok-rechts { justify-self:end; width:250px; transition:width .22s ease; overflow:visible; }
.dok-rechts:not([data-reiter="bausteine"]) { width:min(100%, 460px); }
.dok-seite.nav-zu .dok-rechts { justify-self:start; }
.dok-rechts-reiter, .dok-seite .dok-rechts-reiter { align-self:flex-end; width:max-content; justify-content:flex-start; gap:2px; }
.dok-seite.nav-zu .dok-rechts-reiter { align-self:flex-start; }
.dok-rechts-reiter span { display:none; } .dok-seite.nav-zu .dok-rechts-reiter span { display:inline !important; }
.dok-rechts-reiter button { padding:6px 8px; }
.dok-rechts-inhalt { animation:dokEin .22s ease; } @keyframes dokEin { from { opacity:0; transform:translateX(8px); } to { opacity:1; transform:none; } }
.dok-nav { font-size:14.5px; } .dok-nav a { padding:7px 16px 7px 30px; } .dok-nav a.gross { padding-left:18px; } .dok-nav-titel { font-size:13px; padding:12px 18px 6px; }
.dok-nav a.titel { font-weight:700; padding-left:22px; } .dok-nav-kopf { font-size:15px; padding:2px 12px 12px 18px; }
@media (max-width:1400px) { .dok-seite { grid-template-columns:230px minmax(0, 1fr) 300px; } .dok-seite.nav-zu { grid-template-columns:38px minmax(0, 1fr) 300px; } .dok-rechts, .dok-rechts:not([data-reiter="bausteine"]) { width:100%; } }
/* 3.69 tiefere Kalkulation: Kostenzeile aufschlüsseln (eingerückte Unterzeilen je Einheit) */
.dok-kalk-k { grid-template-columns:16px 96px 88px 92px minmax(70px, 1fr) 92px 104px 28px 28px; }
.dok-kalk-tief { color:#888; } .dok-kalk-tief.an { color:#1f7a4d; }
.dok-kalk-unter { margin:-2px 0 10px 22px; padding:8px 10px 4px; border-left:2px solid #d6e9de; background:#fafafa; border-radius:0 6px 6px 0; }
.dok-kalk-unter-titel { font-size:12.5px; color:#555; margin-bottom:6px; }
.dok-kalk-k.unter { grid-template-columns:4px 92px 84px 88px minmax(70px, 1fr) 88px 104px 28px; }
.dok-kalk-k.fuss.unter .dok-kalk-neu { grid-column:2 / 6; } .dok-kalk-k.fuss.unter .dok-kalk-wert { grid-column:6 / 8; }
.dok-kalk-z:disabled { cursor:default; text-decoration:none; color:#1f7a4d; }
.dok-lohn span { white-space:nowrap; }

/* Nachricht wie WhatsApp: beim Drüberfahren Smiley neben der Blase, Pfeil oben rechts in der Blase (Menü) */
.ch-aktion { display:none !important; }
.ch-pfeil { position:absolute; top:4px; right:4px; width:26px; height:24px; border:none; border-radius:6px; padding:0; display:flex; align-items:center; justify-content:center;
  background:linear-gradient(to left, #f2f2f2 60%, rgba(242,242,242,0)); color:#555; cursor:pointer; opacity:0; transition:opacity .1s; z-index:2; }
.ch-n.ich .ch-pfeil { background:linear-gradient(to left, #e4e4e4 60%, rgba(228,228,228,0)); }
.ch-n:hover .ch-pfeil, .ch-pfeil:focus { opacity:1; } .ch-pfeil:hover { color:#111; }
.ch-smiley { align-self:center; flex:none; width:32px; height:32px; border:none; border-radius:50%; background:#fff; box-shadow:0 1px 3px rgba(0,0,0,.15); color:#666; cursor:pointer;
  display:flex; align-items:center; justify-content:center; padding:0; opacity:0; transition:opacity .1s; }
.ch-n:hover .ch-smiley, .ch-smiley:focus { opacity:1; } .ch-smiley:hover { color:#111; }
.auf-k-blase { display:flex; align-items:center; gap:6px; } .auf-k-blase > :not(.ch-smiley) { min-width:0; } .vl-msg:hover .ch-smiley { opacity:1; }
@media (hover:none) { .vl-msg .ch-smiley { opacity:.7; } }
.vl-msg .ch-reakt { position:static; margin-top:4px; flex-wrap:wrap; } .vl-msg.ich .ch-reakt { justify-content:flex-end; } .vl-msg.ich .auf-k-blase { flex-direction:row-reverse; }
.ch-weiter { display:flex; align-items:center; gap:4px; font-size:12.5px; font-style:italic; color:#777; margin-bottom:3px; } .ch-weiter svg { width:13px; height:13px; }
/* 3.70 Formatierungsleiste beim Markieren (wie plancraft), Kurztext als formatierbares Feld */
.dok-fmt { position:fixed; z-index:2000; transform:translate(-50%, -100%); background:#222; border-radius:8px; padding:4px; display:flex; gap:2px; box-shadow:0 4px 14px rgba(0,0,0,.25); }
.dok-fmt::after { content:''; position:absolute; left:50%; bottom:-6px; margin-left:-6px; border:6px solid transparent; border-bottom:0; border-top-color:#222; }
.dok-fmt button { background:none; border:none; color:#fff; padding:5px 9px; border-radius:5px; font-size:15px; min-width:30px; } .dok-fmt button:hover { background:#444; } .dok-fmt .ic { width:16px; height:16px; }
.dok-kurz-feld, .dok-lang-feld { background:#fff; border:1px solid #dcdcdc; border-radius:6px; padding:7px 10px; font-size:14px; line-height:1.45; outline:none; min-height:36px; box-sizing:border-box; }
.dok-kurz-feld:focus, .dok-lang-feld:focus { border-color:#9db8e0; } .dok-lang-edit { border:none; background:none; }
.dok-kurz-feld:empty::before, .dok-lang-feld:empty::before { content:attr(data-leer); color:#b4b4b4; }
.dok-lang-feld ol, .dok-lang ol { margin:4px 0 0; padding-left:20px; }
/* Einheit nicht fett und nicht breitgezogen */
.dok-edit-oben .auswahl, .dok-edit-oben select { font-weight:400 !important; } .dok-pos .dok-einheit { font-weight:400; }
/* Unterkalkulation deutlich erkennbar */
.dok-kalk-k.mit-unter > select, .dok-kalk-k.mit-unter > .auswahl, .dok-kalk-k.mit-unter input { font-weight:700; } .dok-kalk-k.mit-unter input[readonly] { background:#ececec !important; color:#555; }
.dok-kalk-text { position:relative; min-width:0; } .dok-kalk-text input { width:100%; }
.dok-unter-marke { position:absolute; right:6px; top:50%; transform:translateY(-50%); background:#1f7a4d; color:#fff; font-size:10.5px; font-weight:700; padding:2px 6px; border-radius:6px; pointer-events:none; }
.dok-kalk-unter { border-left-color:#1f7a4d; } .dok-kalk-unter-titel { display:flex; align-items:center; gap:8px; } .dok-kalk-unter-titel .dok-pille { background:#1f7a4d; max-width:none; }
/* Ansprechpersonen wie plancraft */
.ap-dialog { display:flex; flex-direction:column; gap:14px; } .ap-kopf { display:flex; align-items:center; gap:10px; margin:0 -20px; padding:0 20px 14px; border-bottom:1px solid #eee; } .ap-kopf h2 { margin:0; font-size:19px; }
.ap-tabelle { width:100%; border-collapse:collapse; } .ap-tabelle th { text-align:left; font-size:12px; letter-spacing:.6px; text-transform:uppercase; color:#666; font-weight:500; padding:8px 10px; border-bottom:1px solid #eee; }
.ap-tabelle td { padding:8px 10px; border-bottom:1px solid #eee; } .ap-tabelle input { width:100%; box-sizing:border-box; border:1px solid #dcdcdc; border-radius:6px; padding:8px 12px; background:#f7f7f7; }
.ap-name { display:flex; align-items:center; gap:12px; white-space:nowrap; } .ap-name .avatar-bild, .ap-name .avatar-kreis { width:30px; height:30px; }
.ap-schalter { display:flex; align-items:center; gap:14px; flex-wrap:wrap; font-size:14px; }
.ap-dialog .dok-edit-fuss { border-top:1px solid #eee; margin:0 -20px; padding:14px 20px 0; }
.ap-kopf .rechts { margin-left:auto; }
/* Einheit in der Position: Auswahl so breit wie die Spalte (Mindestbreite der Auswahlfelder hat sie gesprengt) */
.dok-edit-oben .auswahl, .dok-edit-oben .dok-edit-preis .auswahl { min-width:0 !important; width:100% !important; }
.dok-edit-oben { grid-template-columns:52px 76px 84px minmax(0, 1fr) 96px 104px 30px; }
/* 3.74 Standard für alle Seiten (Dom 23.10.2026): schmaler Rand wie im Angebots-Editor bzw. plancraft – oben 8 px, seitlich 10 px */
main, main.feste-seite, main.listen-seite { padding:8px 10px 16px; }
body.beta-umgebung main, body.beta-umgebung main.feste-seite, body.beta-umgebung main.dok-app, body.beta-umgebung main.chat-seite { padding-top:30px; }
.einst { margin:-8px -10px -16px; } body.beta-umgebung .einst { margin-top:-8px; }
.einst-inhalt { padding:18px 22px 40px; } .einst-menue { padding:16px 10px; }
main > .kopf:first-child, main > .seitenkopf:first-child { margin-top:2px; }
@media (max-width:760px) { main { padding:10px 10px 16px; } }
.kopf, .seitenkopf { margin-bottom:10px; }

/* 3.75 Editor für kleinere Bildschirme (Laptop, Tablet; Dom 23.10.2026): Navigation bleibt ganz sichtbar und einklappbar,
   die rechte Seite (Bausteine, Suche, Ablage, Chat) liegt dann über dem Dokument, das Dokument läuft darunter durch */
.dok-nav-spalte { min-width:0; } .dok-seite { column-gap:10px; }
@media (max-width:1400px) {
  .dok-seite, .dok-seite.nav-zu { position:relative; grid-template-columns:230px minmax(0, 1fr); }
  .dok-seite.nav-zu { grid-template-columns:38px minmax(0, 1fr); }
  .dok-seite .dok-nav { display:block; } .dok-seite.nav-zu .dok-nav { display:flex; }
  .dok-rechts, .dok-rechts:not([data-reiter="bausteine"]), .dok-seite.nav-zu .dok-rechts { position:absolute; top:0; right:0; bottom:0; z-index:6; width:250px; justify-self:auto; pointer-events:none; }
  .dok-rechts:not([data-reiter="bausteine"]) { width:min(420px, 62%) !important; }
  .dok-rechts > * { pointer-events:auto; }
  .dok-rechts-reiter, .dok-seite.nav-zu .dok-rechts-reiter { align-self:flex-end; box-shadow:0 2px 10px rgba(0,0,0,.12); }
  .dok-rechts-reiter span, .dok-seite.nav-zu .dok-rechts-reiter span { display:none !important; }
  .dok-rechts .dok-rechts-inhalt { box-shadow:0 4px 18px rgba(0,0,0,.14); }
  .dok-rechts[data-reiter="bausteine"] .dok-rechts-inhalt { box-shadow:none; } .dok-rechts[data-reiter="bausteine"] .dok-baustein { box-shadow:0 2px 8px rgba(0,0,0,.12); }
}
@media (max-width:1000px) {
  .dok-seite, .dok-seite.nav-zu { grid-template-columns:200px minmax(0, 1fr); } .dok-seite.nav-zu { grid-template-columns:38px minmax(0, 1fr); }
  .dok-a4 .dok-karte { padding:16px 18px; } .dok-a4 .dok-texte { padding:18px 24px; } .dok-a4 .dok-tabelle { padding:0 8px; } .dok-a4 .dok-pos.kopf { margin:0 -8px 10px; padding:14px 8px; }
}
/* Tablet: Dokument nicht zusammenquetschen – behält seine Mindestbreite und läuft unter der rechten Spalte durch (seitlich scrollbar) */
@media (max-width:1400px) { .dok-blatt { overflow-x:auto; } .dok-a4 { min-width:640px; } .dok-rechts { display:flex; flex-direction:column; } .dok-rechts .dok-rechts-inhalt { min-height:0; } }
/* 3.76 Datum nur über den Kalender wählen; Leistung von/bis je zur Hälfte */
.datumsfeld.nurwahl input[type=text] { cursor:pointer; caret-color:transparent; }
.dok-zwei { display:grid; grid-template-columns:1fr 1fr; gap:16px; } .dok-zwei label { display:flex; flex-direction:column; gap:8px; font-size:14px; color:#111; }
/* 3.76 Editor: Navigation füllt ihre Spalte (gleicher Spalt wie eingeklappt), Dokument immer gleich breit – beim Ein-/Ausklappen rückt es nur nach links */
.dok-nav-spalte .dok-nav { width:100%; box-sizing:border-box; } .dok-seite.nav-zu .dok-nav-spalte .dok-nav { width:38px; }
:root { --seite:var(--nav); } body.nav-zu { --seite:var(--nav-zu); }
.dok-seite { grid-template-columns:270px minmax(0, auto) minmax(270px, 1fr); } .dok-seite.nav-zu { grid-template-columns:38px minmax(0, auto) minmax(270px, 1fr); }
.dok-a4 { width:min(920px, calc(100vw - var(--seite) - 580px)); }
@media (max-width:1400px) {
  .dok-seite, .dok-seite.nav-zu { grid-template-columns:230px minmax(0, auto); } .dok-seite.nav-zu { grid-template-columns:38px minmax(0, auto); }
  .dok-a4 { width:min(920px, max(640px, calc(100vw - var(--seite) - 260px))); }
}
@media (max-width:1000px) {
  .dok-seite, .dok-seite.nav-zu { grid-template-columns:200px minmax(0, auto); } .dok-seite.nav-zu { grid-template-columns:38px minmax(0, auto); }
  .dok-a4 { width:max(640px, calc(100vw - var(--seite) - 230px)); }
}
.dok-a4 { margin:0; } /* Dokument links an der Navigation, nicht mittig in seiner Spalte */
/* 3.77 rechte Seite zugeklappt (nur Symbolleiste), damit sie auf kleineren Bildschirmen keine Felder verdeckt */
.dok-rechts[data-zu] .dok-rechts-inhalt { display:none; } .dok-rechts[data-zu] { width:auto !important; bottom:auto; }
.dok-rechts[data-zu] .dok-rechts-reiter button.an { color:#111; }

/* 3.78 Aufgaben: Seite steht still, nur Liste/Board/Kalender scrollen in sich (Dom 23.10.2026) */
main.auf-seite > * { flex:none; } main.auf-seite { padding-bottom:10px; }
main.auf-seite > .auf-scroll, main.auf-seite > .auf-zwei, main.auf-seite > .auf-board, main.auf-seite > .akal, main.auf-seite > .wo { flex:1 1 auto; min-height:0; } /* .auf-zwei: Liste mit Erledigt-Kasten, sonst scrollt nichts (4.11.2026) */
.auf-scroll { overflow-y:auto; }
.auf-board { overflow:auto; align-items:stretch; } .auf-spalte { display:flex; flex-direction:column; min-height:0; } .auf-karten { flex:1; min-height:0; overflow-y:auto; padding-bottom:4px; }
.akal { overflow-y:auto; grid-auto-rows:minmax(112px, auto); }
/* Woche: ein Scrollbereich für beide Richtungen, Kopfzeile oben und Stunden links bleiben stehen */
.wo-scroll { overflow:auto; position:relative; scroll-snap-type:x proximity; } .wo-scroll .wo-raster { max-height:none; overflow:visible; min-height:0; }
.wo-innen { width:max-content; min-width:100%; }
.wo-oben { position:sticky; top:0; z-index:4; background:#fff; }
.wo-ecke-l { position:sticky; left:0; z-index:3; background:#fff; }
.wo-stunden.wo-ecke-l { z-index:2; } .wo-kopf .wo-ecke-l, .wo-ganz-zeile .wo-ecke-l { z-index:5; }
.wo-tagkopf, .wo-spalte { scroll-snap-align:start; } .wo-tagkopf.mo, .wo-ganz.mo, .wo-spalte.mo { border-left:2px solid #cfcfcf; }
.wo-scroll .wo-ganz { max-height:92px; overflow-y:auto; } /* viele ganztägige Aufgaben: eigene kleine Scrollbox, damit der Kalender sichtbar bleibt */
.wo-scroll { scroll-padding-left:54px; } /* Tage rasten neben der festen Stundenleiste ein, nicht darunter */
/* 3.80 Beta-Hinweis klein unten links statt orangem Balken oben (Dom 24.10.2026) – kein zusätzlicher Platz oben mehr */
#beta-leiste.beta-marke { position:static; flex:none; background:none; color:#f59e0b; border:1px solid #f59e0b; border-radius:6px; font-size:11px; font-weight:600; letter-spacing:.4px; text-transform:uppercase; padding:1px 6px; margin:0 0 6px 12px; pointer-events:auto; cursor:default; align-self:flex-start; }
body.beta-umgebung aside.seite { top:0; }
body.beta-umgebung main, body.beta-umgebung main.feste-seite, body.beta-umgebung main.dok-app, body.beta-umgebung main.chat-seite { padding-top:8px; }
body.nav-zu #beta-leiste.beta-marke { margin:0 auto 6px; font-size:9px; padding:1px 3px; }
/* 3.81 Plantafel (Beta) nach plancraft: links feste Spalte, oben fester Kopf, Balken in den Zeilen */
main.pt-seite > * { flex:none; } main.pt-seite > .pt { flex:1 1 auto; min-height:0; }
.pt-knoepfe { display:flex; gap:8px; align-items:center; } .pt-knoepfe .segment button { min-width:36px; }
.pt { overflow:auto; background:#fff; border:1px solid #e3e3e3; border-radius:8px; position:relative; }
.pt-innen { position:relative; min-height:100%; }
.pt-hinter { position:absolute; top:0; bottom:0; pointer-events:none; z-index:0; } .pt-hinter div { position:absolute; top:0; bottom:0; } .pt-hinter .frei { background:#f5f5f5; } .pt-hinter .heute { background:#eaf5ee; }
.pt-zeile { display:flex; position:relative; z-index:1; border-bottom:1px solid #eee; }
.pt-l { position:sticky; left:0; z-index:3; flex:0 0 230px; width:230px; background:#fff; border-right:1px solid #e3e3e3; display:flex; align-items:center; gap:6px; padding:0 8px 0 10px; box-sizing:border-box; min-width:0; }
.pt-r { position:relative; flex:1; min-height:100%; background-image:linear-gradient(to right, #eee 1px, transparent 1px); background-size:var(--tw) 100%; }
.pt-kopf { position:sticky; top:0; z-index:5; background:#fff; } .pt-kopf .pt-zeile { background:#fff; } .pt-kopf .pt-r { background-image:none; }
.pt-monate, .pt-kws { height:30px; } .pt-monate span, .pt-kws span { position:absolute; top:0; bottom:0; display:flex; align-items:center; padding:0 8px; box-sizing:border-box; border-left:1px solid #eee; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.pt-monate span { font-weight:700; font-size:15px; } .pt-kws span { font-size:13px; color:#555; }
.pt-tage { height:54px; } .pt-tage .pt-r { display:flex; } .pt-tag { flex:none; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:1px; border-left:1px solid #eee; box-sizing:border-box; font-size:12px; color:#666; overflow:hidden; }
.pt-tag b { font-size:15px; font-weight:500; color:#111; } .pt-tag.we { background:#f5f5f5; } .pt-tag.feiertag { background:#f5f5f5; }
.pt-tag.feiertag i { font-style:normal; font-size:10.5px; background:#1f7a4d; color:#fff; border-radius:4px; padding:0 4px; max-width:calc(100% - 6px); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.pt-tag.heute { background:#1f7a4d; color:#fff; } .pt-tag.heute b { color:#fff; font-weight:700; }
.pt-l-kopf { font-size:15px; } .pt-l-kopf .rechts, .pt-l-kopf .icon-knopf { margin-left:auto; } .pt-auf { border:none; background:none; padding:2px; display:flex; color:#111; }
.pt-reihe { height:52px; } .pt-person { height:58px; } .pt-gruppe, .pt-bereich-kopf { height:46px; background:#fff; } .pt-bereich-kopf { border-top:2px solid #e3e3e3; }
.pt-projekt { display:flex; align-items:center; gap:6px; border:none; border-radius:6px; padding:6px 8px; width:100%; min-width:0; font-weight:500; text-align:left; color:#111; } .pt-projekt span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.pt-name { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; padding-left:22px; } .pt-person .icon-knopf { opacity:0; } .pt-person:hover .icon-knopf { opacity:1; } .pt-person.aus .pt-name { color:#aaa; }
.pt-balken { position:absolute; top:7px; bottom:7px; border-radius:6px; background:#e8e8e8; display:flex; align-items:center; font-size:14px; color:#111; cursor:grab; z-index:2; overflow:hidden; user-select:none; touch-action:none; box-sizing:border-box; }
.pt-balken.abw { background:#e6e6e6; color:#444; justify-content:center; } .pt-balken .ic { width:14px; height:14px; vertical-align:-2px; }
.pt-text { flex:1; min-width:0; padding:0 8px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; } .pt-balken.abw .pt-text { flex:none; }
.pt-griff { flex:none; width:7px; align-self:stretch; cursor:ew-resize; } .pt-balken:hover .pt-griff { background:rgba(0,0,0,.08); }
.pt-balken.zieht { opacity:.35; } .pt-geist { opacity:.85; outline:2px dashed #111; pointer-events:none; z-index:4; } .pt-geist.neu { background:rgba(31,122,77,.15); outline-color:#1f7a4d; }
.pt-reihe.drueber .pt-r { background-color:#f2f8f4; } .pt-leer { height:52px; } .pt-leer .pt-l { flex-basis:auto; width:auto; border:none; }
.gefahr-text { color:#5e5e5e !important; } /* Löschen als stiller grauer Text, kein roter Link (Bausteine Runde 4) */
/* Beschriftung wandert mit: Name eines Balkens bzw. Monat/KW bleibt sichtbar, wenn der Anfang links aus dem Bild gescrollt ist */
.pt-balken { overflow:clip; } .pt-text { position:sticky; left:238px; }
.pt-monate span, .pt-kws span { overflow:clip; } .pt-monate em, .pt-kws em { position:sticky; left:238px; font-style:normal; white-space:nowrap; }
.pt-balken .pt-text { flex:0 1 auto; } .pt-balken .pt-griff.r { margin-left:auto; }

/* ---------- Berichte (3.82, nach plancraft) ---------- */
.ber-einst-kopf { display:flex; align-items:center; gap:12px; margin-bottom:12px; } .ber-einst-kopf h1 { margin:0; } .ber-einst-kopf .rechts { margin-left:auto; }
.ber-tab { padding:0; overflow:hidden; } .ber-tab .tabelle { margin:0; } .ber-zelle-rechts { text-align:right; width:44px; }
.ber-status { font-size:12.5px; padding:3px 10px; border-radius:12px; background:#f1f1f1; color:#777; font-weight:500; } .ber-status.an { background:#e3f4e8; color:#1f6b3a; }
.ber-edit { flex:1 1 auto; min-height:0; display:grid; grid-template-columns:minmax(0, 1fr) minmax(320px, 600px); gap:12px; }
.ber-links { min-height:0; overflow-y:auto; display:flex; flex-direction:column; gap:8px; padding:0 2px 30px 0; }
.ber-rechts { min-height:0; overflow-y:auto; background:#fff; border:1px solid #e3e3e3; border-radius:8px; padding:10px; }
.ber-vorschau .ber-seiten, .dok-vorschau .ber-seiten { display:flex; flex-direction:column; align-items:center; gap:14px; }
.ber-seiten canvas { box-shadow:0 2px 10px rgba(0,0,0,.12); background:#fff; }
.ber-karte { background:#fff; border:1px solid #e3e3e3; border-radius:8px; padding:12px 14px; }
.ber-karte-kopf { display:flex; align-items:center; gap:10px; margin-bottom:10px; }
.ber-typ { font-size:12px; color:#666; background:#f3f3f3; border-radius:6px; padding:3px 8px; white-space:nowrap; }
.ber-titel { flex:1 1 auto; min-width:0; font-weight:600; font-size:15px; border:1px solid transparent !important; background:transparent !important; padding:5px 8px !important; }
.ber-titel:hover, .ber-titel:focus { border-color:#d9d9d9 !important; background:#fff !important; }
.ber-karte-kopf .icon-knopf[disabled] { opacity:.3; }
.ber-grid2 { display:grid; grid-template-columns:1fr 1fr; gap:10px 16px; } .ber-grid2.eng { gap:8px; }
.ber-grid2 label, .ber-spalte label, .ber-feld { display:flex; flex-direction:column; gap:5px; font-size:13px; color:#333; }
.ber-spalte { display:flex; flex-direction:column; gap:8px; min-width:0; }
.ber-zeile { display:flex; align-items:center; gap:8px; } .ber-zeile input { flex:1 1 auto; min-width:0; } .ber-zeile .auswahl { width:130px !important; flex:none; }
.ber-mini { font-size:12px; color:#777; width:96px; flex:none; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ber-fuss { display:flex; align-items:center; gap:16px; margin-top:10px; flex-wrap:wrap; } .ber-fuss .dok-toggle { margin-left:auto; }
.ber-opt { display:flex; align-items:flex-end; padding-bottom:8px; }
.ber-dazu { display:inline-flex; align-items:center; gap:6px; align-self:flex-start; background:#fff; border:1px solid #d9d9d9; border-radius:8px; padding:8px 12px; font-size:14px; color:#222; cursor:pointer; }
.ber-dazu.klein { padding:5px 10px; font-size:13px; margin-top:6px; } .ber-dazu:hover { border-color:#999; } .ber-dazu[disabled] { opacity:.4; cursor:default; }
.ber-hinweis { font-size:13px; color:#666; }
.ber-karte textarea, .ber-ab textarea { width:100%; resize:none; field-sizing:content; min-height:70px; }
/* Bericht ausfüllen: A4-Blatt */
.ber-blatt-box { flex:1 1 auto; min-height:0; overflow-y:auto; display:flex; justify-content:center; padding:0 0 40px; }
.ber-blatt { width:min(860px, 100%); background:#fff; border:1px solid #e3e3e3; border-radius:8px; padding:24px 34px 40px; align-self:flex-start; }
.ber-name { margin:0 0 14px; } .ber-name input { width:100%; font-size:22px; font-weight:700; border:1px solid transparent !important; background:transparent !important; padding:4px 6px !important; }
.ber-name input:hover, .ber-name input:focus { border-color:#d9d9d9 !important; }
.ber-ab { padding:14px 0; border-top:1px solid #eee; } .ber-ab h3 { margin:0 0 10px; font-size:15px; font-weight:700; }
.ber-auto { background:#f3f3f3; border:1px solid #e3e3e3; border-radius:6px; padding:8px 12px; min-height:38px; color:#555; font-size:14px; line-height:1.45; }
.ber-ab input:not([type=checkbox]):not([type=radio]), .ber-ab select { min-height:36px; }
.ber-optionen { display:flex; flex-direction:column; gap:6px; } .ber-optionen .haken { margin:0; }
.ber-tabelle { display:flex; flex-direction:column; border:1px solid #e3e3e3; border-radius:6px; overflow:hidden; }
.ber-tz { display:grid; grid-template-columns:var(--sp); gap:6px; align-items:center; padding:5px 6px; border-top:1px solid #eee; }
.ber-tz.kopf { background:#f5f5f5; border-top:0; font-size:13px; font-weight:600; color:#333; padding:8px 6px; }
.ber-tz > input, .ber-tz > select, .ber-tz > .datumsfeld { min-width:0; width:100%; } .ber-tz .auswahl { min-width:0 !important; width:100% !important; }
.ber-rech { font-size:14px; color:#333; text-align:right; padding-right:6px; }
.ber-bilder { display:grid; grid-template-columns:repeat(auto-fill, minmax(180px, 1fr)); gap:10px; }
.ber-bilder figure { margin:0; position:relative; border:1px solid #e3e3e3; border-radius:6px; overflow:hidden; display:flex; flex-direction:column; }
.ber-bilder img { width:100%; height:140px; object-fit:cover; display:block; } .ber-bilder input { border:0 !important; border-top:1px solid #eee !important; border-radius:0 !important; }
.ber-bilder .icon-knopf { position:absolute; top:6px; right:6px; background:#fff; }
/* Dialoge */
dialog.ber-neu { width:min(640px, 94vw); padding:18px 20px; } .ber-neu-kopf { display:flex; align-items:center; justify-content:space-between; margin-bottom:12px; } .ber-neu-kopf h2 { margin:0; font-size:18px; }
.ber-neu-liste { display:grid; grid-template-columns:1fr 1fr; gap:8px; max-height:60vh; overflow-y:auto; }
.ber-neu-liste button { display:flex; align-items:center; gap:10px; text-align:left; background:#fff; border:1px solid #e3e3e3; border-radius:8px; padding:12px; font-weight:500; color:#111; cursor:pointer; }
.ber-neu-liste button:hover { border-color:#999; } .ber-neu-liste em { color:#777; font-style:normal; font-weight:400; }
.ber-neu-fuss { margin-top:12px; font-size:13px; }
dialog.ber-sign { width:min(620px, 96vw); padding:18px 20px; }
.ber-sign-reiter { display:flex; gap:6px; margin-bottom:12px; } .ber-sign-reiter button { flex:1; border:1px solid #d9d9d9; background:#fff; border-radius:8px; padding:8px; }
.ber-sign-reiter button.an { border-color:#131313; font-weight:600; } .ber-sign-reiter button[disabled] { color:#aaa; }
.ber-sign-name { display:flex; flex-direction:column; gap:5px; font-size:13px; margin-bottom:10px; }
.ber-sign-feld { position:relative; border:1px solid #d9d9d9; border-radius:8px; height:200px; background:#fafafa; margin-bottom:14px; touch-action:none; }
.ber-sign-feld canvas { width:100%; height:100%; display:block; cursor:crosshair; touch-action:none; }
.ber-sign-linie { position:absolute; left:24px; right:24px; bottom:44px; border-bottom:1px solid #bbb; pointer-events:none; }
.ber-sign-leeren { position:absolute; top:8px; right:8px; font-size:12.5px; padding:4px 10px; }
@media (max-width:1100px) { .ber-edit { grid-template-columns:1fr; overflow-y:auto; } .ber-links, .ber-rechts { overflow:visible; } .ber-neu-liste { grid-template-columns:1fr; } }
@media (max-width:700px) { .ber-grid2 { grid-template-columns:1fr; } .ber-blatt { padding:16px; } }

/* ---------- Plantafel 3.84: einheitliche Spalten, Seitenleisten wie plancraft ---------- */
.pt-gruppe, .pt-bereich-kopf { background:transparent; } .pt-gruppe .pt-l, .pt-bereich-kopf .pt-l { background:#fff; }
.pt-bereich-kopf { border-top:1px solid #e3e3e3; }
.pt { display:block; } .pt-innen { min-height:100%; }
.pt-tag.heute { background:#eaf5ee; color:#1f7a4d; } .pt-tag.heute b { color:#fff; background:#1f7a4d; border-radius:12px; padding:0 7px; font-weight:600; }
.pt-tag { border-left-color:#eee; } .pt-tag.we, .pt-tag.feiertag { background:#f5f5f5; }
.pt-balken.abw { background:#ececec; color:#333; } .pt-balken.abw .ic, .pt-balken.abw svg { color:#555; }
dialog.pt-panel { position:fixed; inset:0 0 0 auto; margin:0; height:100vh; max-height:100vh; width:min(560px, 100vw); border-radius:0; padding:0; display:flex; flex-direction:column; box-shadow:-6px 0 30px rgba(0,0,0,.18); }
dialog.pt-panel:not([open]) { display:none; }
.pt-panel-kopf { display:flex; align-items:center; justify-content:space-between; padding:16px 20px; border-bottom:1px solid #e6e6e6; flex:none; } .pt-panel-kopf h2 { margin:0; font-size:20px; }
.pt-panel-inhalt { flex:1 1 auto; min-height:0; overflow-y:auto; padding:16px 20px; display:flex; flex-direction:column; gap:14px; }
.pt-panel-inhalt > div:not([hidden]) { display:flex; flex-direction:column; gap:14px; }
.pt-panel-fuss { flex:none; display:flex; align-items:center; gap:8px; padding:12px 20px; border-top:1px solid #e6e6e6; } .pt-panel-fuss .rechts { margin-left:auto; }
.pt-reiter { display:flex; gap:4px; border-bottom:1px solid #e3e3e3; } .pt-reiter button { border:none; background:none; border-bottom:2px solid transparent; border-radius:0; padding:8px 12px; font-size:15px; font-weight:500; color:#6a6a6a; margin-bottom:-1px; }
.pt-reiter button.an { border-bottom-color:#131313; color:#111; font-weight:600; }
.pt-feld { display:flex; flex-direction:column; gap:6px; font-size:14px; color:#222; }
.pt-fest { background:#f3f3f3; border:1px solid #e6e6e6; border-radius:6px; padding:9px 12px; color:#333; }
.pt-wahl { text-align:left; width:100% !important; min-height:38px; } .pt-wahl.leer { color:#888; }
.pt-zeitraum { display:flex !important; flex-direction:row !important; align-items:flex-end; gap:10px; } .pt-zeitraum > .pt-feld { flex:1; min-width:0; } .pt-zeitraum[hidden] { display:none !important; }
.pt-ganz { flex:none; padding-bottom:9px; }
.pt-panel textarea { resize:none; field-sizing:content; min-height:80px; }
.pt-arten { display:flex; flex-direction:column; border:1px solid #e3e3e3; border-radius:8px; overflow:hidden; }
.pt-arten button { display:flex; align-items:center; gap:10px; border:none; border-top:1px solid #f0f0f0; border-radius:0; background:#fff; padding:10px 12px; text-align:left; font-size:14.5px; color:#222; }
.pt-arten button:first-child { border-top:none; } .pt-arten button:hover { background:#f7f7f7; } .pt-arten button.an { background:#eef4fb; font-weight:600; } .pt-arten svg { color:#555; flex:none; }
dialog.pt-panel:has(.pt-projekt-panel) { width:min(900px, 100vw); }
.pt-projekt-panel { display:grid !important; grid-template-columns:minmax(0, 1fr) 280px; gap:18px; align-items:start; }
.pt-pp-links { display:flex; flex-direction:column; gap:8px; } .pt-pp-links h3 { margin:0 0 4px; font-size:16px; }
.pt-pp-reihe { display:grid; grid-template-columns:minmax(0, 1fr) auto minmax(0, 1fr) minmax(0, 1.2fr) 34px; gap:6px; align-items:center; } .pt-pp-reihe > span { color:#777; }
.pt-pp-reihe .datumsfeld { min-width:0; }
.pt-dazu { display:inline-flex; align-items:center; gap:6px; align-self:flex-start; border:none; background:none; padding:6px 4px; font-weight:600; color:#111; }
.pt-pp-rechts { display:flex; flex-direction:column; gap:10px; } .pt-pp-rechts section { background:#f5f5f5; border-radius:8px; padding:12px 14px; display:flex; flex-direction:column; gap:8px; align-items:flex-start; }
.pt-pp-name { font-size:15px; } .pt-pp-zeile { display:flex; gap:8px; align-items:flex-start; font-size:14px; } .pt-pp-zeile svg { flex:none; color:#666; margin-top:1px; }
.pt-pp-link { display:inline-flex; align-items:center; gap:6px; font-weight:600; color:#111; text-decoration:none; padding-top:6px; border-top:1px solid #e3e3e3; width:100%; }
.pt-pp-rechts .pt-feld { width:100%; } .pt-pp-rechts .auswahl { width:100% !important; }
@media (max-width:760px) { .pt-projekt-panel { grid-template-columns:1fr; } .pt-pp-reihe { grid-template-columns:1fr 1fr 34px; } .pt-pp-reihe > span { display:none; } .pt-pp-reihe [data-k=titel] { grid-column:1 / 3; } }

/* ---------- Projekt-Reiter Bilder (3.85) ---------- */
.bi-tag { display:flex; align-items:baseline; gap:10px; margin:14px 0 8px; } .bi-tag:first-child { margin-top:4px; } .bi-tag b { font-size:15px; } .bi-tag span { font-size:13px; color:#777; }
.bi-raster { display:grid; grid-template-columns:repeat(auto-fill, minmax(140px, 1fr)); gap:6px; }
.bi-kachel { padding:0; border:1px solid #e3e3e3; border-radius:6px; overflow:hidden; aspect-ratio:1; background:#f3f3f3; cursor:zoom-in; }
.bi-kachel img { width:100%; height:100%; object-fit:cover; display:block; transition:transform .15s; } .bi-kachel:hover img { transform:scale(1.03); }
.pa-inhalt.bi-ziel { outline:2px dashed #999; outline-offset:-4px; }
dialog.bb { width:100vw; height:100vh; max-width:100vw; max-height:100vh; margin:0; padding:0; border-radius:0; background:#111; color:#fff; display:flex; flex-direction:column; }
dialog.bb:not([open]) { display:none; } dialog.bb::backdrop { background:#111; }
.bb-kopf { display:flex; align-items:center; gap:12px; padding:10px 16px; flex:none; } .bb-info { display:flex; flex-direction:column; gap:2px; } .bb-info span { font-size:13px; color:#bbb; }
.bb-kopf .icon-knopf { color:#fff; background:transparent; border-color:#444; }
.bb-buehne { flex:1 1 auto; min-height:0; display:flex; align-items:center; justify-content:center; position:relative; padding:0 60px 20px; touch-action:pan-y; }
.bb-buehne img { max-width:100%; max-height:100%; object-fit:contain; user-select:none; }
.bb-pfeil { position:absolute; top:50%; transform:translateY(-50%); width:46px; height:46px; border-radius:50%; border:none; background:rgba(255,255,255,.12); color:#fff; display:flex; align-items:center; justify-content:center; }
.bb-pfeil.l { left:10px; } .bb-pfeil.r { right:10px; } .bb-pfeil:hover { background:rgba(255,255,255,.22); } .bb-pfeil[hidden] { display:none; }
@media (max-width:700px) { .bb-buehne { padding:0 0 10px; } .bb-pfeil { display:none; } .bi-raster { grid-template-columns:repeat(3, 1fr); gap:3px; } }
.pt-hinter { background-image:linear-gradient(to right, #eee 1px, transparent 1px); background-size:var(--tw) 100%; }
.pt-panel-inhalt > .pt-reiter { flex-direction:row !important; gap:4px !important; } .pt-wahl { height:38px; min-height:38px !important; padding:0 12px !important; display:flex !important; align-items:center; } .pt-zeitraum .pt-ganz { white-space:nowrap; }

/* ---------- Plantafel 3.89: Projekte und Mitarbeiter getrennt scrollbar ---------- */
.pt { display:flex !important; flex-direction:column; overflow:hidden !important; }
.pt-teil { flex:none; overflow-x:hidden; overflow-y:auto; scrollbar-gutter:stable; position:relative; }
.pt-teil-kopf, .pt-teil-makopf { overflow:hidden; }
.pt-teil-kopf .pt-kopf { position:static; }
.pt-teil-projekte { flex:0 1 auto; min-height:0; max-height:45%; }
.pt-teil-makopf { border-top:1px solid #d9d9d9; } .pt-teil-makopf .pt-bereich-kopf { border-top:none; }
.pt-teil-ma { flex:1 1 0; min-height:0; overflow-x:auto; }
.pt-teil .pt-innen { min-height:100%; }
.pt.p-zu .pt-teil-projekte { display:none; }
.pt.m-zu .pt-teil-ma { flex:0 0 auto; } .pt.m-zu .pt-teil-ma .pt-innen { min-height:0; height:1px; }
/* Mitarbeiter zugeklappt (Dom 4.11.2026): die Leiste rutscht ganz nach unten, die Projekte bekommen die ganze Höhe – wie umgekehrt beim Zuklappen der Projekte */
.pt.m-zu .pt-teil-projekte { flex:1 1 0; max-height:none !important; height:auto !important; }
.pt-teiler { flex:none; height:7px; margin:-3px 0 -4px; position:relative; z-index:6; cursor:row-resize; }
.pt-teiler:hover, .pt-teiler.zieht { background:linear-gradient(#0000 2px, #9aa 2px, #9aa 4px, #0000 4px); }
.pt.p-zu .pt-teiler, .pt.m-zu .pt-teiler { display:none; }

/* ---------- KPI-Übersicht Startseite (3.90) ---------- */
.kpi { margin:18px 0 22px; } .kpi:empty { display:none; }
.kpi-kopf { display:flex; align-items:center; gap:14px; margin-bottom:12px; flex-wrap:wrap; } .kpi-kopf h2 { margin:0; font-size:18px; }
.kpi-kacheln { display:grid; grid-template-columns:repeat(auto-fill, minmax(190px, 1fr)); gap:10px; margin-bottom:10px; }
.kpi-kachel { background:#fff; border:1px solid var(--linie); border-radius:10px; padding:14px 16px; color:inherit; display:flex; flex-direction:column; gap:4px; min-width:0; }
a.kpi-kachel[href]:hover { border-color:#131313; text-decoration:none; }
.kpi-kachel .kpi-t { font-size:13px; color:#666; } .kpi-kachel b { font-size:26px; font-weight:700; line-height:1.15; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.kpi-kachel.warn b { color:var(--rot); }
.kpi-d { font-size:12.5px; color:#777; display:block; } .kpi-d.plus { color:#1f7a4d; } .kpi-d.minus { color:#b42323; }
.kpi-raster { display:grid; grid-template-columns:repeat(auto-fill, minmax(340px, 1fr)); gap:10px; }
.kpi-karte { background:#fff; border:1px solid var(--linie); border-radius:10px; padding:14px 16px; display:flex; flex-direction:column; gap:6px; min-width:0; }
.kpi-karte.breit { grid-column:1 / -1; } .kpi-karte h3 { margin:0 0 4px; font-size:15px; }
.kpi-legende { display:flex; align-items:center; gap:6px; font-size:12.5px; color:#666; } .kpi-legende span { width:10px; height:10px; border-radius:2px; display:inline-block; margin-left:8px; }
.kpi-legende .b, .kpi-saeulen .b { background:#E40000; } .kpi-legende .l, .kpi-saeulen .l { background:#989EA1; }
.kpi-balken { display:grid; grid-template-columns:repeat(12, 1fr); gap:8px; height:150px; align-items:end; }
.kpi-monat { display:flex; flex-direction:column; align-items:center; gap:4px; height:100%; } .kpi-monat span { font-size:12px; color:#777; flex:none; }
.kpi-saeulen { flex:1; width:100%; display:flex; align-items:flex-end; justify-content:center; gap:3px; border-bottom:1px solid #e3e3e3; }
.kpi-saeulen i { width:38%; max-width:16px; min-height:1px; border-radius:3px 3px 0 0; }
.kpi-zeile { display:grid; grid-template-columns:150px minmax(0, 1fr) 32px 90px; gap:10px; align-items:center; font-size:14px; color:inherit; padding:3px 0; }
a.kpi-zeile:hover { text-decoration:none; background:#fafafa; } .kpi-zeile b { text-align:right; } .kpi-zeile em { font-style:normal; color:#666; text-align:right; font-size:13px; }
.kpi-bar { height:8px; background:#f1f1f1; border-radius:4px; overflow:hidden; } .kpi-bar i { display:block; height:100%; background:#303030; border-radius:4px; }
.kpi-status { display:flex; flex-wrap:wrap; gap:8px; } .kpi-status a { display:inline-flex; align-items:center; gap:6px; color:inherit; } .kpi-status a:hover { text-decoration:none; opacity:.8; } .kpi-status b { font-size:14px; }
.kpi-liste { display:flex; align-items:center; gap:10px; padding:6px 0; border-top:1px solid #f0f0f0; color:inherit; font-size:14px; } .kpi-liste:first-of-type { border-top:none; }
a.kpi-liste:hover { text-decoration:none; background:#fafafa; } .kpi-liste > span { flex:1; min-width:0; display:flex; flex-direction:column; } .kpi-liste > span b { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.kpi-liste em { font-style:normal; color:#777; font-size:12.5px; } .kpi-seit { white-space:nowrap; }
@media (max-width:700px) { .kpi-zeile { grid-template-columns:110px minmax(0, 1fr) 28px 70px; } .kpi-raster { grid-template-columns:1fr; } }
/* Plantafel 3.91: seitlich nur über die Tafel (alle Bereiche gleichzeitig), eigene Leiste unten */
.pt-teil-ma { overflow-x:hidden !important; }
.pt-hbar { flex:none; overflow-x:auto; overflow-y:hidden; height:14px; scrollbar-gutter:stable; border-top:1px solid #eee; } .pt-hbar > div { height:1px; }
.pt-teil { overscroll-behavior-x:none; }

/* ---------- Gesprächsnotizen gegliedert (3.92) ---------- */
.nz-rahmen { display:flex; flex-direction:column; gap:10px; margin-top:12px; font-size:14.5px; line-height:1.55; }
.nz-kurz { background:#f5f5f5; border-radius:8px; padding:10px 14px; color:#222; } .nz-kurz .md > div { margin:0; }
.nz-kurz.lang:not(.auf) .md { display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; } .nz-kurz .link { margin-top:4px; font-size:13px; }
.nz-schritt { display:flex; gap:8px; align-items:flex-start; background:#fff6db; color:#6b4f00; border-radius:8px; padding:9px 14px; } .nz-schritt svg { flex:none; margin-top:2px; } .nz-schritt b { font-weight:600; margin-right:4px; }
.nz { display:flex; flex-direction:column; gap:2px; }
.nz-ab { padding:8px 0; border-top:1px solid #eee; } .nz-ab:first-child { border-top:none; padding-top:0; }
.nz-ab h4 { margin:0 0 4px; font-size:13px; font-weight:600; color:#575D5E; text-transform:none; letter-spacing:.01em; }
.nz-ab.wichtig h4 { color:#131313; } .nz-ab.wichtig { background:#fafafa; border-radius:8px; border-top:none; padding:8px 12px; margin:4px 0; }
details.nz-ab summary { display:flex; align-items:baseline; gap:10px; cursor:pointer; list-style:none; } details.nz-ab summary::-webkit-details-marker { display:none; }
details.nz-ab summary::before { content:''; flex:none; width:7px; height:7px; border-right:1.5px solid #777; border-bottom:1.5px solid #777; transform:rotate(-45deg); margin-right:2px; transition:transform .15s; align-self:center; }
details.nz-ab[open] summary::before { transform:rotate(45deg); } details.nz-ab summary h4 { margin:0; flex:none; } details.nz-ab summary span { color:#888; font-size:13px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; min-width:0; }
details.nz-ab[open] summary span { display:none; } details.nz-ab[open] > :not(summary) { margin-top:6px; }
.nz .md ul, .nz .md ol { margin:2px 0; padding-left:20px; } .nz .md .md-luecke { height:6px; }
.nz-kv { display:grid; grid-template-columns:minmax(120px, max-content) minmax(0, 1fr); gap:3px 14px; margin:4px 0; } .nz-kv dt { color:#666; } .nz-kv dd { margin:0; } .nz-kv dd .md > div { margin:0; }
.nz-alle { align-self:flex-start; font-size:13px; margin-top:4px; }
@media (max-width:600px) { .nz-kv { grid-template-columns:1fr; } .nz-kv dd { margin-bottom:6px; } }

/* ---------- Gesprächsnotiz als Seite (3.93): links Angaben, rechts Markdown ---------- */
.nt-titel { flex:1 1 auto; min-width:0; font-size:21px !important; font-weight:700; border:1px solid transparent !important; background:transparent !important; padding:4px 8px !important; }
.nt-titel:hover, .nt-titel:focus { border-color:#d9d9d9 !important; background:#fff !important; }
.nt { flex:1 1 auto; min-height:0; display:grid; grid-template-columns:300px minmax(0, 1fr); gap:12px; }
.nt-links { background:#fff; border:1px solid #e3e3e3; border-radius:10px; padding:14px; display:flex; flex-direction:column; gap:12px; overflow-y:auto; min-height:0; }
.nt-f { display:flex; flex-direction:column; gap:5px; font-size:13px; color:#555; } .nt-f > input, .nt-f > select, .nt-f .auswahl, .nt-f .feld-knopf { width:100% !important; }
.nt-f .md-eingabe { min-height:64px; font-size:14px; color:#111; }
.nt-fest { color:#111; font-size:14px; } .nt-info { border-top:1px solid #eee; padding-top:10px; margin-top:auto; line-height:1.5; }
.nt-rechts { background:#fff; border:1px solid #e3e3e3; border-radius:10px; display:flex; flex-direction:column; min-height:0; overflow:hidden; }
.nt-hilfe { display:flex; gap:14px; align-items:center; padding:8px 18px; border-bottom:1px solid #eee; font-size:12.5px; color:#888; flex:none; } .nt-hilfe span { font-family:ui-monospace, Menlo, monospace; }
.nt-hilfe .link { margin-left:auto; font-size:13px; }
.nt-rechts .md-eingabe { flex:1 1 auto; min-height:0; overflow-y:auto; border:none !important; border-radius:0 !important; padding:18px 26px 60px !important; font-size:15px; line-height:1.6; max-width:none; box-shadow:none !important; }
.nt-rechts .md-eingabe:focus { outline:none; }
@media (max-width:900px) { .nt { grid-template-columns:1fr; overflow-y:auto; } .nt-links, .nt-rechts { overflow:visible; } .nt-rechts .md-eingabe { min-height:50vh; } }
.nt-rechts .md-eingabe > [data-md^="#"] { margin-top:16px; } .nt-rechts .md-eingabe > [data-md^="#"]:first-child { margin-top:0; }

/* ---------- CRM-Bausteine (3.94): Beteiligte, Objekt, Kontakt-/Firmenseite ---------- */
.ck-reiter { margin-left:14px; } .ck-reiter a { text-decoration:none; }
.ck-ic { flex:none; width:28px; height:28px; border-radius:50%; background:#f1f1f1; display:inline-flex; align-items:center; justify-content:center; color:#555; }
.ck-bet, .ck-obj { display:flex; gap:10px; align-items:flex-start; padding:8px 0; border-top:1px solid #f0f0f0; } .ck-bet:first-of-type, .ck-obj { border-top:none; }
.ck-bet-text { flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; } .ck-bet-text a { color:inherit; } .ck-notiz { font-style:italic; }
.ck-rolle { display:inline-block; font-size:12px; padding:1px 8px; border-radius:10px; background:#eef1f4; color:#33495e; border:none; cursor:pointer; margin-left:4px; white-space:nowrap; }
.ck-werte { margin-top:6px; }
.ck-treffer { display:flex; flex-direction:column; gap:4px; margin:6px 0 10px; max-height:260px; overflow-y:auto; }
.ck-treffer-zeile { display:flex; gap:10px; align-items:center; text-align:left; background:#fff; border:1px solid #e3e3e3; border-radius:8px; padding:7px 10px; color:#111; cursor:pointer; }
.ck-treffer-zeile:hover { border-color:#999; } .ck-treffer-zeile > span:last-child { display:flex; flex-direction:column; min-width:0; }
.ck-neu-kopf { margin:10px 0 6px; padding-top:10px; border-top:1px solid #eee; }
.ck-seite { display:grid; grid-template-columns:minmax(280px, 380px) minmax(0, 1fr); gap:12px; align-items:start; }
.ck-hist { display:flex; flex-direction:column; }
.ck-hist-zeile { display:grid; grid-template-columns:84px 28px minmax(0, 1fr) auto; gap:10px; align-items:center; padding:8px 4px; border-top:1px solid #f0f0f0; color:inherit; text-decoration:none; }
.ck-hist-zeile:first-child { border-top:none; } .ck-hist-zeile:hover { background:#fafafa; text-decoration:none; }
.ck-hist-datum { font-size:13px; color:#777; font-variant-numeric:tabular-nums; } .ck-hist-text { display:flex; flex-direction:column; min-width:0; } .ck-hist-text b { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ck-hist-text .klein-text { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; } .ck-hist-unter { text-align:right; white-space:nowrap; }
@media (max-width:900px) { .ck-seite { grid-template-columns:1fr; } .ck-hist-zeile { grid-template-columns:70px 28px minmax(0, 1fr); } .ck-hist-unter { grid-column:3; text-align:left; } }
.pa-box:has(.pa-bet-box) .pa-tag { position:static; display:inline-block; margin-top:4px; }
.pa-bet a { color:#111; text-decoration:underline; text-decoration-color:#ccc; }
a.ck-bet b { color:#111; }
/* CRM Schritt 2 (3.95) */
.ck-spalte { display:flex; flex-direction:column; gap:12px; min-width:0; }
.ck-zahlen { display:grid; grid-template-columns:repeat(auto-fill, minmax(130px, 1fr)); gap:8px; }
.ck-zahlen > div { background:#fff; border:1px solid var(--linie); border-radius:10px; padding:10px 14px; display:flex; flex-direction:column; gap:2px; } .ck-zahlen span { font-size:12.5px; color:#666; } .ck-zahlen b { font-size:20px; }
a.ck-bet { color:inherit; text-decoration:none; } a.ck-bet:hover { background:#fafafa; }
.pa-bet-box { margin-top:8px; padding-top:6px; border-top:1px solid #eee; display:flex; flex-direction:column; gap:3px; }
.pa-bet-kopf { display:flex; align-items:center; justify-content:space-between; font-size:12px; color:#777; } .pa-bet-kopf .icon-knopf { width:24px; height:24px; min-width:24px; }
.pa-bet { display:flex; align-items:center; gap:6px; flex-wrap:wrap; font-size:14px; } .pa-bet .ck-rolle { margin-left:0; cursor:default; }
.pa-bet-weg { border:none; background:none; padding:2px; color:#999; cursor:pointer; margin-left:auto; } .pa-bet-weg:hover { color:var(--rot); }
/* Kunden & Kontakte (3.96) */
.ck-name { display:flex; gap:10px; align-items:center; }
.ck-bs { display:flex; gap:10px; align-items:center; width:100%; text-align:left; background:none; border:none; border-top:1px solid #f0f0f0; padding:8px 2px; color:#111; cursor:pointer; border-radius:0; }
.ck-bs:first-of-type { border-top:none; } .ck-bs:hover { background:#fafafa; } .ck-bs-text { flex:1; min-width:0; display:flex; flex-direction:column; }
/* Chat 3.97: Herkunft weitergeleiteter Nachrichten, Admin entfernt Lösch-Hinweis */
.ch-quelle { display:flex; align-items:center; gap:6px; margin:2px 0 6px; padding:6px 10px; border:1px solid #e3e3e3; border-radius:8px; background:#fff; color:#111; text-decoration:none; font-size:13px; max-width:100%; }
.ch-quelle:hover { border-color:#999; text-decoration:none; } .ch-quelle span { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-weight:500; } .ch-quelle em { font-style:normal; color:#777; font-weight:400; margin-left:4px; } .ch-quelle svg { flex:none; color:#666; }
.ch-n.ich .ch-quelle { background:rgba(255,255,255,.75); }
.ch-weg-ganz { border:none; background:none; padding:0 0 0 8px; color:#999; cursor:pointer; vertical-align:middle; } .ch-weg-ganz:hover { color:var(--rot); }

/* ---------- Geräte, Werkstatt, Lagerbestand, Anforderungen (3.99) ---------- */
.rs-ampel { display:inline-block; width:9px; height:9px; border-radius:50%; vertical-align:1px; } .rs-ampel.rot { background:var(--rot); } .rs-ampel.gelb { background:#e3a008; } .rs-ampel.gruen { background:#1f7a4d; }
.rs-qr { display:flex; align-items:center; gap:12px; margin-top:10px; } .rs-qr svg { width:96px; height:96px; flex:none; }
.rs-tab { width:100%; border-collapse:collapse; font-size:14px; } .rs-tab th { text-align:left; font-size:12.5px; color:#666; font-weight:600; padding:6px 8px; border-bottom:1px solid #e3e3e3; }
.rs-tab td { padding:7px 8px; border-bottom:1px solid #f0f0f0; vertical-align:top; } .rs-tab .zahl { text-align:right; white-space:nowrap; }
.rs-board { flex:1 1 auto; min-height:0; display:grid; grid-template-columns:repeat(4, minmax(220px, 1fr)); gap:10px; overflow-x:auto; padding-bottom:6px; }
.rs-spalte { background:#f4f4f4; border-radius:10px; padding:8px; display:flex; flex-direction:column; min-height:0; border:1px solid transparent; } .rs-spalte.drueber { border-color:#999; background:#eee; }
.rs-spalte-kopf { display:flex; justify-content:space-between; align-items:center; padding:2px 4px 8px; font-size:14px; } .rs-spalte-kopf span { color:#777; font-size:13px; }
.rs-karten { flex:1 1 auto; min-height:40px; overflow-y:auto; display:flex; flex-direction:column; gap:6px; }
.rs-karte { background:#fff; border:1px solid #e3e3e3; border-radius:8px; padding:9px 10px; cursor:grab; display:flex; flex-direction:column; gap:4px; font-size:14px; }
.rs-karte:hover { border-color:#999; } .rs-karte.zieht { opacity:.4; } .rs-karte.prio1 { border-left:3px solid var(--rot); } .rs-karte .klein-text svg { vertical-align:-3px; }
.rs-karte-fuss { display:flex; flex-wrap:wrap; gap:6px; align-items:center; }
.rs-bestand { display:flex; flex-direction:column; align-items:flex-start; gap:2px; background:#fff; border:1px solid var(--linie); border-radius:10px; padding:14px 18px; margin:0 0 10px; }
.rs-bestand span:first-child { font-size:13px; color:#666; } .rs-bestand b { font-size:32px; }
.rs-buchen { display:grid; grid-template-columns:repeat(3, 1fr); gap:8px; margin-bottom:12px; } .rs-buchen button { min-height:52px; font-size:16px; }
.rs-arten { margin:0 0 12px; } 
.rs-anf { margin-bottom:10px; } .rs-anf .akte-kopf { gap:10px; flex-wrap:wrap; } .rs-anf h2 a { color:#111; }
.rs-pos { display:flex !important; gap:8px; align-items:baseline; padding:5px 0; border-top:1px solid #f3f3f3; margin:0; } .rs-pos .klein-text { margin-left:auto; white-space:nowrap; }
.rs-anf-zeile { display:flex; gap:10px; align-items:flex-start; padding:10px 0; border-top:1px solid #f0f0f0; } .rs-anf-zeile:first-child { border-top:none; } .rs-anf-zeile > div { flex:1; } .rs-anf-zeile ul { margin:6px 0 0; padding-left:20px; font-size:14px; }
.rs-pos-tab input { width:70px; } .rs-pos-tab td { vertical-align:middle; }
@media (max-width:900px) { .rs-board { grid-template-columns:repeat(4, 80vw); } }
.formular label.haken.breit { flex-direction:row !important; align-items:center; gap:8px; color:#111; font-size:14px; }

/* 4.00: Fotos an Geräten, Fahrzeugen, Schäden; Schaden melden; Lagerbilder; Nachkalkulation */
.rs-feldtitel { font-size:13px; color:var(--grau); margin-bottom:4px; }
.rs-fotos { display:flex; flex-wrap:wrap; gap:8px; }
.rs-foto, .rs-foto-neu { position:relative; width:72px; height:72px; border:1px solid var(--linie); border-radius:8px; background:#fff; overflow:hidden; flex:none; }
.rs-fotos.gross .rs-foto, .rs-fotos.gross .rs-foto-neu { width:96px; height:96px; }
.rs-foto img { width:100%; height:100%; object-fit:cover; cursor:zoom-in; display:block; }
.rs-foto.laedt { display:flex; align-items:center; justify-content:center; }
.rs-foto-weg { position:absolute; top:3px; right:3px; width:20px; height:20px; padding:0; border-radius:50%; border:none; background:rgba(0,0,0,.6); color:#fff; display:flex; align-items:center; justify-content:center; cursor:pointer; }
.rs-foto-neu { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px; border-style:dashed; color:var(--grau); font-size:12px; cursor:pointer; }
.rs-foto-neu:hover { border-color:#999; color:#333; }
.verweis + .rs-fotos { margin:4px 0 8px; }
.rs-karte-bild { width:100%; height:90px; object-fit:cover; border-radius:6px; margin-bottom:6px; display:block; }
.rs-melden-karte { max-width:620px; }
.rs-melden textarea { font-size:15px; }
.rs-bestand { flex-direction:row !important; align-items:center !important; gap:16px !important; }
.rs-bestand > div { display:flex; flex-direction:column; gap:2px; }
.rs-bestand-bild { width:84px; height:84px; object-fit:contain; border:1px solid var(--linie); border-radius:8px; background:#fff; cursor:zoom-in; flex:none; }

/* Nachkalkulation im Projektkopf */
.pa-uebersicht-karte.nk-an { max-height:62vh; display:flex; flex-direction:column; }
.nk { overflow:auto; margin-top:10px; min-height:0; }
.nk-hinweis { background:#fff8e1; border:1px solid #f0d58a; border-radius:8px; padding:8px 12px; font-size:13.5px; margin-bottom:6px; }
.nk-oben { display:grid; grid-template-columns:1fr 1fr; gap:6px; }
.nk-gesamt .pa-box-titel { margin-bottom:6px; }
.nk-diff { margin-left:auto; font-size:13px; font-weight:600; text-transform:none; letter-spacing:0; padding:2px 8px; border-radius:10px; background:#e8f5ec; color:var(--gruen); }
.nk-diff.minus { background:#fdecec; color:var(--ampelrot); }
.nk-gesamt-zeile { display:flex; align-items:center; gap:16px; justify-content:space-between; }
.nk-zahl { font-size:26px; font-weight:600; line-height:1.2; }
.nk-budget { font-size:15px; }
.nk-ring { --p:0; width:92px; height:92px; border-radius:50%; flex:none; display:flex; align-items:center; justify-content:center;
  background:conic-gradient(var(--gruen) calc(var(--p) * 1%), #ececec 0); }
.nk-ring.ueber { background:conic-gradient(var(--ampelrot) calc(var(--p) * 1%), #ececec 0); }
.nk-ring span { width:74px; height:74px; border-radius:50%; background:#fff; display:flex; align-items:center; justify-content:center; font-weight:600; font-size:17px; }
.nk-balken { display:grid; grid-template-columns:96px 1fr 90px; align-items:center; gap:10px; font-size:14px; padding:3px 0; }
.nk-spur { height:10px; background:#f2f2f2; border-radius:5px; overflow:hidden; }
.nk-spur i { display:block; height:100%; border-radius:5px; min-width:0; }
.nk-betrag { text-align:right; font-variant-numeric:tabular-nums; }
.nk-teile { display:grid; grid-template-columns:1fr; gap:6px; margin-top:6px; }
.nk-teile section { border:1px solid #ececec; border-radius:8px; padding:12px 14px; min-width:0; }
.nk-teile h3 { font-size:14px; margin:0 0 8px; display:flex; gap:8px; align-items:baseline; flex-wrap:wrap; }
.nk-teile .rs-tab { font-size:13px; }
@media (max-width:1100px) { .pa-uebersicht-karte.nk-an { max-height:none; } .nk-oben, .nk-teile { grid-template-columns:1fr; } }
/* Handy: Eingabefelder mit 16 px, sonst zoomt iOS beim Antippen hinein */
@media (max-width:700px) { input, select, textarea { font-size:16px !important; } }
/* Rückmeldung des Lagers an der Materialanforderung */
.rs-antwort { background:#f6f6f6; border-left:3px solid #999; border-radius:4px; padding:6px 10px; margin:4px 0 8px; font-size:14px; }
.rs-antwort.rot { background:#fdecec; border-left-color:var(--ampelrot); }

/* Eingangsrechnungen (4.01) */
.re-zahl { display:inline-block; min-width:18px; padding:0 5px; border-radius:9px; background:#111; color:#fff; font-size:11px; line-height:17px; text-align:center; margin-left:4px; }
.re-tabelle td { vertical-align:middle; }
.re-pruef { grid-template-columns:minmax(0, 6fr) minmax(0, 5fr); }
.re-rechts { display:flex; flex-direction:column; gap:12px; min-width:0; }
.re-titel { display:flex; align-items:center; gap:10px; margin-bottom:10px; } .re-titel h2 { margin:0; font-size:17px; } .re-titel > :last-child:not(h2) { margin-left:auto; }
/* E-Rechnung (28.10.2026): Ansicht der XRechnung im Rahmen, Marke, Prüfhinweise, weitere Angaben aus der XML */
.re-ansicht { display:block; width:100%; height:100%; border:0; background:#fff; }
.marke.re-emarke { background:#e4eefc; color:#1f4f99; }
.re-hinweise ul { margin:4px 0 0; padding-left:18px; } .re-hinweise li { margin:2px 0; }
.re-ewerte { margin-top:14px; font-size:13px; grid-template-columns:auto 1fr; }
.re-zeile { display:grid; grid-template-columns:minmax(0, 1fr) 130px 110px 30px; gap:6px; align-items:center; margin-bottom:6px; }
.re-zeile input { text-align:right; }
.re-zeile-text { grid-column:1 / -1; margin:-4px 0 4px 4px; }
.re-naechste { display:flex; align-items:center; justify-content:space-between; gap:10px; }
@media (max-width:700px) { .re-zeile { grid-template-columns:1fr 1fr 30px; } .re-zeile .feld-knopf { grid-column:1 / -1; } }

/* Google-Kalender (4.02) */
.gk-kalender { display:flex; flex-wrap:wrap; gap:6px 14px; margin:0 0 10px; }
.gk-kal { display:inline-flex; align-items:center; gap:6px; font-size:13.5px; cursor:pointer; color:#333; }
.gk-kal input { display:none; }
.gk-kal span { width:14px; height:14px; border-radius:4px; border:2px solid var(--f); background:var(--f); }
.gk-kal input:not(:checked) + span { background:#fff; }
.gk-chip { font-size:12px; padding:2px 6px; border-radius:4px; background:color-mix(in srgb, var(--f) 18%, #fff); border-left:3px solid var(--f); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; cursor:pointer; }
.gk-woche { padding:0; overflow:hidden; display:flex; flex-direction:column; height:calc(100vh - 230px); min-height:420px; }
.gk-kopfzeile, .gk-ganz, .gk-raster-innen { display:grid; }
.gk-kopfzeile { border-bottom:1px solid var(--linie); }
.gk-tagkopf { text-align:center; padding:6px 0; font-size:12px; color:var(--grau); display:flex; flex-direction:column; }
.gk-tagkopf b { font-size:18px; color:#111; font-weight:500; } .gk-tagkopf.heute b { color:var(--rot); }
.gk-ganz { border-bottom:1px solid var(--linie); min-height:26px; } .gk-ganz > div { padding:3px 2px; display:flex; flex-direction:column; gap:2px; min-width:0; border-left:1px solid #f0f0f0; }
.gk-ecke { font-size:11px; color:var(--grau); padding:6px 4px; }
.gk-raster { overflow-y:auto; flex:1; min-height:0; }
.gk-stunden > div { position:relative; } .gk-stunden span { position:absolute; top:-7px; right:6px; font-size:11px; color:var(--grau); }
.gk-spalte { position:relative; border-left:1px solid #f0f0f0; background-image:linear-gradient(#f0f0f0 1px, transparent 1px); }
.gk-spalte.we { background-color:#fbfbfb; } .gk-spalte.heute { background-color:#fffaf9; }
.gk-block { position:absolute; border-radius:6px; background:color-mix(in srgb, var(--f) 16%, #fff); border-left:3px solid var(--f); padding:2px 6px; font-size:12px; line-height:1.3; overflow:hidden; cursor:pointer; box-shadow:0 1px 2px rgba(0,0,0,.06); }
.gk-zeit { color:#555; font-size:11px; } .gk-titel { font-weight:500; } .gk-ort { color:#666; font-size:11px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.gk-monat .akal-tag { cursor:default; }
.gk-punkt { display:inline-block; width:9px; height:9px; border-radius:50%; background:var(--f); margin-right:5px; vertical-align:0; }
.gk-beschreibung { white-space:pre-wrap; font-size:14px; background:#f7f7f7; border-radius:6px; padding:8px 10px; max-height:260px; overflow:auto; }
.gk-anleitung { padding-left:20px; line-height:1.6; } .gk-anleitung li { margin-bottom:8px; }
@media (max-width:700px) { .gk-woche { height:calc(100vh - 260px); } .gk-tagkopf b { font-size:15px; } }
.akal.gk-monat { grid-auto-rows:auto; overflow:visible; } .gk-monat .akal-tag { min-height:96px; } .gk-monat .akal-wt { padding:6px; }
@media (max-width:700px) { .gk-kopf { flex-wrap:wrap; row-gap:8px; } .gk-kopf h2 { order:-1; flex:1 0 100%; font-size:16px; } }

/* Ablage-Vorlage, Freigabe für die Baustelle (4.03) */
.av-zeile { display:flex; align-items:center; gap:8px; padding:8px 12px; border-bottom:1px solid #f0f0f0; }
.av-zeile:last-child { border-bottom:none; } .av-zeile .ic, .av-zeile svg:first-child { width:18px; height:18px; color:#888; flex:none; }
.av-zeile b { font-weight:500; flex:1; min-width:0; }
.av-frei { display:inline-flex; align-items:center; gap:5px; font-size:13px; color:#555; cursor:pointer; } .av-frei.geerbt { color:#aaa; cursor:default; }
.ab-frei { margin-left:8px; font-weight:400; vertical-align:1px; }
.ab-hinweis { margin:0 0 8px; }

/* Nachkalkulation als eigene Ansicht (4.05): Dashboard oben, Teile unten als Reiter */
.pa-reiter-knoepfe { display:flex; align-items:center; gap:2px; min-width:0; overflow-x:auto; scrollbar-width:none; flex:1 1 auto; }
.pa-reiter-knoepfe::-webkit-scrollbar { display:none; }
.reiter-mehr { flex:none; display:inline-flex; align-items:center; gap:3px; background:none; border:none; border-bottom:2px solid transparent; border-radius:0; padding:8px 6px; margin-right:10px; font-size:15px; font-weight:600; color:#999; cursor:pointer; white-space:nowrap; }
.reiter-mehr[hidden] { display:none; } .reiter-mehr:hover { color:#555; } .reiter-mehr.an { color:#111; border-bottom-color:#111; }
.pa-reiter-knoepfe > button { background:none; border:none; border-bottom:2px solid transparent; border-radius:0; padding:8px 6px 8px; margin-right:10px; font-size:15px; font-weight:500; color:#6a6a6a; cursor:pointer; white-space:nowrap; flex:none; }
.pa-reiter-knoepfe > button.an { color:#131313; font-weight:600; border-bottom-color:#131313; }
.nk-reiter-zahl { font-weight:500; font-size:12px; color:#333; background:#e4e4e4; border-radius:999px; padding:1px 7px; margin-left:4px; }
.nk { margin-top:10px; overflow:visible; }
.nk-dash { display:grid; grid-template-columns:1.1fr 1.3fr 1fr; gap:6px; height:100%; }
.nk-dash > .pa-box { display:flex; flex-direction:column; }
.nk-d1 .nk-gesamt-zeile { flex:1; align-items:center; }
.nk-zahl { font-size:30px; font-weight:600; letter-spacing:-.5px; }
.nk-budget { font-size:14px; color:#555; }
.nk-ring { width:96px; height:96px; }
.nk-ring.knapp { background:conic-gradient(var(--gelb) calc(var(--p) * 1%), #ececec 0); }
.nk-stapel { display:flex; height:14px; border-radius:7px; overflow:hidden; gap:2px; background:#f2f2f2; margin:2px 0 12px; }
.nk-stapel i { display:block; min-width:4px; }
.nk-legende { display:grid; gap:5px; font-size:14px; }
.nk-legende > div { display:grid; grid-template-columns:12px 1fr auto 42px; align-items:center; gap:8px; } .nk-legende > div.nk-null { color:#aaa; }
.nk-legende b { font-weight:500; font-variant-numeric:tabular-nums; } .nk-legende .klein-text { text-align:right; }
.nk-punkt { width:10px; height:10px; border-radius:3px; display:inline-block; }
.nk-kennzahlen { display:grid; grid-template-columns:1fr 1fr; gap:10px 14px; }
.nk-kennzahlen div { display:flex; flex-direction:column; } .nk-kennzahlen b { font-size:20px; font-weight:600; line-height:1.2; } .nk-kennzahlen span { font-size:12.5px; color:var(--grau); }
.nk-hinweise { margin-top:auto; padding-top:10px; display:flex; flex-direction:column; gap:3px; } .nk-hinweise span { font-size:12.5px; color:#8a6100; }
.nk-hinweise span::before { content:''; display:inline-block; width:6px; height:6px; border-radius:50%; background:var(--gelb); margin-right:6px; vertical-align:1px; }
.nk-tab { font-size:14px; } .nk-tab tr.klick:hover td { background:#fafafa; }
@media (max-width:1100px) { .nk-dash { grid-template-columns:1fr; } }
.nk-legende > div { grid-template-columns:12px minmax(0, 1fr) 84px 40px; }
.nk-legende > div > span:nth-child(2) { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.nk-legende { align-content:start; }
.nk { display:grid; } /* Boxen füllen die Höhe der Übersicht */
.nk-legende > div { grid-template-columns:10px minmax(0, 1fr) 70px 32px; gap:6px; }

/* Ablage-Vorlage wie plancraft (4.07) */
.av-karte { max-width:900px; padding:0; }
.av-kopf { display:flex; align-items:center; gap:10px; padding:14px 18px; border-bottom:1px solid var(--linie); }
.av-kopf h2 { margin:0; font-size:17px; } .av-kopf .primaer { margin-left:auto; } .av-kopf > svg { color:#444; }
.av-liste .av-zeile { display:flex; align-items:center; gap:8px; padding:11px 18px 11px calc(10px + var(--tiefe) * 32px); border-bottom:1px solid #f0f0f0; min-height:50px; }
.av-liste .av-zeile.unter { border-bottom-color:transparent; }
.av-liste .av-zeile:last-child { border-bottom:none; }
.av-auf, .av-auf-platz { width:26px; height:26px; flex:none; }
.av-auf { border:none; background:none; padding:0; display:flex; align-items:center; justify-content:center; color:#333; cursor:pointer; border-radius:5px; }
.av-auf:hover { background:var(--hell); } .av-auf.zu svg { transform:rotate(-90deg); }
.av-liste .av-zeile > svg { width:18px; height:18px; color:#333; flex:none; }
.av-name { flex:1; min-width:0; font-size:15px; }
.av-frei { display:inline-flex; align-items:center; gap:5px; border:none; border-radius:16px; padding:5px 12px; font-size:13px; font-weight:500; background:transparent; color:#bbb; visibility:hidden; }
.av-zeile:hover .av-frei, .av-frei.an { visibility:visible; } .av-frei:hover { background:var(--hell); color:#555; }
.av-frei.an { background:#ececec; color:#444; } .av-frei.an.geerbt { background:#f5f5f5; color:#999; cursor:default; }
.av-info { max-width:900px; display:flex; gap:10px; align-items:flex-start; margin-top:14px; padding:11px 14px; border:1px solid var(--linie); border-radius:8px; background:#fafafa; font-size:14px; color:#444; }
.av-info svg { flex:none; margin-top:1px; color:#666; }
@media (hover:none) { .av-frei { visibility:visible; } }
/* Sprachnachricht wie WhatsApp (gleich wie in der Handy-App): Profilbild außen, beim Abspielen Tempo-Knopf, Kurve mittig, darunter Dauer links und Uhrzeit rechts */
.ch-sprache .sprache { width:254px; max-width:100%; display:flex; align-items:center; gap:10px; padding:2px 0; }
.sp-block { flex:1; min-width:0; } .sp-reihe { display:flex; align-items:center; gap:6px; }
.sp-play { width:32px; height:32px; flex:none; border-radius:50%; border:none; background:none; color:#555; display:flex; align-items:center; justify-content:center; padding:0; cursor:pointer; }
.sp-play .ic, .sp-play svg { width:26px; height:26px; }
.sp-play svg:last-child, .sprache.spielt .sp-play svg:first-child { display:none; } .sprache.spielt .sp-play svg:last-child { display:block; }
.sp-mitte { flex:1; min-width:0; }
.sp-welle { display:flex; align-items:center; gap:2px; height:28px; cursor:pointer; }
.sp-welle i { flex:1; min-height:3px; border-radius:2px; background:#c4c4c4; } .sp-welle i.an { background:var(--rot, #e40000); }
.sp-fuss { display:flex; justify-content:space-between; align-items:center; gap:6px; margin-top:-3px; padding-left:38px; font-size:11.5px; line-height:1.2; color:#888; font-variant-numeric:tabular-nums; } .sp-uhr { display:inline-flex; align-items:center; gap:4px; }
.sp-seite { position:relative; width:38px; height:38px; flex:none; display:flex; align-items:center; justify-content:center; }
.sp-seite .sp-av { width:38px !important; height:38px !important; border-radius:50%; font-size:13px; display:flex; align-items:center; justify-content:center; object-fit:cover; }
.sp-mikro { position:absolute; right:-3px; bottom:-2px; width:16px; height:16px; border-radius:50%; background:#fff; color:#e40000; display:flex; align-items:center; justify-content:center; box-shadow:0 1px 2px rgba(0,0,0,.2); }
.sp-mikro svg { width:10px; height:10px; }
.sp-tempo { display:none; border:none; background:rgba(0,0,0,.55); color:#fff; border-radius:13px; font-size:12px; font-weight:600; padding:4px 8px; cursor:pointer; }
.sprache.spielt .sp-seite .sp-av, .sprache.spielt .sp-mikro { display:none; } .sprache.spielt .sp-tempo { display:block; }

/* Zeiterfassung (4.09) */
.zt-summen { display:flex; gap:44px; align-items:flex-end; padding:16px 22px; margin-bottom:14px; flex-wrap:wrap; }
.zt-summen > div { display:flex; flex-direction:column; gap:2px; } .zt-summen span { font-size:13.5px; color:var(--grau); } .zt-summen b { font-size:20px; font-weight:600; }
.zt-spanne { margin-left:auto; }
.zt-art { display:inline-flex; align-items:center; gap:6px; white-space:nowrap; } .zt-art svg { color:#555; flex:none; }
.zt-tabelle td { vertical-align:top; } .zt-text { max-width:260px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.zt-projekt { color:inherit; text-decoration:underline; text-underline-offset:2px; }
.zt-reiter { padding:0 20px; border-bottom:1px solid #e6e6e6; min-height:auto; }
.zt-zeile { display:grid; grid-template-columns:1fr 1fr auto; gap:10px; align-items:end; }
.zt-zeile:has(> label:nth-child(2):last-child) { grid-template-columns:1fr 1fr; }
.zt-dauer { padding-bottom:9px; font-size:15px; white-space:nowrap; min-width:72px; }
.zt-verlauf { padding:10px 0; border-bottom:1px solid #f0f0f0; display:flex; flex-direction:column; gap:2px; } .zt-verlauf ul { margin:4px 0 0; padding-left:18px; font-size:14px; }
#zt-historie { padding:4px 2px; }
.pa-stunden-balken { height:8px; border-radius:4px; background:#ececec; overflow:hidden; margin:6px 0 4px; } .pa-stunden-balken i { display:block; height:100%; background:var(--gruen); border-radius:4px; }
.pa-stunden-balken.ueber i { background:var(--ampelrot); }
.kd-knopf { display:inline-flex; align-items:center; gap:6px; padding:6px 10px; font-size:14px; border-color:var(--linie); }
.kd-zahl { background:#111; color:#fff; border-radius:9px; font-size:11px; min-width:18px; line-height:18px; text-align:center; padding:0 5px; }
.kd-liste { width:420px; max-height:70vh; overflow:auto; padding:0; }
.kd-titel { padding:10px 14px; font-weight:600; font-size:14px; border-bottom:1px solid var(--linie); }
.kd-zeile { display:flex; align-items:center; gap:10px; padding:9px 14px; border-bottom:1px solid #f2f2f2; cursor:pointer; } .kd-zeile:hover { background:#fafafa; }
.kd-zeile > span:nth-child(2) { flex:1; min-width:0; display:flex; flex-direction:column; } .kd-betrag { font-variant-numeric:tabular-nums; white-space:nowrap; }
.kd-fuss { display:flex; justify-content:flex-end; gap:8px; padding:10px 14px; }
.nk-legende.mit-soll > div { grid-template-columns:10px minmax(0, 1fr) 66px 30px 62px; } .nk-soll { text-align:right; }
.nk-legende.mit-soll > div { grid-template-columns:10px minmax(0, 1fr) 62px 62px; }
.nk-legende-kopf { font-size:11px; color:var(--grau); text-transform:uppercase; letter-spacing:.3px; } .nk-legende-kopf span { text-align:right; }

/* 4.11: Chat-Eingabe gehört sichtbar zum Chat (weiß mit Trennlinie statt grau wie der Hintergrund) */
.pa-chat .ch-unten, .cl-verlauf .ch-unten { background:#fff; border-top:1px solid var(--linie); }

/* 4.11: Projektkopf kompakter (Dom: mehr Platz für Ablage, Dokumente …) – Kästen niedriger, Schrift kleiner, Knöpfe in der Titelzeile */
.pa-uebersicht { margin-top:8px; gap:6px; }
.pa-box { padding:8px 12px; font-size:13.5px; line-height:1.4; }
.pa-box-titel { font-size:11.5px; margin-bottom:4px; gap:6px; } .pa-box-titel svg { width:14px; height:14px; }
.pa-box-rechts { margin-left:auto; display:flex; align-items:center; text-transform:none; letter-spacing:0; }
.pa-box-rechts .icon-knopf.klein { width:24px; height:24px; padding:0; border:none; } .pa-box-rechts .link { font-size:12.5px; }
.pa-gross, button.pa-link { font-size:16px; }
.pa-text { max-height:62px; } .pa-keine { min-height:0; }
.pa-tag { top:auto; bottom:8px; }
.pa-bet-box { margin-top:4px; padding-top:4px; } .pa-bet-box[hidden] { display:none; }
.pa-uebersicht .g5 .pa-text, .pa-uebersicht .g5 .pa-keine { font-size:13.5px; }
.pa-box.klick { cursor:pointer; } .pa-box.klick:hover { border-color:#cfcfcf; background:#fcfcfc; }
.pa-stunden-balken { height:6px; margin:4px 0 2px; }
/* Nachkalkulation im gleichen kompakten Maß */
.nk { margin-top:8px; }
.nk-zahl { font-size:22px; } .nk-budget { font-size:12.5px; }
.nk-ring { width:64px; height:64px; } .nk-ring span { width:50px; height:50px; font-size:13px; }
.nk-stapel { height:8px; margin:0 0 6px; } .nk-legende { gap:1px; font-size:12.5px; } .nk-legende-kopf { font-size:10px; }
.nk-kennzahlen { gap:4px 10px; } .nk-kennzahlen b { font-size:15px; } .nk-kennzahlen span { font-size:11.5px; }
.nk-hinweise { padding-top:4px; } .nk-hinweise span { font-size:11.5px; }
.nk-dash .pa-box-titel { margin-bottom:4px; }

/* Zeitraum wählen (Kalender wie plancraft) */
.zr-panel { padding:0; width:auto; max-width:calc(100vw - 16px); }
.zr-oben { display:flex; }
.zr-schnell { display:flex; flex-direction:column; padding:10px 6px; border-right:1px solid var(--linie); min-width:190px; }
.zr-schnell button { display:flex; align-items:center; gap:8px; border:none; background:none; padding:8px 12px; font-size:14.5px; text-align:left; border-radius:6px; font-weight:400; }
.zr-schnell button:hover { background:var(--hell); } .zr-schnell button.an { font-weight:500; } .zr-schnell button svg { color:var(--gruen); } .zr-schnell i { width:14px; display:inline-block; }
.zr-kalender { position:relative; display:flex; gap:22px; padding:14px 46px 12px; }
.zr-pfeil { position:absolute; top:10px; } .zr-pfeil.l { left:8px; } .zr-pfeil.r { right:8px; }
.zr-mname { text-align:center; font-weight:600; font-size:15px; margin:4px 0 10px; }
.zr-raster { display:grid; grid-template-columns:26px repeat(7, 36px); row-gap:3px; align-items:center; }
.zr-wt { font-size:12px; color:var(--grau); text-align:center; font-weight:500; } .zr-kw { font-size:11.5px; color:#aaa; text-align:center; border-right:1px solid #eee; }
.zr-tag { height:34px; border:none; background:none; padding:0; font-size:14px; font-weight:400; border-radius:0; }
.zr-tag:hover { background:var(--hell); } .zr-tag.heute { color:var(--rot); font-weight:600; }
.zr-tag.drin { background:#f0f0f0; } .zr-tag.start, .zr-tag.ende { background:#111; color:#fff; border-radius:6px; }
.zr-fuss { display:flex; align-items:center; gap:8px; padding:10px 14px; border-top:1px solid var(--linie); } .zr-fuss .rechts { margin-left:auto; }
.zr-zurueck { display:inline-flex; align-items:center; gap:6px; }
@media (max-width:820px) { .zr-oben { flex-direction:column; } .zr-schnell { border-right:none; border-bottom:1px solid var(--linie); flex-direction:row; flex-wrap:wrap; } .zr-kalender > .zr-monat:nth-of-type(3) { display:none; } }

/* 4.14: Projektkopf wieder „normal“ wie plancraft (4.11 war zu gedrückt) */
.pa-box { padding:14px 16px; font-size:15px; line-height:1.5; min-height:118px; box-sizing:border-box; }
.pa-box-titel { font-size:12.5px; margin-bottom:10px; gap:8px; } .pa-box-titel svg { width:17px; height:17px; }
.pa-gross, button.pa-link { font-size:17px; }
.pa-text { max-height:150px; }
.pa-adresse { color:#111; text-decoration:none; } .pa-adresse:hover { text-decoration:underline; }
.pa-tag { top:50%; bottom:auto; }
.pa-stunden-zeile { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.pa-wert { font-size:19px; } .pa-wert u { text-underline-offset:4px; text-decoration-thickness:1px; } .pa-unterwert { font-size:15px; margin-top:2px; }
.pa-ring { --p:0; width:78px; height:78px; border-radius:50%; flex:none; display:flex; align-items:center; justify-content:center; background:conic-gradient(var(--gruen) calc(var(--p) * 1%), #ececec 0); }
.pa-ring.ueber { background:conic-gradient(var(--ampelrot) calc(var(--p) * 1%), #ececec 0); }
.pa-ring span { width:66px; height:66px; border-radius:50%; background:#fff; display:flex; align-items:center; justify-content:center; font-size:14px; }
.pa-plan-ic { color:#333; display:flex; }
.pp-kopf { display:flex; align-items:center; justify-content:space-between; margin:14px 0 6px; } .pp-kopf h3 { margin:0; font-size:15px; } .pp-kopf:first-child { margin-top:0; }
.pp-zeile { display:flex; align-items:center; gap:10px; padding:9px 4px; border-bottom:1px solid #f0f0f0; cursor:pointer; } .pp-zeile:hover { background:#fafafa; }
.pp-zeile b { font-weight:500; min-width:0; } .pp-zeile span { margin-left:auto; color:#555; font-size:14px; white-space:nowrap; }
/* Nachkalkulation: wieder normale Größen */
.nk-zahl { font-size:26px; } .nk-budget { font-size:14px; } .nk-ring { width:84px; height:84px; } .nk-ring span { width:68px; height:68px; font-size:15px; }
.nk-stapel { height:10px; margin:2px 0 8px; } .nk-legende { gap:3px; font-size:13.5px; } .nk-kennzahlen { gap:8px 12px; } .nk-kennzahlen b { font-size:18px; } .nk-kennzahlen span { font-size:12.5px; }
/* Filterlisten: jede Zeile einzeilig (Dom), breite Liste für Projekte; „Kein Projekt“ abgesetzt */
.filter-panel .fp-eintrag > span:last-child { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; min-width:0; }
.filter-panel .fp-eintrag { min-width:0; } .filter-panel.breit { width:380px; max-width:calc(100vw - 16px); }
.filter-panel.breit .fp-eintrag[data-w="-"] { border-bottom:1px solid var(--linie); }

/* 4.14 Kalender wie Notion/Google: links Monat + Kalender, rechts Woche (0–24 Uhr) */
main.ka-seite { padding-bottom:0; }
.ka { display:flex; gap:0; flex:1 1 auto; min-height:0; margin:-4px 0 0; }
.ka-links { width:236px; flex:none; padding:4px 18px 16px 0; border-right:1px solid var(--linie); display:flex; flex-direction:column; min-height:0; overflow:hidden; }
.ka-links > .ka-leistenkopf, .ka-links > .ka-mini { flex:none; } .ka-links > .ka-unten { flex:1 1 auto; min-height:0; overflow-y:auto; } /* Monatsblock bleibt stehen, nur darunter scrollt (Dom 27.10.2026) */
.ka-neu { width:100%; display:flex; align-items:center; justify-content:center; gap:6px; margin-bottom:16px; }
.ka-mini-kopf { display:flex; align-items:center; justify-content:space-between; margin-bottom:4px; } .ka-mini-kopf b { font-size:14px; font-weight:600; }
.ka-mini-kopf .icon-knopf { width:26px; height:26px; }
.ka-mini-raster { display:grid; grid-template-columns:repeat(7, 1fr); gap:1px; }
.ka-mini-raster span { font-size:11px; color:var(--grau); text-align:center; padding:3px 0; }
.ka-mini-raster button { border:none; background:none; padding:0; height:28px; font-size:12px; font-weight:400; border-radius:50%; color:var(--schwarz); }
.ka-mini-raster button:hover { background:#f2f2f2; } .ka-mini-raster button.fremd { color:#bbb; }
.ka-mini-raster button.im { background:#f3f3f3; border-radius:0; } .ka-mini-raster button.heute { background:var(--rot); color:#fff; font-weight:600; border-radius:50%; }
.ka-mini-raster button.gewaehlt:not(.heute) { box-shadow:inset 0 0 0 1px var(--schwarz); border-radius:50%; }
.ka-gruppe { margin-top:20px; } .ka-gruppe-kopf { font-size:12px; font-weight:600; color:var(--grau); text-transform:uppercase; letter-spacing:.5px; margin-bottom:6px; display:flex; flex-direction:column; gap:1px; }
.ka-gruppe-kopf span { text-transform:none; letter-spacing:0; font-weight:400; font-size:12px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ka-kal { display:flex; align-items:center; gap:8px; padding:4px 2px; font-size:14px; cursor:pointer; border-radius:6px; } .ka-kal:hover { background:#f6f6f6; }
.ka-kal input { position:absolute; opacity:0; pointer-events:none; }
.ka-box { width:15px; height:15px; border-radius:4px; border:2px solid var(--f); flex:none; position:relative; }
.ka-kal input:checked + .ka-box { background:var(--f); } .ka-kal input:checked + .ka-box::after { content:''; position:absolute; left:3px; top:0; width:4px; height:8px; border:solid #fff; border-width:0 2px 2px 0; transform:rotate(45deg); }
.ka-kal input:focus-visible + .ka-box { outline:2px solid var(--schwarz); outline-offset:2px; }
.ka-kal-name { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ka-hinweis { font-size:13px; color:var(--grau); margin:4px 0 8px; line-height:1.4; }
.ka-haupt { flex:1 1 auto; min-width:0; display:flex; flex-direction:column; padding-left:18px; }
.ka-laden { padding:40px; color:var(--grau); }
.ka-kopf { display:flex; align-items:center; gap:6px; margin:0 0 10px; flex:none; }
.ka-kopf h1 { margin:0 0 0 8px; font-size:20px; font-weight:600; white-space:nowrap; } .ka-kopf h1 .klein-text { font-weight:400; margin-left:6px; font-size:14px; }
.ka-kopf .kal-art { margin-left:auto; }
.ka-woche { flex:1 1 auto; min-height:0; display:flex; flex-direction:column; border:1px solid var(--linie); border-radius:10px; background:#fff; overflow:hidden; }
.ka-kopfzeile, .ka-ganzzeile { display:grid; overflow-y:hidden; scrollbar-gutter:stable; flex:none; }
.ka-ganzzeile { border-bottom:1px solid var(--linie); }
.ka-tagkopf { text-align:center; padding:6px 0 4px; border-left:1px solid var(--linie); }
.ka-tagkopf span { display:block; font-size:12px; color:var(--grau); text-transform:uppercase; letter-spacing:.4px; }
.ka-tagkopf button { border:none; background:none; font-size:20px; font-weight:500; width:36px; height:36px; border-radius:50%; padding:0; color:var(--schwarz); }
.ka-tagkopf button:hover { background:#f2f2f2; } .ka-tagkopf.heute button { background:var(--rot); color:#fff; } .ka-tagkopf.heute span { color:var(--rot); }
.ka-ecke { font-size:11px; color:var(--grau); text-align:right; padding:5px 6px 0 0; }
.ka-ganz { display:grid; row-gap:2px; padding:2px 0 4px; max-height:120px; overflow-y:auto; min-height:28px; }
.ka-ganz-zelle { border-left:1px solid var(--linie); cursor:copy; position:relative; } .ka-ganz-zelle.heute { background:#fffafa; }
.ka-balken, .ka-chip { position:relative; z-index:1; margin:0 3px; font-size:12px; line-height:20px; height:20px; padding:0 7px; border-radius:5px; background:var(--f); color:#fff; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; cursor:pointer; }
.ka-balken.ziehbar, .ka-chip.ziehbar { cursor:grab; } .ka-balken.erledigt, .ka-chip.erledigt, .ka-block.erledigt { opacity:.5; text-decoration:line-through; }
.ka-balken.abschnitt, .ka-chip.abschnitt { background:color-mix(in srgb, var(--f) 18%, #fff); color:#222; border-left:3px solid var(--f); }
.ka-scroll { flex:1 1 auto; min-height:0; overflow-y:auto; scrollbar-gutter:stable; position:relative; }
.ka-raster { display:grid; }
.ka-stunden div { position:relative; font-size:11px; color:var(--grau); text-align:right; padding-right:8px; } .ka-stunden span { position:relative; top:-7px; }
.ka-spalte { position:relative; border-left:1px solid var(--linie); background-image:linear-gradient(to bottom, var(--linie) 1px, transparent 1px); cursor:copy; touch-action:none; }
.ka-spalte.we { background-color:#fcfcfc; } .ka-spalte.heute { background-color:#fffafa; }
.ka-block { position:absolute; border-radius:6px; background:color-mix(in srgb, var(--f) 16%, #fff); border-left:3px solid var(--f); padding:2px 6px; font-size:12px; line-height:1.3; overflow:hidden; cursor:pointer; color:#1f1f1f; touch-action:none; box-shadow:0 0 0 1px #fff; }
.ka-block.ziehbar:not(.fest) { cursor:grab; } .ka-block:hover { background:color-mix(in srgb, var(--f) 24%, #fff); }
.ka-b-titel { font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; } .ka-b-zeit, .ka-b-unter { color:#555; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ka-haken { display:inline-block; width:10px; height:10px; border:1.5px solid currentColor; border-radius:3px; margin-right:5px; vertical-align:-1px; opacity:.8; }
.ka-griff { position:absolute; left:0; right:0; bottom:0; height:7px; cursor:ns-resize; }
.ka-block.zieht, .ka-balken.zieht, .ka-chip.zieht { opacity:.35; }
.ka-geist { position:absolute; left:2px; right:2px; border:2px dashed var(--rot); background:rgba(228,0,0,.06); border-radius:6px; font-size:11px; padding:1px 6px; pointer-events:none; color:var(--rot); overflow:hidden; white-space:nowrap; z-index:4; }
.ka-ganz-zelle .ka-geist, .ka-m-tag .ka-geist { position:relative; inset:auto; margin:2px; height:18px; display:block; }
.ka-monat { flex:1 1 auto; min-height:0; display:flex; flex-direction:column; border:1px solid var(--linie); border-radius:10px; overflow:hidden; background:#fff; }
.ka-m-wt { display:grid; grid-template-columns:repeat(7, minmax(0, 1fr)); border-bottom:1px solid var(--linie); } .ka-m-wt div { font-size:12px; color:var(--grau); text-transform:uppercase; padding:6px 8px; }
.ka-m-raster { flex:1 1 auto; display:grid; grid-template-columns:repeat(7, minmax(0, 1fr)); grid-template-rows:repeat(6, minmax(0, 1fr)); min-height:0; overflow-y:auto; }
.ka-m-tag { border-right:1px solid var(--linie); border-bottom:1px solid var(--linie); padding:3px 2px; display:flex; flex-direction:column; gap:2px; min-width:0; min-height:96px; cursor:copy; }
.ka-m-tag.fremd { background:#fafafa; } .ka-m-tag.fremd .ka-m-nr { color:#bbb; }
.ka-m-nr { align-self:flex-start; border:none; background:none; font-size:13px; padding:2px 6px; border-radius:12px; color:#444; font-weight:400; } .ka-m-nr:hover { background:#f2f2f2; }
.ka-m-tag.heute .ka-m-nr { background:var(--rot); color:#fff; font-weight:600; }
.ka-chip:not(.ganz) { background:none; color:#1f1f1f; padding-left:16px; } .ka-chip:not(.ganz)::before { content:''; position:absolute; left:5px; top:6px; width:7px; height:7px; border-radius:50%; background:var(--f); }
.ka-chip:not(.ganz):hover { background:#f2f2f2; } .ka-chip b { font-weight:500; color:#555; }
.ka-mehr { font-size:12px; align-self:flex-start; padding:0 6px; }
.ka-dialog { width:min(540px, calc(100vw - 32px)); }
.ka-form-kopf { display:flex; align-items:center; gap:8px; } .ka-titel { flex:1; font-size:20px; font-weight:600; border:none; border-bottom:1px solid var(--linie); border-radius:0; padding:6px 2px; }
.ka-titel:focus { outline:none; border-bottom-color:var(--schwarz); }
.ka-wo { display:flex; align-items:center; gap:6px; margin:0; } .ka-wo .gk-punkt { background:var(--f); }
.ka-zeitzeile { display:flex; align-items:flex-end; gap:8px; flex-wrap:wrap; } .ka-zeitzeile label { margin:0; } .ka-uhr input { width:78px; text-align:center; }
.ka-strich { padding-bottom:9px; color:var(--grau); }
@media (max-width: 900px) { .ka-links { display:none; } .ka-haupt { padding-left:0; } .ka-kopf h1 { font-size:16px; } }
#pp-inhalt { gap:0; } #pp-inhalt > div.pp-kopf, #pp-inhalt > div.pp-zeile { flex-direction:row; gap:10px; } #pp-inhalt > div.pp-kopf { justify-content:space-between; }
/* 4.16 Zeiten: Projekt-Feld so hoch wie die anderen Felder */
#zt-projekt { flex:none; height:38px; min-height:38px; display:flex; align-items:center; gap:6px; }
#zt-projekt b { font-weight:600; flex:none; }
/* 4.16 Kalender: flüssig seitlich scrollen (Kopf oben, Stunden links fest), Kalenderzeilen wie Notion (Auge, ⋮, Farbe) */
.ka-woche { display:flex; flex-direction:column; }
.ka-woche .ka-scroll { flex:1 1 auto; min-height:0; overflow:auto; scrollbar-gutter:auto; overscroll-behavior-x:contain; }
.ka-oben { position:sticky; top:0; z-index:6; background:#fff; }
.ka-woche .ka-kopfzeile, .ka-woche .ka-ganzzeile { overflow:visible; scrollbar-gutter:auto; }
.ka-fest { position:sticky; left:0; z-index:5; background:#fff; }
.ka-stunden.ka-fest { z-index:3; border-right:1px solid var(--linie); }
.ka-woche .ka-ganz { overflow-x:hidden; }
.ka-spalte .ka-geist { z-index:2; } .ka-block { z-index:1; }
.ka-kal { display:grid; grid-template-columns:12px minmax(0, 1fr) 26px 26px; align-items:center; gap:8px; padding:2px 2px 2px 4px; cursor:default; }
.ka-punkt { width:10px; height:10px; border-radius:3px; background:var(--f); }
.ka-kal-name { cursor:pointer; }
.ka-kal .icon-knopf { width:26px; height:26px; opacity:0; transition:opacity .1s; } .ka-kal .icon-knopf svg { width:15px; height:15px; }
.ka-kal:hover .icon-knopf, .ka-kal .icon-knopf:focus-visible, .ka-kal.aus .ka-auge { opacity:1; }
.ka-kal.aus .ka-punkt, .ka-kal.aus .ka-kal-name { opacity:.4; } .ka-kal.aus .ka-auge { color:var(--grau); }
.ka-farbwahl { position:fixed; z-index:200; background:#fff; border:1px solid #e3e3e3; border-radius:10px; box-shadow:0 10px 30px rgba(0,0,0,.14); padding:10px; width:200px; display:grid; grid-template-columns:repeat(6, 1fr); gap:6px; }
.ka-farbwahl button { width:24px; height:24px; border-radius:50%; border:none; padding:0; background:var(--f); }
.ka-farbwahl button.an { box-shadow:0 0 0 2px #fff, 0 0 0 4px var(--f); }
.ka-farbwahl .ka-farb-standard { grid-column:1 / -1; width:auto; height:auto; border-radius:6px; background:none; font-size:13px; font-weight:400; padding:5px; text-align:left; } .ka-farbwahl .ka-farb-standard:hover { background:#f2f2f2; }
.ka-ort { display:flex; gap:6px; align-items:center; } .ka-ort input { flex:1; min-width:0; } .ka-ort .icon-knopf[hidden] { display:none; }
/* 4.18 Kalenderliste wie Notion: Farbfeld, Name, rechts ⋯ (beim Drüberfahren) und Auge ohne Rahmen */
.ka-gruppe-kopf { text-transform:none; letter-spacing:0; font-size:13px; font-weight:500; color:var(--grau); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; display:block; }
.ka-kal { grid-template-columns:18px minmax(0, 1fr) auto auto; gap:8px; padding:3px 4px; border-radius:6px; }
.ka-kal:hover { background:#f4f4f4; }
.ka-punkt { width:16px; height:16px; border-radius:4px; border:none; padding:0; background:var(--f); cursor:pointer; }
.ka-kal.haupt .ka-punkt { box-shadow:0 0 0 2px #fff, 0 0 0 3px var(--f); width:14px; height:14px; margin:1px; }
.ka-kal-name { font-size:14px; cursor:default; } .ka-kal-name i { font-style:normal; color:#aaa; margin-left:4px; font-size:13px; }
.ka-knopf { border:none; background:none; padding:3px; width:26px; height:26px; border-radius:6px; display:inline-flex; align-items:center; justify-content:center; color:#777; font-weight:400; cursor:pointer; }
.ka-knopf:hover { background:#e9e9e9; color:var(--schwarz); }
.ka-kal .ka-knopf { opacity:0; } .ka-kal:hover .ka-knopf, .ka-kal .ka-knopf:focus-visible { opacity:1; }
.ka-kal.aus .ka-auge { opacity:1; color:#999; } .ka-kal.aus .ka-punkt { opacity:.35; } .ka-kal.aus .ka-kal-name { opacity:.45; }

/* 4.18 Termin-Karte wie Notion: schwebt neben dem Termin, Zeilen mit Symbol, Felder ohne Rahmen */
.ka-karte { position:fixed; z-index:150; width:400px; max-width:calc(100vw - 24px); max-height:calc(100vh - 24px); overflow-y:auto; background:#fff; border:1px solid #e3e3e3; border-radius:14px; box-shadow:0 16px 40px rgba(0,0,0,.16); }
.kk-kopf { display:flex; align-items:center; gap:4px; padding:12px 12px 4px 20px; } .kk-kopf .rechts { flex:1; }
.kk-art { font-size:14px; color:var(--grau); }
.kk-titel { width:100%; border:none; font-size:20px; font-weight:600; padding:6px 20px 12px; outline:none; border-bottom:1px solid #eee; border-radius:0; }
.kk-zeile { display:grid; grid-template-columns:22px minmax(0, 1fr); gap:12px; padding:12px 20px; border-bottom:1px solid #f0f0f0; align-items:start; }
.kk-zeile[hidden] { display:none; }
.kk-ic { color:#999; display:flex; align-items:center; justify-content:center; height:30px; }
.kk-inhalt { min-width:0; display:flex; flex-direction:column; gap:6px; }
.kk-feld { border:none; background:none; padding:4px 6px; margin-left:-6px; font-size:15px; border-radius:6px; min-height:30px; width:100%; font-family:inherit; color:var(--schwarz); }
.kk-feld:hover { background:#f5f5f5; } .kk-feld:focus { background:#f2f2f2; outline:none; }
.kk-feld::placeholder { color:#aaa; }
select.kk-feld { width:auto; cursor:pointer; appearance:none; -webkit-appearance:none; padding-right:6px; }
.kk-zeit, .kk-datum { display:flex; align-items:center; gap:6px; } .kk-zeit[hidden] { display:none; }
.kk-uhr { width:64px; flex:none; font-size:16px; } .kk-datum .kk-feld { width:auto; flex:none; } .kk-datum [data-bistag] { display:inline-flex; align-items:center; gap:6px; } .kk-datum [data-bistag][hidden] { display:none; }
.kk-pfeil { color:#aaa; } .kk-dauer { color:var(--grau); font-size:14px; margin-left:4px; white-space:nowrap; }
.kk-optionen { display:flex; align-items:center; gap:14px; flex-wrap:wrap; color:var(--grau); font-size:14px; }
.kk-schalter { display:inline-flex; align-items:center; gap:6px; cursor:pointer; margin:0; font-size:14px; color:var(--grau); }
.kk-schalter input { width:15px; height:15px; margin:0; accent-color:var(--rot); }
.kk-wdh { display:inline-flex; align-items:center; gap:2px; margin:0; color:var(--grau); } .kk-wdh .kk-feld { font-size:14px; color:var(--grau); } .kk-wdh[hidden] { display:none; }
.kk-leise { font-size:13px; color:#999; }
.kk-mit { display:flex; align-items:center; gap:4px; } .kk-mit .ka-knopf[hidden] { display:none; }
.kk-text { resize:none; min-height:30px; line-height:1.45; }
.kk-hinweis { font-size:12px; color:var(--grau); }
.kk-kal { border-bottom:none; align-items:center; } .kk-farbe { width:14px; height:14px; border-radius:4px; display:block; }
.kk-kal .kk-inhalt { font-size:15px; }
.kk-fuss { display:flex; justify-content:flex-end; gap:8px; padding:6px 16px 16px; }
.ka-karte input.kk-feld, .ka-karte select.kk-feld, .ka-karte textarea.kk-feld { border:none; box-shadow:none; background-color:transparent; height:auto; }
.ka-karte input.kk-feld:hover, .ka-karte select.kk-feld:hover, .ka-karte textarea.kk-feld:hover { background-color:#f5f5f5; }
.ka-karte input.kk-feld:focus, .ka-karte select.kk-feld:focus, .ka-karte textarea.kk-feld:focus { background-color:#f0f0f0; box-shadow:none; }
.ka-karte input.kk-titel { border:none; border-bottom:1px solid #eee; box-shadow:none; height:auto; }
.ka-links { width:264px; }
.ka-karte .datumsfeld { width:auto; flex:none; } .ka-karte .datumsfeld input { border:none; box-shadow:none; background:none; width:112px; padding:4px 6px; font-size:15px; height:auto; border-radius:6px; }
.ka-karte .datumsfeld input:hover { background:#f5f5f5; } .ka-karte .datumsfeld input:focus { background:#f0f0f0; box-shadow:none; }
.ka-karte .datumsfeld .dp-knopf { opacity:0; } .ka-karte .datumsfeld:hover .dp-knopf { opacity:1; }
.ka-karte .auswahl { width:auto; } .ka-karte .auswahl-knopf { border:none; box-shadow:none; background:none; min-height:30px; padding:4px 6px; font-size:15px; gap:6px; }
.ka-karte .auswahl-knopf:hover { background:#f5f5f5; } .ka-karte .kk-wdh .auswahl-knopf { font-size:14px; color:var(--grau); }
.ka-karte .kk-kal .auswahl-knopf { margin-left:-6px; }
.ka-karte { z-index:50; } /* Auswahllisten (z-index 60) liegen darüber */
.ka-karte input.kk-titel:focus { outline:none; box-shadow:none; border-bottom-color:#ddd; }
/* 4.20 Kalender ruhiger (Dom: Farben zu grell): helle Fläche, Farbe nur als Kante; ausgewählter Termin mit Rahmen */
.ka-block { background:color-mix(in srgb, var(--f) 13%, #fff); border-left-color:color-mix(in srgb, var(--f) 75%, #fff); color:#2b2b2b; }
.ka-block:hover { background:color-mix(in srgb, var(--f) 19%, #fff); }
.ka-balken, .ka-chip.ganz { background:color-mix(in srgb, var(--f) 15%, #fff); color:#2b2b2b; border-left:3px solid color-mix(in srgb, var(--f) 75%, #fff); }
.ka-balken.abschnitt, .ka-chip.abschnitt { background:color-mix(in srgb, var(--f) 10%, #fff); }
.ka-chip:not(.ganz)::before { background:color-mix(in srgb, var(--f) 80%, #fff); }
.ka-punkt { background:color-mix(in srgb, var(--f) 85%, #fff); }
.ka-block.gewaehlt, .ka-balken.gewaehlt, .ka-chip.gewaehlt { box-shadow:0 0 0 2px color-mix(in srgb, var(--f) 55%, #fff); z-index:2; }
/* 4.20 feste Seiten (Kalender, Projekt, Chat, Aufgaben …): unten der gleiche schmale Rand wie an den Seiten */
main.feste-seite, main.ka-seite, main.chat-seite, main.dok-app, main.auf-seite, main.pt-seite { padding-bottom:10px; }
.zt-emoji { font-size:15px; line-height:1; display:inline-block; width:20px; text-align:center; }
/* 4.24 Unteraufgabe zuweisen, Glocke mit Mitteilungen */
.auf-u-wer { border:none; background:none; color:#aaa; padding:2px 6px; border-radius:12px; font-size:12px; font-weight:400; cursor:pointer; opacity:0; display:inline-flex; align-items:center; }
.auf-unter:hover .auf-u-wer, .auf-u-wer.an { opacity:1; } .auf-u-wer:hover { background:#f2f2f2; color:var(--schwarz); }
.auf-u-wer.an { background:#eef4fd; color:#2f5fa8; }
.glocke { position:relative; } .glocke b { position:absolute; top:0; right:0; min-width:15px; height:15px; border-radius:8px; background:var(--rot); color:#fff; font-size:10px; line-height:15px; text-align:center; padding:0 3px; }
.glocke b:empty { display:none; }
.mt-liste { position:fixed; z-index:120; width:330px; max-height:70vh; overflow-y:auto; background:#fff; border:1px solid #e3e3e3; border-radius:12px; box-shadow:0 12px 32px rgba(0,0,0,.16); }
.mt-kopf { display:flex; justify-content:space-between; align-items:center; padding:12px 14px 8px; } .mt-kopf .link { font-size:13px; }
.mt-eintrag { display:flex; flex-direction:column; gap:2px; width:100%; text-align:left; border:none; background:none; padding:10px 14px; border-top:1px solid #f0f0f0; font-weight:400; font-size:14px; cursor:pointer; }
.mt-eintrag:hover { background:#f7f7f7; } .mt-eintrag.neu { background:#fff7f7; } .mt-eintrag.neu span:first-child { font-weight:600; }
.mt-eintrag span { white-space:normal; }
/* 4.26 Benachrichtigungen: Panel neben der Seitenleiste (doppelt so breit), legt sich über die Seite */
.mt-panel { position:fixed; top:0; bottom:0; left:var(--nav); width:min(calc(var(--nav) * 2), calc(100vw - var(--nav))); z-index:45; background:#fff; border-right:1px solid var(--linie);
  box-shadow:8px 0 30px rgba(0,0,0,.10); display:flex; flex-direction:column; transform:translateX(-16px); opacity:0; transition:transform .18s ease, opacity .18s ease; }
.mt-panel.offen { transform:none; opacity:1; }
body.nav-zu .mt-panel { left:var(--nav-zu); }
.mt-kopf { display:flex; align-items:center; gap:4px; padding:16px 14px 8px 20px; } .mt-kopf h2 { margin:0; font-size:18px; } .mt-kopf .rechts { flex:1; }
.mt-reiter { display:flex; align-items:center; gap:4px; padding:0 20px 10px; border-bottom:1px solid var(--linie); } .mt-reiter .rechts { flex:1; }
.mt-reiter > button:not(.link) { border:none; background:none; padding:6px 10px; border-radius:6px; font-size:14px; font-weight:500; color:var(--grau); cursor:pointer; }
.mt-reiter > button.an { background:#f0f0f0; color:var(--schwarz); } .mt-reiter .link { font-size:13px; }
.mt-liste-innen { flex:1; overflow-y:auto; padding:4px 0 16px; }
.mt-tag { font-size:12px; color:var(--grau); font-weight:600; padding:14px 20px 4px; }
.mt-eintrag { display:grid; grid-template-columns:22px minmax(0, 1fr) 10px; gap:12px; align-items:start; width:100%; text-align:left; border:none; background:none; padding:10px 20px; font-weight:400; font-size:14px; cursor:pointer; border-top:none; }
.mt-eintrag:hover { background:#f7f7f7; } .mt-eintrag.neu { background:none; } .mt-eintrag.neu:hover { background:#f7f7f7; }
.mt-ic { color:#999; padding-top:1px; } .mt-eintrag.neu .mt-ic { color:var(--rot); }
.mt-text { display:flex; flex-direction:column; gap:2px; min-width:0; } .mt-text span:first-child { white-space:normal; line-height:1.4; } .mt-eintrag.neu .mt-text span:first-child { font-weight:600; }
.mt-punkt { width:8px; height:8px; border-radius:50%; background:var(--rot); margin-top:6px; }
.mt-leer { text-align:center; color:#aaa; padding:60px 20px; } .mt-leer p { margin:10px 0 0; font-size:14px; }
.glocke.an { background:#222; color:#fff; }
/* 4.28 Benachrichtigungs-Filter wie im Vorbild: Bereiche, Kästchen mit rotem Haken; „Alle gelesen“ als Doppelhaken oben */
.mt-filter { position:fixed; z-index:130; width:300px; background:#fff; border:1px solid #e3e3e3; border-radius:12px; box-shadow:0 12px 32px rgba(0,0,0,.16); overflow:hidden; }
.mt-f-gruppe { padding:10px 8px 8px; } .mt-f-gruppe + .mt-f-gruppe { border-top:1px solid #eee; }
.mt-f-titel { font-size:13px; font-weight:600; color:var(--grau); padding:2px 10px 6px; }
.mt-f-zeile { display:flex; align-items:center; gap:12px; padding:8px 10px; border-radius:8px; cursor:pointer; font-size:15px; margin:0; color:var(--schwarz); font-weight:400; }
.mt-f-zeile:hover { background:#f5f5f5; }
.mt-f-zeile input { position:absolute; opacity:0; pointer-events:none; }
.mt-f-box { width:18px; height:18px; border-radius:5px; border:1.5px solid #cfcfcf; flex:none; position:relative; background:#fff; }
.mt-f-zeile input:checked + .mt-f-box { background:var(--rot); border-color:var(--rot); }
.mt-f-zeile input:checked + .mt-f-box::after { content:''; position:absolute; left:5px; top:1.5px; width:5px; height:10px; border:solid #fff; border-width:0 2px 2px 0; transform:rotate(45deg); }
.mt-f-zeile input:focus-visible + .mt-f-box { outline:2px solid var(--schwarz); outline-offset:2px; }
.mt-kopf .ka-knopf[disabled] { opacity:.35; cursor:default; } .mt-kopf .ka-knopf[disabled]:hover { background:none; }
/* 4.30 kein Plus-Mauszeiger im Kalender (Dom) */
.ka-spalte, .ka-ganz-zelle, .ka-m-tag { cursor:default; }
/* 4.32 Ablauf: Fortschritt und Meilenstein auf der Plantafel, To-do-Listen, Einsätze-Liste, Ablauf-Vorlagen */
.pt-balken .pt-fort { position:absolute; left:0; top:0; bottom:0; background:rgba(0,0,0,.13); pointer-events:none; }
.pt-balken.mit-todos { padding-right:34px; }
.pt-zahl { position:absolute; right:8px; top:50%; transform:translateY(-50%); font-size:11px; font-weight:600; opacity:.7; white-space:nowrap; pointer-events:none; }
.pt-raute { position:absolute; top:11px; width:11px; height:11px; background:#d85a30; transform:rotate(45deg); border-radius:2px; z-index:2; pointer-events:auto; box-shadow:0 0 0 2px #fff; }
.pt-raute.fertig { background:#1f8a3b; }
.pt-raute-ic { display:inline-block; width:9px; height:9px; background:#d85a30; transform:rotate(45deg); border-radius:1px; margin:0 4px 0 2px; vertical-align:1px; }
.td-box { margin-top:6px; } .td-kopf { display:flex; align-items:baseline; gap:10px; margin:6px 0 6px; } .td-kopf b { font-size:15px; }
.td-balken { display:block; height:5px; border-radius:3px; background:#eee; overflow:hidden; margin:0 0 6px; } .td-balken > span { display:block; height:100%; background:var(--rot); border-radius:3px; }
.td-balken.klein { width:60px; height:4px; margin:0; display:inline-block; vertical-align:middle; }
.td-zeile { display:flex; align-items:center; gap:8px; padding:4px 0; border-bottom:1px solid #f0f0f0; } .td-zeile:hover .td-weg { opacity:1; }
.td-haken { padding:6px; margin:0; } .td-text { flex:1; min-width:0; cursor:text; font-size:14px; } .td-zeile.erledigt .td-text { color:var(--grau); text-decoration:line-through; }
.td-chip { border:none; background:none; color:#aaa; font-size:12px; font-weight:400; padding:3px 8px; border-radius:12px; cursor:pointer; white-space:nowrap; max-width:150px; overflow:hidden; text-overflow:ellipsis; display:inline-flex; align-items:center; }
.td-chip:hover { background:#f2f2f2; color:var(--schwarz); } .td-chip.an { background:#f3f3f3; color:#333; }
.td-weg { border:none; background:none; color:#999; padding:2px 6px; cursor:pointer; opacity:0; }
.td-neu { display:flex; align-items:center; gap:10px; padding:6px 0 6px 6px; } .td-neu input { border:none !important; box-shadow:none !important; flex:1; padding:6px 0; background:transparent; } .td-neu input:focus { outline:none; }
.pt-ansicht { margin-left:16px; } .pt-ansicht a { text-decoration:none; }
.pt-ab-projekt { color:var(--grau); }
.pp-fort { display:inline-flex; align-items:center; gap:6px; font-size:12px; color:var(--grau); margin-left:auto; } .pp-zeile .pp-fort + span { margin-left:12px; }
.ei-filter { display:flex; align-items:center; gap:10px; margin:0 0 12px; flex-wrap:wrap; } .ei-filter select { width:auto; min-width:180px; } .ei-filter .rechts { margin-left:auto; }
.ei-karte { padding:0; overflow:hidden; }
.ei-tag { padding:12px 18px 6px; font-size:13px; font-weight:600; color:var(--grau); background:#fafafa; border-bottom:1px solid var(--linie); } .ei-tag.heute { color:var(--rot); }
.ei-zeile { display:grid; grid-template-columns:110px 160px minmax(0, 1fr) 170px; gap:14px; align-items:center; width:100%; text-align:left; border:none; border-bottom:1px solid #f0f0f0; background:none; padding:12px 18px; font-weight:400; font-size:14px; cursor:pointer; }
.ei-zeile:hover { background:#f8f8f8; } .ei-was { display:flex; flex-direction:column; min-width:0; } .ei-was b { font-weight:600; } .ei-was span, .ei-was b { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ei-todos { display:flex; align-items:center; gap:8px; justify-content:flex-end; } .ei-zeit { color:var(--grau); }
.abv-zeile { cursor:pointer; gap:14px; } .abv-zeile .av-name { font-weight:600; min-width:160px; }
.abv-inhalt { gap:12px !important; }
.abv-ab { border:1px solid var(--linie); border-radius:10px; padding:10px 12px; display:flex !important; flex-direction:column; gap:6px !important; }
.abv-ab-kopf { display:flex; align-items:center; gap:8px; } .abv-ab-kopf > input { flex:1; font-weight:600; }
.abv-nr { width:22px; height:22px; border-radius:50%; background:#f2f2f2; font-size:12px; display:flex; align-items:center; justify-content:center; flex:none; }
.abv-tage { display:flex; align-items:center; gap:6px; margin:0; font-size:13px; color:var(--grau); white-space:nowrap; } .abv-tage input { width:64px; text-align:center; }
.abv-todos { padding-left:30px; } .abv-todo { display:flex; align-items:center; gap:10px; } .abv-todo input { flex:1; border:none !important; box-shadow:none !important; padding:6px 0; background:transparent; } .abv-todo:hover .td-weg { opacity:1; }
.abv-meilenstein { display:flex; align-items:center; gap:10px; margin:0 0 0 30px; } .abv-meilenstein input { flex:1; } .abv-raute { width:10px; height:10px; background:#d85a30; transform:rotate(45deg); border-radius:2px; flex:none; }
.pt-ansicht a { display:flex; align-items:center; }

.pt-ab-projekt { display:block; margin:0 0 4px; font-size:13px; } .pt-ab-projekt .link { display:inline; padding:0; }

/* Gerät: ein großes Foto (Dom 24.10.2026) – im Dialog oben rechts, auf der Seite oben */
.gd-raster { display:grid; grid-template-columns:minmax(0, 1fr) 260px; gap:20px; align-items:start; }
.gd-foto { position:sticky; top:0; }
.haupt-foto { width:100%; aspect-ratio:1; border:1.5px dashed var(--linie); border-radius:14px; background:#fafafa; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; color:var(--grau); cursor:pointer; overflow:hidden; }
.haupt-foto.mit { border-style:solid; } .haupt-foto.ueber { border-color:var(--rot); background:#fff5f5; } .haupt-foto img { width:100%; height:100%; object-fit:cover; display:block; }
.haupt-foto-knoepfe { display:flex; justify-content:space-between; margin-top:6px; }
.geraet-foto-kasten { padding:0; overflow:hidden; } .geraet-foto { display:block; width:100%; aspect-ratio:1; object-fit:cover; cursor:zoom-in; border:none; }
.geraet-foto.leer { background:#fafafa; color:var(--grau); display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; cursor:pointer; font:inherit; }
@media (max-width:760px) { .gd-raster { grid-template-columns:1fr; } .gd-foto { position:static; order:-1; max-width:260px; } }
@media print { #versionshinweis { display:none !important; } } body.nur-druck #versionshinweis { display:none; } /* nicht ins Protokoll-PDF */
/* 4.34 Plantafel: Profilbilder, Mitarbeiter ziehen, ⋮ nur an der Gruppe */
.pt-zieh { cursor:grab; gap:10px; touch-action:none; } .pt-zieh .pt-name { padding-left:0; } .pt-avatar { width:28px; height:28px; margin-left:22px; font-size:11px; }
.pt-person.pt-zieht { opacity:.45; }
.pt-drop-vor { box-shadow:inset 0 2px 0 var(--rot); } .pt-drop-nach { box-shadow:inset 0 -2px 0 var(--rot); } .pt-drop-in { background:#fff5f5 !important; box-shadow:inset 0 0 0 1px var(--rot); }
.pt-gruppe [data-gm] { margin-left:auto; opacity:0; } .pt-gruppe:hover [data-gm], .pt-gruppe [data-gm]:focus-visible { opacity:1; }
/* 4.38 Plantafel: Mitarbeiter „in der Hand“ beim Ziehen */
.pt-hand { position:fixed; z-index:300; pointer-events:none; display:flex; align-items:center; gap:10px; padding:8px 14px 8px 0; background:#fff; border-radius:10px; box-shadow:0 10px 28px rgba(0,0,0,.22); font-weight:600; font-size:14px; transform:rotate(-1.5deg); }
.pt-hand .pt-avatar { margin-left:10px; } .pt-hand .pt-name { padding-left:0; }
body.pt-greift, body.pt-greift * { cursor:grabbing !important; }
.pt-person.pt-zieht { opacity:.3; background:#fafafa; }
.pt-drop-vor { box-shadow:inset 0 3px 0 var(--rot); } .pt-drop-nach { box-shadow:inset 0 -3px 0 var(--rot); }
/* 4.38 Kalender-Kopf: Heute, Pfeile und Ansicht gleich hoch */
.ka-kopf > .klein, .ka-kopf > .icon-knopf { height:36px; min-height:36px; } .ka-kopf > .klein { padding:0 14px; font-size:14px; } .ka-kopf > .icon-knopf { width:36px; }

/* 4.38 Eigene PDF-Ansicht (statt Browser-Leiste) */
.pdfa { position:relative; display:flex; flex-direction:column; background:#ececec; }
.pdfa-seiten { flex:1 1 auto; min-height:0; overflow:auto; padding:16px; }
.pdfa-innen { transition:transform .18s ease-out; display:flex; flex-direction:column; align-items:center; gap:14px; width:fit-content; min-width:100%; } .pdfa-innen canvas { background:#fff; box-shadow:0 1px 6px rgba(0,0,0,.14); display:block; }
.pdfa-lade { padding:40px; text-align:center; color:var(--grau); }
/* Zoom und Herunterladen oben rechts am Dokument und immer sichtbar (Dom 3.11.2026, vorher unten rechts nur beim Drüberfahren) */
.pdfa-leiste { position:absolute; left:50%; transform:translateX(-50%); top:10px; z-index:3; display:flex; align-items:center; gap:2px; background:rgba(30,30,30,.82); color:#fff; border-radius:10px; padding:4px; }
.pdfa-leiste button, .pdfa-leiste a { border:none; background:none; color:#fff; width:30px; height:30px; border-radius:7px; display:inline-flex; align-items:center; justify-content:center; font-size:18px; font-weight:400; cursor:pointer; padding:0; }
.pdfa-leiste button:hover, .pdfa-leiste a:hover { background:rgba(255,255,255,.16); } .pdfa-leiste span { font-size:12px; min-width:42px; text-align:center; }
/* 4.38 Ausgangsrechnungen (wie plancraft) */
.ar-marke { display:inline-block; padding:3px 10px; border-radius:12px; font-size:13px; font-weight:500; }
.ar-entwurf { background:#d7f1fb; color:#22677d; } .ar-offen { background:#dce8fd; color:#1d4fb8; } .ar-bezahlt { background:#d3f2e3; color:#1c6b47; }
.ar-ueberfaellig { background:#fbe8a6; color:#7a5b00; } .ar-angemahnt { background:#fdd8d6; color:#a3241f; } .ar-storniert { background:#ececec; color:#555; }
.ar-rot { color:#c62828; } .ar-nb { width:auto; min-width:110px; }
.ar-tabelle td.zahl, .ar-tabelle th.zahl { text-align:right; white-space:nowrap; } .ar-tabelle td { vertical-align:middle; }
.ar-fuss-offen { margin-left:48px; } .ar-fuss-bez { margin-left:28px; color:var(--grau); }
.ar-detail { display:grid; grid-template-columns:minmax(0, 1.05fr) minmax(0, 1fr); gap:16px; flex:1 1 auto; min-height:0; }
.ar-detail .ang-pdf { position:static; height:auto; min-height:0; }
.ar-rechts { overflow-y:auto; min-height:0; padding:18px 22px; }
.ar-kopf { display:flex; flex-wrap:wrap; gap:22px; align-items:center; padding-bottom:14px; border-bottom:1px solid var(--linie); }
.ar-raster { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:16px 24px; padding:16px 0; border-bottom:1px solid var(--linie); }
.ar-raster h3, .ar-teil h3 { margin:0 0 6px; font-size:15px; } .ar-raster p { margin:0; line-height:1.55; }
.ar-summen td { padding:1px 0; } .ar-summen td + td { text-align:right; padding-left:24px; } .ar-summen .ar-brutto td { border-top:1px solid #333; font-weight:600; }
.ar-teil { padding:14px 0; border-bottom:1px solid var(--linie); } .ar-teil:last-child { border-bottom:none; }
.ar-zeile { display:grid; grid-template-columns:96px minmax(0, 1fr) auto 32px; gap:10px; align-items:center; padding:6px 0; border-bottom:1px solid #f2f2f2; color:inherit; text-decoration:none; }
.ar-zeile.ar-dok { grid-template-columns:96px minmax(0, 1fr) auto auto; cursor:pointer; } .ar-zeile.ar-dok:hover { background:#fafafa; } .ar-zeile.ar-dok .icon-knopf { width:28px; height:28px; }
.ar-dazu { display:inline-flex; align-items:center; gap:8px; border:none; background:none; font-weight:600; font-size:14px; padding:8px 4px; margin-right:14px; cursor:pointer; color:var(--schwarz); }
.ar-dazu:hover { color:var(--rot); }
#ar-notiz { width:100%; border:1px solid var(--linie); border-radius:8px; padding:8px 10px; resize:none; }
@media (max-width:1100px) { .ar-detail { grid-template-columns:1fr; } .ar-detail .ang-pdf { height:70vh; } }

/* 4.40: Anfangs-/Schlusstext als Textfeld mit Formatierung (fett, kursiv, Aufzählung) */
.dok-text-feld { min-height:24px; padding:8px 10px; border:1px solid transparent; border-radius:8px; font-size:14.5px; line-height:1.5; outline:none; background:#fff; }
.dok-text-feld:hover { border-color:#e4e4e4; } .dok-text-feld:focus { border-color:#111; }
.dok-text-feld:empty::before { content:attr(data-leer); color:#b4b4b4; }
.dok-text-feld ul, .dok-text-feld ol { margin:2px 0; padding-left:22px; }
.auswahl-eintrag.aus { color:#b5b5b5; cursor:default; } .auswahl-eintrag.aus.aktiv { background:none; }
/* 4.40: Folgedokument wie plancraft, feste Knopfplätze in der Vorschau */
.dok-folge-kopf { display:flex; justify-content:space-between; align-items:center; padding:10px 0; border-bottom:1px solid #eee; }
.dok-folge-liste { max-height:52vh; overflow:auto; margin:0 -4px; }
.dok-folge-z { display:grid; grid-template-columns:22px 44px minmax(0, 1fr) 110px 100px; gap:8px; align-items:center; padding:9px 4px; border-bottom:1px solid #f0f0f0; font-size:14px; cursor:pointer; }
.dok-folge-z.titel { font-weight:700; } .dok-folge-z:hover { background:#fafafa; }
.dok-folge-text { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; } .dok-folge-menge, .dok-folge-preis { text-align:right; white-space:nowrap; } .dok-folge-nr { color:#777; }
.dok-folge-fuss { display:flex; align-items:center; gap:22px; padding-top:14px; flex-wrap:wrap; } .dok-folge-fuss .rechts { margin-left:auto; }
.dv-haupt { width:208px; justify-content:center; text-align:center; white-space:nowrap; flex:none; } span.dv-haupt { display:inline-block; } .icon-platz { display:inline-block; width:32px; }
/* PDF-Text markierbar (pdf.js-Textebene) */
.pdf-seite { position:relative; margin:0 auto; flex:none; } .pdf-seite canvas { display:block; }
.textLayer { position:absolute; inset:0; overflow:hidden; line-height:1; text-size-adjust:none; forced-color-adjust:none; transform-origin:0 0; z-index:2; }
.textLayer span, .textLayer br { color:transparent; position:absolute; white-space:pre; cursor:text; transform-origin:0% 0%; }
.textLayer ::selection { background:rgba(0, 90, 255, .25); color:transparent; }
.textLayer > :not(.endOfContent) { z-index:1; }
.textLayer .endOfContent { display:block; position:absolute; inset:100% 0 0; z-index:0; cursor:default; user-select:none; } .textLayer.selecting .endOfContent { top:0; }
/* 4.42: Neues Dokument – Blanko oder aus bestehendem Dokument */
.ds-kopf { display:flex; align-items:center; gap:12px; padding-bottom:14px; margin-bottom:16px; border-bottom:1px solid #eee; } .ds-kopf h2 { margin:0; font-size:20px; } .ds-kopf .rechts { margin-left:auto; }
.icon-knopf.ohne-rand { border-color:transparent; background:none; }
.ds-wege button { padding:16px 18px; } .ds-wege b { display:block; font-size:15px; } .ds-wege small, .ds-zeile small { display:block; color:#777; font-weight:400; margin-top:3px; font-size:13px; }
.ds-suche { width:100%; box-sizing:border-box; margin-bottom:10px; }
.ds-liste { max-height:56vh; overflow:auto; display:flex; flex-direction:column; }
.ds-zeile { display:flex; justify-content:space-between; align-items:center; gap:14px; text-align:left; padding:10px 8px; border:none; border-bottom:1px solid #f0f0f0; background:none; border-radius:0; font-weight:400; }
.ds-zeile:hover { background:#fafafa; } .ds-zeile > span:last-child { white-space:nowrap; }
.dok-tabelle.brief .dok-pos.text .dok-pos-text, .dok-tabelle.brief .dok-pos.bild > div { grid-column:2 / 8; }
.dok-pos-text ul, .dok-pos-text ol { margin:2px 0; padding-left:20px; }
/* 4.42: Mitarbeiterakte mit Reitern oben, Leiste links */
.ma-reiter { margin:-4px 0 14px; border-bottom:1px solid #eee; }
.ma-akte { display:grid; grid-template-columns:240px minmax(0, 1fr); gap:20px; align-items:start; }
.ma-nav { display:flex; flex-direction:column; background:#fff; border:1px solid #e6e6e6; border-radius:10px; padding:6px; position:sticky; top:10px; }
.ma-nav button { text-align:left; background:none; border:none; border-radius:7px; padding:10px 12px; font-weight:500; color:#444; cursor:pointer; }
.ma-nav button:hover { background:#f6f6f6; } .ma-nav button.an { background:#f1f1f1; color:#111; font-weight:600; }
.ma-teil .akte-kasten { max-width:900px; width:100%; box-sizing:border-box; }
.ma-leiste { display:flex; align-items:center; gap:10px; margin-bottom:14px; } .ma-leiste .rechts { margin-left:auto; }
.ma-karten { display:grid; grid-template-columns:repeat(auto-fit, minmax(320px, 1fr)); gap:16px; margin-bottom:16px; }
.ma-karte h3 { margin:0 0 12px; font-size:15px; } .ma-zahlen { display:grid; grid-template-columns:repeat(auto-fit, minmax(90px, 1fr)); gap:10px; }
.ma-zahl { display:flex; flex-direction:column; align-items:center; text-align:center; } .ma-zahl span { font-size:12px; color:#777; text-transform:uppercase; letter-spacing:.03em; }
.ma-zahl b { font-size:26px; font-weight:600; margin:4px 0 2px; } .ma-zahl small { color:#999; font-size:12px; }
.ma-tabelle-karte { padding:6px 14px 14px; } .ma-tabelle-karte .tabelle { border:none; }
.ma-dok { display:flex; align-items:center; gap:10px; padding:12px 4px; border-bottom:1px solid #f0f0f0; } .ma-dok .rechts { margin-left:auto; }
@media (max-width:900px) { .ma-akte { grid-template-columns:1fr; } .ma-nav { position:static; flex-direction:row; flex-wrap:wrap; } }
/* 4.42: Ressourcen am Einsatz */
.pt-res { display:flex; flex-wrap:wrap; gap:6px; align-items:center; min-height:30px; }
.pt-res-chip { display:inline-flex; align-items:center; gap:6px; background:#f2f2f2; border-radius:14px; padding:4px 6px 4px 10px; font-size:13px; }
.pt-res-chip.belegt { background:#fff3e0; color:#9a5b00; } .pt-res-chip button { border:none; background:none; padding:0 2px; cursor:pointer; color:#888; font-size:12px; }
.preis-kurve { width:100%; height:120px; display:block; overflow:visible; } .preis-kurve-achse { display:flex; justify-content:space-between; font-size:12px; color:#999; }
.preis-tabelle { width:100%; font-size:13px; } .preis-tabelle td { padding:3px 0; border-bottom:1px solid #f2f2f2; }
.ap-zeile { display:flex; justify-content:space-between; align-items:flex-start; gap:10px; padding:10px 0; border-bottom:1px solid #f0f0f0; } .ap-zeile:last-child { border-bottom:none; }
/* 4.42: Kennzahlen mit Reitern */
.kpi-reiter { margin:0 0 12px; border-bottom:1px solid #eee; min-height:0; padding-top:0; }
.kpi-saeulen i.g { background:#d6d6d6; } .kpi-legende span.g { background:#d6d6d6; }
.kpi-bar.zwei { position:relative; display:flex; flex-direction:column; gap:3px; background:none; height:auto; } .kpi-bar.zwei i { display:block; height:5px; border-radius:3px; background:#d6d6d6; }
.kpi-bar.zwei i.ist { background:var(--rot); } .kpi-bar.zwei i.ist.drueber { background:#d97706; }
.kpi-zeile.zeit { grid-template-columns:minmax(120px, 220px) minmax(0, 1fr) 150px; } .kpi-zeile.zeit b { text-align:right; font-weight:500; white-space:nowrap; }
.kpi-saeulen i.d, .kpi-legende span.d { background:#303030; } .kpi-saeulen i:nth-last-child(3), .kpi-saeulen i:nth-last-child(3) ~ i { width:26%; }
/* 4.44: Material, das es noch nicht gibt */
.such-neu { display:flex; align-items:center; gap:8px; width:100%; margin-top:8px; padding:10px 12px; border:1px dashed #cfcfcf; border-radius:8px; background:#fafafa; color:#111; font-weight:500; text-align:left; cursor:pointer; }
.such-neu:hover { background:#f2f2f2; } .af-einheit { width:auto; min-width:70px; padding:4px 6px; }
/* 4.44: Notizen ruhiger – Schreibfläche mittig und schmaler, Angaben links einklappbar, Leiste beim Markieren */
.nt.links-zu { grid-template-columns:minmax(0, 1fr); } .nt.links-zu .nt-links { display:none; }
/* 4.46: Notiz als handliche Karte statt Riesenblatt – wächst mit dem Text; Cursor und Platzhalter stehen bündig links in der Karte */
.nt-rechts { align-self:start; justify-self:center; width:100%; max-width:820px; max-height:100%; }
.nt-rechts .md-eingabe { flex:0 1 auto; min-height:220px; padding:22px 28px 28px !important; font-size:14.5px; line-height:1.6; }
.nt-hilfe { gap:16px; color:#aaa; border-bottom-color:#f2f2f2; } .nt-hilfe em { font-style:normal; font-size:12.5px; }
.nt-links { background:#fcfcfc; }
/* 4.46: Verlauf unten auf Detailseiten */
.verlauf-zeile { margin:22px 0 6px; font-size:12.5px; color:#999; } .verlauf-zeile .link { font-size:12.5px; }
.verlauf-liste { max-height:60vh; overflow:auto; } .verlauf-liste > div { display:grid; grid-template-columns:130px 160px minmax(0, 1fr); gap:10px; padding:8px 0; border-bottom:1px solid #f0f0f0; font-size:13.5px; }
.verlauf-liste em { display:block; font-style:normal; color:#999; font-size:12px; }
/* 4.54: Geräte – wo ist es, Verlauf */
.g-ort-jetzt { font-size:16px; font-weight:600; display:flex; flex-direction:column; gap:2px; } .g-ort-jetzt .klein-text { font-weight:400; }
.g-orte { margin-top:12px; border-top:1px solid #f0f0f0; } .g-orte > div { display:grid; grid-template-columns:120px minmax(0, 1fr); gap:2px 10px; padding:8px 0; border-bottom:1px solid #f4f4f4; font-size:13.5px; }
.g-orte > div > .klein-text { grid-column:2; } .g-orte b { font-weight:500; }
/* 4.56: Fahrzeugakte */
.fz-bild { width:92px; height:92px; border-radius:12px; object-fit:cover; flex:none; background:#f2f2f2; } .fz-bild.leer { display:flex; align-items:center; justify-content:center; color:#aaa; }
.fz-kopf { align-items:center; } .fz-kopf h1 { display:flex; align-items:center; gap:10px; }
.fz-liste { padding:0 16px; } .fz-eintrag { display:grid; grid-template-columns:100px minmax(0, 1fr) 110px; gap:14px; padding:14px 0; border-bottom:1px solid #f0f0f0; cursor:pointer; color:inherit; text-decoration:none; }
.fz-eintrag:last-child { border-bottom:none; } .fz-eintrag:hover { background:#fcfcfc; } .fz-datum { color:#777; font-size:13.5px; padding-top:1px; }
.fz-kosten { text-align:right; font-weight:600; } .fz-notiz { margin-top:6px; font-size:13.5px; color:#444; white-space:pre-wrap; } .fz-eintrag .rs-fotos { margin-top:8px; }
.fz-summe { display:flex; justify-content:space-between; padding:14px 0; border-top:1px solid #e6e6e6; font-size:15px; } .fz-unter { margin:22px 0 10px; font-size:15px; }
.fz-arten { flex-wrap:wrap; margin-bottom:12px; }
@media (max-width:700px) { .fz-eintrag { grid-template-columns:80px minmax(0, 1fr); } .fz-kosten { grid-column:2; text-align:left; } }
/* 4.56: Personalakte mit Profilbild und Login */
img.avatar-gross.avatar-foto { object-fit:cover; background:#eee; }
.ma-login { max-width:760px; } .ma-login h3 { margin:0 0 8px; } .ma-login-kopf { display:flex; align-items:center; gap:14px; margin-bottom:16px; }
/* 4.60: Einstellungen – Einheiten, Lohnkosten, Mahnungen, Lohngruppen, Arbeitszeitmodelle */
.ein-neu { display:flex; gap:8px; margin-bottom:8px; } .ein-neu input { flex:1; }
.ein-liste { max-height:52vh; overflow:auto; } .ein-liste > div { display:flex; justify-content:space-between; align-items:center; padding:8px 4px; border-bottom:1px solid #f2f2f2; }
.lk-raster { display:flex; gap:60px; padding:0 0 4px 34px; } .lk-raster b { display:block; margin-bottom:8px; } .lk-raster .haken { display:flex; margin:6px 0; }
.mahn-titel { font-size:15px; margin:16px 0 6px; } .dok-einst-karte .mahn-titel:first-of-type { margin-top:4px; }
.lg-tab td, .lg-tab th { padding:12px 8px; } .lg-leute { display:inline-flex; } .lg-leute .avatar-kreis { margin-left:-6px; border:2px solid #fff; } .lg-leute .avatar-kreis:first-child { margin-left:0; }
.avatar-kreis.klein { width:28px; height:28px; font-size:11px; }
.lg-chips { display:flex; flex-wrap:wrap; gap:6px; margin-top:8px; }
.lg-kasten { background:#f5f5f5; border-radius:10px; padding:16px 18px; } .lg-k-titel { font-size:12px; letter-spacing:.04em; text-transform:uppercase; color:#777; margin-bottom:12px; }
.lg-kasten .dok-toggle { margin:8px 0; } .lg-std { margin:4px 0 10px 46px; display:flex; }
.lg-rechnung { display:grid; grid-template-columns:minmax(0, 1fr) 150px 110px; gap:10px 16px; align-items:center; } .lg-rechnung hr { grid-column:1 / -1; border:none; border-top:1px solid #ddd; margin:4px 0; }
.lg-rechnung input { text-align:right; } .zahl { text-align:right; }
.az-name { display:grid; grid-template-columns:minmax(0, 1fr) auto; gap:16px; align-items:end; }
.az-raster { display:grid; grid-template-columns:120px 110px 110px 140px minmax(90px, 1fr); gap:10px 12px; align-items:center; }
@media (max-width:700px) { .az-raster { grid-template-columns:80px 1fr 1fr 1fr; } .az-raster [data-g], .az-raster b.zahl { display:none; } .lk-raster { flex-direction:column; gap:16px; } }
.dok-kalk-ek { display:flex; flex-direction:column; gap:3px; } .dok-kalk-ek select { font-size:11.5px; padding:1px 4px; height:auto; min-height:0; color:#555; background:#fafafa; }
.lg-kasten label.haken, .az-name label.haken { display:flex !important; flex-direction:row !important; align-items:center; justify-content:flex-start; gap:8px; } .lg-kasten label.haken input, .az-name label.haken input { width:auto; margin:0; }
.std-einheiten { grid-template-columns:repeat(auto-fill, minmax(140px, 1fr)) !important; } .std-einheiten select { width:100%; max-width:180px; } .std-einheiten label:first-child { grid-column:1 / -1; max-width:220px; }
/* 4.62: PDF über dem Dokument, Bilder ziehen */
.dok-pdf-inhalt.pdfa { height:100%; } .dok-vorschau.pdfa { overflow:hidden; padding:0; gap:0; align-items:stretch; background:transparent; } .dok-bildwahl button[draggable] { cursor:grab; }
/* 4.62: Stammdaten */
.sd-kopf { margin-bottom:4px; } .sd-reiter { border-bottom:1px solid #eee; margin-bottom:14px; }
.sd-seite { flex:1 1 auto; min-height:0; display:grid; grid-template-columns:280px minmax(0, 1fr); gap:14px; }
.sd-links { padding:8px; overflow:auto; min-height:0; } .sd-rechts { display:flex; flex-direction:column; min-height:0; gap:12px; } .sd-suche { max-width:430px; }
.sd-tabelle { padding:0; overflow:auto; flex:1; min-height:0; } .sd-tabelle .tabelle { border:none; } .sd-lang { max-width:640px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.sd-ordner { display:flex; align-items:center; gap:6px; padding:9px 10px; border-radius:7px; cursor:pointer; font-size:14px; } .sd-ordner:hover { background:#f6f6f6; } .sd-ordner.an { background:#f0f0f0; font-weight:600; }
.sd-ordner .klein-text { margin-left:auto; } .sd-o-name { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; } .sd-o-ic { color:#777; display:flex; }
.sd-auf { width:18px; height:18px; padding:0; border:none; background:none; display:flex; align-items:center; justify-content:center; color:#777; cursor:pointer; } .sd-auf.leer-auf { cursor:default; }
.sd-ordner .icon-knopf { width:24px; height:24px; opacity:0; border-color:transparent; } .sd-ordner:hover .icon-knopf { opacity:1; }
.sd-ordner-kopf { display:flex; justify-content:space-between; align-items:center; padding:12px 10px 6px; font-size:12px; color:#777; text-transform:uppercase; letter-spacing:.04em; }
.ld-dialog { max-width:1060px !important; } .ld-zeile { display:grid; grid-template-columns:140px minmax(0, 1fr) 120px 110px 120px; gap:12px; align-items:end; }
.ld-linie { border:none; border-top:1px solid #eee; margin:4px 0; } .ld-lang { border:1px solid #dcdcdc !important; min-height:70px; }
.ld-bild img { max-height:160px; border-radius:8px; display:block; margin-bottom:6px; } .ld-bild-ablage { display:flex; flex-direction:column; align-items:center; gap:4px; padding:26px; border:1.5px dashed #ccc; border-radius:10px; cursor:pointer; color:#555; }
.ld-kosten { display:flex; flex-direction:column; gap:6px; } .ld-k { display:grid; grid-template-columns:120px 90px 100px minmax(0, 1fr) 130px 90px 30px; gap:8px; align-items:center; }
.ld-k.kopf span { font-size:12.5px; color:#777; } .ld-k.fuss { margin-top:4px; } .ld-zuschlaege { display:flex; flex-wrap:wrap; gap:10px; margin-top:10px; padding-top:10px; border-top:1px solid #f0f0f0; } .ld-zuschlaege label { width:120px; font-size:12.5px; }
@media (max-width:900px) { .sd-seite { grid-template-columns:1fr; } .ld-zeile { grid-template-columns:1fr 1fr; } .ld-k { grid-template-columns:1fr 1fr; } }
/* 4.62: Suche im Editor mit Haken */
.dok-treffer-z.mit-haken { display:grid; grid-template-columns:20px minmax(0, 1fr); gap:8px; align-items:start; text-align:left; cursor:pointer; } .dok-treffer-z.mit-haken > div { display:flex; flex-direction:column; }
.dok-treffer-z.mit-haken input { margin-top:3px; } .dok-wahl-leiste { position:sticky; bottom:0; display:flex; align-items:center; gap:10px; background:#fff; border-top:1px solid #eee; padding:10px 4px; margin-top:6px; } .dok-wahl-leiste .primaer { margin-left:auto; }
.dok-such-reiter { flex-wrap:wrap; }
/* 4.62: Reiter Zeiten im Editor */
.dok-zeit-kopf { display:flex; align-items:center; gap:10px; margin-bottom:8px; } .dok-zeit-kopf .fwahl { margin-right:auto; } .dok-zeit-kopf .pa-knopf { position:relative; } .dz-n { position:absolute; right:-6px; bottom:-6px; background:#111; color:#fff; border-radius:9px; font-size:11px; padding:0 5px; }
.dok-zeit { display:grid; grid-template-columns:14px minmax(0, 1fr) auto 18px; gap:10px; align-items:center; padding:12px 6px; border-bottom:1px solid #f0f0f0; cursor:pointer; }
.dok-zeit > div:nth-child(2) { display:flex; flex-direction:column; } .dok-zeit b span { font-weight:400; } .dok-zeit .zahl { display:flex; flex-direction:column; } .dok-zeit.an { background:#eef8f2; }
.ld-k .auswahl, .ld-zeile .auswahl, .dok-kalk-ek .auswahl { width:100% !important; min-width:0 !important; max-width:100%; } .ld-k > *, .ld-zeile > * { min-width:0; }
/* 4.64: Anfangs-/Schlusstext als Textblöcke */
/* Textblöcke bündig mit der Anrede (Dom 25.10.2026): Griff und ✕ hängen außen, der Text nimmt die ganze Breite */
.dok-bloecke { display:flex; flex-direction:column; gap:10px; } .dok-block { position:relative; border-radius:8px; }
.dok-block .dok-griff { position:absolute; left:-20px; top:10px; opacity:0; cursor:grab; color:#999; } .dok-block:hover .dok-griff, .dok-block:hover .dok-block-weg { opacity:1; }
.dok-block-weg { position:absolute; right:-34px; top:4px; opacity:0; }
.dok-block .dok-text-feld { overflow-wrap:anywhere; }
.dok-block.ziel { box-shadow:0 -2px 0 var(--rot); } .dok-block-neu { align-self:flex-start; margin-left:10px; color:#888; }
.dok-pos.text .dok-pos-text, .dok-pos-text { min-width:0; overflow-wrap:anywhere; white-space:normal; }
.dok-pos-edit.text .dok-lang-edit { margin:0 0 10px; } .dok-pos-edit.text .dok-lang-feld { min-height:90px; }

/* Trefferliste im Dokument-Editor wie plancraft (Dom 25.10.2026): Griff links, Preis und Haken rechts, Einfügen oben */
.dsu-kopf { display:flex; align-items:center; gap:10px; padding:6px 2px 10px; }
.dsu-titel { flex:1; min-width:0; font-size:16px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.dsu-ein { position:relative; width:44px; height:40px; border:none; border-radius:10px; background:#ececec; color:#111; display:flex; align-items:center; justify-content:center; cursor:pointer; padding:0; }
.dsu-ein:disabled { color:#aaa; cursor:default; } .dsu-ein:not(:disabled):hover { background:#e0e0e0; }
.dsu-n { position:absolute; top:-6px; right:-6px; min-width:18px; height:18px; border-radius:9px; background:var(--rot); color:#fff; font-size:11px; font-weight:700; display:flex; align-items:center; justify-content:center; padding:0 4px; } .dsu-n:empty { display:none; }
.dsu-kopf input[type=checkbox], .dsu-z input[type=checkbox], .dsu-mengen input { width:18px; height:18px; margin:0; accent-color:var(--rot); cursor:pointer; flex:none; }
.dsu-mengen { display:flex; align-items:center; gap:10px; margin:-2px 0 10px 2px; font-size:14px; cursor:pointer; }
.dsu-z { display:grid; grid-template-columns:18px minmax(0,1fr) auto 20px; gap:10px; align-items:start; padding:12px 10px; border-bottom:1px solid #eee; cursor:grab; background:#fff; border-radius:10px; }
.dsu-z:hover { background:#f6f6f6; } .dsu-z.an { background:#f1f8f4; } .dsu-z:active { cursor:grabbing; }
.dsu-z .dok-griff { opacity:1; color:#444; padding-top:2px; cursor:grab; }
.dsu-t { min-width:0; display:flex; flex-direction:column; gap:3px; } .dsu-t b { font-size:14px; line-height:1.35; }
.dsu-lang { font-size:13.5px; color:#333; line-height:1.4; white-space:pre-line; display:-webkit-box; -webkit-line-clamp:4; -webkit-box-orient:vertical; overflow:hidden; }
.dsu-t img { width:90px; height:68px; object-fit:cover; border:1px solid #e3e3e3; border-radius:6px; margin-top:6px; }
.dsu-p { display:flex; flex-direction:column; align-items:flex-end; gap:3px; text-align:right; white-space:nowrap; } .dsu-p b { font-size:14px; } .dsu-p span { font-size:13px; color:#444; }
.dsu-z.titel .dsu-t b { font-size:14.5px; }
.dsu-chip { position:fixed; top:-200px; left:-400px; display:inline-flex; align-items:center; gap:8px; max-width:280px; padding:9px 14px; border-radius:12px; background:#fff; border:1px solid #d9d9d9; box-shadow:0 6px 18px rgba(0,0,0,.14); font:600 13.5px/1.2 inherit; color:#111; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.dsu-chip .dok-griff { opacity:1; color:#666; }
.dok-chat .ch-n[draggable=true] .ch-blase { cursor:grab; }

/* Briefpapier: Reiter Dokumente | Berichte, Karten im Design der Einstellungen (Dom 25.10.2026) */
.bp-reiter { margin:0 0 16px; } .bp-inhalt { margin-left:34px; } .bp-seg { max-width:460px; } 
.bp-logo { display:flex; align-items:center; gap:16px; flex-wrap:wrap; } .bp-logo .dok-logo-kachel { min-width:160px; min-height:60px; align-items:center; justify-content:center; }
.bp-knoepfe { display:flex; gap:8px; align-items:center; flex-wrap:wrap; } .bp-knoepfe.spalte { flex-direction:column; align-items:flex-start; gap:10px; }
#bp-schrift { width:100%; max-width:460px; }
/* Kalkulation: Lohngruppe in derselben Zeile wie die Beschreibung, Kostenzeilen verschieben (Dom 25.10.2026) */
.dok-kalk-text { display:flex; align-items:center; gap:6px; } .dok-kalk-text input { flex:1; min-width:0; }
.formular label.dok-kalk-lg, .dok-kalk-lg { display:inline-flex; flex-direction:row; align-items:center; gap:4px; flex:none; margin:0; font-size:12px; color:#555; background:#f3f3f3; border-radius:6px; padding:0 2px 0 8px; height:30px; cursor:pointer; }
.dok-kalk-lg span { white-space:nowrap; } .dok-kalk-lg select { border:none; background:transparent; font-size:12.5px; font-weight:600; color:#111; padding:0 4px; height:28px; min-height:0; width:auto; max-width:140px; cursor:pointer; }
.dok-kalk-lg .auswahl { width:auto !important; min-width:0 !important; }
.dok-kalk-k .dok-griff { cursor:grab; } .dok-kalk-k.zieht { opacity:.4; } .dok-kalk-k.ziel { box-shadow:0 -2px 0 var(--rot); }
.ld-kalk .dok-kalk { background:#fff; border:1px solid #e6e6e6; border-radius:10px; padding:12px 14px; margin-top:6px; }
/* Aufgabe: „Kommentieren“ steht unten wie bei einem Chat, auch wenn die Aufgabe kurz ist; bei langen Aufgaben bleibt es unten sichtbar (Dom 25.10.2026) */
.auf-detail-links { display:flex; flex-direction:column; }
.auf-detail-links > .auf-kommentar.neu { margin-top:auto; position:sticky; bottom:0; z-index:2; background:#fff; padding-top:12px; padding-bottom:4px; border-top:1px solid var(--linie); }
/* gebündelte Benachrichtigungen derselben Person (Dom 25.10.2026) */
.mt-eintrag.stapel { box-shadow:0 4px 0 -1px #fff, 0 5px 0 0 var(--linie); margin-bottom:5px; } .mt-mehr { display:block; font-size:12px; color:#888; }
.vs { position:relative; display:flex; max-width:100%; max-height:100%; border-radius:8px; overflow:hidden; background:#000; }
.vs video { display:block; max-width:100%; max-height:calc(100vh - 140px); min-width:200px; min-height:160px; cursor:pointer; }
.vs-gross { position:absolute; inset:0; margin:auto; width:68px; height:68px; border:none; border-radius:50%; background:rgba(0,0,0,.55); color:#fff; display:flex; align-items:center; justify-content:center; padding:0 0 0 4px; transition:opacity .2s; }
.vs-gross svg, .vs-knoepfe svg { fill:#fff; stroke:#fff; } .vs-gross svg { width:30px; height:30px; } .vs.laeuft .vs-gross { opacity:0; pointer-events:none; }
.vs-leiste { position:absolute; left:10px; right:10px; bottom:10px; background:rgba(0,0,0,.6); border-radius:10px; padding:8px 10px 6px; color:#fff; opacity:0; transition:opacity .25s; }
.vs.wach .vs-leiste, .vs:not(.laeuft) .vs-leiste { opacity:1; } .vs.laeuft:not(.wach) { cursor:none; }
.vs-linie { position:relative; height:14px; cursor:pointer; touch-action:none; } .vs-linie::before, .vs-linie i, .vs-linie b { content:''; position:absolute; left:0; top:5px; height:4px; border-radius:2px; }
.vs-linie::before { right:0; background:rgba(255,255,255,.25); } .vs-linie i { background:rgba(255,255,255,.4); } .vs-linie b { background:var(--rot); } .vs-linie b::after { content:''; position:absolute; right:-6px; top:-4px; width:12px; height:12px; border-radius:50%; background:#fff; }
.vs-knoepfe { display:flex; align-items:center; gap:4px; } .vs-knoepfe .rechts { flex:1; }
.vs-knoepfe button { border:none; background:none; color:#fff; padding:5px; border-radius:6px; display:flex; } .vs-knoepfe button:hover { background:rgba(255,255,255,.15); }
.vs-knoepfe [data-vs=ton] svg, .vs-knoepfe [data-vs=voll] svg { fill:none; } .vs-zeit { font-size:13px; font-variant-numeric:tabular-nums; margin-left:4px; }
.vs:fullscreen { border-radius:0; align-items:center; justify-content:center; } .vs:fullscreen video { max-height:100vh; max-width:100vw; }
.vs.kaputt { background:none; } .dv-audio { width:min(480px, 90%); } /* Video-/Tonvorschau in der Dateiansicht */

/* CI Rot statt Grün für Auswahl, Schalter und Kalkulation (Dom 25.10.2026); Trefferliste kleiner, Haken bündig mit „alle“ */
.dok-toggle input:checked + span, .dok-a4 .dok-toggle input:checked + span { background:var(--rot); }
.dok-rechts-reiter button.an { color:var(--rot); }
.dok-kalk-z.eigen, .dok-kalk-z:disabled, .dok-kalk-tief.an { color:var(--rot); }
.dok-unter-marke { background:var(--rot); } .dok-kalk-unter { border-left-color:var(--rot); } .dok-kalk-unter-titel .dok-pille { background:var(--rot); }
.dsu-kopf { padding:4px 8px 8px; gap:8px; } .dsu-titel { font-size:15px; }
.dsu-ein { width:36px; height:32px; border-radius:8px; } .dsu-ein svg { width:16px; height:16px; }
.dsu-mengen { margin:0 0 6px 8px; font-size:13.5px; gap:8px; }
.dsu-z { grid-template-columns:14px minmax(0,1fr) auto 18px; gap:8px; padding:8px 8px; border-radius:8px; border-bottom:1px solid #f0f0f0; }
.dsu-z.an { background:#fff3f3; } .dsu-t b { font-size:13.5px; } .dsu-lang { font-size:13px; -webkit-line-clamp:3; }
.dsu-p b { font-size:13.5px; } .dsu-p span { font-size:12.5px; } .dsu-t img { width:72px; height:54px; }
.dok-zeit-kopf { padding:0 8px; }

/* Kalkulation: Beschreibung breiter, Menge schmaler, Lohngruppe über den Pfeil im EK-Feld (Dom 25.10.2026) */
.dok-kalk-k, .dok-kalk-k.unter { grid-template-columns:12px 80px 50px 62px minmax(80px, 1fr) 88px 96px 22px 22px; gap:5px; }
.dok-kalk-k input, .dok-kalk-k select { padding-left:6px; padding-right:6px; }
.dok-kalk-wert { font-size:12.5px; } .dok-kalk-z { font-size:11px; }
.dok-kalk-ek.mit-lg { position:relative; } .dok-kalk-ek.mit-lg input { padding-right:26px; }
.dok-kalk-lgk { position:absolute; right:3px; top:50%; transform:translateY(-50%); width:22px; height:24px; border:none; background:none; padding:0; color:#555; cursor:pointer; display:flex; align-items:center; justify-content:center; border-radius:4px; }
.dok-kalk-lgk:hover { background:#eee; color:#111; }
.dok-kalk-wert { white-space:nowrap; }

/* Positionsrabatt wie plancraft: Etikett unter dem Kurztext, alter Gesamtpreis durchgestrichen, neuer darunter */
.dok-rabatt-zeile { display:flex; align-items:center; gap:6px; color:#555; font-size:13px; margin-top:2px; } .dok-rabatt-zeile svg { color:#777; flex:none; }
.dok-gesamt .dok-alt-preis { display:block; color:#888; font-weight:400; } .dok-gesamt i { display:block; }

/* Textblöcke: Ablagefeld erscheint nur beim Ziehen (Dom 25.10.2026) */
.dok-block-ziel { display:none; border:1.5px dashed #d0d0d0; border-radius:8px; padding:10px; text-align:center; color:#999; font-size:13px; }
.dok-bloecke.ziel-feld .dok-block-ziel { display:block; border-color:var(--rot); color:var(--rot); background:#fff6f6; }
body.dok-zieht .dok-block-ziel { display:block; }

/* Berichtsvorlagen wie plancraft (Dom 25.10.2026): einklappbare Blöcke mit Griff, Unterpunkte als kleine Karten */
.bv-name { margin-bottom:12px; }
.bv-block { background:#fff; border:1px solid #e6e6e6; border-radius:10px; margin-bottom:10px; }
.bv-block.zieht { opacity:.4; } .bv-block.ziel { box-shadow:0 -2px 0 var(--rot); }
.bv-kopf { display:flex; align-items:center; gap:12px; padding:12px 14px; cursor:pointer; } .bv-kopf:hover { background:#fafafa; border-radius:10px; }
.bv-griff { opacity:1; color:#333; cursor:grab; flex:none; } .bv-ic { display:flex; color:#111; } .bv-titel { flex:1; min-width:0; font-size:15px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.bv-knoepfe { display:flex; align-items:center; gap:4px; } .bv-knoepfe .gefahr { color:var(--rot); }
.bv-inhalt { padding:2px 14px 14px; display:flex; flex-direction:column; gap:8px; }
.bv-gruppe { font-size:12px; letter-spacing:.6px; text-transform:uppercase; color:#777; margin:6px 0 0; }
.bv-unter { border:1px solid #ececec; border-radius:8px; background:#fff; } .bv-unter.ziel { box-shadow:0 -2px 0 var(--rot); }
.bv-unter-kopf { display:flex; align-items:center; gap:10px; padding:8px 10px; cursor:pointer; }
.bv-unter-text { flex:1; min-width:0; display:flex; flex-direction:column; } .bv-art { font-size:11px; letter-spacing:.5px; text-transform:uppercase; color:#666; } .bv-unter-text span:last-child { font-size:14px; }
.bv-unter-inhalt { display:grid; grid-template-columns:1fr 1fr; gap:8px; padding:0 10px 10px 34px; align-items:end; } .bv-unter-inhalt label { display:flex; flex-direction:column; gap:4px; font-size:12.5px; color:#555; }
.bv-unter-weg { grid-column:1 / -1; justify-self:start; color:var(--rot) !important; font-size:13px; }
.bv-dazu { display:flex; align-items:center; gap:10px; width:100%; background:#fff; border:1px solid #ececec; border-radius:8px; padding:10px 12px; font-size:14px; color:#111; cursor:pointer; text-align:left; }
.bv-dazu:hover { border-color:#bbb; } .bv-dazu.gross { padding:12px 14px; border-radius:10px; }
.bv-feld { display:flex; flex-direction:column; gap:4px; font-size:13px; color:#555; } .bv-feld textarea { width:100%; }

/* Neuer Bericht: Vorlagen als Liste untereinander, „Vorlagen verwalten“ dezent (Dom 25.10.2026) */
.ber-neu-liste { grid-template-columns:1fr !important; gap:6px; } .ber-neu-liste button { padding:11px 14px; } .ber-neu-liste button span { flex:1; }
.ber-abr { font-size:12px; color:#666 !important; background:#f2f2f2; border-radius:10px; padding:2px 8px; }
.ber-neu-fuss { display:flex; justify-content:flex-end; } .ber-neu-fuss a { display:inline-flex; align-items:center; gap:6px; color:#555; font-size:13px; } .ber-neu-fuss a:hover { color:#111; text-decoration:none; }
/* Rapport: Pause mit −/+, Vorschläge aus den Stammdaten */
.ber-stepper { display:flex; align-items:stretch; border:1px solid #d9d9d9; border-radius:8px; overflow:hidden; background:#fff; }
.ber-stepper input { border:none !important; border-radius:0 !important; min-width:0; width:100%; text-align:center; }
.ber-stepper button { border:none; background:#f4f4f4; width:30px; font-size:17px; padding:0; cursor:pointer; color:#111; } .ber-stepper button:hover { background:#e9e9e9; }
.ber-such { position:relative; } .ber-such input { width:100%; }
.ber-vorschlag { position:absolute; left:0; right:0; top:calc(100% + 4px); z-index:40; background:#fff; border:1px solid #e0e0e0; border-radius:8px; box-shadow:0 8px 24px rgba(0,0,0,.12); padding:4px; max-height:280px; overflow-y:auto; }
.ber-vorschlag button { display:flex; flex-direction:column; align-items:flex-start; gap:1px; width:100%; text-align:left; background:none; border:none; padding:7px 9px; border-radius:6px; cursor:pointer; color:#111; } .ber-vorschlag button:hover { background:#f5f5f5; }
.ber-vorschlag button span { font-size:12px; color:#777; } .ber-vorschlag .klein-text { padding:8px; }
/* Aufmaß wie plancraft: Art-Symbol, Name, Beschreibung, Menge, Maße, Summe, Einheit */
.ber-am { display:flex; flex-direction:column; gap:10px; }
.ber-am-z { display:grid; grid-template-columns:26px minmax(0,2fr) minmax(0,1.6fr) 74px 84px 84px 84px 96px 34px; gap:8px; align-items:end; }
.ber-am-z label { display:flex; flex-direction:column; gap:3px; font-size:12.5px; color:#555; min-width:0; } .ber-am-z label input { width:100%; }
.ber-am-z .ber-am-breit { grid-column:span 2; } .ber-am-ic { display:flex; align-items:center; justify-content:center; height:36px; color:#111; }
.ber-am-summe { display:flex; align-items:center; height:36px; padding:0 10px; background:#f2f2f2; border-radius:8px; color:#111; font-variant-numeric:tabular-nums; }
.ber-am-z .gefahr { color:var(--rot); } .ber-am-z .auswahl { width:100% !important; min-width:0 !important; }
@media (max-width:1100px) { .ber-am-z { grid-template-columns:26px 1fr 1fr; } .ber-am-z .ber-am-breit { grid-column:span 1; } }
/* Fuhrpark (Konzept 25.10.2026): Übersicht und Fahrzeugakte */
.fz-tabelle td { vertical-align:top; } .fz-bedarf { font-size:12.5px; color:var(--rot); white-space:nowrap; }
.fz-kopf-info { display:flex; gap:22px; margin-left:18px; padding-left:18px; border-left:1px solid var(--linie); } .fz-kopf-info div { display:flex; flex-direction:column; min-width:0; }
.fz-kopf-info span { font-size:12px; color:var(--grau); } .fz-kopf-info b { font-size:14.5px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:260px; }
@media (max-width:1100px) { .fz-kopf-info { display:none; } }
.fz-hinweis { margin:0 0 14px; }
.fz-fristen { display:flex; gap:12px; flex-wrap:wrap; } .fz-frist { background:#fff; border:1px solid var(--linie); border-radius:10px; padding:12px 16px; display:flex; flex-direction:column; gap:2px; min-width:220px; }
.fz-frist > span:first-child { font-size:12.5px; color:var(--grau); } .fz-frist b { font-size:17px; } .fz-frist.rot { border-color:var(--rot); } .fz-frist.rot b { color:var(--rot); } .fz-frist.gelb { border-color:#e0b000; }
.fz-frist .link { align-self:flex-start; padding:0; margin-top:4px; }
.fz-kosten-kopf { display:flex; gap:10px; flex-wrap:wrap; margin-bottom:14px; } .fz-kz { background:#fff; border:1px solid var(--linie); border-radius:10px; padding:10px 14px; display:flex; flex-direction:column; min-width:130px; }
.fz-kz span { font-size:12.5px; color:var(--grau); } .fz-kz b { font-size:16px; } .fz-kz.gross { background:#111; color:#fff; border-color:#111; } .fz-kz.gross span { color:#ccc; } .fz-kz.gross b { font-size:20px; }
.fz-jahre { margin-bottom:14px; } .fz-jahre h3 { margin:0 0 8px; } .fz-jahr { display:grid; grid-template-columns:50px 1fr 110px; align-items:center; gap:10px; margin:5px 0; font-size:13.5px; }
.fz-jahr i { display:block; height:10px; background:var(--rot); border-radius:5px; } .fz-jahr b { text-align:right; }
.re-fz { margin-top:12px; }

/* Kostenzuweisung: Ziel-Knopf, Kostenart und Betrag ohne Überlappung (Dom 25.10.2026) */
.re-zeile { grid-template-columns:minmax(0, 1fr) 140px 120px 30px; } .re-zeile .auswahl { width:100% !important; min-width:0 !important; } .re-zeile > * { min-width:0; }
.re-ziel { display:inline-block; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.4px; color:#666; background:#f1f1f1; border-radius:5px; padding:1px 6px; margin-right:4px; }
.kz-reiter { margin:0; } .kz-liste { max-height:52vh; overflow-y:auto; display:flex; flex-direction:column; gap:2px; }
.kz-liste button { display:flex; flex-direction:column; align-items:flex-start; text-align:left; background:none; border:none; border-radius:8px; padding:8px 10px; cursor:pointer; color:#111; } .kz-liste button:hover { background:#f5f5f5; }
.re-fz { display:none; }

.fz-verlauf { display:grid; grid-template-columns:1fr 1fr; gap:14px; align-items:start; } .fz-sp-titel { margin:4px 0 8px; font-size:15px; }
@media (max-width:1000px) { .fz-verlauf { grid-template-columns:1fr; } }
.pa-ressourcen { margin-bottom:6px; } .pa-res-titel { margin-top:14px; }

/* Rechnung: Knöpfe ruhig wie plancraft statt roter Links */
.re-dazu { display:inline-flex; align-items:center; gap:6px; background:#fff; border:1px solid #d9d9d9; border-radius:8px; padding:6px 12px; font-size:13.5px; color:#111; cursor:pointer; } .re-dazu:hover { border-color:#999; }
.re-ziel-weg { font-weight:400; margin-left:4px; color:#777; } .re-ziel-weg:hover { color:#111; }
/* Menü „Belege“ (Dom 25.10.2026): Eingang (Angebote, Rechnungen) und Ausgang (Angebote, Rechnungen) zusammen */
.nur-crm-inline { display:none; } body.crm .nur-crm-inline { display:contents; }
.flyout-gruppe { font-size:11px; letter-spacing:.6px; text-transform:uppercase; color:#888; padding:8px 14px 2px; }
body:not(.beta) .flyout-gruppe { display:none; }
/* Filter „Zuweisung“: Name links, Status und Anzahl rechts, ruhig */
.fp-eintrag .fp-zt { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-weight:400; } .fp-zahl { margin-left:auto; color:#777; font-size:12.5px; min-width:22px; text-align:right; }
.fp-eintrag > span:has(.fp-zt) { display:flex; align-items:center; gap:8px; flex:1; min-width:0; }
.re-dazu-liste { display:flex; flex-direction:column; align-items:flex-start; gap:6px; margin:8px 0 0; }
/* Kosten-Ziel-Suche: Einträge ruhig, beim Drüberfahren nur grau hinterlegt */
.suchfenster.kz .gs-text b { font-weight:500; font-size:14.5px; } .suchfenster.kz .gs-zeile { cursor:pointer; } .suchfenster.kz .gs-zeile:hover { text-decoration:none; }
.fb-fotos { display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; } .fb-fotos img { width:120px; height:90px; object-fit:cover; border-radius:8px; border:1px solid #e3e3e3; cursor:zoom-in; }
/* Urlaubsplaner (public/urlaub.js): Monatsraster, ein Farbchip je Tag */
.zk-planer { padding:0; overflow-x:auto; } .zk-planer table { border-collapse:collapse; width:100%; font-size:12px; }
.zk-planer th, .zk-planer td { border-bottom:1px solid var(--linie); text-align:center; padding:4px 0; min-width:26px; }
.zk-planer th { font-weight:500; color:var(--grau); } .zk-planer th span { display:block; font-size:10px; }
.zk-planer .zk-name { text-align:left; padding:6px 12px; min-width:160px; white-space:nowrap; position:sticky; left:0; background:#fff; font-size:13px; }
.zk-planer .frei { background:var(--hell); } .zk-planer .heute { box-shadow:inset 0 0 0 1px var(--schwarz); }
.zk-z { display:inline-block; width:16px; height:16px; border-radius:4px; vertical-align:middle; background:#303030; }
.zk-z.urlaub { background:var(--rot); } .zk-z.beantragt { background:#fff; border:2px dashed var(--rot); box-sizing:border-box; }
.zk-z.krank { background:#575D5E; } .zk-z.ueberstunden { background:#c9a227; } .zk-z.abwesend { background:#989EA1; }
.zk-z.unbezahlt { background:#d6d6d6; } .zk-z.schule { background:#8a7fb0; } .zk-z.halb { width:8px; }
.zk-legende { display:flex; gap:14px; flex-wrap:wrap; font-size:13px; color:var(--grau); } .zk-legende span { display:inline-flex; align-items:center; gap:6px; } .zk-legende .zk-z { width:12px; height:12px; }
/* Anfrage (Dom 25.10.2026): erst was passiert, dann der Kunde; Kontakt schlicht statt rot */
.an-kopf-kunde { font-weight:400; color:var(--grau); margin-left:10px; font-size:.8em; }
a.an-still { color:#111; text-decoration:none; } a.an-still:hover { text-decoration:underline; }
/* Pipeline: Farbe nach Liegezeit in der Phase */
.crm-karte.alt-gruen { background:#eef8f1; border-color:#cfe9d8; } .crm-karte.alt-gelb { background:#fff6e6; border-color:#f5ddb0; } .crm-karte.alt-rot { background:#fdeeee; border-color:#f3c9c9; }
.verlauf-diff { display:flex; flex-direction:column; gap:2px; margin-top:3px; font-size:13px; color:#444; } .verlauf-diff b { font-weight:500; }
.verlauf-diff details summary { cursor:pointer; color:var(--grau); font-size:12.5px; } .verlauf-diff details span { display:block; }
.verlauf-bereich { font-style:normal; background:#f1f1f1; border-radius:4px; padding:0 5px; font-size:12px; }
.fb-foto-neu { position:relative; display:inline-block; } .fb-foto-neu img { width:96px; height:72px; object-fit:cover; border-radius:8px; border:1px solid #e3e3e3; }
.fb-foto-neu button { position:absolute; top:3px; right:3px; width:22px; height:22px; padding:0; border-radius:50%; border:none; background:rgba(0,0,0,.6); color:#fff; font-size:11px; cursor:pointer; }
/* Beantragter Urlaub in der Plantafel: gestrichelt, nach dem Genehmigen fest */
.pt-balken.abw.beantragt { background:repeating-linear-gradient(135deg, #f4f4f4 0 6px, #e9e9e9 6px 12px); border:1.5px dashed #9a9a9a; color:#555; }
/* Einsatz-Fenster der Plantafel (Dom 25.10.2026): Projekt als Karte, Ganztägig eigene Zeile, kein roter Link */
.pt-wahl[data-projektwahl] { height:auto !important; min-height:52px !important; padding:8px 12px !important; justify-content:space-between; gap:10px; font-weight:400; }
.pt-wahl-text { display:flex; flex-direction:column; gap:2px; min-width:0; } .pt-wahl-text > span { font-size:15px; color:#111; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.pt-wahl-text small { font-size:12.5px; color:var(--grau); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; } .pt-wahl[data-projektwahl] .ic { flex:none; color:#999; }
.pt-wahl.leer .pt-wahl-text > span { color:#888; }
.pt-ganz-zeile { align-self:flex-start; font-size:14px; color:#333; }
.pt-res-neu { border:1px dashed #cfcfcf; background:#fff; color:#555; border-radius:14px; padding:4px 10px; font-size:13px; display:inline-flex; align-items:center; gap:4px; font-weight:400; }
.pt-res-neu:hover { border-color:#999; color:#111; }
/* Zeiten-Tabelle (Dom 25.10.2026): Beginn/Ende eigene Spalten, Projekt zweizeilig, Summen im Fuß unter Stunden und Pause */
.zt-tabelle td { vertical-align:middle; height:auto; padding-top:10px; padding-bottom:10px; }
.zt-projekt-zelle { max-width:280px; }
.zt-projekt { display:flex; flex-direction:column; color:inherit; text-decoration:none; line-height:1.3; } .zt-projekt:hover span { text-decoration:underline; }
.zt-projekt span { white-space:normal; } .zt-projekt small { color:var(--grau); font-size:12.5px; }
.zt-tabelle tfoot td { background:#fafafa; border-top:1px solid #e6e6e6; border-bottom:none; height:auto; padding-top:12px; padding-bottom:12px; position:sticky; bottom:0; z-index:2; }
.zt-seitenreiter { margin:-4px 0 16px; }
.zt-seitenreiter a { color:inherit; text-decoration:none; }
.pa-reiter > a { background:none; border-bottom:2px solid transparent; padding:8px 6px 8px; margin-right:10px; font-size:15px; font-weight:500; color:#6a6a6a; text-decoration:none; }
.pa-reiter > a.an { color:#131313; font-weight:600; border-bottom-color:#131313; } .pa-reiter > a:hover { color:#111; text-decoration:none; }
/* Feste Tabellen in Unterbereichen (Zeiten-Reiter, Personalakte): Seite steht, Tabelle scrollt, Fuß unten */
@media (min-width:761px) {
  main.listen-seite .fest-huelle { flex:1 1 auto; min-height:0; display:flex; flex-direction:column; overflow:hidden; }
  main.listen-seite .fest-huelle > * { flex:none; }
  main.listen-seite .tabelle.fest { flex:1 1 auto !important; min-height:160px; display:flex; flex-direction:column; overflow:hidden; }
  main.listen-seite .tabelle.fest > .tabelle-scroll { flex:1 1 auto; min-height:0; overflow:auto; }
  main.listen-seite .tabelle.fest th { position:sticky; top:0; z-index:2; }
  main.listen-seite .tabelle.fest tfoot td { position:sticky; bottom:0; z-index:2; }
}
.tabelle tfoot td { background:#fafafa; border-top:1px solid #e6e6e6; border-bottom:none !important; height:auto; padding-top:12px; padding-bottom:12px; font-size:14px; }
/* Zeitkonto */
.zk-leiste { flex-wrap:wrap; gap:10px; }
.zk-blaettern { display:inline-flex; align-items:center; gap:6px; } .zk-blaettern b { min-width:150px; text-align:center; font-weight:600; }
.zk-karten { display:grid; grid-template-columns:minmax(0, 1.2fr) minmax(0, 1.5fr) minmax(220px, .8fr); gap:16px; margin-bottom:16px; }
@media (max-width:1100px) { .zk-karten { grid-template-columns:1fr 1fr; } .zk-antraege-klein { grid-column:1 / -1; } }
.zk-karten .ma-karte { margin:0; } .zk-karten .ma-zahlen { flex-wrap:wrap; row-gap:12px; }
.zk-antraege-klein { display:flex; flex-direction:column; gap:6px; }
.zk-antrag-zeile { display:grid; grid-template-columns:1fr auto auto auto; align-items:center; gap:8px; font-size:13.5px; padding:4px 0; border-bottom:1px solid #f0f0f0; }
.zk-antrag-zeile:last-of-type { border-bottom:none; } .zk-antrag-zeile .punkte-knopf, .zk-antrag-zeile .icon-knopf { width:28px; height:28px; }
.zk-mehr-link { font-size:13px; color:var(--grau); margin-top:4px; } .zk-mehr-link:hover { color:#111; }
.zk-tabelle td { height:auto; padding-top:9px; padding-bottom:9px; }
.zk-tabelle tr.zk-frei td { background:#fafafa; color:#999; } .zk-tabelle tr.zk-zukunft td { color:#aaa; } .zk-tabelle tr.zk-heute td { box-shadow:inset 0 -2px 0 #111; }
.zk-person { margin:0 0 12px; }
/* Urlaubsplaner wie die Plantafel */
.zp-tafel { background:#fff; border:1px solid var(--linie); border-radius:10px; overflow:auto; max-height:calc(100vh - 230px); }
.zp-kopf, .zp-zeile { display:flex; min-width:max-content; }
.zp-kopf { position:sticky; top:0; z-index:3; background:#fff; border-bottom:1px solid var(--linie); }
.zp-name { flex:none; width:190px; position:sticky; left:0; z-index:2; background:#fff; border-right:1px solid var(--linie); padding:0 14px; display:flex; align-items:center; font-size:14px; }
.zp-kopf .zp-name { z-index:4; }
.zp-tage { position:relative; display:flex; flex:none; }
.zp-tag { flex:none; width:38px; border-right:1px solid #f1f1f1; text-align:center; font-size:12px; color:var(--grau); display:flex; flex-direction:column; justify-content:center; }
.zp-kopf .zp-tag { height:46px; } .zp-kopf .zp-tag b { font-size:14px; color:#222; font-weight:500; }
.zp-zeile { border-bottom:1px solid #f1f1f1; } .zp-zeile .zp-tag, .zp-zeile .zp-name { height:42px; }
.zp-tag.frei { background:#f6f6f6; } .zp-tag.heute { background:#eaf5ee; } .zp-kopf .zp-tag.heute b { color:#1f7a4d; font-weight:700; }
.zp-balken { position:absolute; top:7px; height:28px; border-radius:6px; border:none; background:#e6e6e6; color:#333; display:flex; align-items:center; gap:5px; padding:0 8px; font-size:13px; font-weight:400; overflow:hidden; white-space:nowrap; cursor:pointer; z-index:1; }
.zp-balken:hover { filter:brightness(.96); } .zp-text { overflow:hidden; text-overflow:ellipsis; }
.zp-balken.zp-urlaub { background:#d3f1e3; } .zp-balken.zp-krank, .zp-balken.zp-abwesend { background:#e9e9e9; } .zp-balken.zp-ueberstunden { background:#f9e7a8; } .zp-balken.zp-schule { background:#e2ddfc; } .zp-balken.zp-unbezahlt { background:#fde0cf; }
.zp-balken.beantragt { background:repeating-linear-gradient(135deg, #fff 0 6px, #f1f1f1 6px 12px) !important; border:1.5px dashed #9a9a9a; color:#555; }
.zp-muster { display:inline-block; width:22px; height:12px; border-radius:3px; background:#d3f1e3; vertical-align:middle; } .zp-muster.beantragt { background:repeating-linear-gradient(135deg, #fff 0 4px, #eee 4px 8px); border:1.5px dashed #9a9a9a; }
.zk-karten .ma-zahlen { flex-wrap:nowrap; gap:6px; } .zk-karten .ma-zahl { min-width:0; flex:1; } .zk-karten .ma-zahl b { font-size:22px; } .zk-karten .ma-zahl small, .zk-karten .ma-zahl span { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.pt-emoji { font-size:14px; line-height:1; }
.ma-links { display:flex; gap:8px; margin-bottom:12px; }
.ma-ablage { padding:0; } .ma-ablage-kopf { display:flex; align-items:center; padding:10px 14px; border-bottom:1px solid var(--linie); } .ma-ablage #ma-ab-inhalt { padding:6px 0; }
/* Bonussystem */
.bo-raster { display:grid; grid-template-columns:minmax(0, 1.3fr) minmax(0, 1fr); gap:16px; margin-bottom:16px; } @media (max-width:1000px) { .bo-raster { grid-template-columns:1fr; } }
.bo-rang h3, .bo-regeln h3 { margin:0 0 10px; }
.bo-zeile { display:grid; grid-template-columns:34px minmax(110px, 1fr) 2fr 60px 70px; align-items:center; gap:10px; padding:8px 4px; border-bottom:1px solid #f1f1f1; border-radius:6px; }
.bo-zeile:hover { background:#fafafa; } .bo-med { font-size:20px; text-align:center; } .bo-platz { font-size:14px; color:var(--grau); }
.bo-balken { height:8px; background:#f1f1f1; border-radius:4px; overflow:hidden; } .bo-balken i { display:block; height:100%; background:#303030; border-radius:4px; } .bo-balken i.minus { background:var(--rot); }
.bo-punkte { text-align:right; font-size:15px; } .bo-detail { text-align:right; }
.bo-regel { display:grid; grid-template-columns:44px 1fr auto; align-items:center; gap:10px; padding:7px 0; border-bottom:1px solid #f1f1f1; } .bo-regel.aus { opacity:.5; }
.bo-regel > span { display:flex; flex-direction:column; } .bo-regel small { font-size:12.5px; }
.bo-regel > span .marke { align-self:flex-start; margin:2px 0; }

/* Benachrichtigung wieder ungelesen (Glocke bei gelesenen, Dom 26.10.2026) */
.mt-eintrag { grid-template-columns:22px minmax(0, 1fr) 26px; }
.mt-wieder { display:flex; align-items:center; justify-content:center; width:26px; height:26px; border-radius:50%; color:#aaa; opacity:0; transition:opacity .12s; }
.mt-eintrag:hover .mt-wieder, .mt-wieder:focus { opacity:1; } .mt-wieder:hover { background:#ececec; color:var(--rot, #e40000); }
.mt-eintrag .mt-punkt { justify-self:center; }

/* Benachrichtigungen unter Profil & Passwort (Dom 26.10.2026) */
.bn-rechner .bn-zeile { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:7px 0; }
.bn-rechner .bn-zeile > span { display:flex; flex-direction:column; gap:2px; }
.bn-rechner .bn-titel { font-weight:600; margin:16px 0 4px; }
.bn-rechner .bn-gruppe { margin-top:6px; }
.bn-rechner input[type=checkbox] { width:18px; height:18px; accent-color:var(--rot, #e40000); }
.bn-schalter { width:46px; height:27px; border-radius:14px; border:none; background:#d9d9d9; position:relative; padding:0; cursor:pointer; flex:none; transition:background .15s; }
.bn-schalter span { position:absolute; top:3px; left:3px; width:21px; height:21px; border-radius:50%; background:#fff; box-shadow:0 1px 3px rgba(0,0,0,.25); transition:left .15s; }
.bn-schalter.an { background:var(--rot, #e40000); } .bn-schalter.an span { left:22px; }
/* Zurück links, Schließen rechts (Dom 27.10.2026, ersetzt „Schließen immer links“ vom 26.10.): ✕ steht in Fenstern, Seitenfenstern und Betrachtern rechts oben */
.dv-trenner { width:1px; height:22px; background:rgba(255,255,255,.2); margin:0 6px; }
dialog .pt-panel-kopf > [data-zu].icon-knopf, dialog .ber-neu-kopf > [data-zu].icon-knopf, dialog .leiste > [data-zu].icon-knopf { margin-left:auto; }
dialog .leiste:has(> [data-zu].icon-knopf) > h2 { flex:1; }
.td-senden { flex:none; width:30px; height:30px; padding:0; border-radius:50%; border:none; background:#111; color:#fff; display:inline-flex; align-items:center; justify-content:center; cursor:pointer; }
.td-senden:hover { background:#333; } .td-neu { display:flex; align-items:center; gap:6px; } .td-neu input { flex:1; min-width:0; }
.auf-eingabe-zeile { display:flex; align-items:center; gap:6px; } .auf-eingabe-zeile input { flex:1; min-width:0; }
/* Plantafel-Balken (Dom 26.10.2026): Griffe immer ganz außen (auch mit „2/4“ und Meilenstein), ruhiger Mauszeiger */
.pt-balken .pt-griff { position:absolute; top:0; bottom:0; width:10px; margin:0 !important; z-index:3; cursor:ew-resize; }
.pt-balken .pt-griff.l { left:0; border-radius:6px 0 0 6px; } .pt-balken .pt-griff.r { right:0; border-radius:0 6px 6px 0; }
.pt-balken { padding-left:10px; padding-right:10px; } .pt-balken.mit-todos { padding-right:40px; } .pt-zahl { right:12px; }
.pt-balken:hover .pt-griff { background:none; } .pt-balken .pt-griff:hover { background:rgba(0,0,0,.12); }
.pt-raute { pointer-events:none; z-index:1; }
.zk-karten > .ma-karte:nth-child(2) .ma-zahlen { grid-template-columns:repeat(4, minmax(0, 1fr)); }
/* Urlaubsplaner zum Ziehen (Dom 26.10.2026) */
.zp-gruppe { display:flex; min-width:max-content; background:#fafafa; border-bottom:1px solid var(--linie); } .zp-gruppe .zp-name { height:30px; font-size:12.5px; font-weight:600; color:var(--grau); background:#fafafa; text-transform:none; }
.zp-balken { padding:0 12px; } .zp-balken.ziehbar { cursor:grab; touch-action:none; user-select:none; } .zp-balken.zieht { opacity:.75; cursor:grabbing; z-index:5; box-shadow:0 4px 12px rgba(0,0,0,.15); }
.zp-griff { position:absolute; top:0; bottom:0; width:9px; cursor:ew-resize; } .zp-griff.l { left:0; } .zp-griff.r { right:0; } .zp-griff:hover { background:rgba(0,0,0,.1); }
.zp-geist { background:rgba(31,122,77,.15); outline:2px dashed #1f7a4d; pointer-events:none; }
.zp-zeile .zp-tage { cursor:cell; }
.zp-wahl { display:grid; grid-template-columns:repeat(auto-fill, minmax(200px, 1fr)); gap:10px 18px; max-height:340px; overflow:auto; border:1px solid var(--linie); border-radius:8px; padding:10px 12px; }
.zp-wahl-gruppe { display:flex; flex-direction:column; gap:4px; } .zp-wahl .haken { margin:0; font-size:14px; }
/* Bonus-Statistik */
.bo-statistik { display:grid; grid-template-columns:minmax(0, 1fr) minmax(0, 1fr); gap:16px; margin-bottom:16px; } @media (max-width:1000px) { .bo-statistik { grid-template-columns:1fr; } }
.bo-kennzahlen { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:14px; } .bo-kennzahlen div { display:flex; flex-direction:column; gap:3px; min-width:0; }
.bo-kennzahlen span { font-size:12.5px; color:var(--grau); } .bo-kennzahlen b { font-size:20px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.bo-monate-kopf { display:flex; justify-content:space-between; align-items:baseline; margin-bottom:8px; }
.bo-saeulen { display:grid; grid-template-columns:repeat(12, 1fr); gap:4px; align-items:end; }
.bo-saeule { display:flex; flex-direction:column; align-items:center; justify-content:flex-end; gap:0; height:112px; border:none; background:none; padding:0; cursor:pointer; border-radius:6px; }
.bo-saeule:hover, .bo-saeule.an { background:#f3f3f3; } .bo-s-plus { width:60%; background:#303030; border-radius:3px 3px 0 0; } .bo-s-minus { width:60%; background:var(--rot); border-radius:0 0 3px 3px; }
.bo-saeule small { font-size:11px; color:var(--grau); margin-top:3px; }
/* Bonus 6.26 (Dom 26.10.2026): Zeitraum Monat/Quartal/Jahr, alles auf einer Seite, Listen scrollen in ihren Kästen, luftig wie im Entwurf */
.bo-kopf-rechts { display:flex; align-items:center; gap:10px; } .bo-segment { width:auto; } 
.bo-titel { min-width:124px; text-align:center; }
.bo-av { display:inline-flex; align-items:center; justify-content:center; border-radius:50%; background:#ececec; color:#444; font-weight:600; flex:none; object-fit:cover; }
.bo-av.dunkel { background:var(--schwarz); color:#fff; }
.bo-pl { width:28px; height:28px; border-radius:50%; background:#e6e6e6; color:#444; font-weight:700; font-size:13px; display:inline-flex; align-items:center; justify-content:center; flex:none; }
.bo-pl.p1 { background:var(--rot); color:#fff; } .bo-pl.p2 { background:var(--schwarz); color:#fff; } .bo-pl.p3 { background:#8a8a8a; color:#fff; }
.bo-inhalt { display:flex; flex-direction:column; gap:18px; }
.bo-podest { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:18px; flex:none; }
.bo-top { display:flex; flex-direction:column; gap:14px; text-align:left; font:inherit; color:inherit; cursor:pointer; background:#fff; border:1px solid var(--linie); border-radius:12px; padding:16px 18px; }
.bo-top:hover { border-color:#bbb; background:#fff; } .bo-top.erst { border-color:var(--schwarz); box-shadow:0 1px 0 var(--schwarz); } .bo-top.leer { align-items:center; justify-content:center; cursor:default; background:#fafafa; }
.bo-top-kopf { display:flex; align-items:center; gap:12px; } .bo-top-name { flex:1; min-width:0; display:flex; flex-direction:column; gap:4px; } .bo-top-name b { font-size:16px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.bo-top-punkte { display:flex; flex-direction:column; align-items:flex-end; } .bo-top-punkte b { font-size:30px; line-height:32px; }
.bo-top-fuss { display:flex; align-items:center; gap:16px; } .bo-top-fuss > :first-child { flex:1; min-width:0; }
.bo-fort { display:flex; flex-direction:column; gap:6px; } .bo-fort-balken { height:8px; background:#efefef; border-radius:4px; overflow:hidden; } .bo-fort-balken i { display:block; height:100%; background:#303030; border-radius:4px; }
.bo-stufe { font-size:12px; padding:2px 9px; }
.bo-kacheln { display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:18px; flex:none; }
.bo-kachel { background:#fff; border:1px solid var(--linie); border-radius:12px; padding:14px 18px; display:flex; flex-direction:column; gap:4px; min-width:0; }
.bo-kachel > b { font-size:26px; line-height:32px; white-space:nowrap; } .bo-kachel-fuss { border-top:1px solid #f0f0f0; margin-top:6px; padding-top:8px; display:flex; flex-direction:column; gap:4px; min-height:42px; }
.bo-vgl { display:flex; justify-content:space-between; gap:8px; font-size:12.5px; } .bo-vgl > span:first-child { font-weight:600; white-space:nowrap; } .bo-vgl > span:last-child { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.bo-kasten { background:#fff; border:1px solid var(--linie); border-radius:12px; padding:16px 18px; display:flex; flex-direction:column; min-height:0; min-width:0; }
.bo-kasten-kopf { display:flex; align-items:baseline; justify-content:space-between; gap:12px; margin-bottom:10px; flex:none; } .bo-kasten-kopf h2 { margin:0; font-size:15px; font-weight:600; }
.bo-scroll { flex:1 1 auto; min-height:0; overflow:auto; }
.bo-unten { display:grid; grid-template-columns:minmax(0, 1.65fr) minmax(0, 1fr); gap:18px; min-height:0; }
.bo-rechts { display:grid; grid-template-rows:minmax(0, 1fr) minmax(0, 1fr); gap:18px; min-height:0; }
.bo-tab { width:100%; border-collapse:collapse; } .bo-tab th { position:sticky; top:0; background:#fff; z-index:1; font-size:13px; font-weight:600; color:#6b6b6b; text-align:left; padding:8px 10px; border-bottom:1px solid #eee; white-space:nowrap; }
.bo-tab td { padding:10px; border-bottom:1px solid #f1f1f1; font-size:14px; } .bo-tab tr:last-child td { border-bottom:none; } .bo-tab .zahl { text-align:right; } .bo-tab tr.klick { cursor:pointer; } .bo-tab tr.klick:hover td { background:#fafafa; }
.bo-name { display:inline-flex; align-items:center; gap:10px; white-space:nowrap; } .bo-balken-zelle { width:24%; } .bo-balken-zelle .bo-balken { display:block; } .bo-balken i.erst { background:var(--rot); }
.bo-regel-zeile { display:grid; grid-template-columns:1fr 40px 52px; gap:8px; align-items:center; padding:8px 0; border-bottom:1px solid #f1f1f1; font-size:14px; } .bo-regel-zeile > :nth-child(2), .bo-regel-zeile b { text-align:right; }
.bo-letzt { display:grid; grid-template-columns:50px 26px 1fr auto; gap:10px; align-items:center; padding:8px 0; border-bottom:1px solid #f1f1f1; font-size:14px; } .bo-letzt:last-child { border-bottom:none; }
.bo-person-kopf { display:flex; align-items:center; gap:18px; background:#fff; border:1px solid var(--linie); border-radius:12px; padding:16px 20px; flex:none; flex-wrap:wrap; }
.bo-kz-name { flex:1; min-width:180px; display:flex; flex-direction:column; gap:4px; } .bo-kz-name b { font-size:22px; }
.bo-kz-wert { display:flex; flex-direction:column; align-items:center; padding:0 18px; border-left:1px solid var(--linie); } .bo-kz-wert b { font-size:26px; line-height:32px; }
.bo-kz-stufe { width:240px; display:flex; flex-direction:column; gap:6px; padding-left:18px; border-left:1px solid var(--linie); }
.bo-wer { align-self:flex-start; }
.bo-person-mitte { display:grid; grid-template-columns:minmax(0, 1.3fr) minmax(0, 1fr); gap:18px; flex:none; height:270px; }
.bo-monate-grafik { width:100%; height:auto; flex:1; min-height:0; }
.bo-wofuer { display:flex; flex-direction:column; gap:8px; } .bo-wofuer-karte { display:flex; align-items:center; gap:12px; border:1px solid var(--linie); border-radius:10px; padding:10px 14px; }
.bo-wofuer-karte > div { flex:1; min-width:0; display:flex; flex-direction:column; } .bo-wofuer-karte > div b { font-size:14px; } .bo-wofuer-karte > b { font-size:18px; }
.bo-person-liste { min-height:0; }
.bo-regeln-seite { height:auto; flex:1; min-height:0; grid-template-columns:minmax(0, 1.3fr) minmax(0, 1fr); }
.bo-legende { display:flex; gap:12px; } .bo-legende i { display:inline-block; width:10px; height:10px; border-radius:2px; margin-right:5px; vertical-align:-1px; } .bo-legende i.schwarz { background:#303030; } .bo-legende i.grau { background:#bdbdbd; }
@media (min-width:1101px) {
  main.bo-seite-fest { padding-bottom:24px; } main.bo-seite-fest > .kopf, main.bo-seite-fest > .pa-reiter { flex:none; }
  main.bo-seite-fest .bo-inhalt { flex:1 1 auto; min-height:0; } main.bo-seite-fest .bo-unten, main.bo-seite-fest .bo-person-liste, main.bo-seite-fest .bo-regeln-seite { flex:1 1 auto; }
  main.bo-seite-fest .bo-inhalt > .bo-person-liste:only-child { flex:1 1 auto; }
}
@media (max-width:1100px) { .bo-podest, .bo-unten, .bo-person-mitte { grid-template-columns:1fr; height:auto; } .bo-kacheln { grid-template-columns:repeat(2, minmax(0, 1fr)); } .bo-scroll { max-height:420px; } }
.marke.ab-ziel { background:#eef3ff; color:#30406b; font-size:11.5px; margin-left:6px; } /* nur die alte Marke – der Pfad in der Ablage (.ab-krume.ab-ziel) bleibt neutral (Dom 29.10.2026) */
.zp-wahl label.haken { display:flex !important; flex-direction:row !important; align-items:center; gap:8px; text-align:left; } .zp-wahl label.haken input { width:auto; margin:0; }
.dv-trenner { display:none; } .dv-rechts .dv-trenner { display:block; }
/* Feedback-Board mit sechs Stufen (Dom 26.10.2026): nebeneinander, bei wenig Platz waagerecht scrollen */
.fb-board { grid-template-columns:repeat(6, minmax(210px, 1fr)); overflow-x:auto; padding-bottom:6px; }
@media (max-width:900px) { .fb-board { grid-template-columns:repeat(6, 260px); } }
.fb-spalte[data-spalte="verworfen"] { opacity:.8; }

/* Plantafel: Einsatz erledigt (aus der Handy-App) */
.pt-balken.erledigt { opacity:.55; background-image:repeating-linear-gradient(135deg, rgba(255,255,255,.35) 0 6px, transparent 6px 12px) !important; }
.pt-haken { display:inline-flex; align-items:center; justify-content:center; width:15px; height:15px; margin-right:4px; border-radius:50%; background:#fff; color:#1a8a3a; font-size:11px; font-weight:700; }
.pt-erledigt-info { margin:0 0 12px; padding:10px 12px; border-radius:8px; background:#e8f6ec; color:#14612a; font-size:14px; } .pt-erledigt-info div { margin-top:4px; color:#333; }
.pp-zeile.pp-erledigt b, .pp-zeile.pp-erledigt span { color:#1a8a3a; } .pp-zeile.pp-erledigt .pt-haken { background:#1a8a3a; color:#fff; }
.fb-mehr { width:100%; margin-top:4px; border:1px dashed #cfcfcf; background:#fff; color:#555; font-size:13px; font-weight:400; padding:6px; border-radius:8px; }
.fb-notiz-ic { display:inline-flex; align-items:center; gap:3px; font-size:11.5px; color:#555; background:#f3f3f3; border-radius:4px; padding:1px 5px; margin-top:4px; }
.fbs-zeile { display:grid; grid-template-columns:1fr auto 26px 30px 30px 30px; gap:6px; align-items:center; padding:5px 0; } .fbs-zeile .haken { display:flex; gap:6px; align-items:center; margin:0; font-size:13px; white-space:nowrap; }
/* Übersicht / Dashboard (Bauplan aus dem Design-Canvas, Dom 26.10.2026) */
.db { display:flex; flex-direction:column; gap:16px; }
.db-kopf { display:flex; align-items:flex-end; justify-content:space-between; gap:12px; flex-wrap:wrap; } .db-kopf h1 { margin:0; }
.db-zeit { display:flex; align-items:center; gap:8px; flex-wrap:wrap; } .db-zeit b { min-width:120px; text-align:center; } 
.db-reiter { margin:-6px 0 0; }
.db-suche input { flex:1; max-width:700px; }
.db-kacheln { display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:16px; }
.db-kachel { display:flex; flex-direction:column; gap:6px; background:#fff; border:1px solid #e5e5e5; border-radius:12px; padding:14px 16px; min-width:0; text-decoration:none !important; color:#111 !important; }
.db-kachel:hover { border-color:#c9c9c9; } .db-k-titel { font-size:13px; color:#6b6b6b; } .db-k-wert { font-size:26px; line-height:32px; font-variant-numeric:tabular-nums; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.db-k-fuss { display:flex; flex-direction:column; gap:3px; border-top:1px solid #f1f1f1; padding-top:7px; min-height:18px; }
.db-vgl { display:flex; justify-content:space-between; gap:8px; font-size:12.5px; } .db-vgl span:first-child { font-weight:600; white-space:nowrap; } .db-vgl span:last-child { color:#6b6b6b; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.db-k-extra { font-size:12.5px; color:#6b6b6b; }
.db-k-balken { height:6px; border-radius:3px; background:#efefef; overflow:hidden; } .db-k-balken i { display:block; height:100%; background:#303030; border-radius:3px; }
.db-reihe { display:grid; grid-template-columns:minmax(0, 1fr); gap:16px; align-items:stretch; } .db-reihe.zwei-eins { grid-template-columns:minmax(0, 2fr) minmax(0, 1fr); } .db-reihe.zwei { grid-template-columns:minmax(0, 1fr) minmax(0, 1fr); }
.db-kasten { background:#fff; border:1px solid #e5e5e5; border-radius:12px; padding:16px 18px; display:flex; flex-direction:column; gap:12px; min-width:0; }
.db-kasten-kopf { display:flex; align-items:baseline; gap:10px; } .db-kasten-kopf > div { flex:1; } .db-kasten h3 { margin:0; font-size:15px; }
.db-legende { display:flex; gap:14px; font-size:12.5px; color:#6b6b6b; } .db-legende span { display:inline-flex; align-items:center; gap:6px; }
.db-legende .linie { width:18px; height:0; border-top:2.5px solid #303030; } .db-legende .linie.vgl { border-top:2px dashed #a8a8a8; }
.db-linie { width:100%; height:auto; display:block; }
.db-vert { display:flex; flex-direction:column; gap:10px; }
.db-vert-zeile { display:grid; grid-template-columns:120px 1fr 96px; gap:10px; align-items:center; text-decoration:none !important; color:#111 !important; font-size:13.5px; }
.db-vert-zeile > span:first-child { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.db-vert-balken { height:14px; background:#f3f3f3; border-radius:4px; } .db-vert-zeile.trichter .db-vert-balken { height:24px; }
.db-vert-balken i { display:flex; align-items:center; justify-content:flex-end; padding-right:8px; box-sizing:border-box; height:100%; background:#303030; border-radius:4px; color:#fff; font-size:12px; font-weight:600; font-style:normal; }
.db-vert-wert { font-size:13px; text-align:right; font-variant-numeric:tabular-nums; color:#444; }
.db-saeulen { position:relative; display:grid; grid-template-columns:repeat(8, 1fr); gap:8px; align-items:end; height:170px; padding-top:10px; }
.db-saeule { display:flex; flex-direction:column; align-items:center; justify-content:flex-end; gap:3px; height:100%; text-decoration:none !important; color:#111 !important; }
.db-saeule i { width:70%; border-radius:4px 4px 0 0; } .db-saeule small { font-size:11px; color:#6b6b6b; } .db-s-wert { font-size:11.5px; font-weight:600; }
.db-s-linie { position:absolute; left:0; right:0; border-top:1px dashed #bbb; pointer-events:none; }
.db-tab { border:none; } .db-tab td small { display:block; color:#6b6b6b; font-size:12px; } .db-tab td { height:auto; padding-top:9px; padding-bottom:9px; }
.db-ampel { display:flex; align-items:center; gap:12px; padding:10px 0; border-bottom:1px solid #f1f1f1; text-decoration:none !important; color:#111 !important; }
.db-ampel > span:first-child { width:24px; height:24px; border-radius:50%; font-weight:700; font-size:13px; display:flex; align-items:center; justify-content:center; flex:none; }
.db-ampel-text { flex:1; font-size:14px; } .db-ampel b { font-variant-numeric:tabular-nums; } .db-pfeil { color:#bbb; }
.db-sich { display:flex; align-items:center; gap:12px; font-size:13px; color:#6b6b6b; } .db-sich.warn { color:#c62828; }
@media (max-width:1000px) { .db-kacheln { grid-template-columns:repeat(2, minmax(0, 1fr)); } .db-reihe.zwei-eins, .db-reihe.zwei { grid-template-columns:1fr; } }
.segment > a { text-decoration:none !important; text-align:center; }
.db-leer { display:flex; align-items:center; justify-content:center; min-height:180px; color:#8a8a8a; font-size:14px; background:#fafafa; border-radius:8px; }
.db-linie { max-height:320px; }
.fb-rest { margin-top:6px; background:#fff; border-radius:8px; padding:6px 8px; max-height:240px; overflow:auto; }
.fb-rest-zeile { display:flex; justify-content:space-between; gap:8px; padding:5px 2px; border-top:1px solid #f1f1f1; font-size:13px; cursor:pointer; } .fb-rest-zeile:hover span { text-decoration:underline; }
.fb-rest-zeile span { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; min-width:0; } .fb-rest-zeile small { flex:none; color:var(--grau); font-size:11.5px; }

/* Rollen & Rechte wie plancraft (6.16) */
.rr-wahl { display:flex; align-items:center; gap:8px; margin:4px 0 16px; flex-wrap:wrap; }
.rr-wahl select { min-width:280px; font-weight:600; }
.rr-wahl .icon-knopf { width:30px; height:30px; border-color:transparent; background:none; color:var(--grau); }
.rr-wahl .icon-knopf:hover { border-color:#d9d9d9; color:var(--schwarz); }
.rr-tabelle { max-width:860px; }
.rr-tabelle td, .rr-tabelle th { vertical-align:middle; }
.rr-tabelle .rr-spalte { width:90px; text-align:center; }
.rr-tabelle .rechte-gruppe td { font-size:11px; text-transform:uppercase; letter-spacing:.8px; color:var(--grau); background:var(--hell); padding-top:14px; }
.rr-haken { width:22px; height:22px; padding:0; display:inline-flex; align-items:center; justify-content:center; border:1.5px solid #c9cdd0; border-radius:6px; background:#fff; color:#fff; cursor:pointer; }
.rr-haken.an { background:var(--rot, #E40000); border-color:var(--rot, #E40000); }
.rr-haken:disabled { cursor:not-allowed; opacity:.45; }
.rr-strich { color:#b8bdc0; }
.rr-lizenz { display:grid; gap:8px; margin-top:14px; }
.rr-lizenz-wahl { display:flex; gap:10px; align-items:flex-start; padding:10px 12px; border:1px solid #e3e3e3; border-radius:8px; cursor:pointer; }
.rr-lizenz-wahl:has(input:checked) { border-color:var(--rot, #E40000); }
.rr-lizenz-wahl > span { display:flex; flex-direction:column; gap:2px; }
body > .nur-handy { max-width:420px; margin:12vh auto; padding:0 16px; text-align:center; display:flex; flex-direction:column; align-items:center; gap:12px; }
body > .nur-handy h1 { margin:12px 0 0; } body > .nur-handy p { color:var(--grau); margin:0 0 8px; }
body > .nur-handy .knopf { display:inline-block; padding:10px 18px; border-radius:8px; background:var(--rot, #E40000); color:#fff; text-decoration:none; font-weight:600; }
body > .nur-handy button { background:none; border:none; color:var(--grau); cursor:pointer; }
.rr-hinweis { max-width:860px; margin:-6px 0 14px; padding:10px 12px; border-left:3px solid var(--rot, #E40000); background:var(--hell); font-size:13px; }
/* Mitarbeiter im Projekt (6.20) */
.pakte-ma { display:flex; flex-direction:column; gap:10px; max-width:560px; }
.pma-dazu { max-width:560px; }
.pma-liste { display:flex; flex-wrap:wrap; gap:6px; }
.pma-chip { display:inline-flex; align-items:center; gap:6px; padding:4px 8px 4px 10px; border-radius:6px; background:#ececec; font-size:14px; }
.pma-chip button { border:none; background:none; padding:2px; cursor:pointer; color:var(--grau); display:inline-flex; }
.pma-chip button:hover { color:var(--schwarz); }
/* Linie anfassen: genaue Zahlen über der Grafik (6.35) */
.db-linie[data-punkte] { touch-action:pan-y; cursor:crosshair; }
.db-linie-info { display:flex; flex-wrap:wrap; gap:4px 14px; align-items:baseline; font-size:13.5px; min-height:20px; } .db-linie-info b { font-size:14px; } .db-linie-info .vgl { color:#8a8a8a; }
/* Nodus als Hauptsystem (6.24): Projekt bearbeiten, Kunden, Empfänger */
a.knopf.primaer, a.knopf-link { display:inline-flex; align-items:center; height:38px; padding:0 14px; border-radius:8px; text-decoration:none; font-weight:600; font-size:14px; }
a.knopf.primaer { background:var(--rot, #E40000); color:#fff; } a.knopf.primaer:hover { filter:brightness(.95); }
a.knopf-link { border:1px solid #d9d9d9; background:#fff; color:var(--schwarz); } a.knopf-link:hover { background:var(--hell); }
.seitenkopf-rechts { display:flex; gap:8px; align-items:center; }
.pb { max-width:900px; }
.pb-feld { display:grid; grid-template-columns:140px minmax(0, 560px); gap:12px; align-items:center; margin:8px 0; }
.pb-feld > span { color:var(--schwarz); font-size:14px; }
.pb-feld textarea { resize:none; }
.pb-haken { display:flex; gap:8px; align-items:center; margin:6px 0 10px 152px; font-size:14px; }
.pb-karte { display:flex; gap:12px; align-items:flex-start; max-width:560px; padding:14px 16px; border:1px solid #e1e1e1; border-radius:8px; background:#fafafa; margin-top:8px; line-height:1.45; }
.pb-karte > svg { flex:none; margin-top:3px; color:var(--grau); }
.pb-karte > div { flex:1; }
.pb-zeile { display:flex; gap:8px; max-width:560px; } .pb-zeile select { flex:1; }
.pb-suche { position:relative; max-width:560px; } .pb-suche input { width:100%; }
.pb-treffer { position:absolute; left:0; right:0; top:calc(100% + 4px); z-index:20; background:#fff; border:1px solid #e1e1e1; border-radius:8px; box-shadow:0 8px 24px rgba(0,0,0,.08); max-height:320px; overflow:auto; }
.pb-treffer button { display:flex; flex-direction:column; align-items:flex-start; width:100%; padding:8px 12px; border:none; background:none; text-align:left; cursor:pointer; gap:2px; }
.pb-treffer button:hover { background:var(--hell); } :is(.pb-treffer, .is-treffer, .ck-treffer, .such-treffer, .dok-treffer, .ch-suche-treffer, .cl-zeilen) .such-aktiv { background:var(--hell); outline:2px solid var(--rot); outline-offset:-2px; } .pb-treffer .pb-neu { color:var(--schwarz); font-weight:600; border-top:1px solid #eee; }
.pb-zwischen { margin:8px 0 0; font-size:14px; }
.kd-typ { display:inline-flex; gap:0; } .kd-typ label { cursor:pointer; } .kd-typ input { display:none; }
.kd-typ span { display:inline-block; padding:6px 14px; border:1px solid #d9d9d9; } .kd-typ label:first-child span { border-radius:8px 0 0 8px; } .kd-typ label:last-child span { border-radius:0 8px 8px 0; border-left:none; }
.kd-typ input:checked + span { background:var(--schwarz, #131313); color:#fff; border-color:var(--schwarz, #131313); }
.em-suche { width:100%; margin-bottom:8px; }
.em-liste { max-height:420px; overflow:auto; }
.em-zeile { display:flex; justify-content:space-between; align-items:center; gap:8px; padding:8px 0; border-bottom:1px solid #f0f0f0; } .em-zeile:last-child { border-bottom:none; }
@media (max-width:700px) { .pb-feld { grid-template-columns:1fr; gap:4px; } .pb-haken { margin-left:0; } }
.pb-zeile select { width:100%; } .pb-adresse input:disabled, .pb-adresse select:disabled { background:#f6f6f6; color:#555; }
.em-zeile .icon-knopf, .ap-zeile .icon-knopf { width:30px; height:30px; border-color:transparent; background:none; color:var(--grau); } .em-zeile .icon-knopf:hover, .ap-zeile .icon-knopf:hover { border-color:#d9d9d9; color:var(--schwarz); }

/* Felder A (Bausteine Runde 4, vorher Felder 6.28): der Name steht über dem Feld, das Feld ist 42 px hoch und 9 px rund.
   Gilt für alle Formulare am Rechner (.formular in Fenstern und Seitenfenstern, Plantafel-Felder). Haken und Schalter bleiben wie sie sind. */
.formular label:not(.haken):not(.dok-toggle):not(.schalter):not(:has(> input[type=checkbox])):not(:has(> input[type=radio])), :is(label, div).pt-feld {
  position:relative; box-sizing:border-box; display:flex; flex-direction:column; justify-content:flex-start; flex-shrink:0; gap:5px; padding:0; min-height:0;
  border:none; border-radius:0; background:none; box-shadow:none; font-size:13px; font-weight:400; color:#5e5e5e; }
:is(.formular label:not(.haken):not(.dok-toggle):not(.schalter), label.pt-feld) :where(input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=range]):not([type=color]):not(.datumsfeld *), select, textarea, .auswahl-knopf, .feld-knopf, .datumsfeld, .pt-fest, .pt-wahl) {
  box-sizing:border-box; min-height:42px !important; height:auto; width:100%; border:1px solid #d9d9d9 !important; border-radius:9px !important; background:#fff !important;
  box-shadow:none !important; outline:none !important; padding:9px 12px !important; font-family:inherit; font-size:15px !important; font-weight:400; color:#131313 !important;
  transition:border-color .15s, box-shadow .15s; }
:is(.formular label, label.pt-feld) :is(input:not(.datumsfeld *), select, textarea, .auswahl-knopf, .feld-knopf, .datumsfeld, .pt-wahl):hover { border-color:#c4c4c4 !important; }
:is(.formular label, label.pt-feld) :is(input:not(.datumsfeld *), select, textarea, .auswahl-knopf, .feld-knopf, .pt-wahl):focus, :is(.formular label, label.pt-feld) .datumsfeld:focus-within,
:is(.formular label, label.pt-feld) .auswahl.offen .auswahl-knopf { border-color:#131313 !important; box-shadow:0 0 0 3px rgba(17,17,17,.07) !important; }
:is(.formular label, label.pt-feld) :is(.ungueltig, :user-invalid) { border-color:var(--rot) !important; }
:is(.formular label:not(.haken):not(.dok-toggle):not(.schalter), label.pt-feld) textarea { min-height:84px !important; resize:none; line-height:1.45; }
:is(.formular label, label.pt-feld) :is(input, textarea)::placeholder { color:#a8a8a8; font-weight:400; }
:is(.formular label, label.pt-feld) .auswahl-knopf { display:flex; align-items:center; justify-content:space-between; gap:10px; }
:is(.formular label, label.pt-feld) .auswahl-knopf.leer span { color:#a8a8a8 !important; font-weight:400; }
:is(.formular label, label.pt-feld) .auswahl-knopf svg { color:#9a9a9a; margin-right:-2px; }
:is(.formular label, label.pt-feld) .auswahl { min-width:0; }
:is(.formular label, label.pt-feld) .feld-knopf { display:flex; align-items:center; text-align:left; } :is(.formular label, label.pt-feld) .feld-knopf .klein-text { font-size:15px; color:#a8a8a8; font-weight:400; }
:is(.formular label:not(.haken):not(.dok-toggle):not(.schalter), label.pt-feld) .datumsfeld { position:relative; display:flex; align-items:center; padding:0 !important; }
:is(.formular label, label.pt-feld) .datumsfeld input[type=text] { border:none !important; background:none !important; box-shadow:none !important; outline:none !important; border-radius:9px !important;
  width:100%; min-height:40px; padding:9px 34px 9px 12px !important; font-family:inherit; font-size:15px !important; color:#131313 !important; }
:is(.formular label, label.pt-feld) .datumsfeld .dp-knopf { right:8px; }
/* Liste unter dem Feld: rund, mit Schatten, Suche grau, gewählter Eintrag mit rotem Haken */
.auswahl-liste { border:1px solid #ececec; border-radius:14px; box-shadow:0 18px 44px rgba(0,0,0,.18); padding:8px; }
.auswahl-suche { height:40px; border:none !important; background:#f3f3f3; border-radius:10px; padding:0 12px; font-size:14.5px; margin-bottom:6px; outline:none; }
.auswahl-suche:focus, .auswahl-suche:focus-visible { outline:none !important; box-shadow:none !important; border:none !important; background:#ececec; }
.auswahl-eintrag { padding:9px 10px; border-radius:10px; font-size:14.5px; align-items:center; }
.auswahl-eintrag.aktiv { background:#f4f4f4; }
.auswahl-eintrag.gewaehlt { color:#111; font-weight:600; } .auswahl-eintrag.gewaehlt::after { content:'✓'; color:var(--rot); font-weight:700; margin-left:auto; }
.auswahl-eintraege { max-height:320px; }
/* Arbeitskleidung 6.28 (Dom 26.10.2026) – Seite steht wie beim Bonus (bo-*), Ausgabe-Fenster mit mehreren Teilen */
.kl-artikel { display:flex; align-items:center; gap:12px; } .kl-artikel > span:last-child { display:flex; flex-direction:column; }
.kl-bild { width:42px; height:42px; border-radius:10px; background:#f2f2f2; display:inline-flex; align-items:center; justify-content:center; font-size:21px; flex:none; } .kl-bild.klein { width:34px; height:34px; font-size:17px; }
.kl-groessen { display:flex; gap:5px; flex-wrap:wrap; }
.kl-gr { min-width:44px; height:30px; padding:0 8px; border:none; border-radius:8px; background:#f4f4f4; font:inherit; font-size:12.5px; color:#555; display:inline-flex; align-items:center; justify-content:center; gap:4px; cursor:pointer; }
.kl-gr b { font-size:13.5px; color:#111; } .kl-gr:hover { background:#ebebeb; } .kl-gr.klein { min-width:0; height:20px; padding:0 7px; font-size:11.5px; cursor:default; }
.kl-gr.knapp { background:#fff4e5; color:#8a5a00; } .kl-gr.knapp b { color:#8a5a00; } .kl-gr.leer { background:#fdecec; color:#b42323; } .kl-gr.leer b { color:#b42323; }
.kl-letzt { grid-template-columns:30px 1fr auto; } .kl-letzt > span:nth-child(2) { display:flex; flex-direction:column; min-width:0; } .kl-wunsch-knoepfe { display:flex; align-items:center; gap:4px; }
.kl-mitarbeiter { display:grid; grid-template-columns:250px minmax(0, 1fr); gap:18px; min-height:0; flex:1 1 auto; }
.kl-links { padding:10px; } .kl-links .auswahl-suche { margin:2px 2px 8px; width:calc(100% - 4px); }
.kl-p { display:flex; align-items:center; gap:10px; padding:8px 10px; border-radius:10px; font-size:14px; color:inherit; text-decoration:none; } .kl-p:hover { background:#f6f6f6; text-decoration:none; }
.kl-p.an { background:#f0f0f0; font-weight:600; } .kl-p small { margin-left:auto; font-weight:400; } .kl-p[hidden] { display:none; }
.kl-rechts { display:flex; flex-direction:column; gap:18px; min-height:0; min-width:0; }
.kl-person-mitte { display:grid; grid-template-columns:minmax(0, 1.8fr) minmax(0, 1fr); gap:18px; min-height:0; flex:1 1 auto; }
.kl-seite { grid-template-rows:auto minmax(0, 1fr); }
.kl-masse { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:10px; }
.kl-mass { border:1px solid #ececec; border-radius:10px; padding:10px 12px; display:flex; flex-direction:column; gap:2px; } .kl-mass small { color:#8a8a8a; font-size:12px; } .kl-mass b { font-size:18px; }
.kl-anspruch { display:grid; grid-template-columns:1fr auto; gap:6px 12px; align-items:center; font-size:14px; padding:4px 0 8px; } .kl-anspruch .bo-fort-balken { grid-column:1 / -1; height:7px; }
/* Ausgabe-Fenster */
dialog.kl-fenster { width:min(760px, 96vw); padding:20px 22px; border-radius:16px; }
.kl-kopf { display:flex; align-items:center; gap:12px; margin-bottom:14px; } .kl-kopf h2 { margin:0; font-size:19px; } .kl-kopf > div { display:flex; flex-direction:column; }
.ns-zu { width:34px; height:34px; border-radius:50%; background:#f2f2f2; border:none; display:inline-flex; align-items:center; justify-content:center; color:#555; font-size:15px; flex:none; padding:0; cursor:pointer; }
.kl-titel { font-size:13px; font-weight:600; color:#6b6b6b; margin:16px 0 8px; display:flex; gap:8px; align-items:baseline; }
.kl-karten { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:10px; }
.kl-karte { border:1px solid #e1e1e1; border-radius:12px; padding:10px 12px; display:flex; align-items:center; gap:10px; background:#fff; font:inherit; text-align:left; cursor:pointer; color:inherit; }
.kl-karte > span:last-child { display:flex; flex-direction:column; min-width:0; } .kl-karte b { font-size:14px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.kl-karte:hover { border-color:#bbb; background:#fff; } .kl-karte.an { border-color:#111; box-shadow:inset 0 0 0 1px #111; }
.kl-liste { display:flex; flex-direction:column; border:1px solid #ececec; border-radius:12px; overflow:hidden; max-height:240px; overflow-y:auto; }
.kl-zeile { display:grid; grid-template-columns:34px 140px 1fr auto 30px; gap:10px; align-items:center; padding:8px 10px; border-bottom:1px solid #f1f1f1; } .kl-zeile:last-child { border-bottom:none; }
.kl-zeile-name { font-size:14px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.kl-chips, .kl-anzahl { display:flex; gap:5px; flex-wrap:wrap; }
.kl-chip { height:30px; min-width:34px; padding:0 9px; border-radius:15px; border:1px solid #dcdcdc; background:#fff; font:inherit; font-size:13px; font-weight:500; color:#333; cursor:pointer; }
.kl-chip.rund { width:30px; min-width:30px; padding:0; } .kl-chip.an { background:#111; border-color:#111; color:#fff; } .kl-chip.leer:not(.an) { color:#b5b5b5; border-style:dashed; }
.kl-fuss { display:flex; align-items:center; gap:10px; margin-top:18px; } .kl-fuss .rechts { margin-left:auto; }
.kl-us { margin-top:12px; } .kl-us canvas.unterschrift { height:240px; }
.ml-verbinden { display:flex; gap:10px; align-items:center; margin:0 0 14px; } .ml-verbinden select { max-width:360px; }
/* Umschalter im Formular (Person/Firma) wie in der Handy-App: graue Schiene, weiße Pille */
.formular .kd-typ { width:max-content; border:none; border-radius:11px; background:#f1f1f1; padding:3px; gap:2px; }
.formular .kd-typ span { border:none !important; border-radius:8px !important; padding:7px 16px; font-size:13.5px; color:#555; }
.formular .kd-typ input:checked + span { background:#fff; color:#111; font-weight:600; box-shadow:0 1px 3px rgba(0,0,0,.1); }
/* Plantafel-Panel: Felder A wie überall */
label.pt-feld .pt-fest, label.pt-feld .pt-wahl { display:flex; align-items:center; } /* Felder A: Feld wie die anderen, siehe oben */
label.pt-feld .pt-wahl :is(b, strong, .pt-wahl-name) { font-weight:500; }
label.pt-feld .pt-wahl.leer .pt-wahl-text > span { color:#a8a8a8; }
/* Projekte (6.30): Status-Auswahl, Status verwalten, Liste */
.status-wahl { padding:6px; min-width:240px; max-height:420px; overflow:auto; }
.status-wahl .sw-liste { display:flex; flex-direction:column; gap:2px; }
.status-wahl .sw-liste button { display:flex; align-items:center; justify-content:space-between; gap:8px; border:none; background:none; padding:5px 8px; border-radius:6px; cursor:pointer; text-align:left; }
.status-wahl .sw-liste button:hover, .status-wahl .sw-liste button.an { background:var(--hell); }
.status-wahl .sw-verwalten { display:flex; align-items:center; gap:8px; width:100%; margin-top:6px; padding:9px 8px 6px; border:none; border-top:1px solid #eee; background:none; cursor:pointer; color:var(--schwarz); font-size:14px; }
.sv-kopf { display:flex; align-items:center; justify-content:space-between; } .sv-kopf h2 { margin:0; }
.sv-liste { display:flex; flex-direction:column; gap:6px; margin:14px 0 8px; max-height:55vh; overflow:auto; }
.sv-zeile { display:flex; align-items:center; gap:8px; } .sv-zeile input { flex:1; }
.sv-farbe { width:26px; height:26px; padding:0; border-radius:50%; border:none; cursor:pointer; flex:none; }
.sv-pfeile { display:flex; flex-direction:column; } .sv-pfeile button, .sv-weg { border:none; background:none; padding:1px 4px; cursor:pointer; color:var(--grau); } .sv-pfeile button:disabled { opacity:.3; cursor:default; }
.sv-weg:hover, .sv-pfeile button:not(:disabled):hover { color:var(--schwarz); }
.sv-palette { display:flex; gap:6px; padding:8px; } .sv-palette button { width:24px; height:24px; padding:0; border-radius:50%; border:none; cursor:pointer; }
.sv-neu { margin:4px 0 0; } .sv-fuss { display:flex; justify-content:flex-end; gap:8px; margin-top:16px; }
.pl-status-in { display:inline-flex; align-items:center; gap:8px; white-space:nowrap; }
.pl-sw { display:inline-flex; align-items:center; gap:2px; border:none; background:none; padding:0; cursor:pointer; color:var(--grau); } .pl-sw:disabled { cursor:inherit; }
.pl-sw.leer { font-size:13px; } .pl-seit { color:var(--grau); font-size:13px; }
.pl-kunde { display:inline-flex; align-items:center; gap:6px; } .pl-kunde svg { color:var(--grau); flex:none; }
.pl-bearb { white-space:nowrap; } .pl-bearb > span { display:block; } .pl-bearb .klein-text { font-size:12px; }
.kopf-bilder { display:inline-flex; } .kopf-bilder > * { width:26px; height:26px; border-radius:50%; border:2px solid #fff; margin-left:-6px; background:#e7e7e7; color:#444; font-size:11px; font-weight:600; display:inline-flex; align-items:center; justify-content:center; object-fit:cover; }
.kopf-bilder > *:first-child { margin-left:0; } .kopf-bilder .mehr { background:#f3f3f3; color:var(--grau); }
.pa-leute { display:inline-flex; margin-left:8px; } .pa-leute .kopf-bilder > * { width:32px; height:32px; font-size:12px; }
.pa-kontakt { font-size:14px; margin-top:2px; display:flex; align-items:center; gap:4px; min-width:0; } .pa-kontakt a { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; min-width:0; }
/* Kopieren-Knopf rechts neben Telefon und E-Mail (Dom 3.11.2026): leise, erst beim Drüberfahren deutlich */
.kontakt-kopie { border:none; background:none; padding:3px; border-radius:6px; color:#9a9a9a; cursor:pointer; display:inline-flex; flex:none; margin-left:auto; } .kontakt-kopie:hover { background:rgba(0,0,0,.06); color:var(--schwarz); } .pa-kontakt a { color:var(--schwarz); text-decoration:none; } .pa-kontakt a:hover { text-decoration:underline; }
#pa-status { margin-left:4px; }
/* Planung im Projekt (6.30) */
dialog.pp2 { width:min(620px, 100vw); }
.pp2-kopf { display:flex; align-items:center; gap:10px; padding:14px 18px; border-bottom:1px solid #ececec; flex:none; }
.pp2-titel { flex:1; min-width:0; } .pp2-titel h2 { margin:0; font-size:19px; } .pp2-titel .klein-text { display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.pp2-kopf .icon-knopf:focus { outline:none; } .pp2-kopf .icon-knopf:focus-visible { outline:2px solid #d9d9d9; }
.pp2-inhalt { flex:1 1 auto; overflow-y:auto; padding:6px 18px 18px; }
.pp2-teil { padding:14px 0 6px; } .pp2-teil + .pp2-teil { border-top:1px solid #f0f0f0; }
.pp2-teil-kopf { display:flex; align-items:center; gap:10px; margin-bottom:8px; } .pp2-teil-kopf h3 { margin:0; font-size:15px; } .pp2-teil-kopf .rechts { flex:1; }
.pp2-text-knopf { border:none; background:none; padding:4px 6px; font-size:14px; font-weight:600; color:var(--schwarz); cursor:pointer; border-radius:6px; } .pp2-text-knopf:hover { background:var(--hell); }
.pp2-ab { border:1px solid #ececec; border-radius:10px; padding:10px 12px; margin-bottom:8px; background:#fff; }
.pp2-zeile1 { display:flex; align-items:center; gap:8px; }
.pp2-name { flex:1; min-width:0; border:1px solid transparent; background:none; font-weight:600; font-size:15px; padding:5px 6px; border-radius:6px; } .pp2-name:hover, .pp2-name:focus { border-color:#e1e1e1; background:#fff; }
.pp2-daten { display:inline-flex; align-items:center; gap:4px; color:var(--grau); flex:none; }
.pp2-daten input { width:132px; border:1px solid transparent; background:none; padding:4px 4px; border-radius:6px; font-size:13px; color:var(--schwarz); } .pp2-daten input:hover, .pp2-daten input:focus { border-color:#e1e1e1; }
.pp2-zeile2 { display:flex; align-items:center; gap:10px; margin-top:4px; }
.pp2-meilenstein { flex:1; display:flex; align-items:center; gap:6px; } .pp2-meilenstein input { flex:1; border:1px solid transparent; background:none; font-size:13px; padding:4px 6px; border-radius:6px; color:var(--grau); }
.pp2-meilenstein input:hover, .pp2-meilenstein input:focus { border-color:#e1e1e1; color:var(--schwarz); }
.pp2-todos-knopf { display:inline-flex; align-items:center; gap:6px; border:none; background:none; font-size:13px; color:var(--grau); cursor:pointer; padding:4px 6px; border-radius:6px; } .pp2-todos-knopf:hover { background:var(--hell); color:var(--schwarz); }
.pp2-todos { margin-top:8px; padding-top:8px; border-top:1px dashed #ececec; } .pp2-hinweis { margin:4px 6px 0; }
.pp2-ei { display:flex; align-items:center; gap:8px; padding:8px 4px; border-bottom:1px solid #f3f3f3; } .pp2-ei:last-of-type { border-bottom:none; }
.pp2-person { flex:1; min-width:0; display:flex; align-items:center; gap:8px; } .pp2-person b { font-weight:500; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.pp2-person-wahl { flex:1; min-width:0; } .pp2-ab-wahl { width:150px; font-size:13px; }
.pp2 .icon-knopf.klein, .pp2-ab .icon-knopf, .pp2-ei .icon-knopf { width:30px; height:30px; border-color:transparent; background:none; color:var(--grau); flex:none; }
.pp2-ab .icon-knopf:hover, .pp2-ei .icon-knopf:hover { border-color:#d9d9d9; color:var(--schwarz); }
.pp2-leer { color:var(--grau); font-size:14px; margin:4px 0 10px; }
.pp2-fuss { display:flex; align-items:center; justify-content:space-between; padding:12px 18px; border-top:1px solid #ececec; flex:none; }
.pa-plan-ic[data-tafel] { cursor:pointer; border-radius:6px; padding:3px; } .pa-plan-ic[data-tafel]:hover { background:var(--hell); }
.pp2 .pp2-daten input[type=date] { width:122px; min-width:0; flex:none; height:30px; }
.pp2 .pp2-name { min-width:140px; width:auto; } .pp2 .pp2-ab-wahl { width:140px; flex:none; height:30px; padding-top:0; padding-bottom:0; }
.pp2 .pp2-person .kopf-bilder > * { width:28px; height:28px; }
.pp2 .pp2-daten .datumsfeld { width:126px; flex:none; } .pp2 .pp2-daten .datumsfeld input { height:30px; font-size:13px; padding-top:0; padding-bottom:0; }
.pp2 .pp2-zeile2 { flex-wrap:wrap; } .pp2 .pp2-meilenstein { min-width:160px; }
.pp2 .pp2-ei { flex-wrap:wrap; row-gap:4px; } .pp2 .pp2-ei .pp2-person, .pp2 .pp2-ei .pp2-person-wahl { flex:1 1 calc(100% - 46px); order:1; }
.pp2 .pp2-ei > .icon-knopf { order:2; } .pp2 .pp2-ei .pp2-daten { order:3; padding-left:34px; } .pp2 .pp2-ei .pp2-ab-wahl { order:4; }
.pp2 .pp2-ei > :not(.pp2-person):not(.pp2-daten):not(.icon-knopf):not(.pp2-person-wahl) { order:4; width:150px; flex:none; }
.pb .pb-text { resize:none; overflow:hidden; min-height:42px; }
.pb-nummer { display:flex; align-items:center; gap:10px; } .pb-nummer input { flex:1; }
.pb-vorschlag { border:none; background:none; color:var(--rot, #E40000); font-weight:600; cursor:pointer; white-space:nowrap; padding:4px 2px; font-size:14px; }
.pb-feld > div, .pb-feld > #pb-kunde, .pb-feld > #pb-empf { max-width:560px; }
.pb .pb-karte { max-width:none; margin-top:0; }
.pb-kunde-link { display:flex; gap:12px; flex:1; color:inherit; text-decoration:none; align-items:flex-start; } .pb-kunde-link svg { color:var(--grau); margin-top:3px; flex:none; }
.pb-kunde-karte:hover { border-color:#cfcfcf; }
.pb-treffer button { flex-direction:row; align-items:center; gap:10px; } .pb-treffer button > span:last-child { display:flex; flex-direction:column; }
.pb-tr-ic { width:28px; height:28px; border-radius:50%; background:#f0f0f0; display:inline-flex; align-items:center; justify-content:center; color:#666; flex:none; }
.pb .pb-haken { margin:0; }
.pb .pakte-ma { max-width:560px; }
.kd-namen { display:grid; grid-template-columns:140px 1fr 1fr; gap:12px; } .kd-namen .kd-firma { grid-column:span 2; }
.kd-kom { display:flex; flex-direction:column; gap:6px; } .kd-kom-titel { font-size:13px; color:var(--grau); }
.kd-kom-zeile { display:flex; gap:8px; align-items:center; } .kd-kom-zeile input { flex:1; } .kd-kom-zeile select { width:130px; flex:none; } .kd-x-platz { width:36px; flex:none; }
.kd-plus { align-self:flex-start; border:none; background:none; padding:2px 0; cursor:pointer; font-size:14px; font-weight:600; color:var(--schwarz); }
.kd-plus:hover { text-decoration:underline; }
@media (max-width:700px) { .kd-namen { grid-template-columns:1fr; } .kd-namen .kd-firma { grid-column:auto; } }
.pb-zeile > :first-child { flex:1; min-width:0; }
.kd-form .kd-kom-zeile { display:flex; } .kd-form .kd-kom-zeile > input { flex:1 1 auto; min-width:0; width:auto; }
.kd-form .kd-kom-zeile > .auswahl, .kd-form .kd-kom-zeile > select { width:140px; flex:none; }
.pp2-person .pt-haken { background:#1a8a3a; color:#fff; margin:0 0 0 6px; font-size:10px; } /* erledigter Einsatz in der Planung (6.45) */

/* Kontakte und Personal 6.32 (Dom 26.10.2026, Entwurf im Canvas): Kopf mit Kennzahlen, Listen in festen Kästen, Akte auf einen Blick */
main.kx-seite { gap:16px; } main.kx-seite > * { flex:none; } main.kx-seite > .kx-flex { flex:1 1 auto; min-height:0; }
.kx-spalten { display:grid; grid-template-columns:340px minmax(0, 1fr) 340px; gap:14px; } .kx-spalte { display:flex; flex-direction:column; gap:14px; min-height:0; min-width:0; }
.kx-spalte > .kx-gross { flex:1 1 auto; }
.kx-kopf { display:flex; align-items:center; gap:14px; }
.kx-kopf h1 { margin:0; font-size:22px; font-weight:600; display:flex; align-items:center; gap:10px; }
.kx-kopf .kx-unter { color:#6b6b6b; font-size:13.5px; margin-top:2px; }
.kx-kopf .kx-rechts { margin-left:auto; display:flex; align-items:center; gap:8px; }
.kx-zurueck { width:36px; height:36px; border:1px solid #dcdcdc; border-radius:8px; background:#fff; display:inline-flex; align-items:center; justify-content:center; color:#111; flex:none; }
.kx-ik { width:38px; height:38px; border:1px solid #dcdcdc; border-radius:8px; background:#fff; display:inline-flex; align-items:center; justify-content:center; color:#222; padding:0; }
.kx-logo { width:52px; height:52px; border-radius:14px; background:#111; color:#fff; font-weight:700; font-size:17px; display:inline-flex; align-items:center; justify-content:center; flex:none; }
.kx-av { width:34px; height:34px; border-radius:50%; background:#ececec; color:#444; font-weight:600; font-size:12px; display:inline-flex; align-items:center; justify-content:center; flex:none; }
.kx-av.eckig { border-radius:9px; background:#f1f1f1; } .kx-av.dunkel { background:#111; color:#fff; } .kx-av.gross { width:56px; height:56px; font-size:19px; }
.kx-av.f1 { background:#e8eefc; color:#2d4a9a; } .kx-av.f2 { background:#fdeee3; color:#9a4d16; } .kx-av.f3 { background:#e7f5ec; color:#22693b; } .kx-av.f4 { background:#f3e9fb; color:#6b3596; }
.kx-reiter { display:flex; gap:22px; border-bottom:1px solid #e6e6e6; }
.kx-reiter a { padding:0 0 10px; font-size:14.5px; font-weight:500; color:#6a6a6a; text-decoration:none; border-bottom:2px solid transparent; margin-bottom:-1px; display:inline-flex; gap:6px; align-items:center; }
.kx-reiter a.an { color:#131313; font-weight:600; border-color:#131313; } .kx-reiter a small { font-size:12px; color:#333; font-weight:500; background:#e4e4e4; border-radius:999px; padding:1px 7px; margin-left:-2px; }
.kx-kacheln { display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:14px; }
.kx-kachel { background:#fff; border:1px solid #e6e6e6; border-radius:12px; padding:13px 16px; display:flex; flex-direction:column; gap:2px; }
.kx-kachel span { font-size:13px; color:#6b6b6b; } .kx-kachel b { font-size:24px; line-height:30px; font-weight:600; } .kx-kachel small { font-size:12.5px; color:#8a8a8a; }
.kx-kachel small .plus { color:#1d7a3e; font-weight:600; } .kx-kachel small .minus { color:#b42323; font-weight:600; }
.kx-filter { display:flex; gap:8px; align-items:center; }
.kx-suche { height:38px; min-width:320px; border:1px solid #e1e1e1; border-radius:10px; background:#fff; display:inline-flex; align-items:center; gap:8px; padding:0 12px; color:#9a9a9a; font-size:14px; }
.kx-fbtn { height:38px; border:1px solid #e1e1e1; border-radius:10px; background:#fff; display:inline-flex; align-items:center; gap:6px; padding:0 12px; font-size:14px; font-weight:500; color:#222; }
.kx-fbtn.an { border-color:#111; }
.kx-kasten { background:#fff; border:1px solid #e6e6e6; border-radius:12px; display:flex; flex-direction:column; min-height:0; min-width:0; }
.kx-kasten-kopf { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:14px 18px 8px; }
.kx-kasten-kopf h2 { margin:0; font-size:15px; font-weight:600; display:flex; gap:8px; align-items:center; } .kx-kasten-kopf h2 small { font-size:12.5px; color:#9a9a9a; font-weight:500; }
.kx-kasten-kopf .kx-mini { width:28px; height:28px; border:none; background:none; border-radius:8px; color:#777; display:inline-flex; align-items:center; justify-content:center; padding:0; }
.kx-kasten-inhalt { padding:0 18px 14px; overflow:auto; min-height:0; }
.kx-scroll { overflow:auto; min-height:0; flex:1; }
.kx-tab { width:100%; border-collapse:collapse; }
.kx-tab th { position:sticky; top:0; background:#fff; z-index:1; font-size:13px; font-weight:600; color:#6b6b6b; text-align:left; padding:10px 14px; border-bottom:1px solid #eee; white-space:nowrap; }
.kx-tab td { padding:10px 14px; border-bottom:1px solid #f2f2f2; font-size:14px; vertical-align:middle; white-space:nowrap; } .kx-tab tr:last-child td { border-bottom:none; }
.kx-tab .zahl { text-align:right; } .kx-tab .grau { color:#8a8a8a; }
.kx-tab tr.an td { background:#fafafa; }
.kx-name { display:flex; align-items:center; gap:12px; } .kx-name > span:last-child { display:flex; flex-direction:column; } .kx-name b { font-weight:600; } .kx-name small { color:#8a8a8a; font-size:12.5px; }
.kx-fuss { border-top:1px solid #eee; padding:10px 18px; font-size:13px; color:#6b6b6b; display:flex; justify-content:space-between; }
.kx-marke { display:inline-flex; align-items:center; padding:2px 8px; border-radius:4px; font-size:12.5px; font-weight:500; line-height:1.45; background:#ebeae7; color:#4a4844; } /* Etiketten C */
.kx-marke.schwarz { background:#111; color:#fff; }
.kx-werte { display:grid; grid-template-columns:104px 1fr; gap:9px 12px; margin:0; font-size:14px; }
.kx-werte dt { color:#8a8a8a; } .kx-werte dd { margin:0; color:#111; } .kx-werte dd.kx-leer { color:#b5b5b5; }
.kx-werte a { color:#111; text-decoration:none; border-bottom:1px solid #d6d6d6; }
.kx-zeile { display:flex; align-items:center; gap:12px; padding:10px 0; border-bottom:1px solid #f2f2f2; font-size:14px; } .kx-zeile:last-child { border-bottom:none; }
.kx-zeile > span.kx-t { flex:1; min-width:0; display:flex; flex-direction:column; } .kx-zeile small { color:#8a8a8a; font-size:12.5px; }
.kx-zeile .kx-ik { width:32px; height:32px; border-radius:8px; }
.kx-zeit { position:relative; padding-left:22px; } .kx-zeit::before { content:''; position:absolute; left:6px; top:6px; bottom:6px; width:2px; background:#f0f0f0; }
.kx-zeit .kx-ev { position:relative; padding:0 0 14px; font-size:14px; } .kx-zeit .kx-ev::before { content:''; position:absolute; left:-20px; top:5px; width:10px; height:10px; border-radius:50%; background:#fff; border:2px solid #c9c9c9; }
.kx-zeit .kx-ev.rot::before { border-color:var(--rot, #E40000); } .kx-zeit .kx-ev small { display:block; color:#8a8a8a; font-size:12.5px; }
.kx-schritt { display:flex; gap:10px; align-items:flex-start; padding:9px 0; border-bottom:1px solid #f2f2f2; font-size:14px; } .kx-schritt:last-child { border-bottom:none; }
.kx-schritt i { width:16px; height:16px; border-radius:50%; border:2px solid #c9c9c9; flex:none; margin-top:2px; } .kx-schritt span { flex:1; display:flex; flex-direction:column; } .kx-schritt small { color:#8a8a8a; font-size:12.5px; }
.kx-schritt em { font-style:normal; font-size:12.5px; font-weight:600; color:#6b6b6b; white-space:nowrap; } .kx-schritt em.heute { color:var(--rot, #E40000); }
.kx-erledigen { display:flex; align-items:center; gap:10px; background:#fff; border:1px solid #f1d9a8; border-radius:12px; padding:10px 14px; font-size:14px; }
.kx-erledigen b { margin-right:4px; }
.kx-akte { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:14px; align-content:start; }
.kx-akte .kx-kasten-inhalt { overflow:visible; }
.kx-schloss { color:#9a9a9a; display:inline-flex; }
.kx-balken { height:6px; border-radius:3px; background:#f0f0f0; overflow:hidden; margin-top:6px; } .kx-balken i { display:block; height:100%; background:#111; border-radius:3px; }
.kx-reiter a, .kx-reiter a.an { border-left:none !important; border-top:none; border-right:none; background:none !important; border-radius:0 !important; padding-left:0 !important; box-shadow:none !important; }

.kx-tab tr.klick { cursor:pointer; } .kx-tab tr.klick:hover td { background:#fafafa; }
.kx-av img, .kx-logo img { width:100%; height:100%; object-fit:cover; border-radius:inherit; }
.kx-kasten .akte-kasten { border:none; padding:0; background:none; box-shadow:none; } .kx-kasten .akte-kasten > .akte-kopf { display:none; }
.kx-kachel a { color:inherit; text-decoration:none; }
.kx-leerzeile { color:#9a9a9a; font-size:13.5px; padding:4px 0 6px; }
.kx-voll { flex:1 1 auto; min-height:0; overflow:auto; }
@media (max-width:1200px) { .kx-spalten { grid-template-columns:300px minmax(0, 1fr); } .kx-spalten > .kx-spalte:last-child { grid-column:1 / -1; } .kx-akte { grid-template-columns:repeat(2, minmax(0, 1fr)); } }
@media (max-width:760px) { .kx-kacheln { grid-template-columns:repeat(2, minmax(0, 1fr)); } .kx-spalten, .kx-akte { grid-template-columns:1fr; } .kx-suche { min-width:0; flex:1; } .kx-reiter { overflow-x:auto; } main.kx-seite { height:auto; overflow:visible; } }
.kx-kopf.akte-kopfzeile { background:none; border:none; padding:0; margin:0; border-radius:0; flex-wrap:nowrap; }
.kx-kopf .kx-zurueck.icon-knopf { align-self:center; }
.kx-reiter button { padding:0 0 10px; font-size:14.5px; font-weight:500; color:#6a6a6a; background:none; border:none; border-bottom:2px solid transparent; border-radius:0; margin-bottom:-1px; cursor:pointer; }
.kx-reiter button.an { color:#131313; font-weight:600; border-color:#131313; } .kx-reiter button small { font-size:12px; color:#333; font-weight:500; background:#e4e4e4; border-radius:999px; padding:1px 7px; margin-left:4px; } /* Zähler auch an Knopf-Reitern (Dom 1.11.2026) */
.kx-seite .akte-kasten { background:#fff; border:1px solid #e6e6e6; border-radius:12px; padding:14px 18px; margin:0; min-width:0; }
.kx-seite .akte-kasten .akte-kopf h2 { font-size:15px; }
.kx-akte .akte-kasten .akte-werte { grid-template-columns:150px 1fr; } .kx-akte .akte-werte dd:empty::before { content:"–"; color:#c4c4c4; }
.kx-seite .kx-ik { text-decoration:none; }
.kx-seite .akte-kasten a:not(.knopf):not(.primaer), .kx-seite .kx-kasten a:not(.knopf):not(.primaer) { color:#111; }

/* Arbeitskleidung Bestellen (6.34): je Artikel eine Zeile, je Größe ein kleines Zahlenfeld */
.kl-tabelle { display:flex; flex-direction:column; gap:8px; max-height:52vh; overflow:auto; }
.kl-tz { display:grid; grid-template-columns:220px 1fr; gap:12px; align-items:center; padding:8px 0; border-bottom:1px solid var(--linie, #eee); }
.kl-tz:last-child { border-bottom:0; }
.kl-gfelder { display:flex; flex-wrap:wrap; gap:6px; }
.kl-gfeld { display:flex; flex-direction:column; align-items:center; gap:2px; font-size:12px; color:var(--grau); }
.formular .kl-gfeld input { width:56px; height:38px; text-align:center; padding:0 4px; border:1px solid #e3e3e3; border-radius:8px; font-size:15px; font-weight:600; color:#111; }
.formular .kl-gfeld input:focus { border-color:#111; outline:none; }
.formular .kl-gfeld input:placeholder-shown { font-weight:400; }
.zt-seitenreiter .cl-zahl { margin-left:6px; height:18px; min-width:18px; font-size:11px; }
@media (max-width: 700px) { .kl-tz { grid-template-columns:1fr; } }
.fp-verwalten { margin-top:4px; } .pa-kopf .pa-leute.rechts { margin-left:auto; margin-right:6px; }
.pb-maps { display:inline-flex; align-items:center; gap:6px; font-size:14px; color:var(--schwarz); text-decoration:none; } .pb-maps:hover { text-decoration:underline; } .pb-maps svg { color:var(--grau); }
.pb-adr-treffer button { flex-direction:row; align-items:center; gap:8px; } .pb-adr-treffer svg { color:var(--grau); flex:none; }
@media (min-width:1101px) { main.feste-seite { overflow:clip; } }
/* Projekt-Reiter 6.38 */
.pa-uebersicht .g12 { grid-column:1; grid-row:1 / span 2; }
.akte-kaesten.zwei { display:grid; grid-template-columns:1fr 1fr; gap:12px; } @media (max-width:900px) { .akte-kaesten.zwei { grid-template-columns:1fr; } }
.pa-ressourcen .verweis { display:flex; gap:6px; align-items:baseline; } .pa-ressourcen .verweis .rechts { margin-left:auto; } .pa-ressourcen .verweis.gewesen { color:#555; }
.pe-summen { display:flex; gap:12px; margin-bottom:12px; } .pe-summen > div { flex:1; border:1px solid #ececec; border-radius:10px; padding:10px 14px; background:#fff; display:flex; flex-direction:column; gap:2px; }
.pe-summen span { font-size:13px; color:var(--grau); } .pe-summen b { font-size:18px; }
.pe-teil { margin-bottom:16px; } .pe-kopf { display:flex; align-items:baseline; gap:8px; margin:4px 0 6px; } .pe-kopf h3 { margin:0; font-size:15px; }
.pe-tab { width:100%; border-collapse:collapse; font-size:14px; } .pe-tab th { text-align:left; font-weight:500; color:var(--grau); font-size:12px; padding:6px 8px; border-bottom:1px solid #ececec; }
.pe-tab td { padding:8px; border-bottom:1px solid #f3f3f3; } .pe-tab tr.klick { cursor:pointer; } .pe-tab tr.klick:hover td { background:var(--hell); } .pe-tab .zahl { text-align:right; white-space:nowrap; }
.pe-leer { color:var(--grau); font-size:14px; margin:0 0 6px; } .pe-ja { color:#1f7a4d; font-size:13px; }
@media (min-width:1101px) { main.pb-seite .pb-scroll { flex:1 1 auto; min-height:0; overflow-y:auto; margin-bottom:10px; } }
.pb-fuss { flex:none; display:flex; } .pb-fuss .knopf-link { gap:4px; }
.pb .pb-adresse .pb-feld { position:relative; }
.adr-maps { color:inherit; text-decoration:none; } .adr-maps:hover { text-decoration:underline; }

/* 6.42 CRM (Dom 27.10.2026): Chat und Verlauf als ein Strom, Anfrage abschließen, Stand */
.ch-strom { margin-right:auto; align-self:center; margin-left:4px; } 
.ch-reiter:has(.ch-strom) { padding:6px 0; }
.ch-sys { display:flex; align-items:flex-start; gap:8px; margin:4px 36px; font-size:12.5px; color:#6b6b6b; line-height:1.45; }
.ch-sys > span:last-child { min-width:0; } .ch-sys b { color:#333; font-weight:600; } .ch-sys em { font-style:normal; color:#9a9a9a; margin-left:6px; white-space:nowrap; }
.ch-sys .verlauf-diff { display:inline; } .ch-sys .verlauf-diff span { display:inline; margin-right:6px; }
.cv-ic { width:22px; height:22px; flex:none; border-radius:50%; background:#f1f1f1; color:#555; display:inline-flex; align-items:center; justify-content:center; }
.cv-ic.status { background:#fff2e0; color:#a35a00; } .cv-ic.haken { background:#e7f5ec; color:#1d6b38; } .cv-ic.dokument { background:#e8eefc; color:#2d4a9a; } .cv-ic.geld { background:#e7f5ec; color:#1d6b38; }
.cv-liste { padding:8px 10px; display:flex; flex-direction:column; }
.cv-ev { display:grid; grid-template-columns:44px 22px minmax(0, 1fr); gap:8px; padding-bottom:14px; position:relative; }
.cv-ev::before { content:''; position:absolute; left:62px; top:24px; bottom:2px; width:1px; background:#e8e8e8; } .cv-ev:last-child::before { display:none; }
.cv-tag { display:flex; flex-direction:column; align-items:flex-end; line-height:1.2; padding-top:2px; } .cv-tag b { font-size:12.5px; font-weight:600; } .cv-tag small { font-size:11.5px; color:#9a9a9a; }
.cv-inhalt { display:flex; flex-direction:column; gap:1px; font-size:13.5px; min-width:0; padding-top:2px; } .cv-inhalt b { font-weight:600; } .cv-inhalt span { color:#444; } .cv-inhalt small { color:#9a9a9a; font-size:12px; }
.cv-inhalt .verlauf-diff { display:flex; flex-direction:column; }
.ab-karten { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.ab-karte { display:flex; flex-direction:column; align-items:flex-start; gap:2px; text-align:left; padding:10px 12px; border:1px solid #e1e1e1; border-radius:12px; background:#fff; }
.ab-karte b { font-size:14.5px; } .ab-karte small { font-size:12px; color:#8a8a8a; font-weight:400; }
.ab-karte.gewonnen b { color:#1d6b38; } .ab-karte.verloren b { color:#b42323; } .ab-karte.abgesagt b { color:#555; } .ab-karte.wiedervorlage b { color:#8a5a00; }
.ab-karte.an { border-color:#111; box-shadow:0 0 0 1px #111 inset; }
.ab-frage { margin:14px 0 4px; font-size:13px; color:#666; }
.ab-gruende { display:flex; flex-direction:column; }
.ab-gruende button { display:flex; align-items:center; gap:10px; border:none; border-bottom:1px solid #f0f0f0; border-radius:0; background:none; padding:9px 2px; text-align:left; font-size:14px; font-weight:400; }
.ab-gruende i { width:16px; height:16px; border-radius:50%; border:1.5px solid #cfcfcf; box-sizing:border-box; flex:none; } .ab-gruende button.an i { border:5px solid #111; }
.ab-datum, .ab-notiz { display:flex; flex-direction:column; gap:4px; margin-top:12px; font-size:13px; color:#666; } .ab-notiz textarea { width:100%; }
@media (min-width:761px) { .crm-zu { grid-template-columns:repeat(4, minmax(0, 1fr)); } }


/* 6.44 Anfrage wie die Vorlage (Canvas „Nodus Vorlagen“ › Akte im CRM, Dom 27.10.2026) */
.an4-kopf { display:flex; align-items:center; gap:14px; margin:0 0 14px; }
.an4-av { width:48px; height:48px; border-radius:50%; background:#fde9d9; color:#9a4a16; font-weight:600; font-size:16px; display:inline-flex; align-items:center; justify-content:center; flex:none; }
.an4-titel { min-width:0; flex:1; } .an4-titel h1 { margin:0; font-size:24px; font-weight:600; display:flex; align-items:center; gap:10px; flex-wrap:wrap; } .an4-titel .klein-text { font-size:13.5px; margin-top:2px; }
.an4-rechts { display:flex; align-items:center; gap:8px; flex:none; } .an4-rechts .icon-knopf { width:38px; height:38px; }
.an4-rechts .primaer { height:38px; padding:0 16px; white-space:nowrap; }
.crm-phasen { gap:4px; margin:0 0 6px; }
.crm-phasen span { height:34px; display:flex; align-items:center; justify-content:center; gap:6px; border-radius:8px; background:#fff; border:1px solid #e6e6e6; color:#9a9a9a; font-size:13px; font-weight:600; padding:0 10px; box-sizing:border-box; }
.crm-phasen span.fertig { background:#ececec; border-color:#ececec; color:#555; } .crm-phasen span.fertig::before { content:'✓'; font-size:12px; }
.crm-phasen span.jetzt { background:#111; border-color:#111; color:#fff; }
.crm-phasen span[data-abschluss] { flex:0 0 150px; color:#111; border-color:#d9d9d9; } .crm-phasen span[data-abschluss]::after { content:'▾'; font-size:11px; margin-left:2px; }
.crm-phasen span.jetzt.ende { flex:0 0 auto; } .crm-phasen span.jetzt.gewonnen { background:#e7f5ec; border-color:#cfe9d8; color:#1d6b38; } .crm-phasen span.jetzt.verloren { background:#fbeeee; border-color:#f1d0d0; color:#b42323; }
.crm-phasen span.jetzt.abgesagt { background:#ececec; border-color:#d9d9d9; color:#444; } .crm-phasen span.jetzt.wiedervorlage { background:#fff4e0; border-color:#f3e1bf; color:#8a5a00; }
.an4-reiter { display:flex; gap:22px; border-bottom:1px solid #e6e6e6; margin:8px 0 14px; flex:none; }
.an4-reiter button { background:none; border:none; border-bottom:2px solid transparent; border-radius:0; padding:8px 0 10px; margin-bottom:-1px; font-size:14.5px; font-weight:500; color:#777; }
.an4-reiter button.an { color:#111; font-weight:600; border-bottom-color:#E40000; } .an4-reiter small { font-size:12px; color:#9a9a9a; margin-left:3px; font-weight:500; }
.an4-raster { flex:1; min-height:0; display:grid; grid-template-columns:minmax(0, 2fr) minmax(360px, 1fr); gap:14px; }
.an4-links { min-height:0; overflow-y:auto; display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:14px; align-content:start; padding-bottom:14px; }
.an4-spalte { display:flex; flex-direction:column; gap:14px; min-width:0; }
.an4-links .akte-kasten { margin:0 !important; border:1px solid #e6e6e6; border-radius:12px; padding:0 0 4px; }
.an4-links .akte-kopf { padding:14px 18px 6px; margin:0; } .an4-links .akte-kopf h2 { font-size:15px; font-weight:600; }
.an4-links .akte-werte { display:grid; grid-template-columns:minmax(96px, auto) 1fr; gap:0; padding:0 18px 8px; font-size:14px; }
.an4-links .akte-werte dt, .an4-links .akte-werte dd { padding:9px 0; border-bottom:1px solid #f2f2f2; } .an4-links .akte-werte dt { color:#8a8a8a; font-size:13.5px; padding-right:12px; }
.an4-links .akte-werte dt:nth-last-child(2), .an4-links .akte-werte dd:last-child { border-bottom:none; }
.an4-links .akte-kasten > :not(.akte-kopf):not(.akte-werte):not(.an4-leer):not(form) { margin-left:18px; margin-right:18px; }
.an4-links .akte-kasten form { padding:0 18px 14px; } .an4-links .an-aktionen { margin:0 18px 6px; }
.an4-leer { margin:2px 18px 12px; font-size:13px; color:#8a8a8a; } /* statt „+ … ergänzen“ (Bausteine Runde 4) */
.an4-links .an-jetzt { margin:0; align-self:stretch; }
.an4-dateien { grid-column:1 / -1; background:#fff; border:1px solid #e6e6e6; border-radius:12px; padding:16px 18px; }
.an4-d-titel { font-size:16px; margin:0 0 6px; } .an4-datei { width:100%; background:none; border:none; border-bottom:1px solid #f0f0f0; font:inherit; text-align:left; min-height:56px; padding:8px 10px; }
.an4-datei:last-of-type { border-bottom:none; } .an4-datei .pa-ic { width:36px; } .an4-datei .pa-ic img { width:36px; height:36px; }
.an4-vid { position:relative; width:36px; height:36px; border-radius:5px; background:#333; display:flex; align-items:center; justify-content:center; overflow:hidden; }
.an4-vid img { position:absolute; inset:0; } .an4-vid svg { position:relative; width:14px !important; height:14px !important; fill:#fff; stroke:none; filter:drop-shadow(0 0 2px rgba(0,0,0,.6)); }
.an4-chat { border:1px solid #e6e6e6; border-radius:12px; }
.an4-chat .ch-titel { font-size:15px; font-weight:600; padding:14px 18px 4px; }

.an4-chat .ch-sys { margin:6px 22px; font-size:13px; }
.an4-chat .cv-liste { padding:12px 18px; } .an4-chat .cv-ev { padding-bottom:16px; }
@media (max-width:1100px) { .an4-raster { grid-template-columns:1fr; } .an4-links { grid-template-columns:1fr; overflow:visible; } .an4-chat { height:75vh; } .an4-kopf { flex-wrap:wrap; } }
.an4-breit { grid-column:1 / -1; }
/* 6.46 Dokumente (Dom 27.10.2026): Dialoge schmal, Haken hinten, Ablageflächen gleich groß, Rabatt/Einstellungen in einer Zeile, Kalkulation mit Aufschlag-Spalte */
dialog.ds-dialog { width:min(560px, 94vw); } dialog.df-dialog { width:min(820px, 96vw); }
.dok-folge-kopf { padding:10px 6px; gap:12px; } .dok-folge-alle { display:flex; align-items:center; gap:10px; margin-left:auto; cursor:pointer; } .dok-folge-alle input { width:18px; height:18px; margin:0; }
.dok-folge-liste { max-height:62vh; }
.dok-folge-z { grid-template-columns:44px minmax(0, 1fr) 110px 110px 22px; gap:10px; align-items:start; padding:12px 6px; font-size:14.5px; }
.dok-folge-z input[type=checkbox] { width:18px; height:18px; margin:2px 0 0; justify-self:end; }
.dok-folge-z.titel { background:#fafafa; font-weight:400; } .dok-folge-nr { padding-top:1px; }
.dok-folge-text { white-space:normal; overflow:visible; display:flex; flex-direction:column; gap:3px; min-width:0; }
.dok-folge-lang { color:#666; font-size:13px; line-height:1.45; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.dok-folge-art { font-size:12px; color:#888; font-weight:600; }
.ab-wahl { display:flex; gap:6px; flex-wrap:wrap; margin-bottom:16px; } .ab-wahl button { flex:1 1 auto; } .ab-wahl button.an { background:#111; color:#fff; border-color:#111; }
.ab-wert { display:flex; align-items:center; gap:10px; } .ab-wert input { width:130px; font-size:16px; } .ab-wert .rechts { margin-left:auto; font-weight:700; }
/* „Text hierher ziehen“ oben und „Bausteine hierher ziehen“ unten: gleich hoch und gleich breit; die Textfelder selbst bleiben schmaler */
.dok-a4 .dok-leer, .dok-block-ziel { box-sizing:border-box; min-height:64px; align-items:center; justify-content:center; border:1.5px dashed #d0d0d0; border-radius:8px; color:#999; font-size:13.5px; padding:10px; background:none; text-align:center; }
.dok-a4 .dok-leer { display:flex; margin:6px 0; }
.dok-block-ziel { display:none; margin:2px -46px; } body.dok-zieht .dok-block-ziel, .dok-bloecke.ziel-feld .dok-block-ziel { display:flex; }
.dok-bloecke.ziel-feld .dok-block-ziel, .dok-a4 .dok-leer.ziel-feld { border-color:var(--rot); color:var(--rot); background:#fff6f6; }
@media (max-width:1000px) { .dok-block-ziel { margin:2px -16px; } }
/* Anrede mit Wahl persönlich / Damen und Herren */
.dok-anrede-z { display:flex; align-items:center; gap:8px; margin-bottom:28px; } .dok-a4 .dok-texte .dok-anrede-z .dok-anrede { flex:1; margin:0; min-width:0; }
.dok-anrede-z .auswahl { width:auto !important; flex:none; } .dok-anrede-z .auswahl-knopf { background:none !important; border-color:transparent !important; color:#888; font-size:13px; }
.dok-anrede-z .auswahl-knopf:hover { border-color:#e4e4e4 !important; }
/* Zahl mit Einheit dahinter (%, €, Tage) statt langer Auswahl */
.dok-einst-z { display:flex; align-items:center; gap:8px; margin-top:10px; } .dok-einst-z > input { flex:1; min-width:0; }
.dok-zahl-einheit { display:inline-flex; align-items:stretch; flex:none; border:1px solid #dcdcdc; border-radius:6px; background:#fff; overflow:hidden; min-height:38px; }
.dok-zahl-einheit input { width:84px !important; min-width:0 !important; border:none !important; border-radius:0 !important; background:#fff !important; }
.dok-zahl-einheit.breit input { width:110px !important; }
.dok-zahl-einheit > span { display:flex; align-items:center; padding:0 10px; color:#555; white-space:nowrap; border-left:1px solid #eee; background:#fafafa; font-size:13.5px; }
.dok-zahl-einheit .auswahl { width:auto !important; min-width:0 !important; border-left:1px solid #eee; } .dok-zahl-einheit .auswahl-knopf { border:none !important; border-radius:0 !important; min-height:36px; padding:0 8px; background:#fafafa !important; }
.dok-rabatt.dok-einst-z { flex-direction:row; margin-top:8px; }
.dok-einst-reihe { display:flex; align-items:center; gap:10px; flex-wrap:wrap; min-height:38px; } .dok-einst-reihe + .dok-einst-reihe { margin-top:8px; }
.dok-einst-reihe .dok-toggle { min-width:180px; } .dok-einst-reihe .auswahl { width:150px !important; }
.dok-frist-vorschau { margin:12px 0 0; padding-top:10px; border-top:1px solid #e2e2e2; color:#444; font-size:13.5px; line-height:1.5; }
/* Summen wie plancraft; Sätze darunter auf einer Linie mit den Texten */
.dok-summe-zeilen .dok-sum-rabatt { color:#333; } .dok-summe-zeilen .dok-sum-rabatt i:first-child { display:flex; align-items:center; gap:6px; } .dok-summe-zeilen .dok-sum-rabatt svg { color:#777; }
.dok-summe-zeilen .netto { border-top:1px solid #ddd; padding-top:6px; }
.dok-a4 .dok-summen .dok-bedingungen { padding:0 42px 0 26px; }
.dok-schluss { margin:6px 48px 10px; padding:14px 16px; border:1px solid #e6e6e6; border-radius:8px; font-size:13.5px; }
.dok-schluss-tab { width:100%; border-collapse:collapse; } .dok-schluss-tab th { text-align:left; font-weight:600; color:#777; font-size:12.5px; padding:4px 6px; border-bottom:1px solid #eee; }
.dok-schluss-tab td { padding:5px 6px; border-bottom:1px solid #f3f3f3; } .dok-schluss-tab .r { text-align:right; white-space:nowrap; }
/* Kalkulation: Aufschlag als eigene Spalte zwischen EK und EK gesamt, Beschreibung kleiner, Zahlen und Einheit gut lesbar, ohne €-Zeichen in den Feldern */
.dok-kalk-k, .dok-kalk-k.unter { grid-template-columns:12px 104px 60px 86px minmax(60px, 1fr) 84px 44px 82px 22px 22px; gap:5px; }
.dok-kalk-k .auswahl-knopf { padding-left:6px !important; padding-right:4px !important; font-size:13px; }
.dok-bedingungen > div + div { margin-top:10px; }
.dok-kalk-k [data-kf="text"], .dok-kalk-k [data-uf="text"] { font-size:12.5px !important; color:#444; }
.dok-kalk-k [data-kf="menge"], .dok-kalk-k [data-uf="menge"], .dok-kalk-k [data-kf="ek"], .dok-kalk-k [data-uf="ek"] { font-size:14px !important; font-weight:600; }
.dok-kalk-k .auswahl-knopf { color:#111; font-weight:600; }
.dok-kalk-k > .dok-kalk-z { justify-self:center; font-size:12px; color:#666; font-weight:600; white-space:nowrap; }
.dok-kalk-k .dok-kalk-wert { justify-content:flex-end; font-size:14px; font-weight:600; }
.dok-kalk-ek.mit-lg { display:flex; align-items:center; gap:2px; } .dok-kalk-ek.mit-lg input { padding-right:6px !important; flex:1; min-width:0; }
.dok-kalk-ek.mit-lg .dok-kalk-lgk { position:static; transform:none; flex:none; width:18px; }
.dok-kalk-k.fuss { margin-top:6px; } .dok-kalk-k.fuss .dok-kalk-neu-k { grid-column:2 / 8; } .dok-kalk-k.fuss .dok-kalk-wert { grid-column:8; }
.dok-kalk-neu-k { display:flex; gap:6px; flex-wrap:wrap; } .dok-kalk-neu-k button { padding:6px 12px; font-size:13px; font-weight:600; background:#f2f2f2; border-color:#e2e2e2; display:inline-flex; align-items:center; gap:4px; }
.dok-kalk-neu-k button:hover { background:#e9e9e9; }
.dok-kalk-k.fuss.unter .dok-kalk-neu-k { grid-column:2 / 8; } .dok-kalk-k.fuss.unter .dok-kalk-wert { grid-column:8 / 10; }
.dok-kalk-v .dok-kalk-wert, .dok-kalk-v input { font-size:14px !important; } .dok-kalk-v.summe .dok-kalk-wert { font-weight:700; }

/* Einzelchat mit Ausgeschiedenen: nur noch lesen (27.10.2026) */
.ch-nur-lesen { padding:12px 14px; margin:6px 10px 10px; border-radius:10px; background:#f3f3f3; color:#666; font-size:13.5px; text-align:center; }

/* 6.54 Dokumente (Dom 27.10.2026): Dialogkopf mit Zurück, Schlussrechnung wählen, Zahlungsaufstellung wie plancraft, Referenz, Lohngruppen-Pfeil vorne im Feld */
.dlg-kopf { margin:0 0 12px; gap:6px; } .dlg-kopf h2 { margin:0; font-size:19px; }
.sr-liste { max-height:62vh; overflow:auto; display:flex; flex-direction:column; gap:10px; } .sr-liste h3 { margin:10px 0 0; font-size:16px; }
.sr-karte { display:flex; justify-content:space-between; align-items:center; gap:16px; text-align:left; padding:16px 18px; border:1px solid #e3e3e3; background:#fafafa; border-radius:8px; font-weight:400; }
.sr-karte:hover { background:#f2f2f2; } .sr-karte > span:first-child { display:flex; flex-direction:column; gap:8px; } .sr-wann { color:#444; font-size:13.5px; white-space:nowrap; }
.sr-pillen { display:flex; gap:6px; flex-wrap:wrap; } .sr-pille { background:#3a3a3a; color:#fff; border-radius:999px; padding:3px 11px; font-size:13px; } .sr-pille.entwurf { background:#d8f0fb; color:#155e75; }
.dok-referenz { margin:-2px 0 12px; font-size:13.5px; color:#555; }
.dok-za { width:100%; border-collapse:collapse; margin:18px 0 6px; font-size:14px; } .dok-za th { background:#ececec; text-align:left; padding:8px 8px; font-weight:700; }
.dok-za td { padding:9px 8px; border-bottom:1px solid #eee; } .dok-za .r { text-align:right; white-space:nowrap; } .dok-za .dok-za-offen td { font-weight:700; border-bottom:none; }
.dok-za-fuss { display:flex; justify-content:flex-end; margin:0 0 6px; } .dok-za-fuss button { background:#f2f3f5; border-color:transparent; color:#555; }
.dok-a4 .dok-summen .dok-za { width:auto; margin-left:26px; margin-right:26px; }
.dok-kalk-ek.mit-lg { position:relative; display:block; } .dok-kalk-ek.mit-lg input { padding-left:24px !important; padding-right:7px !important; width:100% !important; }
.dok-kalk-ek.mit-lg .dok-kalk-lgk { position:absolute; left:2px; top:50%; transform:translateY(-50%); width:20px; height:26px; z-index:1; }
.dok-protokoll { width:100%; border-collapse:collapse; font-size:13.5px; } .dok-protokoll td { padding:7px 6px; border-bottom:1px solid #f0f0f0; vertical-align:top; } .dok-protokoll td:first-child { white-space:nowrap; color:#666; }
.dok-such-dok > span:nth-child(2) { flex:1; min-width:0; } .dok-such-dok .rechts { margin-left:auto; white-space:nowrap; font-size:13.5px; }
.dlg-kopf [hidden] { display:none !important; }
/* 6.64 Dokumente (Dom 27.10.2026): Textpositionen von „Menge“ bis „Preis“ (Editor = PDF), Marken, Storno/Kürzen, Nummernkreise wie plancraft, Ablage-Ziele, Suche */
.dok-a4 .dok-pos.text .dok-pos-text { grid-column:3 / 7; }
.dok-pos-edit.text .dok-lang-edit { margin-left:91px; margin-right:147px; }
@media (max-width:1000px) { .dok-pos-edit.text .dok-lang-edit { margin-left:0; margin-right:0; } }
.dok-marke.mahnung { background:#f6dcdb; color:#962626; } .dok-marke.angenommen { background:#e3eedb; color:#3d5e26; } .dok-marke.abgelehnt { background:#ebeae7; color:#666; }
button.gefahr { background:var(--rot); border-color:var(--rot); color:#fff; } button.gefahr:hover { filter:brightness(.93); }
.dok-hinweis-box { display:flex; align-items:center; gap:10px; border:1px solid #c9dbf5; background:#eef5ff; border-radius:8px; padding:10px 14px; margin:12px 0 0; font-size:14px; } .dok-hinweis-box svg { color:#1b5e8c; flex:none; }
.kz-liste { display:flex; flex-direction:column; max-height:52vh; overflow:auto; }
.kz-z { display:grid; grid-template-columns:44px minmax(0, 1fr) 100px 150px; gap:10px; align-items:center; padding:8px 4px; border-bottom:1px solid #f0f0f0; font-size:14px; } .kz-z .r { text-align:right; }
.nk-karte { overflow-x:auto; } .nk-tab { width:100%; border-collapse:collapse; font-size:14.5px; } .nk-tab th { text-align:left; font-size:12.5px; color:#777; font-weight:500; text-transform:uppercase; letter-spacing:.03em; padding:8px; border-bottom:1px solid #eee; }
.nk-tab td { padding:8px; border-bottom:1px solid #f0f0f0; } .nk-tab td input { width:130px; min-height:38px; } .nk-tab td input.r { width:100px; } .nk-tab .auswahl { width:90px !important; } .nk-naechst { white-space:nowrap; }
.nk-info { display:flex; gap:40px; align-items:flex-start; background:#f2f2f2; border-radius:8px; padding:16px 20px; margin-top:16px; font-size:14px; } .nk-info ul { margin:6px 0 0; padding-left:18px; } .nk-info li b { display:inline-block; min-width:56px; } .nk-info > svg { flex:none; margin-top:2px; }
.dok-such-dok { align-items:flex-start; } .dsd-text { display:flex; flex-direction:column; gap:2px; flex:1; min-width:0; } .dsd-oben { display:flex; justify-content:space-between; gap:10px; align-items:baseline; }
.dsd-oben b:first-child { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; min-width:0; } .dsd-betrag { white-space:nowrap; flex:none; font-size:13.5px; }
.dsd-text .klein-text { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.dok-za .za-offen { color:#b42318; font-weight:600; } .dok-za-hinweis { margin:0 26px 8px; font-weight:600; font-size:14px; }
.av-ziel { margin-left:auto; display:inline-flex; align-items:center; gap:4px; background:none; border:1px dashed #d4d4d4; color:#888; border-radius:999px; padding:3px 10px; font-size:12.5px; font-weight:500; white-space:nowrap; }
.av-ziel.an { border-style:solid; border-color:#e3e3e3; background:#fafafa; color:#222; } .av-ziel:hover { border-color:#bbb; }
.az-chips { display:inline-flex; gap:4px; flex-wrap:wrap; } .az-chip { display:inline-flex; align-items:center; gap:4px; font-size:12px; color:#333; } .az-chip + .az-chip::before { content:'·'; color:#aaa; margin-right:2px; }
.az-liste { display:flex; flex-direction:column; } .az-z { display:flex; align-items:center; gap:12px; padding:10px 6px; border-bottom:1px solid #f0f0f0; cursor:pointer; font-size:14.5px; } .az-z input { margin-left:auto; width:18px; height:18px; }
.az-ic { width:30px; height:30px; border-radius:8px; background:#f2f2f2; display:flex; align-items:center; justify-content:center; color:#333; }
dialog.mail-dialog { width:min(680px, 94vw); } .mail-fenster textarea { min-height:220px; } .mail-anhang { display:flex; align-items:center; gap:6px; margin:0; color:#555; font-size:13.5px; }
.mail-optionen { display:flex; flex-wrap:wrap; gap:8px 22px; } .mail-optionen input:disabled + span { opacity:.5; }
/* 6.70 Dokumente (Dom 27.10.2026): Liste wie plancraft – Nummer grün hinter dem Namen, Status, Bündel; Kürzen-Bilanz; E-Mail-Empfänger; Ablage */
.dok-titel { display:flex; align-items:center; gap:10px; flex-wrap:wrap; } .dok-titel b { font-size:15px; font-weight:600; color:#131313; }
.dok-nummer { display:inline-flex; align-items:center; border-radius:999px; padding:3px 11px; font-size:13.5px; font-weight:600; background:#e3f4e8; color:#1f6b3a; white-space:nowrap; }
.dok-nummer.entwurf { background:#ebeae7; color:#4a4844; border:none; border-radius:4px; }
/* Nummer bzw. „Entwurf“ als Spalte ganz vorne (Dom 2.11.2026) */
.dok-nr-spalte { flex:none; width:150px; display:flex; } .dok-nr-spalte .dok-nummer { max-width:100%; overflow:hidden; text-overflow:ellipsis; }
.dok-unter .dok-nr-spalte { width:122px; }
@media (max-width:700px) { .dok-nr-spalte { width:auto; } } .dok-nummer.storno { background:#f1f1f1; color:#888; text-decoration:line-through; }
.dok-a4 .dok-summen .dok-za { width:calc(100% - 52px); }
.dok-st { display:inline-flex; align-items:center; gap:4px; border-radius:999px; padding:5px 13px; font-size:14px; white-space:nowrap; background:#f1f1f1; color:#444; border:none; font-weight:500; }
.dok-st.offen { background:#e7f0ff; color:#1b5e8c; } .dok-st.bezahlt, .dok-st.angenommen { background:#e3f4e8; color:#1f6b3a; } .dok-st.ueberfaellig { background:#fff4cc; color:#8a6100; }
.dok-st.angemahnt, .dok-st.mahnung { background:#fdecec; color:#b42318; } .dok-st.storniert { background:#f1f1f1; color:#777; } .dok-st.abgelehnt { background:#fdecec; color:#b42318; } .dok-st.knopf { cursor:pointer; } .dok-st.knopf:hover { filter:brightness(.96); }
.dok-er { display:inline-flex; align-items:center; border-radius:999px; padding:2px 9px; font-size:12px; font-weight:500; background:#eef1f6; color:#3d4a5c; white-space:nowrap; } /* E-Rechnung (ZUGFeRD) */
.dok-typ { display:inline-flex; align-items:center; border-radius:999px; padding:5px 13px; font-size:14px; background:#3a3a3a; color:#fff; white-space:nowrap; }
.dok-zeile { gap:10px; } .dok-buendel { border-bottom:1px solid #e3e3e3; } .dok-buendel:last-child { border-bottom:none; } .dok-buendel .pa-zeile { border-bottom:none; }
.dok-zeile.dok-unter { padding-left:28px; background:#fafafa; } .dok-zeile.dok-unter .dok-titel b { font-weight:500; }
.kz-bilanz { width:100%; border-collapse:collapse; margin:16px 0 4px; font-size:14.5px; } .kz-bilanz th { text-align:left; padding:8px; } .kz-bilanz th.r, .kz-bilanz td.r { text-align:right; }
.kz-bilanz td { padding:6px 8px; } .kz-bilanz .kz-wert { display:inline-block; min-width:130px; background:#f2f2f2; border-radius:8px; padding:9px 12px; text-align:right; } .kz-bilanz input { width:150px; min-height:40px; }
.kz-bilanz .kz-brutto td { border-top:1px solid #e3e3e3; padding-top:10px; }
.mail-weitere { display:flex; flex-direction:column; gap:6px; margin-top:6px; } .mail-weitere .haken { font-weight:400; }
.ab-hoch-ebene { height:34px !important; min-height:34px; width:34px !important; } .ab-krume { height:34px; box-sizing:border-box; }
.ab-zeile[data-ordner] .ab-symbol svg, .ab-krume svg { color:#c62828; fill:#fde8e8; }
.dok-a4 .dok-texte + .dok-tabelle { margin-top:14px; }
.dok-pos.text .dok-pos-text { min-width:0; }

/* 6.74 Projekt-Chat (Dom 27.10.2026): Baustelle | Büro ganz oben ohne Titel, im Büro Alles · Chat · Verlauf klein rechts, Filter schwebt darunter */
.pa-chat { position:relative; }
.ch-reiter.ch-pkopf { padding:4px 0 0 !important; }
.ch-pkopf .ch-strom { margin:0 0 0 auto; } .ch-pkopf .ch-strom button { padding:3px 10px; font-size:12.5px; }
.ch-pkopf .ch-strom:not([hidden]) ~ .ch-filter { position:absolute; right:14px; top:56px; z-index:4; margin:0; background:rgba(255,255,255,.92); backdrop-filter:blur(6px); box-shadow:0 2px 10px rgba(0,0,0,.08); border-radius:18px; height:32px; padding:0 12px; }
.ch-pkopf .ch-filter { margin-bottom:0; }
a.ch-dokverweis { display:inline-flex; align-items:center; gap:5px; background:#f1f1f1; color:#222; padding:2px 8px; } a.ch-dokverweis:hover { background:#e8e8e8; }

/* Kalender (Dom 27.10.2026): Leiste oben mit Leiste ein/aus, Suche (klappt auf), Stift; Umschalter Termin | Aufgaben rechts im Seitenkopf
   wechselt nur den Bereich unter der Monatsübersicht; links offene Aufgaben zum Einplanen */
.ka.ohne-leiste .ka-links { display:none; } .ka.ohne-leiste .ka-haupt { padding-left:0; }
.ka-leistenkopf { display:flex; align-items:center; gap:4px; margin:0 0 12px; min-height:36px; }
.ka-leistenkopf .icon-knopf { width:36px; height:36px; min-height:36px; }
.ka-leistenkopf .ka-suche { flex:1; min-width:0; }
.ka-kopf .ka-leiste-knopf { display:none; } .ka.ohne-leiste .ka-kopf .ka-leiste-knopf { display:inline-flex; }
.ka-suche { display:inline-flex; align-items:center; gap:4px; height:36px; border:1px solid #999; border-radius:8px; padding:0 4px 0 10px; background:#fff; }
.ka-suche input { border:none; outline:none; padding:0; height:100%; width:100%; font-size:14px; background:none; min-width:0; }
.ka-umschalter { display:inline-flex; align-items:center; gap:2px; padding:3px; border:1px solid var(--linie); border-radius:20px; background:#fff; margin-left:8px; }
.ka-umschalter button { height:30px; min-width:30px; border:none; border-radius:15px; background:none; padding:0 12px; font-size:13.5px; display:inline-flex; align-items:center; justify-content:center; color:#333; cursor:pointer; }
.ka-umschalter button[data-modus="aufg"] { padding:0; width:30px; }
.ka-umschalter button.an { background:#111; color:#fff; }
.ka-auf-kopf { display:flex; align-items:baseline; justify-content:space-between; margin:6px 0 0; } .ka-auf-kopf b { font-size:15px; }
.ka-gruppe-kopf.rot { color:var(--rot); }
.ka-auf { display:flex; align-items:flex-start; gap:4px; padding:7px 8px; border-radius:8px; cursor:grab; font-size:13.5px; line-height:1.3; touch-action:pan-y; user-select:none; } .ka-auf:hover { background:#f4f4f4; }
.ka-auf .ka-haken { margin-top:3px; flex:none; color:#7a5af8; } .ka-auf-text { display:flex; flex-direction:column; min-width:0; } .ka-auf-text b { font-weight:500; overflow:hidden; text-overflow:ellipsis; } .ka-auf-text small { color:var(--grau); font-size:12px; }
.ka-auf.zieht { opacity:.45; }
.ka-zieh-schild { position:fixed; z-index:50; pointer-events:none; background:#fff; border:1px solid #ddd; box-shadow:0 4px 14px rgba(0,0,0,.12); border-radius:8px; padding:5px 10px; font-size:13px; max-width:240px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ka-haupt { min-width:0; } .ka-kopf { min-width:0; } .ka-kopf > * { flex:none; } .ka-kopf h1 { flex:0 1 auto; min-width:0; overflow:hidden; text-overflow:ellipsis; }
@media (max-width: 900px) { /* Handy: Leiste schwebt über dem Kalender; Kopf: Leiste, Heute, Pfeile, Tag/Woche/Monat, Umschalter – darunter der Titel */
  .ka.leiste-mobil .ka-links { display:flex; position:fixed; left:0; top:0; bottom:0; width:min(300px, 86vw); z-index:40; background:#fff; padding:16px; box-shadow:0 0 30px rgba(0,0,0,.18); overflow-y:auto; }
  .ka-kopf { flex-wrap:wrap; row-gap:8px; } .ka-kopf .ka-leiste-knopf { display:inline-flex; }
  .ka-kopf .kal-art { margin-left:auto; } .ka-kopf .kal-art button { padding:4px 10px; } .ka-kopf h1 { order:9; flex:1 1 100%; margin:0; }
  .ka-umschalter { margin-left:4px; }
}

/* 6.97 Logins (Dom 27.10.2026): Konten ohne Person einmal zuordnen */
.lg-zeile { display:flex; align-items:center; gap:10px; padding:10px 0; border-top:1px solid #f0f0f0; flex-wrap:wrap; } .lg-zeile select { width:auto; max-width:220px; }
.lg-name { display:flex; flex-direction:column; flex:1 1 220px; min-width:0; }
a.link-schwarz { color:#111; text-decoration:underline; text-underline-offset:2px; } a.link-schwarz:hover { color:#444; } /* keine roten Links (DESIGN.md) */

/* Interne Projekte (Dom 27.10.2026) */
.ip-balken { height:6px; border-radius:3px; background:#eee; overflow:hidden; margin-top:8px; } .ip-balken i { display:block; height:100%; background:#1f7a4d; border-radius:3px; }
.ip-ziel { font-size:16px !important; text-align:left; font-weight:600; }
.ip-notizen { padding:12px 4px; display:flex; flex-direction:column; gap:6px; } .ip-notiz-feld { min-height:240px; border:1px solid var(--linie); border-radius:10px; padding:12px 14px; font-size:15px; line-height:1.55; outline:none; }
.ip-notiz-feld:focus { border-color:#999; } .pb-art { margin-right:8px; }

/* Kalender Runde 3 (Dom 27.10.2026): Leiste oben Leiste | 📅 Termin · ☑️ Aufgaben | Stift, Suche rechts im Kopf, Aufgaben als 30-Minuten-Blöcke */
.ka-leistenkopf .ka-modus { flex:1; display:flex; justify-content:center; gap:2px; }
.ka-modus button { height:32px; border:1px solid var(--linie); background:#fff; padding:0 10px; font-size:13.5px; border-radius:16px; cursor:pointer; white-space:nowrap; color:#333; }
.ka-modus button.an { background:#111; border-color:#111; color:#fff; }
.ka-kopf .ka-suche { margin-left:8px; width:150px; border-color:var(--linie); color:var(--grau); } .ka-kopf .ka-suche:focus-within { border-color:#999; }
.ka-auf-neu { width:100%; box-sizing:border-box; height:36px; border:1px solid var(--linie); border-radius:8px; padding:0 10px; font-size:14px; margin:4px 0 8px; }
.ka-auf-neu:focus { border-color:#999; outline:none; }
.ka-unten .ka-auf { background:color-mix(in srgb, var(--f, #7a5af8) 16%, #fff); border-left:3px solid var(--f, #7a5af8); border-radius:6px; margin:4px 0; padding:5px 8px; }
.ka-unten .ka-auf:hover { background:color-mix(in srgb, var(--f, #7a5af8) 24%, #fff); } .ka-unten .ka-auf .ka-haken { color:var(--f, #7a5af8); }
.ka-geist.farbig { background:color-mix(in srgb, var(--f, #4285f4) 22%, #fff); border:2px solid var(--rot); color:#111; }
.ka-block-schild { background:color-mix(in srgb, var(--f) 22%, #fff); border:2px solid var(--rot); border-left-width:4px; box-shadow:0 6px 18px rgba(0,0,0,.14); font-size:12px; font-weight:600; padding:2px 7px; max-width:none; }
.ka-block.zieht, .ka-balken.zieht, .ka-chip.zieht { outline:2px solid var(--rot); outline-offset:-1px; }
.kk-wahl { margin-right:auto; } 
@media (max-width: 900px) { .ka-kopf .ka-suche { width:auto; flex:1 1 120px; margin-left:0; } }
.pl-kopf-rechts { display:flex; align-items:center; gap:16px; } .pl-intern { white-space:nowrap; }
.ip-ziel .pt-raute-ic { margin-right:6px; vertical-align:1px; }

/* Kalender Runde 4 (Dom 27.10.2026): Anlege-Fenster in der Form des Einsatz-Fensters, Termin-Karte mit Datum über der Uhrzeit, Raster rastet an Tagen ein */
dialog.ue-dialog.kn-dialog { padding:16px 20px 18px; } .kn-dialog .ue-form input:focus, .kn-dialog .ue-form textarea:focus { outline:none; }
.kn-dialog .ue-form textarea { border:none; padding:0; font-size:15px; font-weight:500; color:#111; background:none; resize:none; min-height:22px; outline:none; }
.kn-dialog .kn-optionen { display:flex; align-items:center; gap:14px; } .kn-dialog .ue-form .kn-optionen label { min-height:0; border:none; padding:0; background:none; font-size:14px; color:#111; box-shadow:none; }
.kn-dialog .kn-termin { display:flex; flex-direction:column; gap:10px; } .kn-dialog .kn-wann > label:first-child { flex:1.6; }
.kn-dialog .datumsfeld input[type=text] { border:none !important; padding:0 !important; font-size:15px; font-weight:600; background:none; box-shadow:none !important; height:auto; }
.ka-karte .kk-datum { display:flex; align-items:center; gap:6px; flex-wrap:wrap; } .ka-karte .kk-datum .datumsfeld { flex:1 1 150px; min-width:0; }
.ka-karte .kk-zeit { display:flex; align-items:center; gap:8px; margin-top:8px; } .ka-karte .kk-zeit .kk-uhr { width:84px; text-align:center; }
.ka-karte .kk-dauer { display:block; color:var(--grau); font-size:13px; margin:4px 0 0; } .ka-karte .kk-dauer:empty { display:none; }
.ka-scroll { scroll-snap-type:x mandatory; scroll-padding-left:56px; } .ka-spalte { scroll-snap-align:start; }
.ka-auf-kopf a { color:inherit; text-decoration:none; } .ka-auf-kopf a:hover { text-decoration:underline; }

/* Aufgaben „Heute“: kleines Dashboard rechts (Dom 27.10.2026) */
.auf-zwei { flex:1 1 auto; min-height:0; display:grid; grid-template-columns:minmax(0, 1fr) 260px; gap:18px; } .auf-zwei > .auf-scroll { min-height:0; overflow-y:auto; }
.auf-dash { align-self:start; border:1px solid var(--linie); border-radius:12px; background:#fff; padding:14px 16px; display:flex; flex-direction:column; gap:12px; }
.ad-kopf { display:flex; align-items:center; justify-content:space-between; gap:8px; } .ad-kopf select { width:auto; max-width:140px; }
.ad-kacheln { display:grid; grid-template-columns:repeat(3, 1fr); gap:6px; } .ad-kachel { border:1px solid #eee; border-radius:10px; padding:8px; text-align:center; display:flex; flex-direction:column; }
.ad-kachel b { font-size:22px; } .ad-kachel span { font-size:12px; color:var(--grau); } .ad-kachel.heute { border-color:#1f7a4d; } .ad-kachel.heute b { color:#1f7a4d; }
.ad-satz { font-size:13.5px; color:#333; }
.ad-woche { display:grid; grid-template-columns:repeat(7, 1fr); gap:4px; height:70px; align-items:end; } .ad-woche div { display:flex; flex-direction:column; align-items:center; justify-content:flex-end; height:100%; gap:3px; }
.ad-woche i { display:block; width:100%; max-width:18px; background:#cfe6d9; border-radius:3px 3px 0 0; min-height:2px; } .ad-woche div:last-child i { background:#1f7a4d; } .ad-woche span { font-size:10.5px; color:var(--grau); }
.ad-liste { font-size:13px; color:#555; display:flex; flex-direction:column; gap:3px; border-top:1px solid #f0f0f0; padding-top:8px; }
@media (max-width: 1000px) { .auf-zwei { grid-template-columns:1fr; } .auf-dash { display:none; } }
.sw-reiter { margin:10px 0 6px; gap:16px; flex-wrap:wrap; } .ges-bezug { white-space:nowrap; max-width:240px; overflow:hidden; text-overflow:ellipsis; }
.kn-dialog .kn-auf { margin-top:12px; } .kn-dialog .kn-auf .auf-eingabe { border:1px solid #e1e1e1; border-radius:12px; padding:8px 12px; } .kn-dialog .kn-auf .auf-eingabe:focus-within { border-color:#111; }
.kn-dialog .kn-auf .auf-vorschau { gap:8px; } .kn-dialog .kn-auf button.auf-chip { font-size:14px; padding:7px 10px 7px 12px; border-radius:8px; } .kn-dialog .kn-auf button.auf-chip .ic { width:13px; height:13px; }
.kn-dialog .kn-wdh { display:flex; flex-direction:column; gap:8px; } .kn-dialog .kn-wdh .dok-toggle { min-height:0; border:none; padding:0; background:none; font-size:14px; color:#111; }
.ad-mehr { justify-content:center; text-align:center; }
.pl-art { margin-left:14px; } .pl-art a { text-decoration:none; }
/* ⋮ → Verlauf als Fenster: derselbe Verlaufs-Baustein wie in jeder Akte (Dom 27.10.2026) */
dialog.vl-dialog { width:min(640px, 94vw); padding:0; } dialog.vl-dialog > .vl-block { margin:0; border:none; box-shadow:none; }
dialog.vl-dialog .vl-block-kopf { display:flex; align-items:center; justify-content:space-between; } .vl-dialog-unter { margin:-4px 0 10px; }
dialog.vl-dialog .vl-ev-liste { max-height:65vh; overflow:auto; }

/* Personalakte → Login: Benachrichtigungen (Dom 27.10.2026) */
.ma-bn { margin-top:16px; } .bn-raster { display:grid; grid-template-columns:repeat(auto-fill, minmax(240px, 1fr)); gap:14px 24px; }
.bn-gruppe { display:flex; flex-direction:column; gap:8px; } .bn-gruppe > b { font-size:13px; color:var(--grau); font-weight:600; }
.bn-gruppe .dok-toggle { font-size:14px; } .bn-uhr-r { display:flex; align-items:center; gap:8px; font-size:13px; color:var(--grau); margin:-2px 0 2px 44px; } .bn-uhr-r input { width:auto; }
/* Einstellungen übertragen (Dom 28.10.2026) */
.ub-spalten { display:grid; grid-template-columns:repeat(auto-fit, minmax(300px, 1fr)); gap:16px; max-width:980px; }
.ub-spalten .karte { display:flex; flex-direction:column; } .ub-spalten .karte .form-fuss { margin-top:auto; padding-top:12px; }
.ub-karte { max-width:980px; margin-top:16px; } .ub-karte > h2 .klein-text { font-weight:400; margin-left:6px; }
.ub-gruppe { border-top:1px solid var(--linie-tabelle, #eee); padding:4px 0; } .ub-gruppe.leer .ub-name { color:var(--grau); }
.ub-gruppe .mt-f-zeile { flex-wrap:wrap; } .ub-name { font-weight:500; min-width:260px; text-align:left; } .ub-zahlen { display:flex; gap:6px; align-items:center; flex-wrap:wrap; }
.ub-details { margin:0 0 6px 40px; } .ub-details summary { cursor:pointer; } .ub-details ul { margin:6px 0 0; padding:0; list-style:none; display:grid; gap:4px; font-size:14px; }

/* Rückmeldung nach dem Senden (Dom 28.10.2026) */
.versand-daten { display:grid; grid-template-columns:max-content 1fr; gap:6px 14px; margin:0; font-size:14px; } .versand-daten dt { color:var(--grau); } .versand-daten dd { margin:0; word-break:break-all; }
.versand-schritte { margin:6px 0 0; padding-left:20px; font-size:14px; line-height:1.6; }
.mail-fehler { margin:0; }
.dv-online { color:var(--gruen); font-size:12px; font-weight:500; max-width:250px; flex:none; line-height:1.35; text-align:right; text-decoration:none; }
.dv-online span { display:inline-flex; align-items:center; gap:4px; color:var(--schwarz); text-decoration:underline; } .dv-online:hover span { color:var(--rot); }
/* Rechtliches und Bank (Dom 28.10.2026): mehrere verantwortliche Personen und Konten, Bezahlcode */
.dok-vp { display:flex; flex-direction:column; gap:8px; } .dok-vp-zeile { display:grid; grid-template-columns:220px minmax(0, 1fr) auto; gap:10px; align-items:end; }
.dok-vp-neu { justify-self:start; color:var(--rot); font-weight:600; }
.dok-konten { display:flex; flex-direction:column; gap:10px; padding-left:34px; } .dok-konto { display:flex; flex-direction:column; gap:2px; font-size:14px; } .dok-konto span { color:var(--grau); }
.dok-konto-form { display:grid; grid-template-columns:auto 1fr 1fr 1.4fr 0.8fr auto; gap:10px; align-items:end; padding:8px 0; border-bottom:1px solid #f0f0f0; }
.dok-konto-std { display:flex; align-items:center; gap:6px; font-size:13px; padding-bottom:10px; white-space:nowrap; } .dok-konto-std input { width:auto; }
.dok-giro { margin:14px 0 0 34px; } .dok-giro-info { margin:6px 0 0 34px; max-width:620px; }
@media (max-width: 760px) { .dok-vp-zeile, .dok-konto-form { grid-template-columns:1fr; } }

/* Beta-Kennzeichen oben in der Seitenleiste (Dom 28.10.2026): ruhig, aber sofort zu sehen; eingeklappt bleibt die Marke unten */
.logo-text .beta-pille { align-self:flex-start; margin-top:2px; font-size:10px; font-weight:700; letter-spacing:.6px; text-transform:uppercase; color:#f59e0b; border:1px solid #f59e0b; border-radius:6px; padding:0 5px; line-height:1.5; }
body.beta-umgebung:not(.nav-zu) #beta-leiste.beta-marke { display:none; }
/* Aufgabe geöffnet nach der Vorlage „Aufgabe (neu, Mittelding)“ (Dom 28.10.2026) – Bausteine aus vorlagen.css (vl-fen-kopf, vl-aufg, vl-msg, vl-sys, vl-gfeld, vl-prio …) */
dialog.auf-detail.auf-vl { width:min(900px, 96vw); border-radius:16px; box-shadow:0 18px 50px rgba(0,0,0,.18); font-size:14px; color:#111; overflow:hidden; }
dialog.auf-vl .auf-detail-huelle { display:flex; flex-direction:column; max-height:calc(100vh - 3em); }
dialog.auf-vl .vl-fen-kopf { padding:14px 16px 10px; border-bottom:1px solid #eee; }
dialog.auf-vl .kx-ik { width:32px; height:32px; } dialog.auf-vl .kx-ik:disabled { opacity:.3; cursor:default; }
.auf-vl-bezug { flex:1; min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.auf-vl-bezug a { font-size:14px; font-weight:500; color:#555; text-decoration:none; } .auf-vl-bezug a:hover { color:#111; }
.auf-vl-bezug .link { font-size:13.5px; color:#8a8a8a; } .auf-vl-bezug .link:hover { color:#111; }
.auf-vl-knoepfe { display:flex; gap:6px; }
dialog.auf-vl .vl-aufg { flex:1; min-height:0; }
dialog.auf-vl .vl-aufg { grid-template-rows:minmax(0, 1fr); }
dialog.auf-vl .vl-aufg-links { padding:0; gap:0; overflow:hidden; min-height:0; display:flex; flex-direction:column; }
/* links scrollt nur der Inhalt; die Kommentarzeile steht fest unten (Dom 28.10.2026) */
.auf-vl-scroll { flex:1; min-height:0; overflow-y:auto; padding:16px 22px 12px; display:flex; flex-direction:column; gap:12px; }
dialog.auf-vl .vl-aufg-rechts { padding:16px 16px 16px; overflow-y:auto; }
/* Titel mit Erledigt-Kreis */
dialog.auf-vl .vl-aufg h3 { align-items:flex-start; }
dialog.auf-vl .vl-aufg h3 textarea { flex:1; border:none; padding:0; margin:0; min-height:0; resize:none; background:transparent; font:inherit; font-size:20px; font-weight:600; line-height:1.3; color:#111; }
dialog.auf-vl .vl-aufg h3 textarea:focus, .auf-vl-notiz:focus, .auf-vl-uneu input:focus { outline:none; }
dialog.auf-vl .vl-aufg h3 textarea.erledigt { text-decoration:line-through; color:#9a9a9a; }
dialog.auf-vl button.vl-kreis { padding:0; background:#fff; cursor:pointer; display:inline-flex; align-items:center; justify-content:center; color:#fff; }
dialog.auf-vl h3 .vl-kreis { margin-top:3px; } dialog.auf-vl button.vl-kreis:hover { border-color:#111; }
dialog.auf-vl .vl-kreis.fertig { background:#111; border-color:#111; } dialog.auf-vl .vl-kreis svg { width:12px; height:12px; }
.auf-vl-notiz { border:none; padding:0; margin:0; min-height:0; resize:none; background:transparent; font:inherit; color:#444; font-size:14px; line-height:1.5; }
/* Unteraufgaben */
dialog.auf-vl .vl-unter .auf-vl-utext { flex:1; min-width:0; }
dialog.auf-vl .vl-unter:hover .auf-weg, dialog.auf-vl .vl-unter:hover .auf-u-wer { opacity:1; }
dialog.auf-vl .vl-unter.fertig .auf-u-wer { text-decoration:none; }
.auf-vl-uneu input.vl-mehr { border:none; background:transparent; padding:8px 0 0; width:100%; font:inherit; font-size:13px; color:#111; }
.auf-vl-uneu input.vl-mehr::placeholder { color:#666; }
/* Kommentare und Verlauf als Strom */
.auf-vl-strom { display:flex; flex-direction:column; gap:10px; }
dialog.auf-vl .vl-msg img.vl-ev-av { object-fit:cover; padding:0; }
dialog.auf-vl .vl-blase p { margin:0; } dialog.auf-vl .vl-blase p + p { margin-top:6px; } dialog.auf-vl .vl-msg.ich .vl-blase a { color:#fff; }
.auf-vl-kmenue { border:none; background:none; padding:0 4px; color:#9a9a9a; cursor:pointer; opacity:0; font-size:13px; } .vl-msg:hover .auf-vl-kmenue { opacity:1; } .auf-vl-kmenue:hover { color:#111; }
.auf-vl-kedit { display:flex; flex-direction:column; gap:6px; min-width:280px; }
dialog.auf-vl .vl-kommentar { color:#111; }
dialog.auf-vl .vl-kommentar .ic { border:none; background:none; padding:0; cursor:pointer; } dialog.auf-vl .vl-kommentar .ic:hover { color:#111; }
.auf-vl-feld { flex:1; min-width:0; display:flex; flex-direction:column; }
.auf-vl-feld textarea { border:none; padding:5px 0; margin:0; min-height:29px; box-sizing:border-box; resize:none; background:transparent; font:inherit; font-size:13.5px; line-height:1.4; color:#111; max-height:160px; }
.auf-vl-feld textarea:focus { outline:none; } .auf-vl-feld textarea::placeholder { color:#9a9a9a; }
dialog.auf-vl .vl-kommentar:focus-within { border-color:#111; } dialog.auf-vl .vl-kommentar.ziehen { border-color:#111; background:#fafafa; }
dialog.auf-vl .vl-kommentar .auf-k-datei { font-size:12.5px; color:#555; display:flex; align-items:center; gap:4px; padding-bottom:4px; }
/* rechte Spalte: große Felder */
dialog.auf-vl button.vl-gfeld { width:100%; font:inherit; text-align:left; cursor:pointer; } dialog.auf-vl button.vl-gfeld:hover { border-color:#bbb; }
dialog.auf-vl button.vl-gfeld:disabled { cursor:default; opacity:.6; } dialog.auf-vl .vl-gfeld img.kx-av { width:32px; height:32px; object-fit:cover; }
dialog.auf-vl button.vl-dfeld { width:100%; font:inherit; text-align:left; cursor:pointer; } dialog.auf-vl button.vl-dfeld:hover { border-color:#bbb; }
.auf-vl-dauer { align-self:flex-start; font-size:12.5px; margin:-2px 0 0 2px; color:#8a8a8a !important; } .auf-vl-dauer:hover { color:#111 !important; }
dialog.auf-vl .vl-prio button { flex:1; text-align:center; border:1px solid #e1e1e1; border-radius:10px; padding:8px 0; font:inherit; font-size:13px; font-weight:600; background:#fff; color:#111; cursor:pointer; }
dialog.auf-vl .vl-prio button:hover { border-color:#bbb; } dialog.auf-vl .vl-prio button.an { border-color:#d93025; color:#d93025; box-shadow:0 0 0 1px #d93025 inset; }
.auf-vl-erstellt { margin-top:6px; line-height:1.5; }
dialog.auf-vl .auf-vl-feld .md-feld { border:none; box-shadow:none; background:transparent; padding:5px 0; min-height:0; max-height:160px; overflow-y:auto; font-size:13.5px; line-height:1.4; color:#111; }
dialog.auf-vl .auf-vl-feld .md-feld:focus { outline:none; box-shadow:none; }
dialog.auf-vl .auf-vl-feld .md-eingabe { --md-oben:5px; --md-links:0px; } dialog.auf-vl .md-eingabe.auf-vl-notiz { --md-oben:0px; --md-links:0px; border:none; padding:0; min-height:1.5em; background:transparent; color:#444; line-height:1.5; }

/* Fenster „Feedback melden“ (Dom 27.10.2026, Vorlage aus Doms Bild): weich, große Rundungen, Auswahlkarten, gestrichelte Bilder-Ablage */
dialog.fbm-dialog { width:min(640px, 94vw); border-radius:22px; padding:22px 24px 20px; }
.fbm-kopf { display:flex; align-items:center; gap:14px; margin:0 0 18px; }
.fbm-kopf > div { flex:1; min-width:0; } .fbm-zu { margin-left:auto; } .fbm-kopf h2 { margin:0; font-size:20px; } .fbm-kopf span { font-size:13px; color:var(--grau); }
.fbm-zu { flex:none; width:38px; height:38px; padding:0; border:none; border-radius:50%; background:var(--hell); color:#444; font-size:16px; line-height:38px; }
.fbm-zu:hover { background:#e9e9e9; }
.fbm { display:flex; flex-direction:column; gap:10px; }
.fbm-t { font-size:13px; font-weight:600; color:#444; margin-top:6px; }
.fbm-arten { display:grid; grid-template-columns:repeat(3, 1fr); gap:10px; }
.fbm-arten button { display:flex; flex-direction:column; align-items:flex-start; gap:3px; padding:14px 16px; border:1.5px solid var(--linie); border-radius:16px; background:#fff; text-align:left; font-weight:400; }
.fbm-arten button:hover { border-color:#c9c9c9; }
.fbm-arten button.an { border:2px solid var(--schwarz); padding:13.5px 15.5px; }
.fbm-arten .fbm-ic { font-size:22px; line-height:1; margin-bottom:4px; } .fbm-arten b { font-size:15px; } .fbm-arten span:last-child { font-size:12.5px; color:var(--grau); }
.fbm-feld { display:flex; flex-direction:column; gap:2px; border:1.5px solid var(--linie); border-radius:14px; padding:8px 14px; }
.fbm-feld > span { font-size:12px; color:var(--grau); }
dialog.fbm-dialog .fbm-feld .auswahl-knopf { border:none; border-radius:0; padding:2px 0; min-height:0; height:auto; width:100%; font-size:15px; background:transparent; box-shadow:none; }
dialog.fbm-dialog .fbm-feld select { border:none; border-radius:0; padding:2px 0; height:auto; font-size:15px; background-color:transparent; box-shadow:none; outline:none; }
.fbm input[name=titel], .fbm textarea { border:1.5px solid var(--linie); border-radius:14px; padding:11px 14px; font-size:15px; }
dialog.fbm-dialog .fbm textarea { min-height:130px; resize:vertical; }
.fbm-ablage { border:1.5px dashed #c9c9c9; border-radius:16px; padding:18px; text-align:center; color:var(--grau); font-size:13.5px; cursor:pointer; background:var(--flaeche); }
.fbm-ablage:hover, .fbm-ablage.drueber { border-color:#999; color:#333; }
.fbm-fuss { display:flex; justify-content:flex-end; gap:10px; margin-top:8px; }
.fbm-fuss button { min-width:120px; padding:11px 18px; border-radius:12px; }
@media (max-width:760px) { dialog.fbm-dialog.handy-voll { border-radius:0; } .fbm-arten { gap:8px; } .fbm-arten button { padding:12px; } .fbm-arten span:last-child { font-size:11.5px; } }

/* Rollen & Rechte als Matrix (Dom 27.10.2026): Rollen oben, Rechte links, je Zelle 💻 Web und 📱 Mobil; erste Spalte und Kopf bleiben stehen */
.rm-wrap { width:fit-content; max-width:100%; overflow:auto; max-height:calc(100vh - 160px); border:1px solid var(--linie); border-radius:12px; background:#fff; }
.rm { border-collapse:separate; border-spacing:0; width:max-content; table-layout:fixed; }
.rm th, .rm td { border-bottom:1px solid #f0f0f0; padding:8px 10px; background:#fff; }
.rm thead th { position:sticky; top:0; z-index:2; vertical-align:bottom; border-bottom:1px solid var(--linie); text-transform:none; letter-spacing:0; }
.rm .rm-erste { position:sticky; left:0; z-index:1; width:270px; min-width:270px; max-width:270px; text-align:left; border-right:1px solid var(--linie); }
.rm thead .rm-erste { z-index:3; }
.rm td.rm-erste b { display:block; font-size:13.5px; } .rm td.rm-erste span { display:block; font-size:11.5px; color:var(--grau); line-height:1.35; margin-top:1px; }
.rm-rolle { width:148px; min-width:148px; max-width:148px; text-align:center; font-weight:400; } /* feste Breite: viele Rollen = seitlich scrollen statt quetschen */
.rm-rolle b { overflow:hidden; text-overflow:ellipsis; max-width:116px; display:inline-block; vertical-align:middle; }
.rm td.rm-zelle { width:148px; min-width:148px; max-width:148px; }
.rm-rolle > div { display:flex; align-items:center; justify-content:center; gap:2px; } .rm-rolle b { font-size:12.5px; white-space:nowrap; }
.rm-rolle .icon-knopf { width:20px; min-width:20px; height:24px; padding:0; border-color:transparent; background:none; color:var(--grau); }
.rm-lizenz { display:inline-block; margin:3px 0 1px; padding:1px 8px; border-radius:20px; font-size:11px; font-weight:600; background:#eef3fb; color:#1f4f99; }
.rm-lizenz.mobil { background:#fff2e0; color:#9a5b00; }
.rm-rolle .klein-text { display:block; font-size:11px; }
.rm-gruppe td { background:var(--hell); font-size:11px; text-transform:uppercase; letter-spacing:.8px; color:var(--grau); padding-top:12px; }
.rm-zelle { text-align:center; } .rm-zelle > div { display:inline-flex; flex-direction:column; gap:4px; }
.rm-box { display:inline-flex; align-items:center; justify-content:center; width:30px; height:26px; padding:0; border:none; border-radius:6px; background:none; color:#a8acaf; cursor:pointer; } /* aus: nur Umriss */
.rm-box svg { fill:none; stroke:currentColor; }
.rm-box.an { color:var(--rot); } .rm-box.an svg rect { fill:currentColor; } .rm-box.an svg path { stroke:currentColor; } /* an: Symbol gefüllt */
.rm-box.an svg rect + path[d^="M11"] { stroke:#fff; } /* Knopf des Handys bleibt sichtbar */
.rm-box:not(.leer):hover { background:var(--hell); color:#555; } .rm-box.an:not(:disabled):hover { color:var(--rot-dunkel); }
.rm-box:disabled { cursor:not-allowed; } .rm-box.an:disabled { color:#6b6b6b; }
.rm-box.leer { color:#b8bdc0; font-size:13px; cursor:default; }
.rm-legende { display:flex; gap:8px; flex-wrap:wrap; margin:0 0 10px; } /* Legende als eigene Leiste über der Tabelle (Dom 27.10.2026) */
.rm-leg-box { display:flex; align-items:center; gap:10px; padding:6px 10px; border:1px solid var(--linie); border-radius:10px; background:#fff; font-size:13px; color:#333; }
.rm-leg-box > b { font-size:11px; text-transform:uppercase; letter-spacing:.6px; color:var(--grau); margin-right:2px; }
.rm-leg-box > span { display:inline-flex; align-items:center; gap:5px; } .rm-leg-box .rm-box { cursor:default; width:22px; height:20px; } .rm-leg-box .rm-box.wo { color:#444; }
.rm-griff { display:inline-flex; color:#b0b4b7; cursor:grab; margin-right:2px; }
.rm-griff-zeile { display:flex; justify-content:center; height:14px; margin:-4px 0 2px; } .rm-griff-zeile .rm-griff { padding:0 8px; border-radius:6px; } .rm-griff-zeile .rm-griff:hover { background:var(--hell); } .rm-griff svg circle { fill:currentColor; stroke:none; } .rm-griff:hover { color:#555; }
.rm th.zieht { opacity:.5; } .rm th.davor { box-shadow:inset 3px 0 0 var(--rot); } .rm th.danach { box-shadow:inset -3px 0 0 var(--rot); }

/* Mitarbeiter auswählen als Checkliste (Dom 27.10.2026): Suche, Alle/Keine, Liste bleibt offen, ein Speichern */
dialog.mw-dialog { width:min(480px, 94vw); }
.mw-leiste { display:flex; gap:8px; align-items:center; margin:4px 0 10px; } .mw-leiste input { flex:1; min-width:0; }
.mw-liste { max-height:min(52vh, 460px); overflow:auto; border:1px solid var(--linie); border-radius:10px; }
.mw-zeile { display:flex; align-items:center; gap:10px; height:42px; padding:0 12px; border-bottom:1px solid #f2f2f2; cursor:pointer; }
.mw-zeile:last-child { border-bottom:none; } .mw-zeile:hover { background:var(--flaeche); }
.mw-zeile input { width:18px; height:18px; margin:0; accent-color:var(--rot); flex:none; }
.mw-name { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; } .mw-zeile .klein-text { flex:none; }
.mw-zeile.fest { cursor:default; } .mw-zeile.fest .mw-name { color:var(--grau); }
/* Runde 2 (Dom 28.10.2026): Bezug oben als Knopf mit Auswahl, Kommentarzeile fest unten und höher, Unteraufgaben mit Datum und Person, Pfeil zum Anlegen */
.auf-vl-bezugknopf { border:none; background:none; padding:0; margin:0; max-width:100%; font:inherit; font-size:14px; font-weight:500; color:#555; cursor:pointer; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; text-align:left; }
.auf-vl-bezugknopf:hover { color:#111; text-decoration:underline; text-underline-offset:3px; }
dialog.auf-vl .vl-aufg-links > .vl-kommentar { flex:none; margin:0 22px 16px; padding:6px 6px 6px 12px; align-items:flex-end; box-shadow:0 -10px 14px -12px rgba(0,0,0,.12); background:#fff; }
dialog.auf-vl .vl-aufg-links > .vl-kommentar .ic { padding:0 0 9px; }
dialog.auf-vl .auf-vl-feld .md-feld { min-height:44px; padding:6px 0; }
dialog.auf-vl .vl-kommentar button.primaer { height:32px; }
.auf-u-tag { border:none; background:none; color:#aaa; padding:2px 6px; border-radius:12px; font-size:12px; font-weight:500; cursor:pointer; opacity:0; display:inline-flex; align-items:center; white-space:nowrap; }
.auf-u-tag.an { opacity:1; color:#555; background:#f2f2f2; } .auf-u-tag.alt { color:#d93025; background:#fdecea; } .auf-u-tag:hover { background:#e9e9e9; color:#111; }
dialog.auf-vl .vl-unter:hover .auf-u-tag, .auf-u-tag.an-sichtbar, .auf-u-wer.an-sichtbar { opacity:1; }
dialog.auf-vl .vl-unter.fertig .auf-u-tag { text-decoration:none; }
.auf-vl-uneu { display:flex; align-items:center; gap:4px; padding-top:4px; } .auf-vl-uneu input.vl-mehr { flex:1; min-width:0; padding:6px 0; }
.auf-vl-pfeil { flex:none; width:28px; height:28px; padding:0; border:none; border-radius:8px; background:#111; color:#fff; display:inline-flex; align-items:center; justify-content:center; cursor:pointer; }
.auf-vl-pfeil:hover { background:#333; }
/* Bonus-Regeln mit Schalter (Dom 28.10.2026): eingeschaltete oben, „Ausgeschaltet“ darunter – nicht grau, nur getrennt */
.bo-regel.mit-schalter { grid-template-columns:44px 1fr auto auto; }
.bo-regel.mit-schalter .bn-schalter { width:40px; height:23px; } .bo-regel.mit-schalter .bn-schalter span { width:17px; height:17px; } .bo-regel.mit-schalter .bn-schalter.an span { left:20px; }
.bo-aus-titel { font-size:14px; font-weight:600; margin:18px 0 4px; display:flex; gap:8px; align-items:baseline; flex-wrap:wrap; }
.rm-legende { display:flex; align-items:center; gap:6px; flex-wrap:wrap; margin:0 0 12px; } .rm-legende .rm-box { cursor:default; margin-left:6px; }
/* Lohngruppe: Zuschlag je Gruppe mit Komma, Zielsatz rechnet ihn aus (8.07) */
.lg-zu, .lg-ziel { display:flex; align-items:center; gap:10px; min-width:0; } .lg-ziel .klein-text { margin:0; }
.lg-proz { display:inline-flex; align-items:center; gap:6px; margin-left:auto; } .lg-proz input { width:110px; }
/* Entwickler-Seite (8.09): Kacheln je Bereich, darunter Sicherung/Abgleich und Fehler nebeneinander */
.ew-reiter { margin-bottom:14px; } .ew-titel { font-size:13px; font-weight:600; color:var(--grau, #6b6b6b); margin:4px 0 10px; }
.ew-spalten { display:grid; grid-template-columns:repeat(auto-fit, minmax(320px, 1fr)); gap:16px; align-items:start; }
.ew-log { display:flex; flex-direction:column; max-height:360px; overflow:auto; } .ew-log > div { display:grid; grid-template-columns:130px 1fr; gap:10px; padding:8px 0; border-top:1px solid var(--linie, #e5e5e5); font-size:13px; } .ew-log > div:first-child { border-top:none; }
#ew-inhalt .kachel .zahl { overflow-wrap:anywhere; }
#ew-inhalt .kacheln.klein { grid-template-columns:repeat(auto-fit, minmax(140px, 1fr)); }
.fb-leiste { margin:0 0 12px; gap:8px; } .ew-reiter .fb-leiste { margin:0 0 0 auto; padding-bottom:6px; } .ew-reiter .fb-leiste .rechts { display:none; }
.ew-reiter { flex-wrap:wrap; } @media (max-width:700px) { .ew-reiter .fb-leiste { width:100%; margin:6px 0 4px; padding:0; display:flex; flex-direction:row; flex-wrap:nowrap; align-items:center; } .ew-reiter .fb-leiste select { flex:1; min-width:0; } } #ew-inhalt .fb-board { max-height:calc(100vh - 210px); overflow:auto; }
/* Feedback-Symbol: Zahl neuer Meldungen im roten Punkt (Dom 27.10.2026) */
#feedbackknopf b { top:-2px; right:-4px; min-width:16px; height:16px; padding:0 4px; font-size:10px; font-weight:700; line-height:16px; color:#fff; text-align:center; border-radius:8px; box-sizing:border-box; }

/* Ticket-Karten der Pipeline (Dom 27.10.2026): Art als Symbol + Marke, fetter Titel, 2 Zeilen Text, Vorschaubild, unten Von · Datum · Bereich und Version */
.fb-karte { padding:10px 12px; border-radius:10px; }
.fb-k-kopf { display:flex; align-items:center; gap:6px; } .fb-k-kopf .fb-k-ic { color:var(--grau); display:inline-flex; } .fb-k-kopf .fb-k-ic:first-of-type { margin-left:auto; }
.fb-karte .fb-art, .fb-t-kopf .fb-art { display:inline-flex; align-items:center; gap:4px; }
.fb-karte b.fb-k-titel { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; font-weight:700; font-size:14px; line-height:1.3; margin-top:7px; }
.fb-k-text { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; font-size:12.5px; line-height:1.4; color:#555; margin-top:3px; }
.fb-karte img { max-height:96px; border-radius:7px; margin-top:8px; }
.fb-k-fuss { display:flex; align-items:center; gap:6px; margin-top:8px; font-size:11.5px; color:var(--grau); }
.fb-k-fuss > span:first-child { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; } .fb-k-fuss .marke { flex:none; font-size:11px; }
.fb-t-kopf { margin:0 0 4px; gap:6px; } .fb-t-bearb { background:var(--flaeche); border:1px solid var(--linie); border-radius:12px; padding:14px; }
/* Einstellungen → Dateinamen (8.15): Elemente als Chips, ziehen zum Umsortieren, Liste mit Haken unter dem Feld */
.dn-feld { position:relative; }
.dn-chips { display:flex; flex-wrap:wrap; gap:6px; align-items:center; min-height:58px; padding:10px 12px; border:1px solid #e1e1e1; border-radius:12px; background:#fff; cursor:pointer; margin-top:6px; }
.dn-chips:focus, .dn-chips:hover { border-color:#111; }
.dn-chip { display:inline-flex; align-items:center; gap:6px; background:#f0f0f0; border:1px solid #e3e3e3; border-radius:16px; padding:4px 6px 4px 12px; font-size:14px; font-weight:500; cursor:grab; }
.dn-chip.drueber { border-color:#111; } .dn-chip button { background:none; border:none; padding:2px 6px; cursor:pointer; color:#6b6b6b; font-size:12px; }
.dn-chip.klein { padding:3px 10px; font-size:13px; cursor:pointer; } .dn-chip.klein .klein-text { margin-left:2px; }
.dn-plus { margin-left:auto; color:#a8a8a8; display:inline-flex; align-items:center; gap:6px; font-size:14px; }
.dn-liste { margin-top:6px; background:#fff; border:1px solid #e1e1e1; border-radius:14px; box-shadow:0 10px 30px rgba(0,0,0,.12); padding:8px; display:flex; flex-direction:column; }
.dn-liste label.haken { padding:8px 10px; border-radius:8px; display:flex !important; flex-direction:row !important; gap:10px; align-items:center; font-size:15px; } .dn-liste label.haken:hover { background:#f5f5f5; } .dn-liste input { width:auto; margin:0; }
.dn-trenner { margin-top:6px; } 
.dn-vorschau { background:#f5f5f5; border-radius:10px; padding:12px 14px; display:flex; flex-direction:column; gap:4px; } .dn-vorschau b { word-break:break-all; }
/* E-Mail-Versand: Konten und Vorlagen (8.15) */
.mv-titel { font-size:15px; font-weight:600; margin:0 0 10px; }
.mv-konto { display:flex; align-items:center; gap:12px; padding:10px 0; } .mv-konto > div { flex:1; min-width:0; } .mv-konto .avatar-kreis { background:#f0f0f0; color:#111; }
.mv-gruppe { font-size:12px; letter-spacing:.04em; text-transform:uppercase; color:#777; margin:16px 0 6px; }
.mv-vorlage { border:1px solid #e5e5e5; border-radius:10px; margin-bottom:8px; background:#fff; }
.mv-kopf { width:100%; display:flex; align-items:center; gap:10px; background:none; border:none; padding:12px 14px; text-align:left; cursor:pointer; font:inherit; }
.mv-kopf .mv-betreff { margin-left:auto; max-width:50%; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; } .mv-pfeil { transform:rotate(-90deg); transition:transform .15s; display:inline-flex; } .mv-vorlage.offen .mv-pfeil { transform:none; }
.mv-form { padding:0 14px 14px; } .mv-platz { display:flex; flex-wrap:wrap; gap:6px; }
.mv-vorschau { background:#f5f5f5; border-radius:10px; padding:12px 14px; } .mv-vorschau pre { white-space:pre-wrap; font:inherit; font-size:14px; margin:6px 0 0; }
.dn-form.dok-einst-form, .mv-form.dok-einst-form { padding-left:14px; } .dn-form.dok-einst-form { padding:0; }

/* Einstellungen → Seitenleiste (Dom 27.10.2026): Punkte und Gruppen ziehen, ein- und ausblenden */
.sl-hinweis { max-width:760px; margin:-4px 0 14px; }
.sl-liste { max-width:620px; display:flex; flex-direction:column; gap:6px; }
.sl-zeile { display:flex; align-items:center; gap:10px; height:42px; padding:0 8px 0 4px; border:1px solid var(--linie); border-radius:10px; background:#fff; }
.sl-zeile.aus .sl-name, .sl-zeile.aus .sl-ic, .sl-gruppe.aus .sl-gkopf input { opacity:.4; text-decoration:line-through; }
.sl-griff { display:inline-flex; color:#b0b4b7; cursor:grab; padding:4px; } .sl-griff svg circle { fill:currentColor; }
.sl-ic { display:inline-flex; color:#555; } .sl-ic svg { width:18px; height:18px; } .sl-name { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:14px; }
.sl-auge { color:#555; margin-left:auto; }
.sl-gruppe { border:1px solid var(--linie); border-radius:12px; background:var(--flaeche); padding:6px; }
.sl-gkopf { display:flex; align-items:center; gap:8px; padding:2px 2px 6px; } .sl-gkopf input { flex:1; min-width:0; font-weight:600; } .sl-gkopf select { width:auto; }
.sl-innen { display:flex; flex-direction:column; gap:5px; padding-left:22px; min-height:34px; border-radius:8px; }
.sl-zwischen input { flex:1; border:none; background:transparent; font-size:11.5px; text-transform:uppercase; letter-spacing:.6px; color:var(--grau); }
.sl-leer, .sl-ende { padding:9px 12px; border:1.5px dashed #d6d9db; border-radius:10px; color:var(--grau); font-size:12.5px; text-align:center; }
.sl-ende { margin-top:4px; }
.sl-liste .zieht { opacity:.4; } .sl-liste .davor { box-shadow:0 -3px 0 var(--rot); } .sl-liste .danach { box-shadow:0 3px 0 var(--rot); } .sl-liste .hinein { outline:2px dashed var(--rot); outline-offset:2px; }
body:not(.beta) aside .nur-beta-a { display:none !important; } /* Beta-Umgebung ohne Recht „Beta“ */
.nav-abschnitt.ohne-recht { display:none; }
.nav-abschnitt { padding-bottom:6px; margin-bottom:6px; border-bottom:1px solid #2a2a2a; } /* Überschrift-Gruppe endet sichtbar */

/* Rückfall der PDF-Anzeige: Meldung + „PDF öffnen“ (eingebauter Betrachter) */
.pdf-rueckfall { padding: 28px 18px; text-align: center; line-height: 1.45; }
.pdf-rueckfall .pdf-fehlertext { font-size: 12px; opacity: .7; word-break: break-word; }
.pdf-oeffnen { display: inline-block; border-radius: 8px; padding: 10px 18px; background: #E40000; color: #fff !important; font-weight: 600; text-decoration: none; }
/* Urlaubsplaner = Plantafel ohne Projekte (Dom 28.10.2026): Übersicht oben, Gruppen ziehbar, Balken aus der Zeiterfassung nur zum Ansehen */
.up-legende { margin-left:auto; } .up-muster { display:inline-block; width:22px; height:12px; border-radius:3px; background:#ececec; vertical-align:middle; }
.up-muster.beantragt { background:repeating-linear-gradient(135deg, #f4f4f4 0 4px, #e9e9e9 4px 8px); border:1.5px dashed #9a9a9a; }
main.pt-seite .kopf .pt-knoepfe { margin-left:12px; }
.up-uebersicht { margin:0 0 10px; } .up-ueber-kopf { display:inline-flex; align-items:center; gap:6px; background:none; border:0; padding:2px 0; cursor:pointer; font:inherit; color:inherit; }
.up-ueber-kopf .klein-text { font-weight:400; }
.up-leute { display:flex; gap:8px; overflow-x:auto; padding:6px 0 4px; scrollbar-width:thin; }
.up-person { flex:none; display:flex; flex-direction:column; gap:1px; min-width:118px; padding:6px 10px; border:1px solid var(--linie, #e3e3e3); border-radius:8px; background:var(--karte, #fff); font-size:12px; }
.up-person .up-name { font-weight:600; font-size:13px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:150px; }
.up-zahl { color:var(--grau); white-space:nowrap; } .up-zahl b { color:var(--text, #222); font-variant-numeric:tabular-nums; } .up-zahl.rot-text b { color:var(--rot, #c00); }
.pt-gruppe [data-gzieh] { cursor:grab; }
.pt-gruppe [data-gzieh] { user-select:none; }
/* Unteraufgaben (Dom 28.10.2026): Person immer als Avatar, Titel öffnet die Unteraufgabe im selben Fenster; ein gemeinsamer Kommentar-Strom mit „zu:“ */
dialog.auf-vl .vl-unter .auf-vl-utext { border:0; background:none; padding:0; font:inherit; color:inherit; text-align:left; cursor:pointer; display:flex; align-items:center; gap:8px; }
dialog.auf-vl .vl-unter .auf-vl-utext:hover { color:var(--rot); } dialog.auf-vl .vl-unter.fertig .auf-vl-utext { text-decoration:line-through; color:#9a9a9a; }
.auf-u-komm { display:inline-flex; align-items:center; gap:3px; font-size:11.5px; color:#8a8a8a; text-decoration:none; }
.auf-u-wer.auf-u-av { padding:0; background:none !important; } .auf-u-wer.auf-u-av .vl-ev-av { width:22px; height:22px; font-size:11px; margin:0; }
.auf-vl-wurzel { display:block; margin:0 0 8px; font-size:13px; color:var(--grau); text-align:left; } .auf-vl-wurzel:hover { color:var(--rot); }
.auf-vl-filter { float:right; display:inline-flex; gap:2px; font-weight:400; } .auf-vl-filter button { border:0; background:none; font:inherit; font-size:12px; color:#8a8a8a; padding:1px 7px; border-radius:10px; cursor:pointer; }
.auf-vl-filter button.an { background:#f0f0f0; color:#222; }
.auf-k-zu { border:0; background:#f2f2f2; color:#666; font:inherit; font-size:11px; padding:0 6px; border-radius:8px; cursor:pointer; margin-left:4px; max-width:220px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; vertical-align:middle; }
.auf-k-zu:hover { background:#e6e6e6; color:#111; } .auf-k-zu.hier { cursor:default; }
/* Hauptaufgabe nur über die eigene Unteraufgabe: nur ansehen und kommentieren (Dom 28.10.2026) */
.auf-vl-nurlesen { display:flex; align-items:center; gap:6px; margin:0 0 8px; padding:6px 10px; border-radius:8px; background:#f5f5f5; color:#666; font-size:12.5px; }
.auf-detail-huelle.nur-lesen button:disabled { cursor:default; opacity:.6; } .auf-detail-huelle.nur-lesen .vl-gfeld:disabled svg, .auf-detail-huelle.nur-lesen .vl-dfeld:disabled svg { display:none; }
.auf-detail-huelle.nur-lesen textarea[readonly] { cursor:default; }
.auf-detail-huelle.nur-lesen [data-uweg]:disabled, .auf-detail-huelle.nur-lesen [data-ziel], .auf-detail-huelle.nur-lesen .auf-u-tag:disabled:not(.an), .auf-detail-huelle.nur-lesen .auf-u-wer:disabled:not(.auf-u-av) { display:none; }

/* ---------- Lager als eine Seite (Dom 28.10.2026, public/lager.js) ---------- */
.lg-kopf { margin-bottom:6px; }
.lg-reiter { margin-bottom:10px; }
.lg-kacheln { display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:10px; margin-bottom:12px; }
.lg-kachel { display:grid; grid-template-columns:auto 1fr; column-gap:12px; align-items:center; padding:10px 14px; background:#fff; border:1px solid var(--linie); border-radius:10px; color:var(--schwarz); text-decoration:none !important; }
.lg-kachel b { grid-row:1 / 3; font-size:24px; font-weight:700; min-width:36px; } .lg-kachel b.gelb { color:#b46a00; } .lg-kachel b.rot { color:var(--ampelrot); }
.lg-kachel span { font-size:13px; color:#555; } .lg-kachel small { grid-column:2; font-size:12.5px; color:#8a8a8a; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.lg-kachel:hover { border-color:#cfcfcf; } .lg-kachel.an { border-color:var(--schwarz); }
main.feste-seite .lg-seite { display:grid; grid-template-columns:minmax(0, 1fr) 360px; gap:14px; flex:1; min-height:0; }
.lg-links { display:flex; flex-direction:column; gap:10px; min-width:0; min-height:0; flex:1; }
main.feste-seite .lg-tabelle { flex:1; min-height:0; display:flex; flex-direction:column; } main.feste-seite .lg-tabelle .tabelle-scroll { flex:1; min-height:0; overflow:auto; }
.lg-tabelle .filter, .lg-links > form { margin:0; }
.lg-bestand { font-size:16px; } .lg-bestand.knapp { color:#b46a00; } .lg-bestand.leer { color:var(--ampelrot); }
.lg-knoepfe { white-space:nowrap; text-align:right; width:120px; } .lg-knoepfe .icon-knopf.klein { width:30px; height:30px; margin-left:4px; }
.lg-verlauf { min-height:0; overflow:auto; margin:0; }
.lg-inv-leiste { display:flex; align-items:center; gap:12px; } .lg-inv-leiste > form { flex:1; margin:0; }
.lg-gezaehlt { width:90px; text-align:right; }
dialog.lg-buchen { width:600px; padding:18px 22px 20px; } .lg-buchen .lg-art { width:max-content; margin:6px 0 4px; } .lg-buchen .lg-art button { padding:8px 22px; }
.lg-was { gap:12px; } .lg-was .bild-mini, .lg-was .platz { width:40px; height:40px; flex:none; }
.lg-menge { display:flex; align-items:stretch; border:1px solid #e1e1e1; border-radius:10px; overflow:hidden; height:46px; }
.lg-menge button { width:46px; border:none; border-radius:0; background:#f6f6f6; font-size:20px; padding:0; } .lg-menge input { border:none !important; text-align:center; font-size:17px; font-weight:600; min-width:0; }
.lg-chips { display:flex; flex-wrap:wrap; gap:8px; } .lg-chips button { height:36px; padding:0 14px; border:1px solid #e1e1e1; border-radius:18px; background:#fff; font-weight:500; }
.lg-chips button.an { background:var(--schwarz); color:#fff; border-color:var(--schwarz); }
@media (max-width:900px) { main.feste-seite .lg-seite { grid-template-columns:1fr; } .lg-verlauf { display:none; } .lg-kacheln { grid-template-columns:repeat(2, minmax(0, 1fr)); } }

/* ---------- Stammdaten (Dom 28.10.2026): Ordnerbaum, Filter-Chips, Suche findet Ordner ---------- */
.sd-reiter.kx-reiter { margin-bottom:12px; border-bottom:1px solid #e6e6e6; }
.sd-seite { grid-template-columns:260px minmax(0, 1fr); }
.sd-suche { display:flex; align-items:center; gap:8px; height:38px; min-width:300px; padding:0 12px; border:1px solid #d9d9d9; border-radius:9px; background:#fff; color:#8a8a8a; }
.sd-suche input { border:none !important; outline:none; padding:0; flex:1; min-width:0; font-size:14px; background:none; box-shadow:none !important; } .sd-suche:focus-within { border-color:var(--schwarz); }
a.sd-ordner { color:inherit; text-decoration:none !important; }
.sd-ordner { padding:8px 8px; } .sd-ordner .sd-auf { flex:none; width:18px; } .sd-ordner .sd-o-ic { flex:none; }
.sd-ordner .klein-text { margin-left:auto; } .sd-ordner .icon-knopf { flex:none; }
.sd-ordner-kopf:has(.sd-ordner-knoepfe) { flex-wrap:wrap; row-gap:6px; } .sd-ordner-knoepfe { display:flex; justify-content:space-between; gap:12px; text-transform:none; letter-spacing:0; flex-basis:100%; } .sd-ordner-knoepfe .link { font-size:12.5px; color:#555; display:inline-flex; align-items:center; gap:3px; }
.sd-neu-ordner { color:var(--schwarz) !important; font-weight:600; }
.sd-filter { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.sd-chip { display:inline-flex; align-items:center; gap:6px; height:36px; padding:0 12px; border:1px solid #cfcfcf; border-radius:8px; background:#fff; color:#111; font:inherit; font-size:14px; font-weight:500; cursor:pointer; }
.sd-chip:hover { border-color:#999; } .sd-chip.an { border-color:var(--schwarz); box-shadow:0 0 0 1px var(--schwarz) inset; }
.sd-von { cursor:default; color:#555; } .sd-von input { width:62px; height:26px; padding:0 6px; border:none !important; border-radius:6px; background:#f3f3f3; text-align:right; font-size:14px; color:#111; box-shadow:none !important; }
.sd-gruppiert { margin-left:auto; }
.sd-treffer { display:flex; flex-wrap:wrap; align-items:center; gap:8px; } .sd-treffer:empty { display:none; } .sd-treffer > .klein-text { margin-right:2px; }
.sd-o-treffer { display:inline-flex; align-items:center; gap:8px; height:34px; padding:0 12px; border:1px solid #e1e1e1; border-radius:8px; background:#fff; font-weight:500; font-size:14px; }
.sd-o-treffer svg { color:#8a8a8a; } .sd-o-treffer small { color:#8a8a8a; font-weight:400; } .sd-o-treffer:hover { border-color:#999; }
.sd-tabelle { display:flex; flex-direction:column; } .sd-tabelle > .tabelle { flex:1; min-height:0; overflow:auto; } .sd-fuss { padding:10px 14px; border-top:1px solid #eee; font-size:13px; color:#8a8a8a; }
.sd-bild-zelle { width:52px; } .sd-bild { width:40px; height:40px; border-radius:8px; object-fit:cover; border:1px solid #eee; display:inline-flex; align-items:center; justify-content:center; background:#f6f6f6; color:#bbb; vertical-align:middle; cursor:zoom-in; } .sd-bild.ohne { cursor:default; }
.sd-preis { display:inline-flex; align-items:center; height:24px; padding:0 9px; border-radius:7px; font-size:12.5px; background:#eef6f0; color:#1f6b35; white-space:nowrap; }
.sd-preis.alt { background:#fff4e0; color:#8a5a00; } .sd-preis.sehr { background:#fdecec; color:#b42323; }
.sd-tabelle tr.sd-gruppe td { background:#fafafa; font-weight:600; font-size:13px; padding:8px 14px; } .sd-tabelle tr.sd-gruppe svg { color:#8a8a8a; vertical-align:-3px; margin-right:4px; }
.sd-mat { max-width:170px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.sd-ordner-kopf .link { color:#555; text-transform:none; letter-spacing:0; font-size:12.5px; }

/* ---------- Material geöffnet (Dom 28.10.2026, public/materialakte.js) ---------- */
.ma-akte .vl-links { display:grid; grid-template-columns:1fr 1fr; gap:12px; align-content:start; overflow:auto; min-height:0; } .ma-akte .vl-links .breit { grid-column:1 / -1; }
.ma-akte .vl-block { position:relative; margin:0; } .ma-verlauf { min-height:0; overflow:auto; }
.ma-kopfbild { overflow:hidden; background:#f3f3f3; color:#555; } .ma-kopfbild img { width:100%; height:100%; object-fit:cover; cursor:zoom-in; }
.ma-innen { padding:0 18px 14px; margin:0; } .ma-notiz { margin:6px 18px 12px; padding:8px 10px; border-radius:8px; background:#f7f7f7; color:#555; font-size:13.5px; white-space:pre-wrap; }
.ma-vgl { width:calc(100% - 36px); margin:0 18px; border-collapse:collapse; font-size:14px; } .ma-vgl th { font-weight:400; color:#8a8a8a; font-size:12px; text-align:left; padding:4px 6px 6px; border-bottom:1px solid #eee; }
.ma-vgl td { padding:8px 6px; border-bottom:1px solid #f2f2f2; vertical-align:middle; } .ma-vgl tr:last-child td { border-bottom:none; } .ma-vgl .zahl { text-align:right; white-space:nowrap; }
.ma-quelle { padding:8px 18px 14px; font-size:12.5px; color:#8a8a8a; }
.ma-gilt, .ma-guenstig { display:inline-block; margin-left:6px; padding:1px 7px; border-radius:6px; font-size:11.5px; font-weight:600; } .ma-gilt { background:#111; color:#fff; } .ma-guenstig { background:#eef6f0; color:#1f6b35; }
.ma-bf { padding:0 18px 12px; } .ma-bilder { display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin-bottom:8px; }
.ma-bild { position:relative; width:64px; height:64px; border-radius:8px; overflow:hidden; border:1px solid #eee; background:#f6f6f6; } .ma-bild img { width:100%; height:100%; object-fit:cover; cursor:zoom-in; }
.ma-bild small { position:absolute; left:3px; bottom:3px; font-size:10px; background:rgba(255,255,255,.92); padding:0 5px; border-radius:5px; }
.ma-plus { width:64px; height:64px; border-radius:8px; border:1px dashed #cfcfcf; background:#fff; color:#8a8a8a; display:inline-flex; align-items:center; justify-content:center; padding:0; }
.ma-datei { display:flex; align-items:center; gap:8px; padding:7px 0; border-top:1px solid #f2f2f2; font-size:14px; color:#111; text-decoration:none !important; } .ma-datei svg { color:#8a8a8a; } .ma-datei small { color:#8a8a8a; }
@media (max-width:900px) { .ma-akte .vl-links { grid-template-columns:1fr; } }

/* ---------- Werkstatt (Dom 28.10.2026, public/werkstatt.js) ---------- */
.ws-ansicht { margin-left:14px; } .ws-ansicht a, .sd-filter .segment a { text-decoration:none !important; }
.ws-pille { display:inline-flex; align-items:center; height:24px; padding:0 9px; border-radius:7px; font-size:12.5px; font-weight:500; vertical-align:middle; background:#f1f1f1; color:#444; }
.ws-pille.rot { background:#fdecec; color:#b42323; } .ws-pille.orange { background:#fff0e0; color:#9a4a00; } .ws-pille.gelb { background:#fff7cc; color:#7a5d00; } .ws-pille.gruen { background:#eef6f0; color:#1f6b35; }
.ws-av { width:24px; height:24px; border-radius:50%; background:var(--schwarz); color:#fff; font-size:10.5px; font-weight:600; display:inline-flex; align-items:center; justify-content:center; flex:none; vertical-align:middle; } .ws-av.hell { background:#e9e9e9; color:#333; }
main.feste-seite .ws-tabelle { flex:1; min-height:0; display:flex; flex-direction:column; } main.feste-seite .ws-tabelle .tabelle-scroll { flex:1; min-height:0; overflow:auto; }
.ws-zuletzt { max-width:240px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ws-karte { border-left:3px solid #ccc; } .ws-karte.rot { border-left-color:#d64545; } .ws-karte.orange { border-left-color:#e08a2e; } .ws-karte.gelb { border-left-color:#e6c200; } .ws-karte.gruen { border-left-color:#3a9a5b; }
.ws-karte .rs-karte-fuss { display:flex; align-items:center; gap:8px; }
.ws-status { display:flex; align-items:center; gap:6px; }
.ws-schritt { flex:1; height:36px; border-radius:8px; display:flex; align-items:center; justify-content:center; gap:6px; font-size:13.5px; font-weight:600; background:#f1f1f1; color:#8a8a8a; border:1px solid #e6e6e6; cursor:pointer; }
.ws-schritt.fertig { background:var(--schwarz); color:#fff; border-color:var(--schwarz); } .ws-schritt.jetzt { background:#fff; color:#111; border:2px solid var(--schwarz); } .ws-schritt:hover:not(.jetzt) { border-color:#999; }
.ws-wer { display:inline-flex; align-items:center; gap:8px; height:40px; padding:0 10px 0 6px; border:1px solid #e1e1e1; border-radius:8px; background:#fff; flex:none; }
.ws-wer > span:last-child { display:flex; flex-direction:column; line-height:1.1; } .ws-wer small { color:#8a8a8a; font-size:11px; } .ws-wer select { border:none !important; padding:0; height:auto; font-weight:600; background:none; box-shadow:none !important; }
.ws-fall { display:grid; grid-template-columns:minmax(0, 1fr) 400px; gap:14px; min-height:0; } .ws-links { display:flex; flex-direction:column; gap:12px; overflow:auto; min-height:0; }
.ws-zwei { display:grid; grid-template-columns:1fr 1fr; gap:12px; align-items:start; } .ws-zwei .vl-block, .ws-links .vl-block { margin:0; }
.ws-galerie { display:flex; gap:10px; padding:0 18px 16px; overflow-x:auto; }
.ws-foto { width:150px; height:110px; border-radius:10px; flex:none; overflow:hidden; border:1px solid #eee; background:#f6f6f6; } .ws-foto img { width:100%; height:100%; object-fit:cover; cursor:zoom-in; }
.ws-foto.plus { border:1px dashed #cfcfcf; background:#fff; display:flex; align-items:center; justify-content:center; gap:6px; color:#8a8a8a; font-size:13px; padding:0; }
.ws-aufg { display:flex; align-items:center; gap:10px; padding:10px 18px; border-top:1px solid #f2f2f2; font-size:14px; cursor:pointer; } .ws-aufg input { width:16px; height:16px; flex:none; }
.ws-aufg.fertig b { text-decoration:line-through; color:#8a8a8a; font-weight:500; } .ws-aufg .rechts { margin-left:auto; display:flex; align-items:center; gap:8px; } .ws-aufg small { color:#8a8a8a; }
.ws-neu { display:flex; align-items:center; gap:8px; padding:8px 12px 12px 18px; border-top:1px solid #f2f2f2; color:#8a8a8a; } .ws-neu input[name=text] { flex:1; min-width:0; border:none !important; box-shadow:none !important; padding:6px 0; }
.ws-neu select { width:110px; height:32px; font-size:13px; } .ws-neu .datumsfeld { width:130px; } .ws-neu .datumsfeld input { height:32px; font-size:13px; }
.ws-strom { display:flex; flex-direction:column; min-height:0; margin:0; } .ws-strom .vl-strom { flex:1; min-height:0; overflow:auto; }
.ws-eingabe input { flex:1; border:none !important; box-shadow:none !important; background:none; min-width:0; } .ws-strom-bilder img { width:84px; height:64px; object-fit:cover; border-radius:8px; margin:4px 4px 0 0; cursor:zoom-in; }
@media (max-width:1000px) { .ws-fall, .ws-zwei { grid-template-columns:1fr; } }
.ws-neu { flex-wrap:wrap; } .ws-neu input[name=text] { flex:1 1 calc(100% - 32px); } .ws-neu select { margin-left:24px; flex:1; max-width:180px; } .ws-neu .datumsfeld { flex:none; }

/* Stammdaten Runde 2 (Dom 28.10.2026): Baumkopf wie plancraft, weniger Einrückung, Zu prüfen, Sammel-Leiste, Ordner bearbeiten */
.sd-links { padding:6px; } .sd-ordner { padding:7px 6px; gap:5px; } .sd-ordner .sd-auf { width:16px; }
.sd-baum-kopf { display:flex; align-items:center; gap:4px; padding:4px 2px 8px; font-size:12px; color:#777; text-transform:uppercase; letter-spacing:.04em; }
.sd-baum-kopf .rechts { margin-left:auto; display:flex; gap:2px; } .sd-baum-kopf .icon-knopf { width:28px; height:28px; color:#555; } .sd-baum-kopf .icon-knopf:hover { color:#111; background:#f2f2f2; }
.sd-anzahl { margin-left:auto; }
.sd-pruefen b { display:inline-flex; align-items:center; justify-content:center; min-width:20px; height:20px; padding:0 6px; border-radius:10px; background:#f1f1f1; color:#555; font-size:12px; }
.sd-pruefen.hat b { background:#ffe58f; color:#5c4400; }
.sd-pruef-marke { display:inline-block; margin-left:6px; padding:1px 7px; border-radius:6px; background:#fff3c4; color:#6b5200; font-size:11.5px; font-weight:600; vertical-align:1px; }
.sd-aktionen { display:flex; align-items:center; gap:8px; padding:8px 12px; border-radius:10px; background:#111; color:#fff; font-size:14px; }
.sd-aktionen button { height:30px; padding:0 12px; border-radius:7px; border:1px solid #444; background:#222; color:#fff; font:inherit; font-size:13.5px; } .sd-aktionen .sd-ak-weg { margin-left:auto; border:none; background:none; }
.sd-tabelle tr.gewaehlt td { background:#f7f7f7; } .sd-tabelle .haken-zelle { width:36px; } .sd-lf { max-width:150px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.sd-tabelle tr.sd-mehr td { text-align:center; padding:14px; }
.sd-tabelle thead th { position:sticky; top:0; background:#fff; z-index:1; }
.sd-oe-kopf { display:flex; align-items:center; gap:12px; } .sd-oe-kopf .klein-text { max-width:520px; }
.sd-oe input, .sd-oe select { height:34px; font-size:14px; width:100%; } .sd-oe input.zahl { text-align:right; } .sd-oe td { padding-top:6px; padding-bottom:6px; }
.sd-oe input.gespeichert { box-shadow:0 0 0 2px #cfe9d6 !important; }

/* Buchen-Fenster Runde 2 (Dom 28.10.2026): passt ohne Scrollen, gleich hohe Feld-Karten, nichts springt */
dialog.ue-dialog.lg-buchen { overflow:visible; width:640px; max-width:calc(100vw - 24px); padding:18px 22px 16px; }
.lgb-art { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin:6px 0 12px; }
.lgb-art button { display:flex; align-items:center; gap:12px; height:64px; padding:0 16px; border:1px solid #e1e1e1; border-radius:12px; background:#fff; text-align:left; font:inherit; }
.lgb-art button b { display:block; font-size:16px; } .lgb-art button small { display:block; font-size:12.5px; color:#8a8a8a; font-weight:400; }
.lgb-art button .lgb-ic { width:34px; height:34px; border-radius:50%; background:#f3f3f3; display:inline-flex; align-items:center; justify-content:center; flex:none; }
.lgb-art button.an { border-color:#111; box-shadow:0 0 0 1px #111 inset; } .lgb-art button.an .lgb-ic { background:#111; color:#fff; }
.formular.lgb { gap:10px; }
.lgb label { min-height:58px !important; height:58px; }
.lgb-was { position:relative; } .lgb-was > span:first-child { display:block; } .lgb-bestand { position:absolute; right:14px; top:9px; font-size:12px; color:#8a8a8a; }
.lgb-treffer { position:absolute; left:-1px; right:-1px; top:calc(100% + 4px); z-index:20; background:#fff; border:1px solid #ececec; border-radius:12px; box-shadow:0 18px 44px rgba(0,0,0,.16); padding:6px; max-height:300px; overflow:auto; }
.lgb-treffer button { display:block; width:100%; text-align:left; border:none; background:none; border-radius:8px; padding:8px 10px; font:inherit; color:#111; } .lgb-treffer button:hover { background:#f4f4f4; }
.lgb-treffer button b { display:block; font-size:14px; } .lgb-treffer button small { color:#8a8a8a; font-size:12.5px; }
.lgb-menge { display:flex; align-items:center; gap:6px; } .lgb-menge input { text-align:center; font-weight:600 !important; }
.lgb-menge button { width:28px; height:24px; padding:0; border:1px solid #e1e1e1; border-radius:6px; background:#f6f6f6; font-size:16px; line-height:1; flex:none; color:#111; }
.lgb .datumsfeld .dp-knopf { right:-6px; } .lgb .datumsfeld input[type=text] { height:22px !important; }
.lgb-zweck { grid-template-columns:repeat(3, minmax(0, 1fr)); } .lgb-zweck button { height:54px; justify-content:center; padding:6px 12px; }
.lgb-ziel { min-height:58px; display:flex; align-items:stretch; } .lgb-ziel > * { flex:1; } .lgb-ziel > [hidden] { display:none !important; }
.lgb-ziel .lg-chips { align-items:center; } .lgb-hinweis { display:flex; align-items:center; padding:0 4px; }
dialog.lg-buchen.ist-eingang .lgb-aus { display:none !important; }
.lgb-fuss { margin-top:4px; gap:8px; } .lgb-fehler { margin-right:auto; color:var(--rot); font-size:13px; }
.lgb .feld-knopf.ungueltig, .lgb [data-iproj].ungueltig { color:var(--rot) !important; } .lgb label:has(.ungueltig) { border-color:var(--rot) !important; }
@media (max-width:700px) { dialog.lg-buchen { width:100%; } .lgb-zweck button small { display:none; } }

/* Lagerdaten (Material → Lager, Lager → Bestand → Zeile) */
.ld { display:flex; flex-direction:column; gap:12px; }
.ld-oben { display:flex; align-items:center; gap:10px; } .ld-zahl { flex:1; padding:10px 14px; border:1px solid var(--linie); border-radius:10px; background:#fff; }
.ld-zahl span { display:block; font-size:12.5px; color:#8a8a8a; } .ld-zahl b { font-size:22px; } .ld-zahl b small { font-size:13px; font-weight:500; color:#666; } .ld-zahl b.knapp { color:#b46a00; } .ld-zahl b.ld-platz { font-size:16px; }
.ld-knoepfe { display:flex; gap:8px; align-items:center; }
.ld-kasten { border:1px solid var(--linie); border-radius:10px; background:#fff; padding:12px 14px; }
.ld-kopf { display:flex; align-items:center; justify-content:space-between; margin-bottom:8px; font-size:14px; }
.ld-grafik { width:100%; height:110px; display:block; } .ld-grafik rect { fill:#303030; } .ld-grafik rect:hover { fill:#111; } .ld-grafik line { stroke:#e5e5e5; stroke-width:.4; vector-effect:non-scaling-stroke; }
.ld-monate { display:flex; justify-content:space-around; font-size:11px; color:#8a8a8a; margin-top:2px; } .ld-monate span { flex:1; text-align:center; }
.ld-summen { display:flex; gap:18px; align-items:baseline; margin-top:10px; font-size:13.5px; color:#555; } .ld-summen b { color:#111; } .ld-summen .klein-text { margin-left:auto; }
.ld-zwei { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.ld-zeile { display:flex; align-items:baseline; gap:10px; padding:7px 0; border-top:1px solid #f2f2f2; font-size:13.5px; } .ld-zeile:first-of-type { border-top:none; } .ld-zeile > span { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ld-zeile small { color:#8a8a8a; margin-right:4px; } .ld-zeile b { white-space:nowrap; } .ld-zeile b.ld-plus { color:#1f6b35; } .ld-zeile.klick { cursor:pointer; } .ld-zeile.klick:hover { background:#fafafa; }
dialog.ld-panel { width:min(620px, 100vw); } dialog.ld-panel .ld-zwei { grid-template-columns:1fr; }
.ma-lager { overflow:auto; max-width:1000px; }

/* Bestellungen (Dom 28.10.2026): feste Spalten, Pipeline, Positionen über der E-Mail */
table.feste-spalten { table-layout:fixed; width:100%; } table.feste-spalten td, table.feste-spalten th { overflow:hidden; text-overflow:ellipsis; }
.bl-kurz { white-space:nowrap; } .bp-pos td:nth-child(n+3) { white-space:nowrap; } .bp-pos td { vertical-align:middle; }
.raster.zwei.bestell-raster { display:flex; flex-direction:column-reverse; gap:18px; } .bestell-mail { max-width:900px; }
.lg-ansicht { margin-right:6px; } .lg-ansicht a { text-decoration:none !important; }
.bp-board { flex:1; min-height:0; } .bp-karte .rs-karte-fuss { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.nb-liste { display:flex; flex-direction:column; border:1px solid var(--linie); border-radius:10px; overflow:hidden; }
.nb-zeile { display:grid; grid-template-columns:minmax(0, 1fr) 110px 150px auto; gap:10px; align-items:center; padding:10px 12px; border-top:1px solid #f0f0f0; } .nb-zeile:first-child { border-top:none; }
.nb-zeile small { display:block; color:#8a8a8a; font-size:12.5px; } .nb-zeile > b { text-align:right; } .nb-zeile select { height:34px; }
dialog.ue-dialog.nb-dialog { width:680px; padding:18px 22px; }
.sd-tabelle td b, .sd-tabelle td .klein-text { overflow:hidden; text-overflow:ellipsis; } .sd-tabelle tbody td:nth-child(4) { white-space:normal; }
.sd-oe td > span { width:100%; } .sd-oe td > span input { flex:1; min-width:0; } .sd-oe tbody td { height:auto; }
dialog.ue-dialog:not(:has(> #ue)):not(.lg-buchen):not(.nb-dialog) { padding:16px 20px 18px; } /* Fenster ohne #ue-Hülle (Material bearbeiten/prüfen, werkstatt) bekommen den Innenrand */
.form-fuss > .gefahr-text:first-child { margin-right:auto; } /* Löschen links, Abbrechen und Speichern rechts (DESIGN.md) */
.sd-tabelle tbody td { height:64px; padding-top:6px; padding-bottom:6px; } /* Zeilen 64px wie DESIGN.md */
table.feste-spalten td.sd-bild-zelle, table.feste-spalten td.haken-zelle, table.feste-spalten td.menue-zelle { text-overflow:clip; }
.sd-tabelle .stern-anzeige { font-size:13px; letter-spacing:0; white-space:nowrap; }

/* Schaden melden (Dom 28.10.2026): wie „Feedback melden“ */
.fbm.sm .fbm-feld { margin-top:8px; } .fbm.sm .fbm-feld.ungueltig, .fbm.sm label.ungueltig { border-color:var(--rot) !important; }
.sm-ablage { min-height:76px; display:flex; align-items:center; justify-content:center; }
.sm-dring button b { font-size:14px; } .sm-dring button { padding:10px 12px; }
.sm-fehler { color:var(--rot); font-size:13px; min-height:18px; margin-top:4px; }
.sm-seite { max-width:720px; padding:18px 22px; }
.fbm.sm .fbm-t { margin-top:10px; } .fbm.sm textarea { min-height:70px; }
.fbm.sm textarea { height:84px; min-height:60px !important; } .fbm.sm .fbm-arten button { padding:10px 12px; gap:2px; } .fbm.sm .fbm-ic { font-size:18px; line-height:1; }
/* Dom 28.10.2026: Materialzeilen 58px wie die Projektseite, leere Werte grau, Fortschritt bei teilweise geliefert */
.sd-tabelle tbody td { height:58px; padding-top:4px; padding-bottom:4px; } .sd-tabelle .sd-bild { width:36px; height:36px; } .sd-leer { color:#c2c2c2; }
.bp-fort { display:flex; flex-direction:column; gap:3px; min-width:110px; } .bp-fort i { display:block; height:5px; border-radius:3px; background:#ececec; overflow:hidden; } .bp-fort i b { display:block; height:100%; background:#e08a2e; }

/* Posteingang info@ (Dom 28.10.2026, Entwurf „Posteingang“): geteilt = Liste links, Mail rechts; breit = schlanke Zeilen über die ganze Breite, Mail in voller Breite */
.pe-seitenkopf h1 { margin-right:10px; }
.pe-ansicht button { display:inline-flex; align-items:center; justify-content:center; padding:4px 10px; }
.pe-reiter > button small { font-size:12.5px; font-weight:600; color:inherit; margin-left:2px; }
.pe { display:grid; gap:14px; flex:1; min-height:0; margin-top:8px; }
.pe.pe-geteilt { grid-template-columns:430px minmax(0, 1fr); }
.pe.pe-breit { grid-template-columns:minmax(0, 1fr); } .pe.pe-breit .pe-mail { display:none; } .pe.pe-breit.pe-offen .pe-liste { display:none; } .pe.pe-breit.pe-offen .pe-mail { display:flex; }
.pe-liste, .pe-mail { background:#fff; border:1px solid var(--linie); border-radius:10px; display:flex; flex-direction:column; min-height:0; overflow:hidden; }
.pe-scroll { flex:1; overflow:auto; }
.pe-fuss { padding:10px 16px; border-top:1px solid #eee; font-size:13px; color:var(--grau); background:var(--flaeche); flex:none; }
.pe-leer { padding:28px 18px; color:var(--grau); font-size:14px; text-align:center; }
.pe-leer-ganz { display:flex; flex-direction:column; align-items:center; gap:8px; padding:70px 20px; color:var(--grau); text-align:center; } .pe-leer-ganz svg { width:32px; height:32px; } .pe-leer-ganz b { color:var(--schwarz); font-size:16px; } .pe-leer-ganz .btn { margin-top:8px; }
/* Zeile geteilt: zwei bis vier Zeilen */
.pe-z { display:grid; grid-template-columns:10px minmax(0, 1fr) auto; column-gap:8px; row-gap:2px; padding:12px 16px 12px 10px; border-bottom:1px solid #f0f0f0; color:var(--schwarz) !important; text-decoration:none !important; font-size:14px; }
.pe-z:hover { background:#f7f7f7; } .pe-z.an { background:#f1f1f1; }
.pe-z .pkt { grid-row:1; grid-column:1; width:7px; height:7px; border-radius:50%; margin-top:7px; } .pe-z.neu .pkt { background:var(--schwarz); }
.pe-z .wer { grid-row:1; grid-column:2; font-weight:500; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; } .pe-z.neu .wer, .pe-z.neu .bt { font-weight:600; }
.pe-z .zeit { grid-row:1; grid-column:3; color:var(--grau); font-size:12.5px; white-space:nowrap; display:inline-flex; align-items:center; gap:6px; } .pe-z .zeit svg { width:14px; height:14px; }
.pe-z .bt { grid-column:2 / 4; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.pe-z .vs { grid-column:2 / 4; color:#8f8f8f !important; font-weight:400 !important; font-size:13px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.pe-z .fuss { grid-column:2 / 4; display:flex; align-items:center; gap:6px; } .pe-z .fuss:not(:empty) { margin-top:4px; }
.pe-marke { display:inline-flex; align-items:center; height:22px; padding:0 8px; border-radius:6px; font-size:12px; background:var(--hell); border:1px solid var(--linie); color:#3d3d3d; white-space:nowrap; max-width:260px; overflow:hidden; text-overflow:ellipsis; }
.pe-marke.vor { background:#fff; border:1px dashed #b9b9b9; color:#555; } .pe-marke.vor::before { content:'Vorschlag: '; margin-right:3px; color:#8a8a8a; }
.pe-av { width:22px; height:22px; border-radius:50%; background:var(--schwarz); color:#fff; font-size:10.5px; font-weight:600; display:inline-flex; align-items:center; justify-content:center; flex:none; }
.pe-z .fuss .pe-av { margin-left:auto; }
/* Zeile breit: eine Zeile, 44px – Absender · Betreff – Vorschau · Bezug · Zuständig · Datum */
.pe-breit .pe-z { grid-template-columns:10px 200px minmax(0, max-content) minmax(0, 1fr) auto auto; align-items:center; column-gap:12px; padding:0 16px 0 12px; height:44px; }
.pe-breit .pe-z .pkt { margin:0; grid-row:1; } .pe-breit .pe-z .wer { grid-column:2; } .pe-breit .pe-z .bt { grid-column:3; grid-row:1; max-width:420px; }
.pe-breit .pe-z .vs { grid-column:4; grid-row:1; } .pe-breit .pe-z .vs::before { content:'– '; }
.pe-breit .pe-z .fuss { grid-column:5; grid-row:1; margin:0 !important; } .pe-breit .pe-z .fuss .pe-av { margin-left:0; } .pe-breit .pe-z .zeit { grid-column:6; grid-row:1; min-width:56px; justify-content:flex-end; }
/* Mail */
.pe-mkopf { display:flex; align-items:center; gap:8px; padding:16px 18px 6px; flex:none; } .pe-mkopf h2 { margin:0; font-size:17px; font-weight:600; flex:1; min-width:0; overflow-wrap:anywhere; }
.pe-von { display:flex; align-items:center; gap:10px; padding:4px 18px 12px; font-size:14px; flex:none; } .pe-von small { color:var(--grau); font-size:13px; }
.pe-von .avatar-kreis { width:34px; height:34px; font-size:12px; flex:none; } .pe-von-text { min-width:0; overflow-wrap:anywhere; } .pe-wann { margin-left:auto; color:var(--grau); font-size:13px; white-space:nowrap; }
.pe-felder { display:grid; grid-template-columns:minmax(0, 1.7fr) minmax(0, 1fr); gap:10px; padding:0 18px 12px; flex:none; }
.pe-feld { white-space:normal; min-height:58px; border:1px solid #e1e1e1; border-radius:12px; padding:8px 12px; display:flex; flex-direction:column; justify-content:center; align-items:stretch; gap:2px; background:#fff; text-align:left; font:inherit; color:var(--schwarz); cursor:pointer; }
.pe-feld:hover { border-color:#cfcfcf; } .pe-feld:focus-visible { outline:none; border-color:var(--schwarz); box-shadow:0 0 0 3px rgba(17,17,17,.08); }
.pe-feld small { font-size:12px; color:var(--grau); } .pe-feld b { font-size:15px; font-weight:600; display:flex; align-items:center; gap:8px; min-width:0; } .pe-feld.vor { border-style:dashed; border-color:#b9b9b9; }
.pe-leer-wert { color:#a8a8a8; font-weight:500; } .pe-warum { font-size:12px; color:var(--grau); }
.pe-ueb { margin-left:auto; height:28px; padding:0 10px; border:1px solid var(--schwarz); border-radius:6px; background:#fff; font-size:13px; font-weight:500; display:inline-flex; align-items:center; flex:none; } .pe-ueb:hover { background:var(--hell); }
.pe-inhalt { flex:1; overflow:auto; padding:4px 18px 10px; border-top:1px solid #f0f0f0; display:flex; flex-direction:column; min-height:0; }
.pe-frueher { display:flex; flex-direction:column; gap:4px; margin:12px 0 4px; }
.pe-frueh { white-space:nowrap; display:flex; align-items:center; gap:8px; padding:8px 12px; border:none; border-radius:8px; background:var(--flaeche); color:var(--grau); font:inherit; font-size:13px; text-align:left; cursor:pointer; min-width:0; }
.pe-frueh:hover { background:var(--hell); } .pe-frueh b { color:var(--schwarz); font-weight:500; flex:none; } .pe-frueh span { flex:1; min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; } .pe-frueh small { flex:none; }
.pe-text { font-size:15px; line-height:1.55; color:var(--schwarz); max-width:760px; padding:12px 0; overflow-wrap:anywhere; }
.pe-text[data-html="1"] { max-width:none; flex:1; display:flex; min-height:360px; } .pe-html { border:0; width:100%; flex:1; min-height:360px; background:#fff; }
.pe-original { align-self:flex-start; font-size:13px; color:var(--grau) !important; text-decoration:underline; }
.pe-anh { display:flex; gap:10px; flex-wrap:wrap; margin:12px 0 6px; }
.pe-datei { display:flex; align-items:center; gap:10px; min-height:52px; padding:0 8px 0 10px; border:1px solid var(--linie); border-radius:10px; min-width:250px; font-size:14px; }
.pe-datei-name { display:flex; align-items:center; gap:10px; color:var(--schwarz) !important; text-decoration:none !important; min-width:0; } .pe-datei-name small { display:block; color:var(--grau); font-size:12px; }
.pe-datei .ty { width:34px; height:34px; border-radius:7px; background:#f3f3f3; display:inline-flex; align-items:center; justify-content:center; font-size:10.5px; font-weight:700; color:#555; flex:none; }
.pe-abl { margin-left:auto; display:inline-flex; align-items:center; gap:6px; height:30px; padding:0 10px; border:1px solid #d9d9d9; border-radius:7px; background:#fff; font:inherit; font-size:13px; color:var(--schwarz); white-space:nowrap; }
.pe-abl.fertig { border-color:transparent; color:#1d6b36; background:#dcf2e3; }
.pe-mfuss { display:flex; align-items:center; gap:8px; padding:12px 18px; border-top:1px solid #eee; flex:none; } .pe-mfuss > button, .pe-mfuss .rechts > button { display:inline-flex; align-items:center; gap:6px; }
.pe-mfuss .rechts { margin-left:auto; display:flex; gap:8px; }
.pe-tasten-liste { display:grid; grid-template-columns:1fr 1fr; gap:6px 24px; font-size:14px; } .pe-tasten-liste div { display:flex; align-items:center; gap:10px; } .pe-tasten-liste span { min-width:76px; display:inline-flex; gap:4px; }
.pe-tasten-liste kbd, .pe-kbd { display:inline-flex; align-items:center; justify-content:center; min-width:24px; height:24px; padding:0 6px; border:1px solid #d9d9d9; border-bottom-width:2px; border-radius:6px; background:#fff; font:inherit; font-size:12.5px; font-weight:600; }
.pe-tasten-dialog { width:min(560px, 94vw); } .pe-auf-dialog { width:min(620px, 94vw); } .pe-auf-bezug { display:flex; align-items:center; gap:6px; margin:0 0 10px; }
.pe-lesen-dialog { width:min(760px, 94vw); } .pe-lesen .pe-text { max-height:55vh; overflow:auto; padding:0 0 8px; }
/* zugeordnete Mail im Chat und Verlauf (Projekt, Anfrage) */
.pe-ch-karte { display:flex; flex-direction:column; gap:2px; max-width:360px; white-space:normal; padding:10px 12px; border:1px solid var(--linie); border-radius:12px; background:#fff; font:inherit; font-size:14px; text-align:left; color:var(--schwarz); cursor:pointer; }
.pe-ch-karte:hover { border-color:#cfcfcf; } .ch-n.ich .pe-ch-karte { background:var(--flaeche); }
.pe-ch-k { display:flex; align-items:center; gap:6px; color:var(--grau); font-size:12.5px; } .pe-ch-v { color:var(--grau); font-size:13px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.pe-ch-a { display:flex; flex-wrap:wrap; gap:6px; margin-top:6px; } .pe-ch-a i { font-style:normal; display:inline-flex; align-items:center; gap:4px; height:24px; padding:0 8px; border-radius:6px; background:var(--hell); font-size:12px; color:#3d3d3d; }
.pe-ch-zeile { display:flex; align-items:center; gap:8px; color:var(--grau); font-size:13px; }
@media (max-width:900px) { .pe.pe-geteilt { grid-template-columns:300px minmax(0, 1fr); } .pe-felder { grid-template-columns:1fr; } .pe-breit .pe-z { grid-template-columns:10px 120px minmax(0, 1fr) auto; } .pe-breit .pe-z .vs, .pe-breit .pe-z .fuss { display:none; } .pe-breit .pe-z .zeit { grid-column:4; } }
/* Posteingang am Handy (Dom 28.10.2026): Suche als eigene Zeile, ⋮ oben neben der Ansicht, keine Tastenkürzel, Reiter wischbar, unten nur „Antworten“ (Rest im ⋮) */
.pe-seitenkopf .pe-suche { margin-left:auto; }
@media (max-width:760px) {
  .pe-seitenkopf { gap:8px; } .pe-seitenkopf h1 { margin-right:0; } .pe-ansicht { display:none !important; } .pe-seitenkopf #pe-mehr { margin-left:auto; } .pe-tasten-knopf { display:none !important; }
  .pe-seitenkopf .pe-suche { order:5; flex:1 0 100%; min-width:0; margin-left:0; }
  .pe-reiter { overflow-x:auto; flex-wrap:nowrap; scrollbar-width:none; -webkit-overflow-scrolling:touch; } .pe-reiter::-webkit-scrollbar { display:none; } .pe-reiter > button { flex:none; white-space:nowrap; }
  .pe-mfuss #pe-erledigt, .pe-mfuss #pe-aufgabe, .pe-mfuss #pe-weiter { display:none; } .pe-mfuss .rechts { margin-left:0; flex:1; } .pe-mfuss #pe-antworten { flex:1; justify-content:center; }
  .pe-mkopf, .pe-von, .pe-felder, .pe-inhalt, .pe-mfuss { padding-left:12px; padding-right:12px; } .pe-von { flex-wrap:wrap; } .pe-wann { margin-left:44px; }
  .pe-datei { min-width:0; width:100%; } .pe-z .bt, .pe-z .vs { min-width:0; }
  dialog.suchfenster { width:calc(100vw - 16px); max-width:calc(100vw - 16px); min-width:0; } dialog.suchfenster .gs-reiter { overflow-x:auto; flex-wrap:nowrap; } dialog.suchfenster .gs-reiter button { flex:none; }
}
/* Posteingang Runde 2 (Dom 28.10.2026): Mail wie Gmail, Verfassen mit Chips und Format, Reiter „E-Mails“ */
.pe-text.html { max-width:none; padding:8px 0 0; } .pe-text.html .pe-html { display:block; width:100%; min-height:120px; border:0; background:#fff; }
.pe-wer-chip { height:30px; margin:0 10px 0 -2px; font-size:13px; gap:4px; flex:none; } .pe-wer-chip svg { color:var(--grau); }
.pe-z.erl .wer, .pe-z.erl .bt { color:var(--grau); }
.pe.pe-im-reiter { height:min(72vh, 760px); min-height:360px; margin-top:0; } .pa-inhalt > .pe.pe-im-reiter { height:100%; } /* Projekt: so hoch wie der Reiterbereich, Fußleiste bleibt sichtbar */
.pv-dialog { width:min(820px, 96vw); padding:0 !important; } .pv-dialog .dlg-kopf { padding:14px 18px 6px; }
.pv { display:flex; flex-direction:column; max-height:calc(100vh - 120px); }
.pv-zeile { display:flex; align-items:center; gap:10px; min-height:44px; padding:4px 18px; border-bottom:1px solid #eee; } .pv-name { width:56px; flex:none; color:var(--grau); font-size:14px; }
.pv-feld { flex:1; min-width:0; } .pv-ccbcc { border:none; background:none; color:var(--grau); font:inherit; font-size:14px; padding:4px 6px; cursor:pointer; } .pv-ccbcc:hover { color:var(--schwarz); }
.pv-betreff { flex:1; border:none !important; outline:none; box-shadow:none !important; font:inherit; font-size:15px; padding:6px 0; background:none; min-width:0; }
.pv-werkzeug { display:flex; gap:2px; padding:6px 14px; border-bottom:1px solid #eee; } .pv-werkzeug button { width:34px; height:30px; border:none; background:none; border-radius:6px; font:inherit; font-size:15px; color:#333; display:inline-flex; align-items:center; justify-content:center; cursor:pointer; } .pv-werkzeug button:hover { background:var(--hell); }
.pv-text { flex:1; min-height:220px; overflow:auto; padding:14px 18px; font-family:Arial, Helvetica, sans-serif; font-size:14px; line-height:1.5; outline:none; } .pv-text a { color:#1155cc; } .pv-sig { color:#555; }
.pv-zitat-knopf { align-self:flex-start; margin:0 18px 8px; height:18px; padding:0 8px; border:1px solid #d9d9d9; border-radius:9px; background:var(--hell); font-size:11px; letter-spacing:1px; color:#555; cursor:pointer; line-height:1; }
.pv-zitat { margin:0 18px 10px; font-family:Arial, Helvetica, sans-serif; font-size:13px; color:#555; max-height:240px; overflow:auto; outline:none; }
.pv-anh { display:flex; align-items:center; gap:6px; margin:0 18px 8px; font-size:13px; color:#444; } .pv-anh svg { width:14px; height:14px; }
.pv-fuss { padding:12px 18px; margin:0; border-top:1px solid #eee; display:flex; align-items:center; gap:8px; } .pv-fuss .rechts { margin-left:auto; display:flex; gap:8px; }
.ef { position:relative; display:flex; flex-wrap:wrap; align-items:center; gap:4px; min-height:34px; cursor:text; } .ef-chips { display:contents; }
.ef-chip { display:inline-flex; align-items:center; gap:4px; height:26px; padding:0 4px 0 10px; border-radius:13px; background:#eef1f5; font-size:13px; color:#222; max-width:100%; overflow:hidden; } .ef-chip.falsch { background:#fde3e3; color:#a40f0f; }
.ef-chip button { width:20px; height:20px; border:none; background:none; border-radius:50%; font-size:11px; color:#666; cursor:pointer; padding:0; } .ef-chip button:hover { background:rgba(0,0,0,.08); }
.ef-eingabe { flex:1; min-width:120px; border:none !important; outline:none; box-shadow:none !important; font:inherit; font-size:14px; padding:4px 0; background:none; }
.ef-liste { position:absolute; left:0; top:100%; z-index:20; min-width:300px; max-width:min(460px, 90vw); max-height:260px; overflow:auto; background:#fff; border-radius:12px; box-shadow:0 8px 28px rgba(0,0,0,.16); border:1px solid #eee; padding:4px; }
.ef-t { display:flex; flex-direction:column; padding:7px 10px; border-radius:8px; cursor:pointer; font-size:14px; } .ef-t span { color:var(--grau); font-size:12.5px; } .ef-t.an, .ef-t:hover { background:var(--hell); }
@media (max-width:760px) { .pv-dialog { width:100vw; max-width:100vw; } .pv-zeile { padding:4px 12px; } .pv-name { width:44px; } .pv-text { padding:12px; } .pe.pe-im-reiter { height:auto; min-height:0; } }
.pv .ef-eingabe:focus, .pv .ef-eingabe:focus-visible, .pv-betreff:focus, .pv-betreff:focus-visible, .pv-text:focus-visible, .pv-zitat:focus-visible { outline:none !important; box-shadow:none !important; } .pv-zeile:focus-within { background:#fcfcfc; box-shadow:inset 2px 0 0 var(--schwarz); }
.pe-reiter > button.pe-wer-chip { display:inline-flex; align-items:center; gap:4px; height:30px; padding:0 10px; margin:0 14px 0 -4px; border:1px solid #cfcfcf; border-radius:8px; color:#111; font-size:13px; font-weight:500; background:#fff; } .pe-reiter > button.pe-wer-chip:hover { border-color:#999; }
/* Mailansicht richtet sich nach ihrer eigenen Breite (schmaler Reiter in der Anfrage, Handy): unten nur „Antworten“, Erledigt/Aufgabe/Weiterleiten im ⋮ */
.pe-mail { container-type:inline-size; container-name:pemail; }
@container pemail (max-width:560px) {
  .pe-mfuss #pe-erledigt, .pe-mfuss #pe-aufgabe, .pe-mfuss #pe-weiter { display:none; } .pe-mfuss .rechts { margin-left:0; flex:1; } .pe-mfuss #pe-antworten { flex:1; justify-content:center; }
  .pe-felder { grid-template-columns:1fr; } .pe-von { flex-wrap:wrap; } .pe-von > .avatar-kreis { display:none; } .pe-wann { margin-left:0; } .pe-mkopf, .pe-von, .pe-felder, .pe-inhalt, .pe-mfuss { padding-left:12px; padding-right:12px; } .pe-datei { min-width:0; width:100%; }
}
/* iPhone: An Nodus teilen (Profil & Passwort) – drei Schritte und QR-Code zur Einrichtung in der Handy-App */
.tl-schritte { margin:10px 0 12px; padding-left:20px; line-height:1.6; } .tl-schritte a { color:inherit; font-weight:600; }
.tl-qr { display:flex; align-items:center; gap:14px; padding:10px 0 0; border-top:1px solid #eee; } .tl-qr svg { width:132px; height:132px; flex:none; }
.tl-selbst { margin:0 0 12px; } .tl-selbst summary { cursor:pointer; font-weight:600; } .tl-selbst ol { padding-left:20px; line-height:1.6; } .tl-selbst code { font-size:12.5px; }
/* Signatur (Einstellungen → E-Mail-Versand) */
.sig-wann { display:flex; flex-wrap:wrap; gap:8px 24px; margin:0 0 16px; } .sig-wann .dok-toggle { margin:0; }
.sig-spalten { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:24px; align-items:start; } @media (max-width:1100px) { .sig-spalten { grid-template-columns:1fr; } }
.sig-titel { font-size:12px; color:var(--grau); margin:0 0 6px; } .sig-als { display:flex; align-items:center; gap:8px; } .sig-als .auswahl, .sig-als select { min-width:180px; }
.sig-bloecke { display:flex; flex-direction:column; border:1px solid #e1e1e1; border-radius:12px; background:#fff; overflow:hidden; }
.sig-block { padding:8px 10px 8px 12px; border-top:1px solid #f0f0f0; } .sig-block:first-child { border-top:0; } .sig-block:not(.an) .sig-b-name b { color:var(--grau); font-weight:500; }
.sig-b-zeile { display:flex; align-items:center; gap:10px; min-height:34px; } .sig-b-zeile .dok-toggle { margin:0; }
.sig-b-name { flex:1; min-width:0; display:flex; flex-direction:column; } .sig-b-name b { font-size:14px; font-weight:600; } .sig-b-name small { font-size:11.5px; color:var(--grau); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.sig-b-pfeile { display:flex; gap:2px; } .sig-b-pfeile .icon-knopf { width:28px; height:28px; } .sig-b-pfeile .icon-knopf:disabled { opacity:.25; }
.sig-logo { display:flex; align-items:center; gap:6px; margin:0; font-size:13px; white-space:nowrap; }
.sig-gruss { display:block; width:100%; margin:6px 0 2px; height:34px; } .sig-block .sig-rahmen { margin:8px 0 2px; }
.sig-fehlt { margin-top:6px; color:#b26a00; }
.sig-rahmen { border:1px solid #e1e1e1; border-radius:12px; overflow:hidden; background:#fff; } .sig-werkzeug { align-items:center; flex-wrap:wrap; } .sig-werkzeug .rechts { margin-left:auto; }
.sig-gmail { height:30px; padding:0 12px; border:1px solid #d9d9d9 !important; border-radius:7px; font-size:13px !important; width:auto !important; }
.sig-ed { min-height:140px; } .sig-ed:empty::before { content:attr(data-platzhalter); color:#a8a8a8; } .sig-ed.drueber { background:#f6f9ff; box-shadow:inset 0 0 0 2px #9db7e8; }
.sig-ed img { cursor:pointer; } .sig-ed img.sig-an { outline:2px solid var(--schwarz); outline-offset:2px; }
.sig-breite { display:inline-flex; align-items:center; gap:8px; margin-left:10px; font-size:13px; color:var(--grau); } .sig-breite input { width:160px; } .sig-breite b { color:var(--schwarz); font-weight:600; min-width:52px; }
.sig-person { display:flex; align-items:center; gap:8px; margin:12px 0 0; font-size:14px; }
.sig-vorschau-titel { margin:16px 0 6px; font-size:12px; color:var(--grau); } .sig-vorschau { width:100%; min-height:160px; border:1px solid #eee; border-radius:10px; background:#fff; display:block; }
.pv-sig img { max-width:100%; }
.zt-ziel { margin:0 0 10px; display:flex; } .zt-ziel > button { flex:1 1 0; text-align:center; } /* Zeit: Projekt · Büro · Lager (Feedback #46) */
/* Posteingang Runde 3 (Dom 29.10.2026, „wie Superhuman“): Verlauf untereinander, Lesespalte ~760 px, rechts wer schreibt, interne Kommentare */
.pe-koerper { flex:1; min-height:0; overflow:auto; display:grid; grid-template-columns:minmax(0, 1fr); gap:24px; padding:0 18px 16px; scroll-behavior:smooth; border-top:1px solid #f0f0f0; container-type:inline-size; }
.pe-lese { min-width:0; max-width:760px; width:100%; } .pe-lese .pe-felder { padding:12px 0; }
.pe-seite { display:none; }
@container pemail (min-width:1080px) { .pe-koerper { grid-template-columns:minmax(0, 760px) minmax(240px, 300px); } .pe-seite { display:block; padding-top:12px; } }
.pe-anzahl { display:inline-flex; align-items:center; justify-content:center; min-width:22px; height:20px; padding:0 6px; border-radius:10px; background:var(--hell); font-size:12px; font-weight:600; color:var(--grau); vertical-align:2px; }
.pe-hinweis { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin:0 0 10px; padding:8px 12px; border-radius:8px; background:#fff8e6; color:#6b4b00; font-size:13.5px; } .pe-hinweis .link { color:#6b4b00 !important; text-decoration:underline; font-size:13.5px; }
.pe-verlauf { display:flex; flex-direction:column; border:1px solid var(--linie); border-radius:10px; overflow:hidden; }
.pe-nachricht + .pe-nachricht { border-top:1px solid #eee; }
.pe-n-kopf { display:flex; align-items:center; gap:10px; width:100%; padding:10px 14px; border:none; background:#fff; font:inherit; font-size:14px; text-align:left; cursor:pointer; color:var(--schwarz); white-space:nowrap; }
.pe-n-kopf:hover { background:#fafafa; } .pe-nachricht:not(.offen) .pe-n-kopf { color:#444; } .pe-nachricht.wir .avatar-kreis { background:#111; color:#fff; }
.pe-n-wer { flex:1; min-width:0; display:flex; align-items:baseline; gap:8px; overflow:hidden; } .pe-n-wer b { flex:none; font-weight:600; } .pe-n-wer small { color:var(--grau); font-size:12.5px; overflow:hidden; text-overflow:ellipsis; }
.pe-nachricht.offen .pe-n-wer { flex-wrap:wrap; row-gap:0; white-space:normal; } .pe-n-an { flex-basis:100%; }
.pe-n-vs { color:var(--grau); overflow:hidden; text-overflow:ellipsis; min-width:0; }
.pe-n-zeit { flex:none; display:inline-flex; align-items:center; gap:6px; color:var(--grau); font-size:12.5px; } .pe-n-zeit svg { width:13px; height:13px; }
.pe-n-inhalt { padding:0 14px 12px 52px; } .pe-n-inhalt .pe-text { padding-top:4px; } .pe-n-inhalt .pe-text.html { padding-top:0; }
.pe-zitat-knopf { margin:6px 0; } .pe-zitat { color:#666; font-size:14px; border-left:2px solid #ddd; padding-left:10px; margin-top:6px; }
.pe-komm { margin:16px 0 4px; } .pe-komm-kopf { display:flex; align-items:center; gap:6px; font-size:13px; font-weight:600; color:#333; margin-bottom:8px; } .pe-komm-kopf svg { color:var(--grau); }
.pe-komm-liste { display:flex; flex-direction:column; gap:8px; margin-bottom:8px; }
.pe-k { display:flex; gap:10px; align-items:flex-start; padding:8px 10px; border-radius:10px; background:#fffbea; border:1px solid #f3e7b5; } .pe-k > div { flex:1; min-width:0; } .pe-k small { color:var(--grau); font-size:12.5px; }
.pe-k-text { font-size:14px; overflow-wrap:anywhere; } .pe-k-weg { border:none; background:none; color:#999; cursor:pointer; font-size:12px; padding:2px 4px; } .pe-k-weg:hover { color:var(--schwarz); }
.pe-k-form { display:flex; gap:8px; align-items:flex-end; } .pe-k-form .md-eingabe { flex:1; min-height:40px; border:1px solid #e1e1e1; border-radius:10px; padding:9px 12px; background:#fff; font-size:14px; } .pe-k-form .md-eingabe:focus-within { border-color:var(--schwarz); }
.pe-s-block { border:1px solid var(--linie); border-radius:10px; padding:12px; margin-bottom:12px; background:#fff; font-size:14px; }
.pe-s-person { display:flex; align-items:center; gap:10px; margin-bottom:8px; } .pe-s-person > div { min-width:0; } .pe-s-person b { display:block; overflow:hidden; text-overflow:ellipsis; } .pe-s-person small { color:var(--grau); font-size:12.5px; overflow-wrap:anywhere; }
.pe-s-titel { margin:10px 0 4px; font-size:11.5px; letter-spacing:.5px; text-transform:uppercase; color:var(--grau); } .pe-s-block > .pe-s-titel:first-child { margin-top:0; }
.pe-s-zeile { display:flex; align-items:center; gap:6px; padding:5px 0; color:var(--schwarz) !important; text-decoration:none !important; font-size:13.5px; min-width:0; } .pe-s-zeile span { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; } .pe-s-zeile small { color:var(--grau); flex:none; } .pe-s-zeile:hover span, .pe-s-zeile:hover b { text-decoration:underline; } .pe-s-zeile svg { flex:none; color:var(--grau); width:14px; height:14px; }
.pe-s-anlegen { margin-top:4px; height:32px; padding:0 12px; border:1px solid #111; border-radius:6px; background:#fff; font:inherit; font-size:13px; cursor:pointer; }
.pe-spaeter { display:inline-flex; align-items:center; gap:4px; color:#8a5a00; } .pe-spaeter svg { width:13px; height:13px; }
.pe-zeit-dialog { width:min(440px, 94vw); } .pe-zeit { display:flex; flex-direction:column; gap:6px; }
.pe-zeit-k { display:flex; align-items:center; gap:10px; height:44px; padding:0 12px; border:1px solid #e1e1e1; border-radius:10px; background:#fff; font:inherit; font-size:14px; cursor:pointer; text-align:left; } .pe-zeit-k:hover, .pe-zeit-k:focus-visible { border-color:var(--schwarz); outline:none; }
.pe-zeit-k b { flex:1; font-weight:600; } .pe-zeit-k span { color:var(--grau); font-size:13px; } .pe-zeit-k kbd, .gs-kbd, .pe-tasten-z kbd { display:inline-flex; align-items:center; justify-content:center; min-width:22px; height:22px; padding:0 6px; border:1px solid #d9d9d9; border-bottom-width:2px; border-radius:6px; background:#fff; font:inherit; font-size:12px; font-weight:600; color:#333; }
.pe-zeit-eigen { margin-top:10px; padding:0 !important; }
.gs-kbd { margin-left:auto; flex:none; }
.pv-chip { display:inline-flex; align-items:center; gap:6px; height:32px; padding:0 10px; border:1px solid #d9d9d9; border-radius:16px; background:#fff; font:inherit; font-size:13px; color:#444; cursor:pointer; } .pv-chip.an { border-color:#111; color:#111; background:#f5f5f5; } .pv-chip svg { width:13px; height:13px; }
.pv-von { margin-left:4px; }
.pe-tasten-dialog { width:min(760px, 96vw); } .pe-tasten-gruppen { display:grid; grid-template-columns:repeat(auto-fit, minmax(220px, 1fr)); gap:4px 28px; } .pe-tasten-gruppen h3 { font-size:12px; text-transform:uppercase; letter-spacing:.5px; color:var(--grau); margin:12px 0 6px; }
.pe-tasten-z { display:flex; align-items:center; gap:10px; padding:3px 0; font-size:14px; } .pe-tasten-z > span { min-width:86px; display:inline-flex; gap:4px; flex:none; }
.ab-zahl { font-size:13px; font-weight:600; color:#222; } /* „3 ausgewählt“ */
.ab-stapel { position:fixed; top:-200px; left:-200px; padding:8px 12px; background:#fff; border:1px solid #d8d8d8; border-radius:8px; font:600 13px/1.2 Outfit, system-ui, sans-serif; color:#222; box-shadow:3px 3px 0 #fff, 4px 4px 0 #d8d8d8, 7px 7px 0 #fff, 8px 8px 0 #d8d8d8; } /* Stapel beim Ziehen mehrerer Einträge */
/* Ablage-Auswahl (Dom 29.10.2026): runde Haken, „Alle auswählen“ übernimmt beim Auswählen die Reiterzeile oben (immer sichtbar, kein Platzverlust) */
.ab-haken, .ab-alle input { -webkit-appearance:none; appearance:none; width:18px; height:18px; min-width:18px; max-width:18px; aspect-ratio:1; box-sizing:border-box; margin:0; border:1.5px solid #c9c9c9; border-radius:6px; background:#fff; cursor:pointer; flex:none; }
.ab-haken:checked, .ab-alle input:checked, .ab-alle input:indeterminate { background:var(--rot) no-repeat center/12px; border-color:var(--rot); }
.ab-haken:checked, .ab-alle input:checked { background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.ab-alle input:indeterminate { background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round'%3E%3Cpath d='M6 12h12'/%3E%3C/svg%3E"); }
.pa-reiter.ab-auswahl > :not(.ab-leiste) { display:none !important; }
.pa-reiter > .ab-leiste { flex:1; position:static; border-bottom:none; padding:0 0 0 var(--ab-haken-x, 12px); min-height:44px; }
.ab-drueber { position:relative; } .ab-drueber::after { content:'Zum Hochladen loslassen'; position:absolute; inset:0; display:flex; align-items:center; justify-content:center; background:rgba(255,244,244,.85); outline:2px dashed var(--rot); outline-offset:-6px; border-radius:10px; color:var(--rot); font-weight:600; font-size:15px; z-index:6; pointer-events:none; }
.ab-fortschritt { position:sticky; top:0; z-index:5; display:flex; align-items:center; gap:12px; padding:8px 12px; margin-bottom:6px; background:#fff; border:1px solid #eee; border-radius:8px; font-size:13px; }
.ab-fortschritt i { flex:1; height:6px; border-radius:3px; background:#f0f0f0; overflow:hidden; } .ab-fortschritt b { display:block; height:100%; width:0; background:var(--rot); transition:width .2s; }
.ab-handy { display:inline-flex; align-items:center; color:#8a8a8a; margin-right:2px; } .ab-handy svg { width:16px; height:16px; }
.hoch-stand { position:fixed; left:calc(var(--nav, 0px) + 20px); bottom:20px; z-index:60; width:320px; background:#fff; border:1px solid #e3e3e3; border-radius:12px; box-shadow:0 6px 24px rgba(0,0,0,.12); padding:12px 14px; font-size:13.5px; }
.hoch-stand .hs-kopf { display:flex; align-items:center; gap:8px; margin-bottom:8px; } .hoch-stand .hs-kopf b { flex:1; } .hoch-stand .hs-zu { margin-left:auto; border:none; background:none; font-size:15px; color:#666; cursor:pointer; }
.hoch-stand > i { display:block; height:6px; border-radius:3px; background:#f0f0f0; overflow:hidden; } .hoch-stand > i > b { display:block; height:100%; background:var(--rot); transition:width .2s; }
.hoch-stand .hs-fehler { margin-top:10px; color:#a11; } .hoch-stand .hs-fehler ul { margin:4px 0 8px; padding-left:16px; color:#444; max-height:120px; overflow:auto; }
/* Signatur im Verfassen-Fenster (29.10.2026): eingeklappt wie das Zitat, nur zum Ansehen – geändert wird sie in den Einstellungen */
.pv-sig-knopf { width:auto !important; padding:0 10px !important; font-size:12px !important; letter-spacing:0 !important; }
.pv-sig-zeige { padding:6px 18px 10px; font-family:Arial, Helvetica, sans-serif; font-size:14px; line-height:1.45; color:#555; } .pv-sig-zeige img { max-width:100%; height:auto; }
/* Einstellungen → Google: weitere Postfächer (29.10.2026, vorbereitet) */
.pf-weitere { margin-top:14px; } .pf-weiteres { display:flex; align-items:center; gap:10px; padding:8px 0; border-top:1px solid #f0f0f0; } .pf-weiteres > span { flex:1; display:flex; flex-direction:column; } .pf-weiteres small { color:var(--grau); font-size:12px; }
.pf-weiter-fuss { justify-content:flex-start; margin-top:10px; } .pf-weiter-fuss button { display:inline-flex; align-items:center; gap:6px; }
/* Eigene Vorlagen (Snippets, 29.10.2026) in den E-Mail-Vorlagen */
.mv-gruppe { display:flex; align-items:baseline; gap:8px; } .mv-gruppe .klein-text, .mv-neu { text-transform:none; letter-spacing:0; } .mv-neu { margin-left:auto; font-size:13px; }
/* Runde 4 (Dom 29.10.2026): Mail mittig, rechts eine Spalte (Person, Zuständig, Gehört zu, Kommentare wie im Chat); Vorschauspalte in der Listenansicht */
.pe-rumpf { flex:1; min-height:0; display:flex; border-top:1px solid #f0f0f0; }
.pe-koerper { flex:1; min-width:0; display:block; padding:0 28px 18px; border-top:0; }
.pe-lese { max-width:740px; width:100%; margin:0 auto; }
.pe-felder-seite, .pe-felder-vorschau { display:flex; flex-direction:column; gap:8px; padding:0; }
.pe-felder-seite .pe-feld, .pe-felder-vorschau .pe-feld { min-height:52px; }
.pe-seite { display:none; flex-direction:column; min-height:0; padding:0; }
.pe-s-oben { flex:none; max-height:58%; overflow:auto; padding:14px; display:flex; flex-direction:column; gap:10px; } .pe-s-oben:empty { display:none; }
.pe-s-oben .pe-s-block { margin:0; } #pe-s-mehr:empty, #pe-s-bezug:empty, #pe-s-person:empty { display:none; } #pe-s-mehr { display:flex; flex-direction:column; gap:10px; }
@container pemail (min-width:1000px) {
  .pe-seite { display:flex !important; width:330px; flex:none; border-left:1px solid #f0f0f0; background:#fbfbfb; padding:0 !important; }
  .pe-felder-oben { display:none; }
}
@container pemail (max-width:999.98px) {
  .pe-rumpf { flex-direction:column; }
  .pe-seite { display:flex; flex:none; max-height:44%; border-top:1px solid #eee; }
  .pe-s-oben { display:none; }
  .pe-koerper { padding:0 18px 14px; }
}
.pe-bezug-karte { display:flex; flex-direction:column; gap:1px; padding:10px 12px; border:1px solid var(--linie); border-radius:10px; background:#fff; color:var(--schwarz) !important; text-decoration:none !important; font-size:13.5px; }
.pe-bezug-karte small { color:var(--grau); font-size:12px; } .pe-bezug-karte span { color:#555; font-size:12.5px; } .pe-bezug-karte:hover { border-color:#bbb; }
/* Kommentare wie der Chat: Blasen, eigene rechts, Eingabe unten */
.pe-seite .pe-komm { flex:1; min-height:140px; display:flex; flex-direction:column; margin:0; border-top:1px solid #eee; background:#fff; }
.pe-seite .pe-komm-kopf { padding:10px 14px 6px; margin:0; } .pe-komm-n { margin-left:auto; min-width:20px; height:20px; border-radius:10px; background:#f0f0f0; font-size:11.5px; display:inline-flex; align-items:center; justify-content:center; padding:0 6px; color:#555; }
.pe-seite .pe-komm-liste { flex:1; min-height:0; overflow:auto; padding:4px 12px 10px; margin:0; display:flex; flex-direction:column; gap:8px; }
.pe-kn { max-width:92%; gap:8px; } .pe-kn .ch-blase { min-width:0; padding:7px 10px 5px; } .pe-kn .ch-wer { font-size:12.5px; margin-bottom:2px; } .pe-kn .ch-text { font-size:13.5px; line-height:1.45; } .pe-kn .ch-zeit { font-size:11px; color:#777; }
.pe-kn .avatar-kreis { width:26px !important; height:26px !important; font-size:10.5px; } .pe-kn .pe-k-weg { padding:0 0 0 4px; font-size:11px; opacity:0; } .pe-kn:hover .pe-k-weg { opacity:1; }
.pe-komm-leer { color:var(--grau); font-size:13px; padding:8px 2px; }
.pe-seite .pe-k-form { flex:none; padding:8px 10px 10px; border-top:1px solid #f0f0f0; margin:0; } .pe-k-senden { width:36px; height:36px; padding:0 !important; display:inline-flex; align-items:center; justify-content:center; }
/* Vorschauspalte der Listenansicht (mit ↑/↓ sofort sichtbar) */
.pe-vorschau { display:none; }
.pe.pe-breit:not(.pe-offen) { grid-template-columns:minmax(0, 1fr) 360px; }
.pe.pe-breit:not(.pe-offen) .pe-vorschau { display:flex; flex-direction:column; gap:10px; min-height:0; overflow:auto; padding:14px; background:#fff; border:1px solid var(--linie); border-radius:10px; }
.pe-vorschau .pe-s-block { margin:0; } .pe-v-mail { padding:2px 2px 0; } .pe-v-betreff { font-size:15px; font-weight:600; overflow-wrap:anywhere; } .pe-v-zeit { margin:2px 0 8px; display:flex; align-items:center; gap:4px; }
.pe-v-text { font-size:13.5px; line-height:1.5; color:#333; max-height:230px; overflow:hidden; overflow-wrap:anywhere; -webkit-mask-image:linear-gradient(#000 80%, transparent); mask-image:linear-gradient(#000 80%, transparent); }
.pe-v-tasten { margin-top:auto; padding-top:6px; } .pe-v-tasten kbd { display:inline-flex; min-width:18px; height:18px; padding:0 4px; border:1px solid #d9d9d9; border-radius:4px; font:inherit; font-size:11px; align-items:center; justify-content:center; background:#fff; }
@media (max-width:1180px) { .pe.pe-breit:not(.pe-offen) { grid-template-columns:minmax(0, 1fr) 300px; } }
.pe-wer-chips { display:inline-flex; align-items:center; gap:4px; margin:0 6px 0 2px; } .pe-wer-chip { display:inline-flex; align-items:center; gap:5px; height:28px; padding:0 10px 0 5px; border:1px solid #e1e1e1; border-radius:14px; background:#fff; font:inherit; font-size:13px; cursor:pointer; color:#444; }
.pe-wer-chip.an { background:var(--schwarz); border-color:var(--schwarz); color:#fff; } .pe-wer-chip kbd { min-width:16px; height:16px; border-radius:4px; background:rgba(0,0,0,.06); font:inherit; font-size:10.5px; display:inline-flex; align-items:center; justify-content:center; }
.pe-wer-chip.an kbd { background:rgba(255,255,255,.18); } .pe-postfach { margin-left:8px; }
/* Signatur: Bild mit Link (29.10.2026) */
.sig-bild { display:grid; grid-template-columns:120px minmax(0, 1fr); gap:6px 12px; margin:8px 0 2px; align-items:center; }
.sig-bild-vorschau { grid-row:span 2; height:72px; border:1px dashed #cfcfcf; border-radius:10px; background:#fafafa; display:flex; align-items:center; justify-content:center; gap:6px; font:inherit; font-size:12.5px; color:var(--grau); cursor:pointer; overflow:hidden; padding:4px; }
.sig-bild-vorschau img { max-width:100%; max-height:100%; object-fit:contain; } .sig-bild-vorschau:hover { border-color:#999; }
.sig-bild-feld { display:flex; flex-direction:column; gap:2px; font-size:12px; color:var(--grau); margin:0; } .sig-bild-feld input[data-bild-link] { height:32px; }
.sig-bild-feld span { display:flex; align-items:center; gap:8px; } .sig-bild-feld b { color:var(--schwarz); font-size:12.5px; }
/* Entwürfe (29.10.2026): im Verlauf als eigene Zeile, im Verfassen-Fenster Stand und „Entwurf verwerfen“ */
.pe-entwurf-zeile { display:flex; align-items:stretch; margin:8px 0 0; border:1px dashed #e0b25c; border-radius:10px; background:#fffaf0; }
.pe-entwurf-auf { flex:1; min-width:0; display:flex; align-items:center; gap:8px; padding:10px 12px; border:0; background:none; font:inherit; font-size:13.5px; text-align:left; cursor:pointer; color:inherit; }
.pe-entwurf-auf b { color:#a2610a; } .pe-entwurf-auf span { flex:1; min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; color:#555; } .pe-entwurf-auf small { color:var(--grau); }
.pe-entwurf-weg { border:0; background:none; color:#999; padding:0 12px; cursor:pointer; } .pe-entwurf-weg:hover { color:var(--schwarz); }
.pv-stand { margin-left:10px; } .pv-verwerfen { margin-right:6px; }
.pe-s-anlegen { height:auto !important; min-height:32px; padding:6px 12px !important; white-space:normal; text-align:left; line-height:1.3; max-width:100%; }
.pe-s-lief b { margin-left:4px; }
/* Bild-Anhänge als Vorschau-Kacheln (29.10.2026) */
.pe-kacheln { display:grid; grid-template-columns:repeat(auto-fill, minmax(132px, 1fr)); gap:10px; margin:12px 0 4px; }
.pe-kachel { position:relative; display:flex; flex-direction:column; gap:4px; min-width:0; }
.pe-kachel-bild { aspect-ratio:4/3; padding:0; border:1px solid var(--linie); border-radius:10px; background:#f4f4f4; overflow:hidden; cursor:zoom-in; display:flex; }
.pe-kachel-bild img { width:100%; height:100%; object-fit:cover; display:block; } .pe-kachel-bild img:not([src]) { visibility:hidden; } .pe-kachel-bild:hover { border-color:#bbb; }
.pe-kachel-name { font-size:12px; color:var(--grau); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.pe-kachel .pe-abl.klein { position:absolute; top:6px; right:6px; width:28px; height:28px; padding:0; display:inline-flex; align-items:center; justify-content:center; border-radius:8px; background:rgba(255,255,255,.92); }
.pe-neu-knopf { display:inline-flex; align-items:center; gap:6px; height:38px; padding:0 14px; white-space:nowrap; }
.projekt-tabelle .pl-pin { display:inline-flex; vertical-align:-2px; margin-right:6px; color:#111; } /* angepinnt (Feedback #61) */

/* ---------- Plantafel: offene Einsätze links, Kundentermin (Feedback #70/#71, 30.10.2026) ---------- */
main.pt-seite > .pt-rahmen { flex:1 1 auto; min-height:0; display:flex; gap:12px; }
.pt-rahmen > .pt { flex:1 1 auto; min-width:0; }
.pt-offen { flex:0 0 260px; width:260px; display:flex; flex-direction:column; min-height:0; background:#fff; border:1px solid #e3e3e3; border-radius:8px; overflow:hidden; }
.pt-offen[hidden] { display:none; }
.pt-offen.zu { flex:0 0 40px; width:40px; }
.pt-offen-streifen { flex:1; display:flex; flex-direction:column; align-items:center; gap:10px; border:none; border-radius:0; background:none; padding:12px 0; color:#111; }
.pt-offen-streifen span { writing-mode:vertical-rl; transform:rotate(180deg); font-weight:600; font-size:14px; }
.pt-offen-streifen:hover { background:var(--hell); }
.pt-offen-zahl { min-width:20px; height:20px; border-radius:10px; background:var(--rot); color:#fff; font-size:12px; display:flex; align-items:center; justify-content:center; padding:0 5px; box-sizing:border-box; }
.pt-offen-kopf { display:flex; align-items:center; gap:6px; padding:10px 8px 6px 12px; } .pt-offen-kopf b { font-size:15px; } .pt-offen-kopf .rechts { margin-left:auto; }
.pt-offen-suche { display:flex; align-items:center; gap:6px; margin:0 10px 8px; padding:0 10px; height:36px; border:1px solid var(--rahmen); border-radius:8px; color:#888; }
.pt-offen-suche input { border:none; outline:none; flex:1; min-width:0; font-size:14px; padding:0; height:34px; background:none; }
.pt-offen-liste { flex:1 1 auto; min-height:0; overflow-y:auto; padding:0 10px 10px; display:flex; flex-direction:column; gap:8px; }
.pt-of-karte { display:flex; flex-direction:column; gap:2px; padding:8px 10px 8px 14px; border:1px solid var(--linie); border-radius:8px; background:#fff; cursor:grab; user-select:none; touch-action:none; position:relative; font-size:14px; }
.pt-of-karte::before { content:''; position:absolute; left:0; top:0; bottom:0; width:5px; border-radius:8px 0 0 8px; background:var(--of-farbe, #e9e9e9); }
.pt-of-karte:hover { background:var(--hell); } .pt-of-karte b { font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.pt-of-karte > span { color:var(--grau); font-size:13px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.pt-of-unten { display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
.pt-of-leer { margin:6px 2px; }
.pt-of-hand { padding:8px 14px; font-weight:600; }
.pt-balken.kt-unbestaetigt { background-image:repeating-linear-gradient(135deg, rgba(255,255,255,.75) 0 6px, transparent 6px 12px) !important; outline:1.5px dashed #7a5b00; outline-offset:-1.5px; }
.pt-kt { display:inline-block; font-size:11px; font-weight:600; padding:1px 6px; border-radius:6px; background:#fbefc5; color:#7a5b00; margin-right:2px; vertical-align:1px; }
.pt-kt.ok { background:#dcf2e3; color:#1d6b36; }
.pt-kt-feld { box-sizing:border-box; min-height:58px; padding:8px 14px 9px; border:1px solid #e1e1e1; border-radius:12px; background:#fff; gap:6px !important; } .pt-kt-feld > span { font-size:12px; color:#8a8a8a; }
.pt-kt-feld .pt-kt-wahl { display:flex; border:none; border-radius:9px; background:#e9e9e9; padding:3px; gap:2px; } /* wie der Umschalter im Formular (Person/Firma) */
.pt-kt-feld .pt-kt-wahl button { flex:1 1 0; border:none !important; border-radius:7px; padding:6px 4px; font-size:13.5px; color:#5e5e5e; background:none; white-space:nowrap; }
.pt-kt-feld .pt-kt-wahl button.an { background:#fff; color:#131313; font-weight:500; box-shadow:0 1px 2px rgba(0,0,0,.14); }
[data-kt-felder][hidden] { display:none !important; }
/* Problemmeldungen (Feedback #65, 30.10.2026) */
.pm-panel .pm-oben { display:flex; align-items:center; gap:6px; flex-direction:row !important; }
.pm-text { font-size:15px; line-height:1.45; white-space:normal; }
.pm-bilder { display:grid !important; grid-template-columns:repeat(3, 1fr); gap:6px !important; } .pm-bilder img { width:100%; aspect-ratio:1; object-fit:cover; border-radius:8px; cursor:zoom-in; }
.pm-verlauf { gap:0 !important; border-top:1px solid var(--linie); padding-top:10px; } .pm-verlauf > b { margin-bottom:6px; }
.pm-v { display:flex; flex-direction:column; gap:2px; padding:8px 0 8px 12px; border-left:2px solid var(--linie); font-size:14px; }
.pm-v-kopf { font-weight:600; display:flex; gap:8px; align-items:baseline; flex-wrap:wrap; } .pm-v-kopf .klein-text { font-weight:400; }
.pm-bauleiter { display:flex; align-items:center; gap:8px; padding:4px 2px 12px; } .pm-bauleiter > span { flex:1; }
.pm-projekt-tab { margin-top:0; }
/* Textblöcke in den Einstellungen (Anfangs-/Schlusstexte, Dom 30.10.2026): wie im Editor, Zeilen und Leerzeilen bleiben */
.dtb { display:flex; flex-direction:column; gap:8px; } .dtb + .dtb { margin-top:14px; } .dtb-titel { font-size:13.5px; }
.dtb .dok-bloecke { padding-left:22px; } .dtb .dok-block { display:flex; align-items:flex-start; gap:4px; } .dtb .dok-block .dok-text-feld { flex:1; min-width:0; border-color:#e4e4e4; }
.dtb .dok-block .dok-griff { left:-20px; } .dtb .dok-block .icon-knopf { flex:none; margin-top:4px; }
.dtb .dok-block.auto .dok-text-feld, .dtb-lese-block.auto { color:#777; font-style:italic; background:#f6f7f8; }
.dtb-neu { align-self:flex-start; margin-left:22px; }
.dtb-lese { display:flex; flex-direction:column; gap:10px; } .dtb-lese-block.auto { padding:4px 8px; border-radius:6px; font-size:13.5px; align-self:flex-start; }
/* Editor: ⋮ am Textblock statt ✕ (wie plancraft) */
.dok-block > .icon-knopf[data-bmenue] { position:absolute; right:-40px; top:4px; }

/* Problemmeldungen: Dringlichkeit Hoch rot, Mittel orange, Niedrig blau (Beta-Feedback 30.10.2026), letzte Antwort unter dem Status */
.marke.pm-m-hoch { background:#fde3e3; color:#a40f0f; border-color:transparent; } .marke.pm-m-mittel { background:#fff1e0; color:#8a4b00; border-color:transparent; } .marke.pm-m-niedrig { background:#e8eefc; color:#2d4a9a; border-color:transparent; }
.pm-letzte-d { max-width:260px; margin-top:3px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
/* Dom 30.10.2026 (8.135): jeder Text im Editor ist eine Zeile wie eine Position – Anrede, Anfangs-/Schlusstexte, Zahlungsbedingungen, Textpositionen.
   Ein runder Rahmen über die ganze Breite der Positionsliste (wie .dok-pos: unsichtbar, beim Drüberfahren/Schreiben schwarz), Griff links in der Griff-Spalte,
   Text von „Menge“ bis „Preis“ (bricht dort um), ⋮ rechts in der ⋮-Spalte. Breite/Lage der Blöcke oben setzt ausrichten() in dokumente.js. Das PDF bleibt, wie es ist. */
.dok-a4 .dok-texte .dok-bloecke { gap:0; } .dok-a4 .dok-texte .dok-anrede-bl { margin-bottom:10px; }
.dok-a4 .dok-texte .dok-block, .dok-tabelle:not(.brief) .dok-pos.text { display:grid; grid-template-columns:22px 56px 62px 70px minmax(0, 1fr) 96px 104px 30px; gap:8px; align-items:start;
  box-sizing:border-box; padding:16px 10px; border:1px solid transparent; border-radius:8px; background:#fff; font-size:14.5px; cursor:text; }
.dok-a4 .dok-texte .dok-block { margin:0 -46px; } .dok-a4 .dok-texte .dok-anrede-z { margin-bottom:0; }
.dok-a4 .dok-texte .dok-block:hover, .dok-a4 .dok-texte .dok-block:focus-within, .dok-tabelle:not(.brief) .dok-pos.text:hover, .dok-tabelle:not(.brief) .dok-pos.text:focus-within { background:#fff; border-color:#111; }
.dok-a4 .dok-texte .dok-block > .dok-griff, .dok-tabelle:not(.brief) .dok-pos.text > .dok-griff { position:static; grid-column:1; grid-row:1; width:auto; }
.dok-a4 .dok-texte .dok-block:hover > .dok-griff, .dok-tabelle:not(.brief) .dok-pos.text:hover > .dok-griff { opacity:1; }
/* Text von „Menge“ bis „Preis“ (Dom 30.10.2026: „ausrichten an Menge und Preis, wie besprochen“) */
.dok-a4 .dok-texte .dok-block > .dok-text-feld, .dok-tabelle:not(.brief) .dok-pos.text > .dok-pos-text { grid-column:3 / 7; grid-row:1; margin-left:-10px !important; margin-right:-10px !important; /* Kopfzeile hat 10 px weniger Einzug: Text beginnt genau am „M“ von Menge und endet mit „Preis“ */ min-width:0; min-height:0; margin:0; padding:0; border:0; border-radius:0;
  background:none; font:inherit; font-size:14.5px; line-height:1.45; color:inherit; outline:none; overflow-wrap:anywhere; }
.dok-a4 .dok-texte .dok-block > .dok-text-feld:hover, .dok-a4 .dok-texte .dok-block > .dok-text-feld:focus { border:0; background:none; }
.dok-a4 .dok-texte input.dok-anrede.dok-text-feld { width:calc(100% + 20px); height:auto; box-sizing:border-box; } /* mit den −10 px links/rechts wie die anderen Texte */
.dok-a4 .dok-texte .dok-block > .icon-knopf, .dok-tabelle:not(.brief) .dok-pos.text > .icon-knopf { position:static; grid-column:8; grid-row:1; width:26px; height:26px; opacity:0; }
.dok-a4 .dok-texte .dok-block:hover > .icon-knopf, .dok-a4 .dok-texte .dok-block:focus-within > .icon-knopf, .dok-tabelle:not(.brief) .dok-pos.text:hover > .icon-knopf, .dok-tabelle:not(.brief) .dok-pos.text:focus-within > .icon-knopf { opacity:1; }
/* Textpositionen in der Pos.-Liste (Dom 30.10.2026): Text auf den Kanten der Positionen – links an der Spalte „Einheit“, rechts bis zur Spalte „Preis“ (gleiches Raster wie .dok-pos);
   oben und unten bleibt es bei „Menge“ bis „Preis“ */
/* Dom 30.10.2026 (wie plancraft): Textblock genau so breit wie die Beschreibung einer Position – gleiche Spalte, gleiche Kanten */
.dok-tabelle:not(.brief) .dok-pos.text > .dok-pos-text { grid-column:5 / 6; margin-left:0 !important; margin-right:0 !important; }
/* Text bearbeiten mit Speichern (Dom 30.10.2026, wie früher): Kasten um den Text, darunter rechts „Abbrechen“ | „Speichern“; der Text bleibt auf seinen Kanten */
.dok-a4 .dok-texte .dok-block.text-offen, .dok-tabelle:not(.brief) .dok-pos.text.text-offen, .dok-a4 .dok-texte .dok-block.text-offen:hover, .dok-tabelle:not(.brief) .dok-pos.text.text-offen:hover,
.dok-a4 .dok-texte .dok-block.text-offen:focus-within, .dok-tabelle:not(.brief) .dok-pos.text.text-offen:focus-within { border-color:transparent; cursor:default; }
.dok-a4 .dok-texte .dok-block.text-offen > .dok-text-feld, .dok-tabelle:not(.brief) .dok-pos.text.text-offen > .dok-pos-text { outline:1px solid #d4d4d4 !important; outline-offset:8px; border-radius:1px; cursor:text; }
.dok-a4 .dok-texte .dok-block.text-offen > .dok-text-feld:focus, .dok-tabelle:not(.brief) .dok-pos.text.text-offen > .dok-pos-text:focus { outline-color:#9a9a9a !important; }
.text-offen > .dok-text-fuss { grid-row:2; grid-column:3 / 7; margin:16px -18px 0 0; padding-top:0; } .dok-pos.text.text-offen > .dok-text-fuss { grid-column:4 / 6; margin-right:-16px; }
.dok-pos.text .dok-pos-text { cursor:text; } .dok-pos.text .dok-pos-text:empty::before { content:attr(data-leer); color:#b4b4b4; }
.dok-a4 .dok-texte .dok-block.ziel { box-shadow:0 -2px 0 var(--rot); }
/* Einstellungen → Anfangs- & Schlusstexte: dieselbe Zeile (Griff links, Text, ⋮ rechts, Rahmen wie eine Position) */
.dtb .dok-bloecke { padding-left:0; gap:0; }
.dtb .dok-bloecke .dok-block { display:grid; grid-template-columns:22px minmax(0, 1fr) 30px; gap:8px; align-items:start; padding:16px 10px; border:1px solid transparent; border-radius:8px; background:#fff; font-size:14.5px; cursor:text; }
.dtb .dok-bloecke .dok-block:hover, .dtb .dok-bloecke .dok-block:focus-within { border-color:#111; }
.dtb .dok-bloecke .dok-block > .dok-griff { position:static; grid-column:1; width:auto; } .dtb .dok-bloecke .dok-block:hover > .dok-griff { opacity:1; }
.dtb .dok-bloecke .dok-block > .dok-text-feld { grid-column:2; min-width:0; min-height:0; padding:0; border:0; border-radius:0; background:none; font-size:14.5px; line-height:1.45; }
.dtb .dok-bloecke .dok-block.auto > .dok-text-feld { font-style:normal; background:none; color:#8a8a8a; }
.dtb .dok-bloecke .dok-block > .icon-knopf { position:static; grid-column:3; width:26px; height:26px; margin:0; opacity:0; }
.dtb .dok-bloecke .dok-block:hover > .icon-knopf, .dtb .dok-bloecke .dok-block:focus-within > .icon-knopf { opacity:1; }
.dtb-neu { margin-left:40px; }
/* Plantafel → Reiter „Einsätze“: Chips „was ist zu tun“ mit Anzahl (Mehrfachauswahl, Dom 30.10.2026) */
.ei-tun { display:flex; flex-wrap:wrap; gap:8px; margin:0 0 14px; }
.ei-tun button { display:inline-flex; align-items:center; gap:8px; height:36px; padding:0 8px 0 14px; border:1px solid #e1e1e1; border-radius:18px; background:#fff; font:inherit; font-size:14px; font-weight:500; color:#2b2b2b; cursor:pointer; }
.ei-tun button:hover { border-color:#111; }
.ei-tun button.an { background:var(--schwarz); color:#fff; border-color:var(--schwarz); }
.ei-tun-n { min-width:22px; height:22px; padding:0 6px; border-radius:999px; background:#f1f1f1; color:#2b2b2b; font-size:12px; font-weight:600; display:inline-flex; align-items:center; justify-content:center; font-variant-numeric:tabular-nums; }
.ei-tun button.an .ei-tun-n { background:rgba(255,255,255,.2); color:#fff; }
.ei-tabelle tr.ei-offen td:first-child { box-shadow:inset 3px 0 0 #f0d27a; }
.ei-tabelle td .marke + .marke { margin-left:4px; }


/* Chat am Rechner wie in der Handy-App (#56, #58): Haken, online-Punkt, „schreibt …“, Abstimmungen, Anheft-Leiste */
.ch-haken { display:inline-flex; color:#999; margin-left:1px; } .ch-haken .ic { width:15px; height:15px; } .ch-haken.gelesen { color:var(--rot); }
.cl-online { position:relative; display:inline-flex; flex:none; }
.cl-online.an::after { content:''; position:absolute; right:0; bottom:0; width:11px; height:11px; border-radius:50%; background:var(--rot); border:2px solid #fff; box-sizing:border-box; }
.cl-titel span.tippt { color:var(--rot); }
.ch-tippt { padding:6px 16px 0; font-size:12.5px; color:var(--grau); font-style:italic; }
.ch-angeheftet { display:flex; align-items:center; gap:10px; padding:8px 16px; cursor:pointer; max-height:none; overflow:hidden; background:#fff; }
.ch-angeheftet[hidden] { display:none; } .ch-angeheftet:hover { background:#fafafa; } .ch-angeheftet > .ic { color:var(--grau); flex:none; }
.ch-pl-text { min-width:0; display:flex; flex-direction:column; font-size:13px; } .ch-pl-text b { font-size:12px; font-weight:600; color:#444; }
.ch-pl-text span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#333; }
.ch-umfrage { min-width:260px; max-width:380px; padding:2px 0 2px; }
.ch-umfrage .u-frage { font-weight:600; font-size:14.5px; margin-bottom:2px; } .ch-umfrage .u-art { font-size:12px; color:var(--grau); margin-bottom:4px; }
.ch-umfrage .u-opt { display:flex; align-items:flex-start; gap:10px; width:100%; padding:6px 0; background:none; border:none; font:inherit; color:inherit; text-align:left; cursor:pointer; border-radius:0; }
.ch-umfrage .u-kreis { width:18px; height:18px; border-radius:50%; border:1.5px solid #aaa; flex:none; display:flex; align-items:center; justify-content:center; margin-top:1px; background:#fff; }
.ch-umfrage .u-opt.mehr .u-kreis { border-radius:4px; } .ch-umfrage .u-opt.an .u-kreis { background:#111; border-color:#111; color:#fff; } .ch-umfrage .u-kreis .ic { width:12px; height:12px; }
.ch-umfrage .u-opt:hover .u-kreis { border-color:#111; }
.ch-umfrage .u-mitte { flex:1; min-width:0; } .ch-umfrage .u-zeile { display:flex; justify-content:space-between; gap:8px; font-size:14px; } .ch-umfrage .u-zeile b { font-weight:600; font-size:13px; }
.ch-umfrage .u-balken { display:block; height:4px; border-radius:2px; background:#d6d6d6; margin-top:5px; overflow:hidden; } .ch-umfrage .u-balken i { display:block; height:100%; background:#111; border-radius:2px; transition:width .2s; }
.ch-umfrage .u-stimmen { display:block; width:100%; margin-top:4px; padding:7px 0 0; border:none; border-top:1px solid #d6d6d6; border-radius:0; background:none; color:#111; font:inherit; font-size:13px; font-weight:500; cursor:pointer; }
.ch-umfrage .u-stimmen:hover { text-decoration:underline; }
.ch-info-titel { display:flex; align-items:center; gap:6px; font-size:12.5px; font-weight:600; color:var(--grau); margin:14px 0 6px; } .ch-info-titel .ic { width:15px; height:15px; }
.ch-info-zeile { display:flex; align-items:center; gap:10px; padding:5px 0; font-size:14px; }
.ch-info-leer { padding:2px 0 6px; }
.ch-info-vorschau { background:#f2f2f2; border-radius:8px; padding:8px 12px; font-size:13.5px; color:#333; }
.ch-u-eingaben { display:flex; flex-direction:column; gap:8px; } .ch-u-eingaben input { width:100%; box-sizing:border-box; }
.ch-u-mehr { display:flex; align-items:center; gap:8px; margin:14px 0 16px; font-size:14px; cursor:pointer; }
/* ⋮ im Dokument-Editor: alle drei Punkte gefüllt (das Symbol hat nur Ränder – r 1,2 mit Strich 1,9 lässt ein winziges Loch, beim mittleren Punkt fällt es auf halbe Pixel und wirkt leer) */
.dok-app svg circle[r="1.2"], .dtb svg circle[r="1.2"] { fill:currentColor; }
/* Kalkulation (Dom 31.10.2026): Mülleimer und „Tiefer kalkulieren“ ohne Rahmen, beim Darüberfahren rot hinterlegt */
.dok-kalk-k .icon-knopf { border-color:transparent; background:transparent; box-shadow:none; }
.dok-kalk-k .icon-knopf:hover, .dok-kalk-k .icon-knopf:focus-visible { background:#fdeaea; color:var(--rot); border-color:transparent; }
/* Zahl mit Einheit (Skonto, Zahlungsziel, Lohnkostenanteil) wie das Rabatt-Feld (Dom 31.10.2026: „nicht so kastig“): ein Feld, Einheit als leiser Zusatz ohne graue Kachel */
.dok-zahl-einheit { border-radius:8px; border-color:#dcdcdc; }
.dok-zahl-einheit input { width:64px !important; padding-right:4px !important; }
.dok-zahl-einheit.breit input { width:104px !important; }
.dok-zahl-einheit > span { border-left:none; background:#fff; padding:0 12px 0 2px; color:#8a8a8a; }
.dok-zahl-einheit .auswahl { border-left:none; } .dok-zahl-einheit .auswahl-knopf { background:#fff !important; }
.dok-zahl-einheit:focus-within { border-color:#999; }
.dok-einst-reihe .dok-toggle { min-width:150px; }
.ber-info { align-items:start; }
/* Seitenumbruch von Hand im Dokument (Dom 31.10.2026): gestrichelte Linie „Neue Seite“ über der Zeile, entfernen über ⋮ */
.dok-umbruch { display:flex; align-items:center; gap:10px; margin:6px 0; color:#999; font-size:12px; }
.dok-umbruch::before, .dok-umbruch::after { content:''; flex:1; border-top:1px dashed #c8c8c8; }
/* Suche im Chat (#78) */
/* Suche im Chat (Dom 31.10.2026, CI): großes Suchfeld wie in der Filterleiste, liegt über dem Chat (schiebt nichts), Linie über die volle Breite */
.ch-suche { position:absolute; left:0; right:0; z-index:20; padding:10px 14px 0; background:#fff; border-bottom:1px solid #e5e5e5; box-shadow:0 8px 18px rgba(0,0,0,.06); }
.ch-suche[hidden] { display:none; }
.ch-suche .ch-suchfeld { flex:none; width:100%; min-width:0; margin-bottom:10px; } .ch-suche .ch-suchfeld input { width:100%; font-size:15px; }
.ch-suche-treffer { max-height:320px; overflow:auto; margin:0 -14px; } .ch-suche-treffer:empty { display:none; }
.ch-suche-z { display:flex; flex-direction:column; align-items:flex-start; gap:3px; width:100%; text-align:left; border:0; border-top:1px solid #eee; border-radius:0; background:#fff; padding:10px 14px; font-size:14px; }
.ch-suche-z:hover { background:#fafafa; } .ch-suche-z mark { background:#ffe7a3; color:inherit; padding:0 1px; border-radius:2px; }
.ch-gefunden .ch-blase { box-shadow:0 0 0 2px var(--rot); transition:box-shadow .3s; }
/* Automatisierungen (#77) */
.au-karte { max-width:900px; margin-bottom:14px; } .au-karte h2 { margin:0 0 6px; font-size:16px; }
.au-regel { display:grid; grid-template-columns:48px minmax(0, 1fr) auto; gap:12px; align-items:center; padding:12px 0; border-top:1px solid #eee; }
.au-regel:first-of-type { border-top:none; } .au-text { font-size:14px; line-height:1.45; } .au-wenn { color:#888; font-size:12.5px; min-width:38px; display:inline-block; }
.au-tage { display:flex; flex-direction:column; align-items:flex-end; gap:2px; }
.au-weiter { display:grid; grid-template-columns:130px minmax(0, 1fr) 260px; gap:12px; padding:10px 0; border-top:1px solid #eee; font-size:14px; align-items:baseline; }
.au-weiter:first-of-type { border-top:none; }
/* Login-Reiter der Personalakte (Dom 31.10.2026): Konto links, Benachrichtigungen rechts */
.ma-login-raster { display:grid; grid-template-columns:minmax(0, 1fr) minmax(0, 1fr); gap:16px; align-items:start; }
.ma-login-raster .ma-login { margin:0; max-width:none; }
@media (max-width:1100px) { .ma-login-raster { grid-template-columns:1fr; } }
/* Postfächer: wer sieht welches (Dom 31.10.2026) */
.pf-weiteres { flex-wrap:wrap; gap:8px; } .pf-art { width:auto !important; min-width:220px; }
.pf-personen { flex-basis:100%; display:flex; flex-wrap:wrap; gap:6px 16px; padding:6px 0 2px; }
/* Dom 31.10.2026: kein großes „Text hierher ziehen“ mehr – die rote Einfügelinie reicht. Das Feld bleibt als unsichtbare Ablage, beim Darüberziehen eine rote Linie */
body.dok-zieht .dok-block-ziel, .dok-bloecke.ziel-feld .dok-block-ziel { min-height:10px; padding:0; border:none; background:none; font-size:0; color:transparent; position:relative; }
.dok-bloecke.ziel-feld .dok-block-ziel::after { content:''; position:absolute; left:0; right:0; top:4px; height:2px; border-radius:1px; background:var(--rot); }
/* letzter Stand von Chat/Stunden beim Zurück ins Projekt, bis die echten Daten da sind (paOhneZucken) */
.pa-vorher { position:absolute !important; z-index:5; overflow:hidden; pointer-events:none; margin:0 !important; box-sizing:border-box; }
.pa-vorher:not(.pa-karte) { background:#fff; }
/* Dom 31.10.2026 (Aufmaß): „Löschbutton komplett rot“ – nach CI ist Löschen roter Text bzw. ein rotes Zeichen, kein roter Kasten. Rote Fläche nur für button.gefahr als Knopf im Bestätigen-Fenster */
button.icon-knopf.gefahr { background:#fff; border-color:var(--linie, #e5e5e5); color:var(--rot); filter:none; }
button.icon-knopf.gefahr.ohne-rand { border-color:transparent; background:none; }
button.icon-knopf.gefahr:hover { background:#fdf0f0; border-color:#f1c4c4; filter:none; }
button.link.gefahr { background:none; border-color:transparent; color:#5e5e5e; } button.link.gefahr:hover { background:none; text-decoration:underline; filter:none; }
/* Dom 31.10.2026: „Die drei Punkte daneben sind kleiner als der Knopf“ – im Seitenkopf sind alle Knöpfe gleich hoch (CI 40 px, Symbolknöpfe quadratisch) */
:is(.kopf, .pa-kopf, .seitenkopf) :is(.leiste, .rechts) > :is(button, .btn, a.knopf) { box-sizing:border-box; height:40px; display:inline-flex; align-items:center; justify-content:center; }
:is(.kopf, .pa-kopf, .seitenkopf) :is(.leiste, .rechts) > .icon-knopf { width:40px; height:40px; padding:0; }
:is(.kopf, .pa-kopf, .seitenkopf) :is(.leiste, .rechts) > .pa-knopf { height:40px; min-width:40px; }
.ch-suchfeld input::-webkit-search-cancel-button { -webkit-appearance:none; appearance:none; }
.pt-geist.gelandet { opacity:1; outline:none; } /* nach dem Loslassen: Balken steht schon an der neuen Stelle (Dom 31.10.2026) */
/* Zahlungsblock fest im Preisblock (Dom 1.11.2026): kein Griff, kein ⋮, nicht als Text änderbar – Klick öffnet Zahlungsziel/Skonto */
.dok-block.auto.fest { cursor:pointer; } .dok-block.auto.fest:hover { background:none; } .dok-block.auto.fest .dok-text-feld { color:inherit; }
/* Automatisierungen als Editor (Dom 1.11.2026) – Datenblöcke im Aufbau der Vorlagen */
.au-seite { max-width:1100px; display:flex; flex-direction:column; gap:16px; }
.au-kasten .akte-kopf { gap:12px; align-items:baseline; } .au-kasten .akte-kopf .klein-text { margin-left:0; }
.au-z { display:grid; grid-template-columns:48px minmax(0, 1fr) auto; gap:14px; align-items:center; padding:12px 0; border-top:1px solid #eee; }
.au-was { display:flex; flex-direction:column; gap:6px; min-width:0; font-size:14.5px; } .au-was select { width:auto; display:inline-block; margin-left:4px; }
.au-wenn { color:var(--grau); font-weight:500; }
.au-feld { display:flex; flex-direction:column; gap:2px; padding:6px 12px; border:1px solid #e1e1e1; border-radius:10px; background:#fff; max-width:560px; }
.au-feld:focus-within { border-color:#111; } .au-feld span { font-size:12px; color:var(--grau); } .au-feld input { border:none; outline:none; padding:0; height:24px; font-size:15px; font-weight:500; background:none; }
.au-rechts { display:flex; align-items:center; gap:10px; }
.au-tage { display:inline-flex; align-items:center; gap:8px; white-space:nowrap; font-size:13.5px; color:var(--grau); } .au-tage input { width:64px; height:36px; text-align:right; }
.au-wer { height:36px; max-width:210px; }
.au-dazu { margin-top:10px; font-weight:600; } .au-leer { padding:12px 0; border-top:1px solid #eee; }
/* Postfächer als Datenblock (Dom 1.11.2026, Design-Plan) */
.pf-kopf { display:flex; align-items:center; gap:10px; } .pf-kopf h2 { margin:0; } .pf-kopf .rechts { margin-left:auto; display:flex; gap:8px; align-items:center; }
.pf-zeile { display:grid; grid-template-columns:minmax(0, 1fr) auto auto; gap:12px; align-items:center; padding:12px 0; border-top:1px solid #eee; }
.pf-zeile-text b { font-weight:600; } .pf-wer { white-space:nowrap; max-width:280px; overflow:hidden; text-overflow:ellipsis; }
.pf-sig { margin-top:12px; }
.pf-personen-karten { display:flex; flex-wrap:wrap; gap:8px; } .pf-person { border:1px solid #e1e1e1; border-radius:10px; background:#fff; padding:10px 14px; font-weight:500; }
.pf-person.an { border-color:#111; box-shadow:0 0 0 1px #111; } .pf-fenster { min-width:min(520px, 90vw); }
button.link.link-schwarz { color:#111; text-decoration:underline; text-underline-offset:2px; } /* keine roten Links (CI) */

/* ---------- PDF bearbeiten (Dom 1.11.2026, public/pdfeditor.js): hell wie plancraft, Werkzeuge oben in der Mitte, Speichern rechts ---------- */
dialog.pdfb { position:fixed; inset:0; width:100vw; height:100vh; height:100dvh; max-width:none; max-height:none; margin:0; padding:0; border:none; border-radius:0; display:flex; flex-direction:column; overflow:hidden; background:#ececec; }
dialog.pdfb:not([open]) { display:none; }
.pdfb-kopf { flex:none; height:56px; background:#fff; border-bottom:1px solid var(--linie); display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); align-items:center; gap:8px; padding:0 10px; position:relative; }
.pdfb-k-l, .pdfb-k-r, .pdfb-k-m { display:flex; align-items:center; gap:4px; min-width:0; } .pdfb-k-r { justify-content:flex-end; } .pdfb-k-m { gap:8px; }
.pdfb-name { font-weight:600; font-size:15px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; margin-left:4px; }
.pdfb-trenn { width:1px; height:26px; background:var(--linie); margin:0 4px; }
.pdfb-zoomknopf { border:1px solid var(--linie); background:#fff; border-radius:9px; height:36px; padding:0 12px; font-size:14px; font-weight:500; cursor:pointer; white-space:nowrap; color:var(--schwarz); }
.pdfb-zoomknopf::after { content:''; display:inline-block; width:6px; height:6px; border-right:1.5px solid currentColor; border-bottom:1.5px solid currentColor; transform:rotate(45deg); margin:0 0 3px 8px; }
.pdfb-ic { width:40px; height:40px; border:none; background:none; border-radius:9px; color:var(--schwarz); display:flex; align-items:center; justify-content:center; cursor:pointer; padding:0; flex:none; }
.pdfb-ic:hover { background:#efefef; } .pdfb-ic:disabled { color:#c8c8c8; cursor:default; background:none; }
/* Werkzeugleiste wie GoodNotes (Dom 5.11.2026): Werkzeuge mit Namen in der Mitte, Rückgängig und Wiederholen rechts */
.pdfb-wzleiste { flex:none; background:#fff; border-bottom:1px solid var(--linie); display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); align-items:center; padding:4px 10px; position:relative; z-index:3; }
.pdfb-werkzeuge { display:flex; gap:2px; align-items:stretch; }
.pdfb-wz { border:none; background:none; border-radius:10px; min-width:60px; height:50px; padding:0 6px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px; cursor:pointer; color:#333; font-size:11px; font-weight:500; }
.pdfb-wz:hover { background:var(--hell); } .pdfb-wz.an { background:var(--schwarz); color:#fff; }
.pdfb-gr { width:1px; background:var(--linie); margin:8px 5px; }
.pdfb-verlauf { display:flex; justify-content:flex-end; gap:2px; }
/* Leiste des gewählten Werkzeugs: Art, drei Stärken, Farben */
.pdfb-ablage { position:absolute; left:50%; transform:translateX(-50%); top:118px; z-index:6; background:#fff; border:1px solid var(--linie); border-radius:14px; box-shadow:0 8px 28px rgba(0,0,0,.12); padding:8px 10px; display:flex; align-items:center; gap:12px; white-space:nowrap; max-width:calc(100vw - 24px); overflow-x:auto; }
.pdfb-ablage[hidden] { display:none; }
.pdfb-chips { display:flex; gap:3px; background:var(--hell); border-radius:10px; padding:3px; }
.pdfb-chips button { border:none; background:none; border-radius:8px; height:32px; padding:0 10px; font-size:13px; font-weight:500; cursor:pointer; color:#444; }
.pdfb-chips button.an { background:#fff; box-shadow:0 1px 3px rgba(0,0,0,.14); color:var(--schwarz); }
.pdfb-dicken { display:flex; gap:4px; } .pdfb-dicken button { width:34px; height:34px; border-radius:50%; border:1.5px solid transparent; background:none; display:flex; align-items:center; justify-content:center; cursor:pointer; padding:0; }
.pdfb-dicken button.an { border-color:var(--schwarz); } .pdfb-dicken i { display:block; border-radius:50%; }
.pdfb-farben { display:flex; gap:6px; align-items:center; }
.pdfb-farbe { width:26px; height:26px; border-radius:50%; border:2px solid #fff; background:var(--f); box-shadow:0 0 0 1px #ccc; cursor:pointer; padding:0; flex:none; }
.pdfb-farbe.an { box-shadow:0 0 0 2px var(--schwarz); } .pdfb-farbe.plus { background:#fff; color:#555; font-size:17px; line-height:20px; }
.pdfb-gr-wahl { display:flex; align-items:center; gap:6px; font-size:13px; color:var(--grau); } .pdfb-gr-wahl select { padding:4px 8px; font-size:14px; }
/* Stempel-Schnellmenü unten (zuletzt benutzt, eigene, hochladen) */
.pdfb-schnell { position:absolute; left:50%; transform:translateX(-50%); bottom:18px; z-index:6; background:#fff; border:1px solid var(--linie); border-radius:16px; box-shadow:0 10px 30px rgba(0,0,0,.16); padding:8px 8px 8px 12px; display:flex; align-items:center; gap:6px; max-width:calc(100vw - 24px); }
.pdfb-schnell[hidden] { display:none; }
.pdfb-schnell-l { display:flex; align-items:center; gap:8px; overflow-x:auto; min-width:0; padding:2px; }
.pdfb-schnell .pdfb-lab { margin:0; font-size:11px; text-transform:uppercase; letter-spacing:.05em; white-space:nowrap; }
.pdfb-schnell-tr { width:1px; align-self:stretch; background:var(--linie); margin:0 4px; flex:none; }
.pdfb-st { flex:none; border:2px solid currentColor; border-radius:6px; background:#fff; padding:5px 10px; font-weight:700; font-size:12px; letter-spacing:.06em; cursor:pointer; font-family:"Liberation Sans", Helvetica, Arial, sans-serif; height:44px; }
.pdfb-st.bild { border:1px solid var(--linie); padding:3px; width:78px; display:flex; align-items:center; justify-content:center; } .pdfb-st.bild img { max-width:100%; max-height:100%; object-fit:contain; }
.pdfb-st.neu { border:1px dashed #aaa; color:#555; font-weight:500; letter-spacing:0; font-family:inherit; display:flex; align-items:center; gap:4px; }
.pdfb-st:hover { box-shadow:0 0 0 2px rgba(0,0,0,.08); }
.pdfb-mitte { flex:1; min-height:0; display:flex; }
.pdfb-flaeche { flex:1; min-height:0; min-width:0; overflow:auto; }
/* Seitenleiste wie Vorschau: kleine Seiten, ziehen zum Umordnen, drehen, löschen, PDF anhängen */
.pdfb-leiste { flex:none; width:168px; background:#f6f6f6; border-right:1px solid var(--linie); display:flex; flex-direction:column; min-height:0; }
dialog.pdfb.ohne-leiste .pdfb-leiste { display:none; }
.pdfb-daumen { flex:1; overflow:auto; padding:14px 0 8px; display:flex; flex-direction:column; align-items:center; gap:12px; }
.pdfb-daumen-s { display:flex; flex-direction:column; align-items:center; gap:4px; cursor:grab; padding:4px 0; border-top:2px solid transparent; border-bottom:2px solid transparent; }
.pdfb-daumen-s.vor { border-top-color:var(--schwarz); } .pdfb-daumen-s.nach { border-bottom-color:var(--schwarz); } .pdfb-daumen-s.zieht { opacity:.4; }
.pdfb-daumen-bild { position:relative; background:#fff; box-shadow:0 1px 5px rgba(0,0,0,.18); line-height:0; }
.pdfb-daumen-k { position:absolute; top:4px; right:4px; display:none; gap:3px; }
.pdfb-daumen-s:hover .pdfb-daumen-k { display:flex; }
.pdfb-daumen-k button { width:26px; height:26px; border-radius:6px; border:1px solid var(--linie); background:#fff; display:flex; align-items:center; justify-content:center; padding:0; cursor:pointer; color:var(--schwarz); }
.pdfb-daumen-k button:hover { background:var(--hell); }
.pdfb-daumen-nr { font-size:12px; color:var(--grau); }
.pdfb-anhaengen { flex:none; margin:8px 12px 12px; display:flex; align-items:center; justify-content:center; gap:6px; font-size:13.5px; padding:8px 10px; }
.pdfb-formknopf { font-size:14px; padding:7px 12px; white-space:nowrap; } .pdfb-formknopf.an { background:var(--schwarz); color:#fff; border-color:var(--schwarz); }
/* Formularfelder des PDFs über der Seite */
.pdfb-form { position:absolute; inset:0; pointer-events:none; }
.pdfb-form [data-ff] { position:absolute; box-sizing:border-box; pointer-events:auto; margin:0; border:none; border-bottom:1px solid rgba(0,0,0,.25); background:rgba(255,228,51,.18); padding:0 3px; font-family:"Liberation Sans", Helvetica, Arial, sans-serif; color:#111; border-radius:0; min-height:0; }
.pdfb-form textarea[data-ff] { resize:none; line-height:1.2; }
.pdfb-form input[type=checkbox][data-ff], .pdfb-form input[type=radio][data-ff] { padding:0; accent-color:var(--schwarz); }
dialog.pdfb.formular-an .pdfb-form [data-ff] { background:rgba(255,228,51,.42); }
.pdfb-form [data-ff]:focus { outline:1.5px solid var(--schwarz); background:#fff; }
.pdfb-text.leer { outline:1px dashed rgba(0,0,0,.35); background:rgba(255,228,51,.32); min-width:40px; cursor:text; }
dialog.pdfb:not(.formular-an) .pdfb-text.leer { display:none; }
.pdfb-ta { display:block; border:none; outline:none; padding:0; margin:0; background:transparent; font-family:"Liberation Sans", Helvetica, Arial, sans-serif; line-height:1.22; resize:none; overflow:hidden; white-space:pre; min-width:40px; }
.pdfb-hervor i, .pdfb-vorschau.pdfb-hervor i { position:absolute; display:block; mix-blend-mode:multiply; opacity:.85; }
.pdfb-strich { pointer-events:none; } .pdfb-strich svg { position:absolute; inset:0; width:100%; height:100%; overflow:visible; }
.pdfb-strich svg line, .pdfb-strich svg polyline { pointer-events:none; } .pdfb-strich svg line.treffer { stroke:transparent; stroke-width:14px; pointer-events:stroke; cursor:move; }
.pdfb-strich.an { outline:1px dashed var(--schwarz); }
.pdfb-stempel { border:2px solid currentColor; border-radius:6px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2%; font-family:"Liberation Sans", Helvetica, Arial, sans-serif; opacity:.9; overflow:hidden; text-align:center; line-height:1; }
.pdfb-stempel b { letter-spacing:.04em; white-space:nowrap; } .pdfb-stempel small { white-space:nowrap; }
.pdfb-feld.datum { border-style:dotted; border-color:#888; background:rgba(0,0,0,.03); } .pdfb-feld.datum span { color:#666; }
/* kleines Fenster am Unterschriftfeld */
.pdfb-pop { position:absolute; z-index:5; width:270px; background:#fff; border:1px solid var(--linie); border-radius:12px; box-shadow:0 10px 30px rgba(0,0,0,.18); padding:14px; display:flex; flex-direction:column; gap:10px; font-size:14px; cursor:default; }
.pdfb-pop-t { font-weight:600; font-size:15px; }
.pdfb-seg { display:flex; background:var(--hell); border-radius:8px; padding:3px; gap:2px; }
.pdfb-seg button { flex:1; border:none; background:none; padding:6px 4px; border-radius:6px; font-size:13px; cursor:pointer; color:var(--schwarz); }
.pdfb-seg button.an { background:#fff; box-shadow:0 1px 3px rgba(0,0,0,.14); font-weight:600; }
.pdfb-pop select, .pdfb-pop input[type=text] { width:100%; box-sizing:border-box; }
.pdfb-pop-l { display:flex; flex-direction:column; gap:5px; font-size:13px; color:var(--grau); }
.pdfb-pop-c { display:flex; align-items:center; gap:8px; font-size:14px; cursor:pointer; }
.pdfb-pop-fuss { display:flex; justify-content:space-between; align-items:center; margin-top:2px; }
.pdfb-stempel-wahl { display:flex; flex-wrap:wrap; gap:8px; }
.pdfb-stempel-wahl button { border:2px solid var(--f); color:var(--f); background:#fff; border-radius:6px; padding:7px 12px; font-weight:700; letter-spacing:.04em; font-size:13px; cursor:pointer; opacity:.75; }
.pdfb-stempel-wahl button.an { opacity:1; box-shadow:0 0 0 2px var(--schwarz); }
dialog.pdfb-stempel-dlg input[type=text], dialog.pdfb-stempel-dlg input[type=datetime-local] { width:100%; box-sizing:border-box; }
.pdfb-stempel-z { display:flex; align-items:flex-end; gap:14px; } .pdfb-stempel-z .pdfb-lab { flex:1; display:flex; flex-direction:column; gap:6px; } .pdfb-stempel-z .pdfb-pop-c { margin-bottom:8px; }
dialog.pdfb-stempel-dlg .pdfb-lab { display:flex; flex-direction:column; gap:6px; }
.pdfb-meine { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:-6px 0 12px; }
.pdfb-meine-bild { width:100%; height:100%; object-fit:contain; padding:16px; box-sizing:border-box; }
.pdfb-uslassen { margin-right:6px; }
.pdfb-seiten { display:flex; flex-direction:column; align-items:center; gap:18px; padding:28px 28px 80px; width:max-content; min-width:100%; box-sizing:border-box; }
.pdfb-lade { color:var(--grau); padding:30vh 20px 0; text-align:center; }
.pdfb-seite { position:relative; background:#fff; box-shadow:0 2px 14px rgba(0,0,0,.18); flex:none; }
.pdfb-seite canvas { display:block; width:100%; height:100%; }
.pdfb-ebene { -webkit-touch-callout:none; }
.pdfb-ebene { position:absolute; inset:0; user-select:none; -webkit-user-select:none; touch-action:none; }
.pdfb-flaeche:not([data-wz="auswahl"]) .pdfb-ebene { cursor:crosshair; } .pdfb-flaeche[data-wz="text"] .pdfb-ebene { cursor:text; }
.pdfb-el { position:absolute; box-sizing:border-box; cursor:move; }
.pdfb-el.an { outline:1.5px solid var(--schwarz); outline-offset:2px; }
.pdfb-text { white-space:pre; line-height:1.22; font-family:"Liberation Sans", Helvetica, Arial, sans-serif; overflow:visible; padding:0; }
.pdfb-text.bearbeitet { cursor:text; outline:1.5px dashed var(--schwarz); outline-offset:2px; user-select:text; -webkit-user-select:text; min-height:1.22em; }
.pdfb-markieren { background:rgba(255,219,26,.42); mix-blend-mode:multiply; }
.pdfb-schwaerzen { background:#000; }
.pdfb-zug svg, .pdfb-haken svg, .pdfb-vorschau svg { position:absolute; inset:0; width:100%; height:100%; overflow:visible; }
.pdfb-bild img { width:100%; height:100%; object-fit:contain; pointer-events:none; }
.pdfb-feld { border:1.5px dashed var(--rot); background:rgba(228,0,0,.05); border-radius:4px; display:flex; align-items:flex-end; padding:3px 6px; }
.pdfb-feld span { font-size:11px; color:var(--rot); font-weight:600; display:flex; align-items:center; gap:4px; white-space:nowrap; overflow:hidden; }
.pdfb-vorschau { position:absolute; pointer-events:none; box-sizing:border-box; } .pdfb-vorschau.pdfb-rechteck { border:1.5px solid var(--schwarz); } .pdfb-vorschau.pdfb-feld { display:block; }
.pdfb-griff { position:absolute; right:-7px; bottom:-7px; width:12px; height:12px; background:#fff; border:1.5px solid var(--schwarz); border-radius:3px; cursor:nwse-resize; }
.pdfb-weg { position:absolute; right:-10px; top:-10px; width:20px; height:20px; border-radius:50%; border:1px solid var(--linie); background:#fff; color:var(--grau); display:flex; align-items:center; justify-content:center; padding:0; cursor:pointer; box-shadow:0 1px 3px rgba(0,0,0,.15); }
.pdfb-weg:hover { color:var(--schwarz); }
/* Auswahl wie GoodNotes: Rahmen mit Griffen (Ecken rund, Seiten länglich), Drehrad unten, schwarze Leiste darüber */
.pdfb-rahmen { position:absolute; box-sizing:border-box; border:1.5px solid #145CC7; cursor:move; z-index:3; touch-action:none; }
.pdfb-rahmen.schnitt { border:2px solid #fff; outline:1px solid rgba(0,0,0,.5); box-shadow:0 0 0 4000px rgba(0,0,0,.45); }
.pdfb-g { position:absolute; width:16px; height:16px; margin:-8px 0 0 -8px; background:#fff; border:1.5px solid #145CC7; border-radius:50%; box-sizing:border-box; }
.pdfb-g::before { content:''; position:absolute; inset:-10px; } /* größere Fläche für Finger */
.g-nw { left:0; top:0; cursor:nwse-resize; } .g-ne { left:100%; top:0; cursor:nesw-resize; } .g-se { left:100%; top:100%; cursor:nwse-resize; } .g-sw { left:0; top:100%; cursor:nesw-resize; }
.g-n, .g-s { width:24px; height:10px; margin:-5px 0 0 -12px; border-radius:6px; left:50%; cursor:ns-resize; } .g-n { top:0; } .g-s { top:100%; }
.g-e, .g-w { width:10px; height:24px; margin:-12px 0 0 -5px; border-radius:6px; top:50%; cursor:ew-resize; } .g-w { left:0; } .g-e { left:100%; }
.pdfb-drehrad { position:absolute; left:50%; top:100%; margin:26px 0 0 -17px; width:34px; height:34px; border-radius:50%; background:#fff; border:1.5px solid #145CC7; color:#145CC7; display:flex; align-items:center; justify-content:center; cursor:grab; box-sizing:border-box; }
.pdfb-drehrad::before { content:''; position:absolute; left:50%; bottom:100%; width:1.5px; height:18px; background:#145CC7; }
.pdfb-kbar { position:absolute; z-index:4; transform:translate(-50%, calc(-100% - 14px)); background:#111; border-radius:14px; display:flex; align-items:center; gap:1px; padding:5px 6px; box-shadow:0 8px 24px rgba(0,0,0,.25); white-space:nowrap; cursor:default; }
.pdfb-kbar.unten { transform:translate(-50%, 74px); }
.pdfb-kbar button { border:none; background:none; color:#fff; height:42px; min-width:48px; border-radius:9px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:1px; font-size:10px; font-weight:500; cursor:pointer; padding:0 6px; }
.pdfb-kbar button:hover { background:#2b2b2b; } .pdfb-kbar button.weg { color:#ff6b6b; } .pdfb-kbar-tr { width:1px; height:26px; background:#3a3a3a; margin:0 3px; }
.pdfb-gruppe { position:absolute; border:1.5px dashed #145CC7; background:rgba(20,92,199,.05); cursor:move; z-index:3; touch-action:none; }
.pdfb-el.an-m { outline:1px dashed #145CC7; outline-offset:1px; }
/* Striche fangen keine Klicks (sonst lägen sie über Bildern) – getroffen wird über ihre Linie */
.pdfb-zug, .pdfb-strich { pointer-events:none; }
.pdfb-markerbild { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; mix-blend-mode:multiply; overflow:visible; }
.pdfb-rahmenform { pointer-events:none; } .pdfb-rahmenform.kreis, .pdfb-vorschau.pdfb-kreis { border-radius:50%; } .pdfb-vorschau.pdfb-kreis { border:1.5px solid var(--schwarz); }
.pdfb-bild { transform-origin:50% 50%; } .pdfb-bild img { -webkit-touch-callout:none; user-select:none; -webkit-user-select:none; }
.pdfb-bild.schneidet { z-index:2; }
.pdfb-gummi { position:absolute; transform:translate(-50%, -50%); border-radius:50%; border:1.5px solid rgba(0,0,0,.45); background:rgba(255,255,255,.35); pointer-events:none; z-index:5; }
/* „Nur Stift zeichnet“: der Finger blättert auf der Seite (der Stift nie) */
.pdfb-flaeche.nur-stift .pdfb-ebene { touch-action:pan-x pan-y; }
.pdfb-eig-bild { display:flex; align-items:center; justify-content:center; }
/* Einstellungs-Fenster eines Werkzeugs (zweites Antippen, wie GoodNotes): Probe-Strich, Arten als Kacheln, Regler, Schalter */
.pdfb-panel { position:fixed; z-index:9; width:340px; max-width:calc(100vw - 16px); max-height:calc(100vh - 140px); overflow:auto; background:#fff; border:1px solid var(--linie); border-radius:16px; box-shadow:0 14px 40px rgba(0,0,0,.18); padding:14px; display:flex; flex-direction:column; gap:10px; }
.pdfb-panel-t { font-weight:600; font-size:16px; text-align:center; } .pdfb-panel-u { font-size:12px; color:var(--grau); text-transform:uppercase; letter-spacing:.05em; margin-top:4px; }
.pdfb-panel-h { margin:0; font-size:13px; color:var(--grau); text-align:center; }
.pdfb-probe { width:100%; height:80px; color:var(--schwarz); background:var(--hell); border-radius:10px; }
.pdfb-kacheln { display:grid; grid-template-columns:repeat(auto-fit, minmax(90px, 1fr)); gap:6px; }
.pdfb-kachel { border:1.5px solid transparent; background:var(--hell); border-radius:12px; padding:10px 6px; display:flex; flex-direction:column; align-items:center; gap:5px; cursor:pointer; font-size:12.5px; font-weight:500; color:#333; }
.pdfb-kachel.an { border-color:var(--schwarz); background:#fff; color:var(--schwarz); }
.pdfb-gruppe-e { background:var(--hell); border-radius:12px; padding:4px 12px; display:flex; flex-direction:column; }
.pdfb-regler { display:flex; flex-direction:column; gap:4px; padding:8px 0; border-bottom:1px solid #e6e6e6; } .pdfb-regler:last-child { border-bottom:none; }
.pdfb-regler span { display:flex; justify-content:space-between; font-size:12.5px; text-transform:uppercase; letter-spacing:.03em; color:#444; } .pdfb-regler b { font-weight:600; }
.pdfb-regler input { width:100%; accent-color:var(--schwarz); padding:0; border:none; }
.pdfb-sch { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 0; border-bottom:1px solid #e6e6e6; font-size:14px; cursor:pointer; } .pdfb-sch:last-child { border-bottom:none; }
.pdfb-sch input { position:absolute; opacity:0; pointer-events:none; }
.pdfb-sch i { flex:none; width:40px; height:24px; border-radius:12px; background:#d4d4d4; position:relative; transition:background .15s; }
.pdfb-sch i::after { content:''; position:absolute; left:2px; top:2px; width:20px; height:20px; border-radius:50%; background:#fff; box-shadow:0 1px 2px rgba(0,0,0,.2); transition:left .15s; }
.pdfb-sch input:checked + i { background:var(--schwarz); } .pdfb-sch input:checked + i::after { left:18px; }
.pdfb-panel-weg { border:none; background:none; color:var(--rot); text-align:left; padding:10px 0; font-size:14px; cursor:pointer; }
.pdfb-chips.symbole button { width:40px; padding:0; display:flex; align-items:center; justify-content:center; }
/* Textfeld: kein roter Rahmen beim Schreiben, Schriftgröße wie eingestellt (auch am Handy) */
dialog.pdfb .pdfb-ta, dialog.pdfb .pdfb-ta:focus { outline:none !important; border:none !important; box-shadow:none !important; min-height:0; border-radius:0; }
.pdfb-text.bearbeitet { outline:1.5px dashed #145CC7; }
.pdfb-hervor { pointer-events:none; }
/* Griffe am Tablet größer (Finger) */
@media (pointer:coarse) { .pdfb-g { width:24px; height:24px; margin:-12px 0 0 -12px; } .g-n, .g-s { width:36px; height:14px; margin:-7px 0 0 -18px; } .g-e, .g-w { width:14px; height:36px; margin:-18px 0 0 -7px; }
  .pdfb-drehrad { width:40px; height:40px; margin:28px 0 0 -20px; } }
/* Handy (Dom 5.11.2026: „am Handy leichter“): Werkzeuge unten, ohne Namen der Datei, Seitenleiste nur auf Wunsch */
@media (max-width:719px) {
  dialog.pdfb .pdfb-wzleiste { order:3; border-bottom:none; border-top:1px solid var(--linie); grid-template-columns:minmax(0,1fr) auto; padding:4px 4px calc(4px + env(safe-area-inset-bottom)); }
  dialog.pdfb .pdfb-wzleiste > span:first-child { display:none; }
  dialog.pdfb .pdfb-werkzeuge { overflow-x:auto; min-width:0; width:100%; max-width:100%; scrollbar-width:none; justify-self:stretch; } dialog.pdfb .pdfb-wz { min-width:56px; flex:none; } dialog.pdfb .pdfb-gr { display:none; }
  dialog.pdfb .pdfb-mitte { order:2; } dialog.pdfb .pdfb-schnell { bottom:76px; }
  dialog.pdfb .pdfb-ablage { top:auto; bottom:72px; }
  dialog.pdfb .pdfb-name, dialog.pdfb .pdfb-formknopf { display:none; }
  dialog.pdfb .pdfb-kopf { display:flex; padding:0 6px; gap:4px; } dialog.pdfb .pdfb-k-l, dialog.pdfb .pdfb-k-r { flex:none; } dialog.pdfb .pdfb-k-m { flex:1; justify-content:center; }
  dialog.pdfb .pdfb-zoomknopf { padding:0 10px; } dialog.pdfb .pdfb-k-r .primaer { padding-left:12px; padding-right:12px; }
  dialog.pdfb .pdfb-leiste { position:absolute; z-index:7; top:56px; bottom:64px; left:0; box-shadow:4px 0 16px rgba(0,0,0,.12); }
  dialog.pdfb .pdfb-seiten { padding:12px 8px 60px; gap:12px; }
}
.pdfb-lab { display:block; font-size:13px; color:var(--grau); margin:14px 0 6px; }
.pdfb-wahl { display:flex; gap:6px; flex-wrap:wrap; } .pdfb-wahl-k input { position:absolute; opacity:0; pointer-events:none; }
.pdfb-wahl-k span { display:inline-block; padding:8px 12px; border:1px solid var(--linie); border-radius:8px; cursor:pointer; } .pdfb-wahl-k input:checked + span { border-color:var(--schwarz); font-weight:600; }
.pdfb-wahl-k input:focus-visible + span { outline:2px solid var(--schwarz); }
dialog.klein #pdfb-titel, dialog.klein #pdfb-pers, dialog.pdfb-unterschreiben #pu-name { width:100%; box-sizing:border-box; }
.pdfb-fuss { margin:20px 0 0; justify-content:flex-end; } .pdfb-fuss .pdfb-links { margin-right:auto; }
/* Unterschriftfelder in der Dateiansicht */
.pdf-feld { position:absolute; box-sizing:border-box; border:2px dashed var(--rot); background:rgba(228,0,0,.07); border-radius:4px; display:flex; align-items:flex-end; justify-content:flex-start; padding:4px 6px; cursor:pointer; font:inherit; z-index:2; }
.pdf-feld:hover { background:rgba(228,0,0,.13); } .pdf-feld span { font-size:12px; font-weight:600; color:var(--rot); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.pdf-feld.fertig { border:none; background:none; cursor:default; pointer-events:none; }

/* ---------- Zeiten prüfen (Dom 1.11.2026) ---------- */
.zt-stand { font-size:12.5px; font-weight:500; line-height:1.45; color:#4a4844; background:#ebeae7; border-radius:4px; padding:2px 8px; white-space:nowrap; display:inline-flex; align-items:center; gap:3px; }
.zt-stand.gut { background:#e3eedb; color:#3d5e26; } .zt-stand.klaer { background:#f7edc4; color:#6e5410; }
.zt-wahl { width:34px; text-align:center; } .zt-wahl input { width:16px; height:16px; cursor:pointer; }
.zt-auswahl { display:flex; align-items:center; gap:8px; background:#fff; border:1px solid var(--linie); border-radius:10px; padding:8px 12px; margin:10px 0; position:sticky; top:0; z-index:3; }
.zt-auswahl[hidden] { display:none; } .zt-auswahl b { margin-right:6px; } .zt-auswahl button:not(.link) { display:inline-flex; align-items:center; gap:4px; }
.zt-pruefleiste { display:flex; flex-wrap:wrap; align-items:center; gap:10px; padding:0 0 14px; margin-bottom:14px; border-bottom:1px solid var(--linie); }
/* Prüfung im Seitenfenster ruhig wie plancraft (Dom 1.11.2026): „Prüfung: Marke“, rechts Haken und ⋮ */
.zt-pz { font-size:14px; color:var(--grau); display:inline-flex; align-items:center; gap:6px; } .zt-pz-knoepfe { margin-left:auto; display:inline-flex; align-items:center; gap:2px; }
.zt-pz-haken.an { color:var(--gruen); } .zt-ueb:empty { display:none; } .zt-ueb .ueb-notiz { margin-top:0; }
.zt-klaer-notiz { flex-basis:100%; background:#fff4d6; color:#5c4300; border-radius:8px; padding:6px 10px; font-size:13px; margin-top:4px; }
.zpr-leiste { display:flex; align-items:center; gap:12px; margin:14px 0 6px; flex-wrap:wrap; }
.zpr-tag { margin-top:18px; } .zpr-tag h3 { font-size:15px; margin:0 0 8px; }
.zpr-gruppe { padding:0; margin-bottom:12px; overflow:hidden; }
.zpr-kopf { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 16px; border-bottom:1px solid var(--linie); }
.zpr-alle { display:inline-flex; align-items:center; gap:5px; }
.zpr-tabelle { width:100%; border-collapse:collapse; font-size:14px; }
.zpr-tabelle th { text-align:left; font-weight:500; color:var(--grau); font-size:12px; padding:8px 12px; border-bottom:1px solid var(--linie); }
.zpr-tabelle td { padding:9px 12px; border-bottom:1px solid #f1f1f1; vertical-align:top; } .zpr-tabelle tr:last-child td { border-bottom:none; }
.zpr-tabelle .zahl { text-align:right; } .zpr-tabelle tr.klick:hover td { background:var(--flaeche); cursor:pointer; }
.zpr-tabelle td.abw { background:#fff4d6; font-weight:600; color:#5c4300; }
.zpr-tabelle tr.gut td:first-child { box-shadow:inset 3px 0 0 var(--gruen); } .zpr-tabelle tr.klaer td:first-child { box-shadow:inset 3px 0 0 var(--gelb); }
.zpr-knoepfe { white-space:nowrap; text-align:right; width:90px; } .zpr-kw { display:inline-flex; align-items:center; gap:4px; vertical-align:middle; } .zpr-knoepfe-th { text-align:right !important; }
.zpr-k { width:32px; height:32px; border-radius:8px; border:1px solid var(--linie); background:#fff; color:var(--grau); display:inline-flex; align-items:center; justify-content:center; padding:0; margin:0; box-sizing:border-box; flex:none; line-height:0; vertical-align:middle; cursor:pointer; }
.zpr-k:hover { border-color:#bbb; color:var(--schwarz); } .zpr-k.an { background:var(--gruen); border-color:var(--gruen); color:#fff; } .zpr-k.klaer.an { background:var(--gelb); border-color:var(--gelb); color:#fff; }
.zpr-abw { padding:2px 4px 6px; display:flex; flex-wrap:wrap; gap:4px 10px; align-items:center; }

/* ---------- Übersetzung am Rechner (Dom 1.11.2026, public/uebersetzen.js) ---------- */
.ch-blase .ueb-text { margin-top:6px; padding-top:6px; border-top:1px solid rgba(0,0,0,.08); font-size:14px; white-space:pre-wrap; }
.ch-blase .ueb-text small { display:block; font-size:11px; color:var(--grau); margin-bottom:2px; }
/* Übersetzung selbst geschriebener Texte (Zeit-Notizen, Dom 1.11.2026): klein unter dem Original, Knopf schwarz */
.ueb-notiz { margin-top:4px; font-size:13px; color:#333; white-space:pre-wrap; } .ueb-notiz small { display:block; font-size:11px; color:var(--grau); margin-bottom:1px; }
button.link.ueb-knopf { display:block; margin-top:3px; font-size:12px; }
.ueb-sprachen { display:grid; grid-template-columns:repeat(2, 1fr); gap:8px; margin:6px 0 12px; }
.ueb-sprache input { position:absolute; opacity:0; pointer-events:none; }
.ueb-sprache span { display:block; padding:12px 14px; border:1px solid var(--linie); border-radius:10px; cursor:pointer; font-size:15px; }
.ueb-sprache input:checked + span { border-color:var(--schwarz); font-weight:600; } .ueb-sprache input:focus-visible + span { outline:2px solid var(--schwarz); }
.ueb-auto { display:flex; gap:10px; align-items:flex-start; cursor:pointer; } .ueb-auto input { margin-top:3px; width:16px; height:16px; }
.ueb-vorab { display:flex; justify-content:space-between; align-items:center; gap:10px; padding:10px 0; border-top:1px solid var(--linie); }
.abl-us { color:var(--rot); font-weight:600; } .abl-us.fertig { color:var(--gruen); }
.pdfb-pad { margin-bottom:12px; } dialog.pdfb-sign .pdfb-pad canvas.unterschrift { height:220px; } .pdfb-pad .pdfb-meine-bild { height:220px; display:block; border:1px dashed #bbb; border-radius:8px; }
/* Reiter „E-Mails“ in Projekt, Anfrage und Kunde (Dom 1.11.2026: „zu kurz abgeschnitten“): Zeilen wie im Posteingang – Absender und Datum, Betreff, zwei Zeilen Vorschau –
   über die ganze Breite; die geöffnete Mail kommt als Seitenfenster rechts in voller Höhe, die Liste bleibt dahinter stehen */
.pe.pe-im-reiter.pe-breit, .pe.pe-im-reiter.pe-breit:not(.pe-offen) { grid-template-columns:minmax(0, 1fr); } .pe.pe-im-reiter.pe-breit.pe-offen .pe-liste { display:flex; }
.pe-im-reiter.pe-breit .pe-z { grid-template-columns:10px minmax(0, 1fr) auto; align-items:start; column-gap:10px; row-gap:2px; height:auto; padding:12px 18px 12px 12px; }
.pe-im-reiter.pe-breit .pe-z .pkt { grid-column:1; grid-row:1; margin-top:7px; } .pe-im-reiter.pe-breit .pe-z .wer { grid-column:2; grid-row:1; }
.pe-im-reiter.pe-breit .pe-z .zeit { grid-column:3; grid-row:1; min-width:0; } .pe-im-reiter.pe-breit .pe-z .bt { grid-column:2 / 4; grid-row:2; max-width:none; }
.pe-im-reiter.pe-breit .pe-z .vs { grid-column:2 / 4; grid-row:3; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; white-space:normal; line-height:1.45; } .pe-im-reiter.pe-breit .pe-z .vs::before { content:none; }
.pe-im-reiter.pe-breit .pe-z .fuss { display:flex; grid-column:2 / 4; grid-row:4; margin-top:4px !important; } .pe-im-reiter .pe-z .fuss:empty { display:none; }
.pe.pe-im-reiter.pe-breit.pe-offen .pe-mail { position:fixed; inset:0 0 0 auto; z-index:60; width:min(880px, calc(100vw - 280px)); height:100vh; border:none; border-radius:0; box-shadow:-6px 0 30px rgba(0,0,0,.18); }
@media (max-width:900px) { .pe.pe-im-reiter.pe-breit.pe-offen .pe-mail { width:100vw; } }
/* KI beim E-Mail-Schreiben (⌘J, public/kimail.js, Dom 1.11.2026): kleines Feld über dem Text, dezenter Hinweis im Fuß */
.kis-box { display:flex; align-items:center; gap:8px; min-height:44px; padding:0 12px; border:1px solid var(--schwarz); border-radius:10px; background:#fff; box-shadow:0 4px 16px rgba(0,0,0,.08); }
.pv .kis-box { margin:10px 18px 0; } .kis-box .kis-ic { display:inline-flex; color:var(--schwarz); flex:none; } .kis-box.laeuft .kis-ic { animation:kis-puls 1s ease-in-out infinite; }
@keyframes kis-puls { 50% { opacity:.3; } }
.formular .kis-box input.kis-eingabe, .kis-box input.kis-eingabe { flex:1; min-width:0; width:auto; min-height:0; height:40px; border:none !important; box-shadow:none !important; outline:none; padding:0; background:none; font:inherit; font-size:15px; color:var(--schwarz); }
.kis-stand { flex:none; font-size:12px; color:var(--grau); white-space:nowrap; }
.kis-hinweis { display:inline-flex; align-items:center; gap:6px; height:30px; padding:0 8px; border:none; border-radius:6px; background:none; font:inherit; font-size:12.5px; color:var(--grau); cursor:pointer; white-space:nowrap; } .kis-hinweis:hover { background:var(--hell); color:var(--schwarz); }
.kis-hinweis kbd { display:inline-flex; align-items:center; height:20px; padding:0 5px; border:1px solid #d9d9d9; border-bottom-width:2px; border-radius:5px; background:#fff; font:inherit; font-size:11.5px; font-weight:600; color:#444; }
.mail-fenster .form-fuss .kis-hinweis { margin-right:auto; }
.kis-profil { max-width:720px; } .kis-profil-info { margin:0; } .kis-titel { display:block; font-size:13px; color:var(--grau); margin-bottom:8px; } .kis-beispiele { display:flex; flex-direction:column; gap:10px; } .kis-beispiele > button { align-self:flex-start; }
.kis-profil .form-fuss .rechts { margin-left:auto; }
.kis-profil.lesen .auswahl, .kis-profil.lesen #sp-dazu { display:none; }
/* Zeiten exportieren und Stundenkontoauszug (Dom 1.11.2026, wie plancraft) */
.zt-export h3 { font-size: 15px; margin: 18px 0 8px; }
.zt-export h3:first-child { margin-top: 4px; }
.zt-export p { margin: 0 0 4px; }
.zt-export > .haken, .zt-export [data-nurpdf] .haken { display: flex; margin: 0 0 6px; }
.zt-export-spalten { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(7, auto); grid-auto-flow: column; gap: 6px 24px; }
.zt-export .form-fuss { margin-top: 18px; }
.zk-auszug-t { display: block; margin-bottom: 6px; }
#zka label.haken { flex-direction: row; align-items: center; gap: 8px; color: #111; font-size: 14px; margin: 0 0 6px; } #zka label.haken input { width: auto; margin: 0; }
@media (max-width: 560px) { .zt-export-spalten { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; } }
.zt-export-spalten.aus { opacity: .45; }
.zt-export h3 .klein-text { font-weight: 400; margin-left: 4px; }
/* Kein Gummiband-Federn der ganzen Seite (Dom 1.11.2026: „im Projekt zuckt beim Scrollen der ganze Bildschirm“) – Mac-Trackpad und Safari
   ließen die Seite mitfedern, wo es nichts zu scrollen gibt; Listen, Chat und Spalten scrollen weiter selbst */
html, body { overscroll-behavior: none; }
/* Betrieb wählen bei der Anmeldung, Betrieb wechseln im Konto-Menü (Dom 1.11.2026) */
.betrieb-wahl { display: grid; gap: 8px; margin: 12px 0 4px; min-width: min(360px, 80vw); }
.betrieb-wahl .knopf { justify-content: flex-start; text-align: left; }
#betrieb-wechsel:empty { display: none; }
#betrieb-wechsel { border-top: 1px solid var(--linie, #e5e5e5); border-bottom: 1px solid var(--linie, #e5e5e5); margin: 4px 0; padding: 4px 0; }
/* Einstellungen (Dom 1.11.2026, wie plancraft): Zeichen vor jedem Punkt, Sammelseiten mit Teilen untereinander */
nav.einst-menue a { display:flex; align-items:center; justify-content:flex-start; text-align:left; gap:10px; } nav.einst-menue a span { flex:1; min-width:0; text-align:left; }
nav.einst-menue a .ic { flex:none; color:var(--grau); } nav.einst-menue a.aktiv .ic { color:var(--schwarz); }
.einst-gruppe .einst-teil { scroll-margin-top:16px; } .einst-gruppe .einst-teil + .einst-teil { margin-top:34px; padding-top:26px; border-top:1px solid var(--linie); }
.einst-teil-titel { display:flex; align-items:center; gap:10px; font-size:17px; margin:0 0 14px; } .einst-teil-titel .ic { color:var(--grau); }
/* Profil kurz und Meine Verknüpfungen (Dom 1.11.2026) */
.konto-karte { display:flex; align-items:center; gap:16px; } .konto-karte .konto-text { flex:1; min-width:0; } .konto-karte h2 { margin:0 0 4px; }
.mv-titel { display:flex; align-items:center; gap:10px; } .mv-titel .ic { color:var(--grau); }
.mv-zeile { display:flex; align-items:flex-start; gap:12px; padding:12px 0; border-top:1px solid var(--linie); cursor:pointer; }
.mv-zeile .dok-toggle { flex:none; margin-top:1px; } .mv-text { display:flex; flex-direction:column; gap:3px; } .mv-text .klein-text { line-height:1.45; }
/* PDF am Tablet (Dom 2.11.2026): Zurück/Vor und „Nur Stift“ oben rechts, Lasso, festes Format, eigene Stempel */
.pdfb-werkzeuge { position:static; transform:none; margin:0 auto; } /* in der Zeile mittig zwischen Name und rechter Gruppe – überlappt nichts */
.pdfb-verlauf { display:flex; align-items:center; gap:2px; } .pdfb-verlauf + .pdfb-rechts { margin-left:6px; }
.pdfb-ic:disabled { opacity:.3; cursor:default; } .pdfb-ic:disabled:hover { background:none; }
.pdfb-stift { width:auto; gap:5px; padding:0 9px; } .pdfb-stift small { font-size:12.5px; font-weight:600; } .pdfb-stift[hidden] { display:none; }
.pdfb-stift:not(.an) { color:var(--grau); } .pdfb-stift.an { background:var(--hell); }
.pdfb-flaeche.nur-stift .pdfb-ebene { touch-action:pan-x pan-y; }
.pdfb-el.an-m { outline:1px dashed #145CC7; outline-offset:1px; }
.pdfb-gruppe { position:absolute; box-sizing:border-box; border:1.5px dashed #145CC7; background:rgba(20,92,199,.04); cursor:move; touch-action:none; }
.pdfb-flaeche[data-wz="lasso"] .pdfb-el { cursor:crosshair; }
.pdfb-eigene { display:flex; flex-wrap:wrap; gap:10px; align-items:flex-start; }
.pdfb-eig { position:relative; width:112px; display:flex; flex-direction:column; gap:4px; font-size:12.5px; }
.pdfb-eig > span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; padding-right:22px; }
.pdfb-eig-bild { width:112px; height:72px; border:1px solid var(--linie); border-radius:8px; background:#fff; padding:6px; cursor:pointer; display:flex; align-items:center; justify-content:center; }
.pdfb-eig-bild:hover { border-color:var(--schwarz); } .pdfb-eig-bild img { max-width:100%; max-height:100%; object-fit:contain; }
.pdfb-eig-m { position:absolute; right:-4px; bottom:-4px; width:26px; height:26px; border:none; background:none; border-radius:6px; color:var(--grau); cursor:pointer; padding:0; display:flex; align-items:center; justify-content:center; } .pdfb-eig-m:hover { background:var(--hell); color:var(--schwarz); }
.pdfb-eig-neu { width:112px; height:72px; border:1.5px dashed #c4c4c4; border-radius:8px; background:#fff; color:var(--grau); cursor:pointer; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; font-size:12px; padding:4px; }
.pdfb-eig-neu:hover { border-color:var(--schwarz); color:var(--schwarz); }
.pdfb-mu { border:1px dashed #ccc; border-radius:8px; min-height:140px; display:flex; align-items:center; justify-content:center; background:#fff; } .pdfb-mu .pdfb-meine-bild { max-height:200px; } .pdfb-mu p { padding:0 20px; text-align:center; }
@media (pointer:coarse) { .pdfb-griff { width:22px; height:22px; right:-12px; bottom:-12px; border-radius:5px; } .pdfb-weg { width:30px; height:30px; right:-15px; top:-15px; } }
@media (max-width:1000px) and (min-width:720px) { .pdfb-wz { min-width:50px; padding:0 3px; font-size:10px; } .pdfb-werkzeuge { overflow-x:auto; scrollbar-width:none; } .pdfb-name { max-width:22vw; } }
/* Suchtreffer markieren (Dom 2.11.2026, wie plancraft): gelb hinterlegt mit feinem Rand; „Gefunden in …“ unter dem Eintrag */
mark.treffer { background:#fde68a; color:inherit; border:1px solid #f2c94c; border-radius:3px; padding:0 1px; margin:0 -1px; box-decoration-break:clone; -webkit-box-decoration-break:clone; }
.treffer-in { display:block; font-size:12.5px; font-weight:400; color:var(--grau); margin-top:3px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:420px; }
.status-chip.blau { background:#d4ecfb; color:#1c5f78; }
/* Projektliste (Dom 2.11.2026): Status kräftiger und höher, Name und Straße 2 px größer */
.projekt-tabelle .pstatus, .pa-kopf .pstatus { padding:3px 9px; font-weight:500; font-size:13.5px; }
.projekt-tabelle td.pname b { font-size:16px; } .projekt-tabelle td.pname .klein-text { font-size:14px; }
/* Preis anpassen (Dom 2.11.2026, wie plancraft): Rundungsabweichung und Auswahl der Positionen */
.pa-rundung { display:flex; align-items:center; gap:8px; margin:14px 0 0; font-size:14px; } .pa-rundung[hidden] { display:none; }
.pa-rund-pille { background:#dbeafe; color:#1d4ed8; font-size:12.5px; font-weight:600; padding:3px 8px; border-radius:7px; }
.pa-auswahl[hidden] { display:none; } .pa-auswahl > p { margin:8px 0; }
.pa-wahl-liste { display:flex; flex-direction:column; gap:6px; max-height:340px; overflow:auto; padding-right:2px; }
.pa-wahl-z { display:flex; align-items:center; gap:10px; border:1px solid #e3e3e3; border-radius:8px; padding:9px 12px; font-size:14px; cursor:pointer; background:#fff; }
.pa-wahl-z.fett { font-weight:600; } .pa-wahl-z.aus { color:var(--grau); cursor:default; }
.pa-wahl-z input { flex:none; margin:0; width:16px; height:16px; }
.pa-wahl-nr { flex:none; min-width:30px; } .pa-wahl-t { flex:1; min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; } .pa-wahl-b { flex:none; white-space:nowrap; }
/* „Preis anpassen“ als richtiger Knopf (Dom 2.11.2026: „so richtig verblasst … muss schon so sein wie ein Knopf“), wie plancraft: weiß, Rand, dunkle Schrift */
.dok-summe-zeilen button#dok-preis-anpassen { display:inline-flex; align-items:center; gap:7px; background:#fff; border:1px solid #d4d4d4; color:#1f1f1f; font-weight:600; font-size:14px; padding:8px 14px; border-radius:8px; box-shadow:0 1px 2px rgba(0,0,0,.05); cursor:pointer; }
.dok-summe-zeilen button#dok-preis-anpassen:hover { background:#f6f6f6; border-color:#bdbdbd; }
/* Projektakte: Umschalter Baustelle | Büro links neben dem roten Knopf (Dom 2.11.2026) */
.pa-bereich { margin-left:auto; display:inline-flex; background:#f0f0f0; border-radius:9px; padding:3px; gap:2px; flex:none; } .pa-bereich[hidden] { display:none; }
.pa-bereich button { border:none; background:none; border-radius:7px; padding:6px 12px; font-size:14px; font-weight:600; color:#777; cursor:pointer; white-space:nowrap; }
.pa-bereich button.an { background:#fff; color:#111; box-shadow:0 1px 3px rgba(0,0,0,.12); }
.pa-bereich + .pa-reiter-rechts { margin-left:10px; }

/* Belegkette (8.190): Schrittleiste oben in jedem Einkaufsbeleg – vorhanden dunkel mit Haken, fehlend grau, nie rot */
.kette-leiste { display:flex; align-items:center; gap:12px; background:#fff; border:1px solid var(--linie); border-radius:10px; padding:8px 10px 8px 14px; margin:0 0 14px; flex:0 0 auto; }
.kette-schritte { display:flex; flex:1 1 auto; min-width:0; margin:0; padding:0; list-style:none; }
.ks { display:flex; align-items:center; gap:8px; flex:1 1 0; min-width:0; padding:4px 8px 4px 0; position:relative; border-radius:8px; cursor:pointer; }
.ks + .ks { padding-left:26px; } .ks + .ks::before { content:''; position:absolute; left:4px; top:50%; width:16px; border-top:1.5px solid #d5d5d5; }
.ks.da + .ks.da::before { border-top-color:var(--schwarz); }
.ks:hover .ks-text b, .ks:focus-visible .ks-text b { text-decoration:underline; } .ks:focus-visible { outline:2px solid var(--rot); outline-offset:2px; }
.ks-punkt { flex:0 0 auto; width:20px; height:20px; border-radius:50%; border:1.5px dashed #c4c4c4; display:grid; place-items:center; color:#fff; }
.ks.da .ks-punkt { background:var(--schwarz); border:1.5px solid var(--schwarz); }
.ks.ich .ks-punkt { background:var(--rot); border-color:var(--rot); } .ks.ich { cursor:default; } .ks.ich:hover .ks-text b { text-decoration:none; }
.ks-text { display:flex; flex-direction:column; min-width:0; line-height:1.25; }
.ks-text b { font-size:13.5px; font-weight:500; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; } .ks-text span { font-size:12px; color:var(--grau); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ks.leer .ks-text b { color:#9a9a9a; font-weight:400; } .ks.leer .ks-text span { color:#b0b0b0; }
.ks-zahl { display:inline-block; min-width:17px; padding:0 5px; border-radius:9px; background:var(--hell); color:var(--schwarz); font-size:11px; text-align:center; }
.kette-vorschlag { flex:0 0 auto; font-size:13px; color:var(--grau); white-space:nowrap; } .kette-vorschlag button.link { font-size:13px; }
.kette-punkte { display:inline-flex; gap:4px; } .kette-punkte i { width:8px; height:8px; border-radius:50%; border:1.5px solid #c9c9c9; }
.kette-punkte i.an { background:var(--schwarz); border-color:var(--schwarz); } .kette-punkte i.aus { border-style:dashed; border-color:#e0e0e0; }
.lb-pos { border:1px solid var(--linie); border-radius:8px; overflow:auto; max-height:46vh; } .lb-pos th, .lb-pos td { padding:7px 9px; font-size:13.5px; }
@media (max-width:1100px) { .kette-leiste { flex-wrap:wrap; } .kette-schritte { overflow-x:auto; } .ks { flex:0 0 auto; } .kette-vorschlag { white-space:normal; } }
/* Abgleich (8.191): ruhig, wenn alles passt; gelb nur bei echten Abweichungen */
.kette-abgleich { flex:0 0 auto; font-size:12.5px; font-weight:500; padding:4px 10px; border-radius:14px; border:1px solid var(--linie); background:#fff; display:inline-flex; align-items:center; gap:5px; white-space:nowrap; }
.kette-abgleich.gelb { background:#fff3cf; border-color:#f1dc9a; color:#7a5800; } .kette-abgleich.ok { color:var(--gruen); border-color:#cfe8d6; }
.pos-hinweise { margin-top:3px; display:flex; gap:4px; flex-wrap:wrap; }
/* Prüfseite (8.192, Dom 2.11.2026: „dass die alle ähnlich aussehen“): ein Baustein für Angebot, AB, Lieferschein und Rechnung.
   PDF links schmaler (5 : 6), rechts Karten „Belegdaten“ (3 Spalten), „Positionen“ (Artikel fett, Art.-Nr. darunter, Zahlen rechtsbündig), bei Rechnungen „Kostenzuweisung“ */
.ang-pruef, .re-pruef { grid-template-columns:minmax(0, 5fr) minmax(0, 6fr); }
.beleg-rechts { display:flex; flex-direction:column; gap:12px; min-width:0; }
.beleg-karte { background:#fff; border:1px solid var(--linie); border-radius:10px; padding:14px 16px; }
.beleg-titel { display:flex; align-items:center; gap:10px; margin-bottom:10px; } .beleg-titel h2 { margin:0; font-size:16px; } .beleg-titel > :last-child:not(h2) { margin-left:auto; }
.beleg-karte > .formular { grid-template-columns:repeat(3, minmax(0, 1fr)); gap:8px 10px; } .beleg-karte > .formular .b2 { grid-column:span 2; }
.beleg-karte > .formular .feld-gruppe { display:flex; flex-direction:column; gap:4px; font-size:13px; color:var(--grau); }
.beleg-bezug { display:flex; flex-wrap:wrap; gap:6px; align-items:center; margin-top:10px; font-size:12.5px; color:var(--grau); }
.beleg-bezug em { font-style:normal; background:var(--hell); color:var(--schwarz); border-radius:12px; padding:2px 9px; }
.beleg-pos-tab table th { padding:6px 8px; } .beleg-pos-tab td { padding:9px 8px; vertical-align:top; border-bottom:1px solid #f0f0f0; }
.beleg-pos-tab tr:nth-child(odd) td, .ang-pos tr:nth-child(odd):not(.ang-alt) td { background:#fbfbfb; }
.beleg-pos-tab .bp-nr { color:var(--grau); width:38px; } .bp-t { font-weight:500; } .bp-n, .ang-pos .ang-artnr { color:var(--grau); font-size:12.5px; margin-top:2px; white-space:normal; }
.beleg-pos-tab td.zahl { white-space:nowrap; }
.beleg-summe { display:flex; justify-content:flex-end; align-items:baseline; gap:20px; padding:10px 8px 0; font-size:13px; } .beleg-summe b { font-size:15px; }
.ang-pos-titel { padding:12px 14px 0; margin-bottom:6px; }
.ang-kopf.beleg-karte { margin-bottom:12px; }
@media (min-width:1101px) {
  main.feste-seite > #ang-kette, main.feste-seite > #re-kette, main.feste-seite > #lb-kette, main.feste-seite > #best-kette { flex:none; }
  main.feste-seite .beleg-rechts { min-height:0; overflow:auto; padding-bottom:2px; }
}
@media (max-width:1100px) { .beleg-karte > .formular { grid-template-columns:repeat(2, minmax(0, 1fr)); } }
/* Projekt erstellen (Dom 3.11.2026): Kontaktpersonen vor Ort als Zeilen (Name · Rolle · Telefon · ✕), darunter die Suche; Entwurf-Hinweis im Kopf */
.pb-vo { display:grid; grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) minmax(0,1fr) 34px; gap:8px; align-items:center; padding:6px 0; border-bottom:1px solid #f0f0f0; }
.pb-vo-name { display:flex; flex-direction:column; min-width:0; } .pb-vo-name b { font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.pb-vo select, .pb-vo input { height:38px; } #pb-vorort .pb-suche { margin-top:8px; }
.pb-entwurf { margin-right:6px; white-space:nowrap; }
.pa-ap { margin-top:8px; font-size:14px; }
/* Arbeitsstunden (Dom 3.11.2026): über dem Ring, wie viele Stunden übrig bzw. drüber sind */
.pa-ring-spalte { display:flex; flex-direction:column; align-items:center; gap:4px; flex:none; } .pa-rest { font-size:12px; font-weight:600; color:var(--gruen, #1f8a4c); white-space:nowrap; } .pa-rest.ueber { color:var(--rot); }
/* Zahlungsübersicht (Dom 3.11.2026): Projekt-Link schwarz statt rot; Zahlung/Abzug als Eingabezeile direkt im Feld */
.ar-raster a { color:var(--schwarz); text-decoration:none; } .ar-raster a:hover { text-decoration:underline; }
.ar-zeile.ar-edit { grid-template-columns:132px 120px minmax(0,1fr) auto; background:#fafafa; border-radius:8px; padding:6px; margin:4px 0; }
.ar-edit input, .ar-edit select { height:34px; min-width:0; } .ar-edit-mitte { display:flex; gap:6px; min-width:0; } .ar-edit-mitte select { flex:1; } .ar-edit-betrag { text-align:right; }
.ar-edit-knoepfe { display:flex; gap:2px; } .ar-edit-knoepfe .icon-knopf { width:32px; height:32px; } .ar-edit-ok { color:var(--gruen, #1f8a4c); } .ar-edit .gefahr:hover { color:var(--rot); }
/* Baustelle (Dom 3.11.2026, Entwurf „Baustelle mit Karte“): links Karte · Angaben · Kontaktpersonen, Mitte Projekte | Anfragen, rechts der Verlauf über die ganze Höhe */
.bs-seite { display:grid; grid-template-columns:340px minmax(0,1fr) 400px; gap:12px; align-items:start; }
.bs-karte { position:relative; display:block; height:170px; border-radius:12px; overflow:hidden; background:#eef1ea; border:1px solid #e8e8e8; color:var(--schwarz); text-decoration:none; }
.bs-karte img { width:100%; height:100%; object-fit:cover; display:block; }
.bs-pin { position:absolute; left:50%; top:50%; transform:translate(-50%,-80%); color:var(--rot); } .bs-pin svg { width:30px; height:30px; }
.bs-karte-adr { position:absolute; left:8px; bottom:8px; right:8px; background:rgba(255,255,255,.94); border-radius:8px; padding:5px 9px; font-size:13px; font-weight:500; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.bs-karte:hover .bs-karte-adr { text-decoration:underline; }
.bs-person { flex:1; min-width:0; display:flex; flex-direction:column; } .bs-person .pa-kontakt { font-size:13px; }
.bs-liste { padding-top:0; } .bs-liste .pa-reiter { margin:0 -16px 4px; padding:0 16px; }
.bs-zeile { display:grid; grid-template-columns:100px minmax(0,1fr) auto; gap:10px; align-items:center; padding:10px 0; border-top:1px solid #f2f2f2; color:var(--schwarz); text-decoration:none; } .bs-zeile:first-child { border-top:none; }
.bs-zeile span:not(.pstatus):not([class*="phase"]) { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; } .bs-zeile:hover b { text-decoration:underline; } .bs-leer { margin:10px 0; }
.bs-verlauf { position:sticky; top:12px; max-height:calc(100vh - 110px); display:flex; flex-direction:column; } .bs-verlauf-inhalt { overflow:auto; min-height:0; }
@media (max-width:1280px) { .bs-seite { grid-template-columns:320px minmax(0,1fr); } .bs-verlauf { grid-column:1 / -1; position:static; max-height:none; } }
@media (max-width:900px) { .bs-seite { grid-template-columns:1fr; } }
.bs-seite .ck-werte a { color:var(--schwarz); text-decoration:none; } .bs-seite .ck-werte a:hover { text-decoration:underline; }
/* Verlauf im Chat (Dom 3.11.2026): Dokument-Links schwarz, nicht rot */
.ch-sys a, .cv-inhalt a { color:var(--schwarz); text-decoration:none; } .ch-sys a:hover, .cv-inhalt a:hover { text-decoration:underline; }
/* Ein Verlauf je Dokument (Dom 3.11.2026): Fassung als Kopf, darunter ihre Ereignisse */
.dv-vl-fassung { border-bottom:1px solid var(--linie); padding:4px 0 8px; } .dv-vl-fassung:last-child { border-bottom:none; }
.dv-vl-ev { display:grid; grid-template-columns:120px minmax(0,1fr) auto; gap:10px; padding:4px 10px 4px 14px; font-size:13.5px; } .dv-vl-ev > span:first-child { color:var(--grau); }
/* Referenz als Textblock unter dem Einleitungstext wie im PDF (Dom 3.11.2026) */
.dok-texte .dok-block .dok-ref-zeile { grid-column:3 / 7; } .dok-ref-zeile { display:flex; align-items:baseline; gap:5px; min-width:0; } .dok-ref-zeile b { font-weight:600; flex:none; } .dok-a4 .dok-texte .dok-ref-zeile .dok-text-feld { flex:1; margin:0; min-width:0; }

/* Dom 4.11.2026: nirgends ein Ziehgriff unten rechts an Textfeldern – die Felder wachsen mit dem Text */
textarea { resize:none !important; }
.bs-kacheln { position:absolute; inset:0; overflow:hidden; } .bs-kacheln img { position:absolute; width:256px; height:256px; max-width:none; }
/* Dom 4.11.2026: Telefonnummern und E-Mails beim Kunden immer untereinander (die allgemeine Link-Regel der Kästen machte sie inline-block) */
a.kd-li { display:block !important; }

/* Support-Zugang aus der Zentrale (Dom 4.11.2026): schmales rotes Band ganz oben */
#support-band { position:fixed; inset:0 0 auto; z-index:9999; height:30px; display:flex; align-items:center; justify-content:center; gap:14px; background:var(--rot); color:#fff; font-size:13px; padding:0 max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px)); }
#support-band button { border:1px solid rgba(255,255,255,.7); background:none; color:#fff; border-radius:6px; padding:2px 10px; font:inherit; cursor:pointer; }
body.mit-support-band { padding-top:30px; }
/* Drive: Zielordner wählen (Einstellungen → Ablage & Drive) */
.dr-ziel { display: flex; align-items: center; gap: 6px; }
.dr-liste { display: flex; flex-direction: column; gap: 2px; max-height: 50vh; overflow-y: auto; border: 1px solid var(--linie, #e6e4e1); border-radius: 10px; padding: 4px; }
.dr-ordner { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 0; background: none; border-radius: 8px; text-align: left; font: inherit; cursor: pointer; color: inherit; }
.dr-ordner:hover { background: var(--hell, #f4f3f2); } .dr-ordner svg { flex: none; opacity: .6; }
.dr-zurueck { border: 0; background: none; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
.dr-link { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
/* Kosten zuweisen: Suche als Klappe unter der Zeile (Feedback #82) */
.kz-unter { grid-column:1 / -1; width:100%; display:flex; flex-direction:column; border:1px solid var(--linie); border-radius:12px; background:#fff; box-shadow:0 8px 24px rgba(0,0,0,.08); margin:6px 0 10px; overflow:hidden; }
.kz-unter .gs-liste { max-height:300px; flex:none; } .kz-unter .gs-fuss { font-size:12px; }
/* Zoom-Knopf oben mittig (Dom 5.11.2026): Prozentzahl, Klick = Auswahl */
.pdfa-leiste .pdfa-zoom { width:auto; min-width:64px; padding:0 12px; font-size:13px; font-weight:600; letter-spacing:.01em; }
.dv-zoom span { cursor:pointer; border-radius:4px; } .dv-zoom span:hover { background:rgba(255,255,255,.16); }
/* Prüfseite Eingangsrechnung, Entwurf 2 (Dom 5.11.2026) */
/* die Seite selbst scrollt nie (sonst rutscht das Fenster am Ende der PDF mit und springt zurück) – nur PDF und rechte Hälfte, ohne Nachfedern */
@media (min-width:1101px) { html:has(main.feste-seite), body:has(main.feste-seite) { overflow:hidden; overscroll-behavior:none; }
  main.feste-seite .pdfa-seiten, main.feste-seite .beleg-rechts, main.feste-seite .ang-scroll, main.feste-seite .tabelle-scroll { overscroll-behavior:none; } }
/* Teilung genau zwischen der 2. und 3. Spalte des Vorgangs: beide Raster gleich breit, gleicher Abstand */
.ang-pruef.re-pruef { grid-template-columns:minmax(0, 1fr) minmax(0, 1fr); gap:14px; }
.re-pdf { background:#e9e8e6; border:none; border-radius:14px; box-shadow:none; overflow:hidden; } .re-pdf.pdfa, .re-pdf .pdfa { background:#e9e8e6; }
.re-huelle { position:relative; min-width:0; min-height:0; display:flex; flex-direction:column; }
.re-huelle > .re-rechts { flex:1 1 auto; scrollbar-gutter:stable; }
@media (min-width:1101px) { main.feste-seite .re-huelle > .re-rechts { overflow-y:auto; padding-bottom:4px; } }
.re-daten .beleg-titel { gap:8px; } .re-daten .beleg-titel h2 { margin-right:2px; }
.marke.re-ki { background:#eef1fb; color:#3a4f9c; }
.re-geprueft { margin-left:auto; display:inline-flex; align-items:center; gap:7px; font-size:13.5px; font-weight:500; border:1px solid var(--linie); border-radius:8px; padding:4px 10px; cursor:pointer; white-space:nowrap; }
.re-geprueft input { width:16px; height:16px; margin:0; accent-color:#1f7a44; cursor:pointer; } .re-geprueft:has(input:checked) { border-color:#cfe8d6; background:#f1f9f4; color:#1f7a44; }
#re-kreis { display:inline-flex; margin-right:8px; vertical-align:-1px; }
/* Kreis der Zuweisung */
.zuw-kreis { width:15px; height:15px; border-radius:50%; display:inline-block; flex:none; vertical-align:-2px; }
.zuw-kreis.leer { background:#cfcdca; } .zuw-kreis.voll { background:#1f7a44; } .zuw-kreis.teil { background:conic-gradient(#2357d6 0 var(--p), #d6e2fb var(--p) 100%); }
.re-zuw { display:inline-flex; align-items:center; gap:8px; } .fp-eintrag .zuw-kreis { margin-left:auto; width:15px; height:15px; min-height:0; padding:0; align-self:center; flex:none; }
.fp-eintrag > span:has(> .zuw-kreis) { display:flex; align-items:center; gap:10px; flex:1; }
.re-sym { color:var(--grau); display:inline-flex; vertical-align:middle; } td.re-sym { width:1%; padding-left:4px; padding-right:4px; } .re-lupe { color:#8a6d00; }
/* Suche der Kostenzuweisung über der ganzen rechten Hälfte */
.kz-feld { position:absolute; inset:0; z-index:5; display:flex; flex-direction:column; background:#fff; border:1px solid var(--linie); border-radius:12px; box-shadow:0 8px 24px rgba(0,0,0,.08); overflow:hidden; }
.kz-feld-kopf { display:flex; align-items:center; justify-content:space-between; padding:10px 12px 0 16px; } .kz-feld-kopf b { font-size:15px; }
.kz-feld .gs-liste { flex:1 1 auto; min-height:0; max-height:none; overflow:auto; overscroll-behavior:none; } .kz-feld .gs-fuss { font-size:12px; }
/* Zoom-Knopf sitzt oben mittig über dem PDF (Dom 5.11.2026) – dort, wo die PDF-Karte sonst „static“ ist */
main.feste-seite .ang-pdf.pdfa, .ar-detail .ang-pdf.pdfa { position:relative; top:auto; } @media (max-width:1100px) { .ang-pdf.pdfa { position:relative; top:auto; } }
/* Belegsuche (Bestellung, AB, Lieferschein … verknüpfen): gleiche feste Größe wie die Suche mit ⌘K, damit nichts zuckt (Dom 5.11.2026) */
dialog.such-wahl { width:min(880px, calc(100vw - 32px)); max-width:none; height:min(580px, calc(100vh - 80px)); display:flex; flex-direction:column; margin:auto; inset:0; }
dialog.such-wahl:not([open]) { display:none; } dialog.such-wahl > h2, dialog.such-wahl > .leiste { flex:none; }
dialog.such-wahl #wliste { flex:1 1 auto; min-height:0; overflow:auto; overscroll-behavior:none; }
@media (max-width:700px) { dialog.such-wahl { width:calc(100vw - 16px); height:calc(100vh - 40px); } }
/* Lupe „zu prüfen“: beim Drüberfahren ein Kästchen und sofort der Hinweis */
.re-lupe { position:relative; padding:4px; border:1px solid transparent; border-radius:7px; cursor:default; }
.re-lupe:hover { background:#fbf3d6; border-color:#f1dc9a; }
.re-lupe[data-tipp]:hover::after { content:attr(data-tipp); position:absolute; right:0; top:calc(100% + 6px); z-index:20; background:#1e1e1e; color:#fff; font-size:12.5px; font-weight:500; white-space:nowrap; padding:5px 9px; border-radius:7px; pointer-events:none; }

/* Dateiansicht (Dom 5.11.2026): Pfeile fest am linken und rechten Rand statt oben neben dem Namen (wanderten mit der Namenslänge);
   Doppeltippen auf Knöpfe zoomt am Tablet nicht mehr die Seite; Zoom als ein Knopf mit Auswahl */
.dv { touch-action:manipulation; } .dv .dv-knopf, .dv .dv-pfeil, .dv .dv-zoom { touch-action:manipulation; -webkit-user-select:none; user-select:none; }
.dv-pfeil { position:absolute; top:calc(50% + 28px); transform:translateY(-50%); z-index:6; width:48px; height:48px; border-radius:50%; border:none; background:rgba(20,20,20,.62); color:#fff; display:flex; align-items:center; justify-content:center; cursor:pointer; padding:0; }
.dv-pfeil:hover { background:rgba(20,20,20,.85); } .dv-pfeil:disabled { opacity:0; pointer-events:none; } .dv-pfeil.links { left:14px; } .dv-pfeil.rechts { right:14px; }
.dv-zoom span { padding:4px 12px; min-width:64px; }

/* Oberes Feld der Projektseite je Bereich (Dom 5.11.2026, Runde 5) – Büro bleibt so hoch wie bisher, Baustelle hat die Beschreibung darunter */
.pa-uebersicht.modus-buero { grid-template-columns:repeat(3, minmax(0,1fr)); }
.pa-geld-zeile1 { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.pa-uebersicht.modus-baustelle { grid-template-columns:repeat(3, minmax(0,1fr)); grid-template-rows:auto auto auto; }
.pa-uebersicht .g6 { grid-column:3; grid-row:1; } .pa-uebersicht .g7 { grid-column:3; grid-row:2; }
.pa-uebersicht .g8 { grid-column:1 / -1; grid-row:3; min-height:0 !important; }
.pa-seite .pa-uebersicht.modus-baustelle { grid-template-rows:var(--pa-box-h) var(--pa-box-h); } /* zwei feste Reihen wie bisher, die Beschreibung darunter nur so hoch wie nötig */
.pa-besch-unten .pa-text { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; cursor:pointer; } .pa-besch-unten.auf .pa-text { -webkit-line-clamp:unset; }
.pa-geld-zeile { display:flex; align-items:baseline; gap:8px; flex-wrap:wrap; }
.pa-geld-balken { position:relative; height:8px; border-radius:4px; background:#efefef; margin:8px 0 6px; overflow:hidden; }
.pa-geld-balken i { position:absolute; left:0; top:0; bottom:0; border-radius:4px; } .pa-geld-balken .ab { background:#cfd8cf; } .pa-geld-balken .bz { background:#1f7a46; }
.pa-geld-unter { display:flex; justify-content:space-between; gap:8px; flex-wrap:wrap; } .pa-geld-quelle { margin-top:4px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.pa-vo + .pa-vo { margin-top:6px; } .pa-vo b { font-weight:600; }
.pa-fs { display:flex; justify-content:space-between; gap:8px; font-size:13px; } .pa-fs-t { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.pa-fs-balken { height:6px; border-radius:3px; background:#efefef; margin:3px 0 7px; overflow:hidden; } .pa-fs-balken i { display:block; height:100%; background:#141414; border-radius:3px; } .pa-fs-balken i.fertig { background:#1f7a46; }
@media (max-width:1100px) { .pa-uebersicht.modus-buero, .pa-uebersicht.modus-baustelle { grid-template-columns:1fr; } .pa-uebersicht .g6, .pa-uebersicht .g7, .pa-uebersicht .g8 { grid-column:1 !important; grid-row:auto !important; } }

/* Nachkalkulation wie der Entwurf (Dom 5.11.2026, Runde 5) */
.nk-dash.nk-neu { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.5fr) minmax(0,1fr); gap:6px; }
.nk-neu .nk-links { display:flex; flex-direction:column; gap:6px; min-width:0; }
.nk-art { margin:0 0 9px; } .nk-art-kopf { display:grid; grid-template-columns:1fr auto 52px; gap:8px; font-size:13px; align-items:baseline; } .nk-art-kopf b:last-child { text-align:right; }
.nk-art-balken { position:relative; height:10px; border-radius:5px; background:#efefef; margin-top:4px; } .nk-art-balken i { display:block; height:100%; border-radius:5px; }
.nk-art-balken em { position:absolute; top:-3px; bottom:-3px; width:2px; background:#141414; border-radius:1px; }
.nk-zeile { display:flex; justify-content:space-between; gap:8px; font-size:13.5px; padding:2px 0; } .nk-zeile.nk-strich { border-top:1px solid #eee; margin-top:4px; padding-top:6px; }
.nk-dashboard { display:grid; grid-template-columns:minmax(0,1.7fr) minmax(0,1fr); gap:10px; padding:4px 0 10px; } .nk-dk { min-height:0 !important; } .nk-dk > b { font-size:14.5px; }
.nk-svg { display:block; max-height:260px; } .nk-legende-zeile { display:flex; gap:16px; flex-wrap:wrap; }
.nk-kreis { display:flex; align-items:center; gap:14px; flex-wrap:wrap; } .nk-kreis-liste { flex:1; min-width:160px; } .nk-kreis-liste > div { display:grid; grid-template-columns:1fr auto 40px; gap:8px; padding:3px 0; font-size:13.5px; }
.nk-kreis-liste i { display:inline-block; width:10px; height:10px; border-radius:3px; margin-right:7px; vertical-align:0; } .nk-kreis-liste > div > :last-child { text-align:right; }
.nk-abw-zeile { display:grid; grid-template-columns:120px minmax(0,1fr) 110px; gap:10px; align-items:center; padding:6px 0; font-size:13.5px; } .nk-abw-zeile b { text-align:right; }
.nk-abw-achse { position:relative; height:20px; } .nk-abw-achse::before { content:""; position:absolute; left:50%; top:-4px; bottom:-4px; width:1.5px; background:#141414; }
.nk-abw-achse i { position:absolute; top:3px; bottom:3px; border-radius:4px; } .nk-abw-achse i.drueber { background:#d7261e; } .nk-abw-achse i.drunter { background:#1f7a46; }
.nk-abw-fuss { display:flex; justify-content:space-between; padding:4px 130px 0 130px; }
.nk-ma-balken { position:relative; height:18px; background:#f2f2f2; border-radius:5px; min-width:120px; } .nk-ma-balken i { position:absolute; left:0; top:0; bottom:0; background:#141414; border-radius:5px; opacity:.85; }
.nk-ma-balken span { position:relative; padding-left:8px; font-size:12.5px; font-weight:600; color:#fff; mix-blend-mode:difference; line-height:18px; }
@media (max-width:1100px) { .nk-dash.nk-neu, .nk-dashboard { grid-template-columns:1fr; } .nk-abw-fuss { padding:4px 0 0; } }

.nk-dashboard .nk-dk.ganz { grid-column:1 / -1; } .nk-dashboard .nk-svg { max-height:240px; }

.nk-kz-raster { display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:8px; } .nk-kz { background:#f6f6f6; border-radius:8px; padding:8px 10px; display:flex; flex-direction:column; gap:2px; }
.nk-kz b { font-size:17px; } .nk-kz span { font-size:12px; color:var(--grau); } .nk-kz.gruen b { color:#1f7a46; } .nk-kz.rot b { color:#d7261e; } .nk-kz-raster .nk-kz:last-child { grid-column:1 / -1; }
.nk-dashboard .nk-abw-zeile { grid-template-columns:100px minmax(0,1fr) 96px; } .nk-dashboard .nk-abw-fuss { padding:4px 106px 0 110px; }

/* Nachkalkulation (Dom 5.11.2026): oben Gesamtkosten + Stunden | Kostenarten | Wohin das Geld ging; unten Kurve und Abweichung nebeneinander, ohne Scrollen */
.nk-neu .nk-links > .pa-box { flex:1 1 0; min-height:0; }
.nk-neu .nk-kreis-box .nk-kreis svg { width:118px; height:118px; } .nk-neu .nk-kreis-box .nk-kreis { gap:10px; } .nk-neu .nk-kreis-box .nk-kreis-liste { min-width:0; } .nk-neu .nk-kreis-box .nk-kreis-liste > div { font-size:12.5px; grid-template-columns:1fr auto 34px; }
.nk-dashboard.zwei { grid-template-columns:repeat(2, minmax(0,1fr)); } .nk-dashboard.zwei .nk-svg { max-height:210px; }
.nk-unterzeile { margin-top:4px; }

/* Nachkalkulation oben auch bei 1440 px (Dom 5.11.2026): kleinere Zahlen und Ringe, Kreis über der Legende */
.nk-dash.nk-neu { grid-template-columns:minmax(0,1fr) minmax(0,1.25fr) minmax(0,1fr); }
.nk-neu .nk-zahl { font-size:22px; line-height:1.15; white-space:nowrap; } .nk-neu .nk-budget { font-size:12.5px; }
.nk-neu .nk-gesamt-zeile { display:flex; align-items:center; justify-content:space-between; gap:8px; min-width:0; } .nk-neu .nk-gesamt-zeile > div:first-child { min-width:0; }
.nk-neu .nk-ring { width:62px; height:62px; flex:none; } .nk-neu .nk-ring span { font-size:13px; }
.nk-neu .nk-kreis-box .nk-kreis { flex-direction:column; align-items:stretch; gap:6px; } .nk-neu .nk-kreis-box .nk-kreis svg { width:96px; height:96px; align-self:center; }
.nk-neu .nk-kreis-box .nk-kreis-liste > div { padding:1px 0; }
.nk-dashboard.zwei .nk-svg { max-height:230px; }
.nk-neu .nk-ring span { width:50px; height:50px; font-size:13px; }
.nk-neu .nk-kreis-box .nk-kreis-liste > div > span:first-child { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; min-width:0; }

/* Dom 5.11.2026: frischer Behälter je Reiter, ohne eigenes Layout */
.pa-teil { display:contents; }
/* Nachkalkulation: gleiche Höhe wie Büro/Baustelle, größere Ringe, „übrig/drüber“ unter der Zahl, Kreis links mit Legende rechts */
#pa-nk { overflow:hidden; } .nk-dash.nk-neu { height:100%; } .nk-neu > .pa-box, .nk-neu .nk-links { min-height:0; overflow:hidden; }
.nk-neu .nk-ring { width:84px; height:84px; } .nk-neu .nk-ring span { width:66px; height:66px; font-size:15px; }
.nk-neu .nk-gesamt-zeile { flex:1; } .nk-neu .nk-links > .pa-box { display:flex; flex-direction:column; } .nk-neu .nk-diff { display:inline-block; margin-top:6px; }
.nk-neu .nk-kreis-box .nk-kreis { flex-direction:row; align-items:center; gap:12px; } .nk-neu .nk-kreis-box .nk-kreis svg { width:104px; height:104px; flex:none; }
.nk-neu .nk-kreis-box .nk-kreis-liste { flex:1; } .nk-neu .nk-kreis-box .nk-kreis-liste > div { grid-template-columns:minmax(0,1fr) auto; } .nk-neu .nk-kreis-box .nk-kreis-liste > div > span:last-child { display:none; }
.nk-dashboard.zwei { gap:14px; } .nk-dashboard.zwei .nk-svg { max-height:none; height:auto; } .nk-dashboard.zwei .nk-legende-zeile { margin-bottom:4px; }
#pa-nk { margin-top:4px !important; } /* gleiche Höhe wie Büro/Baustelle */
.nk-dash.nk-neu { grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) minmax(0,1fr); } .nk-neu .nk-diff { margin-top:4px; font-size:12px; padding:2px 8px; } .nk-neu .nk-links .pa-box { padding-top:10px; padding-bottom:10px; } .nk-neu .nk-links .nk-budget { white-space:nowrap; }

/* Kreis oben: Name und Prozent, der Betrag beim Drüberfahren (passt auch bei 1440 px) */
.nk-neu .nk-kreis-box .nk-kreis-liste > div > span:nth-child(2) { display:none; } .nk-neu .nk-kreis-box .nk-kreis-liste > div > span:last-child { display:inline; text-align:right; }
.nk-neu .nk-kreis-box .nk-kreis svg { width:96px; height:96px; }
@media (max-width:1700px) { .nk-neu .nk-kreis-box .nk-kreis { flex-direction:column; align-items:stretch; gap:4px; } .nk-neu .nk-kreis-box .nk-kreis svg { width:92px; height:92px; align-self:center; } }
.nk-dashboard.zwei { align-items:stretch; }

/* Dom 5.11.2026 (8.255): Marke „übrig/drüber“ seitlich in der Titelzeile mit Pfeil, Ring etwas größer, Kreis deutlich größer mit Legende daneben */
.nk-dash.nk-neu { grid-template-columns:minmax(0,1.15fr) minmax(0,1fr) minmax(0,1.3fr); }
.nk-neu .pa-box-titel .nk-diff { margin:0 0 0 auto; display:inline-flex; align-items:center; gap:3px; font-size:12.5px; padding:3px 10px 3px 7px; border-radius:999px; white-space:nowrap; box-shadow:inset 0 0 0 1px rgba(31,122,70,.18); }
.nk-neu .pa-box-titel .nk-diff.minus { box-shadow:inset 0 0 0 1px rgba(215,38,30,.22); }
.nk-neu .nk-ring { width:96px; height:96px; } .nk-neu .nk-ring span { width:76px; height:76px; font-size:16px; }
.nk-neu .nk-kreis-box { display:flex; flex-direction:column; } .nk-neu .nk-kreis-box .nk-kreis { flex:1; flex-direction:row !important; align-items:center; gap:16px; min-height:0; }
.nk-neu .nk-kreis-box .nk-kreis svg { width:clamp(140px, 11vw, 190px) !important; height:clamp(140px, 11vw, 190px) !important; flex:none; align-self:center !important; }
.nk-neu .nk-kreis-box .nk-kreis-liste { flex:1; min-width:0; } .nk-neu .nk-kreis-box .nk-kreis-liste > div { font-size:13px; padding:3px 0; }
.nk-dash.nk-neu { grid-template-columns:minmax(0,1.3fr) minmax(0,0.9fr) minmax(0,1.2fr); }
.nk-neu .nk-kreis-box .nk-kreis { gap:12px; } .nk-neu .nk-kreis-box .nk-kreis svg { width:clamp(112px, 8vw, 180px) !important; height:clamp(112px, 8vw, 180px) !important; }
@media (max-width:1600px) { .nk-neu .nk-ring { width:84px; height:84px; } .nk-neu .nk-ring span { width:66px; height:66px; font-size:15px; } .nk-neu .pa-box-titel .nk-diff { font-size:12px; padding:2px 8px 2px 5px; } }
/* schmalere Fenster: Kreis groß oben, Legende darunter als Zeile */
@media (max-width:1700px) { .nk-neu .nk-kreis-box .nk-kreis { flex-direction:column !important; gap:8px; } .nk-neu .nk-kreis-box .nk-kreis svg { width:150px !important; height:150px !important; }
  .nk-neu .nk-kreis-box .nk-kreis-liste { flex:none; width:100%; display:flex; flex-wrap:wrap; justify-content:center; gap:2px 14px; }
  .nk-neu .nk-kreis-box .nk-kreis-liste > div { display:flex; gap:5px; padding:0; font-size:12.5px; } .nk-neu .nk-kreis-box .nk-kreis-liste > div > span:first-child { overflow:visible; } }
@media (max-width:1600px) { .nk-neu .nk-zahl { font-size:20px; } .nk-neu .nk-gesamt-zeile { gap:6px; } }
.nk-neu .nk-ring { width:88px; height:88px; } .nk-neu .nk-ring span { width:70px; height:70px; } .nk-neu .nk-links .pa-box-titel { margin-bottom:4px; }
@media (max-width:1600px) { .nk-neu .nk-ring { width:80px; height:80px; } .nk-neu .nk-ring span { width:63px; height:63px; font-size:14px; } .nk-neu .nk-links .nk-budget { white-space:normal; font-size:12px; } }

/* Nachkalkulation Dashboard (Dom 5.11.2026, Entwurf A): Kurve breit + Kennzahlen im Blick, darunter Säulen und Plus/Minus */
.nk-dash3 { display:flex; flex-direction:column; gap:12px; padding:2px 2px 8px; }
.nk-dash3-oben { display:flex; flex-direction:column; gap:10px; min-height:0; }
.nk-dash3-oben .nk-kurve-box { flex:1; min-height:0; overflow:hidden; display:flex; flex-direction:column; } .nk-dash3 .nk-svg { max-height:none; height:auto; display:block; }
.nk-dk-kopf { display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin-bottom:6px; } .nk-dk-kopf .nk-legende-zeile { margin:0 0 0 auto; }
.nk-kacheln { display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:10px; flex:none; }
.nk-kz { background:#fff; border:1px solid var(--rand, #ececec); border-radius:10px; padding:9px 12px 9px 14px; display:flex; flex-direction:column; position:relative; overflow:hidden; min-width:0; }
.nk-kz::before { content:''; position:absolute; left:0; top:10px; bottom:10px; width:3px; border-radius:0 3px 3px 0; background:#2b2b2b; } .nk-kz.gruen::before { background:var(--gruen, #1f7a46); } .nk-kz.rot::before { background:#d7261e; }
.nk-kz-t { font-size:11px; color:#6a6a6a; font-weight:600; letter-spacing:.05em; text-transform:uppercase; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.nk-kz b { font-size:19px; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; } .nk-kz.rot b { color:#d7261e; } .nk-kz-u { font-size:12px; color:#8a8a8a; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.nk-dash3-unten { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(0,1fr); gap:12px; align-items:stretch; }
.nk-pm { display:flex; flex-direction:column; font-variant-numeric:tabular-nums; }
.nk-pm-z { display:flex; align-items:baseline; justify-content:space-between; gap:12px; padding:7px 2px; border-bottom:1px solid #f1f1f1; font-size:14px; }
.nk-pm-z small { display:block; font-size:11.5px; color:#9a9a9a; } .nk-pm-z b { font-weight:500; white-space:nowrap; } .nk-pm-z.plus b { color:var(--gruen, #1f7a46); } .nk-pm-z.minus b { color:#444; }
.nk-pm-z.summe { border-bottom:none; border-top:2px solid #131313; margin-top:2px; padding-top:9px; font-weight:600; } .nk-pm-z.summe b { font-size:18px; font-weight:600; } .nk-pm-z.summe.rot b { color:#d7261e; } .nk-pm-z.summe.gruen b { color:var(--gruen, #1f7a46); }
.nk-pm-hinweis { margin-top:8px; padding:7px 10px; background:#f7f7f7; border-radius:8px; }
@media (max-width:1600px) { .nk-kz b { font-size:17px; } .nk-kacheln { gap:8px; } }
@media (max-width:1600px) { .nk-kz-t { font-size:10.5px; letter-spacing:.03em; } .nk-kz { padding:8px 10px 8px 12px; } }

/* Dom 5.11.2026 (8.257): Säulen nach Kostenart mit Aufschlüsselung, Abweichung als Tabelle mit Balken links/rechts, Rechnungspunkte */
.nk-saeulen { position:relative; } .nk-saeule { cursor:default; } .nk-saeule:hover rect[fill="transparent"] { fill:rgba(0,0,0,.04); }
.nk-tip { position:absolute; z-index:5; width:200px; background:#fff; border:1px solid #e3e3e3; border-radius:10px; box-shadow:0 8px 24px rgba(0,0,0,.12); padding:9px 11px; font-size:13px; pointer-events:none; }
.nk-tip > div { display:flex; justify-content:space-between; gap:10px; padding:2px 0; font-variant-numeric:tabular-nums; } .nk-tip i, .nk-dash3 .nk-legende-zeile i, .nk-abw-tab i { display:inline-block; width:9px; height:9px; border-radius:2px; margin-right:6px; }
.nk-tip-summe { border-top:1px solid #eee; margin-top:4px; padding-top:5px !important; font-weight:600; }
.nk-dash3 .nk-legende-zeile { display:flex; gap:14px; flex-wrap:wrap; margin-top:4px; }
.nk-abr-punkt { cursor:default; } .nk-abr-punkt:hover circle:last-of-type { r:6; }
.nk-abw-tab .nk-abw-zeile { grid-template-columns:minmax(0,1.1fr) 88px 88px minmax(80px,1.4fr) 96px; font-variant-numeric:tabular-nums; } .nk-abw-tab .nk-abw-zeile > span:nth-child(2), .nk-abw-tab .nk-abw-zeile > span:nth-child(3) { text-align:right; color:#555; }
.nk-abw-tab .nk-abw-zeile.kopf { padding:0 0 4px; border-bottom:1px solid #eee; } .nk-abw-tab .nk-abw-zeile.kopf span:last-child { text-align:right; }
.nk-abw-tab .nk-abw-zeile.summe { border-top:2px solid #131313; margin-top:2px; font-weight:600; } .nk-abw-tab .nk-abw-fuss { padding:4px 104px 0 auto; justify-content:flex-end; gap:24px; }
.nk-abw-tab .nk-abw-zeile { grid-template-columns:minmax(0,1.25fr) minmax(70px,1fr) 88px !important; padding:6px 0; border-bottom:1px solid #f3f3f3; }
.nk-abw-name { display:flex; flex-direction:column; min-width:0; } .nk-abw-name small { font-size:11.5px; color:#9a9a9a; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.nk-abw-tab .nk-abw-zeile.summe { border-bottom:none; } .nk-abw-tab .nk-abw-fuss { display:flex; justify-content:space-between; padding:6px 98px 0 calc(55% - 30px); white-space:nowrap; font-size:11.5px; }
.nk-dash3-unten { grid-template-columns:minmax(0,1fr) minmax(0,1.15fr); }
.nk-abw-tab .nk-abw-zeile.fuss { border-bottom:none; padding-top:2px; color:#9a9a9a; font-size:11.5px; } .nk-abw-fuss2 { display:flex; justify-content:space-between; white-space:nowrap; }
/* Dom 5.11.2026: Mitte (Kostenarten-Balken) breiter, links und rechts schmaler */
.nk-dash.nk-neu { grid-template-columns:minmax(0,0.95fr) minmax(0,1.5fr) minmax(0,0.9fr); }
.nk-neu .nk-kreis-box .pa-box-titel span { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
@media (max-width:2100px) { .nk-neu .nk-kreis-box .nk-kreis { flex-direction:column !important; gap:8px; } .nk-neu .nk-kreis-box .nk-kreis svg { width:150px !important; height:150px !important; }
  .nk-neu .nk-kreis-box .nk-kreis-liste { flex:none; width:100%; display:flex; flex-wrap:wrap; justify-content:center; gap:2px 14px; }
  .nk-neu .nk-kreis-box .nk-kreis-liste > div { display:flex; gap:5px; padding:0; font-size:12.5px; } .nk-neu .nk-kreis-box .nk-kreis-liste > div > span:first-child { overflow:visible; } .nk-neu .nk-kreis-box .nk-kreis-liste > div > span:nth-child(2) { display:none; } }

/* Dokumente auswählen (Dom 5.11.2026): breiter, eine Zeile je Dokument, Auge zum Öffnen, Rechnungen als zweite Gruppe */
.kd-liste { width:510px; max-width:calc(100vw - 16px); padding:0 !important; display:flex; flex-direction:column; max-height:min(560px, 80vh); }
.kd-kopf { display:flex; flex-direction:column; gap:1px; padding:14px 16px 10px; border-bottom:1px solid #eee; }
.kd-rumpf { overflow:auto; padding:4px 8px; }
.kd-liste .kd-zeile { display:grid !important; grid-template-columns:20px minmax(0,1fr) auto 32px; align-items:center; gap:10px; padding:8px 8px; border-radius:8px; border:none !important; cursor:pointer; }
.kd-liste .kd-zeile:hover { background:#f6f6f6; }
.kd-text { display:flex; flex-direction:column; min-width:0; } .kd-text b { font-weight:600; } .kd-titel2 { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; color:#333; font-size:13.5px; }
.kd-betrag { font-variant-numeric:tabular-nums; white-space:nowrap; font-weight:500; } .kd-auge { width:30px; height:30px; color:#666; }
.kd-gruppe { display:flex; flex-direction:column; gap:1px; padding:12px 8px 4px; margin-top:6px; border-top:1px solid #eee; }
.kd-leer { padding:10px 8px; margin:0; } .kd-liste .kd-fuss { border-top:1px solid #eee; padding:10px 14px; }
.kd-kopf { align-items:flex-start; text-align:left; } .kd-gruppe { align-items:flex-start; text-align:left; }
#pa-geld .pa-geld-zeile1 { white-space:normal; }
/* Dom 6.11.2026: Meldungen in der Dokument-Vorschau lesbar (vorher #eee auf Hellgrau – „Dokument öffnet nicht“) */
.dok-app .dv-lade { color:#555; font-size:14px; padding:30vh 20px 0; max-width:640px; margin:0 auto; }

/* Kurzbefehle (Dom 6.11.2026, 8.263): gewählte Zeile, „Gehe zu“ nach g, Übersicht mit ? */
.kb-aktiv { outline:2px solid #131313; outline-offset:-2px; background:#f6f6f6 !important; }
tr.kb-aktiv > td { background:#f6f6f6 !important; }
.kb-gehe { position:fixed; left:50%; bottom:24px; transform:translateX(-50%); z-index:9000; background:#fff; border:1px solid #e3e3e3; border-radius:12px; box-shadow:0 12px 32px rgba(0,0,0,.14); padding:12px 14px; max-width:min(720px, calc(100vw - 32px)); }
.kb-gehe-titel { font-size:11px; font-weight:600; letter-spacing:.06em; text-transform:uppercase; color:#6a6a6a; margin-bottom:8px; }
.kb-gehe-liste, .kb-seiten { display:flex; flex-wrap:wrap; gap:6px 16px; font-size:13px; }
.kb-gehe-liste span, .kb-seiten span { display:inline-flex; align-items:center; gap:6px; white-space:nowrap; }
kbd { display:inline-flex; align-items:center; justify-content:center; min-width:20px; height:20px; padding:0 5px; border:1px solid #dcdcdc; border-bottom-width:2px; border-radius:5px; background:#fafafa; font:600 11px/1 inherit; color:#131313; }
.kb-dialog { width:min(760px, calc(100vw - 32px)); }
.kb-dialog h3 { font-size:12px; font-weight:600; letter-spacing:.06em; text-transform:uppercase; color:#6a6a6a; margin:14px 0 6px; }
.kb-spalten { display:grid; grid-template-columns:1fr 1fr; gap:0 28px; } @media (max-width:640px) { .kb-spalten { grid-template-columns:1fr; } }
.kb-z { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:6px 0; border-bottom:1px solid #f1f1f1; font-size:14px; } .kb-z > span:last-child { display:inline-flex; gap:4px; }
/* Zeiten (6.11.2026, Dom, Vorbild plancraft): je Tag ein Block mit Tageskopf (Datum + Wochentag, rechts Arbeit/Fahrt), zwischen den Tagen ein deutlicher Abstand */
.zt-tabelle.zt-nach-tagen tr.zt-tagkopf td { background:var(--hell); height:auto; padding:10px 14px; border-top:none; border-bottom:1px solid var(--linie); cursor:default; }
.zt-tabelle.zt-nach-tagen tbody.zt-tag + tbody.zt-tag tr.zt-tagkopf td { border-top:14px solid var(--flaeche); box-shadow:inset 0 1px 0 var(--linie); }
.zt-tabelle.zt-nach-tagen tr.zt-tagkopf:hover td { background:var(--hell); }
.zt-tagkopf-zeile { display:flex; align-items:baseline; justify-content:flex-start; gap:18px; position:sticky; left:14px; width:max-content; } /* Summe direkt neben dem Datum – rechts wurde sie bei breiter Tabelle abgeschnitten (6.11.2026) */ .zt-tagkopf-zeile b { font-size:14px; font-weight:600; color:#2b2b2b; }
/* Mehrfachauswahl als runder Kasten wie die übrigen Kästen (12px rund, Rahmen linie, Schatten wie Menüs); „Löschen“ rot ganz rechts */
.zt-auswahl { border-radius:12px; border:1px solid var(--linie); box-shadow:0 18px 44px rgba(0,0,0,.18); padding:8px 12px; }
.zt-auswahl > .rechts { margin-left:auto; } .zt-auswahl button.zt-weg-alle { color:var(--rot); font-weight:500; } .zt-auswahl button.zt-weg-alle:hover { color:var(--rot-dunkel); }
/* Seitenfenster: Prüfung als kleine Pille rechts neben den Reitern Details · Historie, Klick = Auswahlmenü */
.zt-reiter .pa-reiter-rechts { align-self:center; }
button.pstatus.zt-pz-pille { border:none; display:inline-flex; align-items:center; gap:4px; cursor:pointer; font-family:inherit; } button.pstatus.zt-pz-pille:hover { filter:brightness(.96); }
.zt-klaer-oben { margin:0 0 14px; }
/* Mehrfachauswahl im Posteingang (Dom 6.11.2026: „mehrere Sachen auswählen … wie bei Superhuman“): angekreuzte Zeilen leicht rot mit Strich links */
.pe-z.gew, .pe-z.gew.an { background:#fbeeee; box-shadow:inset 3px 0 0 var(--rot); }
/* 6.11.2026: der Videoplayer (.vs, seit 8.210) färbte die Vorschauzeile im Posteingang schwarz – dort gilt wieder die schlichte Zeile */
.pe-z .vs { position:static; display:block; max-width:none; max-height:none; border-radius:0; background:none; }
/* Dom 6.11.2026: „Zuständiger bei Ressourcen/Werkstatt falsch formatiert“ – die Auswahl im Kasten hatte einen zweiten Rahmen; jetzt ein Kasten: Kürzel · „Zuständig“ über dem Namen · Pfeil */
.ws-wer { height:44px; padding:0 8px 0 6px; gap:8px; }
.ws-wer > span:last-child { gap:1px; }
.ws-wer .auswahl { min-width:120px; display:block; }
.ws-wer .auswahl-knopf { border:none !important; background:none !important; box-shadow:none !important; padding:0 !important; height:auto !important; min-height:0 !important; font-weight:600; font-size:14px; gap:6px; }

/* Neuer Projekt-Kopf (Schalter „projektkopf“, Dom 7.11.2026, Entwurf Runde 3c): Zahl links, Ring rechts mittig mit gleich viel Luft oben und unten,
   Etikett oben rechts ohne Pfeil, Fortschritt in Prozent, „Wohin das Geld ging“ in Etiketten-Pastell mit Liste rechts daneben */
.pa-box:has(.pk-zeile) { display:flex; flex-direction:column; } .pa-box:has(.pk-zeile) .pa-box-titel { margin-bottom:0; }
.pa-box:has(.pk-zeile) > div:not(.pa-box-titel) { flex:1; display:flex; }
.pk-zeile { flex:1; display:flex; align-items:center; justify-content:space-between; gap:10px; min-width:0; }
.pk-links { min-width:0; } .pk-zahl { font-size:24px; font-weight:600; letter-spacing:-.4px; line-height:1.15; white-space:nowrap; }
.pk-unter { font-size:13.5px; color:#555; margin-top:2px; } .nk-links .pk-zahl { font-size:21px; }
.pk-ring { --p:0; width:72px; height:72px; border-radius:50%; flex:none; margin-right:4px; display:flex; align-items:center; justify-content:center;
  background:conic-gradient(var(--gruen) calc(var(--p) * 1%), #ececec 0); }
.pk-ring.rot { background:conic-gradient(var(--ampelrot) calc(var(--p) * 1%), #ececec 0); }
.pk-ring span { width:57px; height:57px; border-radius:50%; background:#fff; display:flex; align-items:center; justify-content:center; font-weight:600; font-size:15px; }
.pa-box-titel .pk-etikett { margin-left:auto; white-space:nowrap; margin-top:0; }
.pk-fs { display:flex; align-items:baseline; gap:8px; } .pk-fs b { font-size:24px; font-weight:600; }
.pk-balken { height:8px; border-radius:4px; background:#ececec; overflow:hidden; margin:8px 0 4px; } .pk-balken i { display:block; height:100%; background:var(--gruen); border-radius:4px; }
.pk-nk .nk-links > .pa-box { display:flex; flex-direction:column; }
.pk-kreis { display:flex; align-items:center; gap:14px; height:100%; min-width:0; }
.pk-kreis-svg { width:112px; height:112px; flex:none; }
.pk-kreis-liste { flex:1; min-width:0; display:flex; flex-direction:column; gap:5px; }
.pk-kreis-liste > div { display:grid; grid-template-columns:minmax(0, 1fr) auto 36px; align-items:center; gap:8px; font-size:13px; }
.pk-kreis-liste b { text-align:right; font-weight:600; } .pk-betrag { color:#555; white-space:nowrap; }
.pk-tag { justify-self:start; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; border-radius:4px; padding:1px 7px; font-size:12.5px; font-weight:500; }
.nk-kreis-box:has(.pk-kreis) { display:flex; flex-direction:column; } .nk-kreis-box:has(.pk-kreis) > .pk-kreis { flex:1; }
/* neuer Kopf, Nachkalkulation: rechter Kasten breiter, damit die Liste neben den Ring passt (Dom 7.11.2026: „rechts neben dem Ring und nicht so unten drunter“) */
.nk-dash.nk-neu.pk-nk { grid-template-columns:minmax(0,1.05fr) minmax(0,1fr) minmax(0,1.3fr); }
@media (max-width:1100px) { .nk-dash.nk-neu.pk-nk { grid-template-columns:1fr; } }
.pk-nk .pa-box-titel > span:not(.pk-etikett) { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.pk-nk .pk-etikett { font-size:12px; padding:2px 7px; }
.pk-nk .pk-ring { width:66px; height:66px; } .pk-nk .pk-ring span { width:52px; height:52px; font-size:14px; }
.pk-kreis-liste { container-type:inline-size; }
@container (max-width:170px) { .pk-kreis-liste > div { grid-template-columns:minmax(0,1fr) 36px; } .pk-betrag { display:none; } }
.nk-dash.nk-neu.pk-nk { grid-template-columns:minmax(0,1.1fr) minmax(0,0.95fr) minmax(0,1.3fr); }
@media (max-width:1100px) { .nk-dash.nk-neu.pk-nk { grid-template-columns:1fr; } }
.pk-nk .nk-links .pa-box-titel > svg { display:none; } /* Platz für „Gesamtkosten“ und das Etikett in einer Zeile */
.pk-nk .pk-kreis-svg { width:100px; height:100px; } .pk-nk .pk-kreis { gap:12px; }
/* Dom 7.11.2026 (Runde 2): Ring in der Nachkalkulation größer, unten gleich viel Luft wie oben vom Etikett zum Rand;
   „Wohin das Geld ging“: Ring größer, Lohn/Material dicht rechts daneben statt großer Lücke zur Summe */
.pk-nk .nk-links > .pa-box { padding:12px 16px; }
.pk-nk .nk-links .pk-zeile { min-height:0; align-items:stretch; margin-top:6px; }
.pk-nk .nk-links .pk-links { align-self:center; }
.pk-nk .pk-ring { width:auto; height:auto; aspect-ratio:1; align-self:stretch; max-height:110px; min-height:60px; margin-right:0; }
.pk-nk .pk-ring span { width:79%; height:79%; font-size:16px; }
.pk-nk .pk-kreis { justify-content:flex-start; gap:18px; }
.pk-nk .pk-kreis-svg { width:150px; height:150px; }
.pk-kreis-liste { flex:none; gap:8px; }
.pk-kreis-liste > div { grid-template-columns:auto auto auto; column-gap:14px; justify-content:start; }
.pk-kreis-liste .pk-betrag { text-align:right; }
@container (max-width:170px) { .pk-kreis-liste > div { grid-template-columns:auto auto; } }
.pk-kreis-liste { container-type:normal; display:grid; grid-template-columns:auto auto auto; column-gap:14px; row-gap:8px; align-items:center; }
.pk-kreis-liste > div { display:contents; }
.pk-nk .nk-kreis-box { container-type:inline-size; }
@container (max-width:380px) { .pk-nk .pk-kreis-svg { width:116px; height:116px; } .pk-nk .pk-kreis { gap:12px; } .pk-kreis-liste { grid-template-columns:auto auto; } .pk-kreis-liste .pk-betrag { display:none; } }
@container (max-width:170px) { .pk-kreis-liste > div { grid-template-columns:none; } }
.nk-dash.nk-neu.pk-nk .nk-links > .pa-box { padding:12px 16px !important; min-height:0; }
.nk-dash.pk-nk .nk-links .pk-zeile { margin-top:4px; }
@container (max-width:380px) { .pk-nk .pk-kreis-svg { width:100px; height:100px; } .pk-kreis-liste { column-gap:10px; } }
.nk-dash.pk-nk .nk-links .pk-zeile { padding:0; }
/* Dom 7.11.2026: nur zwei Überschriften, linksbündig auf einer Linie mit den Zeilen, etwas mehr Luft */
.kd-kopf, .kd-gruppe { padding-left:16px; padding-right:16px; font-size:14.5px; }
.kd-kopf { padding-top:16px; padding-bottom:12px; border-bottom:none; } .kd-gruppe { padding-top:16px; padding-bottom:6px; margin:8px -8px 0; }
/* Abweichung vom Plan (Dom 7.11.2026): Strich mittig und durchgehend, Balken mit Mindestlänge, ohne Fußzeile */
.nk-abw2 { display:flex; flex-direction:column; }
.nk-abw2-zeile { display:grid; grid-template-columns:minmax(110px,1fr) minmax(140px,1.6fr) 96px; gap:14px; align-items:center; padding:8px 0; border-bottom:1px solid #f3f3f3; font-variant-numeric:tabular-nums; font-size:13.5px; }
.nk-abw2-zeile b { text-align:right; font-weight:600; }
.nk-abw2-zeile i { display:inline-block; width:9px; height:9px; border-radius:2px; margin-right:7px; }
.nk-abw2-achse { position:relative; align-self:stretch; min-height:28px; margin:-8px 0; }
.nk-abw2-achse::before { content:""; position:absolute; left:50%; top:0; bottom:0; width:1.5px; margin-left:-0.75px; background:#131313; }
.nk-abw2-achse i { position:absolute; top:50%; height:10px; margin:-5px 0 0 0 !important; border-radius:5px; width:auto; }
.nk-abw2-achse i.drueber { background:var(--ampelrot); } .nk-abw2-achse i.drunter { background:var(--gruen); }
.nk-abw2-zeile.summe { border-top:2px solid #131313; border-bottom:none; font-weight:600; margin-top:-1px; }
.nk-abw2 .nk-abw-name small { white-space:normal; overflow:visible; }
.dok-arten button.dok-art-aus { cursor:default; color:#9a9a9a; } .dok-arten button.dok-art-aus:hover { background:none; }
.dok-arten button.dok-art-aus span { display:flex; flex-direction:column; align-items:flex-start; } .dok-arten button.dok-art-aus small { font-size:12px; color:#9a9a9a; }
/* Handbuch (Dom 7.11.2026) */
.hb { display:grid; grid-template-columns:260px minmax(0,1fr); gap:16px; min-height:0; flex:1; }
.hb-liste { display:flex; flex-direction:column; gap:2px; overflow:auto; border:1px solid #e3e3e3; border-radius:12px; padding:10px; background:#fff; }
.hb-gruppe { font-size:11.5px; font-weight:600; letter-spacing:.3px; text-transform:uppercase; color:#6a6a6a; padding:10px 8px 4px; }
.hb-liste a { padding:7px 8px; border-radius:8px; color:#131313; text-decoration:none; font-size:14px; } .hb-liste a:hover { background:#f6f6f6; } .hb-liste a.an { background:#f6f6f6; font-weight:600; }
.hb-text { overflow:auto; border:1px solid #e3e3e3; border-radius:12px; padding:24px 32px; background:#fff; line-height:1.6; font-size:15px; }
.hb-text h1 { margin:0 0 4px; font-size:24px; } .hb-stand { margin-bottom:18px; } .hb-text h2 { font-size:17px; margin:22px 0 6px; } .hb-text ul, .hb-text ol { padding-left:20px; }
.hb-text img { max-width:100%; border:1px solid #e3e3e3; border-radius:8px; margin:8px 0; }
@media (max-width:900px) { .hb { grid-template-columns:1fr; } }
/* Dom 7.11.2026: Angebots-Status, Rechnungs-Status und Dokumentnummern wie die Projekt-Status oben (Etiketten, Pastell aus CI-BAUSTEINE.md),
   die Status etwas größer */
.pstatus { font-size:13.5px; padding:3px 10px; border-radius:6px; }
.pa-kopf .pstatus, .status-wahl .pstatus { font-size:14px; padding:4px 11px; }
.dok-st { border-radius:6px; padding:4px 11px; font-size:13.5px; font-weight:500; background:#ebeae7; color:#4a4844; }
.dok-st.offen { background:#f7edc4; color:#6e5410; } .dok-st.angenommen, .dok-st.bezahlt { background:#e3eedb; color:#3d5e26; }
.dok-st.abgelehnt, .dok-st.angemahnt, .dok-st.mahnung { background:#f6dcdb; color:#962626; } .dok-st.ueberfaellig { background:#f7e0cf; color:#8c4318; } .dok-st.storniert { background:#ebeae7; color:#4a4844; }
.dok-st.knopf:hover { filter:brightness(.97); }
.dok-nummer { border-radius:6px; padding:3px 10px; font-weight:600; background:#e1e9f7; color:#2c4a86; } .dok-nummer.entwurf { background:#ebeae7; color:#4a4844; border-radius:6px; }
.status-wahl .sw-liste .dok-st { pointer-events:none; }
.dok-typ { border-radius:6px !important; padding:4px 11px !important; font-size:13.5px !important; font-weight:500 !important; background:#ebeae7 !important; color:#4a4844 !important; }
/* Dom 7.11.2026 (Runde 3): mit allen fünf Kostenarten darf der Kasten nicht wachsen und die Ringe links nicht verschieben –
   oben bleibt fest gleich hoch, die Zeilen rücken zusammen; „Wohin das Geld ging“ füllt seinen Kasten */
.nk-dash.nk-neu.pk-nk { height:100%; grid-template-rows:minmax(0,1fr); }
.nk-dash.pk-nk > *, .nk-dash.pk-nk .nk-links > .pa-box { min-height:0; }
.nk-dash.pk-nk .nk-links { display:grid; grid-template-rows:1fr 1fr; gap:6px; min-height:0; }
.pk-nk .nk-arten-box { display:flex; flex-direction:column; overflow:hidden; }
.pk-nk .nk-arten-box .nk-art { margin:0; flex:1; display:flex; flex-direction:column; justify-content:center; min-height:0; max-height:62px; }
.pk-nk .nk-arten-box .nk-art-balken { height:8px; margin-top:4px; }
.pk-hinweis { margin-left:6px; display:inline-flex; align-items:center; justify-content:center; width:18px; height:18px; border-radius:50%; background:#f7edc4; color:#6e5410; font-size:11px; font-weight:600; cursor:help; }
.pk-nk .nk-kreis-box { overflow:hidden; } .pk-nk .nk-kreis-box > .pk-kreis { min-height:0; }
.pk-nk .pk-kreis-svg { width:auto; height:100%; max-height:200px; aspect-ratio:1; min-width:100px; }
.pk-nk .pk-kreis { justify-content:center; gap:24px; }
@container (max-width:380px) { .pk-nk .pk-kreis-svg { width:auto; max-height:120px; } .pk-nk .pk-kreis { gap:12px; } }
/* Ring so groß wie der Kasten erlaubt: Höhe des Kastens, aber neben der Liste muss Platz bleiben (cqw = Breite des Kastens) */
.pk-nk .pk-kreis-svg { height:auto; width:min(190px, calc(100cqw - 290px)); max-height:none; min-width:110px; }
.pk-nk .pk-kreis { gap:16px; overflow:hidden; }
@container (max-width:420px) { .pk-nk .pk-kreis-svg { width:min(180px, calc(100cqw - 180px)); min-width:96px; } .pk-kreis-liste { grid-template-columns:auto auto; } .pk-kreis-liste .pk-betrag { display:none; } }
/* Handbuch Runde 2 (Dom 7.11.2026): Suche, Themen, lesen wie in einer Notiz-App */
.hb { grid-template-columns:280px minmax(0,1fr); }
.hb-seite { display:flex; flex-direction:column; gap:8px; min-height:0; }
.hb-suche { height:42px; border:1px solid #e3e3e3; border-radius:9px; padding:0 12px; font:inherit; font-size:14.5px; background:#fff; }
.hb-seite .hb-liste { flex:1; }
.hb-marke { margin-left:6px; font-size:11px; padding:1px 6px; border-radius:4px; background:#dcecf3; color:#21607a; font-weight:500; }
.hb-leer { padding:8px; }
.hb-text { padding:32px 48px; }
.hb-text > * { max-width:720px; }
.hb-kopf { margin-bottom:22px; padding-bottom:16px; border-bottom:1px solid #eee; }
.hb-thema { font-size:11.5px; font-weight:600; letter-spacing:.3px; text-transform:uppercase; color:#6a6a6a; }
.hb-text h1 { font-size:28px; font-weight:600; letter-spacing:-.4px; margin:4px 0 6px; } .hb-stand { font-size:13px; color:#6a6a6a; }
.hb-text h2 { font-size:19px; font-weight:600; margin:28px 0 8px; } .hb-text h3 { font-size:16px; font-weight:600; margin:20px 0 6px; }
.hb-text p { margin:0 0 12px; } .hb-text ul { margin:0 0 14px; padding-left:20px; } .hb-text li { margin:3px 0; }
.hb-text ol { list-style:none; counter-reset:schritt; padding:0; margin:0 0 16px; }
.hb-text ol li { counter-increment:schritt; position:relative; padding:4px 0 4px 38px; margin:4px 0; }
.hb-text ol li::before { content:counter(schritt); position:absolute; left:0; top:3px; width:26px; height:26px; border-radius:50%; background:#131313; color:#fff; font-size:13px; font-weight:600; display:flex; align-items:center; justify-content:center; }
.hb-tipp { background:#f6f6f6; border-radius:10px; padding:12px 16px; margin:4px 0 14px; font-size:14.5px; }
.hb-text code { background:#f3f3f3; border-radius:4px; padding:1px 5px; font-size:13.5px; }
/* Handbuch: Tabellen und Tasten (Dom 7.11.2026) */
.hb-tabelle { width:100%; border-collapse:collapse; margin:4px 0 20px; font-size:14.5px; }
.hb-tabelle th { text-align:left; font-size:11.5px; font-weight:600; letter-spacing:.3px; text-transform:uppercase; color:#6a6a6a; padding:0 12px 8px 0; border-bottom:1px solid #e3e3e3; }
.hb-tabelle td { padding:9px 12px 9px 0; border-bottom:1px solid #f0f0f0; vertical-align:top; line-height:1.5; }
.hb-tabelle td:first-child { width:170px; white-space:nowrap; }
.hb-text kbd { display:inline-block; min-width:24px; text-align:center; font:600 13px/1 Outfit, system-ui, sans-serif; padding:5px 7px; border:1px solid #d9d9d9; border-bottom-width:2px; border-radius:6px; background:#fff; color:#131313; }
.hb-oder { font-size:12px; color:#9a9a9a; margin:0 2px; }
/* Dom 7.11.2026 (Runde 4): „Wohin das Geld ging“ immer mit Betrag; Ring und Liste mittig, links vom Ring so viel Luft wie rechts nach den Prozent */
.pk-nk .pk-kreis { justify-content:center; gap:20px; }
.pk-nk .pk-kreis-svg { width:min(180px, calc(100cqw - 270px)); min-width:84px; }
.pk-kreis-liste { grid-template-columns:auto auto auto !important; column-gap:12px; }
.pk-kreis-liste .pk-betrag { display:block !important; }
@container (max-width:420px) { .pk-nk .pk-kreis { gap:12px; } .pk-kreis-liste { column-gap:8px; } .pk-kreis-liste .pk-tag { font-size:12px; padding:1px 6px; } .pk-kreis-liste > div > * { font-size:12.5px; } }
/* schmaler Kasten (1440): Betrag und Prozent unter das Etikett, damit alles reinpasst und der Rand links/rechts gleich bleibt */
@container (max-width:420px) {
  .pk-nk .pk-kreis-svg { width:96px; min-width:96px; }
  .pk-kreis-liste { display:flex !important; flex-direction:column; gap:5px; min-width:0; }
  .pk-kreis-liste > div { display:flex !important; flex-wrap:wrap; align-items:baseline; gap:1px 6px; }
  .pk-kreis-liste > div .pk-tag { margin-right:auto; }
  .pk-kreis-liste > div .pk-betrag, .pk-kreis-liste > div b { font-size:12px; }
}
@container (max-width:420px) { .pk-nk .pk-kreis-svg { width:82px; min-width:82px; } .pk-nk .pk-kreis { gap:10px; } }
/* endgültig (Runde 4): rechte Spalte breiter, Ring füllt den Platz neben der Liste, Ränder links/rechts gleich (justify center) */
.nk-dash.nk-neu.pk-nk { grid-template-columns:minmax(0,1fr) minmax(0,0.9fr) minmax(0,1.5fr); }
@media (max-width:1100px) { .nk-dash.nk-neu.pk-nk { grid-template-columns:1fr; } }
.pk-nk .pk-kreis-svg { width:clamp(90px, calc(100cqw - 262px), 180px) !important; min-width:0 !important; }
.pk-nk .pk-kreis { gap:16px !important; }
.pk-kreis-liste { display:grid !important; grid-template-columns:auto auto auto !important; }
.pk-kreis-liste > div { display:contents !important; }
@container (max-width:340px) {
  .pk-nk .pk-kreis-svg { width:82px !important; } .pk-nk .pk-kreis { gap:10px !important; }
  .pk-kreis-liste { display:flex !important; flex-direction:column; gap:5px; }
  .pk-kreis-liste > div { display:flex !important; flex-wrap:wrap; align-items:baseline; gap:1px 6px; }
}
.pk-nk .pk-kreis-svg { width:clamp(90px, calc(100cqw - 225px), 190px) !important; } @container (max-width:340px) { .pk-nk .pk-kreis-svg { width:82px !important; } }

/* Zeiten verbessert (Dom 8.11.2026, wie plancraft): Kopfzeile schmaler und Schrift größer, Blöcke je Person und Tag mit Summe, Projekt als Link,
   Prüfung als farbiges Status-Etikett, „Alle Zeitarten“, Seitenfenster mit kleineren Zeitfeldern, Löschen mit Symbol, Historie als aufklappbare Zeitleiste */
.zt-tabelle thead th { height:auto; padding-top:9px; padding-bottom:9px; font-size:15px; color:#555; }
.zt-sortknopf { all:unset; cursor:pointer; display:inline-flex; align-items:center; gap:4px; font:inherit; color:inherit; }
.zt-sortknopf:hover { color:#111; }
.zt-bloecke tbody.zt-block.mehrere tr[data-z]:not(:nth-last-child(2)) td { border-bottom-color:transparent; }
.zt-bloecke tr.zt-blocksumme td { height:auto; padding-top:8px; padding-bottom:10px; background:#fff; border-bottom:1px solid #e3e3e3; cursor:default; }
.zt-bloecke tr.zt-blocksumme td b { font-weight:600; }
.zt-projekt-link { color:inherit; text-decoration:underline; text-underline-offset:2px; text-decoration-color:#9a9a9a; display:inline-block; max-width:260px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; vertical-align:bottom; font-weight:500; }
.zt-projekt-link:hover { text-decoration-color:currentColor; }
.dok-st.zst-offen { background:#ebeae7; color:#4a4844; } .dok-st.zst-klaerung { background:#fff4cc; color:#8a6100; } .dok-st.zst-geprueft { background:#e1e9f7; color:#2c4a86; }
.zt-tabelle .dok-st { padding:3px 10px; font-size:13px; }
.zt-tabelle .dok-st svg { opacity:.7; }
.zt-spanne { display:flex; flex-direction:column; align-items:flex-end; gap:6px; }
.zt-alle-arten { color:var(--rot); font-weight:500; font-size:14px; padding:0; }
.zt-aa-text { margin:4px 0 18px; }
.zt-aa { width:100%; border-collapse:collapse; } .zt-aa th { text-align:left; color:#666; font-weight:600; padding:8px 10px; border-bottom:1px solid #e3e3e3; }
.zt-aa td { padding:10px; } .zt-aa .zahl { text-align:right; }
.pt-panel .zt-zeile { grid-template-columns:118px 118px auto; }
.zt-weg { display:inline-flex; align-items:center; gap:6px; }
.zt-hist { list-style:none; margin:6px 0 0; padding:0; }
.zt-hist li { position:relative; padding:0 0 22px 26px; }
.zt-hist li::before { content:''; position:absolute; left:4px; top:7px; width:10px; height:10px; border-radius:50%; background:#cfcfcf; }
.zt-hist li.neu::before { background:#7a7a7a; }
.zt-hist li:not(:last-child)::after { content:''; position:absolute; left:8.5px; top:20px; bottom:2px; width:1px; background:#d6d6d6; }
.zt-h-kopf { all:unset; cursor:pointer; display:inline-flex; align-items:center; gap:6px; font-size:15px; }
.zt-h-kopf[disabled] { cursor:default; } .zt-h-kopf b { font-weight:600; }
.zt-h-kopf svg { transition:transform .15s; } .zt-hist li.auf .zt-h-kopf svg { transform:rotate(180deg); }
.zt-h-felder { display:none; margin-top:6px; font-size:14.5px; line-height:1.6; } .zt-hist li.auf .zt-h-felder { display:block; }
.zt-h-alt { color:#8a8a8a; font-size:13px; margin-left:4px; }
.zt-h-zeit { color:#8a8a8a; font-size:14px; margin-top:4px; }
.zt-hlink { color:inherit; text-decoration:underline; text-underline-offset:2px; }
/* Zeiten Runde 2 (Dom 8.11.2026): „Alle Zeitarten“ als Knopf mit Pfeil, Linien nur zwischen Mitarbeitern, schmalere Auswahl-Knöpfe, Datum als Feld mit runden Ecken */
.zt-alle-arten { all:unset; cursor:pointer; display:inline-flex; align-items:center; gap:6px; font-size:15px; font-weight:600; color:#1d1d1d; padding:6px 10px; margin:-6px -10px; border-radius:8px; }
.zt-alle-arten:hover { background:#f2f2f2; }
.zt-bloecke tbody.zt-block tr td, .zt-bloecke tbody.zt-block.mehrere tr[data-z]:not(:nth-last-child(2)) td { border-bottom-color:transparent; }
.zt-bloecke tbody.zt-block > tr:last-child td { border-bottom:1px solid #dcdcdc; }
.zt-auswahl button:not(.link) { padding:5px 10px; font-size:13.5px; min-height:0; height:auto; }
.zt-auswahl .zt-weg-alle { margin-left:8px; }
.zt-sortknopf { padding:5px 9px; margin:-5px -9px; border-radius:7px; border:1px solid transparent; }
.zt-sortknopf:hover { background:#f1f1f1; border-color:#e2e2e2; }
.pt-panel .zt-zeile { grid-template-columns:108px 108px 124px auto; }
.pt-panel .zt-zeile label[hidden] { display:none; }
.zt-auswahl { width:max-content; max-width:100%; }
/* Plantafel und Urlaubsplaner (Dom 8.11.2026, wie plancraft): Knöpfe ganz rechts, eng beieinander, je Gruppe ein umrandeter Block */
main .kopf .pt-knoepfe { margin-left:auto; gap:10px; }
.up-kopf .up-legende { margin-left:auto; margin-right:14px; } .up-kopf .pt-knoepfe { margin-left:0; margin-right:10px; }
.pt-knoepfe .segment { background:#fff; border:1px solid #cfcfcf; border-radius:10px; padding:0; gap:0; overflow:hidden; box-shadow:none; }
.pt-knoepfe .segment button { border:none; border-radius:0; background:#fff; height:38px; min-width:42px; margin:0; box-shadow:none; color:#222; font-size:17px; }
.pt-knoepfe .segment button + button { border-left:1px solid #cfcfcf; }
.pt-knoepfe .segment button:hover { background:#f4f4f4; }
.pt-knoepfe > [data-heute] { height:40px; padding:0 18px; border:1px solid #cfcfcf; border-radius:10px; background:#fff; font-weight:600; }
/* Anträge im Urlaubsplaner */
.up-antraege { background:#fff; border:1px solid var(--linie); border-radius:12px; padding:10px 14px; margin:0 0 12px; }
.up-a-kopf { display:flex; align-items:center; gap:8px; } .up-a-kopf .rechts { margin-left:auto; }
.up-a-zahl { background:var(--rot); color:#fff; border-radius:999px; font-size:12px; font-weight:600; padding:1px 7px; }
.up-a-liste { display:flex; flex-direction:column; margin-top:6px; max-height:180px; overflow:auto; }
.up-a-zeile { display:flex; align-items:center; gap:14px; padding:7px 0; border-top:1px solid #f0f0f0; font-size:14px; }
.up-a-zeile .rechts { margin-left:auto; } .up-a-name { min-width:150px; } .up-a-notiz { max-width:260px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.up-a-haken { all:unset; cursor:pointer; width:24px; height:24px; border:1.5px solid #bdbdbd; border-radius:6px; display:inline-flex; align-items:center; justify-content:center; color:transparent; }
.up-a-haken:hover { border-color:var(--gruen); color:var(--gruen); background:#eef7f0; }
.up-a-leer { margin:6px 0 2px; }
.pt-panel.pt-panel-breit { width:min(980px, 96vw); }
/* Zeitkonto (Dom 8.11.2026): Zahlen im Nodus-Stil wie die Summen der Zeiten – links bündig, Bezeichnung normal geschrieben, Einheit an der Zahl */
.zk-karten .ma-karte h3 { font-size:16px; font-weight:600; margin:0 0 14px; } .zk-karten .ma-karte h3 small { color:var(--grau); font-weight:400; font-size:14px; margin-left:4px; }
.zk-karten .ma-zahlen { display:grid; grid-template-columns:repeat(auto-fill, minmax(118px, 1fr)); gap:16px 20px; }
.zk-karten > .ma-karte:nth-child(2) .ma-zahlen { grid-template-columns:repeat(auto-fill, minmax(118px, 1fr)); }
.zk-karten .ma-zahl { align-items:flex-start; text-align:left; min-width:0; }
.zk-karten .ma-zahl span { font-size:13.5px; color:var(--grau); text-transform:none; letter-spacing:0; white-space:nowrap; }
.zk-karten .ma-zahl b { font-size:20px; font-weight:600; margin:2px 0 0; white-space:nowrap; }
.zk-karten .ma-zahl small { font-size:12.5px; color:#9a9a9a; margin-top:1px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:100%; }
.zk-leiste .fwahl { margin-right:4px; }
.zpr-angleichen { margin-right:8px; } /* Prüfen: Zeiten der Kollegen angleichen (Dom 8.11.2026) */
/* Knöpfe wie plancraft – höhere Spezifität, sonst gewinnen die allgemeinen .kopf-Knopf-Regeln (Dom 8.11.2026: „genauso wie in plancraft“) */
main .kopf div.pt-knoepfe .segment { display:inline-flex; gap:0; padding:0; background:#fff; border:1px solid #cfcfcf; border-radius:10px; overflow:hidden; }
main .kopf div.pt-knoepfe .segment > button { border:0; border-radius:0; margin:0; height:40px; width:46px; min-width:46px; background:#fff; box-shadow:none; color:#222; font-size:18px; display:inline-flex; align-items:center; justify-content:center; }
main .kopf div.pt-knoepfe .segment > button + button { border-left:1px solid #cfcfcf; }
main .kopf div.pt-knoepfe .segment > button:hover { background:#f4f4f4; }
main .kopf div.pt-knoepfe > [data-heute] { height:42px; padding:0 20px; border:1px solid #cfcfcf; border-radius:10px; background:#fff; font-weight:600; font-size:15px; box-shadow:none; }
main .kopf div.pt-knoepfe { gap:12px; }
/* Zeitkonto Runde 3 (Dom 8.11.2026): Karten flacher, Stunden in drei Spalten, Anträge kompakt */
.zk-karten .ma-karte { padding:14px 18px; }
.zk-karten .ma-karte h3 { margin-bottom:10px; }
.zk-karten .ma-zahlen { gap:10px 18px; }
.zk-std-spalten { display:grid; grid-template-columns:1fr 1fr 1.1fr; gap:18px; align-items:start; }
.zk-std-sp { display:flex; flex-direction:column; gap:10px; min-width:0; }
.zk-std-klein { gap:4px; border-left:1px solid var(--linie); padding-left:16px; }
.zk-std-klein > div { display:flex; justify-content:space-between; gap:10px; font-size:14px; } .zk-std-klein span { color:var(--grau); } .zk-std-klein b { font-weight:600; white-space:nowrap; }
.zk-antraege-klein .zk-antrag-zeile { padding:5px 0; }
/* Urlaubsplaner: Anträge-Leiste und „Alle Anträge“ */
.up-karte { cursor:default; } .up-karte .pt-of-unten { margin-top:4px; } .up-karte .pt-of-unten .rechts { margin-left:auto; }
.up-karte.up-offen { --of-farbe:#f2c94c; } .up-karte.up-genehmigt { --of-farbe:#7cc28a; } .up-karte.up-abgelehnt { --of-farbe:#e48a84; }
.up-alle-knopf { all:unset; cursor:pointer; display:flex; align-items:center; justify-content:center; gap:6px; margin:4px 10px 10px; padding:9px; border:1px solid var(--linie); border-radius:8px; font-weight:600; font-size:14px; }
.up-alle-knopf:hover { background:var(--hell); }
.zt-reiter-zahl { display:inline-flex; align-items:center; justify-content:center; min-width:18px; height:18px; padding:0 5px; margin-left:6px; border-radius:9px; background:var(--rot); color:#fff; font-size:11.5px; font-weight:600; vertical-align:1px; }
.zt-reiter-zahl[hidden] { display:none; }
.up-alle .ma-leiste { display:flex; justify-content:flex-start; align-items:center; gap:10px; margin:0 0 14px; }
.up-alle .ma-leiste .rechts { margin-left:auto; }
.zk-antraege td { white-space:nowrap; } .zk-antraege td.klein-text:not([data-rest]) { white-space:normal; }
.zk-antraege .menue-zelle { white-space:nowrap; text-align:right; } .zk-antraege .menue-zelle > * { display:inline-flex; vertical-align:middle; margin-left:4px; }
dialog.pt-panel .up-alle > .ma-leiste { flex-direction:row; align-items:center; justify-content:flex-start; width:100%; flex-wrap:nowrap; }
dialog.pt-panel .up-alle > .ma-leiste > .rechts { margin-left:auto; }
dialog.pt-panel .up-alle .zk-antraege td.menue-zelle { display:table-cell; white-space:nowrap; }
dialog.pt-panel .up-alle .zk-antraege td.menue-zelle > button { display:inline-flex; vertical-align:middle; margin:0 0 0 6px; }
.zk-karten > .ma-karte:first-child .ma-zahlen { grid-template-columns:repeat(3, minmax(0, 1fr)); gap:10px 16px; }
.zk-karten .ma-zahl small { display:none; } .zk-karten .zk-std-sp .ma-zahl small { display:block; }
.zk-karten .ma-zahl b { font-size:19px; }
/* Zeitkonto Runde 4 (Dom 8.11.2026): Stunden wieder als Kacheln, Spalten Soll/Ist · Saldo/Stand · Feiertage/Krank · Urlaub */
.zk-karten > .ma-karte:nth-child(2) .ma-zahlen.zk-std-raster { grid-template-columns:repeat(4, minmax(0, 1fr)); gap:12px 18px; }
/* Anträge-Leiste: Haken ganz vorne */
.up-karte.mit-haken { flex-direction:row; align-items:flex-start; gap:10px; }
.up-karte-text { display:flex; flex-direction:column; gap:2px; min-width:0; flex:1; } .up-karte-text > b, .up-karte-text > span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; } .up-karte-text > span { color:var(--grau); font-size:13px; }
.up-karte .up-a-haken { margin-top:2px; flex:none; }
/* Alle Anträge: alles passt ohne Querscrollen */
dialog.pt-panel .up-alle .zk-antraege { overflow-x:hidden; }
dialog.pt-panel .up-alle .zk-antraege th, dialog.pt-panel .up-alle .zk-antraege td { padding-left:10px; padding-right:10px; }
dialog.pt-panel .up-alle .zk-antraege td:nth-child(4), dialog.pt-panel .up-alle .zk-antraege th:nth-child(4) { width:44px; }
dialog.pt-panel .up-alle .zk-antraege td.klein-text:not([data-rest]) { max-width:170px; overflow:hidden; text-overflow:ellipsis; }
/* Löschen rot mit Mülleimer, Ablehnen rot */
.pt-panel-fuss .zt-weg, .pt-panel-fuss [data-weg] { color:var(--rot); display:inline-flex; align-items:center; gap:6px; }
button.gefahr-text[data-abl] { color:var(--rot); }
/* Plus/Minus und Pfeile: in der Mitte gerade Kante, nur außen rund (wie plancraft) */
main .kopf div.pt-knoepfe .segment > button, main .kopf div.pt-knoepfe .segment > button:first-child, main .kopf div.pt-knoepfe .segment > button:last-child { border-radius:0 !important; }
main .kopf div.pt-knoepfe .segment > button::before, main .kopf div.pt-knoepfe .segment > button::after { display:none; }
main .kopf div.pt-knoepfe .segment > button { border:0 !important; }
main .kopf div.pt-knoepfe .segment > button + button { border-left:1px solid #cfcfcf !important; }

/* Beantragte Abwesenheiten sichtbar wie ein normaler Balken, hell-gelb wie das Etikett „offen“ statt grau schraffiert (Dom 8.11.2026) */
.pt-balken.abw.beantragt { background:#fff4cc; border:1.5px dashed #d4a800; color:#5c4500; }
.up-muster.beantragt { background:#fff4cc; border:1.5px dashed #d4a800; }
.pt-balken.pt-ziel { box-shadow:0 0 0 3px var(--rot); z-index:5; }
/* Antrag-Karte: ⋮ oben rechts ohne Rahmen, Haken unten links, Etikett rechts */
.up-karte { padding-right:34px; }
.up-karte .up-ecke { position:absolute; top:4px; right:4px; }
.up-karte .up-ecke .icon-knopf { border:none; background:none; box-shadow:none; width:28px; height:28px; }
.up-karte .up-ecke .icon-knopf:hover { background:var(--hell); }
.up-karte .pt-of-unten { gap:8px; }
.up-karte.klickbar { cursor:pointer; }
.pt-l.pt-ziel { background:#fdecec; transition:background .3s; }

/* Lohnkosten-Kalkulation (Roadmap #39) */
.lk-summen > div small { font-size:12.5px; color:#9a9a9a; margin-top:2px; }
.lk-hinweis { margin:10px 2px 0; max-width:900px; }

/* Antrag-Karte Runde 3 (Dom 8.11.2026): oben Haken, Name, Status, ⋮ in einer Zeile; darunter Art, darunter Zeitraum */
.up-karte, .up-karte.mit-haken { display:flex; flex-direction:column; gap:3px; padding:8px 8px 8px 14px; }
.up-k-oben { display:flex; align-items:center; gap:8px; min-width:0; }
.up-k-name { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-weight:600; }
.up-karte .up-ecke { position:static; flex:none; margin-left:-2px; }
.up-k-zeile { color:var(--grau); font-size:13px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; padding-left:32px; }
.up-karte .up-a-haken { margin:0; }
.up-k-zeile { padding-left:0; } .up-karte:has(.up-a-haken) .up-k-zeile { padding-left:32px; }

/* Ablage (Dom 8.11.2026, Perfekte Projekte): ⋮ ohne Rahmen ganz rechts, Mobil-Hinweis beim Drüberfahren, helles Symbol bei teilweiser Freigabe,
   Ziel beim Ziehen blinkt dreimal und wechselt dann hinein; Dokumente: Folgedokument und ⋮ ohne Rahmen */
.ab-zeile [data-punkte], .pa-zeile [data-dokm], .pa-zeile [data-folge] { border:none !important; background:none !important; box-shadow:none !important; }
.ab-zeile [data-punkte]:hover, .pa-zeile [data-dokm]:hover, .pa-zeile [data-folge]:hover { background:var(--hell) !important; }
.ab-zeile [data-punkte] { margin-left:auto; }
.ab-handy { position:relative; cursor:default; }
.ab-handy.teil { color:#bdbdbd; }
.ab-handy[data-tip]:hover::after { content:attr(data-tip); position:absolute; right:0; bottom:calc(100% + 8px); width:max-content; max-width:280px; white-space:normal; background:#222; color:#fff; font-size:12.5px; font-weight:500; line-height:1.35; padding:7px 10px; border-radius:7px; z-index:20; box-shadow:0 6px 18px rgba(0,0,0,.18); pointer-events:none; }
@keyframes ab-blink { 0%, 100% { background:transparent; } 50% { background:#fdecec; } }
.ab-blinkt { animation:ab-blink .4s ease-in-out 3; }
.ab-stapel { max-width:260px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

/* Ablage Runde 2 (Dom 8.11.2026): Hinweis fest über allem; Folgedokument/⋮ ohne Rahmen, beim Drüberfahren mit Rahmen; Ordner blinkt 2 s */
.ab-handy[data-tip]:hover::after { content:none !important; display:none !important; }
#nd-tip { position:fixed; z-index:10000; max-width:280px; background:#222; color:#fff; font-size:12.5px; font-weight:500; line-height:1.35; padding:7px 10px; border-radius:7px; box-shadow:0 6px 18px rgba(0,0,0,.18); pointer-events:none; }
.ab-zeile [data-punkte]:hover, .pa-zeile [data-dokm]:hover, .pa-zeile [data-folge]:hover { box-shadow:inset 0 0 0 1px #cfcfcf !important; background:#fff !important; }
.ab-blinkt.lang { animation:ab-blink .5s ease-in-out 4; }

/* Ordner blinkt beim Ziehen 3× schnell (Dom 8.11.2026) */
.ab-blinkt { animation:ab-blink .2s ease-in-out 3 !important; }

/* Zieh-Etikett mit sechs Punkten vorne (Dom 8.11.2026: „damit man sieht, dass man das bewegt“) */
.ab-stapel { display:flex; align-items:center; gap:6px; padding-left:8px; }
.ab-stapel .ab-griff { display:inline-flex; color:#9a9a9a; flex:none; }
.ab-stapel .ab-griff svg { fill:currentColor; stroke:none; }
.ab-stapel .ab-stapel-text { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

/* Zielordner beim Ziehen: man sieht, dass man hier loslassen kann (Dom 9.11.2026) */
#ab-feld.ab-ablegen { outline:2px dashed #9a9a9a; outline-offset:4px; border-radius:10px; background:#fafafa; }
#ab-feld.ab-ablegen::after { content:attr(data-ablegen); position:sticky; bottom:8px; display:block; margin:8px auto 4px; width:max-content; max-width:calc(100% - 24px); padding:7px 14px; border-radius:999px; background:#111; color:#fff; font-size:13px; font-weight:600; pointer-events:none; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
#ab-feld.ab-ablegen .ab-leerfeld { visibility:hidden; }
/* Die Ablage-Liste füllt den ganzen Block: Rahmen und Ablegen gelten bis ganz unten, nicht nur bis zur letzten Zeile (Dom 9.11.2026) */
.pa-inhalt:has(> .pa-teil > #ab-feld) { display:flex; flex-direction:column; }
.pa-inhalt > .pa-teil > #ab-feld { flex:1 0 auto; }
#ab-feld.ab-ablegen::after { margin-top:auto; }
/* Plantafel: Doppelbuchung (T-029, Dom 10.11.2026) – nur Hinweis: gestrichelter schwarzer Rand und „!“ im schwarzen Kreis, kein Rot (CI: Rot nur Hauptknopf) */
.pt-balken.pt-doppelt { outline:2px dashed #131313; outline-offset:-2px; }
.pt-balken .pt-dop { flex:none; width:18px; height:18px; margin-left:2px; border-radius:50%; background:#131313; color:#fff; font-size:12px; font-weight:700; line-height:18px; text-align:center; }
/* Projektseite als eine Ansicht (T-059, Dom 10.11.2026): Kacheln in zwei Reihen spaltenweise – links Arbeitsstunden/Rechnungen, Mitte Kunde/Adresse Kunde,
   rechts Zeitraum/Baustelle. Fehlt eine Kachel (Recht), rücken die folgenden auf; eine allein stehende letzte Kachel nimmt beide Reihen (keine Lücke). */
.pa-uebersicht.modus-eins { grid-template-columns:none; grid-template-rows:auto auto; grid-auto-flow:column; grid-auto-columns:minmax(0,1fr); }
.pa-uebersicht.modus-eins > .pa-box { grid-column:auto; grid-row:auto; }
.pa-uebersicht.modus-eins > .pa-box:last-child:nth-child(odd) { grid-row:span 2; }
.pa-unten-zwei { display:grid; grid-auto-flow:column; grid-auto-columns:minmax(0,1fr); gap:6px; margin-top:6px; }
.pa-unten-zwei > .pa-box { min-height:0; }
.pa-unten-zwei[hidden] { display:none; }
.pa-termin-zeile, .pa-vorort-zeile { margin-top:8px; font-size:13.5px; line-height:1.4; }
.pa-termin-zeile .pa-gross { font-size:15px; font-weight:600; }
.pa-vorort-zeile .pa-vo { display:inline; margin-right:10px; }
.pa-vorort-zeile .pa-vo > div { display:inline; margin-left:4px; }
/* Ungelesen am anderen Chat-Kanal: Zahl im grauen Feld wie bei den Reitern (CI: keine Signalfarbe) */
.ch-ungelesen { display:inline-block; margin-left:6px; padding:1px 6px; border-radius:4px; background:#e4e4e4; color:#333; font-size:12px; font-weight:600; line-height:1.4; font-variant-numeric:tabular-nums; }
@media (max-width:1100px) { .pa-uebersicht.modus-eins { grid-auto-flow:row; grid-template-columns:1fr; grid-template-rows:none; } .pa-uebersicht.modus-eins > .pa-box:last-child:nth-child(odd) { grid-row:auto; } .pa-unten-zwei { grid-auto-flow:row; grid-auto-columns:auto; } }
/* 8.378 (Dom 10.11.2026): Auswahl als Segment mit Radio – Kreis ausblenden, Feld wie die Segment-Knöpfe (vorher Kreis über dem Text im grauen Balken) */
.segment > label { display:inline-flex; align-items:center; margin:0; padding:4px 12px; border-radius:7px; font-size:13.5px; font-weight:500; line-height:1.45; color:#5e5e5e; cursor:pointer; white-space:nowrap; }
.segment > label > input[type=radio] { position:absolute; opacity:0; width:1px; height:1px; margin:0; pointer-events:none; }
.segment > label:hover { background:rgba(255,255,255,.55); }
.segment > label:has(input:checked) { background:#fff; color:#131313; box-shadow:0 1px 2px rgba(0,0,0,.14); }
.segment > label:has(input:focus-visible) { outline:2px solid #111; outline-offset:1px; }
/* Projekt bearbeiten: nur eine Linie je Abschnitt (die Linie neben der Überschrift fällt weg), Felder schmaler, Kunde so breit wie der Empfänger */
.pb .pakte-titel::after { content:none; }
@media (min-width:701px) { .pb-feld { grid-template-columns:140px minmax(0, 460px); } .pb-feld > div, .pb-feld > #pb-kunde, .pb-feld > #pb-empf { max-width:460px; } }
.pb .pb-empf-gew > .klein-text { display:none; }
/* Rechnungen herunterladen wie plancraft (Dom 10.11.2026): Filter oben, Format als Radio untereinander, DATEV-Felder in einer Reihe */
.ax-dialog { width:min(680px, calc(100vw - 32px)); }
.ax-h { font-size:16px; font-weight:600; margin:18px 0 10px; }
.ax-h:first-child { margin-top:4px; }
.ax-zeile { margin:6px 0; font-size:14.5px; }
.ax-info { display:flex; align-items:flex-start; gap:10px; border:1px solid #c9dbf5; background:#eef5ff; border-radius:8px; padding:10px 14px; margin:0 0 12px; font-size:14px; line-height:1.45; }
.ax-info svg { color:#1b5e8c; flex:none; margin-top:2px; }
.ax-info.ax-fehler { border-color:#f3c2bf; background:#fdf1f0; } .ax-info.ax-fehler svg { color:#b3261e; }
.ax-radio { display:flex; align-items:center; gap:10px; margin:8px 0; font-size:14.5px; cursor:pointer; width:max-content; }
.ax-radio input { margin:0; width:16px; height:16px; accent-color:#1f7a55; }
.ax-datev { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:12px; margin:14px 0 4px; }
.ax-datev label { display:flex; flex-direction:column; gap:6px; font-size:14px; }
#ax-info:not(:empty) { margin-top:12px; }
.ax .form-fuss { margin-top:18px; padding-top:14px; border-top:1px solid #eee; }
@media (max-width:600px) { .ax-datev { grid-template-columns:1fr; } }
.ax-radio input:focus { outline:none; } .ax-radio input:focus-visible { outline:2px solid #111; outline-offset:2px; }
/* Kontakt-Seite (Dom 10.11.2026 „verbuggt“): der Kopf erbte die Regel .kd-kopf der Kundenkarte (untereinander, mittig) – hier eine Zeile:
   Zurück · Name · Zahlen · Knöpfe rechts, links ausgerichtet */
main > .kd-kopf { flex-direction:row; flex-wrap:wrap; align-items:center; text-align:left; gap:10px 28px; padding:0; margin:0 0 14px; border-bottom:none; }
main > .kd-kopf .kd-kopf-name { display:flex; flex-direction:column; align-items:flex-start; text-align:left; margin:0; }
main > .kd-kopf .kdk-zahlen { margin:0; justify-content:flex-start; }
main > .kd-kopf .kx-rechts { margin-left:auto; }
/* Kontakt-Karte: E-Mail ganz zeigen (umbrechen statt „…“) */
.kd-li[href^="mailto:"] { white-space:normal; overflow-wrap:anywhere; }

.zk-modelle { margin-top:12px; padding-top:8px; border-top:1px solid #f0f0f0; } /* Arbeitszeitmodell-Zeiträume im Zeitkonto (11.11.2026) */
/* Prüfen: Arbeitstag ohne Eintrag (Dom 11.11.2026) – gelber Hinweis wie die Fristen, Namen führen zu den Zeiten des Tages */
.zpr-luecke { display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin:2px 4px 8px; padding:6px 10px; border-radius:7px; background:#fff7e0; color:#7a5400; font-size:13.5px; }
.zpr-luecke svg { color:#b07a00; flex:none; } .zpr-luecke a { color:inherit; text-decoration:underline; }
/* Plantafel/Urlaubsplan (Dom 12.11.2026): an den Balkenenden nur der Mauszeiger zum Verlängern, kein grauer Griff-Block */
.pt-balken .pt-griff, .pt-balken .pt-griff:hover, .pt-balken:hover .pt-griff, .zp-griff:hover { background:none !important; }
/* Einstellungen → Arbeitszeiten: Gesetzliche Feiertage (12.11.2026) */
.dok-ft { padding:6px 18px 12px; margin-top:14px; } .dok-ft-titel { display:flex; align-items:center; gap:8px; } .dok-ft-tab { margin-top:6px; } .dok-ft-tab td:nth-child(2) { white-space:nowrap; } .dok-ft-aus td { color:#8a8a8a; }

/* Projektseite Entwurf E (Dom 12.11.2026): oberer Block scrollt in sich – Seite 1 Kacheln, Seite 2 Beschreibung | Notiz fürs Büro, gleich hoch */
.pa-uebersicht-karte { position:relative; }
.pa-blatt { --pa-blatt-h:260px; height:var(--pa-blatt-h); overflow-y:auto; scroll-snap-type:y mandatory; scrollbar-width:none; margin-right:14px; margin-top:4px; }
.pa-blatt::-webkit-scrollbar { display:none; }
.pa-blatt[hidden] { display:none; }
.pa-seite .pa-blatt > .pa-uebersicht { margin-top:0; scroll-snap-align:start; }
.pa-blatt > .pa-unten-zwei { height:var(--pa-blatt-h); margin-top:8px; scroll-snap-align:start; }
.pa-blatt > .pa-unten-zwei > .pa-box { overflow-y:auto; }
.pa-blatt .pa-besch-unten .pa-text { display:block; -webkit-line-clamp:unset; overflow:visible; cursor:auto; }
.pa-blatt-punkte { position:absolute; right:9px; top:calc(50% + 20px); transform:translateY(-50%); display:flex; flex-direction:column; gap:6px; }
.pa-blatt-punkte[hidden] { display:none; }
.pa-blatt-punkte i { width:6px; height:6px; border-radius:50%; background:#d6d6d6; cursor:pointer; } .pa-blatt-punkte i.an { background:#131313; }
.pa-kd-adresse { margin-top:2px; }
.pa-reiter-knoepfe .pa-trenn-vor { margin-left:14px; position:relative; } .pa-reiter-knoepfe .pa-trenn-vor::before { content:''; position:absolute; left:-9px; top:50%; height:18px; margin-top:-9px; width:1px; background:#e0e0e0; }
@media (max-width:1100px) { .pa-blatt { height:auto; overflow:visible; margin-right:0; } .pa-blatt > .pa-unten-zwei { height:auto; } .pa-blatt-punkte { display:none; } }
/* Korrektur und Historie als Seitenleiste wie plancraft (12.11.2026) */
.zkp .zkp-rechnung { display:grid; grid-template-columns:1fr 160px; gap:10px 14px; align-items:center; margin:6px 0 4px; font-size:14.5px; }
.zkp .zkp-rechnung b, .zkp .zkp-rechnung input { text-align:right; font-variant-numeric:tabular-nums; }
.zkp .zkp-linie { grid-column:1 / -1; border-top:1px solid #e4e4e4; }
.zkp .zkp-summe { margin-top:22px; border:1px solid #e4e4e4; border-radius:10px; padding:12px 16px; display:grid; gap:8px; font-size:14.5px; }
.zkp .zkp-summe > div { display:flex; justify-content:space-between; gap:12px; } .zkp .zkp-summe b { font-variant-numeric:tabular-nums; white-space:nowrap; }
.zkp .zkp-jahr { margin:18px 0 6px; font-size:18px; } .zkp .zkp-jahr:first-child { margin-top:4px; }
.zkp .zkp-hist { width:100%; border-collapse:collapse; font-size:14px; } .zkp .zkp-hist th { text-align:left; font-weight:600; color:#6a6a6a; font-size:13px; padding:6px 6px; border-bottom:1px solid #e4e4e4; }
.zkp .zkp-hist td { padding:9px 6px; border-bottom:1px solid #f0f0f0; vertical-align:top; } .zkp .zkp-hist .zahl { text-align:right; white-space:nowrap; }

/* Zeitkonto-Seitenleiste: Urlaubsanspruch nur zur Ansicht, Quelle ist die Personalakte (Dom 12.11.2026) */
.zk-anspruch { display:flex; align-items:baseline; gap:10px; padding:10px 0; border-bottom:1px solid #f0f0f0; } .zk-anspruch b { font-weight:600; } .zk-anspruch .klein-text { margin-left:auto; }
/* Feiertag als Block je Mitarbeiter, auch am Wochenende (12.11.2026) – nur Anzeige, Klicks gehen auf die Zeile */
.pt-ft { position:absolute; top:7px; bottom:7px; border-radius:6px; background:#ececec; color:#333; font-size:13px; display:flex; align-items:center; overflow:hidden; box-sizing:border-box; pointer-events:none; z-index:1; white-space:nowrap; }
.pt-ft .pt-text { position:static; flex:1; min-width:0; padding:0 8px; overflow:hidden; text-overflow:ellipsis; }
/* ganzer Kopf „Mitarbeiter“ zieht die Höhe der Projekte (12.11.2026) */
.pt:not(.pt-urlaub):not(.p-zu):not(.m-zu) .pt-teil-makopf .pt-bereich-kopf { cursor:row-resize; } .pt-teil-makopf button { cursor:pointer; }
/* Monatsmodell im Dialog (12.11.2026) */
.az-soll { display:grid; grid-template-columns:1fr 200px; gap:12px; margin:0 0 10px; } .az-soll [hidden] { display:none; }

/* Zeit: Ganztägig | Mit Uhrzeit (Dom 12.11.2026) */
.zt-umfang[hidden] { display:none; }

/* Zeiten: Abwesenheit wie plancraft (Dom 12.11.2026) – Start | Ende | Dauer in einer Zeile, darunter Anfragedauer und Resturlaub */
.zt-datumzeile { display:flex; gap:10px; } .zt-datumzeile > label { flex:1; min-width:0; } .zt-datumzeile > label[hidden] { display:none; }
.zt-abw-info { display:flex; gap:28px; border:1px solid var(--linie); border-radius:10px; padding:12px 16px; margin-top:4px; }
.zt-abw-info[hidden] { display:none; } .zt-abw-info span { display:block; font-size:13px; color:#555; } .zt-abw-info b { font-size:14.5px; }

/* ---------- Dom 24.11.2026: Chat überall gleich – Vorbild der Projektchat, Farben wie in der Handy-App ----------
   eigene rechts in sanftem Rot ohne Bild und Namen; die anderen links mit Bild, Name oben in der Blase; Uhrzeit unten rechts in der Blase */
body .ch-n.ich .ch-blase { background:#fbe5e2; }
body .ch-n.ich .ch-pfeil { background:linear-gradient(to left, #fbe5e2 60%, rgba(251,229,226,0)); }
body .pe-kn.ich > .ch-av, body .pe-kn.ich .ch-wer { display:none; }
body .vl-ev.chat.ich .vl-blase { background:#fbe5e2; color:#131313; }
body .vl-msg, body .vl-msg.ich { flex-direction:row; gap:8px; align-items:flex-start; }
body .vl-msg.ich { justify-content:flex-end; }
body .vl-msg > div { max-width:80%; min-width:0; } body .vl-msg.ich > div { align-items:flex-end; }
body .vl-msg .vl-blase, body .vl-msg.ich .vl-blase { display:flex; flex-direction:column; align-items:flex-start; gap:4px; min-width:90px; padding:9px 12px 6px; border-radius:8px; background:#f2f2f2; color:#131313; font-size:14.5px; line-height:1.5; white-space:normal; }
body .vl-msg.ich .vl-blase { background:#fbe5e2; }
body .vl-msg.ich .vl-blase a { color:#1d4ed8; }
body .vl-msg .vl-wer { font-size:13.5px; font-weight:600; }
body .vl-msg .vl-text { white-space:pre-wrap; overflow-wrap:anywhere; }
body .vl-msg .vl-zeit { align-self:stretch; display:flex; justify-content:flex-end; align-items:center; gap:4px; font-size:12px; color:#555; }
body .vl-msg .auf-k-text { min-width:0; max-width:100%; }
body .vl-msg .auf-k-zu { margin:0; background:rgba(0,0,0,.06); }
body .vl-msg .vl-blase .auf-k-bild img, body .vl-msg .vl-blase .bilder img { border-radius:6px; }
body dialog.auf-vl .vl-msg.ich .vl-blase a { color:#1d4ed8; }
/* Runde 2 (Dom 24.11.2026): Kommentare wie im Chat – Pfeil oben rechts in der Blase, Datum als Trenner */
body .vl-msg .vl-blase { position:relative; }
body .vl-msg .vl-blase > .ch-pfeil { top:3px; right:3px; }
body .vl-msg:hover .ch-pfeil, body .vl-msg .ch-pfeil:focus-visible { opacity:1; }
body .vl-msg.ich .ch-pfeil { background:linear-gradient(to left, #fbe5e2 60%, rgba(251,229,226,0)); }
@media (hover:none) { body .vl-msg .ch-pfeil { opacity:.8; } }
body .auf-vl-strom .ch-tag { margin:12px 0 4px; }
