/* Grundlagen: Reset, Typografie, Fokus, Safe-Areas, Bewegungsreduktion. */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  /* Fokussierte Elemente dürfen nie unter der festen Kopfzeile, Aktionsleiste oder Navigation liegen (WCAG 2.4.11). Werte mit Reserve:
     Kopfzeile bis ca. 7,5 rem (mit laufender Stoppuhr), Aktionsleiste ca. 4,6 rem plus Navigation. */
  scroll-padding-top: calc(env(safe-area-inset-top) + 8rem);
  scroll-padding-bottom: calc(var(--nav-hoehe) + env(safe-area-inset-bottom) + 7.5rem);
}
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--farbe-grund);
  color: var(--farbe-text);
  font: 1.0625rem / 1.4 var(--schrift);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
}
h1, h2, h3, p { margin: 0; }
h1 { font-size: var(--schrift-xl); line-height: 1.15; font-weight: 800; letter-spacing: -0.025em; }
h2 { font-size: var(--schrift-l); line-height: 1.25; font-weight: 700; letter-spacing: -0.015em; }
h3 { font-size: var(--schrift-m); font-weight: 700; }
a { color: var(--farbe-primaer); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
.mono { font-family: var(--schrift-mono); font-variant-numeric: tabular-nums; }
.leise { color: var(--farbe-text-leise); }
.nur-sr {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
/* Fokusring: 3 px in Marken-Violett (hell #6A2DC2, dunkel #C4A8FF), mit 2 px Abstand; sichtbar auf Grund, Karte und neben Verläufen (>= 3:1, getestet) */
:focus-visible { outline: 3px solid var(--farbe-fokus); outline-offset: 2px; border-radius: 0.625rem; }
.skip {
  position: absolute; left: var(--abstand-2); top: -4rem; z-index: 100;
  background: var(--farbe-primaer); color: var(--farbe-primaer-text);
  padding: var(--abstand-3) var(--abstand-4); border-radius: var(--radius-s); text-decoration: none; font-weight: 600;
}
.skip:focus { top: calc(env(safe-area-inset-top) + var(--abstand-2)); }
/* Einheitliche Symbolsprache wie Entwurf A: Linien, 1,8 px, runde Enden */
.icon { width: 1.5rem; height: 1.5rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon use { pointer-events: none; }
/* Wer Bewegung reduziert haben möchte, bekommt keine Animationen und Übergänge mehr (Uhr zählt weiter, Puls-Ring entfällt) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
