/* ===== base.css – Grundlayout, Kopfzeile, Typografie ===== */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink);
  font: 400 17px/1.4 var(--font); letter-spacing: -.011em; -webkit-font-smoothing: antialiased;
}
button { font: inherit; letter-spacing: inherit; -webkit-appearance: none; appearance: none; touch-action: manipulation; }
img { max-width: 100%; }

/* --- Kopfzeile: Milchglas, wie bei iOS --- */
.top {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 12px;
  padding: 10px 16px; padding-top: calc(10px + env(safe-area-inset-top));
  background: var(--glass); -webkit-backdrop-filter: saturate(180%) blur(22px); backdrop-filter: saturate(180%) blur(22px);
  border-bottom: .5px solid var(--line);
}
.top img { flex: none; width: 36px; height: 36px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.top h1 { flex: 1; min-width: 0; margin: 0; font: 650 1.02rem/1.15 var(--font-head); letter-spacing: -.02em; }
.top h1 small { display: block; margin-top: 1px; font: 400 .72rem/1.2 var(--font); letter-spacing: 0; color: var(--muted); }
.top button { flex: none; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; background: var(--fill); color: var(--brand); font-size: 1.2rem; line-height: 1; }
.top button:active { opacity: .6; }
#timer { flex: none; padding: 6px 12px; border-radius: 999px; background: var(--night); color: var(--on-night); font: 600 .95rem/1 var(--font); font-variant-numeric: tabular-nums; }
#timer:empty { display: none; }

/* --- Inhalt --- */
main { max-width: 560px; margin: 0 auto; padding: 22px 16px calc(40px + env(safe-area-inset-bottom)); }
h2 { margin: 4px 0 6px; font: 700 1.85rem/1.1 var(--font-head); letter-spacing: -.035em; }
h3 { margin: 28px 4px 10px; font: 600 .78rem/1 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
p { margin: 8px 0; }
i { font-style: normal; }
.muted { color: var(--muted); } .center { text-align: center; } .small { font-size: .85rem; }
.good { color: var(--ok); font-weight: 650; } .wrong { color: var(--bad); font-weight: 650; }

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