/* Afsprakenmodule (Kempensite): het boekblok. De site zet de kleuren met deze variabelen (allemaal optioneel):
   --ak-papier (vlak), --ak-inkt (tekst), --ak-zacht (bijtekst), --ak-lijn, --ak-accent, --ak-accent-inkt (tekst op accent),
   --ak-tint (lichte accentkleur voor gekozen dingen), --ak-hoek (afronding), --ak-letter, --ak-kopletter,
   --ak-veld en --ak-veldrand (invulvelden), --ak-fout (foutkleur), --ak-rand (binnenmarge; 0px = geen eigen vlak),
   --ak-schaduw (schaduw van het vlak; none = geen). */
.ak {
  --_papier: var(--ak-papier, #fffdf9);
  --_inkt: var(--ak-inkt, #1f1b18);
  --_zacht: var(--ak-zacht, #6a625b);
  --_lijn: var(--ak-lijn, rgba(31, 27, 24, 0.14));
  --_accent: var(--ak-accent, #1f1b18);
  --_accent-inkt: var(--ak-accent-inkt, #fff);
  --_tint: var(--ak-tint, rgba(31, 27, 24, 0.06));
  --_hoek: var(--ak-hoek, 14px);
  --_letter: var(--ak-letter, system-ui, -apple-system, "Segoe UI", sans-serif);
  --_kop: var(--ak-kopletter, var(--_letter));
  --_fout: var(--ak-fout, #b3261e);
  --_rand: var(--ak-rand, 1.1rem);
  position: relative;
  min-width: 0;
  max-width: 34rem;
  scroll-margin-top: 4.5rem;
  color: var(--_inkt);
  font-family: var(--_letter);
  font-size: 1rem;
  line-height: 1.45;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
}
.ak *, .ak *::before, .ak *::after { box-sizing: border-box; }
.ak ::selection { background: var(--_accent); color: var(--_accent-inkt); }
.ak[aria-busy="true"] { min-height: 22rem; }
@media (min-width: 30rem) { .ak { --_rand: var(--ak-rand, 1.6rem); } }
.ak-paneel {
  background: var(--_papier);
  border-radius: calc(var(--_hoek) + 4px);
  padding: calc(var(--_rand) + 0.15rem) var(--_rand) calc(var(--_rand) + 0.25rem);
  box-shadow: var(--ak-schaduw, 0 1px 2px rgba(20, 16, 12, 0.06), 0 12px 32px -12px rgba(20, 16, 12, 0.22));
  min-width: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .ak-paneel.ak-in .ak-stap { animation: ak-in 0.32s cubic-bezier(0.16, 1, 0.3, 1); }
  @keyframes ak-in { from { opacity: 0.001; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}
.ak p { margin: 0; }
:where(.ak) button { font: inherit; color: inherit; }
.ak :focus-visible { outline: 2px solid var(--_accent); outline-offset: 2px; }
.ak-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ak-ico { width: 1.25rem; height: 1.25rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* kop van elke stap */
.ak-bovenbalk { display: flex; align-items: center; gap: 0.35rem; margin: -0.25rem 0 0.35rem -0.4rem; min-height: 2.75rem; }
.ak-bovenbalk:not(:has(.ak-terug)) { margin-left: 0; }
.ak-kop { margin: 0; font: 600 1.35rem/1.15 var(--_kop); letter-spacing: -0.01em; text-transform: none; color: var(--_inkt); text-wrap: balance; }
.ak-kop:focus { outline: none; }
.ak-terug { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.ak-terug:hover { background: var(--_tint); }
.ak-gekozen { color: var(--_zacht); font-size: 0.95rem; margin-bottom: 1rem !important; }

/* lijsten: diensten en medewerkers */
.ak-diensten { margin-top: 0.5rem; }
.ak-groep { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--_zacht); padding: 1rem 0 0.35rem; }
.ak-groep:first-child { padding-top: 0.25rem; }
.ak-lijst { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--_lijn); }
.ak-lijst li { border-bottom: 1px solid var(--_lijn); }
.ak-rij {
  display: grid; grid-template-columns: auto 1fr auto auto; grid-template-areas: "bol naam prijs pijl" "bol meta prijs pijl";
  align-items: center; column-gap: 0.75rem; width: 100%; min-height: 3.75rem; padding: 0.7rem 0.4rem;
  border: 0; background: transparent; text-align: left; cursor: pointer; border-radius: 8px;
  transition: background-color 0.15s ease;
}
.ak-rij:hover { background: var(--_tint); }
.ak-rij:active { background: var(--_tint); transform: scale(0.995); }
.ak-rij__naam { grid-area: naam; font-weight: 600; font-size: 1.05rem; }
.ak-rij__meta { grid-area: meta; color: var(--_zacht); font-size: 0.9rem; }
.ak-rij__prijs { grid-area: prijs; font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }
.ak-rij__pijl { grid-area: pijl; color: var(--_zacht); width: 1.1rem; height: 1.1rem; }
.ak-bol { grid-area: bol; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--_tint); font-weight: 700; }
.ak-bol .ak-ico { width: 1.15rem; height: 1.15rem; opacity: 0.75; }

/* dagen */
.ak-dagkop { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.5rem; }
.ak-maand { font-weight: 600; }
.ak-maand::first-letter { text-transform: uppercase; }
.ak-bladeren { display: flex; gap: 0.25rem; }
.ak-blader { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 1px solid var(--_lijn); border-radius: 50%; background: transparent; cursor: pointer; }
.ak-blader:hover:not(:disabled) { background: var(--_tint); }
.ak-blader:disabled { opacity: 0.35; cursor: default; }
.ak-dagen {
  list-style: none; margin: 0 calc(-1 * var(--_rand)); padding: 0.25rem var(--_rand) 0.75rem; display: flex; gap: 0.5rem;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: none;
  scroll-padding-inline: var(--_rand);
}
.ak-dagen::-webkit-scrollbar { display: none; }
.ak-dagen li { flex: none; scroll-snap-align: start; }
.ak-dag {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.1rem;
  width: 3.5rem; height: 4.6rem; border: 1px solid var(--_lijn); border-radius: var(--_hoek); background: transparent; cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.ak-dag:hover:not(:disabled) { border-color: var(--_accent); }
.ak-dag:disabled { cursor: default; color: var(--_zacht); opacity: 0.55; border-style: dashed; }
.ak-dag[aria-pressed="true"] { background: var(--_accent); border-color: var(--_accent); color: var(--_accent-inkt); }
.ak-dag__wd { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; }
.ak-dag__nr { font-size: 1.3rem; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.1; }
.ak-dag__st { font-size: 0.7rem; min-height: 0.9rem; }
.ak-dag--laden { border-style: solid; background: var(--_tint); }
@media (prefers-reduced-motion: no-preference) { .ak-dag--laden { animation: ak-puls 1.2s ease-in-out infinite alternate; } }
@keyframes ak-puls { to { opacity: 0.45; } }

/* uren */
.ak-uren { min-height: 9rem; padding-top: 0.5rem; }
.ak-dagdeel + .ak-dagdeel { margin-top: 1rem; }
.ak-dagdeel__naam { font-size: 0.85rem; color: var(--_zacht); margin-bottom: 0.45rem !important; }
.ak-tijden { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(4.6rem, 1fr)); gap: 0.5rem; }
.ak-tijd {
  width: 100%; min-height: 2.9rem; border: 1px solid var(--_lijn); border-radius: calc(var(--_hoek) - 4px); background: transparent;
  font-variant-numeric: tabular-nums; font-weight: 600; cursor: pointer; transition: background-color 0.15s ease, border-color 0.15s ease;
}
.ak-tijd:hover { border-color: var(--_accent); background: var(--_tint); }
.ak-tijd:active { background: var(--_accent); color: var(--_accent-inkt); }
.ak-leeg { color: var(--_zacht); padding: 0.75rem 0; }

/* gegevens */
.ak-overzicht { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 0.15rem 1rem; padding: 0.9rem 1rem; margin: 0.5rem 0 1.25rem; border-radius: var(--_hoek); background: var(--_tint); }
.ak-overzicht__dag { font-weight: 600; }
.ak-overzicht__dag::first-letter { text-transform: uppercase; }
.ak-overzicht__uur { font: 700 1.5rem/1 var(--_kop); font-variant-numeric: tabular-nums; grid-row: span 2; align-self: center; }
.ak-overzicht__wat { color: var(--_zacht); font-size: 0.92rem; }
.ak-veld { margin-bottom: 0.9rem; }
.ak-veld label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 0.3rem; }
.ak-veld input {
  width: 100%; min-height: 3rem; padding: 0.65rem 0.85rem; font: inherit; font-size: 1rem; color: var(--_inkt);
  background: var(--ak-veld, #fff); border: 1px solid var(--ak-veldrand, rgba(31, 27, 24, 0.35)); border-radius: calc(var(--_hoek) - 4px);
  caret-color: var(--_accent); transition: border-color 0.15s ease;
}
.ak-veld input:focus-visible { outline: 2px solid var(--_accent); outline-offset: 0; border-color: var(--_accent); }
.ak-veld input[aria-invalid="true"] { border-color: var(--_fout); }
.ak-veldfout { color: var(--_fout); font-size: 0.88rem; margin-top: 0.25rem !important; }
.ak-veldfout:empty { display: none; }
.ak-honing { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ak-turnstile { margin: 0.25rem 0 0.9rem; min-height: 65px; }
.ak-melding { color: var(--_fout); font-weight: 600; margin-bottom: 0.75rem !important; }
.ak-melding:empty { display: none; }
.ak-knop {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; width: 100%; min-height: 3.25rem; padding: 0.8rem 1.25rem;
  border: 0; border-radius: var(--_hoek); background: var(--_accent); color: var(--_accent-inkt); font: 600 1.05rem/1.1 var(--_letter);
  text-decoration: none; cursor: pointer; transition: filter 0.15s ease, transform 0.1s ease;
}
.ak-knop:hover { filter: brightness(1.08); }
.ak-knop:active { transform: scale(0.99); }
.ak-knop:disabled { cursor: progress; opacity: 0.75; }
.ak-knop:focus-visible { outline: 2px solid var(--_accent); outline-offset: 3px; }
.ak-klein { color: var(--_zacht); font-size: 0.88rem; margin-top: 0.75rem !important; }
.ak-klein a { color: var(--_inkt); font-weight: 600; text-underline-offset: 0.18em; }
.ak-demo { margin-top: 1rem !important; padding-top: 0.85rem; border-top: 1px dashed var(--_lijn); color: var(--_zacht); font-size: 0.88rem; }
.ak-fout { padding: 1.25rem; border-radius: var(--_hoek); background: var(--_papier); color: var(--_inkt); }

/* bevestiging */
.ak-klaar { text-align: center; padding-top: 0.5rem; }
.ak-klaar .ak-kop { margin: 0.9rem 0 1.1rem; }
.ak-vink { display: grid; place-items: center; width: 3.75rem; height: 3.75rem; margin: 0 auto; border-radius: 50%; background: var(--_accent); color: var(--_accent-inkt); }
.ak-vink__ico { width: 1.9rem; height: 1.9rem; stroke-width: 2.4; }
@media (prefers-reduced-motion: no-preference) {
  .ak-vink { animation: ak-pop 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
  .ak-vink__ico path { stroke-dasharray: 24; stroke-dashoffset: 24; animation: ak-teken 0.45s 0.18s cubic-bezier(0.65, 0, 0.35, 1) forwards; }
  @keyframes ak-pop { from { transform: scale(0.6); opacity: 0; } }
  @keyframes ak-teken { to { stroke-dashoffset: 0; } }
}
.ak-bon { margin: 0 0 1.25rem; text-align: left; border-top: 1px solid var(--_lijn); }
.ak-bon div { display: grid; grid-template-columns: 5.5rem 1fr; gap: 1rem; padding: 0.65rem 0; border-bottom: 1px solid var(--_lijn); }
.ak-bon dt { color: var(--_zacht); }
.ak-bon dd { margin: 0; font-weight: 600; }
.ak-bon dd::first-letter { text-transform: uppercase; }
.ak-link { margin-top: 1rem; min-height: 2.75rem; padding: 0.5rem 0.75rem; border: 0; background: transparent; text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; color: var(--_zacht); }
.ak-link:hover { color: var(--_inkt); }
