/* Tennisverein Lohne Hallenabo - Frontend Styles */

/* Reset and Base Styles */
.tvl-wizard * {
    box-sizing: border-box;
}

.tvl-wizard {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Progress Indicator */
.tvl-progress-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    overflow-x: auto;
}

.tvl-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 120px;
    position: relative;
    color: #6c757d;
    transition: all 0.3s ease;
}

.tvl-progress-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    right: -60px;
    width: 120px;
    height: 2px;
    background: #dee2e6;
    z-index: 1;
}

.tvl-progress-step.completed::after {
    background: #28a745;
}

.tvl-progress-step.active::after {
    background: linear-gradient(to right, #28a745 50%, #dee2e6 50%);
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #dee2e6;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 8px;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.tvl-progress-step.completed .step-number {
    background: #28a745;
    color: white;
}

.tvl-progress-step.active .step-number {
    background: #0073aa;
    color: white;
    transform: scale(1.1);
}

.step-name {
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
}

.tvl-progress-step.completed .step-name,
.tvl-progress-step.active .step-name {
    color: #333;
    font-weight: 600;
}

/* Form Styles */
.tvl-wizard-form {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

.tvl-form-field {
    margin-bottom: 20px;
}

.tvl-form-field label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

.tvl-form-field input,
.tvl-form-field select,
.tvl-form-field textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
}

.tvl-form-field input:focus,
.tvl-form-field select:focus,
.tvl-form-field textarea:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.tvl-form-field input:invalid {
    border-color: #dc3545;
}

/* Button Styles */
.tvl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 48px;
    white-space: nowrap;
}

.tvl-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.tvl-btn-primary {
    background: #0073aa;
    color: white;
}

.tvl-btn-primary:hover:not(:disabled) {
    background: #005a87;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
}

.tvl-btn-secondary {
    background: #6c757d;
    color: white;
}

.tvl-btn-secondary:hover:not(:disabled) {
    background: #5a6268;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.tvl-btn-success {
    background: #28a745;
    color: white;
}

.tvl-btn-success:hover:not(:disabled) {
    background: #218838;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.tvl-btn-icon {
    font-size: 18px;
    line-height: 1;
}

/* Loading States */
.tvl-loading {
    opacity: 0.7;
}

.tvl-loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ccc;
    border-top-color: #0073aa;
    border-radius: 50%;
    animation: tvl-spin 1s linear infinite;
    margin-left: 8px;
}

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

/* Error States */
.tvl-error {
    color: #dc3545;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 12px 16px;
    border-radius: 6px;
    margin: 16px 0;
}

.tvl-success {
    color: #155724;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    padding: 12px 16px;
    border-radius: 6px;
    margin: 16px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tvl-wizard {
        padding: 15px;
    }
    
    .tvl-progress-indicator {
        padding: 15px 10px;
        gap: 10px;
    }
    
    .tvl-progress-step {
        min-width: 80px;
    }
    
    .tvl-progress-step:not(:last-child)::after {
        right: -40px;
        width: 80px;
    }
    
    .step-number {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .step-name {
        font-size: 12px;
    }
    
    .tvl-btn {
        padding: 10px 20px;
        font-size: 14px;
        min-height: 44px;
    }
    
    .tvl-form-field input,
    .tvl-form-field select,
    .tvl-form-field textarea {
        padding: 10px 14px;
        font-size: 16px; /* Prevent zoom on iOS */
    }
}

@media (max-width: 480px) {
    .tvl-progress-indicator {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .tvl-progress-step:not(:last-child)::after {
        display: none;
    }
    
    .tvl-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Print Styles */
@media print {
    .tvl-wizard {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .tvl-btn {
        display: none;
    }
    
    .tvl-progress-indicator {
        background: none;
        border: 1px solid #ccc;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .tvl-wizard {
        border: 2px solid #000;
    }
    
    .tvl-btn-primary {
        background: #000;
        border: 2px solid #000;
    }
    
    .tvl-btn-primary:hover {
        background: #333;
    }
    
    .tvl-form-field input,
    .tvl-form-field select,
    .tvl-form-field textarea {
        border: 2px solid #000;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .tvl-wizard *,
    .tvl-wizard *::before,
    .tvl-wizard *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus Styles for Accessibility */
.tvl-wizard *:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

.tvl-wizard button:focus,
.tvl-wizard input:focus,
.tvl-wizard select:focus,
.tvl-wizard textarea:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

/* Screen Reader Only */
.tvl-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

