.has-overlay {
  position: relative;
}

.overlay-title {
  position: absolute;
  bottom: 0rem;
  z-index: 2;
}

/* Background-Image für Card-Header */
.card-image.is-bg {
  background-image: var(--card-bg, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 100%;
}

.block-card {
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease, opacity 0.3s ease;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  background-color: var(--ci-dunkelblau);
  transform-origin: center;
  will-change: transform, filter, opacity;

  .card-image_OFF {
    min-height: 150px;
    max-height: 150px;
    height: 150px;
  }
}

.square_box {
  width: 100%;
  aspect-ratio: 1 / 1;
}

/* mobil */
.card-standalone {
  width: 100px;
}

@media screen and (min-width: 641px) and (max-width: 879px) {
  /* … tablet styles … */
  .card-standalone {
    width: 140px;
  } /* ggf. 164px runden */
}

@media screen and (min-width: 880px) {
  /* … desktop styles … */
  .card-standalone {
    width: 166px;
  }
}

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

.card-content.is-flex-grow-1 {
  flex-grow: 1;
}

.card-content {
  p {
    line-height: 1.4;
  }
}

.slider-wrapper {
  position: relative;
  overflow-x: hidden;
}

.slider-track {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  gap: 1.48rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

@media screen and (max-width: 640px) {
  /* … tablet styles … */

  .slider-track {
    gap: 0.8rem;
  }
}

.slider-track > .fixed-slide:first-child {
  margin-left: 0; /* kein zusätzlicher Abstand */
}

.slider-track > .fixed-slide:last-child {
  margin-right: 0;
}

.slider-track::-webkit-scrollbar {
  display: none;
}

.fixed-slide {
  flex: 0 0 300px;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  border-radius: 0rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease, opacity 0.3s ease;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  background-color: var(--ci-dunkelblau);
  transform-origin: center;
  will-change: transform, filter, opacity;

  .line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .slide-content {
    flex-grow: 1;
    overflow: hidden;
    padding: 1rem;
  }

  .slide-footer {
    height: 60px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 1.25rem 1.25rem;
  }
}

.fixed-slide:hover,
.fixed-slide:focus-visible,
.block-card:hover,
.block-card:focus-visible {
  transform: scale(1.02);
  filter: brightness(0.88);
  opacity: 0.96;
}

.fixed-slide:focus-visible,
.block-card:focus-visible {
  outline: 2px solid var(--ci-hellblau, #5da7ff);
  outline-offset: 4px;
}

@media screen and (max-width: 640px) {
  /* … tablet styles … */
  .fixed-slide {
    flex: 0 0 240px;
  }
}

/* Controls unter dem Slider */
.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

/* Pfeile unten (nicht absolut) */
.slider-controls .slider-nav {
  position: static;
  transform: none;
  /*background-color:  var(--ci-dunkelblau, #384887);
   border-radius: 999px;
  width: 2rem; height: 2rem;
 */
  color: var(--ci-dunkelblau, #384887);

  border: none;

  /*box-shadow: 0 2px 4px rgba(0,0,0,.2);*/
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.slider-controls .slider-nav.is-disabled,
.slider-controls .slider-nav:disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* SR-only Helper */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Dots zentriert zwischen den Pfeilen */
.slider-dots {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0.25rem;
  padding: 0;
}

/* Jeder Dot ist ein Button für A11y */
.slider-dots li {
  display: block;
}
.slider-dots button {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  /* border: 1px solid var(--ci-dunkelblau, #384887);*/
  background-color: var(--ci-dunkelblau, #384887);
  cursor: pointer;
  display: inline-block;
  padding: 0;
  opacity: 0.4;
}
.slider-dots button:is(:hover, :focus-visible) {
  outline: none;
  box-shadow: 0 0 0 3px rgba(56, 72, 135, 0.25);
}
.slider-dots button[aria-current="true"] {
  background: var(--ci-dunkelblau, #384887);
  opacity: 1;
}

/* Reduced motion respektieren */
@media (prefers-reduced-motion: reduce) {
  .slider-track {
    scroll-behavior: auto;
  }
}

/* Trennlinie z.B. unterhalb eins Datums in Cards */
.divider-line {
  height: 2px;
  width: 35%;
  background-color: white;
}

/*COLOR GRID */
.color-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.color-box {
  aspect-ratio: 1 / 1;
  border-radius: 0rem;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0.5rem;

  &.has-background-white {
    color: #000;
  }
}

.info-card {
  position: relative;
  display: flex;
  flex-direction: column;
  /* height: 100%; */
  box-shadow: 0 10px 20px rgba(0,0,0,.08);
}

/* etwas mehr Luft nach oben, damit der Badge „überlappt“ */
.info-card .card-content {
  padding-top: 2.1rem; /* Platz unter dem Badge */
  flex-grow: 1;
}

/* runder Badge oben mittig */
.card-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%); /* halb über der Karte*/
  width: 45px;
  height: 45px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ci-dunkelblau, #384887); /* Icon-Farbe */
  box-shadow: 0 4px 15px rgba(0,0,0,.12);
  background: white;  /* Standardfarbe (Bulma-Primary) */

}

/* Badge-Farbvarianten (optional) */
.card-badge.is-primary  { background: var(--ci-dunkelblau, #384887);  }
.card-badge.is-info     { background: var(--ci-dunkelblau, #384887);    }
.card-badge.is-danger   { background: var(--ci-dunkelblau, #384887);   }
.card-badge.is-success  { background: var(--ci-dunkelblau, #384887);  }

/* Typo wie im Screenshot: kompakter Titel */
.info-card .title {
  line-height: 1.25;
  margin-bottom: .5rem;
}

/* Mobile-Spacing der Cards (optional) */
@media (max-width: 768px) {
  .info-card { margin-bottom: 1rem; }
}
