/* ── Booking Block ─────────────────────────────────────────────────────────── */
.block-booking { padding: 60px 0; }
.block-booking h2 { text-align: center; margin-bottom: 8px; }
.booking-intro { text-align: center; color: #64748b; max-width: 560px; margin: 0 auto 32px; }
.booking-unavailable { text-align: center; color: #94a3b8; padding: 30px; }

.booking-widget { max-width: 700px; margin: 0 auto; }
.booking-label { display: block; font-weight: 700; margin-bottom: 14px; font-size: 1.05rem; color: #0f172a; }

/* Angebote */
.booking-service-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 28px; }
.booking-service-btn {
    display: flex; flex-direction: column; gap: 4px;
    padding: 16px 18px; border: 2px solid #e2e8f0; border-radius: 12px;
    background: #fff; cursor: pointer; text-align: left; transition: border-color .15s, box-shadow .15s;
}
.booking-service-btn:hover { border-color: #93c5fd; }
.booking-service-btn.selected { border-color: var(--brand-primary,#2563eb); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.booking-service-btn .bs-name { font-weight: 700; font-size: 1rem; }
.booking-service-btn .bs-dur  { font-size: .82rem; color: #2563eb; font-weight: 600; }
.booking-service-btn .bs-desc { font-size: .85rem; color: #64748b; }

/* Kalender-Layout: links Monatskalender, rechts Slots */
.bk-cal-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
}
@media (max-width: 520px) {
    .bk-cal-wrap { grid-template-columns: 1fr; }
    .bk-slots-col { border-left: none !important; border-top: 1.5px solid #e2e8f0; }
}

/* Linke Spalte: Monatskalender */
.bk-cal-col { padding: 20px 16px; }
.bk-cal-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 16px;
}
.bk-cal-header strong { font-size: 1rem; font-weight: 700; color: #0f172a; }
.bk-cal-nav {
    background: none; border: none; cursor: pointer;
    font-size: 1.1rem; color: #64748b; padding: 4px 8px; border-radius: 6px;
    transition: background .12s;
}
.bk-cal-nav:hover { background: #f1f5f9; color: #0f172a; }
.bk-cal-grid {
    display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px;
    text-align: center;
}
.bk-cal-dow {
    font-size: .72rem; font-weight: 700; color: #94a3b8;
    padding-bottom: 6px; text-transform: uppercase;
}
.bk-cal-day {
    aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
    font-size: .88rem; border-radius: 8px; cursor: default; color: #94a3b8;
}
.bk-cal-day.has-slots {
    color: #0f172a; cursor: pointer; font-weight: 600;
    transition: background .12s;
}
.bk-cal-day.has-slots:hover { background: #eff6ff; color: #2563eb; }
.bk-cal-day.selected { background: var(--brand-primary,#2563eb) !important; color: #fff !important; }
.bk-cal-day.today { outline: 2px solid #cbd5e1; }

/* Rechte Spalte: Slots */
.bk-slots-col {
    border-left: 1.5px solid #e2e8f0;
    padding: 20px 16px;
    min-height: 260px;
    display: flex; flex-direction: column;
}
.bk-slots-col-title {
    font-size: .88rem; font-weight: 700; color: #64748b;
    margin-bottom: 14px; min-height: 20px;
}
.bk-slots-list {
    display: flex; flex-direction: column; gap: 8px;
    overflow-y: auto; max-height: 340px;
    flex: 1;
}
.bk-slot {
    padding: 10px 14px; border: 1.5px solid #e2e8f0; border-radius: 10px;
    background: #fff; cursor: pointer; font-weight: 600; font-size: .95rem; color: #1e293b;
    text-align: center; transition: all .12s;
}
.bk-slot:hover { border-color: #93c5fd; background: #f8fafc; }
.bk-slot.selected { background: var(--brand-primary,#2563eb); color: #fff; border-color: var(--brand-primary,#2563eb); }

.bk-slots-empty { color: #94a3b8; font-size: .88rem; margin-top: 8px; }
.bk-loading { color: #94a3b8; font-size: .88rem; }
.bk-error   { color: #dc2626; font-size: .88rem; }

/* Formular */
.booking-form-wrap { margin-top: 20px; }
.booking-form-wrap .booking-chosen {
    background: #eff6ff; border-radius: 10px; padding: 12px 16px; margin-bottom: 14px; color: #1e3a8a; font-size: .95rem;
}
.booking-form-wrap input,
.booking-form-wrap textarea {
    width: 100%; padding: 12px 14px; border: 1.5px solid #e2e8f0; border-radius: 8px;
    margin-bottom: 12px; font-family: inherit; font-size: .95rem; box-sizing: border-box;
}
.booking-form-wrap input:focus,
.booking-form-wrap textarea:focus { outline: none; border-color: #93c5fd; }
.bk-submit { width: 100%; }
.bk-hint { font-size: .82rem; color: #94a3b8; text-align: center; margin-top: 10px; }

/* Erfolg */
.booking-result .bk-success { text-align: center; padding: 36px 20px; background: #f0fdf4; border-radius: 14px; }
.booking-result .bk-success-icon { font-size: 2.6rem; margin-bottom: 10px; }
.booking-result .bk-success p { color: #166534; font-size: 1.05rem; margin: 0; }

/* ── FOMO-Indikatoren auf Kalender-Tagen ──────────────────────────────────── */
.bk-cal-day { position: relative; }

.bk-fomo {
    position: absolute;
    bottom: 3px; right: 3px;
    width: 6px; height: 6px;
    border-radius: 50%;
    display: block;
}
/* Letzter freier Slot: roter Punkt mit Puls */
.bk-fomo-hot {
    background: #ef4444;
    font-style: normal;
    font-size: 0;
    animation: bk-pulse 1.4s ease-in-out infinite;
}
@keyframes bk-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,.5); }
    50%       { box-shadow: 0 0 0 4px rgba(239,68,68,0); }
}
/* >50% belegt: oranger Punkt */
.bk-fomo-warm { background: #f97316; }
/* <50% belegt: grauer Punkt */
.bk-fomo-cool { background: #cbd5e1; }

/* Slots-Liste: FOMO-Text */
.bk-fomo-hint {
    font-size: .78rem;
    font-weight: 600;
    margin-bottom: 10px;
    padding: 5px 10px;
    border-radius: 6px;
    display: inline-block;
}
.bk-fomo-hint.hot  { background: #fef2f2; color: #dc2626; }
.bk-fomo-hint.warm { background: #fff7ed; color: #c2410c; }

/* Belegter Slot — ausgegraut, nicht klickbar */
.bk-slot-booked {
    color: #cbd5e1 !important;
    border-color: #f1f5f9 !important;
    background: #f8fafc !important;
    cursor: not-allowed !important;
    text-decoration: line-through;
    opacity: 0.7;
}

/* ── Ressourcen-Auswahl ───────────────────────────────────────────────────── */
.booking-resource-wrap {
    margin-top: 20px;
    padding: 18px;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
}
.bk-res-label {
    font-weight: 700; font-size: 1rem; color: #0f172a; margin-bottom: 12px;
}
.bk-res-list {
    display: flex; flex-wrap: wrap; gap: 10px;
}
.bk-res-btn {
    padding: 10px 20px; border: 2px solid #e2e8f0; border-radius: 10px;
    background: #fff; cursor: pointer; font-weight: 600; font-size: .95rem;
    color: #1e293b; transition: all .12s;
}
.bk-res-btn:hover { border-color: #93c5fd; background: #f8fafc; }
.bk-res-btn.selected {
    background: var(--brand-primary,#2563eb);
    color: #fff; border-color: var(--brand-primary,#2563eb);
}
.bk-res-chosen { color: #2563eb; font-weight: 600; }

/* ── Bestätigungs-Modal (Pop-up) ──────────────────────────────────────────── */
.bk-modal-overlay {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(15, 23, 42, 0.55);
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    animation: bk-fade-in 0.2s ease;
}
@keyframes bk-fade-in { from { opacity: 0; } to { opacity: 1; } }

.bk-modal-box {
    background: #fff;
    border-radius: 18px;
    padding: 36px 28px 28px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    animation: bk-modal-pop 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes bk-modal-pop {
    from { transform: scale(0.9); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}

.bk-modal-icon {
    font-size: 3rem;
    margin-bottom: 14px;
}
.bk-modal-box h3 {
    margin: 0 0 10px;
    font-size: 1.3rem;
    color: #0f172a;
}
.bk-modal-box p {
    margin: 0 0 24px;
    color: #475569;
    font-size: 0.98rem;
    line-height: 1.5;
}
.bk-modal-close {
    width: 100%;
}
