@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --oranje: #F5841F;
  --oranje-licht: #FDE6D0;
  --oranje-staaf: #D8660C;
  --navy: #1D2550;
  --navy-zacht: #3A4170;
  --grijs: #575D78;
  --lijn: #DADCE6;
  --vlak: #F1F2F6;
  --wit: #FFFFFF;
  --stempel: #C62E2E;
  --goed: #1E7F4F;
  --r-groot: 18px;
  --r-klein: 8px;
  --font: "Archivo", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--navy);
  background: var(--wit);
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1140px; margin: 0 auto; padding-inline: 20px; }
a { color: var(--navy); text-decoration-color: var(--oranje); text-decoration-thickness: 2px; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-stretch: 112%; font-weight: 800; line-height: 1.08; letter-spacing: -0.015em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); max-width: 14ch; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.35rem; }
.sectie-lead { color: var(--grijs); max-width: 62ch; margin: 0 0 2rem; }
.klein { font-size: .9rem; color: var(--grijs); }

/* knoppen */
.knop {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: inherit; font-weight: 700; font-stretch: 105%;
  background: var(--oranje); color: var(--navy);
  border: 0; border-radius: 999px; padding: .85em 1.6em;
  text-decoration: none; cursor: pointer;
  box-shadow: inset 0 -3px 0 rgba(29, 37, 80, .18);
}
.knop:hover { background: #FF9230; }
.knop:active { transform: translateY(1px); }
.knop[disabled] { opacity: .6; cursor: wait; }
.knop-klein { padding: .55em 1.1em; font-size: .95rem; }
.knop-licht { background: var(--wit); box-shadow: inset 0 0 0 2px var(--navy); }
.knop-licht:hover { background: var(--vlak); }
.link { font: inherit; background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; text-decoration-color: var(--oranje); text-decoration-thickness: 2px; text-underline-offset: 3px; cursor: pointer; }

/* balk */
.balk { background: var(--wit); border-bottom: 1px solid var(--lijn); position: sticky; top: 0; z-index: 20; }
.balk-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.logo { display: flex; align-items: center; gap: .55rem; text-decoration: none; font-weight: 800; font-stretch: 118%; font-size: 1.2rem; letter-spacing: -.02em; }
.logo svg { width: 34px; height: 34px; }
.nav { display: flex; align-items: center; gap: 1.3rem; }
.nav a:not(.knop) { text-decoration: none; font-weight: 600; }
.nav a:not(.knop):hover { text-decoration: underline; text-decoration-color: var(--oranje); }
.nav .knop { white-space: nowrap; }
@media (max-width: 620px) { .nav a:not(.knop) { display: none; } }
@media (max-width: 400px) { .logo { font-size: 1.05rem; } .logo svg { width: 28px; height: 28px; } }

/* hero */
.hero { background: var(--oranje); overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; padding-block: clamp(2.5rem, 6vw, 5rem); }
.lead { font-size: 1.2rem; max-width: 46ch; margin: 0 0 1.8rem; }
.hero .knop { background: var(--navy); color: var(--wit); box-shadow: none; }
.hero .knop:hover { background: var(--navy-zacht); }

.tracker { list-style: none; display: flex; padding: 0; margin: 0 0 1.8rem; max-width: 520px; }
.tracker li { flex: 1; position: relative; padding-top: 30px; font-size: .85rem; font-weight: 700; font-stretch: 88%; }
.tracker li::before { content: ""; position: absolute; top: 9px; left: 0; right: 0; height: 4px; background: var(--navy); }
.tracker li:first-child::before { left: 9px; }
.tracker li.mis::before { background: repeating-linear-gradient(90deg, var(--navy) 0 6px, transparent 6px 12px); right: calc(100% - 9px); }
.tracker li::after { content: ""; position: absolute; top: 0; left: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--navy); box-shadow: 0 0 0 3px var(--oranje); }
.tracker li.ok::after { background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6 11.5l3.2 3L16 8' fill='none' stroke='%23F5841F' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.tracker li.mis::after { background: var(--wit) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M7.5 7.5l7 7m0-7l-7 7' fill='none' stroke='%23C62E2E' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E"); box-shadow: 0 0 0 3px var(--oranje), 0 0 0 5px var(--stempel); }
.tracker li.mis span { text-decoration: line-through; text-decoration-color: var(--stempel); text-decoration-thickness: 2px; }

/* verzendlabel */
.label {
  margin: 0; background: var(--wit); border-radius: var(--r-klein);
  padding: 1.4rem 1.5rem 1.2rem; transform: rotate(2deg);
  box-shadow: 0 1px 0 rgba(0,0,0,.05), 0 18px 40px -12px rgba(29,37,80,.45);
  position: relative; max-width: 400px; justify-self: end; width: 100%;
}
.label::before { content: ""; position: absolute; top: -10px; left: 50%; width: 120px; height: 24px; margin-left: -60px; background: rgba(255,255,255,.55); transform: rotate(-3deg); border-radius: 2px; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.label-kop { display: flex; justify-content: space-between; font-size: .8rem; font-weight: 700; font-stretch: 80%; border-bottom: 2px solid var(--navy); padding-bottom: .5rem; margin-bottom: .7rem; }
.label-getal { font-size: clamp(3.8rem, 8vw, 5.6rem); font-weight: 900; font-stretch: 70%; line-height: .95; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.label-sub { font-weight: 600; font-stretch: 90%; margin-bottom: 1rem; }
.barcode { height: 54px; display: flex; gap: 0; }
.barcode i { display: block; height: 100%; background: var(--navy); }
.label-code { font-size: .8rem; font-weight: 600; font-stretch: 75%; letter-spacing: .12em; margin: .35rem 0 .9rem; text-align: center; }
.label-rij { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; border-top: 2px solid var(--navy); }
.label-rij div { padding: .6rem .2rem 0; }
.label-rij div + div { border-left: 1px solid var(--lijn); padding-left: .7rem; }
.label-rij dt { font-size: .78rem; font-stretch: 85%; color: var(--grijs); }
.label-rij dd { margin: 0; font-size: 1.6rem; font-weight: 800; font-stretch: 80%; font-variant-numeric: tabular-nums; }

@media (max-width: 820px) {
  .hero-in { grid-template-columns: 1fr; }
  .label { justify-self: center; transform: rotate(1deg); }
}

/* melden */
.melden { padding-block: clamp(3rem, 7vw, 5.5rem); }
.melden-in { display: grid; grid-template-columns: .8fr 1.2fr; gap: 3rem; align-items: start; }
.beloftes { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.beloftes li { padding: .55rem 0 .55rem 2rem; border-top: 1px solid var(--lijn); position: relative; }
.beloftes li::before { content: ""; position: absolute; left: 0; top: .85rem; width: 18px; height: 18px; border-radius: 50%; background: var(--oranje-licht) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.3l2.6 2.5L13 6.5' fill='none' stroke='%231D2550' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
@media (max-width: 860px) { .melden-in { grid-template-columns: 1fr; gap: 1.5rem; } }

.formulier { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem 1.4rem; background: var(--vlak); border-radius: var(--r-groot); padding: clamp(1.2rem, 3vw, 2rem); }
.veld { display: flex; flex-direction: column; gap: .4rem; min-width: 0; margin: 0; padding: 0; border: 0; }
.veld-breed { grid-column: 1 / -1; }
@media (max-width: 560px) { .formulier { grid-template-columns: 1fr; } }
label, legend { font-weight: 700; font-stretch: 95%; }
legend { padding: 0; margin-bottom: .4rem; }
.opt { font-weight: 400; color: var(--grijs); font-size: .88em; }
input, select, textarea {
  font: inherit; font-size: 1rem; color: var(--navy); width: 100%;
  background: var(--wit); border: 2px solid var(--lijn); border-radius: var(--r-klein);
  padding: .7em .8em;
}
textarea { resize: vertical; min-height: 7rem; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px var(--oranje-licht); }
[aria-invalid="true"] { border-color: var(--stempel); }
.keuzes { display: flex; flex-wrap: wrap; gap: .5rem; }
.keuze { font-weight: 500; font-stretch: 100%; cursor: pointer; }
.keuze input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.keuze span { display: inline-block; padding: .5em .95em; border-radius: 999px; background: var(--wit); border: 2px solid var(--lijn); }
.keuze:hover span { border-color: var(--navy-zacht); }
.keuze input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--wit); }
.keuze input:focus-visible + span { outline: 3px solid var(--oranje); outline-offset: 2px; }
.keuzes[aria-invalid="true"] .keuze span { border-color: var(--stempel); }
.teken { font-size: .85rem; color: var(--grijs); }
.lokveld { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.verstuur { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.status { margin: 0; font-weight: 600; }
.status.fout { color: var(--stempel); }
.status.goed { color: var(--goed); }
.recaptcha-tekst { margin: 0; font-size: .8rem; }
.grecaptcha-badge { visibility: hidden; }
.melding-fout { background: #FBE3E3; color: var(--stempel); padding: 1rem 1.2rem; border-radius: var(--r-klein); font-weight: 600; margin-top: 1.5rem; }

/* teller */
.teller { background: var(--navy); color: var(--wit); padding-block: clamp(3rem, 7vw, 5.5rem); }
.teller h2, .teller h3 { color: var(--wit); }
.teller .sectie-lead, .teller .klein { color: #C3C7DD; }
.cijfers { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.14); border-radius: var(--r-groot); overflow: hidden; margin: 0 0 2rem; }
.cijfers div { background: var(--navy); padding: 1.1rem 1.2rem; }
.cijfers dt { font-size: .9rem; color: #C3C7DD; font-stretch: 92%; }
.cijfers dd { margin: .2rem 0 0; font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; font-stretch: 78%; font-variant-numeric: tabular-nums; color: var(--oranje); }
@media (max-width: 960px) { .cijfers { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .cijfers { grid-template-columns: repeat(2, 1fr); } }
.cijfers-klein { grid-template-columns: repeat(4, 1fr); margin-bottom: .6rem; }
.cijfers-klein dd { color: var(--wit); font-size: 1.8rem; }
@media (max-width: 620px) { .cijfers-klein { grid-template-columns: repeat(2, 1fr); } }

.grafieken { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 820px) { .grafieken { grid-template-columns: 1fr; } }
.grafiek { margin: 0; background: var(--wit); color: var(--navy); border-radius: var(--r-groot); padding: 1.3rem 1.4rem 1.4rem; min-width: 0; }
.grafiek-breed { grid-column: 1 / -1; }
.grafiek figcaption { font-weight: 800; font-stretch: 105%; font-size: 1.1rem; margin-bottom: 1rem; }
.grafiek .leeg-grafiek { color: var(--grijs); margin: 0; }

.kolommen { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; align-items: end; height: 220px; border-bottom: 1px solid var(--lijn); position: relative; }
.kolom { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; cursor: default; position: relative; }
.kolom .waarde { font-size: .8rem; font-weight: 700; font-variant-numeric: tabular-nums; margin-bottom: 3px; color: var(--navy); }
.kolom .staaf { width: 100%; max-width: 46px; background: var(--oranje-staaf); border-radius: 4px 4px 0 0; min-height: 0; }
.kolom.nu .staaf { background: var(--navy); }
.kolom:hover .staaf { filter: brightness(1.1); }
.maanden { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; margin-top: .4rem; }
.maanden span { text-align: center; font-size: .78rem; color: var(--grijs); font-stretch: 85%; }

.staven { display: flex; flex-direction: column; gap: .55rem; }
.rij { display: grid; grid-template-columns: minmax(7rem, 42%) 1fr; gap: .8rem; align-items: center; }
.rij-naam { font-size: .92rem; line-height: 1.25; }
.rij-balk { display: flex; align-items: center; gap: .5rem; min-width: 0; }
.rij-balk i { display: block; height: 14px; background: var(--oranje-staaf); border-radius: 0 4px 4px 0; min-width: 3px; }
.rij-balk b { font-size: .9rem; font-variant-numeric: tabular-nums; }

.tabel { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tabel th, .tabel td { text-align: left; padding: .5rem .2rem; border-bottom: 1px solid var(--lijn); }
.tabel th { font-size: .85rem; color: var(--grijs); font-weight: 600; }
.tabel td:last-child, .tabel th:last-child { text-align: right; }
.pechdag { margin: 1rem 0 0; background: var(--oranje-licht); border-radius: var(--r-klein); padding: .8rem 1rem; }
.bezoek { margin-top: 2.5rem; }

/* verhalen */
.verhalen { padding-block: clamp(3rem, 7vw, 5.5rem); }
.tijdlijn { list-style: none; margin: 0 0 2rem; padding: 0; max-width: 760px; }
.verhaal { position: relative; padding: 0 0 2rem 2.2rem; }
.verhaal::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 0; width: 2px; background: var(--lijn); }
.verhaal:last-child::before { display: none; }
.verhaal::after { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--wit); border: 3px solid var(--oranje); }
.verhaal.is-kwijt::after { border-color: var(--stempel); }
.verhaal.nieuw::after { background: var(--oranje); }
.verhaal-meta { font-size: .88rem; color: var(--grijs); margin: 0 0 .15rem; }
.verhaal-kop { font-weight: 800; font-stretch: 105%; font-size: 1.15rem; margin: 0 0 .35rem; line-height: 1.3; }
.verhaal-kop .bez { background: var(--oranje-licht); padding: .05em .4em; border-radius: 4px; }
.verhaal-tekst { margin: 0 0 .6rem; white-space: pre-line; overflow-wrap: anywhere; max-width: 65ch; }
.verhaal-voet { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; font-size: .9rem; color: var(--grijs); }
.herken { font: inherit; font-size: .9rem; font-weight: 700; color: var(--navy); background: var(--wit); border: 2px solid var(--lijn); border-radius: 999px; padding: .3em .9em; cursor: pointer; }
.herken:hover { border-color: var(--navy); }
.herken[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--wit); }
.leeg { font-size: 1.1rem; }

/* voet */
.voet { background: var(--vlak); padding-block: 2.5rem; font-size: .92rem; color: var(--grijs); }
.voet-in p { max-width: 80ch; }
.voet strong { color: var(--navy); }

/* cookie */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 50;
  max-width: 560px; margin: 0 auto; background: var(--wit); border-radius: var(--r-groot);
  box-shadow: 0 20px 50px -10px rgba(29,37,80,.45); border: 2px solid var(--navy);
  padding: 1.1rem 1.3rem; display: flex; flex-direction: column; gap: .8rem;
}
.cookie p { margin: 0; }
.cookie-knoppen { display: flex; gap: .6rem; flex-wrap: wrap; }

/* tooltip */
.tip { position: fixed; z-index: 60; pointer-events: none; background: var(--navy); color: var(--wit); font-size: .85rem; padding: .45rem .65rem; border-radius: 6px; box-shadow: 0 6px 20px rgba(0,0,0,.25); white-space: nowrap; }
