:root {
  --color-gray: #3c3c3c;
  --color-gray-dark: #2a2a2a;
  --color-gray-light: #555;
  --color-yellow: #ffc000;
  --color-bg: #f8f9fa;
  --color-text: #222;
  --color-white: #ffffff;
  --color-border: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 20px rgba(0,0,0,0.08);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--font-family);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100%;
  position: relative; /* iOS Safari: verhindert horizontales Scrollen */
  width: 100%;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--color-gray);
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.2;
  overflow-wrap: break-word;
  word-break: break-word;
  -webkit-hyphens: auto;
  hyphens: auto;
}

a {
  color: var(--color-gray);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--color-yellow);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  image-rendering: -webkit-optimize-contrast;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* === TOP BAR === */
.top-bar {
  background-color: var(--color-gray);
  height: 40px;
  display: flex;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1002;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  overflow: hidden; /* verhindert Marquee-Overflow auf iOS Safari */
}

.bestpreis-badge {
  background-color: var(--color-yellow);
  color: #fff;
  font-weight: 700;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  position: relative;
  z-index: 10;
  white-space: nowrap;
}

.bestpreis-badge::after {
  content: '';
  position: absolute;
  right: -10px;
  top: 0;
  border-top: 20px solid transparent;
  border-bottom: 20px solid transparent;
  border-left: 10px solid var(--color-yellow);
}

.marquee-container {
  flex-grow: 1;
  overflow: hidden;
  position: relative;
}

.marquee-content {
  display: flex;
  white-space: nowrap;
  animation: marquee 35s linear infinite;
  will-change: transform;
}

.marquee-text {
  color: var(--color-white);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
}

.marquee-check {
  color: var(--color-yellow);
  font-weight: bold;
  margin: 0 1.5rem;
  font-size: 1.1rem;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-container {
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

/* === HEADER === */
.header {
  background: transparent;
  position: fixed;
  top: 40px;
  width: 100%;
  z-index: 1000;
  transition: background 0.3s ease-in-out, box-shadow 0.3s ease-in-out, padding 0.3s ease-in-out;
  padding: 1rem 0;
}

.logo .logo-light,
.logo .logo-dark {
  height: 72px;
  width: auto;
  transition: opacity 0.3s ease;
}

.header:not(.scrolled) .logo-dark {
  display: none !important;
}

.header.scrolled .logo-light {
  display: none !important;
}

.footer .logo-dark {
  display: none !important;
}

.header:not(.scrolled) .nav-links > li > a,
.header:not(.scrolled) .mobile-menu-btn {
  color: var(--color-white);
}

.header.scrolled {
  background: var(--color-white);
  box-shadow: var(--shadow-md);
  padding: 0.5rem 0;
  top: 40px;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo img {
  height: 72px;
  transition: var(--transition);
}

.header-cta {
  margin-left: 2rem;
}

nav {
  margin-left: auto;
}

@media (max-width: 900px) {
  .header-cta {
    display: none !important;
  }
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-weight: 600;
  color: var(--color-gray);
  position: relative;
  font-size: 1rem;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--color-yellow);
  transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--color-gray);
  cursor: pointer;
}

/* === BUTTONS === */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--color-yellow);
  color: var(--color-gray);
  box-shadow: 0 4px 14px rgba(255, 192, 0, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 192, 0, 0.5);
  background-color: #e6ad00;
  color: var(--color-gray);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--color-gray);
  color: var(--color-gray);
}

.btn-outline:hover {
  background-color: var(--color-gray);
  color: var(--color-white);
}

/* === MEGA MENU === */
.has-mega-menu {
  position: static;
}

.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: var(--color-white);
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  z-index: 1000;
  border-top: 1px solid rgba(0,0,0,0.05);
  pointer-events: none;
}

/* Unsichtbare Brücke, damit das Menü beim runterfahren mit der Maus nicht zuklappt */
.mega-menu::before {
  content: '';
  position: absolute;
  top: -40px;
  left: 0;
  width: 100%;
  height: 40px;
  background: transparent;
}

.has-mega-menu:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 3rem 0;
}

.mega-menu-col {
  padding: 0 3rem;
  border-right: 1px solid rgba(0,0,0,0.08); /* subtle separator mirroring reference design */
}

.mega-menu-col:last-child {
  border-right: none;
}

.mega-menu-group {
  margin-bottom: 2.5rem;
}

.mega-menu-group:last-child {
  margin-bottom: 0;
}

.mega-menu-heading {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-gray);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--color-yellow);
  padding-bottom: 0.5rem;
  width: fit-content;
}

.mega-menu-heading:hover {
  color: var(--color-yellow);
}

.mega-menu-heading::after {
  content: none !important;
}

.mega-menu-group ul {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.mega-menu-group ul li a {
  font-weight: 500;
  color: #555;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.mega-menu-group ul li a::after {
  content: none !important;
}

.mega-menu-group ul li a:hover {
  color: var(--color-yellow);
  padding-left: 6px;
}

.mega-menu .arrow {
  font-size: 1.2rem;
  line-height: 1;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.2s ease;
  color: var(--color-yellow);
}

.mega-menu-heading:hover .arrow,
.mega-menu-group ul li a:hover .arrow {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 900px) {
  .mega-menu {
    display: none !important;
  }
}

/* === HERO SECTION === */
.hero {
  position: relative;
  padding: 180px 0 100px;
  text-align: center;
  overflow: hidden;
}

#hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  will-change: opacity;
}

.hero-slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(20, 20, 20, 0.65), rgba(20, 20, 20, 0.85));
  z-index: 1;
}

.hero h1 {
  font-size: 3.5rem;
  color: #ffffff;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero h1 span {
  color: var(--color-yellow);
}

.hero p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.hero-actions .btn-outline {
  background-color: var(--color-white);
  color: var(--color-gray);
  border: 2px solid var(--color-white);
}

.hero-actions .btn-outline:hover {
  background-color: var(--color-gray);
  color: var(--color-white);
  border-color: var(--color-gray);
}

/* === CONFIGURATOR SECTION === */
.configurator-section {
  background-color: var(--color-white);
}

.decor-line {
  width: 60px;
  height: 3px;
  background-color: var(--color-yellow);
  margin-bottom: 1.5rem;
}

.configurator-text h2 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--color-gray);
}

.configurator-text p {
  color: #555;
  font-size: 1.1rem;
  line-height: 1.6;
}

.text-highlight {
  color: var(--color-yellow);
  font-weight: 600;
}

.image-upload-container {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background-color: #fcfcfc;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px dashed var(--color-border);
}

/* Upload Overlay */
.upload-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 5;
  text-align: center;
  padding: 1rem;
}

.image-upload-container:hover .upload-overlay,
.image-upload-container.dragover .upload-overlay {
  opacity: 1;
}

.image-upload-container.dragover {
  border: 2px dashed var(--color-yellow);
  background-color: rgba(255, 192, 0, 0.05);
}

.image-upload-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

/* === ABOUT STORY SECTION === */
.about-story-section {
  overflow: hidden;
}

.about-story-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 5rem;
  align-items: center;
}

.about-story-text h2 {
  font-size: 2.8rem;
  margin-bottom: 2rem;
}

.about-story-text p {
  font-size: 1.15rem;
  color: #555;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.parallax-image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  height: 550px;
}

.floating-3d-wrapper {
  position: relative;
  z-index: 5;
  transform-style: preserve-3d;
  transition: transform 0.1s ease-out;
  will-change: transform;
}

.parallax-img {
  position: absolute;
  top: -15%;
  left: 0;
  width: 100%;
  height: 130%; /* Taller than container for movement */
  object-fit: cover;
  will-change: transform;
  transition: transform 0.1s ease-out;
}

@media (max-width: 992px) {
  .about-story-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

/* === ADVANTAGES SECTION === */
.advantages-section {
  padding: 6rem 0;
  background: url('../assets/Vorteile.webp') center/cover no-repeat;
  position: relative;
}

.advantages-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(20, 20, 20, 0.3);
  z-index: 1;
}

.advantages-section .container {
  position: relative;
  z-index: 2;
}

.advantages-section .section-title {
  color: var(--color-white);
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.advantages-container {
  background: rgba(40, 40, 40, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 4rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.advantages-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem 5rem;
}

.advantage-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.advantage-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-yellow);
  flex-shrink: 0;
}

.advantage-icon svg,
.advantage-icon i {
  width: 44px;
  height: 44px;
  font-size: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.why-us-icon {
  font-size: 48px;
  color: var(--color-yellow);
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
}

.advantage-text {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--color-white);
}

@media (max-width: 900px) {
  .advantages-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .advantages-container {
    padding: 2.5rem;
  }
}

/* === GENERIC GRID === */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

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

/* === SECTION === */
.section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background-color: var(--color-yellow);
  margin: 1rem auto 0;
  border-radius: 2px;
}
 
.section-title.left-aligned {
  text-align: left;
}
 
.section-title.left-aligned::after {
  margin-left: 0;
  margin-right: auto;
}

/* === PRODUCT GRID === */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
}

.product-card {
  background: var(--color-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.product-card-img {
  height: 220px;
  background-color: #eee;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: #999;
}

.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  transition: var(--transition);
}

.product-card:hover .product-card-img img {
  transform: scale(1.05);
}

.product-card-body {
  padding: 1.5rem;
}

.product-card-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.product-card-text {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
}

.product-card-link {
  color: var(--color-yellow);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.product-card-link::after {
  content: '→';
  transition: var(--transition);
}

.product-card:hover .product-card-link::after {
  transform: translateX(5px);
}

/* === FOOTER === */
.footer {
  background-color: var(--color-gray);
  color: var(--color-white);
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}

/* Footer-Logo Größe begrenzen */
.footer-col img {
  height: 56px;
  width: auto;
  max-width: 200px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: var(--color-white);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--color-yellow);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 2rem;
    box-shadow: var(--shadow-md);
  }

  .nav-links.active {
    display: flex;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero h1 {
    font-size: 2.5rem;
  }
}
/* === CONTACT SECTION === */
.contact-section {
  padding: 6rem 0;
  background-color: var(--color-bg);
}

.contact-header {
  margin-bottom: 4rem;
}

.contact-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.contact-header h2::before {
  content: '';
  position: absolute;
  top: -1.5rem;
  left: 0;
  width: 50px;
  height: 4px;
  background-color: var(--color-yellow);
}

.contact-header p {
  max-width: 850px;
  color: #555;
  font-size: 1.1rem;
  line-height: 1.6;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.contact-card {
  background-color: var(--color-gray);
  border-radius: 30px;
  padding: 4rem 3rem;
  text-align: center;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.contact-card.featured {
  background-color: var(--color-yellow);
  color: var(--color-gray);
}

.contact-card-icon {
  font-size: 64px;
  margin-bottom: 0.5rem;
}

.contact-card h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.contact-card.featured h3 {
  color: var(--color-gray);
}

.contact-card p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.contact-card.featured p {
  color: rgba(60, 60, 60, 0.8);
}

.contact-btn {
  padding: 0.8rem 2.5rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  transition: var(--transition);
  width: fit-content;
}

.contact-card:not(.featured) .contact-btn {
  background-color: transparent;
  border: 1.5px solid var(--color-yellow);
  color: var(--color-yellow);
}

.contact-card:not(.featured) .contact-btn:hover {
  background-color: var(--color-yellow);
  color: var(--color-gray);
}

.contact-card.featured .contact-btn {
  background-color: transparent;
  border: 1.5px solid var(--color-white);
  color: var(--color-white);
}

.contact-card.featured .contact-btn:hover {
  background-color: var(--color-white);
  color: var(--color-gray);
}

.contact-card:first-child .contact-card-icon,
.contact-card:first-child h3 {
  color: var(--color-yellow);
}

.contact-card:first-child .contact-btn {
  border-color: var(--color-yellow);
  color: var(--color-yellow);
}

/* === PROMO SECTION === */
.promo-section {
  padding: 1rem 0 4rem 0;
}

.promo-grid {
  display: grid;
  grid-template-columns: 1.85fr 1fr;
  gap: 1.5rem;
  margin-top: 1rem;
}

.promo-card {
  border-radius: 8px;
  overflow: hidden;
  height: 240px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.promo-card.image-card {
  position: relative;
  background-color: #eee;
  border-radius: 8px;
}

.promo-card.image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.promo-card.inquiry-card {
  background-color: var(--color-yellow);
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
  color: var(--color-gray);
}

.promo-card.inquiry-card h3 {
  color: var(--color-gray);
  font-size: 1.5rem;
  margin: 0;
}

.promo-card.inquiry-card p {
  color: white;
}

.promo-card.inquiry-card .promo-icon {
  color: var(--color-gray);
}

.promo-card.inquiry-card .promo-btn {
  background-color: white;
  border: none;
  color: var(--color-gray);
}

.promo-card.inquiry-card .promo-btn:hover {
  background-color: var(--color-gray);
  color: white;
}

.promo-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.promo-card h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.promo-card p {
  color: #666;
  font-size: 1.1rem;
}

.promo-icon {
  font-size: 64px;
  color: var(--color-yellow);
}

.promo-btn {
  padding: 0.8rem 2.5rem;
  border-radius: 12px;
  font-weight: 700;
  border: 1.5px solid var(--color-yellow);
  color: var(--color-yellow);
  transition: var(--transition);
  text-decoration: none;
}

.promo-btn:hover {
  background-color: var(--color-yellow);
  color: var(--color-gray);
}

@media (max-width: 900px) {
  .promo-grid {
    grid-template-columns: 1fr;
    height: auto;
  }
  .promo-card {
    height: 350px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-card {
    padding: 3rem 2rem;
  }
}

/* Call Back Section */
.callback-section {
    background-color: var(--color-yellow);
    padding: 4rem 0;
    color: var(--color-gray);
    margin-top: 4rem;
}

.callback-container {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 3rem;
    align-items: flex-start;
}

.callback-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.callback-icon {
    font-size: 4rem;
    margin-bottom: 2rem;
    color: var(--color-gray);
}

.callback-left h2 {
    color: var(--color-gray);
    font-size: 2.2rem;
    line-height: 1.2;
    margin-top: 1rem;
    max-width: 250px;
}

.callback-divider {
    width: 60px;
    height: 2px;
    background: var(--color-gray);
    margin-bottom: 1.5rem;
}

.callback-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group-full {
    grid-column: span 2;
}

.callback-form input,
.callback-form select,
.callback-form textarea {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

.callback-form textarea {
    resize: vertical;
    min-height: 100px;
}

.callback-form select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233c3c3c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.2rem;
    background-color: white;
}

.callback-consent {
    margin-top: 1.5rem;
    font-size: 0.85rem;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    line-height: 1.4;
    color: var(--color-gray);
}

.callback-consent input {
    width: auto;
    margin-top: 3px;
}

.callback-consent a {
    color: var(--color-gray);
    text-decoration: underline;
}

.callback-right {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.callback-btn-dark {
    background: #333;
    color: white;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    transition: var(--transition);
}

.callback-btn-dark:hover {
    background: #222;
}

.callback-btn-dark i {
    font-size: 1.5rem;
}

.callback-btn-outline {
    border: 2px solid var(--color-gray);
    color: var(--color-gray);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    transition: var(--transition);
}

.callback-btn-outline:hover {
    background: var(--color-gray);
    color: var(--color-yellow);
}

@media (max-width: 1024px) {
    .callback-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .callback-left h2 {
        max-width: 100%;
    }
    .callback-right {
        flex-direction: row;
    }
    .callback-btn-dark, .callback-btn-outline {
        flex: 1;
    }
}

@media (max-width: 768px) {
    .callback-form-grid {
        grid-template-columns: 1fr;
    }
    .form-group-full {
        grid-column: span 1;
    }
    .callback-right {
        flex-direction: column;
    }
}

/* === UTILITIES === */
.placeholder-img {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 400% 400%;
  animation: shimmer 3s ease infinite;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-weight: 500;
  border: 1px solid var(--color-border);
}

@keyframes shimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* === PROMOTION & ACTION BOXES === */
.promotion-box {
  background: var(--color-gray);
  color: white;
  padding: 3rem;
  border-radius: 20px;
  border-left: 8px solid var(--color-yellow);
  margin: 4rem 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}

.promotion-content h3 {
  color: var(--color-yellow);
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.promotion-content p {
  color: rgba(255,255,255,0.9);
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  .promotion-box {
    grid-template-columns: 1fr;
    padding: 2rem;
  }
}

/* === CATALOG DOWNLOAD === */
.catalog-section {
  background-color: var(--color-bg);
  padding: 6rem 0;
}

.catalog-card {
  background: white;
  border-radius: 20px;
  padding: 3rem;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 4rem;
  align-items: center;
  box-shadow: var(--shadow-lg);
}

.catalog-img {
  width: 100%;
  border-radius: 10px;
  box-shadow: var(--shadow-md);
}

.catalog-info h2 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
}

.catalog-info p {
  color: #666;
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

@media (max-width: 900px) {
  .catalog-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 2rem;
  }
  .catalog-img {
    max-width: 200px;
    margin: 0 auto;
  }
}

/* === NEW INTRO LAYOUT (3-COL) === */
.intro-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.intro-layout-3 {
    display: grid;
    grid-template-columns: 1.2fr 1fr 0.8fr;
    gap: 3rem;
    align-items: start;
}

.intro-image-container img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.intro-content-text h2 {
    font-size: 2.8rem;
    margin-bottom: 2rem;
    line-height: 1.1;
}

.intro-content-text p {
    font-size: 1.15rem;
    color: var(--color-gray-light);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.service-vorteile-box {
    background-color: #f7f7f7;
    border-radius: 25px;
    padding: 3rem 2rem;
    box-shadow: var(--shadow-sm);
    margin-top: 3rem;
    width: 100%;
}

.service-vorteile-box h3 {
    font-size: 1.6rem;
    margin-bottom: 2.5rem;
    text-align: center;
    color: var(--color-gray);
}

.service-vorteile-list {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
}

.service-vorteile-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 180px;
    text-align: center;
}

.service-vorteile-icon {
    width: 45px;
    height: 45px;
    flex-shrink: 0;
    color: var(--color-yellow);
}

.service-vorteile-text {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-gray);
}

@media (max-width: 1200px) {
    .service-vorteile-item {
        min-width: 150px;
    }
}

@media (max-width: 768px) {
    .intro-layout-2 {
        grid-template-columns: 1fr;
    }
}

/* === CUSTOM BUTTONS === */
.btn-yellow-to-gray {
    background-color: var(--color-yellow);
    color: var(--color-gray) !important;
    border: none;
    font-weight: 600;
    transition: var(--transition);
    text-align: center;
    border-radius: 8px;
    padding: 0.8rem 1.5rem;
    cursor: pointer;
}

.btn-yellow-to-gray:hover {
    background-color: var(--color-gray);
    color: #ffffff !important;
}

/* === FEATURES SLIDER (KD-STYLE COMPACT) === */
.feature-box {
    position: relative;
    max-width: 1150px;
    margin: 2rem auto;
    background: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    height: 320px; /* Increased slightly as requested */
    overflow: hidden;
    border: 1px solid #eee;
}

.feature-track {
    display: flex;
    width: 400%;
    height: 100%; /* Fill the container's 380px */
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-slide {
    width: 25%;
    height: 100%;
    display: flex;
    align-items: stretch;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.feature-slide.active {
    opacity: 1;
}

.feature-image-side {
    flex: 0 0 320px; /* Matches height for 1:1 ratio */
    background-color: #e5e5e5;
    display: flex;
    justify-content: center;
    align-items: center;
}

.feature-image-side .placeholder-img {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    color: #888;
}

.feature-text-side {
    flex: 1;
    padding: 2.5rem 3rem; /* Further reduced padding for maximum text space */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feature-text-side h3 {
    font-size: 1.8rem;
    color: var(--color-gray-dark);
    margin-bottom: 1rem;
}

.feature-text-side p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
    margin: 0;
}

/* Internal Slider Arrows */
.feature-box .slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 1px solid #ddd;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    color: #333;
    font-size: 1.2rem;
}

.feature-box .slider-arrow:hover {
    background: var(--color-yellow);
    border-color: var(--color-yellow);
    color: white;
}

.feature-box .slider-arrow.prev { left: 0.5rem; }
.feature-box .slider-arrow.next { right: 0.5rem; }

/* Internal Slider Pagination */
.slider-pagination {
    position: absolute;
    bottom: 1.5rem;
    right: 2rem;
    font-weight: 600;
    color: #888;
    font-size: 0.9rem;
}
.features-section {
    background-color: #f9f9f9 !important; /* Slightly distinct background */
    padding: 4rem 0 !important; /* Reduced vertical section padding */
}

/* === MOBILE OPTIMIERUNG === */

/* --- Tablets & große Handys (≤768px) --- */
@media (max-width: 768px) {
  /* Container */
  .container {
    padding: 0 1.25rem;
  }

  /* Hero — padding-top muss ≥ topbar(40) + header-padding(16) + nav(80) + header-padding(16) + Luft(15) = 167px */
  .hero {
    padding: 167px 0 35px;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 1rem;
    max-width: 90%;
    margin-bottom: 1.25rem;
  }
  .hero-actions {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.85rem;
  }

  /* Quadrat-Bilder begrenzen (aspect-ratio: 1/1 wäre sonst 350px+ hoch) */
  .configurator-image-wrapper,
  .quality-image-wrapper {
    max-height: 300px;
    overflow: hidden;
    border-radius: 16px;
  }
  .configurator-image-wrapper img,
  .quality-image-wrapper img {
    aspect-ratio: auto !important;
    height: 300px !important;
    width: 100% !important;
    object-fit: cover !important;
  }

  /* Produkt Karten */
  .product-card-img {
    height: 210px;
  }

  /* Parallax Bild */
  .parallax-image-wrapper {
    height: 320px;
  }

  /* Typografie */
  .section-title {
    font-size: 2rem;
  }
  .about-story-text h2,
  .configurator-text h2,
  .contact-header h2 {
    font-size: 1.9rem;
  }
  .contact-card h3 {
    font-size: 1.4rem;
  }
  .contact-header p {
    font-size: 1.05rem;
  }

  /* Sektion Abstände */
  .section {
    padding: 3.5rem 0;
  }
  .advantages-section {
    padding: 3.5rem 0;
  }
  .contact-section {
    padding: 3rem 0;
  }
  .contact-header {
    margin-bottom: 2rem;
  }

  /* Footer Logo */
  .footer-col img {
    height: 48px;
  }

  /* Vorteile */
  .advantages-container {
    padding: 2.5rem 1.5rem;
  }

  /* Promo */
  .promo-card {
    height: 280px;
  }
  .promo-card.inquiry-card {
    height: auto;
    padding: 2.5rem 1.5rem;
  }

  /* Footer */
  .footer {
    padding: 3rem 0 1.5rem;
    margin-top: 2.5rem;
  }
  .footer-grid {
    gap: 2rem;
  }
}

/* --- Kleine Smartphones (≤480px, iPhone SE etc) --- */
@media (max-width: 480px) {
  /* Container */
  .container {
    padding: 0 1rem;
  }

  /* Top Bar */
  .bestpreis-badge {
    display: none;
  }
  .marquee-text {
    font-size: 0.82rem;
  }

  /* Header */
  .logo img {
    height: 48px;
  }

  /* Hero — header-Höhe unverändert 152px + 13px Luft = 165px */
  .hero {
    padding: 165px 0 22px;
  }
  .hero h1 {
    font-size: 1.75rem;
    padding: 0 0.25rem;
  }
  .hero p {
    font-size: 0.88rem;
    margin-bottom: 0.85rem;
    padding: 0 0.5rem;
    max-width: 100%;
  }
  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
  }
  .hero-actions .btn {
    width: 100%;
    max-width: 285px;
    text-align: center;
  }

  /* Sektion Abstände */
  .section {
    padding: 2.75rem 0;
  }
  .advantages-section {
    padding: 2.75rem 0;
  }
  .contact-section {
    padding: 2.75rem 0;
  }
  .promo-section {
    padding: 0.5rem 0 2.75rem 0;
  }

  /* Quadrat-Bilder weiter begrenzen */
  .configurator-image-wrapper,
  .quality-image-wrapper {
    max-height: 255px;
  }
  .configurator-image-wrapper img,
  .quality-image-wrapper img {
    height: 255px !important;
  }

  /* Typografie */
  .section-title {
    font-size: 1.7rem;
    margin-bottom: 1.75rem;
  }
  .about-story-text h2,
  .configurator-text h2,
  .contact-header h2 {
    font-size: 1.6rem;
  }
  .about-story-text p,
  .configurator-text p,
  .contact-header p {
    font-size: 1rem;
    line-height: 1.65;
  }

  /* Produkt Karten */
  .product-card-img {
    height: 195px;
  }
  .product-card-body {
    padding: 1.25rem;
  }
  .product-card-title {
    font-size: 1.1rem;
  }
  .product-card-text {
    font-size: 0.9rem;
  }

  /* Vorteile */
  .advantages-container {
    padding: 2rem 1.25rem;
  }
  .advantage-item {
    gap: 1.1rem;
  }
  .advantage-icon svg,
  .advantage-icon i {
    width: 34px;
    height: 34px;
    font-size: 34px;
  }
  .advantage-text {
    font-size: 0.98rem;
  }

  /* Contact Header */
  .contact-header {
    margin-bottom: 1.5rem;
  }

  /* Kontakt Karten */
  .contact-card {
    padding: 2.5rem 1.5rem;
    border-radius: 20px;
  }
  .contact-card h3 {
    font-size: 1.3rem;
  }
  .contact-card-icon {
    font-size: 50px;
  }
  .contact-btn {
    padding: 0.75rem 2rem;
    font-size: 0.95rem;
  }

  /* Promo */
  .promo-card {
    height: 250px;
  }
  .promo-card.inquiry-card {
    height: auto;
    padding: 2rem 1.25rem;
    gap: 0.75rem;
  }
  .promo-card.inquiry-card h3 {
    font-size: 1.2rem;
  }
  .promo-icon {
    font-size: 48px;
  }
  .promo-btn {
    padding: 0.7rem 1.75rem;
    font-size: 0.9rem;
  }

  /* About Story */
  .parallax-image-wrapper {
    height: 255px;
  }
  .about-story-grid {
    gap: 2rem;
  }
  .about-story-text p {
    font-size: 1rem;
    margin-bottom: 1.25rem;
  }

  /* Why Us Icons */
  .why-us-icon {
    font-size: 40px;
  }

  /* Footer */
  .footer {
    padding: 2.5rem 0 1.25rem;
    margin-top: 2rem;
  }
  .footer-grid {
    gap: 1.75rem;
    margin-bottom: 2rem;
  }
  .footer-col h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
  }
  .footer-links li {
    margin-bottom: 0.6rem;
  }
  .footer-bottom {
    font-size: 0.82rem;
    padding-top: 1.5rem;
  }
}
