* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Updated to blue and black premium color palette */
  --color-primary: #0066ff;
  --color-primary-dark: #0052cc;
  --color-primary-light: #3399ff;
  --color-accent: #00d9ff;
  --color-black: #000000;
  --color-dark: #0a0a0a;
  --color-gray-900: #0f0f0f;
  --color-gray-800: #1a1a1a;
  --color-gray-700: #2a2a2a;
  --color-gray-600: #404040;
  --color-gray-400: #a3a3a3;
  --color-gray-300: #d4d4d4;
  --color-white: #ffffff;
  --color-off-white: #fafafa;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--color-black);
  color: var(--color-white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Added animated grid background like premium car websites */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(rgba(0, 102, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 102, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: gridMove 20s linear infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes gridMove {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(50px, 50px);
  }
}

/* Added glowing orbs animation for futuristic feel */
body::after {
  content: "";
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 20% 50%, rgba(0, 102, 255, 0.15) 0%, transparent 25%),
    radial-gradient(circle at 80% 80%, rgba(0, 217, 255, 0.1) 0%, transparent 25%);
  animation: orbsFloat 15s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes orbsFloat {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(30px, 50px) scale(1.1);
  }
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

/* Header */
.header {
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 102, 255, 0.2);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.navbar {
  padding: 1.5rem 0;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
}

/* Made logo much larger and more prominent with better animation */
.logo-img-main {
  height: 100px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 40px rgba(0, 102, 255, 0.6));
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: logoEntrance 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  opacity: 0;
  transform: scale(0.3) rotate(-10deg);
}

@keyframes logoEntrance {
  0% {
    opacity: 0;
    transform: scale(0.3) rotate(-10deg) translateY(-50px);
  }
  60% {
    transform: scale(1.15) rotate(3deg) translateY(0);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg) translateY(0);
  }
}

.logo:hover .logo-img-main {
  filter: drop-shadow(0 0 60px rgba(0, 102, 255, 1));
  transform: scale(1.08) translateY(-5px);
}

/* Added social media navigation styles */
.nav-menu {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  align-items: center;
}

.social-nav {
  display: flex;
  gap: 1rem;
  margin-left: 1rem;
  padding-left: 1.5rem;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.social-link {
  color: var(--color-gray-400);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.social-link:hover {
  color: var(--color-accent);
  background: rgba(0, 102, 255, 0.2);
  transform: translateY(-3px);
}

/* Enhanced navigation with better hover effects */
.nav-link {
  color: var(--color-white);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  position: relative;
  padding-bottom: 4px;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link:hover {
  color: var(--color-accent);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.mobile-menu-btn span {
  width: 28px;
  height: 3px;
  background: var(--color-white);
  transition: 0.3s;
  border-radius: 2px;
}

/* Completely redesigned hero section - much bigger and more impressive */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at top, rgba(0, 102, 255, 0.15) 0%, transparent 70%),
    linear-gradient(180deg, var(--color-black) 0%, var(--color-gray-900) 100%);
  overflow: hidden;
}

/* Added animated lines for futuristic effect */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(0,102,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
  opacity: 0.5;
  animation: heroBackground 30s linear infinite;
}

@keyframes heroBackground {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 100px 100px;
  }
}

.hero-content {
  position: relative;
  text-align: center;
  z-index: 2;
  max-width: 1200px;
  padding: 4rem 2rem;
}

/* Made hero logo much bigger and more impactful */
.hero-logo {
  width: 600px;
  max-width: 90%;
  height: auto;
  margin-bottom: 3rem;
  filter: drop-shadow(0 0 80px rgba(0, 102, 255, 0.5));
  animation: heroLogoEntrance 1.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  opacity: 0;
  transform: scale(0.5) translateY(50px);
}

@keyframes heroLogoEntrance {
  0% {
    opacity: 0;
    transform: scale(0.5) translateY(50px);
  }
  70% {
    transform: scale(1.05) translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Made title much bigger with gradient effect */
.hero-title {
  font-size: 5rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #ffffff 0%, #0066ff 50%, #00d9ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: titleEntrance 1.2s ease 0.5s forwards;
  opacity: 0;
  transform: translateY(40px);
  letter-spacing: -2px;
  line-height: 1.1;
  text-shadow: 0 0 80px rgba(0, 102, 255, 0.5);
}

@keyframes titleEntrance {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Enhanced subtitle */
.hero-subtitle {
  font-size: 2rem;
  color: var(--color-gray-300);
  margin-bottom: 3rem;
  animation: titleEntrance 1.2s ease 0.7s forwards;
  opacity: 0;
  transform: translateY(40px);
  font-weight: 300;
  letter-spacing: 1px;
}

/* Bigger, more prominent buttons */
.hero-buttons {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: titleEntrance 1.2s ease 0.9s forwards;
  opacity: 0;
  transform: translateY(40px);
}

.btn {
  display: inline-block;
  padding: 1.5rem 3rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.2rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::before {
  width: 400px;
  height: 400px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  color: var(--color-white);
  box-shadow: 0 10px 40px rgba(0, 102, 255, 0.4);
}

.btn-primary:hover {
  box-shadow: 0 15px 60px rgba(0, 102, 255, 0.6);
  transform: translateY(-5px);
}

.btn-secondary {
  background: transparent;
  color: var(--color-white);
  border: 3px solid var(--color-white);
}

.btn-secondary:hover {
  background: var(--color-white);
  color: var(--color-black);
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(255, 255, 255, 0.3);
}

.btn-block {
  width: 100%;
  text-align: center;
}

.btn-small {
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
}

.btn-danger {
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  color: var(--color-white);
}

/* Added slideshow styles */
.slideshow-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.slideshow-main {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--color-gray-900);
  aspect-ratio: 16 / 10;
}

.slideshow-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  padding: 1.5rem 1rem;
  cursor: pointer;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  z-index: 10;
}

.slide-btn:hover {
  background: var(--color-primary);
}

.prev-btn {
  left: 0;
  border-radius: 0 8px 8px 0;
}
.next-btn {
  right: 0;
  border-radius: 8px 0 0 8px;
}

.slide-counter {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.7);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
}

.slideshow-thumbnails {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding: 0.5rem 0;
}

.thumbnail {
  flex-shrink: 0;
  width: 100px;
  height: 70px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 3px solid transparent;
  transition: all 0.3s ease;
  opacity: 0.6;
}

.thumbnail:hover,
.thumbnail.active {
  border-color: var(--color-primary);
  opacity: 1;
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Badges */
.badges-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.car-badge {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
}

.unfallfrei-badge {
  background: linear-gradient(135deg, #10b981, #059669) !important;
}

.finanz-badge {
  background: linear-gradient(135deg, #f59e0b, #d97706) !important;
}

/* Enhanced stats section with better animations */
.stats {
  background: rgba(15, 15, 15, 0.8);
  backdrop-filter: blur(20px);
  padding: 5rem 0;
  border-top: 1px solid rgba(0, 102, 255, 0.2);
  border-bottom: 1px solid rgba(0, 102, 255, 0.2);
  position: relative;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  text-align: center;
}

.stat-item {
  padding: 2rem;
  border-radius: 16px;
  background: rgba(0, 102, 255, 0.05);
  border: 1px solid rgba(0, 102, 255, 0.2);
  transition: all 0.4s ease;
}

.stat-item:hover {
  transform: translateY(-10px);
  background: rgba(0, 102, 255, 0.1);
  border-color: var(--color-primary);
  box-shadow: 0 20px 60px rgba(0, 102, 255, 0.3);
}

.stat-number {
  font-size: 4rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.stat-label {
  color: var(--color-gray-300);
  font-size: 1.3rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Enhanced car sections with bigger, better layouts */
.featured-cars,
.fahrzeuge-section {
  padding: 7rem 0;
  position: relative;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 4rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--color-white), var(--color-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.view-all {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.3rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.view-all:hover {
  color: var(--color-accent);
  gap: 1rem;
}

/* Enhanced brand filter buttons */
.brand-filters {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 4rem;
  justify-content: center;
}

.brand-filter {
  padding: 1.2rem 2.5rem;
  background: rgba(15, 15, 15, 0.6);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(0, 102, 255, 0.3);
  border-radius: 60px;
  color: var(--color-white);
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.brand-filter::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
  z-index: 0;
}

.brand-filter:hover::before {
  width: 400px;
  height: 400px;
}

.brand-filter:hover {
  border-color: var(--color-accent);
  transform: translateY(-5px);
  box-shadow: 0 15px 50px rgba(0, 102, 255, 0.4);
}

.brand-filter.active {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  border-color: var(--color-accent);
  color: var(--color-white);
  box-shadow: 0 15px 50px rgba(0, 102, 255, 0.5);
}

.brand-filter span {
  position: relative;
  z-index: 1;
}

/* Made car grid bigger with better cards */
.car-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 3rem;
}

.car-card {
  background: rgba(15, 15, 15, 0.8);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  color: var(--color-white);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0, 102, 255, 0.2);
  opacity: 0;
  transform: translateY(40px);
  animation: cardFadeIn 0.8s ease forwards;
}

@keyframes cardFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.car-card:nth-child(1) {
  animation-delay: 0.1s;
}
.car-card:nth-child(2) {
  animation-delay: 0.2s;
}
.car-card:nth-child(3) {
  animation-delay: 0.3s;
}
.car-card:nth-child(4) {
  animation-delay: 0.4s;
}
.car-card:nth-child(5) {
  animation-delay: 0.5s;
}
.car-card:nth-child(6) {
  animation-delay: 0.6s;
}

.car-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 30px 80px rgba(0, 102, 255, 0.4);
  border-color: var(--color-primary);
}

.car-card.hidden {
  display: none;
}

.car-image {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
}

.car-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.car-card:hover .car-image img {
  transform: scale(1.15);
}

.financing-badge {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: var(--color-white);
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.car-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: var(--color-white);
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 6px 20px rgba(0, 102, 255, 0.4);
}

.car-info {
  padding: 2rem;
}

.car-title {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.car-specs {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.spec {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-gray-400);
  font-size: 1rem;
  font-weight: 500;
}

.icon {
  width: 20px;
  height: 20px;
  color: var(--color-primary);
}

.car-price {
  font-size: 2rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Enhanced services section */
.services {
  padding: 7rem 0;
  background: rgba(15, 15, 15, 0.5);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(0, 102, 255, 0.2);
  border-bottom: 1px solid rgba(0, 102, 255, 0.2);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  margin-top: 4rem;
}

.service-card {
  background: rgba(15, 15, 15, 0.8);
  backdrop-filter: blur(10px);
  padding: 3rem;
  border-radius: 20px;
  text-align: center;
  transition: all 0.5s ease;
  border: 1px solid rgba(0, 102, 255, 0.2);
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: var(--color-primary);
  box-shadow: 0 20px 60px rgba(0, 102, 255, 0.3);
  background: rgba(0, 102, 255, 0.1);
}

.service-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 0 20px rgba(0, 102, 255, 0.5));
}

.service-card h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.service-card p {
  color: var(--color-gray-300);
  font-size: 1.1rem;
  line-height: 1.8;
}

/* Page Header */
.page-header {
  background: linear-gradient(135deg, var(--color-gray-900) 0%, var(--color-black) 100%);
  padding: 4rem 0;
  text-align: center;
  border-bottom: 1px solid var(--color-gray-800);
}

.page-header h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.page-header p {
  font-size: 1.25rem;
  color: var(--color-gray-400);
}

/* Car Details */
.car-details {
  padding: 3rem 0;
}

.back-link {
  display: inline-flex;
  align-items: center;
  color: var(--color-primary);
  text-decoration: none;
  margin-bottom: 2rem;
  font-weight: 600;
  transition: color 0.3s ease;
}

.back-link:hover {
  color: var(--color-primary-light);
}

.details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
