/**
 * WDB Hero — Slideshow + Chrome (schlank).
 */

.bde-wdb-hero,
.mk-hero,
.bde-wdb-hero-chrome {
  --mk-hero-btn-bg: #efcc5c;
  --mk-hero-btn-color: #00576a;
  --mk-hero-chrome-color: #ffffff;
  --mk-hero-overlay: linear-gradient(
    180deg,
    rgba(0, 76, 84, 0) 0%,
    rgba(0, 76, 84, 0.55) 45%,
    rgba(0, 76, 84, 0.88) 100%
  );
  --mk-hero-min-height: 80vh;
  --mk-hero-transition: 0.7s;
  --mk-hero-chrome-direction: column;
  --mk-hero-stack-gap: 12px;
  --mk-hero-arrows-gap: 8px;
  --mk-hero-nav-gap: 24px;
  --mk-hero-nav-justify: space-between;
  --mk-hero-btn-size: 40px;
  --mk-hero-icon-size: 20px;
  --mk-hero-pill-font: 20px;
  --mk-hero-pill-pad-y: 10px;
  --mk-hero-pill-radius: 10px;
}

.bde-wdb-hero,
.mk-hero {
  position: relative;
  width: 100%;
  min-height: var(--mk-hero-min-height);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mk-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.mk-hero__slides,
.mk-hero__slide,
.mk-hero__overlay {
  position: absolute;
  inset: 0;
}

.mk-hero__slide {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity var(--mk-hero-transition) ease;
}

.mk-hero__slide.is-active {
  opacity: 1;
  z-index: 1;
}

.mk-hero__overlay {
  z-index: 2;
  background: var(--mk-hero-overlay);
  pointer-events: none;
}

.mk-hero__chrome {
  display: flex;
  flex-direction: var(--mk-hero-chrome-direction, column);
  align-items: stretch;
  gap: var(--mk-hero-stack-gap, 12px);
  width: auto;
  max-width: 100%;
  color: var(--mk-hero-chrome-color);
  box-sizing: border-box;
}

.mk-hero__nav {
  display: flex;
  align-items: center;
  justify-content: var(--mk-hero-nav-justify, space-between);
  gap: var(--mk-hero-nav-gap, 24px);
  width: 100%;
}

.mk-hero__arrows {
  display: flex;
  align-items: center;
  gap: var(--mk-hero-arrows-gap, 8px);
  flex-shrink: 0;
}

.mk-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: var(--mk-hero-btn-size, 40px);
  height: var(--mk-hero-btn-size, 40px);
  padding: 0;
  border: none;
  border-radius: 999px;
  background: var(--mk-hero-btn-bg);
  color: var(--mk-hero-btn-color, #00576a);
  cursor: pointer;
  line-height: 0;
  -webkit-tap-highlight-color: transparent;
}

.mk-hero__btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.mk-hero__btn svg {
  display: block;
  width: var(--mk-hero-icon-size, 20px);
  height: var(--mk-hero-icon-size, 20px);
  max-width: 70%;
  max-height: 70%;
  color: inherit;
  fill: currentColor;
}

/* BD-Icons mit hartem fill/stroke → folgt Icon-Farbe aus Design */
.mk-hero__btn svg [fill]:not([fill='none']) {
  fill: currentColor !important;
}

.mk-hero__btn svg [stroke]:not([stroke='none']) {
  stroke: currentColor !important;
}

.mk-hero__pagination {
  font-size: var(--mk-hero-pill-font, 20px);
  font-weight: 400;
  white-space: nowrap;
  color: inherit;
  flex-shrink: 0;
}

.mk-hero__page-current {
  font-weight: 600;
}

.mk-hero__page-sep,
.mk-hero__page-total {
  font-weight: 400;
}

.mk-hero__title-pill {
  /* Wie BD-Button (Custom), Farben fest weiß, kein Hover */
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  background-color: transparent;
  border-style: solid;
  border-width: 1px;
  border-color: #ffffff;
  border-radius: var(--mk-hero-pill-radius, 10px);
  color: #ffffff;
  font-size: var(--mk-hero-pill-font, 20px);
  font-weight: 600;
  padding-top: var(--mk-hero-pill-pad-y, 10px);
  padding-bottom: var(--mk-hero-pill-pad-y, 10px);
  padding-left: 0;
  padding-right: 0;
  transition: none;
  cursor: default;
  pointer-events: none;
}

.mk-hero__title-pill:hover,
.mk-hero__title-pill:focus,
.mk-hero__title-pill:active {
  background-color: transparent;
  border-color: #ffffff;
  color: #ffffff;
}

.mk-hero__title-text {
  font-size: inherit;
  font-weight: inherit;
  line-height: 1.3;
  color: inherit;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mk-hero__content,
.bde-wdb-hero > .section-container,
.bde-wdb-hero > .mk-hero__content {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  max-width: var(--bde-section-width, 1200px);
  margin-left: auto;
  margin-right: auto;
  padding: var(--bde-section-vertical-padding, clamp(32px, 6vw, 60px))
    var(--bde-section-horizontal-padding, clamp(16px, 4vw, 20px));
  box-sizing: border-box;
  min-height: 0;
  height: 100%;
}

.mk-hero__empty {
  position: relative;
  z-index: 2;
  padding: 40px 20px;
  color: #fff;
  background: #00576a;
  text-align: center;
}

@media (max-width: 1024px) {
  .bde-wdb-hero,
  .mk-hero,
  .bde-wdb-hero-chrome {
    --mk-hero-min-height: 70vh;
    --mk-hero-btn-size: 38px;
    --mk-hero-icon-size: 18px;
    --mk-hero-pill-font: 18px;
    --mk-hero-pill-pad-y: 9px;
  }
}

@media (max-width: 640px) {
  .bde-wdb-hero,
  .mk-hero,
  .bde-wdb-hero-chrome {
    --mk-hero-min-height: 75vh;
    --mk-hero-btn-size: 36px;
    --mk-hero-icon-size: 16px;
    --mk-hero-pill-font: 16px;
    --mk-hero-pill-pad-y: 8px;
    --mk-hero-pill-radius: 8px;
    --mk-hero-stack-gap: 10px;
    --mk-hero-arrows-gap: 6px;
    --mk-hero-nav-gap: 16px;
  }

  .mk-hero__title-text {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mk-hero__slide {
    transition: none;
  }
}
