/* =============================================
   Nora Poschmann – Kalender-Buchungs-Widget CSS
   ============================================= */

/* ---- Overlay ---- */
.booking-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: bookingFadeIn 0.25s ease;
}

@keyframes bookingFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ---- Modal ---- */
.booking-modal {
    background: #FAF8F4;
    border-radius: 16px;
    max-width: 640px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem 2rem 2.5rem;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    animation: bookingSlideUp 0.3s ease;
}

@keyframes bookingSlideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.booking-close-btn {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    color: #6B6B6B;
    transition: color 0.2s;
    padding: 0.25rem;
}
.booking-close-btn:hover {
    color: #1A1A1A;
}

/* ---- Header ---- */
.booking-modal-header {
    text-align: center;
    margin-bottom: 1.75rem;
    padding-right: 2rem;
}
.booking-modal-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1A1A1A;
    margin: 0 0 0.35rem;
}
.booking-modal-sub {
    font-size: 0.875rem;
    color: #6B6B6B;
    margin: 0;
}

/* ---- Kalender-Navigation ---- */
.booking-cal-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}
.booking-nav-btn {
    background: none;
    border: 1px solid #E5E2DC;
    border-radius: 8px;
    width: 36px;
    height: 36px;
    font-size: 1.25rem;
    cursor: pointer;
    color: #1A1A1A;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.booking-nav-btn:hover:not(:disabled) {
    background: #1A1A1A;
    color: white;
    border-color: #1A1A1A;
}
.booking-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}
.booking-cal-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1A1A1A;
}

/* ---- Wochentage ---- */
.booking-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 4px;
}
.booking-weekday {
    text-align: center;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #6B6B6B;
    padding: 0.5rem 0;
}

/* ---- Tage ---- */
.booking-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}
.booking-day {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    font-size: 0.9rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    color: #1A1A1A;
    font-weight: 400;
}
.booking-day:not(.disabled):not(.empty):hover {
    background: #E5E2DC;
}
.booking-day.today {
    font-weight: 700;
    border: 2px solid #C47A5A;
}
.booking-day.selected {
    background: #1A1A1A;
    color: white;
    font-weight: 600;
}
.booking-day.disabled {
    color: #B0B0B0;
    cursor: not-allowed;
}
.booking-day.empty {
    cursor: default;
}

/* ---- Times Section ---- */
.booking-times-section {
    margin-top: 1.25rem;
    border-top: 1px solid #E5E2DC;
    padding-top: 1rem;
}
.booking-times-header {
    font-size: 0.9rem;
    color: #1A1A1A;
    margin: 0 0 0.75rem;
}
.booking-hint {
    color: #6B6B6B;
    font-size: 0.85rem;
    text-align: center;
    padding: 1.5rem 0;
    margin: 0;
}

/* ---- Zeit-Slots ---- */
.booking-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 6px;
}
.booking-slot {
    padding: 10px 8px;
    border: 1px solid #E5E2DC;
    border-radius: 8px;
    background: white;
    color: #1A1A1A;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    font-family: 'Inter', sans-serif;
}
.booking-slot:hover:not(:disabled) {
    border-color: #1A1A1A;
    background: #F0EDE4;
}
.booking-slot.selected {
    border-color: #1A1A1A;
    background: #1A1A1A;
    color: white;
}
.booking-slot.booked {
    opacity: 0.4;
    cursor: not-allowed;
    text-decoration: line-through;
}
.booking-slot-booked {
    font-size: 0.65rem;
    display: block;
    margin-top: 2px;
}

/* ---- Formular ---- */
.booking-form {
    margin-top: 1rem;
}
.booking-form-label {
    font-size: 0.95rem;
    color: #1A1A1A;
    margin: 0 0 1rem;
}
.booking-form-group {
    margin-bottom: 0.9rem;
}
.booking-form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #6B6B6B;
    margin-bottom: 0.3rem;
}
.booking-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #E5E2DC;
    border-radius: 8px;
    background: white;
    font-size: 0.9rem;
    color: #1A1A1A;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.booking-input:focus {
    outline: none;
    border-color: #1A1A1A;
}
.booking-textarea {
    resize: vertical;
    min-height: 60px;
}
.booking-error {
    color: #C0392B;
    font-size: 0.85rem;
    margin: 0.5rem 0;
    padding: 0.5rem;
    background: #FDE8E8;
    border-radius: 6px;
}

/* ---- Form Buttons ---- */
.booking-form-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
}
.booking-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.booking-btn-primary {
    background: #1A1A1A;
    color: white;
    flex: 1;
}
.booking-btn-primary:hover {
    background: #333;
}
.booking-btn-secondary {
    background: #E5E2DC;
    color: #1A1A1A;
}
.booking-btn-secondary:hover {
    background: #D0CDC4;
}

/* ---- Bestätigung ---- */
.booking-confirmation {
    text-align: center;
    padding: 1.5rem 0;
}
.booking-confirm-icon {
    font-size: 3.5rem;
    width: 80px;
    height: 80px;
    line-height: 80px;
    background: #2D5A3D;
    color: white;
    border-radius: 50%;
    margin: 0 auto 1.25rem;
    font-weight: 700;
}
.booking-confirm-details {
    font-size: 1rem;
    line-height: 1.7;
    color: #1A1A1A;
    margin-bottom: 1.5rem;
}

/* ---- Scrollbar Modal ---- */
.booking-modal::-webkit-scrollbar {
    width: 6px;
}
.booking-modal::-webkit-scrollbar-track {
    background: transparent;
}
.booking-modal::-webkit-scrollbar-thumb {
    background: #D0CDC4;
    border-radius: 3px;
}

/* ---- Responsive ---- */
@media (max-width: 480px) {
    .booking-modal {
        padding: 1.5rem 1rem;
        border-radius: 12px;
    }
    .booking-modal-title {
        font-size: 1.2rem;
    }
    .booking-slots {
        grid-template-columns: repeat(2, 1fr);
    }
    .booking-form-actions {
        flex-direction: column;
    }
    .booking-day {
        height: 38px;
        font-size: 0.8rem;
    }
}
