/* Modern 3D Design System für Auto Export 24 */

/* 3D Transform Effects */
@keyframes float {
  0%, 100% { transform: translateY(0px) translateZ(0); }
  50% { transform: translateY(-12px) translateZ(20px); }
}

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(220, 38, 38, 0.3), var(--shadow-xl); }
  50% { box-shadow: 0 0 40px rgba(220, 38, 38, 0.6), var(--shadow-xl); }
}

@keyframes slide-in-left {
  from {
    opacity: 0;
    transform: translateX(-40px) rotateY(20deg);
  }
  to {
    opacity: 1;
    transform: translateX(0) rotateY(0);
  }
}

@keyframes slide-in-right {
  from {
    opacity: 0;
    transform: translateX(40px) rotateY(-20deg);
  }
  to {
    opacity: 1;
    transform: translateX(0) rotateY(0);
  }
}

@keyframes scale-rotate-in {
  from {
    opacity: 0;
    transform: scale(0.8) rotateZ(-10deg) rotateX(30deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotateZ(0) rotateX(0);
  }
}

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

/* 3D Category Hero Section */
.category-hero {
  position: relative;
  overflow: hidden;
  min-height: 600px;
  display: grid;
  align-items: center;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 25%, #2d3e5f 50%, #1e293b 75%, #0f172a 100%);
  background-size: 400% 400%;
  animation: gradient-shift 15s ease infinite;
  color: #fff;
  perspective: 1000px;
}

.category-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(220, 38, 38, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(37, 99, 235, 0.1) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

.category-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 50%;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0));
  z-index: 2;
  pointer-events: none;
}

.hero-3d-container {
  position: relative;
  z-index: 3;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 5rem 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-3d-content {
  perspective: 1200px;
  animation: slide-in-left 1s ease-out 0.2s both;
}

.hero-3d-content h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  max-width: 14ch;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #fff 0%, #cbd5e1 50%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-3d-content p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 500px;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.hero-3d-visual {
  perspective: 1500px;
  height: 400px;
  display: grid;
  place-items: center;
  animation: slide-in-right 1s ease-out 0.3s both;
}

.hero-3d-card {
  width: 90%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 1px rgba(255, 255, 255, 0.2);
  transform-style: preserve-3d;
  transform: rotateX(5deg) rotateY(-5deg) rotateZ(2deg);
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: float 4s ease-in-out infinite;
}

.category-hero:hover .hero-3d-card {
  transform: rotateX(-5deg) rotateY(5deg) rotateZ(-2deg) scale(1.05);
  box-shadow: 
    0 20px 60px rgba(220, 38, 38, 0.4),
    inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

.hero-3d-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 20px;
  padding: 2px;
  background: linear-gradient(45deg, #dc2626, #2563eb, #dc2626);
  background-size: 200% 200%;
  animation: gradient-shift 4s ease infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: -1;
}

.category-hero:hover .hero-3d-card::before {
  opacity: 1;
}

.hero-3d-icon {
  font-size: 120px;
  opacity: 0.8;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.3));
  animation: scale-rotate-in 0.8s ease-out 0.4s both;
}

/* Benefits Grid mit 3D Effekt */
.benefits-3d-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.benefit-card-3d {
  position: relative;
  border-radius: 16px;
  padding: 3rem;
  background: linear-gradient(135deg, rgba(255,255,255,0.8), rgba(241,245,249,0.6));
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-xl);
  backdrop-filter: blur(10px);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-style: preserve-3d;
  overflow: hidden;
}

.benefit-card-3d::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.benefit-card-3d:hover {
  transform: translateY(-12px) rotateX(-5deg) rotateY(5deg);
  box-shadow: 
    0 20px 40px rgba(220, 38, 38, 0.2),
    0 0 0 1px rgba(220, 38, 38, 0.1);
  border-color: rgba(220, 38, 38, 0.3);
}

.benefit-card-3d:hover::before {
  opacity: 1;
}

.benefit-icon {
  font-size: 48px;
  margin-bottom: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 180px;
  height: 180px;
  animation: scale-rotate-in 0.6s ease-out backwards;
}

.benefit-icon img {
  width: 180px !important;
  height: 180px !important;
  object-fit: cover !important;
  border-radius: 20px !important;
}

.benefit-card-3d:nth-child(1) .benefit-icon { animation-delay: 0.1s; }
.benefit-card-3d:nth-child(2) .benefit-icon { animation-delay: 0.2s; }
.benefit-card-3d:nth-child(3) .benefit-icon { animation-delay: 0.3s; }

.benefit-card-3d h3 {
  font-size: 1.4rem;
  color: var(--ink);
  margin-bottom: 0.75rem;
  transition: color 0.3s ease;
}

.benefit-card-3d:hover h3 {
  color: var(--primary);
}

.benefit-card-3d p {
  color: var(--muted);
  line-height: 1.7;
}

/* Process Steps mit 3D Timeline */
.process-steps-3d {
  position: relative;
  display: grid;
  gap: 2rem;
  margin: 3rem 0;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.02), rgba(37, 99, 235, 0.02));
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.04);
}

.process-step-3d {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2rem;
  align-items: start;
  position: relative;
  animation: slide-in-left 0.8s ease-out backwards;
}

.process-step-3d:nth-child(1) { animation-delay: 0.1s; }
.process-step-3d:nth-child(2) { animation-delay: 0.2s; }
.process-step-3d:nth-child(3) { animation-delay: 0.3s; }
.process-step-3d:nth-child(4) { animation-delay: 0.4s; }

.step-number-3d {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), #b91c1c);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 900;
  box-shadow: 0 8px 24px rgba(220, 38, 38, 0.3);
  transform-style: preserve-3d;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.process-step-3d:hover .step-number-3d {
  transform: translateZ(20px) scale(1.1);
  box-shadow: 0 12px 40px rgba(220, 38, 38, 0.5);
}

.step-content-3d h4 {
  font-size: 1.25rem;
  color: var(--ink);
  margin: 0 0 0.75rem;
}

.step-content-3d p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

/* CTA Section mit 3D Effekt */
.cta-section-3d {
  background: linear-gradient(135deg, var(--primary), #b91c1c);
  background-size: 200% 200%;
  animation: gradient-shift 8s ease infinite;
  border-radius: 20px;
  padding: 4rem;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
  perspective: 1200px;
  box-shadow: 0 20px 60px rgba(220, 38, 38, 0.3);
}

.cta-section-3d::before {
  content: "";
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1), transparent),
    radial-gradient(circle at 80% 50%, rgba(255,255,255,0.1), transparent);
  pointer-events: none;
}

.cta-content-3d {
  position: relative;
  z-index: 2;
  animation: scale-rotate-in 0.8s ease-out 0.2s both;
}

.cta-section-3d h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--ink);
}

.cta-section-3d p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  color: var(--ink);
}

.cta-button-3d {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: white;
  border-radius: 12px;
  font-weight: 800;
  font-size: 1.1rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transform-style: preserve-3d;
}

.cta-button-3d:hover {
  background: rgba(255, 255, 255, 0.35);
  border-color: rgba(255, 255, 255, 0.8);
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-3d-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .hero-3d-visual {
    height: 300px;
  }
  
  .benefits-3d-grid {
    grid-template-columns: 1fr;
  }
  
  .cta-section-3d {
    padding: 2rem;
  }
  
  .cta-section-3d h2 {
    font-size: 1.8rem;
  }
}
