/* ===================================
   German Auto Specialists — Style
   Premium, clean, conversion-focused
   =================================== */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black: #0a0a0a;
  --dark: #1a1a1a;
  --dark-gray: #2a2a2a;
  --gray: #888;
  --light-gray: #f5f5f5;
  --white: #ffffff;
  --accent: #cc2936;
  --accent-hover: #e03340;
  --red: #cc2936;
  --font-body: 'Inter', sans-serif;
  --font-heading: 'Inter', sans-serif;
  --max-width: 1200px;
  --header-height: 80px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-hover); }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 800; line-height: 1.1; color: var(--dark); text-transform: uppercase; letter-spacing: -0.5px; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 16px; }
h3 { font-size: clamp(1.3rem, 3vw, 1.8rem); margin-bottom: 12px; }
p { margin-bottom: 16px; color: #444; }

.section-label {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.8rem;
  color: var(--accent);
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: 8px;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 16px 36px;
  border-radius: 4px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all .3s;
  border: none;
  text-align: center;
}
.btn-primary { background: var(--accent); color: var(--dark); }
.btn-primary:hover { background: var(--accent-hover); color: var(--dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(204,41,54,.3); }
.btn-outline { border: 2px solid var(--white); color: var(--white); background: rgba(0,0,0,.7); }
.btn-outline:hover { background: var(--white); color: var(--dark); }
.btn-dark { background: var(--dark); color: var(--white); }
.btn-dark:hover { background: var(--black); transform: translateY(-2px); }
.btn-call { background: var(--red); color: var(--white); }
.btn-call:hover { background: #a8212c; }

/* --- Header --- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-height);
  background: rgba(10,10,10,.95);
  backdrop-filter: blur(12px);
  z-index: 1000;
  transition: background .3s;
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.logo { font-family: var(--font-heading); font-size: 1.3rem; color: var(--white); font-weight: 700; white-space: nowrap; }
.logo span { color: var(--accent); }

.nav-links { display: flex; gap: 32px; list-style: none; align-items: center; }
.nav-links a { color: rgba(255,255,255,.8); font-size: 0.9rem; font-weight: 500; letter-spacing: 0.3px; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.nav-links .btn { padding: 10px 24px; font-size: 0.85rem; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.hamburger span { width: 24px; height: 2px; background: var(--white); transition: all .3s; }

/* Mobile nav */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: 0; right: 0; bottom: 0;
    background: var(--black);
    flex-direction: column;
    padding: 40px 24px;
    gap: 24px;
    transform: translateX(100%);
    transition: transform .3s;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.2rem; }
}

/* --- Hero --- */
.hero {
  position: relative;
  height: 400vh;
  min-height: 400vh;
  background: var(--black);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  text-align: center;
  overflow: visible;
}
/* Scroll panels that overlay the animation */
.hero-scroll-panels {
  position: relative;
  z-index: 2;
  width: 100%;
}
.scroll-panel {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}
.panel-inner {
  max-width: 800px;
  margin: 0 auto;
}
.panel-hero .panel-inner,
.panel-value .panel-inner {
  background: radial-gradient(ellipse at center, rgba(0,0,0,.55) 0%, rgba(0,0,0,.3) 50%, transparent 80%);
  padding: 48px 40px;
}
.panel-hero { padding-top: 100px; }
.panel-stats { }
.panel-value { }

.hero h1 { color: var(--white); margin-bottom: 24px; text-shadow: 0 2px 20px rgba(0,0,0,.8), 0 0 60px rgba(0,0,0,.5); }
.hero h1 em { font-style: normal; color: var(--accent); text-shadow: 0 2px 20px rgba(204,41,54,.5), 0 0 40px rgba(204,41,54,.3); }
.hero p { color: rgba(255,255,255,.85); font-size: 1.15rem; max-width: 560px; margin: 0 auto 40px; text-shadow: 0 2px 12px rgba(0,0,0,.7); }
.hero .section-label { text-shadow: 0 2px 12px rgba(0,0,0,.7); }
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-lg { padding: 20px 48px; font-size: 1.1rem; }

/* Hero to content gradient fade */
.hero-to-content-fade {
  display: none;
}

/* Overlay stats */
.overlay-stats {
  display: flex;
  gap: 48px;
  justify-content: center;
  flex-wrap: wrap;
}
.overlay-stat {
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  padding: 32px 40px;
  min-width: 160px;
}
.overlay-stat h3 {
  color: var(--accent);
  font-family: var(--font-heading);
  font-size: 2.2rem;
  margin-bottom: 4px;
}
.overlay-stat p {
  color: rgba(255,255,255,.7);
  font-size: 0.85rem;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

@media (max-width: 768px) {
  .overlay-stats { gap: 16px; }
  .overlay-stat { padding: 20px 24px; min-width: 140px; }
  .overlay-stat h3 { font-size: 1.6rem; }
}
#scroll-animation-container {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.15s;
}
#hero-canvas {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* --- Page Hero (inner pages) --- */
.page-hero {
  background: var(--dark);
  padding: 160px 24px 80px;
  text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: 16px; }
.page-hero p { color: rgba(255,255,255,.65); max-width: 600px; margin: 0 auto; font-size: 1.1rem; }
.breadcrumb { margin-top: 20px; font-size: 0.85rem; }
.breadcrumb a { color: var(--accent); }
.breadcrumb span { color: rgba(255,255,255,.4); }

/* --- Trust Bar --- */
.trust-bar {
  background: var(--black);
  padding: 48px 24px;
}
.trust-bar .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.trust-item h3 { color: var(--accent); font-size: 2.2rem; margin-bottom: 4px; }
.trust-item p { color: rgba(255,255,255,.6); font-size: 0.9rem; margin: 0; }

@media (max-width: 600px) {
  .trust-bar .container { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

/* --- Sections --- */
.section { padding: 100px 24px; position: relative; z-index: 3; background: var(--light-gray); }
.section-dark { background: var(--dark); }
.section-light { background: var(--light-gray); }
.section-center { text-align: center; }

/* --- Service Cards --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  margin-top: 48px;
}
.service-card {
  background: var(--white);
  border-radius: 8px;
  padding: 40px 32px;
  text-align: center;
  transition: transform .3s, box-shadow .3s;
  border: 1px solid #eee;
}
.service-card:hover { transform: translateY(-8px); box-shadow: 0 20px 60px rgba(0,0,0,.08); }
.service-card .icon { font-size: 3rem; margin-bottom: 20px; }
.service-card .icon-img { margin-bottom: 20px; }
.service-card .icon-img img { width: 80px; height: 80px; border-radius: 12px; display: inline-block; }
.service-card .service-img { width: 100%; height: auto; border-radius: 8px; margin-bottom: 20px; }
.value-card .icon-img { margin-bottom: 16px; }
.value-card .icon-img img { width: 80px; height: 80px; border-radius: 12px; display: inline-block; }
.service-card h3 { margin-bottom: 12px; }
.service-card p { font-size: 0.95rem; color: #666; margin-bottom: 20px; }
.service-card a { font-weight: 600; font-size: 0.9rem; }

/* Dark variant */
.service-card-dark {
  background: var(--dark-gray);
  border-color: #333;
}
.service-card-dark h3, .service-card-dark p { color: rgba(255,255,255,.85); }

/* --- Why Choose Us --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-top: 48px;
}
.feature-item { text-align: center; }
.feature-item .icon { font-size: 2.5rem; margin-bottom: 16px; }
.feature-item .icon-img { margin-bottom: 16px; }
.feature-item .icon-img img { width: 64px; height: 64px; border-radius: 8px; display: inline-block; }
.feature-item h3 { margin-bottom: 8px; }
.feature-item p { font-size: 0.95rem; color: #666; }

/* --- Testimonials --- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 32px;
  margin-top: 48px;
}
.testimonial-card {
  background: var(--white);
  border-radius: 8px;
  padding: 36px;
  border: 1px solid #eee;
  position: relative;
}
.testimonial-card::before {
  content: '"';
  font-family: var(--font-heading);
  font-size: 4rem;
  color: var(--accent);
  opacity: .3;
  position: absolute;
  top: 12px; left: 24px;
  line-height: 1;
}
.testimonial-card p { font-size: 0.95rem; font-style: italic; color: #555; margin-bottom: 16px; padding-top: 24px; }
.testimonial-card .author { font-weight: 600; font-size: 0.85rem; color: var(--dark); font-style: normal; }
.testimonial-card .stars { color: var(--accent); font-size: 0.9rem; margin-bottom: 8px; padding-top: 24px; }

/* --- CTA Section --- */
.cta-section {
  background: var(--dark);
  text-align: center;
  padding: 100px 24px;
}
.cta-section h2 { color: var(--white); margin-bottom: 16px; }
.cta-section p { color: rgba(255,255,255,.65); max-width: 560px; margin: 0 auto 40px; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* --- Contact Snippet --- */
.contact-snippet {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 48px;
}
.contact-info h3 { margin-bottom: 16px; }
.contact-info p { margin-bottom: 8px; }
.contact-info a { color: var(--accent); font-weight: 600; }
.map-placeholder {
  background: #e0e0e0;
  border-radius: 8px;
  min-height: 300px;
  overflow: hidden;
}
.map-placeholder iframe { width: 100%; height: 100%; min-height: 300px; border: 0; }

@media (max-width: 768px) {
  .contact-snippet { grid-template-columns: 1fr; }
}

/* --- Contact Page Form --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 48px;
}
@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
}
.contact-form label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 6px;
  color: var(--dark);
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  margin-bottom: 20px;
  transition: border-color .2s;
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--accent);
}
.contact-form textarea { min-height: 140px; resize: vertical; }

/* --- About Page --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-top: 48px;
}
.about-image-placeholder {
  background: #e0e0e0;
  border-radius: 8px;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 0.9rem;
}
@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; }
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  margin-top: 48px;
}
.value-card { text-align: center; padding: 32px; }
.value-card .icon { font-size: 2.5rem; margin-bottom: 16px; }

/* --- Comparison Table --- */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 32px;
  font-size: 0.95rem;
}
.comparison-table th, .comparison-table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid #eee; }
.comparison-table th { background: var(--dark); color: var(--white); font-weight: 600; }
.comparison-table tr:nth-child(even) { background: var(--light-gray); }
.comparison-table .check { color: #2ecc71; font-weight: 700; }
.comparison-table .cross { color: var(--red); }

/* --- Service Detail Page --- */
.service-detail-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  margin-top: 48px;
}
.service-sidebar {
  background: var(--light-gray);
  border-radius: 8px;
  padding: 32px;
  position: sticky;
  top: 100px;
  height: fit-content;
}
.service-sidebar h3 { margin-bottom: 16px; font-size: 1.2rem; }
.service-sidebar ul { list-style: none; margin-bottom: 24px; }
.service-sidebar li { padding: 8px 0; border-bottom: 1px solid #ddd; }
.service-sidebar li a { color: var(--dark); font-weight: 500; }
.service-sidebar li a:hover { color: var(--accent); }

.service-list { list-style: none; margin: 24px 0; }
.service-list li { padding: 12px 0 12px 32px; border-bottom: 1px solid #eee; position: relative; }
.service-list li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

@media (max-width: 768px) {
  .service-detail-grid { grid-template-columns: 1fr; }
  .service-sidebar { position: static; }
}

/* --- General Services List --- */
.general-services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.general-services li {
  list-style: none;
  padding: 16px 20px;
  background: var(--light-gray);
  border-radius: 4px;
  font-weight: 500;
}

/* --- Footer --- */
.site-footer {
  background: var(--black);
  padding: 80px 24px 32px;
  color: rgba(255,255,255,.6);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-about .logo { margin-bottom: 16px; display: inline-block; }
.footer-about p { font-size: 0.9rem; line-height: 1.7; }
.footer-col h4 { color: var(--white); font-family: var(--font-body); font-weight: 600; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 20px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: rgba(255,255,255,.6); font-size: 0.9rem; }
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
}
.footer-bottom a { color: rgba(255,255,255,.4); }
.footer-bottom a:hover { color: var(--accent); }

/* GullStack Credit */
.gullstack-credit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,.5);
  transition: all .2s ease;
}
.gullstack-credit:hover { color: #8b5cf6; }
.gullstack-logo {
  height: 18px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
  opacity: 0.7;
  transition: opacity .2s ease;
}
.gullstack-credit:hover .gullstack-logo { opacity: 1; }
.gullstack-text {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  letter-spacing: -0.5px;
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* --- Floating Call Button (Mobile) --- */
.floating-call {
  display: none;
  position: fixed;
  bottom: 24px; right: 24px;
  width: 60px; height: 60px;
  background: var(--red);
  color: var(--white);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 20px rgba(204,41,54,.4);
  z-index: 999;
  transition: transform .2s;
}
.floating-call:hover { transform: scale(1.1); color: var(--white); }
@media (max-width: 768px) {
  .floating-call { display: flex; }
}

/* --- Animations --- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Utilities --- */
.text-center { text-align: center; }
.mt-48 { margin-top: 48px; }
.mb-24 { margin-bottom: 24px; }

/* Big brand logos for service cards */
.brand-logo-large {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 180px;
  padding: 1.5rem;
  background: #f8f8f8;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.brand-logo-large img {
  max-height: 140px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
}

.service-card .icon {
  display: none;
}

.service-card .service-img {
  display: none;
}
