

/* Zentrale Schriftart-Definition für alle Plugin-Elemente */
.autoforce1-container,
.autoforce1-filter,
.autoforce1-list,
.auto-item,
.expandable-container,
#auto-basisdaten,
#auto-technische-daten,
#auto-ausstattung,
#auto-langbeschreibung,
#email-senden,
.main_car,
.expandable-header,
.expandable-content,
.auto-header h2,
.auto-price,
.auto-details .detail,
.details-link,
.spec-item,
.spec-label,
.spec-value,
.view-more-button,
#anfrageFormular,
#anfrageFormular input[type="submit"],  /* Hinzugefügt für Submit-Buttons im Formular */
.desktop-anfrage input[type="submit"],  /* Hinzugefügt für Submit-Buttons im desktop-anfrage Container */
#contact-options,
.autoforce1-taxonomy-links,
.modellmenue,
.auto-header,
.btn,  /* Alle Bootstrap-Buttons */
.btn-success,  /* WhatsApp-Button */
.btn-info,  /* Anrufen-Button */
.main_car .right_detail_car #auto-titel,
.seo-heins-headline,
.desktop-anfrage  /* Der gesamte Anfragebereich */
{
  font-family: Anek Bangla, sans-serif !important;
}

/* Spezifischere Regel für Buttons, um sicherzustellen, dass sie die Schriftart übernehmen */
button,
input[type="button"],
input[type="reset"],
input[type="submit"],
.btn,
.btn-success,
.btn-info,
.btn-lg,
.btn-primary,
a.btn {
  font-family: Anek Bangla, sans-serif !important;
}

/* Gemeinsame Stile für interaktive Elemente */
.btns .auto-price,
.btns .details-link,
.price_and_back #auto-preis,
.autoforce1-filter form button,
#anfrageFormular input[type="submit"],
#contact-options .btn-success,
#contact-options .btn-info,
.btn-success,
.btn-info,
.details-link,
#email-senden input[type="submit"] {
  background-color: #cb1517;
  color: #ffffff;
  cursor: pointer;
  border: none;
  font-weight: 600;
  letter-spacing: 3px;
  transition: all .3s;
  text-transform: uppercase;
}

.price_and_back #auto-preis:hover,
.autoforce1-filter form button:hover,
#anfrageFormular input[type="submit"]:hover,
#contact-options .btn-success:hover,
#contact-options .btn-info:hover,
.btn-success:hover,
.btn-info:hover,
.details-link:hover,
#email-senden input[type="submit"]:hover {
  background-color: #ffffff;
  color: #ffffff !important;
}

/* Expandable Container Styling */
.expandable-container {
    margin-bottom: 15px;
    background-color: #f5f5f5;
    border: none;
}

.expandable-header {
    background-color: #242424;
    color: white;
    padding: 15px 20px;
    font-size: 18px;
    font-weight: 500;
}

.expandable-content {
    position: relative;
    overflow: hidden;
    padding: 20px;
    background-color: #f9f9f9;
    border-left: 3px solid #cb1517;
    max-height: 200px; /* Standardhöhe - wird via JS angepasst */
    transition: max-height 0.3s ease;
}

.expandable-content.expanded {
    max-height: 5000px; /* Sehr hoher Wert, der praktisch unbegrenzte Höhe erlaubt */
}

.content-wrapper {
    overflow: hidden;
}

.expandable-content:not(.expanded)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(to bottom, rgba(249, 249, 249, 0), rgba(249, 249, 249, 1));
    pointer-events: none;
}

.view-more-button {
    display: block;
    background-color: #cb1517;
    color: #ffffff;
    border: none;
    padding: 8px 15px;
    margin: 10px auto 0;
    cursor: pointer;
    text-align: center;
    width: 100%;
    max-width: 200px;
    font-weight: 500;
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    z-index: 2;
}

.view-more-button:hover {
    opacity: 0.9;
}

.expandable-content.expanded .view-more-button {
    position: static;
    transform: none;
    margin-top: 20px;
}

/* Styles für die ausklappbaren Bereiche */
.expandable-container {
  border: 1px solid #ffffff;
  border-left: 0;
  margin-bottom: 15px;
  overflow: hidden;
}

.expandable-header {
  background-color: #242424; /* Dunkelgrauer Hintergrund passend zur Seite */
  color: white;
  padding: 15px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: none;
  transition: all 0.3s ease;
  margin-bottom: 2px;
}

.expandable-content {
  background-color: #f9f9f9; /* Hellgrauer Hintergrund für Inhalte */
  transition: max-height 0.3s ease-in-out;
  border-left: 3px solid #cb1517; /* Seitliche Akzentlinie */
  padding: 20px;
}

/* Modellmenü */
#filter-button {
  display: none;
}

.modellmenue ul, 
.autoforce1-taxonomy-links {
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.autoforce1-taxonomy-links {
  justify-content: center;
}

.modellmenue li,
.autoforce1-taxonomy-links .taxonomy-link-item {
  background-color: #f0f0f0;
  border: 1px solid #ccc;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
}

.modellmenue li:hover,
.autoforce1-taxonomy-links .taxonomy-link-item:hover {
  background-color: #e0e0e0;
}

.modellmenue li a,
.autoforce1-taxonomy-links .taxonomy-link-item a {
  text-decoration: none;
  color: #333;
  display: block;
}

/* Grundlegende Formular-Styles */
#email-senden {
  font-family: Arial, sans-serif;
  max-width: 600px;
  margin: 20px auto;
  padding: 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#email-senden h2 {
  text-align: center;
  color: #333;
}

#email-senden label {
  margin-top: 10px;
  display: block;
  color: #666;
}

#email-senden input[type="text"],
#email-senden input[type="tel"],
#email-senden input[type="email"],
#email-senden textarea {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border: 1px solid #ddd;
  border-radius: 5px;
  box-sizing: border-box;
}

#email-senden textarea {
  resize: vertical !important;
  overflow-y: scroll !important;
}

#email-senden textarea::-webkit-scrollbar {
  width: 10px !important;
}

#email-senden textarea::-webkit-scrollbar-track {
  background: #f1f1f1;
}

#email-senden textarea::-webkit-scrollbar-thumb {
  background-color: gray;
}

/* Fokuseffekt für Eingabefelder */
#email-senden input[type="text"]:focus,
#email-senden input[type="tel"]:focus,
#email-senden input[type="email"]:focus,
#email-senden textarea:focus {
  border-color: #0056b3;
  outline: none;
}

#deinname,
#telefonnummer,
#email,
#nachricht {
  margin: 0 !important;
}

.head-container h1.seo-heins-headline {
  margin-bottom: 30px;
}

.seo-heins-headline {
  font-size: 42px !important;
  text-align: center;
  color: #333333 !important;
}

/* Auto-Item Styling */
.auto-item {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  border: 1px solid #ffffff;
  border-left: 3px solid #cb1517;
  padding: 20px;
  margin-bottom: 20px;
  background-color: #f9f9f9;
}

.auto-image {
  flex-basis: 20%;
  flex-shrink: 0;
  padding-right: 20px;
}

.auto-image img {
  width: 100%;
  height: auto;
  max-width: 150px;
  border: 1px solid #ccc;
}

.auto-content {
  flex-grow: 1;
}

.auto-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.auto-header h2 {
  margin: 0;
}

.auto-price {
  background-color: #cb1517;
  color: #ffffff;
  padding: 5px 15px;
}

.auto-details {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.auto-details .detail {
  flex: 1 1 calc(50% - 10px);
  display: flex;
  align-items: center;
  min-height: 50px;
  padding: 0 10px;
  box-sizing: border-box;
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 5px;
  min-width: 200px;
  margin-bottom: 10px;
}

.auto-details .detail:nth-child(2n+0) {
  margin-left: auto;
}

/* Contact Buttons */
#anfrageFormular input[type="submit"],
.btn-success,
.btn-info {
  display: block !important;
  width: 100% !important;
  padding: 10px 20px !important;
  font-size: 18px !important;
  line-height: 1.5 !important;
  text-align: center !important;
  text-decoration: none !important;
  margin-bottom: 10px !important;
}

#contact-options .btn-success,
#contact-options .btn-info {
  padding: 20px !important;
  font-size: 20px !important;
  margin-bottom: 20px !important;
  margin-top: 20px !important;
  line-height: 0.5 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  text-shadow: none !important;
  transition: none !important;
  font-family: Michroma, sans-serif !important;
}

#contact-options .btn-success i,
#contact-options .btn-info i {
  margin-right: 10px !important;
}

/* Filter Styles */
.autoforce1-filter {
  width: 25%;
  background-color: #F9F9F9;
  padding: 0px 10px;
  border-radius: 3px;
  border: 1px solid #ccc;
}

.autoforce1-filter form label {
  color: #5e5e5e;
  display: block;
  width: 100%;
  margin-top: 15px;
  padding-top: 5px;
  text-transform: capitalize;
}

.autoforce1-filter form {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.filter-row {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.filter-col {
  flex: 1;
  margin-right: 15px;
}

.filter-col:last-child {
  margin-right: 0;
}

.autoforce1-filter form select {
  width: 100%;
  border: 1px solid #ccc;
  color: #5e5e5e;
  padding: 8px;
  box-sizing: border-box;
  font-size: 14px;
  padding: 10px 7px;
  border-radius:10px;
}

.autoforce1-wrapper {
  display: flex;
}

.no-link,
.no-link * {
  text-decoration: none !important;
  color: inherit;
  display: inherit;
  width: inherit;
  height: inherit;
}

/* Carousel Styles */
@mixin aspect-ratio($width, $height) {
  position: relative;

  &:before {
    display: block;
    content: '';
    width: 100%;
    padding-top: (\$height / \$width) * 100%;
  }

  >img {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
  }
}

section {
  background: #F4F4F4;
  padding: 50px 0;
}

.container {
  max-width: 1044px;
  margin: 0 auto;
  padding: 0 20px;
}

.carousel {
  display: block;
  text-align: left;
  position: relative;
  margin-bottom: 22px;
}

.carousel__slides {
  position: relative;
  z-index: 1;
  padding: 0;
  margin: 0;
  overflow: hidden;
  white-space: nowrap;
  box-sizing: border-box;
  display: flex;
}

.carousel__slide {
  position: relative;
  display: block;
  flex: 1 0 100%;
  width: 100%;
  height: 100%;
  overflow: hidden;
  transition: all 300ms ease-out;
  vertical-align: top;
  box-sizing: border-box;
  white-space: normal;
  min-height: 500px; /* Increased from default */
}

.carousel__slide figure {
  margin: 0;
  height: 100%;
}

.carousel__slide figure div {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.carousel__slide figure img {
  width: 100%;
  height: auto;
  display: block;
  max-height: none; /* Remove any height restrictions */
}

.carousel__slide div {
  width: 100%;
}

.carousel__slide img {
  display: block;
  flex: 1 1 auto;
  object-fit: cover;
}

.carousel__slide figcaption {
  align-self: flex-end;
  padding: 20px 20px 0 20px;
  flex: 0 0 auto;
  width: 25%;
  min-width: 150px;
}

.carousel__slide .credit {
  margin-top: 1rem;
  color: rgba(0, 0, 0, 0.5);
  display: block;
}

.carousel__thumbnails {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.carousel>input {
  width: 0px;
  height: 0px;
  margin: 0px;
  padding: 0px;
  border: none;
  opacity: 0;
  position: absolute;
}

.page-header {
  display: none;
}

body section {
  padding: 0;
  background-color: transparent;
}

.autoforce1-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.autoforce1-list {
  width: 70%;
  margin-left: auto;
}

.autoforce1-list .pagination {
  text-align: center;
}

.autoforce1-list .pagination span,
.autoforce1-list .pagination a {
  border: 1px solid #ccc;
  width: 30px;
  height: 30px;
  display: inline-block;
  padding-top: 1px;
}

.autoforce1-list .pagination a {
  text-decoration: none;
}

.autoforce1-list .auto-header h2 {
  font-size: 20px;
  line-height: 25px;
}

.auto-item .auto-item-first {
  width: 30%;
}

.auto-item .auto-item-second {
  width: 65%;
  margin-left: auto;
}

.auto-item .auto-item-first .auto-image {
  padding-right: 0;
  margin-right: 0;
}

.auto-item .auto-item-first img {
  max-width: 100%;
}

.auto-item .auto-item-second .btns {
  display: flex;
  justify-content: space-between;
}

.main_car {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 30px;
  margin-top: 20px;
}

.desktop-beschreibung,
.desktop-basisdaten {
  padding: 20px;
  border: 1px solid #20201f;
  //box-shadow: 0 5px 10px black;
}

.desktop-beschreibung {
    margin-bottom: 20px;
}

.main_car .left_detail_car {
  width: 58%;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.main_car .right_detail_car {
  width: 40%;
  position: relative;
  margin-left: auto;
  padding: 20px 15px;
}

.main_car .left_detail_car .carousel__thumbnails {
  margin-top: 20px;
  padding: 0;
  border-bottom: 1px solid #ccc;
  padding-bottom: 20px;
}

.main_car .left_detail_car .carousel__thumbnails li {
  list-style: none;
  display: inline;
  cursor: pointer;
  width: 50px;
  height: 50px;
  max-width: calc((100% / 10) - 20px);
}

.main_car .left_detail_car .carousel__thumbnails li label {
  cursor: pointer;
  width: 50px;
  height: 50px;
}

.main_car .left_detail_car .carousel__thumbnails li label img {
  width: 50px;
  height: 40px;
}

.main_car .right_detail_car #auto-titel {
  font-size: 30px;
  margin-top: 50px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.main_car .right_detail_car #back-button {
  position: absolute;
  top: 0;
  left: 0;
}

.main_car .right_detail_car #back-button a {
  color: #fff;
  background-color: #000;
  padding: 10px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 18px;
  text-decoration: none;
  border-bottom-right-radius: 10px;
  height: 44px;
  width: 100%;
  transition: all .3s;
}

.main_car .right_detail_car #back-button a:hover {
    color: #fdc411;
}

.main_car .right_detail_car p {
  margin: 0;
  padding: 5px 0;
}

.main_car .right_detail_car strong {
  font-weight: bold;
}

.main_car .right_detail_car #auto-beschreibung {
  font-weight: bold;
  margin-bottom: 12px;
}

.slider-image {
  object-fit: cover !important; /* Changed from contain to cover */
  width: 100%;
  height: 100%;
  max-height: none; /* Remove height restriction */
}

/* Responsive Sliders */
.slider-for {
  min-height: 500px; /* Set minimum height for slider container */
}

.slider-for .slick-slide {
  min-height: 500px; /* Increased height */
  height: auto;
  position: relative;
}

.slider-nav {
  margin-top: 10px;
  height: 100px;
}

.slider-nav .slick-slide {
  height: 100px;
  position: relative;
  border: 5px solid #fff;
  cursor: pointer;
}

.slider-for .slick-slide img,
.slider-nav .slick-slide img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.slick-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9;
  padding: 10px 3px 6px 3px;
  background-color: rgba(255, 255, 255, 0.7);
}

.slick-next {
  right: 0;
}

.slick-arrow img {
  width: 30px;
}

.slick-previous {
  left: 0;
}

.left_detail_car .price_and_back, .mobile-anfrage, .mobile-basisdaten {
  display: none;
}

.main_car .left_detail_car #auto-titel {
  display: none;
}

.custom_paging {
  position: absolute;
  bottom: 0;
  right: 0;
  background-color: #000;
  color: #fff;
  padding: 4px 0;
  width: 52px;
  text-align: center;
  border-top-left-radius: 5px;
  z-index: 5;
}

.custom_paging li {
  display: none;
}

.custom_paging li.slick-active {
  display: inline-block;
  font-weight: bold;
}

/* Lightbox Styles */
.lightbox {
  display: none;
  position: fixed;
  z-index: 999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
}

.lightbox img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100vh;
  z-index: 90 !important;
}

.close {
  position: absolute;
  top: 10px;
  right: 20px;
  color: #fff;
  font-size: 30px;
  cursor: pointer;
  z-index: 100;
}

.next,
.previous {
  position: absolute;
  color: #fff;
  font-size: 30px;
  cursor: pointer;
  top: 50%;
  transform: translateY(-50%);
}

.next {
  right: 20px;
}

.previous {
  left: 20px;
}

.lightbox .next,
.lightbox .previous {
  top: 49% !important;
  z-index: 100;
  background-color: #e3232e;
  height: 45px;
  width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 35px;
}

.lightbox .next {
  border-radius: 0 7px 7px 0;
  right: 10px
}

.lightbox .previous {
  border-radius: 7px 0 0 7px;
  left: 10px;
}

.lightbox .image-count {
  position: absolute !important;
  bottom: 30px !important;
  left: 50% !important;
  z-index: 1000 !important;
  color: #ffff;
  font-size: 14px;
  background-color: #000000;
  padding: 0 7px;
}

/* Slider heights for different screen sizes */
@media screen and (max-width: 539px) {
  .slider-for, .carousel__slide, .slider-for .slick-slide {
    min-height: 450px;
  }
}

@media screen and (min-width: 540px) and (max-width: 767px) {
  .slider-for, .carousel__slide, .slider-for .slick-slide {
    min-height: 470px;
  }
}

@media screen and (min-width: 768px) and (max-width: 1023px) {
  .slider-for, .carousel__slide, .slider-for .slick-slide {
    min-height: 550px;
  }
}

@media screen and (min-width: 1024px) {
  .slider-for, .carousel__slide, .slider-for .slick-slide {
    min-height: 650px;
  }
}

/* Spec Items */
#auto-basisdaten, 
#auto-technische-daten {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  margin-bottom: 20px;
}

.spec-item {
  display: flex;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
  width: 50%;
  box-sizing: border-box;
}

.spec-item:nth-child(odd) {
  padding-right: 10px;
}

.spec-item:nth-child(even) {
  padding-left: 10px;
}

#auto-basisdaten .spec-item:last-child {
  border-bottom: 1px solid #f0f0f0;
}

.spec-value {
  font-size: 16px;
  font-weight: 600;
  color: #222;
  word-break: break-word;
  min-height: 20px;
}

.spec-item .icon {
  width: 28px;
  min-width: 28px;
  height: 28px;
  margin-right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #B500FF;
}

.spec-item .icon svg {
  width: 20px;
  height: 20px;
}

.spec-label {
  font-size: 13px;
  color: #777;
  margin-bottom: 3px;
}

.filter-col.full-width {
    width: 100%;
    margin-right: 0;
}

.slider-container {
    padding: 10px 10px 25px;
    margin-bottom: 20px;
    position: relative;
}

.slider-range {
    margin: 15px 5px 25px 5px;
    height: 10px;
}

.slider-values {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 0.9em;
    position: absolute;
    width: 100%;
    left: 0;
    padding: 0 10px;
    box-sizing: border-box;
}

.ui-slider-horizontal {
    height: 8px;
    background: #e0e0e0;
    border: none;
    border-radius: 4px;
}

.ui-slider .ui-slider-handle {
    width: 24px;  /* Größer für bessere Touch-Unterstützung */
    height: 24px; /* Größer für bessere Touch-Unterstützung */
    border-radius: 50%;
    border: 2px solid #fff;
    cursor: pointer;
    background: #3498db;
    outline: none;
    top: -8px;    /* Angepasst für die neue Größe */
    margin-left: -12px; /* Angepasst für die neue Größe */
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    touch-action: none; /* Wichtig für besseres Touch-Verhalten */
}

.ui-slider-range {
    background: #3498db;
    border-radius: 4px;
}

.elegant-price {
    display: inline-block;
    position: relative;
    background-color: #B500FF;
    color: white;
    font-size: 40px;
    font-weight: 700;
    padding: 12px 18px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transform: rotate(8deg);
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.elegant-price::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0));
    border-radius: 4px 4px 0 0;
    pointer-events: none;
}

/* Spezielle Touch-Anpassungen */
@media (max-width: 768px) {
    .slider-container {
        padding-bottom: 30px;
    }
    
    /* Erhöhter unsichtbarer Touch-Bereich für die Handles */
    .ui-slider .ui-slider-handle:before {
        content: '';
        position: absolute;
        width: 44px;
        height: 44px;
        left: -10px;
        top: -10px;
        z-index: -1;
    }
    
    /* Mehr Abstand für die Slider */
    .slider-range {
        margin-top: 20px;
        margin-bottom: 30px;
    }
    
    /* Größeren Abstand zwischen den Filtern */
    .filter-row {
        margin-bottom: 25px;
    }
}

/* Responsive Styles */
@media (max-width: 768px) {
  #filter-button {
    display: block;
    width: 100%;
    padding: 15px;
    font-size: 18px;
    text-align: center;
    color: #000;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 20px;
  }

  .autoforce1-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  .auto-item {
    flex-direction: column;
  }

  .auto-image {
    max-width: 100%;
    margin-bottom: 20px;
  }

  .auto-content {
    padding-left: 0;
    padding-right: 0;
  }

  .next,
  .previous {
    font-size: 24px;
  }

  .desktop-anfrage {
    display: none;
  }

  .desktop-basisdaten {
    display: none;
  }

  .mobile-anfrage {
    margin-top: 1rem;
  }

  .mobile-basisdaten {
    margin-left: 1rem;
    margin-top: 2rem;
  }

  .auto-item .auto-item-first {
    width: 100%;
  }

  .auto-item .auto-item-second {
    width: 100%;
  }

  .auto-details .detail {
    min-width: 49%;
  }
}

@media (max-width: 580px) {
  .spec-item {
    width: 100%;
    padding: 8px 0;
  }
  
  .spec-item:nth-child(odd),
  .spec-item:nth-child(even) {
    padding-right: 0;
    padding-left: 0;
  }
}

@media (max-width: 500px) {
  #filter-button {
    margin-top: 10px;
    margin-bottom: 10px;
  }

  #email-senden {
    padding: 15px !important;
  }

  #nachricht {
    height: 200px;
  }

  .auto-details .detail {
    min-width: 100%;
  }

  .auto-item .auto-item-second .btns {
    display: block;
  }

  .auto-item .auto-item-second span.auto-price {
    width: 100%;
    margin-bottom: 20px;
    display: block;
  }

  .auto-item .auto-item-second a.details-link {
    width: 100%;
  }

  .main_car .left_detail_car .carousel__thumbnails li {
    max-width: calc((100% / 5) - 20px);
  }

  .carousel__thumbnails {
    gap: 8px;
  }

  .main_car .right_detail_car #auto-titel {
    font-size: 21px;
    margin-top: 92px;
  }

  .main_car .right_detail_car #back-button {
    width: 100%;
  }

  .main_car .right_detail_car #back-button a {
    text-align: center;
    width: 100%;
    border-radius: 0;
  }

  .main_car .right_detail_car #auto-preis {
    margin-top: 44px;
    width: 100%;
    border-radius: 0;
  }

  .left_detail_car .price_and_back {
    display: block;
  }

  .main_car .left_detail_car #auto-preis {
    width: 100%;
  }

  .main_car .left_detail_car #back-button {
    width: 100%;
  }

  .next,
  .previous {
    font-size: 20px;
    top: auto;
    bottom: 20px;
    transform: translateY(0);
  }

  .next {
    right: 30px;
  }

  .previous {
    left: 30px;
  }
}

/* Slider heights for different screen sizes */
@media screen and (max-width: 539px) {
  .slider-for {
    height: 300px;
  }
}

@media screen and (min-width: 540px) and (max-width: 767px) {
  .slider-for {
    height: 270px;
  }
}

@media screen and (min-width: 768px) and (max-width: 1023px) {
  .slider-for {
    height: 350px;
  }
}


@media screen and (min-width: 1024px) {
  .slider-for, .carousel__slide, .slider-for .slick-slide {
    min-height: 455px;
    max-height: 300px; /* Reduced by 30% */
  }
}

/* --------------*/
/* DETAILANSICHT */
/* --------------*/

.elementor-62835 {
	background-color:#e0e0e0;
}

.elegant-price::before {
	background:none;
}

.elegant-price {
	box-shadow: none;
  text-shadow: none;
}

.desktop-beschreibung {
		border-radius: 10px;
background: linear-gradient(145deg, #ececec, #f0f0f0);
box-shadow:  5px 5px 20px #bebebe,
             -5px -5px 20px #ffffff;
	border:none;
min-height: 42px;
}

.desktop-basisdaten {
		border-radius: 10px;
background: linear-gradient(145deg, #ececec, #f0f0f0);
box-shadow:  5px 5px 20px #bebebe,
             -5px -5px 20px #ffffff;
	border:none;
min-height: 42px;
}

.right_detail_car .desktop-anfrage input, .right_detail_car .desktop-anfrage .btn {
	border-radius:10px!important;
	overflow:hidden;
}

.slick-slide img {
	border-radius:10px;
	top:17px;
}

.slick-slide{
	border-radius:15px;
	margin:2px;
}

.slider-for {
	border-radius:15px!important;
}

.slider-for .slick-prev{
	border-radius:0 10px 10px 0;
}

.slider-for .slick-next{
	border-radius:10px 0 0 10px;
}

.slider-for .slick-prev, .slider-for .slick-next {
  width:62px;
	transition:0.5s;

}

.slider-for .slick-prev:hover, .slider-for .slick-next:hover {
	width:100px;
	transition:0.5s;
	background-color:#B500FF!important;
}

/* container */

.expandable-container{
			border-radius: 10px;
background: linear-gradient(145deg, #ececec, #f0f0f0);
box-shadow:  5px 5px 20px #bebebe,
             -5px -5px 20px #ffffff;
	border:none;
min-height: 42px;
}

.expandable-content {
	background:none;
	border:none;
}

.view-more-button {
	border-radius:10px!important;
}

.view-more-button:hover {
	background:#B500FF!important;
}
	
	.price_and_back #auto-preis, .price_and_back #back-button {
		margin-bottom:15px!important;
		border-radius:10px!important;
		overflow:hidden;
	}

.price_and_back #back-button {
	margin-left:10px;
}

/* querrys */

@media (max-width: 500px) {

	.price_and_back {
		flex-wrap: wrap;
	}
	
	.price_and_back #auto-preis, .price_and_back #back-button {
  width: 100%!important;
margin-left:0px;
}
	
	.slider-for .slick-slide img {
		min-height:300px;
	}	
	
}

@media only screen and (max-width: 765px) {
  .main_car .left_detail_car #auto-ausstattung {
    margin-bottom: 0px !important;
  }
	.desktop-basisdaten {
    display: block;
  }
}

/* --------- */
/* Auto-item */
/* --------- */

.auto-item {
	flex-wrap: wrap;
	
	border-radius: 20px;
background: linear-gradient(145deg, #f0f0f0, #cacaca);
box-shadow:  20px 20px 60px #bebebe,
             -20px -20px 60px #ffffff;
	border:1px solid #ddd;
}

.ui-slider-range {
  background: #B500FF!important;
}

#sortierung {
  flex-wrap: wrap;
  border-radius: 20px;
  background: linear-gradient(145deg, #f0f0f0, #cacaca);
  box-shadow: 20px 20px 60px #bebebe, -20px -20px 60px #ffffff;
  border: 1px solid #ccc;
  margin-bottom: 15px;
}

.auto-header {
  width: 100%;
}

.auto-item .auto-item-first {
  width: 37%;
	border-radius:20px;
	overflow:hidden;
}

.auto-item .auto-item-second {
  width: 60%;
  margin-left: auto;
}


.auto-details .detail {
	border-radius: 10px;
background: linear-gradient(145deg, #ececec, #f0f0f0);
box-shadow:  5px 5px 20px #bebebe,
             -5px -5px 20px #ffffff;
	border:none;
min-height: 42px;
}

.auto-details .detail:hover {
background: #fff!important;

}

.auto-item .auto-item-second span.auto-price, .auto-item .auto-item-second a.details-link {
 border-radius:10px;
 min-width:200px;
}

.auto-item .auto-item-second span.auto-price:hover, .auto-item .auto-item-second a.details-link:hover {
background-color:#B500FF;	
}

.auto-item .auto-item-second .btns {
  display: flex;
  justify-content: space-between;
	flex-wrap: wrap;
}

.auto-item .icon {
	margin-top:7px;
	color: #B500FF!important;	
}

.auto-item .detail strong {
  font-size: 12px!important;
  color: #777!important;
	margin-left:10px;
}

#sortform {
  width: 100%;
  height: 50px;
  position: relative;
}

#sortformrow{position:absolute;
right:0px;
width:270px;
}

#sortformfoundcar {position:absolute; margin-top:10px;}
#sortformrow label{display:none;}

/* pagination */

.custom-pagination .current {border-radius:10px; border:none!important;}

.custom-pagination a {border-radius:10px; color:black;}

.custom-pagination a:hover {border-radius:10px;
border:none!important;}

.dots {
  margin-right: 4px;
	border-radius:10px;
}

/* Main Elements */

.elementor-94476, .post-91022 {
	background-color:#e0e0e0;
}

h1.seo-heins-headline {
	position:relative;
}


/* Sidebar */

.autoforce1-filter {
	border-radius: 20px;
background: linear-gradient(145deg, #f0f0f0, #cacaca);
box-shadow:  20px 20px 60px #bebebe,
             -20px -20px 60px #ffffff;
		border:1px solid #ddd;
}

#filter-submit-btn {
margin-top:15px;
border-radius:10px;
}

/* querrys */

@media (max-width: 1370px) {

	.auto-item .auto-item-first {margin-bottom:20px;}
	
.auto-item .auto-item-second span.auto-price, .auto-item .auto-item-second a.details-link {
 border-radius:10px;
 width:100%;
}
	
	.auto-item .auto-item-second span.auto-price {margin-bottom:15px;}
	
}


@media (max-width: 1070px) {
	
.auto-item .auto-item-first {
  width: 49%;
  border-radius: 20px;
  overflow: hidden;
}
	
.auto-item .auto-item-first img {border-radius: 20px;}
	
.auto-item .auto-item-second {
		width:100%;
}
	
.auto-item .auto-item-second span.auto-price, .auto-item .auto-item-second a.details-link {
 border-radius:10px;
 width:100%;
}

.main_car .right_detail_car #auto-preis {
  top: 40px!important;
  z-index: 30;
}
	
}

@media (max-width: 870px) {
	
	.auto-item .auto-item-first {
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
}	
}

@media (max-width: 768px) {
  .autoforce1-filter {
    width: 100%;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    padding: 10px;
    height: 100%!important;
  }
#filter-options {width:100%;}
}

/* Gemeinsame Stile für alle Listen im Dokument - entfernt die Standard-Bullets */
ul {
    list-style: none;
}

/* Stile für die Ausstattungsliste (Hauptliste mit Spalten) */
#auto-ausstattung .ausstattung-liste {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
}

#auto-ausstattung .ausstattung-item {
    width: 33.33%; /* 3 Spalten auf Desktop */
    padding: 5px 5px 5px 28px; /* Mehr horizontalen Abstand */
    position: relative;
    box-sizing: border-box;
    margin-bottom: 8px; /* Vertikaler Abstand zwischen Elementen */
    overflow-wrap: break-word; /* Wörter umbrechen bei Bedarf */
    word-break: break-word; /* Alternative für besseren Umbruch */
    hyphens: auto; /* Silbentrennung wenn möglich */
}

#auto-ausstattung .ausstattung-item::before {
    content: "✓";
    position: absolute;
    left: 5px; /* Leicht nach rechts gerückt */
    top: 5px;
    color: #cb1517;
}

/* Responsive Design für Ausstattungsliste */
@media (max-width: 900px) {
    #auto-ausstattung .ausstattung-item {
        width: 50%; /* 2 Spalten bereits bei 900px */
    }
}

@media (max-width: 550px) {
    #auto-ausstattung .ausstattung-item {
        width: 100%; /* 1 Spalte auf Smartphones */
    }
}

@media (max-width: 480px) {
    .btns .auto-price, .btns .details-link {
        width: 100%!important; /* 1 Spalte auf Smartphones */
    }
}

/* CSS für die Langbeschreibung - spezifischer Selektor für diesen Bereich */
#auto-langbeschreibung .content-wrapper ul {
    list-style: none;
    padding-left: 0;
}

#auto-langbeschreibung .content-wrapper ul li:first-child {
    padding-left: 0;
}

#auto-langbeschreibung .content-wrapper ul li:not(:first-child) {
    position: relative;
    padding-left: 25px; /* Platz für Häkchen */
    margin-bottom: 8px;
}

#auto-langbeschreibung .content-wrapper ul li:not(:first-child)::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 3px; /* Leicht nach unten verschoben */
    color: #cb1517;
}

/* CSS für die Highlights der Ausstattung (Screenshot-Bereich) */
/* Dies nimmt an, dass diese in einem anderen Bereich sind oder eine eigene Klasse haben */
.highlights-liste li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 8px;
    line-height: 1.5;
}

.highlights-liste li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 3px;
    color: #cb1517;
}


/* ----------- */
/* Theme Color */
/* ----------- */

/* ---Light BG--- */

/* general */
.elementor-94476, .post-91022, .elementor-62835 {
	background-color:#ffffff;
}

/* sidebar */
.autoforce1-filter {
  display: flex;
  align-items: flex-start;
	height: 870px;
	  box-shadow: 10px 10px 20px #e8e8e8, -10px -10px 20px #fff;
	  background: linear-gradient(145deg, #ffffff, #eee)
}

#sortierung {
  background: linear-gradient(145deg, #ffffff, #eee);
  box-shadow: 10px 10px 20px #e8e8e8, -10px -10px 20px #fff;
  border: 1px solid #ccc;
 }

/* list */
.auto-item {
  background: linear-gradient(145deg, #ffffff, #eee);
  box-shadow: 10px 10px 20px #e8e8e8, -10px -10px 20px #fff;
}

/* detail */

.desktop-beschreibung,
.desktop-basisdaten, .expandable-container {
	box-shadow: 5px 5px 20px #e8e8e8, -5px -5px 20px #ffffff;
}

