/*
 * public-head.css – kritisches CSS-Bündel für die öffentliche Website.
 *
 * Fasst die früher getrennt geladenen Dateien
 *   static/fonts/source-sans-pro.css   (Fließtext-/Überschrift-Font)
 *   static/css/bootstrap-icons-subset.css   (Icon-Untermenge)
 * zu EINER render-blockierenden Anfrage zusammen (spart Round-Trips auf dem
 * kritischen Pfad, verbessert LCP auf Mobil). Pfade sind relativ zu
 * /static/css/.
 *
 * Source Sans Pro liegt jetzt als WOFF2 vor (~15 KiB statt ~35 KiB TTF); .ttf
 * bleibt als Fallback für sehr alte Browser. Font-Dateien werden zusätzlich im
 * <head> von public_base.html per <link rel="preload"> vorgeladen.
 */

/* ── Source Sans Pro (Dimension-Theme-Font) ─────────────────────────────── */
@font-face {
    font-family: "Source Sans Pro";
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url("../fonts/fonts/SourceSansPro-Light.woff2") format("woff2"),
         url("../fonts/fonts/SourceSansPro-Light.ttf") format("truetype");
}

@font-face {
    font-family: "Source Sans Pro";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/fonts/SourceSansPro-SemiBold.woff2") format("woff2"),
         url("../fonts/fonts/SourceSansPro-SemiBold.ttf") format("truetype");
}

@font-face {
    font-family: "Source Sans Pro";
    font-style: italic;
    font-weight: 300;
    font-display: swap;
    src: url("../fonts/fonts/SourceSansPro-LightItalic.woff2") format("woff2"),
         url("../fonts/fonts/SourceSansPro-LightItalic.ttf") format("truetype");
}

@font-face {
    font-family: "Source Sans Pro";
    font-style: italic;
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/fonts/SourceSansPro-SemiBoldItalic.woff2") format("woff2"),
         url("../fonts/fonts/SourceSansPro-SemiBoldItalic.ttf") format("truetype");
}

/*
 * ── Bootstrap Icons – schlanke Untermenge für die öffentliche Website ──────
 *
 * Die vollständige bootstrap-icons.css ist ~98 KiB und war laut Lighthouse
 * zu >99 % ungenutzt; die zugehörige Font-Datei ~128 KiB. Die öffentlichen
 * Templates verwenden nur eine Handvoll Icons – die stehen hier, plus ein
 * paar gängige Reserve-Icons für künftige öffentliche Seiten.
 *
 * Die Font-Datei bootstrap-icons-subset.woff2 (~2 KiB) enthält per pyftsubset
 * nur die unten referenzierten Glyphen. Wird ein neues Icon gebraucht: Zeile
 * aus static/vendor/bootstrap-icons/font/bootstrap-icons.css hierher kopieren
 * UND den Subset-Font neu erzeugen:
 *   pyftsubset static/vendor/bootstrap-icons/font/fonts/bootstrap-icons.woff2 \
 *     --unicodes=<alle content-Codepoints, z.B. U+F1BE,U+F26A,...> \
 *     --flavor=woff2 \
 *     --output-file=static/vendor/bootstrap-icons/font/fonts/bootstrap-icons-subset.woff2
 *
 * Dashboard / Galerie (extends base.html) laden weiterhin die volle Datei.
 *
 * Bootstrap Icons v1.10.5 – MIT License – https://icons.getbootstrap.com/
 */
@font-face {
  font-display: swap;
  font-family: "bootstrap-icons";
  src: url("../vendor/bootstrap-icons/font/fonts/bootstrap-icons-subset.woff2?v=1.0.0") format("woff2");
}

.bi::before,
[class^="bi-"]::before,
[class*=" bi-"]::before {
  display: inline-block;
  font-family: bootstrap-icons !important;
  font-style: normal;
  font-weight: normal !important;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  vertical-align: -.125em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- auf öffentlichen Templates tatsächlich verwendet --- */
.bi-box-arrow-in-right::before { content: "\f1be"; }
.bi-check-circle-fill::before { content: "\f26a"; }
.bi-envelope-fill::before { content: "\f32c"; }
.bi-hourglass-split::before { content: "\f41f"; }
.bi-house::before { content: "\f425"; }
.bi-images::before { content: "\f42b"; }
.bi-instagram::before { content: "\f437"; }
.bi-person::before { content: "\f4e1"; }
.bi-speedometer2::before { content: "\f580"; }

/* --- Reserve für künftige öffentliche Seiten --- */
.bi-arrow-right::before { content: "\f138"; }
.bi-arrow-up::before { content: "\f148"; }
.bi-calendar-check::before { content: "\f1e2"; }
.bi-camera::before { content: "\f220"; }
.bi-check-lg::before { content: "\f633"; }
.bi-chevron-right::before { content: "\f285"; }
.bi-envelope::before { content: "\f32f"; }
.bi-geo-alt-fill::before { content: "\f3e7"; }
.bi-heart-fill::before { content: "\f415"; }
.bi-list::before { content: "\f479"; }
.bi-telephone-fill::before { content: "\f5b4"; }
.bi-whatsapp::before { content: "\f618"; }
.bi-x-lg::before { content: "\f659"; }
