/* Export Mini – static site */
:root {
  --groen: #1a4723;
  --groen-mid: #315939;
  --groen-donker: #123218;
  --groen-licht: #8da391;
  --groen-bleek: #e8ede9;
  --rand: #d1dad3;
  --tekst: #3b3f3c;
  --tekst-licht: #6d756f;
  --rood: #b3261e;
  --max: 980px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--tekst);
  background: var(--groen) linear-gradient(180deg, #2d6338 0, var(--groen) 420px) no-repeat;
}

a { color: var(--groen); }
a:hover { color: var(--groen-mid); }
img { max-width: 100%; height: auto; display: block; }

.skip-link { position: absolute; left: -9999px; top: 0; background: #fff; color: var(--groen); padding: 8px 12px; z-index: 50; }
.skip-link:focus { left: 8px; top: 8px; }

.page {
  max-width: var(--max);
  margin: 0 auto;
  background: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 30px rgba(0, 0, 0, .35);
}

/* ---------- header ---------- */
.site-header {
  position: relative;
  height: 152px;
  background: #fff url("../img/header.png") no-repeat right top;
  background-size: auto 152px;
}
.site-header .logo { position: absolute; left: 24px; top: 24px; }
.site-header .logo img { width: 137px; height: 100px; }

/* ---------- navigation ---------- */
.nav {
  position: relative;
  background: linear-gradient(180deg, #24552e, var(--groen-donker));
  border-top: 1px solid #0d2611;
  border-bottom: 1px solid #0d2611;
}
.nav ul { list-style: none; margin: 0; padding: 0 12px; display: flex; flex-wrap: wrap; }
.nav li { margin: 0; }
.nav a {
  display: block;
  padding: 13px 16px;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}
.nav a:hover, .nav a:focus-visible { background: rgba(255, 255, 255, .12); color: #fff; }
.nav a[aria-current="page"] { background: rgba(255, 255, 255, .18); box-shadow: inset 0 -3px 0 var(--groen-licht); }
.menu-knop { display: none; }

/* ---------- content ---------- */
main { flex: 1; padding: 30px 32px 44px; }

h1, h2 { color: var(--groen); line-height: 1.25; }
h1 { font-size: 28px; margin: 0 0 6px; }
h1 + .sub { color: var(--tekst-licht); margin: 0 0 20px; font-size: 16px; }
h2 { font-size: 20px; margin: 28px 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--groen-licht); }
h3 { color: var(--groen-donker); font-size: 17px; margin: 20px 0 6px; }
p { margin: 0 0 12px; }

.knop, button.knop, a.knop {
  display: inline-block;
  background: linear-gradient(180deg, var(--groen-mid), var(--groen));
  border: 1px solid #15391c;
  color: #fff;
  border-radius: 4px;
  padding: 9px 18px;
  font: 600 14px "Segoe UI", system-ui, Arial, sans-serif;
  text-decoration: none;
  cursor: pointer;
}
.knop:hover, .knop:focus-visible { background: var(--groen-donker); color: #fff; }
.knop[disabled] { opacity: .6; cursor: wait; }
.knop.licht { background: #fff; color: var(--groen); }
.knop.licht:hover { background: var(--groen-bleek); color: var(--groen); }

/* ---------- home hero / slider ---------- */
.hero { display: grid; grid-template-columns: 1fr 260px; gap: 0; background: var(--groen-mid); }
.slider { position: relative; aspect-ratio: 720 / 320; overflow: hidden; background: #222; border: 6px solid #fff; border-width: 6px 0 6px 6px; }
.slider img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s ease; filter: grayscale(1) contrast(1.05); }
.slider img.actief { opacity: 1; }
.slider-dots { position: absolute; bottom: 10px; right: 12px; display: flex; gap: 6px; z-index: 2; }
.slider-dots button { width: 11px; height: 11px; border-radius: 50%; border: 1px solid #fff; background: rgba(255, 255, 255, .35); padding: 0; cursor: pointer; }
.slider-dots button[aria-current="true"] { background: #fff; }

.zoek { color: #fff; padding: 20px; }
.zoek h2 { color: #fff; border: 0; margin: 0 0 12px; font-size: 19px; padding: 0; }
.zoek label { display: block; font-size: 13px; margin-bottom: 4px; }
.zoek select { width: 100%; padding: 7px; border-radius: 3px; border: 0; margin-bottom: 12px; font: inherit; }

.welkom { display: grid; grid-template-columns: 1fr; gap: 10px; }

/* ---------- car cards ---------- */
.auto-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; margin-top: 12px; }
.auto-kaart { border: 1px solid var(--rand); border-radius: 6px; overflow: hidden; background: #fff; display: flex; flex-direction: column; transition: box-shadow .2s; }
.auto-kaart[hidden] { display: none; }
.auto-kaart:hover { box-shadow: 0 6px 18px rgba(26, 71, 35, .18); }
.auto-kaart .foto { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--groen-bleek); }
.auto-kaart .foto img { width: 100%; height: 100%; object-fit: cover; }
.auto-kaart .info { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.auto-kaart h3 { margin: 0; font-size: 17px; }
.auto-kaart h3 a { text-decoration: none; color: var(--groen-donker); }
.auto-kaart .kenmerken { color: var(--tekst-licht); font-size: 13px; margin: 0; }
.auto-kaart .onder { margin-top: auto; padding-top: 8px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.prijs { font-weight: 700; color: var(--groen); font-size: 14px; }

.label {
  position: absolute; top: 12px; left: -34px; transform: rotate(-45deg);
  width: 130px; text-align: center; font-size: 12px; font-weight: 700; letter-spacing: 1px;
  padding: 3px 0; color: #fff; text-transform: uppercase; box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
}
.label.sold { background: var(--rood); }
.label.beschikbaar { background: var(--groen-mid); }

.filters { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: end; background: var(--groen-bleek); padding: 14px 16px; border-radius: 6px; }
.filters label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 3px; }
.filters select { padding: 7px; border: 1px solid var(--groen-licht); border-radius: 3px; font: inherit; min-width: 170px; background: #fff; }
.filters .aantal { margin-left: auto; color: var(--tekst-licht); font-size: 14px; }
.geen-resultaat { padding: 20px; color: var(--tekst-licht); }

/* ---------- car detail ---------- */
.auto-detail { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 28px; align-items: start; }
.galerij .hoofdfoto { position: relative; overflow: hidden; border-radius: 6px; background: #111; aspect-ratio: 4 / 3; }
.galerij .hoofdfoto img { width: 100%; height: 100%; object-fit: contain; }
.galerij .hoofdfoto button { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0, 0, 0, .45); color: #fff; border: 0; width: 42px; height: 42px; border-radius: 50%; font-size: 22px; cursor: pointer; }
.galerij .hoofdfoto button:hover { background: rgba(0, 0, 0, .7); }
.galerij .vorige { left: 10px; }
.galerij .volgende { right: 10px; }
.galerij .teller { position: absolute; bottom: 8px; right: 10px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 12px; padding: 2px 8px; border-radius: 10px; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; margin-top: 10px; padding: 0; list-style: none; }
.thumbs button { padding: 0; border: 2px solid transparent; border-radius: 4px; overflow: hidden; cursor: pointer; background: none; display: block; width: 100%; aspect-ratio: 4 / 3; }
.thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.thumbs button[aria-current="true"] { border-color: var(--groen); }

.spec-kaart { border: 1px solid var(--rand); border-radius: 6px; overflow: hidden; }
.spec-kaart .kop { background: var(--groen-mid); color: #fff; padding: 10px 14px; font-weight: 700; font-size: 16px; display: flex; justify-content: space-between; align-items: center; }
.status { font-size: 12px; padding: 2px 8px; border-radius: 10px; background: #fff; color: var(--groen); text-transform: uppercase; letter-spacing: .5px; }
.status.sold { background: var(--rood); color: #fff; }
.spec-kaart dl { margin: 0; padding: 6px 14px 10px; display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; }
.spec-kaart dt { color: var(--tekst-licht); font-size: 14px; }
.spec-kaart dd { margin: 0; font-weight: 600; font-size: 14px; }
.spec-kaart .acties { padding: 0 14px 14px; }
.opties { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.opties li { background: var(--groen-bleek); border: 1px solid var(--rand); border-radius: 14px; padding: 2px 11px; font-size: 13px; }

/* ---------- compare table ---------- */
.tabel-wrap { overflow-x: auto; border: 1px solid var(--rand); border-radius: 6px; }
table.vergelijk { border-collapse: collapse; width: 100%; min-width: 760px; font-size: 14px; }
.vergelijk th, .vergelijk td { padding: 9px 10px; border-bottom: 1px solid var(--rand); text-align: left; vertical-align: top; }
.vergelijk thead th { background: var(--groen-mid); color: #fff; }
.vergelijk thead th a { color: #fff; }
.vergelijk tbody th { background: var(--groen-bleek); white-space: nowrap; color: var(--groen-donker); }
.vergelijk img { width: 120px; border-radius: 4px; }

/* ---------- forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.form-rij { margin-bottom: 14px; }
.form-rij.vol { grid-column: 1 / -1; }
.form-rij label { display: block; font-weight: 600; margin-bottom: 4px; font-size: 14px; }
.form-rij input, .form-rij textarea {
  width: 100%; border: 1px solid var(--groen-licht); border-radius: 4px; padding: 9px;
  font: 15px "Segoe UI", system-ui, Arial, sans-serif; color: #222; background: #fff;
}
.form-rij input:focus, .form-rij textarea:focus { outline: 2px solid rgba(49, 89, 57, .35); border-color: var(--groen-mid); }
.form-rij textarea { min-height: 150px; resize: vertical; }
.verplicht { color: var(--rood); }
.hp-veld { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.melding { padding: 10px 14px; border-radius: 4px; margin-bottom: 16px; }
.melding[hidden] { display: none; }
.melding.ok { background: #eef7ea; border: 1px solid #9ccc85; color: #2f5d1c; }
.melding.fout { background: #fdf0ec; border: 1px solid #e3a08a; color: #9a3a1c; }
.noscript-melding { background: var(--groen-bleek); padding: 10px 14px; margin-bottom: 14px; }
.privacy { font-size: 13px; color: var(--tekst-licht); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.7fr; gap: 36px; }
.contactblok { background: var(--groen-bleek); border-radius: 6px; padding: 18px; }
.contactblok h2 { margin-top: 0; }

/* ---------- footer ---------- */
.site-footer { background: var(--groen-donker); color: #cfd9d1; font-size: 14px; }
.footer-kolommen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 26px 32px 10px; }
.site-footer h2 { color: #fff; border: 0; font-size: 15px; margin: 0 0 8px; padding: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; line-height: 1.9; }
.site-footer a { color: #fff; }
.footer-onder { border-top: 1px solid rgba(255, 255, 255, .12); padding: 12px 32px; font-size: 13px; color: #9fb2a3; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .slider { border-width: 0; }
  .auto-detail { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .site-header { height: 110px; background-size: auto 110px; background-position: right -120px top; }
  .site-header .logo { top: 14px; left: 16px; }
  .site-header .logo img { width: 110px; height: auto; }
  main { padding: 22px 16px 34px; }
  h1 { font-size: 24px; }
  .contact-grid, .form-grid, .footer-kolommen { grid-template-columns: 1fr; }
  .footer-kolommen, .footer-onder { padding-left: 16px; padding-right: 16px; }
  .filters .aantal { margin-left: 0; width: 100%; }

  /* mobile dropdown menu */
  .menu-knop {
    display: flex; align-items: center; gap: 12px; width: 100%;
    background: none; border: 0; padding: 13px 16px;
    font: 600 15px "Segoe UI", system-ui, Arial, sans-serif; color: #fff; cursor: pointer;
  }
  .menu-icoon, .menu-icoon::before, .menu-icoon::after {
    display: block; width: 20px; height: 2px; background: currentColor;
    transition: transform .2s ease, background-color .2s ease;
  }
  .menu-icoon { position: relative; }
  .menu-icoon::before, .menu-icoon::after { content: ""; position: absolute; left: 0; }
  .menu-icoon::before { top: -6px; }
  .menu-icoon::after { top: 6px; }
  .nav.open .menu-icoon { background: transparent; }
  .nav.open .menu-icoon::before { transform: translateY(6px) rotate(45deg); }
  .nav.open .menu-icoon::after { transform: translateY(-6px) rotate(-45deg); }

  .nav > ul { display: block; padding: 0; }
  .js .nav > ul { display: none; }
  .js .nav.open > ul {
    display: block; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--groen-donker); box-shadow: 0 10px 18px rgba(0, 0, 0, .3); z-index: 30;
  }
  html:not(.js) .menu-knop { display: none; }
  .nav > ul > li { border-top: 1px solid rgba(255, 255, 255, .1); }
  .nav a { padding: 13px 16px; font-size: 15px; }
  .nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--groen-licht); }
}

@media (prefers-reduced-motion: reduce) {
  .slider img, .menu-icoon, .menu-icoon::before, .menu-icoon::after { transition: none; }
}
