/* =========================================
   BASIS STYLING
   ========================================= */

/* Algemene styling */
body {
    /* De Zonsondergang Gradient: van zeer donker naar lichter blauw */
    background: linear-gradient(to bottom, #020221, #336699); 
    background-attachment: fixed; 
    
    color: white;
    font-family: 'Luckiest Guy', cursive; 
    margin: 0;
    padding: 0;
    text-align: center;
    overflow-x: hidden; 
    padding-bottom: 225px; /* Ruimte voor de huisjes-strook */
    min-height: 100vh; 
}

/* Verbergt elementen die door JS de klasse 'hidden' krijgen */
.hidden {
    display: none !important;
}

/* --------------------
    Schuivende Figuren (Pietje & Ozo Snel)
    -------------------- */
.sliding-sint,.sliding-pietje, .sliding-ozosnel  { /* <<< .sliding-sint TOEGEVOEGD */
    position: fixed;
    top: 50%; 
    transform: translateY(-50%); 
    width: 250px; 
    height: auto; 
    z-index: 40; 
    /* Alleen 'left' is nodig, want Sinterklaas komt ook van links */
    transition: left 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* <<< GEEN 'right' meer hier */
    pointer-events: none; 
}

/* NIEUW: Standaard positie voor alle sliding figuren (desktop) */
.sliding-pietje, .sliding-ozosnel, .sliding-sint {
    left: calc(-35% + 15px); /* Start links buiten beeld */
    right: auto; /* Zorg dat 'right' niet in de weg zit */
}

/* --------------------
    Top Navigatie & Staf
    -------------------- */
.top-menu {
    position: fixed;
    top: 25px; 
    left: 25px; 
    z-index: 60; 
    display: flex;
    gap: 20px;
}

.top-menu a {
    color: #D69F39; 
    text-decoration: none;
    /* --- HIER AANGEPAST VOOR GROTERE TEKST (Desktop) --- */
    font-size: 1.3em; 
    font-weight: bold;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.8), 0 0 2px rgba(0, 0, 0, 0.5); 
}

.top-menu a:hover {
    text-decoration: underline;
}

.sinterklaas-staf {
    position: fixed; 
    top: 0; 
    right: 0; 
    height: 150px; 
    width: 100%; 
    z-index: 50; 
    pointer-events: none; 
}

.sinterklaas-staf::after { 
    content: '';
    display: block;
    position: absolute;
    top: 15px; 
    right: 15px; 
    width: 120px; 
    height: 120px; 
    background-image: url('staf_kop.png');
    background-size: contain; 
    background-repeat: no-repeat;
    background-position: center;
}

.sinterklaas-staf::before { 
    content: '';
    display: block;
    position: absolute;
    top: 16px; 
    right: 135px; 
    height: 120px; 
    width: calc(100% - 135px); 
    background-image: url('staf.png');
    background-repeat: repeat-x; 
    background-size: auto 100%; 
}

/* --------------------
    Content en Kopteksten
    -------------------- */
.content {
    padding-top: 150px; 
    position: relative; /* BELANGRIJK: Referentie voor de absolute afbeelding */
    z-index: 10;
    padding-left: 20px;
    padding-right: 20px;
}

h1 {
    font-size: 3em;
    color: white; 
    margin-bottom: 5px;
}

h2 {
    font-size: 1.5em;
    margin-top: 5px;
}

/* --------------------------------------------------
    AFTELKLOK STIJLEN 
   -------------------------------------------------- */
.aftelklok {
    display: flex;
    justify-content: center; /* Centreert de items horizontaal */
    flex-wrap: wrap; /* Laat items die niet passen naar de volgende regel gaan */
    margin: 20px auto;
    width: 90%; /* Geef de container voldoende ruimte */
    max-width: 800px; /* Beperk de maximale breedte */
}

.tijd-eenheid {
    /* Identieke basis opmaak als route-knop, maar is geen link */
    background-color: #D69F39; 
    color: white; /* Dit is de standaard kleur voor alle tekst in de container */
    text-decoration: none; 
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    
    padding: 20px 30px; 
    min-width: 120px; 
    
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
	
	/* Gebruik een vaste breedte of een flexibele breedte, maar zorg voor voldoende ruimte. */
    width: 20%; 
    max-width: 150px;
    margin: 0 15px; /* Voeg wat minimale ruimte toe tussen de boxen */
    box-sizing: border-box; /* Belangrijk: zorgt dat padding en border binnen de width vallen */
}

.tijd-eenheid span {
    /* Alleen de cijfers (die ook span zijn) specifiek rood maken */
    font-size: 4em; 
    line-height: 1;
    color: #ff3333; /* Robijnrood voor de CIJFERS */
}

.tijd-eenheid .label {
    /* De labels weer expliciet wit maken (overrulet .tijd-eenheid span) */
    font-size: 1.2em;
    margin-top: 5px;
    color: white; /* Expliciet de LABELS WIT maken */
}



/* --------------------------------------------------
    STIJLEN VOOR ROUTE KNOPPEN & RESULTAAT
   -------------------------------------------------- */
.route-knoppen-container {
    display: flex;
    justify-content: center; 
    gap: 30px; 
    margin: 40px auto;
    max-width: 800px;
}

/* Definitie van een route-knop (Centrum, De Mare, De Hoef) */
.route-knop {
    background-color: #D69F39; 
    color: white;
    text-decoration: none; 
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    
    /* Maakt de knop vierkant */
    width: 25%; 
    padding-top: 25%; 
    padding-bottom: 0; 
    
    position: relative;
    cursor: pointer;
    transition: transform 0.3s;
}

.route-knop:hover {
    transform: scale(1.05); 
}

.route-knop-tekst {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Luckiest Guy', cursive;
    font-size: 2em; 
    font-weight: bold;
    line-height: 1.2;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5); 
    color: white; 
}


.route-result-flex-container {
    display: flex;
    justify-content: center; 
    align-items: flex-start; /* Standaard voor de route pagina */
    gap: 30px; 
    margin: 40px auto;
    /* VERBREEDT: Maak het geheel breder */
    max-width: 1000px; 
}

/* --------------------------------------------------
    Afbeelding/Knop Container (links)
    -------------------------------------------------- */

/* Container voor de afbeelding en de linktekst (Alleen Centrum gebruikt deze speciale maat) */
.image-text-container {
    width: 30%; /* Breedte voor de linker kolom */
    flex-shrink: 0;
    text-align: center;
}

/* Speciaal voor CENTRUM/MAPS: geeft de container de afmetingen van een route-knop */
.image-text-container.map-button-size {
    /* Neem de afmetingen van de knop over */
    width: 30%; 
    padding-top: 30%; /* Dit maakt hem in combinatie met position:relative vierkant */
    position: relative; /* Nodig voor de absolute positionering van de inhoud */
    
    /* Geef hem een achtergrond/schaduw als een knop, maar transparent */
    background-color: transparent; 
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s;
}

/* Hover effect toevoegen aan de Centrum kaart-knop */
.image-text-container.map-button-size:hover {
    transform: scale(1.05); 
}
v

/* Wrapper voor de afbeelding (STANDAARD: dit is voor De Mare/De Hoef) */
.route-image-wrapper {
    width: 100%;
    position: relative; 
    
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    
    /* STANDAARD: Witte rand voor andere kaarten */
    background-color: #ffffff; 
    padding: 5px; 
}

/* OVERRIDE voor CENTRUM/MAPS: Verwijdert witte rand, padding en box-shadow op de wrapper */
.route-image-wrapper.map-no-border {
    background-color: transparent;
    padding: 0;
    box-shadow: none; 
    
    /* Zorg dat de wrapper de hele vierkante ruimte vult */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}


/* Link om de afbeelding (de knop) */
.route-image-link {
    display: block;
    text-decoration: none;
    cursor: pointer;
    border-radius: 10px;
    overflow: hidden; 
}

/* Shadow toevoegen aan de link zelf voor de Centrum map-knop is niet meer nodig, de container heeft hem */
.image-text-container.map-button-size .route-image-link {
    /* Zorg dat de link de hele ruimte vult */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px; /* Rond de hoeken van de afbeelding af */
    box-shadow: none; /* Verwijder de schaduw hier, zit op de container */
}


.route-afbeelding {
    display: block;
    width: 100%;
    height: 100%; /* Vult de link container */
    object-fit: cover; /* Belangrijk: zorgt dat de afbeelding de vierkante vorm vult zonder vervorming */
    border-radius: 10px; /* Afbeelding rond de hoeken af */
}

/* Styling voor de Maps-tekst onder de afbeelding (losse tekst) */
.map-link-text {
    font-family: Arial, sans-serif; 
    font-size: 1.1em;
    font-weight: bold;
    color: white;
    text-align: center;
    margin-top: 10px; 
    
    /* Positioneer de tekst nu onder de vierkante knop */
    position: absolute;
    bottom: -35px; /* Schuif de tekst iets onder de knop */
    left: 50%;
    transform: translateX(-50%);
    width: 150%; /* Maak de tekst breder dan de knop als dat nodig is */
}


/* Program Details Container (NU MET DONKERE VAK TERUG) */
.details-container {
    width: 70%; /* Breedte voor de rechter kolom (standaard route) */
    margin-top: 0; 
    
    /* HERSTEL: Donkere achtergrond/padding terugzetten */
    padding: 20px; 
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparante donkere box */
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: left;
}

.details-container h3 {
    color: #D69F39; 
    font-size: 1.8em;
    margin-top: 0;
    margin-bottom: 15px;
    text-align: center; 
}

/* VEREENVOUDIGDE PARAGRAAF STYLING */
.details-container p {
    font-family: Arial, sans-serif; 
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 10px;
    color: white;
    font-weight: normal; 
    text-align: left; 
}


/* --------------------
    Bodem elementen (Huisjes/Licht/Boot)
	    -------------------- */
/* --------------------
    Sinterklaasboot Silhouet
    -------------------- */
/* --------------------
    Sinterklaasboot Silhouet
    -------------------- */
.sinterklaasboot-silhouet {
    position: fixed; /* CRUCIAAL: Blijft vast aan de onderkant van het scherm */
    
    /* PAS DEZE WAARDEN AAN VOOR DE JUISTE POSITIE EN SCHAAL */
    
    /* POSITIE: Bepaalt hoe hoog boven de bodem de boot staat. 
       De huisjes zijn 225px hoog. Een waarde van 50px zorgt dat hij mooi boven het 'water' zweeft. */
    bottom: 180px; 
    
    /* SCHAAL: Bepaalt de breedte van het silhouet. */
    width: 200px; /* Begin met 450px en pas dit aan tot de boot groot genoeg is. */
    height: auto; /* Zorgt ervoor dat de hoogte automatisch meeschaalt. */
    
    /* CENTRERING: Houdt de boot in het midden van het scherm */
    left: 51%; 
    transform: translateX(-50%); 
    
    /* Z-INDEX: Zorgt ervoor dat de boot BOVENOP de huisjes ligt (die hebben z-index 102) */
    z-index: 103; 
    
    /* Optioneel: voeg een vloeiende overgang toe als u de boot later wilt animeren */
    transition: all 1s ease-in-out; 
}

/* Verzeker dat de huisjes-strook de juiste z-index heeft */
.huisjes-strook {
    /* ... (andere stijlen) ... */
    z-index: 102;
}

.huisjes-strook {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 225px; 
    
    background-image: url('huisjes.png'); 
    background-repeat: repeat-x;
    background-size: auto 150%; 
    background-position: bottom; 
    
    z-index: 102; 
}

.licht-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 225px; 
    overflow: hidden; 
    z-index: 101; /* Ligt onder de huisjes-strook (102) */
    pointer-events: none; /* Zeer belangrijk: zorgt dat je door de container heen kunt klikken */
}

/* STYLING VOOR DE VIER AFBEELDINGSLAGEN */
.licht-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0; /* Standaard onzichtbaar */
    transition: opacity 1s ease-in-out; /* Vloeiende overgang bij aan/uit */
    background-repeat: repeat-x;
    background-size: auto 150%; 
    background-position: bottom;
}

/* KOPPEL DE AFBEELDINGEN AAN DE ID'S */
#licht-01 { background-image: url('licht_01.png'); }
#licht-02 { background-image: url('licht_02.png'); }
#licht-03 { background-image: url('licht_03.png'); }
#licht-04 { background-image: url('licht_04.png'); }

/* Deze klasse wordt door de JavaScript toegevoegd om de afbeelding zichtbaar te maken */
.active-light {
    opacity: 1;
}
}

.sinterklaasboot-silhouet {
    position: fixed; 
    bottom: 145px; 
    left: 50%; 
    transform: translateX(-45%) scale(0.6); 
    width: 350px; 
    height: auto;
    z-index: 103; 
    pointer-events: none; 
    display: block; 
}


/* --------------------
    Responsive design voor kleinere schermen
    -------------------- */
@media (max-width: 768px) {
    /* Top Navigatie */
    .top-menu { top: 15px; left: 15px; gap: 10px; }
    .top-menu a { 
        /* --- HIER AANGEPAST VOOR GROTERE TEKST (Mobiel) --- */
        font-size: 1.1em; 
    }
    
    /* Staf en Content */
    .sinterklaas-staf { height: 80px; }
    .sinterklaas-staf::after { width: 70px; height: 70px; top: 5px; right: 5px; }
    .sinterklaas-staf::before { top: 5px; right: 75px; height: 70px; width: calc(100% - 85px); }
    .content { padding-top: 80px; }
    
    /* Schuif-figuren (Mobiel) */
    .sliding-pietje, .sliding-ozosnel, .sliding-sint { 
        width: 150px; 
        left: calc(-50% + 15px); 
    }
    
    /* Aftelklok aanpassing voor mobiel */
    .aftelklok {
        gap: 15px;
    }
    .tijd-eenheid {
        padding: 10px 15px;
        min-width: 60px;
    }
    .tijd-eenheid span {
        font-size: 3em;
        color: #ff3333; /* Robijnrood voor de CIJFERS */
    }
    .tijd-eenheid .label {
        font-size: 1em;
        color: white; /* Expliciet de LABELS WIT maken */
    }
    
    /* Knoppen/Resultaat aanpassing voor mobiel */
    .route-knoppen-container, .route-result-flex-container {
        flex-direction: column; 
        gap: 15px;
        max-width: 90%;
    }
    
    /* Maakt KNOP vierkant */
    .route-knop {
        width: 100%; 
        padding: 0; 
        padding-top: 40%; 
        padding-bottom: 0;
        min-width: unset;
    }

    /* Maakt Afbeelding en Details 100% breed */
    .image-text-container, .details-container {
        width: 100%;
        min-width: unset;
    }

    /* Maak de kaart knop ook 100% breed en vierkant op mobiel */
    .image-text-container.map-button-size {
        width: 100%;
        padding-top: 40%; 
        margin-bottom: 45px; /* Ruimte voor de absolute tekst eronder */
    }
    
    /* De tekst onder de kaart knop */
    .image-text-container.map-button-size .map-link-text {
        bottom: -30px;
    }

    /* Details Container op Mobiel (herstel padding) */
    .details-container {
        padding: 15px; 
    }

    /* Mobile Promo op Mobiel (Aangepast voor de nieuwe verhoudingen op desktop) */
    .mobile-promo-placement-container {
        top: 250px; 
        right: 5%; 
        width: 250px; 
        transform: rotate(-5deg); 
    }
    
    /* Bodem elementen */
    .sinterklaasboot-silhouet { bottom: 70px; width: 250px; transform: translateX(-50%) scale(0.6); }
    .huisjes-strook, .licht-container { height: 150px; background-size: auto 150%; }
    body { padding-bottom: 150px; }
    
    /* Mobiele aanpassingen voor Stichting */
    .stichting-text-container, 
    .stichting-column-right {
        width: 100%;
    }
    .stichting-column-right {
        flex-direction: column;
        gap: 15px;
        padding: 0; /* Verwijder desktop padding */
    }
    .stichting-image-container {
        flex-grow: 0; 
        height: auto;
        padding-top: 0;
        padding-bottom: 0;
    }
}

/* --------------------------------------------------
    STIJLEN VOOR STICHTINGSPAGINA (UITLIJNING EN VERHOUDING)
   -------------------------------------------------- */

/* 1. Zorg dat de hoofd-kolommen dezelfde hoogte krijgen */
.route-result-flex-container.stichting-layout-container {
    align-items: stretch; 
}

/* 2. Tekstvak is nu 50% breed */
.stichting-text-container {
    width: 50%; /* 50-50 verhouding */
    flex-shrink: 0;
    text-align: left;
}

/* 3. Rechterkolom (Foto + Contact) is nu 50% breed */
.stichting-column-right {
    width: 50%; /* 50-50 verhouding */
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    /* Om de foto content uit te lijnen met de tekst content (die 20px padding heeft) */
    padding-top: 20px; 
    padding-bottom: 20px; 
    
    justify-content: space-between; 
    gap: 0; 
}

/* 4. De container van de foto: vult nu de beschikbare ruimte en creëert gelijke witruimte */
.stichting-image-container {
    width: 100%; 
    flex-shrink: 0;
    text-align: center;
    
    /* Creëert de gewenste gelijke witruimte boven en onder de foto */
    padding-top: 30px; 
    padding-bottom: 30px; 
    
    height: auto;
    flex-grow: 1; 
    display: flex;
    flex-direction: column;
    justify-content: flex-start; 
}

/* Zorg dat de foto-wrapper geen extra padding of schaduw van de route-stijl krijgt */
.stichting-image-wrapper {
    background-color: transparent; 
    padding: 0;
    box-shadow: none; 
    height: 100%; 
    display: flex;
    align-items: center; 
}

/* De foto zelf: groter en met schaduw */
.stichting-image-container .route-afbeelding {
    border-radius: 10px; 
    width: 100%;
    height: auto; 
    max-height: 100%; 
    object-fit: contain; 
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); 
}

/* NIEUWE CONTACT BOX STIJL */
.stichting-contact-box {
    width: 100%; 
    padding: 15px 10px;
    margin: 0; 
    font-size: 1.1em;
}

.stichting-contact-box p {
    margin: 0;
    text-align: center;
    font-weight: normal; 
    font-family: Arial, sans-serif; /* Aangepast naar het neutrale font */
    font-size: 1em; 
    display: flex; /* Gebruik flex om de tekst en het icoon netjes uit te lijnen */
    justify-content: center;
    align-items: center;
}

.stichting-contact-box #email-adres {
    /* Zorg dat de tekst en het icoon naast elkaar op één regel blijven */
    white-space: nowrap; 
}

/* Styling voor het Kopieer Icoon */
.copy-icon {
    display: inline-block;
    vertical-align: middle; /* Lijn het icoon uit met de tekst */
    margin-left: 10px;
    width: 20px; /* Grootte van het icoon */
    height: 20px; /* Grootte van het icoon */
    cursor: pointer; /* Toon aan dat het klikbaar is */
    background-image: url('copy.png'); /* Verwijzing naar het geüploade icoon */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.1s ease;
    
    /* Maak het icoon wit met een filter:
       invert(100%) draait de kleuren om, waardoor zwart wit wordt. */
    filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
}

.copy-icon:hover {
    transform: scale(1.1);
}

/* =========================================
   STYLING VOOR DATUM ONDER KLOK
   ========================================= */
.aftelklok {
    /* Zorg dat de countdown container flexibel is om de datum goed te plaatsen */
    display: flex; 
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; /* Belangrijk: zorgt ervoor dat de datum op de volgende regel komt */
}

.intocht-datum-tijd {
    /* Zorgt ervoor dat de tekst de volle breedte inneemt */
    flex-basis: 100%; 
    /* Zorgt dat de tekst na de klok-boxen wordt weergegeven */
    order: 5; 
    
    /* Lettertype en kleur aanpassen */
    font-family: 'Luckiest Guy', cursive; 
    color: white; 
    
    /* Grootte en afstand instellen */
    font-size: 1.8em; 
    margin: 20px 0 0 50px; 
    padding: 10px;
    text-align: left; 
}

/* Tip: Voor mobiele leesbaarheid (optioneel) */
@media (max-width: 600px) {
    .intocht-datum-tijd {
        font-size: 1.5em; 
    }
}