/* Boekingspagina en afspraakpagina (wat de klant ziet), in de stijl van Apple. */
body.boek { min-height: 100vh; min-height: 100dvh; font-size: 16px; }
.b-wrap { max-width: 1120px; margin: 0 auto; padding: 40px 24px 140px; }
.leeg { padding: 60px 20px; text-align: center; color: var(--muted); }

/* ---------- Achtergrond: zes vaste stijlen of een eigen foto ---------- */
body.boek.met-achtergrond { background-attachment: fixed; background-size: cover; background-position: center; }
body.bg-zacht {
  background-image:
    radial-gradient(1200px 700px at 12% -10%, color-mix(in srgb, var(--accent) 26%, #ffffff), transparent 60%),
    radial-gradient(1000px 700px at 100% 0%, color-mix(in srgb, var(--accent) 14%, #ffffff), transparent 55%),
    linear-gradient(#f5f5f7, #f5f5f7);
}
body.bg-dageraad {
  background-image:
    radial-gradient(1100px 700px at 0% 0%, #ffd9c2, transparent 60%),
    radial-gradient(1000px 800px at 100% 10%, #ffc9de, transparent 60%),
    radial-gradient(900px 700px at 50% 110%, #fff0b8, transparent 60%),
    linear-gradient(#fff6f0, #fff6f0);
}
body.bg-oceaan {
  background-image:
    radial-gradient(1100px 700px at 0% 0%, #bfe3ff, transparent 60%),
    radial-gradient(1000px 800px at 100% 0%, #b8f1ec, transparent 60%),
    radial-gradient(900px 700px at 60% 110%, #d6dcff, transparent 60%),
    linear-gradient(#eef7ff, #eef7ff);
}
body.bg-bos {
  background-image:
    radial-gradient(1100px 700px at 0% 0%, #cdeccf, transparent 60%),
    radial-gradient(1000px 800px at 100% 10%, #e3f0bf, transparent 60%),
    radial-gradient(900px 700px at 40% 110%, #bfe8dc, transparent 60%),
    linear-gradient(#f1f8ee, #f1f8ee);
}
body.bg-nacht {
  background-image:
    radial-gradient(1100px 800px at 0% 0%, #3b3f8f, transparent 60%),
    radial-gradient(1000px 800px at 100% 10%, #6a2f7a, transparent 60%),
    radial-gradient(900px 700px at 50% 110%, #12456b, transparent 60%),
    linear-gradient(#0f1024, #0f1024);
}
body.bg-foto { background-image: var(--bg-foto); background-color: #1d1d1f; }
/* Met een achtergrond ligt de inhoud op een vel matglas, zodat alles leesbaar blijft. */
body.met-achtergrond .b-wrap {
  margin: 32px auto 120px;
  width: calc(100% - 48px);
  max-width: 1120px;
  padding: 36px 36px 40px;
  border-radius: 28px;
  background: rgba(245, 245, 247, 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(30px);
  backdrop-filter: saturate(180%) blur(30px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 20px 60px rgba(0, 0, 0, 0.18);
}
/* Op het matglas is grijze tekst iets donkerder, zodat hij op elke achtergrond goed leesbaar blijft. */
body.met-achtergrond .b-wrap, body.met-achtergrond .b-balk { --muted: #515154; --faint: #6e6e73; }
body.bg-nacht .b-wrap, body.bg-foto .b-wrap { background: rgba(245, 245, 247, 0.9); }
body.met-achtergrond .b-balk { background: rgba(255, 255, 255, 0.92); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  body.met-achtergrond .b-wrap { background: rgba(245, 245, 247, 0.96); }
}

/* ---------- Kop van de zaak ---------- */
.b-kop { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 18px; align-items: center; padding-bottom: 28px; }
.b-kop > div:last-child { display: contents; }
.b-merk {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 68px;
  height: 68px;
  border-radius: 22.5%;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 78%, #ffffff), var(--accent));
  color: var(--accent-ink);
  font-family: var(--display);
  font-size: 32px;
  font-weight: 700;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--accent) 28%, transparent);
}
.b-merk.logo { width: auto; max-width: 168px; object-fit: contain; background: none; box-shadow: none; border-radius: 14px; }
.b-kop h1 { grid-column: 2; grid-row: 1; align-self: end; font-size: 34px; font-weight: 700; letter-spacing: -0.028em; line-height: 1.08; overflow-wrap: anywhere; }
.b-sub { grid-column: 2; grid-row: 2; align-self: start; margin-top: 4px; color: var(--muted); font-size: 17px; }
.b-kop:not(:has(.b-sub)) h1 { grid-row: 1 / span 2; align-self: center; }
.b-oms { grid-column: 1 / -1; margin-top: 20px; color: var(--ink-2); font-size: 17px; line-height: 1.5; max-width: 60ch; white-space: pre-line; }
.b-contact { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.b-contact a, .b-contact span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 7px 14px;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.05);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.b-contact svg { color: var(--muted); flex: none; }
@media (hover: hover) { .b-contact a:hover { background: rgba(0, 0, 0, 0.09); } }

.b-raster { display: grid; grid-template-columns: minmax(0, 1fr) 308px; gap: 40px; align-items: start; }
.b-raster.een { grid-template-columns: minmax(0, 1fr); max-width: 640px; }
.b-hoofd { container-type: inline-size; min-width: 0; }

/* ---------- Stappen ---------- */
.b-stappen { display: flex; gap: 6px; margin: 0 0 24px; padding: 0; list-style: none; flex-wrap: wrap; }
.b-stap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 14px 0 6px;
  border-radius: var(--pil);
  border: 0;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}
.b-stap .nr { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 600; background: rgba(0, 0, 0, 0.08); color: var(--ink-2); }
.b-stap.nu { color: var(--ink); background: var(--surface); font-weight: 600; box-shadow: var(--shadow); }
.b-stap.nu .nr { background: var(--accent); color: var(--accent-ink); }
.b-stap.klaar { color: var(--ink); }
.b-stap.klaar .nr { background: var(--accent-soft); color: var(--accent-dark); }
button.b-stap { cursor: pointer; }
@media (hover: hover) { button.b-stap:hover { background: rgba(0, 0, 0, 0.05); } }

.b-titel { font-size: 26px; font-weight: 700; letter-spacing: -0.024em; line-height: 1.15; }
.b-titel:focus, .b-klaar h2:focus { outline: none; }
.b-uitleg { margin-top: 4px; color: var(--muted); font-size: 17px; }
.b-cat { margin: 26px 0 8px 18px; font-size: 13px; font-weight: 400; letter-spacing: 0.02em; text-transform: uppercase; color: var(--muted); }
.b-cat:first-of-type { margin-top: 20px; }

/* ---------- Diensten: gegroepeerde lijst zoals in iOS ---------- */
.dienst-groep { background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.dienst {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 15px 14px 15px 18px;
  text-align: left;
  background: transparent;
  border: 0;
  transition: background 0.15s;
}
.dienst + .dienst::before { content: ''; position: absolute; top: 0; left: 60px; right: 0; height: 1px; background: var(--line); }
.dienst:active { background: var(--fill); }
@media (hover: hover) { .dienst:hover { background: #fafafc; } }
.dienst:focus-visible { outline-offset: -3px; }
.dienst[disabled] { cursor: default; }
.dienst[disabled] .dienst-naam, .dienst[disabled] .dienst-oms, .dienst[disabled] .dienst-prijs { opacity: 0.45; }
.dienst[aria-pressed='true'], .dienst[aria-pressed='true']:hover { background: color-mix(in srgb, var(--accent) 6%, #ffffff); }
/* Rond keuzevakje zoals in iOS: leeg, of gevuld met een vinkje. */
.dienst-kies {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid #c7c7cc;
  display: grid;
  place-items: center;
  color: transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s var(--zacht);
}
.dienst[aria-pressed='true'] .dienst-kies { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); transform: scale(1.04); }
.dienst[disabled] .dienst-kies { border-color: #e5e5ea; }
.dienst-tekst { flex: 1; min-width: 0; display: grid; gap: 1px; }
.dienst-naam { font-size: 17px; font-weight: 500; overflow-wrap: anywhere; }
.dienst-oms { font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.dienst-tekst > * { min-width: 0; }
.dienst-meta { margin-top: 3px; font-size: 14px; color: var(--muted); }
.dienst-rechts { display: flex; align-items: center; gap: 6px; flex: none; }
.dienst-prijs { font-size: 16px; color: var(--ink-2); white-space: nowrap; }
.dienst-pijl { color: #c7c7cc; display: grid; place-items: center; }

/* ---------- Aantal personen ---------- */
.b-personen { margin-top: 16px; display: flex; align-items: center; gap: 16px; padding: 14px 14px 14px 18px; background: var(--surface); border-radius: var(--radius); }
.b-personen .tekst { flex: 1; min-width: 0; }
.b-personen .tekst strong { display: block; font-size: 17px; font-weight: 500; }
.b-personen .tekst span { display: block; margin-top: 1px; font-size: 14px; color: var(--muted); text-wrap: pretty; }
.teller { flex: none; display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: var(--pil); background: var(--fill); }
.teller button { width: 40px; height: 40px; border: 0; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); transition: transform 0.1s, opacity 0.15s; }
.teller button:active { transform: scale(0.94); }
.teller button[disabled] { background: transparent; box-shadow: none; color: #c7c7cc; cursor: default; }
.teller output { min-width: 36px; text-align: center; font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- Medewerker kiezen ---------- */
.b-wie { margin-top: 22px; }
.b-wie .label { display: block; margin-bottom: 10px; font-size: 13px; color: var(--muted); }
.wie-rij { display: flex; gap: 6px; overflow-x: auto; padding: 4px; margin: -4px; scrollbar-width: none; scroll-behavior: smooth; }
@media (min-width: 901px) { .wie-rij { flex-wrap: wrap; overflow: visible; } }

/* Een rij die opzij schuift: zachte randen waar er meer is, en pijlen voor wie een muis gebruikt. */
.schuif { position: relative; min-width: 0; }
.schuif-pijl { display: none; position: absolute; top: 50%; z-index: 2; width: 32px; height: 32px; margin-top: -16px; border: 0; border-radius: 50%; background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.16), 0 4px 12px rgba(0, 0, 0, 0.1); place-items: center; }
.schuif-pijl.links { left: -6px; }
.schuif-pijl.rechts { right: -6px; }
@media (hover: hover) and (pointer: fine) {
  .schuif.kan-links > .schuif-pijl.links, .schuif.kan-rechts > .schuif-pijl.rechts { display: grid; }
}
.schuif.kan-rechts > :not(.schuif-pijl) { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); }
.schuif.kan-links > :not(.schuif-pijl) { -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px); mask-image: linear-gradient(90deg, transparent, #000 40px); }
.schuif.kan-links.kan-rechts > :not(.schuif-pijl) { -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); }
.wie-rij::-webkit-scrollbar { display: none; }
.wie {
  flex: none;
  display: grid;
  justify-items: center;
  gap: 7px;
  width: 92px;
  padding: 10px 6px 9px;
  align-content: start;
  border: 0;
  border-radius: 16px;
  background: transparent;
  transition: background 0.15s;
}
.wie-naam { font-size: 13px; font-weight: 500; color: var(--ink); max-width: 100%; line-height: 1.2; text-align: center; overflow-wrap: anywhere; }
.avatar { border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 600; flex: none; }
.avatar.iedereen { width: 52px; height: 52px; background: rgba(0, 0, 0, 0.07); color: var(--ink-2); }
.wie .avatar { transition: box-shadow 0.15s; }
.wie[aria-pressed='true'] { background: var(--surface); box-shadow: var(--shadow); }
.wie[aria-pressed='true'] .avatar { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent); }
.wie[aria-pressed='true'] .wie-naam { font-weight: 600; }
@media (hover: hover) { .wie:not([aria-pressed='true']):hover { background: rgba(0, 0, 0, 0.04); } }

/* ---------- Kalender en tijden ---------- */
.b-moment { margin-top: 20px; display: grid; grid-template-columns: minmax(0, 336px) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.kal { background: var(--surface); border-radius: var(--radius); padding: 16px; }
.kal-kop { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; min-height: 36px; }
.kal-maand { font-weight: 600; font-size: 17px; padding-left: 6px; }
.kal-kop { gap: 4px; }
.kal-kop .kal-maand { order: -1; margin-right: auto; }
.kal-nav { width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; display: grid; place-items: center; color: var(--accent-dark); }
.kal-nav[disabled] { color: #c7c7cc; cursor: default; }
@media (hover: hover) { .kal-nav:hover:not([disabled]) { background: rgba(0, 0, 0, 0.05); } }
.kal-rooster { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.kal-dagnaam { text-align: center; font-size: 12px; font-weight: 600; text-transform: uppercase; color: var(--muted); padding: 6px 0 8px; }
.kal-dag {
  aspect-ratio: 1;
  border-radius: 50%;
  border: 0;
  background: transparent;
  font-size: 17px;
  color: #c7c7cc;
  display: grid;
  place-items: center;
  padding: 0;
  transition: background 0.15s;
}
.kal-leeg { aspect-ratio: 1; }
.kal-dag[disabled] { cursor: default; }
.kal-dag:focus-visible { outline: 2px solid var(--accent-dark); outline-offset: 2px; }
.kal-dag.vrij { color: var(--ink); font-weight: 500; background: var(--accent-soft); }
.kal-dag.vandaag { color: var(--accent-dark); font-weight: 600; }
.kal-dag.vandaag[disabled] { color: color-mix(in srgb, var(--accent) 50%, #ffffff); }
@media (hover: hover) { .kal-dag.vrij:hover { background: var(--accent-line); } }
.kal-dag.gekozen, .kal-dag.gekozen:hover { background: var(--accent); color: var(--accent-ink); font-weight: 600; }

.tijden-vak { position: relative; min-height: 320px; }
/* Het vlak vult precies de hoogte van de kalender ernaast; de lijst met tijden schuift erbinnen. */
.tijden-kaart { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.tijden-kop { flex: none; font-weight: 600; font-size: 17px; min-height: 36px; display: flex; align-items: center; margin: 16px 22px 8px; }
.tijden-rol { flex: 1; min-height: 0; overflow-y: auto; padding: 0 16px 18px; -webkit-overflow-scrolling: touch; -webkit-mask-image: linear-gradient(#000 calc(100% - 22px), transparent); mask-image: linear-gradient(#000 calc(100% - 22px), transparent); }
.tijden-groep { margin-top: 14px; }
.tijden-groep:first-child { margin-top: 0; }
.tijden-groep h3, .tijden-groep h4 { font-family: var(--ui); font-size: 13px; font-weight: 400; letter-spacing: 0.02em; text-transform: uppercase; color: var(--muted); margin: 0 6px 8px; }
.tijden { display: grid; grid-template-columns: repeat(auto-fill, minmax(82px, 1fr)); gap: 8px; }
.tijd {
  height: 46px;
  border-radius: var(--radius-s);
  border: 0;
  background: var(--fill);
  font-weight: 500;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  color: var(--accent-dark);
  transition: background 0.15s, color 0.15s, transform 0.1s;
}
.tijd:active { transform: scale(0.96); }
@media (hover: hover) { .tijd:hover { background: var(--accent-soft); } }
.tijd[aria-pressed='true'], .tijd[aria-pressed='true']:hover { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
/* Eerste dagen met plek, naast de kalender */
.snel-lijst.tijden-rol { padding: 0 0 12px; }
.snel { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px 12px 22px; border: 0; background: transparent; text-align: left; transition: background 0.15s; }
.snel + .snel::before { content: ''; position: absolute; top: 0; left: 22px; right: 0; height: 1px; background: var(--line); }
.snel:active { background: var(--fill); }
@media (hover: hover) { .snel:hover { background: #fafafc; } }
.snel:focus-visible { outline-offset: -3px; }
.snel-tekst { flex: 1; min-width: 0; }
.snel-tekst strong { display: block; font-size: 16px; font-weight: 500; }
.snel-tekst span { display: block; font-size: 14px; color: var(--muted); }
.snel[aria-current='true'] .snel-tekst strong { color: var(--accent-dark); font-weight: 600; }

/* Tijd kiezen: strook met dagen en daaronder de tijden */
.dag-strook { display: flex; gap: 8px; margin: 18px -4px 0; padding: 4px; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; }
.dag-strook::-webkit-scrollbar { display: none; }
.dag-pil { flex: none; width: 60px; padding: 8px 0 9px; border: 0; border-radius: 16px; background: var(--surface); display: grid; justify-items: center; gap: 0; color: var(--ink); transition: background 0.15s, color 0.15s; }
.dag-pil .wd { font-size: 12px; font-weight: 600; text-transform: uppercase; color: var(--muted); }
.dag-pil .nr { font-size: 20px; font-weight: 600; line-height: 1.2; font-variant-numeric: tabular-nums; }
.dag-pil .mnd { font-size: 12px; color: var(--muted); }
.dag-pil[aria-pressed='true'] { background: var(--accent); color: var(--accent-ink); }
.dag-pil[aria-pressed='true'] .wd, .dag-pil[aria-pressed='true'] .mnd { color: inherit; }
.dag-pil.meer { align-content: center; gap: 3px; color: var(--accent-dark); width: 72px; }
.dag-pil.meer svg { width: 20px; height: 20px; }
.dag-pil.meer .mnd { color: inherit; font-weight: 500; }
@media (hover: hover) { .dag-pil:not([aria-pressed='true']):hover { background: var(--accent-soft); } }
.tijd-kaart { margin-top: 14px; padding: 18px 16px 20px; background: var(--surface); border-radius: var(--radius); }
.tijd-kaart .geen-tijden { padding: 28px 12px; }
.tijd-kaart .tijden { grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); }
.tijd { display: grid; place-items: center; align-content: center; gap: 0; padding: 0 4px; }
.tijd small { font-size: 12px; font-weight: 500; line-height: 1.1; white-space: nowrap; }
.tijden.met-plekken { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
.tijden.met-plekken .tijd { height: 54px; }

.tijden-kaart .laden { flex: 1; padding: 0; }
.tijden-kaart .geen-tijden { flex: 1; display: grid; place-items: center; background: transparent; padding: 22px; }
.geen-tijden { padding: 26px 22px; border-radius: var(--radius); background: var(--surface); color: var(--muted); text-align: center; }

/* Een brede kalender boven de lijst (tablet): de dagen blijven ronde knoppen van een vaste maat. */
@container (min-width: 440px) and (max-width: 700px) {
  .b-moment .kal-dag { width: 46px; height: 46px; aspect-ratio: auto; justify-self: center; }
  .b-moment .kal-leeg { height: 46px; aspect-ratio: auto; }
  .b-moment .kal-rooster { row-gap: 4px; }
}
@container (max-width: 700px) {
  .b-moment { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .b-moment .tijden-vak { min-height: 0; }
  .b-moment .tijden-kaart { position: static; }
  .b-moment .tijden-rol { overflow: visible; -webkit-mask-image: none; mask-image: none; }
}

/* Melding die vast in beeld staat (bij het kiezen van diensten) */
.b-flits { position: fixed; left: 50%; bottom: 28px; z-index: 30; transform: translateX(-50%); width: max-content; max-width: min(520px, calc(100vw - 32px)); padding: 12px 18px; border-radius: 18px; background: rgba(29, 29, 31, 0.9); -webkit-backdrop-filter: var(--glas); backdrop-filter: var(--glas); color: #fff; font-size: 15px; font-weight: 500; line-height: 1.4; text-align: center; box-shadow: var(--shadow-l); animation: schuif 0.28s var(--zacht); }

/* ---------- Gegevens ---------- */
.b-form { margin-top: 20px; display: grid; gap: 16px; max-width: 540px; }
.b-form .twee { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.b-form .veld { min-height: 50px; font-size: 17px; }
.b-kort { display: none; margin-top: 16px; padding: 14px 16px; max-width: 540px; background: var(--surface); border-radius: var(--radius-s); }
.b-kort strong { display: block; font-weight: 600; }
.b-kort span { display: block; font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.b-acties { display: flex; gap: 10px; align-items: center; margin-top: 24px; flex-wrap: wrap; }
.val { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Overzicht ---------- */
.b-overzicht { position: sticky; top: 24px; padding: 22px; box-shadow: var(--shadow); }
.b-overzicht h2 { font-family: var(--ui); font-size: 13px; font-weight: 400; letter-spacing: 0.02em; text-transform: uppercase; color: var(--muted); }
.ov-rij { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.ov-rij:last-child { border-bottom: 0; }
.ov-rij svg { color: var(--faint); flex: none; margin-top: 2px; }
.ov-k { font-size: 13px; color: var(--muted); }
.ov-v { font-weight: 600; font-size: 16px; overflow-wrap: anywhere; }
a.ov-v { display: inline-block; padding: 4px 0; margin: -4px 0; color: var(--accent-dark); text-decoration: none; }
.ov-v.regels { white-space: pre-line; }
@media (hover: hover) { a.ov-v:hover { text-decoration: underline; } }
.ov-leeg { color: var(--muted); font-weight: 400; }
.ov-vul { flex: 1; min-width: 0; }
.ov-dienst + .ov-dienst { margin-top: 8px; }
.ov-som { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.ov-totaal { display: flex; justify-content: space-between; align-items: baseline; padding-top: 14px; font-weight: 500; }
.ov-totaal span:last-child { font-size: 19px; font-weight: 600; }

/* ---------- Vaste onderbalk op telefoon en tablet ---------- */
.b-balk {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: var(--glas);
  backdrop-filter: var(--glas);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  align-items: center;
  gap: 12px;
}
.b-balk-tekst { flex: 1; min-width: 0; }
.b-balk-tekst strong { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b-balk-tekst span { display: block; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Bevestiging en afspraakpagina ---------- */
.b-klaar { max-width: 560px; margin: 8px auto 0; text-align: center; }
.b-klaar > p { overflow-wrap: anywhere; }
/* Een e-mailadres gaat als geheel naar de volgende regel en breekt alleen als het echt niet past. */
.heel { display: inline-block; max-width: 100%; }
.heel.kort { white-space: nowrap; }
.vink { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 20px; display: grid; place-items: center; background: var(--groen); color: #fff; }
.vink.grijs { background: rgba(0, 0, 0, 0.08); color: var(--ink-2); }
.vink.accent { background: var(--accent); }
.b-klaar h2 { font-size: 30px; font-weight: 700; letter-spacing: -0.026em; line-height: 1.12; }
.b-klaar > p:not(.hulp) { margin-top: 8px; color: var(--ink-2); font-size: 17px; }
.b-detail { margin-top: 24px; padding: 6px 22px; text-align: left; box-shadow: var(--shadow); }
.b-klaar .b-acties { justify-content: center; }
/* Vier knoppen (met Apple Wallet) passen niet op een rij: dan twee rijen van twee, netjes uitgelijnd. */
@media (min-width: 601px) {
  .b-klaar .b-acties:has(> :nth-child(4)) { display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); justify-content: center; }
  .b-klaar .b-acties:has(> :nth-child(4)) > * { justify-content: center; }
}
.b-klaar .melding { text-align: left; }

/* Openingstijden onder de diensten */
.b-open { margin-top: 36px; }
.b-open .kaart { margin-top: 14px; overflow: hidden; }
.b-open table { width: 100%; border-collapse: collapse; font-size: 16px; }
.b-open th, .b-open td { padding: 12px 18px; text-align: left; font-weight: 400; border-top: 1px solid var(--line); }
.b-open tr:first-child th, .b-open tr:first-child td { border-top: 0; }
.b-open td { text-align: right; color: var(--ink-2); font-variant-numeric: tabular-nums; }

.b-voet { margin-top: 48px; padding-top: 18px; border-top: 1px solid rgba(0, 0, 0, 0.08); font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.b-voet a { text-decoration: none; color: var(--ink-2); font-weight: 500; }
@media (hover: hover) { .b-voet a:hover { text-decoration: underline; } }

.b-smal { max-width: 760px; margin-left: auto; margin-right: auto; }

/* Venster (annuleren) */
.modal-achter {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.32);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  padding: 20px;
  animation: vervaag 0.2s var(--zacht);
}
.modal { width: 100%; max-width: 440px; background: var(--surface); border-radius: 22px; box-shadow: var(--shadow-l); padding: 26px; animation: schuif 0.28s var(--zacht); }
.modal h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.022em; }
.modal p { margin-top: 8px; color: var(--ink-2); }
.modal .b-acties { justify-content: flex-end; }
@keyframes vervaag { from { opacity: 0; } }
@keyframes schuif { from { opacity: 0; transform: translateY(14px) scale(0.98); } }

/* ---------- iPad en kleiner ---------- */
@media (max-width: 900px) {
  .b-flits { bottom: 96px; }
  .b-raster { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .b-overzicht { display: none; }
  .b-balk.toon { display: flex; }
  .b-kort { display: block; }
}
@media (max-width: 700px) {
  /* Verplaatsen: de knop blijft onderin in beeld, ook bij een lange lijst met tijden. */
  .b-acties.vast { position: sticky; bottom: 0; z-index: 5; margin: 16px -16px 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(245, 245, 247, 0.92); -webkit-backdrop-filter: var(--glas); backdrop-filter: var(--glas); border-top: 1px solid rgba(0, 0, 0, 0.08); }
  .b-moment { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .tijden-vak { min-height: 0; }
  .tijden-kaart { position: static; }
  .tijden-rol { overflow: visible; -webkit-mask-image: none; mask-image: none; }
}
/* ---------- Telefoon ---------- */
@media (max-width: 560px) {
  .b-wrap { padding: 24px 16px 140px; }
  body.met-achtergrond .b-wrap { width: auto; margin: 12px 10px 110px; padding: 22px 16px 28px; border-radius: 24px; }
  .b-kop { gap: 0 14px; padding-bottom: 22px; }
  .wie { width: 78px; padding-left: 2px; padding-right: 2px; }
  .b-kop h1 { font-size: 26px; }
  .b-sub { font-size: 15px; }
  .b-merk { width: 56px; height: 56px; font-size: 26px; }
  .b-oms { font-size: 16px; margin-top: 16px; }
  .b-titel { font-size: 23px; }
  .b-balk { padding-left: 16px; padding-right: 16px; }
  .b-form .twee { grid-template-columns: minmax(0, 1fr); }
  .b-acties .knop { flex: 1; }
  .b-klaar .b-acties { flex-direction: column; align-items: stretch; }
  .b-klaar h2 { font-size: 26px; }
  .dienst-prijs { white-space: normal; text-align: right; max-width: 104px; }
  .dienst { gap: 12px; padding-left: 14px; }
  .dienst + .dienst::before { left: 52px; }
  .b-merk.logo { max-width: 120px; }
  .b-personen { padding-left: 14px; gap: 12px; }
  .tijd-kaart { padding: 16px 12px 18px; }
  .kal { padding: 12px; max-width: none; }
  .modal-achter { place-items: end center; padding: 0; }
  .modal { max-width: none; border-radius: 22px 22px 0 0; padding: 24px 20px calc(24px + env(safe-area-inset-bottom)); animation-name: omhoog-vel; }
  .modal .b-acties { flex-direction: column-reverse; align-items: stretch; }
  .b-voet { margin-top: 36px; }
}
@media (max-width: 480px) {
  .b-stap:not(.nu) .lbl { display: none; }
  .b-stap:not(.nu) { padding: 0 6px; }
}
@keyframes omhoog-vel { from { transform: translateY(100%); } }
@media (pointer: coarse) {
  .kal-nav { width: 44px; height: 44px; }
  .teller button { width: 44px; height: 44px; }
  .b-stap { height: 44px; min-width: 44px; justify-content: center; }
  a.ov-v { padding: 12px 0; margin: -12px 0; }
  .b-contact a, .b-contact span { min-height: 44px; }
  .kal { padding-left: 8px; padding-right: 8px; }
}

/* In een widget midden in de site van de zaak groeit het frame mee met de inhoud (zie widget.js). */
html.in-widget body.boek { min-height: 0; }
