/* ============================================================
   CleanHub — Dashboard-Neufassung (31.08.2026)
   Ergänzung zu app.css, KEINE Änderung daran. Wird danach geladen.

   Alle Werte stammen aus den Tokens von app.css (--brand, --ink,
   --surface, --border, --radius-*, --shadow-*). Neue Klassen tragen
   das Präfix `dsh-`, damit sie mit nichts Bestehendem kollidieren.

   Leitsatz, den app.css selbst schon formuliert ("Ruhige Zahlen"):
   Der Zahlenwert trägt Ink, die Signalfarbe steht in der Meta-Zeile.
   Farbe heißt genau eine Sache — Handlungsbedarf.
   ============================================================ */

/* ── Aufgabenliste: Schwere sichtbar, ganze Zeile klickbar ── */
.task-row { position: relative; padding-left: 19px; align-items: flex-start; }
.task-row::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: transparent;
}
.task-row.t-danger::before { background: var(--danger); }
.task-row.t-warn::before   { background: var(--warning); }
.task-row.t-info::before   { background: var(--brand); }
.task-row .ui-icon { margin-top: 1px; }

/* Text + Frist untereinander; die Frist ist der Grund zu klicken */
.task-row-main { flex: 1; min-width: 0; }
.task-row-main .task-row-text { display: block; }
.dsh-frist {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-3);
  margin-top: 2px;
}
.dsh-frist b { font-weight: 650; color: var(--danger); }
.dsh-frist .warn { font-weight: 650; color: var(--warning); }

/* „Öffnen →" nur beim Überfahren — der Aufgabentext soll führen */
.task-row .task-row-go { opacity: 0; transition: opacity .12s; align-self: center; }
.task-row:hover .task-row-go,
.task-row:focus-visible .task-row-go { opacity: 1; }
@media (hover: none) and (pointer: coarse) {
  .task-row .task-row-go { opacity: 1; }
}
.task-row:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }

/* ── Leitkennzahl: eine Kachel, ein Zustand ── */
.dsh-kpi-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  min-height: 18px;
}
.dsh-kpi-head .kpi-label { margin-bottom: 0; }
.dsh-chip {
  margin-left: auto;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--ink-2);
  white-space: nowrap;
  line-height: 1.5;
}
.dsh-chip.is-danger  { background: var(--danger-bg);  color: var(--danger); }
.dsh-chip.is-warning { background: var(--warning-bg); color: var(--warning); }
.dsh-chip.is-ok      { background: var(--success-bg); color: var(--success); }

/* ── Nebenkennzahlen: eine ruhige Zeile statt vier lauter Kacheln ── */
.dsh-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.dsh-strip-item {
  display: flex;
  align-items: baseline;
  gap: 9px;
  padding: 13px 18px;
  border-left: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.dsh-strip-item:first-child { border-left: 0; }
.dsh-strip-item:hover { background: var(--surface); }
.dsh-strip-value {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.dsh-strip-label {
  font-size: 12.5px;
  color: var(--ink-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 900px) {
  .dsh-strip { grid-template-columns: repeat(2, 1fr); }
  .dsh-strip-item:nth-child(3) { border-left: 0; }
  .dsh-strip-item:nth-child(n+3) { border-top: 1px solid var(--border); }
}

/* ── Schnellzugriff als Knopfreihe statt Menü-Wiederholung ── */
.dsh-quick {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.dsh-quick .btn { flex: 0 0 auto; }

/* ── Verlauf in Klartext ── */
.dsh-event {
  display: flex;
  gap: 11px;
  padding: 10px 16px;
  align-items: flex-start;
  border-bottom: 1px solid var(--surface);
  font-size: 13px;
}
.dsh-event:last-child { border-bottom: 0; }
.dsh-event-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ink-4);
  margin-top: 6px;
  flex-shrink: 0;
}
.dsh-event.is-wichtig .dsh-event-dot { background: var(--brand); }
.dsh-event-text { min-width: 0; }
.dsh-event-text b { font-weight: 650; color: var(--ink); }
.dsh-event-when { font-size: 11.5px; color: var(--ink-3); margin-top: 1px; }
.dsh-event-note {
  padding: 12px 16px;
  font-size: 12px;
  color: var(--ink-3);
  border-top: 1px solid var(--surface);
}
