/* Lokale Schriften (SIL Open Font License, Texte in ../fonts/LICENSE-*.txt). Familienname exakt wie bei Google Fonts. */

@font-face {
  font-family: "Anton";
  src: url("../fonts/anton-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DM Mono";
  src: url("../fonts/dm-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DM Mono";
  src: url("../fonts/dm-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* Ersatzschriften mit angepassten Maßen: Solange Anton und DM Mono laden, steht eine Systemschrift in fast gleicher
   Breite und Höhe da. So springt beim Schriftwechsel kaum etwas (CLS). Nach dem Laden sieht alles aus wie vorher.
   Werte aus den Schriftdateien (fontTools, 20.11.2026): Anton upm 2048, Aufstieg 2409, Abstieg 674;
   Breite der Großbuchstaben aller Überschriften aus content/texte.md: Anton 688,5 em, Arial 990,2 em, Arial Narrow 811,9 em.
   DM Mono 600/1000 je Zeichen, Courier New 1229/2048 je Zeichen; Aufstieg 992, Abstieg 310. */
@font-face {
  font-family: "Anton Ersatz Schmal";
  src: local("Arial Narrow"), local("ArialNarrow");
  size-adjust: 84.8%;
  ascent-override: 138.71%;
  descent-override: 38.81%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Anton Ersatz";
  src: local("Arial"), local("ArialMT"), local("Helvetica"), local("Roboto");
  size-adjust: 69.53%;
  ascent-override: 169.18%;
  descent-override: 47.33%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "DM Mono Ersatz";
  src: local("Courier New"), local("CourierNewPSMT"), local("Menlo"), local("Roboto Mono");
  size-adjust: 99.98%;
  ascent-override: 99.22%;
  descent-override: 31.01%;
  line-gap-override: 0%;
}

/* Die Elementor-Variablen (Kit, :root) bekommen die Ersatzschriften als Rückfall. Ändert jemand die Schrift in Elementor,
   hier mitändern. */
html:root {
  --anton: "Anton", "Anton Ersatz Schmal", "Anton Ersatz";
  --dm-mono: "DM Mono", "DM Mono Ersatz";
}
