/* CRM für Fairfinanz (Frank Schlieker). Fürs Handy gebaut, mit einer Hand zu bedienen, große Schrift.
   Farben und Schriften aus Franks Website (Fairfinanz-Website/css/tokens.css): Indigo trägt, Sonnengelb steht nur auf
   Indigo oder als Fläche mit Indigo-Schrift. Bewegung wie in der Vorlage reiss-rief-crm: nur transform und opacity,
   eine Kurve, der Grundzustand ist immer sichtbar. Kein style-Attribut im HTML, die CSP erlaubt nur diese Datei. */

@font-face {
  font-family: "Archivo";
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/archivo.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --papier: #FFFFFF;
  --flaeche2: #F2F3F8;
  --tinte: #312783;          /* Franks Indigo. Überschriften, Links, Hauptknöpfe */
  --tinte-tief: #241C63;
  --text: #1E1B3A;           /* 16,5:1 auf Weiß */
  --sekundaer: #4E4D63;      /* 8,2:1 auf Weiß, 7,4:1 auf --flaeche2 */
  --gelb: #FFD23F;           /* nur auf Indigo (8,3:1) oder als Fläche mit Indigo-Schrift */
  --linie: #DDDEE8;          /* Zierlinie, nie die einzige Abgrenzung */
  --kante: #8487A6;          /* Kanten von Feldern und Knöpfen, 3,5:1 auf Weiß */
  --auf-tinte: #FFFFFF;      /* 12:1 auf Indigo */
  --auf-tinte-leise: #D6D3F0;/* 8,3:1 auf Indigo */
  --fehler: #8A1D1D;         /* 9,2:1 auf Weiß. Gelb ist keine Fehlerfarbe. */
  --fehler-flaeche: #FBEDED; /* --fehler darauf 8,1:1 */
  --akzent: var(--tinte);    /* Fokusring; auf Indigo wird er gelb */
  --radius: 12px;
  --radius-karte: 20px;
  --schatten-karte: 0 24px 60px -24px rgb(16 10 60 / .45), 0 2px 6px rgb(16 10 60 / .08);
  --schatten-leicht: 0 8px 24px -12px rgb(16 10 60 / .18);
  --schrift: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --schrift-titel: "Archivo", "Inter", system-ui, sans-serif;
  --kurve: cubic-bezier(.25, 1, .5, 1);
  --rand: 16px;
  --rand-links: max(var(--rand), env(safe-area-inset-left));
  --rand-rechts: max(var(--rand), env(safe-area-inset-right));
  --spalte: 640px;
  /* Was die Reiterleiste belegt: am Handy unten, am Mac oben. Ohne Leiste (Anmeldung) nur die Sicherheitszone. */
  --leiste-unten: env(safe-area-inset-bottom);
  --leiste-oben: 0px;
}
:root.mit-reitern { --leiste-unten: calc(65px + env(safe-area-inset-bottom)); }

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--flaeche2);
  /* Was der Browser ins Bild holt (Fokus mit Tabulator, Sprung), landet nicht unter einer Leiste. */
  scroll-padding-block: var(--leiste-oben) var(--leiste-unten);
}

/* 18 Pixel Grundschrift auf body, nicht auf html: rem bleibt bei der Grundgröße des Browsers, und alles, was in rem
   gesetzt ist, wächst mit, wenn Frank am Handy die Schrift größer stellt. */
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--flaeche2);
  color: var(--text);
  font-family: var(--schrift);
  font-size: 1.125rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; }
a { color: var(--tinte); text-underline-offset: 3px; }

:focus-visible {
  outline: 3px solid var(--akzent);
  outline-offset: 3px;
}
[tabindex="-1"]:focus { outline: none; }

.sym {
  flex: none;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.unsichtbar {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* Bewegung */
@keyframes ein {
  from { opacity: 0; transform: translateY(8px); }
}
@keyframes auf {
  from { opacity: 0; transform: translateY(-8px); }
}
@keyframes erscheinen {
  from { opacity: 0; }
}
@keyframes drehen {
  to { transform: rotate(360deg); }
}
@keyframes hinweis-ein {
  from { opacity: 0; transform: translate(-50%, 8px); }
}
.einblenden { animation: ein .3s var(--kurve) backwards; }
.aufklappen { animation: auf .3s var(--kurve) backwards; }

/* Rahmen. Die obere Sicherheitszone trägt, was oben steht: Kopf, Leiste oder Anmeldung. */
.seite {
  max-width: 1200px;
  margin-inline: auto;
  padding: 8px var(--rand-rechts) calc(40px + var(--leiste-unten)) var(--rand-links);
}
.seite-schmal { max-width: var(--spalte); }

.startbild {
  display: grid;
  place-items: center;
  min-height: 100dvh;
}

.leiste {
  position: sticky;
  top: var(--leiste-oben);
  z-index: 5;
  display: flex;
  align-items: center;
  min-height: 52px;
  padding-top: env(safe-area-inset-top);
  padding-inline: max(var(--rand-links), calc(50% - var(--spalte) / 2 + var(--rand)))
    max(var(--rand-rechts), calc(50% - var(--spalte) / 2 + var(--rand)));
  background: rgb(242 243 248 / .94);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  backdrop-filter: blur(12px) saturate(160%);
}
.zurueck {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 48px;
  margin-left: -8px;
  padding-inline: 4px 12px;
  border-radius: 10px;
  color: var(--tinte);
  font-weight: 600;
  text-decoration: none;
}

.seitentitel {
  margin-block: 4px 16px;
  color: var(--tinte);
  font-family: var(--schrift-titel);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.zwischentitel, .abschnitt-titel, .ueberzeile {
  color: var(--tinte);
  font-family: var(--schrift-titel);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.015em;
}
.ueberzeile { font-size: 1.125rem; }
.kleingedruckt, .hinweis, .unterzeile { color: var(--sekundaer); font-size: 1rem; }
.unterzeile { margin-top: -12px; }

.hinweis-warn {
  padding: 12px 14px;
  background: var(--fehler-flaeche);
  border-radius: var(--radius);
  box-shadow: inset 4px 0 0 var(--fehler);
  color: var(--fehler);
  font-weight: 600;
}

.karte {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 18px 16px;
  background: var(--papier);
  border: 1px solid var(--linie);
  border-radius: var(--radius-karte);
  box-shadow: var(--schatten-leicht);
}

/* Knöpfe. Die Hover-Fläche liegt als eigene Ebene darüber, damit nur opacity animiert wird. */
.knopf, .textknopf, .chip, .zurueck, .kopf-link, .klappkopf, .reiter, .reiter-einstellungen, .filter, .kl-eintrag {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: transform .1s var(--kurve);
}
.knopf {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 14px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--schrift);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.25;
  overflow-wrap: normal;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.knopf-haupt { background: var(--tinte); color: var(--auf-tinte); }
.knopf-zweit { background: var(--papier); border-color: var(--kante); color: var(--tinte); }
.knopf-gelb { background: var(--gelb); color: var(--tinte); }
.knopf-gefahr { background: var(--fehler); color: var(--auf-tinte); }
.knopf-aus { background: var(--flaeche2); border: 1px dashed var(--kante); color: var(--sekundaer); cursor: default; }
.knopf-zweit[aria-expanded="true"] { background: var(--tinte); border-color: var(--tinte); color: var(--auf-tinte); }
.knopf-gross { min-height: 56px; }
.knopf-breit { width: 100%; }
.knopf:active, .textknopf:active, .chip:active, .zurueck:active, .kopf-link:active,
.reiter:active, .reiter-einstellungen:active, .filter:active { transform: scale(.97); }
.knopf-aus:active { transform: none; }
.knopf:disabled { cursor: default; opacity: .7; }
.knopf.laeuft::before {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: drehen .8s linear infinite;
}
.knopf::after {
  content: "";
  position: absolute;
  inset: 0;
  background: currentColor;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s var(--kurve);
}
@media (hover: hover) {
  .knopf:not(.knopf-aus):hover::after { opacity: .08; }
  .textknopf:hover, .zurueck:hover, .kopf-link:hover { opacity: .75; }
  .textknopf, .zurueck, .kopf-link { transition: transform .1s var(--kurve), opacity .2s var(--kurve); }
}

.knopfreihe {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.knopfreihe > .knopf { flex: 1 1 120px; }

.textknopf {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0;
  background: none;
  border: 0;
  color: var(--tinte);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.textknopf .sym { width: 18px; height: 18px; }
.textknopf:disabled { cursor: default; opacity: .7; }

/* Felder. Mindestens 16 px Schrift, sonst vergrößert der Browser beim Antippen. */
.feld {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.feld-name {
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
}
.feld-hinweis { color: var(--sekundaer); font-size: 1rem; }
.eingabe {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  background: var(--papier);
  border: 1px solid var(--kante);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 1.125rem;
  line-height: 1.4;
  -webkit-appearance: none;
  appearance: none;
}
.eingabe::placeholder { color: var(--sekundaer); opacity: 1; }
select.eingabe {
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23312783' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 18px;
  text-overflow: ellipsis;
  cursor: pointer;
}
textarea.eingabe { min-height: 104px; resize: vertical; }
input[type="date"].eingabe { -webkit-min-logical-width: 0; }

.feldpaar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr));
  gap: 12px;
}

/* Auswahl als Kacheln. Technisch Radioknöpfe: Der Knopf selbst ist unsichtbar, die Kachel zeigt die Wahl. */
.wahl {
  display: grid;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.wahl > legend { margin-bottom: 8px; padding: 0; }
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 48px;
  min-height: 48px;
  padding: 8px 12px;
  background: var(--papier);
  border: 1px solid var(--kante);
  border-radius: var(--radius);
  color: var(--tinte);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
  overflow-wrap: normal;
  text-align: center;
  cursor: pointer;
}
.chip input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.chip-unter { color: var(--sekundaer); font-size: .9375rem; font-weight: 500; }
.chip:has(input:checked) { background: var(--tinte); border-color: var(--tinte); color: var(--auf-tinte); }
.chip:has(input:checked) .chip-unter { color: var(--auf-tinte-leise); }
.chip:has(input:focus-visible) { outline: 3px solid var(--akzent); outline-offset: 3px; }
@media (hover: hover) {
  .chip:hover { border-color: var(--tinte); }
}

.termin { display: grid; gap: 12px; }
.termin .chips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.termin-datum { display: grid; gap: 10px; }

/* „Später“: jede Wahl ein Knopf, darunter der Tag */
.verschieben { display: grid; gap: 10px; }
.wahl-knoepfe {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.knopf-wahl {
  flex-direction: column;
  gap: 2px;
  min-height: 64px;
  padding: 8px;
  font-size: 1rem;
}
.wahl-unter { color: var(--sekundaer); font-size: .9375rem; font-weight: 500; }
.knopf-zweit[aria-expanded="true"] .wahl-unter { color: var(--auf-tinte-leise); }
.verschieben > .textknopf { justify-self: start; }

.meldung { font-size: 1rem; font-weight: 500; }
.meldung-fehler { color: var(--fehler); }
.meldung-ok { color: var(--tinte); }
.leon-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  color: inherit;
  font-weight: 600;
  vertical-align: middle;
}
.leon-link .sym { width: 18px; height: 18px; }

.formular { display: grid; gap: 16px; min-width: 0; }

.zustand {
  display: grid;
  justify-items: center;
  gap: 16px;
  max-width: 44ch;
  margin-inline: auto;
  padding: 48px 16px;
  color: var(--sekundaer);
  text-align: center;
}
.zustand-laden {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  animation: erscheinen .2s .15s var(--kurve) backwards;
}
.kreisel {
  flex: none;
  width: 18px;
  height: 18px;
  border: 2px solid var(--linie);
  border-top-color: var(--tinte);
  border-radius: 50%;
  animation: drehen .8s linear infinite;
}

.bestaetigung { display: grid; justify-items: start; gap: 8px; }
.bestaetigung > .knopfreihe { justify-self: stretch; }
.bestaetigung-satz { font-weight: 600; }

/* Kurze Rückmeldung unten, nachdem die Seite neu gezeichnet ist */
.rueckmeldung {
  position: fixed;
  left: 50%;
  bottom: calc(16px + var(--leiste-unten));
  z-index: 20;
  width: max-content;
  max-width: calc(100% - 2 * var(--rand));
  padding: 12px 18px;
  background: var(--tinte);
  border-radius: var(--radius);
  box-shadow: var(--schatten-karte);
  color: var(--auf-tinte);
  font-weight: 600;
  /* Reiner Text: Ein Tipp geht durch auf den Knopf darunter. */
  pointer-events: none;
  transform: translateX(-50%);
  animation: hinweis-ein .3s var(--kurve) backwards;
}

/* Aufklappbares: Kopf wie ein Knopf, mit Pfeil */
.klappe > summary { list-style: none; cursor: pointer; }
.klappe > summary::-webkit-details-marker { display: none; }
.klappkopf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 6px 16px;
  background: var(--papier);
  border: 1px solid var(--kante);
  border-radius: var(--radius);
  color: var(--tinte);
  font-weight: 600;
}
.klappkopf::after {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  margin: -4px 4px 0;
  border-right: 2.5px solid currentColor;
  border-bottom: 2.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform .2s var(--kurve);
}
.klappe[open] > .klappkopf::after { margin-top: 6px; transform: rotate(-135deg); }
.klappe[open] > .klappkopf { margin-bottom: 12px; }
.klappe[open] > :not(summary) { animation: auf .3s var(--kurve) backwards; }

/* Heute: Kopf in Indigo mit Suche und „Neuer Kunde“ */
.kopf {
  --akzent: var(--gelb);
  padding: calc(12px + env(safe-area-inset-top)) var(--rand-rechts) 20px var(--rand-links);
  background: var(--tinte);
  border-radius: 0 0 var(--radius-karte) var(--radius-karte);
  color: var(--auf-tinte);
}
.kopf-innen {
  display: grid;
  gap: 14px;
  max-width: calc(var(--spalte) - 2 * var(--rand));
  margin-inline: auto;
}
.kopf-zeile {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
}
.kopf-signet { width: 36px; height: 36px; }
.kopf-titel {
  flex: 1;
  min-width: 0;
  font-family: var(--schrift-titel);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
}
.kopf-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 48px;
  margin-right: -8px;
  padding-inline: 8px;
  border-radius: 10px;
  color: var(--auf-tinte);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
}
.kopf-datum { margin-top: -12px; color: var(--auf-tinte-leise); font-size: 1rem; }
.kopf .textknopf { color: var(--auf-tinte); }

.suchzeile {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}
.suchzeile-symbol {
  position: absolute;
  top: 0;
  left: 14px;
  z-index: 1;
  display: flex;
  align-items: center;
  height: 52px;
  color: var(--sekundaer);
  pointer-events: none;
}
.suche-eingabe {
  flex: 1;
  min-height: 52px;
  padding-left: 46px;
  border-color: var(--papier);
}
.suche-abbrechen { flex: none; }
.neu-knopf { min-height: 52px; }

.heute-inhalt {
  display: grid;
  gap: 24px;
  max-width: var(--spalte);
  padding-top: 20px;
}
.heute-liste, .abschnitt { display: grid; gap: 12px; min-width: 0; }
.heute-liste { gap: 24px; }
.zeilen { display: grid; gap: 12px; }

/* Buchungen der Website für heute, vor den Anrufen. Scheitert das Laden, steht dort nur eine kleine Zeile ohne Karte. */
.heute-termine-liste {
  display: grid;
  padding: 4px 16px;
  background: var(--papier);
  border: 1px solid var(--linie);
  border-radius: var(--radius-karte);
  box-shadow: var(--schatten-leicht);
  list-style: none;
}
.heute-termin {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 44px;
  padding-block: 12px;
}
.heute-termin + .heute-termin { border-top: 1px solid var(--linie); }
.heute-termin .sym { margin-top: 4px; color: var(--tinte); }
.heute-termin strong { color: var(--tinte); font-weight: 700; }
.heute-termin a { display: inline-block; padding-block: 10px; margin-block: -10px; font-weight: 600; }
.heute-termine-fehler { color: var(--sekundaer); font-size: 1rem; }

/* Eine Zeile je Kunde. Überfällig: Kante links in der Fehlerfarbe, dazu Symbol und Satz. */
.zeile {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 16px;
  background: var(--papier);
  border: 1px solid var(--linie);
  border-radius: var(--radius-karte);
  box-shadow: var(--schatten-leicht);
}
.zeile-ueberfaellig { box-shadow: inset 5px 0 0 var(--fehler), var(--schatten-leicht); }
.zeile-kopf {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}
.zeile-name {
  font-family: var(--schrift-titel);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.01em;
}
.zeile-name a {
  text-decoration: underline;
  text-decoration-color: var(--kante);
  text-decoration-thickness: 1px;
}
/* Textlinks mit eigener Aufgabe: Tippfläche mindestens 44 px hoch, ohne die Zeile höher zu machen. */
.zeile-name a, .kunde-kontakt a, .leer-naechste a {
  display: inline-block;
  padding-block: 10px;
  margin-block: -10px;
}
.zeile-tag, .aufgabe-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--sekundaer);
  font-size: 1rem;
  font-weight: 500;
}
.zeile-tag .sym, .aufgabe-tag .sym { width: 18px; height: 18px; }
.zeile-tag-alt, .aufgabe-alt .aufgabe-tag { color: var(--fehler); font-weight: 600; }
.zeile-gruende { display: grid; gap: 4px; list-style: none; }
.zeile-fertig { box-shadow: var(--schatten-leicht); }
.zeile-fertig .zeile-gruende {
  color: var(--sekundaer);
  text-decoration: line-through;
  text-decoration-color: var(--kante);
}
.zeile-fertig .zeile-tag-alt { color: var(--sekundaer); }

.marke {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}
.marke-interessent { background: var(--gelb); color: var(--tinte); }
.marke-ehemals, .marke-abgesagt { background: var(--flaeche2); border: 1px solid var(--kante); color: var(--sekundaer); }
/* Gelb mit Indigo-Schrift, im Kopf wie in der weißen Tageskarte. Die Marke trägt die Schrift des Textes, nicht des Titels. */
.marke-woche, .marke-heute { background: var(--gelb); color: var(--tinte); font-family: var(--schrift); letter-spacing: normal; }

/* Erledigt, Später, Nicht erreicht */
.ablauf {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding-top: 12px;
  border-top: 1px solid var(--linie);
}
.ablauf-knoepfe {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.ablauf-knoepfe > .knopf-haupt:first-child { grid-column: 1 / -1; }
.ablauf-extra {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 20px;
}
.ablauf-extra > .bestaetigung:has(.bestaetigung-satz) { flex-basis: 100%; padding-block: 4px; }
.ablauf-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  min-height: 44px;
  color: var(--tinte);
  font-weight: 600;
}
/* Der Satz bricht neben dem Symbol um, statt als Ganzes in die nächste Zeile zu rutschen. */
.ablauf-status > span { flex: 1 1 0; min-width: 0; }
.ablauf-status > .textknopf { margin-left: auto; }
.blatt { display: grid; gap: 16px; min-width: 0; }

.leer {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 32px 20px;
  background: var(--papier);
  border: 1px solid var(--linie);
  border-radius: var(--radius-karte);
  box-shadow: var(--schatten-leicht);
  text-align: center;
}
.leer-symbol {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 4px;
  background: var(--gelb);
  border-radius: 50%;
  color: var(--tinte);
}
.leer-symbol .sym { width: 28px; height: 28px; stroke-width: 2.5; }
.leer-titel {
  color: var(--tinte);
  font-family: var(--schrift-titel);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -.015em;
}
.leer-naechste { color: var(--sekundaer); }

/* Kunden: Suche und Filter im Kopf, darunter die Liste. Am Handy drei Zeilen je Kunde, am Mac eine Tabelle. */
.suche-eingabe:focus-visible { outline-offset: 2px; }
.filterreihe { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  overflow: hidden;
  background: transparent;
  border: 1px solid var(--auf-tinte-leise);
  border-radius: 999px;
  color: var(--auf-tinte);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
}
.filter[aria-pressed="true"] { background: var(--gelb); border-color: var(--gelb); color: var(--tinte); }
.filter::after, .kl-eintrag::after {
  content: "";
  position: absolute;
  inset: 0;
  background: currentColor;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s var(--kurve);
}
.kl-eintrag:active::after { opacity: .06; transition-duration: 0s; }
@media (hover: hover) {
  .filter:hover::after { opacity: .12; }
  .kl-eintrag:hover::after { opacity: .04; }
}

.kunden-inhalt, .kalender-inhalt {
  display: grid;
  gap: 12px;
  max-width: var(--spalte);
  padding-top: 16px;
}
.kl-anzahl { color: var(--sekundaer); font-weight: 500; }
.kl-anzahl:empty { display: none; }
.kl-bereich { display: grid; justify-items: start; gap: 12px; min-width: 0; }
.kl-tabelle {
  justify-self: stretch;
  min-width: 0;
  overflow: hidden;
  background: var(--papier);
  border: 1px solid var(--linie);
  border-radius: var(--radius-karte);
  box-shadow: var(--schatten-leicht);
}
.kl-kopfzeile { display: none; }
.kl-liste { list-style: none; }
.kl-liste li + li { border-top: 1px solid var(--linie); }
.kl-eintrag {
  position: relative;
  display: grid;
  gap: 2px;
  min-height: 56px;
  padding: 12px 16px;
  color: var(--text);
  text-decoration: none;
}
.kl-name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  min-width: 0;
  color: var(--tinte);
  font-weight: 700;
}
.kl-zeile { display: flex; flex-wrap: wrap; gap: 0 8px; color: var(--sekundaer); font-size: 1rem; }
.kl-zelle:empty { display: none; }
.kl-zelle:not(:empty) + .kl-zelle:not(:empty)::before { content: "·"; margin-right: 8px; }
.kl-wv {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
  margin-top: 4px;
  font-size: 1rem;
}
.kl-wv:empty { display: none; }
.kl-wv .sym { width: 18px; height: 18px; margin-top: 3px; color: var(--sekundaer); }
/* Tag und Grund fließen als ein Satz, höchstens zwei Zeilen. Den ganzen Grund zeigt die Kundenseite. */
.kl-wv-text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  min-width: 0;
  overflow: hidden;
}
.kl-wv-tag { font-weight: 600; }
.kl-wv-titel { color: var(--sekundaer); }
.kl-wv-titel::before { content: "\00a0· "; }
.kl-wv-alt, .kl-wv-alt .kl-wv-titel, .kl-wv-warn { color: var(--fehler); }
.kl-wv-alt .sym, .kl-wv-warn .sym { color: var(--fehler); }
.kl-wv-warn { font-weight: 600; }
.kl-wv-leer { color: var(--sekundaer); }

/* Kalender: im Kopf „Zeit sperren“, das Blättern und darunter der Wochentitel; darunter je Tag eine Karte. Das Blättern
   steht über dem Titel, weil der Titel je nach Woche ein- oder zweizeilig ist und die Knöpfe sonst springen. Am Mac
   dieselbe Liste, nur breiter; das Formular bleibt schmal. */
.kal-sperren-knopf { flex: none; }
.kal-titel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  font-family: var(--schrift-titel);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.015em;
}
.kal-blaettern { display: flex; flex-wrap: wrap; gap: 8px; }
/* Etwas schmaler als die Filter unter Kunden, damit die drei Knöpfe auch bei 360 Pixeln mit Luft in eine Zeile passen. */
.kal-blaettern .filter { gap: 6px; padding-inline: 12px; }
.kal-blaettern .sym { width: 18px; height: 18px; }
/* „Heute“ in der laufenden Woche: gestrichelt und leiser, ohne Hover und Druck. */
.filter:disabled { border-style: dashed; color: var(--auf-tinte-leise); cursor: default; }
.filter:disabled::after { content: none; }
.filter:disabled:active { transform: none; }

.kal-formular-bereich { max-width: 640px; }
.kal-formular {
  padding: 16px;
  background: var(--papier);
  border: 1px solid var(--linie);
  border-radius: var(--radius-karte);
  box-shadow: var(--schatten-leicht);
}

.kal-tage { display: grid; gap: 12px; min-width: 0; list-style: none; }
.kal-tag {
  min-width: 0;
  padding: 4px 16px;
  background: var(--papier);
  border: 1px solid var(--linie);
  border-radius: var(--radius-karte);
  box-shadow: var(--schatten-leicht);
}
.kal-tag-heute { border-color: var(--tinte); box-shadow: inset 0 0 0 1px var(--tinte), var(--schatten-leicht); }
.kal-tag-kopf {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  min-height: 52px;
  padding-block: 10px;
  color: var(--tinte);
  font-family: var(--schrift-titel);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.01em;
}
.kal-eintraege { display: grid; list-style: none; }
.kal-eintrag, .kal-leer { min-width: 0; padding-block: 12px; border-top: 1px solid var(--linie); }
.kal-leer { color: var(--sekundaer); }

.kal-buchung { display: grid; gap: 10px; }
.kal-text { display: grid; gap: 2px; min-width: 0; }
.kal-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.kal-zeit { font-weight: 700; font-variant-numeric: tabular-nums; }
/* Der Name ist ein Textlink: Tippfläche 44 px hoch, ohne die Zeile höher zu machen. */
.kal-name {
  display: inline-block;
  padding-block: 10px;
  margin-block: -10px;
  font-weight: 600;
  text-decoration-color: var(--kante);
}
/* Nummer und Anliegen stehen ganz da: Frank liest sie vor dem Anruf, auch am Mac ohne Telefon-Link. Zeilenumbrüche aus
   dem Formular bleiben, lange Wörter brechen um statt die Seite zu verbreitern. */
.kal-telefon, .kal-anliegen { color: var(--sekundaer); font-size: 1rem; }
.kal-telefon { font-variant-numeric: tabular-nums; }
.kal-anliegen { white-space: pre-line; overflow-wrap: anywhere; }
.kal-anrufen { justify-self: start; }
/* Abgesagt: Zeit und Name durchgestrichen, der Name bleibt als Link erkennbar. Anrufen geht weiter. */
.kal-abgesagt .kal-zeit, .kal-abgesagt .kal-name { color: var(--sekundaer); }
.kal-abgesagt .kal-zeit { text-decoration: line-through; }
.kal-abgesagt .kal-name { text-decoration-line: underline line-through; }

/* Sperren: ein Balken links, wie die Kante eines Feldes. */
.kal-sperre {
  display: grid;
  justify-items: start;
  gap: 2px;
  padding-left: 12px;
  box-shadow: inset 4px 0 0 var(--kante);
}
.kal-sperre-text { font-weight: 600; }
.kal-grund { color: var(--sekundaer); font-size: 1rem; }
.kal-sperre > .bestaetigung { justify-self: stretch; max-width: 480px; }

.kal-wv-liste { display: grid; gap: 12px; list-style: none; }
.kal-wv-eintrag { display: grid; justify-items: start; gap: 2px; min-width: 0; }
.kal-wv-eintrag a { display: inline-block; padding-block: 10px; margin-block: -10px; font-weight: 600; }
.kal-wv-alt { padding-left: 12px; box-shadow: inset 4px 0 0 var(--fehler); }
.kal-wv-tag { display: flex; align-items: center; gap: 6px; color: var(--fehler); font-size: 1rem; font-weight: 600; }
.kal-wv-tag .sym { width: 18px; height: 18px; }
.kal-wv-grund { color: var(--sekundaer); font-size: 1rem; }

/* Kunde */
.kunde { display: grid; gap: 28px; min-width: 0; }
.kunde-kopf { display: grid; justify-items: start; gap: 8px; }
.kunde-kopf .seitentitel { margin: 0; }
.kunde-kontakt {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  color: var(--sekundaer);
}
.kunde-wege { display: grid; gap: 12px; margin-top: -12px; }
/* Vier Wege als Kacheln, Symbol über dem Wort: So passt auch „Wiedervorlage“ in eine halbe Handybreite. */
.wege {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.wege > .knopf {
  flex-direction: column;
  gap: 4px;
  min-height: 76px;
  padding: 10px 8px;
  font-size: 1rem;
}
.wege .sym { width: 24px; height: 24px; }
.kunde-formular:empty { display: none; }
.kunde-formular > .blatt {
  padding: 16px;
  background: var(--papier);
  border: 1px solid var(--linie);
  border-radius: var(--radius-karte);
  box-shadow: var(--schatten-leicht);
}

.aufgaben, .darlehen-liste { display: grid; gap: 12px; list-style: none; }
.aufgabe {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 16px;
  background: var(--papier);
  border: 1px solid var(--linie);
  border-radius: var(--radius-karte);
  box-shadow: var(--schatten-leicht);
}
.aufgabe-alt { box-shadow: inset 5px 0 0 var(--fehler), var(--schatten-leicht); }
.aufgabe-titel { font-weight: 600; }

.darlehen-bank {
  color: var(--tinte);
  font-family: var(--schrift-titel);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -.01em;
}
.angaben-liste { display: grid; }
.angabe {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2px 16px;
  padding-block: 8px;
  border-bottom: 1px solid var(--linie);
}
.angabe:last-child { border-bottom: 0; }
.angabe dt { color: var(--sekundaer); }
.angabe dd { font-weight: 600; text-align: right; }
.angabe-wichtig dd { color: var(--tinte); font-family: var(--schrift-titel); font-weight: 700; }
.fehlt { display: inline-flex; align-items: center; gap: 6px; color: var(--fehler); }
.fehlt .sym { width: 18px; height: 18px; }

.verlauf {
  display: grid;
  padding: 4px 16px;
  background: var(--papier);
  border: 1px solid var(--linie);
  border-radius: var(--radius-karte);
  box-shadow: var(--schatten-leicht);
  list-style: none;
}
.v-eintrag {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  padding-block: 12px;
  border-bottom: 1px solid var(--linie);
}
.v-eintrag:last-child { border-bottom: 0; }
.v-symbol {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: var(--flaeche2);
  border-radius: 50%;
  color: var(--tinte);
}
.v-symbol .sym { width: 18px; height: 18px; }
.v-erledigt .v-symbol { background: var(--gelb); }
.v-inhalt { display: grid; justify-items: start; gap: 2px; min-width: 0; }
.v-inhalt > .bestaetigung, .v-inhalt > .meldung { justify-self: stretch; }
.v-kopf { color: var(--sekundaer); font-size: 1rem; }
.v-art { color: var(--text); font-weight: 600; }
.v-text { white-space: pre-wrap; }

.kunde-spalten, .kunde-spalte { display: grid; align-content: start; gap: 28px; min-width: 0; }
.angaben-klappe {
  padding: 0;
}
.angaben-klappe[open] {
  padding: 0 16px 16px;
  background: var(--papier);
  border: 1px solid var(--linie);
  border-radius: var(--radius-karte);
  box-shadow: var(--schatten-leicht);
}
.angaben-klappe[open] > .klappkopf {
  margin-inline: -16px;
  border-width: 0 0 1px;
  border-color: var(--linie);
  border-radius: var(--radius-karte) var(--radius-karte) 0 0;
}

/* Einstellungen */
.einstellungen { display: grid; gap: 16px; }
.angemeldet { color: var(--sekundaer); }
.angemeldet strong { color: var(--text); }
.einspiel-ergebnis { display: grid; gap: 8px; }
.einspiel-ergebnis:empty { display: none; }
.zahlen, .abgelehnt { display: grid; gap: 4px; list-style: none; }
.abgelehnt { color: var(--fehler); }

/* Anmeldung: Indigo wie Franks Website, die Karte weiß */
.anmeldung {
  --akzent: var(--gelb);
  display: grid;
  min-height: 100dvh;
  padding: calc(40px + env(safe-area-inset-top)) var(--rand-rechts) calc(24px + env(safe-area-inset-bottom)) var(--rand-links);
  background: var(--tinte);
  color: var(--auf-tinte-leise);
}
.anmeldung-inhalt {
  display: grid;
  align-content: start;
  gap: 24px;
  width: 100%;
  max-width: 420px;
  margin-inline: auto;
}
@media (min-width: 768px) {
  .anmeldung-inhalt { align-self: center; }
}
.anmeldung-marke {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.anmeldung-logo { width: 48px; height: 48px; }
.anmeldung-name {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--auf-tinte);
  font-family: var(--schrift-titel);
  font-size: 1.625rem;
  font-weight: 700;
  letter-spacing: -.02em;
}
.anmeldung-zusatz { color: var(--gelb); }
.anmeldung-karte {
  --akzent: var(--tinte);
  display: grid;
  min-width: 0;
  padding: 28px 20px 20px;
  background: var(--papier);
  border-radius: var(--radius-karte);
  box-shadow: var(--schatten-karte);
  color: var(--text);
}
.anmeldung-karte > * { animation: erscheinen .3s var(--kurve) backwards; }
.anmeldung-form { display: grid; gap: 16px; }
.anmeldung-titel {
  color: var(--tinte);
  font-family: var(--schrift-titel);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.anmeldung-text { color: var(--sekundaer); }
.anmeldung-zurueck { justify-self: center; }
.anmeldung .kleingedruckt { text-align: center; }
.eingabe-code {
  font-size: 1.5rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: .3em;
  text-align: center;
  text-indent: .3em;
}
.schritte { display: grid; gap: 8px; padding-left: 1.4em; }
.schritte li::marker { color: var(--tinte); font-weight: 700; }
.schluessel { display: grid; gap: 8px; }
.schluessel-text {
  display: block;
  padding: 12px;
  background: var(--flaeche2);
  border: 1px solid var(--kante);
  border-radius: var(--radius);
  color: var(--text);
  font-family: ui-monospace, "SF Mono", "Roboto Mono", Menlo, monospace;
  font-size: 1.125rem;
  letter-spacing: .04em;
  text-align: center;
  -webkit-user-select: all;
  user-select: all;
}
.qr-klappe > summary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--tinte);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  list-style: none;
  cursor: pointer;
}
.qr-klappe > summary::-webkit-details-marker { display: none; }
.qr {
  width: fit-content;
  margin: 8px auto 0;
  padding: 12px;
  background: var(--papier);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
}
.qr img { width: 176px; height: 176px; }
.qr-klappe[open] > .qr { animation: auf .3s var(--kurve) backwards; }

/* Reiter. Am Handy fest unten mit Abstand zur Gestenleiste, am Mac (ab 900 Pixel) oben in Indigo. */
.reiterleiste {
  position: fixed;
  inset: auto 0 0;
  z-index: 10;
  padding: 0 var(--rand-rechts) env(safe-area-inset-bottom) var(--rand-links);
  background: rgb(255 255 255 / .94);
  border-top: 1px solid var(--linie);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  backdrop-filter: blur(12px) saturate(160%);
}
.reiterleiste-innen {
  display: flex;
  align-items: stretch;
  max-width: var(--spalte);
  margin-inline: auto;
}
.reiterleiste-signet { display: none; }
.reiter-gruppe {
  display: grid;
  flex: 1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.reiter {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 2px;
  min-height: 64px;
  padding: 6px 4px;
  color: var(--sekundaer);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}
.reiter-einstellungen { display: none; }
.reiter::before {
  content: "";
  position: absolute;
  inset: 4px 2px;
  background: currentColor;
  border-radius: var(--radius);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s var(--kurve);
}
.reiter-symbol {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px;
  height: 32px;
}
/* Der offene Reiter: Indigo-Pille hinter dem Symbol, der Text fett in Indigo. Die Pille wächst aus der Mitte. */
.reiter-symbol::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--tinte);
  border-radius: 999px;
  opacity: 0;
  transform: scaleX(.5);
  transition: opacity .2s var(--kurve), transform .3s var(--kurve);
}
.reiter .sym { position: relative; width: 24px; height: 24px; }
.reiter[aria-current] { color: var(--tinte); font-weight: 700; }
.reiter[aria-current] .reiter-symbol { color: var(--auf-tinte); }
.reiter[aria-current] .reiter-symbol::before { opacity: 1; transform: none; }
@media (hover: hover) {
  .reiter:hover::before { opacity: .06; }
}

/* Rückfrage über der Seite. Am Handy unten über den Reitern, am Mac oben unter der Leiste: Sie kommt von dort, wo
   getippt wurde, und geht auf demselben Weg zurück. */
.rueckfrage {
  --weg: 8px;
  width: min(100% - 2 * var(--rand), 440px);
  max-width: none;
  max-height: calc(100% - 2 * var(--rand));
  margin: auto auto calc(12px + var(--leiste-unten));
  padding: 0;
  overflow: auto;
  background: var(--papier);
  border: 0;
  border-radius: var(--radius-karte);
  box-shadow: var(--schatten-karte);
  color: var(--text);
  transform-origin: 50% 100%;
  animation: fenster-ein .3s var(--kurve);
}
.rueckfrage::backdrop {
  background: rgb(16 10 60 / .45);
  animation: schleier-ein .3s var(--kurve);
}
.rueckfrage-zu { animation: fenster-aus .3s var(--kurve) forwards; }
.rueckfrage-zu::backdrop { animation: schleier-aus .3s var(--kurve) forwards; }
.rueckfrage-innen { display: grid; gap: 12px; padding: 20px; }
.rueckfrage .knopfreihe { margin-top: 4px; }
/* Passen beide Knöpfe nicht ohne Umbruch nebeneinander, steht jeder auf eigener Zeile über die ganze Breite. */
.rueckfrage .knopfreihe > .knopf { flex-basis: auto; }
@keyframes fenster-ein {
  from { opacity: 0; transform: translateY(var(--weg)) scale(.97); }
}
@keyframes fenster-aus {
  to { opacity: 0; transform: translateY(var(--weg)) scale(.97); }
}
@keyframes schleier-ein {
  from { opacity: 0; }
}
@keyframes schleier-aus {
  to { opacity: 0; }
}

/* Mac: Reiter oben, breitere Seiten für Kunden, Kunde und Kalender. Formulare bleiben schmal. */
@media (min-width: 900px) {
  :root.mit-reitern {
    --leiste-unten: env(safe-area-inset-bottom);
    --leiste-oben: calc(64px + env(safe-area-inset-top));
  }
  .reiterleiste {
    --akzent: var(--gelb);
    position: sticky;
    top: 0;
    bottom: auto;
    padding-top: env(safe-area-inset-top);
    padding-bottom: 0;
    background: var(--tinte);
    border-top: 0;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .reiterleiste-innen {
    align-items: center;
    gap: 16px;
    max-width: calc(1100px - 2 * var(--rand));
    min-height: 64px;
  }
  .reiterleiste-signet { display: block; width: 32px; height: 32px; margin-right: 8px; }
  .reiter-gruppe { display: flex; gap: 4px; }
  .reiter {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    color: var(--auf-tinte-leise);
  }
  .reiter-einstellungen { display: flex; }
  .reiter::before { inset: 10px 0; }
  .reiter-symbol { width: auto; height: auto; }
  .reiter-symbol::before { content: none; }
  .reiter[aria-current] { color: var(--auf-tinte); }
  .reiter[aria-current] .reiter-symbol { color: inherit; }
  /* Der offene Reiter: gelber Balken an der Unterkante, er wächst aus der Mitte. */
  .reiter::after {
    content: "";
    position: absolute;
    right: 14px;
    bottom: 0;
    left: 14px;
    height: 3px;
    background: var(--gelb);
    border-radius: 3px 3px 0 0;
    opacity: 0;
    transform: scaleX(.5);
    transition: opacity .2s var(--kurve), transform .3s var(--kurve);
  }
  .reiter[aria-current]::after { opacity: 1; transform: none; }

  :root.mit-reitern .kopf { padding-top: 20px; }
  :root.mit-reitern .kopf-signet, :root.mit-reitern .kopf-link { display: none; }
  :root.mit-reitern .leiste { padding-top: 0; }

  .kunden, .kalender, .seite-weit { --spalte: 1100px; }
  .kopf-weit .suchzeile { max-width: 520px; }

  .kunde-spalten {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: 32px;
  }
  .seite-weit .wege { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 720px; }
  .seite-weit .wege > .knopf { flex-direction: row; min-height: 52px; }
  .seite-weit .kunde-formular { max-width: 640px; }

  .kl-kopfzeile, .kl-eintrag {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr) minmax(0, 1.1fr) minmax(0, 2.6fr);
    align-items: center;
    column-gap: 20px;
  }
  .kl-mit-herkunft .kl-kopfzeile, .kl-mit-herkunft .kl-eintrag {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1.15fr) minmax(0, 2.3fr);
  }
  .kl-kopfzeile {
    padding: 12px 20px;
    border-bottom: 1px solid var(--linie);
    color: var(--sekundaer);
    font-size: .9375rem;
    font-weight: 600;
  }
  .kl-eintrag { padding: 10px 20px; }
  .kl-zeile { display: contents; }
  .kl-zelle { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .kl-zelle:empty { display: block; }
  .kl-zelle:not(:empty) + .kl-zelle:not(:empty)::before { content: none; }
  .kl-wv { margin-top: 0; }

  /* Kalender: „Anrufen“ rechts neben Zeit, Name und Anliegen. */
  .kal-buchung { grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 20px; }

  .rueckfrage {
    --weg: -8px;
    margin: calc(var(--leiste-oben) + 16px) auto auto;
    transform-origin: 50% 0;
  }
}
@media (min-width: 900px) and (hover: hover) {
  .reiter:hover::before { opacity: .12; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  /* ::backdrop erfasst der Stern nicht. */
  .rueckfrage::backdrop { animation: none !important; }
  .knopf:active, .textknopf:active, .chip:active, .zurueck:active, .kopf-link:active,
  .reiter:active, .reiter-einstellungen:active, .filter:active { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .leiste {
    background: var(--flaeche2);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
@media (prefers-reduced-transparency: reduce) and (max-width: 899.98px) {
  .reiterleiste {
    background: var(--papier);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
@media (prefers-contrast: more) {
  :root {
    --linie: #8487A6;
    --kante: #4E4D63;
    --sekundaer: #1E1B3A;
  }
  .leiste {
    background: var(--flaeche2);
    border-bottom: 1px solid var(--kante);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .filter { border-color: var(--auf-tinte); }
}
@media (prefers-contrast: more) and (max-width: 899.98px) {
  .reiterleiste {
    background: var(--papier);
    border-top-color: var(--kante);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
