/* StyleScout, rustige lichte stijl met indigo accent.
   Tokens bovenin; prijzen in tabelcijfers; animaties minimaal en met
   reduced-motion-fallback. */
* { box-sizing: border-box; margin: 0; padding: 0; }

/* Het hidden-attribuut moet ook winnen van display-regels zoals .herkenning{display:flex} */
[hidden] { display: none !important; }

:root {
  --accent:        #4353c7;
  --accent-donker: #32409e;
  --accent-zacht:  #eef0fb;
  --accent-lijn:   #d8dcf4;
  --groen:         #0e7a55;
  --groen-zacht:   #e7f5ef;
  --amber-fond:    #fdf6ec;
  --amber-lijn:    #ecd9b8;
  --amber-inkt:    #7a5410;
  --inkt:          #1c2233;
  --grijs:         #566073;
  --grijs-licht:   #667186;   /* 4,9:1 op wit, veilig voor kleine tekst */
  --lijn:          #e4e7f0;
  --fond:          #f5f6fa;
  --wit:           #ffffff;
  --schaduw-1: 0 1px 2px rgba(28, 34, 51, .06);
  --schaduw-2: 0 10px 30px -12px rgba(28, 34, 51, .18);
  --straal: 14px;
}

html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  background: var(--fond);
  color: var(--inkt);
  line-height: 1.55;
  font-size: 16px;
}
button, input, select { font-family: inherit; }
a { color: var(--accent-donker); }

/* ── Kop ── */
.kop {
  color: #fff;
  background:
    radial-gradient(46rem 24rem at 85% -20%, rgba(122, 140, 255, .45), transparent 60%),
    radial-gradient(38rem 22rem at -10% 110%, rgba(38, 50, 130, .55), transparent 60%),
    linear-gradient(130deg, #2c3990 0%, #4353c7 62%, #5b6bd6 100%);
}
.kop-binnen { max-width: 1080px; margin: 0 auto; padding: 40px 20px 64px; }
.merk { display: flex; align-items: center; gap: 10px; }
.merk-logo {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 11px;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .22);
}
.merk-logo svg { width: 23px; height: 23px; }
.merk-naam { font-size: 1.32rem; letter-spacing: .2px; font-weight: 400; }
.merk-naam b { font-weight: 700; }
.kop-titel { margin-top: 26px; font-size: clamp(1.7rem, 3.4vw, 2.45rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; max-width: 640px; }
.ondertitel { margin-top: 12px; opacity: .93; max-width: 620px; font-size: 1.02rem; }
.statregel { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 26px; margin-top: 22px; }
.statregel li { font-size: .9rem; opacity: .92; display: flex; align-items: baseline; gap: 6px; }
.statregel b { font-size: 1.06rem; font-weight: 700; opacity: 1; }

/* ── Basis ── */
.pagina { max-width: 1080px; margin: 0 auto; padding: 0 20px 44px; }
.kaart {
  background: var(--wit); border: 1px solid var(--lijn);
  border-radius: var(--straal); padding: 24px; box-shadow: var(--schaduw-1);
}
.zoekkaart { margin-top: -34px; box-shadow: var(--schaduw-2); }

/* Zoekbalk */
.zoekregel { display: flex; gap: 10px; }
.zoekveld-houder { position: relative; flex: 1; min-width: 0; }
.zoekicoon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 19px; height: 19px; color: var(--grijs-licht); pointer-events: none;
}
#zoekveld {
  width: 100%; font: inherit; padding: 13px 14px 13px 42px;
  border: 1.5px solid var(--lijn); border-radius: 11px; outline: none;
  background: #fbfcfe; color: var(--inkt);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
#zoekveld::placeholder { color: var(--grijs-licht); }
#zoekveld:focus { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3.5px rgba(67, 83, 199, .14); }

.knop {
  font: inherit; font-weight: 600; border: 0; border-radius: 11px; cursor: pointer;
  padding: 13px 22px; background: var(--accent-zacht); color: var(--accent-donker);
  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
  min-height: 44px;
}
.knop.primair { background: var(--accent); color: #fff; box-shadow: 0 6px 14px -6px rgba(67, 83, 199, .55); white-space: nowrap; }
.knop.primair:hover { background: var(--accent-donker); }
.knop:focus-visible { outline: 3px solid rgba(67, 83, 199, .45); outline-offset: 2px; }

/* Voorbeelden */
.voorbeelden { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.voorbeelden > span { font-size: .86rem; color: var(--grijs); }
.vb {
  font-size: .86rem; cursor: pointer; border: 1px solid var(--lijn);
  background: #fff; color: var(--accent-donker); border-radius: 999px; padding: 5px 13px;
  transition: border-color .15s ease, background .15s ease;
  min-height: 30px;
}
.vb:hover { border-color: var(--accent); background: var(--accent-zacht); }
.vb:focus-visible { outline: 3px solid rgba(67, 83, 199, .4); outline-offset: 1px; }

/* Fotozone */
.fotozone {
  margin-top: 16px; display: flex; gap: 14px; align-items: center;
  border: 1.5px dashed #c6cce0; border-radius: 12px; padding: 14px 16px;
  color: var(--grijs); cursor: pointer; background: #fafbfe;
  transition: border-color .15s ease, background .15s ease;
}
.fotozone:hover, .fotozone:focus-visible, .fotozone.sleep {
  border-color: var(--accent); background: var(--accent-zacht);
}
.fotozone:focus-visible { outline: 3px solid rgba(67, 83, 199, .45); outline-offset: 2px; }
.fotozone-icoon {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent-zacht); color: var(--accent);
}
.fotozone.sleep .fotozone-icoon, .fotozone:hover .fotozone-icoon { background: #fff; }
.fotozone-icoon svg { width: 22px; height: 22px; }
.fotozone-tekst { font-size: .95rem; }
.fotozone-tekst strong { color: var(--inkt); }
.fotozone-tekst small { color: var(--grijs-licht); font-size: .83rem; }

/* Herkenning */
.herkenning {
  margin-top: 14px; display: flex; gap: 14px; align-items: flex-start;
  background: var(--accent-zacht); border: 1px solid var(--accent-lijn);
  border-radius: 12px; padding: 14px 16px;
}
#fotopreview {
  width: 88px; height: 88px; object-fit: cover; border-radius: 10px;
  border: 1px solid var(--accent-lijn); background: #fff; flex: none;
}
.herkenning-tekst { flex: 1; min-width: 0; }
#herkenstatus { color: var(--inkt); font-size: .97rem; }
#herkenstatus .zeker { color: var(--grijs); }
.draaier {
  display: inline-block; width: 15px; height: 15px; margin-right: 9px;
  border: 2.5px solid var(--accent-lijn); border-top-color: var(--accent);
  border-radius: 50%; vertical-align: -2px;
  animation: ss-draai .8s linear infinite;
}
@keyframes ss-draai { to { transform: rotate(360deg); } }

/* Chips en categorierooster */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.herkenning .chips { margin-top: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  font: inherit; font-size: .9rem; font-weight: 500; cursor: pointer;
  border: 1px solid var(--lijn); background: #fff; color: var(--inkt);
  border-radius: 999px; padding: 7px 14px; min-height: 36px;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.chip:hover { border-color: var(--accent); color: var(--accent-donker); }
.chip.actief { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip:focus-visible { outline: 3px solid rgba(67, 83, 199, .4); outline-offset: 1px; }

.typeblok { margin-top: 20px; border-top: 1px solid var(--lijn); padding-top: 16px; }
.typelabel { color: var(--grijs); font-size: .86rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.typerooster { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 8px; }
.tegel {
  display: flex; align-items: center; gap: 9px;
  font: inherit; font-size: .88rem; font-weight: 500; cursor: pointer; text-align: left;
  border: 1px solid var(--lijn); background: #fff; color: var(--inkt);
  border-radius: 10px; padding: 9px 11px; min-height: 44px;
  transition: border-color .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
}
.tegel svg { width: 21px; height: 21px; flex: none; color: var(--accent); opacity: .85; }
.tegel:hover { border-color: var(--accent); box-shadow: var(--schaduw-1); }
.tegel.actief { background: var(--accent); border-color: var(--accent); color: #fff; }
.tegel.actief svg { color: #fff; opacity: 1; }
.tegel:focus-visible { outline: 3px solid rgba(67, 83, 199, .4); outline-offset: 1px; }

/* ── Resultaten ── */
.resultaten { margin-top: 22px; }
.resultkopblok { margin-bottom: 4px; }
#resultkop { font-size: 1.28rem; font-weight: 700; letter-spacing: -.01em; }
.resultsub { color: var(--grijs); font-size: .94rem; margin-top: 3px; }

.melding {
  margin-top: 14px; padding: 12px 15px; border-radius: 10px; font-size: .92rem;
  background: var(--amber-fond); border: 1px solid var(--amber-lijn); color: var(--amber-inkt);
}
.melding strong { color: inherit; }

.filters {
  display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: end;
  margin: 16px 0 6px; padding-top: 14px; border-top: 1px solid var(--lijn);
}
.filters label { display: flex; flex-direction: column; gap: 5px; font-size: .8rem; font-weight: 600; color: var(--grijs); }
.filters select {
  font: inherit; font-size: 1rem; font-weight: 400; color: var(--inkt); /* 16px: voorkomt autozoom op iOS */
  padding: 8px 10px; border: 1px solid var(--lijn); border-radius: 9px; background: #fff;
  min-height: 38px; cursor: pointer;
}
.filters select:focus-visible { outline: 3px solid rgba(67, 83, 199, .4); outline-offset: 1px; }

/* Schakelaar verzendkosten */
.filters .schakel {
  flex-direction: row; align-items: center; gap: 9px;
  font-size: .93rem; font-weight: 400; color: var(--inkt);
  padding-bottom: 9px; cursor: pointer; user-select: none;
}
.schakel input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.schakel-knop {
  flex: none; width: 38px; height: 22px; border-radius: 999px;
  background: #c9cede; position: relative;
  transition: background .15s ease;
}
.schakel-knop::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25);
  transition: transform .15s ease;
}
.schakel input:checked + .schakel-knop { background: var(--accent); }
.schakel input:checked + .schakel-knop::after { transform: translateX(16px); }
.schakel input:focus-visible + .schakel-knop { outline: 3px solid rgba(67, 83, 199, .4); outline-offset: 2px; }

/* Rijen */
.lijst { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.rij {
  display: grid; align-items: center; gap: 6px 16px;
  grid-template-columns: 34px minmax(200px, 1.45fr) 1fr .85fr .95fr .8fr auto;
  border: 1px solid var(--lijn); border-radius: 12px; padding: 13px 16px; background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.rij:hover { border-color: #c9cfe8; box-shadow: var(--schaduw-1); }
.rij.top { border-color: #b5dfcc; background: #f6fcf9; }

.rang {
  width: 30px; height: 30px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .88rem; color: var(--grijs);
  background: var(--fond); border: 1px solid var(--lijn);
}
.rij.top .rang { color: #fff; background: var(--groen); border-color: var(--groen); }

.lev { min-width: 0; }
.levkop { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.vlag { flex: none; width: 21px; height: 15px; border-radius: 3px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(28, 34, 51, .14); }
.vlag svg { display: block; width: 100%; height: 100%; }
.levnaam { font-weight: 600; font-size: .98rem; }
.badge { font-size: .7rem; font-weight: 600; border-radius: 5px; padding: 2.5px 7px; letter-spacing: .01em; }
.badge.b2c { background: var(--accent-zacht); color: var(--accent-donker); }
.badge.b2b { background: #fdf0e2; color: #93540e; }
.badge.beste { background: var(--groen-zacht); color: var(--groen); }
.levinfo { color: var(--grijs); font-size: .82rem; margin-top: 2px; }

/* Kolomlabels: op desktop visueel verborgen maar wel voorleesbaar, op mobiel zichtbaar */
.cel .cellabel {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
  font-size: .7rem; font-weight: 600; color: var(--grijs-licht); text-transform: uppercase; letter-spacing: .05em;
}
.cel .waarde { font-size: .95rem; font-variant-numeric: tabular-nums; }
.cel .sub { display: block; color: var(--grijs-licht); font-size: .76rem; font-variant-numeric: tabular-nums; }
.cel.totaalcel .waarde { font-weight: 700; color: var(--groen); font-size: 1.04rem; }

/* Prijsbalkje: positie van deze totaalprijs tegenover de duurste in de lijst */
.meter { display: block; margin-top: 5px; height: 4px; border-radius: 999px; background: var(--accent-zacht); overflow: hidden; max-width: 96px; }
.meter i { display: block; height: 100%; border-radius: 999px; background: var(--accent); }
.rij.top .meter i { background: var(--groen); }

.rij .knop.live {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 15px; font-size: .88rem; white-space: nowrap; text-decoration: none;
}
.rij .knop.live svg { width: 13px; height: 13px; }
.rij .knop.live:hover { background: var(--accent); color: #fff; }

.leegresultaat { color: var(--grijs); padding: 18px 4px; }

.voetnoot { color: var(--grijs); font-size: .85rem; margin-top: 14px; padding: 0 6px; max-width: 860px; }

/* Lege start */
.leegstart {
  margin-top: 22px; text-align: center; color: var(--grijs);
  padding: 42px 20px; border: 1.5px dashed #cdd3e4; border-radius: var(--straal);
}
.leegstart-icoon { display: inline-flex; color: #aab2c8; margin-bottom: 10px; }
.leegstart-icoon svg { width: 58px; height: 58px; }
.leegstart strong { color: var(--inkt); }

.voet { border-top: 1px solid var(--lijn); background: #fff; margin-top: 10px; }
.voet p { max-width: 1080px; margin: 0 auto; padding: 18px 20px; color: var(--grijs); font-size: .85rem; }

/* ── Mobiel ── */
@media (max-width: 900px) {
  .kop-binnen { padding: 30px 18px 56px; }
  .zoekregel { flex-direction: column; }
  .knop.primair { width: 100%; }
  .typerooster { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); }
  .rij { grid-template-columns: 1fr 1fr; padding: 14px; }
  .rang { position: absolute; }
  .rij { position: relative; }
  .rij .rang { top: 14px; right: 14px; }
  .lev { grid-column: 1 / -1; padding-right: 40px; }
  .cel .cellabel { position: static; width: auto; height: auto; overflow: visible; clip-path: none; display: block; }
  .meter { max-width: none; }
  .rij .knop.live { grid-column: 1 / -1; justify-content: center; }
}

/* Reduced motion: geen overgangen of draaiers */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  .draaier { display: none; }
}
