/* Calendar Styles */
.booking-section {
    padding: 2rem 0;
}

.booking-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
    align-items: start;
}

/* Desktop: zuerst nur Kalender mittig; nach Auswahl (Formular sichtbar) zwei Spalten */
@media (min-width: 969px) {
    .booking-container:not(.booking-layout-split) {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .booking-container:not(.booking-layout-split) .calendar-container {
        width: 100%;
        max-width: min(460px, 100%);
    }

    .booking-container.booking-layout-split {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        justify-items: stretch;
    }

    .booking-container.booking-layout-split .calendar-container {
        max-width: none;
        justify-self: stretch;
    }
}

.calendar-container {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.calendar-header h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
}

.calendar-nav {
    background: var(--primary-color);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.calendar-nav:hover {
    background: var(--primary-dark);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.calendar-day-header {
    text-align: center;
    font-weight: 600;
    color: var(--text-light);
    padding: 0.5rem;
    font-size: 0.875rem;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s;
    background: white;
    font-weight: 500;
}

.calendar-day:hover:not(.disabled):not(.selected) {
    background: var(--bg-light);
    border-color: var(--primary-color);
}

.calendar-day.disabled {
    color: var(--text-light);
    opacity: 0.4;
    cursor: not-allowed;
    background: var(--bg-light);
}

.calendar-day.today {
    border-color: var(--secondary-color);
    font-weight: 700;
}

.calendar-day.selected {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.calendar-day.past {
    opacity: 0.5;
    cursor: not-allowed;
}

.time-slots {
    margin-top: 2rem;
}

.time-slots h4 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

/* Zeit-Auswahl als Dropdowns */
.time-select-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.75rem;
    padding: 0.75rem 0.85rem;
    background: var(--bg-white);
    border-radius: 0.85rem;
    box-shadow: var(--shadow);
}

.time-select-group {
    display: flex;
    flex-direction: column;
    min-width: 150px;
    flex: 1 1 150px;
}

.time-select-group label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.time-select {
    padding: 0.6rem 0.9rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 0.95rem;
    background: white;
    cursor: pointer;
}

.quick-total-box {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: var(--bg-light);
    border-radius: 0.5rem;
    border-left: 4px solid var(--primary-color);
    font-weight: 600;
    color: var(--text-dark);
    min-height: 2.5rem;
}

.quick-total-box:not(.visible) {
    visibility: hidden;
}

.quick-total-box.visible {
    visibility: visible;
}

.time-slot {
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: white;
    font-weight: 500;
}

.time-slot:hover:not(.disabled):not(.selected) {
    border-color: var(--primary-color);
    background: var(--bg-light);
}

.time-slot.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: var(--bg-light);
}

.time-slot.selected {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.time-slot.in-range {
    background: rgba(11, 59, 140, 0.12);
    border-color: var(--primary-color);
}

.time-slot.time-slot-end.selected {
    background: var(--primary-dark);
}

.booking-form-container {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
}

.booking-form-container h3 {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.selected-info {
    background: var(--bg-light);
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary-color);
}

.selected-info p {
    margin: 0;
    color: var(--text-dark);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contact-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    text-align: center;
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.contact-card h3 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.contact-card p {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.contact-card a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.contact-card a:hover {
    text-decoration: underline;
}

.map-container {
    margin-top: 1rem;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow);
}

@media (max-width: 968px) {
    .booking-container,
    .booking-container.booking-layout-split {
        grid-template-columns: 1fr;
        justify-items: stretch;
    }

    .booking-container .calendar-container {
        max-width: none;
    }
    
    .time-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .time-grid {
        grid-template-columns: 1fr;
    }
    
    .calendar-grid {
        gap: 0.25rem;
    }
    
    .calendar-day {
        font-size: 0.875rem;
    }
}

