/* wageklug Hausschriften — self-hosted, latin-Subset, woff2.
 * Barlow (OFL 1.1, Fonts/LICENSE-barlow.txt): Grotesk in der Tradition der
 * DIN-1451-Beschriftung; traegt Text (400), Auszeichnung (700) und die
 * Typenschild-Displays (900). IBM Plex Mono (OFL 1.1,
 * Fonts/LICENSE-ibm-plex-mono.txt): technische Beschriftungsebene
 * (Spezifikations-Leisten, Labels, Kennziffern). Ein Schnitt 500, deklariert
 * fuer 400-700: Browser rendern damit auch "bold" ohne Faux-Bold-Synthese.
 * Gesamtgewicht: 4 Dateien, zusammen ca. 56 KB.
 * Statisch (KEIN Vite-Import): Pfade bleiben stabil fuer die preload-Links
 * im Layout Default.html.
 *
 * CLS-Schutz: Zu jeder Hausschrift gibt es unten einen metrik-angepassten
 * Fallback ('Barlow Fallback' auf Arial/Helvetica, 'Plex Mono Fallback' auf
 * Courier New). size-adjust/ascent-/descent-/line-gap-override bilden die
 * Barlow-/Plex-Metriken exakt auf den System-Fallback ab, damit der
 * font-display:swap-Tausch KEINEN Reflow ausloest (gemessen CLS 0.116 -> 0
 * im verzoegerten-Font-Szenario, docs/verify/brand/cls-harness.mjs).
 * Werte + Methode: docs/BRAND.md, Abschnitt "Font-Fallback-Metriken".
 * swap bleibt bewusst (statt optional): Text sofort sichtbar, Marke laedt
 * garantiert nach — der Metrik-Fallback macht den Swap shift-frei. */

@font-face {
    font-family: 'Barlow';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../Fonts/barlow-400-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
}

@font-face {
    font-family: 'Barlow';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../Fonts/barlow-700-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
}

@font-face {
    font-family: 'Barlow';
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url('../Fonts/barlow-900-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
}

@font-face {
    font-family: 'IBM Plex Mono';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../Fonts/ibm-plex-mono-500-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
}

/* --- Metrik-angepasste Fallbacks (CLS-Schutz beim Font-Swap) ---
 * Kalibrierung je Schnitt gegen den System-Fallback, der ihn vertritt:
 * 400 gegen Arial Regular, 700/900 gegen Arial Bold (Helvetica ist auf
 * macOS advance-identisch zu Arial und haengt als Zweitquelle dran).
 * size-adjust 400/700: frequenzgewichtete Kleinbuchstaben-Durchschnitts-
 * breite (next/font-Sample 'aaabcdeeeefghiijklmnnoopqrrssttuvwxyz ').
 * size-adjust 900: GROSSBUCHSTABEN-gewichtet — der 900er traegt fast nur
 * Uppercase-Displays (Hero-H1, Sektions-Titel); Caps-Kalibrierung haelt
 * deren Zeilenumbrueche stabil. ascent/descent/line-gap: hhea-Metriken
 * der Hausschrift, durch size-adjust geteilt (Fontaine-/next/font-Formel).
 * Herleitung + Rohmetriken: docs/BRAND.md "Font-Fallback-Metriken". */

@font-face {
    font-family: 'Barlow Fallback';
    font-style: normal;
    font-weight: 400;
    src: local('Arial'), local('ArialMT'), local('Helvetica'), local('Helvetica Neue');
    size-adjust: 98.865%;
    ascent-override: 101.148%;
    descent-override: 20.23%;
    line-gap-override: 0%;
}

@font-face {
    font-family: 'Barlow Fallback';
    font-style: normal;
    font-weight: 700;
    src: local('Arial Bold'), local('Arial-BoldMT'), local('Helvetica Bold'), local('Helvetica-Bold');
    size-adjust: 94.396%;
    ascent-override: 105.937%;
    descent-override: 21.187%;
    line-gap-override: 0%;
}

@font-face {
    font-family: 'Barlow Fallback';
    font-style: normal;
    font-weight: 900;
    src: local('Arial Bold'), local('Arial-BoldMT'), local('Helvetica Bold'), local('Helvetica-Bold');
    size-adjust: 89.566%;
    ascent-override: 111.649%;
    descent-override: 22.33%;
    line-gap-override: 0%;
}

@font-face {
    font-family: 'Plex Mono Fallback';
    font-style: normal;
    font-weight: 400 700;
    src: local('Courier New'), local('CourierNewPSMT');
    size-adjust: 99.984%;
    ascent-override: 102.517%;
    descent-override: 27.504%;
    line-gap-override: 0%;
}
