/*
 * Loginmeister Kontrollzentrum — CSS Custom Properties
 * Zweck: Zentrale Farbpalette, Typografie-Tokens, @font-face
 * Farben aus /brand/BRAND.md (Loginmeister Brand Identity)
 * Schriften lokal eingebunden (DSGVO, kein Google Fonts CDN, CLAUDE.md §23)
 */

/* --- @font-face: Lokal gehostete Schriften (CLAUDE.md §23) --- */

@font-face {
    font-family: 'Playfair Display';
    src: url('../fonts/PlayfairDisplay-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* DM Sans — latin (deutsch, westeuropaeisch) */
@font-face {
    font-family: 'DM Sans';
    src: url('../fonts/DMSans-latin.woff2') format('woff2');
    font-weight: 400 500;
    font-style: normal;
    font-display: swap;
    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;
}

/* DM Sans — latin-ext (Sonderzeichen, Umlaute) */
@font-face {
    font-family: 'DM Sans';
    src: url('../fonts/DMSans-latin-ext.woff2') format('woff2');
    font-weight: 400 500;
    font-style: normal;
    font-display: swap;
    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;
}

/* --- CSS Custom Properties (aus /brand/BRAND.md) --- */

:root {
    /* Loginmeister Markenfarben (BRAND.md) */
    --lm-kanzleiblau: #0D1E3F;  /* Primaerfarbe, Icon-Fuellung, Text auf hellen Flaechen */
    --lm-meistergold: #C4953A;  /* Akzentfarbe, CTAs, Buttons */
    --lm-elfenbein:   #F6F2EB;  /* Primaerer Hintergrund (hell) */
    --lm-perle:       #EDE9DF;  /* Sekundaerer Hintergrund, Karten */
    --lm-schiefer:    #7A7268;  /* Tagline, Fliesstext, Sekundaertext */
    --lm-tintenblau:  #091629;  /* Dunkle Hintergruende, Dark Mode Primary */

    /* Semantische Mappings (Light Mode) */
    --color-primary:   var(--lm-kanzleiblau);
    --color-accent:    var(--lm-meistergold);
    --color-secondary: var(--lm-schiefer);
    --color-bg:        var(--lm-elfenbein);
    --color-surface:   var(--lm-perle);
    --color-text:      var(--lm-kanzleiblau);
    --color-border:    #d5cfc6;

    /* Typografie-Tokens (BRAND.md) */
    --font-display: 'Playfair Display', 'Times New Roman', Georgia, serif;
    --font-body:    'DM Sans', 'Helvetica Neue', Arial, sans-serif;
    --font-mono:    'DejaVu Sans Mono', 'Courier New', monospace;
}

[data-bs-theme="dark"] {
    --color-primary:   var(--lm-elfenbein);
    --color-accent:    var(--lm-meistergold);
    --color-secondary: #a09889;
    --color-bg:        var(--lm-tintenblau);
    --color-surface:   #132240;
    --color-text:      var(--lm-elfenbein);
    --color-border:    #2a3a5a;
}
