/* ==========================================================================
   Schriften - EINE Quelle für alle Seiten.

   Die Seite trägt dafür nur eine Fragment-Marke mit dem Namen "fonts"; der
   Server macht daraus einen Link auf /css/fonts.css?v=<Kennung> (siehe
   "Gemeinsames CSS als Datei" in backend/cstactics/pages.py). Vorher stand
   dieser Block in allen 15 Seiten einzeln.

   ACHTUNG: In diesem Kommentar darf die Marken-Syntax nicht wörtlich
   vorkommen - sie würde beim Einsetzen selbst als Marke gelesen.

   Kanonische Quelle der Schriftdateien bleibt frontend/fonts/fonts.css.

   Audiowide steht hier für ALLE Seiten, weil das Logo der Seitenleiste es
   überall braucht. Sora (--display) bleibt bewusst draußen: nur drei Seiten
   benutzen es, die deklarieren es weiterhin selbst.
   ========================================================================== */
/* font-display: optional statt swap - aber NUR bei den Schnitten, die
   page_response() auch vorlaedt.

   swap heisst: sofort in der Systemschrift malen und spaeter umtauschen.
   Weil Poppins andere Buchstabenbreiten hat, rueckt dabei die ganze Seite
   einmal nach - bei jedem Seitenwechsel sichtbar (Nutzer-Meldung
   2026-09-17). optional heisst dagegen: kurz warten, und wenn die Schrift
   dann nicht da ist, fuer DIESEN Seitenaufruf bei der Systemschrift
   bleiben. Es wird also nie nachtraeglich getauscht, und genau das war das
   Zucken.

   Der Preis: beim allerersten Besuch mit kaltem Cache kann eine Seite
   einmal ganz ohne Poppins erscheinen. Deshalb das Vorladen davor - damit
   ist die Schrift praktisch immer rechtzeitig da, und im Cache liegt sie
   danach ein Jahr (siehe CACHE_LONG_PREFIXES).

   Die Subsets unten bleiben bei swap: sie werden nur fuer die Sprachen
   vorgeladen, die sie brauchen. Ohne Vorladen ist swap die bessere Wahl -
   ein spaet getauschter Buchstabe ist besser als ein dauerhaft falscher. */
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: optional; src: url('/fonts/poppins-400.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: optional; src: url('/fonts/poppins-600.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: optional; src: url('/fonts/poppins-700.woff2') format('woff2'); }

/* Zeichen jenseits von U+00FF: polnische/türkische Buchstaben (latin-ext) und
   Kyrillisch. Ohne diese Faces holt der Browser einzelne Buchstaben MITTEN IM
   WORT aus einer Systemschrift. Kyrillisch kommt von Montserrat, weil Poppins
   gar kein solches Subset hat - Details in frontend/fonts/fonts.css. */
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/poppins-400-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/poppins-600-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/poppins-700-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/montserrat-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/montserrat-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/montserrat-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

/* Logo-Schrift. Steht hier für alle Seiten, weil die Seitenleiste das Logo
   überall zeigt - vorher hatten sie nur 10 der 15 Seiten. */
@font-face { font-family: 'Audiowide'; font-style: normal; font-weight: 400; font-display: optional; src: url('/fonts/audiowide-400.woff2') format('woff2'); }
