/* ============================================================
   EIT Toolbox – Vergabeempfehlung CSS
   Version: 260515.1300
   Author:  Niklas Pauli
   ============================================================ */

.eit-ve-wrap {
    font-family: sans-serif;
    max-width: 1200px;
}

/* ─── Tabs ─────────────────────────────────────────────────── */
.eit-ve-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 0;
    border-bottom: 2px solid #0073aa;
}

.eit-ve-tab {
    padding: 9px 18px;
    border: none;
    border-radius: 4px 4px 0 0;
    background: #f0f0f1;
    color: #1d2327;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.eit-ve-tab:hover {
    background: #dcdcde;
}

.eit-ve-tab.active {
    background: #0073aa;
    color: #fff;
}

.eit-ve-panel {
    display: none;
    padding: 20px 0;
}

.eit-ve-panel.active {
    display: block;
}

/* ─── Karten ───────────────────────────────────────────────── */
.eit-ve-card {
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
}

.eit-ve-card-title {
    margin: 0 0 16px;
    font-size: 15px;
    font-weight: 700;
    color: #1d2327;
}

/* ─── Grids ─────────────────────────────────────────────────── */
.eit-ve-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 20px;
}

.eit-ve-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px 20px;
}

.eit-ve-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 13px;
}

.eit-ve-field input,
.eit-ve-field textarea,
.eit-ve-field select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 13px;
    font-family: inherit;
}

.eit-ve-field textarea {
    min-height: 80px;
    resize: vertical;
}

.eit-ve-help {
    color: #50575e;
    font-size: 12px;
    margin: 6px 0 14px;
}

/* ─── Radio-Gruppe ─────────────────────────────────────────── */
.eit-ve-radio-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.eit-ve-radio-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 600;
}

/* ─── Bieter-Cards ─────────────────────────────────────────── */
.eit-ve-bieter-card {
    border: 1px solid #c3c4c7;
    border-radius: 6px;
    margin-bottom: 12px;
    background: #fafafa;
    overflow: hidden;
}

.eit-ve-bieter-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #f6f7f7;
    border-bottom: 1px solid #dcdcde;
    flex-wrap: wrap;
    gap: 8px;
}

.eit-ve-bieter-label {
    font-weight: 600;
    font-size: 14px;
}

.eit-ve-bieter-body {
    padding: 16px;
}

.eit-ve-sub-title {
    font-weight: 700;
    font-size: 13px;
    color: #0073aa;
    margin: 16px 0 10px;
    padding-bottom: 4px;
    border-bottom: 1px solid #e0e0e0;
}

.eit-ve-bieter-body > .eit-ve-sub-title:first-child {
    margin-top: 0;
}

/* ─── Bewertungsmatrix ─────────────────────────────────────── */
.eit-ve-matrix {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.eit-ve-matrix th,
.eit-ve-matrix td {
    border: 1px solid #dcdcde;
    padding: 7px 8px;
    vertical-align: middle;
}

.eit-ve-matrix thead th {
    background: #f6f7f7;
    font-weight: 700;
    text-align: center;
}

.eit-ve-matrix thead th:first-child {
    text-align: left;
}

.eit-ve-matrix tfoot td {
    background: #e8f4fd;
    font-weight: 700;
}

.eit-ve-score-input {
    width: 70px;
    text-align: center;
    padding: 4px;
    border: 1px solid #c3c4c7;
    border-radius: 3px;
}

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 900px) {
    .eit-ve-grid,
    .eit-ve-grid-3 {
        grid-template-columns: 1fr;
    }

    .eit-ve-tabs {
        flex-direction: column;
        border-bottom: none;
    }

    .eit-ve-tab {
        border-radius: 4px;
        width: 100%;
        text-align: left;
    }

    .eit-ve-tab.active {
        border-radius: 4px;
    }

    .eit-ve-matrix {
        font-size: 11px;
    }

    .eit-ve-matrix th,
    .eit-ve-matrix td {
        padding: 5px 4px;
    }

    .eit-ve-score-input {
        width: 50px;
    }

    .eit-ve-bieter-head {
        flex-direction: column;
        align-items: flex-start;
    }
}
