/* ══ Zichtbaar in AI ═════════════════════════════════════════════════
   Twee nagebouwde panelen naast elkaar, strikt symmetrisch: gelijke
   hoogte, gelijke invoerbalk, op dezelfde lijn. De hele sectie — titel,
   panelen en strook — past op één scherm. Alle bedrijven, vragen en
   antwoorden zijn fictief en als voorbeeld gemarkeerd. */

#zichtbaar-in-ai { padding-block: clamp(32px, 3.4vw, 48px); }

.ai__top { position: relative; display: grid; gap: var(--s12); align-items: center; }
/* één losse 3D-vorm rechtsboven; geen extra achtergrond of gloed eromheen */
.ai__top img { width: 190px; height: auto; justify-self: end; }
@media (min-width: 900px) {
  .ai__top { grid-template-columns: minmax(0, 1fr) 320px; }
  /* zwevend: zo bepaalt de kop de hoogte van de rij en blijft de hele
     sectie binnen één scherm, ook al is het beeld groter dan die kop */
  .ai__top img { position: absolute; right: 0; top: 50%; width: 300px; transform: translateY(-50%); }
}
.ai__head { display: grid; gap: var(--s8); max-width: 48rem; }
.ai__head h2 { font-size: clamp(1.75rem, 3vw, 2.6rem); }
.ai__head .lede { font-size: 1.0625rem; max-width: 46ch; }
.label--ai { color: var(--label-ai); }

.panels { display: grid; gap: clamp(14px, 1.6vw, 20px); margin-top: var(--s16); align-items: stretch; }
.panels > * { min-width: 0; }
@media (min-width: 980px) { .panels { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Onder 980px: twee slides naast elkaar die je horizontaal veegt. Het
   volgende paneel steekt een stukje uit, zodat je ziet dat er meer is.
   Puur CSS (scroll-snap); site.js zet alleen de actieve stip. */
.panels__stippen { display: none; }
@media (max-width: 979px) {
  .panels {
    grid-auto-flow: column; grid-auto-columns: min(86%, 460px);
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    /* tot aan de schermrand, met de goot als binnenruimte */
    margin-inline: calc(-1 * var(--gutter));
    padding: var(--s4) var(--gutter) var(--s16);
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .panels::-webkit-scrollbar { display: none; }
  .panels > .panel { scroll-snap-align: start; }
  .panels:focus-visible { outline: 2px solid var(--aubergine); outline-offset: -2px; }
  .panels__stippen { display: flex; justify-content: center; gap: var(--s8); margin-top: var(--s4); }
  .panels__stippen span { width: 8px; height: 8px; border-radius: 999px; background: var(--line-on-lavendel); transition: width var(--t-fast) var(--ease), background var(--t-fast); }
  .panels__stippen span[data-actief] { width: 22px; background: var(--aubergine); }
}

.panel {
  /* kolom in plaats van grid: zo duwt margin-top:auto de invoerbalk
     naar de onderkant, en liggen beide balken op dezelfde lijn */
  display: flex; flex-direction: column; gap: var(--s12); min-width: 0;
  padding: var(--s16);
  background: var(--surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--text-body);
}
.panel__top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px var(--s8); min-width: 0; padding-bottom: var(--s12); border-bottom: 1px solid var(--line); }
/* het OpenAI-bestand heeft eigen witruimte in de viewBox, de Google G niet;
   vandaar twee maten voor hetzelfde optische formaat */
.panel__logo { width: 26px; height: 26px; flex: none; object-fit: contain; }
.panel__logo--g { width: 22px; height: 22px; }
.panel__naam { font-weight: 600; color: var(--text-heading); font-size: 1rem; }
.panel__chev { display: inline-grid; place-items: center; width: 14px; height: 14px; color: var(--text-muted); }
.panel__chev svg { width: 11px; height: 11px; }
.panel__merk { margin-left: auto; font-size: 0.75rem; color: var(--text-muted); }

/* — assistent — */
.vraag {
  align-self: flex-end; max-width: 88%; min-width: 0;
  padding: 10px 14px; border-radius: 16px 16px 4px 16px;
  background: var(--bg); color: var(--text-heading);
}
.antwoord { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: var(--s12); align-items: start; min-width: 0; }
.antwoord__bol { width: 26px; height: 26px; }
.lijst { display: grid; gap: 7px; margin-top: 7px; counter-reset: n; }
.lijst li { counter-increment: n; display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 6px; min-width: 0; }
.lijst li::before { content: counter(n) '.'; font-weight: 600; color: var(--text-heading); }
.lijst b { display: block; color: var(--text-heading); font-weight: 600; }
.lijst span { display: block; color: var(--text-muted); }
.bronnen { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: var(--s8); font-size: 0.75rem; color: var(--text-muted); }
.bron { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px; background: var(--bg); }
.bron svg { width: 12px; height: 12px; color: var(--text-muted); }
.reacties { display: flex; gap: var(--s12); margin-top: var(--s8); color: var(--text-muted); }
.reacties svg { width: 15px; height: 15px; }
.reacties .omlaag { display: inline-grid; transform: rotate(180deg); }

/* — zoekmachine — */
.tabs { display: flex; gap: var(--s20); border-bottom: 1px solid var(--line); }
.tabs span { padding-bottom: 8px; font-size: 0.8125rem; color: var(--text-muted); }
.tabs span[data-actief] { color: var(--aubergine); font-weight: 600; box-shadow: inset 0 -2px 0 var(--aubergine); }
.zoekbalk { display: flex; align-items: center; gap: var(--s12); min-width: 0; height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; }
.zoekbalk > svg { width: 17px; height: 17px; color: var(--text-muted); flex: none; }
.zoekbalk__tekst { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-heading); }
.zoekbalk__ic { display: inline-grid; place-items: center; width: 17px; height: 17px; color: var(--text-muted); flex: none; }
.zoekbalk__ic svg { width: 100%; height: 100%; }
.zoekbalk__ic--mic svg { overflow: visible; }  /* eigen vierkleurenbestand */
.treffers__kop { font-weight: 600; color: var(--text-heading); }
.treffers { display: grid; }
.treffer { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: var(--s12); padding: 6px 0; border-top: 1px solid var(--line); align-items: center; min-width: 0; }
.treffer:first-child { border-top: 0; padding-top: 2px; }
.treffer > div { min-width: 0; }
.treffer img { width: 76px; height: 54px; border-radius: 10px; object-fit: cover; flex: none; }
.treffer b { display: block; color: var(--google-link); font-weight: 600; }
.treffer p { color: var(--text-muted); }
.plaats { display: inline-flex; align-items: center; gap: 4px; margin-top: 3px; font-size: 0.75rem; color: var(--text-muted); }
.plaats svg { width: 12px; height: 12px; }

/* — invoerbalk: in beide panelen identiek en op dezelfde lijn — */
.invoer {
  margin-top: auto;
  display: flex; align-items: center; gap: var(--s12);
  height: 44px; padding: 0 8px 0 14px;
  border: 1px solid var(--line); border-radius: 999px;
  color: var(--text-muted);
}
.invoer .plus { width: 18px; height: 18px; display: grid; place-items: center; flex: none; }
.invoer .plus svg { width: 100%; height: 100%; }
.invoer > span:nth-child(2) { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.invoer .send { width: 30px; height: 30px; border-radius: 999px; display: grid; place-items: center; background: var(--aubergine); color: var(--surface); flex: none; }
.invoer .send svg { width: 15px; height: 15px; }
.invoer .send--plat { background: none; color: var(--text-muted); width: 20px; height: 20px; }

.ai__noot { margin-top: var(--s8); font-size: 0.8125rem; color: var(--text-muted); }

/* — strook met de aanvraag — */
.strook {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--s16) var(--s24);
  margin-top: var(--s16);
  padding: var(--s16) var(--s24);
  border-radius: var(--radius-card);
  background: var(--pistache);
}
.strook h3 { font-size: clamp(1.25rem, 2vw, 1.7rem); color: var(--aubergine); }
.strook p { margin-top: 4px; color: var(--tekst-op-pistache); font-size: 0.9375rem; }
.strook .btn { white-space: nowrap; flex: none; }

@media (max-width: 520px) {
  .treffer { grid-template-columns: 64px minmax(0, 1fr); }
  .treffer img { width: 64px; height: 50px; }
  .vraag { max-width: 100%; }
}
