/* Bootstrap-Overrides im Stil von medilyzer.sachscon.de (DrivIo) */

:root {
    --bs-primary: #C8102E;
    --bs-primary-rgb: 200, 16, 46;
    --bs-primary-dark: #A00D25;
    --bs-danger: #C8102E;
    --bs-danger-rgb: 200, 16, 46;
}

.btn-primary,
.btn-danger {
    background-color: #C8102E;
    border-color: #C8102E;
    color: #FFFFFF;
    font-weight: 600;
    font-family: Arial, Helvetica, sans-serif;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-danger:hover,
.btn-danger:focus,
.btn-danger:active {
    background-color: #A00D25;
    border-color: #A00D25;
    color: #FFFFFF;
}

.btn-outline-primary {
    color: #C8102E;
    border-color: #C8102E;
    font-weight: 600;
    font-family: Arial, Helvetica, sans-serif;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
    background-color: #C8102E;
    border-color: #C8102E;
    color: #FFFFFF;
}

.navbar-dark.bg-primary,
.navbar-dark.bg-danger {
    background-color: #C8102E !important;
}

.navbar-brand {
    font-weight: 700;
    font-family: Arial, Helvetica, sans-serif;
}

/* Logo/Banner: SVG mit width/height 100% sonst zu breit — darf Nav (z. B. „Übersicht“) nicht überlagern */
.navbar .navbar-brand.drivio-navbar-brand {
    min-width: 0;
    max-width: min(260px, 40vw);
    margin-right: 1rem;
    flex-shrink: 1;
}

.navbar .navbar-brand.drivio-navbar-brand img {
    display: block;
    max-height: 40px;
    max-width: 100%;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
    object-position: left center;
    flex-shrink: 1;
}

.navbar .navbar-brand.drivio-navbar-brand .drivio-navbar-title {
    flex-shrink: 0;
    white-space: nowrap;
}

.badge.bg-primary,
.badge.bg-danger {
    background-color: #C8102E !important;
}

.badge.bg-success {
    background-color: #28a745 !important;
}

.badge.bg-warning {
    background-color: #ffc107 !important;
    color: #000000 !important;
}

.alert-primary {
    background-color: #FFF5F5;
    border-color: #C8102E;
    color: #A00D25;
}

.alert-danger {
    background-color: #FFF5F5;
    border-color: #C8102E;
    color: #A00D25;
}

.progress-bar {
    background-color: #C8102E;
}

a {
    color: #C8102E;
}

a:hover {
    color: #A00D25;
}

.form-control:focus,
.form-select:focus {
    border-color: #C8102E;
    box-shadow: 0 0 0 0.25rem rgba(200, 16, 46, 0.25);
}

.form-check-input:checked {
    background-color: #C8102E;
    border-color: #C8102E;
}

.card {
    border-color: #E5E5E5;
}

.card-header {
    background-color: #F5F5F5;
    border-bottom-color: #E5E5E5;
    font-weight: 600;
    font-family: Arial, Helvetica, sans-serif;
}

.table-primary {
    background-color: #FFF5F5;
}

.table-primary > th,
.table-primary > td {
    border-color: #E5E5E5;
}

.dropdown-item.active,
.dropdown-item:active {
    background-color: #C8102E;
}

.page-link {
    color: #C8102E;
}

.page-link:hover {
    color: #A00D25;
}

.page-item.active .page-link {
    background-color: #C8102E;
    border-color: #C8102E;
}

.breadcrumb-item.active {
    color: #6B6B6B;
}

.modal-header {
    border-bottom-color: #E5E5E5;
}

.modal-footer {
    border-top-color: #E5E5E5;
}

.list-group-item.active {
    background-color: #C8102E;
    border-color: #C8102E;
}

.text-primary {
    color: #C8102E !important;
}

.text-danger {
    color: #C8102E !important;
}

.bg-primary {
    background-color: #C8102E !important;
}

.bg-danger {
    background-color: #C8102E !important;
}

.border-primary {
    border-color: #C8102E !important;
}

h1, h2, h3, h4, h5, h6 {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 700;
    color: #000000;
}

body {
    font-family: Arial, Helvetica, sans-serif;
}

.drivio-accent {
    color: #C8102E;
}

.drivio-bg-accent {
    background-color: #C8102E;
}
