.hero-section {
  position: relative;
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: left;
  background-color: #003838;
}

.hero-bg {
  position: absolute;
  right: 0;
  width: 65%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero_content {
  position: relative;
  z-index: 1;
  color: #fff;
  text-align: left;
  padding: 0 15px;
  width: 100%;
  max-width: 1246px;
  margin: 0px auto 0;
}
/*
.hero_content h1 {
  display: inline-block;
  margin-bottom: 48px;
} */

.hero_content h1 p {
  margin-bottom: 0;
}
/*
.hero_content h1 {
  color: #fff;
  font-weight: 600;
  font-size: 56px;
  line-height: 64px;
  letter-spacing: -1%;
  background-color: #003838;
  padding: 80px 88px 80px 0;
  border-top-right-radius: 280px;
  border-bottom-right-radius: 280px;
  margin-left: 0;
  transition: margin-left 0.2s;
  display: table;
  white-space: nowrap;
  margin-bottom: 0;
}*/

.hero_content h1 {
  color: #fff;
  font-weight: 600;
  font-size: 56px;
  line-height: 64px;
  letter-spacing: -1%;
  background-color: #003838;
  padding: 80px 0 80px 0; /* Start ohne rechten Abstand */
  border-top-right-radius: 280px;
  border-bottom-right-radius: 280px;
  margin-left: 0;
  transition: margin-left 0.2s;
  display: table;
  white-space: nowrap;
  margin-bottom: 0;
  animation: growRight 1.2s ease-out forwards; 
}

.hero_content h1 strong {
  color: #FFFD82;
}

.hero_oval {
  color: #fff;
  background-color: #003838;
  padding: 0px 0px 80px 0;
  border-top-right-radius: 280px;
  border-bottom-right-radius: 280px;
  margin-left: 0;
  transition: margin-left 0.2s;
  display: table;
  /*min-width: 530px; */
  white-space: nowrap;
  animation: growRightOval 1.2s ease-out forwards; 
}


/* Keyframes für das „Wachsen“ */
@keyframes growRight {
  0% {
    padding-right: 0;
  }
  100% {
    padding-right: 88px; 
  }
}

@keyframes growRightOval {
  0% {
    padding-right: 0;
  }
  100% {
    padding-right: 128px; 
  }
}


.hero_infotext {
  font-size: 22px;
  line-height: 32px;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 40px;
  letter-spacing: 0.5%;
	
  opacity: 0;                          
  transform: translatex(-20px);         
  animation: fadeInLeft 0.8s ease-out 0.5s forwards;
}

@keyframes fadeInLeft {
  0% {
    opacity: 0;
    transform: translateX(-20px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero_infotext ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hero_infotext li {
  position: relative;
  padding-left: 44px;
  margin-bottom: 16px;
}

.hero_infotext li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  background-image: url('check.svg');
  background-size: contain;
  background-repeat: no-repeat;
}

/*
.hero_button {
  /* background-color: #ffeb00;
  padding: 16px 32px;
  border-radius: 8px;
  text-decoration: none;
  margin-bottom: 16px;
  display: inline-block;
  font-weight: 600;
  color: #002E2D;
  font-size: 22px;
  line-height: 30px;
  border: 1px solid #E5D300;
  background: linear-gradient(
    to right,
    #FFF9B2 0%,
    #FFEB00 100%
  );
  box-shadow: 0 4px 20px 4px rgba(255, 235, 0, 0.4);
  cursor: pointer;
  transition: transform 0.15s ease-in-out;
  /* background-size: 300% auto;
}

.hero_button:hover {
  /* background-position: 100% 0;
  background: linear-gradient(
    to right,
    #FFEB00 0%,
    #FFF9B2 100%
  );
} */
/*
.hero_button:hover {
  background: linear-gradient(86deg, #FFEB00 8.33%, #FFF9B2 78.8%);
  background-size: 200% 100%;
  background-position: 15% 50%;
  box-shadow: 0 2px 12px -2px rgba(211, 198, 6, 0.60);
} */

.hero_button {
  background-color: #FFFD82;
  padding: 16px 24px;
  border-radius: 8px;
  text-decoration: none;
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  color: #002E2D;
  font-size: 22px;
  line-height: 30px;
  border: 1px solid #D3C606;
  cursor: pointer;
  /*transition: transform 0.15s ease-in-out;
  background-size: 200% 100%;
  background-position: 15% 50%;*/
}

.hero_button::after{
  content: "";
  display: inline-block;
  width: 24px;
  height: 24px;
  background: url("/wp-content/themes/generatepress-child/img/ic-arrow-right.svg") no-repeat center;
  background-size: contain;
  margin-left: 10px;
}

.hero_button:hover::after{
  background: url("/wp-content/themes/generatepress-child/img/ic-arrow-right-hoved.svg") no-repeat center;
}

.hero_button:hover {
  color: #726900;
  background-color: #FFFD82;
  /*background-size: 200% 100%;
  background-position: 15% 50%;*/
  box-shadow: 0 2px 12px -2px rgba(211, 198, 6, 0.60);
}


.hero_button_infotext {
  font-size: 14px;
  line-height: 20px;
}

.cert_image {
  height: 158px;
  width: 166px;
  z-index: 1;
  display: block;
  position: absolute;
  right: 74px;
  object-fit: contain;
  bottom: 34px;
}

@media only screen and (max-width: 1240px) {
  .hero-section {
    padding: 0px 7px;
  }
}

@media only screen and (max-width: 800px) {
  .hero-section {
    display: block;
  }

  .hero-bg {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 248px;
  }

  .hero_content h1 {
    padding: 24px 24px 24px 0;
    font-size: 34px;
    line-height: 44px;
  }

  .hero_oval {
    padding-bottom: 68px;
    padding-right: 0;
  }

  .hero_infotext {
    font-size: 18px;
    line-height: 24px;
  }

  .hero_button {
    padding: 12px 16px;
    font-size: 16px;
    line-height: 24px;
    margin-bottom: 12px;
  }

  .hero_content {
    border-top-right-radius: 150px;
    background-color: #003838;
    margin-top: -20%;
  }

  .cert_image {
    display: none;
  }
}

@media only screen and (max-width: 600px) {
  .hero_content {
    border-top-right-radius: 100px;
    /* margin-top: -15%; */
  }
}
/*
@media only screen and (max-width: 800px) {
  .hero-section {
    height: unset;
    display: block;
    margin-bottom: 54px;
  }

  .hero-bg {
    width: 100%;
    position: relative;
  }


  .hero_infotext {
    font-size: 18px;
    line-height: 24px;
    font-weight: 600;
    margin-bottom: 24px;
    margin-left: 10px;
  }

  .hero_infotext li {
    padding-left: 36px;
    margin-bottom: 16px;
  }

  .hero_button {
    font-size: 18px;
    line-height: 24px;
  }

  .hero_button_infotext {
    color: #002E2D;
  }
}

@media only screen and (max-width: 400px) {
  .hero_content h1 .hero_oval {
    padding: 8px 20px;
  }

  .hero_content h1 .hero_oval:nth-child(2) {
    margin-left: 40px;
  }
}

@media only screen and (max-width: 365px) {

  .hero_content {
    margin-top: -59px;
    padding: 0px 16px;
  }

  .hero_content h1 .hero_oval {
    padding: 6px 18px;
  }

  .hero_content h1 .hero_oval:nth-child(2) {
    margin-left: 20px;
  }
} */
