:root {

  /* Primary Colors */
  --primary: #2C70A3;
  --primary-light: #6B8CA4;
  /* minimal harmonischer Graustich */
  --primary-dark: #1F4E6E;
  /* minimal heller für bessere Lesbarkeit auf dunkel */
  --primary-darker: #153951;
  /* bleibt kräftig für Footer / Header */

  --accent: #b30000;
  --accent-dark: #7a0000;
  --accent-light: #ffd6d6;
  --text-light: #ffffff;
  --text: #1C1C1C;
  --bg-light: #f8f8f8;
  --primary: var(--accent);
  --primary-dark: var(--accent-dark);
}

/* ========================= */
/*      SWIPER CONTAINER     */
/* ========================= */

.services-section {
  width: 100%;
  height: auto;
  margin: 10px 0;
  
}

.services-swiper {
  position: relative;
  width: 100%;
  padding: 0 20px 20px;
  box-sizing: border-box;
}

.swiper {
  width: 100%;
  height: 100%;
  
}

/* ========================= */
/*        SWIPER SLIDES      */
/* ========================= */

.swiper-wrapper {
  display: flex;
  align-items: stretch;
  background-color: transparent
}

.swiper-slide {
    font-size: 18px;
    display: flex !important;
    flex-direction: column;   /* 🔹 wichtig: Stapelung oben -> unten */
    justify-content: flex-start; /* Kinder von oben anfangen */
    align-items: stretch;     /* Content füllt horizontal */
    height: unset !important;  
    background-color: transparent;
    position: relative;     
    box-sizing: border-box;
    border: 1px solid var(--accent-dark);
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.12);
    border-radius: 16px;
    background: #ffffff;
    padding: 0;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* 🔹 Der 40px obere Hintergrundstreifen */
.slide-top-background {
    flex: 0 0 160px;  /* 🔹 Höhe fixieren, kein Stretch */
    width: 100%;
    background-size: cover;
    background-position: center;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

/* 🔹 Der restliche Content */
.service-card {
    flex: 1 1 auto; /* Content füllt den restlichen Platz */
}



/* ========================= */
/*       SERVICE CARDS       */
/* ========================= */

.service-card {

  /* width: 100%; */
  min-height: 200px;

  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;

  padding-left: 60px;
  padding-right: 60px;

}

/* Card Image */
.service-card .card-image img {
  /*width: 100%; */
  /* height: 180px;*/
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--accent-light);
}

/* Card Content */
.service-card .card-content {
  flex: 1;
  padding: 0 0 20px;
  display: flex;
  flex-direction: column;
}

.service-card h4 {
  margin-bottom: 8px;
  color: var(--primary-darker);
  font-size: 1.4rem;
}

.service-card .entry-content {
  color: var(--text);
  /*font-size: 1.10rem;*/
  /*line-height: 1.4;*/
}



/* ========================= */
/*         PAGINATION        */
/* ========================= */

.swiper-pagination {
  position: relative !important;
  bottom: 0;
  margin-top: 16px;
  text-align: center;
}

/* Dots Pagination */
.swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: var(--accent-light);
  opacity: 0.7;
  margin: 0 5px !important;
}

.swiper-pagination-bullet-active {
  background: var(--accent-dark);
  opacity: 1;
}


/* =========================
   Button (CTA)
========================= */
.read-more-btn {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  background: #0073aa;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.read-more-btnhover {
  background: #005f8d;
  /* transform: translateY(-2px); */
}


/* ========================= */
/*      RESPONSIVE DESIGN    */
/* ========================= */

@media (max-width: 768px) {

  .swiper {
    width: 100%;
    height: 100%;
  }
  .swiper-slide {
    display: flex !important;
    justify-content: center;
    align-items: stretch;
    height: unset !important;
    padding: 0;
  }

  .services-swiper {
    padding: 0 20px 20px;
    /* Platz für Pagination */
  }

  .swiper-button-prev,
  .swiper-button-next {
    display: none !important;
  }

  .service-card {
    max-width: 90%;
    padding: 20px;
  }



}

@media (max-width: 480px) {

  .swiper {
    width: 90%;
    height: 100%;
  }

  .swiper-slide {
    display: flex !important;
    justify-content: center;
    align-items: stretch;
    height: unset !important;
    padding: 0;
  }

  .services-swiper {
    padding: 0 16px 10px;
  }

  .swiper-button-prev,
  .swiper-button-next {
    display: none !important;
    /* Mobil: wischen statt klicken */
  }

  .swiper-pagination {
    margin-top: 10px;
  }
  
  .service-card {
    max-width: 100%;
    padding: 20px;
  }


}
