/* =====================================================================
   Sabine Müllner, Tuina Anmo — Buchungstool (booking.js), Optik v12
   Wird NACH tokens.css und styles.css geladen. Braucht von dort nur Tokens, .sr-only und .ph.
   Leistung (Segmente mit Dauer/Preis) → Ort (nur wenn Wien aktiv) → Kalender-Raster (4 Wochen, Mo–So) und Uhrzeiten des
   gewählten Tages → Formular als Ganzes. v12: ab 500 px Inhaltsbreite (Desktop-Panel bis 600 px, Hochformat) Schrittanzeige,
   ganzer Monat links und schmale Uhrzeiten-Spalte rechts (innen scrollbar); schmaler (mobil) 4 Wochen, Uhrzeiten darunter.
   Das Panel bringt Fläche, Glasrahmen (äußerer Ring, Radius 28), Schatten, Radius 20 und Innenabstand selbst mit.
   Gedacht für 340–600 px Breite; das Layout reagiert auf die Breite des Panels (Container Query „bk“: breit ab 460 px, Monat + Spalte ab 500 px).
   Jede Ansicht passt samt Fehlerzustand in 1280 × 720 (unter 92 px Kopfzeile) und 393 × 700 (unter 76 px);
   bei sehr vielen Uhrzeiten scrollt nur das Uhrzeiten-Feld innen.
   Radien: Rahmen 28, Panel 20, Elemente und alle Buttons 12 (--radius-btn), rund nur Statuspunkte. Keine Versalien, keine Kursiven. Mauve ist die einzige Aktionsfarbe.
   Anpassbar über Variablen am Panel: --bk-surface, --bk-radius, --bk-pad, --bk-ring-w; Wochenzahl im Raster: --bk-weeks.
   ===================================================================== */

/* ---------- Panel ---------------------------------------------------- */
.booking-panel {
  --bk-surface: #FFFDF9;
  --bk-radius: 20px;
  --bk-pad: 1.5rem;
  --bk-ring: rgb(43 37 34 / .08);
  --bk-hair: rgb(43 37 34 / .09);
  --bk-field: rgb(43 37 34 / .46);   /* Feldrand: 3:1 auf Weiß */
  --bk-chip: rgb(43 37 34 / .13);
  --bk-sand: #F6F1EA;
  --bk-off: #B3A99E;
  --bk-ease: cubic-bezier(.22, 1, .36, 1);
  --bk-ring-w: 8px;
  position: relative; min-width: 0; isolation: isolate;
  background: var(--bk-surface);
  border: 0; border-radius: var(--bk-radius);
  padding: var(--bk-pad);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .9), var(--shadow-lift);   /* Schattenstufe „lift“ aus tokens.css */
  color: var(--c-ink-soft);
  scroll-margin-top: 0; /* html hat bereits scroll-padding-top = Kopfzeile + 8 px */
}
@media (max-width: 759.98px) { .booking-panel { --bk-pad: 1rem; --bk-ring-w: 6px; } }
/* Glasrahmen: halbtransparenter weißer Ring mit Mauve-Hauch um das Panel (solider Rückfall ohne backdrop-filter) */
.booking-panel::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  inset: calc(-1 * var(--bk-ring-w)); border-radius: calc(var(--bk-radius) + var(--bk-ring-w));
  background: linear-gradient(160deg, rgb(255 255 255 / .78), rgb(246 238 242 / .62));
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .85), 0 0 0 1px rgb(133 88 116 / .10), 0 18px 40px -22px rgb(107 69 96 / .35);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .booking-panel::before {
    background: linear-gradient(160deg, rgb(255 255 255 / .55), rgb(243 235 238 / .38));
    -webkit-backdrop-filter: blur(14px) saturate(1.15); backdrop-filter: blur(14px) saturate(1.15);
  }
}
@media (prefers-reduced-transparency: reduce) { .booking-panel::before { background: #F7F1F3; -webkit-backdrop-filter: none; backdrop-filter: none; } }
.booking-panel:focus { outline: none; }
.booking-panel:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; }
.bk-fallback p { color: var(--c-ink-soft); }

.bk { --bk-weeks: 4; container: bk / inline-size; font-family: var(--font-sans); font-size: 1rem; line-height: 1.45; }
.bk em, .bk i { font-style: normal; }
:where(.bk) p { margin: 0; }
.bk button { font-family: inherit; -webkit-tap-highlight-color: transparent; }
.bk :focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }

/* ---------- Kopfzeile je Ansicht -------------------------------------- */
.bk-top { display: flex; align-items: center; gap: .625rem; min-height: 32px; }
.bk-h {
  margin: 0; flex: none;
  font-family: var(--font-serif); font-weight: 340; font-style: normal;
  font-size: 1.5rem; line-height: 1.1; letter-spacing: -.012em; color: var(--c-ink);
}
.bk-h:focus, .bk-h:focus-visible { outline: none; }
.bk-top__aside { margin-left: auto; min-width: 0; text-align: right; }
.bk-top__aside { font-size: .75rem; line-height: 1.3; text-wrap: balance; }
.bk-demo { color: var(--c-muted); }
.bk-demo__dot { display: inline-block; width: 6px; height: 6px; margin-right: .4rem; border-radius: 50%; background: #C9A9BC; vertical-align: 1px; }

.bk-back {
  flex: none; width: 36px; height: 36px; margin-left: -4px; border: 0; border-radius: var(--radius-btn); padding: 0;
  display: grid; place-items: center; cursor: pointer; color: var(--c-ink);
  background: transparent; box-shadow: inset 0 0 0 1px var(--bk-chip);
  transition: background-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.bk-back:hover { background: var(--bk-sand); }
.bk .bk-back:focus-visible { outline-offset: 2px; }

.bk-link {
  appearance: none; border: 0; background: none; cursor: pointer; flex: none;
  font: 500 .9375rem/1 var(--font-sans); color: var(--c-accent); min-height: 40px; min-width: 44px; padding: 0 .25rem;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .25em;
}
.bk-link:hover { color: var(--c-accent-hover); text-decoration-thickness: 2px; }
.bk a:not(.bk-btn) { color: var(--c-ink); text-decoration: underline; text-decoration-color: var(--c-accent); text-decoration-thickness: 1px; text-underline-offset: .22em; }
.bk a:not(.bk-btn):hover { color: var(--c-accent); }

/* ---------- Buttons (Rechteck Radius 12, Glanzkante, Pfeil) ------------- */
.bk-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 50px; padding: 0 1.5rem; border: 0; border-radius: var(--radius-btn); cursor: pointer;
  font: 560 1rem/1.1 var(--font-sans); letter-spacing: .003em; text-decoration: none; white-space: nowrap;
  transition: background-color .22s var(--ease), color .22s var(--ease), box-shadow .22s var(--ease), opacity .22s var(--ease);
}
.bk-btn__arrow { flex: none; transition: transform .25s var(--bk-ease); }
.bk-btn:hover .bk-btn__arrow { transform: translateX(3px); }
.bk .bk-btn:focus-visible { outline-offset: 3px; }
.bk-btn--primary {
  background: var(--c-accent); color: #fff;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .18), 0 1px 0 #6B4560, 0 10px 22px -12px rgb(107 69 96 / .55);
}
.bk-btn--primary:hover { background: var(--c-accent-hover); }
.bk-btn--ghost { background: transparent; color: var(--c-ink); box-shadow: inset 0 0 0 1px rgb(43 37 34 / .2); }
.bk-btn--ghost:hover { background: var(--bk-sand); }
.bk-btn--sm { min-height: 44px; padding: 0 1.1rem; font-size: .9375rem; }
.bk-row { display: flex; flex-wrap: wrap; gap: .625rem; }

/* ---------- Leistung: Segmente ---------------------------------------- */
.bk-svcs { border: 0; margin: .75rem 0 0; padding: 0; min-width: 0; }
.bk-svcs__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .375rem; }
.bk-svc { position: relative; display: block; min-width: 0; }
.bk-svc input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.bk-svc__card {
  position: relative; display: flex; flex-direction: column; justify-content: center; gap: .125rem;
  height: 100%; min-height: 54px; padding: .4375rem .625rem; border-radius: var(--radius-btn);
  background: #fff; box-shadow: inset 0 0 0 1px var(--bk-chip);
  transition: box-shadow var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}
.bk-svc__name { font: 520 .9375rem/1.2 var(--font-sans); color: var(--c-ink); text-wrap: balance; }
.bk-svc__full { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.bk-svc__meta { font-size: .8125rem; line-height: 1.25; color: var(--c-muted); font-variant-numeric: tabular-nums; }
.bk-svc-hint { display: flex; align-items: baseline; gap: .5rem; margin-top: .375rem; font-size: .8125rem; line-height: 1.35; color: var(--c-ink-soft); }
.bk-svc-hint__dot { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--c-accent); transform: translateY(-1px); }

/* ---------- Ort: schlichte kleine Segmentwahl -------------------------- */
.bk-locs { display: block; border: 0; margin: 0; padding: 0; min-width: 0; }
.bk-locs__row { display: inline-flex; gap: 2px; padding: 3px; border-radius: var(--radius-btn); background: var(--bk-sand); box-shadow: inset 0 0 0 1px var(--bk-hair); }
.bk-loc { position: relative; display: block; }
.bk-loc input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.bk-loc span {
  display: flex; align-items: center; min-height: 30px; padding: 0 .75rem; border-radius: calc(var(--radius-btn) - 3px);
  font: 500 .8125rem/1 var(--font-sans); color: var(--c-ink-soft); white-space: nowrap;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.bk-loc:hover span { color: var(--c-ink); }
.bk-loc input:checked + span { background: #fff; color: var(--c-ink); box-shadow: inset 0 0 0 1.5px var(--c-accent), 0 1px 2px rgb(43 37 34 / .08); }
.bk-loc input:focus-visible + span { outline: 2px solid var(--c-accent); outline-offset: 2px; }
.bk-svc__dot { position: absolute; top: 9px; right: 9px; width: 8px; height: 8px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgb(43 37 34 / .22); transition: background-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease); }
.bk-svc:hover .bk-svc__card { box-shadow: inset 0 0 0 1px rgb(133 88 116 / .5); }
.bk-svc input:checked + .bk-svc__card { background: #FBF6F8; box-shadow: inset 0 0 0 2px var(--c-accent); }
.bk-svc input:checked + .bk-svc__card .bk-svc__dot { background: var(--c-accent); box-shadow: none; }
.bk-svc input:focus-visible + .bk-svc__card { outline: 2px solid var(--c-accent); outline-offset: 2px; }

/* ---------- Schrittanzeige (schmal: nur die aktive Stufe als Titel) ------- */
.bk-steps { display: contents; }
.bk-steps__item:not(.is-active) { display: none; }
.bk-steps__n {
  display: none; flex: none; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  font: 600 .75rem/1 var(--font-sans); color: var(--c-muted); background: var(--bk-sand); box-shadow: inset 0 0 0 1px var(--bk-chip);
}
.bk-steps__item:not(.is-active) { font: 500 .9375rem/1.2 var(--font-sans); color: var(--c-muted); }
.bk-steps__item.is-active .bk-steps__n { background: var(--c-accent); color: #fff; box-shadow: none; }
.bk-steps__item.is-done .bk-steps__n { background: var(--c-accent-tint); color: var(--c-accent-hover); box-shadow: none; }

/* ---------- Monat + Pfeile ------------------------------------------- */
.bk-cal { margin-top: .75rem; }
.bk-mrow { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 34px; }
.bk-month { font-family: var(--font-serif); font-weight: 340; font-size: 1.1875rem; line-height: 1.2; letter-spacing: -.005em; color: var(--c-ink); }
.bk-arrows { display: flex; gap: .375rem; flex: none; }
.bk-nav {
  width: 34px; height: 34px; border: 0; border-radius: var(--radius-btn); padding: 0; display: grid; place-items: center;
  color: var(--c-ink); background: #fff; cursor: pointer; box-shadow: inset 0 0 0 1px var(--bk-chip);
  transition: background-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease);
}
.bk-nav:hover:not([disabled]) { background: var(--bk-sand); box-shadow: inset 0 0 0 1px rgb(133 88 116 / .5); }
.bk-nav[disabled] { opacity: .32; cursor: default; }

/* ---------- Kalender-Raster: --bk-weeks Wochen (Mo–So), freie Tage als Block ---------- */
.bk-grid { margin-top: .375rem; }
.bk-grid.is-swap { animation: bk-swap .28s var(--bk-ease) both; }
.bk-wds { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: var(--bk-gap, .375rem); padding-bottom: .25rem; }
.bk-wds span { text-align: center; font-size: .75rem; line-height: 1.3; font-weight: 500; color: var(--c-muted); }
.bk-weeks { display: grid; gap: var(--bk-gap, .375rem); }
.bk-weeks--skel { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.bk-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: var(--bk-gap, .375rem); }
.bk-day {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  height: var(--bk-cell, 44px); min-width: 0; padding: 0; border: 0; border-radius: var(--radius-btn); cursor: default;
  background: transparent; color: #8F857B;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.bk-day__n { font-size: 1rem; line-height: 1; font-weight: 500; font-variant-numeric: tabular-nums lining-nums; }
.bk-day__m { font-size: .625rem; line-height: 1; font-weight: 500; letter-spacing: .01em; }
.bk-day.is-past { color: #C9C0B6; }
.bk-day.is-out { visibility: hidden; }
.bk-week.is-filler { height: var(--bk-cell, 44px); }
.bk-day.is-free { cursor: pointer; background: #F3EEE7; color: var(--c-ink); box-shadow: inset 0 0 0 1px rgb(43 37 34 / .06); }
.bk-day.is-free .bk-day__n { font-weight: 600; }
.bk-day.is-free:hover { background: #fff; box-shadow: inset 0 0 0 1px rgb(133 88 116 / .55); }
.bk-day.is-today::after {
  content: ""; position: absolute; left: 50%; bottom: 5px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: currentColor; opacity: .75;
}
.bk-day[aria-pressed="true"], .bk-day[aria-pressed="true"]:hover {
  background: var(--c-accent); color: #fff;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .2), 0 1px 0 #6B4560, 0 8px 16px -10px rgb(107 69 96 / .7);
}
.bk-day.is-loading { color: transparent; background: var(--c-linen); animation: bk-pulse 1.6s var(--ease) infinite; }
.bk .bk-day:focus-visible { outline-offset: 2px; }

/* ---------- Uhrzeiten -------------------------------------------------- */
.bk-times { margin-top: .75rem; padding-top: .75rem; border-top: 1px solid var(--bk-hair); }
.bk-times.is-swap { animation: bk-swap .28s var(--bk-ease) both; }
.bk-times__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .125rem .75rem; margin-bottom: .5rem; }
.bk-times__day { font: 520 .9375rem/1.3 var(--font-sans); color: var(--c-ink); }
.bk-times__count { font-size: .8125rem; color: var(--c-muted); font-variant-numeric: tabular-nums; }
.bk-times__body { max-height: var(--bk-times-max, 6.25rem); overflow-y: auto; margin: -4px; padding: 4px; overscroll-behavior: contain; }
.bk-times__body.is-scroll { -webkit-mask-image: linear-gradient(#000 calc(100% - 36px), rgb(0 0 0 / .15)); mask-image: linear-gradient(#000 calc(100% - 36px), rgb(0 0 0 / .15)); }
.bk-step:has(> .bk-alert) .bk-times__body { max-height: 2.75rem; }
.bk-tgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; }
.bk-time {
  height: 42px; min-width: 0; padding: 0 .25rem; border: 0; border-radius: var(--radius-btn); cursor: pointer;
  background: #fff; color: var(--c-ink); box-shadow: inset 0 0 0 1px var(--bk-chip);
  font: 520 .9375rem/1 var(--font-sans); font-variant-numeric: tabular-nums lining-nums;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.bk-time:hover { background: #FBF6F8; color: var(--c-accent-hover); box-shadow: inset 0 0 0 1px rgb(133 88 116 / .6); transform: translateY(-1px); }
.bk-time:active { transform: none; }
.bk-time[aria-current="true"] { background: var(--c-accent); color: #fff; box-shadow: inset 0 1px 0 rgb(255 255 255 / .2), 0 1px 0 #6B4560; }
.bk-wempty { padding: .25rem 0 .125rem; }
.bk-wempty > * + * { margin-top: .375rem; }
.bk-wempty p { font-size: .9375rem; color: var(--c-ink-soft); }
.bk-wempty .bk-wempty__t { font-family: var(--font-serif); font-size: 1.125rem; font-weight: 340; color: var(--c-ink); }
.bk-wempty .bk-btn { margin-top: .75rem; }
.bk-more-err { margin-top: .5rem; font-size: .875rem; color: var(--c-muted); }
.bk-more-err .bk-link { min-height: 32px; font-size: .875rem; }

.bk-foot { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .5rem; margin-top: .75rem; padding-top: .75rem; border-top: 1px solid var(--bk-hair); font-size: .8125rem; line-height: 1.4; color: var(--c-muted); }
.bk-foot__icon { flex: none; color: var(--c-muted); }
.bk-foot__sep { width: 3px; height: 3px; border-radius: 50%; background: #C9BFB5; }
.bk-foot__soft { color: var(--c-ink-soft); }
.bk-foot__s { display: none; }
.bk-foot__demo:empty { display: none; }
.bk-foot__demo { flex-basis: 100%; }
.bk-step:has(.bk-state) .bk-foot { display: none; }

/* ---------- Lade- und Fehlerzustände ---------------------------------- */
.bk-skel { display: block; border-radius: 12px; background: var(--c-linen); animation: bk-pulse 1.6s var(--ease) infinite; }
.bk-skel--month { width: 9rem; height: 1.1rem; }
.bk-skel--nav { width: 34px; height: 34px; border-radius: var(--radius-btn); }
.bk-skel--day { height: var(--bk-cell, 44px); border-radius: 12px; }
.bk-skel--line { width: 55%; height: .95rem; }
.bk-skel--time { height: 42px; border-radius: 12px; }
.bk-state { padding: .25rem 0; }
.bk-state > * + * { margin-top: .5rem; }
.bk-state p { font-size: .9375rem; color: var(--c-ink-soft); }
.bk-state .bk-state__t { font-family: var(--font-serif); font-size: 1.25rem; font-weight: 340; line-height: 1.25; color: var(--c-ink); }
.bk-state .bk-row { margin-top: 1rem; }

.bk-alert {
  margin-top: .75rem; padding: .625rem .875rem; border-radius: 12px;
  background: #FBF1EE; box-shadow: inset 0 0 0 1px rgb(154 59 46 / .22);
  font-size: .875rem; line-height: 1.45; color: var(--c-ink);
}
.bk-alert p + p { margin-top: .25rem; }
.bk-alert strong { font-weight: 560; color: var(--c-error); }
.bk-alert--sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[data-form-alert] .bk-alert { margin: 0 0 .625rem; }

/* ---------- Ansicht 2: Zusammenfassung + Formular --------------------- */
.bk-sum {
  display: flex; align-items: center; gap: .75rem; margin-top: .75rem; padding: .625rem .5rem .625rem .875rem;
  border-radius: 12px; background: var(--bk-sand); box-shadow: inset 0 0 0 1px var(--bk-hair);
}
.bk-sum__icon { flex: none; color: var(--c-accent); }
.bk-sum__txt { flex: 1; min-width: 0; }
.bk-sum__when { font: 560 .9375rem/1.3 var(--font-sans); color: var(--c-ink); font-variant-numeric: tabular-nums; }
.bk-sum__what { font-size: .8125rem; line-height: 1.35; color: var(--c-muted); }
.bk-sum .bk-link { margin-left: auto; }
.bk-short { display: none; }

.bk-form { display: grid; gap: .625rem; margin-top: .875rem; }
.bk-field { display: grid; gap: .25rem; min-width: 0; }
.bk-field__top { display: flex; align-items: baseline; justify-content: space-between; gap: .25rem .75rem; flex-wrap: wrap; }
.bk-field label { font: 500 .875rem/1.3 var(--font-sans); color: var(--c-ink); }
.bk-opt { font-weight: 400; color: var(--c-muted); }
.bk-err { font: 520 .8125rem/1.3 var(--font-sans); color: var(--c-error); }
.bk-err:empty { display: none; }
.bk-field input, .bk-field textarea {
  display: block; width: 100%; min-height: 46px; margin: 0; padding: .6rem .875rem;
  font: 400 1rem/1.35 var(--font-sans); color: var(--c-ink);
  background: #fff; border: 0; border-radius: 12px;
  box-shadow: inset 0 0 0 1px var(--bk-field), inset 0 1px 2px rgb(43 37 34 / .05);
  transition: box-shadow var(--dur-fast) var(--ease);
  -webkit-appearance: none; appearance: none;
}
.bk-field textarea { resize: none; height: 66px; }
.bk-field input:hover, .bk-field textarea:hover { box-shadow: inset 0 0 0 1px rgb(43 37 34 / .62), inset 0 1px 2px rgb(43 37 34 / .05); }
.bk .bk-field input:focus, .bk .bk-field textarea:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--c-accent), 0 0 0 4px rgb(133 88 116 / .16); }
.bk-field ::placeholder { color: #75695F; opacity: 1; }
.bk-field [aria-invalid="true"] { box-shadow: inset 0 0 0 1.5px var(--c-error); }
.bk .bk-field [aria-invalid="true"]:focus { box-shadow: inset 0 0 0 1.5px var(--c-error), 0 0 0 4px rgb(154 59 46 / .12); }
.bk-err--block { font-weight: 400; color: var(--c-ink); }
.bk-err--block:empty { display: none; }
.bk-err--block:not(:empty) { margin-top: .375rem; padding: .5rem .75rem; border-radius: 12px; background: #FBF1EE; box-shadow: inset 0 0 0 1px rgb(154 59 46 / .22); font-size: .8125rem; line-height: 1.45; }
.bk-err--block .bk-link { min-height: 0; min-width: 0; padding: 0; font-size: inherit; line-height: inherit; }
.bk-check { display: flex; align-items: flex-start; gap: .625rem; cursor: pointer; font: 500 .875rem/1.4 var(--font-sans); color: var(--c-ink); }
.bk-check input { position: absolute; width: 22px; height: 22px; margin: 0; opacity: 0; cursor: pointer; }
.bk-check__box {
  flex: none; position: relative; width: 22px; height: 22px; border-radius: 6px; background: #fff;
  box-shadow: inset 0 0 0 1.5px var(--bk-field); transition: background-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.bk-check__box::after {
  content: ""; position: absolute; left: 7px; top: 3px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(45deg); opacity: 0;
}
.bk-check input:checked + .bk-check__box { background: var(--c-accent); box-shadow: none; }
.bk-check input:checked + .bk-check__box::after { opacity: 1; }
.bk-check input:focus-visible + .bk-check__box { outline: 2px solid var(--c-accent); outline-offset: 2px; }
.bk-check input[aria-invalid="true"] + .bk-check__box { box-shadow: inset 0 0 0 1.5px var(--c-error); }
.bk-hint { font-size: .8125rem; line-height: 1.35; color: var(--c-muted); }
.bk-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.bk-form__end { margin-top: .25rem; }
.bk-terms { font-size: .8125rem; line-height: 1.45; color: var(--c-muted); }
.bk-submit { width: 100%; margin-top: .75rem; }
.bk-submit[data-state="pending"] {
  background: #F3EBEE; color: var(--c-accent-hover);
  box-shadow: inset 0 0 0 1px rgb(133 88 116 / .28);
}
.bk-submit[data-state="pending"]:hover { background: #EDE1E6; }
.bk-submit[data-state="busy"] { cursor: progress; opacity: .9; }
.bk-btn__dots { display: inline-flex; gap: 4px; }
.bk-btn__dots i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .5; animation: bk-dot 1s var(--ease) infinite; }
.bk-btn__dots i:nth-child(2) { animation-delay: .15s; }
.bk-btn__dots i:nth-child(3) { animation-delay: .3s; }

/* ---------- Ansicht 3: Bestätigung ------------------------------------ */
.bk-done__mark {
  flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  color: var(--c-success); background: #EEF2EB; box-shadow: inset 0 0 0 1px rgb(79 107 74 / .25);
}
.bk-done__h { margin-top: .875rem; font-size: 1.625rem; line-height: 1.15; text-wrap: balance; }
.bk-sum--done { align-items: flex-start; }
.bk-sum--done .bk-sum__icon { margin-top: 1px; }
.bk-sum--done .bk-sum__what + .bk-sum__what { margin-top: .125rem; }
.bk-text { margin-top: .875rem; font-size: .9375rem; color: var(--c-ink-soft); }
.bk-text strong { font-weight: 560; color: var(--c-ink); word-break: break-word; }
.bk-done .bk-row { margin-top: .875rem; }
.bk-notes { list-style: none; margin: 1rem 0 0; padding: .875rem 0 0; border-top: 1px solid var(--bk-hair); display: grid; gap: .375rem; font-size: .8125rem; line-height: 1.45; color: var(--c-ink-soft); }
.bk-notes li { position: relative; padding-left: .875rem; }
.bk-notes li::before { content: ""; position: absolute; left: 0; top: .62em; width: 4px; height: 4px; border-radius: 50%; background: #C9A9BC; }
.bk-sign { margin-top: .875rem; font-family: var(--font-serif); font-size: 1.0625rem; color: var(--c-ink); }
.bk-sign span { color: var(--c-muted); }

/* ---------- Schmal (unter 460 px Inhaltsbreite) ------------------------ */
@container bk (max-width: 459.98px) {
  .bk-h { font-size: 1.3125rem; }
  .bk-top { gap: .5rem; }
  .bk-locs__row { padding: 2px; }
  .bk-loc span { min-height: 30px; padding: 0 .625rem; }
  .bk-foot__l { display: none; }
  .bk-foot__s { display: inline; }
  .bk-field--message label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .bk-field--message .bk-field__top:has(.bk-err:empty) { display: none; }
  .bk-form { gap: .375rem; }
  .bk-field input { min-height: 44px; }
  .bk-field textarea { min-height: 44px; height: 44px; }
  .bk-long { display: none; }
  .bk-short { display: inline; }
  .bk-svc__name { font-size: .875rem; }
  .bk-svc__meta { font-size: .75rem; }
  .bk-svc__dot { top: 7px; right: 7px; width: 7px; height: 7px; }
  .bk-month { font-size: 1.0625rem; }
  .bk-day__n { font-size: .9375rem; }
  .bk-day.is-today::after { bottom: 3px; }
  .bk-tgrid { gap: .375rem; }
  .bk-time { height: 40px; font-size: .875rem; }
  .bk-form { margin-top: .625rem; }
  .bk-field textarea { transition: height var(--dur) var(--ease), box-shadow var(--dur-fast) var(--ease); }
  .bk-field textarea:focus { height: 66px; }
  .bk-submit { margin-top: .625rem; }
  .bk-times__dur { display: none; }
  .bk-alert { padding: .5rem .75rem; font-size: .8125rem; }
  /* Fehlermeldung beim Absenden ersetzt die (bereits gelesene) Absage-Zeile, damit alles in einen Bildschirm passt */
  .bk-form__end:has(.bk-alert:not(.bk-alert--sr)) .bk-terms,
  .bk-form:has(.bk-err--block:not(:empty)) .bk-terms { display: none; }
  .bk-foot { font-size: .75rem; }
  .bk-err--block:not(:empty) { margin-top: .25rem; padding: 0; background: none; box-shadow: none; }
  .bk-check { font-size: .8125rem; }
}
@container bk (max-width: 309.98px) {
  .bk-h { font-size: 1.25rem; }
  .bk-demo__dot { display: none; }
  .bk-svc__card { padding-inline: .5rem; }
}
.bk-form:has(.bk-err--block:not(:empty)) .bk-terms { display: none; }
/* Breit: volle Leistungsnamen, Hinweis in der Karte, größere Zellen, E-Mail und Telefon nebeneinander */
@container bk (min-width: 460px) {
  .bk-time { height: 40px; }
  .bk-tgrid { gap: .375rem; }
  .bk-h { font-size: 1.625rem; }
  .bk-svc__short { display: none; }
  .bk-svcs__row { gap: .5rem; }
  .bk-svc__card { min-height: 54px; padding: .5rem 1.5rem .5rem .875rem; gap: .125rem; justify-content: flex-start; }
  .bk-svc__name .bk-svc__full { position: static; width: auto; height: auto; overflow: visible; clip-path: none; white-space: normal; }
  .bk-svc__dot { top: 11px; right: 11px; }
  .bk-tgrid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .bk-form { grid-template-columns: 1fr 1fr; gap: .75rem 1rem; }
  .bk-form > .bk-field--name, .bk-form > .bk-field--message, .bk-form > .bk-field--first, .bk-form > .bk-form__end { grid-column: 1 / -1; }
  .bk-form__end { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .5rem 1.25rem; }
  .bk-form__end > [data-form-alert] { grid-column: 1 / -1; }
  .bk-form__end > [data-form-alert]:empty { display: none; }
  .bk-form__end [data-form-alert] .bk-alert { margin: 0; }
  .bk-submit { grid-column: 2; width: auto; margin-top: 0; min-width: 15.5rem; }
  .bk-field--message ::placeholder { color: transparent; }
}

/* Untereinander (mobil): mit dem Hinweis „Nur nach einem ersten Termin“ wird das Uhrzeiten-Feld etwas niedriger, damit 393 × 700 passt */
@container bk (max-width: 499.98px) { .bk-step:has(.bk-svc-hint) .bk-times__body { max-height: 5rem; } }

/* ---------- v12 Desktop: schmales Hochformat-Panel (ab 500 px Inhaltsbreite, Panel bis 600 px) ----------
   Schrittanzeige + Ort oben, Leistungen als kompakte Zeile, darunter ganzer Monat links (immer 6 Zeilen Höhe) und
   eine schmale Uhrzeiten-Spalte rechts (gestapelt, scrollt innen). Formular und Bestätigung im selben Panel mit
   derselben Mindesthöhe, damit nichts springt. */
@container bk (min-width: 500px) {
  .bk-step { --bk-mode: month; min-height: var(--bk-minh, 36.125rem); display: flex; flex-direction: column; }
  .bk-top { min-height: 34px; padding-bottom: .75rem; border-bottom: 1px solid var(--bk-hair); }
  .bk-steps { display: flex; align-items: center; gap: 1.25rem; min-width: 0; }
  .bk-steps__item { display: inline-flex; align-items: center; gap: .5rem; white-space: nowrap; }
  .bk-steps__item:not(.is-active) { display: inline-flex; }
  .bk-steps__n { display: grid; }
  .bk .bk-h.bk-steps__item { font: 600 .9375rem/1.2 var(--font-sans); letter-spacing: 0; color: var(--c-ink); }
  .bk-done__h { font-size: 1.5rem; }
  .bk-svcs { margin-top: .75rem; }
  .bk-cal {
    flex: 1 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) 10.75rem; grid-template-rows: auto auto auto;
    column-gap: 1.25rem; align-items: start; margin-top: .75rem; padding-top: .75rem; border-top: 1px solid var(--bk-hair);
  }
  .bk-cal > .bk-mrow { grid-column: 1; grid-row: 1; position: relative; justify-content: center; }
  .bk-cal .bk-arrows { position: absolute; inset: 0; justify-content: space-between; align-items: center; pointer-events: none; }
  .bk-cal .bk-nav { pointer-events: auto; }
  .bk-month { font-size: 1.125rem; text-align: center; }
  .bk-cal > .bk-grid { grid-column: 1; grid-row: 2; --bk-cell: 42px; --bk-gap: .3125rem; }
  .bk-cal > .bk-more-err { grid-column: 1; grid-row: 3; }
  .bk-cal > .bk-state, .bk-cal > p.sr-only { grid-column: 1 / -1; }
  .bk-cal > .bk-times {
    grid-column: 2; grid-row: 1 / 4; align-self: stretch; contain: size;
    display: flex; flex-direction: column; min-height: 0; margin-top: 0; padding: 0 0 0 1.25rem; border-top: 0; border-left: 1px solid var(--bk-hair);
  }
  .bk-times__head { flex: none; flex-direction: column; align-items: flex-start; gap: .125rem; min-height: 34px; margin-bottom: .625rem; }
  .bk-times__day { font-size: .9375rem; font-weight: 600; line-height: 1.25; }
  .bk-times__body, .bk-step:has(> .bk-alert) .bk-times__body {
    flex: 1 1 auto; min-height: 0; max-height: none; padding-right: 6px;
    scrollbar-width: thin; scrollbar-color: rgb(43 37 34 / .22) transparent;
  }
  .bk-times__body::-webkit-scrollbar { width: 4px; }
  .bk-times__body::-webkit-scrollbar-thumb { background: rgb(43 37 34 / .22); border-radius: 4px; }
  .bk-tgrid { grid-template-columns: minmax(0, 1fr); gap: .5rem; }
  .bk-time { height: 42px; }
  .bk-wempty .bk-btn { white-space: normal; text-align: left; min-height: 44px; padding-block: .5rem; }
  .bk-foot { margin-top: .875rem; }
  .bk-skel--time { height: 42px; }
}
/* ---------- Bewegung ------------------------------------------------- */
@keyframes bk-pulse { 50% { opacity: .55; } }
@keyframes bk-swap { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes bk-step-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes bk-dot { 0%, 100% { opacity: .35; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-2px); } }
.bk-step { animation: bk-step-in .32s var(--bk-ease, ease) both; }
@media (prefers-reduced-motion: reduce) {
  .bk-step, .bk-times.is-swap, .bk-grid.is-swap, .bk-skel, .bk-day.is-loading, .bk-btn__dots i { animation: none; }
  .bk-time:hover { transform: none; }
  .bk-btn__arrow, .bk-btn:hover .bk-btn__arrow { transition: none; transform: none; }
}
