/* Occasioncheck. Het idee: de rode pen op je advertentie. Kentekengeel, inkt en rood, geen afgeronde kaartjes. */
:root {
  --geel: #F7C600; --inkt: #14171A; --rood: #D7261E; --lucht: #E9ECEE; --lijn: #C9CED2; --grijs: #565E66; --wit: #fff; --nl: #1F3F94;
  --kop: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --tekst: "Barlow", Arial, sans-serif;
  --pen: "Reenie Beanie", "Bradley Hand", cursive;
  --rand: clamp(16px, 4vw, 64px);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--wit); color: var(--inkt); font: 400 18px/1.55 var(--tekst); overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--inkt); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--rood); }
h1, h2, h3 { font-family: var(--kop); font-weight: 800; text-transform: uppercase; line-height: .94; letter-spacing: -.005em; margin: 0; }
h2 { font-size: clamp(40px, 6.2vw, 92px); }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--rood); outline-offset: 2px; }

/* kopbalk met het kenteken als logo */
.balk { position: sticky; top: 0; z-index: 20; background: var(--wit); border-bottom: 2px solid var(--inkt); }
.balk .binnen { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px var(--rand); }
.plaat { display: inline-flex; align-items: stretch; background: var(--geel); color: var(--inkt); border: 2px solid var(--inkt); border-radius: 4px; font: 800 clamp(19px, 2.4vw, 25px)/1 var(--kop); letter-spacing: .05em; text-decoration: none; text-transform: uppercase; }
.plaat:hover { color: var(--inkt); }
.plaat b { background: var(--nl); color: #fff; font-size: .52em; font-weight: 700; padding: 0 5px; display: flex; align-items: flex-end; padding-bottom: 3px; }
.plaat span { padding: 6px 9px 5px; }
.balk nav { display: flex; align-items: center; gap: clamp(10px, 2vw, 24px); }
.balk nav a { font-weight: 600; font-size: 16px; text-decoration: none; }
.knop { display: inline-block; background: var(--inkt); color: var(--wit); border: 2px solid var(--inkt); padding: 15px 24px 14px; font: 700 21px/1 var(--kop); letter-spacing: .03em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background .15s, color .15s; }
.knop::after { content: " \2192"; }
.knop:hover { background: var(--geel); color: var(--inkt); }
.knop.klein { padding: 9px 12px 8px; font-size: 18px; color: var(--wit); white-space: nowrap; }
.knop.klein:hover { color: var(--inkt); }
.knop.licht { background: transparent; color: var(--inkt); }
.knop.licht:hover { background: var(--inkt); color: var(--wit); }

/* opening: geel blok naast de foto, samen precies één scherm */
.opening { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: max(560px, calc(100vh - 118px)); }
.opening .blok { background: var(--geel); padding: clamp(28px, 4vw, 64px) clamp(24px, 3vw, 48px) clamp(28px, 4vw, 64px) var(--rand); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.opening h1 { font-size: clamp(50px, 6.5vw, 108px); }
.opening .groot { font-size: clamp(19px, 1.7vw, 24px); font-weight: 500; max-width: 30em; margin: 20px 0 26px; }
.opening .foto { overflow: hidden; background: var(--lucht); position: relative; }
.opening .foto img { position: absolute; inset: 0; width: 100%; height: 116%; object-fit: cover; object-position: 44% 50%; }

/* de nagekeken advertentie, groot in beeld */
.nagekeken { background: var(--lucht); padding: clamp(48px, 7vw, 104px) var(--rand); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.uitleg p { max-width: 30em; }
.uitleg h2 { margin-bottom: 20px; }

/* de advertentie op papier */
.advert { background: var(--wit); border: 1px solid var(--lijn); box-shadow: 12px 14px 0 rgba(20,23,26,.14); padding: clamp(18px, 2.6vw, 38px); transform: rotate(-1deg); }
.advert .titel { font: 700 clamp(25px, 3vw, 44px)/1.42 var(--kop); margin: 0 0 8px; }
.advert dl { margin: 0; font-size: clamp(16px, 1.45vw, 20px); }
.advert .rij { display: grid; grid-template-columns: clamp(104px, 11vw, 160px) minmax(84px, auto) minmax(0, 1fr); gap: 16px; align-items: baseline; border-top: 1px dashed var(--lijn); padding: 11px 0 9px; }
.advert dt { color: var(--grijs); }
.advert dd { margin: 0; font-weight: 600; white-space: nowrap; }
.fout { position: relative; display: inline-block; white-space: nowrap; }
.fout svg { position: absolute; left: -9px; top: -6px; width: calc(100% + 18px); height: calc(100% + 12px); overflow: visible; pointer-events: none; }
.fout path { fill: none; stroke: var(--rood); stroke-width: 2.8; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; }
.noot { font: 400 clamp(26px, 2.6vw, 36px)/.9 var(--pen); color: var(--rood); opacity: 0; transform: translateX(-4px); }
.titelnoot { display: block; margin: 0 0 14px; }
.in .fout path { animation: teken .65s cubic-bezier(.5,.1,.3,1) forwards; animation-delay: var(--d, 0s); }
.in .noot { animation: noot .4s ease-out forwards; animation-delay: calc(var(--d, 0s) + .5s); }
@keyframes teken { to { stroke-dashoffset: 0; } }
@keyframes noot { to { opacity: 1; transform: none; } }

/* lopende band met echte vondsten */
.band { background: var(--inkt); color: var(--geel); overflow: hidden; white-space: nowrap; padding: 13px 0 11px; font: 700 clamp(22px, 2.6vw, 34px)/1 var(--kop); text-transform: uppercase; letter-spacing: .02em; }
.band div { display: inline-block; animation: band 60s linear infinite; }
.band span { padding-right: 46px; }
.band span::after { content: "\00d7"; color: var(--rood); padding-left: 46px; }
@keyframes band { to { transform: translateX(-50%); } }

/* secties */
.sectie { padding: clamp(56px, 8vw, 120px) var(--rand); }
.los { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 5vw, 80px); align-items: center; padding: clamp(56px, 8vw, 120px) var(--rand) clamp(56px, 8vw, 120px) 0; }
.los .beeld { overflow: hidden; aspect-ratio: 3 / 2; }
.los .beeld img { width: 100%; height: 116%; object-fit: cover; }
.los.om { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); padding: clamp(56px, 8vw, 120px) 0 clamp(56px, 8vw, 120px) var(--rand); }
.los .tekst p { max-width: 32em; }
.los h2 { margin-bottom: 20px; }

/* wat ik nakijk: als een keuringslijst */
.lijst { border-top: 3px solid var(--inkt); margin-top: clamp(24px, 3vw, 44px); }
.punt { display: grid; grid-template-columns: 44px minmax(0, 4fr) minmax(0, 7fr); gap: clamp(10px, 2vw, 32px); align-items: baseline; border-bottom: 1px solid var(--inkt); padding: clamp(14px, 1.6vw, 22px) 8px; transition: background .15s; }
.punt:hover { background: var(--geel); }
.punt h3 { font-size: clamp(27px, 3vw, 42px); }
.punt p { margin: 0; max-width: 42em; }
.vink { width: 30px; height: 30px; align-self: center; }
.vink path { fill: none; stroke: var(--rood); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.punt.in .vink path { animation: teken .4s ease-out .1s forwards; }

/* bewijs op de foto van het terrein */
.bewijs { position: relative; color: var(--wit); overflow: hidden; min-height: clamp(460px, 62vw, 760px); display: flex; align-items: flex-end; background: var(--inkt); }
.bewijs > img { position: absolute; inset: -2% 0 auto 0; width: 100%; height: 120%; object-fit: cover; opacity: .9; }
.bewijs .vak { position: relative; background: var(--inkt); padding: clamp(24px, 3.5vw, 48px) var(--rand); width: min(100%, 900px); }
.tellers { display: flex; flex-wrap: wrap; gap: clamp(20px, 4vw, 56px); }
.teller b { display: block; font: 800 clamp(64px, 9vw, 132px)/.86 var(--kop); color: var(--geel); font-variant-numeric: tabular-nums; }
.teller span { font-size: 17px; }
.bewijs p { margin: 18px 0 0; max-width: 40em; font-size: 16px; color: #D5D9DD; }

/* stappen */
.stappen { list-style: none; margin: 24px 0 26px; padding: 0; counter-reset: stap; }
.stappen li { counter-increment: stap; display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 8px; padding: 14px 0; border-top: 1px solid var(--inkt); }
.stappen li::before { content: counter(stap); font: 800 72px/.8 var(--kop); color: var(--rood); }
.stappen b { display: block; font: 700 27px/1.05 var(--kop); text-transform: uppercase; margin-bottom: 4px; }

/* wie */
.wie { background: var(--lucht); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 72px); align-items: center; padding: clamp(48px, 6vw, 90px) var(--rand); }
.wie img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 40% 22%; }
.wie h2 { margin-bottom: 18px; }
.wie p { max-width: 34em; }

/* vragen */
.vraag { border-bottom: 1px solid var(--inkt); }
.vraag summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; font: 700 clamp(24px, 2.3vw, 31px)/1.1 var(--kop); text-transform: uppercase; padding: 16px 0; }
.vraag summary::-webkit-details-marker { display: none; }
.vraag summary::after { content: "+"; color: var(--rood); font-size: 1.3em; line-height: .8; }
.vraag[open] summary::after { content: "\2212"; }
.vraag p { max-width: 42em; }

/* aanvraag */
.aanvraag { background: var(--geel); padding: clamp(48px, 7vw, 104px) var(--rand); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.aanvraag p { max-width: 30em; font-size: 19px; font-weight: 500; }
.aanvraag h2 { margin-bottom: 18px; }
.formulier { background: var(--wit); border: 2px solid var(--inkt); padding: clamp(20px, 2.6vw, 34px); }
.formulier label { display: block; font-weight: 600; font-size: 16px; margin-bottom: 14px; }
.formulier input:not([type=checkbox]) { display: block; width: 100%; margin-top: 5px; padding: 12px; border: 2px solid var(--inkt); border-radius: 0; font: 400 18px var(--tekst); background: var(--wit); }
.formulier input:focus { outline: 3px solid var(--geel); outline-offset: 0; }
.formulier .vinkje { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.formulier .vinkje input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--rood); }
.formulier .knop { width: 100%; text-align: center; }
.verborgen { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.klein { font-size: 15px; color: var(--grijs); }
.melding { padding: 12px 16px; border: 2px solid var(--inkt); font-weight: 600; }
.melding.fout-m { background: #FBE4E2; border-color: var(--rood); }
.melding.goed { background: var(--geel); }

/* gewone pagina's: aanmelden, account, voorwaarden, rapport */
.smal { max-width: 700px; }
.pagina { padding: clamp(36px, 5vw, 72px) var(--rand) clamp(56px, 7vw, 96px); }
.pagina h1 { font-size: clamp(44px, 6vw, 84px); margin-bottom: 18px; }
.pagina h2 { font-size: clamp(30px, 3.4vw, 44px); margin: 26px 0 10px; }
.kolommen { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(20px, 3vw, 44px); align-items: start; }
.vak { border: 2px solid var(--inkt); padding: clamp(18px, 2vw, 26px); margin-bottom: 20px; background: var(--wit); }
.vak h2 { margin-top: 0; }
.tabel { width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-size: 16px; }
.tabel th, .tabel td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--lijn); }
.tabel th { border-bottom: 2px solid var(--inkt); }
.rapport { max-width: 780px; }
details.vak summary { cursor: pointer; font-weight: 600; }

.voet { background: var(--inkt); color: #D5D9DD; padding: 30px var(--rand); font-size: 15px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; }
.voet p { margin: 0; }
.voet a { color: var(--wit); }
.voet a:hover { color: var(--geel); }

@media (max-width: 880px) {
  body { font-size: 17px; }
  .opening { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .opening .foto { order: -1; height: 42vh; min-height: 240px; }
  .opening .blok { padding: 28px var(--rand) 32px; }
  .opening h1 { font-size: clamp(46px, 13.5vw, 96px); }
  .nagekeken { grid-template-columns: minmax(0, 1fr); }
  .advert { box-shadow: 7px 8px 0 rgba(20,23,26,.14); transform: rotate(-.6deg); }
  .advert .rij { grid-template-columns: 112px minmax(0, 1fr); gap: 4px 10px; }
  .advert .rij .noot { grid-column: 1 / -1; }
  .los, .los.om { grid-template-columns: minmax(0, 1fr); padding: clamp(40px, 8vw, 64px) 0; }
  .los .tekst { padding: 0 var(--rand); }
  .los.om .beeld { order: -1; }
  .punt { grid-template-columns: 34px minmax(0, 1fr); }
  .punt p { grid-column: 2; }
  .wie, .aanvraag, .kolommen { grid-template-columns: minmax(0, 1fr); }
  .wie img { max-width: 320px; }
  .bewijs { min-height: 760px; }
  .bewijs > img { height: 70%; }
  .balk nav a:not(.knop) { font-size: 15px; }
}
@media (max-width: 460px) {
  .plaat { font-size: 17px; letter-spacing: .03em; }
  .plaat span { padding: 5px 6px 4px; }
  .balk .binnen { gap: 8px; }
  .balk nav { gap: 8px; }
  .balk nav a:not(.knop) { font-size: 14px; }
  .knop.klein { padding: 8px 8px 7px; font-size: 15px; letter-spacing: 0; }
}
@media (max-width: 350px) {
  .plaat b { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .band div { animation: none; }
  .fout path, .vink path { stroke-dashoffset: 0; animation: none !important; }
  .noot { opacity: 1; transform: none; animation: none !important; }
}
