/* Scope everything to avoid conflicts */
.rnh-vehicle-v2 {
  --rnh-gap: 18px;
  --rnh-radius: 14px;
  --rnh-border: rgba(0,0,0,.10);
  --rnh-muted: rgba(0,0,0,.65);
  --rnh-blue: var(--theme-primary, #0b3a78);
  --rnh-bg: #fff;

  font-family: inherit;
}

.rnhv2-card,
.rnhv2-galleryCard,
.rnhv2-ctaCard {
  background: var(--rnh-bg);
  border: 1px solid var(--rnh-border);
  border-radius: var(--rnh-radius);
}

.rnhv2-top {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: var(--rnh-gap);
  align-items: start;
}

@media (max-width: 1024px) {
  .rnhv2-top { grid-template-columns: 1fr; }
}

/* Gallery */
.rnhv2-gallery {
  padding: 14px;
}

.rnhv2-gallery__main {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  border-radius: 12px;
  overflow: hidden;
}

.rnhv2-gallery__main img {
  width: 100%;
  height: auto;
  display: block;
}

.rnhv2-gallery__placeholder {
  height: 320px;
  display: grid;
  place-items: center;
  color: var(--rnh-muted);
  background: rgba(0,0,0,.03);
  border-radius: 12px;
}

.rnhv2-thumbs {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

@media (max-width: 1024px) {
  .rnhv2-thumbs { grid-template-columns: repeat(4, 1fr); }
}

.rnhv2-thumb {
  border: 1px solid var(--rnh-border);
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
}

.rnhv2-thumb img {
  width: 100%;
  height: 62px;
  object-fit: cover;
  display: block;
}

/* Sticky CTA */
.rnhv2-cta {
  position: sticky;
  top: 110px; /* header height safe */
}

@media (max-width: 1024px) {
  .rnhv2-cta { position: static; }
}

.rnhv2-ctaCard {
  padding: 16px;
}

.rnhv2-title {
  font-size: 22px;
  line-height: 1.2;
  margin: 0 0 12px;
}

.rnhv2-priceRow {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.rnhv2-price {
  font-size: 22px;
  font-weight: 800;
}

.rnhv2-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--rnh-border);
  background: #fff;
  color: #111;
}

.rnhv2-btn--primary {
  background: var(--rnh-blue);
  border-color: var(--rnh-blue);
  color: #fff;
}

.rnhv2-btn--outline {
  width: 100%;
  margin-top: 10px;
}

.rnhv2-specGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
  padding-top: 12px;
  border-top: 1px solid var(--rnh-border);
}

.rnhv2-spec span {
  display: block;
  font-size: 12px;
  color: var(--rnh-muted);
}

.rnhv2-spec strong {
  display: block;
  font-size: 14px;
}

/* Chips */
.rnhv2-card--chips {
  margin-top: var(--rnh-gap);
  padding: 16px;
}

.rnhv2-h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

.rnhv2-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.rnhv2-chip {
  border: 1px solid var(--rnh-border);
  background: rgba(0,0,0,.03);
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 13px;
}

/* Accordion */
.rnhv2-accordion {
  margin-top: var(--rnh-gap);
  display: grid;
  gap: 12px;
}

.rnhv2-accItem {
  border: 1px solid var(--rnh-border);
  border-radius: var(--rnh-radius);
  background: #fff;
  overflow: hidden;
}

.rnhv2-accBtn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-weight: 800;
}

.rnhv2-accPanel {
  padding: 0 16px 16px;
}

.rnhv2-muted {
  color: var(--rnh-muted);
  margin: 0;
}

.rnhv2-kv {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: grid;
  gap: 10px;
}

.rnhv2-kv li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px dashed rgba(0,0,0,.12);
  padding-bottom: 8px;
}

.rnhv2-kv li span { color: var(--rnh-muted); }
.rnhv2-kv li strong { text-align: right; }

.rnhv2-co2img {
  max-height: 36px;
  width: auto;
  display: inline-block;
}

.rnhv2-subBlock {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--rnh-border);
}

.rnhv2-h3 {
  margin: 0 0 10px;
  font-size: 15px;
}

.rnhv2-list {
  margin: 0;
  padding-left: 18px;
}

.rnhv2-rich h3 {
  margin: 14px 0 8px;
  font-size: 16px;
}

.rnhv2-rich b { font-weight: 800; }

.rnhv2-finMeta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.rnhv2-finMetaLeft > div {
  font-weight: 700;
  margin-bottom: 2px;
}

.rnhv2-finMetaLeft strong {
  display: inline-block;
  font-size: 42px;
  line-height: 1;
  font-weight: 800;
  margin-right: 6px;
}

.rnhv2-finMetaLeft span {
  font-size: 18px;
  color: var(--rnh-muted);
}

.rnhv2-finMetaBtn {
  min-width: 185px;
  white-space: nowrap;
  margin-left: auto;
  align-self: flex-start;
  padding: 14px 26px;
}

@media (max-width: 767px) {
  .rnhv2-finMeta {
    flex-direction: column;
    align-items: flex-start;
  }
  .rnhv2-finMetaBtn {
    min-width: 0;
    width: 100%;
  }
}

/* Lightbox */
.rnhv2-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.88);
  display: none;
  z-index: 99999;
  padding: 24px;
}

.rnhv2-lightbox.is-open { display: grid; place-items: center; }

.rnhv2-lightbox__inner {
  max-width: 980px;
  width: 100%;
  background: #111;
  border-radius: 14px;
  position: relative;
  overflow: hidden;
}

.rnhv2-lightbox__img {
  width: 100%;
  height: auto;
  display: block;
}

.rnhv2-lightbox__close {
  position: absolute;
  top: 10px;
  right: 10px;
  border: 0;
  background: rgba(255,255,255,.18);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 22px;
  cursor: pointer;
}


/* Fix theme global aside rule breaking our grid */
.rnh-vehicle-v2 .rnhv2-cta {
  width: auto !important;        /* override aside{width:25%} */
  display: block !important;     /* override display:flex!important */
  flex-direction: initial !important;
  min-width: 0;                  /* prevent overflow */
}

/* Ensure the grid column stays the size we want */
.rnh-vehicle-v2 .rnhv2-top {
  grid-template-columns: 1fr 360px;
}

@media (max-width: 1024px) {
  .rnh-vehicle-v2 .rnhv2-top { grid-template-columns: 1fr; }
}


/* --- Icons sizing & alignment (VD2) --- */
.rnh-vehicle-v2 .rnhv2-ico{
  width: 16px !important;
  height: 16px !important;
  flex: 0 0 16px;
  display: inline-block;
  vertical-align: middle;
  fill: currentColor;
}

.rnh-vehicle-v2 .rnhv2-spec span{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1.2;
  font-size: 12px; /* label size */
  color: #6b7280;  /* subtle label */
}

/* Keep values clean */
.rnh-vehicle-v2 .rnhv2-spec strong{
  display: block;
  font-size: 14px;
  line-height: 1.3;
}

/* Phone button icon */
.rnh-vehicle-v2 .rnhv2-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.rnh-vehicle-v2 .rnhv2-btn .rnhv2-ico{
  width: 16px !important;
  height: 16px !important;
}

a.rnhv2-btn.rnhv2-btn--primary:hover {
    color: white;
    background: var(--bcvh-primary-dark);
}

span.rnhv2-chip {
    background: var(--bcvh-primary);
    color: #fff;
    border-radius:12px;
}



a.rnhv2-btn.rnhv2-btn--outline {
    border: 2px solid var(--bcvh-primary);
    border-radius: 10px;
    background: #fff;
    color: var(--bcvh-primary);
    font-weight: 700;
}

a.rnhv2-btn.rnhv2-btn--outline:hover{
     border: 2px solid var(--bcvh-primary-dark);
     color: var(--bcvh-primary-dark);
}

input.wpcf7-form-control.wpcf7-submit.has-spinner {
    border-radius: 12px!important;
}





/* =========================
   Accordion – more premium
   ========================= */

/* outer spacing */
.rnh-vehicle-v2 .rnhv2-accordion{
  display: grid;
  gap: 14px;
}

/* each item becomes a card */
.rnh-vehicle-v2 .rnhv2-accItem{
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease;
}

/* hover lift */
.rnh-vehicle-v2 .rnhv2-accItem:hover{
  border-color: #d1d5db;
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
  transform: translateY(-1px);
}

/* header button */
.rnh-vehicle-v2 .rnhv2-accBtn{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 18px;
  background: linear-gradient(180deg,#ffffff, #fbfdff);
  cursor: pointer;
}

/* title styling */
.rnh-vehicle-v2 .rnhv2-accBtn > span:first-child{
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
  font-size: 13px;
}

/* the + / - becomes a blue circle button */
.rnh-vehicle-v2 .rnhv2-accIcon{
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(3, 63, 120, .25);
  color: #033f78;                 /* primary blue */
  background: rgba(3, 63, 120, .06);
  font-weight: 900;
  font-size: 18px;
  line-height: 1;
  flex: 0 0 34px;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}

/* opened state: stronger emphasis */
.rnh-vehicle-v2 .rnhv2-accBtn[aria-expanded="true"]{
  background: linear-gradient(180deg, rgba(3,63,120,.06), #ffffff);
}

.rnh-vehicle-v2 .rnhv2-accBtn[aria-expanded="true"] .rnhv2-accIcon{
  background: #033f78;
  color: #fff;
  border-color: #033f78;
}

/* panel spacing */
.rnh-vehicle-v2 .rnhv2-accPanel{
  padding: 0 18px 18px 18px;
}

/* add a soft divider line between header and content */
.rnh-vehicle-v2 .rnhv2-accBtn{
  border-bottom: 1px solid rgba(229,231,235,.8);
}
.rnh-vehicle-v2 .rnhv2-accBtn[aria-expanded="false"]{
  border-bottom: none;
}




/* ===== Lightbox responsiveness + close button fix ===== */

/* Make overlay handle safe areas + small screens */
.rnh-vehicle-v2 .rnhv2-lightbox{
  padding: clamp(12px, 2vw, 24px);
}

/* Inner box should NEVER exceed viewport */
.rnh-vehicle-v2 .rnhv2-lightbox__inner{
  width: min(980px, calc(100vw - 2 * clamp(12px, 2vw, 24px)));
  max-height: calc(100vh - 2 * clamp(12px, 2vw, 24px));
  display: grid;
  place-items: center;
}

/* Image scales inside modal */
.rnh-vehicle-v2 .rnhv2-lightbox__img{
  max-width: 100%;
  max-height: calc(100vh - 2 * clamp(12px, 2vw, 24px));
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Close button always visible + centered "X" */
.rnh-vehicle-v2 .rnhv2-lightbox__close{
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;

  display: grid;
  place-items: center;

  font-size: 24px;
  line-height: 1;
  padding: 0;

  z-index: 2; /* ensure above image */
}

/* On very small screens, keep X tighter */
@media (max-width: 520px){
  .rnh-vehicle-v2 .rnhv2-lightbox__close{
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    font-size: 22px;
  }
}

header.rnh-header {
    padding: 10px 0px;
}

.rnh-logo img {
    height:55px;
}



/* Form card (now placed directly after the top section) */
.rnh-vehicle-v2 .rnhv2-card--form{
  margin-top: var(--rnh-gap);
  padding: 16px;
}

.rnh-vehicle-v2 .rnhv2-card--chips{
  margin-top: var(--rnh-gap);
}

/* Left column stack inside the grid */
.rnh-vehicle-v2 .rnhv2-left{
  display: grid;
  gap: var(--rnh-gap);
}


.rnhv2-chips span.rnhv2-chip {
    border: 2px solid var(--bcvh-primary);
    background: #fff;
    color: var(--bcvh-primary);
}



/* Only CO₂-Klasse row: make it taller + bigger image */
.rnh-vehicle-v2 .rnhv2-kv li:has(.rnhv2-co2img){
  align-items: center;
  padding-bottom: 14px;       /* more vertical space */
  padding-top: 6px;
}

.rnh-vehicle-v2 .rnhv2-kv li:has(.rnhv2-co2img) .rnhv2-co2img{
  max-height: 251px;           /* increase image size */
  max-width: 353px;
  width: auto;
}

/* Fallback: target the img itself and its parent row layout */
.rnh-vehicle-v2 .rnhv2-co2img{
  max-height: 70px;
  width: auto;
}

.rnh-vehicle-v2 .rnhv2-co2img{
  display: inline-block;
}

.rnh-vehicle-v2 .rnhv2-co2img{
  margin: 6px 0;
}


.row.g-4.align-items-start {justify-content: space-between;}

.container-width, .full-width .ubermenu-nav, .container, .row
{
    max-width: 1170px;
}

span.wpcf7-spinner {
    display: none;
}


input.wpcf7-form-control.wpcf7-submit.has-spinner {text-decoration: none;background: var(--rnh-blue, #0b2f5b);color: #fff;}

.bcvh-footer-street { display: inline; }

/* =========================
   CF7 Terms checkbox (VD2)
   ========================= */
.rnh-vehicle-v2 .bcvh-cf7-accept{
  margin-top: 12px;
}

/*
.rnh-vehicle-v2 .bcvh-accept-label{
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.35;
  color: rgba(0,0,0,.75);
  cursor: pointer;
}
*/

/* CF7 wraps checkbox inside a span */
.rnh-vehicle-v2 .bcvh-accept-label .wpcf7-list-item{
  margin: 0;
}

/* The actual checkbox */
.rnh-vehicle-v2 .bcvh-accept-label input[type="checkbox"]{
 /* width: 18px;*/
 /* height: 18px; */
  margin-top: 2px;
  flex: 0 0 auto;
}

/* Error message under the checkbox (when not checked) */
.rnh-vehicle-v2 .bcvh-cf7-accept .wpcf7-not-valid-tip{
  margin-top: 6px;
  font-size: 12px;
}

.rnhv2-lightbox__scroller{
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;

  padding: 40px 24px;

  -webkit-overflow-scrolling: touch; /* iOS momentum */
  overscroll-behavior: contain;
  scroll-behavior: auto; /* we will handle smooth in JS */
}

.rnhv2-lightbox__image{
  display: block;
  width: 100%;
  max-width: 1100px;
  max-height: 85vh;
  height: auto;
  object-fit: contain;

  margin: 0 auto 28px;
  border-radius: 8px;
}


/* Make the lightbox layout full-width so scrollbar sits at the far right */
.rnh-vehicle-v2 .rnhv2-lightbox.is-open{
  place-items: stretch;              /* override center */
}

/* Full screen inner container */
.rnh-vehicle-v2 .rnhv2-lightbox__inner{
  width: 100%;
  max-width: none;
  max-height: 100%;
  background: transparent;           /* optional */
}

/* Full width scroller = scrollbar goes to the far right */
.rnh-vehicle-v2 .rnhv2-lightbox__scroller{
  width: 100%;
  height: 100%;
  padding-right: 18px;               /* keeps scrollbar away from edge a bit */
}

/* Keep images centered */
.rnh-vehicle-v2 .rnhv2-lightbox__image{
  margin-left: auto;
  margin-right: auto;
}

/* Hide scrollbar (still scrollable) */
.rnh-vehicle-v2 .rnhv2-lightbox__scroller{
  scrollbar-width: none;            
  -ms-overflow-style: none;        
}

.rnh-vehicle-v2 .rnhv2-lightbox__scroller::-webkit-scrollbar{
  width: 0;
  height: 0;
}

.rnhv2-ctaCard h1 {
    color:black;
}

@media (max-width: 767px){
 .rnh-vehicle-v2 .rnhv2-kv li:has(.rnhv2-co2img) .rnhv2-co2img {
    max-height: 213px;
    max-width: 250px;
    width: auto;
}
}



@media (max-width: 680px) {
.rnh-vehicle-v2 .rnhv2-kv li:has(.rnhv2-co2img) .rnhv2-co2img {
    max-height: 100%;
    max-width: 100%;
}

.rnhv2-kv.rnhv2-kv--env > li {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

p.bcgh-disclaimer-text {
    display: flex;
    flex-direction: column;
    padding: 10px 5px;
}
ul.rnhv2-kv.rnhv2-kv--env {
    display: block;
}

.row.g-4.align-items-start {
    display: flex;
    flex-direction: column;
    padding: 0px 20px;
}

.rnhv2-kv li strong {
    text-align: center;
}
.rnhv2-card--env .rnhv2-envHead h2 {
    text-align: center;
}
}

span.form-datenschutz.rnh-jobform-consent a {
    color: blue;
}

.bcvh-cf7-field.bcvh-cf7-accept {
    padding-left: 0px;
}

span.bcvh-accept-text a{
    text-decoration: none;
    color: rgb(13 110 253);
}





