
/* ========================================
   1. Grundeinstellungen
   ======================================== */

:root {
    color-scheme: light;

    --color-primary: #155eef;
    --color-primary-hover: #1049c7;
    --color-text: #172b4d;
    --color-muted: #526581;
    --color-background: #f3f6fa;
    --color-surface: #ffffff;
    --color-border: #dce4ee;

    --radius: 12px;
    --content-width: 1100px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 1rem;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont,
                 "Segoe UI", sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-background);
}

img,
svg {
    display: block;
    max-width: 100%;
}

a {
    color: var(--color-primary);
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 4px;
}

/* ========================================
   2. Barrierefreiheit
   ======================================== */

.skip-link {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 10;
    padding: 0.75rem 1rem;
    color: #ffffff;
    background: var(--color-primary);
    border-radius: 6px;
    transform: translateY(-150%);
}

.skip-link:focus {
    transform: translateY(0);
}

/* ========================================
   3. Seitenlayout
   ======================================== */

.page {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-header {
    width: 100%;
    padding: 1rem;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
}

.brand {
    display: block;
    width: 100%;
    max-width: 1050px;
    margin-inline: auto;
}

.brand-logo {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.brand-name {
    font-size: 1.125rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.main-content {
    width: 100%;
    max-width: var(--content-width);
    margin-inline: auto;
    padding: 1.25rem 1rem;
    flex: 1;
}

.page-intro {
    margin-bottom: 1.5rem;
}

h1,
h2,
h3 {
    line-height: 1.25;
    text-wrap: balance;
}

h1 {
    margin: 0 0 0.75rem;
    font-size: clamp(1.75rem, 5vw, 2.5rem);
}

h2 {
    margin-top: 0;
    font-size: 1.5rem;
}

h3 {
    font-size: 1.125rem;
}

.intro-text {
    max-width: 65ch;
    margin: 0;
    color: var(--color-muted);
}

/* ========================================
   4. Content-Bereich
   ======================================== */

.content-card {
    padding: 1.25rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: 0 2px 8px rgb(23 43 77 / 5%);
}

.content-card p {
    max-width: 75ch;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    margin-top: 0.5rem;
    padding: 0.75rem 1.25rem;

    color: #ffffff;
    background: var(--color-primary);
    border: 2px solid transparent;
    border-radius: 8px;

    font: inherit;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.button:hover {
    background: var(--color-primary-hover);
}

.details {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
}

/* ========================================
   5. Footer
   ======================================== */

.site-footer {
    padding: 1rem;
    color: var(--color-muted);
    text-align: center;
    font-size: 0.875rem;
}

/* ========================================
   6. Größere Bildschirme
   ======================================== */

@media (min-width: 768px) {
    .site-header {
        padding: 1rem 2rem;
    }

    .brand,
    .main-content,
    .site-footer {
        max-width: var(--content-width);
    }

    .site-header {
        padding: 1.5rem 2rem;
    }

    .main-content {
        padding: 2.5rem 2rem;
    }

    .page-intro {
        margin-bottom: 2rem;
    }

    .content-card {
        padding: 2rem;
    }
}

/* ========================================
   7. Reduzierte Animationen respektieren
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}
