:root {
  --paars: #5B3FE0;
  --paars-donker: #4128B8;
  --paars-licht: #ECE9FB;
  --lime: #C8F15A;
  --oranje: #FF8A3D;
  --inkt: #15131F;
  --grijs: #5E5A73;
  --grijs-licht: #8A869B;
  --rand: #E6E2F8;
  --grond: #F3F1FF;
  --wit: #FFFFFF;
  --display: 'Unbounded', system-ui, sans-serif;
  --tekst: 'Manrope', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--grond); color: var(--inkt); font-family: var(--tekst); font-size: 16px; line-height: 1.5; }
a { color: var(--paars); }
a:hover { color: var(--paars-donker); }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--paars); outline-offset: 2px; }

.d { font-family: var(--display); font-weight: 800; letter-spacing: -0.04em; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--grijs); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Kop en voet */
.top { padding: 16px 0; }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.logo { font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: -0.03em; color: var(--paars); text-decoration: none; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.nav a.plain { color: var(--inkt); text-decoration: none; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
.foot { padding: 28px 0 40px; border-top: 1.5px solid var(--rand); margin-top: 40px; font-size: 14px; color: var(--grijs); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
.foot a { color: var(--grijs); }

/* Knoppen */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 14px; border: none; font-weight: 800; font-size: 15px; cursor: pointer; text-decoration: none; }
.btn-paars { background: var(--paars); color: var(--wit); }
.btn-paars:hover { background: var(--paars-donker); color: var(--wit); }
.btn-lime { background: var(--lime); color: var(--inkt); }
.btn-lime:hover { color: var(--inkt); filter: brightness(0.96); }
.btn-donker { background: var(--inkt); color: var(--lime); border-radius: 999px; }
.btn-donker:hover { color: var(--lime); }
.btn-licht { background: var(--wit); color: var(--inkt); border: 1.5px solid #DDD8F5; }
.btn-licht:hover { color: var(--inkt); border-color: var(--paars); }
.btn-rand { background: transparent; color: var(--wit); border: 1.5px solid #8B76F0; }
.btn-vol { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: wait; }

/* Startpagina */
.hero { padding: 32px 0 56px; }
.hero .wrap { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.hero-tekst { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.badge { align-self: flex-start; background: var(--wit); border: 1.5px solid #DDD8F5; border-radius: 999px; padding: 8px 14px; font-size: 13px; font-weight: 800; color: var(--paars); }
.hero h1 { margin: 0; font-size: clamp(40px, 7vw, 72px); line-height: 0.98; }
.hero p { margin: 0; font-size: 19px; color: #4A4660; max-width: 520px; }
.zoek { display: flex; align-items: center; gap: 10px; background: var(--wit); border-radius: 18px; padding: 6px 6px 6px 18px; border: 1.5px solid #DDD8F5; max-width: 520px; }
.zoek input { flex: 1; min-width: 0; border: none; outline: none; background: transparent; font-size: 17px; min-height: 44px; }
.zoek-fout { font-size: 14px; color: #B3261E; min-height: 1.5em; margin: -8px 0 0; }
.hero-beeld { flex: 1 1 320px; display: flex; justify-content: center; min-width: 0; }
.voorbeeld { position: relative; width: 340px; max-width: 100%; height: 360px; }
.voorbeeld .bol1 { position: absolute; right: 0; top: 0; width: 210px; height: 210px; border-radius: 50%; background: var(--lime); }
.voorbeeld .bol2 { position: absolute; left: 10px; bottom: 10px; width: 110px; height: 110px; border-radius: 50%; background: var(--oranje); }
.voorbeeld .kaart { position: absolute; left: 28px; top: 36px; right: 28px; background: var(--wit); border-radius: 26px; padding: 22px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 20px 40px rgba(91, 63, 224, 0.18); transform: rotate(-3deg); }
.voorbeeld .rij { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.voorbeeld .rij.af { color: var(--grijs-licht); text-decoration: line-through; }
.vakje { width: 20px; height: 20px; border-radius: 6px; border: 2px solid var(--inkt); flex-shrink: 0; }
.af .vakje { background: var(--paars); border-color: var(--paars); }

.seizoen { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; background: var(--inkt); color: var(--wit); border-radius: 28px; padding: 26px 30px; text-decoration: none; }
.seizoen:hover { color: var(--wit); }
.label { font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }

.blok { padding: 36px 0 8px; }
.blok h2 { margin: 0 0 18px; font-size: 30px; }
.tegels { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.tegel { display: flex; flex-direction: column; justify-content: space-between; gap: 26px; border-radius: 24px; padding: 22px; min-height: 160px; text-decoration: none; color: var(--inkt); background: var(--wit); border: 1.5px solid #DDD8F5; }
.tegel:hover { color: inherit; transform: translateY(-2px); }
.tegel .k { font-size: 13px; font-weight: 600; }
.tegel .naam { font-family: var(--display); font-weight: 800; letter-spacing: -0.03em; font-size: 22px; line-height: 1.1; hyphens: manual; overflow-wrap: break-word; }
.t-paars { background: var(--paars); color: var(--wit); border-color: var(--paars); } .t-paars .k { color: #DCD4FF; }
.t-lime { background: var(--lime); border-color: var(--lime); } .t-lime .k { color: #3B4A12; }
.t-oranje { background: var(--oranje); border-color: var(--oranje); } .t-oranje .k { color: #4A2408; }
.t-donker { background: var(--inkt); color: var(--wit); border-color: var(--inkt); } .t-donker .k { color: #B9B5C9; }
.eigen-cta { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; border: 2px dashed #9C8BEF; border-radius: 28px; padding: 24px 26px; text-decoration: none; color: var(--inkt); background: #FBFAFF; }
.eigen-cta:hover { color: var(--inkt); border-color: var(--paars); }
.stappen { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.stap { display: flex; flex-direction: column; gap: 8px; background: var(--wit); border-radius: 24px; padding: 22px; border: 1.5px solid var(--rand); }
.num { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--lime); font-family: var(--display); font-weight: 800; }
.groep-uitleg { background: var(--paars); color: var(--wit); border-radius: 32px; padding: clamp(26px, 5vw, 52px); display: flex; flex-wrap: wrap; gap: 30px; align-items: center; justify-content: space-between; }
.groep-uitleg p { color: #E4DEFF; font-size: 17px; margin: 0; }

/* Lijstpagina */
.tabs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 20px 10px; scrollbar-width: thin; }
.pill { flex-shrink: 0; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--wit); border: 1.5px solid #DDD8F5; color: var(--inkt); font-weight: 800; font-size: 14px; text-decoration: none; white-space: nowrap; }
.pill[aria-current="page"] { background: var(--inkt); color: var(--lime); border-color: var(--inkt); }
.intro { padding-top: 20px; padding-bottom: 28px; display: flex; flex-direction: column; gap: 12px; }
.kruimel { font-size: 14px; color: var(--grijs); }
.kruimel a { color: var(--grijs); }
.intro h1 { margin: 0; font-size: clamp(32px, 5vw, 56px); line-height: 1; }
.intro p { margin: 0; font-size: 18px; color: #4A4660; max-width: 640px; }
.voortgang { display: flex; align-items: center; gap: 14px; max-width: 640px; }
.balk { flex: 1; height: 14px; border-radius: 7px; background: #E4E0F7; overflow: hidden; }
.balk > div { height: 100%; background: var(--paars); border-radius: 7px; transition: width .25s; }
.kolommen { display: flex; flex-wrap: wrap; gap: 22px; align-items: flex-start; padding-bottom: 40px; }
.hoofd { flex: 999 1 540px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.zij { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.sec { background: var(--wit); border-radius: 24px; padding: 20px; border: 1.5px solid var(--rand); display: flex; flex-direction: column; gap: 4px; }
.sec-kop { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; margin-bottom: 6px; }
.sec-kop h2 { margin: 0; font-size: 20px; letter-spacing: -0.03em; }
.sec-groep { background: var(--paars-licht); border: 1.5px dashed #B7AAF2; }
.rij { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-height: 48px; }
.rij label { flex: 1 1 170px; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; cursor: pointer; font-weight: 600; min-height: 44px; }
.rij label > span:not(.tag) { min-width: 0; overflow-wrap: anywhere; flex: 0 1 auto; }
.rij input[type="checkbox"] { width: 22px; height: 22px; margin: 0; accent-color: var(--paars); flex-shrink: 0; }
.rij .af { color: var(--grijs-licht); text-decoration: line-through; }
.tag { flex-shrink: 0; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--paars); background: var(--paars-licht); border-radius: 999px; padding: 3px 8px; }
.weg { width: 44px; height: 44px; flex-shrink: 0; border: none; background: transparent; color: var(--grijs-licht); cursor: pointer; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; }
.weg:hover { background: var(--paars-licht); color: var(--inkt); }
.toevoegen { display: flex; gap: 8px; margin-top: 8px; }
.toevoegen input { flex: 1; min-width: 0; min-height: 46px; border-radius: 14px; border: 1.5px dashed #B7AAF2; background: #FBFAFF; padding: 0 14px; }
.leeg { color: var(--grijs); padding: 6px 0; }
.tip { display: flex; gap: 12px; align-items: flex-start; background: var(--lime); border-radius: 24px; padding: 18px 22px; font-weight: 600; }
.kaart-paars { background: var(--paars); color: var(--wit); border-color: var(--paars); gap: 10px; }
.kaart-paars p { color: #E4DEFF; margin: 0; font-size: 14px; }
.kaart-donker { background: var(--inkt); color: var(--wit); border-color: var(--inkt); gap: 6px; }
.veld { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.veld input { min-height: 48px; border-radius: 12px; border: none; padding: 0 14px; color: var(--inkt); background: var(--wit); }
.link-vak { background: #4A30C8; border-radius: 12px; padding: 12px 14px; font-weight: 800; font-size: 15px; word-break: break-all; }
.melding { font-size: 14px; font-weight: 600; }
.melding.fout { color: #FFD7CF; }

/* Groepslijst */
.av { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; font-size: 12px; font-weight: 800; flex-shrink: 0; }
.wie { font-size: 13px; font-weight: 600; color: var(--grijs); }
.claim { min-height: 40px; padding: 0 14px; border-radius: 12px; border: 2px dashed var(--paars); background: var(--wit); color: var(--paars); font-weight: 800; font-size: 13px; cursor: pointer; white-space: nowrap; }
.claim:hover { background: var(--paars); color: var(--wit); }
.loslaten { min-height: 40px; padding: 0 10px; border-radius: 12px; border: none; background: transparent; color: var(--grijs); font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: underline; }
.mijn { background: #F7F5FF; border-radius: 14px; padding: 0 8px; }
.naam-balk { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; background: var(--wit); border: 1.5px solid var(--rand); border-radius: 18px; padding: 12px 16px; }
.status { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--inkt); color: var(--wit); padding: 12px 18px; border-radius: 14px; font-weight: 600; font-size: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.2); opacity: 0; pointer-events: none; transition: opacity .2s; max-width: calc(100% - 40px); }
.status.zichtbaar { opacity: 1; }

@media (max-width: 860px) { .zij-eerst { order: -1; } }

/* Tekstpagina */
.tekst { max-width: 720px; padding: 24px 20px 40px; margin: 0 auto; }
.tekst h1 { font-size: clamp(30px, 5vw, 44px); line-height: 1.05; }
.tekst h2 { font-size: 20px; margin-top: 28px; }

@media print {
  .top, .tabs, .zij, .toevoegen, .weg, .foot, .tip { display: none !important; }
  body { background: #fff; }
  .sec { border: 1px solid #ccc; break-inside: avoid; }
}
