/* Aanvullingen voor /kennis/ai-dataveiligheid (bouwt voort op site.css). */

html {
  scroll-behavior: smooth;
}

.kennis-hero {
  padding: 64px 0 56px;
}

.kennis-h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.032em;
  line-height: 1.04;
  max-width: 19ch;
}

.kennis-hero .lead {
  max-width: 42em;
}

.hero-toelichting {
  max-width: 42em;
  font-size: 16px;
  color: var(--ink);
}

.avg-lijst {
  max-width: 680px;
  border-bottom: 1px solid var(--line);
}

.avg-lijst li {
  padding: 18px 0;
  border-top: 1px solid var(--line);
  font-size: 16px;
  color: var(--ink);
}

.avg-lijst strong {
  display: block;
  color: var(--navy);
  margin-bottom: 4px;
}

/* 4 begrippen (zonder nummers) */
.begrippen {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 32px;
}

.begrip {
  border-top: 2px solid var(--navy);
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.begrip h3 {
  font-size: 21px;
  line-height: 1.15;
}

.begrip p {
  font-size: 15px;
  color: var(--muted);
}

@media (max-width: 960px) {
  .begrippen {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .begrippen {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Overzicht sectie */
.overzicht-kop {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px 32px;
}

.peilnoot {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 14px;
  color: var(--ink);
  max-width: 440px;
}

.peilnoot strong {
  display: block;
  color: var(--navy);
  margin-bottom: 4px;
}

/* Filterbalk */
.filterbalk {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.filter-rijen {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.4fr);
  gap: 24px 36px;
  align-items: start;
}

.filter-groep {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.filter-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
}

.filter-hint {
  font-size: 13px;
  color: var(--muted);
}

.pill-rij {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid #9698a6;
  background: var(--cream);
  color: var(--navy);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.2;
  transition: background-color 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}

.pill:hover {
  border-color: var(--navy);
  background: var(--blue-pale);
}

.pill[aria-pressed="true"] {
  background: var(--navy-2);
  border-color: var(--navy-2);
  color: var(--cream);
}

/* 3-standen schakelaars in verticale kolom */
.eisen-kolom {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.eis-rij {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.eis-naam {
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
}

.stand-groep {
  display: inline-grid;
  grid-template-columns: repeat(3, auto);
  background: var(--cream);
  border: 1px solid #b6b3a5;
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
  flex: none;
}

.stand-knop {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  min-height: 32px;
  padding: 0 11px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.14s ease, color 0.14s ease;
}

.stand-knop:hover {
  color: var(--navy);
}

.stand-knop[data-stand="uit"][aria-pressed="true"] {
  background: var(--paper);
  color: var(--navy);
  box-shadow: 0 1px 2px rgba(10, 12, 51, 0.12);
}

.stand-knop[data-stand="actie"][aria-pressed="true"] {
  background: var(--amber-pale);
  color: var(--amber-dark);
  box-shadow: inset 0 0 0 1px rgba(184, 136, 42, 0.45);
}

.stand-knop[data-stand="standaard"][aria-pressed="true"] {
  background: var(--good);
  color: #fff;
}

.filter-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.teller {
  font-weight: 600;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}

.wis-knop {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--navy);
  background: transparent;
  color: var(--navy);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.wis-knop:hover {
  background: var(--navy);
  color: #fff;
}

.wis-knop[hidden] {
  display: none;
}

@media (max-width: 960px) {
  .filter-rijen {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .filterbalk {
    padding: 18px 16px;
  }

  .eis-rij {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 12px 0;
  }

  .stand-groep {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.05fr) minmax(0, 1.2fr);
    width: 100%;
  }

  .stand-knop {
    min-height: 36px;
    padding: 0 6px;
    font-size: 12px;
    text-align: center;
  }
}

/* Legenda + statusbadges */
.legenda-blok {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legenda {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  align-items: center;
  font-size: 14px;
  color: var(--ink);
}

.legenda-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.legenda-klik {
  font-size: 13px;
  color: var(--muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
  border: 1px solid transparent;
}

.badge-ja {
  background: #e7f3ef;
  color: var(--good);
  border-color: rgba(35, 112, 90, 0.25);
}

.badge-actie {
  background: var(--amber-pale);
  color: var(--amber-dark);
  border-color: rgba(184, 136, 42, 0.35);
}

.badge-nee {
  background: #fbf1f0;
  color: var(--risk);
  border-color: rgba(164, 50, 50, 0.25);
}

.g a.badge-link {
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}

.g a.badge-ja,
.g a.badge-ja:hover {
  color: var(--good);
}

.g a.badge-ja:hover {
  background: #d7ece5;
  border-color: rgba(35, 112, 90, 0.55);
  box-shadow: 0 1px 3px rgba(35, 112, 90, 0.14);
}

.g a.badge-actie,
.g a.badge-actie:hover {
  color: var(--amber-dark);
}

.g a.badge-actie:hover {
  background: #eedec0;
  border-color: rgba(184, 136, 42, 0.65);
  box-shadow: 0 1px 3px rgba(116, 106, 33, 0.14);
}

.badge-pijl {
  font-size: 11px;
  opacity: 0.78;
  line-height: 1;
}

/* Tabel (desktop) */
.tabel-kader {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow-x: clip;
}

.overzicht-tabel {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.45;
  text-align: left;
}

.overzicht-tabel thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--navy-2);
  color: var(--cream);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 14px 12px;
  vertical-align: bottom;
}

.overzicht-tabel thead th:first-child {
  padding-left: 20px;
  border-top-left-radius: 11px;
}

.overzicht-tabel thead th:last-child {
  padding-right: 20px;
  border-top-right-radius: 11px;
}

.overzicht-tabel thead th.col-status {
  text-align: center;
}

.overzicht-tabel tbody tr {
  border-top: 1px solid var(--line);
  transition: background-color 0.1s ease;
}

.overzicht-tabel tbody tr:hover {
  background: #f5f7fc;
}

.overzicht-tabel tbody tr.groep-start {
  border-top: 2px solid #c6c1b2;
}

.overzicht-tabel tbody tr[hidden] {
  display: none;
}

.overzicht-tabel tbody th,
.overzicht-tabel tbody td {
  padding: 15px 12px;
  vertical-align: top;
}

.overzicht-tabel tbody th {
  padding-left: 20px;
  font-weight: 500;
  color: var(--ink);
  min-width: 230px;
}

.overzicht-tabel tbody td:last-child {
  padding-right: 20px;
}

.aanbieder-naam {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin-bottom: 2px;
}

.variant-naam {
  display: block;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.35;
}

.overzicht-tabel td.col-status {
  text-align: center;
  vertical-align: middle;
}

.overzicht-tabel td.col-actie {
  min-width: 260px;
  color: var(--ink);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* Mobiele kaartweergave (<= 960px) */
@media (max-width: 960px) {
  .tabel-kader {
    background: transparent;
    border: 0;
    border-radius: 0;
    overflow: visible;
  }

  .overzicht-tabel,
  .overzicht-tabel tbody {
    display: block;
    width: 100%;
  }

  .overzicht-tabel thead {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
  }

  .overzicht-tabel tbody tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 14px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 14px;
  }

  .overzicht-tabel tbody tr.groep-start {
    border-top: 1px solid var(--line);
  }

  .overzicht-tabel tbody tr:hover {
    background: var(--paper);
  }

  .overzicht-tabel tbody th,
  .overzicht-tabel tbody td {
    padding: 0;
    min-width: 0;
    text-align: left;
  }

  .overzicht-tabel tbody th {
    grid-column: 1 / -1;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
  }

  .overzicht-tabel td.col-status {
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  .overzicht-tabel td.col-actie {
    grid-column: 1 / -1;
    padding-top: 10px;
    border-top: 1px solid var(--line);
  }

  .overzicht-tabel td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 3px;
  }
}

.lege-staat {
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.lege-staat[hidden] {
  display: none;
}
