/* SPE Mühle – Block „Spezial (Slider)“ */

.section.spezial {
  background-color: var(--color-theme);
  padding-top: 60px;
  padding-bottom: 60px;
}

/* Kein Beitrag: nur die farbige Fläche in der Höhe des bisherigen Blocks */
.section.spezial.is-empty {
  min-height: 156px;
}
.section.spezial .spezial-hint {
  margin: 0;
  font-family: "Source Sans Pro", sans-serif;
  font-size: 0.8rem;
  color: rgba(0, 0, 0, 0.6);
}

/* Alle Folien liegen übereinander → Höhe = höchste Folie, kein Springen */
.section.spezial .spezial-slides {
  display: grid;
}
.section.spezial .spezial-slide {
  grid-area: 1 / 1;
  display: flex;
  align-items: stretch;
  background-color: white;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.03), 0 20px 20px 0 rgba(0, 0, 0, 0.03), 0 30px 30px 0 rgba(0, 0, 0, 0.03), 0 40px 40px 0 rgba(0, 0, 0, 0.03);
  opacity: 0;
  visibility: hidden;
  transition: opacity 500ms ease-in-out, visibility 500ms;
}
.section.spezial .spezial-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.section.spezial .spezial-image {
  flex: 0 0 41.6666%;
  min-height: 320px;
}
.section.spezial .spezial-image img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

.section.spezial .spezial-copy {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 50px;
}
.section.spezial .spezial-copy .eyebrow {
  margin: 0;
}
.section.spezial .spezial-copy h2 {
  margin: 0.4em 0 0.5em;
}
.section.spezial .spezial-copy h2 a {
  color: inherit;
  transition: 350ms ease-in-out;
}
.section.spezial .spezial-copy h2 a:hover {
  color: rgba(0, 0, 0, 0.6);
}
.section.spezial .spezial-excerpt {
  margin: 0 0 0.5em;
  font-family: "Source Sans Pro", sans-serif;
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.7);
}
/* Button in der weißen Karte: Hauptfarbe mit dunkler Schrift (Kontrast).
   z-index: 0 → eigener Stapelkontext, sonst liegt der farbige ::before (z-index -1) hinter der Karte */
.section.spezial .button {
  color: black;
  margin-bottom: 0;
  z-index: 0;
}

/* Navigation */
.section.spezial .spezial-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}
.section.spezial .spezial-prev,
.section.spezial .spezial-next {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background-color: white;
  color: black;
  font-family: "Source Sans Pro", sans-serif;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  transition: 350ms ease-in-out;
}
.section.spezial .spezial-prev:hover,
.section.spezial .spezial-next:hover {
  box-shadow: 0 3px 30px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}
.section.spezial .spezial-dots {
  display: flex;
  gap: 10px;
}
.section.spezial .spezial-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 2px solid white;
  border-radius: 50%;
  background-color: transparent;
  cursor: pointer;
  transition: 350ms ease-in-out;
}
.section.spezial .spezial-dot.is-active {
  background-color: white;
  transform: scale(1.15);
}
.section.spezial button:focus-visible {
  outline: 2px solid black;
  outline-offset: 3px;
}

@media (max-width: 768px) {
  .section.spezial {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }
  .section.spezial.is-empty {
    min-height: 120px;
  }
  .section.spezial .spezial-slide {
    flex-direction: column;
  }
  .section.spezial .spezial-image {
    flex-basis: auto;
    min-height: 0;
    aspect-ratio: 3 / 2;
  }
  .section.spezial .spezial-copy {
    padding: 1.5rem;
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .section.spezial .spezial-slide {
    transition: none;
  }
}
