/* ==========================================================
   LOKALE WEBFONTS – DSGVO-konform (kein Request an Google)
   Quelle: google-webfonts-helper (gwfh.mranftl.com)
   Lizenz: SIL Open Font License 1.1 (alle drei Familien)
   Subset: latin
   Reduziert auf das tatsächlich genutzte Set (7 Files statt 14)
   für besseren LCP – siehe Performance-Audit 2026-05-29.
   ========================================================== */

/* ============ SOURCE SERIF 4 (v14) ============ */
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('files/source-serif-4-v14-latin-300.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('files/source-serif-4-v14-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('files/source-serif-4-v14-latin-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('files/source-serif-4-v14-latin-500.woff2') format('woff2');
}

/* ============ FIGTREE (v9) ============ */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('files/figtree-v9-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('files/figtree-v9-latin-600.woff2') format('woff2');
}

/* ============ JETBRAINS MONO (v24) ============ */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('files/jetbrains-mono-v24-latin-regular.woff2') format('woff2');
}

/* ==========================================================
   METRISCH ANGEPASSTE FALLBACK-FONTS (gegen CLS / Font-Swap)
   Werte aus den echten Webfont-Metriken berechnet, sodass der
   Fallback exakt dieselbe Box belegt wie der Webfont – der Swap
   verursacht dadurch keinen Layout-Shift mehr. Siehe Audit 2026-05-29.
   ========================================================== */
@font-face {
  font-family: 'Source Serif Fallback';
  src: local('Georgia'), local('Times New Roman'), local('Liberation Serif'), local('DejaVu Serif'), local('Nimbus Roman');
  size-adjust: 84.25%;
  ascent-override: 122.96%;
  descent-override: 39.76%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Figtree Fallback';
  src: local('Arial'), local('Helvetica'), local('Liberation Sans'), local('Arimo'), local('DejaVu Sans');
  size-adjust: 118.48%;
  ascent-override: 80.18%;
  descent-override: 21.10%;
  line-gap-override: 0%;
}
