/* leerdingen.nl — richting "Map" */
@font-face { font-family: "Schibsted Grotesk"; font-weight: 400; font-display: swap; src: url("/assets/fonts/schibsted-grotesk-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-weight: 500; font-display: swap; src: url("/assets/fonts/schibsted-grotesk-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-weight: 700; font-display: swap; src: url("/assets/fonts/schibsted-grotesk-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-weight: 800; font-display: swap; src: url("/assets/fonts/schibsted-grotesk-latin-800-normal.woff2") format("woff2"); }

:root {
  --ink: #2f3b4c;
  --ink-2: #3a4554;
  --muted: #556070;
  --faint: #6b7686;
  --line: #9aa4b2;
  --line-2: #c9d0da;
  --blue: #e6ecf6;
  --paper: #ffffff;
  --orange: #eaa53a;
  --orange-l: #fdf0d6;
  --orange-m: #f7cf86;
  --red: #e0685c;
  --accent: #b8392b;
  --pen: #1f3a8a;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: "Schibsted Grotesk", system-ui, sans-serif; font-size: 17px; line-height: 1.55;
}
a { color: var(--ink); }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.05; margin: 0; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 56px); }

/* kop */
.top { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; padding: 24px 0; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 20px; font-weight: 800; letter-spacing: -0.3px; }
.logo .box { width: 24px; height: 24px; border: 2px solid var(--ink); border-radius: 5px; display: grid; place-items: center; font-size: 11px; font-weight: 800; line-height: 1; letter-spacing: -0.4px; }
.nav { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; padding: 8px 0; }
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 16px; border: 1.5px solid var(--ink); background: var(--paper); color: var(--ink); cursor: pointer; font-family: inherit; }
.pill:hover { color: var(--ink); background: var(--blue); }
.pill.dark { background: var(--ink); color: #fff; }
.pill.dark:hover { background: #1c2430; color: #fff; }
.pill.small { min-height: 40px; padding: 8px 18px; font-size: 15px; }
.pill[disabled] { opacity: .45; cursor: not-allowed; }

/* intro */
.hero { display: flex; flex-wrap: wrap; gap: 20px 64px; align-items: flex-end; padding: clamp(32px, 6vw, 64px) 0 clamp(36px, 6vw, 64px); }
.hero h1 { flex: 1 1 420px; font-size: clamp(38px, 6vw, 62px); font-weight: 800; letter-spacing: -0.03em; }
.hero p { flex: 1 1 280px; max-width: 390px; margin: 0; color: var(--muted); }

/* mappen */
.folders { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 40px 28px; align-items: end; }
.folder { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
.tab { align-self: flex-start; background: var(--blue); border: 1.5px solid var(--ink); border-bottom: 0; border-radius: 8px 8px 0 0; padding: 6px 16px 5px; font-size: 13px; font-weight: 700; letter-spacing: .02em; position: relative; top: 1.5px; }
.folder .body { background: var(--blue); border: 1.5px solid var(--ink); border-radius: 0 12px 12px 12px; padding: 22px; display: flex; flex-direction: column; gap: 18px; transition: transform .15s ease; }
a.folder:hover { color: var(--ink); }
a.folder:hover .body { transform: translateY(-3px); }
.preview { background: var(--paper); border-radius: 6px; padding: 18px 14px; display: flex; justify-content: center; }
.folder h2 { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 4px; }
.folder p { margin: 0; font-size: 15px; color: var(--ink-2); }
.row-end { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.arrow { flex: none; width: 44px; height: 44px; border-radius: 999px; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 20px; }
.folder.soon { color: #6b7686; }
.folder.soon .tab { background: transparent; border: 1.5px dashed #9aa4b2; border-bottom: 0; }
.folder.soon .body { background: transparent; border: 1.5px dashed #9aa4b2; min-height: 250px; justify-content: flex-end; }
.folder.soon h2 { font-size: 22px; font-weight: 700; }

/* arcering-streep */
.stripe { height: 14px; border-radius: 3px; margin-top: clamp(48px, 8vw, 80px); background: repeating-linear-gradient(135deg, var(--orange-m) 0 6px, var(--orange-l) 6px 11px); }
.foot { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; padding: 18px 0 40px; font-size: 14px; color: var(--muted); }
.foot a { color: var(--muted); }

/* open map */
.open { margin-top: 8px; }
.open > .body { background: var(--blue); border: 1.5px solid var(--ink); border-radius: 0 14px 14px 14px; padding: clamp(18px, 3.5vw, 40px); display: flex; flex-direction: column; gap: 32px; }
.intro { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; }
.intro > div { flex: 1 1 320px; min-width: 0; }
.intro h1 { font-size: clamp(40px, 6vw, 60px); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 12px; }
.intro p { margin: 0; color: var(--ink-2); max-width: 440px; }
.intro .preview { flex: 1 1 400px; padding: 24px 14px; }
.intro .preview img { width: 100%; max-width: 460px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; font-size: 14px; color: var(--muted); }
.legend b { color: var(--ink); display: inline-block; min-width: 1.1em; text-align: center; }
.crumb { display: inline-block; margin-top: 8px; font-size: 15px; text-decoration: none; color: var(--muted); }

.options { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 18px; }
.option { background: var(--paper); border: 1.5px solid var(--ink); border-radius: 10px; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.option .hatch { height: 10px; border-radius: 2px; background: repeating-linear-gradient(135deg, #c3cad5 0 2px, transparent 2px 7px); }
.option .hatch.or { background: repeating-linear-gradient(135deg, var(--orange) 0 2px, transparent 2px 7px); }
.option h2 { font-size: 22px; font-weight: 800; }
.option p { margin: 0; font-size: 15px; color: var(--ink-2); flex-grow: 1; }
.option .files { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.option .files a { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px; padding: 8px 16px; border: 1.5px solid var(--ink); border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 15px; }
.option .files a:hover { background: var(--blue); color: var(--ink); }
.option .files small { font-weight: 500; color: var(--muted); }
.option.soon { background: transparent; border-style: dashed; border-color: #9aa4b2; color: var(--faint); }
.option.soon p { color: var(--faint); }
.badge { align-self: stretch; text-align: center; border-radius: 999px; padding: 10px 18px; font-weight: 700; background: var(--paper); font-size: 15px; }
.tipline { margin: 0; font-size: 14px; color: var(--muted); }

/* gewone tekstpagina */
.text { max-width: 640px; padding: clamp(24px, 5vw, 48px) 0 0; }
.text h1 { font-size: clamp(36px, 5vw, 52px); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 20px; }
.text h2 { font-size: 22px; font-weight: 800; margin: 32px 0 8px; }
.text p { margin: 0 0 14px; color: var(--ink-2); }

/* formulier */
.steps { display: flex; flex-direction: column; gap: 28px; }
.step { background: var(--paper); border: 1.5px solid var(--ink); border-radius: 10px; padding: clamp(18px, 3vw, 28px); }
.step h2 { font-size: 22px; font-weight: 800; margin-bottom: 4px; display: flex; gap: 10px; align-items: baseline; }
.step h2 .n { font-size: 14px; font-weight: 700; color: var(--muted); }
.step > p { margin: 0 0 18px; font-size: 15px; color: var(--muted); }
.fields { display: flex; flex-wrap: wrap; gap: 14px 18px; }
.field { display: flex; flex-direction: column; gap: 6px; flex: 1 1 180px; min-width: 0; }
.field label { font-size: 14px; font-weight: 700; }
input[type=text], input[type=date], select {
  font: inherit; font-size: 16px; color: var(--ink); background: #fff; width: 100%;
  min-height: 46px; padding: 9px 12px; border: 1.5px solid var(--line); border-radius: 8px;
}
input:focus, select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--blue); }
.vakken { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.vak { display: grid; grid-template-columns: 28px minmax(0, 1fr) minmax(0, 190px) 44px; gap: 10px; align-items: center; }
.vak .nr { font-size: 14px; font-weight: 700; color: var(--muted); text-align: right; }
.vak .weg { width: 44px; height: 44px; border-radius: 999px; border: 1.5px solid transparent; background: none; color: var(--muted); font-size: 22px; cursor: pointer; line-height: 1; }
.vak .weg:hover { border-color: var(--line); color: var(--accent); }
.vak-kop { display: grid; grid-template-columns: 28px minmax(0, 1fr) minmax(0, 190px) 44px; gap: 10px; font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--ink); flex: none; }
.note { font-size: 14px; color: var(--muted); margin: 10px 0 0; }
.warn { font-size: 14px; color: var(--accent); margin: 10px 0 0; font-weight: 500; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* live voorbeeld */
.live { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 6px; background: #fff; padding: 2px; }
.live table { border-collapse: collapse; font-size: 11px; min-width: 640px; width: 100%; table-layout: fixed; }
.live th, .live td { border: 1px solid #b9c1cc; height: 30px; text-align: center; padding: 0; position: relative; }
.live th { font-weight: 700; height: 22px; }
.live td.vn, .live th.vn { width: 96px; text-align: left; padding: 0 6px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: #fafbfc; }
.live .we { background: var(--blue); }
.live .sep { border-right: 2px solid var(--ink); }
.live .dt { color: var(--muted); font-size: 10px; height: 20px; }
.live .t { font-size: 15px; font-weight: 800; color: var(--pen); }
.live .k { position: absolute; right: 1px; bottom: 1px; font-size: 9px; font-weight: 700; color: var(--pen); background: #fff; padding: 0 2px; border-radius: 2px 0 0 0; line-height: 1.3; }
.live .r { background: repeating-linear-gradient(135deg, #f3b2ab 0 2px, #fbe3e0 2px 5px); }
.live .o { background: repeating-linear-gradient(135deg, #f7cf86 0 2px, #fdf0d6 2px 5px); }
.ready { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.done { margin-top: 18px; padding-top: 18px; border-top: 1.5px dashed var(--line); }
.done[hidden] { display: none; }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .vak-kop { display: none; }
  .vak { grid-template-columns: minmax(0, 1fr) 44px; grid-template-areas: "naam weg" "datum weg"; row-gap: 6px; padding-bottom: 12px; border-bottom: 1px solid var(--line-2); }
  .vak .nr { display: none; }
  .vak .naam { grid-area: naam; }
  .vak .datum { grid-area: datum; }
  .vak .weg { grid-area: weg; align-self: center; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print { .top, .foot, .stripe { display: none; } }

/* Doneren */
.gift { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; margin-top: 28px; padding: 22px 26px; border: 1.5px dashed var(--line); border-radius: 10px; }
.gift h2 { font-size: 20px; font-weight: 800; margin: 0 0 4px; }
.gift p { margin: 0; max-width: 560px; font-size: 15px; color: var(--ink-2); }
.text .actie { margin: 22px 0 8px; }
.text .lijst { margin: 0 0 14px; padding-left: 22px; color: var(--ink-2); }
.text .lijst li { margin: 4px 0; }
.text .actie .badge { display: inline-block; border: 1.5px dashed var(--line); color: var(--muted); }

/* Inloggen: nog niet beschikbaar */
.nav a.pill.later { padding: 6px 16px; border: 1.5px dashed var(--line); color: var(--muted); background: var(--paper); font-weight: 600; }
.nav a.pill.later:hover { background: var(--blue); color: var(--ink); }
.nav a.pill.later small { font-size: 12px; font-weight: 500; color: var(--faint); }
