/* bt-fonts.css — bindet Mulish LOKAL ein (selbst gehostet, KEIN Google-CDN,
   keine IP-Uebertragung an Dritte) und setzt sie global als Schriftart.
   Wird NACH dem Theme geladen, damit es dessen Schrift ueberschreibt.

   >>> Voraussetzung: Schriftdatei muss hier liegen:
       wwwroot/fonts/Mulish-VariableFont_wght.ttf
   Bezug: https://fonts.google.com/specimen/Mulish  ->  "Get font" -> "Download all".
   Details siehe wwwroot/fonts/README.txt */

@font-face {
    font-family: 'Mulish';
    src: url('../fonts/Mulish-VariableFont_wght.ttf') format('truetype');
    font-weight: 200 900;   /* Variable Font: deckt alle Schnitte 200..900 ab */
    font-style: normal;
    font-display: swap;
}

:root {
    --bs-body-font-family: 'Mulish', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* iPhone Notch/Statusleiste: Navbar oben um die Safe-Area einruecken (env=0 im Browser).
   !important, damit es Bootstrap-Utilities wie .py-2 (die padding !important setzen) ueberschreibt
   -> gilt einheitlich fuer ALLE Layouts/Seiten (auch kuenftige). */
.navbar.sticky-top, .navbar.fixed-top {
    padding-top: calc(.5rem + env(safe-area-inset-top)) !important;
}

/* Eingeklapptes Menue (bis Tablet-Breite, da Navbar jetzt erst ab XL expandiert): Innenabstand */
@media (max-width: 1199.98px) {
    .navbar-collapse { padding: .25rem .5rem .75rem; }
}
/* Harter Ueberlauf-Schutz gegen horizontales Wackeln (clip statt hidden -> bricht sticky nicht) */
html { overflow-x: clip; }

body {
    font-family: var(--bs-body-font-family);
}

.btn, .form-control, .form-select, .input-group-text, .dropdown-menu,
.nav, .navbar, .card, .modal, .alert, .badge, .table,
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--bs-body-font-family);
}

/* iOS/Safari setzt bei Formularfeldern sonst die System-Schrift -> explizit erzwingen.
   (Hinweis: bei per Autofill ausgefuellten Feldern erzwingt Safari trotzdem seine Schrift.) */
input, textarea, select, button, optgroup, .form-control, .form-select {
    font-family: var(--bs-body-font-family) !important;
}

/* --- Autofill: blaue/gelbe Browser-Färbung entfernen, Feld bleibt weiß --- */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
    box-shadow: 0 0 0 1000px #ffffff inset !important;
    -webkit-text-fill-color: #26262e !important;
    caret-color: #26262e;
    transition: background-color 9999s ease-in-out 0s;
}

/* --- Links/btn-link: nicht rot, sondern Marken-Violett --- */
:root {
    --bs-link-color: #6D28C9;
    --bs-link-hover-color: #581C9E;
    --bs-link-color-rgb: 109, 40, 201;
    --bs-link-hover-color-rgb: 88, 28, 158;
}
a,
.btn-link {
    color: #6D28C9;
}
a:hover,
.btn-link:hover {
    color: #581C9E;
}
