/*
  Losse pagina's van het proefdesign DTM Collectibles (/collectie/ en /toevoegen/).
  Zelfde tokens als theme.css van de Next-site, zonder build-stap: gewone CSS.
*/
:root {
  --kleur-achtergrond: #d7dcc9;
  --kleur-achtergrond-zacht: #c9d1bf;
  --kleur-oppervlak: #f1f2e9;
  --kleur-tekst: #101f1c;
  --kleur-tekst-zacht: #4c5b55;
  --kleur-primair: #002d28;
  --kleur-primair-licht: #0f453d;
  --kleur-primair-donker: #001d19;
  --kleur-secundair: #8a6a25;
  --kleur-accent: #d3a454;
  --kleur-accent-zacht: #efe3c6;
  --kleur-lijn: rgba(16, 31, 28, 0.1);
  --tint-1: #e3dcc4;
  --tint-3: #e4e7db;
  --kleur-donker: #002d28;
  --kleur-donker-tekst: #e9ecdf;
  --radius-sectie: 16px;
  --radius-kaart: 10px;
  --radius-beeld: 8px;
  --radius-knop: 8px;
  --radius-klein: 6px;
  --schaduw-kaart: 0 26px 60px -26px rgba(16, 31, 28, 0.45);
  --schaduw-kaart-hover: 0 34px 70px -26px rgba(16, 31, 28, 0.55);
  --font-kop: "Newsreader", Georgia, "Times New Roman", serif;
  --font-tekst: "Albert Sans", "Helvetica Neue", Arial, sans-serif;
  --font-cijfer: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--kleur-achtergrond); color: var(--kleur-tekst); font-family: var(--font-tekst); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
.cijfer { font-family: var(--font-cijfer); font-variant-numeric: tabular-nums; }
.kop { font-family: var(--font-kop); font-weight: 500; letter-spacing: -0.02em; line-height: 1.02; margin: 0; text-wrap: balance; }
.h1 { font-size: clamp(40px, 5.2vw, 76px); }
.h2 { font-size: clamp(32px, 3.6vw, 52px); }
.h3 { font-size: clamp(20px, 1.6vw, 24px); line-height: 1.15; letter-spacing: -0.01em; }
.markeer { color: var(--kleur-secundair); }
.zacht { color: var(--kleur-tekst-zacht); }
.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 48px); }
.visueel-verborgen { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Label met stip, zoals op de homepage */
.label { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--kleur-tekst); }
.label::before { content: ""; width: 8px; height: 8px; border-radius: 9999px; background: var(--kleur-accent); }
.label.licht { color: var(--kleur-donker-tekst); }

/* Knoppen */
.knop { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: var(--radius-knop); padding: 15px 24px; font-weight: 600; font-size: 15px; line-height: 1; cursor: pointer; transition: translate 220ms ease, background-color 220ms ease, color 220ms ease, box-shadow 220ms ease, opacity 220ms ease; }
.knop:hover { translate: 0 -2px; }
.knop:focus-visible { outline: 3px solid var(--kleur-accent); outline-offset: 3px; }
.knop:disabled { opacity: 0.55; cursor: wait; translate: none; }
.knop-goud { background: var(--kleur-accent); color: var(--kleur-primair-donker); }
.knop-goud:hover { background: #dcb267; }
.knop-diep { background: var(--kleur-primair); color: var(--kleur-donker-tekst); }
.knop-diep:hover { background: var(--kleur-primair-licht); }
.knop-lijn { background: transparent; color: var(--kleur-tekst); box-shadow: inset 0 0 0 1px rgba(16, 31, 28, 0.35); }
.knop-lijn:hover { background: var(--kleur-oppervlak); }
.knop-lijn.licht { color: var(--kleur-donker-tekst); box-shadow: inset 0 0 0 1px rgba(233, 236, 223, 0.45); }
.knop-lijn.licht:hover { background: rgba(233, 236, 223, 0.08); }
.pijl { width: 16px; height: 16px; flex: none; transition: translate 220ms ease; }
.knop:hover .pijl, .tekstlink:hover .pijl { translate: 4px 0; }
.tekstlink { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--kleur-secundair); }
.tekstlink:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Header: de vaste balk die de homepage na scrollen ook krijgt */
.header { position: sticky; top: 0; z-index: 40; background: var(--kleur-primair-donker); color: var(--kleur-donker-tekst); }
.header .binnen { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.header .merk { display: flex; align-items: center; gap: 12px; font-family: var(--font-kop); font-size: 22px; }
.header .merk img { width: 40px; height: 40px; }
.header nav { display: none; gap: 4px; }
.header nav a { padding: 10px 14px; border-radius: var(--radius-klein); font-size: 15px; font-weight: 500; color: var(--kleur-donker-tekst); transition: background-color 200ms ease, color 200ms ease; }
.header nav a:hover { background: rgba(233, 236, 223, 0.08); }
.header nav a[aria-current="page"] { color: var(--kleur-accent); }
.header .cta { display: none; }
@media (min-width: 900px) { .header nav, .header .cta { display: inline-flex; } .header .binnen { height: 76px; } }

/* Paginakop */
.paginakop { padding: clamp(40px, 6vw, 80px) 0 clamp(24px, 3vw, 40px); }
.paginakop .intro { max-width: 60ch; margin: 18px 0 0; color: var(--kleur-tekst-zacht); }

/* Autokaarten, zoals de collectie op de homepage */
.raster { display: grid; grid-template-columns: 1fr; gap: 24px; padding-bottom: clamp(48px, 6vw, 96px); }
@media (min-width: 560px) { .raster { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 820px) { .raster { grid-template-columns: repeat(3, 1fr); } }
.raster .auto { max-width: 372px; }
.auto { display: flex; }
.auto-kaart { position: relative; display: flex; flex-direction: column; width: 100%; text-align: left; padding: 0; border: 0; overflow: hidden; border-radius: var(--radius-kaart); background: var(--kleur-oppervlak); box-shadow: var(--schaduw-kaart); cursor: pointer; transition: translate 250ms ease, box-shadow 250ms ease; }
.auto-kaart:hover { translate: 0 -3px; box-shadow: var(--schaduw-kaart-hover); }
.auto-kaart:focus-visible { outline: 3px solid var(--kleur-accent); outline-offset: 3px; }
.auto-kaart img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.auto-tekst { display: flex; flex: 1; flex-direction: column; padding: 20px; }
.auto-merk { font-size: 13px; font-weight: 600; letter-spacing: 0.02em; color: var(--kleur-secundair); }
.auto-naam { margin-top: 4px; min-height: 2.3em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; padding-right: 8px; }
.auto-spec { display: flex; align-items: center; gap: 12px; margin: 8px 0 16px; font-size: 14px; color: var(--kleur-tekst-zacht); }
.auto-spec .stip { width: 4px; height: 4px; border-radius: 9999px; background: var(--kleur-accent); }
.auto-prijs { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding: 12px 16px; border-radius: var(--radius-klein); background: var(--tint-1); color: var(--kleur-secundair); }
.auto-prijs .cijfer { font-size: 20px; }
.auto-kaart:hover .auto-prijs .pijl { translate: 4px 0; }
.chip-nieuw { position: absolute; left: 16px; top: 16px; z-index: 2; display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: var(--radius-klein); background: var(--kleur-accent); color: var(--kleur-primair-donker); font-size: 13px; font-weight: 600; }

/* Detailweergave */
dialog.detail { width: min(1080px, calc(100% - 24px)); max-height: calc(100vh - 24px); margin: auto; padding: 0; border: 0; border-radius: var(--radius-sectie); background: var(--kleur-oppervlak); color: var(--kleur-tekst); box-shadow: 0 40px 120px -30px rgba(0, 29, 25, 0.7); overflow: hidden; }
dialog.detail::backdrop { background: rgba(0, 29, 25, 0.72); backdrop-filter: blur(6px); }
.detail-binnen { display: grid; grid-template-columns: 1fr; max-height: calc(100vh - 24px); overflow: auto; }
.detail-foto { position: relative; background: var(--kleur-primair-donker); }
.detail-foto img { width: 100%; height: auto; aspect-ratio: 16 / 9; max-height: 520px; object-fit: cover; object-position: 50% 60%; }
.detail-sluit { position: absolute; right: 16px; top: 16px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 9999px; background: rgba(0, 29, 25, 0.75); color: var(--kleur-donker-tekst); cursor: pointer; transition: background-color 200ms ease, color 200ms ease; }
.detail-sluit:hover { background: var(--kleur-accent); color: var(--kleur-primair-donker); }
.detail-inhoud { padding: clamp(24px, 3vw, 40px); }
.detail-kop { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; }
.detail-prijs { display: inline-flex; align-items: baseline; gap: 6px; padding: 12px 18px; border-radius: var(--radius-klein); background: var(--tint-1); color: var(--kleur-secundair); font-size: 24px; }
.specblok { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 28px; }
@media (min-width: 720px) { .specblok { grid-template-columns: repeat(4, 1fr); } }
.spec { padding: 14px 16px; border-radius: var(--radius-kaart); background: var(--tint-3); border: 1px solid var(--kleur-lijn); }
.spec dt { font-size: 12px; font-weight: 600; letter-spacing: 0.03em; color: var(--kleur-tekst-zacht); }
.spec dd { margin: 4px 0 0; font-size: 17px; }
.spec dd.leeg { color: var(--kleur-tekst-zacht); }
.verhaal { max-width: 68ch; margin-top: 32px; }
.verhaal h3 { margin: 0 0 12px; }
.verhaal p { margin: 0 0 1em; }
.verhaal p:first-of-type { font-family: var(--font-kop); font-size: 22px; line-height: 1.25; color: var(--kleur-primair); }
.detail-acties { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Formulier op /toevoegen/ */
.formkaart { border-radius: var(--radius-sectie); background: var(--kleur-oppervlak); border: 1px solid var(--kleur-lijn); box-shadow: var(--schaduw-kaart); padding: clamp(20px, 3vw, 36px); margin-bottom: 24px; }
.formkaart h2 { margin: 0 0 6px; }
.formkaart .uitleg { margin: 0 0 20px; color: var(--kleur-tekst-zacht); max-width: 62ch; }
.ophaalrij { display: flex; flex-wrap: wrap; gap: 12px; }
.ophaalrij input { flex: 1 1 260px; }
.veld { display: flex; flex-direction: column; gap: 6px; }
.veld label { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: 0.02em; color: var(--kleur-tekst-zacht); }
input[type="text"], input[type="number"], select, textarea { width: 100%; padding: 13px 14px; border-radius: var(--radius-klein); border: 1px solid rgba(16, 31, 28, 0.2); background: #fbfbf7; color: var(--kleur-tekst); transition: border-color 200ms ease, box-shadow 200ms ease; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; border-color: var(--kleur-primair); box-shadow: 0 0 0 3px rgba(211, 164, 84, 0.35); }
.velden { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .velden { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .velden { grid-template-columns: repeat(4, 1fr); } }
.velden .breed { grid-column: 1 / -1; }
@media (min-width: 640px) { .velden .half { grid-column: span 2; } }
.bron { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 9999px; font-size: 11px; font-weight: 600; letter-spacing: 0.02em; text-transform: none; }
.bron[data-bron="automatisch"] { background: var(--kleur-accent-zacht); color: var(--kleur-secundair); }
.bron[data-bron="handmatig"] { background: var(--tint-3); color: var(--kleur-tekst-zacht); border: 1px solid var(--kleur-lijn); }
.melding { margin-top: 16px; padding: 14px 16px; border-radius: var(--radius-kaart); background: var(--tint-3); border: 1px solid var(--kleur-lijn); color: var(--kleur-tekst); }
.melding[data-soort="fout"] { background: #f3e2dc; border-color: #d9a79a; }
.melding[data-soort="goed"] { background: var(--kleur-accent-zacht); border-color: #d8c08f; }
.melding[hidden] { display: none; }
textarea.verhaalveld { min-height: 320px; line-height: 1.6; resize: vertical; }
.verhaal-acties { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 12px; }
.woorden { font-size: 13px; color: var(--kleur-tekst-zacht); }
.upload { display: grid; grid-template-columns: 1fr; gap: 20px; align-items: start; }
@media (min-width: 720px) { .upload { grid-template-columns: 1fr 1fr; } }
.dropzone { display: grid; place-items: center; gap: 8px; min-height: 200px; padding: 24px; text-align: center; border-radius: var(--radius-kaart); border: 2px dashed rgba(16, 31, 28, 0.25); background: var(--tint-3); color: var(--kleur-tekst-zacht); cursor: pointer; transition: border-color 200ms ease, background-color 200ms ease; }
.dropzone:hover, .dropzone[data-sleep="ja"] { border-color: var(--kleur-accent); background: var(--kleur-accent-zacht); }
.dropzone input { display: none; }
.preview { border-radius: var(--radius-beeld); overflow: hidden; background: var(--kleur-primair-donker); aspect-ratio: 3 / 2; display: grid; place-items: center; color: var(--kleur-donker-tekst); font-size: 14px; }
.preview img { width: 100%; height: 100%; object-fit: cover; }
.opslaanrij { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding-bottom: clamp(48px, 6vw, 96px); }

/* Footer, klein */
.footer { margin-top: 24px; padding: 32px 0; border-top: 1px solid var(--kleur-lijn); color: var(--kleur-tekst-zacht); font-size: 14px; }
.footer .binnen { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

@media (prefers-reduced-motion: reduce) {
  .knop, .pijl, .auto-kaart { transition: none; }
}
