/**
 * Schriften adhsgruppe.ch - lokal gehostet.
 *
 * Familjen Grotesk  - Ueberschriften. Grotesk mit eigenwilligen Details,
 *                     praegnant ohne verspielt zu wirken.
 * Instrument Sans   - Fliesstext. Neo-Grotesk, leicht schmal laufend,
 *                     zeitgenoessisch. Nah am Systemschrift-Look, aber
 *                     auf jedem Geraet identisch.
 *
 * Beide als Variable Fonts: eine Datei je Familie, Schnitt und Zeichensatz
 * deckt den Gewichtsbereich 400-700 ab.
 *
 * NICHT ueber fonts.googleapis.com eingebunden: Das uebertraegt die IP jedes
 * Besuchers an Google. Das LG Muenchen sah darin 2022 einen DSGVO-Verstoss
 * (Az. 3 O 17493/20). Bei einer psychotherapeutischen Praxis vermeidbar.
 *
 * ACHTUNG Pfad: diese Datei liegt in assets/, die Schriften in assets/fonts/.
 * Relativ ist das `fonts/...`, NICHT `../fonts/...`.
 *
 * Hinweis zur Paarung: Beide sind Grotesken. Der Unterschied traegt ueber
 * Groesse, Laufweite und Gewicht - deshalb sind die Ueberschriften bewusst
 * leicht gesetzt (400) und eng (-0.024em), der Fliesstext normal.
 */

@font-face {
	font-family: 'Familjen Grotesk';
	font-style: italic;
	font-weight: 400 700;
	font-display: swap;
	src: url('fonts/familjen-grotesk-400-700-italic-latin-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: 'Familjen Grotesk';
	font-style: italic;
	font-weight: 400 700;
	font-display: swap;
	src: url('fonts/familjen-grotesk-400-700-italic-latin.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;
}

@font-face {
	font-family: 'Familjen Grotesk';
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url('fonts/familjen-grotesk-400-700-latin-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: 'Familjen Grotesk';
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url('fonts/familjen-grotesk-400-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+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: 'Instrument Sans';
	font-style: italic;
	font-weight: 400 700;
	font-display: swap;
	src: url('fonts/instrument-sans-400-700-italic-latin-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: 'Instrument Sans';
	font-style: italic;
	font-weight: 400 700;
	font-display: swap;
	src: url('fonts/instrument-sans-400-700-italic-latin.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;
}

@font-face {
	font-family: 'Instrument Sans';
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url('fonts/instrument-sans-400-700-latin-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: 'Instrument Sans';
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url('fonts/instrument-sans-400-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+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ================================================================ Einsatz */

:root {
	--ad-font-head: 'Familjen Grotesk', 'Helvetica Neue', Arial, sans-serif;
	--ad-font-body: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

	/* Twenty Twenty-One steuert vieles ueber eigene Variablen - die zu
	   ueberschreiben ist sauberer als Regeln mit hoeherer Spezifitaet. */
	--global--font-primary: var(--ad-font-body);
	--global--font-secondary: var(--ad-font-head);
	--heading--font-family: var(--ad-font-head);
	--primary-nav--font-family: var(--ad-font-body);
	--button--font-family: var(--ad-font-body);
	--form--font-family: var(--ad-font-body);
	--entry-header--font-family: var(--ad-font-head);

	/* Ueberschriften fett. Twenty Twenty-One setzt h1-h6 auf `normal` und den
	   Seitentitel sogar auf 300 - der H1 war damit leichter als der H2
	   darunter. Familjen Grotesk ist als variable Schrift 400-700 eingebunden,
	   700 steht also ohne Nachladen zur Verfuegung. */
	--heading--font-weight: 700;
	--heading--font-weight-page-title: 700;
	--entry-header--font-weight: 700;
}

body,
button,
input,
select,
optgroup,
textarea,
.entry-content,
.widget-area,
#colophon {
	font-family: var(--ad-font-body);
}

h1, h2, h3, h4, h5, h6,
.entry-title,
.site-title,
.site-title a,
.wp-block-heading,
.wp-block-post-title {
	font-family: var(--ad-font-head);
	letter-spacing: -0.02em;
}

/* Eine Stufe fuer alle Ueberschriften. Die Groessen unterscheiden die Ebenen,
   nicht das Gewicht. Die Markenzeile ist bewusst nicht dabei: sie ist Logo und
   keine Ueberschrift, ihr Gewicht steht in style.css bei der Regel, die Header
   und Footer gemeinsam setzt. */
h1, h2, h3, h4, h5, h6,
.entry-title,
.entry-header .entry-title,
.wp-block-heading,
.wp-block-post-title {
	font-weight: 700;
}

/* Bedienelemente in der Textschrift. */
.primary-navigation,
.primary-navigation a,
.wp-block-button__link,
.wp-element-button,
#breadcrumbs,
.site-description,
.nf-form-content {
	font-family: var(--ad-font-body);
}
