.index-p { /* Standardschrift (war zuerst nur für Indexseite geplant) */
  font-size: 1.2rem;
}

.cropped { /* Hintergrundbild Größe */
  width: 100%;
  height: 500px;
  top: 0;
}

.accent {
  accent-color: red;
}

.input {
  width: 300px;
}

.adSpaceGr { /* Werbefläche */
  height: 200px;
  margin-top: 1rem;
}

.vrGroesse {
  padding: 0.0005rem;
}

.borderTopMargin {
  margin-bottom: 1.5em;
}

.BtnRot { /* Searchform Suchbutton Farbe */
  background-color: #850000;
  border-color: #850000;
}

.BgRot { /* Hintergrundfarbe SmartCar-rot */
  background-color: #850000;
}

.BgGrau { /* Hintergrundfarbe Footer */
  background-color: #c2c2c2;
}

.listNoStyle {
  list-style-type: none;
}

.custom-card { /* eigene Cards für Inhalt auf Startseite */
  width: 350px;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  background-color: white;
  position: relative;
}

.card-font { /* Inhalt des Card-Textes */
  font-size: 1.1rem;
}

.animate-flyin { /* Benötigt für fly-in Animation von JavaScript */
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.animate-flyin.show {
  opacity: 1;
  transform: translateY(0);
}

.searchform {
  border: none; /* Kein expliziter Rahmen */
  border-radius: 10px;
  background: #f6f5f5;
  box-shadow: 0 8px 8px rgba(0, 0, 0, 0.2); /* Schatten nur unten */
  transition: all 0.3s ease-in-out;
  padding-bottom: 20px;
  position: relative;
}

.searchform-header { /* Formatierung Searchform-Header */
  background: #850000;
  border-bottom: 1px solid #dcdcdc;
  font-weight: bold;
  text-align: center;
  padding: 10px;
  margin-bottom: 10px;
}

.searchform-button { /* Seitenabstand der Buttons in Searchform */
  padding-left: 5px;
  padding-right: 5px;
}

@media (max-width: 768px) { 
    .compare-page .searchform { 
        margin-top: -150px; /* Weniger Abstand auf kleinen Bildschirmen */
    }
}

.carousel-container { /* Container für eigenes Carousel für Cards (Beispielfahrzeuge werden später gelistet */
  position: relative;
  width: 90%;
  max-width: 1000px;
  overflow: hidden;
  margin: 0 auto;
  background: white;
  border-radius: 15px;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
  padding: 20px;
}

.carousel { /* Carousel für Cards */
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 10px;
  scroll-snap-type: x mandatory;
}

.carousel, .card, .prev-btn, .next-btn { /* Verhindert das Markieren von Text und Inhalten */
    user-select: none;
}

@keyframes slideInFromRight {
  from {
      transform: translateX(100px);
      opacity: 0;
  }
  to {
      transform: translateX(0);
      opacity: 1;
  }
}

.card { /* Grundstruktur der Card */
  flex: 0 0 auto;
  min-width: 300px;
  height: 400px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  scroll-snap-align: start;
  padding: 20px;
  box-sizing: border-box;
}

.card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
}

.card .content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  height: 100;
  padding: 10px 0;
}

.card .content h2, .card .content p {
  margin: 0;
  padding: 5px 0;
  text-align: center;
}

/* Beispiel für den Stil der einzelnen Elemente in der Karte */
.card .name {
  font-size: 1.5em;
  font-weight: bold;
}

.card .price {
  font-size: 1.2em;
  margin-bottom: 5px; /* Kleineren Abstand nach unten */
}

.card .description {
  font-size: 1em;
  color: #555;
  margin-top: 5; /* Entfernt den oberen Abstand */
}

/* Container für das Bild und den Text */
.card .image-container {
  width: 100%;
  height: 300px; /* Höhe des Bildbereichs */
  overflow: hidden;
}

.card .image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel::-webkit-scrollbar {
  display: none; /* Scrollbalken auf iOS und Desktop ausblenden */
}

.carousel.dragging { /*  */
  cursor: grabbing;
}

.card:hover { /* Effekt beim Hovern der Card */
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.card img { /* Bild wird an Card angepasst */
  width: 100%;
  height: auto;
  object-fit: cover;
}

.carousel-btn { /* Button für Carousel */
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: #ffffff;
  border: none;
  width: 50px;
  height: 50px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.3s ease, transform 0.3s ease;
  font-size: 20px;
  color: #850000;
}

.carousel-btn:hover { /* Effekt beim Hovern am Button */
  background-color: #850000;
  color: white;
  transform: translateY(-50%) scale(1.1);
}

.prev-btn, .next-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  z-index: 2; /* Stellt sicher, dass die Buttons über den Karten erscheinen */
  border-radius: 50%;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s;
}

.prev-btn {
  left: 10px;
}

.next-btn {
  right: 10px;
}

.prev-btn:hover, .next-btn:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.prev-btn:active, .next-btn:active {
  background-color: rgba(0, 0, 0, 1);
}

/* Globale Reset */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Flexbox Container für alle Geräte */
.containerCounter {
    display: -webkit-flex; /* Für Safari auf älteren iOS-Versionen */
    display: flex;
    -webkit-flex-wrap: wrap; /* Flex-Wrap für iOS */
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

/* Zeilen-Container */
.rowCounter {
    display: -webkit-flex;
    display: flex;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
}

/* Standardlayout für Desktop (3 Spalten nebeneinander) */
.colCounter {
    flex: 0 0 calc(33.333% - 20px);
    max-width: calc(33.333% - 20px);
    text-align: center;
}

/* Layout für Tablets (max-width: 1024px) */
@media (max-width: 1024px) {
    .colCounter {
        flex: 0 0 calc(50% - 20px); /* Zwei Spalten nebeneinander */
        max-width: calc(50% - 20px);
        margin-bottom: 10px; /* Abstand zwischen den Spalten */
    }
}

/* Layout für Smartphones (max-width: 768px) */
@media (max-width: 768px) {
    .colCounter {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 5px;
    }

    .containerCounter { /* iOS */
        gap: 0;
    }
}

/* Für sehr kleine Geräte (max-width: 480px) */
@media (max-width: 480px) {
    .colCounter {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 5px;
    }
}

/* Standardlayout für größere Bildschirme (Desktop) */
.suchform-margin {
  margin-top: -150px;  /* Für Desktop */
}

/* Layout für kleinere Bildschirme (Handy) */
@media (max-width: 768px) {
  .suchform-margin {
      margin-top: 0;  /* Entfernt die Margin-top auf Handys */
  }
}

/* Verhindert horizontales Scrollen auf der gesamten Seite */
html, body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Verhindert horizontales Scrollen auf der gesamten Seite */
html, body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}

.vehicle-container {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 5px;
    gap: 5px; /* Weniger Abstand zwischen den Cards */
    flex-wrap: wrap;
}

.vehicle-item {
    display: flex;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 70%; /* Breitere Karten */
    max-width: 1000px;
    min-width: 400px; /* Kleinere minimale Breite */
    height: 250px; /* Fixierte Höhe */
    margin-top: 5px;
    margin-bottom: 5px;
    box-sizing: border-box; /* Verhindert, dass Padding und Border die Breite überschreiten */
}

.vehicle-image {
    width: 45%; /* Bildgröße */
    height: 100%; /* Fixierte Höhe */
    object-fit: cover; /* Schneidet das Bild zu, um die Card-Größe beizubehalten */
    flex-shrink: 0; /* Verhindert, dass das Bild schrumpft */
    max-width: 45%; /* Verhindert Skalierung auf großen Geräten */
    max-height: 100%; /* Stellt sicher, dass das Bild nicht größer als der Container wird */
}

.vehicle-standard-image {
  object-fit: contain; /* Verhindert Verzerrung */
  max-width: 45%; /* Begrenzung der Breite für das Standardbild */
  padding: 5%; /* Zentriert das Bild innerhalb des Containers */
}

.vehicle-details {
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
    flex-grow: 1;
    overflow: hidden;
}

.vehicle-title {
    margin: 0;
    font-size: 18px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vehicle-price,
.vehicle-km,
.vehicle-power,
.vehicle-first-reg {
    margin: 0;
    font-size: 14px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vehicle-button {
    background-color: #850000;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 14px;
    transition: 0.3s;
    align-self: flex-start;
}

.vehicle-button:hover {
    background-color: #373b3e;
}

/* Responsive Design */
@media (max-width: 768px) {
    .vehicle-item {
        width: 100%; /* Karten auf kleinere Bildschirme anpassen */
        height: 250px; /* Höhe fixiert, um das Skalieren zu verhindern */
        margin-top: 3px;
        margin-bottom: 3px;
    }

    .vehicle-image {
        width: 50%; /* Bildgröße auf 50% setzen */
        height: 100%; /* Fixierte Höhe des Bildes */
        object-fit: cover; /* Bild bleibt proportional und schneidet zu */
        max-width: 100%; /* Verhindert Skalierung des Bildes */
        max-height: 100%; /* Verhindert Skalierung des Bildes */
    }

    .vehicle-standard-image {
      width: 50%; /* Bildgröße auf 50% setzen */
      height: 100%; /* Fixierte Höhe des Bildes */
      object-fit: contain; /* Verhindert Verzerrung */
      max-width: 100%; /* Begrenzung der Breite für das Standardbild */
      max-height: 100%; /* Verhindert Skalierung des Bildes */
      padding: 5%; /* Zentriert das Bild innerhalb des Containers */
    }

    .vehicle-details {
        font-size: 14px; /* Kleinere Schriftgröße */
    }
}



.filter-button {
  max-width: 90%;
  padding: 10px;
}

.lighter {
  color: rgb(143, 143, 143);
  font-weight: normal;
  display: inline-block;
}

.plusSVG {
  vertical-align: middle;
  margin-left: auto;
}

/* Aktive Seite: Weißer Text & Hintergrund in #850000 */
.page-item.active .page-link {
  background-color: #850000 !important;
  border-color: #850000 !important;
  color: #ffffff !important;
}

/* Standard-Farbe für nicht ausgewählte Felder */
.page-link {
  color: #212529 !important;
}

/* Hover-Effekt für bessere UX */
.page-link:hover {
  background-color: #c2c2c2 !important;
  border-color: #c2c2c2 !important;
  color: #212529 !important;
}

.page-link:active, 
.page-link:focus {
  box-shadow: none !important; /* Kein Schatten beim Klicken */
}

.form-check-input {
  box-shadow: none !important; /* Entfernt den Schatten */
  border-color: #850000; /* Optionale Anpassung der Randfarbe */
}

.form-check-input:checked {
  background-color: #850000 !important; /* Hintergrundfarbe für aktive Checkbox */
  border-color: #850000 !important; /* Randfarbe für Konsistenz */
}

.form-check-input:checked::before {
  color: white !important; /* Weiße Hakenfarbe */
}

/* Schatten entfernen */
.form-select {
  box-shadow: none !important;
}