/* Algemene stijlen en reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', sans-serif;
    background-color: #f7f9fc;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Header stijlen */
header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem;
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-bottom: 5px solid #FF9900;
}

h1 {
    font-family: 'Fredoka One', cursive;
    color: #FF6B6B;
    font-size: 3rem;
    margin-bottom: 1rem;
}

h2 {
    font-family: 'Fredoka One', cursive;
    color: #4ECDC4;
    font-size: 2rem;
    margin-bottom: 1rem;
}

h3 {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    color: #333;
}

h4 {
    color: #FF9900;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.2rem;
    color: #666;
}

/* Intro sectie */
.intro {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 2rem;
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.intro-text {
    flex: 1;
    min-width: 300px;
}

.intro-image {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.intro-image img {
    max-width: 100%;
    border-radius: 15px;
    border: 5px solid #4ECDC4;
}

/* Info sectie (voor de nieuwe blokken) */
.info-section {
    margin-bottom: 2rem;
    padding: 2rem;
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.info-section h2 {
    font-family: 'Fredoka One', cursive;
    color: #4ECDC4;
    font-size: 1.8rem; /* Iets kleiner dan de hoofd H2 voor hiërarchie */
    margin-bottom: 1rem;
}

.info-section h3 {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    color: #FF6B6B; /* Andere kleur voor subkopjes in info sectie */
    font-size: 1.3rem;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
}

.info-section p {
    margin-bottom: 0.8rem;
    line-height: 1.7;
}

.info-section ul {
    list-style-type: none;
    margin-left: 1rem; /* Een beetje inspringen voor de lijst */
    padding-left: 0;
}

.info-section li {
    margin-bottom: 0.6rem;
    position: relative;
    padding-left: 1.8rem; /* Ruimte voor een custom bullet */
}

.info-section li::before {
    content: "\f138"; /* FontAwesome icoon (bijv. hand-point-right) */
    font-family: "Font Awesome 6 Free"; 
    font-weight: 900;
    color: #FF9900; /* Oranje voor de bullets */
    position: absolute;
    left: 0;
    top: 0.1em;
    font-size: 1.1rem;
}

.info-section li strong {
    color: #333; /* Donkerder kleur voor de strong tekst */
}

/* Instructies */
.instructions {
    margin-bottom: 2rem;
    padding: 2rem;
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.instructions ul {
    list-style-type: none;
    margin-left: 1rem;
}

.instructions li {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.instructions i {
    color: #4ECDC4;
    margin-right: 0.5rem;
}

/* Ladder container */
.ladder-container {
    margin-bottom: 3rem;
}

.ladder-title {
    text-align: center;
    margin-bottom: 2rem;
}

/* Ladder stijlen */
.ladder {
    position: relative;
    padding: 0 40px;
    margin: 0 auto;
    max-width: 900px;
}

.ladder-left-side, .ladder-right-side {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 20px;
    background-color: #FF9900;
    border-radius: 10px;
}

.ladder-left-side {
    left: 0;
}

.ladder-right-side {
    right: 0;
}

/* Stap stijlen */
.ladder-step {
    margin-bottom: 15px;
}

.step-rung {
    background-color: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-left: 15px solid #4ECDC4;
    transition: all 0.3s ease;
}

.step-rung:hover {
    transform: translateX(5px);
}

.step-header {
    display: flex;
    align-items: center;
    padding: 1rem;
    cursor: pointer;
    background-color: #f0f7ff;
    position: relative;
}

.step-number {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: #FF6B6B;
    color: white;
    font-family: 'Fredoka One', cursive;
    font-size: 1.5rem;
    border-radius: 50%;
    margin-right: 1rem;
}

.step-header h3 {
    flex-grow: 1;
    font-size: 1.3rem;
}

.step-header i {
    font-size: 1.5rem;
    color: #666;
    transition: transform 0.3s ease;
}

.step-header.active i {
    transform: rotate(180deg);
}

.step-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.step-content.active {
    max-height: 2000px;
}

.step-info {
    display: flex;
    flex-wrap: wrap;
    padding: 1.5rem;
    gap: 2rem;
    background-color: #fff;
}

.step-description {
    flex: 2;
    min-width: 300px;
}

.step-description ul {
    list-style-type: none;
    margin-left: 1rem;
}

.step-description li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.step-description li:before {
    content: "•";
    color: #FF9900;
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -0.3rem;
}

.step-video {
    flex: 1;
    min-width: 300px;
}

.video-placeholder {
    background-color: #f0f0f0;
    height: auto;
    min-height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.video-placeholder img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: contain;
}

/* Footer stijlen */
footer {
    text-align: center;
    padding: 2rem;
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 3rem auto 0;
    border-top: 5px solid #4ECDC4;
    clear: both;
    max-width: 900px;
    width: 100%;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
}

.footer-links a:hover {
    color: #FF6B6B;
}

.footer-links i {
    margin-right: 0.5rem;
}

/* Animaties voor interactiviteit */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-10px);}
    60% {transform: translateY(-5px);}
}

.bounce {
    animation: bounce 2s infinite;
}

/* Actieve stap stijlen */
.step-rung.active {
    border-left-color: #FF6B6B;
    transform: translateX(10px);
}

/* Voortgang indicatoren */
.progress-indicator {
    position: absolute;
    left: -50px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.progress-dot {
    width: 12px;
    height: 12px;
    background-color: #ddd;
    border-radius: 50%;
}

.progress-dot.completed {
    background-color: #4ECDC4;
}

.progress-dot.current {
    background-color: #FF6B6B;
    box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.2);
}

/* Welkomstbericht voor directe linkbezoekers */
.welcome-message {
    animation: fadeIn 0.5s ease;
}

.welcome-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.welcome-content h3 {
    color: #FF6B6B;
    margin-bottom: 0.5rem;
}

.welcome-content p {
    margin-bottom: 0.5rem;
}

.welcome-close {
    margin-top: 0.5rem;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translate(-50%, -40%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}

/* Confetti animatie */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
    overflow: hidden;
}

.confetti {
    position: absolute;
    top: -10px;
    will-change: transform;
    border-radius: 50%;
    animation: confettiFall 3s ease-in infinite;
}

@keyframes confettiFall {
    0% {
        transform: translateY(-10px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

.congrats-message {
    animation: bounceIn 0.5s ease;
}

@keyframes bounceIn {
    0% { 
        transform: translate(-50%, -40%) scale(0.8); 
        opacity: 0; 
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.1); 
    }
    100% { 
        transform: translate(-50%, -50%) scale(1); 
        opacity: 1; 
    }
}

/* Touch-specifieke stijlen */
.touch-device .step-header:hover {
    background-color: inherit; /* Verwijder hover effecten op touch devices */
}

.touch-device .step-header.touch-active {
    background-color: #e6f2ff; /* Vervang hover met active state voor touch */
}

.touch-device .step-header.touch-active .step-number {
    transform: scale(1.1);
}

.touch-device .btn.touch-active {
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

/* Extra ruimte tussen klikbare elementen op touch devices */
.touch-device .step-description li {
    margin-bottom: 0.8rem;
}

.touch-device .footer-links {
    gap: 2.5rem;
}

/* Verbeter scrolling op iOS */
.touch-device * {
    -webkit-tap-highlight-color: transparent;
}

/* Verschillende kleuren voor verschillende stappen */
#stap-1 .step-number { background-color: #FF6B6B; }
#stap-2 .step-number { background-color: #FF9900; }
#stap-3 .step-number { background-color: #FFC300; }
#stap-4 .step-number { background-color: #FFD700; }
#stap-5 .step-number { background-color: #68D391; }
#stap-6 .step-number { background-color: #4ECDC4; }
#stap-7 .step-number { background-color: #38B2AC; }
#stap-8 .step-number { background-color: #0BC5EA; }
#stap-9 .step-number { background-color: #3182CE; }

/* Kleurrijke achtergrond elementen */
.bg-shape {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    opacity: 0.1;
}

.bg-shape-1 {
    width: 300px;
    height: 300px;
    background-color: #FF6B6B;
    top: 100px;
    left: 5%;
}

.bg-shape-2 {
    width: 200px;
    height: 200px;
    background-color: #4ECDC4;
    top: 400px;
    right: 10%;
}

.bg-shape-3 {
    width: 250px;
    height: 250px;
    background-color: #FFD700;
    bottom: 200px;
    left: 15%;
}

/* Responsieve stijlen voor mobiele apparaten */
@media (max-width: 768px) {
    .container {
        padding: 1rem 0.8rem;
        max-width: 100%;
    }
    
    header {
        padding: 1.5rem 1rem;
        margin-bottom: 1.5rem;
    }
    
    h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    h3 {
        font-size: 1.2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .intro, .instructions, .info-section, .download-section { /* download-section ook toevoegen */
        padding: 1.2rem;
        margin-bottom: 1.5rem;
    }
    
    .intro-text, .intro-image {
        flex: 100%;
    }
    
    .intro-image img {
        max-width: 90%;
        margin: 0 auto;
        display: block;
    }
    
    .ladder {
        padding: 0 25px;
    }
    
    .ladder-title {
        margin-bottom: 1.2rem;
    }
    
    .ladder-left-side, .ladder-right-side {
        width: 12px;
    }
    
    .step-header {
        padding: 0.8rem;
    }
    
    .step-header h3 {
        font-size: 1rem;
        line-height: 1.3;
        padding-right: 0.5rem;
    }
    
    .step-number {
        width: 32px;
        height: 32px;
        font-size: 1.1rem;
        min-width: 32px;
        margin-right: 0.5rem;
    }
    
    .step-info {
        padding: 1rem;
        gap: 1rem;
    }
    
    .step-description, .step-video {
        flex: 100%;
        min-width: 100%;
    }
    
    .step-video {
        order: -1; /* Plaats video boven de beschrijving op mobiel */
    }
    
    .video-placeholder {
        height: auto;
        min-height: 150px;
        max-height: none;
    }
    
    .video-placeholder img {
        max-width: 100%;
        height: auto;
        margin: 0 auto;
    }
    
    /* Verbeterde voortgang indicator voor mobiel */
    .progress-indicator {
        left: -35px;
    }
    
    .progress-dot {
        width: 10px;
        height: 10px;
    }
    
    /* Verbeterde footer voor mobiel */
    footer {
        padding: 1.5rem 1rem;
        margin: 2rem auto 70px;
        max-width: 95%;
    }
    
    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    /* Scroll naar boven knop groter voor touch devices */
    .scroll-top-btn {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
        bottom: 15px;
        right: 15px;
    }
    
    /* Zorg ervoor dat treden beter zichtbaar zijn op mobiel */
    .step-rung {
        border-left-width: 10px;
    }
    
    .step-rung:hover {
        transform: translateX(3px);
    }
    
    .step-rung.active {
        transform: translateX(5px);
    }
    
    /* Aanpassing voor achtergrondvormen op mobiel */
    .bg-shape {
        opacity: 0.07;
    }
    
    .bg-shape-1 {
        width: 200px;
        height: 200px;
    }
    
    .bg-shape-2 {
        width: 150px;
        height: 150px;
    }
    
    .bg-shape-3 {
        width: 180px;
        height: 180px;
    }
    
    /* Mobiele navigator */
    .mobile-navigator {
        display: flex;
    }
    
    .nav-btn {
        background-color: transparent;
        border: none;
        color: #4ECDC4;
        font-size: 1.2rem;
        padding: 0.5rem;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .nav-btn:hover, .nav-btn:focus {
        color: #FF6B6B;
        transform: scale(1.1);
    }
    
    .current-step {
        font-weight: bold;
        color: #333;
        padding: 0 0.8rem;
    }

    .info-section h2 {
        font-size: 1.5rem;
    }

    .info-section h3 {
        font-size: 1.2rem;
    }

    .info-section li {
        padding-left: 1.5rem;
    }

    .info-section li::before {
        font-size: 1rem;
    }

    .download-section h3 {
        font-size: 1.6rem;
    }

    .download-section h4 {
        font-size: 1.2rem;
    }

    .btn-download-main {
        font-size: 1rem;
        padding: 0.7rem 1.2rem;
    }

    .pictogram-grid {
        grid-template-columns: repeat(3, 1fr); /* Houd 3 kolommen voor tablet */
        gap: 1rem;
    }

    .pictogram-item img {
        width: 80px;
        height: 80px;
    }
}

/* Extra mobiele optimalisaties */
@media (max-width: 480px) {
    .video-placeholder {
        background-color: transparent;
        border: none;
        height: auto;
        min-height: auto;
    }
    
    .video-placeholder img {
        border: 2px solid #eee;
    }
    
    .step-description p, .step-description li {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .step-header {
        padding: 0.6rem;
    }
    
    .step-header, .nav-btn, .btn {
        min-height: 44px; /* Apple's richtlijn voor minimum tapgrootte */
    }
    
    .scroll-top-btn {
        padding: 1rem;
        width: 50px;
        height: 50px;
    }
    
    .ladder-container {
        padding-bottom: 60px;
    }
    
    h4 i {
        font-size: 1.1rem;
    }
    
    .ladder-left-side, .ladder-right-side {
        width: 8px;
    }

    .info-section p,
    .info-section li {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .pictogram-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 kolommen op zeer kleine schermen, of 3 als ze passen */
        gap: 0.8rem;
    }

    .pictogram-item {
        padding: 0.5rem;
    }

    .pictogram-item img {
        width: 70px;
        height: 70px;
    }

    .pictogram-item span {
        font-size: 0.75rem;
    }
}

/* Download sectie */
.download-section {
    margin-bottom: 2rem;
    padding: 2rem;
    background-color: #f0f7ff; /* Lichtblauwe achtergrond voor contrast */
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.download-section h3 {
    font-family: 'Fredoka One', cursive;
    color: #FF6B6B;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.download-section h3 i {
    margin-right: 0.5rem;
}

.download-section h4 {
    color: #4ECDC4; /* Consistent met andere subkopjes */
    font-size: 1.3rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.btn-download-main {
    display: inline-block;
    background-color: #FF9900;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 1rem; /* Ruimte onder de hoofd download knop */
}

.btn-download-main:hover {
    background-color: #e68a00;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.pictogram-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

.pictogram-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
    padding: 0.8rem;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    transition: all 0.3s ease;
    flex: 0 1 130px;
}

.pictogram-item:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    color: #FF6B6B;
}

.pictogram-item img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    border: 2px solid #eee;
}

.pictogram-item span {
    font-size: 0.85rem;
    text-align: center;
    font-weight: 600;
}

@media (max-width: 768px) {
    .pictogram-grid {
        max-width: 450px;
        gap: 1rem;
    }

    .pictogram-item {
        flex-basis: 120px;
    }

    .pictogram-item img {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 480px) {
    .pictogram-grid {
        max-width: 300px;
        gap: 0.8rem;
    }

    .pictogram-item {
        flex-basis: 110px;
    }

    .pictogram-item img {
        width: 110px;
        height: 110px;
    }
}

/* Scroll-to-top knop */
.scroll-top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px; 
    height: 50px;
    border-radius: 50%; /* Maakt de knop rond */
    background-color: #FF6B6B; /* Thema kleur (rood-roze) */
    color: white;
    border: none;
    font-size: 1.5rem; /* Grootte van het pijlicoon */
    display: flex; /* Om icoon te centreren */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 1000; /* Zorgt dat het boven andere elementen staat */
}

.scroll-top-btn:hover {
    background-color: #e05252; /* Donkerdere tint bij hover */
    transform: translateY(-3px) scale(1.05); /* Lichte lift en zoom bij hover */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Aanpassingen voor mobiel indien nodig (huidige knop is al redelijk groot) */
@media (max-width: 768px) {
    .scroll-top-btn {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
        bottom: 15px;
        right: 15px;
    }
}