/**
 * Theme-only Fahrzeuglisting (Grid). Full-Layout nutzt Marketplace-CSS.
 * Eigene Klassennamen — kein vorschau-inner / car-col-card (Marketplace-Kollision).
 */

.at-fahrzeuge--grid {
  width: 100%;
  margin: 2rem 0;
  box-sizing: border-box;
}

.at-fahrzeuge__status {
  margin-bottom: 1rem;
  font-size: 0.95em;
}

.at-fahrzeuge__status.is-error {
  color: #b00020;
}

.at-fahrzeuge__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 1100px) {
  .at-fahrzeuge__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .at-fahrzeuge__grid {
    grid-template-columns: 1fr;
  }
}

.at-fahrzeuge__card {
  margin: 0;
  width: 100%;
  min-width: 0;
  max-width: none;
  height: 100%;
  box-sizing: border-box;
}

.at-fahrzeuge__card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  background: #fff;
  overflow: hidden;
}

.at-fahrzeuge__image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f3f3f3;
}

.at-fahrzeuge__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.at-fahrzeuge__body {
  padding: 1rem 1.1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
}

.at-fahrzeuge__badge {
  display: inline-block;
  align-self: flex-start;
  padding: 0.25em 0.55em;
  border: 1px solid currentColor;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
  color: var(--baseFontColor, #4f5151);
}

.at-fahrzeuge__title {
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.25;
  color: var(--baseFontColor, #2f3e46);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.at-fahrzeuge__meta {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.at-fahrzeuge__meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.at-fahrzeuge__meta-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9db2be;
  line-height: 1.2;
}

.at-fahrzeuge__meta-value {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--baseFontColor, #2f3e46);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.at-fahrzeuge__envkv {
  font-size: 0.72rem;
  line-height: 1.35;
  color: var(--baseFontColor, #4f5151);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.at-fahrzeuge__footer {
  margin-top: auto;
  padding-top: 0.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.at-fahrzeuge__disclaimer {
  font-size: 0.75rem;
  line-height: 1.35;
  color: var(--baseFontColor, #4f5151);
}

.at-fahrzeuge__cta.btn-secondary.angebot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 40px;
  border: 1px solid var(--blue, #47aae1);
  border-radius: 40px;
  color: var(--blue, #47aae1);
  font: 700 16px / 1.2 var(--headlineFamily, inherit);
  text-transform: uppercase;
  text-decoration: none;
  background: transparent;
  box-sizing: border-box;
}

.at-fahrzeuge__card-link:hover .at-fahrzeuge__cta.btn-secondary.angebot {
  background: rgba(71, 170, 225, 0.08);
}

.at-fahrzeuge__price {
  margin-top: 0;
  padding: 0.85rem 1.1rem;
  background: var(--blue, #47aae1);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.at-fahrzeuge__price-gross {
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.2;
  color: #fff;
}

.at-fahrzeuge__price-net {
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.3;
  color: #fff;
  opacity: 0.95;
}

.at-fahrzeuge__pager {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.at-fahrzeuge__loadmore {
  cursor: pointer;
}

.at-fahrzeuge__pages {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.at-fahrzeuge__pages .btn-pagination:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Full-Embed: etwas Luft im Seitenkontext */
.at-fahrzeuge--full {
  margin: 2rem 0;
}

/*
 * Marketplace-Listing: die siteweite Mini-Nav (header nav.scrolled) beim
 * Runterscrollen komplett ausblenden, damit Topbar + Filter höher kleben.
 * Auf allen anderen Seiten bleibt die Mini-Nav unverändert.
 */
body.at-marketplace-listing .page-header.fixed header nav.scrolled {
  transform: translateY(-120%) !important;
  opacity: 0 !important;
  pointer-events: none !important;
  box-shadow: none !important;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

body.at-marketplace-listing .page-header.scroll header nav.scrolled {
  transform: translateY(0) !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

body.admin-bar.at-marketplace-listing .page-header.scroll header nav.scrolled,
body.admin-bar.at-marketplace-listing header nav.scrolled {
  top: 32px !important;
}

@media screen and (max-width: 782px) {
  body.admin-bar.at-marketplace-listing .page-header.scroll header nav.scrolled,
  body.admin-bar.at-marketplace-listing header nav.scrolled {
    top: 46px !important;
  }
}

/* Mobile: kein Mini-Header-Zwischenzustand – ebenfalls komplett weg */
@media (max-width: 600px) {
  body.at-marketplace-listing .page-header.fixed {
    position: fixed !important;
    left: 0;
    right: 0;
    z-index: 999;
    background: #fff;
    transform: translateY(-100%) !important;
    animation: none !important;
  }

  body.at-marketplace-listing .page-header.fixed .mobile .logos {
    height: auto;
    overflow: visible;
    transform: none;
  }
}

#at-marketplace-header-spacer {
  display: block;
  width: 100%;
  pointer-events: none;
}

body.at-marketplace-listing .nr-top-head {
  background-color: #f3f5f7;
}

body.at-marketplace-listing .top-filter-result,
body.at-marketplace-listing #top-overview-bar {
  background-color: #fff;
  margin-top: 0 !important;
}
