/* ==========================================================
   Familienseite – Grundgestaltung
   Angelehnt an unsere Hochzeitsseite: Mint (#73cbc7) und Koralle (#ffa393),
   Überschriften in Oswald, Text in Work Sans – beides lokal eingebunden
   (keine Google-Server, DSGVO-freundlich). Packpapier für die Kellerkisten.
   ========================================================== */
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 200 700; font-display: swap;
  src: url(fonts/oswald-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 200 700; font-display: swap;
  src: url(fonts/oswald-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Work Sans"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(fonts/work-sans-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Work Sans"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(fonts/work-sans-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Work Sans"; font-style: italic; font-weight: 100 900; font-display: swap;
  src: url(fonts/work-sans-latin-wght-italic.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --paper: #fbf6f3;          /* warmes Weiß mit einem Hauch Rosé */
  --surface: #ffffff;
  --surface-2: #f5ece7;
  --ink: #3b3431;            /* warmes Anthrazit statt kaltem Schiefer */
  --muted: #84756d;
  --line: #ecdfd8;
  --primary: #2d7f7a;        /* Mint der Hochzeitsseite, für Text/Knöpfe kräftiger */
  --primary-ink: #ffffff;
  --accent: #73cbc7;         /* Original-Mint der Hochzeitsseite */
  --accent-soft: #e2f4f2;
  --kraft: #cfae7b;
  --kraft-light: #f1e2c8;
  --kraft-ink: #4a3516;
  --coral: #ffa393;          /* Original-Koralle der Hochzeitsseite */
  --coral-soft: #ffece7;
  --coral-ink: #b04a37;
  --danger: #b3261e;
  --ok: #2e7d5b;
  --warn: #9a6400;
  --shadow: 0 1px 2px rgba(80, 50, 40, .06), 0 8px 24px rgba(80, 50, 40, .08);
  --radius-s: 6px;
  --radius: 14px;
  --radius-l: 22px;
  --font: "Work Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-round: "Oswald", "Avenir Next Condensed", "Arial Narrow", system-ui, sans-serif;
  --font-stencil: "Oswald", "Avenir Next Condensed", "Roboto Condensed", "Arial Narrow", sans-serif;
  --nav-w: 248px;
  --tabbar-h: 64px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #1d1917; --surface: #27211f; --surface-2: #322a27; --ink: #f3ebe6; --muted: #b3a29a;
    --line: #3d3431; --primary: #86d6d1; --primary-ink: #13302e; --accent: #73cbc7; --accent-soft: #23403e;
    --kraft: #b8945e; --kraft-light: #4a3b22; --kraft-ink: #f6e7cc; --coral-soft: #432823; --coral-ink: #ffb8aa;
    --danger: #ff8a80; --ok: #7bd6a8; --warn: #ffc56b;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #1d1917; --surface: #27211f; --surface-2: #322a27; --ink: #f3ebe6; --muted: #b3a29a;
  --line: #3d3431; --primary: #86d6d1; --primary-ink: #13302e; --accent: #73cbc7; --accent-soft: #23403e;
  --kraft: #b8945e; --kraft-light: #4a3b22; --kraft-ink: #f6e7cc; --coral-soft: #432823; --coral-ink: #ffb8aa;
  --danger: #ff8a80; --ok: #7bd6a8; --warn: #ffc56b;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 16px/1.5 var(--font); -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: var(--primary); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-round); line-height: 1.2; margin: 0 0 .5em; letter-spacing: .005em; font-weight: 500; }
h1 { font-size: 1.9rem; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 .8em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.nowrap { white-space: nowrap; }
.icon { width: 1.25em; height: 1.25em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.25em; }

/* ---------- Start / Boot ---------- */
#app.booting { min-height: 100vh; display: grid; place-items: center; }
.boot-mark { width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--accent); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Grundlayout ---------- */
.layout { min-height: 100vh; }
.sidebar { display: none; }
.main { padding: 0 16px calc(var(--tabbar-h) + 24px + env(safe-area-inset-bottom)); max-width: 1120px; margin: 0 auto; }
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 8px;
  min-height: 56px; padding: env(safe-area-inset-top) 0 0; margin: 0 -16px 12px; padding-left: 16px; padding-right: 12px;
  background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
}
.topbar.scrolled { border-bottom-color: var(--line); }
.topbar h1 { font-size: 1.35rem; font-weight: 500; margin: 0; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar .actions { display: flex; gap: 4px; align-items: center; }

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; justify-content: space-around;
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: var(--surface); border-top: 1px solid var(--line);
}
.tabbar a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font-size: .72rem; color: var(--muted); text-decoration: none; font-weight: 600;
}
.tabbar a .icon { width: 24px; height: 24px; }
.tabbar a.active { color: var(--primary); }
.tabbar a.active .icon { stroke-width: 2.2; }

@media (min-width: 900px) {
  .layout { display: grid; grid-template-columns: var(--nav-w) 1fr; }
  .tabbar { display: none; }
  .sidebar {
    display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; padding: 24px 14px;
    background: var(--surface); border-right: 1px solid var(--line);
  }
  .sidebar .brand { font-family: var(--font-round); font-weight: 500; font-size: 1.45rem; line-height: 1.15; padding: 4px 12px 22px; color: var(--ink); text-decoration: none; }
  .sidebar .brand::after { content: ""; display: block; width: 36px; height: 3px; border-radius: 2px; background: var(--coral); margin-top: 10px; }
  .sidebar .brand small { display: block; font-family: var(--font); font-weight: 500; font-size: .8rem; color: var(--muted); margin-top: 4px; }
  .sidebar nav { display: flex; flex-direction: column; gap: 2px; }
  .sidebar nav a {
    display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px;
    color: var(--ink); text-decoration: none; font-weight: 550;
  }
  .sidebar nav a:hover { background: var(--surface-2); }
  .sidebar nav a.active { background: var(--accent-soft); color: var(--primary); }
  .sidebar .foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; padding: 0 4px; }
  .main { padding: 0 32px 48px; }
  .topbar { margin: 0 -32px 16px; padding-left: 32px; padding-right: 24px; min-height: 68px; }
  .topbar h1 { font-size: 1.5rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; -webkit-tap-highlight-color: transparent;
}
.btn:hover { border-color: var(--muted); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn.primary { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.danger { color: var(--danger); }
.btn.danger.solid { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--surface-2); }
.btn.small { min-height: 34px; padding: 0 12px; font-size: .875rem; }
.btn.block { width: 100%; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: transparent; color: var(--ink); cursor: pointer; text-decoration: none; flex: none;
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn .icon { width: 22px; height: 22px; }
.fab {
  position: fixed; right: 18px; bottom: calc(var(--tabbar-h) + 18px + env(safe-area-inset-bottom)); z-index: 25;
  width: 58px; height: 58px; border-radius: 18px; border: 0; background: var(--primary); color: var(--primary-ink);
  display: grid; place-items: center; box-shadow: 0 6px 20px rgba(29, 78, 75, .35); cursor: pointer;
}
.fab .icon { width: 28px; height: 28px; stroke-width: 2.2; }
@media (min-width: 900px) { .fab { bottom: 28px; right: 32px; } }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.btn-row.end { justify-content: flex-end; }

/* ---------- Formulare ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field > span { font-size: .875rem; font-weight: 600; color: var(--muted); }
.field .hint { font-size: .8rem; color: var(--muted); }
.input, select.input, textarea.input {
  width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font-size: 16px;
}
textarea.input { min-height: 90px; resize: vertical; line-height: 1.45; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.row { display: flex; gap: 12px; }
.row > * { flex: 1; min-width: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--primary); flex: none; }
.search {
  display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 0 6px 0 14px; min-height: 48px;
}
.search input { border: 0; background: transparent; flex: 1; min-width: 0; font-size: 16px; padding: 10px 0; outline: none; }
.search .icon { color: var(--muted); }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.stepper button { width: 44px; height: 44px; border: 0; background: none; font-size: 1.3rem; cursor: pointer; color: var(--ink); }
.stepper input { width: 52px; text-align: center; border: 0; background: none; font-size: 1.05rem; font-weight: 650; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ---------- Listen & Flächen ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.panel.pad { padding: 18px; }
.list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.list > li + li { border-top: 1px solid var(--line); }
.list-row {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-height: 60px;
  color: inherit; text-decoration: none; background: none; border: 0; width: 100%; text-align: left; cursor: pointer;
}
.list-row:hover { background: var(--surface-2); }
.list-row .grow { flex: 1; min-width: 0; }
.list-row .title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-row .sub { font-size: .85rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thumb { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; background: var(--surface-2); flex: none; display: grid; place-items: center; color: var(--muted); overflow: hidden; }
.thumb .icon { width: 22px; height: 22px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 26px 0 10px; }
.section-head h2 { margin: 0; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; min-height: 36px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); font-size: .875rem; font-weight: 600; cursor: pointer; white-space: nowrap; color: var(--ink); text-decoration: none;
}
.chip.active { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: .75rem; font-weight: 700; background: var(--surface-2); color: var(--muted); }
.badge.ok { background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); }
.badge.warn { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); }
.badge.coral { background: var(--coral-soft); color: var(--coral-ink); }
.empty { text-align: center; padding: 40px 16px; color: var(--muted); }
.empty .icon { width: 40px; height: 40px; stroke-width: 1.4; margin: 0 auto 10px; display: block; color: var(--accent); }
.empty h3 { color: var(--ink); }
.notice { padding: 12px 14px; border-radius: 10px; background: var(--accent-soft); color: var(--ink); font-size: .9rem; margin-bottom: 14px; }
.notice.warn { background: color-mix(in srgb, var(--warn) 14%, var(--surface)); }
.notice.error { background: color-mix(in srgb, var(--danger) 12%, var(--surface)); }

/* ---------- Status-Pille (online/offline/sync) ---------- */
.status-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700;
  background: var(--surface-2); color: var(--muted); border: 0; cursor: pointer; white-space: nowrap;
}
.status-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.status-pill.offline::before { background: var(--warn); }
.status-pill.pending::before { background: var(--accent); animation: pulse 1.2s ease-in-out infinite; }
.status-pill.error::before { background: var(--danger); }
@keyframes pulse { 50% { opacity: .3; } }

/* ---------- Dialoge ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 100; background: rgba(12, 22, 21, .45); display: flex; align-items: flex-end; justify-content: center;
  animation: fade .15s ease-out;
}
.dialog {
  background: var(--surface); width: 100%; max-width: 560px; max-height: 92vh; overflow: auto; border-radius: var(--radius-l) var(--radius-l) 0 0;
  padding: 8px 18px calc(18px + env(safe-area-inset-bottom)); box-shadow: var(--shadow); animation: up .2s ease-out;
}
.dialog .grip { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 4px auto 12px; }
.dialog-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.dialog-head h2 { flex: 1; margin: 0; }
.dialog-foot { display: flex; gap: 8px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }
@media (min-width: 700px) {
  .overlay { align-items: center; }
  .dialog { border-radius: var(--radius-l); padding: 20px 24px 24px; }
  .dialog .grip { display: none; }
}
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(24px); opacity: .6; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

.toasts { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--tabbar-h) + 16px + env(safe-area-inset-bottom)); z-index: 200; display: flex; flex-direction: column; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
@media (min-width: 900px) { .toasts { bottom: 24px; } }
.toast { background: var(--ink); color: var(--paper); padding: 12px 16px; border-radius: 12px; box-shadow: var(--shadow); font-weight: 550; animation: up .2s ease-out; pointer-events: auto; }
.toast.error { background: var(--danger); color: #fff; }

/* ---------- Anmeldung ---------- */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.auth-card { width: 100%; max-width: 400px; }
.auth-card .crest {
  width: 64px; height: 64px; border-radius: 20px; background: var(--accent); color: #fff; display: grid; place-items: center;
  font-family: var(--font-round); font-weight: 500; font-size: 1.9rem; margin-bottom: 20px; box-shadow: 0 0 0 6px var(--coral-soft);
}
.auth-card h1 { font-size: 1.6rem; }
.auth-card .panel { padding: 22px; margin-top: 18px; }

/* ---------- Startseite ---------- */
.main.is-home .topbar { display: none; }
.main.is-home { padding-top: env(safe-area-inset-top); }
.home-hero { padding: 14px 0 4px; }
.home-hero.has-photo { padding-top: 0; }
@media (min-width: 900px) { .main.is-home { padding-top: 28px; } }
.hero-photo { margin: 0 -16px 0; aspect-ratio: 4 / 3; overflow: hidden; position: relative; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(40, 25, 20, .55)); }
.hero-text { position: relative; }
.home-hero.has-photo .hero-text { margin-top: -118px; padding: 0 4px 14px; color: #fff; text-shadow: 0 1px 12px rgba(0,0,0,.35); }
.hero-family { font-family: var(--font-round); font-size: .95rem; letter-spacing: .08em; color: var(--coral-ink); margin: 0 0 2px; }
.home-hero.has-photo .hero-family { color: #ffe1da; }
.home-hero .greeting { font-family: var(--font-round); font-size: clamp(2.1rem, 7vw, 3.2rem); font-weight: 400; line-height: 1.05; margin: 0; color: var(--primary); }
.home-hero.has-photo .greeting { color: #fff; }
@media (min-width: 900px) {
  .hero-photo { margin: 0; border-radius: var(--radius-l); aspect-ratio: 21 / 8; }
  .home-hero.has-photo .hero-text { margin-top: -132px; padding: 0 32px 22px; }
}
/* Begrüßungstext wie eine Karte zur Hochzeit */
.home-card {
  position: relative; margin: 18px 0 6px; padding: 26px 22px 22px; text-align: center; background: var(--surface);
  border-radius: var(--radius-l); box-shadow: var(--shadow); max-width: 640px;
}
.home-card::before {
  content: ""; position: absolute; inset: 8px; border: 1px solid var(--accent); border-radius: calc(var(--radius-l) - 6px); pointer-events: none; opacity: .7;
}
@media (min-width: 900px) { .home-hero.has-photo .home-card { margin-top: -10px; margin-left: 32px; } }
.card-quote { font-style: italic; font-size: 1.08rem; line-height: 1.55; margin: 0 auto 6px; max-width: 34ch; color: var(--ink); }
.card-sig { font-family: var(--font-round); font-size: .95rem; letter-spacing: .04em; color: var(--primary); margin: 0 0 4px; white-space: pre-line; }
.card-heart { display: flex; align-items: center; gap: 10px; justify-content: center; color: var(--coral); margin: 14px auto 12px; max-width: 200px; }
.card-heart::before, .card-heart::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.card-heart .icon { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.home-top:empty { display: none; }
.home-top { margin-top: 22px; }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-top: 22px; }
.tool-tile {
  display: flex; flex-direction: column; gap: 6px; padding: 18px; min-height: 140px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink);
}
.tool-tile:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.tool-tile[data-tool="links"] .t-icon { background: var(--coral-soft); color: var(--coral-ink); }
.tool-tile .t-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--primary); margin-bottom: 6px; }
.tool-tile[data-tool="inventar"] .t-icon { background: var(--kraft-light); color: var(--kraft-ink); }
.tool-tile[data-tool="geschenke"] .t-icon { background: var(--coral-soft); color: var(--coral-ink); }
.tool-tile strong { font-family: var(--font-round); font-size: 1.25rem; font-weight: 500; }
.tool-tile .meta { color: var(--muted); font-size: .9rem; }

.spinner { width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid var(--line); border-top-color: var(--accent); animation: spin .9s linear infinite; display: inline-block; vertical-align: middle; }
.loading { display: flex; justify-content: center; padding: 40px; }
.progress { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.progress > div { height: 100%; background: var(--accent); width: 0; transition: width .2s; }

/* ---------- Tabellen (Verwaltung) ---------- */
.table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.table th, .table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); font-size: .92rem; }
.table th { color: var(--muted); font-weight: 650; background: var(--surface-2); }
.table-wrap { overflow-x: auto; }

/* ---------- Druck ---------- */
@media print {
  .sidebar, .tabbar, .topbar, .fab, .toasts, .no-print { display: none !important; }
  body { background: #fff; color: #000; }
  .main { padding: 0; max-width: none; }
}
