/* Aanmeldformulier "AI in de praktijk", 1 oktober 2026.
   Projecteigen stijlen bovenop het Daily Matters design system. Alle maten
   en kleuren komen uit paragraaf 4 en 7 van docs/ontwerp/ontwerp-handoff.md.
   Kleuren altijd via de tokens, nooit als losse hexwaarde. */

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--dm-cotton);
  font-family: var(--dm-font-sans);
  color: var(--dm-midnight);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a { color: var(--dm-biscuit); text-decoration: none; }
a:hover { color: color-mix(in srgb, var(--dm-biscuit) 82%, black); text-decoration: underline; }
button { font-family: inherit; }

/* Toetsenbordgebruikers moeten altijd zien waar ze zijn. Biscuit focusring. */
:where(a, button, input, textarea, select, [tabindex]):focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(185, 149, 96, 0.40);
}

.eyebrow {
  font-size: 11px;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--dm-biscuit);
  font-weight: 700;
}

.verborgen { display: none !important; }

/* Honeypot. Weg van het scherm, niet display:none, want sommige bots
   negeren verborgen velden juist. */
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ============================================================
   Hero (paragraaf 4.1)
   ============================================================ */

.hero {
  position: relative;
  overflow: hidden;
  background: #1e2b3d;
  color: #fff;
  padding: clamp(28px, 5vw, 52px) 24px clamp(30px, 5vw, 54px);
}

.hero__foto {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background: rgba(30, 43, 61, .85);
  pointer-events: none;
}

.hero__kolom {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(22px, 4vw, 34px);
}

.hero__logo {
  height: 38px;
  width: 317px;
  max-width: 100%;
  align-self: flex-end;
}

.hero__tekst { display: flex; flex-direction: column; gap: 12px; }

.hero__titel {
  font-family: var(--dm-font-display);
  font-weight: 700;
  font-size: clamp(34px, 7vw, 54px);
  line-height: 1.04;
  letter-spacing: -.03em;
  margin: 0;
  color: #fff;
}

.hero__intro {
  margin: 0;
  font-size: clamp(15px, 2.2vw, 18px);
  line-height: 1.5;
  color: var(--dm-cotton);
  max-width: 46ch;
  text-wrap: pretty;
}

.hero__programma {
  border-top: 1px solid rgba(255, 255, 255, .18);
  padding-top: 16px;
  font-size: 13px;
  line-height: 1.7;
  color: #b1b9ca;
}

/* Smalle midnight-header voor /privacy en /beheer (paragraaf 4.5) */
.kopbalk { background: var(--dm-midnight); padding: 20px 24px; }

.kopbalk__kolom {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.kopbalk--breed .kopbalk__kolom { max-width: 1080px; }
.kopbalk__logo { height: 30px; width: 250px; max-width: 100%; display: block; }

.kopbalk__label {
  font-size: 12px;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--dm-biscuit);
  font-weight: 600;
}

/* ============================================================
   Formulierpagina (paragraaf 4.2)
   ============================================================ */

.kolom {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 48px) 24px 80px;
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 4vw, 36px);
}

.kolom--breed { max-width: 1080px; padding-top: clamp(24px, 4vw, 40px); }
.kolom--smal { max-width: 720px; padding-top: clamp(28px, 5vw, 52px); padding-bottom: 90px; gap: 28px; }

.inleiding {
  margin: 0;
  font-size: clamp(16px, 2.2vw, 18px);
  line-height: 1.65;
  color: var(--dm-sky);
  max-width: 60ch;
  text-wrap: pretty;
}

/* Geen radius, geen schaduw. Scheiding komt van hairlines. */
.kaart {
  background: var(--dm-white);
  display: flex;
  flex-direction: column;
}

.sectie {
  padding: clamp(22px, 4vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sectie + .sectie { border-top: 1px solid var(--dm-border); }
.sectie--keuze { gap: 18px; }

.sectie__kop { display: flex; flex-direction: column; gap: 6px; }

.sectie__kop--inline {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 14px;
}

.sectie h2 {
  font-family: var(--dm-font-display);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -.015em;
  margin: 0;
}

.sectie__hulp { margin: 0; font-size: 13px; line-height: 1.5; color: var(--dm-sky); }
.sectie__tijd { font-size: 14px; color: var(--dm-sky); }
.sectie__hint { font-size: 13px; color: var(--dm-sky-light); margin-left: auto; }

.velden {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
}

.dm-field { gap: 6px; }

/* Veld met een fout (paragraaf 5.2) */
.dm-input.fout,
.dm-textarea.fout {
  border-color: var(--dm-danger);
  box-shadow: inset 0 0 0 1px var(--dm-danger);
}

.dm-error a { color: inherit; text-decoration: underline; }
.dm-error--breed { display: block; line-height: 1.5; }

.dm-callout { border-radius: 0; }
.dm-callout--warning .dm-callout__body { color: var(--dm-midnight); }

/* ---------- Sessiekaarten ---------- */

.sessies { display: flex; flex-direction: column; gap: 12px; }

.sessie {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 18px;
  background: var(--dm-white);
  box-shadow: inset 0 0 0 1px var(--dm-border);
  color: var(--dm-midnight);
  cursor: pointer;
  transition: box-shadow 180ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.sessie:has(input:checked) { box-shadow: inset 0 0 0 2px var(--dm-midnight); }

.sessie--vol {
  background: var(--dm-cotton);
  color: var(--dm-sky-light);
  cursor: not-allowed;
}

.sessie:has(input:focus-visible) { box-shadow: inset 0 0 0 2px var(--dm-midnight), 0 0 0 3px rgba(185, 149, 96, 0.40); }

.sessie .dm-check { margin-top: 2px; }
.sessie__body { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.sessie__kopregel { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.sessie__titel {
  font-family: var(--dm-font-display);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: -.015em;
}

.sessie__omschrijving {
  font-size: 14px;
  line-height: 1.65;
  color: var(--dm-sky);
  max-width: 62ch;
  text-wrap: pretty;
}

.sessie--vol .sessie__omschrijving { color: inherit; }
.sessie__melding { font-size: 12px; font-weight: 600; color: var(--dm-biscuit); }

/* ---------- Lunch ---------- */

.lunchkeuzes { display: flex; flex-direction: column; gap: 12px; }
.lunchkeuzes .dm-check { align-items: flex-start; font-size: 15px; }
.lunchkeuzes .dm-check:has(input:checked) { font-weight: 600; }
.lunchkeuzes .dm-check:has(input:disabled) { opacity: .5; cursor: not-allowed; }
.lunchmelding { font-size: 13px; font-weight: 600; color: var(--dm-biscuit); }
.dieetveld { gap: 6px; max-width: 420px; }

/* ---------- Afsluiting ---------- */

.akkoord {
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.55;
  max-width: 60ch;
}

.knoprij {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 20px;
}

.knoprij__toelichting {
  font-size: 12px;
  line-height: 1.5;
  color: var(--dm-sky-light);
  max-width: 30ch;
}

.dm-btn--lg { min-width: 200px; }
.dm-btn[aria-busy="true"] { opacity: .7; pointer-events: none; }

.contactregel {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--dm-sky-light);
}

/* ============================================================
   Bevestiging (paragraaf 4.3) en gesloten (4.4)
   ============================================================ */

.paneel {
  background: var(--dm-white);
  padding: clamp(24px, 4vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.paneel--kort { gap: 14px; }
.paneel__kop { display: flex; flex-direction: column; gap: 10px; }

.paneel__titel {
  font-family: var(--dm-font-display);
  font-weight: 700;
  font-size: clamp(26px, 4.5vw, 36px);
  line-height: 1.1;
  letter-spacing: -.02em;
  margin: 0;
}

.paneel--kort .paneel__titel { font-size: clamp(24px, 4vw, 32px); line-height: 1.15; }

.paneel__regel {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--dm-sky);
  max-width: 56ch;
}

.samenvatting {
  margin: 0;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--dm-border);
}

.samenvatting__rij {
  display: grid;
  grid-template-columns: minmax(120px, 150px) 1fr;
  gap: 8px 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--dm-border);
}

.samenvatting dt { font-size: 13px; font-weight: 600; color: var(--dm-sky); }
.samenvatting dd { margin: 0; font-size: 15px; line-height: 1.5; color: var(--dm-midnight); }

.agenda { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.agenda__toelichting { font-size: 13px; color: var(--dm-sky-light); }

.paneel__slot {
  margin: 0;
  border-top: 1px solid var(--dm-border);
  padding-top: 20px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--dm-sky);
  max-width: 60ch;
}

.tekstknop {
  align-self: flex-start;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--dm-biscuit);
  cursor: pointer;
}

.tekstknop--inline {
  align-self: auto;
  font-size: inherit;
  font-weight: 600;
  text-decoration: underline;
}

/* ============================================================
   Privacy (paragraaf 4.5)
   ============================================================ */

.privacy__intro { display: flex; flex-direction: column; gap: 12px; }

.privacy__titel {
  font-family: var(--dm-font-display);
  font-weight: 700;
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1.08;
  letter-spacing: -.025em;
  margin: 0;
}

.privacy__lead {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--dm-sky);
  max-width: 56ch;
  text-wrap: pretty;
}

.privacy__blokken {
  background: var(--dm-white);
  padding: clamp(22px, 4vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.privacy__blok { display: flex; flex-direction: column; gap: 8px; }

.privacy__blok h2 {
  font-family: var(--dm-font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -.015em;
  margin: 0;
}

.privacy__blok p {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--dm-sky);
  max-width: 64ch;
  text-wrap: pretty;
}

/* ============================================================
   Beheer (paragraaf 4.6)
   ============================================================ */

.beheer__kop {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.beheer__titelblok { display: flex; flex-direction: column; gap: 8px; }

.beheer__titel {
  font-family: var(--dm-font-display);
  font-weight: 700;
  font-size: clamp(24px, 4vw, 32px);
  line-height: 1.1;
  letter-spacing: -.02em;
  margin: 0;
}

.tellers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
}

.teller {
  background: var(--dm-white);
  border: 1px solid var(--dm-border);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.teller__label { font-size: 12px; font-weight: 600; color: var(--dm-sky); }
.teller__cijfers { display: flex; align-items: baseline; gap: 6px; }

.teller__bezet {
  font-family: var(--dm-font-display);
  font-weight: 700;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -.02em;
}

.teller__van { font-size: 13px; color: var(--dm-sky-light); }
.teller__baan { display: block; height: 4px; background: var(--dm-cotton); }
.teller__balk { display: block; height: 100%; background: var(--dm-midnight); }
.teller__status { font-size: 12px; color: var(--dm-sky-light); }

.teller--bijna .teller__balk { background: var(--dm-biscuit); }
.teller--bijna .teller__status { color: var(--dm-biscuit); }
.teller--vol .teller__balk { background: var(--dm-status-red); }
.teller--vol .teller__status { color: var(--dm-danger-ink); }

.dm-tablewrap { background: var(--dm-white); overflow-x: auto; }
.dm-table td.email { min-width: 0; overflow-wrap: anywhere; }
.dm-table .nowrap { white-space: nowrap; }

/* De actiekolom blijft in beeld als de tabel horizontaal scrolt. Beide
   toestanden van de knop passen in dezelfde 96px, zodat niets verspringt. */
.dm-table th.actie,
.dm-table td.actie {
  text-align: right;
  white-space: nowrap;
  width: 96px;
  min-width: 96px;
  position: sticky;
  right: 0;
  background: var(--dm-white);
}

.actie__bevestig { display: inline-flex; gap: 10px; align-items: baseline; justify-content: flex-end; }

.actie button {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--dm-sky);
  cursor: pointer;
}

.actie button.ja { font-weight: 600; color: var(--dm-danger-ink); }

.beheer__voetnoot {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--dm-sky-light);
  max-width: 70ch;
}

/* Inlogscherm voor /beheer */
.inlog {
  max-width: 420px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 48px) 24px 80px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.inlog .knoprij { margin-top: 16px; }

/* ============================================================
   Responsief (paragraaf 5.6). Mobiel eerst, raakdoelen minimaal 44px.
   ============================================================ */

@media (max-width: 480px) {
  .velden { grid-template-columns: 1fr; }
  .sectie__hint { margin-left: 0; }
  .dm-btn--lg { width: 100%; min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 1ms !important; animation-duration: 1ms !important; }
}

/* Herinneringsmail op /beheer */
.herinnering {
  background: var(--dm-white);
  border: 1px solid var(--dm-border);
  padding: 18px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}

.herinnering__tekst { display: flex; flex-direction: column; gap: 4px; margin-right: auto; }
.herinnering__stand { margin: 0; font-size: 15px; line-height: 1.5; color: var(--dm-midnight); }
.herinnering__melding { font-size: 13px; color: var(--dm-sky); flex-basis: 100%; }
.herinnering__melding.fout { color: var(--dm-danger-ink); }
.herinnering .dm-btn[disabled] { opacity: .45; pointer-events: none; }
