/* ==========================================================================
   Stylesheet für die Rechtsseiten (Impressum, Datenschutz, AGB, Widerruf)
   Bewusst eigenständig: kein Tailwind-Build, kein JavaScript, keine externen
   Schriften. Diese Seiten müssen auch dann korrekt aussehen, wenn Skripte
   blockiert sind oder der Build nicht geladen wird.
   ========================================================================== */

:root {
    --brand: #1B6CA8;
    --brand-dark: #14507d;
    --ink: #1f2937;
    --muted: #64748b;
    --line: #e2e8f0;
    --bg: #f8fafc;
    --warn-bg: #fffbeb;
    --warn-line: #f59e0b;
    --warn-ink: #78350f;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
}

header.bar {
    background: #fff;
    border-bottom: 1px solid var(--line);
}

.bar-inner, main, footer.inner {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 20px;
}

.bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 64px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--ink);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.brand .mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #111827;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
}

.brand .domain { color: var(--brand); }

.back {
    font-size: 14px;
    color: var(--brand);
    text-decoration: none;
    white-space: nowrap;
}
.back:hover { text-decoration: underline; }

main { padding-top: 36px; padding-bottom: 56px; }

h1 {
    font-size: 30px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 0 0 6px;
}

h2 {
    font-size: 19px;
    margin: 34px 0 10px;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 16px;
    margin: 22px 0 6px;
}

p, li { margin: 0 0 10px; }

ul, ol { padding-left: 22px; margin: 0 0 12px; }

.stand {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 26px;
}

.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 20px 22px;
    margin: 0 0 18px;
}

a { color: var(--brand); }
a:hover { color: var(--brand-dark); }

/* Entwurfshinweis ganz oben: Die Rechtsseiten sind inzwischen fertig, der
   Hinweis ist entfernt. Die Regel bleibt nicht stehen – ungenutztes CSS in
   einer Datei, die auf jeder Seite geladen wird, ist nur Ballast. */

/* Markierte Lücke: hier muss der Betreiber entscheiden oder eintragen */
.gap {
    background: var(--warn-bg);
    border: 1px solid var(--warn-line);
    border-left-width: 5px;
    border-radius: 10px;
    padding: 14px 18px;
    margin: 14px 0 18px;
    color: var(--warn-ink);
    font-size: 14.5px;
}
.gap .gap-title {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 12px;
    margin-bottom: 4px;
}
.gap p:last-child { margin-bottom: 0; }
.gap ul { margin-bottom: 0; }

.hinweis {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    padding: 14px 18px;
    margin: 14px 0 18px;
    font-size: 14.5px;
    color: #1e3a8a;
}

nav.legal {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 40px 0 0;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}
nav.legal a {
    font-size: 14px;
    text-decoration: none;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 999px;
    padding: 7px 14px;
}
nav.legal a:hover { border-color: var(--brand); }
nav.legal a[aria-current="page"] {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
    font-weight: 600;
}

footer.inner {
    padding-top: 0;
    padding-bottom: 40px;
    color: var(--muted);
    font-size: 13px;
}

.kontakt { white-space: nowrap; }

/* --------------------------------------------------------------------------
   Fehlerseite (404.html). Wird von Apache per ErrorDocument für jede nicht
   gefundene Adresse ausgeliefert – deshalb sind dort ALLE Pfade absolut
   (/recht.css, /assets/...), sonst fehlen sie auf tiefen Adressen.
   -------------------------------------------------------------------------- */
.notfound-code {
    font-size: 64px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    /* Bewusst nicht heller: #cbd5e1 oder #94a3b8 kämen auf dem hellen
       Hintergrund nur auf 1,3:1 bzw. 2,5:1. Bei 4,55:1 bleibt die Zahl
       auch bei schlechtem Licht oder im Sonnenlicht lesbar. */
    color: var(--muted);
    margin: 0 0 6px;
}

ul.notfound-links { list-style: none; padding: 0; margin: 0 0 14px; }
ul.notfound-links li { margin: 0 0 14px; }
ul.notfound-links a { font-weight: 600; text-decoration: none; }
ul.notfound-links a:hover { text-decoration: underline; }
ul.notfound-links span { display: block; color: var(--muted); font-size: 14.5px; font-weight: 400; }

table { border-collapse: collapse; width: 100%; margin: 0 0 14px; font-size: 14.5px; }
th, td { text-align: left; border-bottom: 1px solid var(--line); padding: 8px 10px 8px 0; vertical-align: top; }
th { font-weight: 600; }

@media print {
    body { background: #fff; }
    .draft { border: 1px solid #000; background: #fff; color: #000; }
    nav.legal, .back { display: none; }
    header.bar { border-bottom: 1px solid #000; }
}
