/* Inruilen (borden "Inruilen" van Nienke). Bouwt voort op contact.css (velden, tijden, knoppen). Alleen tokens. */
.inruilen .verborgen { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.stappen { display: none; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--ruimte-3); margin: 0 0 var(--ruimte-5); padding: 0;
  list-style: none; }
.stappen li { display: flex; flex-direction: column; gap: var(--ruimte-1); padding: var(--ruimte-3); border-radius: var(--hoek-groot);
  background: var(--kleur-vlak); }
.stappen li > span, .inruil-stap__nr { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px;
  border-radius: 50%; background: var(--kleur-merk); color: var(--kleur-op-kleur); font-weight: var(--gewicht-extra); }
.stappen small { color: var(--kleur-tekst-zacht); font-size: var(--tekst-s); }

.inruilen .contact-raster { flex-direction: column; margin-top: var(--ruimte-3); }
.inruil-stap { display: flex; flex-direction: column; gap: var(--ruimte-3); margin: 0 0 var(--ruimte-4); padding: 0 0 var(--ruimte-4);
  border: 0; border-bottom: 1px solid var(--kleur-scheiding); }
.inruil-stap legend { display: flex; align-items: center; gap: var(--ruimte-2); margin-bottom: var(--ruimte-3); font-family: var(--font-kop);
  font-size: var(--tekst-l); font-weight: var(--gewicht-extra); }
.inruil-stap legend small { color: var(--kleur-tekst-zacht); font-family: var(--font-tekst); font-size: var(--tekst-s); font-weight: var(--gewicht-half); }
.inruil-stap__nr { width: 28px; height: 28px; font-family: var(--font-tekst); font-size: var(--tekst-s); }
.veld-uitleg { margin: 0; color: var(--kleur-tekst-zacht); font-size: var(--tekst-s); }
.kenteken-veld { border-color: var(--kleur-merk) !important; background: var(--kleur-markering) !important;
  font-weight: var(--gewicht-extra) !important; letter-spacing: 2px; text-transform: uppercase; }
.km-veld { position: relative; }
.km-veld span { position: absolute; right: var(--ruimte-3); top: 50%; transform: translateY(-50%); color: var(--kleur-tekst-zacht); }
.rdw-regel { display: flex; flex-direction: column; margin: 0; padding: var(--ruimte-2) var(--ruimte-3); border-radius: var(--hoek);
  background: var(--kleur-succes-licht); }
.rdw-regel[hidden] { display: none; }
.rdw-regel small { color: var(--kleur-succes-tekst); font-size: var(--tekst-xs); }

.foto-kies { position: relative; display: flex; align-items: center; gap: var(--ruimte-3); padding: var(--ruimte-4) var(--ruimte-3);
  border: 1.5px dashed var(--kleur-rand-veld); border-radius: var(--hoek-groot); background: var(--kleur-vlak); color: var(--kleur-accent);
  cursor: pointer; }
.foto-kies:hover, .foto-kies:focus-within { border-color: var(--kleur-accent); }
.foto-kies input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.foto-kies span { display: flex; flex-direction: column; color: var(--kleur-tekst); }
.foto-kies small { color: var(--kleur-tekst-zacht); }
/* Foto's als checklist: 4 buiten, 4 binnen; elk vakje een eigen bestandsveld (werkt zonder script) */
.foto-vakken { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--ruimte-2); }
.foto-vakken__kop { grid-column: 1 / -1; margin: var(--ruimte-1) 0 0; color: var(--kleur-tekst-zacht); font-size: var(--tekst-xs);
  font-weight: var(--gewicht-extra); letter-spacing: var(--spatie-label); text-transform: uppercase; }
.foto-vak { position: relative; display: flex; flex-direction: column; gap: 6px; padding: var(--ruimte-1); border: 1.5px dashed var(--kleur-rand-veld);
  border-radius: var(--hoek-groot); background: var(--kleur-achtergrond); cursor: pointer; }
.foto-vak:hover, .foto-vak:focus-within { border-color: var(--kleur-accent); }
.foto-vak input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.foto-vak__beeld { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; border-radius: var(--hoek);
  background: var(--kleur-vlak) center / cover no-repeat; color: var(--kleur-accent); }
.foto-vak__naam { padding: 0 4px 2px; font-size: var(--tekst-s); font-weight: var(--gewicht-vet); line-height: 1.2; }
.foto-vak__vink { position: absolute; top: 10px; right: 10px; display: none; align-items: center; justify-content: center; width: 26px; height: 26px;
  border-radius: 50%; background: var(--kleur-actie); color: var(--kleur-op-kleur); }
.foto-vak.is-gevuld { border-style: solid; border-color: var(--kleur-actie); }
.foto-vak.is-gevuld .foto-vak__beeld .icoon { display: none; }
.foto-vak.is-gevuld .foto-vak__vink { display: flex; }
.foto-telling { margin: 0; color: var(--kleur-succes-tekst); font-size: var(--tekst-s); font-weight: var(--gewicht-vet); }
.foto-telling[hidden], [data-foto-waarschuwing][hidden] { display: none; }
.foto-kies { padding: var(--ruimte-3); }
@media (min-width: 640px) { .foto-vakken { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.inruil-galerij p { margin: 6px 0 0; font-size: var(--tekst-s); font-weight: var(--gewicht-vet); }

.oog-auto { display: flex; align-items: center; gap: var(--ruimte-3); padding: var(--ruimte-2); border: 1.5px solid var(--kleur-actie);
  border-radius: var(--hoek-groot); }
.oog-auto img { width: 96px; height: 64px; border-radius: var(--hoek); object-fit: cover; }
.oog-auto span { display: flex; flex-direction: column; }
.oog-auto small { color: var(--kleur-succes-tekst); font-size: var(--tekst-xs); font-weight: var(--gewicht-vet); }

.inruil-waarom { padding: var(--ruimte-4); border-radius: var(--hoek-groot); background: var(--kleur-vlak); }
.inruil-waarom h2 { font-size: var(--kop-s) !important; }
.inruil-waarom ul { display: flex; flex-direction: column; gap: var(--ruimte-2); margin: var(--ruimte-3) 0 0; padding: 0; list-style: none; }
.inruil-waarom li { display: flex; gap: var(--ruimte-2); }
.inruil-waarom .icoon { flex: 0 0 auto; color: var(--kleur-actie); }
.inruilen .contact-werkplaats { flex-wrap: wrap; }
.inruilen .contact-werkplaats .knop { flex: 1 1 100%; }

.inruil-galerij { max-width: var(--breedte-max); margin: 0 auto; padding: var(--ruimte-4) var(--ruimte-3); }
.inruil-galerij ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--ruimte-3); margin: var(--ruimte-3) 0 0;
  padding: 0; list-style: none; }
.inruil-galerij img { width: 100%; border-radius: var(--hoek); }

@media (min-width: 960px) {
  .stappen { display: grid; }
}

/* Foto's met de telefoon maken (computer: QR-code en korte code; telefoon: /foto/<sleutel>), app/telefoonfoto.py */
.telefoon-blok[hidden], .telefoon-blok__vak[hidden] { display: none; }
.telefoon-blok { display: grid; gap: var(--ruimte-2); padding: var(--ruimte-3); border: 1px solid var(--kleur-rand); border-radius: var(--hoek-groot); background: var(--kleur-vlak); }
.telefoon-blok .knop { justify-self: start; gap: var(--ruimte-1); }
.telefoon-blok__vak { display: flex; gap: var(--ruimte-3); align-items: center; }
.telefoon-blok__vak p { margin: 0 0 var(--ruimte-1); line-height: var(--regel-tekst); }
.telefoon-blok__qr { flex: none; width: 170px; height: 170px; padding: 6px; border-radius: var(--hoek); background: var(--kleur-achtergrond); image-rendering: pixelated; }
.telefoon-blok__code { padding: 2px 8px; border-radius: var(--hoek-klein); background: var(--kleur-achtergrond); font-size: var(--tekst-l); letter-spacing: 3px; white-space: nowrap; }
.foto-vak.is-telefoon .foto-vak__naam::after { content: " (via telefoon)"; color: var(--kleur-tekst-zacht); font-weight: var(--gewicht-normaal); }
.telefoonfoto__binnen { max-width: 560px; padding-top: var(--ruimte-4); padding-bottom: var(--ruimte-5); display: grid; gap: var(--ruimte-3); }
.telefoonfoto__binnen h1 { margin: 0; font-family: var(--font-kop); font-size: var(--kop-m); }
.telefoonfoto__binnen form { display: grid; gap: var(--ruimte-3); }
.telefoonfoto__code input { font-size: 28px; letter-spacing: 6px; text-transform: uppercase; text-align: center; }
.telefoonfoto [data-telefoonfoto-knop][hidden] { display: none; }
.foto-vak.is-bezig { opacity: .6; }
.telefoon-blok [data-telefoonfoto-start][hidden] { display: none; }

/* Auto op het oog: laatst bekeken, favorieten en zoekresultaten als kaartjes (website.js, [data-oog]) */
.oog-kies { display: grid; gap: var(--ruimte-2); }
.oog-kies [hidden] { display: none !important; }
.oog-auto .knop { margin-left: auto; }
.oog-auto [data-oog-regel] { color: var(--kleur-tekst-zacht); font-size: var(--tekst-s); }
.oog-lijst { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: var(--ruimte-1); }
.oog-lijst:empty { display: none; }
.oog-keuze { display: flex; align-items: center; gap: var(--ruimte-2); width: 100%; padding: var(--ruimte-1); border: 1px solid var(--kleur-rand);
  border-radius: var(--hoek); background: var(--kleur-achtergrond); color: var(--kleur-tekst); font: inherit; text-align: left; cursor: pointer; }
.oog-keuze:hover, .oog-keuze:focus-visible { border-color: var(--kleur-accent); }
.oog-keuze img, .oog-keuze__leeg { flex: none; width: 72px; height: 54px; border-radius: var(--hoek-klein); object-fit: cover; background: var(--kleur-vlak-foto); }
.oog-keuze span { display: flex; flex-direction: column; min-width: 0; }
.oog-keuze strong { font-size: var(--tekst-s); line-height: 1.25; overflow-wrap: anywhere; }
.oog-keuze small { color: var(--kleur-tekst-zacht); font-size: var(--tekst-xs); }
.oog-keuze em { color: var(--kleur-accent); font-size: var(--tekst-xxs); font-style: normal; font-weight: var(--gewicht-vet); }
.oog-leeg { margin: 0; color: var(--kleur-tekst-zacht); font-size: var(--tekst-s); }
.oog-auto .knop { min-height: 36px; padding: 0 var(--ruimte-2); }

/* "Liever eerst even overleggen?" met foto van Frank, zelfde idee als Roy op de autopagina (Nienke 26-11) */
.overleg-kaart { display: grid; grid-template-columns: 1fr 40%; gap: 0; padding: 8px; overflow: hidden; min-height: 190px; border-radius: 8px;
  background: linear-gradient(135deg, var(--kleur-accent-licht) 0%, var(--kleur-achtergrond) 70%); box-shadow: var(--schaduw-kaart); }
.overleg-kaart__tekst { display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: var(--ruimte-2) var(--ruimte-2) var(--ruimte-2) 12px; }
.overleg-kaart__tekst h2 { margin: 0; font-size: 22px; line-height: 1.15; }
.overleg-kaart__tekst p { margin: 0 0 6px; color: var(--kleur-tekst-zacht); font-size: var(--tekst-m); }
.overleg-kaart .overleg-kaart__label { align-self: flex-start; margin: 0 0 2px; padding: 4px 10px; border-radius: var(--hoek-rond); background: var(--kleur-achtergrond);
  color: var(--kleur-accent); font-size: var(--tekst-xxs); font-weight: var(--gewicht-extra); letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.overleg-kaart .overleg-kaart__knop { align-self: flex-start; min-height: 44px; padding: 0 16px; color: var(--kleur-op-kleur); font-size: var(--tekst-s); }
.overleg-kaart__beeld { position: relative; overflow: hidden; border-radius: 8px; }
.overleg-kaart__beeld img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.overleg-kaart__naam { position: absolute; left: 8px; bottom: 8px; padding: 4px 10px; border-radius: var(--hoek-rond); background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: var(--kleur-tekst); font-size: var(--tekst-xs); font-weight: var(--gewicht-extra); }

/* Stappen op de computer mooier (Nienke 26-11): witte kaarten met schaduw, groot nummer, icoon en een
   onderbroken lijn (de "weg") die de drie stappen verbindt */
.stappen__icoon { display: none; }
@media (min-width: 960px) {
  .stappen { position: relative; gap: var(--ruimte-4); margin-bottom: var(--ruimte-6); counter-reset: none; }
  .stappen::before { content: ""; position: absolute; left: 12%; right: 12%; top: 46px; height: 3px; z-index: 0;
    background: repeating-linear-gradient(90deg, var(--kleur-accent) 0 14px, transparent 14px 26px); opacity: 0.35; }
  .stappen li { position: relative; z-index: 1; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto auto; column-gap: 14px; row-gap: 6px;
    padding: 24px; border: 1px solid var(--kleur-rand); border-radius: 8px; background: var(--kleur-achtergrond); box-shadow: var(--schaduw-kaart);
    transition: transform 0.15s ease, box-shadow 0.15s ease; }
  .stappen li:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(14, 26, 43, 0.12); }
  .stappen li > span { grid-row: 1; grid-column: 1; width: 44px; height: 44px; font-size: 20px; font-family: var(--font-kop);
    background: linear-gradient(135deg, var(--kleur-accent) 0%, var(--kleur-accent-donker) 100%); box-shadow: 0 6px 16px rgba(22, 80, 200, 0.3); }
  .stappen li:last-child > span { background: linear-gradient(135deg, var(--kleur-actie) 0%, var(--kleur-whatsapp) 100%); box-shadow: 0 6px 16px rgba(19, 134, 66, 0.3); }
  .stappen__icoon { grid-row: 1; grid-column: 2; justify-self: end; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px;
    border-radius: 6px; background: var(--kleur-accent-licht); color: var(--kleur-accent); }
  .stappen li:last-child .stappen__icoon { background: var(--kleur-succes-licht); color: var(--kleur-actie); }
  .stappen__icoon .icoon { width: 22px; height: 22px; }
  .stappen li > strong { grid-column: 1 / -1; margin-top: 10px; font-family: var(--font-kop); font-size: 20px; line-height: 1.2; }
  .stappen li > small { grid-column: 1 / -1; font-size: var(--tekst-m); line-height: 1.5; }
}


/* Geen stapnummers bovenaan (opdracht Rick, Nienke 28-11): alleen icoon, titel en tekst */
@media (min-width: 960px) {
  .stappen li > span { display: none; }
  .stappen__icoon { grid-column: 1; justify-self: start; }
}
