/**
 * Terminbuchungs-System - Stylesheet
 * Cards4You Design
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #c31924 0%, #4b5563 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
}

/* Header */
.header {
    background: white;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.header h1 {
    color: #c31924;
    font-size: 36px;
    margin-bottom: 10px;
    font-weight: 800;
}

.header p {
    color: #6b7280;
    font-size: 16px;
}

/* Booking Card */
.booking-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    min-height: 500px;
}

.step {
    display: none;
    animation: fadeIn 0.3s;
}

.step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

h2 {
    color: #1f2937;
    font-size: 24px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #c31924;
}

/* Kalender */
.calendar-container {
    margin-top: 20px;
}

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

.calendar-header h3 {
    font-size: 20px;
    color: #1f2937;
}

.btn-nav {
    background: #f3f4f6;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 16px;
    color: #1f2937;
}

.btn-nav:hover {
    background: #c31924;
    color: white;
    transform: scale(1.1);
}

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

.calendar-day {
    aspect-ratio: 1;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.calendar-day:hover:not(.disabled):not(.header) {
    border-color: #c31924;
    background: #fff5f5;
    transform: translateY(-2px);
}

.calendar-day.header {
    background: #f3f4f6;
    cursor: default;
    font-size: 12px;
    color: #6b7280;
    text-transform: uppercase;
}

.calendar-day.disabled {
    color: #d1d5db;
    cursor: not-allowed;
    background: #f9fafb;
}

.calendar-day.selected {
    background: linear-gradient(135deg, #c31924, #4b5563);
    color: white;
    border-color: #c31924;
}

/* Time Slots */
.selected-date {
    background: #f9fafb;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

.time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.time-slot {
    padding: 15px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.time-slot:hover {
    border-color: #c31924;
    background: #fff5f5;
    transform: translateY(-2px);
}

.time-slot.selected {
    background: linear-gradient(135deg, #c31924, #4b5563);
    color: white;
    border-color: #c31924;
}

/* Appointment Types */
.appointment-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.type-card {
    border: 3px solid #e5e7eb;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.type-card:hover {
    border-color: #c31924;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(195, 25, 36, 0.2);
}

.type-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #c31924, #4b5563);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 36px;
    color: white;
}

.type-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #1f2937;
}

.type-card p {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.6;
}

/* Form */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 700;
    color: #374151;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #c31924;
    box-shadow: 0 0 0 3px rgba(195, 25, 36, 0.1);
}

/* Booking Summary */
.booking-summary {
    background: #f9fafb;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.booking-summary h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #1f2937;
}

.summary-item {
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
    font-size: 15px;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item strong {
    display: inline-block;
    width: 100px;
    color: #6b7280;
}

/* Buttons */
.btn {
    padding: 14px 28px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #c31924, #4b5563);
    color: white;
    box-shadow: 0 4px 15px rgba(195, 25, 36, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(195, 25, 36, 0.4);
}

.btn-back {
    background: #f3f4f6;
    color: #1f2937;
}

.btn-back:hover {
    background: #e5e7eb;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    font-size: 50px;
    color: white;
}

.success-message h2 {
    border: none;
    color: #10b981;
    margin-bottom: 15px;
}

.success-message p {
    color: #6b7280;
    font-size: 16px;
    margin-bottom: 30px;
    line-height: 1.6;
}

.confirmation-details {
    background: #f9fafb;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    text-align: left;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 20px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    transform: translateY(200px);
    opacity: 0;
    transition: all 0.4s;
    z-index: 10000;
    max-width: 400px;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

/* Loading */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.loading.show {
    display: flex;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .header h1 {
        font-size: 28px;
    }
    
    .booking-card {
        padding: 25px;
    }
    
    h2 {
        font-size: 20px;
    }
    
    .calendar-grid {
        gap: 5px;
    }
    
    .time-slots {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}


