/* =========================================================
   base.css – Reset, Design-Tokens, Typografie
   ========================================================= */

:root {
  /* Farben – erdige Stall- und Wiesentöne */
  --color-primary: #a8763e;        /* warmes Sattelbraun */
  --color-primary-light: #e0bb7d;  /* Heu-Gold, für dunkle Flächen */
  --color-secondary: #23332b;      /* dunkles Tannengrün */
  --color-secondary-soft: #2f4439;
  --color-cream: #fbf8f1;          /* Creme */
  --color-cream-muted: rgb(251 248 241 / 0.85);
  --color-cream-faint: rgb(251 248 241 / 0.6);
  --color-text: #2e2e2a;

  /* Schriften – nur Systemschriften (DSGVO) */
  --font-heading: Optima, Candara, "Segoe UI", "Gill Sans", "Gill Sans MT", "Noto Sans", sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Schriftgrößen (fluid, mobile first) */
  --fs-small: 0.875rem;
  --fs-base: 1rem;
  --fs-lead: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  --fs-h2: 1.25rem;
  --fs-h1: clamp(2rem, 1.4rem + 3vw, 3.5rem);

  /* Abstände */
  --space-xs: 0.5rem;
  --space-s: 1rem;
  --space-m: 1.5rem;
  --space-l: clamp(2rem, 1.5rem + 2vw, 3rem);
  --space-xl: clamp(2.5rem, 1.5rem + 4vw, 5rem);

  --radius: 999px;
  --border-accent: 3px;
  --divider-width: 4rem;
  --measure: 34rem;                /* max. Zeilenlänge für Fließtext */
  --container: 48rem;
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-secondary);
  overflow-wrap: anywhere;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.01em;
  overflow-wrap: break-word;
  hyphens: auto;
}

p { margin: 0; }

a { color: inherit; }

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