/* ============================================================
   base.css — Reset, Typography, Layout-Primitives
   ============================================================
   Mobile-first. BEM. Keine Tag-only-Selektoren außer Reset.
   ============================================================ */

/* ─── Shared Tokens (alle 3 Sites identisch) ─── */
/* ─── Lokale Webfonts (zentral, kein externer Request — DSGVO + Performance) ─── */
@font-face { font-family: 'Inter'; src: url('/fonts/inter-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Playfair Display'; src: url('/fonts/playfair-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  /* Action (WhatsApp-Grün) — gemeinsame Signal-Farbe */
  --action: #1B5E5E;
  --action-dark: #134848;
  --action-text: #ffffff;

  /* Text */
  --text: #1a1f24;
  --text-muted: #5a6470;
  --text-faded: #646e7a;
  --text-on-brand: #ffffff;

  /* Surface */
  --surface-page: #ffffff;
  --surface-soft: #f8fafb;

  /* Border */
  --border: rgba(0, 0, 0, 0.10);
  --border-fine: rgba(0, 0, 0, 0.06);
  --border-on-dark: rgba(255, 255, 255, 0.16);

  /* Focus */
  --focus-ring: 0 0 0 3px rgba(37, 211, 102, 0.35);

  /* Semantic */
  --color-error: #c0392b;
  --chart-zins: #ff7043;

  /* Type-Scale */
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;
  --fs-2xl: 2rem;
  --fs-3xl: 2.5rem;

  /* Spacing-Scale */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;

  /* Radii */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;

  /* Layout */
  --container-max: 1100px;
  --container-pad: 5%;

  /* Fonts */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; min-width: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 160px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--text);
  background: var(--surface-page);
  -webkit-font-smoothing: antialiased;
}
img, picture, svg, canvas { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-sm);
}
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 700; line-height: 1.2; margin: 0 0 var(--sp-4); }
h1 { font-size: clamp(1.75rem, 5vw, var(--fs-3xl)); }
h2 { font-size: clamp(1.5rem, 4vw, var(--fs-2xl)); }
h3 { font-size: var(--fs-lg); }
h4 { font-size: var(--fs-md); }
p { margin: 0 0 var(--sp-4); }
ul, ol { margin: 0 0 var(--sp-4); padding-left: var(--sp-5); }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }

/* ─── Print ─── */
@media print {
  .site-header, .site-footer, .cookie-banner { display: none !important; }
}

/* ─── Forced Colors ─── */
@media (forced-colors: active) {
  .btn { border: 1px solid currentColor !important; }
}

/* ─── Container ─── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

/* ─── Skip-Link ─── */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand-primary);
  color: var(--text-on-brand);
  padding: var(--sp-3) var(--sp-4);
  z-index: 1000;
}
.skip-link:focus { left: var(--sp-4); top: var(--sp-4); }

/* ─── Utilities (sparsam, nur was wirklich oft gebraucht wird) ─── */
.u-sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.u-hidden { display: none; }
.u-center { text-align: center; }
.u-mt-2 { margin-top: var(--sp-2); }
.u-mt-4 { margin-top: var(--sp-4); }
.u-mt-6 { margin-top: var(--sp-6); }


/* FIX v62.7: Lange Compound-Wörter (Vermögensschadenhaftpflichtversicherung,
   Fremdwährungseinkommen, ...) brechen auf Mobile nicht um → horizontaler Overflow.
   Browser-Standard. */
h1, h2, h3, h4, h5, h6,
.card__title, .sub-hero__title, .hero__title,
.faq__summary, dt {
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}
