/* ============================================
   MEESTER NICK — website
   Huisstijl: De Klas Van Meester Nick

   Keuzes:
   - Koppen in Plus Jakarta Sans, tekst in Nunito.
   - Wit met lichtgrijze banden. Donker alleen in de footer en in het promptvlak.
   - Rood = belangrijkste actie, blauw = links en keuzes, geel = markeerstift.
   - Kaarten 12px, knoppen en labels als pil.
   - Homepage (sinds 31-10-2026): "Grote hallo" met zwevende kleurbollen
     en een tegelwand voor de projecten. Subpagina's blijven rustig.
   - KlasPlek en HoekKiezer staan altijd rechtsboven, ook op mobiel.
   ============================================ */

:root {
  --rood:        #E63946;
  --rood-licht:  #FFE8EA;
  --blauw:       #1D6FA4;
  --blauw-licht: #DDEEF9;
  --geel:        #F4A100;
  --geel-licht:  #FFF3D0;
  --groen:       #2A9D5C;
  --groen-licht: #D4F0E2;
  --paars:       #7C3AED;
  --paars-licht: #EDE9FE;

  --wit:         #FFFFFF;
  --lichtgrijs:  #F7F8FA;
  --rand:        #E3E6EA;
  --tekst:       #1A1A2E;
  --tekst-sub:   #545B6B;

  --logo-bg:     #1D6FA4;
  --schaduw-s:   0 2px 6px rgba(0,0,0,0.06);

  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-body:    'Nunito', sans-serif;
  --breed: 1160px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
[id] { scroll-margin-top: 92px; }
body { font-family: var(--font-body); background: var(--wit); color: var(--tekst); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--geel-licht); }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(40px, 6vw, 68px); letter-spacing: -0.035em; line-height: 1.02; }
h2 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -0.03em; }
h3 { font-size: 21px; }
h4 { font-size: 17px; }
p, li { font-size: 17.5px; line-height: 1.7; color: var(--tekst-sub); text-wrap: pretty; }
p strong, li strong { color: var(--tekst); }

.wrap { max-width: var(--breed); margin: 0 auto; padding: 0 24px; }
.sectie { padding: clamp(64px, 9vw, 112px) 0; }
.band { background: var(--lichtgrijs); }
.leesbreed { max-width: 66ch; }
.kop-blok { max-width: 66ch; margin-bottom: 40px; }
.kop-blok p { margin-top: 14px; font-size: 19px; }
.markeer { background: linear-gradient(transparent 62%, var(--geel-licht) 62%); }

/* ---------- Logo ---------- */
.logo-icoon { width: 46px; height: 46px; border-radius: 13px; background: var(--logo-bg); display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0; position: relative; overflow: hidden; padding-bottom: 6px; }
.logo-icoon .li-mstr { font-family: var(--font-display); font-size: 8px; font-weight: 700; color: rgba(255,255,255,0.5); letter-spacing: 2px; line-height: 1; margin-bottom: 1px; }
.logo-icoon .li-naam { font-family: var(--font-display); font-size: 17px; font-weight: 800; color: white; letter-spacing: -0.5px; line-height: 1; }
.logo-icoon .li-strepen { display: flex; gap: 3px; position: absolute; bottom: 5px; left: 50%; transform: translateX(-50%); }
.logo-icoon .li-strepen span { height: 4px; border-radius: 2px; display: block; }
.logo-icoon .li-strepen .s-r { width: 11px; background: var(--rood); }
.logo-icoon .li-strepen .s-w { width: 8px; background: rgba(255,255,255,0.85); }
.logo-icoon .li-strepen .s-g { width: 11px; background: var(--geel); }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-tekst { display: flex; flex-direction: column; line-height: 1.1; }
.logo-tekst .lt-meester { font-family: var(--font-display); font-size: 9.5px; font-weight: 700; color: var(--tekst-sub); letter-spacing: 3px; text-transform: uppercase; }
.logo-tekst .lt-naam { font-family: var(--font-display); font-size: 20px; font-weight: 800; color: var(--tekst); letter-spacing: -1px; line-height: 1.05; }
.logo-tekst .lt-strepen { display: flex; gap: 5px; margin-top: 4px; }
.logo-tekst .lt-strepen span { height: 5px; border-radius: 3px; display: block; }
.logo-tekst .lt-strepen .s-r { width: 24px; background: var(--rood); }
.logo-tekst .lt-strepen .s-b { width: 16px; background: var(--blauw); }
.logo-tekst .lt-strepen .s-g { width: 24px; background: var(--geel); }

/* ---------- App-iconen ---------- */
.app-icoon { width: 52px; height: 52px; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0; position: relative; overflow: hidden; padding-bottom: 6px; }
.app-icoon .ai-mstr { font-family: var(--font-display); font-size: 8px; font-weight: 700; letter-spacing: 2px; line-height: 1; margin-bottom: 1px; opacity: 0.6; color: white; }
.app-icoon .ai-naam { font-family: var(--font-display); font-size: 16px; font-weight: 800; color: white; letter-spacing: -0.5px; line-height: 1; }
.app-icoon .ai-label { font-family: var(--font-display); font-size: 6.5px; font-weight: 700; letter-spacing: 1px; line-height: 1; position: absolute; bottom: 5px; color: rgba(255,255,255,0.75); }
.app-icoon.rood { background: var(--rood); } .app-icoon.blauw { background: var(--blauw); } .app-icoon.groen { background: var(--groen); } .app-icoon.paars { background: var(--paars); }
.app-icoon.geel { background: var(--geel); }
.app-icoon.geel .ai-mstr, .app-icoon.geel .ai-naam { color: var(--tekst); }
.app-icoon.geel .ai-label { color: rgba(0,0,0,0.55); }

/* ---------- Kop + navigatie ---------- */
.kleur-balk { height: 5px; background: linear-gradient(90deg, var(--rood) 0%, var(--geel) 33%, var(--blauw) 66%, var(--groen) 100%); }
.site-kop { position: sticky; top: 0; z-index: 100; background: var(--wit); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.nav { display: flex; gap: 2px; align-items: center; }
.nav a { font-weight: 700; font-size: 15px; text-decoration: none; color: var(--tekst-sub); padding: 9px 13px; border-radius: 10px; transition: background .15s, color .15s; white-space: nowrap; }
.nav a:hover { background: var(--lichtgrijs); color: var(--tekst); }
.nav a[aria-current="page"] { color: var(--blauw); background: var(--blauw-licht); }
.nav-cta-mobiel { display: none; }
.nav-knop { display: none; width: 44px; height: 44px; border: 0; background: var(--lichtgrijs); border-radius: 12px; cursor: pointer; align-items: center; justify-content: center; }
.nav-knop span, .nav-knop span::before, .nav-knop span::after { display: block; width: 18px; height: 2px; background: var(--tekst); border-radius: 2px; position: relative; transition: transform .2s ease-out, background .2s; }
.nav-knop span::before, .nav-knop span::after { content: ""; position: absolute; left: 0; }
.nav-knop span::before { top: -6px; } .nav-knop span::after { top: 6px; }
.nav-open .nav-knop span { background: transparent; }
.nav-open .nav-knop span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-knop span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Toolknoppen rechtsboven ---------- */
.kop-tools { display: flex; gap: 8px; align-items: center; }
.tool-knop { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-display); font-weight: 800; font-size: 14px; padding: 9px 14px; border-radius: 999px; color: white; text-decoration: none; white-space: nowrap; transition: transform .15s ease-out, background .15s; }
.tool-knop small { font-family: var(--font-body); font-size: 11px; font-weight: 800; background: rgba(255,255,255,0.24); border-radius: 99px; padding: 1px 7px; }
.tool-knop:hover { transform: translateY(-2px); }
.tool-blauw { background: var(--blauw); } .tool-blauw:hover { background: #185D8A; }
.tool-groen { background: var(--groen); } .tool-groen:hover { background: #22844D; }

/* ---------- Knoppen en labels ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--font-body); font-weight: 800; font-size: 16px; padding: 14px 24px; border-radius: 999px; border: 0; cursor: pointer; text-decoration: none; line-height: 1.1; transition: background .15s, box-shadow .15s, color .15s; }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--geel); outline-offset: 3px; }
.btn-primair { background: var(--rood); color: white; } .btn-primair:hover { background: #CC2F3C; }
.btn-blauw { background: var(--blauw); color: white; } .btn-blauw:hover { background: #185D8A; }
.btn-geel { background: var(--geel); color: var(--tekst); } .btn-geel:hover { background: #E09400; }
.btn-ghost { background: var(--wit); color: var(--tekst); box-shadow: inset 0 0 0 1.5px var(--rand); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--tekst-sub); }
.btn-klein { padding: 9px 15px; font-size: 14px; }
.btn-groot { padding: 16px 28px; font-size: 17px; }
.knoppen { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.tekstlink { font-weight: 800; color: var(--blauw); text-decoration: underline; text-decoration-color: var(--blauw-licht); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.tekstlink:hover { text-decoration-color: var(--blauw); }

.label { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 12.5px; padding: 3px 11px; border-radius: 99px; line-height: 1.6; background: var(--lichtgrijs); color: var(--tekst-sub); }
.label-rood { background: var(--rood-licht); color: #B3222E; }
.label-blauw { background: var(--blauw-licht); color: var(--blauw); }
.label-geel { background: var(--geel-licht); color: #855300; }
.label-groen { background: var(--groen-licht); color: #1E7344; }
.label-paars { background: var(--paars-licht); color: var(--paars); }

/* ---------- Kaarten, lijsten, beeld ---------- */
.kaart { background: var(--wit); border: 1.5px solid var(--rand); border-radius: 12px; padding: 26px; }
.band .kaart { border-color: var(--rand); }
.kaart h3 { margin-bottom: 8px; }
.kaart p { font-size: 16px; }
.lijst { padding-left: 1.2em; display: grid; gap: 6px; }
.lijst li::marker { color: var(--blauw); }
.beeld { border: 1.5px solid var(--rand); border-radius: 12px; overflow: hidden; background: var(--lichtgrijs); }
.beeld img { width: 100%; height: auto; }
figure figcaption { font-size: 14px; color: var(--tekst-sub); font-weight: 600; margin-top: 10px; }

.twee { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.twee.boven { align-items: start; }
.twee.smal-breed { grid-template-columns: 5fr 7fr; }
.twee.breed-smal { grid-template-columns: 7fr 5fr; }

/* ---------- Hero (alleen home) ---------- */
.hero { padding: clamp(56px, 8vw, 104px) 0 clamp(56px, 7vw, 88px); }
.hero h1 { max-width: 15ch; }
.hero-lead { font-size: clamp(18px, 1.6vw, 21px); max-width: 52ch; margin-top: 26px; }
.hero .markeer { background-size: 0% 100%; background-repeat: no-repeat; background-image: linear-gradient(transparent 62%, var(--geel-licht) 62%); background-color: transparent; animation: stift 900ms 300ms ease-out forwards; }
@keyframes stift { to { background-size: 100% 100%; } }

/* ---------- Paginakop (subpagina's) ---------- */
.pagina-kop { padding: clamp(56px, 7vw, 88px) 0 clamp(40px, 5vw, 56px); border-bottom: 1.5px solid var(--rand); }
.pagina-kop h1 { font-size: clamp(36px, 5vw, 58px); max-width: 18ch; }
.pagina-kop p { font-size: clamp(18px, 1.5vw, 20px); max-width: 60ch; margin-top: 18px; }

/* ---------- Onderdelen ---------- */
.feiten { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0; border-top: 1.5px solid var(--rand); margin-top: 28px; }
.feiten div { padding: 16px 20px 16px 0; border-bottom: 1.5px solid var(--rand); }
.feiten b { display: block; font-family: var(--font-display); font-size: 15px; color: var(--tekst); }
.feiten span { font-size: 15px; color: var(--tekst-sub); line-height: 1.5; display: block; margin-top: 2px; }

.stappen { list-style: none; counter-reset: stap; display: grid; gap: 0; max-width: 760px; }
.stappen li { counter-increment: stap; display: grid; grid-template-columns: 56px 1fr; gap: 4px 18px; padding: 22px 0; border-top: 1.5px solid var(--rand); }
.stappen li:last-child { border-bottom: 1.5px solid var(--rand); }
.stappen li::before { content: counter(stap); grid-row: span 2; font-family: var(--font-display); font-weight: 800; font-size: 34px; line-height: 1; color: var(--blauw); }
.stappen b { font-family: var(--font-display); font-size: 19px; color: var(--tekst); }
.stappen span { font-size: 16.5px; color: var(--tekst-sub); line-height: 1.65; }

.citaat { font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.35; letter-spacing: -0.02em; color: var(--tekst); max-width: 30ch; }
.citaat em { font-style: normal; color: var(--rood); }

.overzicht-groep { padding: 28px 0; border-top: 1.5px solid var(--rand); display: grid; grid-template-columns: 240px 1fr; gap: 24px; }
.overzicht-groep h3 { font-size: 19px; }
.overzicht-groep h3 small { display: block; font-family: var(--font-body); font-size: 14px; font-weight: 700; color: var(--tekst-sub); margin-top: 4px; letter-spacing: 0; }
.overzicht-lijst { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px 32px; list-style: none; }
.overzicht-lijst li { font-size: 15.5px; line-height: 1.55; }
.overzicht-lijst b { display: block; font-family: var(--font-display); font-size: 16px; color: var(--tekst); }

/* ---------- Tegelwand (home en tools) ---------- */
.tegels { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.tegels > .tegel { grid-column: span 4; }
.tegel { position: relative; display: flex; flex-direction: column; gap: 10px; border-radius: 22px; padding: 24px; text-decoration: none; color: var(--tekst); background: var(--wit); border: 1.5px solid var(--rand); transition: transform .2s ease-out, box-shadow .2s ease-out; }
a.tegel:hover { transform: rotate(-1deg) translateY(-4px); box-shadow: 0 18px 36px -22px rgba(26,26,46,.5); }
.tegel:nth-child(even):hover { transform: rotate(1deg) translateY(-4px); }
.tegel h3 { font-size: 24px; }
.tegel p { font-size: 16px; }
.tegel .meer { margin-top: auto; font-weight: 800; font-size: 15px; }
.tegels > .tegel-groot { grid-column: span 6; }
.tegels > .tegel-breed { grid-column: span 6; }
.tegels > .tegel-vol { grid-column: 1 / -1; }
.tegel-vol { display: grid; grid-template-columns: 1fr 1.5fr; grid-template-rows: auto auto 1fr; column-gap: 32px; align-items: start; }
.tegel-vol h3, .tegel-vol p, .tegel-vol .meer { grid-column: 1; }
.tegel-vol h3 { font-size: 30px; margin-top: 8px; }
.tegel-vol p { font-size: 17px; }
.tegel-vol .meer { align-self: end; }
.tegel-vol .tegel-beeld { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; }
.tegel-blauw { background: var(--blauw); border-color: var(--blauw); color: white; }
.tegel-groen { background: var(--groen); border-color: var(--groen); color: white; }
.tegel-nacht { background: #1E2A5A; border-color: #1E2A5A; color: white; }
.tegel-paars { background: #7C3AED; border-color: #7C3AED; color: white; }
.tegel-paars p { color: rgba(255,255,255,.9); }
.tegel-blauw p, .tegel-groen p, .tegel-nacht p { color: rgba(255,255,255,.88); }
.tegel-rood { background: var(--rood-licht); border-color: transparent; }
.tegel-geel { background: var(--geel-licht); border-color: transparent; }
.tegel-beeld { border-radius: 12px; overflow: hidden; margin-top: 6px; background: rgba(255,255,255,.15); }
.tegel-beeld img { width: 100%; height: auto; }
.tegel .app-icoon { margin-bottom: 4px; }
.tegel-paars .app-icoon { background: rgba(255,255,255,.18); }
.tegel-blauw .app-icoon, .tegel-groen .app-icoon, .tegel-paars .app-icoon { box-shadow: inset 0 0 0 2px rgba(255,255,255,.35); }
@media (max-width: 900px) { .tegels > .tegel { grid-column: span 6; } .tegels > .tegel-groot, .tegels > .tegel-breed, .tegels > .tegel-vol { grid-column: 1 / -1; } }
@media (max-width: 600px) { .tegels > .tegel { grid-column: 1 / -1; } .tegel-vol { grid-template-columns: 1fr; } .tegel-vol .tegel-beeld { grid-column: 1; grid-row: auto; margin-top: 6px; } }

/* ---------- Footer ---------- */
.footer { background: var(--tekst); color: white; padding: 64px 0 32px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer .logo-tekst .lt-meester { color: rgba(255,255,255,0.6); }
.footer .logo-tekst .lt-naam { color: white; }
.footer p { color: rgba(255,255,255,0.72); font-size: 15px; margin-top: 18px; max-width: 38ch; }
.footer h4 { font-size: 14px; color: white; margin-bottom: 14px; }
.footer ul { list-style: none; display: grid; gap: 9px; }
.footer ul a { text-decoration: none; color: rgba(255,255,255,0.78); font-weight: 700; font-size: 15px; }
.footer ul a:hover { color: white; text-decoration: underline; text-underline-offset: 3px; }
.footer-onder { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.14); font-size: 14px; color: rgba(255,255,255,0.6); font-weight: 600; }

/* ---------- Toast + modal ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 400; transform: translate(-50%, 16px); opacity: 0; padding: 13px 20px; border-radius: 12px; background: var(--tekst); color: white; font-weight: 800; font-size: 15px; transition: opacity .2s ease-out, transform .2s ease-out; pointer-events: none; max-width: calc(100vw - 32px); text-align: center; }
.toast.zichtbaar { transform: translate(-50%, 0); opacity: 1; }
.modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 16px; background: rgba(26,26,46,0.5); opacity: 0; pointer-events: none; transition: opacity .2s ease-out; }
.modal.open { opacity: 1; pointer-events: auto; }
.modal-doos { width: 100%; max-width: 500px; background: var(--wit); border-radius: 16px; padding: 30px; }
.modal-doos h2 { font-size: 24px; margin: 16px 0 10px; }
.modal-doos ul { margin: 14px 0 18px; }
.akkoord { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; background: var(--lichtgrijs); cursor: pointer; font-weight: 700; font-size: 15px; }
.akkoord input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--blauw); flex-shrink: 0; }
.modal-knoppen { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; flex-wrap: wrap; }
.btn[aria-disabled="true"] { opacity: .4; pointer-events: none; }

/* ---------- Responsief ---------- */
@media (max-width: 1240px) {
  .nav a { padding: 9px 8px; font-size: 14.5px; }
}
@media (max-width: 1120px) {
  .nav-knop { display: inline-flex; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px 16px 16px; background: var(--wit); border-bottom: 1.5px solid var(--rand); display: none; }
  .nav a { padding: 13px 14px; font-size: 16px; }
  .nav-open .nav { display: flex; }
  .twee, .twee.smal-breed, .twee.breed-smal { grid-template-columns: 1fr; }
  .overzicht-groep { grid-template-columns: 1fr; gap: 14px; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .header .logo-tekst { display: none; }
  .header .wrap { gap: 8px; }
  .kop-tools { gap: 6px; }
  .tool-knop { padding: 9px 11px; font-size: 13.5px; }
  .tool-knop small { display: none; }
  .kaart { padding: 20px; }
  .modal-doos { padding: 22px; }
  .stappen li { grid-template-columns: 40px 1fr; }
  .stappen li::before { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .hero .markeer { background-size: 100% 100%; }
}
