:root {
    --bg:         #f7f4ef;
    --text:       #1c1a17;
    --muted:      #8a8278;
    --accent:     #1e3d6e;
    --accent-hi:  #2d5a9e;
    --rule:       #ddd8ce;
}

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

html {
    background: var(--bg);
}

body {
    font-family: Georgia, 'Palatino Linotype', Palatino, serif;
    font-size: 1.0625rem;
    line-height: 1.82;
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
    padding: 5rem 1.5rem 4rem;
    position: relative;
}

/* Dezentes Papier-Grain */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 100;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='256'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='256' height='256' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 180px 180px;
}

.wrapper {
    max-width: 640px;
    margin: 0 auto;
}

/* Breadcrumb auf Unterseiten */
.crumb {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 3rem;
}

.crumb a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.12s;
}

.crumb a:hover {
    color: var(--accent);
}

h1 {
    font-family: 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
    font-size: 2.1rem;
    font-weight: normal;
    letter-spacing: -0.02em;
    color: var(--text);
    line-height: 1.25;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--rule);
    margin-bottom: 2.25rem;
}

h2 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 2.25rem 0 0.6rem;
}

p {
    margin-bottom: 1.15rem;
}

strong {
    font-weight: bold;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.12s;
}

a:hover {
    color: var(--accent-hi);
    text-decoration: underline;
}

hr {
    border: none;
    border-top: 1px solid var(--rule);
    margin: 2.5rem 0;
}

footer {
    margin-top: 4rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--rule);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.76rem;
    letter-spacing: 0.03em;
    color: var(--muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

footer a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.12s;
}

footer a:hover {
    color: var(--accent);
}

.footer-links {
    display: flex;
    gap: 1.75rem;
}

@media (max-width: 600px) {
    body {
        padding: 3rem 1.25rem 2.5rem;
    }

    h1 {
        font-size: 1.65rem;
    }
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg:         #0e0d0b;
        --text:       #ddd8cf;
        --muted:      #7d7568;
        --accent:     #6b9fd4;
        --accent-hi:  #91bde8;
        --rule:       #211e1a;
    }
}
