/* =====================================================
   KIDS AM DÖNBERG E.V.
   GLOBALE STYLES
   ===================================================== */


/* =====================================================
   FARBEN UND GLOBALE VARIABLEN
   ===================================================== */

:root {
    --blue: #07519a;
    --light-blue: #0877a8;/*#27a9df;*/
    --light-green: #75ad3b;
    --green: #3f7020;
    --pink: #d82f5b; /*#ee4f75;*/
    --dark-pink: #b51f49;
    --yellow: #f9c62e;

    --text: #263238;
    --text-muted: #5f6b70;
    --white: #ffffff;

    --background-light: #e2eef1;
    --background-beige: #fffaf0;

    --page-width: 1200px;
}


/* =====================================================
   GRUNDEINSTELLUNGEN
   ===================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

body {
    margin: 0;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 16px;
    line-height: 1.5;

    color: var(--text);
    background-color: var(--white);
    min-height: 100vh;

    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
}


/* =====================================================
   HEADER
   ===================================================== */

.site-header {
    position: relative;
    z-index: 100;

    background-color: var(--white);
}

.header-inner {
    position: relative;

    width: 100%;
    max-width: var(--page-width);
    min-height: 76px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-inline: auto;
    padding: 12px 20px;
}


/* =====================================================
   LOGO
   ===================================================== */

.logo {
    display: flex;
    align-items: center;

    text-decoration: none;
}

.logo img {
    display: block;

    width: auto;
    height: 52px;
}


/* =====================================================
   MOBILE NAVIGATION – MENÜ-BUTTON
   ===================================================== */

.menu-button {
    width: 48px;
    height: 48px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;

    padding: 10px;

    border: 0;
    background: transparent;

    cursor: pointer;
}

.menu-button span {
    display: block;

    width: 28px;
    height: 3px;

    border-radius: 2px;

    background-color: var(--blue);

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}


/* Hamburger → X */

.menu-button.is-open span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-button.is-open span:nth-child(2) {
    opacity: 0;
}

.menu-button.is-open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}


/* =====================================================
   MOBILE NAVIGATION – HAUPTNAVIGATION
   ===================================================== */

.main-navigation {
    position: absolute;

    top: 100%;
    left: 0;

    width: 100%;

    display: none;

    padding: 12px 20px 24px;

    background-color: var(--white);

    border-top: 1px solid #eeeeee;

    box-shadow:
        0 10px 20px rgba(0, 0, 0, 0.08);
}

.main-navigation.is-open {
    display: block;
}

.nav-list {
    margin: 0;
    padding: 0;

    list-style: none;
}

.nav-list li {
    border-bottom: 1px solid #eeeeee;
}

.nav-list li:last-child {
    border-bottom: 0;
}

.nav-list a {
    display: block;

    padding: 14px 4px;

    color: var(--blue);

    font-weight: 700;
    text-decoration: none;
}

.nav-list a:hover {
    color: var(--light-blue);
}

.nav-list a:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 2px;
}


/* Spenden-Button */

.nav-list .nav-donate {
    margin-top: 12px;
    padding: 12px 20px;

    color: var(--white);
    background-color: var(--pink);

    border-radius: 999px;

    text-align: center;
}

.nav-list .nav-donate:hover {
    color: var(--white);

    filter: brightness(0.92);
}


/* =====================================================
   TABLET
   ===================================================== */

@media (min-width: 768px) {

    .logo img {
        height: 58px;
    }

}


/* =====================================================
   DESKTOP
   ===================================================== */

@media (min-width: 1000px) {

    .header-inner {
        padding-inline: 32px;
    }


    /* Navigation */

    .menu-button {
        display: none;
    }

    .main-navigation {
        position: static;

        display: block;

        width: auto;

        padding: 0;

        background: transparent;

        border: 0;
        box-shadow: none;
    }

    .nav-list {
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .nav-list li {
        border: 0;
    }

    .nav-list a {
        padding: 10px 9px;

        font-size: 0.9rem;
    }

    .nav-list .nav-donate {
        display: inline-flex;
        align-items: center;
        justify-content: center;

        margin-top: 0;
        margin-left: 6px;

        padding: 10px 18px;

        color: var(--white);
    }


    /* Startseite aus Desktop-Navigation ausblenden */

    .nav-home {
        display: none;
    }

}