/* automail - ruhige, helle/dunkle Oberflaeche. Nur Systemschrift, keine externen Quellen (CSP 'self'). */

/* ------------------------------------------------------------------ */
/* Farben + Masse                                                      */
/* ------------------------------------------------------------------ */
:root {
  color-scheme: light;
  --bg: #f7f7f8;
  --flaeche: #ffffff;
  --flaeche-2: #f2f2f4;
  --flaeche-3: #e9e9ed;
  --linie: rgba(15, 15, 25, 0.08);
  --linie-stark: rgba(15, 15, 25, 0.14);
  --text: #111114;
  --text-2: #55555f;
  --text-3: #8d8d98;
  --akzent: #5b5bd6;
  --akzent-hover: #4f4fc4;
  --akzent-text: #ffffff;
  --akzent-weich: rgba(91, 91, 214, 0.10);
  --akzent-ring: rgba(91, 91, 214, 0.28);
  --gruen: #18794e;
  --gruen-weich: rgba(24, 121, 78, 0.10);
  --rot: #d4372c;
  --rot-weich: rgba(212, 55, 44, 0.09);
  --gelb: #a35200;
  --gelb-weich: rgba(230, 140, 20, 0.13);
  --grau-weich: rgba(15, 15, 25, 0.06);
  --schatten-1: 0 1px 2px rgba(15, 15, 25, 0.04), 0 1px 1px rgba(15, 15, 25, 0.02);
  --schatten-2: 0 1px 2px rgba(15, 15, 25, 0.04), 0 8px 24px -6px rgba(15, 15, 25, 0.08);
  --schatten-3: 0 2px 6px rgba(15, 15, 25, 0.06), 0 24px 60px -12px rgba(15, 15, 25, 0.22);
  --radius: 14px;
  --radius-klein: 10px;
  --radius-gross: 16px;
  --schnell: 160ms;
  --kurve: cubic-bezier(0.2, 0.7, 0.2, 1);
  --seitenleiste: 232px;
  --schrift: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Segoe UI Mono", Consolas, monospace;
}

/* dunkel: folgt dem System, ausser der Nutzer hat "hell" gewaehlt */
@media (prefers-color-scheme: dark) {
  :root:not([data-thema="hell"]) {
    color-scheme: dark;
    --bg: #0c0c0e;
    --flaeche: #151518;
    --flaeche-2: #1c1c20;
    --flaeche-3: #26262b;
    --linie: rgba(255, 255, 255, 0.07);
    --linie-stark: rgba(255, 255, 255, 0.13);
    --text: #ededf0;
    --text-2: #a5a5b0;
    --text-3: #6f6f7a;
    --akzent: #7b7bf0;
    --akzent-hover: #8e8ef5;
    --akzent-text: #ffffff;
    --akzent-weich: rgba(123, 123, 240, 0.14);
    --akzent-ring: rgba(123, 123, 240, 0.35);
    --gruen: #4cc38a;
    --gruen-weich: rgba(76, 195, 138, 0.12);
    --rot: #ff6b5f;
    --rot-weich: rgba(255, 107, 95, 0.12);
    --gelb: #f1a64a;
    --gelb-weich: rgba(241, 166, 74, 0.13);
    --grau-weich: rgba(255, 255, 255, 0.06);
    --schatten-1: 0 1px 2px rgba(0, 0, 0, 0.3);
    --schatten-2: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px -6px rgba(0, 0, 0, 0.45);
    --schatten-3: 0 2px 6px rgba(0, 0, 0, 0.4), 0 24px 60px -12px rgba(0, 0, 0, 0.7);
  }
}
:root[data-thema="dunkel"] {
  color-scheme: dark;
  --bg: #0c0c0e;
  --flaeche: #151518;
  --flaeche-2: #1c1c20;
  --flaeche-3: #26262b;
  --linie: rgba(255, 255, 255, 0.07);
  --linie-stark: rgba(255, 255, 255, 0.13);
  --text: #ededf0;
  --text-2: #a5a5b0;
  --text-3: #6f6f7a;
  --akzent: #7b7bf0;
  --akzent-hover: #8e8ef5;
  --akzent-text: #ffffff;
  --akzent-weich: rgba(123, 123, 240, 0.14);
  --akzent-ring: rgba(123, 123, 240, 0.35);
  --gruen: #4cc38a;
  --gruen-weich: rgba(76, 195, 138, 0.12);
  --rot: #ff6b5f;
  --rot-weich: rgba(255, 107, 95, 0.12);
  --gelb: #f1a64a;
  --gelb-weich: rgba(241, 166, 74, 0.13);
  --grau-weich: rgba(255, 255, 255, 0.06);
  --schatten-1: 0 1px 2px rgba(0, 0, 0, 0.3);
  --schatten-2: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px -6px rgba(0, 0, 0, 0.45);
  --schatten-3: 0 2px 6px rgba(0, 0, 0, 0.4), 0 24px 60px -12px rgba(0, 0, 0, 0.7);
}

/* ------------------------------------------------------------------ */
/* Grundlagen                                                          */
/* ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--schrift);
  font-size: 14.5px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11", "ss01";
}
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
h2 { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
a { color: var(--akzent); }
code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--flaeche-2);
  border: 1px solid var(--linie);
  border-radius: 6px;
  padding: 1px 6px;
  overflow-wrap: anywhere;
}
::selection { background: var(--akzent-ring); }
:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; }

.sr-only {
  position: absolute !important;
  width: 1px !important; height: 1px !important;
  min-width: 0 !important;
  padding: 0 !important; margin: -1px !important;
  overflow: hidden !important; clip: rect(0 0 0 0) !important;
  white-space: nowrap !important; border: 0 !important;
  box-shadow: none !important;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 18px; height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon.gross { width: 30px; height: 30px; stroke-width: 1.4; }
.marke { width: 24px; height: 24px; flex: none; color: var(--akzent); }

/* ------------------------------------------------------------------ */
/* Wortmarke, Splash                                                   */
/* ------------------------------------------------------------------ */
.wortmarke {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 650;
  font-size: 16px;
  letter-spacing: -0.03em;
}
.wortmarke.gross { font-size: 24px; gap: 11px; }
.wortmarke.gross .marke { width: 34px; height: 34px; }

.splash {
  position: fixed; inset: 0;
  display: grid; place-items: center;
}
.splash-marke {
  width: 40px; height: 40px;
  color: var(--akzent);
  animation: puls 1.4s ease-in-out infinite;
}
@keyframes puls { 0%, 100% { opacity: 0.35; transform: scale(0.96); } 50% { opacity: 1; transform: scale(1); } }

/* ------------------------------------------------------------------ */
/* Formular-Bausteine                                                  */
/* ------------------------------------------------------------------ */
.feld { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.label { font-size: 12.5px; font-weight: 550; color: var(--text-2); letter-spacing: 0.005em; }
.optional { font-weight: 400; color: var(--text-3); margin-left: 4px; }

input[type="text"], input[type="email"], input[type="password"], input[type="url"],
input[type="date"], input[type="time"], input[type="number"], input[type="search"], textarea {
  width: 100%;
  min-width: 0;
  height: 40px;
  padding: 0 12px;
  background: var(--flaeche);
  border: 1px solid var(--linie-stark);
  border-radius: var(--radius-klein);
  box-shadow: var(--schatten-1);
  transition: border-color var(--schnell) var(--kurve), box-shadow var(--schnell) var(--kurve);
  appearance: none;
  -webkit-appearance: none;
}
textarea { height: auto; padding: 10px 12px; resize: vertical; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: var(--text-3); }
input:hover, textarea:hover { border-color: var(--text-3); }
input:focus, textarea:focus {
  outline: none;
  border-color: var(--akzent);
  box-shadow: 0 0 0 3px var(--akzent-ring);
}
input[aria-invalid="true"] { border-color: var(--rot); }
input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px var(--rot-weich); }
input[type="date"], input[type="time"] { font-variant-numeric: tabular-nums; }
input::-webkit-calendar-picker-indicator { opacity: 0.55; cursor: pointer; }
:root[data-thema="dunkel"] input::-webkit-calendar-picker-indicator { filter: invert(1); }
@media (prefers-color-scheme: dark) { :root:not([data-thema="hell"]) input::-webkit-calendar-picker-indicator { filter: invert(1); } }

.feldfehler {
  min-height: 0;
  font-size: 13px;
  color: var(--rot);
}
.feldfehler:empty { display: none; }
.feldfehler:not(:empty) { animation: rein var(--schnell) var(--kurve); }

.raster-2, .raster-3 { display: grid; gap: 14px; }
.raster-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.raster-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Knoepfe */
.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: var(--radius-klein);
  font-weight: 550;
  font-size: 14px;
  white-space: nowrap;
  transition: background-color var(--schnell) var(--kurve), border-color var(--schnell) var(--kurve),
    color var(--schnell) var(--kurve), transform var(--schnell) var(--kurve), opacity var(--schnell) var(--kurve), box-shadow var(--schnell) var(--kurve);
  -webkit-tap-highlight-color: transparent;
}
.knopf:active:not(:disabled) { transform: scale(0.98); }
.knopf.gross { height: 42px; padding: 0 18px; font-size: 14.5px; }
.knopf.klein { height: 32px; padding: 0 10px; font-size: 13px; }
.knopf.breit { width: 100%; }
.knopf.primaer {
  background: var(--akzent);
  color: var(--akzent-text);
  box-shadow: 0 1px 2px rgba(15, 15, 25, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.knopf.primaer:hover:not(:disabled) { background: var(--akzent-hover); }
.knopf.primaer:disabled { opacity: 0.45; }
.knopf.sekundaer { background: var(--flaeche); border-color: var(--linie-stark); box-shadow: var(--schatten-1); }
.knopf.sekundaer:hover:not(:disabled) { background: var(--flaeche-2); }
.knopf.leise { background: transparent; color: var(--text-2); }
.knopf.leise:hover:not(:disabled) { background: var(--grau-weich); color: var(--text); }
.knopf.gefahr { background: var(--rot); color: #fff; }
.knopf.gefahr:hover:not(:disabled) { filter: brightness(1.06); }
.knopf.gefahr-text { color: var(--rot); }
.knopf.gefahr-text:hover:not(:disabled) { background: var(--rot-weich); color: var(--rot); }
.knopf.laedt { position: relative; color: transparent !important; pointer-events: none; }
.knopf.laedt > * { visibility: hidden; }
.knopf.laedt::after {
  content: "";
  position: absolute;
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-color: rgba(255, 255, 255, 0.9) rgba(255, 255, 255, 0.9) rgba(255, 255, 255, 0.25) rgba(255, 255, 255, 0.25);
  animation: drehen 0.7s linear infinite;
}
.knopf.sekundaer.laedt::after, .knopf.leise.laedt::after { border-color: var(--text-2) var(--text-2) var(--linie-stark) var(--linie-stark); }
@keyframes drehen { to { transform: rotate(360deg); } }

.icon-knopf {
  display: inline-grid;
  place-items: center;
  width: 34px; height: 34px;
  border: 1px solid var(--linie);
  border-radius: var(--radius-klein);
  background: var(--flaeche);
  color: var(--text-2);
  box-shadow: var(--schatten-1);
  transition: background-color var(--schnell) var(--kurve), color var(--schnell) var(--kurve);
}
.icon-knopf:hover { background: var(--flaeche-2); color: var(--text); }
.icon-knopf.dreht .icon { animation: drehen 0.7s linear infinite; }

/* Segmented Control */
.segment {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  background: var(--flaeche-2);
  border: 1px solid var(--linie);
  border-radius: 11px;
  max-width: 100%;
}
.segment.breit { display: flex; }
.feld > .segment:not(.breit) { align-self: flex-start; }
.segment.breit .segment-knopf { flex: 1; }
.segment-knopf {
  height: 30px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-2);
  font-size: 13.5px;
  font-weight: 550;
  transition: background-color var(--schnell) var(--kurve), color var(--schnell) var(--kurve), box-shadow var(--schnell) var(--kurve);
  -webkit-tap-highlight-color: transparent;
}
.segment-knopf:hover { color: var(--text); }
.segment-knopf[aria-checked="true"] {
  background: var(--flaeche);
  color: var(--text);
  box-shadow: 0 1px 2px rgba(15, 15, 25, 0.10), 0 0 0 1px var(--linie);
}
.segment.klein .segment-knopf { height: 26px; padding: 0 10px; font-size: 12.5px; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  height: 32px;
  padding: 0 13px;
  border: 1px solid var(--linie-stark);
  border-radius: 999px;
  background: var(--flaeche);
  color: var(--text-2);
  font-size: 13.5px;
  font-weight: 550;
  transition: all var(--schnell) var(--kurve);
  -webkit-tap-highlight-color: transparent;
}
.chip:hover { color: var(--text); border-color: var(--text-3); }
.chip[aria-checked="true"] {
  background: var(--akzent-weich);
  border-color: var(--akzent);
  color: var(--akzent);
}
.eigen-zeile { display: flex; align-items: center; gap: 10px; margin-top: 4px; color: var(--text-2); font-size: 13.5px; animation: rein var(--schnell) var(--kurve); }
.eigen-zeile input { width: 110px; }

/* Schalter */
.schalter { display: inline-flex; align-items: center; gap: 11px; cursor: pointer; user-select: none; width: fit-content; }
.schalter input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.schalter-spur {
  position: relative;
  width: 38px; height: 22px;
  border-radius: 999px;
  background: var(--flaeche-3);
  border: 1px solid var(--linie-stark);
  transition: background-color var(--schnell) var(--kurve), border-color var(--schnell) var(--kurve);
  flex: none;
}
.schalter-spur::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform var(--schnell) var(--kurve);
}
.schalter input:checked + .schalter-spur { background: var(--akzent); border-color: var(--akzent); }
.schalter input:checked + .schalter-spur::after { transform: translateX(16px); }
.schalter input:focus-visible + .schalter-spur { outline: 2px solid var(--akzent); outline-offset: 2px; }
.schalter-text { font-size: 14px; }

/* Eingabe mit festem Ende (@mxb-agency.de) */
.eingabe-suffix {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--linie-stark);
  border-radius: var(--radius-klein);
  background: var(--flaeche);
  box-shadow: var(--schatten-1);
  overflow: hidden;
  transition: border-color var(--schnell) var(--kurve), box-shadow var(--schnell) var(--kurve);
}
.eingabe-suffix:focus-within { border-color: var(--akzent); box-shadow: 0 0 0 3px var(--akzent-ring); }
.eingabe-suffix input, .eingabe-suffix input:focus { border: 0; box-shadow: none; border-radius: 0; height: 38px; }
.suffix {
  display: flex; align-items: center;
  padding: 0 10px;
  background: var(--flaeche-2);
  border-left: 1px solid var(--linie);
  color: var(--text-2);
  font-size: 13px;
  white-space: nowrap;
}
.fest-wert {
  display: flex; align-items: center;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-klein);
  background: var(--flaeche-2);
  color: var(--text-2);
  overflow-wrap: anywhere;
}

/* ------------------------------------------------------------------ */
/* Anmeldung                                                           */
/* ------------------------------------------------------------------ */
.login {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 24px 16px;
  background:
    radial-gradient(900px 480px at 50% -10%, var(--akzent-weich), transparent 70%),
    var(--bg);
}
.login-karte {
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 36px 32px 32px;
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: var(--radius-gross);
  box-shadow: var(--schatten-3);
  animation: hoch 260ms var(--kurve);
}
.login-karte .wortmarke { align-self: center; }
.login-unter { text-align: center; color: var(--text-2); margin-top: -8px; margin-bottom: 6px; font-size: 13.5px; }
.login-karte .feldfehler { margin-top: -8px; }
.login-fuss { font-size: 12px; color: var(--text-3); }

/* ------------------------------------------------------------------ */
/* App-Rahmen                                                          */
/* ------------------------------------------------------------------ */
.app { min-height: 100vh; min-height: 100dvh; }

.seitenleiste {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--seitenleiste);
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 18px 12px;
  border-right: 1px solid var(--linie);
  background: var(--bg);
  z-index: 20;
}
.seitenleiste-marke { padding: 4px 10px 10px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-punkt {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: var(--radius-klein);
  background: transparent;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 550;
  text-align: left;
  transition: background-color var(--schnell) var(--kurve), color var(--schnell) var(--kurve);
  -webkit-tap-highlight-color: transparent;
}
.nav-punkt:hover { background: var(--grau-weich); color: var(--text); }
.nav-punkt[aria-current="page"] { background: var(--flaeche); color: var(--text); box-shadow: var(--schatten-1), 0 0 0 1px var(--linie); }
.nav-punkt[aria-current="page"] .icon { color: var(--akzent); }
.nav-punkt.leise { font-weight: 500; font-size: 13px; color: var(--text-3); }
.seitenleiste-fuss { margin-top: auto; }

.hauptbereich { margin-left: var(--seitenleiste); min-width: 0; }

.kopfleiste {
  position: sticky;
  top: 0;
  z-index: 15;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 60px;
  padding: 10px 32px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--linie);
}
.kopf-marke { display: none; }
.seitentitel { font-size: 17px; font-weight: 650; letter-spacing: -0.02em; }
.kopf-rechts { margin-left: auto; display: flex; align-items: center; gap: 12px; min-width: 0; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 28px;
  padding: 0 11px;
  border: 1px solid var(--linie);
  border-radius: 999px;
  background: var(--flaeche);
  font-size: 12.5px;
  font-weight: 550;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.pill-punkt { width: 7px; height: 7px; border-radius: 50%; background: var(--gruen); box-shadow: 0 0 0 3px var(--gruen-weich); }
.pill.knapp .pill-punkt { background: var(--gelb); box-shadow: 0 0 0 3px var(--gelb-weich); }
.pill.voll .pill-punkt { background: var(--rot); box-shadow: 0 0 0 3px var(--rot-weich); }
.angemeldet { font-size: 13px; color: var(--text-3); white-space: nowrap; }
.angemeldet strong { color: var(--text); font-weight: 600; }

.testleiste {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 32px 0;
  padding: 10px 14px;
  border: 1px solid color-mix(in srgb, var(--gelb) 30%, transparent);
  border-radius: var(--radius-klein);
  background: var(--gelb-weich);
  color: var(--text);
  font-size: 13.5px;
}
.testleiste .icon { color: var(--gelb); }
.testleiste strong { font-weight: 650; }

.inhalt { max-width: 1180px; padding: 28px 32px 64px; }
.view { animation: rein 200ms var(--kurve); }

@keyframes rein { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes hoch { from { opacity: 0; transform: translateY(10px) scale(0.99); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------------ */
/* Karten + Bloecke                                                    */
/* ------------------------------------------------------------------ */
.karte, .block {
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: var(--radius-gross);
  box-shadow: var(--schatten-2);
}
.karte { display: flex; flex-direction: column; gap: 18px; padding: 24px; }
.karte-kopf { display: flex; flex-direction: column; gap: 3px; }
.karte-unter, .seiten-unter { color: var(--text-2); font-size: 13.5px; }
.karte-fuss { display: flex; justify-content: flex-end; gap: 10px; padding-top: 4px; }

.stapel { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.block { display: flex; flex-direction: column; gap: 16px; padding: 20px 22px 22px; }
.block-kopf { display: flex; align-items: center; gap: 10px; }
.schritt {
  display: inline-grid; place-items: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--flaeche-2);
  border: 1px solid var(--linie);
  color: var(--text-2);
  font-size: 12px; font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.termin-felder { display: flex; flex-direction: column; gap: 14px; padding-top: 2px; animation: rein var(--schnell) var(--kurve); }
.info-zeile { font-size: 13px; color: var(--text-2); }
.info-zeile:empty { display: none; }
.info-zeile.warnung { color: var(--gelb); }

/* ------------------------------------------------------------------ */
/* Absender-Auswahl                                                    */
/* ------------------------------------------------------------------ */
.absender-wahl { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.absender-wahl.kompakt { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.absender-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid var(--linie-stark);
  border-radius: var(--radius);
  background: var(--flaeche);
  text-align: left;
  transition: border-color var(--schnell) var(--kurve), background-color var(--schnell) var(--kurve), box-shadow var(--schnell) var(--kurve);
  -webkit-tap-highlight-color: transparent;
}
.absender-wahl.kompakt .absender-option { padding: 8px 10px; border-radius: 12px; }
.absender-option:hover:not(:disabled) { border-color: var(--text-3); }
.absender-option[aria-checked="true"] {
  border-color: var(--akzent);
  background: var(--akzent-weich);
  box-shadow: 0 0 0 1px var(--akzent);
}
.absender-option:disabled { opacity: 0.55; background: var(--flaeche-2); border-style: dashed; }
.absender-option .opt-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.opt-name { font-weight: 600; font-size: 14px; }
.opt-mail { font-size: 12px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.opt-hinweis { font-size: 11.5px; color: var(--gelb); font-weight: 550; margin-top: 2px; }
.opt-haken {
  margin-left: auto;
  width: 18px; height: 18px;
  flex: none;
  border-radius: 50%;
  border: 1.5px solid var(--linie-stark);
  display: grid; place-items: center;
  transition: all var(--schnell) var(--kurve);
}
.opt-haken .icon { width: 12px; height: 12px; stroke-width: 2.6; color: #fff; opacity: 0; transition: opacity var(--schnell) var(--kurve); }
.absender-option[aria-checked="true"] .opt-haken { background: var(--akzent); border-color: var(--akzent); }
.absender-option[aria-checked="true"] .opt-haken .icon { opacity: 1; }

.avatar {
  display: inline-grid; place-items: center;
  width: 32px; height: 32px;
  flex: none;
  border-radius: 50%;
  font-size: 13px; font-weight: 650;
  color: #fff;
  background: linear-gradient(135deg, #7b7bf0, #5b5bd6);
}
.absender-wahl.kompakt .avatar { width: 26px; height: 26px; font-size: 11.5px; }
.avatar.f1 { background: linear-gradient(135deg, #f59e8b, #e5484d); }
.avatar.f2 { background: linear-gradient(135deg, #5fd4b4, #12a594); }
.avatar.f3 { background: linear-gradient(135deg, #ffc76b, #f76b15); }
.avatar.f4 { background: linear-gradient(135deg, #7cc4fa, #0090ff); }
.avatar.f5 { background: linear-gradient(135deg, #d19dff, #8e4ec6); }
.avatar.gross { width: 42px; height: 42px; font-size: 16px; }

.leer-hinweis { font-size: 13.5px; color: var(--text-2); padding: 6px 0; }

/* ------------------------------------------------------------------ */
/* Vorlagen-Auswahl                                                    */
/* ------------------------------------------------------------------ */
.vorlagen-wahl { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.vorlage-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--linie-stark);
  border-radius: var(--radius);
  background: var(--flaeche);
  text-align: left;
  transition: border-color var(--schnell) var(--kurve), background-color var(--schnell) var(--kurve), box-shadow var(--schnell) var(--kurve), transform var(--schnell) var(--kurve);
  -webkit-tap-highlight-color: transparent;
}
.vorlage-option:hover { border-color: var(--text-3); }
.vorlage-option:active { transform: scale(0.99); }
.vorlage-option[aria-checked="true"] { border-color: var(--akzent); background: var(--akzent-weich); box-shadow: 0 0 0 1px var(--akzent); }
.vorlage-icon {
  display: grid; place-items: center;
  width: 32px; height: 32px;
  border-radius: 9px;
  background: var(--flaeche-2);
  border: 1px solid var(--linie);
  color: var(--text-2);
  transition: all var(--schnell) var(--kurve);
}
.vorlage-option[aria-checked="true"] .vorlage-icon { background: var(--akzent); border-color: var(--akzent); color: #fff; }
.vorlage-inhalt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.vorlage-titel { font-weight: 600; font-size: 14px; line-height: 1.3; }
.vorlage-text { font-size: 12.5px; color: var(--text-2); line-height: 1.4; }

/* ------------------------------------------------------------------ */
/* Neue Mail: Raster + Vorschau                                        */
/* ------------------------------------------------------------------ */
.neu-raster { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
@media (min-width: 1180px) {
  .neu-raster { grid-template-columns: minmax(0, 1fr) minmax(360px, 430px); gap: 24px; }
  .vorschau-spalte { position: sticky; top: 84px; }
}
.vorschau-spalte { display: flex; flex-direction: column; gap: 14px; min-width: 0; }

.mailclient {
  display: flex;
  flex-direction: column;
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: var(--radius-gross);
  box-shadow: var(--schatten-2);
  overflow: hidden;
}
.mailclient-leiste {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 14px;
  border-bottom: 1px solid var(--linie);
  background: var(--flaeche-2);
}
.ampel { display: inline-flex; gap: 6px; }
.ampel span { width: 10px; height: 10px; border-radius: 50%; background: var(--flaeche-3); border: 1px solid var(--linie); }
.mailclient-titel { font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.vorschau-status { margin-left: auto; font-size: 12px; color: var(--text-3); display: inline-flex; align-items: center; gap: 6px; }
.vorschau-status.laedt::before {
  content: "";
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 1.5px solid var(--text-3);
  border-right-color: transparent;
  animation: drehen 0.7s linear infinite;
}
.vorschau-status.ok { color: var(--gruen); }
.vorschau-status.fehler { color: var(--rot); }

.mail-kopf { margin: 0; padding: 14px 18px 12px; border-bottom: 1px solid var(--linie); display: flex; flex-direction: column; gap: 5px; }
.mail-zeile { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 8px; font-size: 13.5px; }
.mail-zeile dt { color: var(--text-3); }
.mail-zeile dd { margin: 0; color: var(--text); overflow-wrap: anywhere; min-height: 1.5em; }
.mail-zeile dd.leer { color: var(--text-3); }
.mail-zeile .betreff { font-weight: 600; }
.mail-text {
  padding: 18px 18px 22px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 14px;
  line-height: 1.6;
  min-height: 220px;
  transition: opacity var(--schnell) var(--kurve);
}
.mailclient.veraltet .mail-text, .mailclient.veraltet .betreff { opacity: 0.45; }
.vorschau-leer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 240px;
  padding: 24px;
  text-align: center;
  color: var(--text-3);
  font-size: 13.5px;
}
.vorschau-leer p { max-width: 280px; }
.vorschau-leer.fehler { color: var(--rot); }

.senden-leiste { display: flex; align-items: center; justify-content: flex-end; gap: 14px; }
.senden-hinweis { font-size: 12.5px; color: var(--text-3); margin-right: auto; }

/* ------------------------------------------------------------------ */
/* Listen-Kopf                                                         */
/* ------------------------------------------------------------------ */
.liste-kopf {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 14px;
}
#view-erinnerungen .liste-kopf { margin-top: 36px; }
.liste-kopf > h2 { font-size: 16px; }
.liste-werkzeuge { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.anzahl { font-size: 12.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.suche { position: relative; flex: 1 1 280px; max-width: 420px; }
.suche .icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--text-3); width: 16px; height: 16px; pointer-events: none; }
.suche input { padding-left: 34px; height: 36px; }
.suche input::-webkit-search-cancel-button { cursor: pointer; }

/* ------------------------------------------------------------------ */
/* Erinnerungs-Karten                                                  */
/* ------------------------------------------------------------------ */
.karten-liste { display: flex; flex-direction: column; gap: 10px; }
.er-karte {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  box-shadow: var(--schatten-1);
  animation: rein 200ms var(--kurve) both;
  transition: border-color var(--schnell) var(--kurve), box-shadow var(--schnell) var(--kurve);
}
.er-karte:hover { border-color: var(--linie-stark); box-shadow: var(--schatten-2); }
.er-karte.gedimmt .er-wer, .er-karte.gedimmt .er-wert { color: var(--text-3); }
.er-wer { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.er-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.er-mail { font-size: 12.5px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.er-spalte { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.er-label { font-size: 11.5px; color: var(--text-3); font-weight: 550; text-transform: uppercase; letter-spacing: 0.04em; }
.er-wert { font-size: 13.5px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.er-rechts { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.er-knoepfe { display: flex; gap: 4px; }
.er-meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--text-3); margin-top: -6px; }
.er-meta .fehlertext { color: var(--rot); }

/* Status-Etiketten */
.etikett {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  background: var(--grau-weich);
  color: var(--text-2);
}
.etikett::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.etikett.blau { background: var(--akzent-weich); color: var(--akzent); }
.etikett.gruen { background: var(--gruen-weich); color: var(--gruen); }
.etikett.rot { background: var(--rot-weich); color: var(--rot); }
.etikett.gelb { background: var(--gelb-weich); color: var(--gelb); }
.etikett.pulsiert::before { animation: puls 1.2s ease-in-out infinite; }

/* ------------------------------------------------------------------ */
/* Protokoll-Tabelle                                                   */
/* ------------------------------------------------------------------ */
.tabelle-rahmen {
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: var(--radius-gross);
  box-shadow: var(--schatten-2);
  overflow-x: auto;
}
.tabelle { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tabelle th {
  position: sticky; top: 0;
  padding: 11px 14px;
  text-align: left;
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-3);
  background: var(--flaeche-2);
  border-bottom: 1px solid var(--linie);
  white-space: nowrap;
}
.tabelle td { padding: 12px 14px; border-bottom: 1px solid var(--linie); vertical-align: top; }
.tabelle tbody tr:last-child td { border-bottom: 0; }
.tabelle tbody tr { transition: background-color var(--schnell) var(--kurve); }
.tabelle tbody tr:hover { background: var(--flaeche-2); }
.tabelle .zeit { white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--text-2); }
.tabelle .adresse { max-width: 220px; overflow-wrap: break-word; }
.tabelle .betreff-zelle { min-width: 200px; overflow-wrap: anywhere; }
.tabelle .klein-grau { display: block; font-size: 12px; color: var(--text-3); margin-top: 3px; }
.tabelle .fehler-klein { display: block; font-size: 12px; color: var(--rot); margin-top: 4px; max-width: 220px; }

/* Leere Zustaende */
.leer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 44px 24px;
  text-align: center;
  color: var(--text-2);
  background: var(--flaeche);
  border: 1px dashed var(--linie-stark);
  border-radius: var(--radius-gross);
}
.leer .icon { color: var(--text-3); }
.leer-titel { font-weight: 600; color: var(--text); }
.leer-text { font-size: 13.5px; max-width: 340px; }
#pr-leer { margin-top: 12px; }

/* Skeleton */
.skelett {
  height: 72px;
  border-radius: var(--radius);
  background: linear-gradient(90deg, var(--flaeche-2) 0%, var(--flaeche-3) 50%, var(--flaeche-2) 100%);
  background-size: 200% 100%;
  animation: schimmer 1.3s ease-in-out infinite;
}
.skelett.zeile { height: 18px; border-radius: 6px; }
.skelett.option { height: 56px; }
.skelett.absender { height: 168px; border-radius: var(--radius-gross); }
@keyframes schimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }

/* ------------------------------------------------------------------ */
/* Absender-Seite                                                      */
/* ------------------------------------------------------------------ */
.absender-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.ab-karte {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: var(--radius-gross);
  box-shadow: var(--schatten-2);
  animation: rein 200ms var(--kurve) both;
  min-width: 0;
}
.ab-kopf { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ab-kopf .opt-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.ab-kopf .etikett { margin-left: auto; flex: none; }
.ab-kopf .opt-mail { white-space: normal; overflow-wrap: anywhere; }
#ab-neu { margin-left: auto; }
.ab-details { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.ab-detail { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 8px; }
.ab-detail dt { color: var(--text-3); }
.ab-detail dd { margin: 0; overflow-wrap: anywhere; white-space: pre-line; }
.ab-details { margin: 0; }
.ab-fehlt {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 12px;
  border-radius: var(--radius-klein);
  background: var(--gelb-weich);
  font-size: 12.5px;
}
.ab-fehlt code { background: var(--flaeche); }
.kopier-knopf {
  display: inline-grid; place-items: center;
  width: 26px; height: 26px;
  border: 1px solid var(--linie);
  border-radius: 7px;
  background: var(--flaeche);
  color: var(--text-2);
}
.kopier-knopf .icon { width: 14px; height: 14px; }
.kopier-knopf:hover { color: var(--text); }
.ab-test-ergebnis { font-size: 12.5px; }
.ab-test-ergebnis:empty { display: none; }
.ab-test-ergebnis.ok { color: var(--gruen); }
.ab-test-ergebnis.fehler { color: var(--rot); }
.ab-knoepfe { display: flex; gap: 8px; margin-top: auto; padding-top: 4px; border-top: 1px solid var(--linie); padding-top: 14px; }

.hinweis-box {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: var(--radius-klein);
  background: var(--akzent-weich);
  font-size: 13px;
  color: var(--text);
}
.hinweis-box .icon { color: var(--akzent); margin-top: 1px; }

/* ------------------------------------------------------------------ */
/* Dialoge                                                             */
/* ------------------------------------------------------------------ */
.dialog {
  width: min(520px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: 1px solid var(--linie);
  border-radius: var(--radius-gross);
  background: var(--flaeche);
  color: var(--text);
  box-shadow: var(--schatten-3);
  overflow: auto;
}
.dialog.klein { width: min(420px, calc(100vw - 24px)); }
.dialog[open] { animation: hoch 200ms var(--kurve); }
.dialog::backdrop { background: rgba(10, 10, 15, 0.38); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.dialog[open]::backdrop { animation: einblenden 200ms var(--kurve); }
@keyframes einblenden { from { opacity: 0; } to { opacity: 1; } }
.dialog-form { display: flex; flex-direction: column; gap: 16px; padding: 24px; }
.dialog-form h2 { font-size: 17px; letter-spacing: -0.02em; }
.dialog-text { color: var(--text-2); font-size: 13.5px; }
.dialog-knoepfe { display: flex; justify-content: flex-end; gap: 10px; padding-top: 6px; }
.dialog-knoepfe .links { margin-right: auto; }
.zusammenfassung {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--flaeche-2);
  border: 1px solid var(--linie);
  font-size: 13.5px;
}
.zusammenfassung > div { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 8px; }
.zusammenfassung dt { color: var(--text-3); }
.zusammenfassung dd { margin: 0; overflow-wrap: anywhere; }

/* ------------------------------------------------------------------ */
/* Toasts                                                              */
/* ------------------------------------------------------------------ */
.toasts {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 380px;
  padding: 12px 14px;
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  background: var(--flaeche);
  color: var(--text);
  box-shadow: var(--schatten-3);
  font-size: 13.5px;
  pointer-events: auto;
  animation: hoch 200ms var(--kurve);
}
.toast.weg { opacity: 0; transform: translateY(6px); transition: opacity 180ms var(--kurve), transform 180ms var(--kurve); }
.toast-icon {
  display: grid; place-items: center;
  width: 20px; height: 20px;
  flex: none;
  border-radius: 50%;
  color: #fff;
  background: var(--akzent);
}
.toast-icon .icon { width: 12px; height: 12px; stroke-width: 2.6; }
.toast.ok .toast-icon { background: var(--gruen); }
.toast.fehler .toast-icon { background: var(--rot); }
.toast-text { padding-top: 1px; overflow-wrap: anywhere; }

/* ------------------------------------------------------------------ */
/* Tablet: Formular eine Spalte                                        */
/* ------------------------------------------------------------------ */
@media (max-width: 1080px) {
  .raster-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .er-karte { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .er-rechts { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
}

/* ------------------------------------------------------------------ */
/* Handy: untere Tab-Leiste                                            */
/* ------------------------------------------------------------------ */
@media (max-width: 760px) {
  body { font-size: 15px; }
  input[type="text"], input[type="email"], input[type="password"], input[type="url"],
  input[type="date"], input[type="time"], input[type="number"], input[type="search"], textarea { font-size: 16px; height: 44px; }
  textarea { height: auto; }
  .eingabe-suffix input, .eingabe-suffix input:focus { height: 42px; }

  .seitenleiste {
    inset: auto 0 0 0;
    width: auto;
    flex-direction: row;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    border-right: 0;
    border-top: 1px solid var(--linie);
    background: color-mix(in srgb, var(--flaeche) 88%, transparent);
    backdrop-filter: saturate(1.6) blur(16px);
    -webkit-backdrop-filter: saturate(1.6) blur(16px);
  }
  .seitenleiste-marke, .seitenleiste-fuss { display: none; }
  .nav { flex-direction: row; width: 100%; gap: 0; }
  .nav-punkt {
    flex: 1;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    height: 54px;
    padding: 0 2px;
    font-size: 11px;
    font-weight: 550;
    text-align: center;
  }
  .nav-punkt .icon { width: 22px; height: 22px; }
  .nav-punkt[aria-current="page"] { background: transparent; box-shadow: none; color: var(--akzent); }
  .nav-punkt:hover { background: transparent; }

  .hauptbereich { margin-left: 0; padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .kopfleiste { flex-wrap: wrap; gap: 8px 10px; padding: 10px 16px; min-height: 0; }
  .kopf-marke { display: inline-flex; }
  .seitentitel { order: 3; width: 100%; font-size: 24px; padding-top: 6px; }
  .kopf-rechts { gap: 6px; }
  .angemeldet-text, .abmelden-text { display: none; }
  .angemeldet { font-size: 13px; }
  #abmelden { width: 34px; padding: 0; }
  .testleiste { margin: 12px 16px 0; }
  .inhalt { padding: 18px 16px 32px; }

  .raster-2, .raster-3 { grid-template-columns: minmax(0, 1fr); }
  .block { padding: 18px 16px; }
  .karte { padding: 18px 16px; }
  .absender-wahl, .absender-wahl.kompakt { grid-template-columns: minmax(0, 1fr); }
  .vorlagen-wahl { grid-template-columns: minmax(0, 1fr); }
  .vorlage-option { flex-direction: row; align-items: center; padding: 12px; gap: 12px; }
  .vorlage-option .vorlage-inhalt { display: flex; flex-direction: column; min-width: 0; }
  .senden-leiste { padding-top: 2px; }
  .senden-leiste .knopf { flex: 1; }
  .senden-hinweis { display: none; }
  .karte-fuss .knopf { flex: 1; height: 44px; }

  .liste-werkzeuge { margin-left: 0; width: 100%; justify-content: space-between; }
  .suche { max-width: none; flex-basis: 100%; }
  #view-protokoll .liste-werkzeuge { width: auto; margin-left: auto; }

  .er-karte { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; padding: 14px; }
  .er-wer { grid-column: 1 / -1; }

  /* Protokoll als Karten */
  .tabelle-rahmen { background: transparent; border: 0; box-shadow: none; overflow: visible; }
  .tabelle thead { display: none; }
  .tabelle, .tabelle tbody, .tabelle tr, .tabelle td { display: block; }
  .tabelle tbody { display: flex; flex-direction: column; gap: 10px; }
  .tabelle tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 12px;
    padding: 14px;
    background: var(--flaeche);
    border: 1px solid var(--linie);
    border-radius: var(--radius);
    box-shadow: var(--schatten-1);
  }
  .tabelle tbody tr:hover { background: var(--flaeche); }
  .tabelle td { padding: 0; border: 0; }
  .tabelle tbody tr.skelett-zeile { display: block; }
  .tabelle td.betreff-zelle { grid-column: 1 / -1; order: -1; font-weight: 600; min-width: 0; }
  .tabelle td.zelle-ergebnis { grid-column: 2; grid-row: 2; justify-self: end; }
  .tabelle td.zeit { grid-column: 1; grid-row: 2; }
  .tabelle td[data-label] { grid-column: 1 / -1; font-size: 13px; color: var(--text-2); }
  .tabelle td[data-label]::before { content: attr(data-label) "  "; color: var(--text-3); white-space: pre; }
  .tabelle .adresse { max-width: none; }
  .tabelle .fehler-klein { max-width: none; }

  .absender-raster { grid-template-columns: minmax(0, 1fr); }
  #ab-neu { width: 100%; height: 44px; }
  .ab-knoepfe { flex-wrap: wrap; }

  .toasts { left: 12px; right: 12px; bottom: calc(84px + env(safe-area-inset-bottom)); align-items: stretch; }
  .toast { max-width: none; }

  .dialog-knoepfe { flex-wrap: wrap; }
  .dialog-knoepfe .knopf { flex: 1; height: 42px; }
  .dialog-knoepfe .links { flex-basis: 100%; order: 3; }
  .dialog-form { padding: 20px 18px; }
  .login-karte { padding: 30px 22px 24px; }
}

@media (max-width: 380px) {
  .pill { padding: 0 8px; }
  .kopfleiste { padding: 10px 12px; }
  .inhalt { padding: 16px 12px 28px; }
  .chip { padding: 0 11px; }
}

/* ------------------------------------------------------------------ */
/* Weniger Bewegung                                                    */
/* ------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
  .skelett { animation: none; }
  .knopf.laedt::after, .vorschau-status.laedt::before, .icon-knopf.dreht .icon { animation: drehen 1.2s linear infinite !important; }
}
