/* ==========================================================================
   ORBIT - Design "Reisetagebuch"

   Kein Cockpit, sondern ein Notizbuch, das man gern aufschlägt: warmes Papier
   als Grund, Flächen als weiche Karten mit Licht von oben, eine warme
   Serifenschrift für Titel und eine freundliche Groteske für den Text.
   Die Farben kommen von Orten, an die man zurückdenkt - Meer, Terrakotta,
   Olive, Honig, Sand.

   Drei Regeln halten das zusammen - wer etwas hinzufügt, hält sich daran,
   sonst wird aus dem Notizbuch ein Sammelalbum:

     1. LICHT STATT LEUCHTEN. Tiefe entsteht durch weiche, warme Schatten
        (--hebung-weich, --hebung, --hebung-tief) - nie durch farbige Scheine.
        Wer einen box-shadow in Akzentfarbe setzt, nimmt dem Papier die Ruhe.
     2. FARBE BEDEUTET ETWAS. Meer = aktiv/jetzt. Olive = erledigt.
        Honig = läuft. Terrakotta = dringend/vorbei. Die sechs Kategoriefarben
        gehören den Zeitblöcken und tauchen sonst nirgends auf.
     3. BEWEGUNG NUR, WO ETWAS LÄUFT. Der Fokus-Timer atmet, die Jetzt-Marke
        atmet. Alles andere steht still.

   Alle Farben, Radien und Größen stehen hier oben als Variablen. Wer das
   Aussehen ändern will, ändert sie hier - nicht in den Bausteinen.
   ========================================================================== */

:root {
  /* Grund und Flächen: Papier, nicht Bildschirm */
  --grund: #f6f1e7;
  --grund-2: #fbf7f0;
  --panel: rgba(255, 253, 248, 0.86);
  --panel-satt: #fffdf8;
  --panel-tief: rgba(240, 232, 219, 0.66);

  /* Füllungen: eine helle für Felder, eine gesenkte für Bahnen und Spuren */
  --fuellung: rgba(255, 254, 250, 0.82);
  --senke: rgba(141, 118, 90, 0.1);

  /* Linien: eine warme, eine ganz stille */
  --linie: rgba(141, 118, 90, 0.28);
  --linie-still: rgba(141, 118, 90, 0.15);

  /* Schrift */
  --text: #3b3328;
  --text-2: #6a5c4b;
  --muted: #80705c;
  --schwach: #a1907a;

  /* Bedeutungsfarben.
     Die Variablennamen sind aus der Leitstand-Zeit geblieben, damit die
     Ansichten unverändert weiterlaufen - die Töne sind neu:
     cyan = Meer, gruen = Olive, amber = Honig, magenta = Terrakotta. */
  --cyan: #1e7268;
  --cyan-tief: #11504a;
  --cyan-weich: rgba(30, 114, 104, 0.1);
  --gruen: #4f7a42;
  --gruen-weich: rgba(79, 122, 66, 0.12);
  --amber: #a8701a;
  --amber-weich: rgba(168, 112, 26, 0.13);
  --magenta: #b2492f;
  --magenta-weich: rgba(178, 73, 47, 0.12);

  /* Die Palette der Aufgaben-Kategorien.
     Acht Töne, aus denen man beim Anlegen einer Kategorie wählt - die Namen
     hier müssen zu FARBEN in src/pruefen.js passen. */
  --f-cyan: #1e7268;
  --f-gruen: #4f7a42;
  --f-amber: #a8701a;
  --f-magenta: #a8516a;
  --f-violett: #7a5e95;
  --f-blau: #3f6e96;
  --f-koralle: #c2663f;
  --f-sand: #9a7b45;

  /* Die sechs Kategorien eines Zeitblocks */
  --kat-arbeit: #1e7268;
  --kat-kopf: #7a5e95;
  --kat-koerper: #4f7a42;
  --kat-haushalt: #a8701a;
  --kat-menschen: #a8516a;
  --kat-ruhe: #3f6e96;

  /* Kanten: weich. Ein Notizbuch hat abgerundete Ecken. */
  --r-gross: 20px;
  --r: 14px;
  --r-klein: 9px;
  --r-pille: 999px;

  /* Hebung - weiche, warme Schatten, siehe Regel 1 */
  --hebung-weich: 0 1px 2px rgba(92, 72, 46, 0.05), 0 6px 16px -12px rgba(92, 72, 46, 0.3);
  --hebung: 0 1px 2px rgba(92, 72, 46, 0.06), 0 12px 28px -18px rgba(92, 72, 46, 0.38);
  --hebung-tief: 0 24px 56px -30px rgba(74, 56, 34, 0.45);

  --schrift-titel: "Fraunces", "Iowan Old Style", Georgia, serif;
  --schrift-text: "DM Sans", "Segoe UI", system-ui, sans-serif;
  --schrift-mono: "DM Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --spalte: 560px; /* Breite der Inhaltsspalte auf großen Bildschirmen */
  --nav-h: 108px; /* Platz, den die Leiste unten braucht */

  color-scheme: light;
}

* {
  box-sizing: border-box;
}

/* Scrollbalken: schmal, warm und ohne Bahn. Eine Leiste, die seitlich
   weiterläuft - etwa die Reiter der Finanzansicht - sieht mit dem grauen
   Standardbalken darunter aus wie ein Fehler statt wie eine Einladung. */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--linie) transparent;
}
*::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}
*::-webkit-scrollbar-track {
  background: transparent;
}
*::-webkit-scrollbar-thumb {
  background: var(--linie);
  border-radius: var(--r-pille);
  border: 2px solid transparent;
  background-clip: content-box;
}
*::-webkit-scrollbar-thumb:hover {
  background: var(--muted);
  background-clip: content-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: var(--schrift-text);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background-color: var(--grund);
  /* Drei weiche Lichter auf dem Papier: Morgensonne oben links, ein Hauch Meer
     oben rechts, warmer Sand unten. Sehr leise - es soll Wärme andeuten,
     nicht auffallen. Das Meer ist dabei das schwächste der drei: Es soll den
     Akzent aufnehmen, nicht mit ihm konkurrieren. */
  background-image:
    radial-gradient(1200px 620px at 8% -10%, rgba(255, 231, 192, 0.9), transparent 62%),
    radial-gradient(900px 520px at 104% 4%, rgba(196, 220, 214, 0.3), transparent 64%),
    radial-gradient(1000px 580px at 50% 112%, rgba(224, 186, 156, 0.52), transparent 64%);
  background-repeat: no-repeat;
  background-attachment: fixed, fixed, fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Auf dem Handy füllt die App den Bildschirm, auf dem Rechner steht sie als
   ruhige Spalte in der Mitte. */
.page {
  width: 100%;
  max-width: var(--spalte);
  margin: 0 auto;
  /* Der untere Rand hält die Leiste frei. Auf Handys mit Home-Indikator sitzt
     sie um dessen Höhe weiter oben - ohne den Zuschlag verschwindet das letzte
     Element hinter ihr. */
  padding: 22px 18px calc(var(--nav-h) + env(safe-area-inset-bottom));
  position: relative;
}

@media (max-width: 359px) {
  .page {
    padding-left: 13px;
    padding-right: 13px;
  }
}
@media (min-width: 620px) {
  .page {
    padding-top: 36px;
  }
}

/* --------------------------------------------------------------------------
   Typografie
   -------------------------------------------------------------------------- */
h1,
h2,
h3 {
  margin: 0;
  font-family: var(--schrift-titel);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.h1 {
  font-family: var(--schrift-titel);
  font-weight: 600;
  font-size: 25px;
  line-height: 1.15;
  letter-spacing: -0.015em;
}
.h2 {
  font-family: var(--schrift-titel);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.25;
}
.h3 {
  font-family: var(--schrift-titel);
  font-weight: 600;
  font-size: 14.5px;
  line-height: 1.3;
}

/* Das Etikett: die kleine Überschrift an einer Fläche. Klein, gesperrt, in
   Versalien - damit sind Titel und Messwerte auf einen Blick zu unterscheiden.
   Seit dem Reisetagebuch nicht mehr mono, sondern die Textschrift: freundlich
   statt technisch.

   Und warmbraun, nicht in der Akzentfarbe: Das Etikett steht über jeder
   Fläche. Färbte man es meergrün, wäre der Akzent die häufigste Farbe der
   Seite - und damit kein Akzent mehr. Grün bleibt dem vorbehalten, was gerade
   aktiv ist. */
.etikett {
  font-family: var(--schrift-text);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-2);
}
.etikett-still {
  color: var(--schwach);
}
/* Überfälliges. Die einzige Stelle, an der eine Überschrift Alarmfarbe bekommt
   - und genau deshalb fällt sie auf. */
.etikett-warn {
  color: var(--magenta);
}

/* Der Link. Es gibt genau zwei in der ganzen App, beide auf der Anmeldeseite -
   und ohne eigene Regel nähmen sie das Blau des Browsers. Auf dem Creme wäre
   das der einzige Ton, der sonst nirgends vorkommt. Die Unterstreichung bleibt
   (ein Link ohne sie ist im Fließtext nicht zu erkennen), nur zurückhaltend:
   abgesetzt und blass, bis man darauf zeigt. */
a {
  color: var(--cyan);
  text-decoration: underline;
  text-decoration-color: rgba(30, 114, 104, 0.35);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.16s;
}
a:hover {
  text-decoration-color: var(--cyan);
}
a:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
  border-radius: 2px;
}

.lead {
  color: var(--text-2);
  font-size: 15px;
}
.small {
  font-size: 13px;
}
.tiny {
  font-size: 11.5px;
}
.muted {
  color: var(--muted);
}
.schwach {
  color: var(--schwach);
}
.stark {
  color: var(--text);
  font-weight: 600;
}
.wachs {
  flex: 1;
  min-width: 0;
}
.abschneiden {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Zahlen laufen tabellarisch - sonst wackelt eine Spalte von Minutenwerten. */
.tnum {
  font-family: var(--schrift-mono);
  font-variant-numeric: tabular-nums;
}

/* Die große Zahl - die Monatssumme, der eine Betrag, um den es auf einer Seite
   geht. DM Mono läuft von Haus aus weit; bei dreißig Pixeln zerfällt ein
   Betrag dadurch in lauter Einzelziffern. Etwas enger gestellt hält er wieder
   zusammen, ohne die tabellarische Breite aufzugeben. */
.zahl-gross {
  font-family: var(--schrift-mono);
  font-variant-numeric: tabular-nums;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

/* --------------------------------------------------------------------------
   Kopfzeile
   -------------------------------------------------------------------------- */
.kopf {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.kopf .h1 {
  margin-top: 2px;
}

/* --------------------------------------------------------------------------
   Panel - die Fläche, auf der alles liegt

   Eine Karte aus hellem Papier: weiche Ecken, eine kaum sichtbare warme Linie
   und ein Schatten, der sie knapp über den Grund hebt. Keine Eckwinkel, keine
   Scheine - die Tiefe macht das Licht.
   -------------------------------------------------------------------------- */
.panel {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--linie-still);
  border-radius: var(--r);
  padding: 15px 16px;
  margin-bottom: 12px;
  box-shadow: var(--hebung-weich);
  backdrop-filter: blur(6px);
}

.panel-kopf {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.panel-flach {
  background: transparent;
  border-color: var(--linie-still);
  box-shadow: none;
}
.panel-satt {
  background: var(--panel-satt);
  box-shadow: var(--hebung);
}

.panel-warn {
  border-color: rgba(178, 73, 47, 0.3);
  background: linear-gradient(180deg, var(--magenta-weich), var(--panel));
}
.panel-warn .etikett {
  color: var(--magenta);
}

.panel-leer {
  border-style: dashed;
  border-color: var(--linie-still);
  background: var(--panel-tief);
  box-shadow: none;
}
.frage {
  margin: 0 0 6px;
  font-size: 13.5px;
  color: var(--text-2);
  font-style: italic;
}
.frage:last-child {
  margin-bottom: 0;
}

/* Die Bereichs-Überschrift zwischen zwei Panels */
.abschnitt {
  margin: 24px 0 10px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--linie-still);
  padding-bottom: 7px;
}

/* --------------------------------------------------------------------------
   Knöpfe
   -------------------------------------------------------------------------- */
.btn {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--schrift-text);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 17px;
  border-radius: var(--r-pille);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: background-color 0.16s, border-color 0.16s, box-shadow 0.16s, color 0.16s,
    transform 0.16s;
}
.btn:active {
  transform: translateY(1px);
}
.btn:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.btn-primary {
  background: linear-gradient(180deg, #2a8478, var(--cyan));
  border-color: transparent;
  color: #fdfaf4;
  box-shadow: var(--hebung-weich);
}
.btn-primary:hover {
  background: linear-gradient(180deg, #2f9284, #1b685f);
  box-shadow: var(--hebung);
}

.btn-soft {
  background: var(--panel-satt);
  border-color: var(--linie-still);
  color: var(--text);
  box-shadow: var(--hebung-weich);
}
.btn-soft:hover {
  border-color: var(--linie);
  background: #fffefa;
}

.btn-rand {
  border-color: var(--linie-still);
  color: var(--text-2);
}
.btn-rand:hover {
  border-color: var(--linie);
  color: var(--text);
  background: var(--panel-tief);
}

.btn-danger,
.btn-warn {
  color: var(--magenta);
  border-color: rgba(178, 73, 47, 0.35);
}
.btn-danger {
  background: var(--magenta-weich);
}
.btn-danger:hover,
.btn-warn:hover {
  background: rgba(178, 73, 47, 0.18);
}

.btn-block {
  width: 100%;
}
.btn-klein {
  font-size: 12.5px;
  padding: 7px 13px;
}

.icon-btn {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: var(--r-pille);
  border: 1px solid var(--linie-still);
  background: var(--fuellung);
  color: var(--text-2);
  cursor: pointer;
  transition: color 0.16s, border-color 0.16s, background-color 0.16s;
}
.icon-btn:hover {
  color: var(--cyan);
  border-color: var(--linie);
  background: var(--panel-satt);
}
.icon-btn:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}
.icon-btn-akzent {
  color: var(--cyan);
  border-color: rgba(30, 114, 104, 0.3);
  background: var(--cyan-weich);
}

.stack {
  display: grid;
  gap: 9px;
}
.reihe {
  display: flex;
  align-items: center;
  gap: 10px;
}
.reihe-verteilt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* Der Haken: ein Kästchen, das man trifft, ohne hinzusehen. */
.haken {
  -webkit-appearance: none;
  appearance: none;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  margin-top: 1px;
  border-radius: var(--r-klein);
  border: 1.5px solid var(--linie);
  background: var(--fuellung);
  color: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.16s, border-color 0.16s, color 0.16s;
}
.haken:hover {
  border-color: var(--gruen);
}
.haken.an {
  background: var(--gruen);
  border-color: var(--gruen);
  color: #fdfaf4;
}
.haken:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Marken und Pillen
   -------------------------------------------------------------------------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--schrift-text);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 3px 9px;
  border-radius: var(--r-pille);
  border: 1px solid var(--linie-still);
  color: var(--muted);
  white-space: nowrap;
}
.pill-cyan {
  color: var(--cyan);
  border-color: rgba(30, 114, 104, 0.32);
  background: var(--cyan-weich);
}
.pill-gruen {
  color: var(--gruen);
  border-color: rgba(79, 122, 66, 0.32);
  background: var(--gruen-weich);
}
.pill-amber {
  color: var(--amber);
  border-color: rgba(168, 112, 26, 0.32);
  background: var(--amber-weich);
}
.pill-magenta {
  color: var(--magenta);
  border-color: rgba(178, 73, 47, 0.32);
  background: var(--magenta-weich);
}

/* --------------------------------------------------------------------------
   Kennzahlen
   -------------------------------------------------------------------------- */
/* Umbrechendes Flex statt Raster: Bei vier oder fünf Kacheln bliebe im Raster
   die letzte allein in ihrer Zeile stehen und sähe aus wie vergessen. So
   wächst die letzte Reihe auf die volle Breite - das wirkt gewollt. */
.kacheln {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.kacheln > .kachel {
  flex: 1 1 96px;
}
.kachel {
  border: 1px solid var(--linie-still);
  border-radius: var(--r-klein);
  background: var(--panel-satt);
  padding: 10px 11px;
  box-shadow: var(--hebung-weich);
}
.kachel-wert {
  font-family: var(--schrift-mono);
  font-variant-numeric: tabular-nums;
  font-size: 19px;
  line-height: 1.1;
  color: var(--text);
}
.kachel-label {
  font-family: var(--schrift-text);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
}
.kachel-zusatz {
  font-size: 11.5px;
  color: var(--schwach);
  margin-top: 2px;
}

/* Der Fortschrittsring */
.ring {
  position: relative;
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
}
.ring-bahn {
  fill: none;
  stroke: var(--senke);
  stroke-width: 5;
}
.ring-fuellung {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 5;
  stroke-linecap: round;
  transition: stroke-dasharray 0.4s ease;
}
.ring-wert {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 14px;
  color: var(--text);
}

/* --------------------------------------------------------------------------
   Der Tageswechsler
   -------------------------------------------------------------------------- */
.wechsler {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.wechsler-mitte {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  background: var(--panel-satt);
  border: 1px solid var(--linie-still);
  border-radius: var(--r-pille);
  padding: 8px 16px;
  color: var(--text);
  font-family: var(--schrift-text);
  cursor: pointer;
  display: grid;
  gap: 1px;
  box-shadow: var(--hebung-weich);
  transition: border-color 0.16s, box-shadow 0.16s;
}
.wechsler-mitte:hover {
  border-color: var(--linie);
  box-shadow: var(--hebung);
}
.wechsler-titel {
  font-family: var(--schrift-titel);
  font-weight: 600;
  font-size: 15px;
}
.wechsler-hinweis {
  font-family: var(--schrift-text);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Primärziel-Slots

   Drei Plätze, die auch leer sichtbar sind. Das ist der Punkt: Ein leerer Slot
   ist eine Frage ("was noch?"), eine leere Liste ist nur leer.
   -------------------------------------------------------------------------- */
.slots {
  display: grid;
  gap: 8px;
}
.slot {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  border: 1px solid var(--linie-still);
  border-left: 3px solid var(--cyan);
  border-radius: var(--r-klein);
  background: var(--panel-satt);
  padding: 11px 13px;
  box-shadow: var(--hebung-weich);
}
.slot.erledigt {
  border-left-color: var(--gruen);
  background: var(--panel-tief);
  box-shadow: none;
}
.slot.erledigt .slot-titel {
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-color: rgba(79, 122, 66, 0.6);
}
.slot-titel {
  font-size: 14.5px;
  line-height: 1.35;
}
.slot-nr {
  font-family: var(--schrift-mono);
  font-size: 10.5px;
  color: var(--schwach);
  letter-spacing: 0.06em;
  margin-top: 3px;
}
.slot-leer {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  text-align: left;
  border: 1px dashed var(--linie);
  border-radius: var(--r-klein);
  background: transparent;
  color: var(--muted);
  font-family: var(--schrift-text);
  font-size: 13.5px;
  padding: 12px 13px;
  cursor: pointer;
  transition: border-color 0.16s, color 0.16s, background-color 0.16s;
}
.slot-leer:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: var(--cyan-weich);
}

/* --------------------------------------------------------------------------
   Zeitblöcke als Liste (Heute)
   -------------------------------------------------------------------------- */
.block {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  border: 1px solid var(--linie-still);
  border-radius: var(--r-klein);
  background: var(--panel-satt);
  padding: 11px 13px;
  margin-bottom: 8px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--hebung-weich);
}
/* Der farbige Streifen links ist die Kategorie. Er ist die einzige Stelle, an
   der die Kategoriefarbe erscheint - damit bleibt sie lesbar. */
.block::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--kat, var(--cyan));
}
.block.jetzt {
  border-color: rgba(30, 114, 104, 0.35);
  background: linear-gradient(90deg, var(--cyan-weich), var(--panel-satt) 55%);
}
.block.vorbei:not(.erledigt) .block-titel {
  color: var(--text-2);
}
.block.erledigt {
  background: var(--panel-tief);
  box-shadow: none;
}
.block.erledigt .block-titel {
  color: var(--muted);
  text-decoration: line-through;
}
.block-zeit {
  font-family: var(--schrift-mono);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  color: var(--text-2);
  min-width: 82px;
  padding-top: 3px;
}
.block-titel {
  font-size: 14.5px;
  line-height: 1.35;
}
.block-unten {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  margin-top: 5px;
  font-size: 11.5px;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Das Tagesraster (Plan)

   Links die Stundenachse, rechts die Blöcke - beide auf derselben Skala. Die
   Höhe einer Minute steht als Variable im Element, damit die Positionen aus
   dem Javascript kommen können, ohne dass dort Farben oder Abstände auftauchen.
   -------------------------------------------------------------------------- */
.raster {
  position: relative;
  border: 1px solid var(--linie-still);
  border-radius: var(--r);
  background: var(--panel-satt);
  padding: 0 10px 0 46px;
  overflow: hidden;
  box-shadow: var(--hebung-weich);
}
.raster-stunde {
  position: absolute;
  left: 0;
  right: 0;
  border-top: 1px solid var(--linie-still);
  pointer-events: none;
}
.raster-stunde span {
  position: absolute;
  left: 6px;
  top: -8px;
  font-family: var(--schrift-mono);
  font-size: 9.5px;
  color: var(--schwach);
}
/* Die oberste Stundenzahl säße sonst halb über dem Panelrand und würde
   abgeschnitten - sie rutscht deshalb unter ihre Linie statt darüber. */
.raster-stunde.erste span {
  top: 2px;
  background: var(--panel-satt);
  padding: 0 2px;
}
.raster-spalten {
  position: relative;
  height: 100%;
}

.raster-block {
  position: absolute;
  left: 0;
  right: 0;
  border-radius: var(--r-klein);
  border: 1px solid color-mix(in srgb, var(--kat, var(--cyan)) 32%, transparent);
  background: color-mix(in srgb, var(--kat, var(--cyan)) 11%, #fffdf8);
  border-left: 4px solid var(--kat, var(--cyan));
  padding: 4px 8px;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  font-family: var(--schrift-text);
  color: var(--text);
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.16s, box-shadow 0.16s;
}
.raster-block:hover {
  border-color: var(--kat, var(--cyan));
  box-shadow: var(--hebung-weich);
}
.raster-block.erledigt {
  opacity: 0.6;
}
.raster-block.erledigt .raster-titel {
  text-decoration: line-through;
}
.raster-titel {
  font-size: 12.5px;
  line-height: 1.25;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.raster-zeit {
  font-family: var(--schrift-mono);
  font-size: 9.5px;
  color: var(--text-2);
  letter-spacing: 0.02em;
}

/* Google-Termine liegen in einer eigenen, schraffierten Spur: Sie sind gesetzt
   und nicht verschiebbar - das muss man sehen, ohne es zu lesen. */
.raster-termin {
  position: absolute;
  border-radius: var(--r-klein);
  border: 1px dashed rgba(122, 94, 149, 0.5);
  background-color: rgba(122, 94, 149, 0.08);
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(122, 94, 149, 0.13) 0 5px,
    transparent 5px 10px
  );
  padding: 3px 7px;
  overflow: hidden;
  pointer-events: none;
}
.raster-termin .raster-titel {
  font-size: 11.5px;
  color: #5b4473;
}

/* Die Jetzt-Marke: die einzige Linie, die sich bewegt (einmal pro Minute) und
   der einzige Ort, an dem etwas atmet. Terrakotta, weil sie als Einzige den
   ganzen Plan durchschneidet - Meer würde sich mit den Blöcken verwechseln. */
.jetzt-linie {
  position: absolute;
  left: 0;
  right: 0;
  height: 0;
  border-top: 1.5px solid var(--magenta);
  z-index: 3;
  pointer-events: none;
  animation: atmen 3.6s ease-in-out infinite;
}
.jetzt-linie::before {
  content: "";
  position: absolute;
  left: 0;
  top: -4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--magenta);
}
@keyframes atmen {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}

/* --------------------------------------------------------------------------
   Termine (Liste in Heute)
   -------------------------------------------------------------------------- */
.termin {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  border-left: 2px dashed rgba(122, 94, 149, 0.55);
  padding: 7px 0 7px 12px;
  margin-bottom: 6px;
}
.termin-zeit {
  font-family: var(--schrift-mono);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  color: #6b5285;
  min-width: 82px;
}

/* --------------------------------------------------------------------------
   Aufgaben

   Der Bereich (privat/beruflich) ist ein Umschalter über der Liste, die
   Kategorie ein farbiges Etikett an der Zeile. Zwei Einteilungen, zwei
   Darstellungen – sonst verwechselt man sie.
   -------------------------------------------------------------------------- */
.wahl-bereich {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 16px;
}
.wahl-bereich button {
  text-align: center;
  padding: 9px 4px;
}
.wahl-bereich .tnum {
  color: var(--muted);
  margin-left: 4px;
}
.wahl-bereich button.aktiv .tnum {
  color: inherit;
  opacity: 0.8;
}

/* Das Etikett einer Kategorie. Die Farbe kommt aus --f, das die Ansicht
   setzt - so bleibt das Stylesheet die einzige Stelle, die Töne kennt. */
.kat-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  padding: 2px 9px;
  border-radius: var(--r-pille);
  color: var(--f, var(--cyan));
  border: 1px solid color-mix(in srgb, var(--f, var(--cyan)) 35%, transparent);
  background: color-mix(in srgb, var(--f, var(--cyan)) 10%, transparent);
  white-space: nowrap;
}

/* Privat und beruflich: zwei Marken, die man nicht lesen muss, um sie zu
   unterscheiden. Beruflich kühl, privat warm. */
.pill-privat {
  color: var(--f-koralle);
  border-color: rgba(194, 102, 63, 0.35);
  background: rgba(194, 102, 63, 0.1);
}
.pill-beruflich {
  color: var(--f-blau);
  border-color: rgba(63, 110, 150, 0.35);
  background: rgba(63, 110, 150, 0.1);
}

.farb-punkt {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex: 0 0 auto;
  margin-top: 6px;
  background: var(--f, var(--cyan));
}

.farb-wahl {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.farb-wahl button {
  -webkit-appearance: none;
  appearance: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid transparent;
  background: var(--f);
  opacity: 0.5;
  cursor: pointer;
  transition: opacity 0.16s, box-shadow 0.16s, transform 0.16s;
}
.farb-wahl button:hover {
  opacity: 0.85;
}
.farb-wahl button.aktiv {
  opacity: 1;
  transform: scale(1.05);
  box-shadow: 0 0 0 2px var(--grund), 0 0 0 3.5px var(--f);
}

/* Ein Knopf, der wie Text aussieht - für "ausblenden" und Ähnliches. */
.btn-nackt {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: var(--schrift-text);
}
.btn-nackt:hover {
  color: var(--text-2);
}

/* --------------------------------------------------------------------------
   Balken (Wochenbilanz)
   -------------------------------------------------------------------------- */
.woche {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  align-items: end;
}
.woche-tag {
  display: grid;
  gap: 5px;
  justify-items: center;
}
.balken {
  width: 100%;
  height: 76px;
  border-radius: var(--r-klein);
  border: 1px solid var(--linie-still);
  background: var(--senke);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.balken-fuellung {
  width: 100%;
  background: linear-gradient(180deg, #2a8478, var(--cyan-tief));
  border-radius: var(--r-klein) var(--r-klein) 0 0;
  transition: height 0.35s ease;
}
.balken-fuellung.gruen {
  background: linear-gradient(180deg, #639450, #39572f);
}
.balken-fuellung.amber {
  background: linear-gradient(180deg, #c08726, #7d5214);
}
.woche-label {
  font-family: var(--schrift-text);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.woche-label.heute {
  color: var(--cyan);
}
.woche-wert {
  font-family: var(--schrift-mono);
  font-variant-numeric: tabular-nums;
  font-size: 10.5px;
  color: var(--text-2);
}

/* Die Zeitverteilung als ein durchgehender Streifen */
.verteilung {
  display: flex;
  height: 12px;
  border-radius: var(--r-pille);
  overflow: hidden;
  border: 1px solid var(--linie-still);
  background: var(--senke);
}
.verteilung-teil {
  height: 100%;
}
.legende {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 10px;
}
.legende-punkt {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--text-2);
}
.legende-punkt i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

/* --------------------------------------------------------------------------
   Der Fokus-Timer
   -------------------------------------------------------------------------- */
.timer {
  display: grid;
  place-items: center;
  gap: 5px;
  padding: 18px 0 14px;
}
.timer-zeit {
  font-family: var(--schrift-mono);
  font-variant-numeric: tabular-nums;
  font-size: 54px;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--text);
}
.timer.laeuft .timer-zeit {
  color: var(--cyan);
  animation: puls 2.4s ease-in-out infinite;
}
.timer.pause .timer-zeit {
  color: var(--amber);
}
@keyframes puls {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.68;
  }
}
.timer-thema {
  font-family: var(--schrift-text);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Formularfelder
   -------------------------------------------------------------------------- */
.feld {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}
.feld label {
  font-family: var(--schrift-text);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
}
.feld-zeile {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="time"],
input[type="number"],
input[type="date"],
select,
textarea {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  font-family: var(--schrift-text);
  font-size: 15px;
  color: var(--text);
  background: var(--panel-satt);
  border: 1px solid var(--linie);
  border-radius: var(--r-klein);
  padding: 11px 13px;
  transition: border-color 0.16s, box-shadow 0.16s;
}
input[type="time"],
input[type="number"] {
  font-family: var(--schrift-mono);
  font-variant-numeric: tabular-nums;
}
textarea {
  resize: vertical;
  line-height: 1.5;
}
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px var(--cyan-weich);
}
input::placeholder,
textarea::placeholder {
  color: var(--schwach);
}
select {
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 32px;
}
/* Auf hellem Grund ist das Uhr-Symbol schon dunkel - es braucht nur etwas
   Zurückhaltung, keinen Farbfilter. */
input[type="time"]::-webkit-calendar-picker-indicator,
input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0.45;
  cursor: pointer;
}
input[type="time"]::-webkit-calendar-picker-indicator:hover,
input[type="date"]::-webkit-calendar-picker-indicator:hover {
  opacity: 0.8;
}

/* Segmentierte Auswahl */
.wahl {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.wahl button {
  -webkit-appearance: none;
  appearance: none;
  font-family: var(--schrift-text);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 13px;
  border-radius: var(--r-pille);
  border: 1px solid var(--linie-still);
  background: var(--fuellung);
  color: var(--text-2);
  cursor: pointer;
  transition: border-color 0.16s, color 0.16s, background-color 0.16s;
}
.wahl button:hover {
  color: var(--text);
  border-color: var(--linie);
  background: var(--panel-satt);
}
.wahl button.aktiv {
  color: #fdfaf4;
  border-color: transparent;
  background: var(--cyan);
  font-weight: 600;
}

/* Eine Wahl, die gerade nicht möglich ist - etwa zwei Stunden um 23:00, die
   nicht mehr in den Tag passen. Sie bleibt stehen statt zu verschwinden:
   Verschwindende Knöpfe lassen einen suchen, ausgegraute erklären sich. */
.wahl button:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}
.wahl button:disabled:hover {
  color: var(--text-2);
  border-color: var(--linie-still);
  background: var(--fuellung);
}

/* Die Kategorie-Auswahl trägt die Farbe der Kategorie, sobald sie aktiv ist -
   damit sieht man im Formular schon, wie der Block im Plan aussehen wird. */
.wahl-kat button.aktiv {
  color: #fdfaf4;
}
.wahl-kat button.kat-arbeit.aktiv {
  background: var(--kat-arbeit);
}
.wahl-kat button.kat-kopf.aktiv {
  background: var(--kat-kopf);
}
.wahl-kat button.kat-koerper.aktiv {
  background: var(--kat-koerper);
}
.wahl-kat button.kat-haushalt.aktiv {
  background: var(--kat-haushalt);
}
.wahl-kat button.kat-menschen.aktiv {
  background: var(--kat-menschen);
}
.wahl-kat button.kat-ruhe.aktiv {
  background: var(--kat-ruhe);
}

/* --------------------------------------------------------------------------
   Listen und Zeilen
   -------------------------------------------------------------------------- */
.zeile {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 11px 0;
  border-bottom: 1px solid var(--linie-still);
}
.zeile:last-child {
  border-bottom: 0;
}
.zeile-titel {
  display: block;
  font-size: 14.5px;
  line-height: 1.35;
}
.zeile-unten {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 4px;
  font-size: 11.5px;
  color: var(--muted);
}
.erledigt-text {
  text-decoration: line-through;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Die Erfassungskarte auf Heute

   Sie ist die erste Karte der Seite und darf das zeigen: sattes Papier, ein
   großer Betrag, Reiter über die ganze Breite. Alles Übrige borgt sie sich von
   den Formularen - .feld, .wahl, .btn -, damit sie nicht wie ein Fremdkörper
   zwischen den anderen Karten steht.
   -------------------------------------------------------------------------- */
.erfassen {
  padding: 16px 16px 14px;
}

/* Zwei gleich große Hälften über die ganze Breite. Das Symbol daneben braucht
   Flex: .wahl button ist von Haus aus keine Flexbox. */
.erfassen-reiter {
  margin-bottom: 13px;
}
.erfassen-reiter button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 13px;
  font-size: 13.5px;
}

/* Der Betrag ist das Feld, in das zuerst getippt wird - also größer als jedes
   andere. Das Euro-Zeichen steht fest am rechten Rand und nicht im
   Platzhalter: Ein Platzhalter verschwindet beim ersten Zeichen, und dann ist
   nicht mehr zu sehen, in welcher Einheit man tippt. */
.erfassen-betrag {
  position: relative;
}
.erfassen-betrag input {
  font-family: var(--schrift-mono);
  font-variant-numeric: tabular-nums;
  font-size: 23px;
  font-weight: 500;
  padding: 11px 40px 11px 13px;
}
.erfassen-betrag span {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 17px;
  color: var(--schwach);
  pointer-events: none;
}

/* Die Vorschläge in einer Reihe, die seitlich wegläuft statt umzubrechen:
   Sechs Gewohnheiten als umbrechende Knöpfe wären drei Zeilen über dem
   Betragsfeld - und das Feld rutschte aus dem Bild. */
.erfassen-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  /* Luft für den Schatten der Knöpfe, sonst wirkt die Reihe beschnitten. */
  padding: 2px 1px 4px;
  scroll-snap-type: x proximity;
}
.erfassen-chips button {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

/* Was gerade eingetragen wurde. Eine Bestätigung, keine Meldung: derselbe
   grüne Haken wie überall, kein farbiger Kasten. Der Haken ist hier ein
   Zeichen und kein Knopf - also auch kein Zeiger darüber. */
.frisch {
  align-items: center;
  padding: 10px 0 0;
  border-bottom: 0;
}
.frisch .haken {
  cursor: default;
}
.frisch .btn-nackt {
  color: var(--muted);
  font-size: 12px;
}
.frisch .btn-nackt:hover {
  color: var(--cyan);
}

/* Der Tagesstatus am Seitenende: ein Balken statt vier Kacheln. */
.fortschritt {
  height: 7px;
  border-radius: var(--r-pille);
  border: 1px solid var(--linie-still);
  background: var(--senke);
  overflow: hidden;
}
.fortschritt i {
  display: block;
  height: 100%;
  border-radius: var(--r-pille);
  background: linear-gradient(90deg, #2a8478, var(--cyan));
  transition: width 0.35s ease;
}

/* --------------------------------------------------------------------------
   Meldungen
   -------------------------------------------------------------------------- */
.alert {
  border-radius: var(--r-klein);
  border: 1px solid var(--linie-still);
  padding: 11px 13px;
  font-size: 13.5px;
  margin-bottom: 12px;
}
.alert-ok {
  border-color: rgba(79, 122, 66, 0.32);
  background: var(--gruen-weich);
  color: #33512a;
}
.alert-error {
  border-color: rgba(178, 73, 47, 0.35);
  background: var(--magenta-weich);
  color: #7d3220;
}
.alert-info {
  border-color: rgba(30, 114, 104, 0.3);
  background: var(--cyan-weich);
  color: #164f48;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--nav-h) + 12px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 60;
  max-width: calc(100vw - 32px);
  background: var(--panel-satt);
  border: 1px solid var(--linie-still);
  border-left: 3px solid var(--cyan);
  border-radius: var(--r-klein);
  padding: 11px 15px;
  font-size: 13.5px;
  color: var(--text);
  box-shadow: var(--hebung-tief);
  animation: toast-auf 0.18s ease-out;
}
@keyframes toast-auf {
  from {
    opacity: 0;
    transform: translate(-50%, 8px);
  }
}

/* --------------------------------------------------------------------------
   Das Blatt von unten
   -------------------------------------------------------------------------- */
.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(59, 51, 40, 0.3);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: blenden 0.16s ease-out;
}
.sheet {
  width: 100%;
  max-width: var(--spalte);
  max-height: 88vh;
  overflow-y: auto;
  background: var(--panel-satt);
  border: 1px solid var(--linie-still);
  border-bottom: 0;
  border-radius: var(--r-gross) var(--r-gross) 0 0;
  padding: 16px 18px calc(22px + env(safe-area-inset-bottom));
  box-shadow: var(--hebung-tief);
  animation: sheet-auf 0.2s ease-out;
}
/* Der Griff oben ist zugleich die einzige Zierde der App. */
.sheet::before {
  content: "";
  display: block;
  width: 42px;
  height: 4px;
  border-radius: var(--r-pille);
  background: var(--linie);
  margin: 0 auto 14px;
}
@keyframes sheet-auf {
  from {
    transform: translateY(14px);
  }
}
@keyframes blenden {
  from {
    opacity: 0;
  }
}

@media (min-width: 620px) {
  .sheet-backdrop {
    align-items: center;
  }
  .sheet {
    border-radius: var(--r-gross);
    border-bottom: 1px solid var(--linie-still);
    max-width: 500px;
  }
}

/* --------------------------------------------------------------------------
   Die Leiste unten
   -------------------------------------------------------------------------- */
.bottom-nav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(14px + env(safe-area-inset-bottom));
  z-index: 50;
  width: calc(100% - 28px);
  max-width: 460px;
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  align-items: center;
  gap: 2px;
  padding: 8px 9px;
  background: rgba(255, 253, 248, 0.88);
  border: 1px solid var(--linie-still);
  border-radius: var(--r-gross);
  backdrop-filter: blur(14px);
  box-shadow: var(--hebung-tief);
}
.nav-item {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  border: 0;
  border-radius: var(--r-klein);
  padding: 7px 2px 5px;
  display: grid;
  justify-items: center;
  gap: 3px;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.16s, background-color 0.16s;
}
.nav-item:hover {
  color: var(--text-2);
}
.nav-item.active {
  color: var(--cyan);
  background: var(--cyan-weich);
}
.nav-label {
  font-family: var(--schrift-text);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.nav-icon {
  display: grid;
  place-items: center;
  height: 20px;
}
.nav-add {
  -webkit-appearance: none;
  appearance: none;
  width: 42px;
  height: 42px;
  margin-left: 6px;
  border-radius: 50%;
  border: 0;
  background: linear-gradient(180deg, #2a8478, var(--cyan));
  color: #fdfaf4;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--hebung);
  transition: background 0.16s, box-shadow 0.16s, transform 0.16s;
}
.nav-add:hover {
  background: linear-gradient(180deg, #2f9284, #1b685f);
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   Anmeldung - die einzige Seite ohne Leiste
   -------------------------------------------------------------------------- */
.anmelden {
  min-height: 100vh;
  display: grid;
  align-content: center;
  gap: 18px;
  max-width: 400px;
  margin: 0 auto;
  padding: 40px 20px calc(40px + env(safe-area-inset-bottom));
}
.marke {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.marke-name {
  font-family: var(--schrift-titel);
  font-weight: 600;
  font-size: 34px;
  letter-spacing: 0.08em;
  text-indent: 0.08em;
  color: var(--text);
}
.marke-zeile {
  font-family: var(--schrift-text);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
}

/* --------------------------------------------------------------------------
   Laden
   -------------------------------------------------------------------------- */
.spinner {
  width: 26px;
  height: 26px;
  margin: 60px auto;
  border-radius: 50%;
  border: 2px solid var(--linie-still);
  border-top-color: var(--cyan);
  animation: dreh 0.8s linear infinite;
}
@keyframes dreh {
  to {
    transform: rotate(360deg);
  }
}

/* --------------------------------------------------------------------------
   Wer Bewegung abgeschaltet hat, bekommt keine.
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ==========================================================================
   Die Leiste des laufenden Fokus

   Sitzt ganz oben und ist nur da, wenn eine Sitzung laeuft. Die Hoehe ist
   bewusst klein: Sie soll an die Sitzung erinnern, nicht die Seite
   verdraengen, auf der man gerade arbeitet.
   ========================================================================== */
.fokusleiste {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 4px;
  /* Oben der Zuschlag fuer die Statusleiste des Handys: Ohne ihn laege die
     Leiste im Vollbildmodus unter der Uhr des Systems. */
  padding: calc(6px + env(safe-area-inset-top)) 10px 6px;
  background: var(--cyan);
  color: #fdfaf4;
  box-shadow: var(--hebung-tief);
}
.fokusleiste.pause {
  background: var(--gruen);
}

/* Der ganze Textbereich ist der Weg zur Fokus-Seite - ein kleiner Pfeil am
   Rand waere auf einem Handy nicht zu treffen. */
.fokusleiste-text {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 0;
  padding: 5px 6px;
  color: inherit;
  font: inherit;
  font-size: 13.5px;
  text-align: left;
  cursor: pointer;
}
.fokusleiste-punkt {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  animation: fokus-puls 2s ease-in-out infinite;
}
.fokusleiste-was {
  flex: none;
  font-weight: 600;
  letter-spacing: 0.01em;
}
/* Das Thema gibt als einziges nach, wenn der Platz eng wird: Ob etwas
   laeuft und wie lange noch, muss immer lesbar bleiben. */
.fokusleiste-thema {
  flex: 1;
  min-width: 0;
  opacity: 0.85;
}
.fokusleiste-rest {
  flex: none;
  margin-left: auto;
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
/* Zeit um, aber noch nicht eingetragen - der einzige Zustand, in dem die
   Leiste um Aufmerksamkeit bittet. */
.fokusleiste.vorbei {
  background: var(--amber);
}
.fokusleiste.vorbei .fokusleiste-punkt {
  animation: none;
}

.fokusleiste-stop {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(253, 250, 244, 0.35);
  background: rgba(253, 250, 244, 0.12);
  color: inherit;
  cursor: pointer;
}
.fokusleiste-stop:hover {
  background: rgba(253, 250, 244, 0.22);
}

@keyframes fokus-puls {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
@media (prefers-reduced-motion: reduce) {
  .fokusleiste-punkt { animation: none; }
}

/* Die Seite rueckt nach, solange die Leiste steht - sonst verschwaende ihr
   oberster Rand darunter. */
body.hat-fokusleiste .page {
  padding-top: calc(22px + 46px + env(safe-area-inset-top));
}
@media (min-width: 620px) {
  body.hat-fokusleiste .page {
    padding-top: calc(36px + 46px + env(safe-area-inset-top));
  }
}

/* ==========================================================================
   Der Reiseplaner

   Die App ist ohnehin ein Reisetagebuch - hier wird sie für einen Bereich
   wörtlich genommen: Der Kopf einer Reise ist ein Ticket mit Abrisskante und
   Stempel, der Kalender eine Doppelseite mit aufgeklebten Tagen, die Route
   eine gestrichelte Linie von Ort zu Ort.

   Die drei Regeln von oben gelten unverändert. Besonders die erste: Hier gibt
   es Sonne und Meer, aber als warmes Licht auf Papier - kein einziger
   farbiger Schein.
   ========================================================================== */

:root {
  /* Die sechs Arten eines Programmpunkts.
     Alle aus der bestehenden Palette, damit der Planer kein Fremdkörper ist:
     Meerblau für alles, was Bewegung ist, Abendviolett für die Bleibe, Honig
     für Städte und Tempel, Olive für Natur, Meergrün für den Strand,
     Gewürzrot für das Essen. */
  --reise-weg: #3f6e96;
  --reise-bleibe: #7a5e95;
  --reise-entdecken: #a8701a;
  --reise-natur: #4f7a42;
  --reise-strand: #1e7268;
  --reise-essen: #c2663f;

  /* Der Ton der Reise selbst - Sonne über Wasser. */
  --reise-sonne: #e9b25f;
  --reise-horizont: #2a8478;
  --reise-tinte: rgba(141, 118, 90, 0.42);
}

/* --------------------------------------------------------------------------
   Der Kopf: ein Ticket

   Die Abrisskante ist der obere Rand des Abrisses (.ticket-abriss), und die
   beiden Kerben hängen als Kinder darin. Ein fester Abstand von unten wäre
   die naheliegende Lösung und war die erste: Sobald der Kopf eine Zeile mehr
   trägt - eine Notiz etwa -, läuft die Kante dann mitten durch den Text.
   -------------------------------------------------------------------------- */
.ticket {
  position: relative;
  border-radius: var(--r-gross);
  border: 1px solid var(--linie-still);
  background:
    radial-gradient(520px 210px at 84% -45%, rgba(233, 178, 95, 0.5), transparent 70%),
    radial-gradient(430px 230px at 8% 135%, rgba(42, 132, 120, 0.2), transparent 70%),
    linear-gradient(170deg, #fffdf8, #f7efe2);
  box-shadow: var(--hebung);
  padding: 18px 18px 16px;
  margin-bottom: 14px;
}

/* Die Kerben. Zwei Kreise in der Grundfarbe der Seite, die auf dem Rand des
   Tickets sitzen: 19px Polsterung und Rahmen nach links, plus der halbe
   Durchmesser. */
.ticket-kerbe {
  position: absolute;
  top: -11px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--grund);
  border: 1px solid var(--linie-still);
}
.ticket-kerbe.links {
  left: -29px;
}
.ticket-kerbe.rechts {
  right: -29px;
}

.ticket-oben {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.ticket-ziel {
  font-family: var(--schrift-titel);
  font-size: 27px;
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 2px 0 0;
}

.ticket-spanne {
  font-family: var(--schrift-mono);
  font-size: 12.5px;
  color: var(--text-2);
  margin-top: 7px;
  letter-spacing: 0.02em;
}

.ticket-notiz {
  font-size: 12.5px;
  color: var(--muted);
  margin: 10px 0 0;
}

/* Der Stempel. Leicht gedreht, mit doppeltem Rand - wie in einen Pass
   gedrückt. Die Drehung ist klein: Mehr sieht nach Aufkleber aus. */
.stempel {
  flex: 0 0 auto;
  transform: rotate(-7deg);
  border: 2px solid var(--reise-horizont);
  border-radius: 10px;
  padding: 6px 10px 5px;
  text-align: center;
  color: var(--reise-horizont);
  opacity: 0.85;
  box-shadow: inset 0 0 0 1px rgba(42, 132, 120, 0.32);
}
.stempel-zahl {
  font-family: var(--schrift-mono);
  font-size: 19px;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stempel-text {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  margin-top: 3px;
}
.stempel.laeuft {
  border-color: var(--magenta);
  color: var(--magenta);
  box-shadow: inset 0 0 0 1px rgba(178, 73, 47, 0.3);
}
.stempel.vorbei {
  border-color: var(--schwach);
  color: var(--schwach);
  box-shadow: inset 0 0 0 1px rgba(161, 144, 122, 0.3);
}

/* Der Abriss unten: die vier Zahlen, die beim Planen zählen. Sein oberer
   Rand IST die Abrisskante. */
.ticket-abriss {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 18px;
  padding-top: 17px;
  border-top: 1.5px dashed var(--reise-tinte);
}
.ticket-feld {
  text-align: center;
  min-width: 0;
}
.ticket-feld-wert {
  font-family: var(--schrift-mono);
  font-size: 17px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  color: var(--text);
}
.ticket-feld-wert.warn {
  color: var(--magenta);
}
.ticket-feld-wert.gut {
  color: var(--gruen);
}
.ticket-feld-label {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--schwach);
  margin-top: 5px;
  line-height: 1.25;
}

/* --------------------------------------------------------------------------
   Die Kalenderübersicht

   Ein Monat je Block, Montag zuerst. Tage außerhalb der Reise sind blass und
   ohne Karte - sie sind da, damit die Wochen stimmen, nicht zum Anfassen.

   Jeder Reisetag ist eine kleine Karte: Monatstag oben links, Reisetag oben
   rechts, die Arten des Tages als Punkte unten, und ganz unten das Band der
   Unterkunft. Gelesen wird in dieser Reihenfolge, und meistens nur bis zu den
   Punkten.
   -------------------------------------------------------------------------- */
.kalender-monat {
  margin-bottom: 18px;
}
.kalender-monat:last-child {
  margin-bottom: 0;
}
.kalender-titel {
  font-family: var(--schrift-titel);
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 9px 2px;
}
.kalender-kopf,
.kalender-raster {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.kalender-kopf {
  margin-bottom: 5px;
}
.kalender-kopf span {
  text-align: center;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--schwach);
}

.kalender-zelle {
  aspect-ratio: 1;
  min-height: 42px;
  border-radius: var(--r-klein);
  position: relative;
  padding: 4px 4px 3px;
  display: flex;
  flex-direction: column;
  font-size: 13px;
}

/* Ein Tag, der nicht zur Reise gehört. */
.kalender-zelle.aussen {
  display: block;
  text-align: center;
  padding-top: 6px;
  font-size: 12px;
  color: var(--schwach);
  opacity: 0.45;
}

/* Ein Reisetag. */
.kalender-tag {
  -webkit-appearance: none;
  appearance: none;
  border: 1px solid var(--linie-still);
  background: var(--panel-satt);
  box-shadow: var(--hebung-weich);
  color: var(--text);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: transform 0.14s, box-shadow 0.14s, border-color 0.14s;
}
.kalender-tag:hover {
  transform: translateY(-1px);
  box-shadow: var(--hebung);
  border-color: var(--linie);
}
.kalender-tag:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.kalender-zahl {
  font-family: var(--schrift-mono);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  /* Platz für das Tagesabzeichen rechts oben - sonst schiebt sich eine
     zweistellige Zahl darunter. */
  padding-right: 14px;
}

/* Der Monatswechsel: eine eigene kleine Zeile unter der Zahl, nicht daneben.
   Nebeneinander stößt "1. Mär" gegen das Tagesabzeichen, und auf einem Handy
   ist dafür kein Platz. */
.kalender-monatsmarke {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.1;
  margin-top: 2px;
  color: var(--reise-horizont);
}
.kalender-nr {
  position: absolute;
  top: 4px;
  right: 5px;
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--schwach);
}

/* Der erste und der letzte Tag tragen die Reise an ihren Enden - ein
   schmaler Streifen am Rand, kein zweites Symbol. */
.kalender-tag.anfang {
  border-left: 3px solid var(--reise-horizont);
}
.kalender-tag.ende {
  border-right: 3px solid var(--magenta);
}

/* Heute. Ein Ring, wie überall in der App. */
.kalender-tag.heute {
  border-color: var(--cyan);
  box-shadow: inset 0 0 0 1px var(--cyan), var(--hebung-weich);
}
.kalender-tag.heute .kalender-zahl {
  color: var(--cyan);
}

/* Ein Tag, der schon vorbei ist. */
.kalender-tag.vergangen {
  opacity: 0.5;
}

.kalender-punkte {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2.5px;
  padding-bottom: 2px;
}
.kalender-punkt {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--f, var(--muted));
}
.kalender-mehr {
  font-size: 7.5px;
  line-height: 1;
  color: var(--schwach);
}

/* Das Band der Unterkunft, ganz unten in der Zelle.
   Durchgezogen heißt: Hier ist etwas gebucht. Gestrichelt heißt: Diese Nacht
   ist noch offen - und das ist die Frage, die man sich Monate vorher stellt.
   Der letzte Reisetag bekommt gar kein Band; da fährt man heim. */
.kalender-band {
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 3px;
  height: 3px;
  border-radius: var(--r-pille);
  background: var(--reise-bleibe);
  opacity: 0.7;
}
.kalender-band.offen {
  background: none;
  height: 0;
  opacity: 1;
  border-top: 2px dashed var(--linie);
}

/* Die Legende unter dem Kalender. */
.kalender-legende {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--linie-still);
}
.kalender-legende span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  color: var(--muted);
}
.kalender-legende i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--f, var(--muted));
}

/* --------------------------------------------------------------------------
   Die Route: die Unterkünfte als Kette

   Eine gestrichelte Linie von Punkt zu Punkt - so sieht ein Reiseweg auf
   einer Karte aus, und so liest man ihn auch hier.
   -------------------------------------------------------------------------- */
.route {
  position: relative;
  padding-left: 22px;
}
.route::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 10px;
  bottom: 12px;
  border-left: 1.5px dashed var(--reise-tinte);
}
.route-halt {
  position: relative;
  padding: 0 0 15px;
}
.route-halt:last-child {
  padding-bottom: 0;
}
.route-halt::before {
  content: "";
  position: absolute;
  left: -22px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--panel-satt);
  border: 2px solid var(--reise-bleibe);
}
.route-halt.offen::before {
  border-color: var(--schwach);
  border-style: dashed;
}
.route-name {
  font-weight: 600;
  font-size: 14.5px;
  cursor: pointer;
}
.route-zeile {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}

/* Eine Lücke in der Kette - Nächte, für die noch nichts steht. */
.route-luecke {
  position: relative;
  padding: 0 0 15px;
  font-size: 12px;
  color: var(--schwach);
  font-style: italic;
}
.route-luecke::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--grund-2);
  border: 1.5px dashed var(--schwach);
}

/* --------------------------------------------------------------------------
   Der Tag einer Reise: die Programmpunkte

   Die Uhrzeit steht in einer festen Spalte links, auch wenn sie fehlt - sonst
   springen die Titel von Zeile zu Zeile.
   -------------------------------------------------------------------------- */
.punkt {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--linie-still);
  cursor: pointer;
}
.punkt:last-child {
  border-bottom: 0;
}
.punkt-zeit {
  font-family: var(--schrift-mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--text-2);
  padding-top: 2px;
}
.punkt-zeit.offen {
  color: var(--schwach);
}
.punkt-kopf {
  display: flex;
  align-items: baseline;
  gap: 7px;
}
.punkt-marke {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--f, var(--muted));
  transform: translateY(-1px);
}
.punkt-titel {
  font-weight: 600;
  font-size: 14.5px;
  line-height: 1.3;
}
.punkt.erledigt .punkt-titel {
  text-decoration: line-through;
  color: var(--schwach);
}
.punkt-unten {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  font-size: 12px;
  color: var(--muted);
  margin: 4px 0 0 14px;
}

/* Die Art als Etikett - in ihrer Farbe, aber leise. */
.art-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 2px 8px;
  border-radius: var(--r-pille);
  color: var(--f);
  background: color-mix(in srgb, var(--f) 13%, transparent);
}

/* Die Auswahl der Art im Blatt - sechs Knöpfe, die ihre Farbe annehmen,
   sobald sie gewählt sind. */
.wahl-art {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 14px;
}
.wahl-art button {
  -webkit-appearance: none;
  appearance: none;
  border: 1px solid var(--linie-still);
  background: var(--fuellung);
  border-radius: var(--r-klein);
  padding: 9px 4px 7px;
  display: grid;
  justify-items: center;
  gap: 4px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.14s, border-color 0.14s, background-color 0.14s;
}
.wahl-art button:hover {
  color: var(--text-2);
  border-color: var(--linie);
}
.wahl-art button.aktiv {
  color: var(--f);
  border-color: var(--f);
  background: color-mix(in srgb, var(--f) 10%, transparent);
}

/* --------------------------------------------------------------------------
   Packliste und Vorbereitung
   -------------------------------------------------------------------------- */
.pack-fach {
  margin-bottom: 14px;
}
.pack-fach:last-child {
  margin-bottom: 0;
}
.pack-zeile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--linie-still);
}
.pack-zeile:last-child {
  border-bottom: 0;
}
.pack-titel {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  cursor: pointer;
}
.pack-zeile.erledigt .pack-titel {
  text-decoration: line-through;
  color: var(--schwach);
}
.pack-anzahl {
  font-family: var(--schrift-mono);
  font-size: 11.5px;
  color: var(--schwach);
  font-variant-numeric: tabular-nums;
}

/* Die Fortschrittsleiste eines Fachs - dünn, direkt unter der Überschrift. */
.pack-balken {
  height: 3px;
  border-radius: var(--r-pille);
  background: var(--senke);
  overflow: hidden;
  margin: 7px 0 2px;
}
.pack-balken i {
  display: block;
  height: 100%;
  border-radius: var(--r-pille);
  background: var(--gruen);
  transition: width 0.3s;
}

/* --------------------------------------------------------------------------
   Die untere Leiste mit sechs Punkten

   Die Spaltenzahl kommt aus der App (--nav-punkte), damit ein weiterer
   Bereich die Leiste nicht in zwei Zeilen bricht - vorher standen dort vier
   feste Spalten, während die App längst fünf Punkte zeichnete.
   -------------------------------------------------------------------------- */
.bottom-nav {
  grid-template-columns: repeat(var(--nav-punkte, 5), minmax(0, 1fr)) auto;
}
.nav-item {
  min-width: 0;
}
.nav-label {
  white-space: nowrap;
}

@media (max-width: 430px) {
  /* Vier Zahlen auf einer Handybreite: Die Spalte ist dann rund siebzig
     Pixel breit, und ein vierstelliger Betrag passt nur kleiner hinein. */
  .ticket-feld-wert {
    font-size: 15px;
  }
  .ticket-feld-label {
    letter-spacing: 0.05em;
  }

  .bottom-nav {
    gap: 0;
    padding: 8px 6px;
  }
  .nav-label {
    font-size: 8px;
    letter-spacing: 0.02em;
  }
  .nav-add {
    width: 38px;
    height: 38px;
    margin-left: 4px;
  }
}

/* --------------------------------------------------------------------------
   Die Kategoriereihe der Schnellerfassung

   Eine Zeile zum Wischen, nicht ein umbrechender Block: Neun Kategorien
   untereinander wären drei Zeilen Höhe auf der ersten Seite, und die
   Erfassungskarte soll beim Aufklappen vollständig zu sehen sein. Welche
   zuerst kommt, entscheidet der Server nach Gebrauch - was man oft bucht,
   liegt ohne Wischen da.

   Der aktive Knopf ist meistens geraten und nicht gewählt. Er sieht trotzdem
   aus wie eine Wahl, denn genau das ist er: Was hier leuchtet, wird
   gespeichert. Ein eigener Ton für "nur geraten" würde die Frage aufwerfen,
   was dann eigentlich gilt.
   -------------------------------------------------------------------------- */
.kat-reihe {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  /* Luft unten für den Rand des aktiven Knopfes, sonst wirkt er beschnitten. */
  padding: 2px 1px 4px;
  scroll-snap-type: x proximity;
  /* Die Leiste selbst bleibt unsichtbar - sie würde die Karte zerschneiden,
     und dass die Reihe weitergeht, sagt schon der angeschnittene Knopf. */
  scrollbar-width: none;
}
.kat-reihe::-webkit-scrollbar {
  display: none;
}
.kat-reihe button {
  -webkit-appearance: none;
  appearance: none;
  flex: 0 0 auto;
  scroll-snap-align: start;
  font-family: var(--schrift-text);
  font-size: 12.5px;
  font-weight: 500;
  padding: 7px 12px;
  border-radius: var(--r-pille);
  border: 1px solid var(--linie-still);
  background: var(--fuellung);
  color: var(--text-2);
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.16s, color 0.16s, background-color 0.16s;
}
.kat-reihe button:hover {
  color: var(--text);
  border-color: var(--linie);
  background: var(--panel-satt);
}
.kat-reihe button.aktiv {
  color: #fdfaf4;
  border-color: transparent;
  background: var(--cyan);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Die Vorschau eines Kontoauszugs

   Eine lange Liste, die man überfliegt und nicht liest: Man sucht die eine
   Zeile, bei der die Kategorie danebenliegt, und hakt den Rest ab. Deshalb
   zwei Zeilen pro Eintrag statt einer breiten Tabelle – auf dem Handy wäre
   eine Tabelle mit vier Spalten ein Nebeneinander von Abkürzungen.

   Oben steht, was unveränderlich ist (Tag, Text, Betrag), unten das eine
   Feld, das man anfasst. So wandert das Auge beim Durchgehen nur über die
   untere Zeile.
   -------------------------------------------------------------------------- */
.import-liste {
  max-height: 60vh;
  overflow-y: auto;
  /* Platz für den Rahmen der Auswahlfelder, sonst schneidet der Rand sie an. */
  padding: 2px 1px;
  border-top: 1px solid var(--linie-still);
}
.import-zeile {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 9px 0;
  border-bottom: 1px solid var(--linie-still);
  cursor: pointer;
}
.import-zeile:last-child {
  border-bottom: 0;
}
.import-zeile > input[type="checkbox"] {
  margin-top: 3px;
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  accent-color: var(--cyan);
  cursor: pointer;
}
.import-oben {
  display: flex;
  align-items: baseline;
  gap: 7px;
}
.import-text {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 13.5px;
  color: var(--text);
  /* Ein Verwendungszweck kann sechzig Zeichen lang sein. Abgeschnitten ist
     er immer noch zu erkennen; umgebrochen zerreißt er die Liste. */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.import-betrag {
  flex: 0 0 auto;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
}
.import-unten {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 5px;
}
.import-unten select {
  font-family: var(--schrift-text);
  font-size: 12px;
  padding: 3px 7px;
  border-radius: var(--r-klein);
  border: 1px solid var(--linie-still);
  background: var(--fuellung);
  color: var(--text-2);
  max-width: 190px;
}

/* Eine Zeile, die so schon in ORBIT steht. Zurückgenommen, nicht gesperrt:
   Zwei Kaffees am selben Tag zum selben Preis gibt es wirklich, und dann
   will man das Häkchen doch setzen. */
.import-dublette {
  opacity: 0.55;
}

/* Ein Link, der wie ein Knopf aussieht - der Download des CSV-Exports ist
   der erste in ORBIT. Er MUSS ein <a download> sein und kann kein <button>
   sein: Nur so lädt der Browser die Datei herunter, statt sie anzuzeigen.
   Die Unterstreichung, die ein Link sonst mitbringt, gehört dann aber nicht
   dazu - sie sähe aus wie ein Fehler im Knopf. */
a.btn,
a.btn:hover {
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   Der Zwölf-Monats-Verlauf

   Zwölf Säulen und eine Linie. Die Linie ist der eigene Schnitt und der
   eigentliche Inhalt des Bildes: Säulen allein sind eine Form, Säulen mit
   einer Bezugslinie sagen auf einen Blick, welche Monate teuer waren.

   Die Höhe steht fest und wächst nicht mit dem Inhalt – ein Diagramm, das
   je nach Datenlage unterschiedlich hoch ist, lässt die Seite bei jedem
   Monatswechsel springen.
   -------------------------------------------------------------------------- */
.verlauf-flaeche {
  /* Der Bezugsrahmen der Schnittlinie. Sie MUSS in derselben Box liegen wie
     die Säulen: Läge sie im Kasten darum, bezöge sich ihre Prozentangabe auf
     eine andere Höhe als die der Säulen, und die Linie landete über allen. */
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 112px;
}
.verlauf-saeule {
  flex: 1 1 0;
  min-width: 0;
  background: var(--cyan);
  border-radius: 3px 3px 0 0;
  transition: height 0.3s;
}
/* Der laufende Monat ist noch nicht zu Ende. Heller statt gleich dunkel:
   Sonst sähe ein halber Oktober neben elf ganzen Monaten aus wie Sparsamkeit. */
.verlauf-saeule.laufend {
  background: color-mix(in srgb, var(--cyan) 42%, transparent);
}
.verlauf-schnitt {
  position: absolute;
  left: 0;
  right: 0;
  border-top: 1.5px dashed color-mix(in srgb, var(--text-2) 52%, transparent);
  /* Die Linie quert die Säulen, verdeckt sie aber nicht - und fängt keine
     Mausbewegung ab, die dem Titel einer Säule gilt. */
  pointer-events: none;
}
.verlauf-achse {
  display: flex;
  gap: 4px;
  padding-top: 5px;
}
.verlauf-achse span {
  flex: 1 1 0;
  min-width: 0;
  font-size: 9.5px;
  color: var(--schwach);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
}

/* Eine Abweichung vom Schnitt. Mehr ist nicht automatisch schlimm und
   weniger nicht automatisch gut – ORBIT bewertet nicht. Beide Töne sind
   deshalb ruhig und keine Ampel. */
.abweichung {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.abweichung.hoch {
  color: var(--magenta);
}
.abweichung.tief {
  color: var(--gruen);
}

/* --------------------------------------------------------------------------
   Die Wochentage – sieben kleine Säulen
   -------------------------------------------------------------------------- */
.wochentage {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 76px;
}
.wochentag {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.wochentag-fach {
  flex: 1 1 auto;
  display: flex;
  align-items: flex-end;
}
.wochentag-saeule {
  width: 100%;
  background: color-mix(in srgb, var(--cyan) 62%, transparent);
  border-radius: 3px 3px 0 0;
}
.wochentag-etikett {
  flex: 0 0 auto;
  font-size: 10px;
  color: var(--schwach);
  text-align: center;
  padding-top: 4px;
}
