/**
 * =========================================================
 * Booking Modal System
 * booking_modal.css
 * =========================================================
 *
 * Zentrale Modal-Engine für:
 *
 * - DateCombo
 * - TimeCombo
 * - PersonCombo
 *
 * Architektur:
 * - nur UI Layer
 * - keine Businesslogik
 * - keine Slotlogik
 * - mobile first
 * =========================================================
 */

.booking-modal-overlay {

    position: fixed;

    inset: 0;

    z-index: 999999;

    display: none;

    align-items: center;

    justify-content: center;

    padding: 20px;

    background: rgba(0, 0, 0, 0.55);

    backdrop-filter: blur(2px);
}

.booking-modal-overlay.active {

    display: flex;
}

.booking-modal {

    position: relative;

    width: 100%;

    max-width: 900px;

    max-height: 90vh;

    overflow: hidden;

    background: #ffffff;

    border-radius: 24px;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.35);

    animation: bookingModalOpen 0.2s ease;
}

@keyframes bookingModalOpen {

    from {

        opacity: 0;

        transform: translateY(20px) scale(0.98);
    }

    to {

        opacity: 1;

        transform: translateY(0) scale(1);
    }
}

.booking-modal-close {

    position: absolute;

    top: 14px;

    right: 14px;

    width: 46px;

    height: 46px;

    border: none;

    border-radius: 50%;

    background: #ffffff;

    color: #333333;

    font-size: 34px;

    line-height: 1;

    cursor: pointer;

    z-index: 20;

    box-shadow:
        0 4px 18px rgba(0, 0, 0, 0.18);
}

.booking-modal-close:hover {

    background: #f5f5f5;
}

.booking-modal-content {

    width: 100%;

    max-height: 90vh;

    overflow-y: auto;

    overflow-x: hidden;

    -webkit-overflow-scrolling: touch;
}

.booking-modal-loading {

    padding: 60px 30px;

    text-align: center;

    font-size: 18px;

    color: #666666;
}

/*
 * =========================================================
 * Mobile
 * =========================================================
 */

@media (max-width: 768px) {

    .booking-modal-overlay {

        padding: 0;
    }

    .booking-modal {

        width: 100%;

        height: 100%;

        max-width: none;

        max-height: none;

        border-radius: 0;
    }

    .booking-modal-content {

        height: 100%;

        max-height: none;
    }

    .booking-modal-close {

        top: 10px;

        right: 10px;
    }
}