/* blaindaid – blaindaid.ai
   Keine externen Ressourcen (Fonts, Skripte, Tracker) – DSGVO-frei (RF-130). */

:root {
    --bg:            #faf8f5;
    --bg-alt:        #f2eee8;
    --text:          #1a1d23;
    --text-muted:    #454b54;
    --border:        #ddd6cc;
    --focus:         #b8452a;

    /* Wortmarke nach doc/blaindaid-style.html (RR-120) */
    --brand-ink:     #2c2c2a;
    --brand-ai:      #185fa5;
    /* Etwas dunkleres Blau derselben Familie für kleinen Text und Links,
       damit auch dort Kontrast 7:1 (WCAG AAA) erreicht wird. */
    --accent:        #14508c;

    --measure:       36rem;
    --space:         clamp(2.25rem, 6vw, 4.5rem);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg:         #14161a;
        --bg-alt:     #1c1f25;
        --text:       #eceef2;
        --text-muted: #aab2be;
        --border:     #333941;
        --focus:      #ffab8a;

        --brand-ink:  #ededed;
        --brand-ai:   #6aa9e6;
        --accent:     #7fb4ee;
    }
}

*, *::before, *::after { box-sizing: border-box; }

html {
    /* Basis wächst leicht mit dem Viewport, bleibt aber an die
       Browser-Schriftgröße des Nutzers gekoppelt (RF-120). */
    font-size: clamp(105%, 103% + 0.25vw, 118%);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                 "Helvetica Neue", Arial, sans-serif;
    line-height: 1.65;
    hyphens: auto;
    overflow-wrap: break-word;   /* lange Komposita sprengen kein Handy-Layout */
}

/* ---------- Wortmarke (Baustein aus doc/blaindaid-style.html) ---------- */

.brand {
    font-weight: 400;
    letter-spacing: -0.01em;
    color: var(--brand-ink);
    white-space: nowrap;
}

/* Die beiden „ai“ hervorheben. Bewusst ohne <strong>: die Auszeichnung ist
   rein visuell, Screenreader lesen den Namen als ein Wort. */
.brand .ai {
    font-weight: 700;
    color: var(--brand-ai);
}

/* In Überschriften trägt der Name das Gewicht der Überschrift mit,
   sonst steht ein dünnes Wort mitten in einer fetten Zeile. */
h2 .brand { font-weight: inherit; }

/* ---------- Sprungmarke für Tastatur- und Screenreader-Nutzung ---------- */

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 10;
    padding: 0.75rem 1.25rem;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
}

.skip-link:focus { left: 0; }

/* ---------- Grundraster ---------- */

.wrap {
    width: 100%;
    max-width: 46rem;
    margin-inline: auto;
    padding-inline: clamp(1.1rem, 5vw, 2.5rem);
}

main { display: block; }

section {
    padding-block: var(--space);
    border-top: 1px solid var(--border);
}

section:first-of-type { border-top: 0; }

/* ---------- Typografie ---------- */

h1, h2, h3 {
    line-height: 1.2;
    text-wrap: balance;
    margin: 0 0 0.6em;
    font-weight: 650;
    letter-spacing: -0.015em;
}

h1 {
    font-size: clamp(2.5rem, 11vw, 4rem);
    line-height: 1;
    margin-bottom: 0.45em;
}

h2 { font-size: clamp(1.5rem, 5.5vw, 2.05rem); }
h3 { font-size: 1.15rem; }

p, li { max-width: var(--measure); }

p {
    margin: 0 0 1.1em;
    text-wrap: pretty;
}

strong { font-weight: 650; }

a {
    color: var(--accent);
    text-underline-offset: 0.18em;
    text-decoration-thickness: 0.08em;
}

a:hover { text-decoration-thickness: 0.14em; }

:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
    border-radius: 2px;
}

/* ---------- Kopf ---------- */

.masthead { padding-block: 1.75rem 0; }

.wordmark {
    font-size: 1.15rem;
    margin: 0;
}

/* ---------- Titelbereich ---------- */

.hero { padding-top: clamp(1.75rem, 5vw, 3rem); }

.claim {
    font-size: clamp(1.3rem, 4.5vw, 1.65rem);
    font-weight: 650;
    line-height: 1.3;
    color: var(--accent);
    text-wrap: balance;
    max-width: 30ch;
    margin-bottom: 1em;
}

.lead {
    font-size: 1.06rem;
    color: var(--text-muted);
}

figure { margin: clamp(2rem, 5vw, 3rem) 0 0; }

figure img {
    display: block;
    width: 100%;
    max-width: 47rem;
    height: auto;
    border-radius: 10px;
    background: var(--bg-alt);
}

figcaption {
    margin-top: 0.7rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    max-width: var(--measure);
}

/* ---------- Listen ---------- */

ul {
    margin: 0 0 1.1em;
    padding-left: 1.25rem;
}

li { margin-bottom: 0.65em; }

li::marker { color: var(--accent); }

/* Merkmalslisten – luftiger, mit Trennlinien statt Punkten. */
.examples {
    list-style: none;
    padding-left: 0;
    border-top: 1px solid var(--border);
    max-width: var(--measure);
}

.examples li {
    margin: 0;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--border);
    max-width: none;
}

.closing {
    font-size: 1.06rem;
    font-weight: 650;
}

/* ---------- Fuß ---------- */

.site-footer {
    border-top: 1px solid var(--border);
    background: var(--bg-alt);
    padding-block: clamp(2rem, 5vw, 3rem);
    font-size: 0.94rem;
    color: var(--text-muted);
}

.site-footer p { margin-bottom: 0.9em; }

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1.75rem;
    padding: 0;
    margin: 0 0 0.8em;
    list-style: none;
}

.footer-nav li { margin: 0; }

/* Fingerfreundliche Trefferflächen auf Touchgeräten (RF-120). */
.footer-nav a,
.back-link {
    display: inline-block;
    padding-block: 0.4rem;
}

/* ---------- Rechtstexte (Impressum, Datenschutz) ---------- */

.legal { padding-block: clamp(1.75rem, 5vw, 3.5rem) var(--space); }

.legal h1 { font-size: clamp(1.85rem, 7vw, 2.6rem); }

.legal h2 {
    font-size: 1.25rem;
    margin-top: 2.2em;
}

.legal h2:first-of-type { margin-top: 1.4em; }

.legal address {
    font-style: normal;
    margin-bottom: 1.1em;
}

.back-link {
    margin-bottom: 1.5rem;
    font-size: 0.94rem;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
