.tvoed-bva-container {
    max-width: 1100px;
    margin: 30px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #2c3338;
    box-sizing: border-box;
}

.tvoed-bva-container *,
.tvoed-bva-container *::before,
.tvoed-bva-container *::after {
    box-sizing: border-box;
}

.tvoed-header {
    margin-bottom: 25px;
    border-bottom: 2px solid #005a9c;
    padding-bottom: 12px;
}
.tvoed-header h2 {
    margin: 0;
    font-size: 26px;
    color: #003366;
    line-height: 1.2;
}
.tvoed-subtitle {
    margin: 6px 0 0;
    color: #646970;
    font-size: 14px;
}

/* 2-Spalten Grid */
.tvoed-grid-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 25px;
    align-items: start;
}

@media (max-width: 900px) {
    .tvoed-grid-layout {
        grid-template-columns: 1fr;
    }
}

/* Cards */
.tvoed-card {
    background: #ffffff;
    border: 1px solid #dcdcde;
    border-radius: 6px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.tvoed-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    background: #f6f7f7;
    border-bottom: 1px solid #dcdcde;
    border-radius: 5px 5px 0 0;
}
.tvoed-card-header h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #1d2327;
}
.tvoed-step {
    background: #005a9c;
    color: #fff;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
}
.tvoed-card-body {
    padding: 18px;
}

/* ==========================================================================
   FORMULARFELDER & HORIZONTALE FLUCHTLINIE (DIVI-SAFE)
   ========================================================================== */
.tvoed-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
    align-items: end; /* Alle Eingabefelder sitzen auf gleicher Basis */
}

@media (max-width: 580px) {
    .tvoed-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

.tvoed-row:last-child {
    margin-bottom: 0;
}

.tvoed-field {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    width: 100%;
}

/* Einheitliche Label-Höhe fängt 1- und 2-zeilige Beschriftungen ab */
.tvoed-field label {
    display: flex !important;
    align-items: flex-end;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    min-height: 34px !important; /* Standardhöhe für konsistenten Abstand */
    margin: 0 0 6px 0 !important;
    padding: 0 !important;
    color: #2c3338 !important;
    word-break: normal;
}

/* Feste 42px-Höhe gegen Divi-Default-Paddings abgesichert */
.tvoed-bva-container .tvoed-field select,
.tvoed-bva-container .tvoed-field input[type="number"],
.tvoed-bva-container .tvoed-field input[type="text"],
.tvoed-bva-container .tvoed-field input[type="email"] {
    display: block !important;
    width: 100% !important;
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    line-height: 40px !important;
    padding: 0 12px !important;
    margin: 0 !important;
    border: 1px solid #8c8f94 !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    background-color: #ffffff !important;
    color: #2c3338 !important;
    box-shadow: none !important;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.tvoed-bva-container .tvoed-field select {
    cursor: pointer;
    text-overflow: ellipsis;
}

.tvoed-bva-container .tvoed-field select:focus,
.tvoed-bva-container .tvoed-field input:focus {
    border-color: #005a9c !important;
    outline: none !important;
    box-shadow: 0 0 0 1px #005a9c !important;
}

/* Checkbox-Feld: Pixelgenau auf gleicher Höhe wie Nachbarfelder */
.tvoed-checkbox-field {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    width: 100%;
}

.tvoed-checkbox-label {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    margin: 0 !important;
    padding: 0 4px !important;
    cursor: pointer;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #2c3338 !important;
    user-select: none;
}

.tvoed-checkbox-label input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
    cursor: pointer;
    accent-color: #005a9c;
    flex-shrink: 0;
}

/* Action Button */
.tvoed-action-wrap {
    margin-top: 10px;
}
.tvoed-btn-primary {
    width: 100%;
    background: #005a9c;
    color: #ffffff;
    border: none;
    padding: 13px;
    font-size: 15px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease;
}
.tvoed-btn-primary:hover {
    background: #004070;
}
.tvoed-btn-primary:disabled {
    background: #7ca8cc;
    cursor: not-allowed;
}

/* Sticky Sidebar */
.tvoed-col-sidebar {
    position: sticky;
    top: 25px;
}

/* Mini-Matrix (Oben rechts) */
.tvoed-matrix-card {
    border-top: 3px solid #005a9c;
}
.tvoed-badge-matrix {
    background: #e7f1f9;
    color: #005a9c;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: bold;
}
.tvoed-matrix-hint {
    font-size: 12px;
    color: #646970;
    margin: 0 0 10px 0;
}
.tvoed-matrix-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.tvoed-matrix-table th {
    background: #f6f7f7;
    padding: 6px 8px;
    font-size: 11px;
    text-transform: uppercase;
    color: #646970;
    border-bottom: 1px solid #dcdcde;
    text-align: left;
}
.tvoed-matrix-table td {
    padding: 7px 8px;
    border-bottom: 1px solid #f0f0f1;
}
.tvoed-matrix-val {
    text-align: right;
    font-variant-numeric: tabular-nums;
}
.tvoed-row-active {
    background: #e7f5ea !important;
    font-weight: bold;
    color: #007017;
}

/* Ergebnis-Banner */
.tvoed-result-card {
    border-top: 3px solid #008a20;
}
.tvoed-badge-success {
    background: #e7f5ea;
    color: #007017;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: bold;
}
.tvoed-netto-banner {
    background: #f0f8f2;
    border: 1px solid #c3e6cb;
    border-radius: 6px;
    padding: 15px;
    text-align: center;
    margin-bottom: 15px;
}
.tvoed-netto-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    color: #1e7e34;
    font-weight: bold;
    letter-spacing: 0.5px;
}
.tvoed-netto-amount {
    font-size: 28px;
    font-weight: 800;
    color: #155724;
    margin-top: 4px;
    display: block;
}

/* Breakdown List */
.tvoed-breakdown {
    border-top: 1px solid #eee;
    padding-top: 10px;
    margin-bottom: 15px;
}
.tvoed-item {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 13px;
    border-bottom: 1px dashed #f0f0f1;
}
.tvoed-item-gross {
    font-size: 14px;
    border-bottom: 1px solid #dcdcde;
    padding-bottom: 8px;
}
.tvoed-deduct {
    color: #a00;
}
.tvoed-jsz-row {
    background: #fff8e5;
    padding: 8px 10px;
    border-radius: 4px;
    margin-top: 8px;
    color: #856404;
    border: 1px solid #ffeeba;
}

/* PDF Unlock Panel */
.tvoed-pdf-unlock-panel {
    background: #f6f7f7;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    padding: 12px;
    text-align: center;
}
.tvoed-pdf-lead {
    margin: 0 0 8px 0;
    font-size: 12px;
    font-weight: 600;
}
.tvoed-inline-input {
    display: flex;
    gap: 6px;
}
.tvoed-inline-input input {
    flex: 1;
    height: 36px !important;
    padding: 0 10px !important;
    font-size: 13px !important;
    border: 1px solid #8c8f94 !important;
    border-radius: 4px !important;
}
.tvoed-inline-input button {
    background: #007017;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 0 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
}
.tvoed-inline-input button:hover {
    background: #005a12;
}
.tvoed-btn-pdf {
    display: block;
    background: #005a9c;
    color: #fff !important;
    text-decoration: none;
    padding: 10px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 14px;
    transition: background 0.15s ease;
}
.tvoed-btn-pdf:hover {
    background: #004070;
}

/* Alerts */
.tvoed-alert {
    padding: 10px 14px;
    border-radius: 4px;
    margin-top: 12px;
    font-size: 13px;
}
.tvoed-alert-error {
    background: #fde8e8;
    color: #9b1c1c;
    border: 1px solid #f8b4b4;
}