/* Jobspezifische schwebende Elemente für den Hintergrund */

.job-floating-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

/* Gemeinsame Stile für alle schwebenden Elemente */
.job-floating-element {
  position: absolute;
  opacity: 0.1;
  pointer-events: none;
  z-index: -1;
}

/* Lebenslauf-Element */
.floating-resume {
  width: 80px;
  height: 100px;
  background-color: var(--primary-light-color);
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  animation: float-resume 15s ease-in-out infinite;
}

.floating-resume::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 15px;
  width: 50px;
  height: 5px;
  background-color: #fff;
  border-radius: 2px;
}

.floating-resume::after {
  content: '';
  position: absolute;
  top: 30px;
  left: 15px;
  width: 50px;
  height: 50px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}

@keyframes float-resume {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
  }
  100% {
    transform: translateY(0) rotate(0deg);
  }
}

/* Briefumschlag-Element */
.floating-envelope {
  width: 70px;
  height: 50px;
  background-color: var(--accent-color);
  border-radius: 5px;
  clip-path: polygon(0% 0%, 100% 0%, 100% 75%, 50% 100%, 0% 75%);
  animation: float-envelope 18s ease-in-out infinite;
}

.floating-envelope::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.1);
  clip-path: polygon(0% 0%, 100% 0%, 50% 50%);
}

@keyframes float-envelope {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  33% {
    transform: translateY(-15px) rotate(-5deg);
  }
  66% {
    transform: translateY(10px) rotate(5deg);
  }
  100% {
    transform: translateY(0) rotate(0deg);
  }
}

/* Jobkarten-Element */
.floating-jobcard {
  width: 100px;
  height: 60px;
  background-color: var(--primary-dark-color);
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  animation: float-jobcard 20s ease-in-out infinite;
}

.floating-jobcard::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 10px;
  width: 60px;
  height: 5px;
  background-color: #fff;
  border-radius: 2px;
}

.floating-jobcard::after {
  content: '';
  position: absolute;
  top: 25px;
  left: 10px;
  width: 80px;
  height: 20px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

@keyframes float-jobcard {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  40% {
    transform: translateY(-25px) rotate(3deg);
  }
  80% {
    transform: translateY(15px) rotate(-3deg);
  }
  100% {
    transform: translateY(0) rotate(0deg);
  }
}

/* Suchsymbol-Element */
.floating-search {
  width: 50px;
  height: 50px;
  border: 5px solid var(--accent-light-color);
  border-radius: 50%;
  animation: float-search 17s ease-in-out infinite;
}

.floating-search::after {
  content: '';
  position: absolute;
  bottom: -15px;
  right: -5px;
  width: 20px;
  height: 5px;
  background-color: var(--accent-light-color);
  transform: rotate(45deg);
  border-radius: 5px;
}

@keyframes float-search {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  30% {
    transform: translateY(-20px) rotate(-10deg);
  }
  70% {
    transform: translateY(10px) rotate(10deg);
  }
  100% {
    transform: translateY(0) rotate(0deg);
  }
}

/* Positionierung der Elemente */
.floating-resume:nth-child(1) {
  top: 10%;
  left: 5%;
  animation-delay: 0s;
}

.floating-envelope:nth-child(2) {
  top: 20%;
  right: 10%;
  animation-delay: 2s;
}

.floating-jobcard:nth-child(3) {
  bottom: 15%;
  left: 15%;
  animation-delay: 1s;
}

.floating-search:nth-child(4) {
  bottom: 25%;
  right: 15%;
  animation-delay: 3s;
}

.floating-resume:nth-child(5) {
  top: 40%;
  left: 20%;
  transform: scale(0.7);
  animation-delay: 4s;
}

.floating-jobcard:nth-child(6) {
  top: 60%;
  right: 5%;
  transform: scale(0.8);
  animation-delay: 2.5s;
}

.floating-envelope:nth-child(7) {
  bottom: 40%;
  left: 10%;
  transform: scale(0.6);
  animation-delay: 1.5s;
}

.floating-search:nth-child(8) {
  top: 70%;
  right: 25%;
  transform: scale(0.5);
  animation-delay: 3.5s;
}
