﻿/* =========================================================
   BASIS & DESIGN-TOKENS
   ========================================================= */
/* =========================================================
   FONT: Microsoft Aptos (global)
   local() = nutzt installierte Font auf Win11/M365-Systemen,
   spart den Download. Sonst greift die WOFF2 vom Server.
   ========================================================= */
@font-face {
    font-family: "Aptos";
    src: local("Aptos Light"), url("/assets/fonts/Aptos-Light.woff2") format("woff2");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Aptos";
    src: local("Aptos"), url("/assets/fonts/Aptos.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Aptos";
    src: local("Aptos Italic"), url("/assets/fonts/Aptos-Italic.woff2") format("woff2");
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

/* WICHTIG: SemiBold deckt 500–600 ab!
   Aptos hat kein echtes Medium (500). Eure Titel nutzen
   font-weight: 500 - ohne dieses Mapping würde der Browser
   auf Regular (400) zurückfallen und Titel wären nicht
   vom Fließtext unterscheidbar. */
@font-face {
    font-family: "Aptos";
    src: local("Aptos SemiBold"), url("/assets/fonts/Aptos-SemiBold.woff2") format("woff2");
    font-weight: 500 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Aptos";
    src: local("Aptos SemiBold Italic"), url("/assets/fonts/Aptos-SemiBold-Italic.woff2") format("woff2");
    font-weight: 500 600;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "Aptos";
    src: local("Aptos Bold"), url("/assets/fonts/Aptos-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Aptos";
    src: local("Aptos Bold Italic"), url("/assets/fonts/Aptos-Bold-Italic.woff2") format("woff2");
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "Aptos";
    src: local("Aptos ExtraBold"), url("/assets/fonts/Aptos-ExtraBold.woff2") format("woff2");
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Aptos";
    src: local("Aptos Black"), url("/assets/fonts/Aptos-Black.woff2") format("woff2");
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Layout */
    --container: 1280px;
    --gutter: 24px;
    /* Farben (global) */
    --color-bg: #eff2fb;
    --color-text: #0e1726;
    --color-primary-700: #2b6aa3;
    --color-line: #e6edf5;
    /* Footer-Farben */
    --c-bg: #EFF2FB;
    --c-line: #dbe7f4;
    --c-text: #152a45;
    --c-blue: #4c8fcc;
    /* =====================================================
       TYPOGRAFIE-TOKENS (einheitlich für die ganze Seite)
       ===================================================== */
    --font-base: "Aptos", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
    --fs-page-title: clamp(32px, 4vw, 48px); /* H1 / PageHero-Titel */
    --fs-section-title: clamp(26px, 3vw, 36px); /* H2 / Sektions-Titel */
    --fs-card-title: clamp(18px, 2vw, 22px); /* H3 / Karten-Titel */
    --fs-subtitle: clamp(16px, 1.6vw, 19px); /* Untertitel / Lead */
    --fs-body: 16px; /* Fließtext (vorher 13–15px) */
    --fs-small: 14px; /* Meta-/Sekundärtexte */
    --fs-caption: 13px; /* Badges, Captions, Nav */
}

body {
    margin: 0;
    font-family: var(--font-base);
    font-size: var(--fs-body);
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
}

/* Projekt-Standard: Titel immer font-weight 500 */
h1, h2, h3, h4 {
    font-weight: 500;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

input,
textarea,
select,
button,
optgroup {
    font-family: inherit;
}


/* #region KOMPONENTE: BUTTONS/LAYOUT.UTILS */
/* =========================================================
   LAYOUT-UTILS
   ========================================================= */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* Buttons (nur genutzte Variante) */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 999px;
    border: 1.5px solid #cfe2f5;
}

.btn--outline {
    background: #fff;
    border-color: #cfd9e6;
    color: #fff;
}
/* #endregion */

/* =========================================================
   APTOS GLOBAL ERZWINGEN - ÜBERSCHREIBT ALLES
   ========================================================= */

/* Bootstrap-Variable kapern, damit alle .btn / .form-* / .nav-* erben */
:root,
body {
    --bs-body-font-family: var(--font-base);
    --bs-font-sans-serif: var(--font-base);
}

/* Form-Elemente erben font-family nicht automatisch */
input,
textarea,
select,
button,
optgroup,
fieldset,
legend {
    font-family: var(--font-base);
}

/* Universal-Sicherung: alles, was eigene Font haben könnte */
html,
body,
h1, h2, h3, h4, h5, h6,
p, span, a, li, dt, dd,
label, small, strong, em, b, i,
table, th, td,
.btn, .form-control, .form-select, .form-label,
.nav-link, .dropdown-menu, .dropdown-item,
.modal, .tooltip, .popover, .alert, .badge, .card {
    font-family: var(--font-base) !important;
}

/* Code/Monospace darf weiterhin Monospace bleiben - falls gewünscht
   sonst auch diese Regel hinzufügen: */
code, kbd, pre, samp, tt {
    font-family: var(--font-base);
}