/* Korrektur der kaputten @font-face-Pfade aus dem Webflow-Export
 * plus WOFF2-Subsets fuer die beiden Familien der Landingpage.
 *
 * PROBLEM 1 — falscher Pfad: in tomasa-testing.webflow.css zeigen vier
 * Familien auf url('../images/'), ein Verzeichnis ohne Dateinamen, das mit
 * 404 antwortet. Dadurch faellt der Text auf Arial zurueck und Angaben wie
 * font-weight: 300 (z.B. auf .herold-home-h1) bleiben wirkungslos.
 *
 * PROBLEM 2 — Format: der Export liefert TTF aus, also das Format ohne
 * Webkompression. Literata und Roboto liegen deshalb zusaetzlich als
 * WOFF2-Subset vor, aufgeteilt nach unicode-range wie bei Google Fonts:
 * latin-ext wird nur geladen, wenn tatsaechlich ein solches Zeichen im Text
 * vorkommt. Aktuell braucht keine Seite es — die einzigen Zeichen jenseits
 * von U+00FF sind –, „, “ und ZWJ, die alle im latin-Bereich liegen.
 *
 *   Literata  482K (TTF gzip)  ->  104K (latin)  + 84K (latin-ext, on demand)
 *   Roboto    272K (TTF gzip)  ->   56K (latin)  + 40K (latin-ext, on demand)
 *
 * Erzeugt mit pyftsubset (fonttools), Standard-Layout-Features, variable
 * Achsen bleiben erhalten (Literata opsz+wght, Roboto wdth+wght) — das CSS
 * nutzt Literata in 200..900 und Roboto in 100..900.
 *
 * Die TTF-Datei steht im latin-Block als Fallback fuer Browser ohne
 * WOFF2-Unterstuetzung. Praktisch nie relevant, kostet aber nichts.
 *
 * Fraunces ist hier weiterhin nur pfadkorrigiert und nicht subsettet: es wird
 * auf der Landingpage nicht gebraucht, sondern nur auf den Standort-Seiten.
 *
 * Diese Datei wird in Base.astro nach den drei Webflow-Stylesheets
 * eingebunden; die spaetere @font-face-Regel gewinnt. Der Export selbst bleibt
 * unangetastet, ein erneuter Export ueberschreibt die Korrektur nicht. Die
 * Ursache liegt in Webflow: die Custom Fonts sind dort ohne Datei-URL
 * hinterlegt.
 *
 * Nicht aufgefuehrt und nicht betroffen: 'Tan Pearl' und
 * 'Lora Variablefont Wght' — die zeigen im Export bereits auf ../fonts/.
 */

/* ---------- Literata (Ueberschriften, u.a. .herold-home-h1) ---------- */

@font-face {
  font-family: 'Literata Variablefont Opsz Wght';
  src: url('/fonts/Literata-subset-latin.woff2') format('woff2'),
       url('/fonts/Literata-VariableFont_opszwght.ttf') format('truetype');
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Literata Variablefont Opsz Wght';
  src: url('/fonts/Literata-subset-latin-ext.woff2') format('woff2');
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Roboto (Navigation, Footer, Fliesstext) ---------- */

@font-face {
  font-family: 'Roboto Variablefont Wdth Wght';
  src: url('/fonts/Roboto-subset-latin.woff2') format('woff2'),
       url('/fonts/Roboto-VariableFont_wdthwght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Roboto Variablefont Wdth Wght';
  src: url('/fonts/Roboto-subset-latin-ext.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Fraunces (nur Pfadkorrektur, siehe Kopf) ---------- */

@font-face {
  font-family: 'Fraunces Variablefont Soft Wonk Opsz Wght';
  src: url('/fonts/Fraunces-Italic-VariableFont_SOFTWONKopszwght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Fraunces Variablefont Soft Wonk Opsz Wght';
  src: url('/fonts/Fraunces-VariableFont_SOFTWONKopszwght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
