/* ========================================================= */
/* 1. MOBIELE LAYOUT (Schermen tot 1000px)                   */
/* ========================================================= */
@media (max-width: 1000px) {
    body {
        display: block;
        padding-top: 0;
    }

    body.menu-open {
        /* Voorkomt dat de achtergrond scrolt als menu open is */
        overflow: hidden; 
    }

    /* Verberg zware elementen op mobiel */
    .intro-slider, .slider-container, #slider {
        display: none !important; 
    }

    .intro-section {
        padding: 20px !important;
        flex-direction: column !important; 
        align-items: flex-start !important;
    }

    .intro-text {
        width: 100% !important;
        text-align: left;
    }

    /* --- HAMBURGER MENU KNOP --- */
    .hamburger-menu {
        display: flex !important;
        flex-direction: column;
        justify-content: space-around;
        position: fixed;
        top: 20px;
        left: 20px;
        width: 32px;
        height: 24px;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 100001;
        padding: 0;
    }

    .hamburger-menu span {
        width: 100%;
        height: 3px;
        background-color: var(--brand-orange);
        border-radius: 10px;
        transition: 0.3s ease;
    }

/* ========================================================= */
/* 1. MOBIELE LAYOUT (Schermen tot 1000px)                   */
/* ========================================================= */
@media (max-width: 1000px) {
    body {
        display: block;
        padding-top: 0;
    }

    /* Blokkeer scrollen van de achtergrond-site, maar sta scrollen in menu toe */
    body.menu-open {
        overflow: hidden; 
        height: 100vh;
    }

    /* --- HAMBURGER MENU KNOP --- */
    .hamburger-menu {
        display: flex !important;
        flex-direction: column;
        justify-content: space-around;
        position: fixed;
        top: 20px;
        left: 20px;
        width: 32px;
        height: 24px;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 100001;
    }

    .hamburger-menu span {
        width: 100%;
        height: 3px;
        background-color: var(--brand-orange);
        border-radius: 10px;
        transition: 0.3s ease;
    }

    /* --- NAVIGATIE MENU --- */
    .main-nav {
        display: none; 
        position: fixed;
        top: 0; 
        left: 0;
        width: 100%;
        height: 100vh; /* Gebruik volledige schermhoogte */
        background-color: #000000;
        z-index: 100000;
        
        /* Scroll-instellingen */
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        overflow-y: scroll; /* Forceer scroll-mogelijkheid */
        -webkit-overflow-scrolling: touch; /* Cruciaal voor soepel scrollen op iOS */
    }

    /* Roos sectie bovenin voor sfeer en leesbaarheid */
  .main-nav::before {
    content: "";
    display: block;
    min-height: 250px; /* Verhoogd van 180px naar 250px voor een grotere foto */
    width: 100%;
    background-image: url('/roos.png'); 
    background-repeat: no-repeat;
    background-position: center; 
    background-size: contain;
    background-color: #0a0a0a;
    border-bottom: 1px solid rgba(252, 107, 12, 0.3);
    flex-shrink: 0;
    margin-bottom: 15px; /* Dit zorgt voor de gewenste ruimte tussen de foto en de Home knop */
}

    body.menu-open .main-nav {
        display: flex !important;
    }

    .nav-links {
        list-style: none;
        padding: 0 20px 60px 20px; /* Extra padding onderin voor scroll-ruimte */
        margin: 0;
        display: flex;
        flex-direction: column;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid #1a1a1a;
    }

  .nav-links li a {
    color: #ffffff !important;
    text-decoration: none;
    font-size: 1.1rem; /* Verkleind van 1.3rem naar 1.1rem */
    font-weight: bold;
    text-transform: uppercase;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0; /* Verlaagd van 18px naar 12px voor meer compactheid */
}

    /* --- SUBMENU --- */
    .submenu {
        max-height: 0;
        overflow: hidden;
        list-style: none;
        padding: 0;
        background-color: #080808;
        transition: max-height 0.4s ease-in-out;
    }

    .has-submenu.is-open > .submenu {
        max-height: 1000px; /* Ruim genoeg voor alle items */
        padding-bottom: 15px;
    }

  .submenu li a {
    font-size: 1rem; /* Iets kleiner gemaakt */
    color: var(--brand-orange) !important;
    padding: 10px 20px;
    text-transform: none;
    border-bottom: none;
}

    /* Indicator */
    .has-submenu > a::after {
        content: '+';
        color: var(--brand-orange);
        transition: transform 0.3s;
    }

    .has-submenu.is-open > a::after {
        content: '-';
    }

    /* Animatie Hamburger */
    body.menu-open .hamburger-menu span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    body.menu-open .hamburger-menu span:nth-child(2) { opacity: 0; }
    body.menu-open .hamburger-menu span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}
    /* --- DASHBOARD & GROTE KNOPPEN FIX --- */
    .button-section, .button-section-1, .button-section-2, .button-section-3 {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 15px !important;
    }

    .big-button-base {
        width: 100% !important;
        max-width: 400px !important;
        min-height: 80px;
        margin: 0 auto !important;
        transform: none !important;
        background-color: rgba(252, 107, 12, 0.7) !important; 
        color: #000000 !important;
        text-decoration: none !important;
        border: 1px solid rgba(252, 107, 12, 0.3);
    }

    .big-button-base:hover,
    .big-button-base:active,
    .big-button-base:focus,
    .big-button-base.active {
        color: #000000 !important;
        background-color: rgba(252, 107, 12, 0.9) !important;
    }

    .big-button-base .button-title,
    .big-button-base span,
    .big-button-base div,
    .big-button-base i {
        color: #000000 !important;
        font-size: 1.5rem !important;
    }
}

/* ========================================================= */
/* 2. ADMIN & EDITOR (Schermen tot 900px)                    */
/* ========================================================= */
@media (max-width: 900px) {
    .admin-layout { grid-template-columns: 1fr !important; }
    .admin-sidebar { width: 100%; margin-bottom: 20px; }
    .admin-sidebar nav ul { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
}

/* ========================================================= */
/* 3. DESKTOP REPAIR (Boven 1001px)                          */
/* ========================================================= */
@media (min-width: 1001px) {
    .hamburger-menu { display: none !important; }
    .main-nav {
        display: flex !important;
        position: static;
        background: transparent;
        background-image: none !important;
        flex-direction: row;
        height: auto;
        overflow: visible;
    }
    .nav-links { flex-direction: row; gap: 20px; }
    .nav-links li a { font-size: 1rem; color: white !important; }
    
    /* Zorg dat submenu's op desktop weer gewoon werken/getoond worden (indien nodig) */
    .submenu { max-height: none; display: none; position: absolute; }
    .has-submenu:hover .submenu { display: block; }
}

/* ========================================================= */
/* 4. CATEGORY GRID                                          */
/* ========================================================= */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin: 30px 0;
}
.category-card {
    background-color: #111;
    border: 1px solid #333;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    display: flex;
    flex-direction: column;
}
.category-info h3 { color: var(--brand-orange); text-transform: uppercase; }