/* ==========================================================================
   Kennisbank-overzicht (/kennisbank/)
   Kop met filter + zoeken, uitgelicht artikel, raster, lege staat, CTA-band.
   Gedeelde onderdelen (chips, kaarten, .kt-thumbnails, .band) staan in main.css.
   ========================================================================== */

/* ---- Kop ------------------------------------------------------------------ */
.kb-kop { display: flex; flex-direction: column; gap: 40px; padding-top: 80px; padding-bottom: 48px; }
.kb-kop__rij { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: flex-end; }
.kb-titel { font-size: clamp(56px, 9vw, 140px); line-height: .92; letter-spacing: -.06em; color: var(--c-black); }
.kb-intro { font-size: 19px; line-height: 1.6; max-width: 420px; }

/* Filters + zoekveld */
.kb-filter { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
.kb-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.kb-zoek { position: relative; flex: 0 1 360px; display: flex; }
.kb-zoek__ic { position: absolute; left: 20px; top: 17px; color: var(--c-muted); pointer-events: none; transition: color .4s var(--ease); }
.kb-zoek:focus-within .kb-zoek__ic { color: var(--c-blue); }
.kb-zoek__in { padding-left: 52px; }
.kb-zoek__in::-webkit-search-cancel-button { cursor: pointer; }

/* ---- Uitgelicht artikel --------------------------------------------------- */
.kb-uit-sec { padding-bottom: 64px; }
.kb-uit-sec[hidden] { display: none; }
.card.kb-uit { flex-direction: row; flex-wrap: wrap; gap: 40px; align-items: center; padding: 24px; border-radius: 36px; background: var(--c-light); }
.kb-uit__beeld { flex: 1.2 1 min(420px, 100%); aspect-ratio: 16 / 10; }
.kb-uit__txt { flex: 1 1 min(360px, 100%); display: flex; flex-direction: column; gap: 18px; padding: 16px 24px 16px 0; min-width: 0; }
.kb-uit__pil { align-self: flex-start; font-size: 13px; font-weight: 600; line-height: 1.2; padding: 6px 12px; border-radius: var(--r-pill); background: #fff; color: var(--c-blue-hover); }
.card .kb-uit__ttl { font-size: clamp(30px, 3vw, 44px); line-height: 1.08; letter-spacing: -.035em; }
.kb-uit__sub { font-size: 17px; line-height: 1.6; }
.card .kb-uit__go { width: 56px; height: 56px; background: #fff; }

/* ---- Raster + lege staat --------------------------------------------------- */
.kb-lijst { padding-bottom: 120px; }
.kb-lijst [data-cat][hidden] { display: none; }

.kb-leeg { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 72px 24px 80px; border-radius: 36px; background: var(--c-light); animation: fd .7s var(--ease) both; }
.kb-leeg[hidden] { display: none; }
.kb-leeg__ic { width: 64px; height: 64px; margin-bottom: 8px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--c-blue); animation: kb-zoek 2.4s ease-in-out infinite alternate; }
@keyframes kb-zoek { from { transform: translateX(-6px) rotate(-8deg); } to { transform: translateX(6px) rotate(8deg); } }
.kb-leeg__kop { font-size: 26px; font-weight: 700; line-height: 1.2; letter-spacing: -.02em; color: var(--c-black); }
.kb-leeg__knop { margin-top: 12px; }

/* ---- CTA-band --------------------------------------------------------------- */
.kb-cta-sec { padding-bottom: 120px; }
.kb-band { gap: 40px; }
.kb-band__txt { max-width: 560px; }
.kb-band h2 { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.05; }
.kb-band__vorm { position: absolute; right: 8%; top: -60px; width: 180px; height: 240px; border-radius: 18px; background: rgba(255, 255, 255, .14); transform: rotate(8deg); transition: transform 1s var(--ease); pointer-events: none; }
.kb-band:hover .kb-band__vorm { transform: rotate(-20deg) translateY(20px); }
/* Witte knop met blauwe vulling bij hover (zoals in het design van deze pagina) */
.kb-btn-w::before { background: var(--c-blue); }
.kb-btn-w:hover { color: #fff; border-color: var(--c-blue); }

/* ---- Responsive ------------------------------------------------------------- */
@media (max-width: 960px) {
  .kb-zoek { flex: 1 1 100%; }
}
@media (max-width: 760px) {
  .kb-kop { gap: 28px; padding-top: 48px; padding-bottom: 36px; }
  .kb-kop__rij { gap: 16px; }
  .kb-intro { font-size: 17px; }
  .kb-chips { gap: 8px; }
  .kb-chips .chip { min-height: 42px; padding: 0 16px; font-size: 14px; }
  .kb-uit-sec { padding-bottom: 48px; }
  .card.kb-uit { gap: 20px; padding: 14px; border-radius: 28px; }
  .kb-uit__txt { gap: 14px; padding: 4px 8px 10px; }
  .card .kb-uit__ttl { font-size: 28px; }
  .kb-uit__sub { font-size: 16px; }
  .card .kb-uit__go { width: 48px; height: 48px; }
  .kb-lijst, .kb-cta-sec { padding-bottom: 72px; }
  .kb-leeg { padding: 48px 20px 56px; border-radius: 28px; }
  .kb-leeg__kop { font-size: 22px; }
  .kb-band { gap: 28px; }
  .kb-band__vorm { right: -40px; width: 140px; height: 190px; }
  .kb-band .band__knoppen { width: 100%; }
  .kb-band .band__knoppen .btn { flex: 1 1 200px; }
}

/* "Toon meer artikelen" onder het raster */
.kb-meer { display: flex; justify-content: center; margin-top: 48px; }
.kb-meer[hidden] { display: none; }
.kb-meer__n { font-weight: 500; opacity: .6; }
.kb-chips .chip .c { font-variant-numeric: tabular-nums; }
/* Op mobiel: categorieën in één rij die horizontaal scrolt */
@media (max-width: 700px) {
  .kb-chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter) 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .kb-chips::-webkit-scrollbar { display: none; }
  .kb-chips .chip { flex: none; }
}
