﻿/* =========================
   RADSTAND - BASIS
========================= */

*{
  box-sizing:border-box;
}

html,
body{
  margin:0;
  padding:0;
}

body{
  font-family:Arial, Helvetica, sans-serif;
  background:#434343;
  color:#f2f2f2;
  line-height:1.5;
}

.main{
  padding:24px;
  min-height:70vh;
}

a{
  color:#ff2a2a;
  text-decoration:none;
}

a:hover{
  color:#fff;
  text-decoration:underline;
}

/* =========================
   HEADER
========================= */

.header{
  position:sticky;
  top:0;
  z-index:9999;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:14px 28px;
  background:#111;
  border-bottom:1px solid #333;
  box-shadow:0 3px 12px rgba(0,0,0,0.6);
}

.logo img{
  height:65px;
  width:auto;
  display:block;
  border-radius:8px;
}

.nav{
  flex:1;
  display:flex;
  justify-content:center;
  align-items:center;
  flex-wrap:wrap;
  gap:18px;
}

.nav a{
  color:#ff2a2a;
  font-weight:bold;
  font-size:26px;
  text-decoration:none;
  white-space:nowrap;
  transition:0.2s;
}

.nav a:not(:last-child){
  border-right:1px solid #555;
  padding-right:16px;
  margin-right:2px;
}

.nav a.active{
  color:#fff;
}

.nav a.active:hover{
  color:#fff;
}

.nav a:hover{
  color:#fff;
}

.shop-highlight{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 22px;
  background:#ff2a2a;
  color:#fff;
  font-size:24px;
  font-weight:bold;
  border-radius:8px;
  text-decoration:none;
  white-space:nowrap;
  transition:0.2s;
  margin-right:20px;
}

.shop-highlight:hover{
  background:#c40000;
  color:#fff;
  text-decoration:none;
}

.cart-wrapper{
  position:relative;
  margin-right:20px;
}

.cart-icon{
  position:relative;
  display:inline-block;
  font-size:48px;
  color:#ff2a2a;
  text-decoration:none;
  line-height:1;
}

.cart-count{
  position:absolute;
  top:-10px;
  right:-16px;
  min-width:24px;
  height:24px;
  padding:2px 7px;
  border-radius:50%;
  background:#ff2a2a;
  color:#fff;
  font-size:14px;
  font-weight:bold;
  text-align:center;
  line-height:20px;
}

/* =========================
   BUTTONS
========================= */

button,
.btn{
  background:#ff2a2a;
  color:#fff;
  border:none;
  padding:10px 16px;
  cursor:pointer;
  border-radius:5px;
  font-weight:bold;
}

button:hover,
.btn:hover{
  background:#990000;
}

/* =========================
   FORMULARE
========================= */

form{
  max-width:650px;
  margin:0 auto;
}

label{
  font-weight:bold;
}

input,
select,
textarea{
  width:100%;
  padding:10px;
  margin:5px 0 14px;
  background:#777777;
  border:1px solid #555;
  color:#fff;
  border-radius:0;
  font-size:15px;
}

textarea{
  min-height:120px;
}

input:focus,
select:focus,
textarea:focus{
  outline:none;
  border-color:#ff2a2a;
}

.checkbox-row{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:10px;
}

.checkbox-row input{
  width:auto;
  margin:0;
}

/* =========================
   WARENKORB / CHECKOUT
========================= */

.cart-table{
  width:100%;
  border-collapse:separate;
  border-spacing:0 10px;
  margin-bottom:20px;
}

.cart-table thead th{
  background:#222;
  padding:14px;
  text-align:left;
  color:#fff;
  border-bottom:2px solid #ff2a2a;
}

.cart-table tbody tr{
  background:#242424;
  box-shadow:0 0 6px rgba(0,0,0,0.6);
}

.cart-table td{
  padding:14px;
  vertical-align:middle;
}

.cart-table button{
  padding:6px 10px;
  margin:0 4px;
}

.remove-cart-btn{
  background:#d82323;
  color:#fff;
  border:none;
  padding:4px 10px;
  cursor:pointer;
  font-weight:bold;
  border-radius:4px;
}

.remove-cart-btn:hover{
  background:#b00000;
}

/* =========================
   WARENKORB-HINWEIS
========================= */

#cart-message{
  position:fixed;
  top:120px;
  right:20px;
  background:#777777;
  color:#fff;
  border-left:6px solid #d82323;
  padding:12px 18px;
  opacity:0;
  pointer-events:none;
  transition:opacity .3s;
  z-index:99999;
  box-shadow:0 4px 12px rgba(0,0,0,.4);
}

#cart-message.show{
  opacity:1;
}

/* =========================
   SHOP
========================= */

#categories{
  margin-bottom:25px;
}

#categories button{
  margin-right:10px;
  margin-bottom:10px;
}

.category-active{
  background:#990000 !important;
  color:#fff;
}

.product{
  margin-bottom:18px;
  padding:14px 18px;
  background:#242424;
  border:1px solid #333;
  border-radius:8px;
}

.product-content{
  display:flex;
  align-items:stretch;
  gap:4px;
}

.product-text{
  flex:none;
  width:72%;
  line-height:1.22;
}

.product h3{
  text-align:left;
  margin:0 0 8px;
  color:#fff;
}

.product p{
  margin:5px 0;
}

.product-price{
  color:#fff;
  font-size:18px;
  margin-top:8px !important;
}

.product-image-area{
  width:50%;
  min-width:250px;
  padding-left:10px;
  border-left:1px solid #d82323;
  display:flex;
  align-items:center;
  justify-content:flex-start;
}

.product-image-area img{
  width:230px;
  height:auto;
  display:block;
  border-radius:5px;
}

.product input,
.product select{
  width:180px;
  max-width:100%;
  min-width:90px;
  display:block;
  margin-top:6px;
}

.qty-control{
  display:flex;
  align-items:stretch;
  width:120px;
  height:46px;
  margin:6px 0 12px;
}

.qty-control .qty{
  width:70px;
  height:46px;
  margin:0;
  border-radius:5px 0 0 5px;
  text-align:center;
  font-size:18px;
}

.qty-buttons{
  display:flex;
  flex-direction:column;
  width:50px;
}

.qty-buttons button{
  flex:1;
  width:100%;
  padding:0;
  margin:0;
  border-radius:0;
  font-size:16px;
  line-height:1;
}

.qty-buttons button:first-child{
  border-radius:0 5px 0 0;
}

.qty-buttons button:last-child{
  border-radius:0 0 5px 0;
}

.add-cart-btn{
  margin-top:4px;
}


/* =========================
   EINHEITLICHER SEITENTITEL
========================= */

.page-title-block{
  width:100%;
  margin:0 0 25px;
  padding:8px 0 12px;
  border-bottom:1px solid #d82323;
}

.page-title-block h1{
  color:#d82323;
  font-size:52px;
  line-height:1.1;
  margin:0 0 10px;
  font-weight:700;
}

.page-title-block p{
  color:#ddd;
  font-size:22px;
  margin:0;
  line-height:1.35;
}

/* =========================
   TEXTSEITEN
========================= */

.main h2{
  color:#d82323;
  margin-top:40px;
  margin-bottom:12px;
}

.main h3{
  color:#d82323;
  margin-top:30px;
  margin-bottom:8px;
}

.main p{
  margin-bottom:16px;
  line-height:1.25;
}

.main ul{
  margin-bottom:20px;
  line-height:1.25;
}

.main li{
  margin-bottom:4px;
}


/* =========================
   HOME BILDLÄUFE
========================= */

.image-marquee{
  width:calc(100vw - 48px);
  margin:0 0 30px;
  overflow:hidden;
  border-radius:8px;
  border:1px solid #fff;
  background:#000;
  touch-action:none;
}
.image-marquee-track{
  display:flex;
  gap:18px;
  width:max-content;
  animation:marquee-left-right 45s linear infinite;
}

.image-marquee img{
  height:320px;
  width:auto;
  flex:0 0 auto;
  object-fit:contain;
  border-radius:8px;
}

.latest-marquee .image-marquee-track{
  animation-duration:65s;
}

@keyframes marquee-left-right{
  from{
    transform:translateX(-50%);
  }

  to{
    transform:translateX(0);
  }
}

/* =========================
   HOME TITEL
========================= */

.home-title-block p{
  font-size:34px;
  font-weight:700;
  color:#fff;
  line-height:1.15;
}

.home-red{
  color:#d82323;
}

/* =========================
   AKTUELLE FAHRZEUGBEISPIELE
========================= */

.latest-gallery{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:15px;
  margin:25px 0 35px;
}

.latest-gallery img{
  width:100%;
  height:180px;
  object-fit:cover;
  border-radius:8px;
  border:1px solid #444;
}

/* =========================
   PRODUKTBESCHREIBUNG
========================= */


.product-page{
  width:100%;
}

.product-layout{
  display:flex;
  align-items:flex-start;
  margin-bottom:70px;
  padding-bottom:50px;
  border-bottom:1px solid #333;
}

.product-left{
  width:50%;
  padding-right:40px;
}

.product-left h2{
  color:#d82323;
  font-size:34px;
  margin-top:0;
}

.product-left h3{
  color:#d82323;
  font-size:24px;
  margin-top:30px;
}

.product-left p,
.product-left li{
  font-size:18px;
  line-height:1.4;
}

.product-left ul{
  padding-left:20px;
}

.product-right{
  width:50%;
  padding-left:40px;
  border-left:1px solid #d82323;
  display:flex;
  flex-wrap:wrap;
  gap:24px;
  align-items:flex-start;
}

.product-thumb{
  width:220px;
  height:auto;
  max-height:none;
  object-fit:contain;
  cursor:pointer;
  transition:0.2s;
  border-radius:4px;
}

.product-thumb:hover{
  transform:scale(1.04);
}

/* =========================
   LIGHTBOX
========================= */

#lightbox{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background:rgba(0,0,0,0.92);
  display:none;
  justify-content:center;
  align-items:center;
  z-index:99999;
}

#lightbox img{
  width:99vw;
  height:99vh;
  max-width:99vw;
  max-height:99vh;
  object-fit:contain;
  position:relative;
  z-index:1;
}

#lightboxClose,
#lightboxPrev,
#lightboxNext{
  z-index:2;
}

#lightboxClose{
  position:absolute;
  top:15px;
  right:15px;
  background:none;
  border:none;
  color:#999;
  cursor:pointer;
  z-index:100000;
  padding:30px;
  line-height:1;
}

#lightboxClose:hover{
  color:#fff;
}

.close-x{
  font-size:60px;
  font-weight:bold;
  vertical-align:middle;
}

.close-text{
  font-size:16px;
  vertical-align:middle;
}

#lightboxPrev,
#lightboxNext{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  background:none;
  border:none;
  color:#999;
  font-size:100px;
  font-weight:normal;
  cursor:pointer;
  z-index:100000;
  padding:45px 35px;
  line-height:1;
}

#lightboxPrev{
  left:10%;
}

#lightboxNext{
  right:10%;
}

#lightboxPrev:hover,
#lightboxNext:hover,
#lightboxClose:hover{
  color:#fff;
}

/* =========================
   MONTAGEANLEITUNGEN
========================= */


.manuals-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:30px 80px;
  width:100%;
  padding:0 40px 80px;
}

.manual-btn{
  display:flex;
  align-items:center;
  min-height:44px;
  background:#777777;
  color:#fff !important;
  text-decoration:none;
  font-weight:bold;
  font-size:18px;
  border-left:6px solid #d82323;
  border-radius:0;
  transition:.2s;
  text-align:left;
  padding:8px 14px;
}

.manual-btn:hover{
  background:#686868;
  text-decoration:none;
}

/* =========================
   FAQ
========================= */


.faq-container{
  width:100%;
  padding:0 20px 80px;
}

.faq-item{
  margin-bottom:4px;
}

.faq-question{
  width:100%;
  background:#777777;
  color:#fff;
  border-left:6px solid #d82323;
  border-radius:0;
  text-align:left;
  font-size:18px;
  font-weight:bold;
  padding:8px 14px;
  min-height:44px;
}

.faq-question:hover{
  background:#686868;
}

.faq-answer{
  display:none;
  background:#f5f5f5;
  color:#444;
  padding:14px 18px;
  border-left:6px solid #d82323;
  margin-bottom:6px;
}

.faq-answer p{
  margin:0 0 12px;
  font-size:16px;
  line-height:1.45;
}

.faq-item.open .faq-answer{
  display:block;
}

/* =========================
   FAQ BILDER
========================= */

.faq-gallery{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:20px;
  margin-top:20px;
}

.faq-image{
  display:flex;
  flex-direction:column;
}

.faq-image img{
  width:100%;
  cursor:pointer;
  border-radius:4px;
  transition:0.2s;
}

.faq-image img:hover{
  transform:scale(1.02);
}

.faq-caption{
  margin-top:10px;
  font-size:16px;
  line-height:1.5;
  color:#444;
}

#faqLightbox{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  display:none;
  justify-content:center;
  align-items:center;
  background:rgba(0,0,0,0.92);
  z-index:99999;
}

#faqLightbox img{
  max-width:90%;
  max-height:90%;
}

/* =========================
   VERSANDKOSTEN
========================= */

.shipping-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:40px;
  margin-bottom:25px;
}

.shipping-grid h3{
  color:#d82323;
  margin-bottom:15px;
}

.shipping-table{
  width:100%;
  border-collapse:separate;
  border-spacing:0 6px;
  table-layout:fixed;
}

.shipping-table td{
  background:#777777;
  padding:10px 14px;
  vertical-align:top;
}

.shipping-table td:first-child{
  width:auto;
}

.shipping-table td:last-child{
  width:100px;
  text-align:right;
  white-space:nowrap;
}

.shipping-table small{
  display:block;
  margin-top:4px;
  color:#fff;
  font-size:15px;
  line-height:1.35;
}

@media(max-width:1000px){

  .shipping-grid{
    grid-template-columns:1fr;
    gap:20px;
  }

}

/* =========================
   GALERIE IFRAME
========================= */

.gallery-wrapper{
  width:100%;
  height:calc(100vh - 120px);
}

.gallery-frame{
  width:100%;
  height:100%;
  border:none;
  border-radius:10px;
  background:#111;
}


/* =========================
   WIDERRUFSBUTTON
========================= */

.withdrawal-fixed-button{
  position:fixed;
  right:22px;
  bottom:22px;
  z-index:9998;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:10px 16px;
  background:#777777;
  color:#fff !important;
  border-left:6px solid #d82323;
  border-radius:8px;
  font-size:16px;
  font-weight:bold;
  text-decoration:none;
  box-shadow:0 4px 14px rgba(0,0,0,0.45);
}

.withdrawal-fixed-button:hover{
  background:#686868;
  color:#fff !important;
  text-decoration:none;
}

.withdrawal-page{
  width:100%;
}

.withdrawal-box{
  background:#242424;
  border-left:6px solid #d82323;
  padding:20px;
  margin-bottom:24px;
}

.withdrawal-box p{
  margin-top:0;
}

.withdrawal-form{
  max-width:650px;
  margin:0;
}

.withdrawal-form button{
  margin-top:8px;
}

.withdrawal-success{
  display:none;
  background:#242424;
  border-left:6px solid #d82323;
  padding:20px;
  margin-top:20px;
}


/* =========================
   FOOTER
========================= */

footer{
  margin-top:40px;
  padding:20px;
  background:#111;
  text-align:center;
  color:#fff;
}

footer a{
  color:#fff;
  margin:0 10px;
  text-decoration:none;
}

footer a:hover{
  color:#ff2a2a;
  text-decoration:underline;
}

/* =========================
   HOME
========================= */

.home-benefits{
  width:100%;
}

.home-benefits h2{
  color:#d82323;
  font-size:28px;
  margin:0 0 12px;
}

.home-custom-note h2,
.latest-slider-section h2,
.popular-vehicles h2,
.home-benefits h2{
  color:#d82323;
  font-size:28px;
  margin:0 0 12px;
}

.home-benefits > p{
  font-size:18px;
  margin:0 0 18px;
}

.home-benefit-grid{
  display:flex;
  flex-direction:column;
  gap:4px;
}

.home-benefit-item{
  position:relative;
  background:#777777;
  color:#fff;
  padding:8px 14px 8px 32px;
  min-height:auto;
}

.home-benefit-item::before{
  content:"•";
  position:absolute;
  left:10px;
  top:7px;
  color:#d82323;
  font-size:20px;
  font-weight:bold;
  line-height:1;
}

.home-benefit-item strong{
  display:inline;
  font-size:18px;
  margin:0;
}

.home-benefit-item span{
  display:inline;
  font-size:16px;
  line-height:1.3;
}

.home-intro,
.home-custom-note{
  width:100%;
  margin-bottom:26px;
}

.home-intro p,
.home-custom-note p{
  font-size:18px;
  line-height:1.25;
}

.home-custom-note a{
  font-size:22px;
  font-weight:bold;
}

.home-custom-note a:hover{
  font-size:22px;
}

.home-action-buttons{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:18px;
}

.home-action-button{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  background:#777777;
  color:#fff !important;
  text-decoration:none;
  font-weight:bold;
  font-size:18px;
  border-left:6px solid #d82323;
  border-radius:0;
  padding:8px 16px;
}

.home-action-button:hover{
  background:#686868;
  text-decoration:none;
}

.home-custom-note{
  padding:0;
}

.home-custom-note h2{
  margin-top:0;
}

/* =========================
   BELIEBTE FAHRZEUGE
========================= */

.popular-vehicles{
  width:100%;
  margin:35px 0;
}

.popular-vehicles-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:10px;
}

.popular-vehicles-grid a{
  display:block;
  background:#777777;
  color:#fff;
  text-decoration:none;
  border-left:6px solid #d82323;
  padding:10px 14px;
  font-weight:bold;
}

.popular-vehicles-grid a:hover{
  background:#686868;
}

/* =========================
   FAHRZEUG-SEITEN
========================= */

/* Bildergalerie auf der automatisch erzeugten Fahrzeugseite */
.vehicle-gallery{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
  gap:20px;
  margin:25px 0;
}

/* Einzelnes Bild innerhalb der Fahrzeugseite */
.vehicle-image img{
  width:100%;
  height:auto;
  border-radius:8px;
}

/* Button-Leiste unter den Fahrzeugbildern */
.vehicle-links{
  display:flex;
  gap:15px;
  flex-wrap:wrap;
  margin-top:25px;
}

/* Buttons: Shop, Produktbeschreibung, Fahrzeugübersicht */
.vehicle-links a{
  display:inline-block;
  padding:10px 16px;
  background:#777777;
  color:#fff;
  text-decoration:none;
  border-left:6px solid #d82323;
  border-radius:8px;
}

/* Hover-Effekt für die Buttons */
.vehicle-links a:hover{
  background:#686868;
}

.vehicle-back-link{
  margin:25px 0 35px;
}

.vehicle-back-link a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  background:#777777;
  color:#fff !important;
  text-decoration:none;
  font-weight:bold;
  font-size:18px;
  border-left:6px solid #d82323;
  border-radius:0;
  padding:8px 16px;
}

.vehicle-back-link a:hover{
  background:#686868;
  text-decoration:none;
}

/* =========================
   MOBILE
========================= */
/* =========================
   MOBILE ANSICHT

   Bis 1000px:
   Kompakter Header mit
   36px Logo und 36px Shop-Button.

   Bis 768px:
   Weitere Optimierungen für
   Smartphones. Header-Größe
   bleibt unverändert.
========================= */


@media(max-width:1000px){

  .header{
    display:grid;
    grid-template-columns:auto 1fr auto auto;
    grid-template-areas:
      "logo spacer shop cart"
      "nav nav nav nav";
    align-items:center;
    gap:7px 9px;
    padding:7px 13px;
  }

  .logo{
    grid-area:logo;
  }

  .logo img{
    height:36px;
  }

  .nav{
    grid-area:nav;
    justify-content:center;
    gap:4px 0;
    line-height:1.2;
  }

  .nav a{
    font-size:16px;
    margin:2px 0;
    padding:1 6px;
  }

  .nav a:not(:last-child){
    padding-right:8px;
    margin-right:0;
  }

  .shop-highlight{
  grid-area:shop;
  justify-self:end;
  height:36px;
  min-height:36px;
  padding:0 12px;
  margin-right:4px;
  font-size:14px;
}

  .cart-wrapper{
    grid-area:cart;
    justify-self:end;
    margin-right:4px;
  }

  .cart-icon{
    font-size:34px;
  }

  .cart-count{
    top:-8px;
    right:-12px;
    min-width:20px;
    height:20px;
    font-size:12px;
    line-height:16px;
  }

  .page-title-block h1{
    font-size:38px;
  }

  .page-title-block p{
    font-size:18px;
  }

  .product-layout{
    flex-direction:column;
  }

  .product-left,
  .product-right{
    width:100%;
    padding-left:0;
    padding-right:0;
    border-left:none;
  }

  .product-right{
    margin-top:20px;
  }

  .manuals-grid{
    grid-template-columns:1fr;
  }

  .faq-question{
    font-size:17px;
  }

  .home-benefits h2{
    font-size:24px;
  }
}


@media(max-width:768px){

  .main{
    padding:15px;
  }

  .page-title-block{
    margin-bottom:32px;
    padding:18px 0 18px;
  }

  .page-title-block h1{
    font-size:34px;
  }

  .page-title-block p{
    font-size:16px;
  }

  form{
    max-width:100%;
  }

  .cart-icon{
    font-size:35px;
  }

  .product input,
  .product select{
    width:100%;
  }

  .cart-table{
    font-size:14px;
  }

  .faq-question{
    font-size:16px;
    padding:8px 12px;
  }

  .withdrawal-fixed-button{
    right:12px;
    bottom:12px;
    max-width:calc(100% - 24px);
    min-height:40px;
    padding:8px 12px;
    font-size:14px;
  }
    
  .product-content{
    flex-direction:column;
    gap:14px;
  }

  .product-text{
    width:100%;
  }

  .product-image-area{
    width:100%;
    min-width:0;
    padding-left:0;
    border-left:none;
    border-top:1px solid #d82323;
    padding-top:14px;
    justify-content:center;
  }

  .product-image-area img{
    width:100%;
    max-width:320px;
  }  

  .product{
    padding:14px;
    overflow:hidden;
  }

  #categories button{
    margin-bottom:8px;
  }

  .gallery-title{
    display:none;
  }
  
    #lightbox img{
  width:82vw;
  height:82vh;
  max-width:82vw;
  max-height:82vh;
  object-fit:contain;
  touch-action:none;
}

  #lightboxClose{
    top:15px;
    right:10px;
    padding:20px;
    color:#fff;
    z-index:100001;
  }

  .close-x{
    font-size:52px;
  }

  .close-text{
    display:none;
  }

  #lightboxPrev,
  #lightboxNext{
    display:none;
  }

.vehicle-back-link{
  margin:20px 0 30px;
}
    
}