/* ═══════════════════════════════════════════════════════════════
   altenbrand.de · ab-theme.css
   Eigenständiges Design-System der Firmenwebsite.
   Bewusst KEIN mc-web-theme: altenbrand.de ist das Unternehmensdach
   (Industrie, Auto-ID seit 1989), merchantCENTRAL nur ein Produkt.

   Konvention:
   - --ab-*   Design-Tokens
   - .ab-*    Komponenten & Landing-Module (ab-landing.css)
   ═══════════════════════════════════════════════════════════════ */

/* ── Schriften (selbst gehostet, kein Google-Request) ── */
@font-face {
    font-family: "IBM Plex Sans";
    src: url("../assets/fonts/ibm-plex-sans-var.woff2") format("woff2");
    font-weight: 100 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "IBM Plex Mono";
    src: url("../assets/fonts/ibm-plex-mono-400.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "IBM Plex Mono";
    src: url("../assets/fonts/ibm-plex-mono-600.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

:root {
    /* ── Markenfarben (Logo gesampelt + Agentur-Palette der alten Website) ── */
    --ab-blue: #183883;         /* Logo-Blau: Leitfarbe */
    --ab-blue-bright: #7C99EC;  /* lesbare Blau-Variante auf dunkel */
    --ab-gray: #A9A9A9;         /* Logo-Grau (Quadrate, Sekundärflächen) */
    --ab-orange: #F5821F;       /* Agentur-Orange: Energie-Akzent, sparsam */
    --ab-orange-text: #D9660B;  /* abgedunkelt für große Schrift auf Weiß */

    /* ── Flächen ── */
    --ab-ink: #121722;          /* Blau-Graphit, Grundfläche dunkel */
    --ab-ink-2: #1A2030;        /* erhöhte Flächen auf dunkel */
    --ab-line-dark: #2A3348;    /* Linien auf dunkel */
    --ab-paper: #F3F4F6;        /* Band-Hintergrund hell */
    --ab-card: #FFFFFF;
    --ab-line: #DDE0E5;

    /* ── Text ── */
    --ab-text: #1B1F2A;
    --ab-muted: #58616F;
    --ab-steel: #9AA5B8;        /* gedämpfter Text auf dunkel */
    --ab-white: #F5F7FA;

    /* ── Akzente ── */
    --ab-laser: #FF3D2E;        /* nur für den Scan-Strahl */
    --ab-mc-teal: #007B8A;      /* NUR im merchantCENTRAL-Kontext */

    /* ── Typografie ── */
    --ab-font: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
    --ab-mono: "IBM Plex Mono", "Cascadia Code", Consolas, monospace;

    /* ── Form: industriell = kantig ── */
    --ab-radius: 2px;
    --ab-shadow: 0 1px 2px rgba(20, 23, 28, 0.08), 0 8px 28px -12px rgba(20, 23, 28, 0.18);

    /* ── Material-Farbanbindung ── */
    --md-primary-fg-color: var(--ab-ink);
    --md-accent-fg-color: var(--ab-blue);
    --md-typeset-a-color: var(--ab-blue);
}

/* ═══════════ Grund-Typografie ═══════════ */

body,
.md-typeset {
    font-family: var(--ab-font);
}

.md-typeset code,
.md-typeset pre {
    font-family: var(--ab-mono);
}

.md-typeset a:hover {
    color: var(--ab-orange-text);
}

.md-typeset h1,
.md-typeset h2,
.md-typeset h3 {
    font-family: var(--ab-font);
    font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--ab-text);
}

/* ═══════════ Header & Navigation (hell, mit echtem Logo) ═══════════ */

.md-header {
    background: #FFFFFF;
    color: var(--ab-text);
    box-shadow: none;
    border-bottom: 1px solid var(--ab-line);
}

/* Das echte Firmenlogo trägt den Namen — Textdublette ausblenden.
   Auf schmalen Screens versteckt Material das Logo (Drawer übernimmt),
   dort muss der Titel wieder sichtbar sein. */
.md-header__title {
    display: none;
}

@media screen and (max-width: 76.1875em) {
    .md-header__title {
        display: block;
        font-weight: 700;
        letter-spacing: 0.01em;
    }
}

.md-header__button {
    color: var(--ab-text);
}

.md-header .md-header__button.md-logo {
    padding-top: 0.2rem;
    padding-bottom: 0.2rem;
}

.md-header .md-header__button.md-logo img,
.md-header .md-header__button.md-logo svg {
    height: 2.7rem;
    width: auto;
}

.md-tabs {
    background: #FFFFFF;
    color: var(--ab-muted);
    border-bottom: 1px solid var(--ab-line);
}

.md-tabs__link {
    font-family: var(--ab-mono);
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--ab-muted);
    opacity: 1;
}

.md-tabs__link--active,
.md-tabs__link:hover {
    color: var(--ab-blue);
}

.md-search__form {
    background: var(--ab-paper);
    color: var(--ab-text);
}
.md-search__input::placeholder,
.md-search__icon {
    color: var(--ab-muted);
}

/* ═══════════ Buttons (Inhaltsseiten) ═══════════ */

.md-typeset .md-button {
    border-radius: var(--ab-radius);
    border: 1.5px solid var(--ab-ink);
    color: var(--ab-ink);
    font-weight: 600;
}

.md-typeset .md-button--primary {
    background: var(--ab-blue);
    border-color: var(--ab-blue);
    color: #FFFFFF;
}

.md-typeset .md-button--primary:hover {
    background: var(--ab-ink);
    border-color: var(--ab-ink);
    color: var(--ab-white);
}

/* ═══════════ Inhaltsseiten: Lesbarkeit & Details ═══════════ */

.md-content:not(:has(.ab-page)) .md-typeset {
    font-size: 0.78rem;
    line-height: 1.65;
}

.md-typeset table:not([class]) {
    border-radius: var(--ab-radius);
    box-shadow: none;
    border: 1px solid var(--ab-line);
}

.md-typeset table:not([class]) th {
    background: var(--ab-paper);
    color: var(--ab-text);
    font-family: var(--ab-mono);
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Footer: hell und freundlich */
.md-footer-meta {
    background: var(--ab-paper);
    border-top: 1px solid var(--ab-line);
    color: var(--ab-muted);
}

.md-footer-meta .md-footer-copyright,
.md-footer-meta .md-footer-copyright__highlight {
    color: var(--ab-text);
}

.md-footer-meta .md-footer-copyright__tagline {
    color: var(--ab-muted);
}

.md-footer-meta a {
    color: var(--ab-blue);
}

/* Fokus sichtbar */
:focus-visible {
    outline: 2px solid #2F55B8;
    outline-offset: 2px;
}
