/* ========================================
   TIMELINE.CSS - Vertikale Timeline
   Azoth Blau Linien, Gold Marker, subtile Scroll-Animation
   ======================================== */

/* Timeline-Bereich Container */
#timeline {
  width: 100%;
  max-width: 100%;
  padding: 2.5rem;
  background: rgba(7, 22, 39, 0.78);
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  border: 1px solid var(--color-primary-12);
  margin: 0 0 1rem 0;
  box-sizing: border-box;
  overflow: visible;
  position: relative;
}

#timeline h2 {
  font-size: 28px;
  font-weight: 600;
  /* Helles Grau mit schimmerndem Farbverlauf */
  background: linear-gradient(
    135deg,
    #E6EDF3 0%,
    #D5E3EE 25%,
    #C7D2E0 50%,
    #D5E3EE 75%,
    #E6EDF3 100%
  );
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  /* Shimmer-Animation entfernt - statischer Gradient für professionelleres Design */
  margin: 0 0 2.5rem 0;
  text-align: center;
}

/* Timeline Container */
.timeline-container {
  position: relative;
  padding-left: 60px;
  max-width: 900px;
  margin: 0 auto;
}

/* Vertikale Linie (Azoth Blau) */
.timeline-container::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, 
    var(--color-primary-30) 0%,
    var(--color-primary-60) 20%,
    var(--color-primary-80) 50%,
    var(--color-primary-60) 80%,
    var(--color-primary-30) 100%
  );
  box-shadow: 0 0 15px var(--color-primary-40);
  border-radius: 2px;
}

/* Timeline Item */
.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

/* Sichtbar beim Scrollen */
.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Marker (Azoth Blau) */
.timeline-marker {
  position: absolute;
  left: -50px;
  top: 8px;
  width: 20px;
  height: 20px;
  background: radial-gradient(circle, var(--color-primary-100) 0%, rgba(0, 150, 200, 0.9) 100%);
  border: 3px solid var(--color-primary-80);
  border-radius: 50%;
  box-shadow: 
    0 0 20px var(--color-primary-80),
    0 0 40px var(--color-primary-40),
    inset 0 2px 4px rgba(255, 255, 255, 0.3);
  z-index: 2;
  transition: all 0.3s ease;
}

.timeline-item:hover .timeline-marker {
  transform: scale(1.2);
  box-shadow: 
    0 0 30px var(--color-primary-100),
    0 0 60px var(--color-primary-60),
    inset 0 2px 4px rgba(255, 255, 255, 0.4);
}

/* Timeline Content */
.timeline-content {
  background: rgba(10, 27, 43, 0.6);
  border: 1px solid var(--color-primary-20);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
}

.timeline-item:hover .timeline-content {
  background: rgba(10, 27, 43, 0.8);
  border-color: var(--color-primary-40);
  box-shadow: 0 8px 24px var(--color-primary-20);
  transform: translateX(8px);
}

/* Jahr */
.timeline-year {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary-100);
  margin-bottom: 0.5rem;
  text-shadow: 0 0 10px var(--color-primary-50);
  letter-spacing: 0.05em;
}

/* Titel */
.timeline-title {
  font-size: 20px;
  font-weight: 600;
  /* Helles Grau mit schimmerndem Farbverlauf */
  background: linear-gradient(
    135deg,
    #E6EDF3 0%,
    #D5E3EE 25%,
    #C7D2E0 50%,
    #D5E3EE 75%,
    #E6EDF3 100%
  );
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  /* Shimmer-Animation entfernt - statischer Gradient für professionelleres Design */
  margin: 0 0 0.75rem 0;
  line-height: 1.3;
}

/* Beschreibung */
.timeline-description {
  font-size: 15px;
  line-height: 1.6;
  color: #9FB7C8;
  margin: 0;
}

/* Verbindungslinie zwischen Items */
.timeline-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: -50px;
  top: 28px;
  width: 3px;
  height: calc(100% + 1rem);
  background: linear-gradient(180deg,
    var(--color-primary-40) 0%,
    var(--color-primary-60) 50%,
    var(--color-primary-40) 100%
  );
  z-index: 1;
}

/* Animation beim Scrollen */
@keyframes timelineFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
  .timeline-container {
    padding-left: 40px;
  }

  .timeline-container::before {
    left: 15px;
    width: 2px;
  }

  .timeline-marker {
    left: -35px;
    width: 16px;
    height: 16px;
  }

  .timeline-item:not(:last-child)::after {
    left: -35px;
    width: 2px;
  }

  .timeline-content {
    padding: 1.25rem;
  }

  .timeline-year {
    font-size: 16px;
  }

  .timeline-title {
    font-size: 18px;
  }

  .timeline-description {
    font-size: 14px;
  }
}

