/* === Führerschein Wizard CSS === */

/* Trigger Button */
.fahrwizard-trigger {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    background: linear-gradient(135deg, #b00000 0%, #8b0000 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(176, 0, 0, 0.3);
    text-decoration: none;
}

.fahrwizard-trigger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(176, 0, 0, 0.4);
    background: linear-gradient(135deg, #8b0000 0%, #b00000 100%);
}

.fahrwizard-trigger .icon {
    font-size: 20px;
}

/* Modal */
.fahrwizard-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    animation: fadeIn 0.3s ease;
    overflow-y: auto;
    padding: 20px 0;
}

.fahrwizard-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.fahrwizard-content {
    position: relative;
    background: white;
    max-width: 600px;
    width: 95%;
    margin: 20px auto;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
    animation: slideIn 0.4s ease;
    max-height: 80vh;
    height: auto;
}

/* Close Button */
.fahrwizard-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #666;
    transition: all 0.3s ease;
    z-index: 10;
}

.fahrwizard-close:hover {
    background: rgba(176, 0, 0, 0.1);
    color: #b00000;
    transform: rotate(90deg);
}

/* Header */
.fahrwizard-header {
    background: linear-gradient(135deg, #b00000 0%, #8b0000 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.fahrwizard-header h2 {
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: 700;
}

.fahrwizard-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 16px;
}

/* Progress Bar */
.fahrwizard-progress {
    display: flex;
    justify-content: space-between;
    padding: 20px 30px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
}

.progress-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: #e9ecef;
    z-index: 1;
}

.progress-step.active:not(:last-child)::after {
    background: #b00000;
}

.step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e9ecef;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.progress-step.active .step-number {
    background: #b00000;
    color: white;
    transform: scale(1.1);
}

.progress-step.completed .step-number {
    background: #28a745;
    color: white;
}

.step-text {
    margin-top: 8px;
    font-size: 12px;
    color: #666;
    text-align: center;
    font-weight: 500;
}

.progress-step.active .step-text {
    color: #b00000;
    font-weight: 600;
}

/* Form */
.fahrwizard-form {
    padding: 30px;
}

.form-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

.form-step.active {
    display: block;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #b00000;
    box-shadow: 0 0 0 3px rgba(176, 0, 0, 0.1);
}

.form-group input:invalid {
    border-color: #dc3545;
}

/* Field Errors */
.form-group.has-error input,
.form-group.has-error select {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.field-error {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    font-weight: 500;
}

.form-group.has-error label {
    color: #dc3545;
}

/* Checkboxes */
.checkboxes {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Preisanzeige */
.price-display {
    margin-top: 10px;
    padding: 10px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    text-align: center;
    color: #b00000;
    font-size: 16px;
}

/* Checkbox Info */
.checkbox-info {
    margin: 5px 0 15px 35px;
    padding: 8px 12px;
    background-color: #f8f9fa;
    border-left: 3px solid #007cba;
    border-radius: 4px;
    font-size: 13px;
    color: #6c757d;
}

.checkbox-info small {
    line-height: 1.4;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    color: #333;
    position: relative;
    padding-left: 35px;
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 20px;
    width: 20px;
    background-color: white;
    border: 2px solid #e9ecef;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.checkbox-label:hover input ~ .checkmark {
    border-color: #b00000;
}

.checkbox-label input:checked ~ .checkmark {
    background-color: #b00000;
    border-color: #b00000;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-label input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-label .checkmark:after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Buttons */
.form-actions {
    display: flex;
    gap: 15px;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.btn-prev,
.btn-next,
.btn-submit {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.btn-prev {
    background: #6c757d;
    color: white;
}

.btn-prev:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.btn-next,
.btn-submit {
    background: linear-gradient(135deg, #b00000 0%, #8b0000 100%);
    color: white;
}

.btn-next:hover,
.btn-submit:hover {
    background: linear-gradient(135deg, #8b0000 0%, #b00000 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(176, 0, 0, 0.3);
}

.btn-submit {
    position: relative;
}

.btn-submit.loading .btn-text {
    opacity: 0;
}

.btn-submit.loading .btn-loading {
    opacity: 1;
}

.btn-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Summary */
.summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.summary h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 18px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-label {
    font-weight: 600;
    color: #666;
}

.summary-value {
    color: #333;
}

/* Summary Sections */
.summary-section {
    margin-bottom: 25px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #b00000;
}

.summary-section h4 {
    margin: 0 0 15px 0;
    color: #b00000;
    font-size: 16px;
}

.missing-docs {
    background-color: #fff3cd;
    border-left-color: #856404;
}

.missing-docs h4 {
    color: #856404;
}

.info-box {
    background-color: white;
    padding: 12px;
    margin: 10px 0;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    font-size: 14px;
    line-height: 1.4;
}

.info-box a {
    text-decoration: none;
}

.info-box a:hover {
    text-decoration: underline;
}

/* Experience Slider */
.experience-slider-container {
    margin-top: 20px;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

.slider-label {
    text-align: center;
    flex: 1;
}

.slider-wrapper {
    position: relative;
    margin: 20px 0;
}

.experience-slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(to right, #e9ecef 0%, #e9ecef 100%);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.experience-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #b00000;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(176, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.experience-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(176, 0, 0, 0.4);
}

.experience-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #b00000;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(176, 0, 0, 0.3);
}

.slider-value {
    text-align: center;
    margin-top: 15px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border: 2px solid #dee2e6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.slider-value:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#experience-percentage {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: #b00000;
    margin-bottom: 5px;
}

#experience-level {
    display: block;
    font-size: 16px;
    color: #333;
    font-weight: 600;
}

/* Learning Resources */
.learning-resources {
    margin-top: 25px;
}

.resource-box {
    background: linear-gradient(135deg, #e8f4fd 0%, #d1ecf1 100%);
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid #007cba;
}

.resource-box h4 {
    margin: 0 0 12px 0;
    color: #007cba;
    font-size: 16px;
}

.resource-box p {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 14px;
}

.resource-link {
    display: inline-block;
    background: #007cba;
    color: white;
    padding: 12px 20px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    margin: 10px 0;
    transition: all 0.3s ease;
}

.resource-link:hover {
    background: #005a8b;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 124, 186, 0.3);
}

.resource-note {
    font-size: 12px;
    color: #666;
    font-style: italic;
    margin-top: 10px;
}

/* Customer Info Box */
.customer-info-box {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    border: 2px solid #e1f5fe;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.1);
}

.info-icon {
    font-size: 32px;
    flex-shrink: 0;
    width: 50px;
    text-align: center;
}

.info-content h4 {
    margin: 0 0 8px 0;
    color: #1976d2;
    font-size: 18px;
}

.info-content p {
    margin: 0;
    color: #424242;
    font-size: 14px;
    line-height: 1.5;
}

/* Send Options */
.send-options {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.send-option {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.send-option:hover {
    border-color: #b00000;
    box-shadow: 0 4px 15px rgba(176, 0, 0, 0.1);
    transform: translateY(-2px);
}

.option-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

.option-icon {
    font-size: 28px;
    flex-shrink: 0;
    width: 40px;
    text-align: center;
}

.option-content h4 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 16px;
}

.option-content p {
    margin: 0 0 8px 0;
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

.privacy-note {
    background: #e8f5e8;
    padding: 8px 12px;
    border-radius: 6px;
    border-left: 3px solid #4caf50;
}

.privacy-note small {
    color: #2e7d32;
    font-size: 12px;
}

.btn-send-self,
.btn-send-school {
    width: 100%;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-send-self {
    background: #2196f3;
    color: white;
}

.btn-send-self:hover {
    background: #1976d2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.btn-send-school {
    background: #b00000;
    color: white;
}

.btn-send-school:hover {
    background: #8b0000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(176, 0, 0, 0.3);
}

/* Dynamic Price */
.dynamic-price {
    margin-top: 25px;
}

.price-breakdown {
    background: rgba(248, 249, 250, 0.8);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(222, 226, 230, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.price-breakdown h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.price-item:last-child {
    border-bottom: none;
}

.price-item.total {
    border-top: 2px solid #b00000;
    border-bottom: none;
    padding-top: 15px;
    margin-top: 10px;
    font-weight: bold;
    font-size: 18px;
    color: #b00000;
}

.price-label {
    color: #666;
    font-size: 14px;
}

.price-value {
    font-weight: bold;
    color: #333;
}

.price-item.total .price-value {
    color: #b00000;
    font-size: 20px;
}

/* Mobile Responsive für Experience */
@media (max-width: 768px) {
    .experience-slider-container {
        margin-top: 15px;
    }
    
    .slider-labels {
        font-size: 12px;
        margin-bottom: 10px;
    }
    
    .slider-wrapper {
        margin: 15px 0;
    }
    
    .experience-slider {
        height: 8px;
    }
    
    .experience-slider::-webkit-slider-thumb {
        width: 28px;
        height: 28px;
    }
    
    .slider-value {
        padding: 12px;
    }
    
    #experience-percentage {
        font-size: 20px;
    }
    
    #experience-level {
        font-size: 14px;
    }
    
    .resource-box {
        padding: 15px;
    }
    
    .price-breakdown {
        padding: 15px;
    }
    
    .price-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .price-value {
        align-self: flex-end;
    }
}

/* Notifications */
.fahrwizard-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 0;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    z-index: 1000000;
    animation: slideInRight 0.4s ease;
    max-width: 450px;
    min-width: 350px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    border: 2px solid rgba(255,255,255,0.2);
}

.fahrwizard-notification .notification-content {
    padding: 20px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.fahrwizard-notification .notification-message {
    flex: 1;
    font-size: 16px;
    line-height: 1.4;
}

.fahrwizard-notification .notification-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.fahrwizard-notification .notification-close:hover {
    background-color: rgba(255,255,255,0.2);
}

.fahrwizard-notification.success {
    background: linear-gradient(135deg, #28a745, #20c997);
    border-color: #28a745;
}

.fahrwizard-notification.error {
    background: linear-gradient(135deg, #dc3545, #e74c3c);
    border-color: #dc3545;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .fahrwizard-content {
        width: 98%;
        margin: 10px auto;
        border-radius: 10px;
        padding: 15px;
        max-height: calc(100vh - 20px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch; /* Smooth scrolling auf iOS */
    }
    
    .fahrwizard-header {
        padding: 20px 15px;
    }
    
    .fahrwizard-header h2 {
        font-size: 18px;
    }
    
    .fahrwizard-progress {
        padding: 15px 10px;
    }
    
    .step-text {
        font-size: 11px;
    }
    
    .fahrwizard-form {
        padding: 15px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-group label {
        font-size: 14px;
        margin-bottom: 5px;
    }
    
    .form-group input,
    .form-group select {
        padding: 12px;
        font-size: 16px; /* Verhindert Zoom auf iOS */
        -webkit-appearance: none; /* Entfernt iOS-Styling */
        border-radius: 6px;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 10px;
        position: sticky;
        bottom: 0;
        background: white;
        padding: 15px 0;
        margin-top: 20px;
        border-top: 1px solid #eee;
    }
    
    .btn-prev,
    .btn-next,
    .btn-submit {
        width: 100%;
        margin: 5px 0;
        padding: 12px 20px;
        font-size: 16px;
        min-height: 44px; /* Touch-freundliche Größe */
    }
    
    .checkboxes {
        gap: 15px;
    }
    
    .checkbox-info {
        margin-top: 8px;
        padding: 10px;
        font-size: 13px;
    }
    
    /* Summary-Sektionen auf Mobile optimieren */
    .summary-section {
        margin-bottom: 20px;
        padding: 12px;
    }
    
    .summary-section h4 {
        font-size: 14px;
        margin-bottom: 10px;
    }
    
    .info-box {
        padding: 10px;
        font-size: 13px;
        margin: 8px 0;
    }
}

@media (max-width: 480px) {
    .fahrwizard-trigger {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .fahrwizard-trigger .icon {
        font-size: 18px;
    }
    
    .fahrwizard-header h2 {
        font-size: 20px;
    }
    
    .fahrwizard-header p {
        font-size: 14px;
    }
    
    .step-number {
        width: 25px;
        height: 25px;
        font-size: 12px;
    }
    
    .step-text {
        font-size: 10px;
    }
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Focus Management */
.fahrwizard-modal:focus {
    outline: none;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .fahrwizard-modal,
    .fahrwizard-content,
    .form-step,
    .fahrwizard-notification {
        animation: none;
    }
    
    .btn-prev:hover,
    .btn-next:hover,
    .btn-submit:hover,
    .fahrwizard-trigger:hover {
        transform: none;
    }
} 