:root {
    --c7-50: #e3f2fc;
    --c7-50-contrast: #000000;
    --c7-100: #b6dffc;
    --c7-100-contrast: #000000;
    --c7-200: #83c7f7;
    --c7-200-contrast: #000000;
    --c7-300: #4faff0;
    --c7-300-contrast: #000000;
    --c7-400: #259de8;
    --c7-400-contrast: #ffffff;
    --c7-500: #0092f9;
    --c7-500-contrast: #ffffff;
    --c7-600: #0688cf;
    --c7-600-contrast: #ffffff;
    --c7-700: #0280bf;
    --c7-700-contrast: #ffffff;
    --c7-800: #0077b3;
    --c7-800-contrast: #ffffff;
    --c7-900: #0070a3;
    --c7-900-contrast: #ffffff;
    --c7-A100: #71c0ff;
    --c7-A100-contrast: #000000;
    --c7-A200: #259eff;
    --c7-A200-contrast: #ffffff;
    --c7-A400: #0094ff;
    --c7-A400-contrast: #ffffff;
    --c7-A700: #008deb;
    --c7-A700-contrast: #ffffff;
}

c7-geo-overview-default ul {
  padding: 0 !important;
  margin: 0 !important;
}
c7-geo-overview-default ul > li,
c7-news-list-default ul > li,
c7-category-list ul > li,
c7-calendar-classic ul > li,
.c7-category-list li,
.c7-calendar-classic-event-view li {
  background: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.c7-news-carousel-small {
  container-name: c7-news-carousel-small;
  container-type: inline-size;
  --text-color: #000;
  --padding: 24px;
  --min-height: 263px;
  --title-max-lines: 2;
  --teaser-max-lines: 5;
  --prev-next-color: #0092f9;
  --prev-next-hover-color: #5197d5;
  --news-carousel-small-pagination-color: #000;

  --carousel-margin-top: 80px;
  --carousel-margin-bottom: 126px;

  --title-font-size: 25px;
  --title-font-weight: bold;

  --teaser-font-size: 17px;
  --teaser-margin-top: 13px;

  --image-border: 1px solid #c5c5c5;

  display: block;
  overflow: hidden;
  position: relative;
  width: 100%;
  margin-top: var(--carousel-margin-top);
  margin-bottom: var(--carousel-margin-bottom);

  max-width: 1050px;
  margin-left: auto;
  margin-right: auto;
}

.c7-news-carousel-small c7-slides {
  overflow: hidden;
  position: relative;
}

.c7-news-carousel-small c7-slide {

}

/* Swiper setzt auf dem aktiven Slide inline opacity:1,
   aber als Fallback/Verstärkung: */
.c7-news-carousel-small c7-slide.swiper-slide-active,
.c7-news-carousel-small c7-slide[class*="swiper-slide-active"] {
  opacity: 1;
  pointer-events: auto;
  position: relative;
}

/* Text links */

.c7-news-carousel-small .c7-news-slide-text {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  z-index: 1;
  width: 45%;
  padding-right: 5%;
  background: white;
  text-align: initial;
  color: var(--text-color);
}

.c7-news-carousel-small .c7-news-slide-text h3 {
  display: -webkit-box;
  -webkit-line-clamp: var(--title-max-lines);
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: var(--title-font-size);
  font-weight: var(--title-font-weight);
  margin: 0;
}

.c7-news-carousel-small .c7-news-slide-text h3:hover {
  text-decoration: underline;
}

.c7-news-carousel-small .c7-news-slide-text p {
  display: -webkit-box;
  -webkit-line-clamp: var(--teaser-max-lines);
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: var(--teaser-font-size);
  margin-top: var(--teaser-margin-top);
}

.c7-news-carousel-small .c7-news-slide-text a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.c7-news-carousel-small .c7-news-slide-text a:hover,
.c7-news-carousel-small .c7-news-slide-text a:focus,
.c7-news-carousel-small .c7-news-slide-text a:focus-visible {
  text-decoration: underline;
}

.c7-news-carousel-small .c7-news-slide-text a:focus-visible {
  outline: var(--c7-link-outline);
  outline-offset: var(--c7-link-outline-offset);
}

/* Bild rechts */

.c7-news-carousel-small c7-slide c7-img {
  position: relative;
  width: calc(45% - 4px);
  height: auto;
  min-height: var(--min-height);
  margin-left: auto;
  border: var(--image-border);
  flex-shrink: 0;
}

.c7-news-carousel-small c7-slide c7-img img {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Actions / Navigation – unterhalb */

.c7-news-carousel-small .actions {
  position: absolute;
  width: 50%;
  display: flex;
  z-index: 1;
  justify-content: space-between;
  align-items: center;
  flex-direction: row-reverse;
  padding-bottom: 0;
}

.c7-news-carousel-small .actions .carousel-controls {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.c7-news-carousel-small .actions .carousel-controls .pagination {
  display: flex;
  align-items: center;
  color: var(--news-carousel-small-pagination-color);
  min-width: 2.5em;
  text-align: center;
  justify-content: center;
}

/* Prev/Next Buttons – altes Design: blauer Rahmen, Chevron-Pfeile */

.c7-news-carousel-small .actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 2px solid var(--prev-next-color);
  border-radius: 4px;
  width: 46px;
  height: 46px;
  font-size: 20px;
  padding: 0.5rem !important;
  cursor: pointer;
  padding: 0;
  color: var(--prev-next-color);
  transition: background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.c7-news-carousel-small .actions button:hover {
  background-color: var(--prev-next-color);
  color: #fff;
}


.c7-news-carousel-small .actions button ion-icon {
  vertical-align: middle;
  font-size: 18px;
}

/* Dense-Variante (schmaler Viewport) */

.c7-news-carousel-small.dense .c7-news-slide-text {
  width: 100%;
  padding-right: 0;
}

.c7-news-carousel-small.dense c7-slide {
  flex-direction: column;
}

.c7-news-carousel-small.dense c7-slide c7-img {
  width: 100%;
  margin-left: 0;
}

.c7-news-carousel-small.dense .actions {
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.c7-news-carousel-small.dense .actions .carousel-controls {
  gap: 2rem;
}

.c7-news-carousel-small.dense .actions .carousel-controls .pagination {
  display: none;
}

.c7-tile-title {
  color: #000;
}
