/* =========================================================================
   Planer — Gestaltungssystem

   Reference Lock (Refero-Recherche):
   PRIMAER  Linear Changelog (linear.app/changelog) — "midnight command center".
            Erhalten: Tiefe durch Rahmen und Flaechenschichtung statt Schatten;
            Typografie als Hauptmittel mit -0.01em Laufweite und Ueberschriften
            in Gewicht 500-590 (nie 700); Radien-Aufteilung 8px fuer Karten
            gegen 9999px fuer alles Bedienbare; Monospace ausschliesslich fuer
            Zeitangaben; kompakte Dichte (8/16/24px).
   GELIEHEN Cron Calendar (cron.com) — genau EIN kraeftiger Farbton
            (Action Orange), und nur fuer die Hauptaktion und fuer das, was
            sofortige Aufmerksamkeit verlangt (ueberfaellig). Sonst nichts.
            shadcn/ui (ui.shadcn.com) — die helle Entsprechung der Token
            (#ffffff, Rahmen #e5e5e5, gedaempft #737373), gleiche Haltung:
            Rahmen statt Schatten.
   VERWORFEN Warme Creme-Flaechen und weiche Schatten der Todoist-Richtung;
            bunte Statusfarben; fette 700er-Ueberschriften.

   Merkmal: Faelligkeiten stehen in Monospace rechtsbuendig in einer festen
   Spalte. Dadurch stapeln sich die Daten zu einer lesbaren senkrechten Leiste
   — die einzige Stelle, an der die Regel "Monospace nur fuer Zeit" tragend
   statt dekorativ wird.
   ========================================================================= */

/* Dunkel ist die entworfene Heimat (Primaerreferenz). Hell folgt der
   Systemeinstellung, die Wahl im Profil sticht beides. */
:root {
  --canvas:        #08090a;
  --flaeche-1:     #141516;
  --flaeche-2:     #1c1c1f;
  --linie:         #23252a;
  --linie-stark:   #34343a;
  --text:          #f7f8f8;
  --text-2:        #d0d6e0;
  --text-leise:    #8a8f98;
  --akzent:        #ff4700;
  --akzent-schrift:#0f0d0a;
  --akzent-schwach: rgba(255, 71, 0, 0.14);
  --erledigt:      #8a8f98;

  --radius-karte:  8px;
  --radius-pille:  9999px;
  --lueckchen:     8px;
  --polster:       16px;
  --abschnitt:     24px;

  --schrift: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto,
             'Helvetica Neue', sans-serif;
  --schrift-zeit: ui-monospace, 'SF Mono', SFMono-Regular, 'Roboto Mono',
                  Menlo, Consolas, monospace;

  --tabbar-hoehe: 60px;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root:not([data-thema='dunkel']) {
    --canvas:        #ffffff;
    --flaeche-1:     #f7f7f8;
    --flaeche-2:     #f2f2f2;
    --linie:         #e5e5e5;
    --linie-stark:   #d4d4d4;
    --text:          #0a0a0a;
    --text-2:        #404040;
    --text-leise:    #737373;
    /* Dunkler als #ff4700, weil der Originalton auf Weiss nur 3,4:1 erreicht.
       Die Rolle bleibt gleich, nur der Wert traegt den Kontrast (5,3:1). */
    --akzent:        #c93400;
    --akzent-schrift:#ffffff;
    --akzent-schwach: rgba(201, 52, 0, 0.10);
    --erledigt:      #737373;
    color-scheme: light;
  }
}

:root[data-thema='hell'] {
  --canvas:        #ffffff;
  --flaeche-1:     #f7f7f8;
  --flaeche-2:     #f2f2f2;
  --linie:         #e5e5e5;
  --linie-stark:   #d4d4d4;
  --text:          #0a0a0a;
  --text-2:        #404040;
  --text-leise:    #737373;
  --akzent:        #c93400;
  --akzent-schrift:#ffffff;
  --akzent-schwach: rgba(201, 52, 0, 0.10);
  --erledigt:      #737373;
  color-scheme: light;
}

/* Muss vor allen eigenen display-Regeln stehen, sonst schlaegt eine spaetere
   display-Angabe das hidden-Attribut und der Knopf sieht tot aus. */
[hidden] { display: none !important; }

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--schrift);
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--text);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}

button, input, textarea, select { font: inherit; letter-spacing: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--akzent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Grundgeruest ------------------------------------------------ */

.app {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.blatt {
  flex: 1;
  padding: 0 var(--polster);
  padding-bottom: calc(var(--tabbar-hoehe) + env(safe-area-inset-bottom) + 32px);
  max-width: 560px;
  width: 100%;
  margin: 0 auto;
}

.kopf {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--lueckchen);
  padding-top: calc(env(safe-area-inset-top) + 20px);
  padding-bottom: var(--polster);
}

/* Gewicht 590 statt 700: die Autoritaet kommt aus Groesse und Laufweite. */
.kopf h1 {
  font-size: 32px;
  font-weight: 590;
  line-height: 1.2;
  letter-spacing: -0.038em;
}

.kopf-zusatz {
  font-size: 13px;
  color: var(--text-leise);
  font-family: var(--schrift-zeit);
  letter-spacing: -0.014em;
  padding-bottom: 6px;
  white-space: nowrap;
}

/* ---------- Pillen: Filter, Marken, Auswahl ----------------------------- */

.pillenreihe {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0 calc(var(--polster) * -1);
  padding: 2px var(--polster) var(--polster);
}
.pillenreihe::-webkit-scrollbar { display: none; }

.pille {
  flex: 0 0 auto;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  border: 1px solid var(--linie);
  border-radius: var(--radius-pille);
  background: transparent;
  color: var(--text-leise);
  font-size: 14px;
  white-space: nowrap;
  transition: color .12s, border-color .12s, background-color .12s;
}
.pille[aria-pressed='true'],
.pille.aktiv {
  color: var(--text);
  border-color: var(--linie-stark);
  background: var(--flaeche-1);
}
.pille .zahl {
  font-family: var(--schrift-zeit);
  font-size: 12px;
  color: var(--text-leise);
}
.pille[aria-pressed='true'] .zahl { color: var(--text-2); }

.marke {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px;
  border-radius: var(--radius-pille);
  background: var(--flaeche-1);
  color: var(--text-2);
  font-size: 12px;
  line-height: 1.5;
  white-space: nowrap;
}
.marke--akzent {
  background: var(--akzent-schwach);
  color: var(--akzent);
}

/* ---------- Abschnitte -------------------------------------------------- */

.abschnitt { margin-bottom: var(--abschnitt); }

.abschnitt-kopf {
  display: flex;
  align-items: center;
  gap: var(--lueckchen);
  width: 100%;
  padding: 6px 0;
  min-height: 36px;
  text-align: left;
}
.abschnitt-kopf h2 {
  font-size: 15px;
  font-weight: 510;
  letter-spacing: -0.015em;
}
.abschnitt-kopf .zahl {
  font-family: var(--schrift-zeit);
  font-size: 12px;
  color: var(--text-leise);
}
.abschnitt-kopf .pfeil {
  margin-left: auto;
  color: var(--text-leise);
  transition: transform .16s ease;
}
.abschnitt-kopf[aria-expanded='false'] .pfeil { transform: rotate(-90deg); }
.abschnitt-kopf--dringend h2 { color: var(--akzent); }

/* ---------- Aufgabenzeile ----------------------------------------------- */
/* Drei Spalten: Haken, Inhalt, Datum. Die dritte Spalte hat eine feste
   Mindestbreite, damit die Monospace-Daten senkrecht buendig stehen. */

.liste { display: flex; flex-direction: column; }

.zeile {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  align-items: start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--linie);
  text-align: left;
  width: 100%;
}
.liste .zeile:last-child { border-bottom: none; }

.haken {
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border: 1.5px solid var(--linie-stark);
  border-radius: var(--radius-pille);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  transition: border-color .12s, background-color .12s;
}
/* Vergroessert die Trefferflaeche auf 44px, ohne das Bild zu veraendern. */
.haken::before {
  content: '';
  position: absolute;
  inset: -11px;
}
.haken { position: relative; }
.haken svg { opacity: 0; transition: opacity .12s; }
.haken[aria-checked='true'] {
  background: var(--text);
  border-color: var(--text);
}
.haken[aria-checked='true'] svg { opacity: 1; color: var(--canvas); }
.haken[data-status='in_progress'] {
  border-color: var(--text-2);
  background: linear-gradient(to right, var(--text-2) 50%, transparent 50%);
}

.zeile-titel {
  font-size: 15px;
  line-height: 1.4;
  color: var(--text);
  overflow-wrap: anywhere;
}
.zeile--erledigt .zeile-titel {
  color: var(--erledigt);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.zeile-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
  font-size: 12px;
  color: var(--text-leise);
}

/* Die Datumsleiste. Monospace, rechtsbuendig, feste Mindestbreite. */
.zeile-zeit {
  font-family: var(--schrift-zeit);
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: -0.014em;
  color: var(--text-leise);
  text-align: right;
  min-width: 68px;
  padding-top: 2px;
  font-variant-numeric: tabular-nums;
}
.zeile-zeit b { display: block; font-weight: 400; }
.zeile-zeit .uhr { color: var(--text-2); }
.zeile--ueberfaellig .zeile-zeit { color: var(--akzent); }

/* Der einzige weitere Ort fuer den Akzent: ein 2px-Streifen links an einer
   ueberfaelligen Zeile. Flaeche waere zu laut fuer "dezent hervorheben". */
.zeile--ueberfaellig {
  position: relative;
  padding-left: 10px;
  margin-left: -10px;
}
.zeile--ueberfaellig::before {
  content: '';
  position: absolute;
  left: 0; top: 10px; bottom: 10px;
  width: 2px;
  border-radius: 1px;
  background: var(--akzent);
}

.avatar {
  width: 18px; height: 18px;
  border-radius: var(--radius-pille);
  display: grid; place-items: center;
  background: var(--flaeche-2);
  border: 1px solid var(--linie);
  font-size: 10px;
  font-weight: 510;
  color: var(--text-2);
  flex: 0 0 auto;
}
.avatar--ich { background: var(--text); color: var(--canvas); border-color: var(--text); }

/* ---------- Karten (Projekte, Ideen) ------------------------------------ */

.karte {
  display: block;
  width: 100%;
  text-align: left;
  padding: var(--polster);
  border: 1px solid var(--linie);
  border-radius: var(--radius-karte);
  background: transparent;
  margin-bottom: var(--lueckchen);
  transition: border-color .12s;
}
.karte:active { border-color: var(--linie-stark); }
.karte-titel { font-size: 16px; font-weight: 510; letter-spacing: -0.015em; }
.karte-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  margin-top: 10px; font-size: 12px; color: var(--text-leise);
}
.karte--einladung { border-color: var(--akzent); }

/* Fortschrittslinie im Projekt: Rahmenlogik statt Farbbalken. */
.fortschritt {
  height: 2px;
  margin-top: 12px;
  background: var(--linie);
  border-radius: 1px;
  overflow: hidden;
}
.fortschritt i { display: block; height: 100%; background: var(--text-2); }

/* ---------- Knoepfe ----------------------------------------------------- */

.knopf {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--lueckchen);
  padding: 0 20px;
  border-radius: var(--radius-pille);
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 510;
  transition: opacity .12s, background-color .12s, border-color .12s;
}
.knopf:disabled { opacity: .45; cursor: default; }
.knopf--haupt { background: var(--akzent); color: var(--akzent-schrift); }
.knopf--geist { border-color: var(--text); color: var(--text); }
.knopf--leise { border-color: var(--linie); color: var(--text-leise); }
.knopf--breit { width: 100%; }
.knopf--gefahr { border-color: var(--linie); color: #e5484d; }

/* ---------- Untere Navigation ------------------------------------------- */

.tabbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  height: calc(var(--tabbar-hoehe) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--canvas);
  border-top: 1px solid var(--linie);
}

.tab {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 10px;
  color: var(--text-leise);
  position: relative;
  transition: color .12s;
}
.tab[aria-current='page'] { color: var(--text); }
.tab[aria-current='page']::after {
  content: '';
  position: absolute;
  top: 0;
  width: 20px; height: 2px;
  border-radius: 0 0 2px 2px;
  background: var(--text);
}

.tab-plakette {
  position: absolute;
  top: 8px;
  left: calc(50% + 6px);
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: var(--radius-pille);
  background: var(--akzent);
  color: var(--akzent-schrift);
  font-family: var(--schrift-zeit);
  font-size: 10px;
  font-weight: 590;
  line-height: 16px;
  text-align: center;
}

/* Die zentrale Erstellen-Schaltflaeche sitzt mittig in der Leiste — der am
   leichtesten mit einem Daumen erreichbare Punkt. */
.erstellen {
  justify-self: center;
  width: 48px; height: 48px;
  border-radius: var(--radius-pille);
  background: var(--akzent);
  color: var(--akzent-schrift);
  display: grid;
  place-items: center;
  transition: transform .12s ease;
}
.erstellen:active { transform: scale(.92); }

/* ---------- Blende und Bogen (Bottom Sheet) ----------------------------- */

.blende {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(0, 0, 0, .55);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: einblenden .16s ease;
}
@keyframes einblenden { from { opacity: 0 } }

.bogen {
  width: 100%;
  max-width: 560px;
  max-height: 92dvh;
  display: flex;
  flex-direction: column;
  background: var(--canvas);
  border: 1px solid var(--linie);
  border-bottom: none;
  border-radius: 16px 16px 0 0;
  animation: hochfahren .2s cubic-bezier(.32, .72, 0, 1);
}
@keyframes hochfahren { from { transform: translateY(100%) } }

@media (prefers-reduced-motion: reduce) {
  .blende, .bogen { animation: none; }
  * { transition-duration: .01ms !important; }
}

.bogen-griff {
  width: 36px; height: 4px;
  margin: 8px auto 0;
  border-radius: 2px;
  background: var(--linie-stark);
  flex: 0 0 auto;
}

.bogen-kopf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--lueckchen);
  padding: 12px var(--polster);
  border-bottom: 1px solid var(--linie);
  flex: 0 0 auto;
}
.bogen-kopf h2 { font-size: 17px; font-weight: 510; letter-spacing: -0.02em; }

.bogen-inhalt {
  padding: var(--polster);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.bogen-fuss {
  padding: 12px var(--polster);
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--linie);
  display: flex;
  gap: var(--lueckchen);
  flex: 0 0 auto;
}

/* ---------- Formulare --------------------------------------------------- */

.feld { margin-bottom: var(--polster); }
.feld > label {
  display: block;
  font-size: 12px;
  color: var(--text-leise);
  margin-bottom: 6px;
}

.eingabe {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  background: transparent;
  border: 1px solid var(--linie);
  border-radius: 10px;
  color: var(--text);
  /* 16px verhindert, dass iOS beim Fokus in das Feld hineinzoomt. */
  font-size: 16px;
}
.eingabe::placeholder { color: var(--text-leise); }
.eingabe:focus { outline: none; border-color: var(--linie-stark); box-shadow: 0 0 0 1px var(--linie-stark); }
textarea.eingabe { min-height: 88px; resize: vertical; line-height: 1.5; }

/* Der Titel ist die Hauptsache und wird deshalb ohne Rahmen gross gesetzt. */
.eingabe--titel {
  border: none;
  padding: 0 0 12px;
  font-size: 20px;
  font-weight: 510;
  letter-spacing: -0.02em;
  border-bottom: 1px solid var(--linie);
  border-radius: 0;
}
.eingabe--titel:focus { box-shadow: none; border-bottom-color: var(--linie-stark); }

/* Zusatzfelder bleiben eingeklappt, bis sie gebraucht werden. */
.klapp > summary {
  list-style: none;
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-leise);
  cursor: pointer;
}
.klapp > summary::-webkit-details-marker { display: none; }
.klapp[open] > summary { color: var(--text-2); margin-bottom: 12px; }

.hinweiszeile {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--linie);
  text-align: left;
  width: 100%;
}
.hinweiszeile:last-child { border-bottom: none; }
.hinweiszeile--neu .hinweiszeile-punkt { background: var(--akzent); }
.hinweiszeile-punkt {
  width: 6px; height: 6px; margin-top: 7px;
  border-radius: var(--radius-pille);
  background: transparent;
  flex: 0 0 auto;
}
.hinweiszeile-text { font-size: 14px; line-height: 1.45; }
.hinweiszeile-zeit {
  margin-left: auto;
  font-family: var(--schrift-zeit);
  font-size: 11px;
  color: var(--text-leise);
  white-space: nowrap;
  padding-top: 2px;
}

/* ---------- Leere Zustaende und Meldungen ------------------------------- */

.leer {
  padding: 48px 24px;
  text-align: center;
  color: var(--text-leise);
  font-size: 14px;
  line-height: 1.6;
}
.leer b { display: block; color: var(--text-2); font-weight: 510; margin-bottom: 4px; }

.fehler {
  padding: 10px 14px;
  margin-bottom: var(--polster);
  border: 1px solid var(--akzent);
  border-radius: 10px;
  color: var(--akzent);
  font-size: 14px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--tabbar-hoehe) + env(safe-area-inset-bottom) + 16px);
  transform: translateX(-50%);
  z-index: 60;
  padding: 10px 18px;
  border-radius: var(--radius-pille);
  border: 1px solid var(--linie-stark);
  background: var(--flaeche-1);
  color: var(--text);
  font-size: 14px;
  white-space: nowrap;
  animation: einblenden .16s ease;
}

/* ---------- Anmeldung --------------------------------------------------- */

.anmeldung {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--abschnitt);
  padding: 32px max(var(--polster), env(safe-area-inset-left)) 48px;
  max-width: 420px;
  margin: 0 auto;
}
.anmeldung h1 { font-size: 28px; font-weight: 590; letter-spacing: -0.03em; }
.anmeldung p { color: var(--text-leise); font-size: 14px; margin-top: 6px; }

.merken {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 14px;
  color: var(--text-2);
  cursor: pointer;
}
.merken input { width: 18px; height: 18px; accent-color: var(--akzent); }

/* ---------- Einstellungsliste ------------------------------------------- */

.einstellung {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 12px 0;
  border-bottom: 1px solid var(--linie);
  text-align: left;
  font-size: 15px;
}
.einstellung:last-child { border-bottom: none; }
.einstellung .rechts { margin-left: auto; color: var(--text-leise); font-size: 14px; }

.segmente {
  display: flex;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--linie);
  border-radius: var(--radius-pille);
}
.segmente button {
  flex: 1;
  min-height: 32px;
  border-radius: var(--radius-pille);
  font-size: 13px;
  color: var(--text-leise);
}
.segmente button[aria-pressed='true'] { background: var(--flaeche-2); color: var(--text); }

.trenner {
  height: 1px;
  background: var(--linie);
  margin: var(--abschnitt) 0;
}

/* =========================================================================
   Hilfsklassen

   Bewusst Klassen statt style-Attributen: die Content-Security-Policy setzt
   style-src 'self', damit blockiert der Browser jedes Inline-Style. Die
   Alternative waere 'unsafe-inline' gewesen — dafuer ist eine Handvoll
   Klassen der bessere Preis.
   ========================================================================= */

/* Knopf ohne Knopf-Aussehen: gebraucht, wo eine ganze Zeile anklickbar ist. */
.u-nackt {
  background: none; border: none; padding: 0;
  font: inherit; color: inherit; text-align: inherit;
  cursor: pointer;
}
.u-nackt--block { display: block; width: 100%; }
.u-nackt--symbol { display: flex; opacity: .6; }

.u-fluss    { flex: 1; }
.u-schmal   { min-width: 0; }
.u-rand-oben{ margin-top: var(--polster); }
.u-luft     { height: 8px; }

.bogen-zu { padding: 4px; color: var(--text-leise); display: flex; }

.pillenreihe--eng    { margin: 0; padding: 2px 0 0; }
.pillenreihe--termin { margin: 0; padding: 2px 0 12px; }

.kopf-knopf { margin-bottom: 6px; }
.kopf-zurueck { margin-bottom: 10px; }

.detail-titel {
  font-size: 20px;
  font-weight: 510;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 14px;
}
.detail-text {
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 20px;
  white-space: pre-wrap;
}

.zusatz {
  font-size: 13px;
  color: var(--text-leise);
  line-height: 1.6;
}
.zusatz--fuss { margin-top: var(--abschnitt); font-size: 12px; }
.zusatz--feld { margin-top: 14px; }

.notiz-auszug {
  margin-top: 6px;
  font-size: 14px;
  color: var(--text-leise);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.karte-zeit {
  margin-left: auto;
  font-family: var(--schrift-zeit);
  font-size: 11px;
}
.karte-lupe { font-size: 12px; color: var(--text-leise); margin-bottom: 4px; }

.knopfreihe { display: flex; gap: var(--lueckchen); margin-top: 14px; }

.profil-kopf {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: var(--abschnitt);
}
.profil-avatar { width: 44px; height: 44px; font-size: 17px; }
.profil-name { font-size: 17px; font-weight: 510; }
.profil-kennung {
  font-size: 13px;
  color: var(--text-leise);
  font-family: var(--schrift-zeit);
}

.kennzahlen { display: flex; gap: var(--lueckchen); padding-bottom: var(--abschnitt); }
.kennzahl {
  flex: 1;
  padding: 12px 14px;
  border: 1px solid var(--linie);
  border-radius: var(--radius-karte);
}
.kennzahl-wert {
  font-family: var(--schrift-zeit);
  font-size: 22px;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.kennzahl-name { font-size: 12px; color: var(--text-leise); margin-top: 2px; }

.segmente--rechts { margin-left: auto; width: 190px; }

.termin-genau { display: flex; gap: var(--lueckchen); }

.einstellung--gross { font-size: 16px; }
.einstellung-untertitel { font-size: 12px; color: var(--text-leise); }

.suchfeld { margin-bottom: 12px; }
.leer--start { padding-top: 120px; }

.rechts--zeit { font-family: var(--schrift-zeit); }
.rechts--dringend { color: var(--akzent); }
.karte--lupe { margin-bottom: 20px; }
/* Der Symbolvorrat darf keinen Platz im Fluss beanspruchen. */
.symbolvorrat { position: absolute; }

/* Rollen- und Zustandswoerter in Pillen. Bewusst NICHT `.zahl`: Monospace
   gehoert in diesem System ausschliesslich Zeitangaben und Zaehlern. */
.pille-rolle { font-size: 12px; color: var(--text-leise); }
.pille[aria-pressed='true'] .pille-rolle { color: var(--text-2); }

/* Der Trenner bringt seine eigene Linie mit — die Zeile davor braucht keine. */
.einstellung:has(+ .trenner) { border-bottom: none; }

/* ---------- Schalter ----------------------------------------------------- */
/* Die Bahn traegt die Bedeutung ueber Flaeche, nicht ueber Farbe: aus ist ein
   leerer Rahmen, an ist gefuellt. Der Akzent bleibt der Hauptaktion und dem
   Ueberfaelligen vorbehalten. */

.schalter {
  width: 46px;
  height: 28px;
  padding: 3px;
  border: 1px solid var(--linie-stark);
  border-radius: var(--radius-pille);
  background: transparent;
  display: flex;
  align-items: center;
  transition: background-color .16s ease, border-color .16s ease;
}
.schalter i {
  width: 20px; height: 20px;
  border-radius: var(--radius-pille);
  background: var(--text-leise);
  transition: transform .16s cubic-bezier(.32, .72, 0, 1), background-color .16s;
}
.schalter--an {
  background: var(--text);
  border-color: var(--text);
}
.schalter--an i { transform: translateX(18px); background: var(--canvas); }
.schalter:disabled { opacity: .5; }
