/* G-4 Typografie (BUILD-SPEC §1.2): Baloo 2 (Titel, Buttons) + Nunito (Fließtext).
   Selbst gehostet (CSP 'self', keine Google-Fonts-Anfrage). Lizenz: SIL OFL 1.1, siehe ../vendor/fonts/OFL-*.txt.
   Quelle: @fontsource-variable/nunito 5.3.0 und @fontsource-variable/baloo-2 5.3.0, Teilmenge latin (inkl. ä ö ü ß €). */
@font-face {
    font-family: 'Nunito';
    font-style: normal;
    font-display: swap;
    font-weight: 200 1000;
    src: url('../vendor/fonts/nunito-latin-wght.woff2') format('woff2-variations'), url('../vendor/fonts/nunito-latin-wght.woff2') format('woff2');
}
@font-face {
    font-family: 'Baloo 2';
    font-style: normal;
    font-display: swap;
    font-weight: 400 800;
    src: url('../vendor/fonts/baloo2-latin-wght.woff2') format('woff2-variations'), url('../vendor/fonts/baloo2-latin-wght.woff2') format('woff2');
}
:root {
    --ld-font-body: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --ld-font-display: 'Baloo 2', 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --bs-body-font-family: var(--ld-font-body);
    /* Größen in rem (OS-Schriftskalierung bleibt wirksam) */
    --ld-fs-display: 1.75rem;  /* 28 */
    --ld-fs-title-l: 1.5rem;   /* 24 */
    --ld-fs-title: 1.375rem;   /* 22 */
    --ld-fs-title-s: 1.25rem;  /* 20 */
    --ld-fs-label-l: 1.125rem; /* 18 */
    --ld-fs-button: 1.125rem;  /* 18 */
    --ld-fs-body: 1rem;        /* 16 */
    --ld-fs-caption: 0.8125rem;/* 13 */
    --ld-fs-tab: 0.75rem;      /* 12 */
    --ld-lh-tight: 1.15;
    --ld-lh-body: 1.35;
}
body { font-family: var(--ld-font-body); }
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6, .navbar-brand, .modal-title, .offcanvas-title {
    font-family: var(--ld-font-display);
    line-height: var(--ld-lh-tight);
}
.btn { --bs-btn-font-family: var(--ld-font-display); }

/* Handytest 02.11. (Punkt 14): CJK nur mit System-Schriften (kein CDN, keine Webfont-Downloads). Nunito/Baloo haben keine
   CJK-Glyphen; die Reihenfolge wählt pro Sprache die passende Systemschrift (sonst falsche Han-Varianten). */
:lang(zh-Hans) { --ld-font-body: 'Nunito', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans CJK SC', 'Noto Sans SC', 'Source Han Sans SC', system-ui, sans-serif; --ld-font-display: var(--ld-font-body); }
:lang(ja) { --ld-font-body: 'Nunito', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic UI', 'Meiryo', 'Noto Sans CJK JP', 'Noto Sans JP', system-ui, sans-serif; --ld-font-display: var(--ld-font-body); }
:lang(ko) { --ld-font-body: 'Nunito', 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans CJK KR', 'Noto Sans KR', system-ui, sans-serif; --ld-font-display: var(--ld-font-body); }
:lang(zh-Hans) body, :lang(ja) body, :lang(ko) body { line-break: strict; word-break: normal; overflow-wrap: anywhere; }
:lang(ko) body { word-break: keep-all; }
