/* Nur Systemschriften – keine externen Fonts (Datenschutz) */
:root {
    --hintergrund: #f4f6f8;
    --karte: #ffffff;
    --text: #1d2733;
    --leise: #5f6b78;
    --akzent: #1f4e79;
    --akzent-hell: #e6eef6;
    --linie: #dde3e9;
}

@media (prefers-color-scheme: dark) {
    :root {
        --hintergrund: #12171d;
        --karte: #1b222b;
        --text: #e6eaef;
        --leise: #9aa6b2;
        --akzent: #7fb2e5;
        --akzent-hell: #233243;
        --linie: #2c3642;
    }
}

* { box-sizing: border-box; }

html { font-size: 17px; }

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
    background: var(--hintergrund);
    color: var(--text);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
}

.kopf, main, .impressum, .inhalt {
    width: 100%;
    max-width: 40rem;
}

/* ---------- Kopfbereich ---------- */
.kopf {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.name {
    font-weight: 600;
    letter-spacing: 0.02em;
}

.sprachen {
    display: flex;
    gap: 0.4rem;
}

.sprachen a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.7rem;
    border: 1px solid var(--linie);
    border-radius: 999px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.85rem;
    background: var(--karte);
}

.sprachen a:hover { border-color: var(--akzent); }

.sprachen a[aria-current="true"] {
    border-color: var(--akzent);
    background: var(--akzent-hell);
    font-weight: 600;
}

.flagge {
    height: 0.8rem;
    width: auto;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
}

/* ---------- Inhalt ---------- */
.sprache, .inhalt {
    background: var(--karte);
    border: 1px solid var(--linie);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1rem;
}

h1 {
    margin-top: 0;
    font-size: 1.6rem;
    line-height: 1.25;
    color: var(--akzent);
}

a { color: var(--akzent); }

.aktionen {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.5rem;
    margin-bottom: 0;
}

.knopf {
    display: inline-block;
    padding: 0.55rem 1.1rem;
    border-radius: 8px;
    background: var(--akzent);
    color: var(--karte);
    text-decoration: none;
    font-weight: 600;
}

.knopf.zweit {
    background: transparent;
    color: var(--akzent);
    border: 1px solid var(--akzent);
}

/* ---------- Impressum / Fußbereich ---------- */
.impressum {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--linie);
    font-size: 0.85rem;
    color: var(--leise);
}

.impressum h2 {
    font-size: 0.95rem;
    margin: 0 0 0.5rem 0;
    color: var(--text);
}

.impressum p, .impressum address { margin: 0.3rem 0; }
address { font-style: normal; }

.leise {
    color: var(--leise);
    font-weight: normal;
}

/* ---------- Datenschutzseite ---------- */
.inhalt h2 {
    font-size: 1.1rem;
    margin-top: 1.8rem;
}

.inhalt ul { padding-left: 1.2rem; }

.hinweis {
    font-size: 0.9rem;
    color: var(--leise);
    border-left: 3px solid var(--akzent);
    padding-left: 0.8rem;
}
