/* ===== FURLUMIN ENHANCED STYLES - Scroll-Fade & Modern Polish ===== */

/* Scroll-Fade Animation für Cards und Sections */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Basis für animierbare Elemente */
.card, .feature-list li, .grid > *, .event-card, .team-row {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Animation wenn sichtbar - wird bei jedem Scroll neu getriggert */
.card.fade-in, .feature-list li.fade-in, .grid > .fade-in, 
.event-card.fade-in, .team-row.fade-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Smooth fade-out wenn Element Viewport verlässt */
.card:not(.fade-in), .feature-list li:not(.fade-in), 
.grid > *:not(.fade-in), .event-card:not(.fade-in), 
.team-row:not(.fade-in) {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.4s ease-in, transform 0.4s ease-in;
}

/* Gestaffelte Delays für schöne Sequenz - jetzt mit transitions statt animation-delay */
.fade-in:nth-child(1) { transition-delay: 0.05s; }
.fade-in:nth-child(2) { transition-delay: 0.1s; }
.fade-in:nth-child(3) { transition-delay: 0.15s; }
.fade-in:nth-child(4) { transition-delay: 0.2s; }
.fade-in:nth-child(5) { transition-delay: 0.25s; }
.fade-in:nth-child(6) { transition-delay: 0.3s; }

/* Hero Section Enhancement */
.hero {
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(66, 176, 255, 0.08) 0%, transparent 70%);
  animation: pulseGlow 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes pulseGlow {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

.hero h1 {
  animation: fadeInScale 1s ease-out;
  text-shadow: 0 0 40px rgba(66, 176, 255, 0.4), 0 6px 36px rgba(0, 0, 0, 0.6);
}

.hero p {
  animation: fadeInUp 1s ease-out 0.2s both;
}

/* Video Card Enhancement */
.video-card {
  position: relative;
  overflow: hidden;
  animation: fadeInScale 0.8s ease-out 0.3s both;
}

.video-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(66, 176, 255, 0.15), transparent);
  transition: left 0.8s ease;
}

.video-card:hover::before {
  left: 100%;
}

/* Enhanced Cards mit mehr Tiefe */
.card {
  position: relative;
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(66, 176, 255, 0.5), rgba(122, 92, 255, 0.5));
  -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;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 30px rgba(66, 176, 255, 0.2);
  border-color: rgba(66, 176, 255, 0.6);
}

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

/* Feature List Enhancement */
.feature-list {
  counter-reset: feature-counter;
}

.feature-list li {
  position: relative;
  padding-left: 3.5rem;
  counter-increment: feature-counter;
}

.feature-list li::before {
  content: counter(feature-counter);
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue1), var(--blue2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  box-shadow: 0 4px 12px rgba(66, 176, 255, 0.3);
}

.feature-list li:hover {
  transform: translateX(8px);
  background: linear-gradient(#0c1e3fcc, #0c1e3fcc) padding-box,
              linear-gradient(135deg, rgba(66, 176, 255, 0.5), rgba(122, 92, 255, 0.5)) border-box;
}

/* Section Headers Enhancement */
.section-head {
  animation: fadeInUp 0.8s ease-out;
}

.section-head h2 {
  position: relative;
  display: inline-block;
  background: linear-gradient(90deg, #7cf0ff, #7aa8ff, #3cfad6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-head h2::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -8px;
  width: 80px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue1), var(--blue2));
  box-shadow: 0 0 14px rgba(66, 176, 255, 0.6);
}

/* Grid Enhancement */
.grid {
  perspective: 1000px;
}

.grid > * {
  transform-style: preserve-3d;
}

/* Team Row Enhancement */
.team-row {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-row:hover {
  transform: translateY(-4px) translateZ(10px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.team-row .avatar {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-row:hover .avatar {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 24px rgba(66, 176, 255, 0.4);
}

/* Events Table Enhancement */
.pzg-events-table tbody tr {
  transition: all 0.3s ease;
}

.pzg-events-table tbody tr:hover {
  transform: translateX(8px);
}

.pzg-events-table tbody td:last-child a,
.pzg-events-table tbody td:last-child .card {
  position: relative;
  overflow: hidden;
}

.pzg-events-table tbody td:last-child a::before,
.pzg-events-table tbody td:last-child .card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.6s ease;
}

.pzg-events-table tbody td:last-child a:hover::before,
.pzg-events-table tbody td:last-child .card:hover::before {
  left: 100%;
}

/* Gallery Enhancement */
.gallery-item {
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(66, 176, 255, 0.3), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
  opacity: 1;
}

.gallery-item img {
  transition: transform 0.5s ease, filter 0.3s ease;
}

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

/* Button Enhancement */
.btn, a.btn, button.btn,
header .nav a, .site-nav a {
  position: relative;
  overflow: hidden;
}

.btn::before, a.btn::before, button.btn::before,
header .nav a::before, .site-nav a::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::before, a.btn:hover::before, button.btn:hover::before,
header .nav a:hover::before, .site-nav a:hover::before {
  width: 300px;
  height: 300px;
}

/* Smooth Scroll Behavior */
html {
  scroll-behavior: smooth;
}

/* Loading State für Images */
.gallery-item img,
.team-row .avatar img,
.card img {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item img.loaded,
.team-row .avatar img.loaded,
.card img.loaded {
  opacity: 1;
}

/* Responsive Animations */
@media (max-width: 768px) {
  .card:hover {
    transform: translateY(-4px);
  }
  
  .team-row:hover {
    transform: translateY(-2px);
  }
}

/* Prefers Reduced Motion - behält Sichtbarkeit */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .card, .feature-list li, .grid > *, .event-card, .team-row {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Focus Styles für Accessibility */
*:focus-visible {
  outline: 2px solid var(--blue1);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Parallax Background für Sections */
.section {
  position: relative;
}

.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: radial-gradient(circle at 50% 0%, rgba(66, 176, 255, 0.03) 0%, transparent 50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.section.fade-in::before {
  opacity: 1;
}