/* ==========================================================================
   Saldwell Konto: gemeinsames Stylesheet für alle Seiten unter /konto/.
   Tokens wie in der Gratis-App (web/css/style.css): Teal, Inter, gleiche Radien.
   Hell ist Standard wie in der App. konto/js/thema.js setzt <html data-theme="light|dark">
   aus localStorage 'rechnungen:theme' (gleicher Schlüssel wie die App), bevor die Stylesheets laden.
   Nur ohne data-theme (Skript blockiert) folgt dunkel dem System (prefers-color-scheme).

   Klassen zum Mitbenutzen (z. B. für konto/index.html):
   Seitengerüst
     body.k-seite              Grundlayout: Kopf, Inhalt, Fuß untereinander
     .k-kopf                   Kopfzeile; darin a.k-marke > span.k-marke-zeichen (svg.k-logo: Saldwell-Zeichen) + span.k-marke-name
     .k-thema-knopf            Knopf hell/dunkel ([data-thema-knopf], verbunden von thema.js)
     .k-kopf-aktionen          rechter Bereich im Kopf (Knöpfe/Links)
     main.k-haupt              zentrierter Inhalt (schmal, für Formulare)
     main.k-haupt.k-haupt--breit  breiter Inhalt (Übersicht, bis 960 px)
     .k-fuss                   Fußzeile mit kleinen Links
   Karten und Texte
     .k-karte                  weiße Karte mit Rahmen und Schatten
     .k-karte--erfolg          Karte für Erfolgsansichten (zentriert)
     .k-titel / .k-unter       Überschrift / Unterzeile einer Karte
     .k-featured (+ --sm/--md/--lg/--xl, --erfolg/--fehler/--warnung/--neutral)  Featured Icon über dem Titel
                               (Schrittkopf, Leerzustand, Erfolg, Fehler); .k-symbol ist der alte Name (lg)
     .k-ikon / .k-ikon--sm     Linien-Symbol 20 px / 16 px (ikonen.js), Strich immer 2
     .k-text                   normaler Fließtext (gedämpft)
     .k-klein                  kleine graue Zeile
     .k-trenner                feine Linie
     .k-raster                 Raster mit automatischen Spalten (min. 240 px)
     .k-liste                  ruhige Liste ohne Punkte, Einträge mit Trennlinie
     .k-marke-plan             kleines Etikett (z. B. "Free")
     .k-chip (+ Variante)      Status-Chip mit Punkt: --offen, --entwurf, --bezahlt, --teilweise, --ueberfaellig,
                               --gesendet, --angenommen, --aktiv, --pausiert, --abgelehnt, --abgelaufen,
                               --umgewandelt (Haken), --marke (Teal), --rahmen (nur Rahmen); --ohne-punkt ohne Punkt
     .k-kartentitel            Titel einer Karte (17 px, 600); H1 der Seite ist .k-titel (24 px, 700)
   Formulare
     form.k-formular           Felder untereinander mit Abstand
     .k-feld                   Feld-Gruppe: label.k-label + input.k-eingabe + p.k-feld-hinweis
     .k-optional               "optional" im Label
     .k-passwort               Hülle für Passwortfeld + button.k-auge (anzeigen/verbergen)
     .k-haken                  Kontrollkästchen mit Text (label.k-haken > input[type=checkbox] + span)
     .k-feld-hinweis.ist-ok / .ist-fehler  Farben für Live-Hinweise
     input[aria-invalid="true"]   rote Markierung
   Knöpfe und Links
     .k-knopf                  Hauptknopf (Teal); [aria-busy="true"] zeigt Ladekreis
     .k-knopf--zweit           Zweitknopf (Rahmen)
     .k-knopf--geist           ruhiger Knopf ohne Rahmen
     .k-knopf--gefahr          roter Knopf (Löschen o. ä.)
     .k-knopf--block           volle Breite
     .k-knopf--klein           kleiner Knopf (36 px, auf Touch 44 px)
     .k-aktionen               Knopfreihe (bricht auf dem Handy um)
                               Maße für alle Knöpfe: Standard und Zweit gleich hoch (--knopf-hoehe: 44 px,
                               ab 1024 px mit Maus 40 px), 14 px, Gewicht 600; klein 36 px (Touch 44 px)
     .k-link                   Textlink; .k-links = Zeile mit Links (zentriert)
   Meldungen (role="status"/"alert", aria-live)
     .k-hinweis                neutrale Info-Box (grau, Symbol in Teal)
     .k-warnung                Warnung (grau, Symbol in Orange)
     .k-fehler                 Fehler (Rot)
     .k-erfolg                 Erfolg (grau, Symbol in Grün)
     .k-laden                  Ladezeile mit Kreis
   Zustände der Arbeitsseiten (JS dazu: konto/js/zustaende.js, Animationen: bewegung.css)
     .k-leer                   Leerzustand: span.k-leer-zeichen (Icon) + p.k-leer-titel (+ p.k-leer-text) + ein Knopf
     .k-fehlerbox              Fehler mit Knopf „Nochmal versuchen“ (rot, role="alert")
     .k-seiten-skelett         Platzhalter beim Laden der Seite: zwei Karten mit .skelett-Zeilen
   Hilfen
     .k-nur-sr                 nur für Screenreader sichtbar
     [hidden]                  bleibt immer verborgen
     [data-schreibt]           schreibender Knopf/Bereich: für Steuerberater (html[data-rolle="accountant"]) verborgen
   ========================================================================== */

@font-face { font-family: "Inter"; src: url("/fonts/inter-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/jetbrains-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  /* Eine Teal-Skala (Untitled UI) für App und Konto. Primär in hell ist Teal 700, in dunkel Teal 400. */
  --teal-25: #F6FEFC;
  --teal-50: #F0FDF9;
  --teal-100: #CCFBEF;
  --teal-200: #99F6E0;
  --teal-300: #5FE9D0;
  --teal-400: #2ED3B7;
  --teal-500: #15B79E;
  --teal-600: #0E9384;
  --teal-700: #107569;
  --teal-800: #125D56;
  --teal-900: #134E48;
  /* Knopfhöhen: Standard 44 px (Touch, schmale Fenster), ab 1024 px mit Maus 40 px; klein 36 px */
  --knopf-hoehe: 44px;
  --knopf-klein: 36px;
  --bg: #F9FAFB;
  --surface: #FFFFFF;
  --surface-2: #F2F4F7;
  --surface-3: #EAECF0;
  --border: #EAECF0;
  --border-strong: #D0D5DD;
  --text: #101828;
  --text-2: #344054;
  --text-3: #667085;
  --primary: var(--teal-700); /* weiße Schrift erreicht 5,3 : 1 (WCAG AA) */
  --primary-hover: var(--teal-800);
  --primary-soft: var(--teal-50);
  --primary-soft-2: var(--teal-100);
  --on-primary: #FFFFFF;
  /* Fokus-Ring: innen Fläche, außen Teal, gut sichtbar auf jedem Grund (WCAG 2.4.7) */
  --ring: 0 0 0 2px var(--surface), 0 0 0 4px var(--primary);
  --ring-weich: 0 0 0 4px var(--teal-100);
  /* Logo: Markenfarbe aus den Saldwell-Markendateien (saldwell.com), bewusst nur hier, nie für Bedienelemente */
  --logo-grund: #0F6E63;
  --logo-balken: #FFFFFF;
  --error: #D92D20;
  --error-text: #B42318;
  --error-soft: #FEF3F2;
  --error-border: #FDA29B;
  --success-text: #067647;
  --success-soft: #ECFDF3;
  --success-border: #ABEFC6;
  --warning-text: #B54708;
  --warning-soft: #FFFAEB;
  --warning-border: #FEDF89;
  --shadow-xs: 0 1px 2px rgb(16 24 40 / .05);
  --shadow-sm: 0 1px 3px rgb(16 24 40 / .1), 0 1px 2px rgb(16 24 40 / .06);
  --shadow-lg: 0 12px 16px -4px rgb(16 24 40 / .08), 0 4px 6px -2px rgb(16 24 40 / .03);
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --tap: 40px;
  --rand: 24px; /* seitlicher Abstand, wird auf kleinen Bildschirmen kleiner */
  color-scheme: light;
}

/* Dunkle Werte: einmal für das System, einmal zum Erzwingen per data-theme */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0C0D0F;
    --surface: #16171A;
    --surface-2: #1E1F23;
    --surface-3: #2A2B30;
    --border: #26272C;
    --border-strong: #36373D;
    --text: #F4F4F5;
    --text-2: #D4D4D8;
    --text-3: #A1A1AA;
    --primary: var(--teal-400);
    --primary-hover: var(--teal-300);
    --primary-soft: rgb(46 211 183 / .1);
    --primary-soft-2: rgb(46 211 183 / .22);
    --on-primary: #06201C;
    --ring-weich: 0 0 0 4px rgb(46 211 183 / .25);
    --logo-grund: #3CC4A8;
    --logo-balken: #06201C;
    --error: #F97066;
    --error-text: #FDA29B;
    --error-soft: rgb(240 68 56 / .1);
    --error-border: rgb(249 112 102 / .55);
    --success-text: #75E0A7;
    --success-soft: rgb(18 183 106 / .12);
    --success-border: rgb(117 224 167 / .35);
    --warning-text: #FEC84B;
    --warning-soft: rgb(247 144 9 / .12);
    --warning-border: rgb(254 200 75 / .35);
    --shadow-xs: 0 1px 2px rgb(0 0 0 / .4);
    --shadow-sm: 0 1px 3px rgb(0 0 0 / .5);
    --shadow-lg: 0 12px 16px -4px rgb(0 0 0 / .5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0C0D0F;
  --surface: #16171A;
  --surface-2: #1E1F23;
  --surface-3: #2A2B30;
  --border: #26272C;
  --border-strong: #36373D;
  --text: #F4F4F5;
  --text-2: #D4D4D8;
  --text-3: #A1A1AA;
  --primary: var(--teal-400);
  --primary-hover: var(--teal-300);
  --primary-soft: rgb(46 211 183 / .1);
  --primary-soft-2: rgb(46 211 183 / .22);
  --on-primary: #06201C;
  --ring-weich: 0 0 0 4px rgb(46 211 183 / .25);
  --logo-grund: #3CC4A8;
  --logo-balken: #06201C;
  --error: #F97066;
  --error-text: #FDA29B;
  --error-soft: rgb(240 68 56 / .1);
  --error-border: rgb(249 112 102 / .55);
  --success-text: #75E0A7;
  --success-soft: rgb(18 183 106 / .12);
  --success-border: rgb(117 224 167 / .35);
  --warning-text: #FEC84B;
  --warning-soft: rgb(247 144 9 / .12);
  --warning-border: rgb(254 200 75 / .35);
  --shadow-xs: 0 1px 2px rgb(0 0 0 / .4);
  --shadow-sm: 0 1px 3px rgb(0 0 0 / .5);
  --shadow-lg: 0 12px 16px -4px rgb(0 0 0 / .5);
  color-scheme: dark;
}
@media (pointer: coarse), (max-width: 899.98px) { :root { --tap: 44px; } }
@media (min-width: 1024px) and (pointer: fine) { :root { --knopf-hoehe: 40px; } }

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.5; background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
a { color: var(--primary); text-underline-offset: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
/* Steuerberater sehen nur lesend: firmenwahl.js setzt <html data-rolle> */
[data-rolle="accountant"] [data-schreibt] { display: none !important; }
:focus-visible { outline: none; box-shadow: var(--ring); }
/* Überschriften, die per Skript den Fokus bekommen (Ansichtswechsel), ohne Ring */
[tabindex="-1"]:focus { outline: none; box-shadow: none; }
/* Sprunglink „Zum Inhalt“ (navigation.js): erst beim ersten Tab sichtbar, wie in der App */
.k-sprunglink {
  position: fixed; z-index: 100; top: 12px; left: 12px; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border-radius: var(--radius-md); background: var(--surface); color: var(--text); font-size: 14px; font-weight: 600; text-decoration: none;
  box-shadow: var(--shadow-sm); translate: 0 calc(-100% - 24px);
}
.k-sprunglink:focus-visible { translate: 0 0; outline: none; box-shadow: var(--ring), var(--shadow-sm); }
#inhalt[tabindex="-1"]:focus { outline: none; }
@media (prefers-reduced-motion: no-preference) { .k-sprunglink { transition: translate var(--dauer-kurz, .15s) var(--kurve-raus, ease-out); } }
.k-nur-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.k-ikon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.k-ikon-platz { display: inline-block; width: 20px; height: 20px; flex: none; } /* Platzhalter bis ikonen.js das SVG einsetzt */
.k-ikon--sm, .k-ikon-platz.k-ikon--sm { width: 16px; height: 16px; } /* Chips und kleine Feldhinweise */

/* ---------- Seitengerüst ---------- */
.k-seite { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.k-kopf {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px var(--rand); padding-top: max(12px, env(safe-area-inset-top));
  background: var(--surface); border-bottom: 1px solid var(--border);
}
.k-marke { display: inline-flex; align-items: center; gap: 10px; min-width: 0; color: var(--text); text-decoration: none; border-radius: var(--radius-md); }
.k-marke:focus-visible { box-shadow: var(--ring); }
/* Saldwell-Zeichen wie auf saldwell.com (assets/brand/saldwell-mark-light/-dark.svg) */
.k-marke-zeichen { display: grid; place-items: center; width: 32px; height: 32px; flex: none; }
.k-logo { display: block; width: 100%; height: 100%; }
.k-logo-grund { fill: var(--logo-grund); transition: fill var(--dauer-mittel, .2s); }
.k-logo-balken { fill: var(--logo-balken); transition: fill var(--dauer-mittel, .2s); }
.k-logo-balken--2 { opacity: .72; }
.k-marke-name { font-size: 17px; font-weight: 700; letter-spacing: -.015em; white-space: nowrap; }
.k-kopf-aktionen { display: flex; align-items: center; gap: 8px; min-width: 0; }

.k-haupt { flex: 1; width: 100%; max-width: calc(440px + 2 * var(--rand)); margin: 0 auto; padding: 40px var(--rand) 32px; }
.k-haupt--breit { max-width: calc(960px + 2 * var(--rand)); }
.k-fuss {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px;
  padding: 16px var(--rand); padding-bottom: max(16px, env(safe-area-inset-bottom));
  font-size: 13px; color: var(--text-3);
}
.k-fuss a { display: inline-flex; align-items: center; justify-content: center; min-height: 24px; color: inherit; }
.k-fuss a:hover { color: var(--text); }
/* Leitsatz, dezent: eigene Zeile unter den Links */
.k-fuss-slogan { flex-basis: 100%; text-align: center; font-size: 12px; letter-spacing: .01em; opacity: .8; }

/* Textlinks außerhalb von Fließtext (Fußzeile, „Passwort vergessen?“, „Alle ansehen“ in Kartenköpfen):
   unsichtbare Trefferfläche um den Link, mindestens 24 px, auf Touch 44 px. Verschiebt kein Layout.
   inset in % bezieht sich auf den Link selbst (position: relative): 50% - Ziel/2 = halber Überstand. */
.k-fuss a, .k-label-zeile .k-link, .u-kopfzeile .k-link { --k-ziel: 24px; position: relative; }
.k-fuss a::after, .k-label-zeile .k-link::after, .u-kopfzeile .k-link::after {
  content: ""; position: absolute;
  inset: min(0px, calc(50% - var(--k-ziel) / 2)) min(0px, calc(50% - var(--k-ziel) / 2));
}
/* Kleine Knöpfe (Mehr-Menü, Prüfsumme kopieren) und Schalter: gleiche unsichtbare Fläche, mindestens 36 px mit Maus,
   auf Touch 44 px. Der Schalter nutzt ::before, weil ::after sein runder Griff ist. */
.r-mehr, .a-kopieren, .r-schalter { --k-ziel: 36px; position: relative; }
.r-mehr::after, .a-kopieren::after, .r-schalter::before {
  content: ""; position: absolute;
  inset: min(0px, calc(50% - var(--k-ziel) / 2)) min(0px, calc(50% - var(--k-ziel) / 2));
}

/* ---------- Karten und Texte ---------- */
.k-karte {
  display: flex; flex-direction: column; gap: 20px; padding: 32px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); box-shadow: var(--shadow-sm);
}
.k-karte--erfolg { align-items: center; text-align: center; }
.k-karte--erfolg .k-aktionen { justify-content: center; }
.k-karte + .k-karte { margin-top: 16px; }
.k-haupt > .k-links { margin-top: 12px; }
.k-kartenkopf { display: flex; flex-direction: column; gap: 6px; }
.k-titel { font-size: 24px; font-weight: 700; letter-spacing: -.02em; line-height: 1.25; overflow-wrap: anywhere; }
/* Kartentitel: gemeinsamer Baustein; r-/u-/a-titel sind ältere Namen derselben Überschrift */
.k-kartentitel, .r-titel, .u-titel, .a-titel { display: block; font-size: 17px; font-weight: 600; letter-spacing: -.01em; color: var(--text); }
.k-unter, .k-text { font-size: 15px; color: var(--text-3); overflow-wrap: anywhere; }
.k-text strong, .k-unter strong { color: var(--text); font-weight: 600; }
.k-klein { font-size: 13px; color: var(--text-3); }
.k-trenner { height: 1px; border: 0; margin: 0; background: var(--border); }
/* Featured Icon (Untitled UI): Symbol in heller runder Kachel mit Ring. Für Schrittköpfe, Leerzustände,
   Erfolg und Fehler, nie in Listen oder Knöpfen. Größen sm 32 / md 40 / lg 48 (Standard) / xl 56 px,
   Symbol darin 16 / 20 / 24 / 28 px. Töne: Marke (Standard), --erfolg, --fehler, --warnung, --neutral.
   .k-symbol ist der ältere Name derselben Kachel (lg) und bleibt gültig. */
.k-featured, .k-symbol, .k-leer-zeichen {
  --kf-groesse: 48px; --kf-ikon: 24px; --kf-ring: 8px;
  --kf-flaeche: var(--primary-soft-2); --kf-ringfarbe: var(--primary-soft); --kf-farbe: var(--primary);
  display: grid; place-items: center; width: var(--kf-groesse); height: var(--kf-groesse); flex: none; border-radius: 50%;
  background: var(--kf-flaeche); color: var(--kf-farbe);
  box-shadow: 0 0 0 var(--kf-ring) var(--kf-ringfarbe);
  margin: calc(var(--kf-ring) / 2) 0 calc(var(--kf-ring) / 2) calc(var(--kf-ring) / 2); /* Ring ragt links nicht über den Text */
}
.k-featured > .k-ikon, .k-featured > .k-ikon-platz, .k-symbol > .k-ikon, .k-symbol > .k-ikon-platz, .k-leer-zeichen > .k-ikon, .k-leer-zeichen > .k-ikon-platz { width: var(--kf-ikon); height: var(--kf-ikon); }
.k-featured--sm { --kf-groesse: 32px; --kf-ikon: 16px; --kf-ring: 4px; }
.k-featured--md { --kf-groesse: 40px; --kf-ikon: 20px; --kf-ring: 6px; }
.k-featured--lg { --kf-groesse: 48px; --kf-ikon: 24px; --kf-ring: 8px; }
.k-featured--xl { --kf-groesse: 56px; --kf-ikon: 28px; --kf-ring: 10px; }
.k-featured--erfolg, .k-symbol--erfolg { --kf-flaeche: color-mix(in srgb, var(--success-border) 45%, var(--success-soft)); --kf-ringfarbe: var(--success-soft); --kf-farbe: var(--success-text); }
.k-featured--fehler, .k-symbol--fehler { --kf-flaeche: color-mix(in srgb, var(--error-border) 45%, var(--error-soft)); --kf-ringfarbe: var(--error-soft); --kf-farbe: var(--error-text); }
.k-featured--warnung { --kf-flaeche: color-mix(in srgb, var(--warning-border) 45%, var(--warning-soft)); --kf-ringfarbe: var(--warning-soft); --kf-farbe: var(--warning-text); }
.k-featured--neutral { --kf-flaeche: var(--surface-3); --kf-ringfarbe: var(--surface-2); --kf-farbe: var(--text-2); }
.k-karte--erfolg .k-featured, .k-karte--erfolg .k-symbol { margin-left: 0; } /* zentriert */
.k-raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; }
.k-liste { list-style: none; padding: 0; display: flex; flex-direction: column; }
.k-liste > li { padding: 12px 0; border-top: 1px solid var(--border); }
.k-liste > li:first-child { border-top: 0; }
/* Status-Chip: ein Baustein für Rechnungen, Angebote, Serien, Übersicht, Team und Kunden.
   Punkt plus Text; Farbe nur dezent, Text mindestens 4,5 : 1 auf der Chipfläche (hell und dunkel). */
.k-chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 24px; padding: 0 9px 0 8px; border-radius: 99px;
  background: var(--surface-2); color: var(--text-2); font-size: 13px; font-weight: 500; line-height: 1.2; white-space: nowrap;
}
/* Grundform = offen bzw. neutral (Storno, Erstellt) */
.k-chip::before { content: ""; width: 6px; height: 6px; flex: none; border-radius: 50%; background: var(--text-3); }
.k-chip--ohne-punkt::before { content: none; }
.k-chip--ohne-punkt { padding: 0 10px; }
.k-chip--entwurf, .k-chip--pausiert, .k-chip--keiner { color: var(--text-3); }
.k-chip--teilweise::before { background: var(--warning-text); }
.k-chip--bezahlt, .k-chip--angenommen, .k-chip--aktiv { background: var(--success-soft); color: var(--success-text); }
.k-chip--bezahlt::before, .k-chip--angenommen::before, .k-chip--aktiv::before { background: var(--success-text); }
.k-chip--ueberfaellig, .k-chip--abgelehnt { background: var(--error-soft); color: var(--error-text); }
.k-chip--ueberfaellig::before, .k-chip--abgelehnt::before { background: var(--error); }
.k-chip--abgelaufen { background: var(--warning-soft); color: var(--warning-text); }
.k-chip--abgelaufen::before { background: var(--warning-text); }
.k-chip--gesendet, .k-chip--marke { background: var(--primary-soft); color: var(--primary); }
.k-chip--gesendet::before, .k-chip--marke::before { background: var(--primary); }
.k-chip--rahmen { background: none; box-shadow: inset 0 0 0 1px var(--border-strong); }
.k-chip--umgewandelt::before { width: 8px; height: 5px; border-radius: 0; background: none; border: solid currentColor; border-width: 0 0 2px 2px; rotate: -45deg; margin-top: -2px; }
.k-marke-plan { display: inline-flex; align-items: center; min-height: 22px; padding: 0 8px; border-radius: 99px; background: var(--primary-soft); color: var(--primary); font-size: 12px; font-weight: 600; }

/* ---------- Formulare ---------- */
.k-formular { display: flex; flex-direction: column; gap: 16px; }
.k-feld { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.k-label { font-size: 14px; font-weight: 500; color: var(--text-2); }
.k-label-zeile { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.k-label-zeile .k-link { font-size: 14px; }
.k-optional { font-weight: 400; color: var(--text-3); }
.k-eingabe {
  width: 100%; min-width: 0; min-height: var(--tap); padding: 8px 12px;
  font-size: 16px; /* < 16 px würde iOS beim Antippen hineinzoomen */
  color: var(--text); background: var(--surface);
  border: 1px solid var(--border-strong); border-radius: var(--radius-md); box-shadow: var(--shadow-xs);
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.k-eingabe:focus-visible { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary), var(--ring-weich); }
.k-eingabe::placeholder { color: var(--text-3); opacity: 1; } /* Barrierefreiheit: 4,8 : 1 statt 3,3 : 1 (WCAG 1.4.3) */
.k-eingabe:disabled { background: var(--surface-2); color: var(--text-3); }
.k-eingabe[aria-invalid="true"] { border-color: var(--error-border); background: var(--error-soft); }
.k-eingabe[aria-invalid="true"]:focus-visible { border-color: var(--error); box-shadow: 0 0 0 4px var(--error-soft); }
.k-feld-hinweis { font-size: 13px; color: var(--text-3); transition: color .15s; }
.k-feld-hinweis.ist-ok { color: var(--success-text); }
.k-feld-hinweis.ist-fehler { color: var(--error-text); }

/* Passwort mit Knopf zum Anzeigen */
.k-passwort { position: relative; display: flex; }
.k-passwort .k-eingabe { padding-right: 48px; }
.k-auge {
  position: absolute; top: 50%; right: 4px; translate: 0 -50%;
  display: grid; place-items: center; width: 36px; height: 36px; padding: 0;
  border: 0; border-radius: var(--radius-sm); background: none; color: var(--text-3); cursor: pointer;
  transition: background-color .15s, color .15s;
}
.k-auge:hover { background: var(--surface-2); color: var(--text); }
.k-auge .k-ikon { width: 20px; height: 20px; }
.k-auge .k-auge-zu { display: none; }
.k-auge[aria-pressed="true"] .k-auge-auf { display: none; }
.k-auge[aria-pressed="true"] .k-auge-zu { display: block; }

/* Kontrollkästchen mit Text */
.k-haken { position: relative; display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-2); cursor: pointer; }
.k-haken input {
  appearance: none; -webkit-appearance: none; flex: none; width: 20px; height: 20px; margin: 1px 0 0;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer;
  display: grid; place-items: center; transition: background-color .15s, border-color .15s;
}
.k-haken input::after {
  content: ""; width: 10px; height: 6px; margin-top: -2px;
  border: solid var(--on-primary); border-width: 0 0 2px 2px; rotate: -45deg; scale: 0; transition: scale .15s var(--ease);
}
.k-haken input:checked { background: var(--primary); border-color: var(--primary); }
.k-haken input:checked::after { scale: 1; }
.k-haken input[aria-invalid="true"] { border-color: var(--error); box-shadow: 0 0 0 4px var(--error-soft); }
.k-haken input:focus-visible { box-shadow: var(--ring); }
.k-haken:has(input[aria-invalid="true"]) { color: var(--error-text); }
.k-haken a { font-weight: 500; }

/* ---------- Knöpfe und Links ---------- */
.k-knopf {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--knopf-hoehe); padding: 8px 16px; max-width: 100%;
  border: 1px solid transparent; border-radius: var(--radius-md);
  background: var(--primary); color: var(--on-primary); box-shadow: var(--shadow-xs);
  font-size: 14px; font-weight: 600; line-height: 1.25; text-align: center; text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s, transform .1s, opacity .15s;
  -webkit-tap-highlight-color: transparent;
}
.k-knopf:hover { background: var(--primary-hover); }
.k-knopf:active { transform: scale(.98); }
.k-knopf .k-ikon { width: 20px; height: 20px; }
.k-knopf--zweit { background: var(--surface); color: var(--text-2); border-color: var(--border-strong); }
.k-knopf--zweit:hover { background: var(--surface-2); color: var(--text); }
.k-knopf--geist { background: transparent; color: var(--text-3); box-shadow: none; }
.k-knopf--geist:hover { background: var(--surface-2); color: var(--text); }
.k-knopf--gefahr { background: var(--error); color: #fff; }
.k-knopf--gefahr:hover { background: var(--error-text); }
/* Weiß auf hellem Rot (#F97066) hätte im Dunkelmodus nur 2,8 : 1: dort das kräftige Rot (4,8 : 1) */
:root[data-theme="dark"] .k-knopf--gefahr { background: #D92D20; }
:root[data-theme="dark"] .k-knopf--gefahr:hover { background: #B42318; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .k-knopf--gefahr { background: #D92D20; } }
/* Fokusring für alle Knöpfe, auch die ohne eigenen Schatten (Geist) (WCAG 2.4.7) */
.k-knopf:focus-visible, .k-knopf--geist:focus-visible { box-shadow: var(--ring); }
.k-knopf--block { width: 100%; }
.k-knopf--klein { min-height: var(--knopf-klein); padding: 6px 12px; font-size: 14px; }
.k-knopf:disabled, .k-knopf[aria-disabled="true"] { opacity: .6; cursor: not-allowed; transform: none; }
/* Während des Sendens: Ladekreis vor dem Text */
.k-knopf[aria-busy="true"] { cursor: progress; opacity: .85; }
.k-knopf[aria-busy="true"]::before {
  content: ""; width: 16px; height: 16px; flex: none; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent; animation: k-drehen .7s linear infinite;
}
.k-aktionen { display: flex; flex-wrap: wrap; gap: 10px; }
.k-link { color: var(--primary); font-weight: 600; text-decoration: none; border-radius: var(--radius-sm); }
.k-link:hover { text-decoration: underline; }
/* Frage und Link auf einer Grundlinie; wird es eng, bricht der Link sauber in die nächste Zeile */
.k-links { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 0 6px; font-size: 15px; line-height: 1.5; color: var(--text-3); text-align: center; }
.k-links > * { display: inline-flex; align-items: center; min-height: 44px; }

/* Hell/Dunkel-Knopf im Kopf (wie Mond/Sonne in der App) */
.k-thema-knopf { width: max(36px, var(--tap)); padding: 0; flex: none; }
.k-thema-knopf .k-thema-sonne { display: none; }
:root[data-theme="dark"] .k-thema-knopf .k-thema-mond { display: none; }
:root[data-theme="dark"] .k-thema-knopf .k-thema-sonne { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .k-thema-knopf .k-ikon { transition: rotate var(--dauer-mittel, .2s) var(--kurve-raus, var(--ease)); }
  .k-thema-knopf:active .k-ikon { rotate: -20deg; }
}

/* ---------- Meldungen ---------- */
.k-hinweis, .k-warnung, .k-fehler, .k-erfolg {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px;
  border: 1px solid; border-radius: var(--radius-lg); font-size: 14px; line-height: 1.45; overflow-wrap: anywhere;
}
/* Symbole der Meldungen: Lucide-Linien (info, alert-triangle, alert, check-circle) als Maske in der Tonfarbe,
   20 px und Strich 2 wie überall. Keine Buchstaben oder Unicode-Zeichen als Symbol. */
:root {
  --k-maske-info: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 16v-4'/%3E%3Cpath d='M12 8h.01'/%3E%3C/svg%3E");
  --k-maske-warnung: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3'/%3E%3Cpath d='M12 9v4'/%3E%3Cpath d='M12 17h.01'/%3E%3C/svg%3E");
  --k-maske-fehler: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 8v4'/%3E%3Cpath d='M12 16h.01'/%3E%3C/svg%3E");
  --k-maske-erfolg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E");
}
.k-hinweis::before, .k-warnung::before, .k-fehler::before, .k-erfolg::before, .k-fehlerbox-text::before {
  content: ""; flex: none; width: 20px; height: 20px; background: currentColor;
  -webkit-mask: var(--k-maske-info) center / 20px no-repeat; mask: var(--k-maske-info) center / 20px no-repeat;
}
/* Ruhig: keine farbigen Balken. Hinweis, Warnung und Erfolg sind grau, nur das Symbol trägt Farbe. */
.k-hinweis, .k-warnung, .k-erfolg { background: var(--surface-2); border-color: var(--border); color: var(--text-2); }
.k-hinweis::before { background: var(--primary); }
.k-warnung::before { background: var(--warning-text); -webkit-mask-image: var(--k-maske-warnung); mask-image: var(--k-maske-warnung); }
.k-fehler { background: var(--error-soft); border-color: var(--error-border); color: var(--error-text); }
.k-fehler::before, .k-fehlerbox-text::before { background: var(--error); -webkit-mask-image: var(--k-maske-fehler); mask-image: var(--k-maske-fehler); }
.k-erfolg::before { background: var(--success-text); -webkit-mask-image: var(--k-maske-erfolg); mask-image: var(--k-maske-erfolg); }
/* Leere Meldung nimmt keinen Platz ein (bleibt aber als aria-live-Bereich im DOM) */
.k-meldung:empty { display: none; }
.k-laden { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--text-3); }
.k-laden::before {
  content: ""; width: 18px; height: 18px; flex: none; border-radius: 50%;
  border: 2px solid var(--primary); border-right-color: transparent; animation: k-drehen .7s linear infinite;
}

/* ---------- Zustände der Arbeitsseiten ---------- */
/* Leerzustand nach Untitled UI: Featured Icon lg, Titel, ein Satz, ein Knopf */
.k-leer {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 28px 16px;
  text-align: center; border: 1px dashed var(--border-strong); border-radius: var(--radius-lg);
}
.k-leer-zeichen { margin: 8px 0 12px; } /* Featured Icon lg (Basis oben bei .k-featured), zentriert über dem Titel */
.k-leer-titel { font-size: 15px; font-weight: 600; color: var(--text); overflow-wrap: anywhere; }
.k-leer-text { max-width: 44ch; font-size: 14px; color: var(--text-3); overflow-wrap: anywhere; }
.k-leer > .k-knopf { margin-top: 8px; }

/* Fehler mit „Nochmal versuchen“ */
.k-fehlerbox {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 12px 14px;
  background: var(--error-soft); border: 1px solid var(--error-border); border-radius: var(--radius-lg);
  font-size: 14px; color: var(--error-text);
}
.k-fehlerbox-text { display: flex; gap: 10px; align-items: flex-start; flex: 1 1 220px; min-width: 0; overflow-wrap: anywhere; }
.k-fehlerbox .k-knopf { flex: none; }

/* Platzhalter beim Laden: gleiche Karten wie die echte Seite, damit nichts springt */
.k-seiten-skelett { display: flex; flex-direction: column; gap: 16px; }
.k-seiten-skelett .k-karte { animation: none; }
.k-seiten-skelett .k-karte + .k-karte { margin-top: 0; }
.skelett > .skelett-zeile:nth-child(5n+1) { width: 90%; }
.skelett > .skelett-zeile:nth-child(5n+2) { width: 70%; }
.skelett > .skelett-zeile:nth-child(5n+3) { width: 80%; }
.skelett > .skelett-zeile:nth-child(5n+4) { width: 55%; }
.skelett > .skelett-zeile:nth-child(5n) { width: 75%; }
.skelett > .skelett-zeile--gross:first-child { width: 40%; }
.skelett--liste { gap: 14px; padding: 8px 0; }

/* Steuerberater: ruhiger Hinweis oben */
.k-nur-lesen { margin-bottom: 16px; }


/* ---------- Ruhige Bewegung ---------- */
@keyframes k-drehen { to { rotate: 360deg; } }
@keyframes k-einblenden { from { opacity: 0; translate: 0 6px; } }
@media (prefers-reduced-motion: no-preference) {
  .k-karte, .k-hinweis, .k-warnung, .k-fehler, .k-erfolg { animation: k-einblenden .24s var(--ease); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  /* Ladekreise drehen langsam weiter, sonst sieht man nicht, dass etwas passiert */
  .k-knopf[aria-busy="true"]::before, .k-laden::before { animation: k-drehen 2s linear infinite !important; }
  .k-knopf:active { transform: none; }
}

/* ---------- Barrierefreiheit: Fokus nie unter festen Leisten (WCAG 2.4.7, 2.4.11) ----------
   Der Browser scrollt ein fokussiertes Element nur so weit, dass es über der Tab-Leiste (Handy)
   bzw. unter dem festen Kopf (Desktop) bleibt. Leisten selbst: navigation.css */
@media (max-width: 899.98px) {
  html:has(.k-seite--nav) { scroll-padding-bottom: calc(var(--k-tab-hoehe, 60px) + env(safe-area-inset-bottom) + 88px); } /* Tab-Leiste und runder Knopf */
}
@media (min-width: 900px) {
  html:has(.k-seite--nav) { scroll-padding-top: calc(var(--k-kopf-hoehe, 61px) + 16px); }
}

/* ---------- Touch, Handy und Tablet: Trefferflächen mindestens 44 px ---------- */
@media (pointer: coarse), (max-width: 899.98px) {
  .k-knopf--klein { min-height: 44px; }
  .k-passwort .k-eingabe { padding-right: 52px; }
  .k-auge { right: 0; width: 44px; height: 44px; }
  /* Kontrollkästchen: ganze Zeile antippbar, mindestens 44 px hoch */
  .k-haken { min-height: 44px; padding-top: 2px; }
  /* Textlinks in Linkzeilen bekommen etwas Luft zum Antippen */
  .k-label-zeile .k-link { display: inline-flex; align-items: center; min-height: 44px; }
  .k-thema-knopf { width: 44px; }
  .k-label-zeile { align-items: center; }
  .k-fuss a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 4px; }
  .k-marke { min-height: 44px; min-width: 44px; }
  /* Kontrollkästchen: Feld selbst 44 × 44 px, sichtbar bleibt das 20-px-Kästchen (::before).
     Negative Ränder halten Lage und Abstand zum Text wie vorher. */
  .k-haken input { position: relative; width: 44px; height: 44px; margin: -11px -12px -12px; border: 0; border-radius: 0; background: none; }
  .k-haken input::before {
    content: ""; position: absolute; inset: 12px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
    background: var(--surface); transition: background-color .15s, border-color .15s;
  }
  .k-haken input::after { position: relative; }
  .k-haken input:checked { background: none; }
  .k-haken input:checked::before { background: var(--primary); border-color: var(--primary); }
  .k-haken input[aria-invalid="true"] { box-shadow: none; }
  .k-haken input[aria-invalid="true"]::before { border-color: var(--error); box-shadow: 0 0 0 4px var(--error-soft); }
  .k-haken input:focus-visible { box-shadow: none; }
  .k-haken input:focus-visible::before { box-shadow: var(--ring); }
  .k-haken input:disabled::before { opacity: .6; }
  .k-fuss a, .k-label-zeile .k-link, .u-kopfzeile .k-link { --k-ziel: 44px; }
  .r-mehr, .a-kopieren, .r-schalter { --k-ziel: 44px; }
  .k-marke { justify-content: center; }
}

/* ---------- Kleine Bildschirme ---------- */
@media (max-width: 600px) {
  :root { --rand: 16px; }
  .k-haupt { padding-top: 24px; }
  .k-karte { padding: 24px 20px; gap: 18px; }
  .k-titel { font-size: 22px; }
}
@media (max-width: 360px) {
  /* z. B. Galaxy Fold zugeklappt (280 px) */
  :root { --rand: 12px; }
  .k-haupt { padding-top: 16px; padding-bottom: 20px; }
  .k-karte { padding: 20px 14px; gap: 16px; border-radius: var(--radius-lg); }
  .k-titel { font-size: 20px; }
  .k-unter, .k-text { font-size: 14px; }
  .k-marke-name { font-size: 16px; }
  .k-marke-zeichen { width: 32px; height: 32px; }
  .k-aktionen { flex-direction: column; }
  .k-aktionen > .k-knopf { width: 100%; }
  .k-hinweis, .k-warnung, .k-fehler, .k-erfolg { padding: 12px; }
  .k-leer { padding: 22px 12px; }
  .k-fehlerbox .k-knopf { width: 100%; }
}

@media print {
  .k-kopf, .k-fuss { display: none; }
  .k-karte { box-shadow: none; }
}

/* Sanfter Seitenwechsel auch auf Konto-Seiten ohne navigation.css (die Gratis-App meldet sich dafür an) */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}

/* Passwort-Stärke (Registrierung) */
/* Stärke-Anzeige unter dem Passwort (konto/js/passwort-staerke.js setzt data-stufe = leer|0..4),
   Hinweis „Konto gibt es schon“ am E-Mail-Feld, ruhige Erfolgszeile auf der Anmeldung. */
.k-staerke { display: flex; flex-direction: column; gap: 6px; --k-staerke-farbe: var(--border-strong); }
.k-staerke-balken { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.k-staerke-balken > span { height: 4px; border-radius: 2px; background: var(--surface-3); transition: background-color .2s var(--ease); }
.k-staerke[data-stufe="0"] { --k-staerke-farbe: var(--error); }
.k-staerke[data-stufe="1"] { --k-staerke-farbe: var(--error); }
.k-staerke[data-stufe="2"] { --k-staerke-farbe: var(--warning-text); }
.k-staerke[data-stufe="3"], .k-staerke[data-stufe="4"] { --k-staerke-farbe: var(--success-text); }
.k-staerke[data-stufe="0"] .k-staerke-balken > span:nth-child(-n+1),
.k-staerke[data-stufe="1"] .k-staerke-balken > span:nth-child(-n+1),
.k-staerke[data-stufe="2"] .k-staerke-balken > span:nth-child(-n+2),
.k-staerke[data-stufe="3"] .k-staerke-balken > span:nth-child(-n+3),
.k-staerke[data-stufe="4"] .k-staerke-balken > span { background: var(--k-staerke-farbe); }
.k-staerke[data-stufe="0"] .k-staerke-wort,
.k-staerke[data-stufe="1"] .k-staerke-wort { color: var(--error-text); }
.k-staerke[data-stufe="2"] .k-staerke-wort { color: var(--warning-text); }
.k-staerke[data-stufe="3"] .k-staerke-wort,
.k-staerke[data-stufe="4"] .k-staerke-wort { color: var(--success-text); }
.k-staerke-wort { margin: 0; }

.k-schon-konto { display: flex; flex-direction: column; gap: 8px; margin-top: 2px; font-size: 14px; color: var(--text-2); }
.k-schon-konto-text { margin: 0; }
.k-schon-konto-aktionen { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.k-schon-konto-aktionen .k-link { font-size: 14px; }

.k-bestaetigt { margin: 4px 0 0; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--success-text); }
.k-bestaetigt .k-ikon-platz { width: 16px; height: 16px; }

@media (prefers-reduced-motion: reduce) {
  .k-staerke-balken > span { transition: none; }
}

/* Passwortpunkte auf einer Linie
   Inter hebt den Punkt (U+2022) per Kontext-Alternative (calt) auf Versalhöhe (bullet.case), wenn ein
   Großbuchstabe in der Nähe steht. Im Passwortfeld zeigen Mobilbrowser das zuletzt getippte Zeichen
   kurz im Klartext: Ist es ein Großbuchstabe, springen die Punkte daneben nach oben. Ohne calt bleiben
   alle Punkte auf gleicher Höhe. Im Klartext (Auge-Knopf, type=text) greift die Regel nicht. */
input[type="password"] { font-feature-settings: "calt" 0; }

/* Postfach-Ansicht nach Registrierung */
/* „Bestätige deine E-Mail“ (konto/registrieren.html #ansicht-erfolg) nach Untitled UI „Check your email“,
   Linear, Notion: Symbol, Titel, Adresse, ein Hauptknopf (passender Mail-Anbieter aus mail-anbieter.js oder
   „Zur Anmeldung“), darunter ruhige Textknöpfe „Erneut senden“ (mit Countdown) und „Ändern“, ganz unten
   „Zurück zur Anmeldung“ als Textlink. Abstände im 8er-Raster, Farben nur über Variablen (Dunkelmodus). */
.k-postfach { gap: 24px; }
.k-postfach .k-kartenkopf { gap: 8px; max-width: 360px; }
.k-postfach .k-text { line-height: 1.5; }
.k-postfach-adresse { overflow-wrap: anywhere; }
.k-postfach-aktion { display: flex; flex-direction: column; gap: 12px; width: 100%; }
.k-postfach-aktion .k-knopf .k-ikon, .k-postfach-aktion .k-knopf .k-ikon-platz { width: 16px; height: 16px; }
.k-postfach-hilfe { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; }
.k-postfach-hilfe > p { margin: 0; }
.k-postfach-zeile { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 0 4px; font-size: 14px; line-height: 1.5; color: var(--text-3); }
.k-postfach-status { font-weight: 500; color: var(--text-2); }
.k-postfach-status:empty { margin-top: -8px; } /* leer: kein doppelter Abstand, Live-Bereich bleibt im Baum */
/* Textknopf: sieht aus wie ein Link, ist aber eine Aktion (button). Unsichtbare Trefferfläche 24 px, Touch 44 px */
.k-textknopf {
  --k-ziel: 24px; position: relative; padding: 0 2px; margin: 0 -2px; border: 0; background: none;
  font: inherit; font-weight: 600; color: var(--primary); cursor: pointer; border-radius: var(--radius-sm);
  font-variant-numeric: tabular-nums; -webkit-tap-highlight-color: transparent;
}
.k-textknopf::after { content: ""; position: absolute; inset: min(0px, calc(50% - var(--k-ziel) / 2)) min(0px, calc(50% - var(--k-ziel) / 2)); }
.k-textknopf:hover { text-decoration: underline; }
.k-textknopf:focus-visible { outline: none; box-shadow: var(--ring); }
.k-textknopf[aria-busy="true"] { cursor: progress; opacity: .7; }
.k-textknopf[aria-disabled="true"] { color: var(--text-3); font-weight: 500; cursor: default; text-decoration: none; }
.k-postfach-zurueck { display: inline-flex; align-items: center; gap: 8px; min-height: 24px; font-size: 14px; color: var(--text-3); }
.k-postfach-zurueck:hover { color: var(--text); text-decoration: none; }
.k-postfach-zurueck .k-ikon, .k-postfach-zurueck .k-ikon-platz { width: 16px; height: 16px; }
@media (pointer: coarse), (max-width: 899.98px) {
  /* Zeilen selbst 44 px hoch, damit sich die Trefferflächen von „Erneut senden“ und „Ändern“ nicht überlappen */
  .k-postfach-hilfe { gap: 0; }
  .k-postfach-zeile { min-height: 44px; align-items: center; }
  .k-postfach-hilfe > .k-klein { margin-top: 4px; }
  .k-postfach-status:empty { margin-top: 0; }
  .k-textknopf { --k-ziel: 44px; }
  .k-postfach-zurueck { min-height: 44px; }
}
@media (max-width: 360px) {
  .k-postfach { gap: 20px; }
  .k-postfach-zeile { font-size: 13px; }
}

/* ---------- Schalter (an/aus), z. B. Erinnerungen und Ansicht der Übersicht ---------- */
.r-schalter {
  appearance: none; -webkit-appearance: none; position: relative; flex: none; width: 44px; height: 26px; margin: 0;
  border-radius: 99px; background: var(--border-strong); cursor: pointer; transition: background-color .2s var(--ease);
}
.r-schalter::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 2px rgb(16 24 40 / .2); transition: translate .2s var(--ease);
}
.r-schalter:checked { background: var(--primary); }
.r-schalter:checked::after { translate: 18px 0; }
.r-schalter:focus-visible { box-shadow: var(--ring); }
@media (pointer: coarse), (max-width: 899.98px) {
  /* Das Label daneben ist mit antippbar, der Schalter selbst etwas größer */
  .r-schalter { width: 48px; height: 28px; }
  .r-schalter::after { width: 22px; height: 22px; }
  .r-schalter:checked::after { translate: 20px 0; }
}
