/* ============================================================
   Zeiterfassung Olli — Minimal-Stil, hell/dunkel.
   Themes ändern NUR Farb-Tokens (UI_CONTRACT). Keine externen Fonts/CDNs.
   Inter wird später lokal ergänzt (@font-face in /fonts/); bis dahin System-Font.
   ============================================================ */

:root {
  /* Steuerelement-Tokens (FIXED) */
  --control-h: 40px;
  --control-h-compact: 32px;
  --control-radius: 9px;
  --card-radius: 14px;
  --pill-radius: 20px;
  --control-font: 14px;
  --touch-min: 44px;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* Farb-Tokens — Hell (Default) */
  --bg: #fff;
  --surface: #fff;
  --text: #16161a;
  --muted: #7a7a82;
  --primary: #16161a;
  --on-primary: #fff;
  /* Per Einstellungen übersteuerbar (Inline-Override auf <html>). Standard = Palette „Petrol · Aqua". */
  --btn-bg: #0f766e; --btn-tx: #ffffff;      /* Buttons (Petrol) */
  --nav-bg: #0f766e; --nav-tx: #ffffff;      /* aktiver Menüpunkt + Heute-Markierung (Petrol) */
  --border: #e9e9e6;
  --input-bg: #f6f6f4;
  --icon-bg: #f3f3f1;
  --focus: #16161a;
  --ok-bg: #e7f4ec; --ok-tx: #1d6e45;
  --warn-bg: #fbeed0; --warn-tx: #8a5a0f;
  --err-bg: #fcebeb; --err-tx: #a32d2d;
  --mut-bg: #eef0f2; --mut-tx: #5a6b7e;
  --cal-block: #2db9a8; --cal-block-tx: #ffffff;   /* Kalender-Zeitblöcke (Aqua) */
}

:root[data-theme="dark"] {
  --bg: #111114;
  --surface: #1a1a1f;
  --text: #f1f1ef;
  --muted: #9b9ba3;
  --primary: #ececee;
  --on-primary: #16161a;
  --border: #2d2d34;
  --input-bg: #212127;
  --icon-bg: #26262c;
  --focus: #ececee;
  --ok-bg: #16321f; --ok-tx: #79c996;
  --warn-bg: #3a2e12; --warn-tx: #e0b866;
  --err-bg: #3a1b1b; --err-tx: #e88a8a;
  --mut-bg: #26262c; --mut-tx: #9b9ba3;
  --cal-block: #2db9a8; --cal-block-tx: #ffffff;   /* Kalender-Zeitblöcke (Aqua) */
  --btn-bg: #0f766e; --btn-tx: #ffffff;            /* Petrol bleibt auch im Dunkelmodus Standard */
  --nav-bg: #0f766e; --nav-tx: #ffffff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scrollbar-gutter: stable; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--control-font);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; height: auto; }

.noscript { padding: 1rem; }

/* App-Shell: erst sichtbar, wenn bereit (kein FOUC) */
.app-shell { visibility: hidden; min-height: 100vh; }
.app-shell.ready { visibility: visible; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ===== Offline-Anzeige ===== */
.net {
  position: sticky; top: 0; z-index: 20;
  background: var(--warn-bg); color: var(--warn-tx);
  text-align: center; padding: 7px 12px; font-size: 13px; font-weight: 500;
}
.net[hidden] { display: none; }

/* ===== Topbar + Navigation (Inhalt bündig zur Seite, gleiche Maximalbreite) ===== */
.topbar {
  display: flex; justify-content: center;
  padding: 0 18px; background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  display: flex; align-items: center; gap: 14px;
  padding: 11px 0; max-width: 1500px; width: 100%;
}
.brand { font-weight: 700; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.brand svg { width: 20px; height: 20px; }
.nav { display: flex; gap: 3px; flex-wrap: wrap; }
.nav a {
  font-size: 14px; color: var(--muted); text-decoration: none;
  padding: 8px 12px; border-radius: var(--control-radius); cursor: pointer;
  display: inline-flex; align-items: center; gap: 7px; line-height: 1;
}
.nav a:hover { color: var(--text); }
.nav a[aria-current="page"] { background: var(--nav-bg); color: var(--nav-tx); }
.nav a svg { width: 17px; height: 17px; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.icon-btn {
  width: var(--touch-min); height: var(--control-h);
  border: 1px solid var(--border); border-radius: var(--control-radius);
  background: var(--input-bg); color: var(--text); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0; flex: none;
}
.icon-btn svg { width: 24px; height: 24px; display: block; }
.avatar {
  width: var(--control-h); height: var(--control-h); border-radius: 50%;
  background: var(--icon-bg); color: var(--text);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}

/* ===== Inhalt ===== */
.content { padding: 22px 18px; max-width: 1500px; margin: 0 auto; }
.page-title { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.page-sub { color: var(--muted); font-size: 14px; margin-bottom: 18px; }

/* ===== Buttons (global) ===== */
button, .btn {
  font-family: var(--font-body); font-size: var(--control-font);
  height: var(--control-h); padding: 0 16px;
  border: 1px solid transparent; border-radius: var(--control-radius);
  cursor: pointer; font-weight: 500; line-height: 1; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  background: var(--btn-bg); color: var(--btn-tx);
}
a.btn, a.btn:hover, a.btn:focus { text-decoration: none; }
.btn-primary { background: var(--btn-bg); color: var(--btn-tx); border-color: var(--btn-bg); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-danger { background: var(--err-tx); color: #fff; border-color: var(--err-tx); }
.btn-sm { height: var(--control-h-compact); padding: 0 12px; font-size: 13px; }
button:disabled, .btn:disabled { opacity: 0.45; cursor: not-allowed; }
button svg, .btn svg { width: 17px; height: 17px; }

/* ===== Formularfelder (global je Elementtyp) ===== */
input, select, textarea {
  font-family: var(--font-body); font-size: var(--control-font);
  height: var(--control-h); padding: 0 12px;
  border: 1px solid var(--border); border-radius: var(--control-radius);
  background: var(--input-bg); color: var(--text); width: 100%;
}
textarea { height: auto; min-height: 72px; padding: 10px 12px; resize: vertical; }
input:focus, select:focus, textarea:focus,
button:focus-visible, .btn:focus-visible, a:focus-visible {
  outline: 2px solid var(--focus); outline-offset: 1px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; color: var(--muted); }

/* ===== Toolbar (Suche + Filter + Aktion) ===== */
.toolbar { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; align-items: center; }
.toolbar .grow { flex: 1; min-width: 180px; }
.toolbar select { width: auto; min-width: 110px; }

/* ===== Seitenkopf mit Zurück-Button ===== */
.page-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.page-head .page-title { margin-bottom: 0; }
.btn-back { padding: 0 12px; }

/* ===== Formular-Raster ===== */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .span2 { grid-column: 1 / -1; }
.form-actions { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; align-items: center; }
.form-actions .spacer { flex: 1; }

/* Schnellstart (Dashboard): gleich große Kacheln, füllen die Karte gleichmäßig */
.quick-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 16px; }
.quick-actions .btn { width: 100%; }
.form-ok { background: var(--ok-bg); color: var(--ok-tx); border-radius: var(--control-radius); padding: 9px 12px; font-size: 13px; margin-bottom: 14px; }
.form-ok[hidden] { display: none; }
.card .form-error { margin-bottom: 14px; }
.card-title { font-size: 16px; font-weight: 700; margin-bottom: 14px; }
.settings-card { max-width: 480px; margin-bottom: 16px; }
.settings-card .field { margin-bottom: 12px; }

/* ===== Karten / Kennzahlen ===== */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--card-radius); padding: 18px 20px;
}
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.metric { background: var(--surface); border: 1px solid var(--border); border-radius: var(--card-radius); padding: 14px 16px; }
.metric .l { font-size: 12.5px; color: var(--muted); }
.metric .v { font-size: 22px; font-weight: 700; margin-top: 4px; }

/* ===== Tabellen (dicht, Spalten springen nicht) ===== */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; color: var(--muted); font-weight: 500; font-size: 12.5px; padding: 9px 8px; border-bottom: 1px solid var(--border); }
td { padding: 11px 8px; border-bottom: 1px solid var(--border); }
tr:last-child td { border-bottom: none; }
.table-wrap { overflow-x: auto; }
.table-card { padding: 6px 14px; }
tr.rowlink { cursor: pointer; }
tr.rowlink:hover td, tr.rowlink:focus-visible td { background: var(--icon-bg); }
.num { text-align: right; white-space: nowrap; }
th.num { text-align: right; }
.col-status { width: 90px; }

/* ===== Badges ===== */
.badge { font-size: 12px; padding: 3px 9px; border-radius: var(--pill-radius); font-weight: 500; display: inline-block; }
.badge-ok { background: var(--ok-bg); color: var(--ok-tx); }
.badge-mut { background: var(--mut-bg); color: var(--mut-tx); }
.badge-warn { background: var(--warn-bg); color: var(--warn-tx); }

/* ===== Login ===== */
.login-wrap { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 20px; }
.login-box { width: 100%; max-width: 360px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--card-radius); padding: 30px 28px; }
.login-box .brand { justify-content: center; margin-bottom: 4px; }
.login-title { font-size: 20px; font-weight: 700; text-align: center; margin-bottom: 3px; }
.login-sub { font-size: 13.5px; color: var(--muted); text-align: center; margin-bottom: 22px; }
.login-box .field { margin-bottom: 14px; }
.login-box button { width: 100%; }
.form-error { background: var(--err-bg); color: var(--err-tx); border-radius: var(--control-radius); padding: 9px 12px; font-size: 13px; margin-bottom: 14px; }
.form-error[hidden] { display: none; }
.form-error.is-warn { background: var(--warn-bg); color: var(--warn-tx); }  /* Hinweis statt Fehler */
.warn-btn { background: var(--warn-bg); color: var(--warn-tx); border: none; border-radius: 6px;
  height: 22px; padding: 0 6px; font-size: 13px; cursor: pointer; vertical-align: middle; }

/* ===== UI-Zustände ===== */
.state { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 48px 20px; min-height: 240px; }
.state-title { font-size: 16px; font-weight: 700; }
.state-text { color: var(--muted); font-size: 14px; max-width: 360px; }
.spinner { width: 26px; height: 26px; border: 3px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Kalender ===== */
.cal-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.cal-head .spacer { flex: 1; }
.cal-month { font-size: 16px; font-weight: 700; min-width: 150px; text-align: center; }
.cal-total { font-size: 14px; font-weight: 700; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dow { text-align: center; font-size: 12px; color: var(--muted); padding: 4px 0; }
.cal-day {
  min-height: 76px; border: 1px solid var(--border); border-radius: var(--control-radius);
  padding: 5px 6px; cursor: pointer; background: var(--surface); color: var(--text);
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  font-family: var(--font-body); font-size: 12px; height: auto; text-align: left;
}
.cal-day.out { visibility: hidden; cursor: default; }
.cal-day .cal-num {
  font-size: 12.5px; font-weight: 500; width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center; border-radius: 50%;
}
.cal-day.today .cal-num { background: var(--nav-bg); color: var(--nav-tx); }
.cal-day.sel { outline: 2px solid var(--focus); outline-offset: 0; }
.cal-sum { font-size: 11.5px; color: var(--ok-tx); font-weight: 700; }
.cal-chip { font-size: 11px; color: var(--muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.day-panel { margin-top: 16px; }
.card-subtitle { font-size: 14px; font-weight: 700; margin: 18px 0 10px; }

/* ===== Tages-Zeitleiste (0–24 Uhr) ===== */
.tl-wrap {
  display: flex; border: 1px solid var(--border); border-radius: var(--control-radius);
  overflow-y: auto; max-height: 440px; margin-bottom: 8px; background: var(--surface);
}
.tl-hours { width: 52px; flex: none; }
.tl-hour { height: 26px; font-size: 11px; color: var(--muted); text-align: right; padding: 2px 8px 0 0; }
.tl-canvas { flex: 1; position: relative; border-left: 1px solid var(--border); min-height: 624px; }
.tl-row { height: 26px; border-top: 1px solid var(--border); }
.tl-row:first-child { border-top: none; }
.tl-block {
  position: absolute; background: var(--cal-block); color: var(--cal-block-tx);
  border-radius: 6px; padding: 3px 22px 3px 8px; font-size: 11.5px; line-height: 1.35;
  overflow: hidden; cursor: pointer; display: flex; flex-direction: column;
}
.tl-block:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.tl-time { font-weight: 700; white-space: nowrap; }
.tl-proj, .tl-note { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-note { opacity: 0.75; }
.tl-del {
  position: absolute; top: 2px; right: 2px; width: 28px; height: 28px; padding: 0;
  border: none; border-radius: 50%; background: rgba(128, 128, 128, 0.4);
  color: inherit; font-size: 16px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
@media (max-width: 640px) { .tl-del { width: 36px; height: 36px; font-size: 20px; } }
/* Klarer Link-Affordance: fett, durchgehend unterstrichen, Chevron + Hover-Pill */
.link-btn {
  background: none; border: none; height: auto; padding: 3px 6px; margin: -3px -6px;
  color: var(--cal-block); font-size: 14px; font-weight: 700; cursor: pointer;
  text-align: left; border-radius: 7px; display: inline-flex; align-items: center; gap: 5px;
  text-decoration: underline; text-decoration-color: currentColor;
  text-underline-offset: 3px; text-decoration-thickness: 1.5px;
}
.link-btn::after { content: "›"; font-size: 17px; line-height: 1; opacity: 0.6; text-decoration: none; }
.link-btn:hover { background: var(--icon-bg); }
.link-btn:hover::after { opacity: 1; }
.link-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.strong { font-weight: 700; }

/* ===== Zeit-/Buchungsformular ===== */
.time-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 10px; align-items: end; }
.time-note { margin-top: 12px; }
.duration {
  display: inline-flex; align-items: center; height: var(--control-h);
  padding: 0 12px; font-weight: 700; background: var(--icon-bg); border-radius: var(--control-radius);
  min-width: 70px;
}
input.invalid { border-color: var(--err-tx); }
.mv-picker { margin-top: 12px; max-width: 420px; }
.mv-picker[hidden] { display: none; }
.panel-card { margin-top: 16px; }
.panel-top { margin: 0 0 16px; }  /* fixe Formular-Karte oberhalb von Kalender/Tabelle */
.col-act { width: 170px; white-space: nowrap; }
.col-act2 { width: 200px; white-space: nowrap; text-align: right; }
.stock-zero { color: var(--err-tx); font-weight: 700; }
.foot-label { text-align: right; font-weight: 700; color: var(--muted); }
.foot-sum { font-weight: 700; }

/* ===== Combobox (Projekt-Schnellauswahl) ===== */
.combo { position: relative; }
.combo-list {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 30;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--control-radius);
  margin-top: 4px; overflow: hidden; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}
.combo-list[hidden] { display: none; }
.combo-item {
  display: flex; justify-content: space-between; gap: 10px; width: 100%;
  background: var(--surface); color: var(--text); border: none; border-radius: 0;
  height: auto; padding: 10px 12px; font-size: 14px; text-align: left; cursor: pointer;
}
.combo-item:hover, .combo-item:focus-visible { background: var(--icon-bg); }
.combo-sub { color: var(--muted); font-size: 12.5px; }
.combo-empty { padding: 10px 12px; color: var(--muted); font-size: 13px; }

/* ===== Foto-Galerie ===== */
.photo-card { margin-top: 16px; }
.photo-actions { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.ph-status { color: var(--muted); font-size: 13px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.ph-item { position: relative; margin: 0; }
.ph-item img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--control-radius); border: 1px solid var(--border); display: block;
}
.ph-item figcaption { display: flex; flex-direction: column; gap: 1px; padding: 5px 2px 0; }
.ph-date { font-size: 12.5px; font-weight: 700; }
.ph-cap {
  background: none; border: none; height: auto; padding: 0; font-size: 12px;
  color: var(--muted); text-align: left; cursor: pointer; border-radius: 0;
}
.ph-cap:hover { color: var(--text); text-decoration: underline; }
.ph-del {
  position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; padding: 0;
  border-radius: 50%; background: rgba(0, 0, 0, 0.55); color: #fff; border: none;
  font-size: 15px; line-height: 1; display: flex; align-items: center; justify-content: center;
}
.settings-text { color: var(--muted); font-size: 13.5px; margin-bottom: 14px; }

/* ===== Lightbox (Foto groß, Pfeile zum Durchblättern) ===== */
.ph-open { background: none; border: none; padding: 0; height: auto; width: 100%; cursor: zoom-in; border-radius: var(--control-radius); display: block; }
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(10, 10, 12, 0.92);
  display: flex; align-items: center; justify-content: center;
}
.lb-figure { margin: 0; max-width: calc(100% - 130px); max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.lb-img { max-width: 100%; max-height: 82vh; object-fit: contain; border-radius: 6px; }
.lb-meta { color: #e8e8e6; font-size: 14px; text-align: center; }
.lb-close, .lb-prev, .lb-next {
  position: fixed; z-index: 101; border: none; border-radius: 50%;
  background: rgba(255, 255, 255, 0.14); color: #fff; cursor: pointer;
  width: 46px; height: 46px; padding: 0; font-size: 26px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255, 255, 255, 0.28); }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 12px; top: 50%; margin-top: -23px; font-size: 32px; }
.lb-next { right: 12px; top: 50%; margin-top: -23px; font-size: 32px; }
.lb-count { position: fixed; bottom: 14px; left: 0; right: 0; text-align: center; color: #bdbdbb; font-size: 13px; }
@media (max-width: 640px) {
  .lb-figure { max-width: calc(100% - 20px); }
  .lb-prev { left: 4px; } .lb-next { right: 4px; }
  .lb-img { max-height: 74vh; }
}
.btn.disabled { opacity: 0.45; pointer-events: none; }

/* ===== Kalenderfarbe-Wähler ===== */
.acc-presets { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.acc-swatch { width: 34px; height: 34px; border-radius: 8px; border: 2px solid var(--border); cursor: pointer; padding: 0; }
.acc-swatch:hover { border-color: var(--text); }
.acc-row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.acc-row label { font-size: 13px; color: var(--muted); }
.acc-row input[type="color"] { width: 48px; height: 36px; padding: 2px; cursor: pointer; }
.acc-preview { padding: 7px 14px; border-radius: 6px; font-size: 12.5px; font-weight: 700; }

/* Paletten-Schnellauswahl */
.settings-subhead { font-size: 12.5px; font-weight: 600; color: var(--muted); margin: 14px 0 7px; }
.palette-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 6px; }
.palette {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 13px 7px 9px;
  border: 1.5px solid var(--border); border-radius: 999px; background: var(--surface);
  color: var(--text); font-size: 13px; font-weight: 600; cursor: pointer;
}
.palette:hover { border-color: var(--text); }
.palette.is-active { border-color: var(--text); box-shadow: 0 0 0 1.5px var(--text); }
.palette-chips { display: inline-flex; }
.palette-chip { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--surface); }
.palette-chip + .palette-chip { margin-left: -8px; }
.palette-name { white-space: nowrap; }

/* ===== Responsive ===== */
@media (max-width: 640px) {
  /* Topbar zweizeilig & aufgeräumt: Zeile 1 = Logo + Aktionen, Zeile 2 = Nav mittig */
  .topbar-inner { flex-wrap: wrap; gap: 8px 12px; }
  .brand { order: 1; }
  .topbar-right { order: 2; margin-left: auto; }
  .nav { order: 3; width: 100%; justify-content: center; gap: 4px 6px; }
  .nav a { padding: 8px 10px; }

  .content { padding: 18px 14px; }
  button, .btn, input, select { min-height: var(--touch-min); }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span2 { grid-column: auto; }
  .time-grid { grid-template-columns: 1fr 1fr; }
  .cal-day { min-height: 56px; }
  .cal-chip { display: none; }
  .col-act, .col-act2 { width: auto; }

  /* Mittig auf dem Handy: Überschriften, Kennzahlen, Login/Zustände */
  .page-title, .page-sub { text-align: center; }
  .metric { text-align: center; }
  .state { text-align: center; }
  /* Formular-Buttons füllen die Breite und stehen mittig statt links gedrängt */
  .form-actions { justify-content: center; }
  .form-actions .btn, .form-actions button { flex: 1 1 auto; }
  .form-actions .spacer { display: none; }
}
/* Nur sehr schmale Geräte: Schnellstart-Kacheln gestapelt (volle Breite) */
@media (max-width: 340px) {
  .quick-actions { grid-template-columns: 1fr; }
}
