/* Farben kommen zur Laufzeit aus der Marke (core/dashboard-brand.ts) als CSS-Variablen; hier nur Struktur. */
:root {
  --primary: #1f4e79;
  --bg: #f6f7f9;
  --text: #1b1f24;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); }
header { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 4px solid var(--primary); background: #fff; flex-wrap: wrap; }
header img { height: 36px; max-width: 160px; object-fit: contain; }
header .name { font-weight: 600; font-size: 1.1rem; }
header .spacer { flex: 1; }
header .who { font-size: 0.85rem; opacity: 0.75; }
main { max-width: 960px; margin: 0 auto; padding: 24px 16px; }
.card { background: #fff; border-radius: 8px; padding: 24px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); max-width: 420px; margin: 40px auto; }
label { display: block; margin: 16px 0 6px; font-size: 0.9rem; }
input, select { width: 100%; padding: 10px; font-size: 1rem; border: 1px solid #c8ccd2; border-radius: 6px; }
header select { width: auto; padding: 6px; }
button { background: var(--primary); color: #fff; border: 0; border-radius: 6px; padding: 10px 16px; font-size: 1rem; cursor: pointer; margin-top: 16px; }
header button { margin-top: 0; padding: 6px 12px; font-size: 0.9rem; }
button:disabled { opacity: 0.6; cursor: default; }
.note { margin-top: 16px; font-size: 0.9rem; }
/* E1c: Navigation, Listen, Filter, Kennzeichen */
nav { display: flex; gap: 4px; padding: 0 16px; background: #fff; border-bottom: 1px solid #e3e6ea; overflow-x: auto; }
nav button { background: none; color: var(--text); border-radius: 0; margin: 0; padding: 12px 14px; border-bottom: 3px solid transparent; }
nav button[aria-current="true"] { border-bottom-color: var(--primary); font-weight: 600; }
.filters { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.filters > div { min-width: 180px; }
.filters label { margin-top: 0; }
.entries { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.entry { background: #fff; border-radius: 8px; padding: 12px 16px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); }
.meta { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-size: 0.9rem; }
.summary { margin: 8px 0 0; white-space: pre-line; overflow-wrap: anywhere; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 0.8rem; background: #eceff3; }
.badge.p-high { background: #fde7c7; }
.badge.p-emergency, .badge.action { background: #f8d0d0; font-weight: 600; }
.badge.s-done, .badge.s-discarded { opacity: 0.7; }
.empty { opacity: 0.75; }
/* E1d: Zeitraum, Kennzahlen-Kacheln, Termine */
.periods { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.periods button { margin-top: 0; padding: 6px 12px; background: #fff; color: var(--text); border: 1px solid #c8ccd2; }
.periods button[aria-pressed="true"] { background: var(--primary); color: #fff; border-color: var(--primary); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.tile { background: #fff; border-radius: 8px; padding: 16px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); }
.tile-title { font-size: 0.9rem; opacity: 0.8; }
.tile-value { font-size: 2rem; font-weight: 600; margin: 4px 0; }
.tile-detail { font-size: 0.85rem; opacity: 0.8; }
.entry.cancelled { opacity: 0.6; }
.entry.cancelled strong { text-decoration: line-through; }
/* CRM4d1: Seite „Heute“ – Ampel, Aktionen, Ergebnis-Knöpfe */
h2 { font-size: 1.1rem; margin: 24px 0 10px; }
.entry .row { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
button.act { margin-top: 0; padding: 6px 12px; font-size: 0.9rem; }
.outcome-panel { margin-top: 10px; display: grid; gap: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
button.chip { margin-top: 0; padding: 6px 12px; font-size: 0.9rem; background: #fff; color: var(--text); border: 1px solid var(--primary); }
button.chip:hover { background: var(--primary); color: #fff; }
button.chip.quiet { border-color: #c8ccd2; }
.light { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, 0.25); }
.light.l-red { background: #d32f2f; }
.light.l-yellow { background: #f9c80e; }
.light.l-green { background: #2e7d32; }
.light.l-white { background: #fff; }
.light-text { opacity: 0.8; }
.badge.overdue { background: #f8d0d0; font-weight: 600; }
.badge.touched { background: #e3f0fd; }
