.about {
  width: 100%;
  padding: 2rem 5%;
  background-color: transparent;
  position: relative;
  margin-top: 0;
}

.about-container {
  display: flex;
  width: 100%;
  height: 300px;
  gap: 2rem;
  justify-content: center;
  align-items: center;
}

/* Gemeinsame Container */
.about-rectangle {
  width: 50vw;
  max-width: 600px;
  height: 300px;
  display: flex;
  justify-content: flex-start; /* Start oben links */
  align-items: center;
  padding: 1rem;
  border-radius: 0;
  box-shadow: 0 0 15px #9b30ff;
  position: relative;
  overflow: visible; /* Kinder sichtbar */
}

/* Weißer Container links */
.about-rectangle-left {
  background-color: #ffffff;
  border-radius: 0 10px 10px 0;
  opacity: 1; /* Container sichtbar */
  transform: translateY(0); /* keine Bewegung */
}

/* Animation: Profilbild + Text beim Scrollen */
.about-rectangle-left.in-view .about-profile-img,
.about-rectangle-left.in-view .about-profile-text {
  opacity: 1;
  transform: translateY(0);
}

.about-rectangle-left .about-profile-img,
.about-rectangle-left .about-profile-text {
  opacity: 0;
  transform: translateY(50px);
  transition: all 1s ease-out;
}

.about-rectangle-left .about-profile-text {
  transition-delay: 0.3s;
}

/* Profilbild + Text */
.about-profile-container {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.about-profile-img {
  width: 240px;
  height: 240px;
  border-radius: 0;
  object-fit: cover;
}

.about-profile-text {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.about-name {
  font-size: 2rem;
  font-weight: bold;
  margin: 0;
  color: #000000;
}

.about-title {
  font-size: 1.3rem;
  margin: 0;
  color: #555555;
}

/* Schwarzer Container rechts */
.about-rectangle-right {
  background-color: #000000;
  border-radius: 10px 0 0 10px;
  color: #ffffff;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 1.5rem;
  opacity: 0;
  transform: translateY(50px);
  transition: all 1s ease-out;
}

.about-rectangle-right.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Über mich Text */
.skills-header {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.skills-description {
  font-size: 1rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

/* Skills Balken */
.skills-container {
  width: 100%;
  display: flex;
  flex-direction: row; /* Skills nebeneinander */
  flex-wrap: wrap;
  gap: 0.7rem;
}

.skill {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1 1 45%; /* zwei Skills pro Reihe */
}

.skill-name {
  font-size: 0.9rem;
  color: #ffffff;
}

.skill-bar {
  width: 100%;
  height: 12px;
  background-color: #333;
  border-radius: 6px;
  overflow: hidden;
}

.skill-fill {
  width: 0;
  height: 100%;
  background-color: #9b30ff;
  border-radius: 6px;
  transition: width 1.5s ease-out;
}

/* Responsive */
@media (max-width: 900px) {
  .about-container {
    flex-direction: column;
    height: auto;
    gap: 1rem;
  }

  .about-rectangle-left,
  .about-rectangle-right {
    width: 90%;
    height: auto;
  }

  .about-profile-container {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .about-profile-img {
    width: 180px;
    height: 180px;
  }

  .about-name {
    font-size: 1.6rem;
  }

  .about-title {
    font-size: 1.1rem;
  }

  .skill {
    flex: 1 1 100%;
  }
}
