/* =====================================================
   TERMINE-SYSTEM ERWEITERT
   Terminanfrage, iCal Export, Calendly Integration
   ===================================================== */

/* Booking Options Cards */
.appointment-booking-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.booking-option-card {
    padding: 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s;
}

.booking-option-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15);
    transform: translateY(-4px);
}

.booking-option-card i {
    font-size: 3rem;
    color: #3b82f6;
    margin-bottom: 1rem;
}

.booking-option-card h3 {
    font-size: 1.25rem;
    color: #1e293b;
    margin: 0 0 0.5rem 0;
}

.booking-option-card p {
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

/* Appointments Toolbar */
.appointments-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 1rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.appointments-filters {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.appointments-filters select {
    padding: 0.5rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: white;
    font-size: 0.9rem;
    color: #1e293b;
    cursor: pointer;
    transition: all 0.2s;
}

.appointments-filters select:hover {
    border-color: #3b82f6;
}

.appointments-filters select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Stats */
.appointments-stats {
    display: flex;
    gap: 1.5rem;
    font-size: 0.95rem;
}

.appointments-stats span {
    color: #64748b;
    font-weight: 500;
}

/* Appointment Card Erweiterungen */
.appointment-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
    padding: 1.5rem;
    transition: all 0.2s;
}

.appointment-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.appointment-header h4 {
    margin: 0;
    flex: 1;
}

.appointment-description {
    color: #64748b;
    font-size: 0.95rem;
    margin: 0.5rem 0;
    line-height: 1.5;
}

.appointment-notes,
.appointment-proposals {
    padding: 0.75rem;
    background: #f1f5f9;
    border-left: 3px solid #3b82f6;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #475569;
    margin-top: 0.75rem;
}

.appointment-notes i,
.appointment-proposals i {
    color: #3b82f6;
    margin-right: 0.5rem;
}

/* Status-Badges erweitert */
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.status-badge.status-angefragt {
    background: #fef3c7;
    color: #92400e;
}

.status-badge.status-bestätigt {
    background: #d1fae5;
    color: #065f46;
}

.status-badge.status-geplant {
    background: #dbeafe;
    color: #1e40af;
}

.status-badge.status-abgeschlossen {
    background: #e0e7ff;
    color: #4338ca;
}

.status-badge.status-abgesagt {
    background: #fee2e2;
    color: #991b1b;
}

/* Appointment Actions */
.appointment-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.2s;
}

.appointment-card:hover .appointment-actions {
    opacity: 1;
}

.btn-icon.btn-download {
    background: #dbeafe;
    border-color: #93c5fd;
    color: #1e40af;
}

.btn-icon.btn-download:hover {
    background: #3b82f6;
    border-color: #2563eb;
    color: white;
}

.btn-icon.btn-edit {
    background: #fef3c7;
    border-color: #fcd34d;
    color: #92400e;
}

.btn-icon.btn-edit:hover {
    background: #f59e0b;
    border-color: #d97706;
    color: white;
}

/* Modal Erweiterungen */
.modal-large {
    max-width: 800px;
}

.modal-fullscreen {
    max-width: 95%;
    max-height: 95vh;
}

.form-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 8px;
}

.form-section h3 {
    margin: 0 0 0.5rem 0;
    color: #1e293b;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-hint {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

/* Timeslot Groups */
.timeslot-group {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.timeslot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
}

.timeslot-header span {
    font-weight: 600;
    color: #1e293b;
}

/* Calendly Container */
.calendly-container {
    min-height: 600px;
    background: white;
}

.calendly-inline-widget {
    width: 100%;
    border: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .appointment-booking-options {
        grid-template-columns: 1fr;
    }
    
    .appointments-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .appointments-filters {
        flex-direction: column;
    }
    
    .appointments-filters select {
        width: 100%;
    }
    
    .appointments-stats {
        justify-content: space-between;
    }
    
    .appointment-card {
        grid-template-columns: auto 1fr;
        gap: 1rem;
    }
    
    .appointment-actions {
        opacity: 1; /* Immer sichtbar auf Mobile */
        grid-column: 2;
        flex-direction: row;
        justify-self: end;
    }
    
    .appointment-header {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .modal-large,
    .modal-fullscreen {
        max-width: 95%;
        width: 95%;
    }
    
    .timeslot-group {
        padding: 0.75rem;
    }
}

@media (max-width: 480px) {
    .booking-option-card {
        padding: 1.5rem;
    }
    
    .booking-option-card i {
        font-size: 2.5rem;
    }
    
    .appointment-card {
        padding: 1rem;
    }
    
    .form-section {
        padding: 1rem;
    }
    
    .timeslot-group {
        padding: 0.5rem;
    }
    
    .appointment-actions {
        gap: 0.25rem;
    }
    
    .btn-icon {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
}

/* Animation */
@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.booking-option-card {
    animation: slideInFromBottom 0.4s ease;
}

.booking-option-card:nth-child(2) {
    animation-delay: 0.1s;
}

.appointment-card {
    animation: slideInFromBottom 0.3s ease;
}
