/* ============================================
   SAISONALES OVERLAY SYSTEM - DARK NAVY DESIGN
   ============================================ */

/* Overlay Container */
.seasonal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: none;
  animation: fadeIn 0.4s ease-in-out;
}

.seasonal-overlay.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Background Overlay */
.overlay-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 18, 32, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Content Container */
.overlay-content {
  position: relative;
  width: 90%;
  max-width: 800px;
  max-height: 85vh;
  background: linear-gradient(135deg, #0a1929 0%, #0d2942 100%);
  border: 2px solid #238ad2;
  border-radius: 12px;
  box-shadow: 0 0 30px rgba(35, 138, 210, 0.4),
              0 0 60px rgba(61, 169, 245, 0.2),
              inset 0 0 20px rgba(35, 138, 210, 0.1);
  overflow: hidden;
  animation: slideIn 0.5s ease-out;
}

/* Close Button */
.overlay-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  background: rgba(10, 25, 41, 0.85);
  border: 1px solid #238ad2;
  border-radius: 50%;
  color: #238ad2;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}

.overlay-close:hover {
  background: #238ad2;
  color: #ffffff;
  transform: rotate(90deg);
  box-shadow: 0 0 15px rgba(35, 138, 210, 0.6);
  border-color: #3da9f5;
}

/* Inner Content */
.overlay-inner {
  display: flex;
  flex-direction: column;
  padding: 40px 30px 30px;
  overflow-y: auto;
  max-height: 85vh;
}

/* Image Container */
.overlay-image {
  width: 100%;
  margin-bottom: 25px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(35, 138, 210, 0.3);
  background: rgba(10, 25, 41, 0.5);
}

.overlay-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain; /* oder "cover" */
  max-height: 300px;
}

/* Hide image if not needed */
.overlay-image.hidden {
  display: none;
}

/* Text Container */
.overlay-text {
  text-align: center;
  color: #ffffff;
}

.overlay-text h2 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 2rem;
  margin-bottom: 20px;
  color: #238ad2;
  text-shadow: 0 0 10px rgba(35, 138, 210, 0.5);
  line-height: 1.3;
  font-weight: bold;
}

.overlay-text p {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 25px;
  color: rgba(255, 255, 255, 0.9);
}

/* CTA Button */
.overlay-cta {
  display: inline-block;
  padding: 12px 30px;
  background: #238ad2;
  border: 2px solid #238ad2;
  border-radius: 4px;
  color: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(35, 138, 210, 0.3);
}

.overlay-cta:hover {
  background: #3da9f5;
  border-color: #3da9f5;
  box-shadow: 0 6px 25px rgba(61, 169, 245, 0.5);
  transform: translateY(-2px);
}

/* Hide CTA if not needed */
.overlay-cta.hidden {
  display: none;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    transform: scale(0.8) translateY(-50px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

/* Responsive Design */
@media (min-width: 768px) {
  .overlay-inner {
    flex-direction: row;
    align-items: center;
    gap: 30px;
  }
  
  .overlay-image {
    width: 45%;
    margin-bottom: 0;
    flex-shrink: 0;
  }
  
  .overlay-text {
    width: 55%;
    text-align: left;
  }
  
  .overlay-image img {
    max-height: 400px;
  }
}

@media (max-width: 767px) {
  .overlay-content {
    width: 95%;
    margin: 20px;
  }
  
  .overlay-inner {
    padding: 35px 20px 25px;
  }
  
  .overlay-text h2 {
    font-size: 1.5rem;
  }
  
  .overlay-text p {
    font-size: 1rem;
  }
  
  .overlay-close {
    width: 35px;
    height: 35px;
    top: 10px;
    right: 10px;
  }
}

/* Custom Scrollbar für Overlay */
.overlay-inner::-webkit-scrollbar {
  width: 8px;
}

.overlay-inner::-webkit-scrollbar-track {
  background: rgba(5, 18, 32, 0.5);
}

.overlay-inner::-webkit-scrollbar-thumb {
  background: #238ad2;
  border-radius: 4px;
}

.overlay-inner::-webkit-scrollbar-thumb:hover {
  background: #3da9f5;
}