/* Mobiele pagina's (launcher, uren boeken) in de Ematec-huisstijl: groen #6CB33F, donkergroen #4C8A2E. */
:root {
  --groen: #6cb33f;
  --groen-donker: #4c8a2e;
  --groen-licht: #eef5e6;
  --tekst: #2b2f2a;
  --grijs: #595959;
  --rand: #dfe6d8;
  --fout: #b3261e;
  color-scheme: light;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  font-size: 16px;
  color: var(--tekst);
  background: #f6f8f4;
  min-height: 100vh;
}
.balk {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px; background: #fff; border-bottom: 4px solid var(--groen);
  position: sticky; top: 0; z-index: 2;
}
.balk img { height: 32px; width: auto; }
.balk h1 { font-size: 1.1rem; margin: 0; color: var(--groen-donker); flex: 1; }
.balk a, .balk button.link {
  color: var(--groen-donker); text-decoration: none; font-weight: 600; background: none; border: 0; font: inherit; padding: 8px 4px; cursor: pointer;
}
main { max-width: 560px; margin: 0 auto; padding: 16px; }
.welkom { color: var(--grijs); margin: 4px 0 16px; }
.tegels { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.tegel {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  min-height: 120px; padding: 16px; border-radius: 12px; background: #fff; border: 1px solid var(--rand);
  color: var(--tekst); text-decoration: none; font-weight: 600; text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
}
.tegel:active, .tegel:focus-visible { border-color: var(--groen); outline: 2px solid var(--groen); }
.tegel .icoon { width: 44px; height: 44px; border-radius: 50%; background: var(--groen-licht); display: grid; place-items: center; }
.tegel .icoon svg { width: 26px; height: 26px; stroke: var(--groen-donker); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tegel.later { color: var(--grijs); font-weight: 400; border-style: dashed; box-shadow: none; }
.voet { margin-top: 24px; font-size: .9rem; color: var(--grijs); }
.voet a { color: var(--groen-donker); }

.blok { background: #fff; border: 1px solid var(--rand); border-radius: 12px; padding: 16px; margin-bottom: 16px; }
.blok h2 { font-size: 1rem; margin: 0 0 12px; color: var(--groen-donker); }
label { display: block; font-weight: 600; margin: 12px 0 4px; }
label:first-child { margin-top: 0; }
input, textarea, select {
  width: 100%; font: inherit; padding: 12px; border: 1px solid #c9d3c0; border-radius: 8px; background: #fff; color: var(--tekst);
}
input:focus, textarea:focus { outline: 2px solid var(--groen); border-color: var(--groen); }
textarea { min-height: 72px; resize: vertical; }
.rij { display: flex; gap: 12px; }
.rij > div { flex: 1; min-width: 0; }
.keuze { display: flex; gap: 8px; margin: 12px 0 4px; }
.keuze button {
  flex: 1; font: inherit; padding: 10px; border-radius: 8px; border: 1px solid var(--rand); background: #fff; color: var(--tekst); cursor: pointer;
}
.keuze button[aria-pressed="true"] { background: var(--groen-licht); border-color: var(--groen); color: var(--groen-donker); font-weight: 600; }
.resultaten { list-style: none; margin: 4px 0 0; padding: 0; border: 1px solid var(--rand); border-radius: 8px; max-height: 260px; overflow-y: auto; }
.resultaten:empty { display: none; }
.resultaten li button { display: block; width: 100%; text-align: left; font: inherit; padding: 12px; border: 0; border-bottom: 1px solid var(--rand); background: #fff; cursor: pointer; }
.resultaten li:last-child button { border-bottom: 0; }
.resultaten li button:active, .resultaten li button:focus-visible { background: var(--groen-licht); }
.gekozen { display: flex; align-items: center; gap: 8px; padding: 12px; border-radius: 8px; background: var(--groen-licht); }
.gekozen span { flex: 1; font-weight: 600; }
.gekozen button { font: inherit; background: none; border: 0; color: var(--groen-donker); text-decoration: underline; cursor: pointer; }
.knop {
  display: block; width: 100%; margin-top: 16px; padding: 14px; font: inherit; font-weight: 700; border: 0; border-radius: 8px;
  background: var(--groen); color: #fff; cursor: pointer;
}
.knop:disabled { opacity: .6; }
.melding { padding: 12px; border-radius: 8px; margin: 0 0 12px; }
.melding.fout { background: #fbeaea; color: var(--fout); }
.melding.ok { background: var(--groen-licht); color: var(--groen-donker); }
.hint { color: var(--grijs); font-size: .9rem; margin: 4px 0 0; }
.recent { list-style: none; margin: 0; padding: 0; }
.recent li { padding: 10px 0; border-bottom: 1px solid var(--rand); }
.recent li:last-child { border-bottom: 0; }
.recent .boven { display: flex; justify-content: space-between; gap: 8px; font-weight: 600; }
.recent .onder { color: var(--grijs); font-size: .9rem; overflow-wrap: anywhere; }
[hidden] { display: none !important; }
