/* ══════════════════════════════════════════════════════════════════════
   FARBWELTEN NACH APPLE-ART · Kacheln (seit 2026-10-23)
   ──────────────────────────────────────────────────────────────────────
   Damit Klarheit, Gruppen, Glas und Bühne aussehen wie die Entwürfe
   11–14 der Leinwand „Dashboard-Optik“ (Vincent, 23.10.2026: „exakt so
   wie auf den Entwürfen“). Tokens: farbwelten.css. Rahmen (Navigation,
   Kopf, Reiter, Karten): farbwelten-rahmen.css. Kacheln der Übersicht:
   farbwelten-kacheln.css. Was an DOM dazukommt (Ring, Fotos, Bühne):
   farbwelten.js.

   Nichts davon nimmt eine Information weg: was die Entwürfe nicht zeigten
   (Markt-Vergleich, Hochrechnung, Rang), bleibt stehen und bekommt die
   Gestalt der Welt. Signale bleiben Signale: die Stufe eines Todos färbt
   Ring und Plakette, die Ampel des Monatsziels bleibt die Ampel.

   Schriftgrößen nur über die Skala (--fs-*). Die Bühne hat drei
   Schaustufen darüber (--fs-4xl … --fs-6xl, farbwelten.css).
   ══════════════════════════════════════════════════════════════════════ */

/* ══ BEHÄLTER UND SCHNELLEINGABE ══════════════════════════════════════ */
:root:is([data-skin="klarheit"], [data-skin="gruppen"], [data-skin="glas"], [data-skin="buehne"]) .projekte-cockpit-zeile .pb-chip {
  min-height: 38px;
  padding: 0 var(--sp-4);
  border-radius: var(--r-full);
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: var(--fs-base);
}
:root:is([data-skin="klarheit"], [data-skin="gruppen"], [data-skin="glas"], [data-skin="buehne"]) .todo-quickadd input {
  min-height: 46px;
  padding: 0 18px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  font-size: var(--fs-md);
}
:root:is([data-skin="glas"], [data-skin="buehne"]) .todo-quickadd input { border-radius: var(--r-full); }
:root:is([data-skin="klarheit"], [data-skin="gruppen"], [data-skin="glas"], [data-skin="buehne"]) .todo-quickadd .btn {
  min-height: 46px;
  padding: 0 var(--sp-5);
  font-size: var(--fs-base);
  font-weight: var(--fw-semi);
}

/* ══ WICHTIGSTE TO-DOS ════════════════════════════════════════════════
   Klarheit, Gruppen: eine gruppierte Liste wie in Erinnerungen, vorn ein
   Ring in der Farbe der Stufe. Glas, Bühne: Karten mit der Plakette oben.
   Der Rang (#1 …) steckt in der Reihenfolge und muss nicht dastehen.  */
:root:is([data-skin="klarheit"], [data-skin="gruppen"], [data-skin="glas"], [data-skin="buehne"]) .th-rank { display: none; }
:root:is([data-skin="klarheit"], [data-skin="gruppen"], [data-skin="glas"], [data-skin="buehne"]) .th-titel {
  font-size: var(--fs-md);
  font-weight: var(--fw-medium);
  letter-spacing: -0.01em;
}
:root:is([data-skin="klarheit"], [data-skin="gruppen"], [data-skin="glas"], [data-skin="buehne"]) .th-meta { font-size: var(--fs-sm); }
:root:is([data-skin="klarheit"], [data-skin="gruppen"], [data-skin="glas"], [data-skin="buehne"]) .th-grund:not(:empty) {
  max-width: none;
  padding: 3px 10px;
  border-radius: var(--r-full);
  white-space: nowrap;
  background: var(--bg-card2);
  color: var(--text-muted);
}
:root:is([data-skin="klarheit"], [data-skin="gruppen"], [data-skin="glas"], [data-skin="buehne"]) .st-rot .th-grund    { background: var(--crit-soft);    color: var(--crit-ink); }
:root:is([data-skin="klarheit"], [data-skin="gruppen"], [data-skin="glas"], [data-skin="buehne"]) .st-orange .th-grund { background: var(--serious-soft); color: var(--serious-ink); }
:root:is([data-skin="klarheit"], [data-skin="gruppen"], [data-skin="glas"], [data-skin="buehne"]) .st-gelb .th-grund   { background: var(--warn-soft);    color: var(--warn-ink); }
:root:is([data-skin="klarheit"], [data-skin="gruppen"], [data-skin="glas"], [data-skin="buehne"]) .th-score { font-size: var(--fs-md); }

:root:is([data-skin="klarheit"], [data-skin="gruppen"]) .todo-heute-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
:root:is([data-skin="klarheit"], [data-skin="gruppen"]) .todo-heute-card {
  position: relative;
  gap: 14px;
  padding: 13px var(--sp-4);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
:root:is([data-skin="klarheit"], [data-skin="gruppen"]) .todo-heute-card:hover { background: var(--bg-card2); box-shadow: none; }
:root:is([data-skin="klarheit"], [data-skin="gruppen"]) .todo-heute-card::before {
  content: "";
  flex: none;
  width: 24px;
  height: 24px;
  box-sizing: border-box;
  border-radius: 50%;
  border: 1.5px solid var(--text-subtle);
}
:root:is([data-skin="klarheit"], [data-skin="gruppen"]) .todo-heute-card.st-rot::before    { border-color: var(--crit-ink); }
:root:is([data-skin="klarheit"], [data-skin="gruppen"]) .todo-heute-card.st-orange::before { border-color: var(--serious-ink); }
:root:is([data-skin="klarheit"], [data-skin="gruppen"]) .todo-heute-card + .todo-heute-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 54px;
  right: 0;
  border-top: 1px solid var(--border);
}

:root:is([data-skin="glas"], [data-skin="buehne"]) .todo-heute-grid {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--sp-4);
}
:root:is([data-skin="glas"], [data-skin="buehne"]) .todo-heute-card {
  display: grid;
  grid-template-areas: "grund" "body";
  justify-items: start;
  align-content: start;
  gap: 10px;
  min-height: 112px;
  padding: var(--fw-pad);
  border-radius: var(--radius);
}
:root:is([data-skin="glas"], [data-skin="buehne"]) .todo-heute-card:has(.th-grund:not(:empty)) { border-left-color: transparent; }
:root:is([data-skin="glas"], [data-skin="buehne"]) .th-grund { grid-area: grund; }
:root:is([data-skin="glas"], [data-skin="buehne"]) .th-body { grid-area: body; }
:root:is([data-skin="glas"], [data-skin="buehne"]) .th-titel { font-weight: var(--fw-semi); }

/* ══ GÄSTE ════════════════════════════════════════════════════════════
   Je Zeile: Foto der Einheit, „Einheit · Gast“, darunter das Datum,
   rechts der Kanal mit seinem Punkt (--kanal setzt renderList).       */
:root:is([data-skin="klarheit"], [data-skin="gruppen"], [data-skin="glas"], [data-skin="buehne"]) .gaeste-grid .checkin-kachel {
  padding: var(--sp-4) var(--fw-pad) var(--sp-2);
}
:root:is([data-skin="klarheit"], [data-skin="glas"], [data-skin="buehne"]) .gaeste-grid .va-titel {
  margin-bottom: var(--sp-1);
  font-size: var(--fs-md);
  font-weight: var(--fw-bold);
  letter-spacing: 0;
  text-transform: none;
  color: var(--text);
}
:root:is([data-skin="klarheit"], [data-skin="gruppen"], [data-skin="glas"], [data-skin="buehne"]) .gaeste-grid .checkin-item {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  grid-template-areas: "foto einheit gast kanal" "foto datum datum kanal";
  align-items: center;
  column-gap: 0;
  row-gap: 2px;
  padding: 12px 0;
}
:root:is([data-skin="klarheit"], [data-skin="gruppen"], [data-skin="glas"], [data-skin="buehne"]) .gaeste-grid .checkin-item { border-bottom: 0; }
:root:is([data-skin="klarheit"], [data-skin="gruppen"], [data-skin="glas"], [data-skin="buehne"]) .gaeste-grid .checkin-item + .checkin-item { border-top: 1px solid var(--border); }
:root:is([data-skin="klarheit"], [data-skin="gruppen"], [data-skin="glas"], [data-skin="buehne"]) .gaeste-grid .checkin-info { display: contents; }
:root:is([data-skin="klarheit"], [data-skin="gruppen"], [data-skin="glas"], [data-skin="buehne"]) .fw-foto {
  grid-area: foto;
  display: block;
  width: 56px;
  height: 56px;
  margin-right: 14px;
  border-radius: 14px;
  object-fit: cover;
  background: var(--bg-card2);
}
:root:is([data-skin="klarheit"], [data-skin="gruppen"], [data-skin="glas"], [data-skin="buehne"]) .gaeste-grid .checkin-einheit {
  grid-area: einheit;
  font-size: var(--fs-md);
  font-weight: var(--fw-semi);
}
:root:is([data-skin="klarheit"], [data-skin="gruppen"], [data-skin="glas"], [data-skin="buehne"]) .gaeste-grid .checkin-gast {
  grid-area: gast;
  font-size: var(--fs-md);
  font-weight: var(--fw-semi);
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
:root:is([data-skin="klarheit"], [data-skin="gruppen"], [data-skin="glas"], [data-skin="buehne"]) .gaeste-grid .checkin-gast::before { content: "\00a0·\00a0"; }
:root:is([data-skin="klarheit"], [data-skin="gruppen"], [data-skin="glas"], [data-skin="buehne"]) .gaeste-grid .checkin-datum {
  grid-area: datum;
  min-width: 0;
  font-size: var(--fs-sm);
  font-weight: var(--fw-normal);
  color: var(--text-muted);
}
:root:is([data-skin="klarheit"], [data-skin="gruppen"], [data-skin="glas"], [data-skin="buehne"]) .gaeste-grid .checkin-kanal {
  grid-area: kanal;
  display: flex;
  align-items: center;
  gap: 6px;
  padding-left: var(--sp-3);
  font-size: var(--fs-sm);
}
:root:is([data-skin="klarheit"], [data-skin="gruppen"], [data-skin="glas"], [data-skin="buehne"]) .gaeste-grid .checkin-kanal::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--kanal, var(--text-subtle));
}
/* In schmalen Karten (iPhone, zwei Spalten bei 909 px) bekäme der Name nur
   den Rest neben Einheit und Kanal, oft 0–40 px. Dort steht er in einer
   eigenen Zeile (Prüfung 23.10.2026). */
:root:is([data-skin="klarheit"], [data-skin="gruppen"], [data-skin="glas"], [data-skin="buehne"]) .gaeste-grid .checkin-kachel { container-type: inline-size; }
@container (max-width: 480px) {
  :root:is([data-skin="klarheit"], [data-skin="gruppen"], [data-skin="glas"], [data-skin="buehne"]) .gaeste-grid .checkin-item {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "foto einheit kanal" "foto gast gast" "foto datum datum";
  }
  :root[data-skin="gruppen"] .gaeste-grid .checkin-kachel .checkin-item {
    grid-template-columns: auto minmax(0, 1fr) auto 22px;
    grid-template-areas: "foto einheit kanal winkel" "foto gast gast winkel" "foto datum datum winkel";
  }
  :root:is([data-skin="klarheit"], [data-skin="gruppen"], [data-skin="glas"], [data-skin="buehne"]) .gaeste-grid .checkin-gast::before { content: none; }
  :root:is([data-skin="klarheit"], [data-skin="gruppen"], [data-skin="glas"], [data-skin="buehne"]) .gaeste-grid .checkin-einheit {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
}

/* ══ UMSATZ UND AUSLASTUNG ════════════════════════════════════════════
   Umsatz: Bezeichnung, große Zahl, das Monatsziel als Balken direkt
   darunter, dann der Verlauf als durchgezogene Linie. Auslastung: Ring
   links, die beiden Häuser rechts, der Markt-Vergleich darunter.     */
:root:is([data-skin="klarheit"], [data-skin="gruppen"], [data-skin="glas"], [data-skin="buehne"]) .kpi-karte {
  padding: var(--fw-pad);
  gap: var(--sp-3);
}
:root:is([data-skin="klarheit"], [data-skin="gruppen"], [data-skin="glas"], [data-skin="buehne"]) .kpi-titel {
  font-size: var(--fs-base);
  font-weight: var(--fw-semi);
  color: var(--text-muted);
}
:root:is([data-skin="klarheit"], [data-skin="gruppen"], [data-skin="glas"], [data-skin="buehne"]) .kpi-wert {
  font-size: var(--fs-3xl);
  letter-spacing: -0.025em;
}
:root:is([data-skin="klarheit"], [data-skin="gruppen"], [data-skin="glas"], [data-skin="buehne"]) #ziel-uebersicht .kpi-ziel { display: contents; }
:root:is([data-skin="klarheit"], [data-skin="gruppen"], [data-skin="glas"], [data-skin="buehne"]) #ziel-uebersicht .kpi-kopf             { order: 0; }
:root:is([data-skin="klarheit"], [data-skin="gruppen"], [data-skin="glas"], [data-skin="buehne"]) #ziel-uebersicht .kpi-wert             { order: 1; }
:root:is([data-skin="klarheit"], [data-skin="gruppen"], [data-skin="glas"], [data-skin="buehne"]) #ziel-uebersicht .kpi-ziel-zeile       { order: 2; }
:root:is([data-skin="klarheit"], [data-skin="gruppen"], [data-skin="glas"], [data-skin="buehne"]) #ziel-uebersicht .progress-bar-wrap    { order: 3; }
:root:is([data-skin="klarheit"], [data-skin="gruppen"], [data-skin="glas"], [data-skin="buehne"]) #ziel-uebersicht .sparkline            { order: 4; }
:root:is([data-skin="klarheit"], [data-skin="gruppen"], [data-skin="glas"], [data-skin="buehne"]) #ziel-uebersicht .kpi-verlauf-legende  { order: 5; }
:root:is([data-skin="klarheit"], [data-skin="gruppen"], [data-skin="glas"], [data-skin="buehne"]) #ziel-uebersicht .ziel-projektion      { order: 6; }
:root:is([data-skin="klarheit"], [data-skin="gruppen"], [data-skin="glas"], [data-skin="buehne"]) #ziel-uebersicht .ziel-hinweis         { order: 7; }
:root:is([data-skin="klarheit"], [data-skin="gruppen"], [data-skin="glas"], [data-skin="buehne"]) .progress-bar-wrap {
  height: 8px;
  border-radius: var(--r-full);
  background: var(--viz-track);
}
:root:is([data-skin="klarheit"], [data-skin="gruppen"], [data-skin="glas"], [data-skin="buehne"]) .progress-bar { border-radius: var(--r-full); }
:root:is([data-skin="klarheit"], [data-skin="gruppen"], [data-skin="glas"], [data-skin="buehne"]) .spark-linie {
  stroke: var(--fw-spark, var(--fw-ring));
  stroke-width: 2.5;
  stroke-dasharray: none;
}
:root:is([data-skin="klarheit"], [data-skin="gruppen"], [data-skin="glas"], [data-skin="buehne"]) .spark-punkt { stroke: var(--fw-spark, var(--fw-ring)); stroke-width: 0; }
:root:is([data-skin="klarheit"], [data-skin="gruppen"], [data-skin="glas"], [data-skin="buehne"]) .spark-punkt-aktuell { stroke-width: 9; }
/* Monat gegen den Zielkurs (monatsverlaufSvg): was schon gebucht, aber noch
   nicht angereist ist, steht blass; der Zielkurs gestrichelt. */
.spark-gebucht { opacity: .35; }
.spark-ziel { fill: none; stroke: var(--text-subtle); stroke-width: 1.5; stroke-dasharray: 4 5; }

:root:is([data-skin="klarheit"], [data-skin="gruppen"], [data-skin="glas"], [data-skin="buehne"]) #auslastung-tachos {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas: "kopf kopf" "ring haeuser" "ziel ziel";
  align-items: center;
  column-gap: 28px;
  row-gap: var(--sp-4);
}
:root:is([data-skin="klarheit"], [data-skin="gruppen"], [data-skin="glas"], [data-skin="buehne"]) #auslastung-tachos .kpi-kopf { grid-area: kopf; }
:root:is([data-skin="klarheit"], [data-skin="gruppen"], [data-skin="glas"], [data-skin="buehne"]) #auslastung-tachos .kpi-ziel { grid-area: ziel; }
:root:is([data-skin="klarheit"], [data-skin="gruppen"], [data-skin="glas"], [data-skin="buehne"]) #auslastung-tachos .tacho { display: none; }
:root:is([data-skin="klarheit"], [data-skin="gruppen"], [data-skin="glas"], [data-skin="buehne"]) .fw-ring {
  grid-area: ring;
  display: block;
  position: relative;
  width: 132px;
  height: 132px;
}
:root[data-skin="buehne"] .fw-ring { width: 170px; height: 170px; }
.fw-ring svg { display: block; width: 100%; height: 100%; overflow: visible; }
.fw-ring-spur, .fw-ring-fuellung { fill: none; stroke-width: 14; }
.fw-ring-spur { stroke: var(--viz-track); }
.fw-ring-fuellung { stroke: var(--fw-ring); stroke-linecap: round; }
.fw-ring-markt { stroke: var(--text); stroke-width: 3; stroke-linecap: round; }
.fw-ring-mitte { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.fw-ring-wert { font-size: var(--fs-2xl); font-weight: var(--fw-semi); letter-spacing: -0.02em; line-height: 1.1; }
.fw-ring-sub { font-size: var(--fs-2xs); color: var(--text-muted); }
:root:is([data-skin="klarheit"], [data-skin="gruppen"], [data-skin="glas"], [data-skin="buehne"]) .fw-haeuser {
  grid-area: haeuser;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.fw-haus-kopf { display: flex; justify-content: space-between; gap: var(--sp-2); font-size: var(--fs-base); }
.fw-haus-wert { font-weight: var(--fw-semi); font-variant-numeric: tabular-nums; }
.fw-haus-spur { height: 6px; margin-top: 6px; border-radius: var(--r-full); background: var(--viz-track); overflow: hidden; }
.fw-haus-fuellung { height: 100%; border-radius: inherit; background: var(--fw-ring); }
.fw-haus-kopf > span { white-space: nowrap; }
/* Ring und Häuser nebeneinander brauchen rund 360 px Karte; die Karte ist
   2/5 des Kartenpaars. Darunter (zweispaltig zwischen 761 und ~1100 px)
   liefen die Häuser aus der Karte und verbreiterten die Seite. */
:root:is([data-skin="klarheit"], [data-skin="gruppen"], [data-skin="glas"], [data-skin="buehne"]) .kpi-duo { container: fw-duo / inline-size; }
@container fw-duo (max-width: 960px) {
  :root:is([data-skin="klarheit"], [data-skin="gruppen"], [data-skin="glas"], [data-skin="buehne"]) #auslastung-tachos {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "kopf" "ring" "haeuser" "ziel";
  }
  :root:is([data-skin="klarheit"], [data-skin="gruppen"], [data-skin="glas"], [data-skin="buehne"]) .fw-ring { justify-self: center; }
}
@container fw-duo (max-width: 1060px) {
  :root[data-skin="buehne"] .fw-ring { width: 132px; height: 132px; }
}
@media (max-width: 600px) {
  :root:is([data-skin="klarheit"], [data-skin="gruppen"], [data-skin="glas"], [data-skin="buehne"]) #auslastung-tachos {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "kopf" "ring" "haeuser" "ziel";
  }
  :root:is([data-skin="klarheit"], [data-skin="gruppen"], [data-skin="glas"], [data-skin="buehne"]) .fw-ring { justify-self: center; }
}

/* ══ MONATLICHE ÜBERSICHT ═════════════════════════════════════════════
   Klarheit, Gruppen, Glas: fünf einzelne Karten, die Bezeichnung über
   der Zahl. Die Bühne behält die verbundene Leiste (Entwurf 14).      */
:root:is([data-skin="klarheit"], [data-skin="gruppen"], [data-skin="glas"]) #tab-uebersicht .metrics-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--sp-4);
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}
:root:is([data-skin="klarheit"], [data-skin="gruppen"], [data-skin="glas"]) #tab-uebersicht .metric-card {
  padding: var(--fw-pad);
  gap: var(--sp-2);
  background: var(--bg-card);
  border: 1px solid transparent;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
:root[data-skin="glas"] #tab-uebersicht .metric-card { border-color: var(--border); }
/* Ohne Kippen: die 3D-Ebene ließ die kleine Schrift der Karten verschwimmen. */
:root:is([data-skin="klarheit"], [data-skin="gruppen"], [data-skin="glas"], [data-skin="buehne"]) #tab-uebersicht .metric-card,
:root:is([data-skin="klarheit"], [data-skin="gruppen"], [data-skin="glas"], [data-skin="buehne"]) #tab-uebersicht .metric-card:hover {
  transform: none;
  transform-style: flat;
  will-change: auto;
}
:root:is([data-skin="klarheit"], [data-skin="gruppen"], [data-skin="glas"], [data-skin="buehne"]) #tab-uebersicht .metric-card { flex-direction: column; }
:root:is([data-skin="klarheit"], [data-skin="gruppen"], [data-skin="glas"], [data-skin="buehne"]) #tab-uebersicht .metric-label {
  order: 0;
  font-size: var(--fs-base);
  font-weight: var(--fw-medium);
  color: var(--text-muted);
}
:root:is([data-skin="klarheit"], [data-skin="gruppen"], [data-skin="glas"], [data-skin="buehne"]) #tab-uebersicht .metric-value {
  order: 1;
  font-size: var(--fs-2xl);
  letter-spacing: -0.02em;
}
:root:is([data-skin="klarheit"], [data-skin="gruppen"], [data-skin="glas"], [data-skin="buehne"]) #tab-uebersicht .metric-sub {
  order: 2;
  margin-top: 0;
  font-size: var(--fs-xs);
  color: var(--text-subtle);
}
:root[data-skin="buehne"] #tab-uebersicht .metrics-grid {
  border-color: transparent;
  border-radius: var(--radius);
  box-shadow: none;
}
:root[data-skin="buehne"] #tab-uebersicht .metric-card { padding: var(--sp-6) var(--fw-pad); }

/* ══ GELDEINGANG ══════════════════════════════════════════════════════ */
:root:is([data-skin="klarheit"], [data-skin="gruppen"], [data-skin="glas"], [data-skin="buehne"]) .ge-card {
  padding: var(--fw-pad);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
:root:is([data-skin="klarheit"], [data-skin="gruppen"], [data-skin="glas"], [data-skin="buehne"]) .ge-hero { border-bottom: 0; }
:root:is([data-skin="klarheit"], [data-skin="gruppen"], [data-skin="glas"], [data-skin="buehne"]) .ge-hero-label { font-size: var(--fs-base); }
:root:is([data-skin="klarheit"], [data-skin="gruppen"], [data-skin="glas"], [data-skin="buehne"]) .ge-hero-sub { font-size: var(--fs-sm); }
:root:is([data-skin="klarheit"], [data-skin="gruppen"], [data-skin="glas"], [data-skin="buehne"]) .ge-split-bar {
  height: 10px;
  border-radius: var(--r-full);
  background: var(--viz-track);
}
:root:is([data-skin="klarheit"], [data-skin="gruppen"], [data-skin="glas"], [data-skin="buehne"]) .ge-split-bar > span { background: var(--good); border-radius: var(--r-full); }
:root:is([data-skin="klarheit"], [data-skin="gruppen"], [data-skin="glas"], [data-skin="buehne"]) .ge-split-da { color: var(--good-ink); }
:root:is([data-skin="klarheit"], [data-skin="gruppen"], [data-skin="glas"], [data-skin="buehne"]) .ge-split-legende { font-size: var(--fs-sm); }
:root:is([data-skin="klarheit"], [data-skin="gruppen"], [data-skin="glas"], [data-skin="buehne"]) .ge-vorschau { border-radius: var(--r-sm); }

/* ══ EINGEKLAPPTE ZEILEN ══════════════════════════════════════════════
   Als eine gruppierte Liste: Symbol, Titel, Kurzinfo rechts, Winkel.
   Zusammengezogen werden nur geschlossene Zeilen, die direkt
   aufeinander folgen; eine geöffnete steht für sich.                  */
:root:is([data-skin="klarheit"], [data-skin="gruppen"], [data-skin="glas"], [data-skin="buehne"]) .m-coll-head.klapp {
  gap: 14px;
  min-height: 58px;
  padding: 0 var(--sp-5);
  border-radius: var(--radius);
  font-size: var(--fs-md);
}
:root:is([data-skin="klarheit"], [data-skin="gruppen"], [data-skin="glas"], [data-skin="buehne"]) .m-coll-head.klapp > span:first-child { font-weight: var(--fw-semi); }
:root:is([data-skin="klarheit"], [data-skin="gruppen"], [data-skin="glas"], [data-skin="buehne"]) .m-coll-head.klapp .m-coll-info {
  margin-left: auto;
  text-align: right;
  font-size: var(--fs-base);
}
:root:is([data-skin="klarheit"], [data-skin="gruppen"], [data-skin="glas"], [data-skin="buehne"]) .m-coll-head.klapp::before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  background: var(--brand);
  -webkit-mask: var(--fw-i, var(--fw-i-chevron)) center / contain no-repeat;
  mask: var(--fw-i, var(--fw-i-chevron)) center / contain no-repeat;
}
:root[data-skin="glas"] .m-coll-head.klapp::before { background: var(--text-muted); }
.m-coll-head.klapp:has(+ [data-kachel="entscheidungen"]) { --fw-i: var(--fw-i-lightbulb); }
.m-coll-head.klapp:has(+ [data-kachel="vorausschau"])    { --fw-i: var(--fw-i-linie); }
.m-coll-head.klapp:has(+ [data-kachel="bankability"])    { --fw-i: var(--fw-i-landmark); }
:root:is([data-skin="klarheit"], [data-skin="gruppen"], [data-skin="glas"], [data-skin="buehne"]) .m-coll-head.klapp:not(.m-open):has(+ [data-klapp]:not(.m-open) + .m-coll-head.klapp:not(.m-open)) {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
:root:is([data-skin="klarheit"], [data-skin="gruppen"], [data-skin="glas"], [data-skin="buehne"]) .m-coll-head.klapp:not(.m-open) + [data-klapp]:not(.m-open) + .m-coll-head.klapp:not(.m-open) {
  margin-top: calc(-1 * var(--sp-7));
  border-top: 1px solid var(--border);
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  box-shadow: none;
}

/* ══ GRUPPEN: Eigenes ═════════════════════════════════════════════════
   Runde Fotos mit Winkel wie in einer Kontaktliste, farbige Bezeichnungen
   mit Symbol wie in Health.                                             */
:root[data-skin="gruppen"] .fw-foto { width: 40px; height: 40px; border-radius: 50%; }
:root[data-skin="gruppen"] .gaeste-grid .checkin-item {
  grid-template-columns: auto auto minmax(0, 1fr) auto 22px;
  grid-template-areas: "foto einheit gast kanal winkel" "foto datum datum kanal winkel";
}
:root[data-skin="gruppen"] .gaeste-grid .checkin-item::after {
  content: "";
  grid-area: winkel;
  justify-self: end;
  width: 16px;
  height: 16px;
  background: var(--text-subtle);
  -webkit-mask: var(--fw-i-chevron) center / contain no-repeat;
  mask: var(--fw-i-chevron) center / contain no-repeat;
}
:root[data-skin="gruppen"] :is(#ziel-uebersicht, #auslastung-tachos) .kpi-titel,
:root[data-skin="gruppen"] #tab-uebersicht .metric-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--fw-t);
  font-weight: var(--fw-semi);
}
:root[data-skin="gruppen"] :is(#ziel-uebersicht, #auslastung-tachos) .kpi-titel::before,
:root[data-skin="gruppen"] #tab-uebersicht .metric-label::before {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  background: currentColor;
  -webkit-mask: var(--fw-ti) center / contain no-repeat;
  mask: var(--fw-ti) center / contain no-repeat;
}
:root[data-skin="gruppen"] #ziel-uebersicht                          { --fw-t: var(--fw-t-umsatz);     --fw-ti: var(--fw-i-banknote); }
:root[data-skin="gruppen"] #auslastung-tachos                        { --fw-t: var(--fw-t-gewinn);     --fw-ti: var(--fw-i-bett); }
:root[data-skin="gruppen"] #tab-uebersicht .metric-card.accent-blue   { --fw-t: var(--fw-t-umsatz);     --fw-ti: var(--fw-i-banknote); }
:root[data-skin="gruppen"] #tab-uebersicht .metric-card.accent-green  { --fw-t: var(--fw-t-gewinn);     --fw-ti: var(--fw-i-wallet); }
:root[data-skin="gruppen"] #tab-uebersicht .metric-card.accent-yellow { --fw-t: var(--fw-t-auslastung); --fw-ti: var(--fw-i-bett); }
:root[data-skin="gruppen"] #tab-uebersicht .metric-card.accent-purple { --fw-t: var(--fw-t-vergleich);  --fw-ti: var(--fw-i-trend); }
:root[data-skin="gruppen"] #tab-uebersicht .metric-card.accent-ust    { --fw-t: var(--fw-t-ust);        --fw-ti: var(--fw-i-prozent); }

/* ══ BÜHNE: Eigenes ═══════════════════════════════════════════════════
   Gruß und Bänder (farbwelten.js), der Monatsumsatz als Schauzahl im
   Verlauf. Auf der Übersicht ersetzt der Gruß den Seitentitel.         */
.fw-buehne, .fw-band { display: none; }
:root[data-skin="buehne"] .fw-buehne {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: var(--sp-6);
}
:root[data-skin="buehne"] .fw-buehne-datum { font-size: var(--fs-md); color: var(--text-muted); }
:root[data-skin="buehne"] .fw-buehne-gruss {
  font-size: var(--fs-5xl);
  font-weight: var(--fw-bold);
  letter-spacing: -0.035em;
  line-height: 1.02;
  color: var(--text);
}
:root[data-skin="buehne"] :is(.fw-buehne-gruss, .fw-band) span { color: var(--text-muted); }
:root[data-skin="buehne"] .fw-buehne-gruss span { display: block; }
:root[data-skin="buehne"] .fw-band {
  display: block;
  margin: var(--sp-6) 0 calc(-1 * var(--sp-3));
  font-size: var(--fs-4xl);
  font-weight: var(--fw-bold);
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--text);
}
:root[data-skin="buehne"]:has(#tab-uebersicht.active) .topbar-title { display: none; }
:root[data-skin="buehne"] .topbar-actions { margin-left: auto; }
:root[data-skin="buehne"] #ziel-uebersicht .kpi-wert {
  font-size: var(--fs-6xl);
  font-weight: var(--fw-bold);
  letter-spacing: -0.045em;
  line-height: 1;
}
@media (max-width: 900px) {
  :root[data-skin="buehne"] .fw-buehne-gruss { font-size: var(--fs-3xl); }
  :root[data-skin="buehne"] .fw-band { font-size: var(--fs-2xl); }
  :root[data-skin="buehne"] #ziel-uebersicht .kpi-wert { font-size: var(--fs-4xl); }
  :root[data-skin="buehne"] .fw-ring { width: 132px; height: 132px; }
}
