/* ==========================================================================
   Praxis für Ergotherapie und Handtherapie — Design-System "Präzise Klarheit"
   Tokens, Reset, Typografie
   ========================================================================== */

:root {
  /* Farben — Graphit / Kreide / Messing, durch functions.php via Theme-Mods überschreibbar */
  --primary: oklch(22% 0.015 255);
  --primary-soft: oklch(32% 0.015 255);
  --bg: oklch(97% 0.004 90);
  --bg-raised: oklch(99% 0.002 90);
  --accent: oklch(62% 0.11 70);
  --accent-dim: oklch(62% 0.11 70 / 0.14);
  --fg: oklch(22% 0.015 255);
  --fg-muted: oklch(40% 0.012 255);
  --border: oklch(85% 0.006 90);
  --border-strong: oklch(75% 0.008 90);

  --radius: 2px;
  --radius-feature: 40px;

  --shadow-sm: 0 1px 2px oklch(22% 0.015 255 / 0.07);
  --shadow-md: 0 20px 48px -20px oklch(22% 0.015 255 / 0.28);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-ui: 220ms;
  --duration-reveal: 640ms;

  --space-3xs: 0.5rem;
  --space-2xs: 1rem;
  --space-xs: 1.5rem;
  --space-s: 2.5rem;
  --space-m: 4rem;
  --space-l: 6rem;
  --space-xl: 8rem;
  --space-2xl: 10rem;

  --container: 1280px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --grid-gap: clamp(1rem, 3vw, 2.5rem);

  --font-display: "Fraunces", "Source Serif 4", Georgia, serif;
  --font-body: "Public Sans", "Work Sans", -apple-system, BlinkMacSystemFont, sans-serif;

  --fs-body: clamp(1.0625rem, 1rem + 0.2vw, 1.1875rem);
  --fs-small: 0.9rem;
  --fs-eyebrow: 0.8125rem;
  --fs-h6: 1.5rem;
  --fs-h5: 2rem;
  --fs-h4: clamp(1.9rem, 1.6rem + 1.3vw, 2.667rem);
  --fs-h3: clamp(2.2rem, 1.7rem + 2.2vw, 3.555rem);
  --fs-h2: clamp(2.5rem, 1.8rem + 3.2vw, 4.74rem);
  --fs-h1: clamp(2.75rem, 1.9rem + 4.5vw, 6.32rem);

  --header-h: 92px;
  --header-h-shrunk: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

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

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  text-wrap: pretty;
  color: var(--primary);
}
h1 { font-size: var(--fs-h1); line-height: 1.02; }
h2 { font-size: var(--fs-h2); line-height: 1.04; }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }
h5 { font-size: var(--fs-h5); }
h6 { font-size: var(--fs-h6); text-transform: uppercase; letter-spacing: 0.06em; }

p { margin: 0 0 1.1em; max-width: 65ch; }
.measure-wide p { max-width: 75ch; }

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

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-2xs);
}

.accent-ink { color: var(--accent); }

::selection { background: var(--accent); color: var(--primary); }

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

.container {
  width: min(100% - (var(--gutter) * 2), var(--container));
  margin-inline: auto;
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--grid-gap);
}

.screen-reader-text {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}
.screen-reader-text:focus {
  position: fixed;
  top: var(--space-2xs);
  left: var(--space-2xs);
  width: auto; height: auto;
  padding: 0.6em 1em;
  background: var(--primary);
  color: #fff;
  z-index: 1000;
  clip: auto;
}

.icon {
  width: 1.4em;
  height: 1.4em;
  flex: 0 0 auto;
  vertical-align: middle;
  color: currentColor;
}
svg:not([width]):not([height]) { width: 1.5rem; height: 1.5rem; }
