/* Merkpagina (borden "Merkpagina BYD" van Nienke). Alleen waarden uit design/tokens.css. Mobiel eerst. */
.merk-binnen { max-width: var(--breedte-max); margin: 0 auto; padding: 0 var(--ruimte-3); }
.merk-label { margin: 0; color: var(--kleur-accent); font-size: var(--tekst-xs); font-weight: var(--gewicht-extra);
  letter-spacing: var(--spatie-label); text-transform: uppercase; }
.merk h2 { margin: var(--ruimte-1) 0 0; font-family: var(--font-kop); font-size: var(--kop-m); line-height: var(--regel-kop); }

/* Kop: donker vlak met naam, intro, labels en twee knoppen; foto erboven op de telefoon, ernaast op de computer */
.merk-kop { background: var(--kleur-merk); color: var(--kleur-op-kleur); }
.merk-kop__binnen { max-width: var(--breedte-max); margin: 0 auto; padding: var(--ruimte-4) var(--ruimte-3) var(--ruimte-5);
  display: flex; flex-direction: column-reverse; gap: var(--ruimte-3); }
.merk-kop__tekst { display: flex; flex-direction: column; gap: var(--ruimte-3); }
.merk-kop__kruimel { color: var(--kleur-merk-tekst-zacht); font-size: var(--tekst-s); font-weight: var(--gewicht-vet); }
.merk-kop__kruimel a { color: inherit; text-decoration: none; }
.merk-kop__kruimel a:hover { color: var(--kleur-op-kleur); }
.merk-kop h1 { margin: 0; color: var(--kleur-op-kleur); font-family: var(--font-kop); font-size: 38px; line-height: 1;
  letter-spacing: -1.2px; }
.merk-kop__logo { white-space: nowrap; }
.merk-kop__siero { color: var(--kleur-logo-rood-op-donker); }
.merk-kop__intro { margin: 0; color: var(--kleur-merk-tekst); font-size: var(--tekst-m); line-height: var(--regel-tekst); }
.merk-kop__labels { display: flex; flex-wrap: wrap; gap: var(--ruimte-2); margin: 0; padding: 0; list-style: none; }
.merk-kop__labels li { padding: 6px 12px; border-radius: var(--hoek-rond); background: rgba(255, 255, 255, 0.12);
  font-size: var(--tekst-s); font-weight: var(--gewicht-vet); }
.merk-kop__knoppen { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--ruimte-2); }
.merk-kop__knoppen .knop { padding: 0 var(--ruimte-2); }
.merk-kop__beeld { overflow: hidden; height: 210px; border-radius: var(--hoek-groot); background: var(--kleur-merk-rand); }
.merk-kop__beeld img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Voorraad: modelkeuze (uitklaplijst met links), uitleg bij het gekozen model, kaarten */
.merk-voorraad { padding: var(--ruimte-5) 0 0; }
.model-keuze { max-width: 420px; margin-top: var(--ruimte-3); }
.model-keuze summary { display: flex; align-items: center; gap: var(--ruimte-2); min-height: var(--knop-hoogte);
  padding: 0 var(--ruimte-3); border: 1.5px solid var(--kleur-rand-veld); border-radius: var(--hoek); background: var(--kleur-achtergrond);
  font-size: var(--tekst-m); font-weight: var(--gewicht-extra); cursor: pointer; list-style: none; }
.model-keuze summary::-webkit-details-marker { display: none; }
.model-keuze summary .icoon { margin-left: auto; transition: transform 0.15s; }
.model-keuze[open] summary { border-color: var(--kleur-merk); }
.model-keuze[open] summary .icoon { transform: rotate(180deg); }
.model-keuze ul { margin: var(--ruimte-2) 0 0; padding: 0; list-style: none; overflow: hidden; border: 1.5px solid var(--kleur-merk);
  border-radius: var(--hoek); background: var(--kleur-achtergrond); box-shadow: var(--schaduw-zwevend); }
.model-keuze li + li { border-top: 1px solid var(--kleur-scheiding); }
.model-keuze a { display: flex; align-items: center; justify-content: space-between; gap: var(--ruimte-2); min-height: 52px;
  padding: 6px var(--ruimte-3); color: var(--kleur-tekst); text-decoration: none; }
.model-keuze a > span:first-child { display: flex; flex-direction: column; }
.model-keuze small { color: var(--kleur-tekst-zacht); font-size: var(--tekst-xs); font-weight: var(--gewicht-half); }
.model-keuze a:hover { background: var(--kleur-vlak); }
.model-keuze a[aria-current] { background: var(--kleur-merk); color: var(--kleur-op-kleur); }
.model-keuze a[aria-current] small { color: var(--kleur-merk-tekst); }
.model-keuze__aantal { flex: 0 0 auto; min-width: 24px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--kleur-vlak);
  color: var(--kleur-tekst-middel); font-size: var(--tekst-xs); font-weight: var(--gewicht-extra); line-height: 22px; text-align: center; }
a[aria-current] .model-keuze__aantal { background: rgba(255, 255, 255, 0.2); color: var(--kleur-op-kleur); }

.model-info { display: flex; flex-direction: column; gap: var(--ruimte-1); max-width: 760px; margin-top: var(--ruimte-3);
  padding: var(--ruimte-3); border-radius: var(--hoek-groot); background: var(--kleur-vlak); }
.model-info__naam { font-family: var(--font-kop); font-size: var(--tekst-l); }
.model-info__soort { color: var(--kleur-tekst-zacht); font-size: var(--tekst-s); }
.model-info__tekst { margin: var(--ruimte-1) 0 0; color: var(--kleur-tekst-middel); font-size: var(--tekst-s); line-height: var(--regel-tekst); }
.model-info__feiten { display: flex; flex-wrap: wrap; gap: var(--ruimte-2); margin: var(--ruimte-1) 0 0; font-size: var(--tekst-s);
  font-weight: var(--gewicht-vet); }
.model-info__feiten span { padding: 6px 10px; border-radius: var(--hoek-klein); background: var(--kleur-achtergrond); }

.merk-voorraad__balk { display: flex; align-items: center; justify-content: space-between; gap: var(--ruimte-2);
  margin: var(--ruimte-4) 0 var(--ruimte-3); font-size: var(--tekst-s); }
.merk-sorteer { position: relative; }
.merk-sorteer summary { display: flex; align-items: center; gap: 6px; min-height: var(--raakvlak-min); color: var(--kleur-accent);
  font-weight: var(--gewicht-extra); cursor: pointer; list-style: none; }
.merk-sorteer summary::-webkit-details-marker { display: none; }
.merk-sorteer ul { position: absolute; z-index: 5; right: 0; min-width: 240px; margin: 0; padding: var(--ruimte-1) 0; list-style: none;
  border: 1px solid var(--kleur-rand); border-radius: var(--hoek); background: var(--kleur-achtergrond); box-shadow: var(--schaduw-zwevend); }
.merk-sorteer a { display: block; padding: 10px var(--ruimte-3); color: var(--kleur-tekst); text-decoration: none; }
.merk-sorteer a:hover { background: var(--kleur-vlak); }
.merk-sorteer a[aria-current] { font-weight: var(--gewicht-extra); color: var(--kleur-accent); }
.merk-voorraad__alle { display: flex; width: 100%; margin-top: var(--ruimte-3); }
.merk-voorraad .leeg { margin-top: var(--ruimte-3); }

/* Waarom dit merk */
.merk-waarom { margin-top: var(--ruimte-6); padding: var(--ruimte-5) 0; background: var(--kleur-vlak); }
.merk-waarom__lijst { display: grid; grid-template-columns: 1fr; gap: var(--ruimte-3); margin: var(--ruimte-3) 0 0; padding: 0; list-style: none; }
.merk-waarom__lijst li { display: flex; align-items: flex-start; gap: var(--ruimte-3); padding: var(--ruimte-3);
  border: 1px solid var(--kleur-rand); border-radius: var(--hoek-groot); background: var(--kleur-achtergrond); }
.merk-waarom__lijst li > span:last-child { display: flex; flex-direction: column; gap: 3px; color: var(--kleur-tekst-zacht);
  font-size: var(--tekst-s); line-height: 1.5; }
.merk-waarom__lijst strong { color: var(--kleur-tekst); font-size: var(--tekst-m); }
.merk-waarom__icoon { display: flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 44px; height: 44px;
  border-radius: var(--hoek); background: var(--kleur-accent-licht); color: var(--kleur-accent); }

/* Advies en USP's */
.merk-acties { padding: var(--ruimte-5) 0 0; }
.merk-advies { display: flex; flex-direction: column; gap: var(--ruimte-3); max-width: 640px; padding: var(--ruimte-4);
  border-radius: var(--hoek-xl); background: var(--kleur-merk); color: var(--kleur-op-kleur); }
.merk-advies h2 { margin: 0; color: var(--kleur-op-kleur); font-size: var(--kop-s); }
.merk-advies p { margin: 0; color: var(--kleur-merk-tekst); }
.merk-advies__wa { border: 0; } /* groen (WhatsApp), Nienke 07-11 */
.merk-advies__wa:hover { background: var(--kleur-succes-tekst); }
.merk-usp { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--ruimte-2) var(--ruimte-4); margin: var(--ruimte-5) auto;
  list-style: none; font-size: var(--tekst-s); font-weight: var(--gewicht-vet); }
.merk-usp li { display: flex; align-items: center; gap: var(--ruimte-1); }
.merk-usp .icoon { color: var(--kleur-actie); }

@media (min-width: 960px) {
  .merk-kop__binnen { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: var(--ruimte-6);
    padding: var(--ruimte-6) var(--ruimte-3); }
  .merk-kop h1 { font-size: 60px; }
  .merk-kop__intro { font-size: var(--tekst-l); }
  .merk-kop__knoppen { grid-template-columns: repeat(2, minmax(0, 240px)); }
  .merk-kop__beeld { height: 360px; }
  .merk-voorraad { padding-top: var(--ruimte-6); }
  .merk-voorraad__alle { width: auto; max-width: 420px; margin: var(--ruimte-4) auto 0; }
  .merk-waarom__lijst { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Vrijstaande auto in de merkkop (Nienke 07-11): geen kader of vlak, alleen de auto met een zachte schaduw eronder */
.merk-kop__vrij { position: relative; display: flex; align-items: flex-end; justify-content: center; margin: var(--ruimte-2) 0 0; }
.merk-kop__vrij img { position: relative; z-index: 1; display: block; width: 100%; max-width: 560px; height: auto; }
.merk-kop__vrij::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: 2%; height: 14%; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 70%); }
/* Details fabrieksgarantie BYD (Nienke 07-11) */
.merk-waarom__details { display: flex; flex-direction: column; gap: 4px; margin: var(--ruimte-1) 0 0; padding: 0 0 0 16px; font-size: var(--tekst-s); line-height: 1.45; }
.merk-waarom__details b { color: var(--kleur-tekst); }
.merk-waarom__lijst li > span:last-child > a { margin-top: 4px; color: var(--kleur-accent); font-size: var(--tekst-s); font-weight: var(--gewicht-vet); }
.merk-waarom__lijst .merk-waarom__details li { display: list-item; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; color: var(--kleur-tekst-zacht); }
@media (max-width: 959px) {
  /* telefoon: foto in de kop schaalt mee en past altijd helemaal in het kader (Nienke 17-11) */
  .merk-kop__beeld { height: auto; }
  .merk-kop__beeld img { width: 100%; height: auto; max-height: 70vh; object-fit: contain; }
}

/* Merkkop op de computer minder hoog (Nienke 26-11) */
@media (min-width: 960px) {
  .merk-kop__binnen { padding-top: 28px; padding-bottom: 30px; gap: var(--ruimte-5); }
  .merk-kop__tekst { gap: 12px; }
  .merk-kop h1 { font-size: 44px; }
  .merk-kop__intro { font-size: var(--tekst-m); }
  .merk-kop__beeld { height: 240px; }
}

/* ── BYD-pagina sterker (Nienke 01-12): USP's in de kop, navigatiebalk, Atto 2 uitgelicht, Blade-batterij ───────── */
.merk-kop__usp { display: grid; gap: 8px; margin: 4px 0 0; padding: 0; list-style: none; }
.merk-kop__usp li { display: flex; gap: 10px; align-items: flex-start; color: rgba(255, 255, 255, 0.9); line-height: 1.4; }
.merk-kop__usp .icoon { flex: 0 0 auto; width: 20px; height: 20px; color: var(--kleur-whatsapp-licht, #5fd38d); stroke-width: 2.6; }
.merk-kop__usp strong { color: var(--kleur-op-kleur); }

.merk-nav { position: sticky; top: var(--kop-hoogte); z-index: 20; border-bottom: 1px solid var(--kleur-rand); background: var(--kleur-achtergrond); }
.merk-nav__binnen { display: flex; align-items: center; justify-content: space-between; gap: var(--ruimte-3); }
.merk-nav ul { display: flex; gap: 4px; margin: 0; padding: 0; overflow-x: auto; list-style: none; scrollbar-width: none; }
.merk-nav ul::-webkit-scrollbar { display: none; }
.merk-nav a:not(.knop) { display: block; padding: 16px 12px; color: var(--kleur-tekst-middel); font-weight: var(--gewicht-vet); white-space: nowrap; text-decoration: none; border-bottom: 3px solid transparent; }
.merk-nav a:not(.knop):hover { color: var(--kleur-tekst); border-bottom-color: var(--kleur-accent); }
.merk-nav__knop { display: none; }
@media (min-width: 960px) { .merk-nav__knop { display: inline-flex; flex: 0 0 auto; } }
#voorraad, #atto-2, #blade, #waarom, #proefrit { scroll-margin-top: calc(var(--kop-hoogte) + 64px); }

.merk-uitgelicht, .merk-blade { padding: var(--ruimte-6) 0; }
.merk-uitgelicht__binnen, .merk-blade__binnen { display: grid; gap: var(--ruimte-4); align-items: center; }
.merk-uitgelicht h2, .merk-blade h2 { margin: 0 0 12px; font-size: 30px; line-height: 1.15; }
.merk-uitgelicht p, .merk-blade p { margin: 0 0 12px; color: var(--kleur-tekst-middel); line-height: 1.65; }
.merk-feiten { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: var(--ruimte-3) 0; padding: 0; list-style: none; }
.merk-feiten li { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 8px; background: var(--kleur-vlak); }
.merk-feiten strong { color: var(--kleur-accent); font-family: var(--font-kop); font-size: 22px; line-height: 1.1; }
.merk-feiten span { color: var(--kleur-tekst-middel); font-size: var(--tekst-s); line-height: 1.4; }
.merk-uitgelicht__knoppen { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--ruimte-3); }
.merk-klein { margin-top: 12px !important; color: var(--kleur-tekst-zacht) !important; font-size: var(--tekst-xs); }
.merk-uitgelicht__beeld { overflow: hidden; border-radius: 8px; }
.merk-uitgelicht__beeld img { display: block; width: 100%; height: auto; }
.merk-blade { background: var(--kleur-merk); color: var(--kleur-op-kleur); }
.merk-blade h2 { color: var(--kleur-op-kleur); }
.merk-blade p { color: rgba(255, 255, 255, 0.85); }
.merk-blade__video { position: relative; overflow: hidden; border-radius: 8px; aspect-ratio: 16 / 9; background: #000; }
.merk-blade__video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (min-width: 960px) {
  .merk-uitgelicht__binnen { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--ruimte-6); }
  .merk-blade__binnen { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: var(--ruimte-6); }
  .merk-uitgelicht h2, .merk-blade h2 { font-size: 38px; letter-spacing: -0.5px; }
}
.merk-label { display: none; } /* geen bovenkopjes (Rick, Nienke 28-11) */

/* Veelgestelde vragen over BYD (Nienke 01-12) */
#vragen { scroll-margin-top: calc(var(--kop-hoogte) + 64px); }
.merk-vragen { padding: var(--ruimte-6) 0; background: var(--kleur-vlak); }
.merk-vragen h2 { margin: 0 0 var(--ruimte-3); font-size: 30px; line-height: 1.15; }
.merk-vragen__lijst { display: grid; gap: 8px; }
.merk-vraag { border-radius: 8px; background: var(--kleur-achtergrond); box-shadow: var(--schaduw-kaart); }
.merk-vraag summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; cursor: pointer; list-style: none;
  font-weight: var(--gewicht-extra); line-height: 1.35; }
.merk-vraag summary::-webkit-details-marker { display: none; }
.merk-vraag summary .icoon { flex: 0 0 auto; transition: transform 0.15s ease; }
.merk-vraag[open] summary .icoon { transform: rotate(180deg); }
.merk-vraag p { margin: 0; padding: 0 20px 20px; color: var(--kleur-tekst-middel); line-height: 1.6; }
@media (min-width: 960px) { .merk-vragen h2 { font-size: 38px; letter-spacing: -0.5px; } .merk-vragen__binnen { max-width: 880px; } }
.merk-vraag p a { color: var(--kleur-accent); font-weight: var(--gewicht-vet); text-decoration: underline; text-underline-offset: 3px; }

/* "Twijfel je tussen modellen?" breed, met foto van Frank en Roy (Nienke 01-12) */
.merk-advies { overflow: hidden; padding: 0; gap: 0; }
.merk-advies__foto { display: block; width: 100%; height: 200px; object-fit: cover; object-position: 50% 40%; }
.merk-advies__tekst { display: flex; flex-direction: column; gap: var(--ruimte-3); padding: var(--ruimte-4); }
@media (min-width: 960px) {
  .merk-acties { padding-top: var(--ruimte-6); }
  .merk-advies { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); max-width: none; border-radius: 8px; }
  .merk-advies__foto { height: 100%; min-height: 320px; }
  .merk-advies__tekst { align-self: center; padding: var(--ruimte-5); }
  .merk-advies h2 { font-size: 36px; letter-spacing: -0.5px; }
  .merk-advies p { font-size: var(--tekst-l); line-height: 1.55; }
  .merk-advies__tekst { display: grid; grid-template-columns: auto auto; justify-content: start; column-gap: 10px; }
  .merk-advies__tekst > h2, .merk-advies__tekst > p { grid-column: 1 / -1; }
}

/* Disclaimer onderaan (Nienke 01-12) */
.merk-disclaimer { margin-top: var(--ruimte-4); margin-bottom: var(--ruimte-5); color: var(--kleur-tekst-zacht); font-size: var(--tekst-xs); line-height: 1.55; }
.merk-disclaimer a { color: inherit; }
@media (min-width: 960px) { .merk-disclaimer { max-width: 880px; } }
