﻿/* =========================================
   RESET
   ========================================= */
*, *::before, *::after {
    box-sizing: border-box;
}

/* =========================================
   LIJSTEN
   ========================================= */
.lijst_opmaak,
.line_opmaak,
.lijn_opmaak_nr {
    list-style-type: disc;
    list-style-position: inside;
    padding: 2px;
    margin: 0;
}

/* =========================================
   FLEX EN CENTERING
   ========================================= */
.center-div {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-direction: column;
}

/* =========================================
   ARTIKEL LAY-OUT
   ========================================= */
article.tweeGelijkeKolommen {
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid #64B76F;
    border-radius: 10px;
    background: #fff;
    padding: 10px;
    height: auto;
    min-height: 375px;
    margin-bottom: 20px;
}

/* =========================================
   BODY-TEKST: SCROLLBAAR INHOUDSGEBIED
   ========================================= */
.body_tekst {
    flex: 1 1 auto;
    padding: 10px;
    margin-bottom: 50px; /* ruimte voor footer */
    overflow-y: auto;
    scrollbar-width: thin; /* Firefox */
}

    .body_tekst::-webkit-scrollbar {
        width: 8px; /* Chrome, Safari, Edge */
    }

    .body_tekst::-webkit-scrollbar-thumb {
        background-color: #ccc;
        border-radius: 4px;
    }

/* =========================================
   VIDEO: FLUID EN RESPONSIVE
   ========================================= */
.body_tekst_video {
    padding: 0;
    margin: 0;
}

.video-container {
    width: calc(100% - 20px); /* 10px marge aan beide zijden */
    margin: 0 auto 10px auto; /* ondermarge naar footer */
    background-color: #000;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Fallback voor oudere browsers zonder aspect-ratio */
@supports not (aspect-ratio: 16/9) {
    .video-container {
        position: relative;
        width: calc(100% - 20px);
        height: 0;
        padding-top: 56.25%; /* 16:9 verhouding */
    }

        .video-container > video {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
        }
}

/* Video zelf — altijd zichtbaar, nooit afgesneden */
.video-container video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: center;
    background-color: #000;
}

/* =========================================
   FOOTER MET KNOPPEN
   ========================================= */
.Footer_tekst {
    flex-shrink: 0;
    width: 100%;
    padding: 10px;
    margin-top: auto; /* schuift footer naar onderkant */
    padding-bottom: 10px;
}

.btn-holder {
    display: flex;
    justify-content: flex-start;
    gap: 8px;
}

.rounded-button {
    border-radius: 6px;
    padding: 8px 12px;
    background-color: #0078D4;
    color: #fff;
    border: none;
    cursor: pointer;
}

    .rounded-button:hover,
    .rounded-button:focus {
        background-color: #005EA6;
        outline: none;
    }

/* =========================================
   GRID EN RESPONSIEF GEDRAG
   ========================================= */
.row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* =========================================
   DESKTOP: 2 artikelen naast elkaar
   ========================================= */
@media (min-width: 1251px) {
    article.tweeGelijkeKolommen {
        width: 47%;
    }
}

/* =========================================
   TUSSENBEREIK: TABLETS EN KLEINE LAPTOPS
   ========================================= */
@media (min-width: 769px) and (max-width: 1250px) {
    article.tweeGelijkeKolommen {
        width: 47%; /* 2 artikelen naast elkaar */
        margin-bottom: 20px;
    }

    .video-container {
        width: calc(100% - 20px); /* marge blijft behouden */
        aspect-ratio: 4 / 3 !important; /* hoger dan desktop */
        min-height: 320px;
        max-height: 500px;
        margin: 0 auto 15px auto;
    }

        .video-container video {
            width: 100%;
            height: 100%;
            object-fit: contain;
            border-radius: 8px;
            display: block;
        }

    .body_tekst {
        overflow-y: auto;
        padding: 10px;
    }
}

/* =========================================
   MOBIEL: <768px
   ========================================= */
@media (max-width: 768px) {
    article.tweeGelijkeKolommen {
        flex: 1 1 100%;
        padding: 8px;
    }

    .video-container {
        width: calc(100% - 16px); /* 8px marge per zijde */
        aspect-ratio: 4 / 3; /* hoger voor mobiele schermen */
        min-height: 300px; /* voldoende grote thumbnail */
        margin: 0 auto 12px auto;
    }

        .video-container video {
            object-fit: contain;
        }

    .body_tekst {
        overflow-y: visible;
        padding: 8px;
        margin-bottom: 50px; /* ruimte voor footer */
    }

    .Footer_tekst {
        padding-bottom: 10px;
    }
}

/* =========================================
   SCREENREADER ONLY (WCAG)
   ========================================= */
.sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* =========================================
   CONTAINER
   ========================================= */
.container-fluid_default {
    padding: 0 10px;
    width: 100%;
    margin: 0 auto;
}
