#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--mid);
    top: 0;
    right: 0;
    height: 100%;
    z-index: -1;
  }
  .mbsz-headline-holder {
    margin: 0 auto 2.5em;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5em;
    max-width: calc(100% - 10vmax);
    align-items: center;
    justify-content: space-between;
  }
  .mbsz-headline-holder h2 {
    font-weight: 600;
    flex-grow: 1;
    margin: 0;
  }
  .mbsz-header-controls {
    display: flex;
    align-items: center;
    gap: 1.5em;
  }
  .mbsz-slider-container {
    position: relative;
  }
  .mbsz-slider-track {
    display: flex;
    transition: transform 0.5s ease;
    align-items: stretch;
    padding-left: 5vmax;
  }
  .mbsz-slider-item {
    padding: 0 1em;
    flex: 0 0 25%;
    display: flex;
  }

  .mbsz-card {
    width: 100%;
    border-radius: var(--wp--custom--border-radius);
    box-shadow: var(--wp--custom--box-shadow);
    background: var(--wp--preset--color--light);
    text-align: center;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  .mbsz-card-img {
    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/10;
    object-fit: cover;
  }
  .mbsz-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
  }
  .mbsz-card-title {
    font-size: 1.1em;
    line-height: 1.3;
    min-height: 2.6em;
    margin-bottom: 1em;
    font-weight: bold;
  }
  .mbsz-card .mbsz-btn {
    margin-top: auto;
    background-color: var(--wp--preset--color--dark);
    color: var(--wp--preset--color--light) !important;
    border: 1px solid var(--wp--preset--color--dark);
    padding: 0.5rem 1.25rem;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 50px;
    text-decoration: none;
    transition: var(--wp--custom--main-trans);
    align-self: center;
  }
  .mbsz-card .mbsz-btn:hover {
    background-color: var(--wp--preset--color--accent);
    border-color: var(--wp--preset--color--accent);
  }
  .mbsz-btn-beratung {
    background-color: var(--wp--preset--color--accent);
    border: 1px solid var(--wp--preset--color--accent);
    color: var(--wp--preset--color--light) !important;
    border-radius: 50px;
    text-decoration: none;
    transition: var(--wp--custom--main-trans);
    padding: 0 2.5rem;
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .mbsz-btn-beratung:hover {
    background-color: var(--wp--preset--color--dark);
    border-color: var(--wp--preset--color--dark);
  }
  .mbsz-arrow-nav {
    display: flex;
    gap: 1rem;
  }
  .mbsz-arrow-nav button {
    background: var(--wp--preset--color--dark);
    color: white;
    border-radius: 50%;
    width: 55px;
    height: 55px;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--wp--custom--main-trans);
  }
  .mbsz-arrow-nav button:hover {
    background: var(--wp--preset--color--accent);
  }
  .mbsz-arrow-nav svg {
    width: 1em;
    height: 1em;
  }

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

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