/* Wizard Container */
.vwa-wizard {
    max-width: 800px;
    margin: 0 auto;
}

/* Fortschrittsbalken */
.vwa-wizard-progress {
    height: 4px;
    background: #f0f0f0;
    border-radius: 2px;
    margin-bottom: 30px;
    overflow: hidden;
}

.vwa-wizard-progress-bar {
    height: 100%;
    background: #0073aa;
    transition: width 0.3s ease-in-out;
}

/* Seiten */
.vwa-wizard-page {
    display: none !important;
    visibility: hidden;
    position: absolute;
    z-index: 0;
}

.vwa-wizard-page.active {
    display: block !important;
    visibility: visible;
    position: static;
    z-index: 1;
}

.vwa-wizard-page-title {
    margin: 0 0 20px;
    font-size: 24px;
    color: #333;
}

/* Formular */
.vwa-wizard-form {
    margin-bottom: 30px;
}

/* WYSIWYG-Inhalte */
.vwa-wizard-wysiwyg {
    margin-bottom: 20px;
    line-height: 1.6;
}

.vwa-wizard-wysiwyg h1,
.vwa-wizard-wysiwyg h2,
.vwa-wizard-wysiwyg h3,
.vwa-wizard-wysiwyg h4,
.vwa-wizard-wysiwyg h5,
.vwa-wizard-wysiwyg h6 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    font-weight: bold;
    color: #333;
}

.vwa-wizard-wysiwyg h1 { font-size: 2em; }
.vwa-wizard-wysiwyg h2 { font-size: 1.8em; }
.vwa-wizard-wysiwyg h3 { font-size: 1.6em; }
.vwa-wizard-wysiwyg h4 { font-size: 1.4em; }
.vwa-wizard-wysiwyg h5 { font-size: 1.2em; }
.vwa-wizard-wysiwyg h6 { font-size: 1.1em; }

.vwa-wizard-wysiwyg p {
    margin-bottom: 1em;
}

.vwa-wizard-wysiwyg strong,
.vwa-wizard-wysiwyg b {
    font-weight: bold;
}

.vwa-wizard-wysiwyg em,
.vwa-wizard-wysiwyg i {
    font-style: italic;
}

.vwa-wizard-wysiwyg u {
    text-decoration: underline;
}

.vwa-wizard-wysiwyg ul,
.vwa-wizard-wysiwyg ol {
    margin-left: 20px;
    margin-bottom: 1em;
}

.vwa-wizard-wysiwyg li {
    margin-bottom: 0.5em;
}

.vwa-wizard-wysiwyg table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 1em;
}

.vwa-wizard-wysiwyg table td,
.vwa-wizard-wysiwyg table th {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.vwa-wizard-wysiwyg table th {
    background-color: #f2f2f2;
    font-weight: bold;
}

.vwa-wizard-wysiwyg hr {
    margin: 20px 0;
    border: 0;
    border-top: 1px solid #ddd;
}

/* Seiten-Container */
.vwa-wizard-pages {
    margin-bottom: 30px;
}

/* Seiten-Felder */
.vwa-wizard-page-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 0 2%;
}

.vwa-wizard-field {
    box-sizing: border-box;
    margin-bottom: 20px;
}

.vwa-wizard-field label {
    display: block;
    font-weight: 600;
    font-size: 12px;
    color: #333;
    margin-bottom: 6px;
}

.vwa-wizard-field label * {
    margin: 0;
}

.vwa-wizard-field .required {
    color: #dc3545;
    margin-left: 4px;
}

.vwa-wizard-field input[type="text"],
.vwa-wizard-field input[type="email"],
.vwa-wizard-field input[type="number"],
.vwa-wizard-field textarea,
.vwa-wizard-field select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.vwa-wizard-field textarea {
    min-height: 100px;
    resize: vertical;
}

.vwa-wizard-field input[type="file"] {
    padding: 10px;
    border: 2px dashed #ddd;
    border-radius: 4px;
    width: 100%;
    cursor: pointer;
}

.vwa-wizard-field input[type="checkbox"] {
    margin-right: 8px;
    width: auto;
}

.vwa-wizard-radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.vwa-wizard-radio-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
}

.vwa-wizard-radio-group input[type="radio"] {
    margin-right: 8px;
}

/* Navigation */
.vwa-wizard-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    width: 100%;
    flex-grow: 1;
}

.vwa-wizard-prev,
.vwa-wizard-next,
.vwa-wizard-submit {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.vwa-wizard-prev {
    background: #f8f9fa;
    color: #333;
}

.vwa-wizard-prev:hover {
    background: #e9ecef;
}

.vwa-wizard-next,
.vwa-wizard-submit {
    background: #0073aa;
    color: #fff;
}

.vwa-wizard-next:hover,
.vwa-wizard-submit:hover {
    background: #005177;
}

/* Meldungen */
.vwa-wizard-messages {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
    display: none;
}

.vwa-wizard-messages.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.vwa-wizard-messages.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Responsive Anpassungen */
@media screen and (max-width: 600px) {
    .vwa-wizard {
        padding: 15px;
    }

    .vwa-wizard-page-title {
        font-size: 20px;
    }

    .vwa-wizard-navigation {
        flex-direction: column;
        gap: 10px;
    }

    .vwa-wizard-prev,
    .vwa-wizard-next,
    .vwa-wizard-submit {
        width: 100%;
    }
}

/* Animationen */
.vwa-wizard-page {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.vwa-wizard-page.active {
    opacity: 1;
    transform: translateY(0);
}

/* Validierung - nur für explizit als fehlerhaft markierte Felder */
.vwa-wizard-field input.error,
.vwa-wizard-field textarea.error,
.vwa-wizard-field select.error {
    border-color: #dc3545;
}

.vwa-wizard-field .error-message {
    color: #dc3545;
    font-size: 14px;
    margin-top: 5px;
}

/* Payment-Felder Fehlerbehandlung */
.vwa-wizard-field[data-type="payment"].error {
    border-left: 3px solid #dc3545;
    padding-left: 10px;
}

.vwa-wizard-field[data-type="payment"] .error-message {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    padding: 8px 12px;
    margin-top: 10px;
}

/* Statistical-Felder Styling */
.vwa-wizard-statistical {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.vwa-wizard-statistical-field {
    margin-bottom: 15px;
}

.vwa-wizard-statistical-field:last-child {
    margin-bottom: 0;
}

.vwa-wizard-statistical-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #495057;
}

.vwa-wizard-statistical-field select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    background-color: white;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.vwa-wizard-statistical-field select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 0.2rem rgba(0, 115, 170, 0.25);
}

.vwa-wizard-statistical-field .form-text {
    margin-top: 5px;
    font-size: 12px;
    color: #6c757d;
}

.vwa-wizard-statistical-field .required {
    color: #dc3545;
    font-weight: bold;
}

/* Admin-Styling für StatisticalData Component */
.vwa-statistical-data {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    background-color: #f9f9f9;
}

.vwa-statistical-data h4 {
    margin-top: 0;
    color: #0073aa;
}

.vwa-statistical-fields {
    margin-bottom: 20px;
}

.vwa-statistical-field {
    margin-bottom: 10px;
}

.vwa-statistical-field label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    cursor: pointer;
}

.vwa-statistical-field label input[type="checkbox"] {
    margin: 0;
}

.vwa-statistical-preview {
    border-top: 1px solid #ddd;
    padding-top: 15px;
    margin-top: 15px;
}

.vwa-statistical-preview h5 {
    margin-top: 0;
    color: #495057;
}

.vwa-statistical-preview-field {
    margin-bottom: 15px;
}

.vwa-statistical-preview-field:last-child {
    margin-bottom: 0;
}

.vwa-statistical-preview-field select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    background-color: #e9ecef;
    color: #6c757d;
}

/* Checkbox-Container für Rich Labels */
.vwa-wizard-checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}

.vwa-wizard-checkbox-container input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
}

.vwa-wizard-checkbox-container input[type="checkbox"].error {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.vwa-wizard-checkbox-container + .error-message {
    margin-top: 5px;
    margin-bottom: 10px;
}

.vwa-wizard-rich-label {
    margin: 0;
    font-weight: normal;
    line-height: 1.5;
}

.vwa-wizard-rich-label a {
    color: #0073aa;
    text-decoration: underline;
}

.vwa-wizard-rich-label a:hover {
    color: #005a87;
}

.vwa-wizard-rich-label .required {
    color: #dc3545;
    font-weight: bold;
}

/* Versteckte Labels */
.vwa-wizard-field[data-hide-label="true"] label {
    display: none;
}

/* Übersichtsseite */
.vwa-wizard-overview-page {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    margin: 20px 0;
}

.vwa-wizard-overview-content h2 {
    color: #333;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 10px;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

.vwa-wizard-overview-content > p {
    color: #666;
    font-size: 16px;
    margin-bottom: 30px;
}

.vwa-overview-section {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 25px;
    overflow: hidden;
}

.vwa-overview-section h3 {
    background-color: #f8f9fa;
    color: #495057;
    margin: 0;
    padding: 15px 20px;
    font-size: 18px;
    font-weight: 600;
    border-bottom: 1px solid #dee2e6;
}

.vwa-overview-fields {
    padding: 0;
}

.vwa-overview-field {
    display: flex;
    padding: 12px 20px;
    border-bottom: 1px solid #f0f0f0;
    align-items: center;
}

.vwa-overview-field:last-child {
    border-bottom: none;
}

.vwa-overview-field:nth-child(even) {
    background-color: #fafafa;
}

.vwa-overview-field-label {
    flex: 1;
    font-weight: 600;
    color: #333;
    padding-right: 20px;
    min-width: 200px;
}

.vwa-overview-field-value {
    flex: 2;
    color: #555;
    word-break: break-word;
}

.vwa-overview-field-value a {
    color: #0073aa;
    text-decoration: none;
}

.vwa-overview-field-value a:hover {
    text-decoration: underline;
}

.vwa-overview-field-value .file-indicator {
    background-color: #e7f3ff;
    color: #0073aa;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
}

.vwa-overview-submit {
    text-align: center;
    padding: 30px 20px;
    background-color: #fff3cd;
    border: 2px solid #ffeaa7;
    border-radius: 6px;
    margin-top: 30px;
}

.vwa-overview-submit p {
    font-size: 18px;
    font-weight: bold;
    color: #856404;
    margin-bottom: 20px;
}

.vwa-wizard-submit-final {
    background-color: #ffd700;
    color: #333;
    border: 2px solid #ffd700;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.vwa-wizard-submit-final:hover {
    background-color: #ffed4e;
    border-color: #ffed4e;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.vwa-wizard-submit-final:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Responsive Design für Übersicht */
@media (max-width: 768px) {
    .vwa-overview-field {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .vwa-overview-field-label {
        margin-bottom: 5px;
        min-width: auto;
        padding-right: 0;
    }
    
    .vwa-wizard-overview-page {
        padding: 20px 15px;
    }
}

/* Ladeanimation */
.vwa-wizard-loading {
    position: relative;
    pointer-events: none;
}

.vwa-wizard-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
}

.vwa-wizard-loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0073aa;
    border-radius: 50%;
    animation: vwa-wizard-spin 1s linear infinite;
    z-index: 1;
}

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

.vwa-wizard-field-width-full {
    flex: 0 1 100%;
    max-width: 100%;
    display: block;
}
.vwa-wizard-field-width-half {
    flex: 0 1 49%;
    max-width: 49%;
    display: block;
}
.vwa-wizard-field-width-third {
    flex: 0 1 32.33%;
    max-width: 32.33%;
    display: block;
}

@media (max-width: 800px) {
    .vwa-wizard-form {
        flex-direction: column;
        gap: 0;
    }
    .vwa-wizard-field-width-half,
    .vwa-wizard-field-width-third {
        flex-basis: 100%;
    }
}

.vwa-wizard-field[data-type="spacer"] {
    margin-bottom: 0 !important;
} 

.vwa-wizard-field[data-type="heading"] {
    margin-bottom: 0 !important;
}

/* Kosten-Darstellung */
.vwa-wizard-costs {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 20px;
    background: #fafafa;
    margin-bottom: 20px;
}

.vwa-wizard-costs-title {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: #333;
    font-weight: 600;
}

.vwa-wizard-costs-section h5 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vwa-wizard-costs-list {
    margin-bottom: 15px;
}

.vwa-wizard-cost-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.vwa-wizard-cost-item:last-child {
    border-bottom: none;
}

.vwa-wizard-cost-item.disabled {
    opacity: 0.6;
}

.vwa-wizard-cost-item.disabled .vwa-wizard-cost-name {
    text-decoration: line-through;
}

.vwa-wizard-cost-name {
    flex: 1;
    font-size: 14px;
    color: #333;
}

.vwa-wizard-cost-checkbox {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    margin: 0;
}

.vwa-wizard-cost-checkbox input[type="checkbox"] {
    margin-right: 8px;
    margin-top: 2px;
    transform: scale(1.1);
    flex-shrink: 0;
}

.vwa-wizard-cost-label {
    display: flex;
    align-items: center;
}

.vwa-wizard-cost-name em {
    color: #666;
    font-style: italic;
    margin-right: 5px;
}

.vwa-wizard-cost-amount {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    min-width: 80px;
    text-align: right;
}

.vwa-wizard-early-discount {
    color: #28a745;
    font-style: italic;
    background-color: #e8f5e8;
    border-radius: 3px;
    padding: 8px 12px;
    margin: 5px 0;
}

.vwa-wizard-cost-discount {
    color: #dc3545;
    background-color: #ffeaea;
    border-radius: 3px;
    padding: 8px 12px;
    margin: 2px 0;
}

.vwa-wizard-cost-total {
    border-top: 2px solid #0073aa;
    padding-top: 10px;
    margin-top: 10px;
    font-size: 16px;
}

.vwa-wizard-cost-total .vwa-wizard-cost-name strong,
.vwa-wizard-cost-total .vwa-wizard-cost-amount strong {
    color: #0073aa;
}

@media (max-width: 600px) {
    .vwa-wizard-costs {
        padding: 10px;
    }
    
    .vwa-wizard-cost-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px 0;
    }
    
    .vwa-wizard-cost-amount {
        margin-top: 5px;
        text-align: left;
        min-width: auto;
    }
    
    .vwa-wizard-cost-checkbox {
        width: 100%;
        margin-bottom: 5px;
    }
}

/* Payment options */
.vwa-wizard-payment {
    margin-bottom: 20px;
}

.vwa-wizard-payment-method {
    margin-bottom: 10px;
}

.vwa-wizard-payment-method label {
    display: flex !important;
    align-items: center;
    cursor: pointer;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f9f9f9;
    transition: all 0.3s ease;
}

.vwa-wizard-payment-method label:hover {
    background: #e8f4f8;
    border-color: #0073aa;
}

.vwa-wizard-payment-method input[type="radio"] {
    margin-right: 10px;
    margin-left: 0;
    order: -1;
    width: auto;
}

.vwa-wizard-payment-method input[type="radio"]:checked + * {
    color: #0073aa;
}

.vwa-wizard-payment-employer-share,
.vwa-wizard-payment-company-details,
.vwa-wizard-payment-bank-details {
    margin-top: 20px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f9f9f9;
}

.vwa-wizard-payment-employer-share h4,
.vwa-wizard-payment-company-details h4,
.vwa-wizard-payment-bank-details h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
}

.vwa-wizard-payment-split {
    display: flex;
    gap: 20px;
}

.vwa-wizard-payment-split-item {
    flex: 1;
}

.vwa-wizard-payment-split-item label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.vwa-wizard-input-group {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.vwa-wizard-input-group input {
    flex: 1;
    border: none;
    padding: 8px 12px;
    border-radius: 0;
    outline: none;
}

.vwa-wizard-input-group input:focus {
    box-shadow: none;
}

.vwa-wizard-input-addon {
    background: #f0f0f0;
    padding: 8px 12px;
    border-left: 1px solid #ddd;
    color: #666;
    font-weight: 600;
}

.vwa-wizard-field-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.vwa-wizard-field {
    flex: 1;
    min-width: 200px;
}

.vwa-wizard-field-width-full {
    flex: 1 1 100%;
}

.vwa-wizard-field-width-half {
    flex: 1 1 calc(50% - 7.5px);
}

.vwa-wizard-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.vwa-wizard-field input,
.vwa-wizard-field select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.vwa-wizard-field input:focus,
.vwa-wizard-field select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}

@media (max-width: 768px) {
    .vwa-wizard-payment-split {
        flex-direction: column;
        gap: 15px;
    }
    
    .vwa-wizard-field-width-half {
        flex: 1 1 100%;
    }
}