/* =====================================================================
   B4B Ledenpagina's — stijlen
   Bouwt op de theme design tokens: --green, --dark-green, Hanken Grotesk
   ===================================================================== */

/* ---- Gedeeld ---- */
.b4b-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    color: var(--green, #5FAF4D);
    text-transform: uppercase;
    margin-bottom: 6px;
}

.b4b-btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
    transition: background .15s, color .15s, border-color .15s;
}
.b4b-btn-primary {
    background: var(--green, #5FAF4D);
    color: #fff;
    border-color: var(--green, #5FAF4D);
}
.b4b-btn-primary:hover { background: var(--dark-green, #16331F); border-color: var(--dark-green, #16331F); color: #fff; }
.b4b-btn-outline {
    background: transparent;
    color: var(--dark-green, #16331F);
    border-color: var(--dark-green, #16331F);
}
.b4b-btn-outline:hover { background: var(--dark-green, #16331F); color: #fff; }
.b4b-btn-wit {
    background: #fff;
    color: var(--dark-green, #16331F);
    border-color: #fff;
    width: 100%;
    text-align: center;
    margin-top: 12px;
}
.b4b-btn-wit:hover { background: var(--dark-green, #16331F); color: #fff; }

.b4b-sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); border: 0;
}

/* ---- Ledenoverzicht ---- */
.b4b-leden-hero {
    background: var(--dark-green, #16331F);
    color: #fff;
    padding: 64px 0 48px;
}
.b4b-leden-hero__inner,
.b4b-leden-toolbar__inner,
.b4b-leden-grid-wrap,
.b4b-andere-leden__inner,
.b4b-lid-detail__boven-inner,
.b4b-lid-detail__content-wrap,
.b4b-lid-nav__inner {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}
.b4b-leden-hero__inner h1 {
    font-size: clamp(28px, 4vw, 48px);
    margin: 0 0 16px;
    color: #fff;
}
.b4b-leden-hero__inner p {
    font-size: 18px;
    color: rgba(255,255,255,.8);
    max-width: 640px;
    margin: 0;
}

.b4b-leden-toolbar {
    background: #f5f5f3;
    border-bottom: 1px solid #e2e2de;
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 10;
}
.b4b-leden-toolbar__inner {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.b4b-zoekbalk-wrap { flex: 1; min-width: 200px; }
.b4b-zoekbalk-wrap input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d0d0cc;
    border-radius: 4px;
    font-size: 15px;
    box-sizing: border-box;
}
.b4b-sort-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}
.b4b-sort-wrap select {
    padding: 9px 12px;
    border: 1px solid #d0d0cc;
    border-radius: 4px;
    font-size: 14px;
}
.b4b-leden-aantal {
    font-size: 13px;
    color: #666;
    white-space: nowrap;
}

.b4b-leden-grid-wrap { padding-top: 40px; padding-bottom: 64px; }
.b4b-leden-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
@media (max-width: 900px) { .b4b-leden-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .b4b-leden-grid { grid-template-columns: 1fr; } }

.b4b-lid-kaart {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
    transition: box-shadow .15s;
}
.b4b-lid-kaart:hover { box-shadow: 0 4px 16px rgba(0,0,0,.14); }
.b4b-lid-kaart__link { display: block; }
.b4b-lid-kaart__foto { aspect-ratio: 16/10; overflow: hidden; }
.b4b-lid-kaart__foto img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.b4b-lid-kaart:hover .b4b-lid-kaart__foto img { transform: scale(1.03); }
.b4b-lid-kaart__foto-placeholder { width: 100%; height: 100%; background: var(--dark-green, #16331F); opacity: .15; }
.b4b-lid-kaart__body { padding: 20px; }
.b4b-lid-kaart__naam { font-size: 18px; margin: 4px 0 8px; }
.b4b-lid-kaart__naam a { color: var(--dark-green, #16331F); text-decoration: none; }
.b4b-lid-kaart__naam a:hover { text-decoration: underline; }
.b4b-lid-kaart__intro { font-size: 14px; color: #555; margin: 0 0 10px; line-height: 1.5; }
.b4b-lid-kaart__meta { font-size: 13px; color: #888; margin: 0; }

.b4b-geen-resultaten { text-align: center; padding: 40px 0; color: #888; }

.b4b-leden-cta {
    background: #e8f5e1;
    padding: 64px 24px;
    text-align: center;
}
.b4b-leden-cta__inner { max-width: 600px; margin: 0 auto; }
.b4b-leden-cta__inner h2 { font-size: 32px; margin: 0 0 12px; color: var(--dark-green, #16331F); }
.b4b-leden-cta__inner p { color: #444; margin: 0 0 24px; }
.b4b-leden-cta__knoppen { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---- Detailpagina ---- */
.b4b-lid-detail__boven {
    background: var(--dark-green, #16331F);
    color: #fff;
    padding: 48px 0 40px;
}
.b4b-lid-detail__boven .b4b-breadcrumb a { color: rgba(255,255,255,.7); text-decoration: none; font-size: 14px; }
.b4b-lid-detail__boven .b4b-breadcrumb a:hover { color: #fff; }
.b4b-lid-detail__titel { font-size: clamp(26px, 4vw, 44px); margin: 8px 0 12px; color: #fff; }
.b4b-lid-detail__intro { font-size: 18px; color: rgba(255,255,255,.85); max-width: 680px; margin: 0; }

.b4b-lid-detail__hero { width: 100%; aspect-ratio: 21/9; overflow: hidden; }
.b4b-lid-detail__hero img { width: 100%; height: 100%; object-fit: cover; display: block; }

.b4b-lid-detail__content-wrap {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 48px;
    padding-top: 48px;
    padding-bottom: 64px;
    align-items: start;
}
@media (max-width: 860px) {
    .b4b-lid-detail__content-wrap {
        grid-template-columns: 1fr;
    }
    .b4b-lid-detail__zijbalk { order: -1; }
}

.b4b-lid-detail__hoofd section { margin-bottom: 48px; }
.b4b-lid-detail__hoofd section h2 { font-size: 22px; margin: 0 0 14px; color: var(--dark-green, #16331F); }

.b4b-lid-detail__ondernemer {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 28px;
    align-items: start;
}
@media (max-width: 600px) { .b4b-lid-detail__ondernemer { grid-template-columns: 1fr; } }

.b4b-lid-detail__portret img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}
.b4b-lid-detail__portret-naam { font-weight: 700; margin: 10px 0 2px; font-size: 15px; }
.b4b-lid-detail__portret-rol { font-size: 13px; color: #666; margin: 0; }

.b4b-lid-detail__foto2 { margin: 24px 0; border-radius: 4px; overflow: hidden; }
.b4b-lid-detail__foto2 img { width: 100%; display: block; }

.b4b-lid-detail__zoekvraag blockquote {
    border-left: 4px solid var(--green, #5FAF4D);
    margin: 0;
    padding: 14px 20px;
    background: #f0f9ec;
    border-radius: 0 4px 4px 0;
    font-style: italic;
    font-size: 17px;
    color: var(--dark-green, #16331F);
}

.b4b-lid-detail__contactblok {
    background: #e8f5e1;
    border-radius: 6px;
    padding: 24px;
    position: sticky;
    top: 80px;
}
.b4b-contactblok-sectie { margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid rgba(0,0,0,.1); }
.b4b-contactblok-sectie:last-of-type { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.b4b-contactblok-sectie h3 { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--dark-green, #16331F); margin: 0 0 10px; }
.b4b-contactblok-naam { font-weight: 700; margin: 0 0 4px; }
.b4b-contactblok-rol { font-size: 13px; color: #666; margin: 0 0 6px; }
.b4b-contactblok-sectie p { margin: 0 0 4px; font-size: 14px; }
.b4b-contactblok-sectie a { color: var(--dark-green, #16331F); }
.b4b-contactblok-actie { margin-top: 16px; }
.b4b-contactblok-meta { font-size: 11px; color: #888; margin: 12px 0 0; text-align: center; }

.b4b-yt-wrap { position: relative; aspect-ratio: 16/9; }
.b4b-yt-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 4px; }

.b4b-lid-nav {
    background: #f5f5f3;
    border-top: 1px solid #e2e2de;
    padding: 20px 0;
}
.b4b-lid-nav__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 16px;
    align-items: center;
}
.b4b-lid-nav__vorige { text-align: left; }
.b4b-lid-nav__volgende { text-align: right; }
.b4b-lid-nav__overzicht { text-align: center; font-size: 13px; }
.b4b-lid-nav a { color: var(--dark-green, #16331F); text-decoration: none; font-size: 14px; font-weight: 600; }
.b4b-lid-nav a:hover { text-decoration: underline; }

.b4b-andere-leden { padding: 64px 0; }
.b4b-andere-leden__inner h2 { font-size: 28px; margin: 0 0 32px; color: var(--dark-green, #16331F); }

/* ---- Mijn Pagina (bewerkformulier) ---- */
.b4b-mijn-pagina { max-width: 760px; margin: 48px auto; padding: 0 24px 80px; }
.b4b-mijn-pagina h2 { font-size: 22px; color: var(--dark-green, #16331F); margin: 40px 0 16px; border-bottom: 2px solid var(--green, #5FAF4D); padding-bottom: 8px; }
.b4b-mijn-pagina h2:first-of-type { margin-top: 0; }

.b4b-msg { padding: 12px 16px; border-radius: 4px; margin-bottom: 24px; font-weight: 600; }
.b4b-msg-ok      { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.b4b-msg-concept { background: #fff3cd; color: #856404; border: 1px solid #ffc107; font-weight: normal; }
.b4b-msg-fout     { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; font-weight: normal; }
.b4b-msg-fout p   { font-weight: 600; margin: 0 0 6px; }
.b4b-msg-fout ul  { margin: 0; padding-left: 20px; }
.b4b-concept-btn { margin-left: 8px; padding: 4px 12px; font-size: 13px; font-weight: 600; border-radius: 3px; cursor: pointer; border: 1px solid currentColor; background: transparent; color: #856404; }
.b4b-concept-btn:hover { background: #856404; color: #fff; }
.b4b-concept-btn-negeer { opacity: .7; }

.b4b-gepubliceerd-link { background: #e8f5e1; padding: 10px 16px; border-radius: 4px; font-size: 14px; margin-bottom: 24px; }
.b4b-gepubliceerd-link a { color: var(--dark-green, #16331F); font-weight: 600; }
.b4b-concept-hint { background: #fff8e1; border-left: 4px solid #ffc107; padding: 10px 16px; border-radius: 0 4px 4px 0; font-size: 14px; margin-bottom: 24px; }

.b4b-hint { font-size: 14px; color: #666; margin: 0 0 20px; }
.b4b-hint-inline { font-size: 13px; color: #888; font-weight: normal; display: block; margin-top: 2px; }

.b4b-veld { margin-bottom: 20px; }
.b4b-veld label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 6px; color: var(--dark-green, #16331F); }
.b4b-veld input[type="text"],
.b4b-veld input[type="email"],
.b4b-veld input[type="url"],
.b4b-veld input[type="tel"],
.b4b-veld input[type="search"],
.b4b-veld select,
.b4b-veld textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d0d0cc;
    border-radius: 4px;
    font-size: 15px;
    box-sizing: border-box;
    font-family: inherit;
}
.b4b-veld select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath fill='%237C887F' d='M6 7L0 0h12z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; cursor: pointer; }
.b4b-veld textarea { resize: vertical; min-height: 120px; }

/* ---- Login-formulier op Mijn Pagina ---- */
.b4b-mijn-pagina #loginform {
    max-width: 420px;
    margin: 24px 0 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.b4b-mijn-pagina #loginform p {
    margin: 0;
}
.b4b-mijn-pagina #loginform label {
    display: block;
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 6px;
    color: var(--dark-green, #16331F);
}
.b4b-mijn-pagina #loginform .input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d0d0cc;
    border-radius: 4px;
    font-size: 15px;
    box-sizing: border-box;
    font-family: inherit;
}
.b4b-mijn-pagina #loginform .input:focus {
    outline: none;
    border-color: var(--green, #5FAF4D);
    box-shadow: 0 0 0 2px rgba(95,175,77,.15);
}
.b4b-mijn-pagina #loginform .login-remember label {
    font-weight: normal;
    display: flex;
    align-items: center;
    gap: 6px;
}
.b4b-mijn-pagina #loginform #wp-submit {
    width: 100%;
    padding: 12px 24px;
    background: var(--green, #5FAF4D);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: background .15s;
}
.b4b-mijn-pagina #loginform #wp-submit:hover {
    background: var(--dark-green, #16331F);
}

/* Rich text toolbar + contenteditable veld */
.b4b-richtext-toolbar {
    display: flex;
    gap: 4px;
    margin-bottom: 4px;
}
.b4b-rt-btn {
    padding: 4px 10px;
    border: 1px solid #d0d0cc;
    border-radius: 3px;
    background: #f8f8f7;
    font-size: 14px;
    cursor: pointer;
    line-height: 1.4;
    color: var(--dark-green, #16331F);
}
.b4b-rt-btn:hover { background: #e8e8e4; border-color: #aaa; }
.b4b-richtext-veld {
    width: 100%;
    min-height: 140px;
    padding: 10px 14px;
    border: 1px solid #d0d0cc;
    border-radius: 4px;
    font-size: 15px;
    font-family: inherit;
    box-sizing: border-box;
    outline: none;
    line-height: 1.6;
}
.b4b-richtext-veld:focus { border-color: var(--green, #5FAF4D); box-shadow: 0 0 0 2px rgba(95,175,77,.15); }
.b4b-richtext-veld h3 { font-size: 17px; font-weight: 700; margin: 12px 0 4px; color: var(--dark-green, #16331F); }

.b4b-teller-wrap { position: relative; }
.b4b-teller {
    display: block;
    text-align: right;
    font-size: 12px;
    color: #888;
    margin-top: 4px;
}
.b4b-teller.oranje { color: #b8650a; font-weight: 600; }
.b4b-teller.rood   { color: #b32d2e; font-weight: 700; }

.b4b-foto-veld {}
.b4b-foto-preview { margin-bottom: 10px; }
.b4b-foto-preview img { max-width: 200px; max-height: 120px; object-fit: cover; border-radius: 4px; display: block; margin-bottom: 6px; }
.b4b-foto-verwijder { font-size: 13px; color: #b32d2e; font-weight: normal; cursor: pointer; }
.b4b-foto-verwijder input { margin-right: 4px; }

.b4b-profiel-form .b4b-submit { margin-top: 32px; }

/* Logo-preview (breder dan portret/bedrijfsfoto) */
.b4b-logo-preview img { max-width: 240px; max-height: 80px; object-fit: contain; }

/* Admin: branches checkboxes */
.b4b-branches-grid { display: flex; flex-wrap: wrap; gap: 6px 20px; }

.b4b-login-vergeten { margin-top: 8px; font-size: 13px; text-align: center; }
.b4b-login-vergeten a { color: #5FAF4D; text-decoration: none; }
.b4b-login-vergeten a:hover { text-decoration: underline; }
