.benefits-desktop {
	display: block;
}

.benefits-mobile {
	display: none;
}

.jobbenefits-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0rem;
  padding: 2rem;
  width: 1000px;
  max-width: 1000px;
  justify-content: center;
  margin: auto;
}

.row {
  display: flex;
  justify-content: center;
  gap: 0rem;
}
.row .jobbenefit {
  margin-left: -51px;
}
.row .jobbenefit:first-child {
  margin-left: 0;
}

.row-oben .jobbenefit {
  transform: translateX(50px);
}

.row-unten .jobbenefit {
  transform: translateX(-50px);
}

/* Styles wie beim Original */
.jobbenefit {
  position: relative;
  width: 221px;
  height: 89px;
  background-color: #193076;
  clip-path: polygon(20% 0%, 100% 0%, 80% 100%, 0% 100%);
  transition: transform 0.3s ease;
  cursor: pointer;
  overflow: visible;
  margin: 0;
  flex: 0 0 25%;
  z-index: 1;
}

/* Pseudo-Element mit leicht größerem Polygon für Outline */
.jobbenefit::before {
  content: "";
  position: absolute;
  top: -3px;
  left: -3px;
  width: calc(100% + 6px);
  height: calc(100% + 6px);
  background-color: white; /* Outline-Farbe */
  clip-path: polygon(18% 0%, 100% 0%, 82% 100%, 0% 100%);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.jobbenefit:hover {
  transform: scale(1.5);
  z-index: 10000;
}

.jobbenefit:hover::before {
  opacity: 1;
}


.raute-icon {
  position: absolute;
  top: 52%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.icon {
  width: 221px;
  height: 89px;
  fill: white;
}

.raute-text {
  position: absolute;
  width: 100%;
  top: 100%;
  left: 0;
  text-align: center;
  padding: 0.3rem;
  opacity: 0;
  color: black;
  font-size: 0.8rem;
  transition: opacity 0.3s ease;
  z-index: 999;
}


 /*
.jobbenefit:hover .raute-text {
  opacity: 1;
}

.row-oben .jobbenefit:hover {
  transform: translate(77px, -45.5px);
}

.row-unten .jobbenefit:hover {
  transform: translate(-77px, 45.5px);
}*/

.hover-benefit-display {
  text-align: center;
  font-size: 2rem;
  margin-top: 1rem;
  color: #193076;
  font-weight: bold;
  min-height: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Nur auf kleinen Screens anzeigen */
@media screen and (max-width: 1180px) {
  .benefits-mobile {
    display: block;
  }

  /* Desktop-Variante ausblenden */
  .benefits-desktop {
    display: none;
  }
	
  .jobbenefits-list {
    list-style: none;
    padding: 0;
    margin: 2rem auto;
    max-width: 600px;
  }

  .jobbenefits-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid #eee;
  }

  .jobbenefits-list li img {
    width: 160px;
    height: 160px;
    flex-shrink: 0;
  }

  .jobbenefits-list li span {
    font-size: 1rem;
    color: #193076;
    font-weight: 500;
  }
}

/* Ab 769px: Mobile-Variante ausblenden */
@media screen and (min-width: 1181px) {
  .benefits-mobile {
    display: none !important;
  }
  
  .benefits-desktop {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  justify-items: center;
  max-width: 1000px;
  margin: 2rem auto;
  padding: 0;
  list-style: none;
}

.benefits-desktop li {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.benefits-desktop li img {
  width: 221px;
  height: 89px;
  object-fit: contain;
}

.benefits-desktop li span {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #193076;
  font-weight: 500;
  text-align: center;
}
}