/* =========================================================
   BASE
   Globale Design-Tokens, Reset und Element-Grundstile
   ========================================================= */

:root {
    --color-background: #f4f1e9;
    --color-surface: #ffffff;
    --color-surface-soft: #ede8de;
    --color-text: #101713;
    --color-text-muted: #5f665f;
    --color-border: rgba(16, 23, 19, 0.12);
    --color-accent: #c5f43d;
    --color-accent-hover: #b4e632;
    --color-warm: #c7935d;
    --color-warm-soft: #e5c6a3;
    --color-dark: #111512;
    --color-danger: #b2342b;
    --container: min(92vw, 1440px);
    --content: min(88vw, 1180px);
    --radius-xs: 0.55rem;
    --radius-sm: 0.9rem;
    --radius-md: 1.35rem;
    --radius-lg: 2rem;
    --radius-xl: 3rem;
    --shadow-soft: 0 20px 70px rgba(24, 29, 25, 0.08);
    --shadow-card: 0 12px 45px rgba(24, 29, 25, 0.1);
    --section-space: clamp(5.5rem, 10vw, 11rem);
    --header-height: 5.6rem;
    --ease: cubic-bezier(.2, .8, .2, 1);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 6rem;
}

body {
    margin: 0;
    overflow-x: hidden;
    color: var(--color-text);
    background: var(--color-background);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body.menu-open {
    overflow: hidden;
}

body.cookie-open {
    overflow: hidden;
}

::selection {
    color: var(--color-dark);
    background: var(--color-accent);
}

img,
svg {
    display: block;
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
    text-decoration: none;
}

p,
h1,
h2,
h3,
h4,
ul,
dl,
dd {
    margin-top: 0;
}

h1,
h2,
h3,
h4 {
    font-family: Manrope, Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(197, 244, 61, 0.8);
    outline-offset: 4px;
}

/* Responsive */

@media (max-width: 1220px) {
    :root {
        --container: min(94vw, 1180px);
    }

}

@media (max-width: 1024px) {
    :root {
        --header-height: 5rem;
    }

}

@media (max-width: 767px) {
    :root {
        --container: min(92vw, 680px);
        --section-space: clamp(4.8rem, 18vw, 7rem);
        --radius-lg: 1.35rem;
    }

    html {
        scroll-padding-top: 5rem;
    }

}

@media (min-width: 1600px) {
    :root {
        --container: min(88vw, 1580px);
    }

}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

}