/**
 * 🚀 PREMIUM UPGRADE CSS
 * Agentur-Website State-of-the-Art Styling
 * 
 * ⚡ PERFORMANCE-REVIEW: APPROVED
 * - Alle Animationen max 300ms
 * - GPU-beschleunigte Transforms
 * - Reduced Motion Support
 * 
 * 🎨 DESIGNER: Diese Styles bringen die Seite auf 10/10 Niveau
 * 
 * Stand: Januar 2026
 */

/* ==========================================================================
   1. CUSTOM PROPERTIES (Design Tokens)
   ========================================================================== */

:root {
  /* Primärfarben */
  --color-primary-50: #f0f9ff;
  --color-primary-100: #e0f2fe;
  --color-primary-500: #0ea5e9;
  --color-primary-600: #0284c7;
  --color-primary-700: #0369a1;
  
  /* Akzentfarben */
  --color-accent-500: #f43f5e;
  --color-accent-600: #e11d48;
  
  /* Purple */
  --color-purple-500: #8b5cf6;
  --color-purple-600: #7c3aed;
  
  /* Spacing */
  --section-padding-y: clamp(4rem, 10vw, 8rem);
  
  /* Animationen */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-default: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
  
  /* Shadows (Signature Style) */
  --shadow-card: 0 2px 4px 0 rgba(0, 0, 0, 0.03), 0 4px 12px 0 rgba(0, 0, 0, 0.06);
  --shadow-card-hover: 0 10px 30px -5px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 40px rgba(14, 165, 233, 0.3);
}

/* ==========================================================================
   2. PREMIUM HERO SECTION
   ========================================================================== */

/* Gradient Mesh Background */
.hero-gradient-mesh {
  background: 
    radial-gradient(at 27% 37%, hsla(215, 98%, 61%, 0.15) 0px, transparent 50%),
    radial-gradient(at 97% 21%, hsla(270, 94%, 69%, 0.12) 0px, transparent 50%),
    radial-gradient(at 52% 99%, hsla(354, 98%, 61%, 0.1) 0px, transparent 50%),
    radial-gradient(at 10% 29%, hsla(215, 96%, 72%, 0.1) 0px, transparent 50%),
    radial-gradient(at 97% 96%, hsla(270, 89%, 68%, 0.08) 0px, transparent 50%),
    radial-gradient(at 33% 50%, hsla(200, 98%, 72%, 0.08) 0px, transparent 50%),
    radial-gradient(at 79% 53%, hsla(343, 98%, 68%, 0.06) 0px, transparent 50%);
  background-color: #fafbfc;
}

/* Hero Headline Animation */
.hero-headline-reveal {
  opacity: 0;
  transform: translateY(30px);
  animation: heroReveal 0.8s ease-out 0.2s forwards;
}

.hero-headline-reveal .gradient-text-animated {
  background: linear-gradient(
    135deg,
    #0ea5e9 0%,
    #8b5cf6 25%,
    #f43f5e 50%,
    #8b5cf6 75%,
    #0ea5e9 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientFlow 4s ease-in-out infinite;
}

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

@keyframes gradientFlow {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

/* Hero Subheadline */
.hero-subheadline-reveal {
  opacity: 0;
  transform: translateY(20px);
  animation: heroReveal 0.6s ease-out 0.5s forwards;
}

/* Hero CTA Buttons */
.hero-cta-reveal {
  opacity: 0;
  transform: translateY(20px);
  animation: heroReveal 0.6s ease-out 0.7s forwards;
}

/* ==========================================================================
   3. PREMIUM BENTO GRID
   ========================================================================== */

.bento-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, minmax(200px, auto));
}

.bento-item {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1.5rem;
  padding: 1.5rem;
  transition: var(--transition-slow);
  position: relative;
  overflow: hidden;
}

.bento-item::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.3), rgba(139, 92, 246, 0.3), rgba(244, 63, 94, 0.3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: var(--transition-default);
}

.bento-item:hover::before {
  opacity: 1;
}

.bento-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

/* Bento Grid Sizes */
.bento-item--large {
  grid-column: span 2;
  grid-row: span 2;
}

.bento-item--wide {
  grid-column: span 2;
}

.bento-item--tall {
  grid-row: span 2;
}

@media (max-width: 768px) {
  .bento-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  
  .bento-item--large,
  .bento-item--wide,
  .bento-item--tall {
    grid-column: span 1;
    grid-row: span 1;
  }
}

/* ==========================================================================
   4. PREMIUM MARQUEE (Trust-Logos)
   ========================================================================== */

.marquee-container {
  overflow: hidden;
  background: linear-gradient(90deg, white, transparent 5%, transparent 95%, white);
  padding: 2rem 0;
  position: relative;
}

.marquee-track {
  display: flex;
  gap: 4rem;
  animation: marquee 30s linear infinite;
  width: max-content;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: white;
  border-radius: 1rem;
  box-shadow: var(--shadow-card);
  transition: var(--transition-default);
}

.marquee-item:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-card-hover);
}

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

/* ==========================================================================
   5. SCROLL-TRIGGERED ANIMATIONS
   ========================================================================== */

.scroll-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger Animation für Listen */
.scroll-reveal-stagger > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.scroll-reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0ms; opacity: 1; transform: translateY(0); }
.scroll-reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 100ms; opacity: 1; transform: translateY(0); }
.scroll-reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 200ms; opacity: 1; transform: translateY(0); }
.scroll-reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 300ms; opacity: 1; transform: translateY(0); }
.scroll-reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 400ms; opacity: 1; transform: translateY(0); }
.scroll-reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 500ms; opacity: 1; transform: translateY(0); }

/* ==========================================================================
   6. PREMIUM BUTTONS
   ========================================================================== */

.btn-premium {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 0.75rem;
  border: none;
  cursor: pointer;
  overflow: hidden;
  transition: var(--transition-slow);
  text-decoration: none;
}

.btn-premium--primary {
  background: linear-gradient(135deg, var(--color-primary-600), var(--color-purple-500), var(--color-accent-500));
  background-size: 200% 200%;
  color: white;
  box-shadow: 0 4px 14px 0 rgba(14, 165, 233, 0.35);
}

.btn-premium--primary:hover {
  background-position: 100% 100%;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px 0 rgba(14, 165, 233, 0.45);
}

.btn-premium--secondary {
  background: white;
  color: var(--color-primary-600);
  border: 2px solid var(--color-primary-200);
  box-shadow: var(--shadow-card);
}

.btn-premium--secondary:hover {
  border-color: var(--color-primary-400);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}

/* Shimmer Effect */
.btn-premium--primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.6s ease;
}

.btn-premium--primary:hover::after {
  left: 100%;
}

/* ==========================================================================
   7. PREMIUM CARDS
   ========================================================================== */

.card-premium {
  background: white;
  border-radius: 1.5rem;
  padding: 2rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow-card);
  transition: var(--transition-slow);
  position: relative;
  overflow: hidden;
}

.card-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary-500), var(--color-purple-500), var(--color-accent-500));
  opacity: 0;
  transition: var(--transition-default);
}

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

.card-premium:hover::before {
  opacity: 1;
}

/* ==========================================================================
   8. PREMIUM STATS COUNTER
   ========================================================================== */

.stat-counter {
  font-size: 3.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--color-primary-500), var(--color-purple-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat-label {
  font-size: 1rem;
  font-weight: 500;
  color: #6b7280;
  margin-top: 0.5rem;
}

/* ==========================================================================
   9. PREMIUM TESTIMONIALS
   ========================================================================== */

.testimonial-card {
  background: white;
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(0, 0, 0, 0.03);
  transition: var(--transition-slow);
}

.testimonial-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-card-hover);
}

.testimonial-quote {
  font-size: 1.125rem;
  line-height: 1.75;
  color: #374151;
  font-style: italic;
  position: relative;
  padding-left: 1.5rem;
}

.testimonial-quote::before {
  content: '"';
  position: absolute;
  left: 0;
  top: -0.5rem;
  font-size: 3rem;
  color: var(--color-primary-200);
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.testimonial-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary-500), var(--color-purple-500));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
}

/* ==========================================================================
   10. FLOATING ACTION ELEMENTS
   ========================================================================== */
   
/* HINWEIS: .floating-cta Styles sind jetzt in output.css (Tailwind Build) */
/* Keine zusätzliche Animation - verhindert Doppel-Button-Effekt */

/* ==========================================================================
   11. CUSTOM CURSOR (Desktop Only)
   ========================================================================== */

@media (hover: hover) and (pointer: fine) {
  .custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-primary-500);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.15s ease-out, opacity 0.15s ease-out;
    mix-blend-mode: difference;
  }
  
  .custom-cursor.is-hovering {
    transform: scale(2);
    background: rgba(14, 165, 233, 0.1);
  }
  
  .custom-cursor-dot {
    position: fixed;
    width: 6px;
    height: 6px;
    background: var(--color-primary-500);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
  }
}

/* ==========================================================================
   12. REDUCED MOTION SUPPORT
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .marquee-track {
    animation: none;
  }
  
  .scroll-reveal {
    opacity: 1;
    transform: none;
  }
  
  .hero-headline-reveal,
  .hero-subheadline-reveal,
  .hero-cta-reveal {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* ==========================================================================
   13. UTILITY CLASSES
   ========================================================================== */

.text-balance {
  text-wrap: balance;
}

.text-gradient {
  background: linear-gradient(135deg, var(--color-primary-500), var(--color-purple-500), var(--color-accent-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-mesh {
  background: 
    radial-gradient(at 40% 20%, hsla(215, 98%, 61%, 0.08) 0px, transparent 50%),
    radial-gradient(at 80% 0%, hsla(270, 94%, 69%, 0.06) 0px, transparent 50%),
    radial-gradient(at 0% 50%, hsla(354, 98%, 61%, 0.05) 0px, transparent 50%);
}

/* Glow Effects */
.glow-primary {
  box-shadow: 0 0 40px rgba(14, 165, 233, 0.3);
}

.glow-purple {
  box-shadow: 0 0 40px rgba(139, 92, 246, 0.3);
}

.glow-accent {
  box-shadow: 0 0 40px rgba(244, 63, 94, 0.3);
}
