:root {
    --bg:       #ffffff;
    --ink:      #000000;
    --ink-2:    #3a3a3a;
    --ink-3:    #888888;
    --rule:     rgba(0,0,0,.10);
    --rule-med: rgba(0,0,0,.20);
}
@media (prefers-color-scheme: dark) {
    :root {
    --bg:       #000000;
    --ink:      #ffffff;
    --ink-2:    #c0c0c0;
    --ink-3:    #666666;
    --rule:     rgba(255,255,255,.10);
    --rule-med: rgba(255,255,255,.20);
    }
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg);
    color: var(--ink);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-weight: 400;
}

.container {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

/* ── Header ── */

header {
    padding: 3.5rem 2rem;
    text-align: center;
    border-bottom: 1px solid var(--rule);
}

.tagline {
    font-family: 'Libre Baskerville', serif;
    font-size: .9rem;
    color: var(--ink-3);
    letter-spacing: .01em;
    margin-bottom: .75rem;
    display: block;
}

h1 {
    font-size: clamp(2.4rem, 7vw, 3.8rem);
    line-height: 1.05;
    letter-spacing: -.01em;
}

.page-legal h1 {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    letter-spacing: -.01em;
}

/* ── Sections ── */

main {
    flex: 1;
}

.section {
    padding: 3rem 0;
    border-bottom: 1px solid var(--rule);
}

.section:last-of-type { border-bottom: none; }

.section-head {
    text-align: center;
    margin-bottom: 2rem;
}

.kicker {
    display: block;
    font-size: 10px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin-bottom: .55rem;
}

.section-head h2 {
    font-size: 1.5rem;
    line-height: 1.25;
}

/* ── Hinweis ── */

.notice {
    border: 1px solid var(--rule-med);
    padding: 1rem 1.25rem;
}

.notice p {
    font-size: .875rem;
    line-height: 1.75;
    color: var(--ink-2);
}

/* ── Fließtext ── */

.body-text {
    font-size: 1rem;
    line-height: 1.9;
    color: var(--ink-2);
}

/* ── Zeilenliste (Tätigkeiten & Grundsätze) ── */

.row-list {
    list-style: none;
}

.row-list li {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    padding: 1rem 0;
    border-bottom: 1px solid var(--rule);
    font-size: .95rem;
    line-height: 1.7;
    color: var(--ink-2);
}

.row-list li:first-child { border-top: 1px solid var(--rule); }

.row-list .marker {
    font-family: 'Libre Baskerville', serif;
    font-size: .95rem;
    color: var(--ink-3);
    min-width: 1.8rem;
    padding-top: 2px;
    flex-shrink: 0;
    text-align: right;
}

.row-list .row-title {
    font-family: 'Libre Baskerville', serif;
    font-size: 1rem;
    color: var(--ink);
    display: block;
    margin-bottom: .2rem;
}

/* ── Footer ── */

footer {
    border-top: 1px solid var(--rule);
    padding: 1.25rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .75rem;
}

.footer-name {
    font-family: 'Libre Baskerville', serif;
    font-size: .85rem;
    color: var(--ink-3);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    font-size: .82rem;
    color: var(--ink-3);
    text-decoration: none;
    transition: color .15s;
}

.footer-links a:hover { color: var(--ink-2); }

/* ── Prose-Inhalt (Datenschutz, Impressum) ── */

.prose-content h1 { display: none; } /* Titel kommt aus dem Header */

.prose-content h2 {
    font-size: 1.25rem;
    margin-top: 2.5rem;
    margin-bottom: .75rem;
    color: var(--ink);
    padding-bottom: .4rem;
    border-bottom: 1px solid var(--rule);
}

.prose-content h3 {
    font-size: 1rem;
    margin-top: 1.5rem;
    margin-bottom: .5rem;
    color: var(--ink);
}

.prose-content h4 {
    font-size: .9rem;
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 500;
    margin-top: 1.25rem;
    margin-bottom: .4rem;
    color: var(--ink-2);
}

.prose-content p {
    font-size: .95rem;
    line-height: 1.85;
    color: var(--ink-2);
    margin-bottom: .75rem;
}

.prose-content ul {
    margin: .75rem 0 .75rem 1.5rem;
}

.prose-content ul li {
    font-size: .95rem;
    line-height: 1.75;
    color: var(--ink-2);
    margin-bottom: .35rem;
}

.prose-content a {
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.prose-content a:hover {
    color: var(--ink-2);
}

@media (max-width: 540px) {
    header { padding: 2.5rem 1.25rem; }
    .container { padding: 0 1.25rem; }
    footer { padding: 1rem 1.25rem; flex-direction: column; align-items: flex-start; }
}