/* ==========================================================================
   Gym PWA – Design-System
   Ruhiges Dunkelgrau, mintgrüner Akzent, großzügige Eingabeflächen.
   ========================================================================== */

:root {
  --bg: #0e1012;
  --bg-soft: #121517;
  --surface: #16191c;
  --surface-2: #1d2225;
  --surface-3: #23282c;
  --line: #262c30;
  --line-soft: #1f2427;

  --text: #e9edee;
  --text-dim: #b9c1c4;
  --muted: #868f95;
  --faint: #5a6368;

  --accent: #5ee9a0;
  --accent-bright: #7cf0b4;
  --accent-ink: #07130d;
  --accent-soft: rgba(94, 233, 160, 0.12);
  --accent-line: rgba(94, 233, 160, 0.24);

  --warn: #fbbf24;
  --warn-soft: rgba(251, 191, 36, 0.12);
  --danger: #f87171;
  --danger-soft: rgba(248, 113, 113, 0.12);

  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 11px;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.45 "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont,
        "Segoe UI Variable Text", "Segoe UI", Inter, Roboto, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}

body { padding-bottom: calc(104px + var(--safe-b)); }

h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: 1.7rem; line-height: 1.15; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1rem; letter-spacing: -0.01em; }
p  { margin: 0; }
small { color: var(--muted); }

.app { max-width: 640px; margin: 0 auto; padding: 18px 16px 28px; }

/* ---------- Hilfsklassen ---------- */
.grow { flex: 1; min-width: 0; }
.row { display: flex; align-items: center; gap: 10px; }
.row-wrap { flex-wrap: wrap; }
.stack { display: grid; gap: 10px; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.muted { color: var(--muted); }
.tiny { font-size: 0.8rem; }
.center { text-align: center; }
.mt { margin-top: 16px; }
.mb { margin-bottom: 10px; }
.nums { font-variant-numeric: tabular-nums; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.ic { flex: none; display: block; }

/* Abschnittsüberschrift: klein, gesperrt, ruhig */
.sec {
  display: flex; align-items: baseline; gap: 10px;
  margin: 24px 2px 10px;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted);
}
.sec .grow { flex: 1; }
.sec-count { letter-spacing: 0; font-weight: 600; color: var(--faint); }

/* ---------- Kopfzeile ---------- */
.topbar { display: flex; align-items: flex-start; gap: 12px; padding: 4px 0 18px; }
.topbar .grow { padding-top: 1px; }
.topbar h1 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar small { display: block; margin-bottom: 3px; font-size: 0.84rem; }
.topbar-end { display: flex; align-items: center; gap: 8px; padding-top: 4px; }
.topbar .btn-icon { margin-top: 4px; }

/* Fortschrittsring (aktives Workout) */
.ring { position: relative; width: 46px; height: 46px; flex: none; }
.ring svg { transform: rotate(-90deg); display: block; }
.ring-track { stroke: var(--surface-3); }
.ring-fill { stroke: var(--accent); transition: stroke-dashoffset 0.35s ease; }
.ring-label {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 0.66rem; font-weight: 700; color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}

/* ---------- Karten ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 16px;
  margin-bottom: 12px;
}
.card-flat { background: var(--bg-soft); }
.card-tap { cursor: pointer; transition: border-color 0.15s ease, background 0.15s ease; }
.card-tap:active { background: var(--surface-2); border-color: var(--surface-3); }
.card-head { display: flex; align-items: center; gap: 12px; }

/* Icon-Plakette links in Karten */
.tile-ic {
  width: 38px; height: 38px; flex: none;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--accent-soft); color: var(--accent);
}
.tile-ic-plain { background: var(--surface-2); color: var(--text-dim); }

/* ---------- Kennzahlen ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 4px; }
.stat {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 12px 13px;
}
.stat-top { display: flex; align-items: center; gap: 6px; color: var(--faint); }
.stat-val {
  font-size: 1.35rem; font-weight: 700; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums; line-height: 1.1;
}
.stat-val i { font-style: normal; font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.stat-lab { font-size: 0.7rem; color: var(--muted); margin-top: 1px; }

/* ---------- Hero: „als Nächstes dran“ ---------- */
.hero {
  position: relative;
  background: linear-gradient(150deg, rgba(94, 233, 160, 0.16), rgba(94, 233, 160, 0.04)), var(--bg-soft);
  border: 1px solid rgba(94, 233, 160, 0.22);
  border-radius: var(--r-lg);
  padding: 18px 16px 16px;
  margin-bottom: 14px;
}
.hero-eyebrow {
  display: flex; align-items: center; gap: 7px;
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 10px;
}
.dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 3px rgba(94, 233, 160, 0.16);
}
.hero h2 { font-size: 1.55rem; letter-spacing: -0.025em; }
.hero small { display: block; margin-top: 4px; color: var(--text-dim); opacity: 0.75; }
.hero .btn { margin-top: 16px; }

/* ---------- Buttons ---------- */
button { font: inherit; color: inherit; cursor: pointer; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--r-md); font-weight: 600; letter-spacing: -0.01em;
  transition: transform 0.12s ease, background 0.15s ease, opacity 0.15s ease;
}
.btn:active { transform: scale(0.985); }
.btn:disabled { opacity: 0.55; cursor: default; }
.btn-primary {
  background: var(--accent-bright); border-color: var(--accent-bright);
  color: var(--accent-ink); font-weight: 700;
}
.btn-primary:active { background: var(--accent); }
.btn-soft { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); }
.btn-ghost { background: transparent; }
.btn-danger { color: var(--danger); border-color: #3a2528; background: transparent; }
.btn-block { width: 100%; }
.btn-lg { min-height: 54px; font-size: 1.02rem; border-radius: 15px; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 0.86rem; border-radius: 10px; }
.btn-pill { border-radius: 999px; }

.btn-icon {
  width: 38px; min-height: 38px; padding: 0; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 11px; color: var(--text-dim);
  background: var(--surface-2); border: 1px solid var(--line);
}
.btn-icon:active { background: var(--surface-3); }
.btn-icon-sm { width: 34px; min-height: 34px; border-radius: 10px; }
.btn-icon-danger { color: var(--danger); }

/* Chip-Reihe (freie Pausen) */
.chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.chips .btn { padding: 0 6px; font-variant-numeric: tabular-nums; }

/* ---------- Formulare ---------- */
label { display: block; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.04em;
        text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
input, select, textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  background: var(--surface-2); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--r-md);
  font: inherit; appearance: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--accent-line);
  background: var(--surface-3);
  box-shadow: 0 0 0 3px rgba(94, 233, 160, 0.1);
}
input::placeholder { color: var(--faint); }
input[readonly] { color: var(--muted); }
input[type=number] { -moz-appearance: textfield; }
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.field-sm input { min-height: 44px; padding: 8px 10px; text-align: center; font-weight: 600; }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line);
  font-size: 0.74rem; font-weight: 600; color: var(--muted); white-space: nowrap;
}
.badge-accent { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); }
.badge-warn { background: var(--warn-soft); border-color: rgba(251, 191, 36, 0.28); color: var(--warn); }
.badge-danger { background: var(--danger-soft); border-color: rgba(248, 113, 113, 0.28); color: var(--danger); }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 4px; background: var(--surface-2); padding: 4px; border-radius: var(--r-md); }
.tabs button {
  flex: 1; min-height: 40px; border: 0; background: transparent;
  border-radius: 10px; font-weight: 600; color: var(--muted);
  transition: background 0.15s ease, color 0.15s ease;
}
.tabs button[aria-selected="true"] {
  background: var(--surface); color: var(--text);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* ---------- Plan: Übungszeilen ---------- */
.plan-list { margin-top: 14px; border-top: 1px solid var(--line-soft); }
.plan-row {
  display: grid; grid-template-columns: 1fr auto auto;
  gap: 12px; align-items: center;
  padding: 10px 2px; border-bottom: 1px solid var(--line-soft);
  font-size: 0.9rem;
}
.plan-row:last-child { border-bottom: 0; padding-bottom: 2px; }
.plan-row .p-name { color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plan-row .p-sets { color: var(--muted); font-size: 0.82rem; font-variant-numeric: tabular-nums; }
.plan-row .p-rest { color: var(--faint); font-size: 0.82rem; font-variant-numeric: tabular-nums; min-width: 34px; text-align: right; }

/* ---------- Training: Übungskarten ---------- */
.ex {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); margin-bottom: 12px; overflow: hidden;
}
.ex-open { border-color: var(--surface-3); }
.ex-head { display: flex; align-items: center; gap: 10px; padding: 14px 15px; }
.ex-head .grow { min-width: 0; }
.ex-name { font-weight: 650; letter-spacing: -0.01em; }
.ex-sub { display: block; margin-top: 2px; font-size: 0.79rem; color: var(--muted); }
.ex-tools { display: flex; gap: 7px; }
.ex-chev { color: var(--faint); }
.ex-done-ic { color: var(--accent); }

/* zusammengeklappte, fertige Übung */
.ex-collapsed .prev-box,
.ex-collapsed .set-head,
.ex-collapsed .set { display: none; }
.ex-collapsed .ex-head { cursor: pointer; }

/* „Zuletzt“-Zeile */
.prev-box {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 15px; background: var(--bg-soft);
  border-top: 1px solid var(--line-soft);
  font-size: 0.78rem; color: var(--muted);
  overflow-x: auto; scrollbar-width: none;
}
.prev-box::-webkit-scrollbar { display: none; }
.prev-box .prev-lab { flex: none; color: var(--faint); }
.prev-box b {
  flex: none; padding: 3px 8px; border-radius: 7px;
  background: var(--surface-2); color: var(--text-dim);
  font-weight: 600; font-size: 0.76rem; font-variant-numeric: tabular-nums;
}

/* Satz-Raster */
.set-head, .set {
  display: grid; grid-template-columns: 26px 1fr 1fr 52px;
  gap: 9px; align-items: center;
  padding: 5px 15px;
}
.set-head {
  padding-top: 10px; padding-bottom: 4px;
  font-size: 0.63rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--faint);
  border-top: 1px solid var(--line-soft);
}
.set-head span:nth-child(2), .set-head span:nth-child(3) { text-align: center; }
.set { padding-bottom: 6px; }
.set:last-child { padding-bottom: 14px; }
.set-no { font-variant-numeric: tabular-nums; font-size: 0.9rem; font-weight: 600; color: var(--faint); }
.set-done .set-no { color: var(--accent); }
.set-done input { border-color: rgba(94, 233, 160, 0.22); color: var(--text); }

.check {
  width: 52px; min-height: 44px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface-2);
  display: grid; place-items: center; color: var(--faint);
  transition: background 0.15s ease, color 0.15s ease, transform 0.12s ease;
}
.check:active { transform: scale(0.95); }
.check[aria-pressed="true"] {
  background: var(--accent-bright); border-color: var(--accent-bright); color: var(--accent-ink);
}
.set-hint { grid-column: 1 / -1; padding: 0 0 4px 26px; font-size: 0.76rem; color: var(--muted); }

/* ---------- Abgeschlossenes Training ---------- */
.summary { display: grid; grid-template-columns: 1fr 1fr; padding: 0; overflow: hidden; }
.sum { padding: 14px 16px; }
.sum:nth-child(odd) { border-right: 1px solid var(--line-soft); }
.sum:nth-child(-n+2) { border-bottom: 1px solid var(--line-soft); }
.sum span {
  display: block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 3px;
}
.sum b {
  font-size: 1.32rem; font-weight: 700; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.sum i { font-style: normal; font-size: 0.8rem; font-weight: 600; color: var(--muted); margin-left: 2px; }

/* Nummer der Übung */
.ex-num {
  width: 26px; height: 26px; flex: none;
  display: grid; place-items: center; border-radius: 9px;
  background: var(--surface-2); color: var(--muted);
  font-size: 0.78rem; font-weight: 700; font-variant-numeric: tabular-nums;
}

/* Satzliste mit Balken – Länge = Volumen im Verhältnis zum besten Satz */
.log-list { padding: 4px 15px 14px; border-top: 1px solid var(--line-soft); }
.log-row { display: grid; grid-template-columns: 18px 1fr 58px; gap: 9px; align-items: center; margin-top: 7px; }
.log-no { font-size: 0.82rem; font-weight: 600; color: var(--faint); font-variant-numeric: tabular-nums; }
.log-meter {
  position: relative; display: flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 0 12px;
  border-radius: 11px; overflow: hidden;
  background: var(--surface-2);
}
.log-fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: linear-gradient(90deg, rgba(94, 233, 160, 0.20), rgba(94, 233, 160, 0.05));
  border-right: 1px solid rgba(94, 233, 160, 0.22);
}
.log-txt {
  position: relative; font-weight: 650; font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em; white-space: nowrap;
}
.log-txt i { font-style: normal; font-size: 0.76rem; font-weight: 600; color: var(--muted); margin-left: 2px; }
.log-txt em { font-style: normal; font-weight: 600; color: var(--text-dim); }
.log-vol {
  font-size: 0.73rem; color: var(--faint); text-align: right;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.log-row.is-top .log-vol { color: var(--muted); }
.log-row.is-top .log-fill {
  background: linear-gradient(90deg, rgba(94, 233, 160, 0.42), rgba(94, 233, 160, 0.10));
  border-right-color: var(--accent);
}
.log-row.is-top .log-no { color: var(--accent); }
.log-row.is-top .log-txt { color: #eafff2; }

/* ---------- Editor ---------- */
.ex-edit {
  display: grid; gap: 8px;
  padding: 13px 0; border-bottom: 1px solid var(--line-soft);
}
.ex-edit:first-child { padding-top: 2px; }
.ex-edit:last-of-type { border-bottom: 0; }
.ex-edit-meta { display: grid; grid-template-columns: 1fr 1fr 46px; gap: 8px; align-items: end; }
.ex-edit-meta .btn-icon { width: 46px; min-height: 44px; border-radius: 12px; }
.ex-edit label { white-space: nowrap; overflow: hidden; margin-bottom: 5px; }
code {
  padding: 1px 5px; border-radius: 5px;
  background: var(--surface-2); color: var(--text-dim);
  font-size: 0.85em; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ---------- Partner ---------- */
.avatar {
  width: 40px; height: 40px; flex: none;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  font-weight: 700; font-size: 0.95rem;
}
.hint {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 13px 14px; border-radius: var(--r-md);
  background: var(--bg-soft); border: 1px dashed var(--line);
  font-size: 0.8rem; color: var(--muted);
}
.hint .ic { color: var(--faint); margin-top: 1px; }

/* ---------- Navigation unten ---------- */
.nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex;
  padding: 8px 6px calc(8px + var(--safe-b));
  background: rgba(14, 16, 18, 0.86);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-top: 1px solid var(--line-soft);
}
.nav button {
  flex: 1; border: 0; background: none; color: var(--faint);
  display: grid; justify-items: center; gap: 4px; padding: 4px 0;
  font-size: 0.66rem; font-weight: 600; letter-spacing: 0.01em;
  transition: color 0.15s ease;
}
.nav button[aria-current="page"] { color: var(--accent); }

/* ---------- Pausentracker ---------- */
.timers { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; flex-direction: column; }
.timer {
  background: rgba(20, 24, 26, 0.97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--accent-line);
  box-shadow: 0 -14px 36px rgba(0, 0, 0, 0.5);
}
.timer.warn { border-top-color: rgba(251, 191, 36, 0.4); }
.timer.over { border-top-color: rgba(248, 113, 113, 0.45); }
.timers .timer:last-child { padding-bottom: var(--safe-b); }

.timer-body { max-width: 640px; margin: 0 auto; padding: 12px 16px 14px; }
.timer-main { display: flex; align-items: center; gap: 12px; }
.timer-clock { display: grid; gap: 5px; flex: 1; min-width: 0; }
.timer-meta { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.timer-who { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em;
             text-transform: uppercase; color: var(--accent); flex: none; }
.timer.over .timer-who { color: var(--danger); }
.timer-label { font-size: 0.78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.timer-bar { height: 4px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.timer-fill { height: 100%; width: 100%; background: var(--accent); border-radius: 999px; transition: width 0.25s linear; }
.timer.warn .timer-fill { background: var(--warn); }
.timer.over .timer-fill { background: var(--danger); }
.timer-remaining {
  flex: none; font-size: 1.9rem; font-weight: 700; line-height: 1;
  font-variant-numeric: tabular-nums; letter-spacing: -0.03em;
}
.timer.over .timer-remaining { color: var(--danger); }
.timer-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.btn-round {
  min-height: 44px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface-2);
  font-size: 0.85rem; font-weight: 700; font-variant-numeric: tabular-nums;
  display: grid; place-items: center;
  transition: transform 0.12s ease, background 0.15s ease;
}
.btn-round:active { transform: scale(0.96); }
.btn-round-primary { background: var(--accent-bright); border-color: var(--accent-bright); color: var(--accent-ink); }
body.has-timer .nav { display: none; }
body.has-timer { padding-bottom: calc(var(--timers-h, 140px) + var(--safe-b)); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(122px + var(--safe-b));
  transform: translateX(-50%);
  background: var(--surface-3); border: 1px solid var(--line);
  padding: 11px 18px; border-radius: 999px; z-index: 60;
  font-size: 0.87rem; font-weight: 500; max-width: 92vw; text-align: center;
  box-shadow: var(--shadow);
  animation: toast-in 0.2s ease;
}
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ---------- Install-Button ---------- */
.install-btn {
  position: fixed; right: 16px; bottom: calc(104px + var(--safe-b));
  z-index: 70;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 20px; border-radius: 999px;
  background: var(--accent-bright); border: none; color: var(--accent-ink);
  font-size: 0.9rem; font-weight: 700;
  box-shadow: var(--shadow);
  cursor: pointer;
  animation: install-in 0.25s ease;
}
.install-btn svg { flex: none; }
body.has-timer .install-btn { bottom: calc(var(--timers-h, 140px) + 24px + var(--safe-b)); }
@keyframes install-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

@media all and (display-mode: standalone),
       all and (display-mode: window-controls-overlay),
       all and (display-mode: minimal-ui),
       all and (display-mode: fullscreen) {
  .install-btn { display: none !important; }
}

/* ---------- Login ---------- */
.auth { max-width: 400px; margin: 9vh auto; padding: 0 18px; }
.auth-logo {
  width: 62px; height: 62px; margin: 0 auto 16px;
  display: grid; place-items: center; border-radius: 19px;
  background: var(--accent-soft); color: var(--accent);
  border: 1px solid var(--accent-line);
}
.divider { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 0.76rem;
           letter-spacing: 0.06em; text-transform: uppercase; margin: 20px 0; }
.divider::before, .divider::after { content: ""; height: 1px; background: var(--line); flex: 1; }

.err { color: var(--danger); font-size: 0.85rem; }
.ok { color: var(--accent); font-size: 0.85rem; }
.err:empty, .ok:empty { display: none; }

/* ---------- Leerzustände / Laden ---------- */
.empty { text-align: center; color: var(--muted); padding: 44px 20px; font-size: 0.9rem; }
.empty .ic { margin: 0 auto 12px; color: var(--surface-3); }
.empty b { display: block; color: var(--text-dim); font-size: 1rem; margin-bottom: 4px; }

.spin {
  display: inline-block; width: 20px; height: 20px;
  border: 2px solid var(--surface-3); border-top-color: var(--accent);
  border-radius: 50%; animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

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

/* Sehr schmale Geräte */
@media (max-width: 360px) {
  .stats { gap: 7px; }
  .stat { padding: 10px; }
  .stat-val { font-size: 1.2rem; }
  .set-head, .set { grid-template-columns: 22px 1fr 1fr 46px; gap: 7px; padding-left: 12px; padding-right: 12px; }
  .check { width: 46px; }
}
