.resume-container {
  min-height: calc(100vh - 150px);
  max-height: 100vh;
  overflow-y: auto;
  position: relative;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-top: 7rem;
}

.resume-container::-webkit-scrollbar {
  display: none;
}

.timeline {
  position: relative;
  height: auto;
  min-height: 100vh;
  overflow-y: visible;
  padding: 20px 0;
  max-width: 1200px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(50px);
  animation: fadeInUp 1s ease forwards;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  width: 3px;
  background-color: #fff;
  top: 0;
  height: 150%;
  transform-origin: top;
  transform: translateX(-50%);
  animation: grow-line 1s ease-out forwards;
}

.timeline::after {
  content: '↑';
  position: absolute;
  left: 50%;
  top: -20px;
  transform: translateX(-50%);
  color: #fff;
  font-size: 20px;
  opacity: 0;
  animation: show-arrow 0.3s ease forwards;
  animation-delay: 1s;
}

.timeline-item {
  padding: 10px 0;
  position: relative;
  width: 50%;
  opacity: 0;
  transform: translateY(20px);
  margin-bottom: 50px;
}

.timeline-item:first-child {
  margin-top: 100px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  height: 2px;
  background-color: white;
  top: 50%;
  transform: translateY(-50%);
  box-shadow: 0 0 10px rgba(255,255,255,0.3);
}

.timeline-item::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  background-color: white;
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  box-shadow: 0 0 10px rgba(255,255,255,0.3);
  z-index: 2;
}

.timeline-item:nth-child(odd) {
  left: 0;
  padding-right: 80px;
  animation: slideInLeft 0.5s ease forwards;
  animation-delay: calc(var(--item-index) * 0.3s + 1s);
}

.timeline-item:nth-child(odd)::before {
  right: 0;
  width: 81px;
}

.timeline-item:nth-child(odd)::after {
  right: -6px;
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-left: -1px;
}

.timeline-item:nth-child(even) {
  left: 50%;
  padding-left: 80px;
  animation: slideInRight 0.5s ease forwards;
  animation-delay: calc(var(--item-index) * 0.3s + 1s);
}

.timeline-item:nth-child(even)::before {
  left: 0;
  width: 81px;
}

.timeline-item:nth-child(even)::after {
  left: -6px;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-right: -1px;
}

.timeline-content {
  padding: 20px;
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  position: relative;
  transition: transform 0.2s ease;
}

.timeline-content:hover {
  transform: translateY(-2px);
}

.timeline-title {
  font-size: 1.2em;
  color: white;
  margin: 0;
}

.timeline-year {
  font-size: 0.9em;
  color: #888;
  margin: 0;
}

.timeline-description {
  font-size: 0.9em;
  color: #ccc;
  margin: 0;
  line-height: 1.4;
}

.timeline-content img {
  width: 80px !important;
  height: 80px !important;
  min-width: 80px !important;
  min-height: 80px !important;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 10px rgba(255,255,255,0.3);
  flex-shrink: 0;
  display: block;
}

@keyframes grow-line {
    from {
        transform: translateX(-50%) scaleY(0);
    }
    to {
        transform: translateX(-50%) scaleY(1);
    }
}

@keyframes show-arrow {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from { 
    opacity: 0;
    transform: translateY(50px);
  }
  to { 
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

/* Mobile Anpassungen */
@media (max-width: 768px) {
  .resume-container {
    padding-top: 7rem;
    height: auto;
    overflow-y: auto;
  }

  .timeline {
    margin-top: 0 !important;
    min-height: auto;
    height: auto;
  }

  .timeline-content {
    width: 90%;
    margin: 0 auto;
    font-size: 0.9em;
  }

  .timeline-item {
    width: 100%;
    margin: 0 0 20px 0;
    padding: 15px;
    left: 0;
  }

  .timeline-item:first-child {
    margin-top: 0;
  }

  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    left: 0;
    animation-delay: 0s !important;
  }

  .timeline::before,
  .timeline::after,
  .timeline-item::before,
  .timeline-item::after {
    display: none;
  }
}
