/* Italic-Kill + Font-Family-Override.
 *
 * Wird als statisches /public-CSS ausgeliefert, lädt nach jedem
 * Tailwind-/Shadcn-Stylesheet in der Cascade und überlebt damit jede
 * @layer-Verarbeitung.
 *
 * Hintergrund: auf manchen Macs ist eine eigene "Inter"-Schrift
 * installiert, deren Italic-Cut für den Regular-Style verwendet wird.
 * Dadurch sieht die App komplett kursiv aus, obwohl kein
 * `font-style: italic` gesetzt ist. Wir erzwingen daher die System-
 * Schrift und unterdrücken jede Italic-Synthese.
 *
 * Echtes Italic bleibt nur über `data-italic="true"`,
 * `data-allow-italic` oder die HTML-Tags <em>/<i>/<cite>/<address>
 * möglich.
 */

*,
*::before,
*::after {
  font-style: normal !important;
  font-synthesis: none !important;
  font-synthesis-style: none !important;
  font-synthesis-weight: auto !important;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

/* Monospace bleibt erhalten — Code/Kbd/Pre und Tailwind-`font-mono`. */
code,
kbd,
samp,
pre,
[class*="font-mono"] {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco,
    Consolas, monospace !important;
}

/* Italic nur, wenn explizit angefordert. */
em,
i,
cite,
address,
.italic,
[data-italic="true"],
[data-allow-italic] {
  font-style: italic !important;
}

.not-italic {
  font-style: normal !important;
}
