/* ============================================================
   MOVING Dashboard – Design-System "Cupertino" (v13)
   Hell + Dunkel automatisch (Systemeinstellung) + Umschalter
   ============================================================ */
:root {
  --primary: #0071e3;
  --primary-dark: #0060c2;
  --primary-soft: rgba(0,113,227,.10);
  --accent: #0071e3;
  --bg: #f5f5f7;
  --bg-elevated: #ffffff;
  --card: #ffffff;
  --sidebar: rgba(246,246,248,.85);
  --ink: #1d1d1f;
  --ink-2: #424245;
  --muted: #86868b;
  --line: rgba(0,0,0,.10);
  --hairline: rgba(0,0,0,.06);
  --field: rgba(125,125,135,.10);
  --rot: #e0342b;      --rot-soft: rgba(255,59,48,.12);
  --orange: #c93400;   --orange-bg: #ff9500; --orange-soft: rgba(255,149,0,.14);
  --gruen: #1d7a37;    --gruen-bg: #34c759;  --gruen-soft: rgba(52,199,89,.14);
  --lila: #8944ab;     --lila-soft: rgba(175,82,222,.12);
  --radius: 18px; --r-md: 12px; --r-sm: 8px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 30px -14px rgba(0,0,0,.12);
  --shadow-pop: 0 12px 40px -8px rgba(0,0,0,.22);
  --blur: saturate(180%) blur(20px);
}
[data-theme="dark"] {
  --primary: #2997ff;
  --primary-dark: #0a84ff;
  --primary-soft: rgba(41,151,255,.16);
  --accent: #2997ff;
  --bg: #161617;
  --bg-elevated: #2c2c2e;
  --card: #1d1d1f;
  --sidebar: rgba(22,22,23,.85);
  --ink: #f5f5f7;
  --ink-2: #d2d2d7;
  --muted: #98989d;
  --line: rgba(255,255,255,.14);
  --hairline: rgba(255,255,255,.08);
  --field: rgba(125,125,135,.20);
  --rot: #ff6961;      --rot-soft: rgba(255,69,58,.18);
  --orange: #ffb340;   --orange-soft: rgba(255,159,10,.18);
  --gruen: #4cd964;    --gruen-soft: rgba(48,209,88,.18);
  --lila: #da8fff;     --lila-soft: rgba(191,90,242,.18);
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 30px -14px rgba(0,0,0,.6);
  --shadow-pop: 0 12px 40px -8px rgba(0,0,0,.8);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg); color: var(--ink);
  font-size: 14px; line-height: 1.47; letter-spacing: -.006em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Layout ---------- */
.layout { display: flex; min-height: 100vh; }
main { flex: 1; padding: 32px 40px 64px; max-width: 1200px; margin: 0 auto; min-width: 0; }

/* ---------- Sidebar (macOS-Finder-Stil, hell/frosted) ---------- */
.sidebar {
  width: 248px; flex-shrink: 0; position: sticky; top: 0; height: 100vh;
  background: var(--sidebar); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border-right: 1px solid var(--hairline);
  color: var(--ink-2); display: flex; flex-direction: column; padding: 20px 12px 14px;
  overflow-y: auto;
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none;
  color: var(--ink); padding: 2px 8px 16px; }
.brand:hover { text-decoration: none; }
.brand-text { font-weight: 700; font-size: 16px; letter-spacing: -.02em; line-height: 1.15; }
.brand-text small { display: block; font-weight: 500; font-size: 10.5px; color: var(--muted);
  letter-spacing: .06em; text-transform: uppercase; }

.sidebar nav { flex: 1; display: flex; flex-direction: column; gap: 2px; margin-top: 2px; }
.sidebar nav a {
  display: flex; align-items: center; gap: 10px; color: var(--ink-2); text-decoration: none;
  padding: 7px 10px; border-radius: var(--r-sm); font-size: 13.5px; font-weight: 500;
  transition: background .12s, color .12s;
}
.sidebar nav a svg { width: 16px; height: 16px; fill: none; stroke: var(--primary);
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.sidebar nav a:hover { background: rgba(125,125,135,.14); color: var(--ink); text-decoration: none; }
.sidebar nav a.active { background: var(--primary); color: #fff; }
.sidebar nav a.active svg { stroke: #fff; }
.nav-sep { font-size: 11px; font-weight: 600; letter-spacing: .02em;
  color: var(--muted); padding: 14px 10px 4px; text-transform: none; }

.sidebar-foot { display: flex; align-items: center; gap: 10px; padding: 12px 8px 2px;
  border-top: 1px solid var(--hairline); }
.avatar { width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(145deg,#6e6e73,#48484a);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 13px; flex-shrink: 0; }
.who { flex: 1; min-width: 0; line-height: 1.25; }
.who strong { display: block; color: var(--ink); font-size: 13px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; }
.who span { font-size: 11px; color: var(--muted); }
.logout, .theme-btn { color: var(--muted); padding: 6px; border-radius: 50%; display: flex;
  border: 0; background: rgba(125,125,135,.14); cursor: pointer; }
.logout:hover, .theme-btn:hover { background: rgba(125,125,135,.25); color: var(--ink); text-decoration: none; }
.logout svg, .theme-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Typografie ---------- */
h1 { font-size: 30px; font-weight: 700; letter-spacing: -.028em; margin: 2px 0 20px; line-height: 1.12; }
h2 { font-size: 16px; font-weight: 650; letter-spacing: -.015em; margin: 26px 0 12px; }
.card h2:first-child, .card h2[style] { margin-top: 0; }
.muted { color: var(--muted); font-size: 13px; }

/* ---------- Karten ---------- */
.card { background: var(--card); border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: 20px 22px; margin-bottom: 18px; box-shadow: var(--shadow); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }
@media (max-width: 860px) { .grid2, .grid3 { grid-template-columns: 1fr; } }

/* ---------- KPIs ---------- */
.kpis { display: flex; gap: 14px; flex-wrap: wrap; }
.kpi { flex: 1; min-width: 140px; background: var(--card);
  border: 1px solid var(--hairline); border-radius: var(--r-md); padding: 14px 16px;
  box-shadow: var(--shadow); }
.card .kpi { background: var(--bg); box-shadow: none; }
[data-theme="dark"] .card .kpi { background: rgba(255,255,255,.04); }
.zahl { font-size: 26px; font-weight: 700; color: var(--ink); letter-spacing: -.03em;
  font-variant-numeric: tabular-nums; }
.kpi .muted { margin-top: 2px; font-size: 12px; }

/* ---------- Tabellen ---------- */
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .05em; color: var(--muted); padding: 6px 10px 8px;
  border-bottom: 1px solid var(--hairline); }
td { text-align: left; padding: 10px; border-bottom: 1px solid var(--hairline);
  vertical-align: top; font-size: 13.5px; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td, tr:hover td { background: rgba(125,125,135,.06); }
tr:hover td.todo-gruppenkopf { background: transparent; }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2.5px 9px;
  border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.b-rot { background: var(--rot-soft); color: var(--rot); }
.b-orange { background: var(--orange-soft); color: var(--orange); }
.b-gruen { background: var(--gruen-soft); color: var(--gruen); }
.b-blau { background: var(--primary-soft); color: var(--primary); }
.b-grau { background: rgba(125,125,135,.14); color: var(--muted); }

/* ---------- Buttons (Pill-Form) ---------- */
.btn { display: inline-flex; align-items: center; gap: 6px; background: var(--primary);
  color: #fff; border: 0; padding: 8px 18px; border-radius: 980px; text-decoration: none;
  cursor: pointer; font-size: 13.5px; font-weight: 500; font-family: inherit;
  transition: filter .15s, transform .05s; }
.btn:hover { filter: brightness(1.08); text-decoration: none; background: var(--primary); }
.btn:active { transform: scale(.97); }
.btn:focus-visible, a:focus-visible, .chip:focus-visible { outline: none;
  box-shadow: 0 0 0 3px var(--primary-soft); }
.btn-sm { padding: 5px 13px; font-size: 12.5px; }
.btn-grau { background: rgba(125,125,135,.14); color: var(--ink); }
.btn-grau:hover { background: rgba(125,125,135,.22); filter: none; }
.btn-rot { background: rgba(125,125,135,.14); color: var(--rot); }
.btn-rot:hover { background: var(--rot-soft); filter: none; }
.btn-gruen { background: var(--gruen-bg); color: #fff; }
.btn-gruen:hover { filter: brightness(1.06); background: var(--gruen-bg); }

/* ---------- Formulare ---------- */
form.inline { display: inline; }
label { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-2); margin: 12px 0 5px; }
input[type=text], input[type=password], input[type=date], input[type=number],
select, textarea {
  width: 100%; padding: 9px 12px; border: 1px solid transparent; border-radius: 10px;
  font-family: inherit; font-size: 13.5px; background: var(--field); color: var(--ink);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft); background: var(--bg-elevated); }
input:disabled { opacity: .6; }
textarea { min-height: 72px; resize: vertical; }
::placeholder { color: var(--muted); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-actions { margin-top: 18px; display: flex; gap: 10px; }

/* Original-Feld versteckt, wenn durch Apple-Komponente ersetzt */
.ui-hidden { position: absolute !important; width: 1px !important; height: 1px !important;
  padding: 0 !important; margin: 0 !important; opacity: 0 !important;
  pointer-events: none !important; border: 0 !important; }

/* ---------- Apple-Style Pull-down (ersetzt native Selects) ---------- */
.dd { position: relative; }
.dd-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: var(--field); border: 1px solid transparent; border-radius: 10px;
  padding: 9px 12px; font: inherit; font-size: 13.5px; color: var(--ink);
  cursor: pointer; text-align: left; transition: border .15s, box-shadow .15s;
}
.dd-btn:hover { background: rgba(125,125,135,.16); }
.dd-btn .chev { color: var(--muted); flex-shrink: 0; transition: transform .18s;
  width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round; }
.dd.open .dd-btn { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft);
  background: var(--bg-elevated); }
.dd.open .chev.rot { transform: rotate(180deg); }
.dd-menu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 100%;
  max-height: 280px; overflow: auto;
  background: rgba(255,255,255,.88); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--hairline); border-radius: 12px;
  box-shadow: var(--shadow-pop); padding: 5px; z-index: 95; animation: ddpop .16s ease;
}
[data-theme="dark"] .dd-menu { background: rgba(44,44,46,.88); }
@keyframes ddpop { from { opacity: 0; transform: scale(.97) translateY(4px); } to { opacity: 1; transform: none; } }
.dd-item { display: flex; align-items: center; gap: 8px; padding: 7px 12px 7px 8px;
  border-radius: 8px; cursor: pointer; font-size: 13.5px; white-space: nowrap; color: var(--ink); }
.dd-item:hover { background: var(--primary); color: #fff; }
.dd-item .tick { width: 15px; flex-shrink: 0; visibility: hidden; }
.dd-item.sel .tick { visibility: visible; }

/* ---------- Apple-Style Kalender (ersetzt native Datumsfelder) ---------- */
.dd-menu.cal { min-width: 0; width: 256px; padding: 10px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 8px; }
.cal-head b { font-size: 13.5px; letter-spacing: -.01em; }
.cal-nav { border: 0; background: none; color: var(--primary); cursor: pointer;
  padding: 3px 9px; border-radius: 7px; font-size: 15px; line-height: 1.2; font-family: inherit; }
.cal-nav:hover { background: var(--primary-soft); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-wd { text-align: center; font-size: 10.5px; font-weight: 600; color: var(--muted); padding: 3px 0; }
.cal-day { border: 0; background: none; font: inherit; font-size: 12.5px; color: var(--ink);
  width: 30px; height: 30px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center; margin: 0 auto; padding: 0; }
.cal-day:hover { background: var(--primary-soft); }
.cal-day.other { color: var(--muted); opacity: .45; }
.cal-day.today { color: var(--primary); font-weight: 700; }
.cal-day.sel { background: var(--primary); color: #fff; font-weight: 600; }
.cal-day.sel:hover { background: var(--primary); }

/* ---------- Meldungen ---------- */
.hinweis { display: block; background: var(--orange-soft); border: 1px solid rgba(255,149,0,.25);
  border-radius: var(--r-md); padding: 12px 16px; margin-bottom: 18px; font-size: 13.5px; }
.fehler { background: var(--rot-soft); border: 1px solid rgba(255,59,48,.3);
  border-radius: var(--r-md); padding: 12px 16px; margin-bottom: 18px;
  color: var(--rot); font-size: 13.5px; }
.leer { color: var(--muted); font-size: 13px; padding: 12px 0; }

details summary { cursor: pointer; color: var(--primary); margin: 4px 0; font-size: 13.5px; }

/* ---------- Login ---------- */
body.auth { background: var(--bg); }
.login-wrap { max-width: 400px; margin: 13vh auto 0; padding: 0 18px; }
.brand-big { text-align: center; font-size: 30px; font-weight: 700; color: var(--ink);
  margin-bottom: 4px; letter-spacing: -.03em; }
.brand-sub { text-align: center; color: var(--muted); font-size: 12px; margin-bottom: 28px;
  letter-spacing: .1em; text-transform: uppercase; }
.login-wrap .card { padding: 26px 28px; }

/* ---------- Seitenkopf & Toolbar ---------- */
.page-head { display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head h1 { margin-bottom: 12px; }
.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.toolbar input { max-width: 260px; }

/* Chips als Segmented Control */
.chips { display: inline-flex; background: rgba(125,125,135,.14); border-radius: 9px;
  padding: 2px; gap: 2px; flex-wrap: wrap; }
.chip { border: 0; background: none; color: var(--ink-2); padding: 5px 14px;
  border-radius: 7px; font-size: 13px; font-weight: 500; cursor: pointer;
  font-family: inherit; transition: background .15s, box-shadow .15s; text-decoration: none; }
.chip:hover { color: var(--ink); text-decoration: none; }
.chip.active { background: var(--bg-elevated); color: var(--ink);
  box-shadow: 0 1px 4px rgba(0,0,0,.12); }

/* ---------- Mitarbeiter-Karten ---------- */
.ma-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.ma-card { display: block; background: var(--card); border: 1px solid var(--hairline);
  border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow);
  text-decoration: none; color: var(--ink); transition: transform .14s, box-shadow .14s; }
.ma-card:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow-pop); }
.ma-card.warnung { border-color: rgba(255,59,48,.4); }
.ma-card.inaktiv { opacity: .55; }
.ma-top { display: flex; align-items: center; gap: 12px; margin-bottom: 11px; }
.avatar-lg { width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 15px; color: #fff; letter-spacing: .02em; }
.av-0 { background: linear-gradient(145deg,#0a84ff,#0055d4); }
.av-1 { background: linear-gradient(145deg,#bf5af2,#8944ab); }
.av-2 { background: linear-gradient(145deg,#ff9f0a,#c93400); }
.av-3 { background: linear-gradient(145deg,#30d158,#1d7a37); }
.av-4 { background: linear-gradient(145deg,#ff375f,#c11c3f); }
.av-5 { background: linear-gradient(145deg,#64d2ff,#0071a4); }
.ma-name { min-width: 0; }
.ma-name strong { display: block; font-size: 14.5px; margin-bottom: 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ma-info { display: flex; flex-direction: column; gap: 2px; font-size: 12.5px;
  color: var(--muted); margin-bottom: 12px; }
.frist-rot { color: var(--rot); font-weight: 600; }
.ma-stats { display: flex; gap: 6px; border-top: 1px solid var(--hairline); padding-top: 12px; }
.stat-mini { flex: 1; text-align: center; font-size: 10.5px; color: var(--muted);
  background: rgba(125,125,135,.09); border-radius: var(--r-sm); padding: 6px 4px; line-height: 1.35; }
.stat-mini b { display: block; font-size: 15px; font-weight: 700; color: var(--ink); }
.stat-mini.s-orange b { color: var(--orange); }
.stat-mini.s-rot b { color: var(--rot); }

/* ---------- Mobile Topbar + Schubladen-Menü ---------- */
.navtoggle { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.topbar, .nav-backdrop { display: none; }

@media (max-width: 820px) {
  .topbar { display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 40;
    background: var(--sidebar); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
    color: var(--ink); padding: 10px 14px; border-bottom: 1px solid var(--hairline); }
  .burger { display: flex; cursor: pointer; padding: 6px; margin: -6px 0; }
  .burger svg { width: 24px; height: 24px; fill: none; stroke: var(--ink); stroke-width: 2;
    stroke-linecap: round; }
  .topbar-logo { width: 30px; height: 30px; border-radius: 7px; background: #fff;
    object-fit: contain; padding: 2px; }
  .topbar-title { font-weight: 650; font-size: 15px; letter-spacing: -.01em; }

  .layout { display: block; min-height: 0; }
  .sidebar { position: fixed; top: 0; left: 0; height: 100vh; width: 276px; max-width: 82vw;
    transform: translateX(-100%); transition: transform .22s ease; z-index: 60;
    overflow-y: auto; box-shadow: var(--shadow-pop);
    background: var(--bg-elevated); }
  .navtoggle:checked ~ .layout .sidebar { transform: translateX(0); }
  .nav-backdrop { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.35);
    backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
    z-index: 55; opacity: 0; pointer-events: none; transition: opacity .2s; }
  .navtoggle:checked ~ .layout .nav-backdrop { opacity: 1; pointer-events: auto; }

  main { padding: 16px 14px; max-width: 100%; }
  h1 { font-size: 21px; margin-bottom: 16px; }
  .card { padding: 15px 16px; overflow-x: auto; }
  .kpi { min-width: 120px; }
  .ma-grid { grid-template-columns: 1fr; }
  .btn { padding: 10px 16px; }
  .btn-sm { padding: 7px 12px; }
}

/* ---- Fahrten-Vorlauf (taxi.de): Monatskalender ---- */
.vorlauf-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-top: 4px; }
.vl-kopf { text-align: center; font-size: .72em; font-weight: 600; color: var(--muted);
  text-transform: uppercase; letter-spacing: .04em; padding-bottom: 2px; }
.vl-kurz { display: none; }
@media (max-width: 900px) { .vorlauf-grid { gap: 6px; }
  .vl-zahl { font-size: 1.4em; } .vl-detail span { padding: 1px 4px; } }
@media (max-width: 700px) {
  .vorlauf-grid { gap: 3px; }
  .vorlauf-tag { padding: 4px 1px 3px; border-radius: 6px; }
  .vl-lang { display: none; }
  .vl-kurz { display: inline; }
  .vl-label { font-size: .72em; }
  .vl-zahl { font-size: 1.05em; line-height: 1.2; }
  .vl-detail, .vl-kapa { display: none; }
  .vorlauf-tag.vl-eng { box-shadow: 0 0 0 1px var(--rot) inset; }
}
.vorlauf-tag { background: var(--bg); border: 1px solid var(--hairline); border-radius: 10px;
  padding: 9px 4px 7px; text-align: center; min-width: 0;
  display: flex; flex-direction: column; justify-content: flex-start;
  transition: transform .1s, box-shadow .1s, border-color .12s; }
[data-theme="dark"] .vorlauf-tag { background: rgba(255,255,255,.04); }
.vorlauf-tag:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.vorlauf-tag.vl-heute { background: var(--primary); border-color: var(--primary);
  box-shadow: 0 6px 18px -6px rgba(0,113,227,.5); }
.vorlauf-tag.vl-heute .vl-label, .vorlauf-tag.vl-heute .vl-zahl,
.vorlauf-tag.vl-heute .vl-kapa { color: #fff; }
.vorlauf-tag.vl-heute .vl-detail span { background: rgba(255,255,255,.22); color: #fff; }
.vorlauf-tag.vl-we { background: rgba(125,125,135,.07); }
.vorlauf-tag.vl-null { opacity: .45; }
.vorlauf-tag.vl-vergangen { opacity: .55; }
.vorlauf-tag.vl-vergangen .vl-zahl { color: var(--muted); font-weight: 600; }
.vl-label { font-size: .74em; font-weight: 600; color: var(--muted); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; }
.vl-zahl { font-size: 1.75em; font-weight: 700; line-height: 1.25; color: var(--ink);
  font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.vl-detail { display: flex; flex-wrap: wrap; gap: 3px; justify-content: center;
  min-height: 18px; margin-top: auto; padding-top: 2px; }
.vl-detail span { font-size: .66em; color: var(--ink-2); background: rgba(125,125,135,.14);
  border-radius: 999px; padding: 1px 7px; white-space: nowrap; }
.vl-kapa { font-size: .7em; color: var(--muted); margin-top: 3px; }
.vl-kapa-eng { color: var(--rot); font-weight: 700; }
.vorlauf-tag.vl-eng { border-color: rgba(255,59,48,.55); }
.vorlauf-tag.vl-eng .vl-zahl { color: var(--rot); }

/* Tagesprofil (Analyse-Seite) */
.vl-profil { display: grid; grid-template-columns: repeat(24, 1fr); gap: 2px; align-items: end; }
.vl-stunde { text-align: center; min-width: 0; }
.vl-balken-huelle { height: 64px; display: flex; align-items: flex-end; }
.vl-balken { width: 100%; background: linear-gradient(180deg, var(--primary), var(--primary-dark));
  border-radius: 4px 4px 2px 2px; min-height: 1px; opacity: .85; }
.vl-stunde-label { font-size: .62em; color: var(--muted); margin-top: 2px; }
.vl-stunde-n { font-size: .66em; color: var(--ink-2); min-height: 1.1em; }

.vl-summen { float: right; margin-top: 6px; }
@media (max-width: 700px) { .vl-summen { float: none; display: block; margin: 2px 0 6px; } }

/* ---- To-Dos: Apple-Reminders-Stil ---- */
.haken { font-size: .85em; white-space: nowrap; }
.haken.h-grau { color: var(--muted); }
.haken.h-blau { color: var(--primary); font-weight: 600; }
.haken.h-gruen { color: var(--gruen); font-weight: 600; }
.haken.h-warn { color: var(--rot); font-weight: 600; }

.todo-gruppe { margin-bottom: 18px; }
.todo-gruppenkopf { display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 8px 2px; border-bottom: 1px solid var(--hairline); margin-bottom: 2px; }
.todo-gruppenname { font-weight: 650; font-size: 15px; letter-spacing: -.01em; }
.todo-avatar { width: 28px; height: 28px; font-size: 11.5px; border-radius: 50%; }
.av-frei { background: linear-gradient(145deg,#98989d,#6e6e73); }
.todo-unzugewiesen .todo-gruppenkopf { border-bottom-color: rgba(255,149,0,.35); }

.todo-zeile { display: flex; align-items: flex-start; gap: 12px;
  padding: 11px 2px; border-bottom: 1px solid var(--hairline); }
.todo-zeile:last-child { border-bottom: 0; }
.todo-inhalt { flex: 1; min-width: 0; }
.todo-titel { font-weight: 500; font-size: 14px; }
.todo-titel .badge { margin-left: 6px; }
.todo-fertig .todo-titel { text-decoration: line-through; color: var(--muted); font-weight: 400; }
.todo-meta { margin-top: 3px; font-size: 12px; }
.todo-del { margin-left: auto; }

.todo-check { width: 22px; height: 22px; min-width: 22px; border-radius: 50%;
  border: 1.5px solid var(--line); background: transparent; cursor: pointer; padding: 0;
  margin-top: 1px; transition: border-color .15s, background .15s, box-shadow .15s;
  display: inline-flex; align-items: center; justify-content: center;
  color: transparent; font-size: 12px; line-height: 1; }
.todo-check:hover { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.todo-check:focus-visible { outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft); }
.todo-check-voll { border-color: var(--primary); background: var(--primary); color: #fff;
  cursor: default; }

.todo-edit summary { font-size: 12.5px; color: var(--primary); cursor: pointer;
  margin-top: 4px; list-style: none; }
.todo-edit summary::before { content: "\2699 "; }
.todo-edit[open] summary { color: var(--muted); }
.todo-edit-form { background: var(--field); border: 1px solid var(--hairline); border-radius: 12px;
  padding: 4px 14px 14px; margin-top: 8px; }
.todo-edit-form label { margin-top: 10px; }

/* ============ Aufgaben / Board ============ */
.todo-head { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-bottom:14px; }
.seg { display:inline-flex; background:var(--bg-elevated); border:1px solid var(--hairline); border-radius:10px; padding:3px; gap:2px; }
.seg a { padding:6px 14px; border-radius:8px; font-size:13px; font-weight:500; color:var(--muted); text-decoration:none; }
.seg a:hover { color:var(--ink); }
.seg a.an { background:var(--card); color:var(--ink); box-shadow:0 1px 4px rgba(0,0,0,.12); }
.todo-filter { display:flex; gap:8px; flex-wrap:wrap; align-items:center; margin-bottom:14px; }
.todo-filter select { width:auto; min-width:150px; }
.tk-neu { margin-bottom:16px; }
.tk-neu input[type=text], .tk-neu textarea { width:100%; }
.label-wahl { display:flex; flex-wrap:wrap; gap:6px 16px; margin:4px 0 8px; }
.lw { font-weight:400; display:inline-flex; align-items:center; gap:4px; font-size:13px; }
.lw input { width:auto; }

.board { display:flex; gap:14px; align-items:flex-start; overflow-x:auto; padding-bottom:6px; }
.board-col { flex:1 1 0; min-width:250px; background:var(--bg-elevated); border:1px solid var(--hairline); border-radius:14px; padding:10px; }
.board-col-kopf { font-weight:600; font-size:13px; padding:2px 6px 10px; display:flex; align-items:center; gap:8px; color:var(--ink); }
.board-n { background:var(--card); border:1px solid var(--hairline); border-radius:20px; padding:0 8px; font-size:12px; color:var(--muted); }
.board-erledigt .board-col-kopf { color:var(--muted); }
.board-leer { color:var(--muted); text-align:center; padding:14px 0; font-size:13px; }
.tk-liste { max-width:760px; }
.faellig-sektion { margin-bottom:20px; }
.faellig-sektion h3 { display:flex; align-items:center; gap:8px; font-size:14px; margin:0 0 8px; }
.faellig-sektion h3.rot { color:var(--rot); }

/* Karte */
.tk { background:var(--card); border:1px solid var(--hairline); border-radius:12px; padding:11px 12px; margin-bottom:9px; box-shadow:0 1px 3px rgba(0,0,0,.05); }
.tk-liste .tk, .faellig-sektion .tk { max-width:760px; }
.tk-hoch { border-left:3px solid var(--rot); }
.tk-fertig { opacity:.6; }
.tk-fertig .tk-titel { text-decoration:line-through; }
.tk-top { display:flex; gap:9px; align-items:flex-start; }
.tk-titel { font-weight:560; color:var(--ink); text-decoration:none; line-height:1.35; }
.tk-titel:hover { color:var(--primary); }
.tk-check { width:19px; height:19px; min-width:19px; border-radius:50%; border:2px solid var(--muted); background:none; cursor:pointer; margin-top:1px; padding:0; transition:.15s; }
.tk-check:hover { border-color:var(--gruen); }
.tk-check-an { background:var(--gruen); border-color:var(--gruen); position:relative; }
.tk-check-an::after { content:"✓"; color:#fff; font-size:12px; position:absolute; inset:0; display:flex; align-items:center; justify-content:center; }
.tk-check-gross { width:26px; height:26px; min-width:26px; }
.tk-meta { display:flex; flex-wrap:wrap; gap:6px; align-items:center; margin:8px 0 0; padding-left:28px; }
.tk-proj { font-size:12px; color:var(--muted); display:inline-flex; align-items:center; gap:4px; }
.dot { width:9px; height:9px; border-radius:50%; display:inline-block; }
.tk-label { font-size:11px; padding:1px 8px; border-radius:20px; border:1px solid; font-weight:500; }
.tk-mini { font-size:12px; color:var(--muted); }
.tk-live { color:var(--gruen); font-weight:600; }
.tk-foot { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-top:9px; padding-left:28px; }
.tk-foot-l { display:flex; align-items:center; gap:8px; }
.tk-status { width:auto; font-size:12px; padding:3px 8px; }
.avatar-sm { width:24px; height:24px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; font-size:12px; font-weight:600; color:#fff; text-transform:uppercase; }
.av-frei { background:var(--muted); }

/* Detailseite */
.td-kopf { display:flex; align-items:center; gap:12px; }
.td-badges { display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin:12px 0 18px; }
.td-zeit { font-size:20px; font-weight:700; font-variant-numeric:tabular-nums; }
.teil-zeile { display:flex; align-items:center; gap:9px; padding:6px 0; border-bottom:1px solid var(--hairline); }
.teil-fertig { text-decoration:line-through; color:var(--muted); }
.teil-neu { display:flex; gap:8px; margin-top:10px; }
.teil-neu input { flex:1; }
.td-verlauf { display:flex; flex-direction:column; gap:8px; max-height:340px; overflow-y:auto; }
.td-komm { border-bottom:1px solid var(--hairline); padding-bottom:7px; font-size:14px; }
.td-komm-sys { font-size:12.5px; }

/* ---- Aufgaben-Übersicht ---- */
.wl-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(320px,1fr)); gap:14px; }
.wl-card { padding:14px 16px; }
.wl-kopf { display:flex; align-items:center; gap:8px; flex-wrap:wrap; padding-bottom:8px; margin-bottom:6px; border-bottom:1px solid var(--hairline); }
.wl-name { font-weight:600; margin-right:auto; }
.wl-liste { display:flex; flex-direction:column; }
.wl-mehr { display:inline-block; margin-top:6px; font-size:12.5px; text-decoration:none; }
.mini { display:flex; align-items:center; gap:8px; padding:6px 0; border-bottom:1px solid var(--hairline); }
.mini:last-child { border-bottom:0; }
.mini-titel { color:var(--ink); text-decoration:none; font-size:14px; margin-right:auto; }
.mini-titel:hover { color:var(--primary); }
.mini-fertig .mini-titel { text-decoration:line-through; color:var(--muted); }
.mini-arbeit { width:8px; height:8px; border-radius:50%; background:var(--orange); flex:none; box-shadow:0 0 0 3px color-mix(in srgb, var(--orange) 22%, transparent); }
.mini .tk-check { width:17px; height:17px; min-width:17px; }

/* ---- Bewerber-Pipeline ---- */
.pipe-board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  align-items: start; }
@media (max-width: 1100px) { .pipe-board { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .pipe-board { grid-template-columns: 1fr; } }
.pipe-col { background: var(--bg); border: 1px solid var(--hairline);
  border-radius: var(--radius); padding: 10px; min-height: 120px; }
.pipe-head { display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase;
  color: var(--muted); padding: 2px 4px 10px; }
.pipe-count { background: rgba(125,125,135,.16); color: var(--ink); border-radius: 99px;
  padding: 1px 9px; font-size: 11.5px; }
.pipe-card { display: block; background: var(--card); border: 1px solid var(--hairline);
  border-radius: 11px; padding: 11px 13px; margin-bottom: 8px; color: var(--ink);
  text-decoration: none; transition: transform .12s, box-shadow .12s; }
.pipe-card:hover { text-decoration: none; transform: translateY(-2px);
  box-shadow: var(--shadow-pop); }
.pipe-card strong { display: block; font-size: 13.5px; margin-bottom: 5px; }
.pipe-meta { display: flex; flex-direction: column; gap: 2px; font-size: 12px;
  color: var(--muted); margin-top: 7px; }
.bew { font-weight: 600; }
.bew-gut { color: var(--gruen); }
.bew-neutral { color: var(--orange); }
.bew-schlecht { color: var(--rot); }

/* ---- Bewerber-Detail: Statusleiste ---- */
.pipe-steps { display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 14px 18px; }
.pipe-step { display: flex; align-items: center; gap: 7px; font-size: 13px;
  color: var(--muted); white-space: nowrap; }
.pipe-step.done { color: var(--ink); }
.pipe-step.now { font-weight: 700; color: var(--primary); }
.pipe-dot { width: 22px; height: 22px; border-radius: 50%; display: inline-flex;
  align-items: center; justify-content: center; font-size: 11.5px; font-weight: 700;
  background: rgba(125,125,135,.16); color: var(--muted); }
.pipe-step.done .pipe-dot { background: var(--primary); color: #fff; }
.pipe-line { flex: 0 0 26px; height: 2px; background: var(--hairline); border-radius: 2px; }
.pipe-line.done { background: var(--primary); }
.verlauf-zeile { display: flex; gap: 12px; font-size: 13px; padding: 8px 0;
  border-bottom: 1px solid var(--hairline); }
.verlauf-zeile:last-child { border-bottom: 0; }

/* ---- Kommunikation ---- */
.komm-text { white-space: pre-wrap; font: inherit; font-size: 13.5px; line-height: 1.55;
  background: var(--bg); border: 1px solid var(--hairline); border-radius: 10px;
  padding: 14px 16px; margin: 10px 0; }
.komm-hist { border-bottom: 1px solid var(--hairline); padding: 8px 0; font-size: 13px; }
.komm-hist:last-of-type { border-bottom: 0; }
.komm-hist summary { cursor: pointer; }

/* ---- Onboarding: Unterlagen-Checkliste ---- */
.check-zeile { display: flex; align-items: flex-start; gap: 10px; padding: 7px 0;
  border-bottom: 1px solid var(--hairline); font-size: 13.5px; }
.check-zeile:last-of-type { border-bottom: 0; }
.check-zeile form { margin: 0; flex: none; }
.check-box { width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--hairline);
  background: var(--card); color: #fff; font-size: 13px; font-weight: 700; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; padding: 0;
  transition: background .12s, border-color .12s; }
.check-box:hover { border-color: var(--primary); }
.check-box.ok { background: var(--gruen-bg); border-color: var(--gruen-bg); }
.check-text { flex: 1; padding-top: 1px; }
.check-text.ok { color: var(--muted); text-decoration: line-through; }
.check-text.ok .muted { text-decoration: none; }
.check-del { border: 0; background: none; color: var(--muted); font-size: 16px;
  cursor: pointer; padding: 0 4px; border-radius: 6px; }
.check-del:hover { color: var(--rot); background: var(--rot-soft); }
