/*
Description:  Listenansicht für Fahrzeug-Objekte
Version:      6.1.2
Author:       Elmar Elberskirch
Author URI:   https://www.bvfk.de
*/

/******************************
	Inhalte:
		1. Suchfilter
		2. Alignments
		3. Schalter, Checkboxen & Inputs
		4. Helper / Utilities
		5. Typography
		6. Theme Colors
		7. W3-Klassen
		8. Fahrzeug-Container
		9. Media Queries

*******************************/

.eff-bild {
	display: none;
}

.eff-klasse:hover+.eff-bild {
	display: block;
}

.envi {
	color: #333 !important;
}

.vehicle-card{
  transition: none;
}

@supports (content-visibility: auto){
  .bvfkfb-carsdata .vehicle-item{
    content-visibility: auto;
    contain-intrinsic-size: 420px;
  }

  .bvfkfb-carsdata .vehicle-card{
    contain: layout paint style;
  }
}

@media (hover: hover) and (pointer: fine){
  .vehicle-card:hover{
    cursor: pointer;
  }
}

/****************************
  || Suchfilter
****************************/
/*.filter--border {border-right: 1px solid #ddd;}*/
.car-objekt--horizontal-list {
	font-size: 10px;
}

.filter--label,
label,
.no-border {
	font-weight: 400;
	font-size: 16px;
}

.filter__headline {
	display: flex;
	justify-content: space-between;
	align-items: center;
	transition: 0.2s ease-in;
	margin-bottom: 24px;
}

.filter__section {
	margin: var(--space-md) 0;
}

.filter-select {
	margin: var(--space-xs) 0;
}

.filter__fieldset {
	padding: 0 calc(var(--p15) * 2);
}

.farbe-opt {
	display: flex;
	flex-wrap: wrap;
}

.farbe-opt li {
	padding: var(--space-xs) var(--space-lg);
}

.cb-liste {
	display: flex;
	flex-flow: wrap row;
	margin-left: 0;
}

.cb-liste li {
	display: flex;
	align-items: center;
	line-height: calc(var(--space-lg) * 2.5);
}

.cb-liste i {
	font-size: 13px;
	font-weight: 400;
	margin-right: calc(var(--space-lg) * 2);
}

.cb-liste input[type="checkbox"] {
	height: 18px;
	width: 18px;
	margin-right: var(--space-md);
	margin-top: 0;
}

.bvfkfb .bvfkfb-filter-fieldset ul.cb-liste input[type="checkbox"] + label i {
  color: #fff !important;
}

.bvfkfb .bvfkfb-filter-fieldset ul.cb-liste input[type="checkbox"]:checked + label, .bvfkfb .bvfkfb-filter-fieldset ul.cb-liste input[type="checkbox"]:hover + label {
  background-color: #f71616 !important;
}

.bvfkfb .bvfkfb-filter-fieldset ul.cb-liste input[type="checkbox"]:checked + label i, .bvfkfb .bvfkfb-filter-fieldset ul.cb-liste input[type="checkbox"]:hover + label i {
	color: #fff !important;
}

#mobile-search,
#searchTrigger {
	display: none;
}

.mobile-fixed-bottom {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	z-index: 5;
}

.sort,
.filter-col {
	font-size: 13px;
	font-family: Montserrat;
	font-weight: 600;
}

.filter-select select {
	font-size: 14px;
	width: 100%;
	padding: 5px;
}

.text-black {
	color: #fff;
}

/* ===== LIST VIEW LAYOUT ===== */

/* LIST VIEW: jedes Fahrzeug volle Breite */
:is(#carsData,#cars-list)[data-view="list"] .vehicle-item{
  flex: 0 0 100% !important;
  max-width: 100% !important;
}

/* LIST VIEW: Card wird zweispaltig */
:is(#carsData,#cars-list)[data-view="list"] .vehicle-card{
  display: flex;
  flex-direction: row;
  align-items: stretch;
}

/* linke Spalte = Bild */
:is(#carsData,#cars-list)[data-view="list"] .vehicle-card .bvfk-car-media{
  flex: 0 0 280px;     /* Breite anpassen */
  width: 280px;
  border-top-right-radius: 0 !important;
}

/* Ratio-Trick deaktivieren, damit es volle Höhe annehmen kann */
:is(#carsData,#cars-list)[data-view="list"] .vehicle-card .bvfk-car-media::before{
  content: none !important;
}

/* Bild füllt den Media-Block */
:is(#carsData,#cars-list)[data-view="list"] .vehicle-card .bvfk-car-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* rechte Spalte = Body + Footer */
:is(#carsData,#cars-list)[data-view="list"] .vehicle-card .bvfk-car-content{
  min-width: 0; /* wichtig für truncates */
}

/* optional: Footer bündig zur rechten Spalte */
:is(#carsData,#cars-list)[data-view="list"] .vehicle-card .bvfk-car-footer{
  margin-top: auto;
}

@media (max-width: 768px){
  :is(#carsData,#cars-list)[data-view="list"] .vehicle-card{
    flex-direction: column;
  }
  :is(#carsData,#cars-list)[data-view="list"] .vehicle-card .bvfk-car-media{
    width: 100%;
    flex-basis: auto;
    border-top-right-radius: .5rem !important;
    border-bottom-left-radius: 0 !important;
  }
  :is(#carsData,#cars-list)[data-view="list"] .vehicle-card .bvfk-car-media::before{
    content: "" !important; /* Ratio wieder aktiv */
  }
}

.bvfkfb .bvfk-mobile-filter-btn{
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 1040; /* unter offcanvas */
  border-radius: 0px;
  background: #f71616;
  border-color: #f71616;
  color: #fff;

  padding: .7rem 1.1rem;
  box-shadow: 0 10px 24px rgba(0,0,0,.20);
}

/* Sichtbarkeit: nur auf Mobile anzeigen (Layout-abhaengig) */
.bvfkfb .bvfk-mobile-filter-btn{
  display: none !important;
}
.bvfkfb .bvfk-mobile-filter-btn.is-hidden{
  display: none !important;
}
@media (max-width: 768px){
  .bvfkfb[data-filter-layout="topbar"] .bvfk-mobile-filter-btn{
    display: inline-flex !important;
  }
}
@media (max-width: 991px){
  .bvfkfb[data-filter-layout="sidebar"] .bvfk-mobile-filter-btn{
    display: inline-flex !important;
  }
  #bvfkFilterAccordion .d-grid{
  grid-auto-flow: column;
}
}


/* Wenn du Safe-Area (iPhone) berücksichtigen willst */
@supports (padding: max(0px)) {
  .bvfkfb .bvfk-mobile-filter-btn{
    bottom: max(16px, env(safe-area-inset-bottom));
  }
}

.bvfkfb .offcanvas.offcanvas-bottom.bvfk-mobile-filter-offcanvas{
  height: min(85vh, 720px);
}

.bvfkfb .offcanvas.offcanvas-bottom.bvfk-mobile-filter-offcanvas .offcanvas-body{
  margin-bottom: 64px;
}

.bvfkfb .bvfk-mobile-filter-offcanvas .offcanvas-body{
  overflow: auto;
}


/****************************
 || Carousel
****************************/


.bvfk-carousel .slick-list {
  margin: 0 -12px;
}
.bvfk-carousel .slick-slide {
  padding: 0 12px;
  height: auto;
}
.bvfk-carousel .slick-track {
  display: flex;
  align-items: stretch;
}
.bvfk-carousel .slick-slide > div,
.bvfk-carousel .bvfk-carousel-slide,
.bvfk-carousel .bvfk-carousel-card,
.bvfk-carousel .bvfk-car {
  height: 100%;
}
.bvfk-carousel .bvfk-carousel-slide {
  display: flex;
}

/* Safety net: solange Slick noch nicht initialisiert ist,
   darf die Seite nicht als endlose vertikale Liste erscheinen. */
.bvfkfb-carousel .bvfk-carousel:not(.is-slick-ready) {
  overflow: hidden;
}

.bvfkfb-carousel .bvfk-carousel:not(.is-slick-ready) .bvfk-carousel-slide {
  display: none;
}

.bvfkfb-carousel .bvfk-carousel:not(.is-slick-ready) .bvfk-carousel-slide:first-child {
  display: flex;
}

.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,
.bvfkfb .carousel-control-next{
  opacity: 1;
}


.slick-arrow.carousel-control-prev::before, .slick-arrow.carousel-control-next::before {
  content:''!important;
}
.slick-arrow.carousel-control-prev, .slick-arrow.carousel-control-next {
  height: 48px!important;
  width: 48px!important;
  background-color: color-mix(in srgb, #f71616, transparent 85%);
  border-radius: 0px!important;
  top: 50%!important;
}

.slick-arrow.carousel-control-prev:hover, .slick-arrow.carousel-control-next:hover {
  background-color: color-mix(in srgb, #f71616, transparent 65%);
}

/****************************
 || Schalter, Checkboxen & Inputs
****************************/
.switch {
	position: relative;
	display: inline-block;
	width: 30px;
	height: 17px;
	padding-left: 0 !important;
	padding-right: 0 !important;
	margin-top: 0 !important;
}

.switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

.mc-slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #adadad;
	-webkit-transition: .4s;
	transition: .4s;
}

.mc-slider:before {
	position: absolute;
	content: "";
	height: 13px;
	width: 13px;
	left: 2px;
	bottom: 2px;
	background-color: white;
	-webkit-transition: .4s;
	transition: .4s;
}

input:checked+.mc-slider {
	background-color: #f71616 !important;
}

.panel-damage input:checked+.mc-slider {
	background-color: #0f228b;
}

input:focus+.mc-slider {
	box-shadow: 0 0 1px #f71616;
}

input:checked+.mc-slider:before {
	-webkit-transform: translateX(13px);
	-ms-transform: translateX(13px);
	transform: translateX(13px);
}

.mc-slider.round {
	border-radius: 17px;
}

.mc-slider.round:before {
	border-radius: 50%;
}

input[type="text"],
input[type="email"],
input[type="phone"],
input[type="date"],
textarea {
	margin-bottom: 4px !important;
}

input[type="date"] {
	padding: 8px 6px;
}

label {
	margin-bottom: .2rem !important;
	margin-top: .5rem !important;
}

/****************************
  || Helper / Utilities
****************************/
.pointer:hover {
	cursor: pointer;
}

.edgy {
	border-radius: unset !important;
}

.factive {
	background-color: #ff5400 !important;
	color: #fff !important;
}

.factive i {
	transform: rotate(180deg);
	transition: 0.02s ease-out;
}

.valid-error,
.red {
	color: red !important;
}

.tip {
	position: relative;
	top: 8px;
	left: 4px;
	font-size: 12px;
}

.tip i {
	color: #fff;
}

.tiptext {
	display: none;
	position: absolute;
	bottom: -12px;
	left: 24px;
	width: 250px;
	background-color: #fff;
	color: #fff;
	padding: 8px;
	font-size: 11px !important;
	font-weight: normal;
}

.no-border {
	border: none !important;
}

.cursor-default {
	cursor: default;
}

/****************************
  || Typography
****************************/
.semibold {
	font-weight: 600;
}

.bold {
	font-weight: 700;
}

.extrabold {
	font-weight: 800;
}

.mc-tiny {
	font-size: 10px !important;
}

.mc-small {
	font-size: 12px !important;
	font-weight: normal;
	color: #fff !important;
}

.mc-normal {
	font-size: 15px !important;
	font-weight: normal;
}

.mc-large {
	font-size: 18px !important;
	font-weight: normal;
}

.mc-xlarge {
	font-size: 24px !important;
	font-weight: normal;
}

.mc-xxlarge {
	font-size: 32px !important;
	font-weight: normal;
}

.mc-xxxlarge {
	font-size: 48px !important;
	font-weight: normal;
}

.mc-jumbo {
	font-size: 64px !important;
	font-weight: normal;
}

.text-deco-off,
.text-deco-off:hover {
	text-decoration: none !important;
}

/*****************************
  || Theme Colors
*****************************/
.mc-text-blue {
	color: #f71616 !important;
}

.dealer-color-bg {
	background-color: #f71616;
}

.dealer-color-txt {
	color: #f71616;
}

.border-sm {
	border-radius: 4px;
}

.text-white {
	color: #0c0c0c;
}

.mc-lightgrey {
	background-color: #0c0c0c !important;
	color: #fff !important;
}

.mc-text-red {
	color: var(--red) !important;
}

.mc-red {
	background-color: var(--red) !important;
	color: #fff !important;
}

.mc-text-green {
	color: var(--aa-green) !important;
}

.aa-green {
	background-color: var(--aa-green) !important;
	color: #fff !important;
}


/* =========================================================
   BVFK Fahrzeugsuche – Startfilter (scoped)
   ========================================================= */

/* Wrapper/Card */
.bvfkfb .car-start-card{
  border-radius: 0px;
  border-color: color-mix(in srgb, #fff, transparent 85%);
}

/* Tabs oben (falls genutzt) */
.bvfkfb .car-start-tabs .nav-link{
  border-radius: .5rem;
  font-weight: 600;
}

/* Divi Button (nur falls wirklich nötig) */
.bvfkfb .et_pb_button{
  color: #f71616 !important;
  border-color: #f71616 !important;
}
.bvfkfb .et_pb_button:hover{
  color: #f7f7f7 !important;
  border-color: #f71616 !important;
  background-color: #f71616 !important;
}

/* Filter-Layout Helfer (dein bestehendes Look&Feel) */
.bvfkfb .flex-head{ width:100%; display:flex; flex-direction:row; flex-wrap:nowrap; }
.bvfkfb .search-head-1,
.bvfkfb .search-head-2{
  width:50%;
  height:48px;
  display:flex;
  justify-content:center;
  align-items:center;
  color:#f7f7f7;
}
.bvfkfb .search-head-1{ background-color: #f71616; }
.bvfkfb .search-head-2{
  background-color: color-mix(in srgb, #f71616, transparent 50%);
  border: 1px solid #f71616;
}

.bvfkfb .flex-center{
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
}

.bvfkfb .search-opt{
  margin: 6px 12px;
  width: 100%;
  display:flex;
  justify-content:center;
  align-items:center;
}



.bvfkfb .search-opt > select{
  border-radius: 0px;
  min-width: 122px;
  min-height: 16px;
  font-size: 14px;
}

/* Checkboxliste (JS-Quelle) ausblenden */

/* =========================================================
   (Optional) alte fhzg-typ Bar – nur behalten, wenn noch genutzt
   ========================================================= */
.bvfkfb .fhzg-typ{
  padding: 0 !important;
  margin: 6px 0;
  background-color: #fff;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #fff;
  display:flex;
  justify-content:space-between;
}

/* =========================================================
   Fahrzeugtyp-Buttons (neue Leiste)
   ========================================================= */
.bvfkfb .bvfk-typebar{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(56px, 1fr));
  gap: .5rem;
  width: 100%;
}

/* =========================================================
   Mask Icons (CSS-färbbar via currentColor)
   ========================================================= */
.bvfkfb .bvfk-ico{
  width: 46px;
  height: 46px;
  display:block;

  background-color: currentColor;

  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;

  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}

.bvfkfb .bvfk-ico.van{
  -webkit-mask-image: url("../images/cars/passenger-van_icon.svg");
  mask-image: url("../images/cars/passenger-van_icon.svg");
}
.bvfkfb .bvfk-ico.kleinwagen{
  -webkit-mask-image: url("../images/cars/micro-car_icon.svg");
  mask-image: url("../images/cars/micro-car_icon.svg");
}
.bvfkfb .bvfk-ico.cabrio{
  -webkit-mask-image: url("../images/cars/cabriolet-car_icon.svg");
  mask-image: url("../images/cars/cabriolet-car_icon.svg");
}
.bvfkfb .bvfk-ico.wohnwagen{
  -webkit-mask-image: url("../images/cars/camper-van_icon.svg");
  mask-image: url("../images/cars/camper-van_icon.svg");
}
.bvfkfb .bvfk-ico.kombi{
  -webkit-mask-image: url("../images/cars/station-car_icon.svg");
  mask-image: url("../images/cars/station-car_icon.svg");
}
.bvfkfb .bvfk-ico.limousine{
  -webkit-mask-image: url("../images/cars/sedan-car_icon.svg");
  mask-image: url("../images/cars/sedan-car_icon.svg");
}
.bvfkfb .bvfk-ico.suv{
  -webkit-mask-image: url("../images/cars/suv-car_icon.svg");
  mask-image: url("../images/cars/suv-car_icon.svg");
}
.bvfkfb .bvfk-ico.sportwagen{
  -webkit-mask-image: url("../images/cars/super-car_icon.svg");
  mask-image: url("../images/cars/super-car_icon.svg");
}
.bvfkfb .bvfk-ico.transporter{
  -webkit-mask-image: url("../images/cars/van-truck-car_icon.svg");
  mask-image: url("../images/cars/van-truck-car_icon.svg");
}

.bvfkfb .bvfk-ico.other{
  -webkit-mask-image: url("../images/cars/other-cars_icon.svg");
  mask-image: url("../images/cars/other-cars_icon.svg");
}

/* Kategorie-Leiste: nutzt volle Breite, Buttons gleich breit */
.bvfkfb .bvfk-catbar{
  display: flex;
  gap: .5rem;
  width: 100%;
}

.cb-liste.farbe-opt {
	padding:0px;
	margin:0px;
	display:flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
}

.filter-remove{
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;
  background: #dc3545; /* Bootstrap danger */
  color: #fff!important;

  font-size: 12px;
  line-height: 1;
  text-decoration: none!important;
}

.filter-remove:hover,
.filter-remove:focus{
  color: #fff;
  background: #dc3545; /* bewusst KEIN Hover-Effekt */
}

/* =========================================================
   Pagination
   ========================================================= */

.bvfkfb .bvfkfb-pagination .page-link{
  color: #fff;
  border-color: color-mix(in srgb, #fff, transparent 70%);
  background: color-mix(in srgb, #fff, transparent 93%);
  box-shadow: none;
}

/* Hover: optional dezent (wenn du GAR keine Änderung willst: Block löschen) */
.bvfkfb .bvfkfb-pagination .page-link:hover{
  color: #f71616;
  border-color: #f71616;
  background: color-mix(in srgb, #f71616, #0c0c0c 92%);
}

/* Fokus (Bootstrap legt sonst Schatten) */
.bvfkfb .bvfkfb-pagination .page-link:focus{
  box-shadow: 0 0 0 .2rem color-mix(in srgb, #f71616, transparent 70%);
}

/* Active: Akzent voll */
.bvfkfb .bvfkfb-pagination .page-item.active .page-link{
  color: #fff;
  background: #f71616;
  border-color: #f71616;
}

/* Disabled */
.bvfkfb .bvfkfb-pagination .page-item.disabled .page-link{
  color: color-mix(in srgb, #ffffff, #0c0c0c, transparent 55%);
  background: color-mix(in srgb, #ffffff, #0c0c0c, transparent 93%);
  border-color: color-mix(in srgb, #ffffff, #0c0c0c, transparent 85%);
}


/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 576px){
  .bvfkfb .bvfk-typebtn{
    width: 52px;
    height: 48px;
  }
  .bvfkfb .fhzg-filter{ align-items: stretch; }
  .bvfkfb .search-opt{ width: 100%; }
}

