/* ========================================
   Roboto Condensed (self-hosted)
   ======================================== */
@font-face {
  font-display: swap;
  font-family: 'Roboto Condensed';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/roboto-condensed/roboto-condensed-v31-latin-regular.woff2') format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'Roboto Condensed';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/roboto-condensed/roboto-condensed-v31-latin-700.woff2') format('woff2');
}

/* ========================================
   Bootstrap Overrides
   ======================================== */
body {
  font-family: 'Roboto Condensed', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Optional: Auch für Überschriften */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto Condensed', sans-serif;
}

/*background: rgb(215,140,40); */

.aq_button
{
	border: 1px solid rgb(215,140,40);
}

.aq_button:hover
{
	background: rgb(215,140,40);
}

/* Hover-Effekte für Cards */
.hover-card {
	transition: all 0.3s ease;
}

.hover-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 .5rem 1rem rgba(0,0,0,.15) !important;
}

.hover-card:hover .card-title {
	color: #009fe3 !important;
}

/* CI-Farben Definition */
:root {
    --ci-blue-light: #009fe3;
    --ci-blue-dark: #004c8f;
    --ci-orange: #f28c27;
    --ci-black: #000000;
}

/* Überschriften */
h3 {
    color: var(--ci-blue-dark);
}

/* Warning Box */
.bg-ci-warning {
    background-color: var(--ci-orange) !important;
    color: white !important;
}

/* Accordion Buttons */
.btn-ci-accordion {
    background-color: var(--ci-blue-light);
    color: white;
    border: none;
    width: 100%;
    text-align: left;
}

.btn-ci-accordion:hover {
    background-color: var(--ci-blue-dark);
    color: white;
}

/* Card mit CI-Akzent */
.card-ci {
    border-left: 4px solid var(--ci-orange);
    background-color: #f8f9fa;
}

/* Liste mit CI-Bullets */
.list-ci li::before {
    content: "▸ ";
    color: var(--ci-blue-light);
    font-weight: bold;
    margin-right: 0.5rem;
}

.list-ci li {
    list-style: none;
    margin-bottom: 0.5rem;
}

.list-ci {
    padding-left: 1rem;
}

/* Navigation Buttons */
.btn-primary {
    background-color: var(--ci-blue-light);
    border-color: var(--ci-blue-light);
}

.btn-primary:hover {
    background-color: var(--ci-blue-dark);
    border-color: var(--ci-blue-dark);
}

.btn-outline-primary {
    color: var(--ci-blue-light);
    border-color: var(--ci-blue-light);
}

.btn-outline-primary:hover {
    background-color: var(--ci-blue-light);
    border-color: var(--ci-blue-light);
}

/* Horizontale Linie mit CI-Farbe */
.border-ci-blue {
    border-color: var(--ci-blue-light) !important;
    opacity: 0.3;
}

/* Navigation Buttons - Zurück Button */
.btn-outline-primary {
    color: var(--ci-blue-light);
    border-color: var(--ci-blue-light);
}

.btn-outline-primary:hover {
    background-color: var(--ci-blue-light);
    border-color: var(--ci-blue-light);
    color: white;
}

.btn-outline-primary:disabled {
    color: #6c757d;
    border-color: #6c757d;
    opacity: 0.5;
}

/* Navigation Buttons - Weiter Button */
.btn-primary {
    background-color: var(--ci-blue-light);
    border-color: var(--ci-blue-light);
}

.btn-primary:hover {
    background-color: var(--ci-blue-dark);
    border-color: var(--ci-blue-dark);
}

/* Optional: Orange Accent für Weiter-Button */
.btn-ci-next {
    background-color: var(--ci-orange);
    border-color: var(--ci-orange);
    color: white;
}

.btn-ci-next:hover {
    background-color: #d97820;
    border-color: #d97820;
    color: white;
}

/* ========================================
   FORMULARE
   ======================================== */

/* Card Header für Formularsektionen */
.card-header.bg-ci-blue-light {
    background-color: var(--ci-blue-light) !important;
}

.card-header h5 {
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Form Controls */
.form-control:focus {
    border-color: var(--ci-blue-light);
    box-shadow: 0 0 0 0.2rem rgba(0, 159, 227, 0.25);
}

.form-control.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Labels */
.col-form-label {
    font-weight: 500;
    color: var(--ci-blue-dark);
}

/* Pflichtfeld-Markierung */
.text-danger {
    color: #dc3545 !important;
}

/* Responsive Labels - auf Mobile linksbündig */
@media (max-width: 767px) {
    .col-form-label {
        text-align: left !important;
        padding-bottom: 0.25rem;
    }
}

/* Datum-Input Styling */
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(47%) sepia(89%) saturate(2476%) hue-rotate(173deg) brightness(97%) contrast(101%);
    cursor: pointer;
}

/* ========================================
   ALERTS & HINWEISE
   ======================================== */

/* Bootstrap alert-warning mit CI-Orange überschreiben */
.alert-warning {
    background-color: var(--ci-orange);
    color: white;
    border-color: var(--ci-orange);
}

.alert-warning .alert-link {
    color: white;
    text-decoration: underline;
}

/* ========================================
   SIDEBAR TOGGLE BUTTON
   ======================================== */
.btn-sidebar-toggle {
    background-color: var(--ci-blue-light);
    color: white;
    border: none;
    border-radius: 4px;
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    line-height: 1;
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.btn-sidebar-toggle:hover {
    background-color: var(--ci-blue-dark);
    color: white;
}

.btn-sidebar-toggle:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 159, 227, 0.25);
}

/* Icon-Wechsel über aria-expanded */
.btn-sidebar-toggle[aria-expanded="true"] .icon-open {
    display: inline;
}
.btn-sidebar-toggle[aria-expanded="true"] .icon-closed {
    display: none;
}
.btn-sidebar-toggle[aria-expanded="false"] .icon-open {
    display: none;
}
.btn-sidebar-toggle[aria-expanded="false"] .icon-closed {
    display: inline;
}

/* ========================================
   SIDEBAR NAVIGATION ITEMS
   ======================================== */

/* Hauptpunkte (Level 0) */
.nav-sidebar-item {
    border-bottom: 1px solid #e9ecef;
}

.nav-sidebar-item:first-child {
    border-top: 1px solid #e9ecef;
}

.nav-sidebar-btn {
    width: 100%;
    text-align: left;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    color: var(--ci-blue-dark);
    border-radius: 0;
    white-space: normal;
}

.nav-sidebar-btn:hover {
    background-color: #e8f4fb;
    color: var(--ci-blue-dark);
}

/* Unterpunkte (Level 1) – eingerückt */
.nav-sidebar-sub .nav-sidebar-btn {
    padding-left: 1.75rem;
    font-size: 0.8125rem;
    color: #495057;
}

/* Unterpunkte (Level 2, Digital) – stärker eingerückt */
.nav-sidebar-sub-2 .nav-sidebar-btn {
    padding-left: 2.75rem;
    font-size: 0.8125rem;
    color: #495057;
}

/* Aktive Seite */
.nav-sidebar-active .nav-sidebar-btn {
    background-color: var(--ci-blue-light);
    color: white;
    font-weight: 700;
}

.nav-sidebar-active .nav-sidebar-btn:hover {
    background-color: var(--ci-blue-dark);
    color: white;
}