:root {
  --text: #1a1a1a;          /* auf Weiß: ca. 17:1 */
  --bg: #ffffff;
  --primary: #0b3d63;       /* auf Weiß: ca. 11:1 */
  --link: #004a99;          /* auf Weiß: ca. 8,6:1 */
  --link-visited: #5b2a86;  /* auf Weiß: ca. 9:1 */
  --notdienst-bg: #7a0808;
  --notdienst-text: #ffffff; /* auf #0b3d63: ca. 11:1 */
  --focus: #ffbf00;
}

* { box-sizing: border-box; }

html {
  font-size: 100%;          /* respektiert die Browser-Schriftgröße */
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 1.125rem;      /* 18 px */
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

/* Skip-Link: nur bei Tastaturfokus sichtbar */
.skip-link {
  position: absolute;
  left: 0.5rem;
  top: -4rem;
  padding: 0.75rem 1rem;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  z-index: 100;
}
.skip-link:focus { top: 0.5rem; }

.site-header,
main,
.notdienst,
.site-footer {
  max-width: 50rem;
  margin: 0 auto;
  padding: 1rem 1.25rem;
}

.site-header img {
  max-width: 100%;
  height: auto;
  display: block;
}

.claim {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
  margin: 0.5rem 0 0;
}

/* Notdienst-Block */
.notdienst {
  background: white;
  color: var(--primary);
  max-width: none;
  text-align: center;
}
.notdienst a { color: var(--primary); }
.notdienst h2 { margin: 0 0 0.5rem; }
.notdienst .tel { font-size: 1.75rem; font-weight: 600; }

.notdienst-inhalt {
  max-width: 50rem;
  margin: 0 auto;
  padding: 0 1.25rem;
  text-align: left;
}

/* Überschriften */
h1 { font-size: 1.75rem; line-height: 1.3; color: var(--primary); }
h2 { font-size: 1.5rem; line-height: 1.3; color: var(--primary); }


/* Links: nicht nur über Farbe erkennbar */
a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
a:visited { color: var(--link-visited); }
a:hover { text-decoration-thickness: 3px; }

/* Deutlicher Tastaturfokus */
a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  background: #000;
  color: #fff;
}

ul { padding-left: 1.5rem; }
li { margin-bottom: 0.5rem; }

.site-footer {
  border-top: 2px solid var(--primary);
  margin-top: 2rem;
}

/* Große Touch-Ziele */
a[href^="tel:"], a[href^="mailto:"], .site-footer a {
  display: inline-block;
  min-height: 44px;
  line-height: 44px;
}

/* Bewegung reduzieren, wenn gewünscht */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

/* Hoher-Kontrast-Modus (Windows) */
@media (forced-colors: active) {
  a:focus-visible { outline: 3px solid CanvasText; }
}