/* Postwerk — Design-System
 *
 * Dark-first iOS-Premium, heller Modus vollwertig (warmes Papier statt Grau).
 * Akzent „Postblau" exklusiv für Hauptaktion, aktive Zustände, Erfolg.
 * Bausteine (bitte wiederverwenden statt neu erfinden):
 *   Layout:   .shell > .sidenav + main.main ; .page-head ; .grid-2 ; .stack ; .row
 *   Flächen:  .card (.card-pad) ; .card-head ; .panel ; .divider
 *   Knöpfe:   .btn ; .btn-primary ; .btn-ghost ; .btn-danger ; .btn-sm ; .btn-icon
 *   Formular: .field > label + input/select/textarea + .hint ; .check ; .seg (Segmentschalter)
 *   Anzeigen: .chip (.chip-blue|green|amber|red|gray|violet) ; .dot ; .badge ; .kbd ; .muted ; .mono
 *   Listen:   .list > .list-item ; table.table (mobil zu Karten über data-l)
 *   Hinweise: .banner (.banner-amber|red|green|blue) ; .flash ; .empty
 *   Tabs:     .tabs > a.tab(.active) > .count
 */
:root {
  --bg: #07090C;
  --bg-2: #0D1117;
  --surface: #11161D;
  --surface-2: #161C25;
  --surface-3: #1D2430;
  --line: rgba(255,255,255,.08);
  --line-2: rgba(255,255,255,.14);
  --ink: #EEF2F7;
  --ink-2: #B4BECC;
  --ink-3: #7D8899;
  --accent: #5B8CFF;
  --accent-2: #86A9FF;
  --accent-ink: #061024;
  --accent-soft: rgba(91,140,255,.14);
  --green: #34D399; --green-soft: rgba(52,211,153,.14);
  --amber: #FBBF24; --amber-soft: rgba(251,191,36,.14);
  --red: #F87171;   --red-soft: rgba(248,113,113,.14);
  --violet: #A78BFA; --violet-soft: rgba(167,139,250,.14);
  --gray-soft: rgba(148,163,184,.14);
  --radius: 16px; --radius-sm: 10px; --radius-lg: 22px;
  --shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 10px 30px rgba(0,0,0,.35);
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: ui-serif, "New York", Georgia, "Times New Roman", serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --nav-w: 232px;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #F6F3EE; --bg-2: #EFEBE4; --surface: #FFFFFF; --surface-2: #FBF9F6; --surface-3: #F2EEE7;
    --line: rgba(30,25,15,.10); --line-2: rgba(30,25,15,.18);
    --ink: #17191E; --ink-2: #474D58; --ink-3: #7A7F89;
    --accent: #2F67F0; --accent-2: #1F54D6; --accent-ink: #FFFFFF; --accent-soft: rgba(47,103,240,.10);
    --green: #0E9F6E; --green-soft: rgba(14,159,110,.12);
    --amber: #B7791F; --amber-soft: rgba(183,121,31,.13);
    --red: #D33A3A; --red-soft: rgba(211,58,58,.11);
    --violet: #7C5CE0; --violet-soft: rgba(124,92,224,.11);
    --gray-soft: rgba(71,77,88,.10);
    --shadow: 0 1px 2px rgba(30,25,15,.06), 0 8px 24px rgba(30,25,15,.06);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #F6F3EE; --bg-2: #EFEBE4; --surface: #FFFFFF; --surface-2: #FBF9F6; --surface-3: #F2EEE7;
  --line: rgba(30,25,15,.10); --line-2: rgba(30,25,15,.18);
  --ink: #17191E; --ink-2: #474D58; --ink-3: #7A7F89;
  --accent: #2F67F0; --accent-2: #1F54D6; --accent-ink: #FFFFFF; --accent-soft: rgba(47,103,240,.10);
  --green: #0E9F6E; --green-soft: rgba(14,159,110,.12);
  --amber: #B7791F; --amber-soft: rgba(183,121,31,.13);
  --red: #D33A3A; --red-soft: rgba(211,58,58,.11);
  --violet: #7C5CE0; --violet-soft: rgba(124,92,224,.11);
  --gray-soft: rgba(71,77,88,.10);
  --shadow: 0 1px 2px rgba(30,25,15,.06), 0 8px 24px rgba(30,25,15,.06);
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.5 var(--sans); overflow-wrap: anywhere;
  overscroll-behavior-y: none; -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; letter-spacing: -.01em; }
h1 { font-size: 24px; font-weight: 700; }
h2 { font-size: 18px; font-weight: 650; }
h3 { font-size: 15px; font-weight: 650; }
p { margin: 0 0 .6em; }
.muted { color: var(--ink-3); }
.ink-2 { color: var(--ink-2); }
.mono { font-family: var(--mono); font-size: 13px; }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.num { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.hidden, [hidden] { display: none !important; }
/* Nur für Screenreader. top/left 0: ohne positionierten Vorfahren landete das Element an seiner statischen Position
   tief in einer Scrollfläche (z. B. „Antwort" unter einem langen Ticket) und dehnte das ganze Dokument — Scroll-Fehler
   10.10.2026 im Desktop-Posteingang. */
.sr { position: absolute; top: 0; left: 0; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* ---------------------------------------------------------------- Wordmark */
.wordmark { font: italic 700 22px/1 var(--serif); letter-spacing: -.02em; color: var(--ink); }
.wordmark .dot-accent { color: var(--accent); font-style: normal; }
.logo-tile {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(145deg, var(--accent), #8E6CFF); color: #fff; flex: none;
  box-shadow: 0 6px 18px rgba(91,140,255,.35);
}
.logo-tile svg { width: 20px; height: 20px; }

/* ---------------------------------------------------------------- Shell */
.shell { display: grid; grid-template-columns: var(--nav-w) minmax(0,1fr); min-height: 100vh; min-height: 100dvh; }
.sidenav {
  position: sticky; top: 0; height: 100vh; height: 100dvh; display: flex; flex-direction: column; gap: 6px;
  padding: 18px 12px; background: var(--bg-2); border-right: 1px solid var(--line);
}
.sidenav .brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 14px; }
.sidenav .org-switch { margin: 0 4px 10px; }
.sidenav .org-switch select { width: 100%; }
.navlink {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px;
  color: var(--ink-2); font-weight: 550; position: relative;
}
.navlink svg { width: 18px; height: 18px; flex: none; opacity: .85; }
.navlink:hover { background: var(--surface-2); text-decoration: none; color: var(--ink); }
.navlink.active { background: var(--accent-soft); color: var(--accent-2); }
.navlink .warn-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); margin-left: auto; }
.navlink .count { margin-left: auto; font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.navlink.active .count { color: var(--accent-2); }
.sidenav .spacer { flex: 1; }
.sidenav .me { padding: 10px 12px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.main { min-width: 0; padding: 22px 26px 40px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head .sub { color: var(--ink-3); font-size: 14px; margin-top: 2px; }

.tabbar { display: none; }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .sidenav { display: none; }
  .main { padding: 14px 16px calc(84px + env(safe-area-inset-bottom)); }
  .mobile-top {
    display: flex !important; align-items: center; justify-content: space-between; gap: 10px;
    position: sticky; top: 0; z-index: 20; padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: blur(12px) saturate(160%); -webkit-backdrop-filter: blur(12px) saturate(160%);
    border-bottom: 1px solid var(--line);
  }
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--bg-2) 86%, transparent);
    backdrop-filter: blur(12px) saturate(160%); -webkit-backdrop-filter: blur(12px) saturate(160%);
    border-top: 1px solid var(--line);
  }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 1px; min-height: 48px; min-width: 0;
    color: var(--ink-3); font-size: 10.5px; font-weight: 600; letter-spacing: -.01em; border-radius: 10px;
    -webkit-tap-highlight-color: transparent; }
  .tabbar a span { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tabbar a svg { width: 22px; height: 22px; }
  .tabbar a.active { color: var(--accent-2); }
  .tabbar a:hover { text-decoration: none; }
}
.mobile-top { display: none; }
/* Abzeichen „Posteingang“ in der mobilen Tab-Leiste (offene Fälle; app.js/ticket.js halten es live) */
.tabbar a { position: relative; }
.tabbar .tabbar-count { position: absolute; top: 2px; left: calc(50% + 6px); min-width: 18px; max-width: none; height: 18px;
  padding: 0 5px; border-radius: 9px; background: var(--surface-3); border: 1px solid var(--line-2); color: var(--ink);
  font-size: 10.5px; font-weight: 700; line-height: 16px; text-align: center; font-variant-numeric: tabular-nums; }
.tabbar a.active .tabbar-count { color: var(--accent-2); }
/* Live-Aktualisierung: Sitzung abgelaufen (dezent, bleibt stehen bis zur neuen Anmeldung) */
.session-hint { position: fixed; z-index: 55; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  padding: 8px 14px; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--line-2); box-shadow: var(--shadow);
  color: var(--ink-2); font-size: 13.5px; font-weight: 550; white-space: nowrap; max-width: calc(100vw - 32px);
  overflow: hidden; text-overflow: ellipsis; }
.session-hint a { color: var(--accent-2); font-weight: 650; }
@media (max-width: 860px) { .session-hint { bottom: calc(80px + env(safe-area-inset-bottom)); } }

/* ---------------------------------------------------------------- Flächen */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 18px; }
.card + .card { margin-top: 14px; }
/* In Rastern/Flex-Reihen stehen Karten nebeneinander — dort kein Abstand nach oben (sonst versetzt) */
:where([class*="grid"], [class*="kpis"], [class*="hero"], .row) > .card + .card { margin-top: 0; }
@media (max-width: 860px) {
  /* Mobil werden Tabellenzeilen zu Karten — die umgebende Karte tritt dann zurück (keine Karte in Karte) */
  .card:has(> table.table:only-child) { background: transparent; border: 0; box-shadow: none; }
}
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.card-head h2, .card-head h3 { display: flex; align-items: center; gap: 8px; min-width: 0; }
.card-head h2 svg, .card-head h3 svg { width: 18px; height: 18px; flex: none; color: var(--ink-3); }
svg.ico { flex: none; }
.card-body { padding: 16px 18px; }
.panel { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; }
.divider { height: 1px; background: var(--line); margin: 14px 0; border: 0; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack-sm { display: flex; flex-direction: column; gap: 6px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
@media (max-width: 860px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.w-full { width: 100%; }
.mt-0 { margin-top: 0 !important; } .mt-1 { margin-top: 6px; } .mt-2 { margin-top: 12px; } .mt-3 { margin-top: 20px; }

/* ---------------------------------------------------------------- Knöpfe */
.btn {
  -webkit-appearance: none; appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 8px 14px; border-radius: 11px; border: 1px solid var(--line-2);
  background: var(--surface-2); color: var(--ink); font: 600 14px/1 var(--sans); cursor: pointer;
  -webkit-tap-highlight-color: transparent; transition: transform .12s ease, background .15s ease, border-color .15s ease;
  text-decoration: none !important; white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn:active { transform: scale(.965); }
.btn[disabled], .btn.disabled { opacity: .45; pointer-events: none; }
.btn-primary { background: var(--accent); border-color: transparent; color: var(--accent-ink); box-shadow: 0 6px 18px rgba(91,140,255,.28); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn-danger { background: var(--red-soft); border-color: transparent; color: var(--red); }
.btn-sm { min-height: 32px; padding: 6px 10px; font-size: 13px; border-radius: 9px; }
.btn-icon { min-width: 40px; padding: 8px; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { border-color: var(--line-2); background: var(--surface-3); }
  .btn-primary:hover { background: var(--accent-2); }
  .btn-ghost:hover { background: var(--surface-2); color: var(--ink); }
  .btn-danger:hover { background: var(--red); color: #fff; }
}

/* ---------------------------------------------------------------- Formular */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field .hint, .hint { font-size: 12.5px; color: var(--ink-3); }
input[type=text], input[type=tel], input[type=email], input[type=password], input[type=number], input[type=url], input[type=search],
input[type=date], input[type=file], select, textarea {
  -webkit-appearance: none; appearance: none; width: 100%; min-width: 0;
  font: 16px/1.4 var(--sans); color: var(--ink); background: var(--bg-2);
  border: 1px solid var(--line-2); border-radius: 11px; padding: 10px 12px; outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
select { background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
textarea.tall { min-height: 260px; }
textarea.mono, input.mono { font-family: var(--mono); font-size: 14px; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; accent-color: var(--accent); }
.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.check input { margin-top: 2px; flex: none; }
.seg { display: inline-flex; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 11px; padding: 3px; gap: 3px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-block; padding: 7px 14px; border-radius: 8px; font-weight: 600; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.seg input:checked + span { background: var(--accent); color: var(--accent-ink); }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 6px; }

/* ---------------------------------------------------------------- Anzeigen */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  background: var(--gray-soft); color: var(--ink-2); white-space: nowrap; flex: none; }
.chip-blue { background: var(--accent-soft); color: var(--accent-2); }
.chip-green { background: var(--green-soft); color: var(--green); }
.chip-amber { background: var(--amber-soft); color: var(--amber); }
.chip-red { background: var(--red-soft); color: var(--red); }
.chip-violet { background: var(--violet-soft); color: var(--violet); }
.chip .x { opacity: .6; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); flex: none; display: inline-block; }
.dot.open { background: var(--accent); }
.dot.pending { background: var(--amber); border-radius: 2px; transform: rotate(45deg); }
.dot.closed { background: var(--green); border-radius: 2px; }
.dot.spam { background: repeating-linear-gradient(45deg, var(--red) 0 2px, transparent 2px 4px); border: 1px solid var(--red); }
.badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  background: var(--surface-3); color: var(--ink-2); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.kbd { font-family: var(--mono); font-size: 12px; padding: 1px 6px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--surface-2); }
.conf { font-weight: 700; font-variant-numeric: tabular-nums; }
.conf.hi { color: var(--green); } .conf.mid { color: var(--amber); } .conf.lo { color: var(--red); }

/* ---------------------------------------------------------------- Listen & Tabellen */
.list { display: flex; flex-direction: column; }
.list-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-bottom: 1px solid var(--line); min-width: 0; }
.list-item:last-child { border-bottom: 0; }
.list-item > .grow { flex: 1; min-width: 0; }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.table td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
@media (max-width: 860px) {
  table.table thead { display: none; }
  table.table, table.table tbody, table.table tr, table.table td { display: block; width: 100%; }
  table.table tr { background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; margin-bottom: 10px; }
  table.table td { border: 0; padding: 3px 0; }
  table.table td[data-l]::before { content: attr(data-l) " · "; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
}

/* ---------------------------------------------------------------- Tabs */
.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.tabs::-webkit-scrollbar { display: none; }
/* Rand-Verlauf, solange rechts noch Tabs verborgen sind (Klasse setzt app.js) */
.tabs.fade-end { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent);
  mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); }
.tab { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 10px; color: var(--ink-2); font-weight: 600; font-size: 14px; white-space: nowrap; }
.tab:hover { background: var(--surface-2); text-decoration: none; }
.tab.active { background: var(--surface-3); color: var(--ink); }
.tab .count { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- Hinweise */
.banner { display: flex; gap: 10px; align-items: flex-start; padding: 11px 14px; border-radius: 12px; font-size: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.banner svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.banner-amber { background: var(--amber-soft); border-color: transparent; color: var(--ink); }
.banner-amber svg { color: var(--amber); }
.banner-red { background: var(--red-soft); border-color: transparent; }
.banner-red svg { color: var(--red); }
.banner-green { background: var(--green-soft); border-color: transparent; }
.banner-green svg { color: var(--green); }
.banner-blue { background: var(--accent-soft); border-color: transparent; }
.banner-blue svg { color: var(--accent-2); }
.flash { position: fixed; z-index: 60; left: 50%; top: calc(14px + env(safe-area-inset-top)); transform: translateX(-50%);
  padding: 10px 16px; border-radius: 12px; background: var(--surface-3); border: 1px solid var(--line-2); box-shadow: var(--shadow);
  font-weight: 600; font-size: 14px; max-width: calc(100vw - 32px); }
.flash.ok { border-color: color-mix(in srgb, var(--green) 50%, transparent); }
.flash.err { border-color: color-mix(in srgb, var(--red) 60%, transparent); }
.empty { text-align: center; padding: 40px 16px; color: var(--ink-3); }
.empty svg { width: 42px; height: 42px; opacity: .5; margin-bottom: 8px; }

/* ---------------------------------------------------------------- Dialog als Bottom-Sheet */
dialog.sheet { border: 1px solid var(--line-2); border-radius: 20px; padding: 0; background: var(--surface); color: var(--ink);
  width: min(560px, calc(100vw - 24px)); max-height: 86vh; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
dialog.sheet::backdrop { background: rgba(0,0,0,.45); backdrop-filter: blur(3px); }
dialog.sheet .sheet-head { padding: 16px 18px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
dialog.sheet .sheet-body { padding: 16px 18px; overflow: auto; max-height: calc(86vh - 120px); }
@media (max-width: 860px) {
  dialog.sheet { margin: auto 0 0; width: 100vw; max-width: 100vw; border-radius: 20px 20px 0 0; padding-bottom: env(safe-area-inset-bottom); }
}

/* ---------------------------------------------------------------- Login */
.auth-wrap { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px;
  background: radial-gradient(1200px 600px at 20% -10%, rgba(91,140,255,.18), transparent 60%),
              radial-gradient(900px 500px at 110% 110%, rgba(142,108,255,.14), transparent 60%), var(--bg); }
.auth-card { width: min(420px, 100%); padding: 28px 24px; }
.auth-card .brand { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.auth-foot { margin-top: 18px; display: flex; align-items: center; gap: 8px; color: var(--ink-3); font-size: 12.5px; }
.auth-foot svg { width: 14px; height: 14px; }

/* ---------------------------------------------------------------- Bewegung */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .main > .card:nth-child(-n+9), .stagger > *:nth-child(-n+9) { animation: rise .38s cubic-bezier(.2,.8,.25,1) backwards; }
  .stagger > *:nth-child(2) { animation-delay: .03s; } .stagger > *:nth-child(3) { animation-delay: .06s; }
  .stagger > *:nth-child(4) { animation-delay: .09s; } .stagger > *:nth-child(5) { animation-delay: .12s; }
  .flash { animation: drop .3s cubic-bezier(.2,.8,.25,1) backwards; }
}
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
@keyframes drop { from { opacity: 0; transform: translate(-50%, -8px); } }
@keyframes spin { to { transform: rotate(360deg); } }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--accent); animation: spin .8s linear infinite; display: inline-block; }
