/*

Template 2097 Pop

https://www.tooplate.com/view/2097-pop

*/

body {
  font-family: "Open Sans", Helvetica, Arial, sans-serif;
  font-size: 19px;
  font-weight: 300;
  color: white;
  position: relative;
}

h1 {
  font-size: 2.8rem;
}

#tm-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url(../img/headlightbg_kaki_middlegreen.png);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: -1;
  transition: all 0.3s ease;
}

#tm-bg:after {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

#tm-wrap {
  display: flex;
  align-items: center;
  height: 100%;
  min-height: 100vh;
}

p {
  line-height: 1.9;
  letter-spacing: 1px;
}

.tm-main-content {
  display: flex;
  align-items: center;
  padding: 50px 15px;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  overflow: auto;
}

.tm-site-header {
  margin: 10px;
  text-align: right;
  width: 100%;
}

.tm-nav ul {
  padding-left: 0;
  display: block;
}

.tm-nav li {
  list-style: none;
  display: inline-block;
  border: 1px solid white;
  float: left;
  margin: 10px;
}

.tm-nav-link {
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 165px;
  height: 165px;
  text-align: center;
  border: 1px solid white;
  cursor: pointer;
  position: relative;
}

.tm-nav-text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
}

.fa-3x {
  font-size: 2.5em;
}

.product {
  background: transparent;
  transition: all 0.3s ease;
}

.product:hover {
  background: #444444;
  color: #a9a9a9;
}

.tm-nav-icon {
  display: block;
  margin-bottom: 25px;
}

/* Expanding Grid Items from Codrops */
.tm-page-title {
  font-weight: 300;
}
.content {
  max-width: 370px;
}
.grid {
  display: flex;
  flex-wrap: wrap;
}
.grid__item {
  margin: 10px;
}
.product {
  position: relative;
  cursor: pointer;
}

.product__bg {
  width: 100%;
  height: 100%;
  top: 0px;
}

.product__bg,
.product__description {
  opacity: 0;
  position: absolute;
}

.product__description {
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  display: none;
}

.tm-fa-close {
  font-size: 30px;
}

.details {
  font-size: 1rem;
  width: 100%;
  height: 100%;
  bottom: 0;
  left: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  pointer-events: none;
  padding: 15px;
  display: none;
}

.details > * {
  position: relative;
  opacity: 0;
}

.details--open {
  pointer-events: auto;
}

.details__bg {
  width: 100%;
  max-width: 900px;
  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
}

.details__bg--down {
  background: #444444;
}

.details__bg {
  padding: 50px;
  transform-origin: 0 0;
}

.details__close {
  position: absolute;
  top: 5px;
  right: 0;
  border: 0;
  background: none;
  margin: 1em;
  cursor: pointer;
  font-size: 0.85em;
  color: white;
  z-index: 1001;
}

/* Team */
.tm-reverse-sm {
  flex-direction: row;
}

/* Our Work */
.tm-slider-img-link {
  padding-left: 10px;
  padding-right: 10px;
}

.slick-dots li button:before {
  font-size: 20px;
  color: white;
  opacity: 1;
}

.slick-dots {
  position: absolute;
  bottom: -40px;
  display: block;
  width: 100%;
  padding: 0;
  list-style: none;
  text-align: center;
}

.slick-dots li.slick-active button:before {
  opacity: 0.75;
  color: deepskyblue;
}
.slick-dots {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    justify-content: center;
    max-width: 100%;
    padding: 0;
}

.slick-dots li {
    flex: 0 0 auto;
}

/* Contact */
.form-control {
  font-size: 1.1rem;
  border-radius: 0;
  border: none;
  background-color: #3a3a3a;
  color: white;
  padding: 0.75rem;
}

.form-control:focus {
  color: #cecece;
  background-color: #77757d;
  border-color: transparent;
}

.tm-col-email {
  padding-left: 0;
}

.tm-btn-submit {
  background-color: #3a3a3a;
}

.tm-btn-gray {
  background-color: #3a3a3a;
  color: white;
}

.tm-btn-gray:hover {
  background-color: #77757d;
  color: white;
}

.btn {
  padding: 0.5rem 2.4rem;
  font-size: 1.2rem;
  border-radius: 0;
}

.btn-primary {
  border-color: transparent;
}

.btn-primary:hover {
  background-color: #77757d;
  border-color: transparent;
}

/* Footer */
footer {
  position: absolute;
  bottom: 30px;
  text-align: center;
  left: 0;
  right: 0;
}

.tm-text-highlight {
  color: white;
}
.tm-text-highlight:hover {
  color: red;
}
.tm-main-content.tm-footer-relative {
  flex-direction: column;
}
.tm-main-content.tm-footer-relative footer {
  position: relative;
  bottom: 0;
  margin-top: 0px;
}

.tm-copyright-text {
  background-color: rgba(0, 0, 0, 0.6);
  display: inline-block;
  padding: 10px 30px;
}

a,
button {
  transition: all 0.3s ease;
}
a:hover,
a:focus {
  text-decoration: none;
  outline: none;
}

p:last-child {
  margin-bottom: 0;
}

@media (min-width: 900px) {
  .container {
    max-width: 900px;
  }
}

@media (min-width: 767px) and (max-width: 991px), (max-width: 440px) {
  .tm-nav-link {
    width: 145px;
    height: 145px;
  }
}

@media (max-width: 767px) {
  .container {
    max-width: 450px;
  }
  .content {
    margin-left: auto;
    margin-right: 0;
  }
  .tm-nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
  .grid {
    justify-content: center;
  }
  .tm-col-email {
    padding-left: 15px;
  }
  .tm-reverse-sm {
    flex-direction: column-reverse;
  }
}

@media (max-width: 544px) {
  .tm-main-content {
    flex-direction: column;
  }
  .details__bg {
    padding: 55px 40px;
  }
  .slick-dots li button:before {
    font-size: 15px;
  }

  footer {
    position: relative;
    bottom: 0;
  }
}

@media (max-width: 419px) {
  .tm-nav-link {
    width: 120px;
    height: 120px;
  }

  .fa-3x {
    font-size: 2.2em;
  }
}

#headline-rotator {
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: 2px;
  display: inline-block;
  transition: opacity 0.5s;
  color: #9D5D9B;
}

/* === Details-Popup: Close (X) und Back (<) Buttons exakt gleich groß und ausgerichtet === */
.details__close, .details__back {
    padding: 0;
    line-height: 1;
    background: none;
    border: none;
    color: #fff;
    position: absolute;
    top: 10px;
    z-index: 2;
    cursor: pointer;
}

.details__close {
    right: 10px;
}

.details__back {
    right: 60px;
}

/* Exakte vertikale Ausrichtung der Icons */
.details__close i, .details__back i {
    vertical-align: middle;
    display: inline-block;
    position: relative;
    /* X braucht meist keinen Offset, Pfeil schon */
}

.details__close i {
    top: 2px;
}

.details__back i {
    top: 4px; /* Korrigiert den FontAwesome-Pfeil */
}


/* === Eigene Anpassung für Fahrzeug-Tabelle === */
.custom-car-table th,
.custom-car-table td {
  font-size: 0.8rem !important;         /* kleinere Schrift */
  padding: 0.4rem 0.75rem;   /* kompaktere Zellen */
}

.custom-car-table tr:nth-child(odd) {
  background-color: rgba(0, 0, 0, 0.03); /* abgesetzte Zeilen */
}

/* Slick dots als kleine Quadrate in Details-Popups */
.details .slick-dots li button:before {
    font-size: 12px;
    color: #bbb;           /* inaktive Quadrate: hellgrau */
    opacity: 1;
    content: '■';          /* Quadrat statt Punkt */
    transition: color 0.3s;
}

.details .slick-dots li.slick-active button:before {
    color: #666;           /* aktives Quadrat: dunkleres Grau */
}

.details .slick-dots li {
    margin: 0 4px;
}

.details .slick-dots {
    bottom: -25px;
    display: flex !important;
    justify-content: center;
    align-items: center;
}
.details__back i {
    top: 12px;
    transform: scale(0.8);
}

.details__back {
    display: none;
}
.details--show-back .details__back {
    display: inline-block;
}
.details .car-detail-desc {
    font-size: 1rem;
    margin-top: 1.5rem;
}
.details .table th, .details .table td {
    font-size: 0.95rem;
    padding: 0.4rem 0.75rem;
}
.details h2 {
    font-size: 1.6rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
}
.car-features-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}
.car-features-list li {
    padding-left: 0;
    margin-bottom: 2px;
}


.details .car-slider img,
.details .car-slider .easyzoom img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 60vh !important;
    object-fit: contain !important;
    display: block;
    margin: 0 auto;
    background: #222;
}

.details .car-slider,
.details .car-slider .slick-list,
.details .car-slider .slick-track,
.details .car-slider .slick-slide,
.details .car-slider .slick-slide > div {
    min-height: 250px;
    height: 60vh !important;
    max-height: 65vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box;
}
#logo-container {
  width: 400px;
  height: 400px;
  margin-left: auto;
  margin-right: 0;

  display: flex;
  align-items: center;
  justify-content: center;
  /* Optional: damit die Box nicht zu groß wird */
  flex-shrink: 0;
}

.logo-svg {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Bild skaliert proportional */
  display: block;
}
.tm-site-header-col {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  max-height: 400px;
  padding-top: 10px;

}

#logo-container {
  width: 400px;
  height: 400px;
  margin-left: auto;
  margin-right: 0;
  margin-top: -20px; /* nach oben verschieben */
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
/* Für Tablets und kleinere Bildschirme */
@media (max-width: 991px) {
  #logo-container {
    width: 350px;
    height: 350px; /* optional */
    margin-top: -33px;
  }
}

/* Für Smartphones */
@media (max-width: 767px) {
  #logo-container {
    width: 300px;
    height: 300px; /* optional */
    margin-left: auto;
    margin-right: auto;
  }
}
.tm-copyright-text {
  background-color: transparent !important; /* schwarzen Hintergrund entfernen */
  text-align: center;                      /* Text zentrieren */
  display: block;                          /* Block-Element für volle Breite */
  margin: 0 auto;                         /* zentriert bei Block */
  padding: 10px 0;                        /* optional: etwas vertikaler Abstand */
}
