:root {
  /* Smartbaupro Dark-Theme (1:1 aus dem Glasfaser-Original übernommen) */
  --accent: #0891b2;
  --accent-strong: #0f5f78;
  --accent-soft: rgba(126, 219, 255, 0.13);
  --accent-glow: #7edbff;
  --bg: #060a0f;
  --bg-elev: #0d141d;
  --surface: #111b27;
  --surface-muted: #0d141d;
  --text: #e7ecf2;
  --muted: #94a3b8;
  --line: rgba(148, 163, 184, 0.18);
  --sidebar: #0a121b;
  --sidebar-soft: #111b27;
  --ok-bg: rgba(34, 197, 94, 0.16);
  --ok-fg: #86efac;
  --warn-bg: rgba(245, 158, 11, 0.16);
  --warn-fg: #fcd34d;
  --danger-bg: rgba(239, 68, 68, 0.16);
  --danger-fg: #fca5a5;
  --info-bg: rgba(56, 189, 248, 0.16);
  --info-fg: #7dd3fc;
  --neutral-bg: rgba(148, 163, 184, 0.12);
  --neutral-fg: #cbd5e1;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background:
    radial-gradient(circle at 20% 0%, rgba(126, 219, 255, 0.08), transparent 60%),
    radial-gradient(circle at 80% 100%, rgba(8, 145, 178, 0.05), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Space Grotesk", "Inter", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 18px;
  overflow-y: auto;
  background: var(--sidebar);
  color: #eef5f3;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: linear-gradient(135deg, #0891b2, #7edbff);
  color: #061018;
  font-weight: 850;
  letter-spacing: 0;
}

.brand strong,
.workspace-card strong {
  display: block;
  font-size: 16px;
}

.brand small,
.workspace-card small,
.sidebar-foot small {
  display: block;
  color: #a9b8b5;
  font-size: 12px;
  line-height: 1.45;
}

.workspace-card {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: var(--sidebar-soft);
}

.workspace-label,
.eyebrow {
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#nav {
  display: grid;
  gap: 3px;
}

#nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  color: #d7e1df;
  text-decoration: none;
  padding: 9px 10px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 600;
}

#nav a span {
  color: #7f918d;
  width: 22px;
  font-size: 11px;
  font-weight: 800;
}

#nav a:hover {
  background: rgba(255, 255, 255, 0.07);
}

#nav a.active {
  background: rgba(126, 219, 255, 0.10);
  color: var(--accent-glow);
  border-left: 3px solid var(--accent-glow);
  padding-left: 7px;
}

#nav a.active span {
  color: var(--accent);
}

.sidebar-foot {
  margin-top: auto;
  display: grid;
  gap: 10px;
}

main {
  width: 100%;
  max-width: 1480px;
  padding: 22px 30px 34px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.topbar h1 {
  margin: 2px 0 0;
  font-size: 26px;
  line-height: 1.1;
}

.topbar-actions,
.hero-actions,
.toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.status-chip {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(17, 27, 39, 0.65);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.status-chip.ok {
  border-color: #86efac;
  background: var(--ok-bg);
  color: var(--ok-fg);
}

.status-chip.danger {
  border-color: #fca5a5;
  background: var(--danger-bg);
  color: var(--danger-fg);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 16px;
  align-items: stretch;
  margin-bottom: 20px;
}

.hero-text,
.hero-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-text {
  padding: 20px 22px;
}

.hero-text h2 {
  margin: 4px 0 6px;
  max-width: 860px;
  font-size: 25px;
  line-height: 1.18;
}

.hero-text p {
  margin: 0;
  max-width: 940px;
  color: var(--muted);
}

.hero-panel {
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 18px;
  border-color: rgba(126, 219, 255, 0.24);
  background: linear-gradient(180deg, rgba(126, 219, 255, 0.06), rgba(126, 219, 255, 0.02));
}

.hero-panel strong {
  font-size: 15px;
}

.hero-panel span {
  color: var(--muted);
  font-size: 13px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  border-radius: 999px;
  padding: 5px 10px;
  background: var(--neutral-bg);
  color: var(--neutral-fg);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.pill.ok {
  background: var(--ok-bg);
  color: var(--ok-fg);
}

.pill.warn {
  background: var(--warn-bg);
  color: var(--warn-fg);
}

.pill.danger {
  background: var(--danger-bg);
  color: var(--danger-fg);
}

.pill.info {
  background: var(--info-bg);
  color: var(--info-fg);
}

#view-root {
  display: grid;
  gap: 16px;
}

.view-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 12px;
}

.view-head h2 {
  margin: 0;
  font-size: 21px;
}

.view-head p {
  margin: 4px 0 0;
  max-width: 820px;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 13px;
}

.grid.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 16px;
  box-shadow: 0 8px 24px rgba(23, 33, 31, 0.05);
}

.card.stat {
  min-height: 104px;
  display: grid;
  align-content: space-between;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.card.stat::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--accent);
}

.card.stat .stat-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card.stat .stat-value {
  font-size: 29px;
  font-weight: 850;
  letter-spacing: 0;
}

.card h3 {
  margin: 0 0 11px;
  font-size: 15px;
}

.card.warn-bg {
  background: var(--warn-bg);
  border-color: rgba(245, 158, 11, 0.4);
}

.card.danger-bg {
  background: var(--danger-bg);
  border-color: rgba(239, 68, 68, 0.4);
}

.card.ok-bg {
  background: var(--ok-bg);
  border-color: rgba(34, 197, 94, 0.4);
}

ul.bare {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 7px;
}

ul.bare li {
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-muted);
  font-size: 14px;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

th,
td {
  padding: 10px 11px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}

th {
  background: #edf4f2;
  color: #4d5d59;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

tr:last-child td {
  border-bottom: none;
}

.form {
  display: grid;
  gap: 12px;
}

.form .row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-size: 13px;
  font-weight: 750;
}

.field small,
.subline {
  color: var(--muted);
  font-size: 12px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  padding: 10px 11px;
}

textarea {
  min-height: 76px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(126, 219, 255, 0.22);
  border-color: var(--accent-glow);
}

button {
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 9px 14px;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

button.primary {
  background: var(--accent);
  color: #061018;
}

button.primary:hover {
  background: var(--accent-glow);
}

button.secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

button.secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

button.compact {
  min-height: 32px;
  padding: 6px 10px;
  font-size: 12px;
}

button.danger {
  background: var(--danger-bg);
  color: var(--danger-fg);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.row-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}

.row-card span.subline {
  display: block;
  margin-top: 2px;
}

.alert {
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 14px;
}

.alert.warn {
  background: var(--warn-bg);
  color: var(--warn-fg);
  border-color: #f59e0b;
}

.alert.danger {
  background: var(--danger-bg);
  color: var(--danger-fg);
  border-color: #ef4444;
}

.alert.ok {
  background: var(--ok-bg);
  color: var(--ok-fg);
  border-color: #65a30d;
}

.alert.info {
  background: var(--info-bg);
  color: var(--info-fg);
  border-color: #38bdf8;
}

.auth-locked #nav,
.auth-locked .hero {
  display: none;
}

.auth-locked .sidebar-foot {
  margin-top: 0;
}

.login-panel {
  max-width: 760px;
  margin: 42px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.login-copy {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 28px;
  background: linear-gradient(180deg, rgba(126, 219, 255, 0.06), rgba(126, 219, 255, 0.02));
}

.login-copy h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.1;
}

.login-copy p {
  margin: 0;
  color: var(--muted);
}

.login-form {
  padding: 28px;
  align-content: center;
}

.status-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.status-strip .step {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.status-strip .step.done {
  border-color: rgba(34, 197, 94, 0.5);
  background: var(--ok-bg);
  color: var(--ok-fg);
}

.status-strip .step.current {
  border-color: var(--accent-glow);
  background: var(--accent);
  color: #061018;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #475569;
}

.status-dot.done {
  background: #22c55e;
}

.status-dot.current {
  background: #061018;
}

.empty-state {
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  padding: 28px;
  text-align: center;
}

.error-banner {
  border: 1px solid #fca5a5;
  border-radius: 8px;
  background: var(--danger-bg);
  color: var(--danger-fg);
  margin-bottom: 12px;
  padding: 14px 16px;
}

.kbd {
  border-radius: 4px;
  background: var(--sidebar);
  color: white;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12px;
  padding: 2px 6px;
}

@media (max-width: 1120px) {
  .shell {
    grid-template-columns: 248px minmax(0, 1fr);
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .grid.cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .login-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }

  main {
    padding: 18px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .grid.cols-2,
  .grid.cols-3,
  .grid.cols-4,
  .form .row {
    grid-template-columns: 1fr;
  }
}

/* ---- Dashboard-KPI (Aggregations-Ansicht) ---------------------------------
   Styles fuer viewDashboard mit KPI-Kacheln, Fortschrittsbalken und
   SVG-Aktivitaets-Chart. Passt sich an das bestehende Dark-Theme an. */

.view-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dashboard-kpi-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
}

.dashboard-kpi-card .stat-value {
  font-size: 32px;
  line-height: 1.1;
}

.dashboard-kpi-hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.dashboard-kpi-pill {
  align-self: flex-start;
  font-size: 11px;
  padding: 2px 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
}

.pill.neutral { background: var(--neutral-bg); color: var(--neutral-fg); }

.dashboard-progress-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dashboard-progress-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.dashboard-progress-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dashboard-progress-label {
  font-weight: 700;
  font-size: 14px;
}

.dashboard-progress-track {
  position: relative;
  width: 100%;
  height: 10px;
  background: var(--neutral-bg);
  border-radius: 999px;
  overflow: hidden;
}

.dashboard-progress-track.compact {
  height: 7px;
}

.dashboard-progress-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.3s ease-out;
}

.dashboard-progress-fill.ok { background: linear-gradient(90deg, #22c55e, #86efac); }
.dashboard-progress-fill.warn { background: linear-gradient(90deg, #f59e0b, #fcd34d); }
.dashboard-progress-fill.danger { background: linear-gradient(90deg, #ef4444, #fca5a5); }
.dashboard-progress-fill.info { background: linear-gradient(90deg, #0891b2, #7edbff); }
.dashboard-progress-fill.neutral { background: linear-gradient(90deg, #475569, #94a3b8); }

.dashboard-progress-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.dashboard-aktivitaet-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dashboard-chart-wrap {
  width: 100%;
  overflow: hidden;
}

.dashboard-chart-summary {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 6px;
  border-top: 1px solid var(--line);
}

@media (max-width: 1120px) {
  .dashboard-progress-summary {
    grid-template-columns: 1fr;
  }
}

/* ---- Import-Hub --------------------------------------------------------- */

.import-hub-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.import-hub-beschreibung {
  color: var(--muted-fg, #6b7280);
  margin: 0;
}

.import-hub-dropzone {
  border: 2px dashed var(--line, #d1d5db);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 120ms, background 120ms;
  background: #fafafa;
}

.import-hub-dropzone.over,
.import-hub-dropzone:focus,
.import-hub-dropzone:hover {
  border-color: var(--accent, #0f766e);
  background: rgba(15, 118, 110, 0.06);
  outline: none;
}

.import-hub-hint {
  font-size: 12px;
  color: var(--muted-fg, #6b7280);
  margin-top: 6px;
}

.import-hub-progress {
  padding: 8px 12px;
  background: var(--info-bg, #e0f2fe);
  border-radius: 8px;
  font-size: 14px;
}

.import-hub-status {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.import-hub-fehler ul {
  margin: 6px 0 0;
  padding-left: 20px;
  max-height: 240px;
  overflow-y: auto;
}

.import-hub-hilfe {
  background: #f8fafc;
  border: 1px solid var(--line, #e5e7eb);
  border-radius: 8px;
  padding: 10px 14px;
}

.import-hub-hilfe summary {
  cursor: pointer;
  font-weight: 600;
}

.import-hub-hilfe ol {
  margin: 8px 0 0;
  padding-left: 20px;
}

.import-hub-ocr-text {
  max-height: 320px;
  overflow: auto;
  background: #0b1320;
  color: #e2e8f0;
  font-size: 12px;
  padding: 12px;
  border-radius: 8px;
  white-space: pre-wrap;
  word-break: break-word;
}

/* -- Admin-UI (Benutzer, Mandanten-Wechsel, Audit, System) -- */
.sidebar-group {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.sidebar-group-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding: 6px 10px 4px;
}
.sidebar-group--admin {
  border-top-color: rgba(220, 120, 60, 0.18);
}

.tenant-switcher select {
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 12px;
  max-width: 240px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 12, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.modal {
  background: var(--panel, #0f1623);
  color: inherit;
  padding: 24px 28px;
  border-radius: 14px;
  max-width: 520px;
  width: calc(100% - 32px);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.modal h3 { margin: 0 0 8px; }
.modal p { margin: 0 0 12px; color: var(--muted); }
.einmalpasswort {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #0b1320;
  padding: 12px 14px;
  border-radius: 8px;
  margin: 12px 0;
  border: 1px dashed rgba(255, 255, 255, 0.18);
}
.einmalpasswort code {
  flex: 1;
  font-size: 18px;
  letter-spacing: 0.04em;
  color: #fde68a;
  font-family: 'Space Grotesk', monospace;
  word-break: break-all;
}

.admin-users-table input[type="text"],
.admin-users-table select {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 13px;
}
.admin-users-table td button { margin-right: 6px; margin-bottom: 4px; }
.admin-users-table .subline {
  display: block;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.compact {
  font-size: 12px;
  padding: 5px 10px;
}
.hint {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}


/* ---- Master-Backend-Ausbau: Adressen, Aufgaben, Kalender, Disposition ---- */

.panel {
  background: var(--panel, #fff);
  border: 1px solid var(--border, #ddd);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 8px;
}

.filter-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--panel, #fff);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border, #ddd);
  margin-bottom: 16px;
}
.data-table th, .data-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border, #eee);
  font-size: 14px;
  vertical-align: top;
}
.data-table th {
  background: var(--muted-bg, #f5f5f7);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.data-table tr.row-warn td {
  background: rgba(220, 100, 50, 0.07);
}

.pill-kritisch { background: #b91c1c; color: #fff; padding: 2px 8px; border-radius: 999px; font-size: 11px; text-transform: uppercase; }
.pill-hoch     { background: #ea580c; color: #fff; padding: 2px 8px; border-radius: 999px; font-size: 11px; text-transform: uppercase; }
.pill-normal   { background: #0284c7; color: #fff; padding: 2px 8px; border-radius: 999px; font-size: 11px; text-transform: uppercase; }
.pill-niedrig  { background: #6b7280; color: #fff; padding: 2px 8px; border-radius: 999px; font-size: 11px; text-transform: uppercase; }

.pill-offen      { background: #f59e0b; color: #1f2937; padding: 2px 8px; border-radius: 999px; font-size: 11px; }
.pill-in_arbeit  { background: #0284c7; color: #fff;    padding: 2px 8px; border-radius: 999px; font-size: 11px; }
.pill-blockiert  { background: #b91c1c; color: #fff;    padding: 2px 8px; border-radius: 999px; font-size: 11px; }
.pill-erledigt   { background: #15803d; color: #fff;    padding: 2px 8px; border-radius: 999px; font-size: 11px; }
.pill-abgesagt   { background: #6b7280; color: #fff;    padding: 2px 8px; border-radius: 999px; font-size: 11px; }

.kalender-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
@media (max-width: 1100px) {
  .kalender-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.kalender-tag {
  background: var(--panel, #fff);
  border: 1px solid var(--border, #ddd);
  border-radius: 8px;
  min-height: 160px;
  display: flex;
  flex-direction: column;
}
.kalender-tag-head {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border, #eee);
  background: var(--muted-bg, #f5f5f7);
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  font-size: 13px;
}
.kalender-tag-body {
  padding: 8px 10px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.kalender-eintrag {
  background: rgba(15, 118, 110, 0.08);
  border-left: 3px solid var(--accent, #0f766e);
  padding: 6px 8px;
  border-radius: 4px;
  font-size: 13px;
}
