/* The parent Hero determines the image height and renders its text once. */
.djg-hero-deck {
  --djg-arrow-inset: 16px;
  --djg-arrow-clearance: calc(var(--djg-arrow-inset) + 44px + 8px);
  position: relative;
  isolation: isolate;
}
.djg-hero-deck .tbn-hero--image-bg {
  z-index: 1;
  pointer-events: none;
  /* Keep the tap targets and their focus rings outside the text column. */
  padding-inline: max(var(--djg-arrow-clearance), calc((100% - var(--tbn-content-width, 72rem)) / 2));
  padding-bottom: max(4.625rem, clamp(2rem, 6vw, 4.5rem));
}
.djg-hero-deck .tbn-hero__body {
  min-width: 0;
  overflow-wrap: anywhere;
}
.djg-hero-deck .tbn-hero--image-bg a {
  pointer-events: auto;
}
.djg-hero-deck .tbn-hero--image-bg::before {
  background: linear-gradient(180deg, rgb(0 0 0 / 0.56), rgb(0 0 0 / 0.72));
}
.djg-hero-deck > .djg-hero-deck__slider {
  position: absolute;
  inset: 0;
  z-index: auto;
  overflow: hidden;
}
.djg-hero-deck .swiper-wrapper {
  display: flex;
  height: 100%;
}
.djg-hero-deck .swiper-slide {
  flex: 0 0 100%;
}
.djg-hero-deck .swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.djg-hero-deck__controls {
  position: absolute;
  z-index: 2;
  inset-inline: var(--djg-arrow-inset);
  top: 50%;
  transform: translateY(-50%);
  display: none;
  justify-content: space-between;
  pointer-events: none;
}
.swiper-initialized .djg-hero-deck__controls {
  display: flex;
}
.djg-hero-deck__controls :is(.swiper-button-prev, .swiper-button-next) {
  position: static;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0;
  color: #fff;
  background-color: var(--color-surface-dark);
  border: 1px solid currentColor;
  border-radius: 50%;
  pointer-events: auto;
}
.djg-hero-deck__controls button:hover {
  color: var(--color-surface-dark);
  background-color: #fff;
}
.djg-hero-deck__controls button:focus-visible {
  outline: 2px solid #fff;
  box-shadow: 0 0 0 6px var(--color-surface-dark);
  outline-offset: 2px;
}
.djg-hero-deck__controls button::after {
  content: none;
}
.djg-hero-deck__controls svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* #0085C7 is the original DJG logo blue, AA on white only as large text. */
#leistungen.tbn-beitrags-grid .tbn-card__headline > .tbn-card__link {
  color: var(--djg-logo-blue);
  font-size: 1.25rem;
  font-weight: 700;
}
