/*
Description:  Template zur Darstellung der Fahrzeugdetailansicht auf der Ausgabeseite
Version:      1.2
Author:       Elmar Elberskirch
Author URI:   https://www.bvfk.de
*/

/******************************

Detailansicht für einzelnes Fahrzeug-Objekt

*******************************/



/* Seitennavigation: ruhig, ohne Card-/Shadow-Optik */
.bvfkfb .bvfkfb-side-nav {
  border: 0;
  box-shadow: none;
}

/* Items */
.bvfkfb .bvfkfb-side-nav .list-group-item {
  border: 0;
  padding: .5rem 0;
  background: transparent;
  font-weight: 500;
  color: var(--bs-body-color);
}

/* Hover */
.bvfkfb .bvfkfb-side-nav .list-group-item:hover {
  background: transparent;
  color: #f71616;
}

/* Aktiver Anker (optional, sehr empfohlen) */
.bvfkfb .bvfkfb-side-nav .list-group-item.active {
  background: transparent;
  color: #f71616;
  font-weight: 600;
}

/* Fokus (Accessibility) */
.bvfkfb .bvfkfb-side-nav .list-group-item:focus-visible {
  outline: none;
  text-decoration: underline;
}



.bvfkfb .text-ellipsis {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* =========================
   MAIN CAROUSEL (oben)
   ========================= */
.bvfkfb .bvfk-gallery .carousel-inner{
  background: #0c0c0c;
}

.bvfkfb .bvfk-gallery .carousel-inner img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.bvfkfb .bvfk-gallery .ratio > *{
  width: 100%;
  height: 100%;
}

/* =========================
   THUMBNAILS (unten)
   ========================= */

.bvfkfb .bvfk-thumb2{
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  border-radius: 0px;
  overflow: hidden;
  cursor: pointer;
  transition: none;
}

.bvfkfb .bvfk-thumb2 img{
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.bvfkfb .bvfk-thumb2.active{
  outline: 1px solid #f71616;
  background-color: #fff;
}

@media (hover: hover) and (pointer: fine){
  .bvfkfb .bvfk-thumb2:hover {
    outline: 2px solid #f71616;
  }
}

.bvfkfb .bvfk-thumb2.active img {
  opacity: 0.85;
}

.bvfkfb .carousel-control-prev-icon,
.bvfkfb .carousel-control-next-icon{
  background-image: none;
}

.bvfkfb .carousel-control-prev-icon::before,
.bvfkfb .carousel-control-next-icon::before{
  content: '';
  display: block;
  width: 2rem;
  height: 2rem;
  border: solid #f71616;
  border-width: 0 3px 3px 0;
}

.bvfkfb .carousel-control-prev-icon::before{
  transform: rotate(135deg);
}

.bvfkfb .carousel-control-next-icon::before{
  transform: rotate(-45deg);
}

.bvfkfb .carousel-control-prev-icon {
  margin-left: 12px;
}

.bvfkfb .carousel-control-next-icon {
  margin-right: 12px;
}

.bvfkfb .carousel-control-prev,
.bvfkfb .carousel-control-next{
  opacity: 1;
}

/* =========================
   MODAL CAROUSEL (Lightbox)
   ========================= */
.bvfkfb .modal .carousel-inner img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0c0c0c;
}

.bvfkfb .bvfk-gallery-qr{
  z-index: 5;
  max-width: 110px;
}

.bvfkfb .bvfk-lightbox-trigger{
  border: 0;
  padding: 0;
  background: transparent;
  width: 100%;
  display: block;
}

.bvfkfb .bvfk-lightbox{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.bvfkfb .bvfk-lightbox.is-open{
  display: flex;
}

.bvfkfb .bvfk-lb-stage{
  margin: 0;
  max-width: min(1200px, 95vw);
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bvfkfb .bvfk-lb-img{
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  display: block;
  user-select: none;
}

.bvfkfb .bvfk-lb-close{
  position: fixed;
  top: 112px;
  right: 16px;

  width: 56px;
  height: 56px;

  font-size:48px;

  z-index: 100001;
  border-radius: 0px;
  background: color-mix(in srgb, #f71616, #fff 85%);
  border-color: color-mix(in srgb, #f71616, #fff 85%);
  color: #0c0c0c;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.bvfkfb .bvfk-lb-close:hover{
  background: color-mix(in srgb, #f71616, #fff 65%);
  border-color: color-mix(in srgb, #f71616, #fff 85%);
}

/* =========================
   LIGHTBOX NAV (Prev/Next)
   ========================= */

.bvfkfb .bvfk-lb-prev,
.bvfkfb .bvfk-lb-next{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  width: 56px;
  height: 56px;

  border: 0;
  border-radius: 0px;
  background: color-mix(in srgb, #f71616, #fff 85%);
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 0;
  line-height: 0;

  box-shadow: none;
}

.bvfkfb .bvfk-lb-prev{ left: 1rem; }
.bvfkfb .bvfk-lb-next{ right: 1rem; }

.bvfkfb .bvfk-lightbox .carousel-control-prev-icon::before, .bvfkfb .bvfk-lightbox .carousel-control-next-icon::before {
    content: '';
    display: block;
    width: 2rem;
    height: 2rem;
    border: solid #0c0c0c;
    border-width: 0 3px 3px 0;
}

.bvfkfb .bvfk-lightbox .carousel-control-prev-icon {
    transform: translateX(8px);
}

.bvfkfb .bvfk-lightbox .carousel-control-next-icon {
    transform: translateX(-8px);
}

/* Hover soll NICHT die Farbe ändern (wie gewünscht) */
.bvfkfb .bvfk-lb-prev:hover,
.bvfkfb .bvfk-lb-next:hover{
  background: color-mix(in srgb, #f71616, #fff 65%);
}


@media (max-width: 576px){
  .bvfkfb .bvfk-lightbox{ padding: 1rem; }
  .bvfkfb .bvfk-lb-prev{ left: .5rem; }
  .bvfkfb .bvfk-lb-next{ right: .5rem; }
  .bvfkfb .bvfk-lb-close{ top: .5rem; right: .5rem; }
}



    /* Optional: damit dein altes .rightsticky-Script weg kann */
@media (min-width: 992px) {
   .bvfkfb .position-sticky { align-self: flex-start; }
}
.bvfkfb .breadcrumb a { text-decoration: none; }
.bvfkfb .breadcrumb a:hover { text-decoration: underline; }
.bvfkfb .breadcrumb-item.active {
   max-width: 40ch;
   overflow: hidden;
   white-space: nowrap;
   text-overflow: ellipsis;
}

@media (max-width: 840px) {
  .bvfkfb .breadcrumb-item.active {
    max-width: 40ch;
  }
}
@media (max-width: 576px) {
  .bvfkfb .breadcrumb-item.active {
    max-width: 22ch;
  }
}

/* =========================
   FINANCE (Detail)
   ========================= */
.bvfkfb .bvfk-finance-main .accordion-button:not(.collapsed) {
  color: #fff;
  background-color: #f71616;
}

.bvfkfb .bvfk-finance-main .form-label {
  margin-bottom: .35rem;
  font-weight: 600;
}

.bvfkfb .bvfk-finance-main .bvfk-fin-row .form-label {
  margin-bottom: 0;
}

.bvfkfb .bvfk-finance-main .bvfk-fin-row strong {
  white-space: nowrap;
}

.bvfkfb .bvfk-finance-main .form-range {
  --bs-form-range-track-height: .45rem;
  --bs-form-range-track-bg: color-mix(in srgb, #f71616, transparent 82%);
}

.bvfkfb .bvfk-finance-main .form-range::-webkit-slider-thumb {
  background-color: #f71616;
}

.bvfkfb .bvfk-finance-main .form-range::-moz-range-thumb {
  background-color: #f71616;
  border-color: #f71616;
}

.bvfkfb .bvfk-finance-main [data-fin-out="monthly"] {
  color: #f71616 !important;
  font-weight: 700;
}

.bvfkfb .bvfk-finance-main .row.small > div:nth-child(odd) {
  color: color-mix(in srgb, #fff, transparent 15%);
}

/* =========================
   Anfrage-Modal (Detail)
   ========================= */
.bvfkfb #anfrage-modal .modal-dialog {
  margin-top: 112px;
  margin-bottom: 12px;
  height: calc(100vh - 112px - 12px);
  min-height: 0;
}

.bvfkfb #anfrage-modal.modal {
  overflow-y: hidden;
  padding-right: 0 !important;
}

.bvfkfb #anfrage-modal .modal-dialog.modal-dialog-centered {
  min-height: 0;
}

.bvfkfb #anfrage-modal .modal-dialog.modal-dialog-scrollable {
  max-height: none;
}

.bvfkfb #anfrage-modal .modal-content {
  max-height: calc(100vh - 112px - 12px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.bvfkfb #anfrage-modal .modal-content > form {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.bvfkfb #anfrage-modal .modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}

.bvfkfb details summary {
  list-style: none;
}

.bvfkfb details summary::-webkit-details-marker {
  display: none;
}

.bvfkfb details summary::after {
  content: " +";
  color: #f71616;
  font-weight: 700;
}

.bvfkfb details[open] summary::after {
  content: " -";
}
