/* Klaudia Jachnik — Klinische Klarheit: Design-Tokens, Reset, Basistypografie */

@font-face {
  font-family: 'Fraunces';
  src: local('Fraunces');
  font-display: swap;
}

:root {
  /* Farbsystem — gedämpft, natürlich, EINE Akzentfarbe */
  --primary: oklch(35% 0.08 250);
  --primary-dark: oklch(20% 0.055 250);
  --primary-tint: oklch(94% 0.015 250);
  --accent: oklch(52% 0.08 155);
  --accent-soft: oklch(75% 0.06 155);
  --accent-tint: oklch(95% 0.025 155);
  --bg: oklch(99% 0.002 250);
  --bg-alt: oklch(96.5% 0.006 250);
  --surface: oklch(100% 0 0);
  --text: oklch(20% 0.012 250);
  --text-muted: oklch(43% 0.02 250);
  --border: oklch(88% 0.012 250);
  --radius: 6px;
  --radius-accent: 28px;
  --space-unit: 0.5rem;
  --shadow-1: 0 1px 3px oklch(0% 0 0 / 0.08);
  --shadow-2: 0 12px 32px oklch(35% 0.08 250 / 0.12);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 180ms;
  --dur-base: 260ms;
  --font-display: 'Fraunces', 'Iowan Old Style', 'Source Serif 4', Georgia, serif;
  --font-body: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --fs-body: 1.125rem;
  --fs-sm: 0.9375rem;
  --fs-xs: 0.8125rem;
  --fs-h4: 1.5rem;
  --fs-h3: 2rem;
  --fs-h2: clamp(2rem, 1.5rem + 2vw, 2.75rem);
  --fs-h1: clamp(2.5rem, 1.8rem + 3.2vw, 4.25rem);
}

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

html { scroll-behavior: smooth; overflow-x: hidden; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  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, video, iframe { max-width: 100%; height: auto; display: block; }

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

p { max-width: 65ch; margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--primary); text-decoration-color: oklch(35% 0.08 250 / 0.35); text-underline-offset: 0.18em; }
a:hover { text-decoration-color: currentColor; }

svg { max-width: 100%; height: auto; }
.icon { width: 1.4em; height: 1.4em; flex: 0 0 auto; vertical-align: middle; }
.icon-lg { width: 2.4rem; height: 2.4rem; }
.icon-flip { transform: scaleX(-1); }

ul.plain, .plain { list-style: none; margin: 0; padding: 0; }

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

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

.skip-link {
  position: absolute;
  left: 1rem; top: -60px;
  background: var(--primary);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  z-index: 999;
  transition: top var(--dur-base) var(--ease-out);
}
.skip-link:focus { top: 1rem; }
