/* =============================================
   Tellerblok — styling
   Pad: /css/tellerblok.css
   ============================================= */

.tellerblok {
    /* background-color: var(--kleur-accent, #1a3a6b);  */
    padding: 60px 20px;
    width: 100%;
    font-family: 'Arvo', serif;
    box-sizing: border-box;
}

.tellerblok__inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 40px 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.tellerblok__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 140px;
}

/* Scheidingslijn tussen items (niet na laatste) */
.tellerblok__item + .tellerblok__item {
    position: relative;
}

.tellerblok__item + .tellerblok__item::before {
    content: '';
    position: absolute;
    left: -30px;
    top: 10%;
    height: 80%;
    width: 1px;
    background-color: rgba(255, 255, 255, 0.25);
}

/* Getal */
.tellerblok__getal {
    display: block;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.1;
    letter-spacing: -0.02em;
    transition: color 0.2s;
}

/* Titel onder het getal */
.tellerblok__titel {
    display: block;
    margin-top: 8px;
    font-size: clamp(0.85rem, 1.5vw, 1rem);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Animatie: fade-in bij zichtbaar worden */
.tellerblok__item {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.tellerblok.is-visible .tellerblok__item {
    opacity: 1;
    transform: translateY(0);
}

/* Vertraag elk item iets */
.tellerblok.is-visible .tellerblok__item:nth-child(1) { transition-delay: 0s; }
.tellerblok.is-visible .tellerblok__item:nth-child(2) { transition-delay: 0.1s; }
.tellerblok.is-visible .tellerblok__item:nth-child(3) { transition-delay: 0.2s; }
.tellerblok.is-visible .tellerblok__item:nth-child(4) { transition-delay: 0.3s; }
.tellerblok.is-visible .tellerblok__item:nth-child(5) { transition-delay: 0.4s; }
.tellerblok.is-visible .tellerblok__item:nth-child(6) { transition-delay: 0.5s; }

/* ---- Responsive ---- */
@media (max-width: 600px) {
    .tellerblok__inner {
        gap: 32px 40px;
        flex-direction: column;
        align-content: center;
        align-items: center;
    }

    /* Verberg de verticale scheidingslijnen op mobiel */
    .tellerblok__item + .tellerblok__item::before {
        display: none;
    }

    .tellerblok__item {
        min-width: 100px;
        flex: 1 1 calc(50% - 40px);
    }
}
