/* KFZ PDP – kompakt & sauber */

.kfz-pdp {
  padding: 22px 0 40px;
}

.kfz-pdp__top {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 25px; /* WICHTIG: Abstand zwischen den Boxen */
  align-items: start;
}

/* Cards / Boxen */
.kfz-card,
.kfz-gallery,
.kfz-summary {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 18px;
  box-shadow: 0 1px 0 rgba(16, 24, 40, 0.02);
}

.kfz-card {
  padding: 18px 18px;
}

.kfz-card__title {
  margin: 0 0 12px;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.kfz-stack {
  margin-top: 25px;
  display: grid;
  gap: 25px; /* WICHTIG: Abstand zwischen den Boxen */
}

/* =========================
   Galerie
   ========================= */
.kfz-gallery {
  padding: 16px;
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
}

.kfz-gallery__thumbs {
  display: grid;
  grid-template-rows: 34px 1fr 34px;
  gap: 10px;
  max-height: 520px;
}

.kfz-gallery__thumbbtn {
  border: 1px solid #e9ecef;
  background: #fff;
  border-radius: 12px;
  line-height: 1;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.kfz-gallery__thumbrail {
  overflow: auto;
  padding-right: 4px;
  display: grid;
  gap: 10px;
}

.kfz-gallery__thumb {
  border: 2px solid transparent;
  background: transparent;
  padding: 0;
  border-radius: 14px;
  cursor: pointer;
  overflow: hidden;
}

.kfz-gallery__thumb img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

.kfz-gallery__thumb.is-active {
  border-color: #9cc0ff;
  box-shadow: 0 0 0 4px rgba(32, 112, 255, 0.12);
}

.kfz-gallery__thumb--empty {
  border: 1px dashed #cfd4dc;
  border-radius: 14px;
  padding: 10px;
  color: #667085;
  font-size: 12px;
}

.kfz-gallery__main {
  position: relative;
  border: 1px solid #eef1f5;
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kfz-gallery__img {
  display: block !important;
  width: 100%;
  height: auto !important;
  max-height: 100%;
  object-fit: contain;
}

.kfz-gallery__placeholder {
  color: #667085;
  font-weight: 700;
}

.kfz-gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid #e9ecef;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 12px 24px rgba(16,24,40,0.10);
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.kfz-gallery__nav--prev { left: 14px; }
.kfz-gallery__nav--next { right: 14px; }

/* =========================
   Summary rechts
   ========================= */
.kfz-summary {
  padding: 18px 18px;
}

.kfz-summary__title {
  margin: 0 0 12px;
  font-size: 26px;
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.kfz-summary__price {
  margin: 0 0 14px;
}

.kfz-price__value {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.kfz-price__na {
  font-weight: 700;
  color: #667085;
}

.kfz-meta {
  margin-top: 10px;
  display: grid;
  gap: 10px;
}

.kfz-meta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: baseline;
}

.kfz-meta-k {
  color: #101828;
  font-weight: 800;
  font-size: 13px;
}

.kfz-meta-v {
  color: #101828;
  font-weight: 800;
  font-size: 13px;
  text-align: left;
}

.kfz-meta-v.is-yes {
  color: #1a7f37; /* grün */
}

.kfz-meta-v.is-no {
  color: #b42318; /* rot */
}

.kfz-summary__cta {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.kfz-cta-form { margin: 0; }

.kfz-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  border-radius: 10px;
  font-weight: 900;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
}

.kfz-btn--primary {
  background: #0d6efd;
  color: #fff;
}

.kfz-btn--disabled {
  background: #f2f4f7;
  color: #667085;
  cursor: not-allowed;
}

/* Wunschliste: endgültig ausblenden (falls irgendwo doch gerendert) */
.kfz-wishlist,
.kfz-pdp .kfz-wishlist,
.kfz-pdp a[href*="wishlists"],
.kfz-pdp a[href*="wishlist"],
.kfz-pdp [class*="wishlist"],
.kfz-pdp [id*="wishlist"] {
  display: none !important;
}

/* =========================
   Tables / Fitment
   ========================= */
.kfz-table-wrap {
  overflow: auto;
}

.kfz-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.kfz-table th,
.kfz-table td {
  padding: 10px 12px;
  border-top: 1px solid #eef2f6;
  vertical-align: top;
}

.kfz-table th {
  width: 38%;
  font-weight: 900;
  color: #101828;
}

.kfz-fitment .table-responsive {
  overflow: auto;
}

/* Responsive */
@media (max-width: 992px) {
  .kfz-pdp__top {
    grid-template-columns: 1fr;
  }
  .kfz-gallery {
    grid-template-columns: 88px 1fr;
  }
  .kfz-gallery__main {
    min-height: 340px;
  }
}

