/* Voeg hier BOVENAAN je CSS de basis stijlen toe, inclusief kleurvariabelen */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400&family=Playfair+Display:ital,wght@0,400;1,400&display=swap');

:root {
    --color-background: black;
    /* Of een andere basiskleur */
    --color-text: white;
    /* Of een andere tekstkleur */
    --color-primary: #ffffff;
    /* Voorbeeld */
    --color-yellow: #ffee00;
    /* Voorbeeld */
    --color-secondary: #00aaff;
    /* Voorbeeld */
    --color-red: #ff4444;
    /* Voorbeeld */
    --color-grey: #888888; /* Grijstint voor inactieve Korthagen ringen */
    --color-purple: #cc66ff;
    /* Voorbeeld */

    --indicator-size: 10px;
    /* Voorbeeld */
    --indicator-total-height: 100px;
    /* Voorbeeld, pas aan aan de hoogte van je .indicator ul */
}

/* ----- PLAK HIER DE VOLLEDIGE CSS CODE DIE JE HEBT MEEGELEVERD ----- */
/* BEGIN VAN GELEVERDE CSS */
@layer base, rhythm, layout, components, default, overwrites;

html {
    /* Create a snapping rule on the html element */
    scroll-snap-type: y mandatory;

    /* Create a timeline scope, so we can target any element on the page */
    timeline-scope: --section, --main, --site-header;

    /* Basis font-size en font-family */
    font-family: sans-serif;
    color: var(--color-text);
}

/* We'll want to match these colors for the best melty effect */
/* But play around with them (and add a color to section) to see happens */
body,
.content {
    background-color: var(--color-background, black);
    margin: 0;
    /* Reset default body margin */
}

main {
    view-timeline: --main;
}



.section {
    /* Creating a snapping rule on the section element */
    scroll-snap-align: start;
    scroll-snap-stop: always;

    /* Attach the timeline to the section element*/
    view-timeline: --section;

    /* Set each section to the full dynamic height of the viewport */
    height: 100dvh;
    display: flex;
    /* Helpt content centreren indien nodig */
    justify-content: center;
    align-items: center;
}

.content {
    /* Fix the content, so it doesn't scroll with the section */
    overflow: hidden;
    position: fixed;
    inset: 0;

    /* Animate the content based on the section scrolling */
    --contrast: 4;
    --blur: 0.5rem;

    animation: blink ease-in-out both;
    animation-timeline: --section;

    /* Zorg dat content binnen de .content div goed gepositioneerd is */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    /* Voeg wat padding toe */
    text-align: center;
}

.content h2 {
    margin-bottom: 1rem;
}

.content .text {
    max-width: 800px;
    /* Limiteer de breedte voor leesbaarheid */
    text-align: left;
    /* Zet tekst links binnen .text */
}

.content .text ul {
    list-style: disc;
    margin-left: 20px;
}


@keyframes blink {

    0%,
    100% {
        filter: blur(var(--blur)) contrast(var(--contrast));
        opacity: 0;
        visibility: hidden;
    }

    50% {
        filter: blur(0) contrast(1);
        opacity: 1;
        visibility: visible;
    }
}

/* Styling voor de Header en Navigatie (Basis, aan te passen) */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    margin-left: 20px;
    /* Ruimte aan de linkerkant */
    margin-right: 20px;
    /* Ruimte aan de rechterkant */
    align-items: center;
    z-index: 10;
    background: transparent
    /* Lichte achtergrond voor zichtbaarheid */
}




/* Styling voor Navigatie Indicator */
.site-header nav {
    position: fixed;
    /* Of absolute binnen header */
    right: 2rem;
    top: 50%;

    transform: translateY(-50%);

}

/* Styling for the Indicator Container */
.indicator {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    /* Stack dots vertically */
    align-items: center;
    /* Center dots horizontally */
    height: var(--indicator-total-height);
    /* Total height of the indicator */
}

/* Styling for Each Dot */
.indicator li a {
    display: block;
    width: var(--indicator-size);
    height: var(--indicator-size);
    background-color: grey;
    /* Default color for inactive dots */
    border-radius: 50%;
    /* Make dots circular */ /* Aangepast voor 6 items */
    margin-bottom: calc((var(--indicator-total-height) - 6 * var(--indicator-size)) / 5);
    /* Dynamic spacing */
    transition: background-color 0.3s ease, transform 0.3s ease;
    /* Smooth transition for color and animation */
}

/* Remove margin for the last dot */
.indicator li:last-child a {
    margin-bottom: 0;
}

/* Active Dot Styling */
.indicator li a.active {
    background-color: white;
    /* Change color to white for the active dot */
    transform: scale(1.2);
    /* Slightly enlarge the active dot */
}

/* Animation for Active Dot */
@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }

    100% {
        transform: scale(1);
    }
}

/* Apply the pulse animation to the active dot */
.indicator li a.active {
    animation: pulse 1s infinite ease-in-out;
}



/* Header fade-out (zoals meegeleverd) */
.site-header label:last-of-type {
    view-timeline: --site-header inline;
}

.site-header::after {
    /* Dit was voor een gradient, kan weg of aangepast */
    /* content: ''; */
    /* Weglaten indien niet nodig */
    /* ... andere gradient stijlen ... */
    animation: fade-scroll ease-in-out both;
    animation-timeline: --site-header;
    animation-range: entry-crossing;
}

@keyframes fade-scroll {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

/* Add fade-out animation */
@keyframes fade-out {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        visibility: hidden; /* Ensure the elements are not interactive */
    }
}

/* Apply the animation to h1 and h3 */
.site-header h1,
.site-header h3 {
    animation: fade-out 1s ease-out 5s forwards; /* 1s duration, starts after 5s */
}

/* Selectie animaties (zoals meegeleverd) */
body:has([value="horizontal-scroll"]:checked) .content {
    animation: horizontal-scroll ease-in-out both;
    animation-timeline: --section;
}

body:has([value="backwards-scroll"]:checked) .content {
    animation: backwards-scroll ease-in-out both;
    animation-timeline: --section;
}

body:has([value="zoom-scroll"]:checked) .content {
    animation: zoom-scroll ease-in-out both;
    animation-timeline: --section;
}

/* Alternatieve animaties keyframes (zoals meegeleverd) */
@keyframes horizontal-scroll {
    0% {
        transform: translate3d(100%, 0%, 0);
        opacity: 0;
    }

    50% {
        transform: none;
        opacity: 1;
    }

    100% {
        transform: translate3d(-100%, 0%, 0);
        opacity: 0;
    }
}

@keyframes backwards-scroll {
    0% {
        transform: translate3d(0%, -100%, 0);
        opacity: 0;
    }

    50% {
        transform: none;
        opacity: 1;
    }

    100% {
        transform: translate3d(0%, 100%, 0);
        opacity: 0;
    }
}

@keyframes zoom-scroll {
    0% {
        filter: blur(5rem);
        transform: scale(0);
        opacity: 0;
        visibility: hidden;
    }

    50% {
        filter: blur(0);
        transform: none;
        opacity: 1;
        visibility: visible;
    }

    100% {
        filter: blur(3rem);
        transform: scale(1.5);
        opacity: 0;
        visibility: hidden;
    }
}

/* Styling voor sr-only class (verbergt visueel, behoudt voor screen readers) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Footer styling (basis) */
footer {
    padding: 1rem;
    text-align: center;
    background-color: #111;
    /* Donkere achtergrond */
    color: #aaa;
    position: relative;
    /* Zodat het na de main komt */
    z-index: 5;
    /* Lager dan header/nav */
}

/* EINDE VAN GELEVERDE CSS (met toevoegingen/aanpassingen) */

/* Voeg hieronder verdere custom styling toe indien nodig */

/* Standaard (verborgen) staat voor de animatie */
.content h2,
.content .text {
    opacity: 0;
    transform: translateY(30px);
    /* Start iets lager */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Staat wanneer de sectie zichtbaar wordt */
.content.is-visible h2 {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
    /* Kleine vertraging voor de titel */
}

.content.is-visible .text {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
    /* Iets latere vertraging voor de tekst */
}

/* Reset voor de eerste sectie die direct zichtbaar is bij laden */
/* Dit werkt mogelijk niet perfect met de vaste positionering, testen! */


.timeline-container {
    position: relative;
    display: flex; /* Arrange items in a row */
    overflow-x: auto; /* Enable horizontal scrolling */
    overflow-y: hidden; /* Prevent vertical scrolling on the container */
    padding: 20px; /* Padding around the timeline items */
    height: 400px; /* Fixed height for the horizontal timeline area, adjust as needed */
    align-items: flex-end; /* Align items to the bottom to help position markers on the line */
    background-color: black; /* Changed to black */
    border-radius: 8px;
    margin: 20px 0; /* Adjust margin as needed */
    /* max-width: 90%; Removed, let it be controlled by parent .text or be full width */
    /* width: 800px; Removed */
    /* margin: 40px auto; Removed */
    scrollbar-width: none; /* Verberg scrollbar in Firefox */
    cursor: grab; /* Standaard cursor om aan te geven dat slepen mogelijk is */
    -ms-overflow-style: none;  /* Verberg scrollbar in IE en Edge (oudere versies) */
}

/* Horizontale lijn aan de onderkant van de tijdlijn-container */
.timeline-container::after {
    content: '';
    position: absolute;
    bottom: 30px; /* Lijn 10px hoger geplaatst */
    left: 0;
    height: 4px; /* Dikte van de lijn */
    width: 350%; /* Maak de lijn veel breder dan de viewport om alle items te dekken */
    background-color: white; /* Lijnkleur naar wit */
    z-index: 1; /* Onder de markers, boven item achtergronden */
    transform: scaleX(0); /* Start onzichtbaar (geschaald naar 0 breedte) */
    transform-origin: left; /* Animatie start vanaf links */
    animation: draw-horizontal-line 2s ease-out 0.5s forwards; /* Animatie definitie */
}

@keyframes draw-horizontal-line {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}
/* Webkit scrollbar styling for .timeline-container */
.timeline-container::-webkit-scrollbar {
    display: none; /* Verberg scrollbar in Webkit browsers (Chrome, Safari, Edge Chromium) */
}

/* Stijl voor de cursor tijdens het actief slepen */
.timeline-container.active-drag {
    cursor: grabbing; /* Cursor verandert naar 'pakken' tijdens het slepen */
}

/* No central vertical line needed for horizontal timeline */
/* @keyframes draw-line and .timeline-container::after are removed */

/* Elk item op de tijdlijn */
.timeline-item {
    flex: 0 0 320px; /* Each item has a fixed width of 320px, doesn't grow or shrink */
    margin-right: 25px; /* Space between items */
    position: relative;
    box-sizing: border-box;
    padding: 15px;
    padding-bottom: 35px; /* Extra padding at the bottom for the marker */
    display: flex;
    flex-direction: column;
    align-items: center; /* Center children like image and content block */
    z-index: 100;
    border-radius: 8px;
}

/* Verwijder margin van laatste item */
.timeline-item:last-child {
    margin-right: 0; /* No margin for the very last item */
}


/* De ronde marker op de centrale lijn */
.timeline-item .timeline-marker {
    position: absolute;
    width: 16px; /* Grootte marker */
    height: 16px;
    background-color: #E95757;
    border-radius: 50%;
    /* Aangepaste positie voor de hogere lijn:
       Lijn midden is nu op 32px (bottom: 30px + lijndikte: 4px / 2).
       Marker (16px hoog) midden (8px) moet daar zijn. Dus marker bottom = 32px - 8px = 24px. */
    bottom: 5%; 
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
}

/* Het content-blok met tekst */
.timeline-item .timeline-content {
    padding: 15px 20px;
    background-color: #E95757; /* Achtergrond kleur (Rood/Roze) */
    color: white;
    /* Tekst kleur */
    position: relative;
    border-radius: 6px;
    /* Afgeronde hoeken */
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    /* Subtiele schaduw */
    transition: height 2s ease, padding 2s ease;
    overflow: hidden;
    width: 100%; /* Content takes full width of the item's padding box */
    box-sizing: border-box;
}

.timeline-item .timeline-content h3 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 1.2em;
    
    font-weight: bold;
}

.timeline-item .timeline-content p {
    margin-bottom: 0;
    font-size: 0.95em;
    line-height: 1.5;
}

/* Remove specific positioning for .left and .right items for vertical layout */
.timeline-item.left {
    /* No specific horizontal positioning needed now */
}

.timeline-item.right {
    /* No specific horizontal positioning needed now */
}

/* Remove triangle pointers as they were for the vertical line */
.timeline-item.left .timeline-content::after,
.timeline-item.right .timeline-content::after {
    display: none;
}


/* Styling for the image container */
.timeline-image {
    /* position: absolute; Removed */
    width: 100%; /* Or a fixed width like 150px if preferred */
    max-width: 200px; /* Limit image/video size within the item */
    margin-bottom: 10px; /* Space between image and content block */
    /* z-index: 1; Not needed if not absolute */
    text-align: center; /* Center the image/video if it's inline-block */
}

.timeline-image video,
.timeline-image img {
    max-width: 100%; /* Ensure media is responsive within its container */
    height: auto;
    display: block; /* For margin auto centering */
    margin-left: auto;
    margin-right: auto;
    border-radius: 4px; /* Optional: rounded corners for media */
}

.timeline-image img {
    width: 75px;
    height: 75px;
    border: #ffffff 2px solid;
    
}

/* Default state for timeline images */
.timeline-image img {
    opacity: 0;
    transform: scale(0.8); /* Start slightly smaller */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Visible state for timeline images */
.timeline-image img.is-visible {
    opacity: 1;
    transform: scale(1); /* Reset to normal size */
}

/* Remove old absolute positioning for images based on .left/.right */
.timeline-item.left .timeline-image {
    /* No specific positioning needed, handled by flex layout of .timeline-item */
}

.timeline-item.right .timeline-image {
    /* No specific positioning needed, handled by flex layout of .timeline-item */
}

/* ========== Responsive Aanpassingen ========== */
@media screen and (max-width: 768px) {
    .timeline-container {
        height: auto; /* Allow height to adjust to content on smaller screens */
        min-height: 450px; /* Or a suitable min-height */
    }
    .timeline-item {
        flex-basis: 280px; /* Slightly narrower items on smaller screens */
        margin-right: 15px;
    }
    /* Removed rules that forced a vertical layout on mobile. */
    /* The timeline will remain horizontal and scrollable. */
}

/* ========== Einde Timeline Styling ========== */

/* ========== Timeline Animation Styling ========== */

/* BEGINSTATE (Verborgen) */

/* De centrale lijn kan initieel al zichtbaar zijn, of ook geanimeerd worden.
   Voorbeeld lijn-animatie (optioneel): */




/* Marker initieel verborgen */
.timeline-item .timeline-marker {
    opacity: 0;
    transform: scale(0.3);
    /* Start klein */
    transition: opacity 0.4s ease-out, transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), height 1s ease-in-out;
    /* Ease met 'bounce' */
    /* visibility: hidden; */
    /* Optioneel */
}

/* Content blok initieel verborgen en verschoven */
.timeline-item .timeline-content {
    opacity: 0;
    transform: translateX(-40px);
    /* Start verschoven (wordt overschreven voor 'right') */
    transition: opacity 0.5s ease-out, transform 0.5s ease-out, height 1s ease-out, padding 0.5s ease-out;
    /* Eenvoudige overgang */
    /* visibility: hidden; */
    /* Optioneel */
}

/* Pas beginpositie aan voor rechter items */
.timeline-item.right .timeline-content {
    transform: translateX(40px);
    /* Start verschoven naar rechts */
}


/* ZICHTBARE STAAT (wanneer .is-visible class is toegevoegd) */

/* De class .is-visible wordt via JS toegevoegd aan .timeline-item */

.timeline-item.is-visible .timeline-marker {
    opacity: 1;
    transform: scale(1);
    /* Normale grootte */
    /* visibility: visible; */
    /* Delay voor de marker - verschijnt als eerste */
    transition-delay: 0.1s;
    /* Start animatie na 0.1s (relatief aan toevoegen .is-visible) */
}

.timeline-item.is-visible .timeline-content {
    opacity: 1;
    transform: translateX(0);
    /* Schuif naar de eindpositie */
    /* visibility: visible; */
    /* Delay voor de content - verschijnt na de marker */
    transition-delay: 0.3s;
    /* Start animatie na 0.3s */
}

/* Optioneel: Animeren van H3 (jaar) en P (content) apart binnen .timeline-content */

.timeline-item .timeline-content h3,
.timeline-item .timeline-content p {
    opacity: 0; /* Start onzichtbaar voor .is-visible animatie */
    transform: translateY(15px); /* Start verschoven voor .is-visible animatie */
    
    /* Correctie: Definieer de transitie hier */
    transition: opacity 0.4s ease-out,
                transform 0.4s ease-out;
}

/* .is-visible rules for h3 and p */
.timeline-item.is-visible .timeline-content h3 {
    opacity: 1;
    
    transform: translateY(0);
    transition-delay: 0.4s; /* Delay voor verschijnen */
}

.timeline-item.is-visible .timeline-content p {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.6s; /* Delay voor verschijnen */
}

/* Optional: Style the scrollbar for better appearance */
.timeline-content .hidden-content::-webkit-scrollbar {
    width: 8px; /* Width of the scrollbar */
}

.timeline-content .hidden-content::-webkit-scrollbar-thumb {
    background-color: #ccc; /* Color of the scrollbar thumb */
    border-radius: 4px; /* Rounded corners for the scrollbar thumb */
}

.timeline-content .hidden-content::-webkit-scrollbar-thumb:hover {
    background-color: #aaa; /* Darker color on hover */
}

/* Image container styling */
.timeline-content .hidden-content .image-container {
    margin-top: 10px;
    text-align: center;
}

.timeline-content .hidden-content .image-container img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    /* Optional: rounded corners */

}

/* Basisstijl voor de originele H3/P (uit .is-visible logica) */
.timeline-item .timeline-content > h3,
.timeline-item .timeline-content > p {
    opacity: 0;
    transform: translateY(15px);

    /* Basis transitie voor .is-visible EN voor hover fade-out */
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
    transition-delay: 0s; /* Default delay */
}

/* .is-visible regels voor originele H3/P blijven zoals ze waren */
.timeline-item.is-visible .timeline-content > h3 {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}

.timeline-item.is-visible .timeline-content > p {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.6s;
}

/* Default styles for hidden content (content revealed when item is "open") */
.timeline-content .hidden-content {
    visibility: hidden;
    opacity: 0;
    transform: translateY(20px); /* Start slightly lower */
    max-height: 0; /* Collapse the height initially */
    overflow-y: hidden; /* Prevent scrolling initially */
    /* Transition for when .is-open is removed */
    transition: opacity 0.5s ease-out, transform 0.5s ease-out, max-height 0.5s ease-out, visibility 0s 0.5s;
    /* Delay visibility change until after other transitions complete */
}

/* Styles for when a timeline item is "open" */
/* Hide the original h3 and p when the item is open */
/*
   The h3 and p elements will now remain visible when the item is open.
   They are already made visible by the .is-visible class (scroll-triggered animation).
   So, we remove the rules that would hide them when .is-open is active.
*/
/* .timeline-item.is-open .timeline-content > h3, */
/* .timeline-item.is-open .timeline-content > p { */
/*     opacity: 0; */
/*     transform: translateY(-10px); */
/*     visibility: hidden; */
/*     transition: opacity 0.3s ease-out, transform 0.3s ease-out, visibility 0s 0.3s; */
/*     transition-delay: 0s; */
/* } */

/* Show the hidden content when the item is open */
.timeline-item.is-open .timeline-content .hidden-content {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    max-height: 250px; /* Adjusted to account for visible h3/p within container height */
    overflow-y: auto; /* Allow scrolling if content exceeds max-height */
    overflow-x: hidden; /* Prevent horizontal scrolling within hidden content */
    transition: opacity 0.5s ease-out, transform 0.5s ease-out, max-height 0.5s ease-out, visibility 0s; /* Removed 0.2s delay */
}

/* Styling for Timeline Navigation Arrows */
.timeline-navigation {
    display: flex;
    justify-content: space-between; /* Positions arrows at either end */
    align-items: center;
    padding: 5px 20px; /* Adjust padding as needed */
    margin-bottom: 10px; /* Space between arrows and the timeline container */
}

.timeline-arrow {
    cursor: pointer;
    font-size: 2.5em; /* Adjust size as desired */
    color: var(--color-text); /* Use theme text color */
    padding: 0 10px; /* Horizontal padding for clickable area */
    user-select: none; /* Prevent text selection on click */
    transition: color 0.2s, transform 0.2s; /* Smooth hover effect */
}

.timeline-arrow:hover {
    color: var(--color-primary); /* Example hover color (white by default) */
    transform: scale(1.1); /* Slightly enlarge on hover */
}

/* ========== Einde Timeline Animation Styling ========== */

/* Styling for h1 */
h1 {
    font-family: 'Inter', sans-serif;
    /* Default font for the entire h1 */
    font-size: 2.5rem;
    /* Adjust size as needed */
    font-weight: 700;
    color: var(--color-text);
    /* Default text color */
}

/* Different font for "Datapunt" */
h1 .datapunt {
    font-family: 'Playfair Display', serif;
    /* Different font for "Datapunt" */
    font-style: italic;
    color: var(--color-text);
    /* Keep the default color */
}

/* Styling for "4A" */
h1 .four-a {
    font-family: inherit;
    /* Use the same font as the parent h1 */
    color: #E95757;
    /* Apply the red color */
}

/* Add dots before h2 */
h2 {
    position: relative; /* Nodig om ::before absoluut te positioneren */
    padding-left: 20px; /* Ruimte links voor de stip */
    font-size: 2em; /* Pas aan naar wens */
    margin-bottom: 1em; /* Ruimte onder de H2 */
    color: var(--color-text); /* Ensure text color is set */
    overflow: hidden; /* Clip the ::after pseudo-element */

    /* Initial state for fade-in */
    opacity: 0;
    transition: opacity 0.3s ease-out 0.6s; /* Delay matches block animation duration + delay */
}

h2::before {
    content: ''; /* Verplicht voor pseudo-elementen */
    display: inline-block; /* Zorgt ervoor dat het element zichtbaar is */
    width: 10px; /* Grootte van de stip */
    height: 10px; /* Grootte van de stip */
    background-color: #E95757; /* Kleur van de stip */
    border-radius: 50%; /* Maak de stip rond */

    /* Inline-block positionering */
    margin-right: 10px; /* Ruimte tussen de stip en de tekst */
    vertical-align: middle; /* Lijn de stip uit met de tekst */
    transform-origin: center; /* Zorg dat transformaties vanuit het midden gebeuren */
    transform: scale(1); /* Base state before hover animation */
    transition: transform 0.3s ease; /* Smooth transition back from hover */
}

/* Specifieke layout voor de Korthagen sectie .text div */
#korthagen-model .content .text { /* Dit is de flex container voor de 3 kolommen */
    display: flex;
    flex-direction: row;
    gap: 30px; /* Ruimte tussen de kolommen */
    align-items: flex-start; /* Lijn items bovenaan uit */
    width: 100%;
    max-width: none; /* Override de algemene max-width voor .content .text */
    justify-content: space-around; /* Verdeel de ruimte gelijkmatiger */
}

/* Stijl voor de inleidende paragraaf in de Korthagen sectie */
.korthagen-intro-text { /* Target de paragraaf met de nieuwe class */
    flex-basis: 30%; /* Geef een basisbreedte */
    max-width: 350px; /* Maximale breedte voor de introductieparagraaf */
    margin: 0; /* Verwijder standaard margin */
    padding-top: 10px; /* Een beetje padding om beter uit te lijnen met de ringen */
    text-align: center; /* Centreer de tekst binnen deze kolom */
}

/* De Korthagen ring container als flex item (midden kolom) */
.korthagen-ring-container {
    /* Bestaande stijlen voor positionering van ringen binnen deze container blijven */
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: 350px; /* Vaste breedte */
    /* margin: 0 auto; */ /* Optioneel: centreer de ring container als er extra ruimte is */
}

/* De Korthagen info display als flex item (rechter kolom) */
.korthagen-right-info-display {
    flex-basis: 30%; /* Geef een basisbreedte */
    max-width: 400px; /* Maximale breedte voor de info display */
}

@keyframes bounce-dot-y {
    0%, 100% { transform: translateY(0); animation-timing-function: ease-out; }
    50% { transform: translateY(-8px); animation-timing-function: ease-in; }
}

@keyframes bounce-dot {
    0% {
        transform: scale(1);      /* Begin normaal */
        animation-timing-function: ease-in;
    }
    30% {
        transform: scale(1.4);    /* Groei flink */
        animation-timing-function: ease-out;
    }
    60% {
        transform: scale(0.8);    /* Krimp (onder normaal) */
        animation-timing-function: ease-in;
    }
    80% {
        transform: scale(1.1);    /* Veer iets terug */
        animation-timing-function: ease-out;
    }
    100% {
        transform: scale(1);      /* Eindig normaal */
    }
}

@keyframes block-reveal {
    0% {
        transform: translateX(-101%); /* Start volledig buiten beeld links */
    }
    45%, 55% {
        transform: translateX(0);     /* Bedek de tekst */
    }
    100% {
        transform: translateX(101%); /* Eindig volledig buiten beeld rechts */
    }
}

h2:hover::before {
    animation-name: bounce-dot;     /* Koppel aan de keyframes */
    animation-duration: 0.6s;       /* Duur van de bounce (pas aan!) */
    animation-timing-function: ease-in-out; /* Basis timing */
    animation-iteration-count: infinite; /* Laat de animatie oneindig herhalen */
    animation-fill-mode: forwards;  /* Behoud de laatste staat (scale 1) */
}

.content.is-visible h2 {
    opacity: 1;
}

.content.is-visible h2::after {
    animation: block-reveal 0.5s cubic-bezier(0.65, 0, 0.35, 1) 0.2s forwards;
    /* Duur: 0.5s */
    /* Easing: Een veelgebruikte ease-in-out curve */
    /* Delay: 0.2s (start kort na het toevoegen van .is-visible) */
    /* Fill Mode: forwards (houdt het buiten beeld rechts) */
}

/* Apply the SVG filter */

/* Styling for the leerdoelen container */
.leerdoelen-container {
    display: flex;
    gap: 20px; /* Space between columns */
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

/* Styling for each column */
.leerdoel-column {
    flex: 1 1 300px; /* Allow grow, allow shrink, basis of 300px */
    padding: 15px; /* Increased padding */
    box-sizing: border-box;
    background-color: rgba(255, 255, 255, 0.05); /* Subtle background for distinction */
    border-radius: 6px; /* Rounded corners */
}

/* For larger screens, allow the container in #oude-leerdoelen-c3 to be wider */
@media screen and (min-width: 992px) { /* Breakpoint for typical laptop views */
    #oude-leerdoelen-c3 .content .text.leerdoelen-container { /* Target the specific div */
        max-width: 1000px; /* Allow more width for 3 columns */
    }
}

/* Responsive adjustments for smaller screens */
@media screen and (max-width: 768px) {
    .leerdoelen-container {
        flex-direction: column; /* Stack columns vertically */
    }
    .leerdoel-column {
        flex-basis: auto; /* Reset basis when stacked */
        width: 100%; /* Take full width when stacked */
    }
}

/* Styling voor afbeeldingen in de Ontwerp Reflectie sectie */
.ontwerp-reflectie-afbeeldingen {
    display: flex;
    justify-content: center; /* Centreer de afbeeldingen binnen deze container */
    align-items: flex-start; /* Lijn de bovenkant van afbeeldingen uit als ze verschillende hoogtes hebben */
    gap: 20px; /* Ruimte tussen de afbeeldingen */
    flex-wrap: wrap; /* Sta toe dat afbeeldingen onder elkaar springen op kleinere schermen */
    margin-bottom: 25px; /* Ruimte onder de afbeeldingen, voor de tekst */
    width: 100%; /* Neem de beschikbare breedte */
    max-width: 800px; /* Beperk de maximale breedte, vergelijkbaar met .content .text */
}

.ontwerp-reflectie-afbeeldingen img {
    max-width: 100px; /* Maximale breedte per afbeelding ingesteld op 100px */
    max-height: 100px; /* Maximale hoogte per afbeelding ingesteld op 100px */
    width: auto;      /* Behoudt de aspect ratio, past breedte aan max-width/max-height aan */
    height: auto;     /* Behoudt de aspect ratio van de afbeelding */
    border-radius: 6px; /* Afgeronde hoeken */
    box-shadow: 0 3px 7px rgba(0,0,0,0.15); /* Subtiele schaduw */
    object-fit: contain; /* Zorgt dat de hele afbeelding zichtbaar is, zonder bijsnijden */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Soepele overgang voor hover effect */
}

.ontwerp-reflectie-afbeeldingen img:hover {
    transform: scale(1.5); /* Maak de afbeelding 1.5x groter op hover */
    box-shadow: 0 6px 12px rgba(0,0,0,0.25); /* Iets grotere schaduw op hover */
    z-index: 10; /* Zorg dat de gehoverde afbeelding boven andere elementen komt */
}


/* Styling for the image containers */
.image-container {
    text-align: center;
    margin: 20px 0; /* Add spacing around the images */
}

.image-container img {
    max-width: 100%;
    height: auto;
    border: 2px solid #ccc; /* Optional: Add a border */
    border-radius: 8px; /* Optional: Rounded corners */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Optional: Add shadow */
}

/* Styling for the video container */
.video-container {
    width: 100%; /* Make the video take up the full width of its parent column */
    height: auto; /* Maintain the aspect ratio */
    border-radius: 8px; /* Optional: Add rounded corners */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Optional: Add a shadow */
    display: block; /* Ensure it behaves like a block element */
}

/* Styling for the arrow */
.arrow-down {
    text-align: center;
    font-size: 24px; /* Adjust size of the arrow */
    color: #ffffff; /* Arrow color */
    margin: 10px 0; /* Add spacing around the arrow */
}

.video-container.hover {
    transform: scale(1.05); /* Slightly enlarge the video on hover */
    transition: transform 0.3s ease; /* Smooth transition for the scaling effect */
}

/* ========== Korthagen Ui Model Styling ========== */
.korthagen-ui-model-container {
    display: flex;
    flex-direction: column;
    align-items: center; /* Lijn interne items (interaction area, note) in het midden uit */
    gap: 20px; /* Ruimte tussen ringen-container en info-display */
    padding: 20px;
    position: relative;
    min-height: 500px; /* Zorg voor voldoende hoogte voor ringen en info */
    width: 100%;
    box-sizing: border-box;
}

.korthagen-interaction-area {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1100px; /* Maximale breedte voor de 3-koloms layout */
    gap: 30px; /* Ruimte tussen ring-container en info-display */
    margin-bottom: 20px; /* Ruimte voor de animation-note eronder */
}

.korthagen-ring-container {
    position: relative;
    width: 350px; /* Grootte van de grootste ring */
    height: 350px;
    max-width: 1200px; /* Maximale breedte voor de ring container */
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 0 0 350px; /* Vaste breedte, niet groeien, niet krimpen */
}


.korthagen-layer {
    position: absolute;
    border-style: solid;
    border-width: 6px; /* Dikte van de ringlijn */
    border-color: var(--color-grey); /* Default grijze kleur, overridden by specific layers if they are visible */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center; /* Zorgt dat de span binnen de ring goed centreert */
    cursor: pointer;
    /* Default to hidden and non-interactive */
    opacity: 0;
    visibility: hidden;
    pointer-events: none; /* Maakt de laag niet-interactief */
    transition: transform 0.3s ease, border-color 0.3s ease, opacity 0.3s ease, visibility 0s 0.3s;
    box-sizing: border-box; /* Inclusief border en padding in width/height */
}

.korthagen-layer:hover {
    transform: scale(1.05); /* Lichte zoom op hover */
}

.korthagen-layer .layer-name {
    font-size: 0.9em;
    font-weight: bold;
    color: var(--color-text);
    padding: 5px;
    opacity: 0; /* Standaard verborgen */
    visibility: hidden; /* Standaard verborgen */
    transition: opacity 0.3s ease, color 0.3s ease;
    display: inline-block; /* Om transform correct toe te passen */
}

/* Specifieke styling per laag (grootte en kleur). De meeste worden nu verborgen door de default .korthagen-layer stijl. */
.layer-omgeving {
    width: 100%; /* 350px */
    height: 100%;
    border-color: #FF6347; /* Tomaat */
    z-index: 1;
}
.layer-gedrag {
    width: calc(100% - 60px); /* 290px */
    height: calc(100% - 60px);
    border-color: #FFD700; /* Goud - Deze kleur blijft zichtbaar */
    opacity: 1; /* Maak zichtbaar */
    visibility: visible; /* Maak zichtbaar */
    pointer-events: auto; /* Maak interactief */
    z-index: 2;
}
/* De regels die .layer-gedrag .layer-name specifiek zichtbaar maakten zijn verwijderd, dus de naam blijft verborgen. */
.layer-vaardigheden {
    width: calc(100% - 120px); /* 230px */
    height: calc(100% - 120px);
    border-color: #90EE90; /* Lichtgroen */
    z-index: 3;
}
.layer-overtuigingen {
    width: calc(100% - 180px); /* 170px */
    height: calc(100% - 180px);
    border-color: #87CEEB; /* Hemelsblauw - Deze kleur blijft zichtbaar */
    opacity: 1; /* Maak zichtbaar */
    visibility: visible; /* Maak zichtbaar */
    pointer-events: auto; /* Maak interactief */
    z-index: 4;
}
/* De regels die .layer-overtuigingen .layer-name specifiek zichtbaar maakten zijn verwijderd, dus de naam blijft verborgen. */
.layer-identiteit {
    width: calc(100% - 240px); /* 110px */
    height: calc(100% - 240px);
    border-color: #DDA0DD; /* Pruim */
    z-index: 5;
}
.layer-identiteit .layer-name {
    font-size: 0.8em; /* Kleinere tekst voor kleinere ring */
}

.layer-betrokkenheid {
    width: calc(100% - 300px); /* 50px */
    height: calc(100% - 300px);
    border-color: #E6E6FA; /* Lavendel */
    z-index: 6;
    background-color: rgba(230, 230, 250, 0.1); /* Lichte achtergrond voor de kern */
}
.layer-betrokkenheid .layer-name {
    font-size: 0.65em; /* Nog kleinere tekst */
    white-space: normal; /* Sta woordafbreking toe indien nodig */
    line-height: 1.2;
    padding: 2px;
}

.korthagen-layer .layer-info {
    display: none; /* De info zelf wordt niet in de ring getoond, maar in de displayer */
}

.korthagen-right-info-display {
    flex: 1; /* Neemt beschikbare ruimte */
    padding: 20px;
    background-color: rgba(50, 50, 50, 0.1);
    border-left: 5px solid var(--color-text); /* Default neutrale border */
    border-radius: 8px; /* Aangepast voor algemene afronding */
    min-height: 150px;
    /* width: 90%; */ /* Verwijderd, flex:1 en max-width regelen dit */
    max-width: 600px;
    text-align: left;
    opacity: 0;
    transform: translateX(20px) scale(0.95); /* Startpositie voor animatie */
    transition: opacity 0.4s ease-out, transform 0.4s ease-out, border-left-color 0.3s ease;
    visibility: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    display: flex; /* Om content verticaal te centreren indien nodig */
    flex-direction: column;
    /* justify-content: center; */ /* Verwijderd, titel bovenaan */
}

.korthagen-right-info-display.is-visible {
    opacity: 1;
    transform: translateX(0) scale(1); /* Eindpositie voor animatie */
    visibility: visible;
}

.korthagen-right-info-display .korthagen-hovered-layer-title {
    margin: 0 0 10px 0;
    font-size: 1.8em;
    font-weight: bold;
    line-height: 1.2;
    /* Kleur wordt via JS ingesteld */
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease-out 0.1s, transform 0.3s ease-out 0.1s, color 0.3s ease; /* Vertraagde animatie */
}

.korthagen-right-info-display.is-visible .korthagen-hovered-layer-title {
    opacity: 1;
    transform: translateY(0);
}

.korthagen-right-info-display .korthagen-hovered-layer-content p {
    margin: 0;
    line-height: 1.6;
    color: var(--color-text);
    /* Animatie voor content kan hier ook, indien gewenst */
}

.korthagen-right-info-display.is-visible {
    opacity: 1;
    transform: translateX(0) scale(1);
    visibility: visible;
}
/* .korthagen-active-info-display p is nu .korthagen-right-info-display .korthagen-hovered-layer-content p */

.korthagen-right-info-display strong {
    /* Kleur wordt via JS ingesteld, of een default hier */
    font-weight: bold;
}

.animation-note {
    font-size: 0.9em;
    color: #aaa;
    margin-top: 15px;
    text-align: center;
}

/* Responsive aanpassingen voor Korthagen model */
@media screen and (max-width: 480px) {
    /* Stapel de kolommen onder elkaar op kleine schermen */
    #korthagen-model .content .text {
        flex-direction: column; /* Stapel introductietekst en model onder elkaar */
        align-items: center; /* Centreer items horizontaal */
        gap: 20px;
    }
    .korthagen-intro-text {
        max-width: 100%; /* Volledige breedte voor introductietekst */
        text-align: center; /* Centreer de tekst */
        flex-basis: auto; /* Reset basis voor kolom layout */
        padding-top: 0;
    }
    #korthagen-model .content .text > p:first-of-type {
        max-width: 100%; /* Volledige breedte voor introductietekst */
        text-align: center; /* Centreer de tekst */
        padding-top: 0;
    }

    .korthagen-interaction-area {
        flex-direction: column;
        max-width: 100%;
        align-items: center; /* Centreer de ringen en info display in de kolom */
        gap: 20px; /* Ruimte tussen ringen en info display op mobiel */
    }
    .korthagen-ring-container {
        width: 300px;
        height: 300px;
    }
    .layer-omgeving { border-width: 5px; }
    .layer-gedrag { width: calc(100% - 50px); height: calc(100% - 50px); border-width: 5px;}
    .layer-vaardigheden { width: calc(100% - 100px); height: calc(100% - 100px); border-width: 5px;}
    .layer-overtuigingen { width: calc(100% - 150px); height: calc(100% - 150px); border-width: 4px;}
    .layer-identiteit { width: calc(100% - 200px); height: calc(100% - 200px); border-width: 4px;}
    .layer-betrokkenheid { width: calc(100% - 250px); height: calc(100% - 250px); border-width: 4px;}

    .korthagen-layer .layer-name { font-size: 0.8em; }
    .layer-identiteit .layer-name { font-size: 0.7em; }
    .layer-betrokkenheid .layer-name { font-size: 0.6em; }

    /* Info display onder de ringen op kleine schermen */
    .korthagen-right-info-display {
        flex-basis: auto; /* Reset basis voor kolom layout */
        max-width: 90%; /* Geef wat marge aan de zijkanten */
        min-height: 100px;
        padding: 15px;
        border-left-width: 0; /* Verwijder linker border */
        border-top: 5px solid var(--color-text); /* Border bovenaan */
        border-radius: 8px; /* Algemene border radius (kan ook 0 0 8px 8px zijn) */
        transform: translateY(10px) scale(0.95);
    }
}

/* Styling voor de nieuwe Basismodel sectie */
#korthagen-basismodel .content .text {
    display: flex;
    flex-direction: column; /* Zorgt dat .korthagen-model-group de volledige breedte kan nemen en gecentreerd kan worden */
    align-items: center; /* Centreer de .korthagen-model-group horizontaal */
    width: 100%;
}

.korthagen-model-group {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centreer de titel en interactive-area */
    gap: 20px; /* Ruimte tussen titel en interactive-area */
    width: 100%;
    max-width: 1100px; /* Maximale breedte voor de groep, zodat het niet te breed wordt op grote schermen */
}

.korthagen-model-title {
    font-size: 1.5em;
    color: var(--color-primary);
    margin-bottom: 10px;
    text-align: center;
    border-bottom: 2px solid var(--color-secondary); /* Voorbeeld accent */
    padding-bottom: 5px;
}

.korthagen-interactive-area { /* Voor de Basismodel sectie */
    display: flex;
    flex-direction: row;
    justify-content: center; /* Centreer diagram en info-display */
    align-items: flex-start; /* Lijn bovenkanten uit */
    gap: 30px;
    width: 100%;
}

/* Styling voor Basismodel Diagram */
.korthagen-basismodel-diagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    min-width: 280px; /* Minimale breedte voor het diagram */
    flex-shrink: 0; /* Voorkom dat het diagram krimpt */
    position: relative; /* Voor de cycle-arrow */
}

.basismodel-phase {
    background-color: rgba(var(--color-text), 0.1);
    border: 2px solid var(--color-text);
    color: var(--color-text);
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
    text-align: center;
    width: 100%;
    max-width: 250px; /* Maximale breedte per fase */
    box-sizing: border-box;
}

.basismodel-phase:hover {
    transform: translateY(-3px) scale(1.03);
    background-color: rgba(255, 255, 255, 0.2);
    /* border-color kan dynamisch via JS met data-phase-color, indien gewenst */
}

.basismodel-arrow, .basismodel-cycle-arrow {
    font-size: 1.5em;
    color: var(--color-text);
}

.basismodel-cycle-arrow {
    position: absolute;
    bottom: -5px; 
    left: -30px; 
    transform: rotate(90deg); 
}

/* Info Display specifiek voor Basismodel (en potentieel algemeen) */
.korthagen-info-display { /* Gebruikt door Basismodel HTML */
    flex: 1; 
    padding: 20px;
    background-color: rgba(50, 50, 50, 0.1);
    border-left: 5px solid var(--color-text); 
    border-radius: 8px; 
    min-height: 300px; 
    max-width: 600px;
    text-align: left;
    opacity: 0;
    transform: translateX(20px) scale(0.95); 
    transition: opacity 0.4s ease-out, transform 0.4s ease-out, border-left-color 0.3s ease;
    visibility: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    display: flex; 
    flex-direction: column;
}

.korthagen-info-display.is-visible {
    opacity: 1;
    transform: translateX(0) scale(1); 
    visibility: visible;
}

.korthagen-info-display .info-display-title { 
    margin: 0 0 10px 0;
    font-size: 1.8em;
    font-weight: bold;
    line-height: 1.2;
    color: var(--color-text); 
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease-out 0.1s, transform 0.3s ease-out 0.1s, color 0.3s ease; 
}

.korthagen-info-display.is-visible .info-display-title {
    opacity: 1;
    transform: translateY(0);
}

.korthagen-info-display .info-display-content p { 
    margin: 0;
    line-height: 1.6;
    color: var(--color-text);
}

/* Responsive aanpassingen specifiek voor Basismodel elementen indien nodig */
@media screen and (max-width: 768px) { /* Bredere breakpoint voor stapelen diagram en info */
    #korthagen-basismodel .korthagen-interactive-area {
        flex-direction: column;
        align-items: center;
    }
    .korthagen-info-display { /* Zorg dat het info display goed schaalt */
        margin-left: 0;
        max-width: 90%;
        border-left-width: 0;
        border-top: 5px solid var(--color-text);
    }
}

/* ========== Einde Korthagen Ui Model Styling ========== */

/* ========== Algemene Link Styling ========== */
a {
    color: #E95757; /* Gebruik de bestaande accentkleur */
    text-decoration: none; /* Verwijder standaard onderstreping */
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

a:hover,
a:focus {
    color: #f07f7f; /* Lichtere tint van de accentkleur voor hover/focus */
    text-decoration: underline; /* Voeg onderstreping toe op hover/focus */
}
