/* STUDIO Schrift der Seite: Cal Sans (SIL Open Font License 1.1, github.com/calcom/sans, Lizenz in fonts/CalSans-OFL.txt), genau die Fassung,
   die cal.com im Blog ausliefert (2.001, bdff1d7). Buchstabenbreiten und Kerning sind darum pixelgleich mit cal.com.
   Selbst gehostet, kein fremder Server. Eingestellt wie der Blog von cal.com (gemessen am 19.11.2026 an cal.com/de/blog/time-blocking):
   - Überschriften = Schnitt „Bold“: Stärke 700, Achse GEOM 50, Laufweite -1 %, Zeilen ausgeglichen (text-wrap: balance)
   - Fließtext und alles andere = Schnitt „UI Regular“: Stärke 400, Achse GEOM 25, normale Laufweite. Fett im Text 600
   - Optische Größe (opsz) wählt der Browser je Schriftgröße selbst (8 bis 32), Kerning und Ligaturen an, nichts künstlich verfettet
   Die Dateien sind verkleinert (werkzeuge/schrift/): nur Latein, Achsen GEOM 25 bis 50, wght 400 bis 700. 79 KB statt 230 KB bei Inter.
   Preload in default.hbs, portal.css und comments-tweaks.hbs nutzen dieselbe Adresse inklusive ?v=. Neue Schriftdatei: Zahl an allen vier Stellen erhöhen,
   sonst liefert Ghosts Zwischenspeicher bis zu ein Jahr die alte Datei */
@font-face {
  font-family: "Cal Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/CalSans.woff2?v=1") format("woff2");
}

/* Kursiv ist eine eigene Datei. Der Browser lädt sie nur auf Seiten, auf denen etwas kursiv steht */
@font-face {
  font-family: "Cal Sans";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/CalSans-Italic.woff2?v=1") format("woff2");
}

/* Ersatzschrift für die Sekunde bis Cal Sans da ist: Arial, auf Größe und Zeilenhöhe von Cal Sans gezogen (Werte wie bei cal.com).
   So springt der Text beim Wechsel nicht (CLS) */
@font-face {
  font-family: "Cal Sans Fallback";
  src: local("Arial"), local("ArialMT");
  ascent-override: 83.88%;
  descent-override: 22.83%;
  line-gap-override: 0%;
  size-adjust: 107.3%;
}

:root {
  --font-studio: "Cal Sans", "Cal Sans Fallback", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-code: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* Cal Sans überall, Code in Festbreitenschrift */
* {
  font-family: var(--font-studio) !important;
}

:is(code, kbd, samp, pre, pre *) {
  font-family: var(--font-code) !important;
}

/* Fließtext und alles andere: „UI Regular“. Normale Laufweite wie bei cal.com. Die engen Werte in den übrigen Dateien
   waren für Inter gedacht und gelten darum nicht mehr. Großbuchstaben-Etiketten mit eigener Sperrung setzen sie mit !important */
html {
  font-optical-sizing: auto;
}

/* Wie cal.com: Der Browser darf keine Stärke oder Schräglage nachmachen (sonst verzerrte Buchstaben bei 800 oder 300) */
* {
  font-variation-settings: "GEOM" 25;
  font-synthesis: none;
  letter-spacing: normal !important;
}

p {
  text-wrap: pretty;
}

:is(strong, b) {
  font-weight: 600;
}

/* Überschriften: „Bold“ */
:is(h1, h2, h3, h4, h5, h6) {
  font-weight: 700 !important;
  font-variation-settings: "GEOM" 50 !important;
  letter-spacing: -0.01em !important;
  text-wrap: balance;
}

/* Abschnitts-Titel, die im HTML keine Überschrift sind („Hier zeigte ich meine AI-First Arbeitsweise“, „Bekannt aus“),
   sehen aus wie „Empfehlungen“ und „Wie ich arbeite“ */
.about-logos-title {
  font-weight: 700 !important;
  font-variation-settings: "GEOM" 50 !important;
  letter-spacing: -0.01em !important;
}

/* Teile in einer Überschrift (z. B. Wörter der Einblendung, kleinere Unterzeile) übernehmen Stärke und Form der Überschrift.
   Die Laufweite gilt je eigener Schriftgröße (-1 %), geerbt käme sie in Pixeln der großen Zeile und wäre zu eng */
:is(h1, h2, h3, h4, h5, h6) :not(svg, svg *) {
  font-weight: inherit !important;
  font-variation-settings: inherit !important;
  letter-spacing: -0.01em !important;
}

/* Glatte Kanten und normale Textdarstellung wie bei cal.com. Kerning und Ligaturen sind damit an */
body, html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: auto;
}
