/* Projektmanager Online — pmp-design-Look
   (Header #1E1F5B, Tab-Bar türkis #008BA3, weiße Karten mit farbigem Linksrand).
   Endgültige Stil-Tokens beim Ausbau aus dem Skill `pmp-design` ziehen.
   Merke (Gotcha Desktop-Look): auf Karten KEINE text-shadows, KEINE Pill-Hintergründe. */

:root {
  --main-blau: #1E1F5B;
  --tuerkis: #008BA3;
  --tuerkis-dim: #00748A;
  --orange: #E67700;
  --rot: #D10000;
  --gruen: #1F8A30;
  --bg: #F2F3F7;
  --panel: #FFFFFF;
  --border: #E0E0E0;
  --text: #111111;
  --text-dim: #333333;
  --text-muted: #777777;
}

/* ===== Ansicht „Prioritäten" (Eisenhower-Matrix: wichtig × dringend) ===== */
.prio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 4px 2px 18px; }
.prio-quad { background: var(--panel); border: 1px solid var(--border);
  border-top: 4px solid var(--qc, var(--text-muted)); border-radius: 12px;
  padding: 12px 14px 14px; box-shadow: 0 1px 3px rgba(16,24,64,.08); min-height: 130px; }
.prio-quad.q-do    { --qc: var(--rot); }
.prio-quad.q-plan  { --qc: var(--gruen); }
.prio-quad.q-deleg { --qc: var(--orange); }
.prio-quad.q-later { --qc: #8A93A6; }
.prio-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.prio-head .pq-icon { font-size: 20px; line-height: 1; }
.prio-head .pq-tt { flex: 1; min-width: 0; }
.prio-head .pq-title { font-weight: 800; color: var(--main-blau); font-size: 15px; }
.prio-head .pq-sub { font-size: 11px; color: var(--text-muted); }
.prio-head .pq-count { font-weight: 800; font-size: 17px; color: var(--qc, var(--main-blau));
  background: rgba(30,31,91,.06); border-radius: 9px; padding: 1px 11px; }
.prio-cards { display: flex; flex-wrap: wrap; gap: 10px; align-content: flex-start; }
.prio-cards .kcard { width: 270px; margin: 0; }
.pq-empty { padding: 6px 2px; font-size: 13px; }
.prio-grid.list { grid-template-columns: 1fr; }
.prio-rows { display: flex; flex-direction: column; gap: 1px; }
.prio-li { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 7px;
  cursor: pointer; font-size: 13px; border-bottom: 1px solid var(--border); }
.prio-li:last-child { border-bottom: none; }
.prio-li:hover { background: #F4F6FB; }
.prio-li .pl-dot { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; background: #8A93A6; }
.prio-li.f-ueberfaellig .pl-dot { background: var(--rot); }
.prio-li.f-heute .pl-dot { background: var(--orange); }
.prio-li.f-offen .pl-dot { background: var(--tuerkis); }
.prio-li .pl-title { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.prio-li .pl-prio { font-size: 11px; color: var(--rot); font-weight: 700; flex: 0 0 auto; }
.prio-li .pl-meta { color: var(--text-muted); font-size: 12px; white-space: nowrap; flex: 0 0 auto; }
@media (max-width: 900px) {
  .prio-grid { grid-template-columns: 1fr; }
  .prio-cards .kcard { width: 100%; }
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  font-family: "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
}
#app { display: flex; flex-direction: column; min-height: 100vh; }
button { font-family: inherit; }

/* ---------- Topbar (dunkelblau, 68px) ---------- */
.topbar {
  height: 68px; flex: 0 0 68px;
  background: var(--main-blau);
  display: flex; align-items: center; gap: 14px;
  padding: 0 18px;
  position: sticky; top: 0; z-index: 50;
}
.topbar img.logo { height: 34px; }
.topbar .titel { color: #fff; font-size: 19px; font-weight: 600; }
.topbar .spacer { flex: 1; }
.topbar .user { color: rgba(255,255,255,.85); font-size: 13px; }
.btn-top {
  background: rgba(255,255,255,.12); color: #fff;
  border: 1px solid rgba(255,255,255,.25); border-radius: 6px;
  padding: 7px 14px; cursor: pointer; font-size: 13px;
}
.btn-top:hover { background: rgba(255,255,255,.22); }

/* ---------- Tab-Bar (türkis) ---------- */
.tabbar {
  background: var(--tuerkis);
  display: flex; gap: 2px; padding: 0 10px;
  position: sticky; top: 68px; z-index: 49;
  overflow-x: auto;
}
.tab {
  background: transparent; border: none; color: rgba(255,255,255,.85);
  padding: 11px 18px; font-size: 14px; cursor: pointer; white-space: nowrap;
  border-bottom: 3px solid transparent;
}
.tab:hover { color: #fff; background: rgba(255,255,255,.08); }
.tab.on { color: #fff; font-weight: 600; border-bottom-color: #fff; background: rgba(255,255,255,.1); }

/* ---------- Inhalt ---------- */
#view { flex: 1; padding: 16px; }
.platzhalter {
  margin: 60px auto; max-width: 460px; text-align: center;
  color: var(--text-muted); font-size: 15px;
}
.platzhalter b { color: var(--text-dim); }

/* ---------- Login ---------- */
.login-wrap { flex: 1; display: flex; align-items: center; justify-content: center; padding: 24px; }
.login-card {
  background: var(--panel); border-radius: 12px; width: 380px; max-width: 100%;
  box-shadow: 0 6px 28px rgba(30,31,91,.18); overflow: hidden;
}
.login-kopf {
  background: var(--main-blau); color: #fff; padding: 22px 24px;
  display: flex; align-items: center; gap: 12px;
}
.login-kopf img { height: 30px; }
.login-kopf .t { font-size: 17px; font-weight: 600; }
.login-body { padding: 22px 24px; display: flex; flex-direction: column; gap: 12px; }
.login-body label { font-size: 12.5px; color: var(--text-dim); display: block; margin-bottom: 4px; }
.login-body input {
  width: 100%; padding: 9px 11px; border: 1px solid var(--border); border-radius: 7px;
  font-size: 14px; font-family: inherit;
}
.login-body input:focus { outline: 2px solid var(--tuerkis); border-color: var(--tuerkis); }
.btn-primary {
  background: var(--tuerkis); color: #fff; border: none; border-radius: 7px;
  padding: 10px 16px; font-size: 14.5px; font-weight: 600; cursor: pointer;
}
.merken-zeile { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-dim); }
.merken-zeile input { width: auto; }
.radio-zeile { display: flex; gap: 18px; }
.btn-primary:hover { background: var(--tuerkis-dim); }
.btn-flach { background: none; border: none; color: var(--tuerkis); cursor: pointer; font-size: 13px; }
.fehler { color: var(--rot); font-size: 13px; min-height: 17px; }
.hinweis { color: var(--gruen); font-size: 13px; }

/* ---------- Kanban ---------- */
.kb-leiste { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.pipeline-schalter { display: flex; border: 1px solid var(--tuerkis); border-radius: 8px; overflow: hidden; }
.pipeline-schalter button {
  border: none; background: var(--panel); color: var(--tuerkis);
  padding: 8px 16px; cursor: pointer; font-size: 13.5px;
}
.pipeline-schalter button.on { background: var(--tuerkis); color: #fff; font-weight: 600; }

.kb-wrap { display: flex; gap: 12px; align-items: flex-start; overflow-x: auto; padding-bottom: 12px; }
.kb-col {
  background: #E9EBF2; border-radius: 10px; min-width: 336px; width: 336px;
  padding: 10px; flex: 0 0 auto;
}
.kb-col.dragover { outline: 2px dashed var(--tuerkis); }
.kb-col-kopf {
  display: flex; align-items: center; justify-content: space-between;
  font-weight: 600; font-size: 13.5px; color: var(--main-blau);
  padding: 2px 4px 10px;
}
.kb-col-kopf .anzahl {
  background: var(--main-blau); color: #fff; border-radius: 10px;
  font-size: 11.5px; padding: 1px 8px; font-weight: 600;
}
.kb-cards { display: flex; flex-direction: column; gap: 8px; min-height: 30px; }

.kcard {
  background: var(--panel); border: 1px solid rgba(224,224,224,.9); border-radius: 10px;
  padding: 10px 12px 10px 14px; cursor: grab; position: relative;
  box-shadow: 0 3px 12px rgba(0,0,0,.12);
  user-select: none;
}
.kcard::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px;
  border-radius: 10px 0 0 10px; background: var(--slider, var(--tuerkis));
}
.kcard:hover { border-color: var(--tuerkis); }
.kcard .kt { font-weight: 600; font-size: 13.5px; color: var(--text); margin-bottom: 4px; }
.kcard .kz { font-size: 12px; color: var(--text-dim); line-height: 1.45; }
.kcard.prio-hoch { --slider: var(--rot); }
.kcard.prio-normal { --slider: var(--tuerkis); }
.kcard.prio-niedrig { --slider: #9AA0B5; }
.kcard.mail-warn { border-color: var(--orange); }
.kcard.sel { outline: 2px solid var(--tuerkis); outline-offset: 1px; }
.bulk-bar { position: fixed; left: 50%; transform: translateX(-50%); bottom: 18px; z-index: 250; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; background: var(--main-blau); color: #fff; padding: 8px 14px; border-radius: 10px; box-shadow: 0 8px 26px rgba(0,0,0,.3); }
.bulk-bar .bulk-n { font-weight: 700; margin-right: 4px; }
.bulk-bar .btn-sek { background: #fff; }

/* Reiche Karte: Badges · Zähler · Pflicht-Frist · letzte Maßnahme · Labels */
.kt-zeile { display: flex; justify-content: space-between; align-items: flex-start; gap: 6px; margin-bottom: 4px; }
.kt-zeile .kt { margin-bottom: 0; flex: 1; }
.kbadges { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; flex-shrink: 0; }
.kbadges.links { justify-content: flex-start; margin: 2px 0 5px; }
.kadresse { display: block; font-size: 12px; color: var(--tuerkis-dim); margin: 2px 0; cursor: default; }
.kb-badge { font-size: 9px; font-weight: 700; border-radius: 9px; padding: 1px 7px; line-height: 16px; white-space: nowrap; letter-spacing: .2px; }
.kb-badge.ueberf { color: #fff; background: var(--rot); }
.kb-badge.status.phase-angebot { color: var(--main-blau); background: #E7E8F5; }
.kb-badge.status.phase-auftrag { color: var(--gruen); background: #E6F3E8; }
.kb-badge.neu { color: #7B1FA2; background: #F3E5F5; }
.kb-badge.hs { min-width: 15px; text-align: center; }
.kb-badge.hs-A { color: var(--main-blau); background: #E7E8F5; }
.kb-badge.hs-B { color: var(--gruen); background: #E6F3E8; }
.kb-badge.hs-E { color: var(--text-muted); background: #ECECEC; }
.kcount-zeile { display: flex; flex-wrap: wrap; gap: 4px 9px; align-items: center; font-size: 9.5px; color: var(--text-muted); margin-top: 5px; }
.kcount-zeile .c-mail-offen { color: var(--orange); font-weight: 700; }
.kcount-zeile .c-rot { color: var(--rot); font-weight: 700; }
.kcount-zeile .c-orange { color: var(--orange); }
.kcount-zeile .c-blau { color: var(--main-blau); }
.kcount-zeile .c-gruen { color: var(--gruen); }
.kcount-zeile .c-geaendert { margin-left: auto; }
.kpflicht { font-size: 11px; font-weight: 700; margin-top: 4px; }
.kpflicht.rot { color: var(--rot); }
.kpflicht.orange { color: var(--orange); }
.kpflicht.grau { color: var(--text-dim); }
.kletzte { font-size: 11px; font-weight: 600; color: var(--text); margin-top: 4px; overflow-wrap: anywhere; }
.klabels { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 5px; }
.klabel { font-size: 9px; border-radius: 7px; padding: 1px 7px; line-height: 15px; }
.klabel-0 { color: #1565C0; background: #E3F0FB; }
.klabel-1 { color: #2E7D32; background: #E7F4E8; }
.klabel-2 { color: #C2410C; background: #FBE9DD; }
.klabel-3 { color: #6A1B9A; background: #F2E5F7; }
.klabel-4 { color: #00838F; background: #DEF3F5; }
.klabel-5 { color: #AD1457; background: #FBE4EE; }
@media (max-width: 700px) { .kcount-zeile .c-geaendert { display: none; } }

.btn-neu {
  width: 100%; margin-top: 8px; background: none; border: 1px dashed #B8BDD0;
  color: var(--text-muted); border-radius: 8px; padding: 8px; cursor: pointer; font-size: 13px;
}
.btn-neu:hover { border-color: var(--tuerkis); color: var(--tuerkis); }

/* ---------- Kalender ---------- */
.kal-leiste { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.kal-nav { display: flex; gap: 4px; }
.kal-nav button { border: 1px solid var(--border); background: var(--panel); border-radius: 7px; padding: 5px 11px; cursor: pointer; font-size: 14px; }
.kal-nav button:hover { border-color: var(--tuerkis); color: var(--tuerkis); }
.kal-titel { font-weight: 700; font-size: 16px; color: var(--main-blau); }
.kal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.kal-kopf { font-size: 11px; font-weight: 700; color: var(--text-muted); text-align: center; padding: 2px 0; }
.kal-zelle { min-height: 104px; background: var(--panel); border: 1px solid var(--border); border-radius: 8px; padding: 4px 5px; overflow: hidden; }
.kal-grid.woche .kal-zelle { min-height: 320px; }
.kal-zelle.fremd { opacity: .45; }
.kal-zelle.heute { outline: 2px solid var(--tuerkis); }
.kal-zelle.dragover { outline: 2px dashed var(--tuerkis); background: #F0FAFC; }
.kal-tag { font-size: 11px; font-weight: 700; color: var(--text-dim); margin-bottom: 3px; }
.kal-chip { font-size: 10.5px; border-radius: 6px; padding: 2px 6px; margin-top: 3px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kal-chip.tuerkis { background: #DEF3F5; color: var(--tuerkis-dim); }
.kal-chip.orange { background: #FCEBD6; color: var(--orange); }
.kal-chip.rot { background: #FDE2E2; color: var(--rot); }
.kal-chip.wunsch { background: #ECECF7; color: var(--main-blau); }
.kal-chip:hover { filter: brightness(.96); }
.kal-mehr { font-size: 9.5px; color: var(--text-muted); margin-top: 3px; }
@media (max-width: 700px) { .kal-zelle { min-height: 70px; } .kal-chip { font-size: 9px; } }

/* ---------- Modal (Wrapper-Klasse heißt „modal" — Konvention!) ---------- */
.modal-bg {
  position: fixed; inset: 0; background: rgba(20,22,50,.45);
  display: flex; align-items: center; justify-content: center; z-index: 100; padding: 16px;
}
.modal {
  background: var(--panel); border-radius: 12px; width: 480px; max-width: 100%;
  max-height: 92vh; overflow: auto; box-shadow: 0 10px 40px rgba(0,0,0,.3);
}
.modal-kopf {
  background: var(--main-blau); color: #fff; padding: 14px 18px;
  font-weight: 600; font-size: 15px; border-radius: 12px 12px 0 0;
  display: flex; justify-content: space-between; align-items: center;
}
.modal-kopf .x { background: none; border: none; color: #fff; font-size: 19px; cursor: pointer; }
.modal-body { padding: 16px 18px; display: flex; flex-direction: column; gap: 11px; }
.modal-body label { font-size: 12.5px; color: var(--text-dim); display: block; margin-bottom: 3px; }
.modal-body input, .modal-body select, .modal-body textarea {
  width: 100%; padding: 8px 10px; border: 1px solid var(--border); border-radius: 7px;
  font-size: 13.5px; font-family: inherit;
}
.modal-body textarea { min-height: 90px; resize: vertical; }
.modal-fuss { display: flex; justify-content: flex-end; gap: 8px; padding: 0 18px 16px; }
.btn-sek {
  background: var(--panel); border: 1px solid var(--border); border-radius: 7px;
  padding: 9px 14px; cursor: pointer; font-size: 13.5px; color: var(--text-dim);
}

/* ---------- Karten-Optik nach Frist (wie Desktop) ---------- */
.kcard.f-ueberfaellig { --slider: var(--rot); background: #FFF5F5; }
.kcard.f-heute { --slider: var(--orange); background: #FFF9F0; }
.kcard.f-offen, .kcard.f-normal { --slider: var(--gruen); }
.kcard.f-done { --slider: #C026D3; opacity: .82; }
.kb-badge.prio-b.hoch { color: var(--rot); background: #FDE8E8; }
.kb-badge.prio-b.niedrig { color: var(--text-muted); background: #ECECEC; }
.kcount { font-size: 12px; font-weight: 700; margin-top: 5px; }
.kcount.rot { color: var(--rot); }
.kcount.orange { color: var(--orange); }
.kcard.flash { outline: 3px solid #22FF78; transition: outline .3s; }

/* ---------- Leisten / Suche ---------- */
.suchfeld input {
  padding: 8px 11px; border: 1px solid var(--border); border-radius: 7px;
  font-size: 13.5px; min-width: 220px; font-family: inherit;
}
.kb-leiste .spacer { flex: 1; }
.kb-leiste select {
  padding: 8px 10px; border: 1px solid var(--border); border-radius: 7px;
  font-size: 13px; background: var(--panel); font-family: inherit;
}

/* ---------- Tabellen ---------- */
.tabelle-wrap { overflow: auto; background: var(--panel); border-radius: 10px;
  border: 1px solid var(--border); }
.tabelle { width: 100%; border-collapse: collapse; font-size: 13px; }
.tabelle th {
  position: sticky; top: 0; background: var(--main-blau); color: #fff;
  text-align: left; padding: 9px 10px; font-size: 12.5px; white-space: nowrap;
}
.tabelle td { padding: 7px 10px; border-bottom: 1px solid #EEF0F5; }
.tabelle tr.klick { cursor: pointer; }
.tabelle tr.klick:hover { background: #F0F6FA; }
.tabelle tr.warn { background: #FFF7F0; }
.rot { color: var(--rot); font-weight: 600; }
.dim { color: var(--text-muted); }
.klein { font-size: 11.5px; }
.hinweis { color: var(--gruen); font-size: 13px; padding: 6px 0; }
.hinweis-platz { min-height: 18px; font-size: 13px; }
.fehler { color: var(--rot); font-size: 13px; min-height: 17px; }

/* ---------- Großes Modal / 2-spaltig ---------- */
.modal-breit { width: 1060px; }
.m-zweispaltig { display: flex; gap: 20px; }
.m-links { flex: 1.15; min-width: 0; }
.m-rechts { flex: 1; min-width: 0; border-left: 1px solid var(--border); padding-left: 18px; }
.feld { margin-bottom: 9px; }
.feld label { font-size: 12px; color: var(--text-dim); display: block; margin-bottom: 3px; }
.feld input, .feld select, .feld textarea {
  width: 100%; padding: 7px 9px; border: 1px solid var(--border); border-radius: 7px;
  font-size: 13px; font-family: inherit;
}
.feld textarea { resize: vertical; }
.zeile2 { display: flex; gap: 10px; }
.zeile2 > * { flex: 1; min-width: 0; }
.zeile2.eng { gap: 6px; }
.abschnitt-titel { font-weight: 700; color: var(--main-blau); margin: 12px 0 7px; font-size: 13.5px; }

/* Objekt-Autocomplete + Vorschlagslisten */
.objekt-feld { position: relative; }
.vorschlaege {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 20;
  background: var(--panel); border: 1px solid var(--border); border-radius: 8px;
  box-shadow: 0 8px 22px rgba(0,0,0,.18); max-height: 220px; overflow: auto;
}
.vorschlaege.fest { position: static; box-shadow: none; margin: 6px 0; }
.vorschlag { padding: 7px 11px; cursor: pointer; font-size: 13px; }
.vorschlag:hover, .vorschlag.on { background: #E8F4F7; }

/* ---------- Panel-Tabs im Karten-Dialog ---------- */
.panel-wrap { display: flex; flex-direction: column; min-height: 420px; }
.panel-tabs { display: flex; flex-wrap: wrap; gap: 3px; border-bottom: 2px solid var(--tuerkis); }
.panel-tabs button {
  border: none; background: #EDF0F6; padding: 7px 10px; font-size: 12.5px;
  border-radius: 7px 7px 0 0; cursor: pointer; color: var(--text-dim);
}
.panel-tabs button.on { background: var(--tuerkis); color: #fff; font-weight: 600; }
.panel-inhalt { padding-top: 10px; overflow: auto; max-height: 520px; }

.m-neuzeile { display: flex; gap: 6px; margin-bottom: 10px; align-items: center; flex-wrap: wrap; }
.m-neuzeile input, .m-neuzeile select {
  padding: 7px 9px; border: 1px solid var(--border); border-radius: 7px; font-size: 13px;
  flex: 1; min-width: 90px; font-family: inherit;
}
.m-neuzeile input[type=date], .m-neuzeile input[type=time] { flex: 0 0 auto; }
.m-eintrag {
  display: flex; gap: 8px; align-items: flex-start; padding: 7px 6px;
  border-bottom: 1px solid #EEF0F5;
}
.m-eintrag.klick { cursor: pointer; }
.m-eintrag.klick:hover { background: #F4F7FB; }
.m-eintrag.erledigt .m-titel { text-decoration: line-through; color: var(--text-muted); }
.m-text { flex: 1; min-width: 0; }
.ao-btns { display: inline-flex; gap: 4px; flex: 0 0 auto; }
.ao-btns .btn-mini[disabled] { opacity: 0.3; cursor: default; }
.m-titel { font-size: 13px; color: var(--text); font-weight: 600; overflow-wrap: anywhere; }
.m-meta { font-size: 11.5px; color: var(--text-muted); overflow-wrap: anywhere; }
.chk {
  width: 22px; height: 22px; border-radius: 6px; border: 2px solid var(--tuerkis);
  background: #fff; cursor: pointer; color: #fff; font-size: 13px; line-height: 16px; flex: 0 0 auto;
}
.chk.on { background: var(--gruen); border-color: var(--gruen); }
.btn-mini {
  background: #EDF0F6; border: none; border-radius: 6px; padding: 5px 9px;
  cursor: pointer; font-size: 12.5px; flex: 0 0 auto;
}
.btn-mini:hover { background: #DEE4EF; }
.btn-gefahr { color: var(--rot); border-color: #F3C4C4; }
.v-eintrag { font-size: 12.5px; padding: 5px 4px; border-bottom: 1px solid #F0F2F7; }
.v-zeit { color: var(--text-muted); margin-right: 7px; font-size: 11.5px; }
.v-typ { background: #EDF0F6; border-radius: 5px; padding: 1px 7px; margin-right: 7px; font-size: 11px; }
.zeile-klick { padding: 7px 8px; border-bottom: 1px solid #F0F2F7; cursor: pointer;
  font-size: 13px; display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.zeile-klick:hover { background: #F0F6FA; }
.zeile-klick .btn-mini { margin-left: auto; }
.mail-body {
  white-space: pre-wrap; font-family: inherit; font-size: 13px; background: #FAFBFD;
  border: 1px solid var(--border); border-radius: 8px; padding: 12px; max-height: 480px; overflow: auto;
}

/* ---------- Mail-Tab ---------- */
.mail-layout { display: flex; gap: 12px; height: calc(100vh - 230px); min-height: 420px; }
.mail-ordner {
  flex: 0 0 230px; background: var(--panel); border: 1px solid var(--border);
  border-radius: 10px; overflow: auto;
}
.ordner-zeile { padding: 7px 10px; cursor: pointer; font-size: 13px; display: flex;
  align-items: center; gap: 6px; }
.ordner-zeile:hover { background: #F0F6FA; }
.ordner-zeile.on { background: #E2F1F5; font-weight: 600; }
.badge-klein {
  background: var(--tuerkis); color: #fff; border-radius: 9px; font-size: 10.5px;
  padding: 1px 6px; font-weight: 700;
}
.mail-liste {
  flex: 0 0 330px; background: var(--panel); border: 1px solid var(--border);
  border-radius: 10px; overflow: auto;
}
.mail-listen-kopf { padding: 9px 11px; border-bottom: 2px solid var(--tuerkis); }
.lade-zeit { float: right; font-size: 11.5px; color: var(--tuerkis); font-weight: 600; }
.mail-zeile { padding: 8px 11px; border-bottom: 1px solid #EEF0F5; cursor: pointer; }
.mail-zeile:hover, .mail-zeile.on { background: #F0F6FA; }
.mail-zeile.ungelesen .mz-betreff { font-weight: 700; }
.mail-zeile.zugeordnet { background: #F4FBF4; }
.mz-betreff { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mz-meta { font-size: 11.5px; color: var(--text-muted); }
.mz-tag { font-size: 11.5px; color: var(--gruen); font-weight: 600; }
.mail-filter { display: flex; gap: 6px; padding: 7px 10px; border-bottom: 1px solid #EEF0F5; }
.mail-filter-chip { font-size: 11.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px;
  border: 1px solid var(--border); background: #fff; color: var(--text-muted); cursor: pointer; }
.mail-filter-chip:hover { border-color: var(--tuerkis); }
.mail-filter-chip.on { background: var(--tuerkis); color: #fff; border-color: var(--tuerkis); }
.mail-vorschau { flex: 1; background: var(--panel); border: 1px solid var(--border);
  border-radius: 10px; overflow: auto; padding: 12px; }
.mv-betreff { font-size: 15.5px; font-weight: 700; color: var(--main-blau); margin-bottom: 4px; }
.mail-kopf { border-bottom: 1px solid var(--border); padding-bottom: 9px; margin-bottom: 9px; }
.mail-anhaenge { margin: 6px 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.anhang-chip {
  display: inline-block; background: #EAF3F7; border: 1px solid #CFE3EA; border-radius: 6px;
  padding: 3px 9px; font-size: 12px; color: var(--tuerkis-dim); text-decoration: none; cursor: pointer;
}
.anhang-chip:hover { background: #DBEEF4; }
/* Inline-Anhang-Vorschau (Overlay, kein neuer Tab) */
.vorschau-inhalt { min-height: 55vh; }
.vorschau-frame { width: 100%; height: 72vh; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.vorschau-bild { max-width: 100%; max-height: 72vh; display: block; margin: 0 auto; }
.vorschau-tabelle { max-height: 72vh; overflow: auto; }
.vorschau-tabelle h4 { margin: 8px 0 4px; color: var(--main-blau); }
.vt { border-collapse: collapse; font-size: 12.5px; margin-bottom: 10px; }
.vt th, .vt td { border: 1px solid #DDE3EA; padding: 3px 8px; text-align: left; white-space: nowrap; }
.vt th { background: #EEF2F7; position: sticky; top: 0; }
.mail-aktionen { display: flex; gap: 8px; margin-top: 9px; flex-wrap: wrap; }
.drop-zone {
  margin-top: 14px; border: 2px dashed #B8BDD0; border-radius: 10px; padding: 14px;
  text-align: center; color: var(--text-muted); font-size: 13px;
}
.drop-zone.on { border-color: var(--tuerkis); color: var(--tuerkis); background: #F0FAFC; }

/* ---------- Angebots-PDF-Galerie ---------- */
.pdf-galerie { display: flex; gap: 12px; height: 70vh; min-height: 420px; }
.pdf-liste { flex: 0 0 320px; overflow: auto; border: 1px solid var(--border); border-radius: 8px; }
.pdf-zeile { padding: 8px 11px; border-bottom: 1px solid #EEF0F5; cursor: pointer; }
.pdf-zeile:hover, .pdf-zeile.on { background: #F0F6FA; }
.pdf-name { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pdf-frame { flex: 1; border: 1px solid var(--border); border-radius: 8px; background: #fff; }

/* ---------- Dashboard ---------- */
.kacheln { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.kachel {
  background: var(--panel); border-radius: 12px; border: 1px solid var(--border);
  padding: 14px 22px; min-width: 150px; box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.kachel .k-zahl { font-size: 30px; font-weight: 800; color: var(--main-blau); }
.kachel .k-label { font-size: 12.5px; color: var(--text-muted); }
.kachel.rot .k-zahl { color: var(--rot); }
.kachel.orange .k-zahl { color: var(--orange); }
.db-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; }
.db-box { background: var(--panel); border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 14px; }
.balken-zeile { display: flex; align-items: center; gap: 8px; margin: 4px 0; font-size: 12.5px; }
.balken-label { flex: 0 0 145px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.balken { flex: 1; background: #EDF0F6; border-radius: 5px; height: 14px; overflow: hidden; }
.balken-fuell { background: var(--tuerkis); height: 100%; border-radius: 5px; }
.balken-zahl { flex: 0 0 28px; text-align: right; font-weight: 600; }

/* ---------- Einstellungen ---------- */
.einst-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 14px; }
.einst-box { background: var(--panel); border: 1px solid var(--border); border-radius: 10px;
  padding: 13px 15px; }

/* ---------- Kontextmenü ---------- */
.kontextmenu {
  position: fixed; z-index: 300; background: var(--panel);
  border: 1px solid var(--border); border-radius: 8px;
  box-shadow: 0 8px 26px rgba(0,0,0,.22); padding: 5px; min-width: 210px;
}
.km-eintrag { display: flex; align-items: center; gap: 7px; padding: 8px 12px; font-size: 13.5px; cursor: pointer; border-radius: 6px; white-space: nowrap; position: relative; }
.km-eintrag:hover { background: #EAF3F7; }
.km-label { flex: 1; }
.km-haken { width: 12px; flex-shrink: 0; color: var(--tuerkis); font-weight: 700; }
.km-pfeil { color: var(--text-muted); font-size: 11px; flex-shrink: 0; }
.km-gefahr { color: var(--rot); }
.km-eintrag.deaktiviert { color: var(--text-muted); opacity: .55; cursor: default; }
.km-eintrag.deaktiviert:hover { background: none; }
.km-trenner { height: 1px; background: var(--border); margin: 4px 6px; }
.km-untermenu {
  display: none; position: absolute; left: 100%; top: -6px;
  background: var(--panel); border: 1px solid var(--border); border-radius: 8px;
  box-shadow: 0 8px 26px rgba(0,0,0,.22); padding: 5px; min-width: 200px;
  max-height: 72vh; overflow-y: auto; z-index: 301;
}
.km-hat-sub:hover > .km-untermenu { display: block; }
.kontextmenu.auf-links .km-untermenu { left: auto; right: 100%; }
.pfad-zeile { display: flex; align-items: center; gap: 8px; margin: 3px 0; }
.pfad-code { flex: 1; background: var(--bg); padding: 4px 8px; border-radius: 6px; font-size: 12px; word-break: break-all; }
.btn-mini { border: 1px solid var(--border); background: var(--panel); border-radius: 6px; padding: 3px 9px; cursor: pointer; font-size: 13px; }
.btn-mini:hover { border-color: var(--tuerkis); }
.batch-tabelle { max-height: 58vh; overflow: auto; margin-top: 10px; }
.batch-tabelle table input { width: 100%; min-width: 90px; padding: 4px 6px; }
.batch-tabelle tr.warn { background: #FFF7E0; }
.kachel.klick { cursor: pointer; }
.kachel.klick:hover { outline: 2px solid var(--tuerkis); }
.mt-kopf { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.mein-tag { margin: 6px 0 14px; }

/* Lade-Animation (Spinner) */
.spinner { display: inline-block; width: 15px; height: 15px; border: 2px solid var(--tuerkis); border-top-color: transparent; border-radius: 50%; animation: dreh .7s linear infinite; vertical-align: middle; flex: 0 0 auto; }
.spinner.gross { width: 26px; height: 26px; border-width: 3px; }
@keyframes dreh { to { transform: rotate(360deg); } }
.lade-zeile { display: flex; align-items: center; gap: 8px; padding: 8px; color: #666; }

/* Lazy-Ordner-Baum in der Arbeitsordner-Verwaltung */
.ao-dialog { min-width: 380px; max-width: 580px; }
.ao-liste { margin: 4px 0 2px; }
.ao-liste .m-meta { font-size: 11px; }
.ordner-baum { max-height: 320px; overflow: auto; border: 1px solid #d8dce3; border-radius: 8px; padding: 4px 0; margin-top: 4px; background: #fff; }
.baum-zeile { display: flex; align-items: center; gap: 4px; padding: 4px 8px; cursor: pointer; white-space: nowrap; border-radius: 6px; }
.baum-zeile:hover { background: #EAF6F8; }
.baum-zeile.sel { background: #D6EEF2; box-shadow: inset 0 0 0 1px var(--tuerkis); }
.baum-zeile.drin .baum-name { color: var(--tuerkis); font-weight: 600; }
.baum-zeile.drin .baum-name::after { content: " ✓"; }
.baum-pfeil { width: 14px; text-align: center; color: #888; flex: 0 0 auto; user-select: none; }
.ao-add { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding-top: 8px; border-top: 1px solid #eee; }
.ao-add .stark { color: var(--tuerkis); font-weight: 600; word-break: break-all; }

/* Eigenes KI-Icon (statt Roboter-Emoji) */
.ki-icon { display: inline-flex; vertical-align: -.24em; }
.ki-icon svg { width: 1.3em; height: 1.3em; }
.ki-icon rect { fill: var(--tuerkis); }
.ki-icon text { fill: #fff; font: 700 13px "Segoe UI", system-ui, sans-serif; letter-spacing: .5px; }
.ki-icon .funke { fill: #FFCC3E; }

/* Projektfortschritt-Zeitstrahl im Karten-Detail */
.fortschritt-block { margin: 0 0 14px; padding: 10px 12px; background: #fff; border: 1px solid #e3e6ec; border-radius: 10px; }
.fortschritt-strahl { display: flex; align-items: flex-start; margin-top: 8px; }
.fs-stufe { flex: 1; text-align: center; position: relative; min-width: 0; }
.fs-stufe::before { content: ""; position: absolute; top: 11px; left: -50%; width: 100%; height: 3px; background: #dce0e6; z-index: 0; }
.fs-stufe:first-child::before { display: none; }
.fs-stufe.erledigt::before, .fs-stufe.aktuell::before { background: var(--tuerkis); }
.fs-punkt { position: relative; z-index: 1; width: 24px; height: 24px; margin: 0 auto; border-radius: 50%; background: #fff; border: 3px solid #dce0e6; color: #fff; font-size: 12px; font-weight: 700; line-height: 18px; }
.fs-stufe.erledigt .fs-punkt { background: var(--tuerkis); border-color: var(--tuerkis); }
.fs-stufe.aktuell .fs-punkt { background: #F57C00; border-color: #F57C00; box-shadow: 0 0 0 4px rgba(245, 124, 0, .18); }
.fs-label { font-size: 11px; margin-top: 5px; color: #666; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fs-stufe.aktuell .fs-label { color: #E65100; font-weight: 600; }
.fs-datum { font-size: 9.5px; color: #9aa0a8; margin-top: 1px; min-height: 12px; white-space: nowrap; }
.fs-stufe.aktuell .fs-datum { color: #E65100; }
.fortschritt-status { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; }
.fortschritt-status .klickbar { cursor: pointer; text-decoration: underline dotted; text-underline-offset: 3px; }
.fortschritt-status .klickbar:hover { filter: brightness(0.85); }
.fs-bereit { color: #2E7D32; font-weight: 600; }
.fs-wartet { color: #B8860B; }
.fs-urgenz { color: #C62828; font-weight: 600; }

/* Karte: Mini-Pipeline-Punkte + wartet-auf/bereit + Urgenz-Badge */
.kdots { display: flex; gap: 4px; margin: 4px 0 2px; }
.kdot { width: 7px; height: 7px; border-radius: 50%; background: #d8dce3; }
.kdot.done { background: var(--tuerkis); }
.kdot.now { background: #F57C00; box-shadow: 0 0 0 2px rgba(245, 124, 0, .25); }
.kwartet { font-size: 11.5px; color: #B8860B; margin: 2px 0; }
.kbereit { font-size: 11.5px; color: #2E7D32; font-weight: 600; margin: 2px 0; }
.kb-badge.urgenz { background: #C62828; color: #fff; }

/* Outlook-Kategorie-Chips (Mail-Liste + Dialog) */
.mz-kats { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 3px; }
.kat-chip { display: inline-block; padding: 1px 8px; border-radius: 9px; color: #fff; font-size: 10.5px; font-weight: 600; line-height: 16px; }
.kat-zeile { display: flex; align-items: center; gap: 8px; padding: 5px 0; cursor: pointer; }

/* Subs/Intern-Panel: aufgeräumte 2-zeilige Einträge (kein gequetschter Senkrecht-Text) */
.sub-eintrag { border: 1px solid #e3e6ec; border-radius: 8px; padding: 7px 9px; margin-bottom: 6px; }
.sub-kopf { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.sub-name { font-weight: 600; word-break: break-word; }
.sub-aktionen { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 7px; }
.sub-aktionen select { flex: 1 1 130px; min-width: 110px; }
.flag-zeile { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding-top: 4px; }
.flag { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--text-dim); cursor: pointer; }
.such-liste { max-height: 340px; overflow-y: auto; margin-top: 8px; }
.mail-notiz { background: #FFF7E0; border: 1px solid #F0E2B0; border-radius: 6px; padding: 6px 9px; font-size: 12.5px; margin-bottom: 8px; }

/* ---------- Glocke + Toast ---------- */
.btn-glocke { position: relative; }
.btn-glocke .badge {
  position: absolute; top: -6px; right: -7px; background: var(--rot); color: #fff;
  font-size: 10.5px; border-radius: 9px; padding: 1px 6px; font-weight: 700;
}
.toast {
  position: fixed; bottom: 22px; left: 50%; transform: translate(-50%, 24px);
  background: var(--main-blau); color: #fff; border-radius: 9px; padding: 11px 20px;
  font-size: 13.5px; opacity: 0; transition: all .3s; z-index: 200; max-width: 84vw;
  box-shadow: 0 6px 22px rgba(0,0,0,.3);
}
.toast.an { opacity: 1; transform: translate(-50%, 0); }
.toast-fehler { background: #8E1B1B; }

/* ---------- Mobil (Grundzüge — Ausbau folgt) ---------- */
@media (max-width: 900px) {
  .m-zweispaltig { flex-direction: column; }
  .m-rechts { border-left: none; padding-left: 0; }
  .mail-layout { flex-direction: column; height: auto; }
  .mail-ordner, .mail-liste { flex: 0 0 auto; max-height: 240px; }
}
@media (max-width: 700px) {
  .kb-wrap { flex-direction: column; }
  .kb-col { width: 100%; min-width: 0; }
  .topbar .titel { font-size: 15px; }
  .topbar { padding: 0 10px; gap: 8px; }
  .topbar .user { display: none; }
  .suchfeld input { min-width: 130px; }
}

/* Excel-Beauftragungen als Schatten-Karten in der Auftrags-Pipeline (read-only aus dem Dispo-Excel) */
.kcard.schatten { border-left: 3px dashed #008BA3; opacity: 0.93; cursor: grab; }
.kcard.schatten:hover { opacity: 1; }
.kb-badge.excel { background: rgba(0, 139, 163, 0.14); color: #006B7D; }

/* Exchange-Verbindungsleuchte in der Topbar */
.exch-licht { display: inline-flex; align-items: center; gap: 5px; }
.exch-licht .punkt { font-size: 11px; line-height: 1; }
.exch-licht.exch-ok .punkt { color: #2ecc71; }
.exch-licht.exch-fehler .punkt { color: #e74c3c; }
.exch-licht.exch-aus .punkt { color: #9aa0a6; }
.exch-licht.exch-pruef .punkt { color: #f1c40f; }

/* Mail: Verschieben-Touch-Button (je Zeile) + Stempel-Aktion am Anhang */
.mz-kopf { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; }
.mz-kopf .mz-betreff { flex: 1 1 auto; min-width: 0; }
.mz-move { flex: 0 0 auto; background: none; border: none; cursor: pointer; opacity: 0.5; font-size: 14px; line-height: 1; padding: 0 2px; }
.mz-move:hover { opacity: 1; }
.anhang-wrap { display: inline-flex; align-items: center; gap: 2px; margin-right: 4px; }
.anhang-stempel { padding: 1px 6px; }

/* Kanban-Swimlanes (Zeilen-Gruppierung, z. B. nach Verwalter) */
.kb-swimlanes { display: flex; flex-direction: column; gap: 16px; }
.kb-swimlane-kopf { font-weight: 700; color: #1E1F5B; font-size: 14px; padding: 3px 6px; border-left: 4px solid #008BA3; margin-bottom: 4px; }
.swim-select { font-size: 12.5px; padding: 4px 6px; border: 1px solid #CBD2DE; border-radius: 6px; background: #fff; color: #1E1F5B; }
.swimfilter-btn { white-space: nowrap; }
.btn-sek.aktiv, .swimfilter-btn.aktiv { border-color: #008BA3; color: #008BA3; font-weight: 600; background: #EAF6F8; }
.swim-filter-pop { position: fixed; z-index: 1000; background: #fff; border: 1px solid #CBD2DE; border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18); padding: 10px; width: 260px; display: flex; flex-direction: column; gap: 8px; }
.swimf-title { font-size: 12px; font-weight: 600; color: #6B7280; padding: 0 2px; }
.swimf-search { width: 100%; padding: 6px 8px; border: 1px solid #CBD2DE; border-radius: 8px; font-size: 13px; box-sizing: border-box; }
.swimf-list { display: flex; flex-direction: column; max-height: 260px; overflow-y: auto; border-top: 1px solid #EEF0F5; border-bottom: 1px solid #EEF0F5; padding: 2px 0; }
.swimf-item { display: flex; align-items: center; gap: 8px; padding: 5px 4px; font-size: 13px; cursor: pointer; border-radius: 6px; }
.swimf-item:hover { background: #EEF0F6; }
.swimf-item input[type=checkbox] { width: auto; margin: 0; flex: 0 0 auto; }
.swimf-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.swimf-all { font-weight: 600; }
.swimf-actions { display: flex; align-items: center; gap: 6px; }
.swimf-actions .spacer { flex: 1; }

/* ===================== Hilfe-Center ===================== */
/* Topbar-Knopf „?" + „Neu"-Punkt */
.btn-hilfe { position: relative; font-weight: 700; }
.btn-hilfe .neu-punkt {
  position: absolute; top: -4px; right: -4px; width: 9px; height: 9px;
  background: #E67700; border: 1px solid #fff; border-radius: 50%;
}

/* Versions-Banner unter der Tab-Bar */
.hilfe-banner {
  display: flex; align-items: center; gap: 10px;
  background: #EAF6F8; border-bottom: 1px solid #BfE3EA;
  color: #11414B; padding: 9px 16px; font-size: 13.5px;
}
.hilfe-banner .hb-ic { font-size: 16px; }
.hilfe-banner .hb-text { flex: 0 1 auto; }
.hilfe-banner .spacer { flex: 1; }
.hilfe-banner .hb-btn {
  background: var(--tuerkis); color: #fff; border: none; border-radius: 7px;
  padding: 6px 14px; font-size: 13px; font-weight: 600; cursor: pointer;
}
.hilfe-banner .hb-btn:hover { background: var(--tuerkis-dim); }
.hilfe-banner .hb-x { background: none; border: none; color: #11414B; cursor: pointer; font-size: 15px; opacity: .6; }
.hilfe-banner .hb-x:hover { opacity: 1; }

/* Layout: Navigation links, Inhalt rechts */
.hilfe-layout { display: flex; height: min(72vh, 660px); margin: -4px 0; }
.hilfe-nav {
  flex: 0 0 248px; display: flex; flex-direction: column;
  border-right: 1px solid var(--border); padding-right: 12px; min-height: 0;
}
.hilfe-suche-feld {
  width: 100%; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px;
  font-size: 13.5px; font-family: inherit; margin-bottom: 8px;
}
.hilfe-nav-liste { overflow-y: auto; flex: 1; min-height: 0; padding-right: 2px; }
.hilfe-nav-grp {
  font-size: 11.5px; font-weight: 700; color: var(--text-muted);
  text-transform: none; padding: 12px 6px 4px; letter-spacing: .2px;
}
.hilfe-nav-item {
  display: flex; align-items: center; gap: 8px; width: 100%;
  background: none; border: none; text-align: left; cursor: pointer;
  padding: 8px 8px; border-radius: 8px; font-size: 13.5px; color: var(--text-dim);
}
.hilfe-nav-item:hover { background: #EEF0F6; }
.hilfe-nav-item.on { background: #EAF6F8; color: var(--main-blau); font-weight: 600; }
.hilfe-nav-item .hni-ic { width: 18px; text-align: center; flex: 0 0 auto; }
.hilfe-nav-item .hni-t { flex: 1; }

.hilfe-inhalt { flex: 1; overflow-y: auto; padding: 0 4px 20px 22px; min-width: 0; }
.hilfe-thema .hi-h2 { color: var(--main-blau); font-size: 20px; margin: 4px 0 12px; }
.hilfe-thema .hi-h3 { color: var(--main-blau); font-size: 15px; margin: 20px 0 6px; }
.hilfe-thema .hi-p { font-size: 14px; line-height: 1.6; margin: 8px 0; color: var(--text); }
.hilfe-thema .hi-ul, .hilfe-thema .hi-ol { font-size: 14px; line-height: 1.6; padding-left: 22px; margin: 8px 0; }
.hilfe-thema .hi-ul li, .hilfe-thema .hi-ol li { margin: 5px 0; }
.hilfe-thema strong { color: var(--text); }

/* selbst erstellte „Screenshots" / Diagramme */
.hilfe-svg {
  margin: 14px 0; padding: 10px; background: #fff;
  border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 2px 10px rgba(0,0,0,.05);
}
.hilfe-svg svg { width: 100%; height: auto; display: block; border-radius: 8px; }
.hilfe-svg figcaption { font-size: 12px; color: var(--text-muted); margin-top: 8px; text-align: center; }

/* Hinweis-Boxen */
.hilfe-callout { border-radius: 10px; padding: 10px 13px; margin: 14px 0; font-size: 13.5px; border-left: 4px solid; }
.hilfe-callout .hc-titel { font-weight: 700; margin-bottom: 3px; }
.hilfe-callout .hc-text { line-height: 1.55; }
.hilfe-callout.c-tipp { background: #EAF7EE; border-color: var(--gruen); }
.hilfe-callout.c-tipp .hc-titel { color: #16631F; }
.hilfe-callout.c-info { background: #EAF6F8; border-color: var(--tuerkis); }
.hilfe-callout.c-info .hc-titel { color: var(--tuerkis-dim); }
.hilfe-callout.c-warnung { background: #FFF6E9; border-color: var(--orange); }
.hilfe-callout.c-warnung .hc-titel { color: #9A5200; }

/* Tastenkürzel */
.hilfe-kbd {
  display: inline-block; background: #F2F3F7; border: 1px solid #CBD2DE; border-bottom-width: 2px;
  border-radius: 5px; padding: 1px 7px; font-size: 12px; font-family: "Segoe UI", system-ui, sans-serif;
  color: var(--text-dim); margin: 0 1px;
}

/* „Neu"-Etiketten + Kärtchen */
.hilfe-neu-tag {
  display: inline-block; background: var(--orange); color: #fff; font-size: 9.5px; font-weight: 700;
  border-radius: 9px; padding: 1px 7px; line-height: 15px; letter-spacing: .3px; margin-left: 6px;
}
.hilfe-neu-tag.verbessert { background: var(--tuerkis); }
.hilfe-neu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin: 14px 0; }
.hilfe-neu-karte { border: 1px solid var(--border); border-radius: 11px; padding: 12px; background: #fff; }
.hilfe-neu-karte .hn-kopf { display: flex; align-items: center; gap: 7px; margin-bottom: 6px; }
.hilfe-neu-karte .hn-ic { font-size: 18px; }
.hilfe-neu-karte .hn-titel { font-weight: 700; color: var(--main-blau); font-size: 13.5px; flex: 1; }
.hilfe-neu-karte .hn-text { font-size: 12.5px; line-height: 1.5; color: var(--text-dim); }

/* FAQ */
.hilfe-faq-item { border: 1px solid var(--border); border-radius: 10px; padding: 4px 12px; margin: 8px 0; background: #fff; }
.hilfe-faq-item summary { cursor: pointer; font-weight: 600; font-size: 13.5px; color: var(--text); padding: 8px 0; list-style: none; }
.hilfe-faq-item summary::-webkit-details-marker { display: none; }
.hilfe-faq-item summary::before { content: "▸ "; color: var(--tuerkis); }
.hilfe-faq-item[open] summary::before { content: "▾ "; }
.hilfe-faq-a { font-size: 13.5px; line-height: 1.6; color: var(--text-dim); padding: 2px 0 10px 14px; }

/* Animationen: Karte wandert durch die Spalten + Token im Arbeitsweise-Bild */
.hi-flow-card { animation: hilfeFlow 13s ease-in-out infinite; }
@keyframes hilfeFlow {
  0%, 10%   { transform: translateX(0); }
  18%, 30%  { transform: translateX(145px); }
  38%, 50%  { transform: translateX(290px); }
  58%, 70%  { transform: translateX(435px); }
  78%, 100% { transform: translateX(580px); }
}
.hi-wf-token { animation: hilfeWf 15s ease-in-out infinite; }
@keyframes hilfeWf {
  0%, 8%    { transform: translateX(0); }
  22%, 30%  { transform: translateX(150px); }
  44%, 52%  { transform: translateX(300px); }
  66%, 74%  { transform: translateX(450px); }
  88%, 100% { transform: translateX(600px); }
}
@media (prefers-reduced-motion: reduce) {
  .hi-flow-card, .hi-wf-token { animation: none; }
}

/* Mobil: Navigation über den Inhalt stapeln */
@media (max-width: 760px) {
  .hilfe-layout { flex-direction: column; height: auto; }
  .hilfe-nav { flex: 0 0 auto; border-right: none; border-bottom: 1px solid var(--border); padding-right: 0; padding-bottom: 10px; margin-bottom: 10px; }
  .hilfe-nav-liste { max-height: 200px; }
  .hilfe-inhalt { padding-left: 0; overflow: visible; }
}

/* ===== Mini CRM Online — Cockpit / Verwalter / Postfächer ===== */
.ck-chk { display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--text-dim); }
.ck-chk input { width: auto; }
.ck-split { display: flex; gap: 14px; align-items: stretch; height: calc(100vh - 210px); }
.ck-tabelle { flex: 1.6; min-width: 0; }
.ck-detail { flex: 1; min-width: 280px; max-width: 420px; background: var(--panel);
  border: 1px solid var(--border); border-radius: 10px; overflow: auto; }
.tabelle tr.inaktiv td { color: var(--text-muted); }
.tabelle tr.sel td { background: #E7F4F7; }
.ck-kopf { font-size: 16px; font-weight: 700; color: var(--main-blau); padding: 16px 16px 2px; }
.ck-unter { font-size: 12.5px; color: var(--text-muted); padding: 0 16px 12px; }
.ck-trenner { height: 1px; background: var(--border); margin: 0 16px 10px; }
.ck-zeile { display: grid; grid-template-columns: 120px 1fr; gap: 10px; padding: 6px 16px; align-items: start; }
.ck-label { font-size: 12px; color: var(--text-dim); font-weight: 600; }
.ck-wert { font-size: 13px; color: var(--text); white-space: pre-line; }
.ck-mail { display: block; font-size: 12px; color: var(--tuerkis); }

.vw-grid { display: flex; flex-direction: column; gap: 10px; max-width: 860px; }
.vw-karte { background: var(--panel); border: 1px solid var(--border); border-radius: 10px;
  box-shadow: 0 1px 3px rgba(16,24,64,.06); overflow: hidden; }
.vw-kopf { display: flex; align-items: center; gap: 10px; padding: 12px 14px; cursor: pointer; }
.vw-kopf:hover { background: #F4F7FB; }
.vw-pfeil { color: var(--tuerkis); width: 14px; font-size: 12px; }
.vw-kuerzel { font-weight: 700; color: var(--main-blau); font-size: 15px; }
.vw-name { font-size: 12.5px; }
.vw-badge { background: var(--main-blau); color: #fff; border-radius: 10px; font-size: 11.5px;
  padding: 2px 10px; font-weight: 600; }
.vw-badge.sek { background: #E7E8F5; color: var(--main-blau); }
.vw-ass { border-top: 1px solid var(--border); }
.vw-ass-zeile { display: grid; grid-template-columns: 1.2fr 1.6fr auto; gap: 10px;
  padding: 7px 14px 7px 38px; border-bottom: 1px solid #F0F2F7; font-size: 13px; align-items: center; }
.vw-ass-zeile:last-child { border-bottom: none; }
.vw-ass-name { font-weight: 600; }
.vw-ass-mail a { color: var(--tuerkis); }
.vw-ass-n { color: var(--text-muted); font-size: 12px; white-space: nowrap; }

.pf-grid { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; }
.pf-box { background: var(--panel); border: 1px solid var(--border); border-radius: 10px;
  padding: 14px 16px; box-shadow: 0 1px 3px rgba(16,24,64,.06); flex: 1; min-width: 320px; max-width: 460px; }
.pf-knoepfe, .pf-neu { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.pf-neu input { flex: 1; min-width: 120px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 7px; font-family: inherit; }
.pf-liste { display: flex; flex-direction: column; gap: 4px; }
.pf-zeile { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-bottom: 1px solid #F0F2F7; font-size: 13px; }
.pf-mail { font-weight: 600; color: var(--main-blau); }
.ordner-baum { max-height: 60vh; overflow: auto; font-size: 13px; }
.ordner-zeile { padding: 2px 0; }
.ordner-label { cursor: pointer; }

/* ===== Vorgänge / Objekt-Akte ===== */
.kal-chip.grau { background: #ECEEF3; color: var(--text-dim); }
.kal-chip.gruen { background: #E6F3E8; color: var(--gruen); }

.vg-pickwrap { flex: 0 0 320px; min-width: 280px; background: var(--panel);
  border: 1px solid var(--border); border-radius: 10px; overflow: auto; }
.vg-pickliste { display: flex; flex-direction: column; }
.vg-pick { padding: 9px 12px; border-bottom: 1px solid #F0F2F7; cursor: pointer; }
.vg-pick:hover { background: #F4F7FB; }
.vg-pick.on { background: #E7F4F7; box-shadow: inset 3px 0 0 var(--tuerkis); }
.vg-pick-t { font-size: 13px; font-weight: 600; color: var(--main-blau); }
.vg-pick-u { font-size: 11.5px; }

.vg-akte { flex: 1.6; min-width: 0; overflow: auto; padding: 4px 4px 30px; }
.vg-akte-kopf { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 6px 4px 0; }
.vg-akte-adr { font-size: 17px; font-weight: 700; color: var(--main-blau); }
.vg-akte-unter { font-size: 12.5px; padding: 2px 4px 6px; }
.vg-arten { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }

.vg-karte { margin-bottom: 14px; }
.vg-karte-kopf { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 8px; }
.vg-karte-t { font-weight: 700; font-size: 14px; color: var(--main-blau); }
.vg-zus { background: #F4F7FB; border-radius: 8px; padding: 9px 11px; font-size: 12.5px;
  color: var(--text-dim); margin-bottom: 10px; }

.vg-tl { position: relative; margin-left: 6px; padding-left: 18px; }
.vg-tl::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px;
  width: 2px; background: var(--border); }
.vg-tl-item { position: relative; margin-bottom: 11px; }
.vg-dot { position: absolute; left: -18px; top: 3px; width: 12px; height: 12px;
  border-radius: 50%; border: 2px solid var(--panel); }
.vg-tl-t { font-size: 13px; color: var(--text); font-weight: 600; }
.vg-tl-u { font-size: 11.5px; }
.vg-tl-s { font-size: 12px; margin-top: 2px; }

.vg-hinweis { margin-top: 10px; background: #E1F5EE; border-radius: 8px; padding: 9px 12px;
  font-size: 12.5px; color: #0F6E56; }
.vg-hinweis b { color: #04342C; }

.vg-pipeline { display: flex; gap: 10px; flex-wrap: wrap; }
.vg-pip-sp { flex: 1; min-width: 150px; }
.vg-pip-kopf { display: flex; justify-content: space-between; align-items: center;
  font-size: 12.5px; font-weight: 600; padding: 8px 10px; border-radius: 8px;
  background: var(--panel); border: 1px solid var(--border); }
.vg-pip-kopf.tuerkis { color: var(--tuerkis-dim); }
.vg-pip-kopf.orange { color: var(--orange); }
.vg-pip-kopf.gruen { color: var(--gruen); }
.vg-pip-n { background: var(--main-blau); color: #fff; border-radius: 9px;
  font-size: 11px; padding: 1px 8px; }

/* ===== Verwalter: Klick → Objekte, Bearbeiten ===== */
.vw-grp { padding: 8px 10px 2px; font-weight: 500; }
.vw-ass-zeile.klick { cursor: pointer; }
.vw-ass-zeile.klick:hover { background: #F4F7FB; }
.vw-edit { background: none; border: none; color: var(--text-muted); cursor: pointer;
  font-size: 14px; padding: 0 4px; }
.vw-edit:hover { color: var(--tuerkis); }
.vw-badge.klick { cursor: pointer; }
.vw-badge.klick:hover { filter: brightness(1.15); }
.vw-obj-liste { max-height: 60vh; overflow: auto; min-width: 380px; }
.vw-obj-zeile { display: flex; gap: 10px; padding: 7px 8px; border-bottom: 1px solid #F0F2F7;
  cursor: pointer; font-size: 13px; }
.vw-obj-zeile:hover { background: #E7F4F7; }
.vw-obj-nr { font-weight: 600; color: var(--main-blau); min-width: 64px; }
.vg-ki-btn { background: none; border: 1px solid var(--border); color: var(--tuerkis-dim);
  border-radius: 7px; font-size: 11.5px; padding: 3px 9px; cursor: pointer; }
.vg-ki-btn:hover { background: #E1F5EE; }
.vg-anh { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.vg-anh-btn { background: none; border: 1px solid var(--border); color: var(--main-blau);
  border-radius: 7px; font-size: 11.5px; padding: 3px 9px; cursor: pointer; }
.vg-anh-btn:hover { background: #F0F6FA; }
.vg-anh-chip { background: #ECEEF3; color: var(--main-blau); border-radius: 7px;
  font-size: 11.5px; padding: 3px 9px; cursor: pointer; max-width: 280px; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
.vg-anh-chip.bild { background: #E1F5EE; color: #0F6E56; }
.vg-anh-chip.pdf { background: #FDE2E2; color: var(--rot); }
.vg-anh-chip:hover { filter: brightness(0.96); }
