/* Reset and Base Styles */
html {
  --logo-width: 300px;
  --nav-container-padding: 100px;
  --padding-container: calc(56px + 80px);
  overflow-x: hidden;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

main {
  margin-top: 13vh;
}

body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333;
  overflow-x: hidden;
}

.container {
  width: calc(100vw - 2 * var(--padding-container));
  margin: 0 auto;
  padding: 0 0px;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1rem 0;
  padding-bottom: 0;
  transition: all 0.3s ease;
}

.nav-container {
  height: 15vh;
  margin: 0 auto;
  padding: 0 var(--nav-container-padding);
  padding-right: var(--padding-container);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo .logo {
  height: 100px;
  width: auto;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-menu a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-menu a:hover {
  color: #FF4208;
}

.nav-dropdown {
  position: absolute;
  right: var(--padding-container);
  top: 2rem;
}

@media (max-width: 768px) {
  .nav-dropdown {
    position: relative;
    right: auto;
    top: auto;
  }
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 0.5rem 0;
  min-width: 150px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  padding: 1rem 1rem;
}

ul.dropdown-menu {
  list-style-type: none;
}

.dropdown-menu a {
  display: block;
  color: #333;
}

.dropdown-menu a:hover {
  color: #FF4208;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #333;
  margin: 3px 0;
  transition: 0.3s;
}

/* Hero Section */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

/*.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="grid" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M 50 0 L 0 0 0 50" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
}
*/
.hero-image {
  width: 100%;
  height: 100%;
  padding-top: 15vh;
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
              url('../images/ATE_VDO_Keyvisual_Banner.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .hero-image {
    background-position-x: 75%;
  }
}

.hero-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  padding-left: calc(var(--padding-container) - 0.4rem + 1px);
}

.hero-content {
  background: rgba(255, 255, 255, 0.95);
  padding: 3rem;
  border-radius: 12px;
  max-width: 500px;
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.hero-content h1 {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 2rem;
  line-height: 1.2;
}

.hero-content p {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 2rem;
}

.hero-content a {
  font-size: 1.2rem;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #FF4208;
  color: white;
  padding: 0.5rem 1rem;
  text-decoration: none;
  border-radius: 9999px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 66, 8, 0.3);
}

.cta-button:hover {
  background: #e63a07;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 66, 8, 0.4);
}

.arrow {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.cta-button:hover .arrow {
  transform: translateX(5px);
}

/* Introduction Section */
.intro-section {
  padding: 6rem 0;
  background: #f8f9fa;
}

.intro-section h2 {
  font-size: 2.5rem;
  color: #FF4208;
  text-align: center;
  margin-bottom: 2rem;
  font-weight: bold;
}

.intro-section p {
  font-size: 1.2rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  color: #666;
  line-height: 1.8;
}

/* Brands Section */
.brands-section {
  padding: 6rem 0;
  background: white;
}

.brands-section h2 {
  font-size: 2.5rem;
  color: #FF4208;
  text-align: center;
  margin-bottom: 4rem;
  font-weight: bold;
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* zwei Spalten */
  gap: 3rem;
  align-items: stretch;
}

.brand-card {
  background: #f8f9fa;
  padding: 3rem;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.brand-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.brand-card a {
  font-size: 1.2rem;
}

.brand-logo {
  max-height: 80px;
  margin-bottom: 2rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.brand-card h3 {
  font-size: 1.5rem;
  color: #FF4208;
  margin-bottom: 1.5rem;
  font-weight: bold;
}

.brand-card p {
  color: #666;
  line-height: 1.7;
  font-size: 1rem;
  margin-bottom: 2rem;
}

/* Products Section */
.products-section {
  padding: 6rem 0;
  background: #f8f9fa;
}

.products-section h2 {
  font-size: 2.5rem;
  color: #FF4208;
  text-align: center;
  margin-bottom: 4rem;
  font-weight: bold;
}

.product-slider {
  position: relative;
  overflow: hidden;
}

.slider-container {
  display: flex;
  gap: 2rem;
  transition: transform 0.3s ease;
}

.product-card {
  flex: 0 0 220px;
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;

  /* For button */
  display: flex;
  flex-direction: column;
  position: relative;
  padding-bottom: 3.5rem;
  align-items: center;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.product-image {
  height: 100px;
  aspect-ratio: 3/2;
  margin-bottom: 1rem;
  overflow: hidden;
}

.placeholder-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  position: relative;
}

/* Product images */

.brake-disc {
  background: url('../images/ate_brake_disc_logo.jpg');
  background-size: cover;
  background-position: center;
}

.brake-pads {
  background: url('../images/ate_brakepad_logo.jpg');
  background-size: cover;
  background-position: center;
}

.brake-fluid {
  background: url('../images/ate_brake_fluids_logo.jpg');
  background-size: cover;
  background-position: center;
}

.common-rail-diesel-systems {
  background: url('../images/vdo_common_rail_diesel_systems.jpg');
  background-size: cover;
  background-position: center;
}

.drum-brakes {
  background: url('../images/ate-bremstrommel.jpg');
  background-size: cover;
  background-position: center;
}

.engine-actuators {
  background: url('../images/vdo_ea_throttle_body.jpg');
  background-size: cover;
  background-position: center;
}

.fuel-supply-systems {
  background: url('../images/high_pressure_pump.jpg');
  background-size: cover;
  background-position: center;
}

.handbrake-cables {
  background: url('../images/ate-handbremsseile.jpg');
  background-size: cover;
  background-position: center;
}

.hydraulic-parts {
  background: url('../images/ate-hydraulic-parts.jpg');
  background-size: cover;
  background-position: center;
}

.sensors-for-engine-management {
  background: url('../images/vdo_mass_airflow_sensor.jpg');
  background-size: cover;
  background-position: center;
}

.tools {
  background: url('../images/ate-fb-30s.jpg');
  background-size: cover;
  background-position: center;
}

.turbochargers {
  background: url('../images/vdo_turbocharger.jpg');
  background-size: cover;
  background-position: center;
}

.wheel-speed-sensors {
  background: url('../images/ate-raddrehzahlsensor.jpg');
  background-size: cover;
  background-position: center;
}

/* Product images end */

.product-card h4 {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 1rem;
  font-weight: bold;
}

.product-card p {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.product-cta {
  display: inline-flex;
  align-items: center;
  background: #FF4208;
  color: white;
  padding: 0.5rem 1rem;
  text-decoration: none;
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.3s ease;
  margin-bottom: 1rem;

  /* For button height */
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  margin-bottom: 0;
}

.product-cta:hover {
  background: #e63a07;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #FF4208;
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  box-shadow: 0 4px 15px rgba(255, 66, 8, 0.3);
}

.slider-btn:hover {
  background: #e63a07;
  transform: translateY(-50%) scale(1.1);
}

.prev-btn {
  left: -25px;
}

.next-btn {
  right: -25px;
}

/* Services Section */
.services-section {
  padding: 6rem 0;
  background: white;
}

.services-section h2 {
  font-size: 2.5rem;
  color: #FF4208;
  text-align: center;
  margin-bottom: 4rem;
  font-weight: bold;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.service-card {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-image {
  height: 200px;
  margin-bottom: 1.5rem;
  border-radius: 8px;
  overflow: hidden;
}

.service-image .placeholder-image {
  aspect-ratio: 3/2;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hotline {
  background: linear-gradient(135deg, #FF4208, #ff6b3d);
  background: url('../images/hotline.png');
}

.training {
  background: linear-gradient(135deg, #3498db, #5dade2);
  background: url('../images/ate_vdo_training.png');
}

.loyalty {
  background: linear-gradient(135deg, #27ae60, #2ecc71);
  background: url('../images/loyality-program.jpg');
}

.partnerfinder {
  background: linear-gradient(135deg, #8e44ad, #9b59b6);
  background: url('../images/vdo_partnerfinder.webp');
}

.service-card h3 {
  font-size: 1.5rem;
  color: #FF4208;
  margin-bottom: 1rem;
  font-weight: bold;
}

.service-card p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.service-cta {
  display: inline-flex;
  align-items: center;
  background: #FF4208;
  color: white;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  border-radius: 9999px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.service-cta:hover {
  background: #e63a07;
  transform: translateY(-2px);
}

/* Footer */
.footer {
  background: #1a1a1a;
  color: white;
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
  color: #FF4208;
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: #FF4208;
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 1rem;
  text-align: center;
  color: #999;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 19.3vh;
    flex-direction: column;
    background-color: white;
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding: 1rem;
  }

  .nav-container {
    display: flex;
    padding: 0;
    align-items: center;
    justify-content: center;
    position: relative;
  }

  .nav-logo .logo {
    margin-left: 2rem;
    height: 80px;
    width: auto;
  }

  .hamburger {
    position: relative;
    margin-left: 12px;
    order: 2;
    z-index: 1100;
  }

  .nav-menu {
    position: fixed;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .hero-content {
    margin: 0 20px;
    padding: 2rem;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-overlay {
    padding: 0px;
  }
  
  .brands-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .brand-card {
    padding: 2rem;
  }
  
  .product-card {
    flex: 0 0 280px;
  }
  
  .slider-btn {
    display: none;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .intro-section h2,
  .brands-section h2,
  .products-section h2,
  .services-section h2 {
    font-size: 2rem;
  }

  .container {
    width: 100%;
    padding: 20px;
  }

  .product-slider {
    margin: 0 -20px;
    overflow: hidden;
  }

  .slider-container {
    display: flex;
    gap: 1rem;
    padding: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    transform: none !important; /* Prevent slider transform */
  }

  .slider-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
  }

  .product-card {
    flex: 0 0 calc(100% - 40px);
    scroll-snap-align: center;
    margin-right: 0;
    transform: none !important; /* Prevent card animations */
  }

  .slider-btn {
    display: none; /* Hide slider buttons on mobile */
  }
}

@media (max-width: 480px) {
  .hero-content {
    padding: 1.5rem;
  }
  
  .hero-content h1 {
    font-size: 1.8rem;
  }
  
  .product-card {
    flex: 0 0 250px;
  }
  
  .container {
    padding: 0 15px;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Loading animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeInUp 0.6s ease-out;
}

.arrow-button {
  content: "";
  display: inline-block;
  background-image: url("../images/arrow.svg");
  background-size: contain;
  background-repeat: no-repeat;
  flex-shrink: 0;
  width: 16px;
  height: 24px;
  margin-left: 8px;
  filter: invert(1);
}

#products .container .product-slider {
  padding-bottom: 1rem;
}

.language-selector {
  padding: 1px 12px;
  border-radius: 6px;
  background: transparent;
  border: none;
  color: #333;
  font-weight: 600;
  cursor: pointer;
  min-width: 120px;
  font-size: 1rem;
}

.language-selector:focus {
  outline: none;
}

@media (max-width: 768px) {
  .language-selector {
    margin: 10px 0;
  }
}

#language-select>option.selected {
  display: none;
  font-size: 1rem;
}
