/* mijn.praktijknatuur — basisstijl
   Mobile-first. Rustige natuurlijke tonen, ruime regelhoogte, grote tikvlakken.
*/

:root {
  --groen-diep: #3f5d3f;
  --groen-zacht: #6e8c6e;
  --groen-licht: #e8efe5;
  --creme: #f7f4ee;
  --inkt: #2a2a26;
  --inkt-zacht: #5b5b53;
  --lijn: #d6d2c4;
  --accent: #b66b3f;
  --rood: #9b3a3a;
  --kaart-bg: #ffffff;
  --schaduw: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.04);
  --radius: 10px;
  --maxbreedte: 780px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--creme);
  color: var(--inkt);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--groen-diep); }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--groen-diep);
  color: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.topbar-inner {
  max-width: var(--maxbreedte);
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
}
.praktijk {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  line-height: 1.25;
}
.praktijk-marker { font-size: 22px; }
.praktijk-naam strong { font-weight: 600; }

.opslag {
  font-size: 13px;
  opacity: 0.95;
  background: rgba(255, 255, 255, 0.12);
  padding: 6px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.opslag.actief { background: rgba(255, 255, 255, 0.22); }

.voortgang-wrap {
  height: 4px;
  background: rgba(255, 255, 255, 0.18);
}
.voortgang-balk {
  height: 100%;
  width: 0%;
  background: #c8e0b9;
  transition: width 0.25s ease;
}

/* ---------- Container ---------- */
.container {
  max-width: var(--maxbreedte);
  margin: 0 auto;
  padding: 20px 16px 120px;
}

.kaart {
  background: var(--kaart-bg);
  border-radius: var(--radius);
  box-shadow: var(--schaduw);
  padding: 22px 20px;
  margin-bottom: 18px;
  border: 1px solid var(--lijn);
}

h1 {
  font-size: 28px;
  margin: 0 0 8px;
  color: var(--groen-diep);
  font-weight: 600;
  letter-spacing: -0.01em;
}
h2 {
  font-size: 20px;
  margin: 0 0 12px;
  color: var(--groen-diep);
  font-weight: 600;
}
.lead {
  font-size: 17px;
  color: var(--inkt-zacht);
  margin: 0 0 14px;
}
.info-blok {
  background: var(--groen-licht);
  border-left: 4px solid var(--groen-zacht);
  border-radius: 6px;
  padding: 14px 16px;
  margin-top: 14px;
}
.info-blok p { margin: 0 0 8px; font-size: 15px; }
.info-blok p:last-child { margin: 0; }

.klein { font-size: 14px; color: var(--inkt-zacht); }

/* ---------- Secties ---------- */
.sectie {
  background: var(--kaart-bg);
  border-radius: var(--radius);
  border: 1px solid var(--lijn);
  box-shadow: var(--schaduw);
  margin-bottom: 16px;
  overflow: hidden;
}
.sectie-kop {
  padding: 16px 20px;
  background: var(--creme);
  border-bottom: 1px solid var(--lijn);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}
.sectie-kop:focus-visible {
  outline: 2px solid var(--groen-zacht);
  outline-offset: -2px;
}
.sectie-kop h2 {
  margin: 0;
  font-size: 18px;
}
.sectie-tel {
  font-size: 12px;
  color: var(--inkt-zacht);
  background: #fff;
  border: 1px solid var(--lijn);
  border-radius: 999px;
  padding: 3px 9px;
}
.sectie-pijl {
  color: var(--inkt-zacht);
  font-size: 18px;
  transition: transform 0.2s ease;
}
.sectie.dicht .sectie-pijl { transform: rotate(-90deg); }
.sectie.dicht .sectie-body { display: none; }

.sectie-body { padding: 18px 20px 22px; }

/* ---------- Velden ---------- */
.veld {
  margin-bottom: 18px;
}
.veld:last-child { margin-bottom: 0; }
.veld-label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--inkt);
}

input[type="text"],
textarea {
  width: 100%;
  font: inherit;
  color: var(--inkt);
  background: #fff;
  border: 1px solid var(--lijn);
  border-radius: 8px;
  padding: 11px 13px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  -webkit-appearance: none;
}
textarea {
  resize: vertical;
  min-height: 90px;
  line-height: 1.5;
}
input[type="text"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--groen-zacht);
  box-shadow: 0 0 0 3px rgba(110, 140, 110, 0.18);
}

.optie-lijst {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.optie {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--lijn);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease;
}
.optie:hover { background: var(--creme); }
.optie input { margin-top: 4px; accent-color: var(--groen-diep); transform: scale(1.15); }
.optie.aangevinkt { border-color: var(--groen-zacht); background: var(--groen-licht); }
.optie-label { flex: 1; }

/* ---------- Knoppen ---------- */
button.primair,
button.secundair {
  font: inherit;
  font-weight: 500;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.05s ease, box-shadow 0.15s ease, background 0.15s ease;
}
button.primair {
  background: var(--groen-diep);
  color: #fff;
}
button.primair:hover { background: #4a6b4a; }
button.secundair {
  background: #fff;
  color: var(--groen-diep);
  border-color: var(--groen-zacht);
}
button.secundair:hover { background: var(--groen-licht); }
button.groot { padding: 14px 26px; font-size: 17px; }
button:active { transform: translateY(1px); }
button:focus-visible { outline: 3px solid rgba(110, 140, 110, 0.5); outline-offset: 2px; }

button.link {
  background: none;
  border: none;
  color: var(--groen-diep);
  text-decoration: underline;
  padding: 4px 0;
  cursor: pointer;
  font: inherit;
}

/* ---------- Modal ---------- */
.modal-fond {
  position: fixed;
  inset: 0;
  background: rgba(20, 30, 20, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 50;
}
.modal-fond[hidden] { display: none; }
.modal {
  max-width: 520px;
  width: 100%;
}
.modal-knoppen {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}
.modal-knoppen button { width: 100%; }

/* ---------- Status overlay ---------- */
.overlay-status {
  position: fixed;
  inset: 0;
  background: var(--creme);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 60;
  padding: 24px;
}
.overlay-status[hidden] { display: none; }
.status-binnen {
  text-align: center;
  max-width: 520px;
}
.status-binnen h1 { font-size: 28px; }
#status-acties { margin-top: 22px; display: flex; flex-direction: column; gap: 10px; align-items: center; }

/* ---------- Voettekst ---------- */
.voettekst {
  text-align: center;
  color: var(--inkt-zacht);
  font-size: 13px;
  padding: 18px 16px 28px;
}

/* ---------- Print-weergave (op het scherm verborgen) ---------- */
.alleen-print { display: none; }

/* ---------- Responsive aanpassingen ---------- */
@media (min-width: 640px) {
  .modal-knoppen { flex-direction: row; flex-wrap: wrap; }
  .modal-knoppen button { width: auto; flex: 1 1 auto; }
  .modal-knoppen .link { flex-basis: 100%; }
}

/* Reduceer beweging als de gebruiker dat wil */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
  }
}
