/* =================================================================
   121WATT — Self-hosted Webfonts
   Variable-Fonts: SS3 (Roman + Italic) + Playfair Display
   6 WOFF2-Dateien, latin + latin-ext, font-display: swap
   Lokale Quelle: DSGVO-konform, keine Google-CDN-Aufrufe.
   ================================================================= */

/* ---------- Source Sans 3 (Variable, weight 200-900) ---------- */

/* latin-ext */
@font-face {
	font-family: 'Source Sans 3';
	font-style: normal;
	font-weight: 200 900;
	font-display: swap;
	src: url('fonts/source-sans-3/source-sans-3-roman-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;
}

/* latin */
@font-face {
	font-family: 'Source Sans 3';
	font-style: normal;
	font-weight: 200 900;
	font-display: swap;
	src: url('fonts/source-sans-3/source-sans-3-roman.woff2') format('woff2');
	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;
}

/* latin-ext italic */
@font-face {
	font-family: 'Source Sans 3';
	font-style: italic;
	font-weight: 200 900;
	font-display: swap;
	src: url('fonts/source-sans-3/source-sans-3-italic-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;
}

/* latin italic */
@font-face {
	font-family: 'Source Sans 3';
	font-style: italic;
	font-weight: 200 900;
	font-display: swap;
	src: url('fonts/source-sans-3/source-sans-3-italic.woff2') format('woff2');
	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;
}

/* ---------- Playfair Display (Variable, weight 400-900) ---------- */

/* latin-ext */
@font-face {
	font-family: 'Playfair Display';
	font-style: normal;
	font-weight: 400 900;
	font-display: swap;
	src: url('fonts/playfair-display/playfair-display-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;
}

/* latin */
@font-face {
	font-family: 'Playfair Display';
	font-style: normal;
	font-weight: 400 900;
	font-display: swap;
	src: url('fonts/playfair-display/playfair-display.woff2') format('woff2');
	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;
}

/* ---------- Metric-Override-Fallbacks (CLS-Schutz waehrend font-display: swap) ----------
   Wenn 'Source Sans 3' / 'Playfair Display' noch nicht geladen sind, rendert der Browser
   das System-Arial / Georgia mit angepassten Metriken, damit beim Swap keine Layout-Shifts
   entstehen. Werte stammen aus dem Tool 'fontaine'.
*/

@font-face {
	font-family: 'Source Sans Fallback';
	src: local('Arial');
	ascent-override: 96.31%;
	descent-override: 26.34%;
	line-gap-override: 0%;
	size-adjust: 95.18%;
}

@font-face {
	font-family: 'Playfair Fallback';
	src: local('Georgia');
	ascent-override: 102.18%;
	descent-override: 27.20%;
	line-gap-override: 0%;
	size-adjust: 109.31%;
}

/* ---------- Globaler Body-Font ----------
   Block C aus dem Font-Audit: Body global auf Source Sans 3, damit die Buttons/PMPro-Inline-
   Regeln nicht mehr auf OS-Fallback (Segoe UI / Roboto / SF) zurueckfallen muessen.
   Selectoren breit gefasst, damit das Theme-default ueberschrieben wird, aber nicht
   die Material-Icons (.material-icons) oder anderes mit eigener font-family.
*/

html,
body,
button,
input,
optgroup,
select,
textarea {
	font-family: 'Source Sans 3', 'Source Sans Fallback', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* ---------- Material-Icons-Fallback ----------
   Material Icons wurde aus dem Theme entfernt (kein Webfont mehr geladen).
   Bestehende ACF-Felder, die noch Material-Icons-Namen wie "school" oder
   "psychology" enthalten, wuerden sonst als Text rendern. Bis diese Felder
   auf SVG migriert sind, verstecken wir die <i class="material-icons">-Spans.
   .material-icons.svg-icon ist eine Opt-out-Klasse fuer kuenftige
   Migrationen, die zwar die Klasse beibehalten, aber SVG-Inhalt rendern.
*/
i.material-icons:not(.svg-icon),
span.material-icons:not(.svg-icon),
.material-icons:not(.svg-icon) {
	display: none;
}
