/* Fahrzeug-Toolbar Styles */
.fv-toolbar-wrap{display:flex;justify-content:center;margin:0 0 1rem 0}
.fv-toolbar{display:inline-flex;gap:.5rem;align-items:center;padding:.6rem .8rem;
  border-radius:9999px;background:rgba(255,255,255,0.92);backdrop-filter:blur(8px);
  box-shadow:0 12px 30px rgba(0,0,0,0.12);overflow:hidden}
.fv-btn{display:inline-flex;align-items:center;gap:.5rem;padding:.5rem .9rem;
  border-radius:9999px;font-weight:700;font-size:1.1rem;text-decoration:none;
  color:#0d6efd;line-height:1;transition:.2s}
.fv-btn:hover{background:rgba(13,110,253,.1);color:#0b5ed7;transform:translateY(-1px)}
.fv-ic{width:22px;height:22px;stroke:currentColor;fill:none;flex-shrink:0}
@media(max-width:576px){.fv-btn{font-size:1rem;padding:.45rem .75rem}.fv-ic{width:20px;height:20px}}
.article-header,
.article-info,
[itemprop="articleBody"],
.article-details {
    display: none !important;
}
.tab-pane ul {
    font-size: 1.2rem;
    color: #000;
    padding-left: 0;
    list-style: none;
}
.tab-pane h4 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: #000;
}
.btn-custom {
    font-size: 1rem;
    padding: 0.6rem 1.2rem;
    margin: 0.3rem;
    border-radius: 8px;
}
li.mb-2 {
    margin-bottom: 0.8rem !important;
}
vehicle-analysis { margin: 20px 0; }
.analysis-grid { 
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.analysis-card {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
}
.analysis-card.warning {
    border-color: #ff9800;
    background-color: #fff3e0;
}
.analysis-card .alert {
    color: #f44336;
    font-weight: bold;
}
.analysis-chart {
    grid-column: span 2;
    background: white;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
}
analysis-card table {
    border: 1px solid #dee2e6;
    width: 100%;
    margin-top: 15px;
    border-collapse: collapse;
}
.analysis-card th {
    border: 1px solid #dee2e6;
    background-color: #f8f9fa;
    padding: 8px 12px;
    text-align: left;
}
.analysis-card td {
    border: 1px solid #dee2e6;
    padding: 8px 12px;
    border: 1px solid #dee2e6;
}
.badge {
    font-size: 0.85em;
    padding: 4px 8px;
    border-radius: 4px;
}
.analysis-card tr:nth-child(even) {
    background-color: #f9f9f9;
}
.prognose-row {
    background-color: #fff3e0;
}.prognose-row {
    background-color: #fff8e1;  /* Hellorange für Prognosezeilen */
}
.vergangen-row {
    background-color: #e8f5e9;  /* Hellgrün für vergangene Jahre */
}
.highlight-row {
    border-left: 4px solid #2196F3; /* Blauer Akzent */
}
.table-hover tbody tr:hover {
    background-color: #f5f5f5;
}
@media (max-width: 768px) {
    .analysis-card table {
        font-size: 0.9rem;
    }
    .analysis-card th, 
    .analysis-card td {
        padding: 4px 8px;
    }
}
.wartung-overdue {
    background-color: #ffebee;
    border-left: 4px solid #f44336;
}
.wartung-due-soon {
    background-color: #fff8e1;
}
.table-wartung td {
    vertical-align: middle;
}
.km-info-box {
  background-color: #ffffff !important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.km-info-box:hover {
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transform: translateY(-1px);
}

.custom-list-container {
  border-left: 4px solid #0d6efd;
  background-color: #fff !important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  border: 1px solid #dee2e6 !important;
}

.custom-styled-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.custom-styled-list li:last-child {
  border-bottom: none;
}

.custom-styled-list i {
  color: #0d6efd;
  font-size: 1.1em;
}
.action-btn {
  border-radius: 8px !important;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  transition: all 0.2s ease;
  border: none;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  flex: 1 1 auto;
  min-width: 200px;
  text-align: center;
}

.action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.action-btn i {
  margin-right: 8px;
  font-size: 1.1em;
}

/* Farbanpassungen */
.btn-primary {
  background-color: #0d6efd;
}
.btn-secondary {
  background-color: #6c757d;
}
.btn-success {
  background-color: #198754;
}
.btn-warning {
  background-color: #ffc107;
  color: #000;
}

  .vehicle-analysis-container {
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  }
  
  .analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
  }
  
  .analysis-card {
    transition: all 0.3s ease;
  }
  
  .analysis-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }
  
  .analysis-item {
    margin: 0.75rem 0;
    display: flex;
    justify-content: space-between;
  }
  
  .analysis-item strong {
    color: #0d6efd;
  }
  .analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
  }
  
  /* Breite Karten für wichtige Diagramme */
  .analysis-card-wide {
    grid-column: span 2;
  }
  
  /* Container für breite Diagramme */
  .chart-container-wide {
    width: 100%;
    height: 300px; /* Feste Höhe für Konsistenz */
    margin-top: 1rem;
  }
  
  /* Responsive Anpassungen */
  @media (max-width: 992px) {
    .analysis-card-wide {
      grid-column: span 1;
    }
    
    .chart-container-wide {
      height: 250px;
    }
  }
  
  /* Chart-spezifische Anpassungen */
  #kmProgressChart, #monthlyKmChart {
    width: 100% !important;
    height: 100% !important;
  }
  .analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
  }
  
  /* Breite Karten für wichtige Diagramme */
  .analysis-card-wide {
    grid-column: span 2;
  }
  
  /* Container für breite Diagramme */
  .chart-container-wide {
    width: 100%;
    height: 300px; /* Feste Höhe für Konsistenz */
    margin-top: 1rem;
  }
  
  /* Responsive Anpassungen */
  @media (max-width: 992px) {
    .analysis-card-wide {
      grid-column: span 1;
    }
    
    .chart-container-wide {
      height: 250px;
    }
  }
  
  /* Chart-spezifische Anpassungen */
  #kmProgressChart, #monthlyKmChart {
    width: 100% !important;
    height: 100% !important;
  }
.chart-container-wide table {
  width: 100%;
  font-size: 0.9rem;
}

.chart-container-wide th {
  background-color: #f8f9fa;
  padding: 0.5rem;
}

.chart-container-wide td {
  padding: 0.4rem;
  border-bottom: 1px solid #eee;
}
 /* Scrollbare Tabelle */
  .table-responsive {
    border-radius: 0.5rem;
    border: 1px solid #dee2e6;
  }
  
  .table {
    margin-bottom: 0;
    min-width: 600px;
  }
  
  .table th {
    position: sticky;
    top: 0;
    background-color: #f8f9fa;
    z-index: 10;
  }
  
  /* Hochformat für den Verlauf */
  .chart-container-vertical {
    width: 100%;
    height: 350px;
  }
  
  /* Bessere Lesbarkeit der Tabelle */
  .table-sm td, .table-sm th {
    padding: 0.5rem;
    vertical-align: middle;
  }
  
  .table-hover tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.05);
  }
  
  /* Farbige Highlights */
  .table-success {
    background-color: rgba(25, 135, 84, 0.1);
  }
  
  .table-warning {
    background-color: rgba(255, 193, 7, 0.1);
  }
  .analysis-card-wide {
    grid-column: span 3;
}

.chart-container {
    width: 100%;
    position: relative;
}

.table-responsive {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
}

.sticky-top {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: #f8f9fa;
}

@media (max-width: 992px) {
    .analysis-card-wide {
        grid-column: span 1;
    }
}
.comments-container {
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.comment-form {
    transition: all 0.3s ease;
}

.comment-form:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline-item {
    position: relative;
    margin-bottom: 20px;
}

.timeline-badge {
    position: absolute;
    left: -40px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.timeline-content {
    border-left: 3px solid #0d6efd;
    transition: all 0.2s ease;
}

.timeline-item:hover .timeline-content {
    border-left-width: 5px;
    transform: translateX(5px);
}

.timeline-header {
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .timeline {
        padding-left: 30px;
    }
    
    .timeline-badge {
        left: -30px;
        width: 26px;
        height: 26px;
        font-size: 0.8rem;
    }
}
.kennzeichen-container {
    max-width: 500px;
    margin: 0 auto;
}

.kennzeichen {
    display: inline-block;
    background: white;
    border-radius: 8px;
    padding: 3px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.kennzeichen.schwarz {
    border: 3px solid #000;
}

.kennzeichen.gruen {
    border: 3px solid #008000;
}

.kennzeichen-inner {
    padding: 15px 30px 15px 50px; /* Mehr Padding links für den blauen Balken */
    background: white;
    border-radius: 5px;
    position: relative;
}

.kennzeichen-text {
    font-family: 'FE-Schrift', 'License Plate', sans-serif;
    font-size: 2.5rem;
    font-weight: bold;
    letter-spacing: 2px;
    color: black;
    text-transform: uppercase;
}

/* Blaue EU-Kennzeichenleiste jetzt links */
.kennzeichen::before {
    content: "";
    position: absolute;
    top: 3px; /* Berücksichtigt den Rahmen */
    left: 3px; /* Berücksichtigt den Rahmen */
    width: 40px;
    height: calc(100% - 6px); /* Berücksichtigt den Rahmen oben und unten */
    background: #003399;
    z-index: 1;
    border-radius: 5px 0 0 5px;
}
.kennzeichen.gruen .kennzeichen-text {
    color: #008000;
}
/* Gelbe Reflexstreifen (optional) 
.kennzeichen::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: repeating-linear-gradient(
        45deg,
        #ffcc00,
        #ffcc00 10px,
        #000 10px,
        #000 20px
    );
    opacity: 0.3;
}
*/
@media (max-width: 576px) {
    .kennzeichen-text {
        font-size: 1.8rem;
    }
    .kennzeichen-inner {
        padding: 15px 20px 15px 40px; /* Angepasstes Padding für mobile */
    }
    .kennzeichen::before {
        width: 30px;
    }
}
/* Status Container */
.status-container {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 1.25rem;
}

.status-display {
  font-size: 1.1rem;
}

.status-badge {
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Status Form */
.status-form .card {
  border-radius: 12px;
  overflow: hidden;
}

.status-form .form-select-lg {
  padding: 0.75rem 1.25rem;
  border: 2px solid #e9ecef;
  transition: all 0.3s ease;
}

.status-form .form-select-lg:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
}

.status-form .btn-primary {
  background-color: #0d6efd;
  border: none;
  font-weight: 500;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.status-form .btn-primary:hover {
  background-color: #0b5ed7;
  transform: translateY(-1px);
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
  .status-form .row > div {
    width: 100%;
  }
  
  .status-form .btn-primary {
    height: auto;
    padding: 0.75rem;
    margin-top: 1rem;
  }
}
/* Optimiertes Select-Feld */
.custom-select-size {
    font-size: 0.9rem !important;  /* Etwas kleinere Schrift */
    padding: 0.5rem 1rem !important;  /* Kompakteres Padding */
    height: auto !important;  /* Automatische Höhe */
    line-height: 1.5 !important;
    min-height: 42px;  /* Mindesthöhe für bessere Bedienbarkeit */
}

/* Für die Optionen im Dropdown */
.custom-select-size option {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Focus State */
.custom-select-size:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}
@media (max-width: 768px) {
    .custom-select-size {
        font-size: 0.85rem !important;
        padding: 0.4rem 0.8rem !important;
        min-height: 38px;
    }
}
.modern-form {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
}

.card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
}

.form-floating label {
  color: #64748b;
  font-size: 0.9rem;
}

.form-control {
  border: 1px solid #e2e8f0;
  border-radius: 0.375rem;
  padding: 0.75rem 1rem;
}

.form-control:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.btn-primary {
  background-color: ##0b5ed7;
  border: none;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: ##0b5ed7;
  transform: translateY(-1px);
}

.form-text {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: 0.25rem;
}
/* Deadline Cards Design */
.deadline-cards {
  display: grid;
  gap: 1rem;
}

.deadline-card {
  display: flex;
  align-items: center;
  padding: 1.25rem;
  border-radius: 12px;
  background: white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
  border-left: 4px solid;
}

.deadline-card:hover {
  transform: translateY(-2px);
}

.card-overdue {
  border-left-color: #dc3545;
  background-color: #fff5f5;
}

.card-due {
  border-left-color: #ffc107;
  background-color: #fffcf5;
}

.card-info {
  border-left-color: #0dcaf0;
  background-color: #f5fdff;
}

.card-icon {
  font-size: 1.75rem;
  margin-right: 1.25rem;
  color: #6c757d;
}

.card-overdue .card-icon {
  color: #dc3545;
}

.card-due .card-icon {
  color: #ffc107;
}

.card-info .card-icon {
  color: #0dcaf0;
}

.card-content {
  flex: 1;
}

.card-title {
  font-weight: 600;
  color: #495057;
  margin-bottom: 0.25rem;
}

.card-date {
  font-size: 1.1rem;
  color: #212529;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.card-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
}

.status-overdue {
  background-color: #fee2e2;
  color: #b91c1c;
}

.status-due {
  background-color: #fef3c7;
  color: #b45309;
}

.status-info {
  background-color: #e0f2fe;
  color: #0369a1;
}
.deadline-container {
  display: grid;
  gap: 1rem;
  max-width: 600px;
}

.deadline-card {
  display: flex;
  align-items: center;
  padding: 1.25rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border-left: 4px solid;
}

.deadline-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.deadline-icon {
  font-size: 1.75rem;
  margin-right: 1.25rem;
  color: #6c757d;
}

.deadline-content {
  flex: 1;
}

.deadline-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: #343a40;
}

.deadline-date,
.deadline-km {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #212529;
}

.deadline-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
}

/* Status-Farben */
.overdue {
  border-left-color: #dc3545;
  background-color: #fff5f5;
}
.overdue .deadline-icon {
  color: #dc3545;
}
.overdue .deadline-badge {
  background-color: #fee2e2;
  color: #b91c1c;
}

.due {
  border-left-color: #ffc107;
  background-color: #fffcf5;
}
.due .deadline-icon {
  color: #ffc107;
}
.due .deadline-badge {
  background-color: #fef3c7;
  color: #b45309;
}

.scheduled {
  border-left-color: #0dcaf0;
  background-color: #f5fdff;
}
.scheduled .deadline-icon {
  color: #0dcaf0;
}
.scheduled .deadline-badge {
  background-color: #e0f2fe;
  color: #0369a1;
}

.good {
  border-left-color: #198754;
  background-color: #f0fff4;
}
.good .deadline-icon {
  color: #198754;
}
.good .deadline-badge {
  background-color: #dcfce7;
  color: #166534;
}
.deadline-horizontal-container {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scrollbar-width: thin;
}

.deadline-card {
  flex: 1 0 280px;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border-top: 4px solid;
}

.deadline-icon {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: #6c757d;
}

.deadline-content {
  flex: 1;
}

.deadline-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #343a40;
}

.deadline-date,
.deadline-km {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #212529;
}

.deadline-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
}

/* Status-Farben */
.overdue {
  border-top-color: #dc3545;
  background-color: #fff5f5;
}
.overdue .deadline-icon {
  color: #dc3545;
}
.overdue .deadline-badge {
  background-color: #fee2e2;
  color: #b91c1c;
}

.due {
  border-top-color: #ffc107;
  background-color: #fffcf5;
}
.due .deadline-icon {
  color: #ffc107;
}
.due .deadline-badge {
  background-color: #fef3c7;
  color: #b45309;
}

.scheduled {
  border-top-color: #0dcaf0;
  background-color: #f5fdff;
}
.scheduled .deadline-icon {
  color: #0dcaf0;
}
.scheduled .deadline-badge {
  background-color: #e0f2fe;
  color: #0369a1;
}

.good {
  border-top-color: #198754;
  background-color: #f0fff4;
}
.good .deadline-icon {
  color: #198754;
}
.good .deadline-badge {
  background-color: #dcfce7;
  color: #166534;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
  .deadline-card {
    min-width: 240px;
    padding: 1.25rem;
  }
  
  .deadline-date,
  .deadline-km {
    font-size: 1.1rem;
  }
}
/* Container */
.deadline-responsive-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* Karten Basis-Styling */
.deadline-card {
  flex: 1 1 300px;
  min-width: 0;
  max-width: 100%;
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  border-top: 4px solid;
  transition: transform 0.2s ease;
}

/* Mobile Breakpoint */
@media (max-width: 768px) {
  .deadline-card {
    flex: 1 1 100%;
    margin-bottom: 1rem;
  }
}

/* Karten-Inhalt */
.card-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.icon {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  align-self: flex-start;
}

h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #343a40;
}

.date, .km {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #212529;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: auto;
  width: fit-content;
}

/* Farbvarianten */
.overdue {
  border-top-color: #dc3545;
  background-color: #fff5f5;
}
.overdue .icon {
  color: #dc3545;
}
.overdue .status-badge {
  background-color: #fee2e2;
  color: #b91c1c;
}

.due {
  border-top-color: #ffc107;
  background-color: #fffcf5;
}
.due .icon {
  color: #ffc107;
}
.due .status-badge {
  background-color: #fef3c7;
  color: #b45309;
}

.scheduled {
  border-top-color: #0dcaf0;
  background-color: #f5fdff;
}
.scheduled .icon {
  color: #0dcaf0;
}
.scheduled .status-badge {
  background-color: #e0f2fe;
  color: #0369a1;
}

.good {
  border-top-color: #198754;
  background-color: #f0fff4;
}
.good .icon {
  color: #198754;
}
.good .status-badge {
  background-color: #dcfce7;
  color: #166534;
}
/* Kompakter Container */
.compact-cards-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.9rem;
}

/* Ultra-kompakte Karten */
.compact-card {
  flex: 1 1 180px;
  min-width: 0;
  display: flex;
  align-items: center;
  padding: 0.75rem;
  border-radius: 8px;
  background: white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  border-left: 3px solid;
  gap: 0.75rem;
}

/* Inhalt */
.compact-content {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.icon-sm {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.compact-title {
  font-weight: 600;
  color: #555;
  font-size: 0.8rem;
}

.compact-value {
  font-weight: 600;
  color: #222;
  margin: 0.1rem 0;
}

.compact-badge {
  font-size: 0.75rem;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  width: fit-content;
}

/* Farben */
.overdue {
  border-left-color: #e63946;
  background-color: #ffebee;
}
.overdue .compact-badge {
  background-color: #ffcdd2;
  color: #c62828;
}

.due {
  border-left-color: #ffb74d;
  background-color: #fff3e0;
}
.due .compact-badge {
  background-color: #ffe0b2;
  color: #ef6c00;
}

.scheduled {
  border-left-color: #64b5f6;
  background-color: #e3f2fd;
}
.scheduled .compact-badge {
  background-color: #bbdefb;
  color: #1565c0;
}

.good {
  border-left-color: #81c784;
  background-color: #e8f5e9;
}
.good .compact-badge {
  background-color: #c8e6c9;
  color: #2e7d32;
}

/* Mobile Ansicht */
@media (max-width: 576px) {
  .compact-card {
    flex: 1 1 100%;
    padding: 0.6rem;
  }
}
/* Modern Tabs Container */
.modern-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Tab Items */
.tab-item {
    list-style: none;
    margin: 0;
}

/* Tab Buttons */
.tab-button {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    border: none;
    background: transparent;
    color: #495057;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.tab-button:hover {
    background: rgba(0,0,0,0.05);
    color: #0d6efd;
}

.tab-button.active {
    background: #ffffff;
    color: #0d6efd;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: #0d6efd;
    border-radius: 3px 3px 0 0;
}

/* Tab Icons */
.tab-icon {
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

.tab-text {
    white-space: nowrap;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .modern-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 1rem;
        -webkit-overflow-scrolling: touch;
    }
    
    .tab-item {
        flex: 0 0 auto;
    }
    
    .tab-button {
        padding: 0.75rem 1rem;
    }
    
    .tab-button.active::after {
        bottom: -5px;
    }
}

@media (max-width: 576px) {
    .tab-button {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .tab-icon {
        font-size: 1rem;
        margin-right: 0.3rem;
    }
}
/* Tab Container */
.tab-container {
  width: 100%;
  overflow: hidden;
}

/* Modern Tabs */
.modern-tabs {
  display: flex;
  gap: 0.25rem;
  padding: 0.5rem;
  margin: 0;
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
  white-space: nowrap;
}

.modern-tabs::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

/* Tab Items */
.tab-item {
  display: inline-flex;
  flex: 1 0 auto;
  list-style: none;
  min-width: fit-content;
}

/* Tab Buttons */
.tab-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 0.5rem;
  min-width: 60px;
  border: none;
  background: transparent;
  color: #6c757d;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.2s ease;
  cursor: pointer;
  text-align: center;
}

.tab-button i {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.tab-button:hover {
  background: rgba(0,0,0,0.05);
  color: #0d6efd;
}

.tab-button.active {
  background: white;
  color: #0d6efd;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  font-weight: 600;
}

.tab-button.active::after {
  content: '';
  display: block;
  width: 100%;
  height: 2px;
  background: #0d6efd;
  margin-top: 0.25rem;
}

/* Responsive Adjustments */
@media (min-width: 576px) {
  .tab-button {
    flex-direction: row;
    padding: 0.75rem 1rem;
    min-width: 120px;
    font-size: 0.85rem;
  }
  
  .tab-button i {
    margin-bottom: 0;
    margin-right: 0.5rem;
    font-size: 1rem;
  }
  
  .tab-button.active::after {
    width: calc(100% - 2rem);
    margin: 0.25rem 1rem 0;
  }
}

@media (min-width: 768px) {
  .modern-tabs {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .tab-item {
    flex: 0 0 auto;
  }
}
/* Tab Container */
.tab-container {
  background: #f8f9fa !important; /* Heller Grauton */
  border: 1px solid #e9ecef; /* Subtiler Rand */
}

/* Tab Buttons */
.tab-button {
  background: rgba(255,255,255,0.7); /* Leicht transparenter Weißton */
  border: 1px solid #dee2e6; /* Dünner Rand */
}

.tab-button:hover {
  background: rgba(255,255,255,0.9); 
  border-color: #adb5bd;
}

.tab-button.active {
  background: white !important;
  border-color: #0d6efd;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}


.tab-container {
 /* background: #e9f0ff !important; /* Sehr helles Blau */
}

.tab-button.active {
  background: white !important;
  border-bottom: 3px solid #0d6efd; /* Blauer Akzent */
}
.modern-tabs {
  border-bottom: 2px solid #dee2e6; /* Trennlinie */
}

.tab-button.active {
  border-bottom: 3px solid #0d6efd;
  margin-bottom: -2px; /* Überlappung mit Trennlinie */
}

.km-eingabe-form label,
.km-eingabe-form .form-text,
.km-eingabe-form .form-control,
.km-eingabe-form .input-group-text {
    color: black !important;
  }
  .km-eingabe-form input[type="number"] {
    border: 2px solid red !important;
  }

  .km-eingabe-form .card-header {
    background-color: #0d6efd; /* Optional: Gelb für bessere Lesbarkeit */
    color: white !important;
  }
  
  .document-links li {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid #ddd;
  padding-bottom: 0.5rem;
}

.document-links li a {
  font-weight: 500;
  color: #004085;
  text-decoration: none;
}

.document-links li a:hover {
  text-decoration: underline;
}
.nav-tabs {
  background-color: #343a40;
  border-radius: 0.5rem;
  padding: 0.25rem;
}

.nav-tabs .nav-link {
  color: #ffffff;
  border: none;
  border-radius: 0.5rem;
  transition: background-color 0.2s, box-shadow 0.2s;
}

.nav-tabs .nav-link:hover {
  background-color: #495057;
}

.nav-tabs .nav-link.active {
  background-color: #0000EE; /* z. B. Gelb für hohe Sichtbarkeit */
  color: #000;
  font-weight: bold;
  box-shadow: 0 0 0 2px #fff inset;
}

.tab-container .nav-item {
  margin: 0 0.25rem;
}

@media (min-width: 768px) {
  .nav-tabs {
    justify-content: center;
  }
}
/* Tabs: aktiver Tab Hintergrundfarbe anpassen */
.fahrzeugverwaltung .nav-tabs .nav-link.active {
  background-color: #212529 !important; /* oder #000, je nach Wunsch */
  color: #ffffff !important;
  box-shadow: none !important;
  border: none !important;
}
.fahrzeugverwaltung .nav-tabs .nav-link {
  transition: background-color 0.2s ease;
}
.nav-tabs .nav-link.active {
  background-color: #0000EE !important;
  color: #fff !important;
  box-shadow: none !important;
  border: none !important;
}
#bemerkungen .card-body.bg-light {
  min-height: auto !important;
  height: auto !important;
}
.tab-pane:not(.show) {
  display: none !important;
}

.tab-pane .card-body.bg-light:empty {
  padding: 0 !important;
  margin: 0 !important;
  height: auto !important;
  min-height: 0 !important;
}
.sppb-section:empty {
  display: none !important;
}
html, body {
  min-height: 0 !important;
  height: auto !important;
  overflow-x: hidden;
}

body > .body-wrapper {
  min-height: auto !important;
}
.fahrzeug-tabs {
  background-color: #000;
  padding: 0.5rem;
  border-radius: 1rem;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
  overflow-x: auto;
  white-space: nowrap;
}

.fahrzeug-tabs .nav-link {
  color: #fff;
  background-color: transparent;
  border: none;
  border-radius: 0.75rem;
  padding: 0.5rem 1rem;
  text-align: center;
  transition: background-color 0.2s ease-in-out;
}

.fahrzeug-tabs .nav-link i {
  display: block;
  font-size: 1.3rem;
  margin-bottom: 2px;
}

.fahrzeug-tabs .nav-link span {
  font-size: 0.9rem;
  display: block;
}

.fahrzeug-tabs .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.fahrzeug-tabs .nav-link.active {
  background-color: #198754; /* Meldau-Grün */
  color: #fff;
  font-weight: bold;
}
