.d35-vehicle-shop-section {
  display: grid;
  gap: 1.5rem;
}

.d35-carousel-skeleton {
  display: flex;
  gap: 1rem;
  overflow: hidden;
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.d35-vehicle-shop-section__viewport {
  position: relative;
  min-height: 546px;
}

.d35-carousel-skeleton__card {
  flex: 0 0 340px;
  height: 546px;
  border-radius: var(--d35-radius);
  background: #fff;
  border: 1px solid var(--d35-color-border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.d35-carousel-skeleton__card::before {
  content: "";
  display: block;
  height: 220px;
  background: #f0f0f0;
  flex-shrink: 0;
}

.d35-carousel-skeleton__card::after {
  content: "";
  display: block;
  flex: 1;
  margin: 1rem;
  border-radius: 4px;
  background: linear-gradient(
    to bottom,
    #e8e8e8 0.75rem, transparent 0.75rem,
    transparent 1.25rem, #e8e8e8 1.25rem,
    #e8e8e8 2.5rem, transparent 2.5rem,
    transparent 3.25rem, #efefef 3.25rem,
    #efefef 4.25rem, transparent 4.25rem,
    transparent 5rem, #efefef 5rem,
    #efefef 5.875rem, transparent 5.875rem,
    transparent 6.75rem, #efefef 6.75rem,
    #efefef 7.375rem, transparent 7.375rem
  );
}

.d35-carousel-skeleton {
  animation: d35-skeleton-shimmer 1.4s ease-in-out infinite;
}

@keyframes d35-skeleton-shimmer {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.d35-vehicle-shop-section__inner {
  display: grid;
}

.d35-vehicle-shop-section__viewport {
  overflow: hidden;
  margin-right: calc(50% - 50vw);
  padding-right: max(var(--d35-gap), calc(50vw - 50%));
}


.d35-vehicle-shop-section__box {
  display: grid;
  gap: 1.25rem;
  width: min(100%, var(--d35-container));
  margin-inline: auto;
  padding: clamp(1.25rem, 2vw, 2rem);
  border-radius: var(--d35-radius);
  background: var(--d35-color-surface);
  color: var(--d35-color-text);
  border: 1px solid var(--d35-color-border);
}

#webshop-widget {
  background: transparent !important;
  background-color: transparent !important;
  color: inherit;
}

#webshop-widget > div,
#webshop-widget .ssr-carousel-slides,
#webshop-widget .ssr-carousel-slide {
  background: transparent !important;
}

.d35-vehicle-shop-section__box #webshop-widget {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0;
}

.d35-vehicle-shop-section custom-elements-wrapper {
  display: block;
  max-width: none !important;
  min-width: 0;
}

.d35-vehicle-shop-section custom-elements-wrapper > * {
  width: max-content;
  min-width: 100%;
  max-width: none;
  min-width: 0;
}

.d35-vehicle-shop-section__box #webshop-widget > *,
.d35-vehicle-shop-section__box #webshop-widget .ssr-carousel,
.d35-vehicle-shop-section__box #webshop-widget .ssr-carousel > * {
  width: max-content;
  min-width: 100%;
  max-width: none;
  min-width: 0;
}

.d35-vehicle-shop-section--carousel #webshop-widget .ssr-carousel-track {
  justify-content: flex-start;
}

.d35-vehicle-shop-section--carousel #webshop-widget .ssr-carousel-slide,
.d35-vehicle-shop-section--carousel #webshop-widget .slide {
  width: clamp(19.5rem, 26vw, 22rem) !important;
  min-width: 312px !important;
  max-width: clamp(19.5rem, 26vw, 22rem) !important;
  flex: 0 0 clamp(19.5rem, 26vw, 22rem) !important;
  overflow: hidden;
}

.d35-vehicle-shop-section--carousel #webshop-widget .ssr-carousel-slide > *,
.d35-vehicle-shop-section--carousel #webshop-widget .slide > * {
  width: 100%;
  min-width: 0;
}

.d35-vehicle-shop-section--quicksearch #webshop-widget #carTypesWrapper,
.d35-vehicle-shop-section--quicksearch #webshop-widget #modelsWrapper,
.d35-vehicle-shop-section--quicksearch
  #webshop-widget
  #usedConditionTypesWrapper,
.d35-vehicle-shop-section--quicksearch #webshop-widget #fuelTypesWrapper,
.d35-vehicle-shop-section--quicksearch #webshop-widget #gearBoxTypesWrapper,
.d35-vehicle-shop-section--quicksearch
  #webshop-widget
  #minInitialRegistrationWrapper,
.d35-vehicle-shop-section--quicksearch #webshop-widget #maxMileAgeWrapper,
.d35-vehicle-shop-section--quicksearch
  #webshop-widget
  #vehicleDealerLocationsWrapper,
.d35-vehicle-shop-section--quicksearch #webshop-widget #engineCapacityMax,
.d35-vehicle-shop-section--quicksearch
  #webshop-widget
  #monthlyFinancingRateExampleMaxWrapper {
  display: none !important;
}

/* Variante d35-qs-finance: Finanzierungsrate zeigen, Leasingrate ausblenden
   (überschreibt die Standard-Quicksearch-Auswahl; gleiche Spezifität, später
   in der Quelle -> gewinnt). */
.d35-qs-finance #webshop-widget #monthlyFinancingRateExampleMaxWrapper {
  display: flex !important;
}

.d35-qs-finance #webshop-widget #monthlyLeasingRateExampleMaxWrapper {
  display: none !important;
}

/* ============================================================
   Kombinierte Such-Box (Waldhausen-Stil): EINE dunkle Box mit
   Volltextsuche (Typ 1) + Button oben und Dropdowns (Typ 2) darunter.
   Inputs/Filter erben das --quicksearch-CSS; hier nur das Box-Layout.
   ============================================================ */
/* Keine dunkle Box: alles auf hellem Seitenhintergrund, dunkle Schrift. */
.d35-vehicle-shop-section--searchbox .d35-vehicle-shop-section__box {
  background: transparent !important;
  color: var(--d35-color-text);
  border: none !important;
  padding: 0 !important;
}

.d35-vehicle-shop-section--searchbox.d35-vehicle-shop-section--quicksearch #webshop-widget label,
.d35-vehicle-shop-section--searchbox.d35-vehicle-shop-section--quicksearch #webshop-widget [id*="Wrapper" i] label,
.d35-vehicle-shop-section--searchbox.d35-vehicle-shop-section--quicksearch #webshop-widget [id*="wrapper" i] label {
  color: var(--d35-color-text) !important;
}

.d35-vehicle-shop-section--searchbox .d35-vehicle-shop-searchbox__heading {
  color: var(--d35-color-text);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.1;
  margin: 0 0 0.5rem;
}

.d35-vehicle-shop-section--searchbox .d35-vehicle-shop-searchbox__sub {
  color: var(--d35-color-muted);
  margin: 0 0 1.5rem;
}

.d35-vehicle-shop-section--searchbox .d35-vehicle-shop-searchbox__row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-bottom: 0.5rem;
}

.d35-vehicle-shop-section--searchbox .d35-vehicle-shop-searchbox__search {
  flex: 1 1 58%;
  min-width: 16rem;
  display: flex;
  align-items: center;
}

/* Such-Widget füllt die Zeilenbreite; Quicksearch-min-height (88px) aufheben,
   damit Suchfeld und CTA auf gleiche (48px-)Höhe kommen. */
.d35-vehicle-shop-section--searchbox .d35-vehicle-shop-searchbox__search > custom-elements-wrapper,
.d35-vehicle-shop-section--searchbox .d35-vehicle-shop-searchbox__search #webshop-widget,
.d35-vehicle-shop-section--searchbox .d35-vehicle-shop-searchbox__search #webshop-widget form {
  width: 100% !important;
}

.d35-vehicle-shop-section--searchbox.d35-vehicle-shop-section--quicksearch #webshop-widget > div > div,
.d35-vehicle-shop-section--searchbox.d35-vehicle-shop-section--quicksearch #webshop-widget form,
.d35-vehicle-shop-section--searchbox.d35-vehicle-shop-section--quicksearch #webshop-widget form.grid,
.d35-vehicle-shop-section--searchbox.d35-vehicle-shop-section--quicksearch #webshop-widget form.grid-cols-2,
.d35-vehicle-shop-section--searchbox.d35-vehicle-shop-section--quicksearch #webshop-widget form.grid-cols-3,
.d35-vehicle-shop-section--searchbox.d35-vehicle-shop-section--quicksearch #webshop-widget form.grid-cols-4 {
  min-height: 0 !important;
  align-items: center !important;
}

.d35-vehicle-shop-section--searchbox .d35-vehicle-shop-searchbox__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 32%;
  min-width: 14rem;
  min-height: 48px;
  padding: 0 1.5rem;
  background: var(--d35-color-primary);
  color: #fff;
  border-radius: var(--d35-radius, 4px);
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: background 0.15s ease;
}

.d35-vehicle-shop-section--searchbox .d35-vehicle-shop-searchbox__cta:hover {
  background: var(--d35-color-primary-hover);
  color: #fff;
}

/* ---- Feinschliff: einheitliche 48px-Höhen + saubere Rahmen ---- */

/* CTA nicht strecken, fix 48px. */
.d35-vehicle-shop-section--searchbox .d35-vehicle-shop-searchbox__cta {
  height: 48px;
  align-self: center;
}

/* „X Ergebnisse"-Button auf Input-Höhe. */
.d35-vehicle-shop-section--searchbox.d35-vehicle-shop-section--quicksearch #webshop-widget .btn-primary {
  min-height: 48px !important;
  height: 48px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Harte schwarze Linien (border-b-2 border-black) -> dezenter Token-Rahmen
   (das sind die „komischen Striche"). */
.d35-vehicle-shop-section--searchbox.d35-vehicle-shop-section--quicksearch #webshop-widget .border-black {
  border-color: var(--d35-color-border) !important;
}

/* Suchfeld (Typ 3): Rahmen als saubere Box auf die Feld-Gruppe, inneres input
   randlos -> kein Doppelrahmen, nicht mehr „glitschi". */
.d35-vehicle-shop-section--searchbox.d35-vehicle-shop-section--quicksearch #webshop-widget #searchTermWrapper .border-b-2 {
  border: 1px solid var(--d35-color-border) !important;
  border-radius: var(--d35-radius, 4px) !important;
  height: 48px !important;
  align-items: center !important;
}

.d35-vehicle-shop-section--searchbox.d35-vehicle-shop-section--quicksearch #webshop-widget #searchTermWrapper input {
  border: 0 !important;
  height: 46px !important;
  min-height: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  line-height: normal !important;
}

/* Leere Info-Buttons ("see detailed input description") ausblenden —
   die rendern als kleine senkrechte Striche an jedem Feld. */
.d35-vehicle-shop-section--searchbox.d35-vehicle-shop-section--quicksearch #webshop-widget button[aria-label="see detailed input description"] {
  display: none !important;
}

/* Einheitliche Schriftgrößen in der Such-Box. */
.d35-vehicle-shop-section--searchbox.d35-vehicle-shop-section--quicksearch #webshop-widget input,
.d35-vehicle-shop-section--searchbox.d35-vehicle-shop-section--quicksearch #webshop-widget select,
.d35-vehicle-shop-section--searchbox.d35-vehicle-shop-section--quicksearch #webshop-widget [id*="wrapper" i] button,
.d35-vehicle-shop-section--searchbox.d35-vehicle-shop-section--quicksearch #webshop-widget [id*="Wrapper" i] button,
.d35-vehicle-shop-section--searchbox.d35-vehicle-shop-section--quicksearch #webshop-widget .btn-primary,
.d35-vehicle-shop-section--searchbox .d35-vehicle-shop-searchbox__cta {
  font-size: 0.9375rem !important;
}

.d35-vehicle-shop-section--searchbox.d35-vehicle-shop-section--quicksearch #webshop-widget label {
  font-size: 0.8125rem !important;
}

/* Such-Submit ist ein <a class="btn-primary"> (absolut rechts) mit Inline
   border-radius:999px -> rechte Ecken auf Box-Radius runden (unser !important
   schlägt das inline 999px ohne !important) und vertikal zentrieren (die inline
   height 41.87px !important lässt sich per CSS nicht ändern, daher zentrieren). */
.d35-vehicle-shop-section--searchbox.d35-vehicle-shop-section--quicksearch #webshop-widget #searchTermWrapper button,
.d35-vehicle-shop-section--searchbox.d35-vehicle-shop-section--quicksearch #webshop-widget #searchTermWrapper a.btn-primary {
  border: 0 !important;
  border-radius: 0 var(--d35-radius, 4px) var(--d35-radius, 4px) 0 !important;
  box-shadow: none !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
}

/* Die kombinierte Box ist höher als die Standard-Quicksearch-Box -> kein
   154px-Skeleton erzwingen. */
.d35-vehicle-shop-section--searchbox .d35-vehicle-shop-section__box:not(.d35-widget-loaded) {
  height: auto;
  min-height: 0;
  padding: 0;
  background: transparent;
  animation: none;
}

/* Inputs/Dropdowns wie beim Kontaktformular: weiße Box, dünner Rahmen rundum,
   leicht abgerundet (überschreibt Pille + border-b-2 aus --quicksearch). */
.d35-vehicle-shop-section--searchbox.d35-vehicle-shop-section--quicksearch #webshop-widget [id*="wrapper" i] button,
.d35-vehicle-shop-section--searchbox.d35-vehicle-shop-section--quicksearch #webshop-widget [id*="Wrapper" i] button,
.d35-vehicle-shop-section--searchbox.d35-vehicle-shop-section--quicksearch #webshop-widget select,
.d35-vehicle-shop-section--searchbox.d35-vehicle-shop-section--quicksearch #webshop-widget input,
.d35-vehicle-shop-section--searchbox.d35-vehicle-shop-section--quicksearch #webshop-widget textarea {
  background: #fff !important;
  border: 1px solid var(--d35-color-border) !important;
  border-radius: var(--d35-radius, 4px) !important;
  min-height: 48px !important;
  height: 48px !important;
  box-shadow: none !important;
}

.d35-vehicle-shop-section--quicksearch #webshop-widget [id*="brand" i],
.d35-vehicle-shop-section--quicksearch #webshop-widget [class*="brand" i],
.d35-vehicle-shop-section--quicksearch #webshop-widget [id*="logo" i],
.d35-vehicle-shop-section--quicksearch #webshop-widget [class*="logo" i] {
  display: none !important;
}

.d35-vehicle-shop-section--quicksearch .d35-vehicle-shop-section__box:not(.d35-widget-loaded) {
  height: 154px;
  padding: 0;
  overflow: hidden;
  background: linear-gradient(90deg, #1a1a1a 0%, #2a2a2a 40%, #1a1a1a 80%);
  background-size: 200% 100%;
  animation: d35-qs-shimmer 1.6s ease-in-out infinite;
  border: none;
}

@keyframes d35-qs-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.d35-vehicle-shop-section__header {
  margin-bottom: 1.5rem;
}

/* Carousel/hash section variants: a single light/dark variant drives the whole
   section — a full-width background band behind the header + widget, plus the
   matching SectionHeader treatment. Vertical padding comes from .d35-section and
   the dark colours from .d35-section-dark; only the light background is here. */
.d35-vehicle-shop-section--carousel.d35-vehicle-shop-section--light,
.d35-vehicle-shop-section--hash.d35-vehicle-shop-section--light {
  background: var(--d35-color-light);
}

.d35-vehicle-shop-section--quicksearch .d35-vehicle-shop-section__box {
  background: #111315;
  color: #fff;
}

.d35-vehicle-shop-section--quicksearch #webshop-widget,
.d35-vehicle-shop-section--quicksearch #webshop-widget > div,
.d35-vehicle-shop-section--quicksearch #webshop-widget > div > div,
.d35-vehicle-shop-section--quicksearch #webshop-widget form,
.d35-vehicle-shop-section--quicksearch #webshop-widget .ssr-carousel-slides {
  width: 100% !important;
  max-width: 100% !important;
  background: transparent !important;
}

.d35-vehicle-shop-section--quicksearch #webshop-widget > div > div,
.d35-vehicle-shop-section--quicksearch #webshop-widget form {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 1rem 1.25rem !important;
  align-items: stretch !important;
  min-height: 88px !important;
}

.d35-vehicle-shop-section--quicksearch #webshop-widget form.grid,
.d35-vehicle-shop-section--quicksearch #webshop-widget form.grid-cols-2,
.d35-vehicle-shop-section--quicksearch #webshop-widget form.grid-cols-3,
.d35-vehicle-shop-section--quicksearch #webshop-widget form.grid-cols-4 {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: stretch !important;
  gap: 1rem 1.25rem !important;
  min-height: 88px !important;
}

.d35-vehicle-shop-section--quicksearch #webshop-widget form.grid > *,
.d35-vehicle-shop-section--quicksearch #webshop-widget form.grid-cols-2 > *,
.d35-vehicle-shop-section--quicksearch #webshop-widget form.grid-cols-3 > *,
.d35-vehicle-shop-section--quicksearch #webshop-widget form.grid-cols-4 > * {
  flex: 1 1 16rem !important;
  min-width: 16rem !important;
  max-width: none !important;
  align-self: stretch !important;
}

.d35-vehicle-shop-section--quicksearch #webshop-widget [id*="Wrapper" i],
.d35-vehicle-shop-section--quicksearch #webshop-widget [id*="wrapper" i] {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 14rem !important;
  min-width: 14rem !important;
  max-width: 100% !important;
}

.d35-vehicle-shop-section--quicksearch-search-results
  #webshop-widget
  [id*="Wrapper" i]:not(#searchTermWrapper):not(:has(button)),
.d35-vehicle-shop-section--quicksearch-search-results
  #webshop-widget
  [id*="wrapper" i]:not(#searchTermWrapper):not(:has(button)) {
  display: none !important;
}

.d35-vehicle-shop-section--quicksearch-search-results #webshop-widget #searchTermWrapper,
.d35-vehicle-shop-section--quicksearch-search-results #webshop-widget [id*="Wrapper" i]:has(button),
.d35-vehicle-shop-section--quicksearch-search-results #webshop-widget [id*="wrapper" i]:has(button) {
  display: flex !important;
}

.d35-vehicle-shop-section--quicksearch #webshop-widget [id*="Wrapper" i] label,
.d35-vehicle-shop-section--quicksearch #webshop-widget [id*="wrapper" i] label,
.d35-vehicle-shop-section--quicksearch #webshop-widget label {
  color: #fff !important;
}

.d35-vehicle-shop-section--quicksearch #webshop-widget select,
.d35-vehicle-shop-section--quicksearch #webshop-widget input,
.d35-vehicle-shop-section--quicksearch #webshop-widget textarea {
  width: 100% !important;
  min-width: 0 !important;
  height: 100% !important;
  min-height: 56px !important;
  background: #fff !important;
  color: #111827 !important;
  border-radius: 0.6rem !important;
}

@media (max-width: 768px) {
  .d35-vehicle-shop-section--quicksearch #webshop-widget select,
  .d35-vehicle-shop-section--quicksearch #webshop-widget input,
  .d35-vehicle-shop-section--quicksearch #webshop-widget textarea {
    min-height: unset !important;
  }
}

.d35-vehicle-shop-section--quicksearch #webshop-widget #searchTermWrapper,
.d35-vehicle-shop-section--quicksearch #webshop-widget #searchTermWrapper input#searchTerm {
  flex-basis: 100% !important;
  min-width: 100% !important;
}

.d35-vehicle-shop-section--quicksearch #webshop-widget #searchTermWrapper input#searchTerm {
  background-color: #fff !important;
}

.d35-vehicle-shop-section--quicksearch #webshop-widget [id*="wrapper" i] button,
.d35-vehicle-shop-section--quicksearch #webshop-widget [id*="Wrapper" i] button {
  background: #fff !important;
  color: #111827 !important;
  border-radius: 999px !important;
}

.d35-vehicle-shop-section--quicksearch #webshop-widget .btn-primary {
  background: var(--d35-color-primary);
  border-color: var(--d35-color-primary);
  color: #fff;
}

.d35-vehicle-shop-section--quicksearch #webshop-widget .btn-primary:hover {
  background: var(--d35-color-primary-hover);
  border-color: var(--d35-color-primary-hover);
}

.d35-vehicle-shop-section--quicksearch #webshop-widget .grid-cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.d35-vehicle-shop-section--quicksearch #webshop-widget .btn-primary {
  background: var(--d35-color-primary) !important;
  border-color: var(--d35-color-primary) !important;
  color: #fff !important;
  justify-self: start;
}

.d35-vehicle-shop-section--quicksearch #webshop-widget .btn-primary:hover {
  background: var(--d35-color-primary-hover) !important;
  border-color: var(--d35-color-primary-hover) !important;
}

@media (max-width: 1024px) {
  .d35-vehicle-shop-section__box #webshop-widget .grid-cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .d35-vehicle-shop-section--quicksearch #webshop-widget form.grid > *,
  .d35-vehicle-shop-section--quicksearch #webshop-widget form.grid-cols-2 > *,
  .d35-vehicle-shop-section--quicksearch #webshop-widget form.grid-cols-4 > * {
    min-width: 14rem !important;
  }
}

@media (max-width: 768px) {
  .d35-vehicle-shop-section__box {
    padding: 1rem;
  }

  .d35-vehicle-shop-section__box #webshop-widget .grid-cols-4 {
    grid-template-columns: minmax(0, 1fr);
  }

  .d35-vehicle-shop-section--quicksearch #webshop-widget [id*="Wrapper" i],
  .d35-vehicle-shop-section--quicksearch #webshop-widget [id*="wrapper" i] {
    min-width: 100% !important;
  }

  .d35-vehicle-shop-section--quicksearch #webshop-widget form.grid > *,
  .d35-vehicle-shop-section--quicksearch #webshop-widget form.grid-cols-2 > *,
  .d35-vehicle-shop-section--quicksearch #webshop-widget form.grid-cols-4 > * {
    min-width: 100% !important;
  }
}
