/* Sektionen: Leistungen im Überblick (#leistungen) + Partner-Karussell "Gemeinsam sind wir Stark"
   Werte 1:1 aus Original (ref-css 12.css/285.css/universal.css) */

/* Oxygen setzt global border-box — hier sektionsgescoped nachgebildet */
.partner-section,
.partner-section *,
.partner-section *::before,
.partner-section *::after,
.leistungen-section,
.leistungen-section *,
.leistungen-section *::before,
.leistungen-section *::after {
  box-sizing: border-box;
}

/* ============================================================
   Leistungen im Überblick (Original: #leistungen.first-section)
   ============================================================ */

.leistungen-section {
  width: 100%;
  padding-top: 143px;
  padding-bottom: 20px;
  display: flex;
  flex-direction: row;
  align-items: center;
}

@media (max-width: 1920px) {
  .leistungen-section {
    padding-top: 0;
    text-align: left;
  }
}

/* Spalten-Wrapper (= #div_block-44-12) */
.leistungen-columns {
  text-align: left;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  width: 100%;
  z-index: 3;
  position: relative;
}

@media (max-width: 1399px) {
  .leistungen-columns {
    flex-direction: column;
  }
}

/* Text-Spalte (= #div_block-8-12) */
.leistungen-intro {
  display: flex;
  flex-direction: column;
  width: 30%;
  text-align: left;
  align-items: center;
  margin-top: 0;
  padding-top: 135px;
  padding-bottom: 135px;
  padding-left: 50px;
}

@media (max-width: 1920px) {
  .leistungen-intro {
    text-align: center;
    align-items: flex-start;
  }
}

@media (max-width: 1399px) {
  .leistungen-intro {
    width: 100%;
    padding-bottom: 59px;
  }
}

@media (max-width: 767px) {
  .leistungen-intro {
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 71px;
  }
}

/* Innerer Block (= #div_block-1133-12) */
.leistungen-intro-inner {
  display: flex;
  flex-direction: column;
  max-width: 450px;
  align-items: flex-start;
  text-align: left;
}

@media (max-width: 767px) {
  .leistungen-intro-inner {
    padding-right: 0;
  }
}

.leistungen-headline {
  margin-top: 0;
  margin-bottom: 6px;
  font-size: 54px;
  color: #111111;
}

@media (max-width: 1920px) {
  .leistungen-headline {
    font-size: 50px;
  }
}

@media (max-width: 1399px) {
  .leistungen-headline {
    font-size: 50px;
  }
}

@media (max-width: 767px) {
  .leistungen-headline {
    font-size: 37px;
  }
}

@media (max-width: 479px) {
  .leistungen-headline {
    font-size: 30px;
  }
}

.leistungen-headline-green {
  color: #32b4a2;
}

.leistungen-text {
  font-size: 22px;
}

@media (max-width: 767px) {
  .leistungen-text {
    font-size: 20px;
  }
}

.leistungen-btn {
  margin-top: 24px;
  text-transform: none;
  font-size: 16px;
  position: relative;
}

/* Pfeil im Button (Original: .btn-el-right:before, global in universal.css) */
.leistungen-btn:before {
  content: "";
  background: var(--btn-arrow-image);
  background-size: contain;
  width: 20px;
  height: 20px;
  right: 20px;
  top: 50%;
  transform: translateY(-50%) rotate(180deg);
  position: absolute;
  transition: var(--global-transition);
}

.leistungen-btn:hover:before {
  right: 15px;
}

/* Slider-Spalte (= #div_block-9-12) */
.leistungen-slider-col {
  display: flex;
  flex-direction: column;
  width: 70%;
}

@media (max-width: 1920px) {
  .leistungen-slider-col {
    padding-left: 50px;
    padding-right: 50px;
  }
}

@media (max-width: 1399px) {
  .leistungen-slider-col {
    width: 100%;
  }
}

@media (max-width: 767px) {
  .leistungen-slider-col {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* Karussell (= #-carousel-builder-18-12.leistungen-slider) */
.leistungen-carousel {
  display: flex;
  flex-direction: column;
  position: relative;
  width: 100%;
  padding-bottom: 125px;
  overflow: hidden;
  border-radius: 15px 0 0 15px;
}

/* Track (= #_dynamic_list-20-12) */
.leistungen-track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: flex-start;
  height: 600px;
}

.leistungen-track:not(.flickity-enabled) {
  overflow-x: hidden;
}

.leistungen-track.flickity-enabled {
  display: block;
}

/* Flickity-Basis (gescoped); Original: viewport overflow:unset! */
.leistungen-carousel .flickity-enabled {
  position: relative;
}

.leistungen-carousel .flickity-enabled:focus {
  outline: none;
}

.leistungen-carousel .flickity-viewport {
  overflow: unset;
  position: relative;
  height: 100%;
  transition-property: height;
}

.leistungen-carousel .flickity-slider {
  position: absolute;
  width: 100%;
  height: 100%;
}

.leistungen-carousel .flickity-enabled.is-draggable {
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.leistungen-carousel .flickity-enabled.is-draggable .flickity-viewport {
  cursor: move;
  cursor: grab;
}

.leistungen-carousel .flickity-enabled.is-draggable .flickity-viewport.is-pointer-down {
  cursor: grabbing;
}

.leistungen-carousel .flickity-page-dots {
  display: none !important;
}

/* Kacheln (= .leistung-tile-outer-wrap) */
.leistungen-tile {
  display: flex;
  flex-direction: column;
  position: relative;
  width: 380px;
  height: 600px;
  margin-right: 50px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 15px;
  cursor: pointer;
  transition: transform 0.4s ease, background-color 0.4s ease, color 0.4s ease, opacity 0.4s ease;
}

@media only screen and (max-width: 480px) {
  .leistungen-tile {
    width: 100% !important;
  }
}

/* Bild (= .leistung-image) */
.leistungen-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--border-radius-global);
  transition: 0.5s;
}

.leistungen-tile.active .leistungen-image {
  object-position: 100%;
}

/* Overlay mit Gradient (= .leistung-tile-wrapper) */
.leistungen-tile-overlay {
  display: flex;
  flex-direction: column;
  position: absolute;
  width: 100%;
  height: 100%;
  text-align: left;
  background: linear-gradient(180deg, rgba(35, 37, 39, 0) 20%, #232527 100%);
  transition: 0.5s;
}

.leistungen-tile-overlay:hover,
.leistungen-tile.active .leistungen-tile-overlay {
  opacity: 1;
  background: linear-gradient(180deg, rgba(35, 37, 39, 0) 20%, #232527 100%);
  border-radius: 15px;
}

/* Linkbox unten links (= .link-wrapper-outer) */
.leistungen-linkbox {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: absolute;
  left: 30px;
  bottom: 20px;
  padding-right: 20px;
}

.leistungen-tile.active .leistungen-linkbox {
  bottom: 50px !important;
}

/* Kachel-Titel (= .leistung-tile-headline) */
.leistungen-tile-title {
  color: #fdfeff;
  font-size: 26px;
  max-width: 250px;
  line-height: 1.2;
  margin-bottom: 20px;
  transition: 0.3s;
  opacity: 1;
}

.leistungen-tile.active .leistungen-tile-title,
.leistungen-tile-overlay:hover .leistungen-tile-title {
  margin-bottom: 0 !important;
}

/* Unterseiten-Links (= .slider-subpage-link-wrapper) */
.leistungen-sublinks {
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: 0.5s;
  opacity: 0;
  height: 0;
}

.leistungen-tile.active .leistungen-sublinks {
  opacity: 1;
  height: 100px;
}

.leistungen-tile.active:nth-child(2) .leistungen-sublinks {
  height: 140px;
}

.leistungen-tile.active:nth-child(3) .leistungen-sublinks {
  height: 216px;
}

.leistungen-tile.active:nth-child(4) .leistungen-sublinks {
  height: 65px;
}

a.leistungen-sublink {
  color: var(--light-primary);
  position: relative;
  padding-left: 30px;
}

.leistungen-sublink:hover {
  color: var(--secondary-1000);
  text-decoration: underline;
}

.leistungen-sublink:before {
  content: "";
  height: 24px;
  width: 24px;
  background: url("/wp-content/uploads/2024/02/Arrow.png");
  background-size: contain;
  left: 0;
  top: 3px;
  position: absolute;
}

/* Plus-Icon mittig (= .add-image) */
.leistungen-add {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
  opacity: 0;
  transition: 0.5s;
}

.leistungen-tile-overlay:hover .leistungen-add {
  opacity: 1;
}

.leistungen-tile.active .leistungen-add {
  opacity: 0;
}

/* Schließen-Icon (= .close-image) */
.leistungen-tile-close {
  position: absolute;
  top: 20px;
  right: 20px;
  opacity: 0;
  transition: 0.5s;
  cursor: pointer;
}

.leistungen-tile.active .leistungen-tile-close {
  opacity: 1;
}

/* Pfeile (= .oxy-carousel-builder_icon, bei diesem Slider sichtbar) */
.leistungen-arrow {
  display: inline-flex;
  position: absolute;
  top: auto;
  bottom: 0;
  left: auto;
  width: 40px;
  height: 40px;
  border: 1px solid var(--light-primary);
  border-radius: 50%;
  background-color: transparent;
  background-image: url("/wp-content/uploads/2024/02/chevron-left.png");
  background-position: center;
  background-size: 50%;
  background-repeat: no-repeat;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition-duration: 400ms;
  transition-property: color, background-color;
}

.leistungen-prev {
  right: 100px !important;
  transform: translateY(-50%);
}

.leistungen-next {
  right: 50px;
  transform: translateY(-50%) rotate(180deg);
}

.leistungen-prev:before {
  content: "Weitere Leistungen";
  position: absolute;
  top: 6px;
  font-size: 14px;
  font-style: italic;
  left: -150px;
  pointer-events: none;
  font-family: "CocogooseProNarrow Light", sans-serif !important;
}

@media only screen and (max-width: 768px) {
  .leistungen-prev:before {
    display: none;
  }
  .leistungen-carousel .leistungen-arrow {
    right: 20px !important;
    bottom: 20px !important;
  }
  .leistungen-carousel .leistungen-arrow.leistungen-prev {
    right: 85px !important;
  }
}

@media only screen and (min-width: 2400px) {
  .leistungen-carousel .leistungen-arrow {
    display: none !important;
  }
}

/* ============================================================
   Partner-Karussell (Original: #section-1797-12)
   ============================================================ */

/* --- Sektion / Intro --- */
.partner-section > .section-inner {
  padding-right: 30px;
  padding-left: 30px;
}

.partner-intro {
  width: 100%;
  text-align: left;
  align-items: center;
  display: flex;
  flex-direction: column;
  z-index: 9;
  position: relative;
  /* Oxygen-Spalten-Default: 20px Padding, unten ab 1399px auf 0 */
  padding: 20px;
}

@media (max-width: 1399px) {
  .partner-intro {
    padding-bottom: 0;
  }
}

.partner-headline {
  margin-top: 0;
  margin-bottom: 17px;
  text-align: center;
  color: #fdfeff;
}

.partner-headline-dark {
  color: #223a4f;
}

.partner-text {
  color: #fdfeff;
  max-width: 815px;
  text-align: center;
  font-size: 22px;
}

@media (max-width: 1399px) {
  .partner-text {
    margin-bottom: 42px;
  }
}

@media (max-width: 767px) {
  .partner-headline {
    font-size: 30px;
  }
  .partner-text {
    font-size: 20px;
  }
  .partner-section > .section-inner {
    padding-right: 20px;
    padding-bottom: 88px;
    padding-left: 20px;
  }
}

/* --- Karussell-Container (= .oxy-carousel-builder) --- */
.partner-carousel {
  display: flex;
  flex-direction: column;
  position: relative;
  width: 100%;
  z-index: 9;
  padding-left: 20px;
  padding-right: 20px;
}

/* Pfeile: Original nutzt .no-arrows → ausgeblendet */
.partner-carousel-arrow {
  display: none !important;
}

/* Desktop-Variante sichtbar, Ticker versteckt (Wechsel bei 767px) */
.partner-carousel-ticker {
  display: none;
}

@media (max-width: 767px) {
  .partner-carousel-desktop {
    display: none;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
    width: 100%;
  }
  .partner-carousel-ticker {
    display: flex;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
    width: 100%;
  }
}

@media (max-width: 479px) {
  .partner-carousel {
    padding-left: 0;
    padding-right: 0;
  }
}

/* --- Track (= .oxy-dynamic-list) --- */
.partner-track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: flex-start;
}

.partner-carousel-desktop .partner-track {
  padding-left: 10px;
  padding-right: 10px;
}

.partner-track:not(.flickity-enabled) {
  overflow-x: hidden;
}

.partner-track.flickity-enabled {
  display: block;
}

/* --- Flickity-Basis (gescoped auf die Sektion) --- */
.partner-carousel .flickity-enabled {
  position: relative;
}

.partner-carousel .flickity-enabled:focus {
  outline: none;
}

.partner-carousel .flickity-viewport {
  overflow: hidden;
  position: relative;
  height: 100%;
  transition-property: height;
}

.partner-carousel .flickity-slider {
  position: absolute;
  width: 100%;
  height: 100%;
}

.partner-carousel .flickity-enabled.is-draggable {
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.partner-carousel .flickity-enabled.is-draggable .flickity-viewport {
  cursor: move;
  cursor: grab;
}

.partner-carousel .flickity-enabled.is-draggable .flickity-viewport.is-pointer-down {
  cursor: grabbing;
}

/* --- Dots --- */
.partner-carousel .flickity-page-dots {
  position: relative;
  bottom: -25px;
  width: 100%;
  padding: 0;
  margin: 0;
  list-style: none;
  text-align: center;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.partner-carousel .flickity-page-dots .dot {
  display: inline-block;
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  margin: 0 8px;
  border-radius: 50%;
  border: 1px solid var(--primary-1000);
  opacity: 1;
  background: transparent;
  cursor: pointer;
}

.partner-carousel .flickity-page-dots .dot.is-selected {
  background: var(--primary-1000);
}

/* --- Zellen --- */
.partner-cell {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow: hidden;
  text-align: left;
  align-items: center;
  border: 1px solid #fdfeff;
  border-radius: 15px;
  transition: transform 0.4s ease, background-color 0.4s ease, color 0.4s ease, opacity 0.4s ease;
}

.partner-carousel-desktop .partner-cell {
  width: 14.7%;
  margin-right: 40px;
  background-color: #ffffff;
}

.partner-carousel-ticker .partner-cell {
  width: 12.41%;
  margin-right: 40px;
}

@media (max-width: 1399px) {
  .partner-carousel .partner-track {
    height: 100px;
  }
  .partner-carousel-desktop .partner-cell,
  .partner-carousel-ticker .partner-cell {
    align-items: center;
    text-align: center;
    justify-content: center;
    height: 100px;
  }
  .partner-carousel-desktop .partner-cell {
    width: 20%;
  }
  .partner-carousel-ticker .partner-cell {
    width: 20%;
  }
}

@media (max-width: 767px) {
  .partner-carousel-desktop .partner-cell {
    width: 33.33%;
    margin-right: 20px;
  }
  .partner-carousel-ticker .partner-cell {
    width: 47.5%;
    margin-right: 20px;
  }
}

/* --- Logos (= .partner-slider-image) --- */
.partner-logo {
  margin-top: -15px;
  margin-bottom: -15px;
  width: 183px;
  height: 183px;
}

@media (max-width: 1920px) {
  .partner-logo {
    width: 130px;
    height: 130px;
  }
}

@media (max-width: 1399px) {
  .partner-logo {
    width: 100px;
    height: 100px;
  }
}

@media (max-width: 767px) {
  .partner-logo {
    width: 80px;
    height: 60px;
  }
}

@media (max-width: 479px) {
  .partner-logo {
    height: auto;
  }
}

/* A11y: Pfeile sind jetzt echte <button> — UA-Styles neutralisieren,
   Optik bleibt identisch zur bisherigen <div>-Variante */
button.leistungen-arrow {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  text-align: inherit;
}

/* Parität zum Original (8081): Hinweistext "Weitere Leistungen" ist dort weiß
   (rgb(255,255,255)) — im Nachbau erbte er bisher die dunkle Body-Farbe. */
.leistungen-prev:before {
  color: #fff;
}
