/* --- Modal Algemeen --- */
.modal {
    display: none; /* Standaard verborgen */
    position: fixed; /* Blijft op dezelfde plek, zelfs bij scrollen */
    z-index: 1002; /* Zorgt dat het boven alles staat, incl. hamburger */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Maakt scrollen in de modal mogelijk */
    background-color: rgba(0, 0, 0, 0.6); /* Iets donkerdere achtergrond */
    animation: fadeIn 0.3s ease-in-out;
    padding: 2rem;
    box-sizing: border-box;
}

.modal-content {
    background-color: #fff;
    margin: auto; /* Centreer in de flex container */
    padding: 0; /* Padding wordt per sectie toegepast */
    border: 1px solid #ddd;
    width: 100%; /* Neem alle ruimte binnen de padding van de parent */
    max-width: 900px; /* Breder maximum */
    max-height: 95vh; /* Maximale hoogte van 95% van viewport */
    border-radius: var(--border-radius-large);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    position: relative;
    animation: slideIn 0.3s ease-in-out;
    overflow: hidden; /* Verberg overflow van de container zelf */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.modal-header {
    position: sticky;
    top: 0;
    background-color: #fff;
    padding: 30px 35px 20px 35px;
    border-bottom: 2px solid var(--light-gray);
    z-index: 1002;
    flex-shrink: 0;
}

.modal-body {
    padding: 20px 35px 30px 35px;
    overflow-y: auto; /* Scrolling binnen de modal body */
    flex-grow: 1;
}

.modal-close-button {
    color: #999;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1003; /* Hoger dan header */
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close-button:hover,
.modal-close-button:focus {
    color: #333;
    background-color: #f0f0f0;
    text-decoration: none;
}

.modal-content h2 {
    margin: 0;
    color: var(--primary-purple);
    font-size: 1.8rem;
    padding-right: 50px; /* Ruimte voor sluitknop */
}

.modal-content h3 {
    color: var(--secondary-purple);
    border-bottom: 2px solid var(--light-gray);
    padding-bottom: 8px;
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.modal-content h3:first-child {
    margin-top: 0; /* Eerste h3 heeft geen top margin */
}

.modal-content p {
    line-height: 1.6;
    margin-bottom: 15px;
}

.modal-content ul {
    list-style-type: disc;
    padding-left: 25px;
    margin-bottom: 20px;
}

.modal-content li {
    margin-bottom: 12px;
    line-height: 1.5;
}

.modal-content li strong {
    color: var(--primary-purple);
}

/* Animaties */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        transform: translateY(-30px) scale(0.95); 
        opacity: 0; 
    }
    to { 
        transform: translateY(0) scale(1); 
        opacity: 1; 
    }
}

/* Responsive aanpassingen */
@media (max-width: 768px) {
    .modal-content {
        width: 90%;
        margin: 5% auto;
        max-height: 90vh;
    }
    
    .modal-header {
        padding: 25px 20px 15px 20px;
    }
    
    .modal-body {
        padding: 15px 20px 25px 20px;
    }
    
    .modal-content h2 {
        font-size: 1.5rem;
        padding-right: 45px;
    }
    
    .modal-content h3 {
        font-size: 1.2rem;
    }
    
    .modal-close-button {
        font-size: 28px;
        width: 35px;
        height: 35px;
        top: 12px;
        right: 15px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 98%;
        margin: 2% auto;
    }
    
    .modal-header {
        padding: 20px 15px 12px 15px;
    }
    
    .modal-body {
        padding: 12px 15px 20px 15px;
    }
} 