:root {
    color-scheme: light dark;
}

/* Felipa, Regular 400 — SIL Open Font License 1.1, siehe fonts/Felipa-OFL.txt */
@font-face {
    font-family: 'Felipa';
    font-style: normal;
    font-weight: 400;
    font-display: block;
    src: url('fonts/felipa-v27-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Felipa';
    font-style: normal;
    font-weight: 400;
    font-display: block;
    src: url('fonts/felipa-v27-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Source Sans 3 (Variable, 400-600) — SIL Open Font License 1.1,
   siehe fonts/SourceSans3-OFL.txt */
@font-face {
    font-family: 'Source Sans 3';
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
    src: url('fonts/source-sans-3-v19-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Source Sans 3';
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
    src: url('fonts/source-sans-3-v19-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

html {
    height: 100%;
}

body {
    font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #f5f5f5;
    color: #222;
    /* mindestens Fensterhöhe, darf aber mitwachsen */
    min-height: 100%;
    margin: 0;
    /* Spalte: <main> nimmt den freien Platz ein, <nav class="footer">
       sitzt darunter — bei kurzem Inhalt am Fensterrand, bei langem
       hinter dem Text. */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

main {
    flex: 1 0 auto;
    display: flex;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

h1 {
    font-family: 'Felipa', Georgia, "Times New Roman", serif;
    font-weight: 400;
    font-size: clamp(1.5rem, 5vw, 3rem);
    letter-spacing: 0.02em;
    margin: 0;
}

nav {
    margin-top: 1.5rem;
    font-size: 0.875rem;
}

nav a {
    color: inherit;
    opacity: 0.7;
    text-decoration: none;
}

nav a:hover,
nav a:focus {
    opacity: 1;
}

nav a + a {
    margin-left: 1.25rem;
}

/* Navigation am Seitenfuß — auf allen Seiten gleich. */
nav.footer {
    flex: 0 0 auto;
    width: 100%;
    margin-top: 0;
    padding: 1.25rem;
    text-align: center;
}

/* Fließtextseiten (Impressum, Datenschutz): Der Block sitzt horizontal
   mittig wie die Startseite, der Text darin bleibt linksbündig lesbar.
   Vertikal oben beginnen, da der Inhalt länger als das Fenster sein kann. */
body:has(main.text) {
    justify-content: flex-start;
}

main.text {
    display: block;
    text-align: left;
    width: 100%;
    max-width: 42rem;
    padding: 3rem 1.5rem 2rem;
    line-height: 1.6;
}

main.text h1 {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    margin-bottom: 1.5rem;
}

main.text h2 {
    font-size: 1rem;
    font-weight: 600;
    margin: 2rem 0 0.5rem;
}

main.text address {
    font-style: normal;
}

main.text ul {
    padding-left: 1.25rem;
}

main.text a {
    color: inherit;
}

.hint {
    margin-top: 2.5rem;
    font-size: 0.875rem;
    opacity: 0.7;
}

@media (prefers-color-scheme: dark) {
    body {
        background: #1a1a1a;
        color: #e0e0e0;
    }
}
