/* ==========================================================================
   Design-System „Klare Baustellen-Effizienz"
   Baublau + Betongrau, Archivo (Display) + Inter (Body), 6px Radius
   ========================================================================== */

:root {
  /* Farben — oklch, gedämpfte Baublau/Betongrau-Palette (WCAG-AA).
     --primary-hex/--neutral-hex kommen (falls im Customizer geändert) aus
     einem früh gedruckten Inline-Style, siehe inc/customizer.php. */
  --primary: var(--primary-hex, oklch(38% 0.09 250));        /* Baublau ~ #1D4E89 */
  --primary-dark: oklch(30% 0.085 250);  /* Hover/Active */
  --primary-tint: oklch(93% 0.02 250);   /* helle Blau-Fläche für Badges/Focus-Ring */
  --neutral: var(--neutral-hex, oklch(55% 0.015 255));   /* Betongrau ~ #6B7280 */
  --neutral-dark: oklch(38% 0.015 255);
  --surface: oklch(95% 0.004 255);       /* Hellgrau ~ #E7E9EC */
  --surface-2: oklch(90% 0.006 255);
  --bg: oklch(99% 0 0);                  /* #FFFFFF */
  --ink: oklch(24% 0.015 255);           /* Fließtext, dunkel & lesbar */
  --ink-soft: oklch(42% 0.015 255);
  --border: oklch(85% 0.006 255);
  --success: oklch(52% 0.11 155);
  --white: #ffffff;

  --radius: 6px;
  --radius-lg: 10px;

  --font-display: 'Archivo', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --container: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-pad: clamp(3.5rem, 8vw, 6.5rem);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 150ms;
  --dur-base: 220ms;
  --dur-slow: 280ms;

  --shadow-sm: 0 1px 2px oklch(38% 0.09 250 / 0.06), 0 1px 1px oklch(0% 0 0 / 0.04);
  --shadow-md: 0 6px 16px oklch(38% 0.09 250 / 0.10), 0 2px 6px oklch(0% 0 0 / 0.05);
  --shadow-lg: 0 16px 40px oklch(38% 0.09 250 / 0.14), 0 4px 12px oklch(0% 0 0 / 0.06);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video, iframe { max-width: 100%; height: auto; display: block; }
svg { max-width: 100%; height: auto; }

.icon {
  width: 1.4em;
  height: 1.4em;
  flex: 0 0 auto;
  vertical-align: middle;
  max-width: 32px;
  max-height: 32px;
  color: currentColor;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.6em;
  text-wrap: pretty;
  letter-spacing: -0.01em;
}

p { text-wrap: pretty; margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); font-weight: 600; }

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

ul, ol { padding-left: 1.3em; }
li { margin-bottom: 0.4em; }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.tabular-nums { font-variant-numeric: tabular-nums; font-feature-settings: 'tnum' 1; }

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: var(--white);
  padding: 0.8em 1.2em;
  z-index: 1000;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

.screen-reader-text {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px,1px,1px,1px);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
