/* Unplaster – gemeinsame Gestaltung (wie die App: dunkel, hoher Kontrast, Signalgelb, große Bedienelemente).
   Keine externen Schriften: Systemschrift (auf Apple-Geräten SF Rounded für Überschriften). */

:root {
  color-scheme: dark;
  --bg: #0b0f15;
  --surface: #151b24;
  --surface2: #1e2631;
  --stroke: rgba(255, 255, 255, 0.09);
  --text: #ffffff;
  --text-dim: rgba(255, 255, 255, 0.62);
  --accent: #ffc400;
  --damals: #e07a3f;
  --jetzt: #3fd0c9;
  --danger: #ff4d4f;
  --ok: #33c759;
  --warn: #ffb020;
  --radius: 18px;
  --btn-h: 64px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-round: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.45 var(--font);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-round); font-weight: 700; margin: 0; letter-spacing: -0.01em; }

a { color: inherit; }

button { font: inherit; color: inherit; }

[hidden] { display: none !important; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

svg { display: block; }

.ico { display: inline-flex; width: 24px; height: 24px; flex: none; }
.ico svg { width: 100%; height: 100%; }

/* ---------- Knöpfe ---------- */

.btn {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%; min-height: var(--btn-h); padding: 10px 20px;
  border: 1px solid transparent; border-radius: var(--radius);
  font: 600 18px/1.2 var(--font-round); text-decoration: none; text-align: center;
  cursor: pointer; user-select: none; -webkit-user-select: none;
  transition: transform 0.12s ease-out, opacity 0.12s ease-out, background-color 0.12s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.98); opacity: 0.8; }
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.btn[disabled] { opacity: 0.45; cursor: default; transform: none; }
.btn-primary { background: var(--accent); color: #000; }
.btn-secondary { background: var(--surface2); color: var(--text); border-color: var(--stroke); }
.btn-damals { background: var(--damals); color: #fff; }
.btn small { display: block; font: 500 13px/1.2 var(--font); opacity: 0.7; }

/* ---------- Karten ---------- */

.card {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 20px;
}

.eyebrow {
  margin: 0 0 4px; font: 600 13px/1.2 var(--font-round);
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-dim);
}

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 999px;
  font: 600 13px/1 var(--font-round);
  color: var(--accent); background: rgba(255, 196, 0, 0.15);
}

/* ---------- Haftungshinweis (dauerhaft) ---------- */

.disclaimer {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(0, 0, 0, 0.6); color: rgba(255, 255, 255, 0.92);
  font: 500 13px/1.3 var(--font);
}
.disclaimer .ico { color: var(--warn); width: 18px; height: 18px; }

/* ---------- Ladeanzeige ---------- */

.spinner {
  width: 38px; height: 38px; border-radius: 50%;
  border: 4px solid rgba(255, 196, 0, 0.22); border-top-color: var(--accent);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

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