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

*, *::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;
}

.container {
    max-width: 680px;
    margin: 0 auto;
}

/* Breadcrumb */
.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.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.6rem;
}

p {
    margin-bottom: 1.15rem;
}

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;
}

/* Abschnitte */
section {
    margin-bottom: 2.5rem;
}

section > header {
    margin-bottom: 0.9rem;
}

/* Lottozahlen als runde Kugeln */
code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.1em;
    height: 2.1em;
    background: var(--accent);
    color: #fff;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.88rem;
    font-style: normal;
    border-radius: 50%;
    margin: 0.15em 0.1em;
    vertical-align: middle;
}

/* Gezogene Reihen */
ol {
    list-style: none;
    padding: 0;
}

ol li {
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--rule);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

ol li:last-child {
    border-bottom: none;
}

/* Grid (ersetzt PicoCSS .grid) */
.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Formulare */
label {
    display: block;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 1.25rem;
}

input[type="text"] {
    display: block;
    width: 100%;
    margin-top: 0.45rem;
    padding: 0.6rem 0.75rem;
    background: var(--input-bg);
    border: 1px solid var(--rule);
    border-radius: 3px;
    font-family: Georgia, serif;
    font-size: 1rem;
    color: var(--text);
    outline: none;
    transition: border-color 0.12s;
}

input[type="text"]:focus {
    border-color: var(--accent);
}

/* Buttons */
button {
    display: block;
    width: 100%;
    padding: 0.65rem 1.25rem;
    background: var(--accent);
    color: #fff;
    border: 1px solid var(--accent);
    border-radius: 3px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: background 0.12s, border-color 0.12s;
}

button:hover {
    background: var(--accent-hi);
    border-color: var(--accent-hi);
}

button.secondary {
    background: transparent;
    color: var(--accent);
    border-color: var(--rule);
}

button.secondary:hover {
    border-color: var(--accent);
    color: var(--accent-hi);
    background: transparent;
}

/* Footer */
footer {
    margin-top: 4rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--rule);
}

footer nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 1.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

footer nav ul li a {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.76rem;
    letter-spacing: 0.03em;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.12s;
}

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

footer p small {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.76rem;
    color: var(--muted);
}

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

    h1 {
        font-size: 1.65rem;
    }

    .grid {
        grid-template-columns: 1fr;
    }
}

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

/* Adress-Bild */
.adresse-bild {
    display: block;
    max-width: 100%;
    margin-bottom: 0.3rem;
}

@media (prefers-color-scheme: dark) {
    .adresse-bild {
        filter: invert(1);
    }
}
