:root {
    --primary-green: #8bc53f;
    --primary-dark: #004d40;
    --accent-blue: #0f1c3f;
    --white: #ffffff;
    --light-bg: #eaeff2;
    --soft-green: #e9f5e9;
    --text-color: #333;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { 
    font-family: 'Inter', sans-serif; 
    line-height: 1.6; 
    color: var(--text-color); 
    background: var(--white);
    animation: fadeIn 0.8s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* --- Navigatie --- */
nav { background: var(--primary-dark); padding: 10px 0; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { height: 70px; width: auto; transition: transform 0.3s; }
.logo:hover { transform: scale(1.05); }

.nav-links { display: flex; gap: 20px; align-items: center; }
.nav-links a { color: var(--white); text-decoration: none; font-weight: 600; font-size: 1rem; transition: 0.3s; }
.nav-links a:hover { color: var(--primary-green); }

/* --- Secties --- */
section { padding: 80px 0; }
.bg-light { background-color: var(--light-bg); }
.bg-green { background-color: var(--soft-green); }
.bg-white { background-color: var(--white); }

h1, h2, h3 { color: var(--primary-dark); margin-bottom: 20px; }
h2 { text-align: center; font-size: 2rem; margin-bottom: 50px; position: relative; }
h2::after { content: ''; display: block; width: 60px; height: 3px; background: var(--primary-green); margin: 15px auto 0; }

/* --- Hero --- */
.hero { background: linear-gradient(135deg, var(--primary-dark), var(--accent-blue)); color: var(--white); padding: 100px 0; text-align: center; }
.hero h1 { color: var(--white); font-size: 2.2rem; margin-bottom: 20px; }
.hero p { font-size: 1.15rem; max-width: 800px; margin: 0 auto 30px; opacity: 0.95; }

/* --- Knoppen --- */
.btn-primary { background: var(--primary-green); color: var(--primary-dark) !important; padding: 12px 24px; border-radius: 5px; text-decoration: none; font-weight: bold; border: none; cursor: pointer; transition: transform 0.2s, background 0.2s; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.btn-primary:hover { transform: translateY(-2px); background: #7cb335; }

.btn-white { background: var(--white); color: var(--primary-dark); padding: 12px 25px; text-decoration: none; font-weight: bold; border-radius: 5px; display: inline-block; transition: transform 0.2s; }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0,0,0,0.2); }

/* --- Grid Systemen --- */
.grid-centered { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; }
.grid-centered > * { flex: 1 1 300px; max-width: 350px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }

/* --- Cards --- */
.card { 
    background: var(--white); 
    padding: 30px; 
    border-radius: 8px; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.08), 0 0 2px rgba(0,0,0,0.05); 
    border-top: 5px solid var(--primary-green); 
    height: 100%; 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 12px 25px rgba(0,0,0,0.15); }

/* --- Werkwijze Accordion --- */
.accordion-item { background: var(--white); margin-bottom: 15px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.08); overflow: hidden; border: 1px solid #e0e0e0; }
summary { padding: 25px; cursor: pointer; font-weight: bold; color: var(--primary-dark); font-size: 1.1rem; list-style: none; display: flex; align-items: center; justify-content: space-between; background: var(--white); border-left: 6px solid var(--primary-green); transition: background 0.3s; }
summary:hover { background: #f4f8f0; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-size: 1.5rem; color: var(--primary-green); font-weight: bold; }
details[open] summary::after { content: '-'; }
.accordion-content { padding: 25px; border-top: 1px solid #eee; background: #fafafa; color: #555; line-height: 1.7; }

/* --- Kennisbank Styling --- */
.label-evolution { display: flex; justify-content: space-between; gap: 20px; margin-top: 30px; position: relative; }
.label-evolution::before { content: ''; position: absolute; top: 50px; left: 0; right: 0; height: 4px; background: #e0e0e0; z-index: 0; border-radius: 2px; }
.evo-step { background: var(--white); padding: 20px; border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); flex: 1; text-align: center; position: relative; z-index: 1; border: 1px solid #eee; transition: transform 0.3s; }
.evo-step:hover { transform: translateY(-5px); border-color: var(--primary-green); }
.evo-icon { width: 60px; height: 60px; background: var(--white); border: 4px solid #ccc; color: #ccc; border-radius: 50%; margin: 0 auto 15px; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 1.2rem; position: relative; }
.evo-step.active { border-color: var(--primary-green); background: #f9fff9; }
.evo-step.active .evo-icon { border-color: var(--primary-green); background: var(--primary-green); color: var(--primary-dark); }
.evo-title { font-weight: bold; color: var(--primary-dark); margin-bottom: 5px; display: block; }
.evo-desc { font-size: 0.9rem; color: #666; }

/* EPBD IV Alert */
.future-alert { background: linear-gradient(135deg, var(--accent-blue), var(--primary-dark)); color: var(--white); padding: 40px; border-radius: 15px; position: relative; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.15); }
.future-alert::before { content: '!'; position: absolute; right: -20px; top: -20px; font-size: 15rem; opacity: 0.05; font-weight: 900; color: var(--white); pointer-events: none; }
.future-content { position: relative; z-index: 2; max-width: 800px; margin: 0 auto; text-align: center; }
.future-tag { background: var(--primary-green); color: var(--primary-dark); padding: 5px 15px; border-radius: 20px; font-weight: bold; font-size: 0.85rem; text-transform: uppercase; display: inline-block; margin-bottom: 15px; }

/* Do's & Don'ts */
.do-dont-container { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.col-do h3 { color: #2e7d32; border-bottom: 2px solid #2e7d32; display: inline-block; padding-bottom: 5px; }
.col-dont h3 { color: #c62828; border-bottom: 2px solid #c62828; display: inline-block; padding-bottom: 5px; }
.list-check li, .list-cross li { list-style: none; margin-bottom: 15px; padding-left: 30px; position: relative; }
.list-check li::before { content: '✓'; color: #2e7d32; position: absolute; left: 0; font-weight: bold; font-size: 1.2rem; }
.list-cross li::before { content: '✕'; color: #c62828; position: absolute; left: 0; font-weight: bold; font-size: 1.2rem; }

/* --- Formulier --- */
.form-wrapper { max-width: 600px; margin: 0 auto; background: var(--white); padding: 40px; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); border: 1px solid #e0e0e0; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--accent-blue); text-align: left; }
.form-group input, .form-group textarea { width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 5px; font-family: inherit; font-size: 1rem; transition: border-color 0.3s; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--primary-green); outline: none; }
.full-width { width: 100%; font-size: 1.1rem; }

footer { background: var(--accent-blue); color: var(--white); padding: 50px 0; text-align: center; margin-top: auto; }

/* --- MOBIELE OPTIMALISATIE --- */
@media (max-width: 768px) {
    /* Basis instellingen voor mobiel menu */
    .nav-container { 
        flex-direction: column; 
        padding-bottom: 15px; 
        transition: padding 0.3s ease; /* Zorgt voor soepele overgang */
    }
    .logo { 
        height: 60px; 
        margin-bottom: 10px; 
        transition: height 0.3s ease, margin 0.3s ease; 
    }
    .nav-links { 
        flex-direction: column; 
        gap: 15px; 
        width: 100%; 
        text-align: center; 
        /* Zorgt dat het menu kan in- en uitklappen */
        max-height: 500px; 
        opacity: 1;
        overflow: hidden;
        transition: max-height 0.3s ease, opacity 0.3s ease, gap 0.3s ease;
    }
    .nav-links a { display: block; width: 100%; padding: 5px 0; }
    .btn-primary { width: 100%; }

    /* --- DE NIEUWE INKLAP TRUC --- */
    /* Wanneer we de klasse 'scrolled-nav' toevoegen via Javascript: */
    nav.scrolled-nav .nav-links {
        max-height: 0;   /* Klap menu in */
        opacity: 0;      /* Maak onzichtbaar */
        gap: 0;          /* Verwijder tussenruimte */
        margin: 0;       /* Verwijder marges */
    }
    
    nav.scrolled-nav .nav-container {
        padding-bottom: 5px; /* Minder witruimte onder logo */
    }

    nav.scrolled-nav .logo {
        height: 40px;    /* Logo wordt kleiner */
        margin-bottom: 0;
    }

    /* Overige mobiele aanpassingen (zoals eerder) */
    .hero h1 { font-size: 1.8rem; padding: 0 10px; }
    .hero p { font-size: 1rem; padding: 0 10px; }
    h2 { font-size: 1.5rem; margin-bottom: 30px; }
    section { padding: 50px 0; }
    .hero { padding: 60px 0; }
    .grid-2, .grid-3, .grid-centered, .do-dont-container { grid-template-columns: 1fr; }
    
    .label-evolution { flex-direction: column; gap: 30px; }
    .label-evolution::before { 
        width: 4px; height: 100%; left: 50%; top: 0; transform: translateX(-50%); 
        background: linear-gradient(to bottom, #eee 0%, #eee 100%);
    }
    .future-alert { padding: 30px 20px; }
    .future-alert::before { display: none; }
}