/* ==============================================================================
   Terminbuchung - Modern Wizard Design Styles
   ============================================================================== */

.booking-wrapper {
    max-width: 1050px;
    margin: 30px auto;
}

.booking-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.booking-subtitle {
    color: #6c757d;
}

/* Fortschrittsleiste */
.booking-progress {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 24px 0 32px;
}

.booking-progress-item {
    min-width: 0;
}

.booking-progress-bar {
    height: 5px;
    border-radius: 10px;
    background: #dee2e6;
    margin-bottom: 8px;
    transition: background 0.45s ease;
}

.booking-progress-item.active .booking-progress-bar,
.booking-progress-item.done .booking-progress-bar {
    background: var(--bs-primary, #0d6efd);
}

.booking-progress-label {
    font-size: 0.85rem;
    color: #868e96;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.booking-progress-item.active .booking-progress-label {
    font-weight: 600;
    color: #212529;
}

/* Terminarten Kacheln */
.appointment-type-card {
    position: relative;
    height: 100%;
}

.appointment-type {
    width: 100%;
    height: 100%;
    text-align: left;
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 14px;
    padding: 18px 20px;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    flex-direction: column;
    min-height: 120px;
}

.appointment-type:hover {
    border-color: #86b7fe;
    background: #fafcff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.08);
}

.appointment-type.active {
    border: 2px solid var(--bs-primary, #0d6efd);
    background: rgba(13, 110, 253, 0.05);
}

.appointment-icon {
    font-size: 1.6rem;
    margin-bottom: 10px;
}

/* Info-Button auf der Kachel oben rechts */
.appointment-info-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: var(--bs-primary, #0d6efd);
    background: #ffffff;
    border: 1px solid #dee2e6;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    font-size: 0.95rem;
    transition: all 0.15s ease;
    cursor: pointer;
    padding: 0;
}

.appointment-info-btn:hover {
    background: var(--bs-primary, #0d6efd);
    color: #ffffff;
    border-color: var(--bs-primary, #0d6efd);
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.25);
}

.appointment-type-full-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #212529;
}

.appointment-type-full-desc img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Themen / Produkte Pill-Buttons */
.topic-button {
    border-radius: 50rem;
    min-height: 42px;
    padding: 8px 18px;
    font-weight: 500;
    transition: all 0.15s ease;
}

.topic-button.active {
    background-color: var(--bs-primary, #0d6efd);
    border-color: var(--bs-primary, #0d6efd);
    color: #ffffff;
}

/* Ansprechpartner Box */
.employee-box {
    border: 1px solid #dee2e6;
    border-radius: 14px;
    padding: 20px;
    background-color: #ffffff;
}

/* Zeit-Buttons */
.time-button {
    min-width: 86px;
    min-height: 46px;
    border-radius: 10px;
    font-weight: 600;
    padding: 10px 14px;
    transition: all 0.15s ease;
}

.time-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.15);
}

.date-group + .date-group {
    margin-top: 28px;
}

/* Kalender Grid (Mockup-Style) */
.calendar-box {
    border: 1px solid #dee2e6;
    border-radius: 14px;
    padding: 24px;
    background: #ffffff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.calendar-weekday {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: #6c757d;
    padding: 8px 0;
    text-transform: uppercase;
}

.calendar-day {
    min-height: 48px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    position: relative;
    font-size: 0.95rem;
    color: #212529;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-day:disabled {
    color: #ced4da;
    cursor: not-allowed;
    background: transparent !important;
}

.calendar-day:not(:disabled):hover {
    background: #f1f3f5;
}

.calendar-day.available {
    font-weight: 700;
    color: #212529;
}

.calendar-day.available::after {
    content: "";
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--bs-primary, #0d6efd);
    left: 50%;
    bottom: 6px;
    transform: translateX(-50%);
}

.calendar-day.selected {
    background: var(--bs-primary, #0d6efd) !important;
    color: #ffffff !important;
    font-weight: 700;
}

.calendar-day.selected::after {
    background: #ffffff !important;
}

/* Zusammenfassung Box */
.summary-box {
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 20px;
}

.summary-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6c757d;
    font-weight: 700;
    margin-bottom: 12px;
}

/* Erfolg */
.success-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 20px;
    background: rgba(25, 135, 84, 0.12);
    color: #198754;
    font-size: 2.2rem;
}


/* Sanfte Übergangsanimationen für Wizard-Schritte */
@keyframes bookingStepFadeIn {
    0% {
        opacity: 0;
        transform: translateY(24px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.booking-step-section {
    animation: bookingStepFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
    will-change: opacity, transform;
}
@media (max-width: 767.98px) {
    .booking-wrapper {
        margin: 0;
    }

    .booking-card {
        padding: 20px 16px;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .booking-progress-label {
        font-size: 0.7rem;
    }

    .time-button {
        min-width: calc(50% - 6px);
        flex-grow: 1;
    }

    .calendar-day {
        min-height: 40px;
        font-size: 0.85rem;
    }
}
