.leistungen-carousel-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
    color: #222;
}

.leistungen-swiper {
    width: 100%;
    padding: 30px 0 50px;
}

.leistungen-swiper .swiper-slide {
    color: var(--e-global-color-primary) !important;
    background-color: var(--e-global-color-secondary) !important;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(206, 206, 206, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
    height: auto;
}

.leistung-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.leistung-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.leistung-content {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.leistung-title {
    margin: 0 0 10px;
    font-size: 18px;
}

.leistung-excerpt {
    margin-bottom: 15px;
    font-size: 14px;
    color: #555;
    flex-grow: 1;
}

.leistung-link {
    display: inline-block;
    padding: 8px 15px;
    background-color: #333;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.3s;
    align-self: flex-start;
}

.leistung-link:hover {
    background-color: #555;
}

/* Navigation */
.leistungen-swiper .swiper-button-next,
.leistungen-swiper .swiper-button-prev {
    color: var(--e-global-color-primary) !important;
    background-color: var(--e-global-color-secondary) !important;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.leistungen-swiper .swiper-button-next::after,
.leistungen-swiper .swiper-button-prev::after {
    font-size: 20px;
    font-weight: bold;
}

/* Pagination */
.leistungen-swiper .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #ccc;
    opacity: 1;
}

.leistungen-swiper .swiper-pagination-bullet-active {
    background: #333;
}


/* Bildbereich: garantiert quadratisch und skaliert */
.leistungen-swiper .slide-image {
  width: 100%;
  padding-top: 100%; /* Höher indentisch der Breite */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  flex-shrink: 0;
}

/* Falls das Fallback-Bild mal kleiner ist */
.leistungen-swiper .slide-card .slide-image {
  min-height: 200px;
}





/* Deutschen Kommentar: Bild oben ohne Abstand bündig in die abgerundete Karte einpassen */
.leistungen-swiper .slide-card {
  /* Entferne internes Padding, damit das Bild bis zum Rand reicht */
  padding: 0;
}

.leistungen-swiper .slide-card .slide-image {
  /* Bild füllt die gesamte Breite */
  width: 100%;
  padding-top: 100%;        /* Quadratverhältnis beibehalten */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;


  /* Obere Ecken abrunden, damit Bild und Karte zusammenpassen */
  border-top-left-radius: 1em;
  border-top-right-radius: 1em;

  /* Kein zusätzlicher Abstand */
  margin: 0;
}

.leistungen-swiper .slide-card .slide-title {
  /* Obere Kante minimal runterziehen, damit Bild nicht überlappt */
  margin-top: 1em;
  color: var(--e-global-color-primary) !important;

  /* Untere Ecken abrunden */
  border-bottom-left-radius: 1em;
  border-bottom-right-radius: 1em;
}



/* Container für jede Kategorie */
.leistungen-cat-section {
  margin-bottom: 3em;
}

/* Zentrierte H2 */
.leistungen-cat-title {
  text-align: center;
  color: #ccee22;
  font-size: 24pt;
  margin-bottom: 1em;
}

/* Grid-Layout */
.leistungen-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5em;
  justify-items: center;
}

/* Card wie dein Carousel */
.leistung-card {
  width: 180px;
}
.leistung-card .slide-card {
  display: block;
  background: #222;
  border-radius: 1em;
  overflow: hidden;
  text-decoration: none;
}
.leistung-card .slide-image {
  width: 100%;
  padding-top: 100%;
  background-size: cover;
  background-position: center;
}
.leistung-card .slide-title {
  background: #111;
  color: #ccee22;
  padding: 0.5em;
  text-align: center;
  font-size: 12pt;
}
