#karriereslider {
  position: relative;
  left: 50%;
  right: 50%;
  width: 100dvw;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: 4rem 0 5rem;
  overflow: hidden;

  &::after {
    content: "";
    position: absolute;
    width: 55vw;
    border-top-left-radius: var(--wp--custom--border-radius);
    border-bottom-left-radius: var(--wp--custom--border-radius);
    background: var(--wp--preset--color--glacier);
    top: 0;
    right: 0;
    height: 100%;
    z-index: -1;
  }
  .nbw-headline-holder {
    margin: 0 auto 2.5em;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5em;
    max-width: 1440px;
    padding: 0;
    align-items: center;
    justify-content: space-between;
  }
  .nbw-headline-holder h2 {
    font-weight: 600;
    flex-grow: 1;
    margin: 0;
  }
  .nbw-header-controls {
    display: flex;
    align-items: center;
    gap: 1.5em;
  }
  .nbw-slider-container {
    position: relative;
  }
  .nbw-slider-track {
    display: flex;
    transition: transform 0.5s ease;
    align-items: stretch;
    padding-left: 5vmax;
  }
  .nbw-slider-item {
    padding: 0 1em;
    flex: 0 0 25%;
    display: flex;
  }

  .nbw-card {
    width: 100%;
    border-radius: var(--wp--custom--border-radius);
    box-shadow: var(--wp--custom--box-shadow);
    background: var(--wp--preset--color--light);
    border: 0;
    transition: var(--wp--custom--main-trans);
    text-align: left;
    overflow: hidden;
    display: flex;
    flex-direction: column;

    &:hover{
      box-shadow: none;
    }
  }
  .nbw-card-img {
    border-radius: 0;
    border-top-left-radius:var(--wp--custom--border-radius);
    border-top-right-radius: var(--wp--custom--border-radius);
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
  }
  .nbw-card-body {
    padding: var(--wp--preset--spacing--20);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
  }
  .nbw-card-title {
    line-height: 1.2;
    min-height: 2.6em;
    margin-bottom: 0.5em;
    font-size: var(--wp--preset--font-size--mediumlarge) !important;
    font-weight: 500 !important;
  }
  .nbw-card .nbw-btn {
    margin-top: auto;
    background-color: var(--wp--preset--color--petrol) !important;
    border-radius: var(--wp--custom--border-radius);
    border-color: var(--wp--preset--color--petrol) !important;
    border-width: var(--wp--custom--border-width);
    border-style: var(--wp--custom--border-style);
    color: var(--wp--preset--color--light);
    text-align: center;
    font-family: var(--wp--preset--font-family--heading);
    font-weight: 400;
    padding-top: var(--wp--preset--spacing--10);
    padding-right: var(--wp--preset--spacing--20);
    padding-bottom: var(--wp--preset--spacing--10);
    padding-left: var(--wp--preset--spacing--20);
    transition: var(--wp--custom--main-trans);
    text-decoration: none;

    &::after{
        content: '→';
        position: relative;
        margin-left: .25rem;
        display: inline-block;
        transition: var(--wp--custom--main-trans);
    }
  }
  .nbw-card .nbw-btn:hover {
    border-color: var(--wp--preset--color--petrol);

    &::after{
          transform: translateX(1rem);
      }
  }
  .nbw-btn-beratung {
    background-color: var(--wp--preset--color--petrol);
    border: 1px solid var(--wp--preset--color--petrol);
    color: var(--wp--preset--color--light) !important;
    font-family: var(--wp--preset--font-family--heading);
    border-radius: var(--wp--custom--border-radius);
    text-decoration: none;
    transition: var(--wp--custom--main-trans);
    padding: 0 2.5rem;
    font-weight: 400;
    font-size: 0.9rem;
    white-space: nowrap;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .nbw-btn-beratung:hover {
    background-color: var(--wp--preset--color--dark);
    border-color: var(--wp--preset--color--dark);
  }
  .nbw-arrow-nav {
    display: flex;
    gap: 1rem;
  }
  .nbw-arrow-nav button {
    background: transparent;
    color: var(--wp--preset--color--dark);
    width: 4rem;
    height: auto;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--wp--custom--main-trans);
  }
  .nbw-arrow-nav button:hover {
    color: var(--wp--preset--color--petrol);
  }
  .nbw-arrow-nav svg {
    width: 3rem;
    height: auto;
  }

	@media (min-width: 600px) and (max-width: 1200px) {
		.nbw-headline-holder {
		padding-left: 50px;
		padding-right: 50px;
		}
	}
  @media (max-width: 1200px) {
    .nbw-slider-item {
      flex: 0 0 33.33%;
    }
  }
  @media (max-width: 992px) {
    .nbw-slider-item {
      flex: 0 0 50%;
    }
  }
  @media (max-width: 768px) {
    .nbw-slider-item {
      flex: 0 0 calc(100% / 1.15);
      padding: 0 0.5rem;
    }
    .nbw-headline-holder {
      justify-content: center;
      max-width: unset;
    }
    .nbw-header-controls {
     
      width: 100%;
      gap: 1.5rem;
      margin-top: 1rem;
    }
    .nbw-btn-beratung {
      width: 100%;
      max-width: 300px;
    }
    .nbw-slider-track {
      padding-left: 0.5rem;
    }
  }
	@media (max-width: 599px) {
	.nbw-headline-holder {
		padding-left: 20px;
		padding-right: 20px;
		}
	}

   @media (max-width: 400px) {
    .nbw-slider-item {
      flex: 0 0 calc(100% / 1.15);
      padding: 0 0.5rem;
    }
    .nbw-headline-holder {
      justify-content: center;
    }
    .nbw-header-controls {
      flex-direction: column-reverse;
      width: 100%;
      gap: 1.5rem;
      margin-top: 1rem;
    }
    .nbw-btn-beratung {
      width: 100%;
      max-width: 300px;
    }
    .nbw-slider-track {
      padding-left: 0.5rem;
    }
			.nbw-headline-holder {
		padding-left: 20px;
		padding-right: 20px;
		}
  }
}
