/* Gemeinsame Gestalt: Marken, Knöpfe, Reiter, Karten, Panel, Hinweis. Kein View-Wissen.
   Look v6 (26.11., Curaflow-Vibe): keine Schatten, Haarlinien, Knöpfe 34 hoch mit Radius 9,
   Hauptknopf schwarz, Hover ändert nur die Fläche, Drücken schrumpft auf 97 %.
   Übersicht für alle, die neue Views bauen: css/LOOK.md. */

/* ---- Wertmarken (Badges): Pastellgrund, farbiger Text ---- */
.marke {
  display: inline-flex; align-items: center; gap: 5px; padding: 1px 8px; border-radius: var(--r-marke);
  font-size: 12px; font-weight: 600; white-space: nowrap; line-height: 1.6;
}
.marke__zeichen { font-size: 12px; }
.marke--still  { background: var(--ruht-sanft);   color: var(--ruht-text); }
.marke--laeuft { background: var(--laeuft-sanft); color: var(--laeuft-text); }
.marke--wartet { background: var(--wartet-sanft); color: var(--wartet-text); }
.marke--fertig { background: var(--fertig-sanft); color: var(--fertig-text); }
.marke--spaet  { background: var(--spaet-sanft);  color: var(--spaet-text); }
.marke--akzent { background: var(--akzent-sanft); color: var(--akzent-tief); }
.marke--rand   { background: var(--flaeche); color: var(--text-leise); box-shadow: inset 0 0 0 1px var(--linie-stark); }

.faellig { font-size: var(--gr-klein); color: var(--text-leise); white-space: nowrap; }
.faellig--heute { color: var(--akzent-tief); font-weight: 600; }
.faellig--spaet { color: var(--spaet-text); font-weight: 600; }
.faellig--leer { color: var(--text-still); }

.flamme { filter: grayscale(1); opacity: .25; font-size: 13px; }
.flamme--an { filter: none; opacity: 1; }

/* ---- Knöpfe: klein, umrandet; Haupt-Knopf schwarz ---- */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 32px; padding: 5px 12px; border-radius: var(--r-mittel); border: 1px solid var(--linie-stark);
  background: var(--flaeche); color: var(--text); font-weight: 600; font-size: 13px; line-height: 1.4;
  text-decoration: none; white-space: nowrap; transition: background .12s, transform .08s;
}
.knopf:active:not(:disabled) { transform: scale(.97); }
.knopf svg { color: var(--text-leise); flex: none; }
.knopf:hover { background: var(--flaeche-warm); border-color: var(--linie-stark); color: var(--text); }
.knopf:hover svg { color: var(--text); }
.knopf--haupt { background: var(--primaer); border-color: var(--primaer); color: var(--auf-primaer); }
.knopf--haupt svg { color: inherit; }
.knopf--haupt:hover { background: var(--primaer-hover); border-color: var(--primaer-hover); color: var(--auf-primaer); }
.knopf--haupt:hover svg { color: inherit; }
.knopf--klein { min-height: 28px; padding: 3px 9px; font-size: 12.5px; border-radius: var(--r-klein); }
.knopf--still { border-color: transparent; background: none; color: var(--text-leise); }
.knopf--still:hover { background: var(--flaeche-warm); border-color: transparent; }
.knopf--symbol { padding: 6px; width: 34px; height: 34px; }
.knopf--symbol.knopf--klein { padding: 4px; width: 28px; height: 28px; min-height: 0; }
.knopf[aria-pressed="true"] { background: var(--flaeche-warm); color: var(--text); }
.knopf:disabled { opacity: .5; cursor: default; }
/* Wert im Knopf, z. B. „Gruppieren: Status“ – der Wert kräftiger als das Etikett. */
.knopf b { font-weight: 600; color: var(--text); }
.knopf--haupt b { color: inherit; }

/* Werkzeugleiste über Listen und Boards: links Filter, rechts Sortierung, Ansicht, Haupt-Knopf. */
.werkzeugleiste { display: flex; align-items: center; gap: var(--a2); flex-wrap: wrap; margin-bottom: var(--a4); }
.werkzeugleiste__rechts { margin-left: auto; display: flex; align-items: center; gap: var(--a2); flex-wrap: wrap; }

/* ---- Ansichten-Reiter: dezente Segment-Reiter (Stacks) ---- */
.reiterleiste { display: flex; align-items: center; justify-content: space-between; gap: var(--a4); border-bottom: 1px solid var(--linie); margin-bottom: var(--a4); padding-bottom: var(--a2); }
.reiterleiste .reiter { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.reiterleiste__rechts { display: flex; align-items: center; gap: var(--a2); flex: none; }
.reiter { display: flex; align-items: center; gap: 2px; min-width: 0; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--linie); margin-bottom: var(--a4); padding-bottom: var(--a2); }
.reiter__punkt { position: relative; display: inline-flex; align-items: center; flex: none; }
.reiter a, .reiter [data-reiter] {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border: 1px solid transparent; border-radius: var(--r-klein);
  background: none; font: inherit; font-size: 13px; font-weight: 500; color: var(--text-leise); text-decoration: none; white-space: nowrap; cursor: pointer;
}
.reiter a svg, .reiter [data-reiter] svg { color: var(--text-still); flex: none; }
.reiter a:hover, .reiter [data-reiter]:hover { color: var(--text); background: var(--flaeche-warm); }
.reiter [aria-current="true"], .reiter [aria-current="true"]:hover { color: var(--text); background: var(--flaeche-still); border-color: var(--linie-stark); font-weight: 600; }
.reiter [aria-current="true"] svg { color: var(--text); }
.reiter em { font-style: normal; font-size: 11.5px; font-weight: 500; color: var(--text-still); background: var(--flaeche-warm); border-radius: var(--r-marke); padding: 0 6px; margin-left: 1px; }
.reiter [aria-current="true"] em { background: var(--flaeche); color: var(--text-leise); box-shadow: var(--hebung-linie); }
.reiter__plus { display: inline-flex; align-items: center; gap: 5px; flex: none; padding: 5px 10px; margin-left: 4px; border: 1px solid var(--linie-stark); border-radius: var(--r-mittel); background: var(--flaeche);
  font: inherit; font-size: var(--gr-klein); font-weight: 500; color: var(--text-leise); cursor: pointer; white-space: nowrap; }
.reiter__plus:hover, .reiter__plus[aria-expanded="true"] { background: var(--flaeche-still); color: var(--text); }
.reiter__punkt.zieht { opacity: .4; }
.reiter__punkt.ziel::before { content: ''; position: absolute; left: -2px; top: 6px; bottom: 6px; width: 2px; border-radius: 2px; background: var(--akzent); }
@media (max-width: 720px) {
  .reiterleiste { flex-direction: column; align-items: stretch; gap: var(--a2); border-bottom: 0; padding-bottom: 0; }
  .reiterleiste .reiter { border-bottom: 1px solid var(--linie); padding-bottom: var(--a2); }
  .reiterleiste__rechts { order: -1; }
}

.wahl {
  font: inherit; font-size: var(--gr-klein); min-height: 32px; padding: 5px 10px; border-radius: var(--r-mittel);
  border: 1px solid var(--linie-stark); background: var(--flaeche); color: var(--text);
}

/* ---- Kasten: weiße Fläche, 1px-Linie, kein Schatten ---- */
.kasten { border: 1px solid var(--linie-stark); border-radius: var(--r-buehne); background: var(--flaeche); overflow: hidden; }
.kasten__kopf { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--linie); }
.kasten__kopf h2 { font-size: var(--gr-gross); font-weight: 600; letter-spacing: -.01em; flex: 1; }
.kasten__kopf small { color: var(--text-still); font-size: var(--gr-klein); font-variant-numeric: tabular-nums; }
/* Symbolkachel vor einem Kartentitel: klein, getönt. */
.symbolkachel { display: grid; place-items: center; width: 28px; height: 28px; border-radius: var(--r-mittel); flex: none; background: var(--flaeche-warm); color: var(--text-leise); }
.symbolkachel--laeuft { background: var(--laeuft-sanft); color: var(--laeuft-text); }
.symbolkachel--fertig { background: var(--fertig-sanft); color: var(--fertig-text); }
.symbolkachel--wartet { background: var(--wartet-sanft); color: var(--wartet-text); }
.symbolkachel--spaet  { background: var(--spaet-sanft);  color: var(--spaet-text); }
.leer { padding: var(--a4); color: var(--text-still); font-size: var(--gr-klein); }

/* ---- Board-Karte: weiß, Haarlinie, kein Schatten; Hover nur die Fläche ---- */
.karte {
  display: flex; flex-direction: column; gap: var(--a2); padding: 12px 14px; border-radius: var(--r-gross);
  background: var(--flaeche); border: 1px solid var(--linie-stark); color: var(--text); text-decoration: none;
}
.karte:hover { background: var(--flaeche-still); }
.karte__titel { font-weight: 500; line-height: 1.4; }
.karte__text { font-size: var(--gr-klein); color: var(--text-leise); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.karte__fuss { display: flex; align-items: center; justify-content: space-between; gap: var(--a2); padding-top: var(--a2); border-top: 1px solid var(--linie); font-size: 12px; color: var(--text-still); }

/* ---- Detail-Panel rechts: Zeilen aus Label und Wert ---- */
.detail { background: var(--flaeche); border-left: 1px solid var(--linie); padding: var(--a5) var(--a6); }
.detail__titel { font-size: var(--gr-titel); font-weight: 600; letter-spacing: -.015em; line-height: 1.25; margin-bottom: var(--a4); }
.felder { display: grid; grid-template-columns: 140px minmax(0, 1fr); align-items: center; gap: 4px var(--a4); margin: 0; }
.felder dt { display: flex; align-items: center; gap: var(--a2); min-height: 32px; color: var(--text-leise); font-size: var(--gr-klein); }
.felder dt svg { color: var(--text-still); flex: none; }
.felder dd { margin: 0; min-height: 32px; display: flex; align-items: center; gap: var(--a2); min-width: 0; font-size: var(--gr-klein); }

/* ---- Fortschritt ---- */
.leiste { height: 6px; border-radius: 3px; background: var(--liste-balken); position: relative; overflow: hidden; }
.leiste__wert { position: absolute; inset: 0 auto 0 0; background: var(--akzent); border-radius: 3px; }
.leiste__soll { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--text); opacity: .55; }
.fortschritt { display: flex; align-items: center; gap: var(--a3); font-size: 12px; color: var(--text-leise); font-variant-numeric: tabular-nums; }
.fortschritt .leiste { flex: 1; }

/* ---- Avatar-Stapel ---- */
.avatar {
  display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; flex: none;
  background: var(--flaeche-warm); color: var(--text-leise); font-size: 10px; font-weight: 600; box-shadow: 0 0 0 2px var(--flaeche);
}
.avatare { display: inline-flex; align-items: center; }
.avatare > * + * { margin-left: -6px; }

/* ---- Kennung (ID) in Monospace, Zähler ---- */
.kennung { font-family: var(--schrift-mono); font-size: 12px; color: var(--text-still); letter-spacing: -.01em; white-space: nowrap; }
.zaehler { font-style: normal; font-size: 12px; color: var(--text-still); font-variant-numeric: tabular-nums; }
.zaehler--kasten { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--r-marke); font-size: 11.5px; font-weight: 500; color: var(--text-leise);
  background: var(--flaeche-warm); }

/* Abschnittsüberschrift: leise Gruppen-Beschriftung, keine Versalien (Curaflow-Vibe). */
.abschnittstitel { font-size: var(--gr-klein); font-weight: 500; color: var(--text-still); }

/* ---- Menüs und schwebende Flächen ---- */
.menue { background: var(--flaeche); border: 1px solid var(--linie-stark); border-radius: 12px; padding: 4px; min-width: 180px; }
.menue button, .menue a { display: flex; align-items: center; gap: var(--a2); width: 100%; min-height: 34px; padding: 6px 10px; border: 0; border-radius: var(--r-klein);
  background: none; color: var(--text); font-size: var(--gr-klein); text-align: left; text-decoration: none; }
.menue button svg, .menue a svg { color: var(--text-still); }
.menue button:hover, .menue a:hover { background: var(--flaeche-warm); }
.menue hr { border: 0; border-top: 1px solid var(--linie); margin: 4px -4px; }
.menue .menue__weg { color: var(--spaet-text); }
.menue .menue__weg svg { color: inherit; }

.hinweis {
  position: fixed; left: 50%; bottom: 24px; z-index: 60; transform: translate(-50%, 20px); opacity: 0;
  padding: 10px 16px; border-radius: 11px; background: var(--primaer); color: var(--auf-primaer);
  font-weight: 500; font-size: 13px; pointer-events: none; transition: all .2s ease;
  max-width: calc(100vw - 32px);
}
.hinweis--da { transform: translate(-50%, 0); opacity: 1; }

.attrappe { font-size: var(--gr-winzig); color: var(--text-still); }

/* Speicherstand (js/speicher-senden.js): ruhig unten rechts, nur wenn etwas nicht gespeichert wird. */
.speicher {
  position: fixed; right: var(--a4); bottom: var(--a4); z-index: 55; padding: 4px 10px;
  border-radius: var(--r-mittel); font-size: var(--gr-winzig); font-weight: 500; max-width: calc(100vw - 32px);
  background: var(--flaeche); color: var(--text-leise); border: 1px solid var(--linie-stark);
}
.speicher--fehler { background: var(--spaet-sanft); color: var(--spaet-text); border-color: var(--spaet-rand); cursor: default; }
.speicher[title]:not([title=""]) { cursor: pointer; }

/* Segment-Schalter (Verplant/Frei, Zeitrahmen, Reiter in kleinen Flächen). */
.segment { display: inline-flex; padding: 3px; gap: 2px; border-radius: 10px; background: var(--flaeche-still); box-shadow: var(--hebung-linie); }
.segment a, .segment button { border: 1px solid transparent; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; background: none; padding: 3px 10px; border-radius: 7px; font-size: var(--gr-klein); font-weight: 500; color: var(--text-leise); white-space: nowrap; }
.segment a:hover, .segment button:hover { color: var(--text); }
.segment a[aria-current="true"], .segment button[aria-pressed="true"] { background: var(--flaeche); color: var(--text); border-color: var(--linie-stark); }
.segment em { font-style: normal; color: var(--text-still); }
.segment--voll { display: flex; }
.segment--voll button { flex: 1; padding: 4px 6px; }

/* Status-Pille (Gruppenköpfe): Statuszeichen + Name, seit Look v6 in Figtree statt Monospace.
   Der Gruppenkopf selbst trägt den zarten Ton (views/liste/tabelle.css). */
.pille { display: inline-flex; align-items: center; gap: 8px; padding: 2px 0; color: var(--text); font-weight: 600; font-size: 13px; }
.pille::before { content: ''; width: 12px; height: 12px; border-radius: 50%; box-sizing: border-box; flex: none; }
.pille--offen::before    { border: 1.5px dashed var(--voll-still); }
.pille--arbeit::before   { border: 1.5px solid var(--voll-laeuft); background: conic-gradient(var(--voll-laeuft) 0 50%, transparent 0); background-clip: content-box; padding: 1.5px; }
.pille--wartet::before   { border: 1.5px dotted var(--voll-wartet); background: var(--wartet-sanft); }
.pille--erledigt::before { background: var(--voll-fertig); box-shadow: inset 0 0 0 3px var(--fertig-sanft); border: 1.5px solid var(--voll-fertig); }
/* Farbige Bezeichnungen. */
.tag { font-style: normal; font-size: var(--gr-klein); font-weight: 500; white-space: nowrap; }
.tag--0 { color: var(--t0); } .tag--1 { color: var(--t1); } .tag--2 { color: var(--t2); }
.tag--3 { color: var(--t3); } .tag--4 { color: var(--t4); } .tag--5 { color: var(--t5); }

/* Wiederholungs-Zeichen hinter Titeln (wiederZeichen in js/bausteine/marken.js). */
.wieder-zeichen { display: inline-flex; vertical-align: -1px; margin-left: 4px; color: var(--text-still); font-style: normal; }
