/* =========================================================
   base.css – Reset, Design-Tokens, Typografie
   Farben angelehnt an www.faszinova.de
   ========================================================= */

:root {
  /* Farben */
  --color-primary: #8b4a4a;        /* Bordeaux-Braun (faszinova primary) */
  --color-primary-light: #c99a8f;  /* aufgehellt, für dunkle Flächen */
  --color-secondary: #1a2f4b;      /* Dunkelblau */
  --color-secondary-soft: #243d60;
  --color-cream: #fffff6;          /* Creme */
  --color-light: #f5f5f5;
  --color-muted: #717171;
  --color-text: #343434;
  --color-faded: #9ea8b3;          /* Graublau, für „inaktive“ Grafikteile */

  /* 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-h1: clamp(2rem, 1.5rem + 2.5vw, 3.25rem);
  --fs-h2: clamp(1.625rem, 1.3rem + 1.6vw, 2.5rem);
  --fs-h3: clamp(1.25rem, 1.15rem + 0.4vw, 1.4rem);

  /* 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;
  --radius-card: 0.75rem;
  --measure: 38rem;                /* max. Zeilenlänge für Fließtext */
  --container: 70rem;              /* max. Inhaltsbreite */
}

*,
*::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;
  text-wrap: balance;
  hyphens: manual;
}

p { margin: 0; }

a { color: inherit; }

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

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