
/* =========================================
   1. Globale Variablen
   ========================================= */

:root {
    /* Farben */
    --color-background: #f5f6f8;
    --color-surface: #ffffff;

    --color-text: #252a32;
    --color-text-muted: #6b7280;

    --color-primary: #526b8c;
    --color-primary-hover: #405875;

    --color-border: #dfe3e8;

    --color-success: #39845a;
    --color-warning: #c58a32;
    --color-danger: #bd4545;

    /* Typografie */
    --font-family: Arial, Helvetica, sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.5;

    /* Abstände */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;

    /* Sonstiges */
    --border-radius: 6px;
    --transition-duration: 150ms;
}


/* =========================================
   2. Box-Modell und Grundeinstellungen
   ========================================= */

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

html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;

    font-family: var(--font-family);
    font-size: 1rem;
    line-height: var(--line-height-base);

    color: var(--color-text);
    background-color: var(--color-background);
}


/* =========================================
   3. Typografie
   ========================================= */

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    line-height: 1.25;
    font-weight: 600;
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.5rem;
}

h3 {
    font-size: 1.25rem;
}

p {
    margin-top: 0;
    margin-bottom: var(--spacing-md);
}

small {
    font-size: 0.875rem;
}

.text-muted {
    color: var(--color-text-muted);
}


/* =========================================
   4. Links
   ========================================= */

a {
    color: var(--color-primary);
    text-decoration: none;

    transition: color var(--transition-duration);
}

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


/* =========================================
   5. Buttons
   ========================================= */

button {
    font: inherit;
    cursor: pointer;
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}


/* =========================================
   6. Formulare
   ========================================= */

input,
select,
textarea {
    font: inherit;
    color: inherit;

    max-width: 100%;
}

input,
select,
textarea {
    padding: 0.5rem 0.75rem;

    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);

    background-color: var(--color-surface);
}

input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 1px;
}

textarea {
    resize: vertical;
}


/* =========================================
   7. Bilder und Medien
   ========================================= */

img,
video {
    max-width: 100%;
    height: auto;
}


/* =========================================
   8. Accessibility
   ========================================= */

:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
