/* =====================================================
   FAHRZEUGE — Listing + Detail Pages (Sprint 3)
   Eigene CSS-Datei für /fahrzeuge und /fahrzeuge/[slug]
   ===================================================== */

/* Page-Reset + Body */
.page-sub {
  background: #0a0a0c;
  color: #f5f5f5;
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-sub * { box-sizing: border-box; }

/* =========== SUB-NAV =========== */
.sub-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 4vw, 48px);
  background: rgba(10, 10, 12, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}
.sub-nav__brand img {
  height: 40px;
  width: auto;
  display: block;
}
.sub-nav__links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 32px);
}
.sub-nav__link {
  font-family: 'Bai Jamjuree', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color 0.3s ease;
}
.sub-nav__link:hover { color: #fff; }
.sub-nav__link--cta {
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
}
.sub-nav__link--cta:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 640px) {
  .sub-nav__links { gap: 12px; }
  .sub-nav__link:not(.sub-nav__link--cta) { display: none; }
}

/* =========== LISTING-PAGE =========== */
.lst {
  flex: 1;
  padding: clamp(40px, 6vw, 80px) 0;
}
.lst__container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}
.lst__head { margin-bottom: clamp(40px, 5vw, 64px); }
.lst__eyebrow {
  display: inline-block;
  font-family: 'Bai Jamjuree', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 16px;
}
.lst__title {
  font-family: 'Bai Jamjuree', sans-serif;
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: #fff;
}
.lst__lead {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.65);
  max-width: 640px;
  margin: 0;
}

/* Layout: Filter-Aside + Results */
.lst__layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: clamp(24px, 3vw, 48px);
}
@media (max-width: 900px) { .lst__layout { grid-template-columns: 1fr; } }

/* Filters */
.lst__filters {
  position: sticky;
  top: 100px;
  align-self: start;
  background: #0e0e12;
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 24px;
}
.lst__filter-h {
  font-family: 'Bai Jamjuree', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.lst__filter-group { margin-bottom: 20px; }
.lst__filter-label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 8px;
}
.lst__filter-input {
  width: 100%;
  padding: 10px 12px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #fff;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  cursor: pointer;
}
.lst__filter-input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
}
.lst__filter-range {
  width: 100%;
  accent-color: #fff;
}
.lst__filter-output {
  display: block;
  font-family: 'Bai Jamjuree', sans-serif;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 4px;
}
.lst__filter-reset {
  width: 100%;
  padding: 10px 12px;
  font-family: 'Bai Jamjuree', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
}
.lst__filter-reset:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

/* Results */
.lst__results-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.lst__results-count {
  font-family: 'Bai Jamjuree', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
}
.lst__sort {
  padding: 8px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  cursor: pointer;
}

.lst__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.lst-card {
  display: flex;
  flex-direction: column;
  background: #0e0e12;
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-decoration: none;
  color: #f5f5f5;
  overflow: hidden;
  transition: transform 0.4s ease, border-color 0.3s ease;
}
.lst-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.18);
}
.lst-card[hidden] { display: none !important; }

.lst-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0a0a0c;
}
.lst-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.lst-card:hover .lst-card__img { transform: scale(1.05); }

.lst-card__brand {
  position: absolute;
  top: 12px;
  left: 12px;
  font-family: 'Bai Jamjuree', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 5px 10px;
}
.lst-card__imgcount {
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-family: 'Bai Jamjuree', sans-serif;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(0, 0, 0, 0.6);
  padding: 4px 8px;
}

.lst-card__body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.lst-card__model {
  font-family: 'Bai Jamjuree', sans-serif;
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  color: #fff;
}
.lst-card__variant {
  font-size: 12px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.lst-card__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-family: 'Bai Jamjuree', sans-serif;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.75);
}
.lst-card__specs span {
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
}
.lst-card__price {
  font-family: 'Bai Jamjuree', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.lst-card__price-sub {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 3px;
}

.lst__empty {
  text-align: center;
  padding: 80px 20px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
}
.lst__empty h3 {
  font-family: 'Bai Jamjuree', sans-serif;
  font-size: 24px;
  margin: 0 0 12px;
}
.lst__empty p { color: rgba(255, 255, 255, 0.65); margin-bottom: 24px; }

/* =========== DETAIL-PAGE =========== */
.det { flex: 1; padding-bottom: clamp(40px, 6vw, 80px); }

.det__crumb {
  padding: 16px clamp(20px, 4vw, 48px);
  font-family: 'Bai Jamjuree', sans-serif;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.015);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.det__crumb a { color: rgba(255, 255, 255, 0.7); text-decoration: none; }
.det__crumb a:hover { color: #fff; }

.det__container {
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 48px) clamp(20px, 4vw, 48px) 0;
}

.det__layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: clamp(24px, 3vw, 48px);
  margin-bottom: clamp(40px, 5vw, 80px);
}
@media (max-width: 900px) { .det__layout { grid-template-columns: 1fr; } }

/* Galerie */
.det-gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.det-gallery__main {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0a0a0c;
}
.det-gallery__mainbtn {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  background: none;
  border: none;
  cursor: zoom-in;
}
.det-gallery__mainimg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.4s ease;
}

.det-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
  gap: 8px;
}
.det-gallery__thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  background: none;
  border: 2px solid transparent;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.3s ease, opacity 0.3s ease;
  opacity: 0.6;
}
.det-gallery__thumb:hover,
.det-gallery__thumb.is-active {
  opacity: 1;
  border-color: rgba(255, 255, 255, 0.5);
}
.det-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.det-gallery__none {
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.4);
  font-size: 14px;
}

/* Sidebar */
.det-sidebar {
  background: #0e0e12;
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 28px;
  align-self: start;
  position: sticky;
  top: 100px;
}
@media (max-width: 900px) { .det-sidebar { position: static; } }

.det-sidebar__brand {
  display: block;
  font-family: 'Bai Jamjuree', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 8px;
}
.det-sidebar__model {
  font-family: 'Bai Jamjuree', sans-serif;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 8px;
  color: #fff;
}
.det-sidebar__variant {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
  margin: 0;
}

.det-sidebar__price {
  padding: 20px 0;
  margin: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.det-sidebar__price-value {
  display: block;
  font-family: 'Bai Jamjuree', sans-serif;
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}
.det-sidebar__price-sub {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.04em;
}

.det-sidebar__quickspecs {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.det-sidebar__quickspecs li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.025);
}
.det-sidebar__quickspecs li span {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}
.det-sidebar__quickspecs li strong {
  font-family: 'Bai Jamjuree', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
}

.det-sidebar__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Bottom Sections */
.det__bottom { display: grid; gap: clamp(32px, 4vw, 56px); }

.det-specs__title,
.det-features__title,
.det-desc__title,
.det-anfrage__title {
  font-family: 'Bai Jamjuree', sans-serif;
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 600;
  color: #fff;
  margin: 0 0 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.det-specs__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 0;
}
.det-spec {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.02);
  margin: 0;
}
.det-spec dt {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}
.det-spec dd {
  font-family: 'Bai Jamjuree', sans-serif;
  font-size: 14px;
  color: #fff;
  margin: 0;
}

.det-features__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
}
.det-features__list li {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.02);
  position: relative;
  padding-left: 24px;
}
.det-features__list li::before {
  content: "✓";
  position: absolute;
  left: 10px;
  color: rgba(255, 255, 255, 0.5);
}

.det-desc__body {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
  max-width: 760px;
}

/* Anfrage-Form */
.det-anfrage {
  padding: clamp(28px, 4vw, 48px);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.det-anfrage__lead {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  margin: -16px 0 24px;
}
.det-anfrage__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
@media (max-width: 600px) { .det-anfrage__row { grid-template-columns: 1fr; } }
.det-anfrage__input,
.det-anfrage__textarea {
  padding: 12px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}
.det-anfrage__input::placeholder,
.det-anfrage__textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}
.det-anfrage__input:focus,
.det-anfrage__textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
}
.det-anfrage__textarea {
  width: 100%;
  resize: vertical;
  font-family: 'Inter', sans-serif;
  margin-bottom: 12px;
}
.det-anfrage__honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}
.det-anfrage__check {
  display: flex;
  gap: 10px;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
  margin: 16px 0 20px;
}
.det-anfrage__check a { color: rgba(255, 255, 255, 0.95); }
.det-anfrage__status {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 2px;
  font-size: 14px;
}
.det-anfrage__status[data-state="success"] {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: rgb(134, 239, 172);
}
.det-anfrage__status[data-state="error"] {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: rgb(252, 165, 165);
}

/* =========== SUB-FOOTER =========== */
.sub-footer {
  margin-top: auto;
  padding: clamp(32px, 4vw, 48px) clamp(20px, 4vw, 48px);
  background: #060607;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}
.sub-footer__container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}
@media (max-width: 720px) {
  .sub-footer__container { grid-template-columns: 1fr; }
}
.sub-footer__brand strong {
  display: block;
  font-family: 'Bai Jamjuree', sans-serif;
  font-size: 14px;
  color: #fff;
  letter-spacing: 0.05em;
}
.sub-footer__contact { display: flex; flex-direction: column; gap: 4px; }
.sub-footer__contact a { color: rgba(255, 255, 255, 0.75); text-decoration: none; }
.sub-footer__contact a:hover { color: #fff; }
.sub-footer__legal {
  display: flex;
  gap: 20px;
  justify-content: flex-end;
  align-items: flex-end;
}
@media (max-width: 720px) { .sub-footer__legal { justify-content: flex-start; } }
.sub-footer__legal a { color: rgba(255, 255, 255, 0.5); text-decoration: none; }
.sub-footer__legal a:hover { color: #fff; }

/* =========== LIGHTBOX =========== */
.det-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: lb-fade 0.25s ease-out;
}

@keyframes lb-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.det-lightbox__img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
}

.det-lightbox__close,
.det-lightbox__nav {
  position: absolute;
  background: rgba(0, 0, 0, 0.6);
  color: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 24px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.det-lightbox__close:hover,
.det-lightbox__nav:hover {
  background: rgba(0, 0, 0, 0.85);
  border-color: rgba(255, 255, 255, 0.4);
}

.det-lightbox__close {
  top: 20px;
  right: 20px;
  font-size: 28px;
  line-height: 1;
}

.det-lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  font-size: 32px;
  line-height: 1;
}

.det-lightbox__nav--prev { left: 20px; }
.det-lightbox__nav--next { right: 20px; }

.det-lightbox__counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Bai Jamjuree', sans-serif;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(0, 0, 0, 0.6);
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 600px) {
  .det-lightbox__close,
  .det-lightbox__nav { width: 40px; height: 40px; font-size: 20px; }
}
