/* Basis-Stylesheet – barrierearm (WCAG 2.2 AA), schnell, ohne externe Ressourcen */
:root {
  --bg: #ffffff;
  --text: #1a1a1a;        /* 16.1:1 auf --bg */
  --muted: #4a4a4a;       /* 8.9:1 */
  --accent: #0b5cad;      /* 6.6:1 – Links */
  --accent-hover: #084683;
  --border: #d0d4da;
  --focus: #b3470a;       /* Fokusring, 3:1+ gegen bg und accent */
  --surface: #f4f6f8;
  --maxw: 72rem;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111418;
    --text: #eceff3;      /* 15.6:1 */
    --muted: #b8c0ca;     /* 9.7:1 */
    --accent: #7db8ff;    /* 8.6:1 */
    --accent-hover: #a9d0ff;
    --border: #2e353e;
    --focus: #ffb070;
    --surface: #1a1f25;
  }
}
*, *::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: 1rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh;
}
main { flex: 1; }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 1rem; }
h1, h2, h3 { line-height: 1.25; margin: 1.5em 0 .5em; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.5vw, 2.5rem); }
h2 { font-size: clamp(1.35rem, 1.1rem + 1.2vw, 1.75rem); }
p, ul, ol { margin: 0 0 1rem; max-width: 70ch; }
a { color: var(--accent); text-underline-offset: .15em; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }

/* Sprunglink zum Inhalt (WCAG 2.4.1) */
.skip-link {
  position: absolute; left: .5rem; top: -100%;
  background: var(--text); color: var(--bg); padding: .75rem 1rem; z-index: 100;
}
.skip-link:focus { top: .5rem; }

.site-header, .site-footer { border-color: var(--border); border-style: solid; border-width: 0; }
.site-header { border-bottom-width: 1px; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; padding-block: .75rem; }
.brand { font-weight: 700; font-size: 1.15rem; color: var(--text); text-decoration: none; }
nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin: 0; padding: 0; }
/* Zielgröße ≥ 24×24 px (WCAG 2.5.8) */
nav a, .site-footer a { display: inline-block; min-height: 44px; padding: .6rem .25rem; }
nav a[aria-current="page"] { font-weight: 700; text-decoration-thickness: 2px; }

.site-footer { border-top-width: 1px; margin-top: 3rem; background: var(--surface); color: var(--muted); font-size: .95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-block: 1rem; }
.site-footer ul { list-style: none; display: flex; gap: 1rem; margin: 0; padding: 0; }

.hinweis { background: var(--surface); border-left: 4px solid var(--accent); padding: 1rem 1.25rem; margin: 1.5rem 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header nav, .skip-link, .site-footer { display: none; }
  a::after { content: " (" attr(href) ")"; font-size: .85em; }
}
