/* ==========================================================================
   Cyber24.com – Typografie-System (BRAND-HANDOVER-OPUS.md, Abschnitt 7)
   Outfit wird DSGVO-konform selbst gehostet (kein Google-Fonts-Abruf).
   Einziger Unterschied zur Kopiervorlage: relativer Pfad zu assets/fonts/.
   ========================================================================== */
@font-face {
  font-family: 'Outfit';
  src: url('../fonts/Outfit-VariableFont_wght.woff2') format('woff2-variations'),
       url('../fonts/Outfit-VariableFont_wght.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-sans: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1rem;          /* 16px Basis */
  line-height: 1.62;
  letter-spacing: 0.005em;
  color: var(--color-text-primary);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* H1 – Hero & Seitentitel */
h1, .text-h1 {
  font-weight: 600;         /* SemiBold – bewusst leichter als das 800er Logo */
  font-size: clamp(2.125rem, 3.6vw, 3.25rem); /* 34px -> 52px */
  line-height: 1.12;
  letter-spacing: -0.022em;
}

/* H2 – Sektionsüberschriften */
h2, .text-h2 {
  font-weight: 600;
  font-size: clamp(1.625rem, 2.5vw, 2.25rem); /* 26px -> 36px */
  line-height: 1.18;
  letter-spacing: -0.016em;
}

/* H3 – Karten- & Modulüberschriften */
h3, .text-h3 {
  font-weight: 600;
  font-size: clamp(1.25rem, 1.7vw, 1.5rem);   /* 20px -> 24px */
  line-height: 1.26;
  letter-spacing: -0.01em;
}

/* H4 – Zwischenüberschriften */
h4, .text-h4 {
  font-weight: 500;
  font-size: 1.125rem;      /* 18px */
  line-height: 1.35;
  letter-spacing: -0.005em;
}

/* Lead / Hero-Einleitung in Outfit Light 300 */
.text-lead {
  font-weight: 300;
  font-size: clamp(1.125rem, 1.4vw, 1.375rem); /* 18px -> 22px */
  line-height: 1.55;
  letter-spacing: 0.005em;
  color: var(--color-text-secondary);
}

/* Navigation, Buttons & Formular-Labels */
.nav-link, .form-label {
  font-weight: 500;
  font-size: 0.9375rem;     /* 15px */
  line-height: 1.3;
  letter-spacing: 0.008em;
}

.btn-primary, .btn-secondary {
  font-weight: 600;
  font-size: 0.9375rem;     /* 15px */
  line-height: 1.2;
  letter-spacing: 0.01em;
}

/* Tabellenwerte & Versicherungssummen */
.numeric-tabular {
  font-variant-numeric: tabular-nums lining-nums;
}

/* Kleintext, Fußnoten & Bedingungshinweise (niemals Light 300!) */
small, .text-caption {
  font-weight: 400;
  font-size: 0.875rem;      /* 14px */
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: var(--color-text-muted);
}

/* Ergänzung: Schnitt-Obergrenze im Seitentext (kein 700/800/900) */
b, strong { font-weight: 600; }
