:root {
    --bs-primary: #3F5982;
    --bs-primary-rgb: 63, 89, 130;
    --bs-link-color: #3F5982;
    --bs-link-color-rgb: 63, 89, 130;
    --bs-link-hover-color: #324868;
    --bs-link-hover-color-rgb: 50, 72, 104;
}

.btn-primary {
    --bs-btn-bg: #3F5982;
    --bs-btn-border-color: #3F5982;
    --bs-btn-hover-bg: #324868;
    --bs-btn-hover-border-color: #2e425f;
    --bs-btn-active-bg: #2e425f;
    --bs-btn-active-border-color: #2a3c56;
    --bs-btn-disabled-bg: #3F5982;
    --bs-btn-disabled-border-color: #3F5982;
}

.btn-outline-primary {
    --bs-btn-color: #3F5982;
    --bs-btn-border-color: #3F5982;
    --bs-btn-hover-bg: #3F5982;
    --bs-btn-hover-border-color: #3F5982;
    --bs-btn-active-bg: #3F5982;
    --bs-btn-active-border-color: #3F5982;
}

.navbar-dbc {
    background-color: #3F5982;
}

.brand-logo {
    height: 34px;
    width: auto;
}

.footer-dbc {
    border-top: 1px solid #dee2e6;
    background-color: #f8f9fa;
    color: #6c757d;
}

.footer-dbc a {
    color: inherit;
}

/* Lesbarer Menüpunkt auf DBC-Blau (Bootstrap-Standard ist halbtransparent) */
.navbar-dbc .nav-link {
    color: #fff;
}

.navbar-dbc .nav-link:hover,
.navbar-dbc .nav-link:focus,
.navbar-dbc .nav-link.show {
    color: #fff;
    text-decoration: underline;
}

/* Aktionsspalten: Schaltflächen umbrechen statt die Tabelle zu verbreitern */
.row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem;
    justify-content: flex-end;
}

.row-actions form {
    margin: 0;
}

/* Absolut positionierte Hilfselemente (.visually-hidden) in Tabellen dürfen die Seite nicht verbreitern */
.table-responsive {
    position: relative;
}

/* Schmale Formulare (z. B. Modellstand hochladen); statt Inline-Style wegen CSP */
.np-code-field { width: 6rem; text-transform: uppercase; }
.np-number-field { width: 5.5rem; }
.np-form-narrow {
    max-width: 40rem;
}
