/* Betonwerk Präzision — Design-Tokens & Grundlagen */

:root {
  --primary: oklch(22% 0.015 255);
  --primary-deep: oklch(15% 0.012 255);
  --bg: oklch(97% 0.004 90);
  --surface: oklch(93% 0.006 85);
  --accent: oklch(48% 0.12 55);
  --accent-deep: oklch(38% 0.12 55);
  --text: oklch(18% 0.01 255);
  --text-muted: oklch(40% 0.012 255);
  --on-primary: oklch(96% 0.004 90);
  --border: oklch(85% 0.006 85);
  --radius: 2px;
  --radius-feature: 0px;

  --font-display: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
  --font-body: 'IBM Plex Sans', 'Segoe UI', sans-serif;

  --step-0: 1.0625rem;   /* 17px Fließtext */
  --step-1: 1.333rem;
  --step-2: 1.777rem;
  --step-3: 2.369rem;
  --step-4: 3.157rem;
  --step-5: 4.209rem;

  --space-xs: 1.5rem;
  --space-sm: 4rem;
  --space-md: 6rem;
  --space-lg: 8rem;
  --space-xl: 10rem;

  --container: min(1240px, 92vw);
  --measure: 62ch;

  --ease-out: cubic-bezier(.16,.84,.44,1);
  --dur-fast: 150ms;
  --dur-base: 240ms;
}

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

html { scroll-behavior: auto; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  text-wrap: pretty;
  -webkit-font-smoothing: antialiased;
}

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;
}

a { color: var(--accent-deep); text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  margin: 0 0 0.5em;
  text-wrap: pretty;
  letter-spacing: 0.01em;
  color: var(--primary);
}

h1 { font-size: clamp(2.75rem, 2rem + 4vw, 4.5rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 1.5rem + 2vw, var(--step-4)); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); font-family: var(--font-body); font-weight: 600; }

p { margin: 0 0 1.1em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

ul, ol { padding-left: 1.3em; margin: 0 0 1.1em; max-width: var(--measure); }
li { margin-bottom: 0.4em; }

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: var(--on-primary);
  padding: 0.75em 1.25em;
  z-index: 2000;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

.blueprint-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  background-blend-mode: multiply;
  pointer-events: none;
}

.blueprint-grid--dark {
  background-image:
    linear-gradient(rgba(22,27,34,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22,27,34,0.06) 1px, transparent 1px);
  background-size: 48px 48px;
}

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