/* Impressionen aus unserem Alltag Section - Auto Slider */

.section-impressionen {
  background: linear-gradient(135deg, #1a4b84 0%, #0d2f51 50%, #1a4b84 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

/* Animated background pattern */
.section-impressionen::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 30% 20%, rgba(253, 195, 0, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.02) 0%, transparent 50%);
  animation: floatBackground 25s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes floatBackground {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.05); }
}

/* Section Header */
.impressionen-header {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

.impressionen-header h2 {
  font-family: "Arial Black", "Arial Bold", Arial, sans-serif !important;
  font-style: italic !important;
  font-weight: 900 !important;
  font-size: 2.5rem;
  background: linear-gradient(135deg, #fdc300 0%, #ffdb4d 50%, #fdc300 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

.impressionen-header .subtitle {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Gallery Slider Container */
.impressionen-gallery {
  position: relative;
  width: 100%;
  overflow: visible;
  height: auto;
  min-height: 280px;
  z-index: 1;
  padding-bottom: 20px;
}

/* Gallery Slider Track */
.gallery-slider-track {
  display: flex;
  height: auto;
  animation: slideGallery 50s linear infinite;
  gap: 25px;
  align-items: flex-start;
  padding-bottom: 20px;
}

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

/* Gallery Item */
.gallery-item {
  position: relative;
  flex: 0 0 auto;
  width: 280px;
  display: flex;
  flex-direction: column;
  overflow: visible;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery-image-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

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

/* Caption Text Below Image - IMMER SICHTBAR */
.gallery-caption-text {
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  margin: 12px 0 0 0;
  padding: 0 5px;
  text-align: center;
  line-height: 1.4;
  max-width: 100%;
  word-wrap: break-word;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Overlay with Caption - Legacy support */
.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
  padding: 30px 20px 20px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

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

.gallery-caption {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0;
}

.gallery-subcaption {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  margin-top: 5px;
}

/* Navigation Arrows */
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid #e9ecef;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.gallery-nav:hover {
  background: #fdc300;
  border-color: #fdc300;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 30px rgba(253, 195, 0, 0.3);
}

.gallery-nav.prev {
  left: 30px;
}

.gallery-nav.next {
  right: 30px;
}

.gallery-nav svg {
  width: 24px;
  height: 24px;
  stroke: #0a1628;
  stroke-width: 2.5;
}

.gallery-nav:hover svg {
  stroke: #ffffff;
}

/* Auto-slide Animation */
@keyframes slideGallery {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-400px * 8 - 20px * 8));
  }
}

/* Removed gradient edges - clean look without smoke effect */

/* Feature Badges */
.impressionen-features {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-top: 50px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  z-index: 1;
}

.feature-badge {
  text-align: center;
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #fdc300 0%, #ffdb4d 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  font-size: 1.5rem;
  color: #0a1628;
  box-shadow: 0 4px 15px rgba(253, 195, 0, 0.3);
}

.feature-badge h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 5px;
}

.feature-badge p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  max-width: 200px;
}

/* Wave Transition */
.wave-transition-impressionen {
  position: relative;
  height: 120px;
  overflow: hidden;
  background: #f8f9fa;
}

.wave-transition-impressionen svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gallery-item {
  animation: fadeInUp 0.6s ease backwards;
}

.gallery-item:nth-child(1) { animation-delay: 0.1s; }
.gallery-item:nth-child(2) { animation-delay: 0.15s; }
.gallery-item:nth-child(3) { animation-delay: 0.2s; }
.gallery-item:nth-child(4) { animation-delay: 0.25s; }
.gallery-item:nth-child(5) { animation-delay: 0.3s; }
.gallery-item:nth-child(6) { animation-delay: 0.35s; }
.gallery-item:nth-child(7) { animation-delay: 0.4s; }
.gallery-item:nth-child(8) { animation-delay: 0.45s; }

/* Responsive Design */
@media (max-width: 1024px) {
  .impressionen-gallery {
    min-height: 260px;
  }

  .gallery-item {
    width: 320px;
  }

  @keyframes slideGallery {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(calc(-320px * 8 - 20px * 8));
    }
  }
}

@media (max-width: 768px) {
  .section-impressionen {
    padding: 60px 0;
  }

  .impressionen-header h2 {
    font-size: 1.75rem;
  }

  .impressionen-gallery {
    min-height: 240px;
  }

  .gallery-item {
    width: 280px;
  }

  .gallery-caption-text {
    font-size: 0.8rem;
  }
  
  .gallery-nav {
    width: 40px;
    height: 40px;
  }
  
  .gallery-nav.prev {
    left: 15px;
  }
  
  .gallery-nav.next {
    right: 15px;
  }
  
  .gallery-nav svg {
    width: 20px;
    height: 20px;
  }
  
  .impressionen-features {
    flex-direction: column;
    gap: 30px;
    align-items: center;
  }
  
  .feature-badge p {
    max-width: 300px;
  }
  
  @keyframes slideGallery {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(calc(-280px * 8 - 20px * 8));
    }
  }
}

@media (max-width: 480px) {
  .impressionen-header h2 {
    font-size: 1.5rem;
  }

  .impressionen-header .subtitle {
    font-size: 0.95rem;
  }

  .impressionen-gallery {
    min-height: 220px;
  }

  .gallery-item {
    width: 240px;
  }

  .gallery-caption-text {
    font-size: 0.75rem;
  }
  
  .gallery-overlay {
    transform: translateY(0);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
    padding: 20px 15px 15px;
  }
  
  .gallery-nav {
    width: 35px;
    height: 35px;
  }
  
  .gallery-nav.prev {
    left: 10px;
  }
  
  .gallery-nav.next {
    right: 10px;
  }
  
  .gallery-nav svg {
    width: 18px;
    height: 18px;
  }
  
  
  @keyframes slideGallery {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(calc(-240px * 8 - 20px * 8));
    }
  }
}