/* Fexelion Booking – Buchungsblock. Farben, Schriften und Ecken kommen vom aktiven Theme. */
.bk-wrap { --bk-a: var(--color-primary, #0b6657); --bk-at: var(--color-primary-text, var(--bk-a)); --bk-on: var(--color-primary-contrast, #fff);
  --bk-line: var(--line, color-mix(in srgb, var(--color-text, #111) 16%, transparent));
  --bk-line2: var(--line-strong, color-mix(in srgb, var(--color-text, #111) 32%, transparent));
  --bk-muted: var(--color-muted, color-mix(in srgb, var(--color-text, #111) 70%, transparent));
  --bk-r: var(--radius, 8px); --bk-err: #b42318; }
.bk { max-width: 46rem; margin: 0; font: inherit; color: var(--color-text, inherit); }
.zb-alh-center .bk, .zb-al-center .bk { margin: 0 auto; }
.bk-msg { max-width: 46rem; margin: 1rem 0; color: var(--bk-muted); }
.bk-msg a { color: var(--bk-at); }
.bk * { box-sizing: border-box; }
.bk :focus-visible { outline: 3px solid var(--bk-at); outline-offset: 2px; }

/* Schritte */
.bk-steps { display: flex; list-style: none; padding: 0; margin: 0 0 1.5rem; border-bottom: 1px solid var(--bk-line); overflow-x: auto; }
.bk-steps li { padding: .5rem .9rem .6rem 0; margin-right: .9rem; font-size: .92rem; color: var(--bk-muted); white-space: nowrap; }
.bk-steps .is-current { color: inherit; font-weight: 650; box-shadow: inset 0 -3px 0 var(--bk-a); }
.bk-steps .is-done { color: inherit; }
.bk-steps b { font-variant-numeric: tabular-nums; font-weight: inherit; margin-right: .3rem; }
.bk-step-title { font-size: 1.15rem; margin: 0 0 1rem; outline: none; }

/* Leistungen */
.bk-group { font-size: .95rem; font-weight: 650; margin: 1.3rem 0 .5rem; color: var(--bk-muted); }
.bk-services { display: grid; gap: 0; border: 1px solid var(--bk-line); border-radius: var(--bk-r); overflow: hidden; }
.bk-service { position: relative; display: grid; grid-template-columns: 1fr auto; gap: .2rem 1rem; padding: 1rem 1.1rem; cursor: pointer; border-top: 1px solid var(--bk-line); background: transparent; }
.bk-service:first-child { border-top: 0; }
.bk-service:hover { background: color-mix(in srgb, var(--bk-a) 6%, transparent); }
.bk-service input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.bk-service:has(input:focus-visible) { outline: 3px solid var(--bk-at); outline-offset: -3px; }
.bk-service:has(input:checked) { box-shadow: inset 4px 0 0 var(--bk-a); background: color-mix(in srgb, var(--bk-a) 8%, transparent); }
.bk-service__name { font-weight: 650; font-size: 1.05rem; }
.bk-service__meta { color: var(--bk-muted); font-size: .95rem; white-space: nowrap; text-align: right; }
.bk-service__desc { grid-column: 1 / -1; color: var(--bk-muted); font-size: .93rem; margin: 0; }
.bk-service__go { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-size: 1.4rem; color: var(--bk-at); display: none; }

/* Gewählte Leistung / Zusammenfassung */
.bk-chosen { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--bk-line); margin-bottom: 1.2rem; }
.bk-chosen span { color: var(--bk-muted); }
.bk-link { background: none; border: 0; padding: .3rem 0; color: var(--bk-at); text-decoration: underline; text-underline-offset: 3px; font: inherit; cursor: pointer; min-height: 44px; }
.bk-summary { border: 1px solid var(--bk-line); border-radius: var(--bk-r); padding: .9rem 1.1rem; margin-bottom: 1.4rem; display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.bk-summary p { margin: 0; }
.bk-summary strong { display: block; font-size: 1.05rem; }

/* Mitarbeiter */
.bk-staff { border: 0; padding: 0; margin: 0 0 1.3rem; }
.bk-staff legend { font-weight: 650; margin-bottom: .5rem; padding: 0; }
.bk-chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.bk-chip { position: relative; }
.bk-chip input { position: absolute; opacity: 0; width: 100%; height: 100%; inset: 0; margin: 0; cursor: pointer; }
.bk-chip span { display: inline-flex; align-items: center; min-height: 44px; padding: .4rem 1rem; border: 1px solid var(--bk-line2); border-radius: 999px; }
.bk-chip input:checked + span { background: var(--bk-a); border-color: var(--bk-a); color: var(--bk-on); font-weight: 600; }
.bk-chip input:focus-visible + span { outline: 3px solid var(--bk-at); outline-offset: 2px; }

/* Tage */
.bk-week { display: flex; align-items: center; gap: .6rem; margin-bottom: .6rem; }
.bk-month { flex: 1; font-weight: 650; }
.bk-nav { width: 44px; height: 44px; border: 1px solid var(--bk-line2); background: transparent; border-radius: var(--bk-r); font-size: 1.2rem; color: inherit; cursor: pointer; }
.bk-nav:disabled { opacity: .35; cursor: default; }
.bk-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .35rem; margin: 0 0 1.4rem; border: 0; padding: 0; }
.bk-day { position: relative; }
.bk-day input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.bk-day input:disabled { cursor: default; }
.bk-day label { display: flex; flex-direction: column; align-items: center; gap: .1rem; padding: .55rem .15rem; border: 1px solid var(--bk-line2); border-radius: var(--bk-r); min-height: 78px; justify-content: center; }
.bk-day small { font-size: .8rem; }
.bk-day b { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.bk-day i { font-style: normal; font-size: .75rem; color: var(--bk-muted); }
.bk-day input:disabled + label { opacity: .55; border-style: dashed; }
.bk-day input:checked + label { background: var(--bk-a); border-color: var(--bk-a); color: var(--bk-on); }
.bk-day input:checked + label i { color: var(--bk-on); }
.bk-day input:focus-visible + label { outline: 3px solid var(--bk-at); outline-offset: 2px; }

/* Zeiten */
.bk-slots { border: 0; padding: 0; margin: 0 0 1.4rem; min-height: 4rem; }
.bk-part { font-size: .9rem; font-weight: 650; margin: .8rem 0 .45rem; }
.bk-times { display: grid; grid-template-columns: repeat(auto-fill, minmax(5.4rem, 1fr)); gap: .4rem; }
.bk-time { position: relative; }
.bk-time input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.bk-time label { display: flex; align-items: center; justify-content: center; min-height: 48px; border: 1px solid var(--bk-line2); border-radius: var(--bk-r); font-variant-numeric: tabular-nums; font-size: 1.02rem; }
.bk-time input:checked + label { border-color: var(--bk-a); box-shadow: inset 0 0 0 2px var(--bk-a); font-weight: 700; }
.bk-time input:focus-visible + label { outline: 3px solid var(--bk-at); outline-offset: 2px; }
.bk-empty { padding: 1rem 0; color: var(--bk-muted); }
.bk-empty .btn { margin-top: .6rem; }

/* Fuß mit Weiter */
.bk-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding-top: 1rem; border-top: 1px solid var(--bk-line); }
.bk-foot p { margin: 0; font-weight: 650; }
.bk-note { font-size: .9rem; margin: .8rem 0 0; color: var(--bk-muted); }
.bk .btn[disabled] { opacity: .6; cursor: progress; }

/* Formular */
.bk-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1rem; }
.bk-field { display: flex; flex-direction: column; gap: .35rem; grid-column: 1 / -1; }
.bk-field--half { grid-column: auto; }
.bk-field label { font-weight: 600; }
.bk-field label small { font-weight: 400; color: var(--bk-muted); }
.bk-field input:not([type=checkbox]), .bk-field select, .bk-field textarea { width: 100%; min-height: 48px; padding: .6rem .75rem; font: inherit; color: inherit; background: var(--color-bg, #fff);
  border: 1px solid var(--bk-line2); border-radius: var(--bk-r); }
.bk-field textarea { min-height: 96px; resize: vertical; }
.bk-field input:focus, .bk-field select:focus, .bk-field textarea:focus { outline: 3px solid var(--bk-at); outline-offset: 1px; }
.bk-field [aria-invalid=true] { border-color: var(--bk-err); box-shadow: inset 0 0 0 1px var(--bk-err); }
.bk-err { color: var(--bk-err); font-size: .9rem; margin: 0; }
.bk-hint { color: var(--bk-muted); font-size: .88rem; margin: 0; }
.bk-check { display: flex; gap: .65rem; align-items: flex-start; font-weight: 400 !important; cursor: pointer; }
.bk-check input { width: 22px; height: 22px; margin: .1rem 0 0; flex: none; accent-color: var(--bk-a); }
.bk-check a { color: var(--bk-at); }
.bk-alert { grid-column: 1 / -1; border: 1px solid var(--bk-err); color: var(--bk-err); border-radius: var(--bk-r); padding: .75rem 1rem; margin: 0; }
.bk-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Fertig */
.bk-done { border: 1px solid var(--bk-line); border-radius: var(--bk-r); padding: 1.4rem 1.3rem; }
.bk-done h3 { margin: 0 0 .5rem; font-size: 1.25rem; outline: none; }
.bk-done > p { margin: 0 0 .8rem; }
.bk-done .bk-summary p { margin: 0; }
.bk-done .bk-summary { margin: 1rem 0; }
.bk-done__mark { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--bk-a); color: var(--bk-on); font-size: 1.3rem; margin-bottom: .6rem; }

.bk .visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 600px) {
  .bk-form { grid-template-columns: 1fr; }
  .bk-field--half { grid-column: 1 / -1; }
  .bk-days { gap: .25rem; }
  .bk-day label { min-height: 70px; padding: .45rem .05rem; }
  .bk-day small { font-size: .72rem; }
  .bk-day b { font-size: 1.02rem; }
  .bk-day i { font-size: .66rem; white-space: nowrap; }
  .bk-foot .btn { width: 100%; justify-content: center; }
  .bk-service__meta { white-space: normal; }
  .bk-summary { flex-direction: column; gap: .3rem; }
}
@media (prefers-reduced-motion: no-preference) { .bk-panel { animation: bk-in .18s ease-out; } }
@keyframes bk-in { from { opacity: 0; } to { opacity: 1; } }
.bk-check input[aria-invalid=true] { box-shadow: none; outline: 2px solid var(--bk-err); outline-offset: 2px; }
