/* DWI Termine Anzeige - Styles */

.dwi-termine-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Loading State */
.dwi-termine-loading {
    text-align: center;
    padding: 60px 20px;
}

.dwi-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0073aa;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Standort Gruppe */
.dwi-standort-gruppe {
    margin-bottom: 40px;
}

.dwi-standort-titel {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #0073aa;
}

/* Termine Liste */
.dwi-termine-items {
    display: grid;
    gap: 20px;
}

/* Termin Item */
.dwi-termin-item {
    display: grid;
    grid-template-columns: 100px 1fr 250px;
    gap: 20px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.dwi-termin-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.dwi-termin-item.status-gesichert {
    border-left: 4px solid #28a745;
}

.dwi-termin-item.status-geplant {
    border-left: 4px solid #ffc107;
}

/* Datum Box */
.dwi-termin-datum {
    text-align: center;
    background: linear-gradient(135deg, #0073aa 0%, #005177 100%);
    color: white;
    border-radius: 10px;
    padding: 15px 10px;
    box-shadow: 0 2px 8px rgba(0,115,170,0.3);
}

.dwi-datum-tag {
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
}

.dwi-datum-monat {
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 5px;
}

.dwi-datum-jahr {
    font-size: 14px;
    opacity: 0.9;
    margin-top: 3px;
}

/* Termin Details */
.dwi-termin-details {
    padding: 5px 0;
}

.dwi-termin-titel {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 12px 0;
}

.dwi-termin-zeit,
.dwi-termin-ort {
    font-size: 15px;
    color: #555;
    margin: 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
} .dwi-termin-zeit strong {
    margin-right: -8px !important;
}

.dwi-termin-beschreibung {
    font-size: 14px;
    color: #666;
    margin-top: 12px;
    line-height: 1.5;
}

.dwi-icon {
    font-size: 16px;
}

/* Status Bereich */
.dwi-termin-status {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-end;
}

.dwi-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.dwi-status-badge.status-gesichert {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.dwi-status-badge.status-geplant {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.status-icon {
    font-size: 16px;
}

/* Teilnehmer Info */
.dwi-teilnehmer-info {
    width: 100%;
    margin-top: auto;
}

.dwi-progress-text {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #555;
    margin-bottom: 8px;
    font-weight: 500;
}

.dwi-progress-bar {
    height: 10px;
    background: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
}

.dwi-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #28a745 0%, #20c997 100%);
    transition: width 0.5s ease;
    border-radius: 5px;
}

/* Hinweis Box */
.dwi-termine-hinweis {
    margin-top: 30px;
}

.dwi-info-box {
    background: #e7f3ff;
    border-left: 4px solid #0073aa;
    padding: 16px 20px;
    border-radius: 8px;
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}

.dwi-info-icon {
    font-size: 18px;
    margin-right: 8px;
}

/* Error State */
.dwi-termine-error {
    text-align: center;
    padding: 40px 20px;
}

.error-message {
    color: #dc3545;
    font-size: 16px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    padding: 16px 20px;
    display: inline-block;
}

/* Keine Termine */
.dwi-no-termine {
    text-align: center;
    padding: 60px 20px;
    font-size: 16px;
    color: #666;
    background: #f8f9fa;
    border-radius: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dwi-termin-item {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .dwi-termin-datum {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 12px;
        padding: 16px;
    }
    
    .dwi-datum-tag {
        font-size: 32px;
    }
    
    .dwi-termin-status {
        align-items: flex-start;
    }
    
    .dwi-standort-titel {
        font-size: 24px;
    }
}

/* Auto-Refresh Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dwi-termine-content.updating {
    animation: fadeIn 0.5s ease;
}