body {
  background: linear-gradient(rgba(30,30,40,0.8), rgba(30,30,40,0.8)),
    url("assets/code-1839406_1280.jpg") no-repeat center center fixed;
  background-size: cover;
  margin: 0;
  padding: 0;
}

/* Abstand zum Hauptinhalt */
main {
  padding-top: 10px; /* Platz schaffen für den fixierten Header */
}

/* Timeline Section */
.timeline-section {
  max-width: 1000px;
  margin: 5rem auto;
  padding: 2rem;
  position: relative;
}

.timeline-section h1 {
  text-align: center;
  color: white;
  margin-bottom: 3rem;
}

.timeline {
  position: relative;
  margin: 0 auto;
  padding-left: 20px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: gray;
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 1.5rem 2rem;
  box-sizing: border-box;
}

.timeline-item.left {
  left: 0;
  text-align: right;
}

.timeline-item.right {
  left: 50%;
  text-align: left;
}

.timeline-item .content {
  background: rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  border-radius: 12px;
  position: relative;
  z-index: auto;
}

.timeline-item .content::after {
  content: '';
  position: absolute;
  top: 15px;
  width: 15px;
  height: 15px;
  background: gray;
  border-radius: 50%;
  z-index: 1;
}

.timeline-item.left .content::after {
  right: -8px;
  top: 2rem;
}

.timeline-item.right .content::after {
  left: -8px;
  top: 2rem;
}

.timeline-item h3 {
  margin-bottom: 0.5rem;
  color: white;
}

.timeline-item h4 {
  color: white;
  margin-bottom: 0.5rem;
}

.timeline-item p {
  color: white;
}

/* ===========================
   Mobile-Styles
   =========================== */
@media (max-width: 768px) {

  .timeline-section {
    max-width: 100%;
    margin: 2rem auto;
    padding: 1rem;
    position: relative;
    /* kein z-index hier */
  }

  .timeline::before {
    left: 10px;
    transform: none;
  }

  .timeline-item {
    width: 100%;
    padding-left: 2.5rem;
    text-align: left;
    left: 0;
    margin-bottom: 2rem;
  }

  .timeline-item.left,
  .timeline-item.right {
    left: 0;
    text-align: left;
  }

  .timeline-item .content::after {
    left: 0;
    right: auto;
    transform: translateX(-50%);
  }
}
