/* ============================================================
   SoftTec GmbH – Sora Webfont (lokal gehostet)
   Version: V1 – Stand: 19.08.2026
   DSGVO-konform: keine Verbindung zu Google-Servern.
   Lizenz: SIL Open Font License 1.1 (siehe LICENSE-Sora-OFL.txt)
   ------------------------------------------------------------
   Pfad-Annahme: Dieses CSS liegt im Theme-Ordner unter /css/,
   die Schriftdateien unter /fonts/.
   Falls du eine andere Struktur nutzt, passe nur die url(...)
   Angaben an.
   ============================================================ */

/* ---------- Sora 400 – Regular / Fließtext ---------- */
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/sora-latin-400-normal.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: 'Sora';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/sora-latin-ext-400-normal.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;
}

/* ---------- Sora 500 – Medium / Buttons, Labels ---------- */
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/sora-latin-500-normal.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: 'Sora';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/sora-latin-ext-500-normal.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;
}

/* ---------- Sora 600 – SemiBold / Zwischenüberschriften ---------- */
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/sora-latin-600-normal.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: 'Sora';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/sora-latin-ext-600-normal.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;
}

/* ---------- Sora 700 – Bold / Headlines ---------- */
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/sora-latin-700-normal.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: 'Sora';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/sora-latin-ext-700-normal.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;
}

/* ============================================================
   ANWENDUNG DER SCHRIFT
   ============================================================ */

:root {
  --st-font-sans: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI',
                  Roboto, 'Helvetica Neue', Arial, sans-serif;
}

body,
button,
input,
select,
textarea {
  font-family: var(--st-font-sans);
  font-weight: 400;
  /* Sora läuft optisch etwas weiter – etwas mehr Zeilenhöhe wirkt ruhiger */
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--st-font-sans);
  font-weight: 700;
  line-height: 1.2;
  /* Sora ist geometrisch weit – leicht negatives Tracking wirkt hochwertiger */
  letter-spacing: -0.02em;
}

h3, h4, h5, h6 {
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* Buttons & Call-to-Actions */
.wp-block-button__link,
.btn,
button,
input[type="submit"] {
  font-family: var(--st-font-sans);
  font-weight: 600;
  letter-spacing: 0;
}

/* ============================================================
   RESPONSIVE TYPOGRAFIE (Desktop / Tablet / Smartphone)
   clamp() = Schrift skaliert flüssig mit der Bildschirmbreite.
   Aufbau: clamp(Minimum-Mobil, flexibler Wert, Maximum-Desktop)
   ============================================================ */

h1 { font-size: clamp(1.95rem, 1.35rem + 2.6vw, 3.5rem); }
h2 { font-size: clamp(1.55rem, 1.15rem + 1.7vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.75rem); }
h4 { font-size: clamp(1.1rem,  1.0rem  + 0.4vw, 1.35rem); }

body { font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem); }

/* Smartphone: kürzere Zeilen, engere Headlines vermeiden Umbruchprobleme */
@media (max-width: 767px) {
  h1, h2 {
    letter-spacing: -0.015em;
    line-height: 1.25;
    /* verhindert abgeschnittene lange Wörter wie "Softwarelösungen" */
    overflow-wrap: break-word;
    hyphens: auto;
  }
  body { line-height: 1.6; }
}

/* Bessere Lesbarkeit langer Textblöcke auf großen Screens */
@media (min-width: 1200px) {
  p { max-width: 70ch; }
}
