/* Terminbuchung und Event-Reservierung */
html.bk-lock { overflow: hidden; }
.bk { position: fixed; inset: 0; z-index: 300; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: clamp(12px, 4vh, 40px) 16px; border: 0; background: transparent; overflow-y: auto; overscroll-behavior: contain; color: var(--text); }
.bk:not([open]) { display: none; }
.bk[open] { display: grid; place-items: center; }
.bk::backdrop { background: rgba(20, 19, 18, .72); backdrop-filter: blur(6px); }
.bk[open]:not(:modal) { background: rgba(20, 19, 18, .8); }

.bk__card { position: relative; width: min(640px, 100%); border-radius: var(--r-xl); background: var(--paper); box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .6); overflow: hidden; animation: bkIn 420ms var(--ease-out) both; }
.bk.is-closing .bk__card { animation: bkOut 200ms var(--ease) both; }
@keyframes bkIn { from { opacity: 0; translate: 0 32px; scale: .98; } }
@keyframes bkOut { to { opacity: 0; translate: 0 24px; } }

.bk__close { position: absolute; right: 16px; top: 16px; z-index: 2; width: 44px; height: 44px; border: 0; border-radius: 50%; display: grid; place-items: center; background: var(--white); color: var(--ink); cursor: pointer; box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .3); transition: background-color var(--ui) var(--ease), color var(--ui) var(--ease); }
.bk__close:hover { background: var(--orange); color: var(--white); }
.bk__close .icon { width: 20px; height: 20px; }
.bk__progress { height: 5px; background: var(--line); }
.bk__progress span { display: block; height: 100%; background: var(--orange); transform-origin: left; scale: 0 1; transition: scale 400ms var(--ease-out); }

.bk__head { padding: 28px clamp(20px, 4vw, 36px) 6px; padding-right: 72px; }
.bk__step { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--orange-deep); }
.bk__step:empty { display: none; }
.bk__title { margin-top: 6px; font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2rem); line-height: 1.12; letter-spacing: -.03em; }
.bk__sub { margin-top: 8px; color: var(--muted); font-size: 15px; }
.bk__sub:empty { display: none; }
.bk__body { padding: 18px clamp(20px, 4vw, 36px) 24px; }

.bk__foot { display: flex; align-items: center; gap: 14px; padding: 16px clamp(20px, 4vw, 36px); border-top: 1px solid var(--line); background: var(--white); }
.bk__foot[hidden] { display: none; }
.bk__back { display: inline-flex; align-items: center; gap: 6px; padding: 10px 4px; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 700; color: var(--muted); cursor: pointer; }
.bk__back .icon { width: 16px; height: 16px; rotate: 180deg; }
.bk__back:hover { color: var(--ink); }
.bk__back[hidden] { display: none; }
.bk__summary { flex: 1; min-width: 0; font-size: 13px; font-weight: 600; color: var(--muted); line-height: 1.35; }
.bk__next { flex: none; }
.bk__next:disabled { opacity: .45; pointer-events: none; }

/* Auswahl-Karten */
.bk-opts { display: grid; gap: 10px; }
.bk-opt { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 18px; background: var(--white); text-align: left; font: inherit; color: inherit; cursor: pointer; transition: border-color var(--ui) var(--ease), box-shadow var(--ui) var(--ease), translate var(--ui) var(--ease-out); }
.bk-opt:hover { border-color: var(--orange); translate: 0 -1px; }
.bk-opt.is-on { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(232, 93, 12, .16); }
.bk-opt__ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--orange-soft); color: var(--orange-deep); }
.bk-opt.is-on .bk-opt__ic { background: var(--orange); color: var(--white); }
.bk-opt__ic .icon { width: 22px; height: 22px; }
.bk-opt__t { display: grid; gap: 2px; }
.bk-opt__t strong { font-size: 16px; color: var(--ink); }
.bk-opt__t span { font-size: 14px; color: var(--muted); }
.bk-opt__m { padding: 5px 10px; border-radius: 999px; background: var(--paper); font-size: 12.5px; font-weight: 700; color: var(--muted); white-space: nowrap; }

/* Kalender */
.bk-cal__nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.bk-cal__nav strong { font-size: 17px; }
.bk-cal__btn { width: 40px; height: 40px; border: 1.5px solid var(--line); border-radius: 50%; display: grid; place-items: center; background: var(--white); cursor: pointer; color: var(--ink); }
.bk-cal__btn:first-child .icon { rotate: 90deg; }
.bk-cal__btn:last-child .icon { rotate: -90deg; }
.bk-cal__btn .icon { width: 18px; height: 18px; }
.bk-cal__btn:disabled { opacity: .3; cursor: default; }
.bk-cal__btn:not(:disabled):hover { border-color: var(--orange); color: var(--orange-deep); }
.bk-cal__wd, .bk-cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.bk-cal__wd span { text-align: center; font-size: 12px; font-weight: 800; color: var(--muted); padding-bottom: 4px; }
.bk-cal__load { grid-column: 1 / -1; padding: 40px 0; text-align: center; color: var(--muted); font-size: 14px; }
.bk-day { aspect-ratio: 1; display: grid; place-items: center; border-radius: 12px; font-size: 15px; font-weight: 600; color: #c4bdb5; }
button.bk-day { border: 1.5px solid rgba(232, 93, 12, .35); background: var(--orange-soft); color: var(--orange-deep); font: inherit; font-weight: 800; cursor: pointer; transition: background-color var(--ui) var(--ease), color var(--ui) var(--ease); }
button.bk-day:hover, button.bk-day.is-on { background: var(--orange); border-color: var(--orange); color: var(--white); }
.bk-hint { margin-top: 12px; font-size: 13.5px; color: var(--muted); }
.bk-hint--demo { color: #8a6400; }

/* Uhrzeiten und Personen */
.bk-label { margin: 6px 0 8px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.bk-label + .bk-slots + .bk-label { margin-top: 18px; }
.bk-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.bk-slots--pers { grid-template-columns: repeat(4, 1fr); margin-bottom: 4px; }
.bk-slot { padding: 12px 0; border: 1.5px solid var(--line); border-radius: 12px; background: var(--white); font: inherit; font-size: 15px; font-weight: 700; color: var(--ink); cursor: pointer; transition: border-color var(--ui) var(--ease), background-color var(--ui) var(--ease), color var(--ui) var(--ease); }
.bk-slot:hover { border-color: var(--orange); }
.bk-slot.is-on { background: var(--orange); border-color: var(--orange); color: var(--white); }
.bk-slot:disabled { opacity: .35; cursor: default; }

/* Formular */
.bk-form { display: grid; gap: 14px; margin-top: 14px; }
.bk-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bk-field { display: grid; gap: 6px; }
.bk-field label { font-size: 14px; font-weight: 700; color: var(--ink); }
.bk-field input, .bk-field textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--white); font: inherit; font-size: 15.5px; color: var(--ink); }
.bk-field textarea { resize: vertical; }
.bk-field input:focus, .bk-field textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(232, 93, 12, .15); }
.bk-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bk-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); line-height: 1.45; cursor: pointer; }
.bk-check input { width: 20px; height: 20px; margin-top: 1px; flex: none; accent-color: var(--orange); }
.bk-check a { color: var(--orange-deep); font-weight: 700; }
.bk-error { padding: 12px 14px; border-radius: 12px; background: #fbe9e7; color: #a33222; font-size: 14px; font-weight: 600; }
.bk-error a { color: inherit; }

/* Fertig */
.bk-done { display: grid; justify-items: start; gap: 12px; }
.bk-done__ic { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: var(--orange); color: var(--white); }
.bk-done__ic .icon { width: 28px; height: 28px; }
.bk-done p { font-size: 16px; line-height: 1.6; }
.bk-done__small { font-size: 14px !important; color: var(--muted); }
.bk-done__small a { color: var(--orange-deep); font-weight: 700; }
.bk-done .btn { margin-top: 6px; }

/* Event-Plätze auf der Events-Seite */
.ev-seats { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--orange-soft); color: var(--orange-deep); font-size: 13px; font-weight: 800; }
.ev-seats::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.ev-seats--low { background: #fff4d6; color: #8a6400; }
.ev-seats--full { background: #efece8; color: var(--muted); }

@media (max-width: 640px) {
  .bk { padding: 0; }
  .bk[open] { place-items: end stretch; }
  .bk__card { width: 100%; border-radius: 24px 24px 0 0; max-height: 100%; display: flex; flex-direction: column; }
  .bk__body { overflow-y: auto; flex: 1; }
  .bk-row { grid-template-columns: 1fr; }
  .bk-opt { grid-template-columns: auto 1fr; }
  .bk-opt__m { grid-column: 2; justify-self: start; }
  .bk__summary { display: none; }
  .bk__foot { justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) { .bk__card, .bk.is-closing .bk__card { animation: none; } }
