/* ── TNS Herken — Stappenplan (v2.0) ─────────────────────────────────────── */
/* version: 2.0.0 */

.tns-herken {
    background: #F5F2ED;
    /* padding via inline style (instelbaar in de editor) */
}

.tns-herken__wrap {
    max-width: 1340px;
    margin: 0 auto;
    padding: 0 clamp(24px, 5vw, 64px);
}

/* ── Header ── */
.tns-herken__header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 56px;
}

.tns-herken__eyebrow {
    font-family: var(--tns-font-body);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #BFA46A;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tns-herken__eyebrow::before {
    content: '';
    display: block;
    width: 28px;
    height: 2px;
    background: #BFA46A;
    flex-shrink: 0;
}

.tns-herken__title {
    font-family: var(--tns-font-heading);
    font-size: clamp(2rem, 3.2vw, 3rem);
    font-weight: 700;
    color: #102F49;
    line-height: 1.15;
    margin: 0;
}

.tns-herken__title em {
    font-style: normal;
    color: #BFA46A;
}

.tns-herken__subtitle {
    font-family: var(--tns-font-body);
    font-size: clamp(15px, 1.3vw, 18px);
    color: var(--tns-subtekst, #102F49);
    line-height: 1.65;
    margin: 0;
    text-align: center;
}

/* ── Timeline-rij: doorlopende lijn + chevrons ── */
.tns-herken__timeline {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
    position: relative;
}

/* Doorlopende gouden lijn van cirkel tot cirkel — losstaan van kaartbreedte */
.tns-herken__timeline::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 19px;  /* midden van eerste cirkel (38px / 2) */
    right: 19px; /* midden van laatste cirkel */
    height: 1.5px;
    background: #BFA46A;
    opacity: 0.65;
    transform: translateY(-50%);
    z-index: 0;
}

.tns-herken__tl-num {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

.tns-herken__tl-num-inner {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #BFA46A;
    color: #ffffff;
    font-family: var(--tns-font-heading);
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ── Separator: alleen de chevron, gecentreerd in de gap ── */
.tns-herken__step-sep {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 20px;
    position: relative;
    z-index: 1;
}

.tns-herken__sep-line { display: none; }

.tns-herken__sep-chevron {
    width: 16px;
    height: 16px;
    color: #BFA46A;
    flex-shrink: 0;
    background: #F5F2ED; /* paginaachtergrond — dekt de lijn af achter de chevron */
    padding: 0 1px;
}

/* ── Kaarten-rij: kleine gap = separator-breedte ── */
.tns-herken__cards {
    display: flex;
    gap: 20px;
    align-items: stretch;
}

/* ── Kaart ── */
.tns-herken__card {
    flex: 1;
    min-width: 0;
    background: #ffffff;
    border-radius: 10px;
    overflow: visible;
    border: 0.5px solid rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.tns-herken__card:hover { transform: translateY(-4px); }

.tns-herken__card-photo {
    position: relative;
    padding-bottom: 65%;
    border-radius: 10px 10px 0 0;
    overflow: visible;  /* icon-ring hangt eronder — niet clippen */
    background: #7C8C6E;
}

.tns-herken__card-photo--empty { background: #8a9b7a; }

.tns-herken__card-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 10px 10px 0 0; /* eigen border-radius zodat afbeelding afgerond blijft */
}

/* ── Icoon-ring op foto-grens ── */
.tns-herken__card-icon {
    position: absolute;
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #102F49;
    border: 3px solid #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: transform 0.35s cubic-bezier(.34,1.56,.64,1);
}

.tns-herken__card:hover .tns-herken__card-icon {
    transform: translateX(-50%) translateY(-4px) scale(1.1);
}

.tns-herken__card-icon svg {
    width: 22px;
    height: 22px;
    stroke: #BFA46A;
    stroke-width: 1;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

/* ── Kaart body ── */
.tns-herken__card-body {
    padding: 36px 20px 24px;
    text-align: center;
    flex: 1; /* groeit mee zodat alle kaarten gelijke hoogte krijgen */
}

.tns-herken__card-title {
    font-family: var(--tns-font-heading);
    font-size: clamp(14px, 1.2vw, 17px);
    font-weight: 700;
    color: #102F49;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.3;
    margin: 0 0 10px;
}

.tns-herken__card-text {
    font-family: var(--tns-font-body);
    font-size: 14px;
    color: var(--tns-grijs, #414246);
    line-height: 1.6;
    margin: 0;
}

/* ── Goud streepje onder icoon (hover-animatie) ── */
.tns-herken__card-icon::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #BFA46A;
    transition: width 0.3s ease;
}

.tns-herken__card:hover .tns-herken__card-icon::after { width: 28px; }

/* ── CTA ── */
.tns-herken__cta-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    margin-top: 52px;
    flex-wrap: wrap;
}

.tns-herken__cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #BFA46A;
    color: #ffffff;
    font-family: var(--tns-font-body);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 50px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
}

.tns-herken__cta-btn:hover {
    background: #a8905c;
    transform: translateY(-2px);
}

.tns-herken__cta-sec {
    font-family: var(--tns-font-body);
    font-size: 14px;
    font-weight: 600;
    color: #102F49;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s;
}

.tns-herken__cta-sec:hover { opacity: 0.7; }

/* ── Responsive ── */
@media (max-width: 1024px) {
    .tns-herken__header { gap: 32px; }
    .tns-herken__sep-chevron { width: 14px; height: 14px; }
}

/* Nummerbadge per kaart — alleen op mobiel in beeld */
.tns-herken__card-num { display: none; }

/* ══════════════════════════════════════════════════════
   MOBIEL (≤767px)
   De oude regels hier richtten zich op .tns-herken__steps en
   .tns-herken__step-num; die klassen staan niet meer in de render,
   waardoor de kaarten naast elkaar bleven staan.
   ══════════════════════════════════════════════════════ */
@media (max-width: 767px) {
    .tns-herken__header {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 28px;
        text-align: center;
    }
    .tns-herken__eyebrow { justify-content: center; }
    .tns-herken__subtitle { text-align: center; }

    /* De horizontale tijdlijn kan niet uitlijnen met gestapelde kaarten;
       de nummers verhuizen naar de kaarten zelf. */
    .tns-herken__timeline { display: none; }
    .tns-herken__card-num {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 10px;
        left: 10px;
        z-index: 3;
        width: 26px;
        height: 26px;
        border-radius: 50%;
        background: #102F49;
        color: #ffffff;
        font-family: 'Hind', sans-serif;
        font-size: 13px;
        font-weight: 700;
        line-height: 1;
        box-shadow: 0 2px 8px rgba(16,47,73,0.28);
    }

    .tns-herken__card {
        position: relative;
        transform: none !important;
    }
    .tns-herken__card:hover { transform: none; }

    /* ── Lijst: kaarten onder elkaar, foto links ── */
    .tns-herken--m-list .tns-herken__cards {
        display: flex;
        flex-direction: column;
        gap: 14px;
    }
    .tns-herken--m-list .tns-herken__card {
        flex-direction: row;
        align-items: stretch;
        overflow: hidden;
    }
    .tns-herken--m-list .tns-herken__card-photo {
        width: 108px;
        flex-shrink: 0;
        padding-bottom: 0;
        border-radius: 10px 0 0 10px;
        align-self: stretch;
        min-height: 108px;
    }
    .tns-herken--m-list .tns-herken__card-photo img {
        border-radius: 10px 0 0 10px;
    }
    /* Icoon-ring op de naad tussen foto en tekst */
    .tns-herken--m-list .tns-herken__card-icon {
        bottom: auto;
        top: 50%;
        left: auto;
        right: -18px;
        width: 36px;
        height: 36px;
        border-width: 2px;
        transform: translateY(-50%);
    }
    .tns-herken--m-list .tns-herken__card:hover .tns-herken__card-icon {
        transform: translateY(-50%);
    }
    .tns-herken--m-list .tns-herken__card-icon svg { width: 18px; height: 18px; }
    .tns-herken--m-list .tns-herken__card-body {
        padding: 14px 16px 14px 30px;
        text-align: left;
    }
    .tns-herken--m-list .tns-herken__card-num { top: 8px; left: 8px; width: 24px; height: 24px; font-size: 12px; }

    /* ── Twee kolommen: compacte tegels, foto boven ── */
    .tns-herken--m-cols2 .tns-herken__cards {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .tns-herken--m-cols2 .tns-herken__card {
        flex-direction: column;
    }
    .tns-herken--m-cols2 .tns-herken__card-photo {
        padding-bottom: 70%;
        border-radius: 10px 10px 0 0;
    }
    .tns-herken--m-cols2 .tns-herken__card-icon {
        width: 32px;
        height: 32px;
        bottom: -16px;
        border-width: 2px;
    }
    .tns-herken--m-cols2 .tns-herken__card-icon svg { width: 16px; height: 16px; }
    .tns-herken--m-cols2 .tns-herken__card-body {
        padding: 24px 12px 16px;
        text-align: center;
    }
    .tns-herken--m-cols2 .tns-herken__card-title { font-size: 13px; }
    .tns-herken--m-cols2 .tns-herken__card-text  { font-size: 12px; line-height: 1.5; }
    .tns-herken--m-cols2 .tns-herken__card-link  { font-size: 11px; margin-top: 8px; }

    /* Gedeeld */
    .tns-herken__card-title { font-size: 14px; margin-bottom: 6px; }
    .tns-herken__card-text  { font-size: 13px; line-height: 1.55; }

    .tns-herken__cta-wrap {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        margin-top: 28px;
    }
    .tns-herken__cta-btn { justify-content: center; text-align: center; }
    .tns-herken__cta-sec { text-align: center; }
}

/* Onder 380px zijn twee tegels te krap: terug naar de lijst */
@media (max-width: 380px) {
    .tns-herken--m-cols2 .tns-herken__cards { grid-template-columns: 1fr; }
}

/* ── Optionele uitschakelbaar: nummers en/of pijlen ── */
.tns-herken--no-numbers .tns-herken__tl-num-inner { display: none; }
.tns-herken--no-arrows  .tns-herken__step-sep     { display: none; }
.tns-herken--no-arrows  .tns-herken__timeline::before { display: none; }

/* Beide uit → verberg hele timeline-rij */
.tns-herken--no-numbers.tns-herken--no-arrows .tns-herken__timeline { display: none; }

/* Alleen nummers, geen pijlen → verbindingslijn verbergen */
.tns-herken__timeline--no-line::before { display: none; }

/* Gouden link onderaan een kaart (per item via linkUrl/linkLabel) */
.tns-herken__card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    font-family: 'Hind', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #BFA46A;
    text-decoration: none;
    transition: gap .2s;
}
.tns-herken__card-link:hover {
    color: #cfb47a;
    gap: 10px;
}
