/* Animation styles for loesninger.html page */

/* Connecting line animation for headlines */
.about-content {
  position: relative;
}

.about-content::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #6b2bd9 0%, #6b2bd9 100%);
  border-radius: 2px;
  opacity: 0;
  animation: lineAppear 2s ease-in-out 0.5s forwards;
}

.about-content h3 {
  position: relative;
  padding-left: 30px;
}

.about-content h3::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background: #511781;
  border-radius: 50%;
  border: 3px solid #ffffff;
  box-shadow: 0 0 0 3px #511781;
  opacity: 0;
  animation: dotAppear 0.6s ease-out forwards;
}

/* White section animation delays */
.about-section--white .about-content h3:nth-child(2)::before { animation-delay: 0.8s; }
.about-section--white .about-content h3:nth-child(4)::before { animation-delay: 1.0s; }
.about-section--white .about-content h3:nth-child(6)::before { animation-delay: 1.2s; }
.about-section--white .about-content h3:nth-child(8)::before { animation-delay: 1.4s; }
.about-section--white .about-content h3:nth-child(10)::before { animation-delay: 1.6s; }

/* Purple section line animation */
.about-content--purple::before {
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 100%);
}

.about-content--purple h3::before {
  background: #ffffff;
  border: 3px solid #511781;
  box-shadow: 0 0 0 3px #ffffff;
}

/* Purple section animation delays - based on current loesninger.html structure */
.about-section--purple .about-content h3:nth-child(1)::before { animation-delay: 0.8s; }
.about-section--purple .about-content h3:nth-child(3)::before { animation-delay: 1.0s; }
.about-section--purple .about-content h3:nth-child(5)::before { animation-delay: 1.2s; }
.about-section--purple .about-content h3:nth-child(7)::before { animation-delay: 1.4s; }
.about-section--purple .about-content h3:nth-child(9)::before { animation-delay: 1.6s; }

@keyframes lineAppear {
  0% {
    opacity: 0;
    transform: scaleY(0);
    transform-origin: top;
  }
  100% {
    opacity: 1;
    transform: scaleY(1);
  }
}

@keyframes dotAppear {
  0% {
    opacity: 0;
    transform: translateY(-50%) scale(0);
  }
  50% {
    transform: translateY(-50%) scale(1.2);
  }
  100% {
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .about-content::before {
    left: -15px;
    width: 2px;
  }
  
  .about-content h3::before {
    left: -15px;
    width: 10px;
    height: 10px;
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 2px #511781;
  }
  
  .about-content h3 {
    padding-left: 25px;
  }
}
