body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f8f8;
}

.header {
    width: 100%;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    display: flex;
    justify-content: center;
    position: relative;
}

.header-container {
    max-width: 1440px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    margin: 20px 0 0 20px;
}

/* Logo links */
.logo {
    font-size: 24px;
    font-weight: bold;
    color: black;
    text-decoration: none;
}

/* Navigatiebalk */
.nav-links {
    display: flex;
    margin-left: auto;
    margin-right: 30px;
}

.nav-links ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: black;
    font-size: 16px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #ff6600;
}

/* Zoekbalk in de header */
.search-container {
    flex-grow: 1;
    max-width: 300px;
}

.search-bar {
    width: 100%;
    border: 1px solid #ccc;
    padding: 8px 12px;
    border-radius: 20px;
}

/* Hamburger menu */
.menu-icon {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* 📱 Responsief ontwerp */
@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
        justify-content: space-between;
    }

    /* Logo blijft links */
    .logo {
        font-size: 20px;
    }

    /* Hamburger menu naar rechts */
    .menu-icon {
        display: block;
        margin-left: auto;
        position: absolute;
        right: 20px;
        z-index: 100; /* Zorgt ervoor dat het hamburger menu boven alles komt */
    }

    /* Navigatie verbergen standaard */
    .nav-links {
        display: none;
        width: 100%;
        background: white;
        flex-direction: column;
        text-align: center;
        position: absolute;
        top: 100%; /* Zorgt ervoor dat het navigatiemenu direct onder de header komt */
        left: 0;
        z-index: 50; /* Zorgt ervoor dat het menu niet onder de zoekbalk valt */
    }

    .nav-links.active {
        display: flex;
        background-color: white;
        height: 100vh; /* Vul het volledige scherm */
        padding: 15px 0;
        z-index: 50; /* Zorgt ervoor dat het navigatiemenu de volledige hoogte van het scherm bedekt */
    }

    .nav-links ul {
        flex-direction: column;
        gap: 15px;
        padding: 10px 0;
    }

    /* Zoekbalk verder naar beneden onder de titel */
    .search-container {
        position: absolute;
        margin-top: 80px;
        width: 90%;
        max-width: 300px;
        z-index: 0;  /* Zorgt ervoor dat de zoekbalk achter het menu blijft */
    }

    .search-bar {
        width: 100%;
    }

    /* Achtergrondkleur van de header moet meegroeien met de zoekbalk */
    .header {
        padding-bottom: 120px; /* Voeg extra padding toe aan de onderkant van de header */
    }
}

@media (max-width: 480px) {
    .header-container {
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .logo {
        font-size: 18px;
    }

    .menu-icon {
        display: block;
        margin-left: auto;
        position: absolute;
        right: 20px;
        z-index: 999; /* Zorgt ervoor dat het hamburger menu boven alles komt */
    }

    .nav-links {
        display: none;
        width: 100%;
        background: white;
        flex-direction: column;
        text-align: center;
        position: absolute;
        top: 100%; /* Zorgt ervoor dat het navigatiemenu direct onder de header komt */
        left: 0;
        z-index: 50; /* Zorgt ervoor dat het menu niet onder de zoekbalk valt */
    }

    .nav-links.active {
        display: flex;
        background-color: white;
        height: 100vh; /* Vul het volledige scherm */
        padding: 15px 0;
        z-index: 50; /* Zorgt ervoor dat het navigatiemenu de volledige hoogte van het scherm bedekt */
    }

    .nav-links ul {
        flex-direction: column;
        gap: 12px;
        padding: 10px 0;
    }

    /* Zoekbalk verder naar beneden onder de titel */
    .search-container {
        position: absolute;
        bottom: 5px; /* Verlaag de zoekbalk verder naar beneden */
        left: 20px;
        width: 90%;
        max-width: 250px;
    }

    .search-bar {
        width: 100%;
    }

    /* Achtergrondkleur van de header moet meegroeien met de zoekbalk */
    .header {
        padding-bottom: 80px; /* Voeg extra padding toe aan de onderkant van de header */
    }
}

