/* ====================================
   ADDITIONAL STYLES
   KI-Assistent, WhatsApp, Video, CTA
   ==================================== */

/* ====================================
   FLOATING ACTION BUTTONS CONTAINER
   ==================================== */

.fab-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 999;
}

/* Base FAB Styles */
.fab {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  cursor: pointer;
}

/* KI-Assistent Button (Oben) */
.fab-ai {
  /* Cyan Neon Gradient */
  background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
  
  /* Glow Effect */
  box-shadow: 
    0 4px 20px rgba(0, 212, 255, 0.4),
    0 0 30px rgba(0, 212, 255, 0.2);
}

.fab-ai:hover {
  transform: scale(1.1);
  box-shadow: 
    0 6px 30px rgba(0, 212, 255, 0.6),
    0 0 50px rgba(0, 212, 255, 0.3);
}

/* WhatsApp Button (Darunter) */
.fab-whatsapp {
  /* WhatsApp Grün */
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  
  box-shadow: 
    0 4px 20px rgba(37, 211, 102, 0.4),
    0 0 30px rgba(37, 211, 102, 0.2);
}

.fab-whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 
    0 6px 30px rgba(37, 211, 102, 0.6),
    0 0 50px rgba(37, 211, 102, 0.3);
}

/* Pulse Animation */
@keyframes fabPulse {
  0%, 100% { 
    transform: scale(1); 
  }
  50% { 
    transform: scale(1.05); 
  }
}

.fab-ai, .fab-whatsapp {
  animation: fabPulse 2s ease-in-out infinite;
}

.fab-ai:hover, .fab-whatsapp:hover {
  animation: none;
}

/* ====================================
   VIDEO BACKGROUND STYLES
   ==================================== */

.hero-with-video {
  position: relative;
  overflow: hidden;
}

.hero-video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3; /* Gedimmt für bessere Lesbarkeit */
}

.hero-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  
  /* Gradient Overlay für bessere Lesbarkeit */
  background: linear-gradient(
    135deg,
    rgba(10, 14, 39, 0.9) 0%,
    rgba(10, 14, 39, 0.7) 100%
  );
}

/* Content über Video */
.hero-with-video .container {
  position: relative;
  z-index: 2;
}

/* ====================================
   IMPROVED CTA SECTIONS
   ==================================== */

/* Main CTA Section */
.section-cta {
  border-top: 2px solid #00d4ff;
  border-bottom: 2px solid #00d4ff;
  position: relative;
  overflow: hidden;
}

.section-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 212, 255, 0.05) 0%,
    rgba(178, 75, 243, 0.05) 100%
  );
  pointer-events: none;
}

/* CTA Banner with Glow */
.cta-banner {
  border: 2px solid #00d4ff;
  box-shadow: 
    0 0 30px rgba(0, 212, 255, 0.3),
    0 0 60px rgba(0, 212, 255, 0.1);
  animation: ctaGlow 3s ease-in-out infinite;
  position: relative;
  overflow: hidden;
}

@keyframes ctaGlow {
  0%, 100% {
    box-shadow: 
      0 0 30px rgba(0, 212, 255, 0.3),
      0 0 60px rgba(0, 212, 255, 0.1);
  }
  50% {
    box-shadow: 
      0 0 40px rgba(0, 212, 255, 0.5),
      0 0 80px rgba(0, 212, 255, 0.2);
  }
}

.cta-banner h2,
.cta-banner h3 {
  color: #00d4ff;
  text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.cta-banner .btn {
  background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
  border: none;
}

.cta-banner .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.6);
}

/* CTA Slab */
.cta-slab {
  border-left: 3px solid #00d4ff;
  padding-left: 24px;
}

.cta-slab h3 {
  color: #00d4ff;
}

/* ====================================
   CONTACT TILES IMPROVED
   ==================================== */

.contact-tiles .tile {
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 212, 255, 0.2);
}

.contact-tiles .tile:hover {
  border-color: #00d4ff;
  box-shadow: 
    0 0 20px rgba(0, 212, 255, 0.3),
    0 8px 16px rgba(0, 0, 0, 0.3);
  transform: translateY(-4px);
}

.contact-tiles .tile-icon {
  font-size: 48px;
  filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.5));
}

/* ====================================
   IMAGE GALLERY (für video.html)
   ==================================== */

.image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  border: 2px solid rgba(0, 212, 255, 0.2);
  transition: all 0.3s ease;
  background: #1a1f35;
}

.gallery-item:hover {
  border-color: #00d4ff;
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
  transform: translateY(-4px);
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  background: linear-gradient(
    to top,
    rgba(10, 14, 39, 0.95) 0%,
    transparent 100%
  );
  color: #e8eaf0;
  font-weight: 500;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-caption {
  transform: translateY(0);
}

/* ====================================
   TELEGRAM WIDGET STYLING
   ==================================== */

.telegram-widget-container {
  display: flex;
  justify-content: center;
  margin: 32px 0;
  padding: 24px;
  background: rgba(26, 31, 53, 0.5);
  border-radius: 12px;
  border: 1px solid rgba(0, 212, 255, 0.2);
}

/* ====================================
   RESPONSIVE ADJUSTMENTS
   ==================================== */

@media (max-width: 1024px) {
  .image-gallery {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
}

@media (max-width: 768px) {
  /* FAB Container */
  .fab-container {
    bottom: 16px;
    right: 16px;
    gap: 12px;
  }
  
  .fab-ai, .fab-whatsapp {
    width: 56px;
    height: 56px;
    font-size: 24px;
  }
  
  /* Video ausblenden für Performance */
  .hero-video {
    display: none;
  }
  
  .hero-video-container {
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f35 100%);
  }
  
  /* CTA Banner */
  .cta-banner {
    padding: 32px 24px;
  }
  
  /* Gallery */
  .image-gallery {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .gallery-item img {
    height: 200px;
  }
}

@media (max-width: 480px) {
  .fab-ai, .fab-whatsapp {
    width: 52px;
    height: 52px;
    font-size: 22px;
  }
  
  .fab-container {
    bottom: 12px;
    right: 12px;
  }
}

/* ====================================
   ACCESSIBILITY IMPROVEMENTS
   ==================================== */

/* Focus styles for keyboard navigation */
.fab:focus-visible,
.tile:focus-visible {
  outline: 3px solid #00d4ff;
  outline-offset: 4px;
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .fab-ai,
  .fab-whatsapp,
  .cta-banner,
  .gallery-item,
  .hero-video {
    animation: none !important;
    transition: none !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .fab-ai {
    background: #00d4ff;
    color: #000;
  }
  
  .fab-whatsapp {
    background: #25D366;
    color: #000;
  }
  
  .cta-banner {
    border-width: 3px;
  }
}

/* ====================================
   PRINT STYLES
   ==================================== */

@media print {
  .fab-container,
  .hero-video-container,
  .cta-banner {
    display: none;
  }
}
