/**
 * OAV External Wizard Styles
 * Two-step wizard for external AV contract form.
 */

/* ==========================================
   Wizard Stepper
   ========================================== */

.oav-wizard-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 24px;
    padding: 16px 0;
}

.oav-step-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s;
}

.oav-step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    background: var(--grey-100, #f3f4f6);
    color: var(--grey-400, #9ca3af);
    transition: all 0.2s;
}

.oav-step-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--grey-400, #9ca3af);
    transition: color 0.2s;
}

.oav-step-indicator.active .oav-step-number {
    background: var(--primary-color, #007abb);
    color: #fff;
}

.oav-step-indicator.active .oav-step-label {
    color: var(--grey-900, #111827);
    font-weight: 600;
}

.oav-step-indicator.completed .oav-step-number {
    background: var(--success-color, #7ea820);
    color: #fff;
}

.oav-step-indicator.completed .oav-step-label {
    color: var(--grey-600, #4b5563);
}

.oav-step-divider {
    width: 48px;
    height: 2px;
    background: var(--grey-200, #e5e7eb);
    margin: 0 8px;
}

/* ==========================================
   Contract Preview
   ========================================== */

.oav-contract-preview {
    max-height: 500px;
    overflow-y: auto;
    padding: 20px;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: var(--radius-lg, 8px);
    background: #fff;
    margin-bottom: 24px;
}
.oav-contract-preview ol { list-style-type: decimal; padding-left: 2em; margin: 8px 0; }
.oav-contract-preview ul { list-style-type: disc; padding-left: 2em; margin: 8px 0; }
.oav-contract-preview li { margin: 4px 0; }
.oav-contract-preview ol ol { list-style-type: lower-alpha; }
.oav-contract-preview ol ol ol { list-style-type: lower-roman; }
.oav-contract-preview ul ul { list-style-type: circle; }
.oav-contract-preview ul ul ul { list-style-type: square; }

.oav-einleitung-text {
    margin-bottom: 24px;
    color: var(--grey-700, #374151);
    line-height: 1.6;
    font-size: 14px;
}

.oav-einleitung-text p {
    margin-bottom: 8px;
}

.oav-abschluss-text {
    color: var(--grey-700, #374151);
    line-height: 1.6;
    font-size: 14px;
}

.oav-abschluss-text p {
    margin-bottom: 8px;
}

.oav-filled-value {
    background: rgba(0, 122, 187, 0.12);
    padding: 0 4px;
    border-radius: 3px;
    font-weight: 500;
    color: var(--primary-darken, #005a8c);
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

/* ==========================================
   Data Summary
   ========================================== */

.oav-data-summary {
    padding: 16px 20px;
    margin-bottom: 24px;
}

.oav-summary-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.oav-summary-row {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid var(--grey-100, #f3f4f6);
}

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

.oav-summary-label {
    flex: 0 0 180px;
    font-weight: 600;
    font-size: 13px;
    color: var(--grey-600, #4b5563);
}

.oav-summary-value {
    flex: 1;
    font-size: 14px;
    color: var(--grey-900, #111827);
}

/* ==========================================
   Anlagen Summary
   ========================================== */

.oav-anlagen-summary {
    margin-bottom: 24px;
}

.oav-anlagen-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.oav-anlagen-list li {
    padding: 6px 0;
    font-size: 14px;
    color: var(--grey-800, #1f2937);
}

.oav-anlagen-list li .mdi {
    color: var(--success-color, #7ea820);
    margin-right: 6px;
}

/* ==========================================
   Unterzeichner Summary
   ========================================== */

.oav-unterzeichner-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.oav-unterzeichner-card {
    padding: 12px 16px;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: var(--radius-md, 6px);
    background: var(--grey-50, #f9fafb);
}

.oav-unterzeichner-card strong {
    display: block;
    font-size: 14px;
    color: var(--grey-900, #111827);
    margin-bottom: 2px;
}

.oav-unterzeichner-card span {
    font-size: 13px;
    color: var(--grey-500, #6b7280);
}

/* ==========================================
   Unterzeichner Dynamic Add/Remove
   ========================================== */

.unterzeichner-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.unterzeichner-card-header .card-title {
    margin-bottom: 16px;
}

.btn-remove-unterzeichner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    background: none;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: var(--radius-md, 6px);
    color: var(--grey-500, #6b7280);
    cursor: pointer;
    transition: all 0.15s;
}

.btn-remove-unterzeichner:hover {
    background: var(--danger-bg, #fef2f2);
    border-color: var(--danger-color, #dc2626);
    color: var(--danger-color, #dc2626);
}

.btn-add-unterzeichner {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ==========================================
   Wizard Actions
   ========================================== */

.oav-wizard-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color, #e5e7eb);
}

.oav-wizard-actions-right {
    display: flex;
    gap: 12px;
}

/* ==========================================
   Responsive
   ========================================== */

@media (max-width: 768px) {
    .oav-wizard-stepper {
        flex-direction: column;
        gap: 8px;
    }

    .oav-step-divider {
        width: 2px;
        height: 24px;
    }

    .oav-summary-row {
        flex-direction: column;
        gap: 2px;
    }

    .oav-summary-label {
        flex: none;
    }

    .oav-wizard-actions {
        flex-direction: column;
    }

    .oav-wizard-actions-right {
        flex-direction: column;
        width: 100%;
    }

    .oav-wizard-actions-right .btn-primary,
    .oav-wizard-actions-right .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .oav-unterzeichner-cards {
        grid-template-columns: 1fr;
    }
}


