/* Vrijwilligersapp Zegerplas — schermen uit het ontwerp (2a op de telefoon,
   3a op een breed scherm, 4b als openingsscherm). Alle kleuren, radii en
   schaduwen komen uit ds.css; hier staat alleen de opmaak van de app zelf. */

html,
body {
  height: 100%;
}
body {
  /* 3a: de app blijft telefoonbreed op de zandkleur van het systeem. */
  background: var(--color-surface);
  overscroll-behavior: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
}

/* ── Schil ─────────────────────────────────────────────────────────────── */
.schil {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 402px;
  height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
  background: var(--color-bg);
}
@media (min-width: 460px) and (min-height: 620px) {
  body {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .schil {
    height: min(880px, calc(100dvh - 56px));
    border-radius: 34px;
    box-shadow: var(--shadow-lg);
  }
}

.blad {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* ── Kop van elk tabblad ───────────────────────────────────────────────── */
.kop {
  padding: max(env(safe-area-inset-top, 0px) + 10px, 22px) 16px 10px;
}
.kicker {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent-700);
}
.kop-rij {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin-top: 4px;
}
.kop-tekst {
  flex: 1;
  min-width: 0;
}
.titel {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -0.015em;
}
.sub {
  margin-top: 2px;
  font-size: 13px;
  opacity: 0.6;
}
.telpil {
  flex: none;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  white-space: nowrap;
}
.telpil.open {
  background: var(--color-accent-100);
  color: var(--color-accent-800);
}
.telpil.vol {
  background: var(--color-accent-2-200);
  color: var(--color-accent-2-800);
}

/* ── Weekchips ─────────────────────────────────────────────────────────── */
.chips {
  display: flex;
  gap: 7px;
  margin-top: 12px;
  padding-bottom: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar {
  display: none;
}
.chip {
  flex: none;
  min-height: 38px;
  padding: 8px 16px;
  font-size: 13px;
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-divider);
}
.chip.aan {
  background: var(--color-accent);
  color: var(--color-bg);
  border-color: var(--color-accent);
}
.chip .chip-tel {
  margin-left: 6px;
  font-family: var(--font-body);
  font-size: 11px;
  opacity: 0.7;
}

/* ── Filterregel ───────────────────────────────────────────────────────── */
.filterrij {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 16px 12px;
}
.filterrij .btn {
  min-height: 38px;
  font-size: 12.5px;
}
.filterrij .btn-secondary {
  padding: 7px 14px;
}
.rek {
  flex: 1;
}

/* ── Rolkaarten ────────────────────────────────────────────────────────── */
.kaarten {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
  padding: 0 16px;
}
.kaart {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 134px;
  padding: 14px 14px 13px;
  border-radius: 26px;
  border: 1.5px solid transparent;
  background: var(--color-surface);
  font-family: var(--font-body);
  color: var(--color-text);
  text-align: left;
}
button.kaart {
  cursor: pointer;
  font-size: inherit;
}
.kaart.vrij {
  background: var(--color-accent-100);
  border-color: var(--color-accent-400);
}
button.kaart.bezet:hover {
  background: var(--color-neutral-200);
}
button.kaart.bezet:active {
  transform: scale(0.985);
}
.kaart-kop {
  display: flex;
  align-items: center;
  gap: 5px;
}
.kaart-kicker {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--color-text) 45%, transparent);
}
.kaart.vrij .kaart-kicker {
  color: var(--color-accent-700);
}
.kaart-rol {
  flex: 1;
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  font-size: 16.5px;
  line-height: 1.15;
}
.kaart .btn-primary {
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  font-size: 13.5px;
}
.wie {
  display: flex;
  align-items: center;
  gap: 6px;
}
.wie-naam {
  min-width: 0;
  overflow: hidden;
  font-size: 12.5px;
  opacity: 0.75;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bol {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--color-accent-2-300);
  font-size: 11px;
  font-weight: 700;
  color: var(--color-accent-2-800);
}
.tag-extra {
  padding: 1px 7px;
  font-size: 9.5px;
}

.kaart-extra {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  min-height: 134px;
  padding: 14px;
  border: 1.5px dashed var(--color-neutral-400);
  border-radius: 26px;
  background: transparent;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  font-size: 15px;
  color: var(--color-accent-700);
  text-align: left;
}
.kaart-extra:hover {
  background: color-mix(in srgb, var(--color-accent) 7%, transparent);
}
.kaart-extra .plus {
  font-size: 22px;
  line-height: 1;
}
.kaart-extra .fijn {
  font-family: var(--font-body);
  font-size: 11.5px;
  opacity: 0.7;
}

/* ── Afwezig ───────────────────────────────────────────────────────────── */
.blok {
  padding: 16px 16px 20px;
}
.paneel {
  padding: 15px 16px;
  border-radius: 26px;
  background: var(--color-surface);
}
.paneel-label {
  font-size: 12px;
  opacity: 0.6;
}
.paneel-tekst {
  margin-top: 3px;
  font-size: 14.5px;
}
.paneel .btn-block {
  min-height: 44px;
  font-size: 13.5px;
}

/* ── Mijn taken ────────────────────────────────────────────────────────── */
.mij {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 16px;
  padding: 14px 16px;
  border-radius: 26px;
  background: var(--color-accent-2-100);
}
.mij .bol {
  width: 42px;
  height: 42px;
  font-size: 15px;
}
.mij-naam {
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  font-size: 17px;
  line-height: 1.15;
}
.mij-barcode {
  margin-top: 1px;
  font-size: 12.5px;
  opacity: 0.65;
}
.lijst {
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 14px 16px 0;
}
.taak {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 26px;
  background: var(--color-surface);
}
.taak-rol {
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  font-size: 17px;
  line-height: 1.15;
}
.taak-datum {
  margin-top: 2px;
  font-size: 12.5px;
  opacity: 0.6;
}
.taak .btn {
  flex: none;
  min-height: 40px;
  padding: 7px 13px;
  font-size: 12.5px;
}
.leeg {
  margin: 16px;
  padding: 22px 18px;
  border-radius: 28px;
  background: var(--color-surface);
}
.leeg h2 {
  margin: 0;
  font-size: 19px;
  line-height: 1.2;
}
.leeg p {
  margin: 6px 0 0;
  font-size: 13.5px;
  opacity: 0.7;
}

/* ── Vrijwilligers ─────────────────────────────────────────────────────── */
.mensen {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 8px 16px 0;
}
.mens {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 14px;
  border-radius: 22px;
  background: var(--color-surface);
}
.mens-naam {
  overflow: hidden;
  font-size: 14.5px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mens-barcode {
  margin-top: 1px;
  font-size: 12px;
  opacity: 0.55;
}
.mens-tel {
  flex: none;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  white-space: nowrap;
  color: color-mix(in srgb, var(--color-text) 45%, transparent);
}
.mens-tel.actief {
  background: var(--color-accent-2-200);
  color: var(--color-accent-2-800);
}

/* ── Tabbalk ───────────────────────────────────────────────────────────── */
.tabbalk {
  display: flex;
  flex: none;
  padding: 8px 8px max(env(safe-area-inset-bottom, 0px), 10px);
  background: var(--color-surface);
  border-top: 1px solid rgba(32, 30, 29, 0.08);
}
.tabknop {
  flex: 1;
  min-height: 44px;
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: color-mix(in srgb, var(--color-text) 50%, transparent);
}
.tabknop.aan {
  font-weight: 700;
  color: var(--color-accent-700);
}

/* ── Toast en meldingen ────────────────────────────────────────────────── */
.toast {
  position: absolute;
  right: 16px;
  bottom: 96px;
  left: 16px;
  z-index: 70;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--color-accent-2-800);
  color: var(--color-accent-2-100);
  box-shadow: var(--shadow-md);
  font-size: 13.5px;
  text-align: center;
  animation: opkomen 0.18s ease-out;
}
.toast.fout {
  background: var(--color-accent-800);
  color: var(--color-accent-100);
}
@keyframes opkomen {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
.streep {
  padding: 7px 16px;
  background: var(--color-accent-200);
  color: var(--color-accent-800);
  font-size: 12.5px;
  text-align: center;
}

/* ── Bodemblad (dialoog) ───────────────────────────────────────────────── */
.overlay {
  position: absolute;
  inset: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: rgba(46, 43, 37, 0.45);
}
.bodemblad {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 88%;
  padding: 20px 18px max(env(safe-area-inset-bottom, 0px) + 18px, 34px);
  border-radius: 32px 32px 0 0;
  background: var(--color-bg);
  overflow-y: auto;
  animation: omhoog 0.22s cubic-bezier(0.2, 0.8, 0.3, 1);
}
@keyframes omhoog {
  from {
    transform: translateY(18px);
  }
}
.bodemblad h2 {
  margin: 0;
  font-size: 21px;
  line-height: 1.15;
}
.bodemblad .titelsub {
  margin-top: 2px;
  font-size: 13px;
  opacity: 0.6;
}
.bodemblad .veldgroep {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.bodemblad .input {
  min-height: 44px;
}
.bodemblad .btn {
  min-height: 46px;
}
.wie-label {
  font-size: 12px;
  opacity: 0.7;
}
.zoekhint {
  font-size: 11.5px;
  opacity: 0.55;
}
.keuzes {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  max-height: 130px;
  overflow-y: auto;
}
.keuzes .btn,
.suggesties .btn {
  min-height: 38px;
  padding: 7px 13px;
  font-size: 13px;
}
.suggesties {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.suggesties .btn {
  font-size: 12.5px;
}
.btn-secondary.gekozen {
  background: var(--color-accent-2-200);
  border-color: var(--color-accent-2-500);
}
.suggesties .btn-secondary.gekozen {
  background: var(--color-accent-200);
  border-color: var(--color-accent-500);
}
.knoprij {
  display: flex;
  gap: 8px;
}
.knoprij .btn-secondary {
  flex: none;
}
.knoprij .btn-primary {
  flex: 1;
  font-size: 14.5px;
}
.melding {
  font-size: 12.5px;
  opacity: 0.7;
}
.bodemblad .btn-ghost {
  align-self: flex-start;
  min-height: 0;
  font-size: 12.5px;
}

/* ── Openingsscherm en toegangscode (4b) ───────────────────────────────── */
.start {
  position: absolute;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 40px;
  background: var(--color-accent);
  text-align: center;
}
.start.weg {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease-out;
}
.tegel {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 104px;
  height: 104px;
  border-radius: 32px;
  background: var(--color-bg);
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  font-size: 52px;
  line-height: 1;
  color: var(--color-accent);
}
.start-naam {
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  font-size: 27px;
  line-height: 1.15;
  color: var(--color-bg);
}
.start-onder {
  margin-top: 6px;
  font-size: 14px;
  color: rgba(245, 234, 216, 0.8);
}
.slot {
  width: 100%;
  max-width: 320px;
  padding: 18px 18px 20px;
  border-radius: 28px;
  background: var(--color-bg);
  box-shadow: var(--shadow-lg);
  text-align: left;
}
.slot h2 {
  margin: 0 0 6px;
  font-size: 19px;
  line-height: 1.2;
}
.slot p {
  margin: 0 0 12px;
  font-size: 13.5px;
  opacity: 0.75;
}
.slot .input {
  min-height: 46px;
}
.slot .btn-primary {
  width: 100%;
  min-height: 46px;
  margin-top: 10px;
  font-size: 14.5px;
}
.slot .fout {
  margin: 8px 0 0;
  font-size: 12.5px;
  color: var(--color-accent-700);
}

/* ── Installatiekaart (4a) ─────────────────────────────────────────────── */
.installeer {
  margin: 0 16px 20px;
  padding: 18px 20px 20px;
  border-radius: 28px;
  background: var(--color-surface);
}
.installeer h2 {
  margin: 0;
  font-size: 19px;
  line-height: 1.2;
}
.installeer p {
  margin: 6px 0 12px;
  font-size: 13.5px;
  opacity: 0.75;
}
.installeer .btn-primary {
  width: 100%;
  min-height: 46px;
  font-size: 14.5px;
}
.installeer .btn-ghost {
  margin-top: 4px;
  width: 100%;
  font-size: 12.5px;
}

.verborgen {
  display: none !important;
}
