/* VSME-scan. Huisstijl van valuechainvoices.com: Lora (koppen), Archivo (tekst), groen #27543B. */

@font-face { font-family: "Archivo"; font-weight: 400; font-display: swap; src: url("/scan/assets/archivo-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 600; font-display: swap; src: url("/scan/assets/archivo-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 700; font-display: swap; src: url("/scan/assets/archivo-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Lora"; font-weight: 400; font-display: swap; src: url("/scan/assets/lora-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Lora"; font-weight: 400; font-style: italic; font-display: swap; src: url("/scan/assets/lora-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Lora"; font-weight: 600; font-display: swap; src: url("/scan/assets/lora-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Lora"; font-weight: 700; font-display: swap; src: url("/scan/assets/lora-700-normal.woff2") format("woff2"); }

:root {
  --groen: #27543B;
  --bos: #1C3D2C;
  --tekst: #3A463D;
  --grijs: #46514A;
  --koper: #A86B43;
  --zand: #DCB48F;
  --creme: #F3EFE3;
  --papier: #FAF7EF;
  --lijn: #E1DBC8;
  --mint: #E7ECDF;
  --rood: #A6452E;
  --oranje: #B9770E;
}

* { box-sizing: border-box; }
html { font-family: "Archivo", system-ui, sans-serif; color: var(--tekst); background: var(--creme); font-size: 17px; line-height: 1.6; }
body { margin: 0; }
h1, h2, h3, h4 { font-family: "Lora", Georgia, serif; color: var(--bos); line-height: 1.2; font-weight: 600; }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); margin: .2em 0 .5em; }
h2 { font-size: 1.6rem; margin: 1.6em 0 .6em; }
h3 { font-size: 1.2rem; margin: 1.2em 0 .4em; }
p { margin: 0 0 1em; }
a { color: var(--groen); }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; }

.label {
  font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--koper); margin: 0 0 .4em;
}
.klein { font-size: .85rem; color: var(--grijs); }

/* ---------------------------------------------------------------- balk en voet */
.balk {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  max-width: 960px; margin: 0 auto; padding: 18px 20px;
}
.merk img { display: block; height: 40px; width: auto; }
.taal { display: flex; gap: 4px; }
.taal button {
  border: 1px solid var(--lijn); background: var(--papier); border-radius: 999px; padding: 4px 12px; cursor: pointer; font-size: .85rem;
}
.taal button[aria-pressed="true"] { background: var(--groen); border-color: var(--groen); color: #fff; }
.voet { max-width: 960px; margin: 40px auto 0; padding: 24px 20px 40px; border-top: 1px solid var(--lijn); font-size: .85rem; color: var(--grijs); }

main { max-width: 760px; margin: 0 auto; padding: 0 20px; }

/* ---------------------------------------------------------------- intro */
.intro { padding: 30px 0 10px; }
.intro .lead { font-size: 1.15rem; }
.belofte { list-style: none; padding: 0; margin: 1.4em 0; display: grid; gap: 10px; }
.belofte li { background: var(--papier); border: 1px solid var(--lijn); border-left: 4px solid var(--groen); border-radius: 6px; padding: 12px 16px; }
.belofte strong { color: var(--bos); }

/* ---------------------------------------------------------------- knoppen */
.knop {
  display: inline-block; border: 0; border-radius: 999px; padding: 12px 26px; cursor: pointer;
  background: var(--groen); color: #fff; font-weight: 600; text-decoration: none;
}
.knop:hover { background: var(--bos); }
.knop.tweede { background: transparent; color: var(--groen); border: 1.5px solid var(--groen); }
.knop.tweede:hover { background: var(--mint); }
.knoppen { display: flex; gap: 12px; flex-wrap: wrap; justify-content: space-between; margin: 28px 0 10px; }

/* ---------------------------------------------------------------- voortgang */
.voortgang { display: flex; gap: 6px; margin: 10px 0 24px; }
.voortgang span { flex: 1; height: 5px; border-radius: 3px; background: var(--lijn); }
.voortgang span.klaar { background: var(--groen); }
.stap-titel { margin-top: 0; }

/* ---------------------------------------------------------------- vragen */
.vraag { background: var(--papier); border: 1px solid var(--lijn); border-radius: 10px; padding: 18px 20px; margin: 0 0 14px; }
.vraag > legend, .vraag > label.titel { font-weight: 600; color: var(--bos); padding: 0; display: block; margin-bottom: 4px; }
fieldset.vraag { min-width: 0; }
/* Legend in het vak zetten in plaats van op de rand (standaardgedrag van browsers). */
fieldset.vraag > legend { float: left; width: 100%; }
fieldset.vraag > legend + * { clear: both; }
.vraag .hint { font-size: .85rem; color: var(--grijs); margin: 0 0 10px; }
.vraag .tip { font-size: .8rem; color: var(--koper); margin: 6px 0 0; }
.opties { display: flex; flex-wrap: wrap; gap: 8px; }
.opties label {
  display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--lijn); background: #fff;
  border-radius: 999px; padding: 7px 14px; cursor: pointer; font-size: .92rem;
}
.opties input { accent-color: var(--groen); margin: 0; }
.opties label:has(input:checked) { border-color: var(--groen); background: var(--mint); color: var(--bos); }
.opties.stapel { flex-direction: column; align-items: stretch; }
.opties.stapel label { border-radius: 8px; }
input[type="text"], input[type="email"], select, textarea {
  width: 100%; border: 1px solid var(--lijn); border-radius: 8px; padding: 10px 12px; background: #fff;
}
textarea { min-height: 84px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible, .opties label:has(input:focus-visible), button:focus-visible, a:focus-visible {
  outline: 3px solid var(--zand); outline-offset: 2px;
}
.vraag.fout { border-color: var(--rood); }
.foutmelding { color: var(--rood); font-size: .9rem; margin: 8px 0 0; }
.module-tag { display: inline-block; font-size: .7rem; font-weight: 700; color: var(--koper); border: 1px solid var(--zand); border-radius: 4px; padding: 0 5px; margin-right: 6px; vertical-align: 1px; }
.sector-hint { background: var(--mint); color: var(--bos); border-radius: 4px; font-size: .72rem; font-weight: 600; padding: 1px 6px; margin-left: 6px; }
.verborgen { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------------------------------------------------------------- rapport */
.rapport-kop { background: var(--groen); color: #fff; border-radius: 12px; padding: 28px; margin: 20px 0 10px; }
.rapport-kop h1, .rapport-kop .label { color: #fff; }
.rapport-kop .label { opacity: .8; }
.rapport-kop p { margin-bottom: 0; }
.score { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-top: 18px; }
.meter { flex: 1 1 220px; height: 12px; background: rgba(255,255,255,.25); border-radius: 6px; overflow: hidden; }
.meter span { display: block; width: 0; height: 100%; background: var(--zand); border-radius: 6px; transition: width .8s ease; }
.klein-wit { font-size: .85rem; opacity: .85; margin-top: 6px; }
.score strong { font-family: "Lora", serif; font-size: 2.2rem; }

.blok { background: var(--papier); border: 1px solid var(--lijn); border-radius: 12px; padding: 6px 24px 18px; margin: 18px 0; }
.blok h2 { margin-top: .9em; }
.lijst-kort { padding-left: 1.1em; }
.lijst-kort li { margin-bottom: .4em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 14px; }
.chip { border-radius: 999px; padding: 5px 12px; font-size: .9rem; background: var(--mint); color: var(--bos); border: 1px solid #cdd8ca; }
.chip.zwak { background: #fff; color: var(--grijs); border-color: var(--lijn); }

table { width: 100%; border-collapse: collapse; margin: 8px 0 14px; font-size: .92rem; }
th { text-align: left; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--grijs); border-bottom: 2px solid var(--groen); padding: 8px 6px; }
td { border-bottom: 1px solid var(--lijn); padding: 9px 6px; vertical-align: top; }
.status { font-weight: 600; white-space: nowrap; }
.status.klaar { color: var(--groen); }
.status.deels { color: var(--oranje); }
.status.ontbreekt { color: var(--rood); }
.status.nvt { color: var(--grijs); font-weight: 400; }
.status::before { content: "●"; margin-right: 6px; }
.status.nvt::before { content: "○"; }

.acties { counter-reset: actie; list-style: none; padding: 0; }
.acties li { counter-increment: actie; position: relative; padding: 0 0 12px 42px; }
.acties li::before {
  content: counter(actie); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%;
  background: var(--groen); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: .85rem;
}
.verhaal { font-family: "Lora", serif; font-size: 1.05rem; line-height: 1.7; color: var(--bos); }
.verhaal p:first-child::first-letter { font-size: 2.6em; float: left; line-height: .9; padding: 4px 8px 0 0; color: var(--groen); }
.citaat { border-left: 4px solid var(--koper); padding: 4px 0 4px 16px; font-style: italic; }
.voorbeeld-label { display: inline-block; background: var(--creme); border: 1px dashed var(--koper); color: var(--koper); border-radius: 6px; padding: 2px 10px; font-size: .78rem; font-weight: 600; margin-bottom: 10px; }
.voice { border-top: 1px solid var(--lijn); padding: 12px 0 4px; }
.voice h3 { margin: 0 0 4px; }
.voice ul { margin: 6px 0 8px; padding-left: 1.1em; color: var(--grijs); }

.cta { background: var(--bos); color: #fff; border-radius: 12px; padding: 24px 26px 10px; margin: 24px 0; }
.cta h2 { color: #fff; margin-top: 0; }
.cta .knop { background: var(--zand); color: var(--bos); }
.cta .knop.tweede { background: transparent; color: #fff; border-color: #fff; }
.contact { background: #fff; border: 1px solid var(--lijn); border-radius: 12px; padding: 20px 22px; margin: 18px 0; }
.contact .rij { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact label { display: block; font-size: .9rem; font-weight: 600; color: var(--bos); margin: 10px 0 4px; }
.contact .toestemming { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; color: var(--tekst); }
.bedankt { background: var(--mint); border-radius: 10px; padding: 14px 18px; color: var(--bos); }

@media (max-width: 600px) {
  html { font-size: 16px; }
  .contact .rij { grid-template-columns: 1fr; }
  .blok { padding: 4px 16px 14px; }
  .rapport-kop { padding: 22px 18px; }
  .knoppen { flex-direction: column-reverse; }
  .knoppen .knop { text-align: center; }
}

/* ---------------------------------------------------------------- printen / PDF */
@media print {
  @page { size: A4; margin: 16mm; }
  html { background: #fff; font-size: 11pt; }
  .balk .taal, .voet, .knoppen, .cta, .contact, .geen-print { display: none !important; }
  main { max-width: none; padding: 0; }
  .blok, .rapport-kop { break-inside: avoid-page; }
  .rapport-kop { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .meter, .meter span, .chip, th { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
