{% scope_css %}

.custom-hero {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  min-height: 600px;
  padding: 100px;
  margin-bottom: 100px;

  background-size: cover;
  background-position: center;
  box-sizing: border-box;
}

.custom-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.91) 0%,
    rgba(0, 0, 0, 0.72) 26%,
    rgba(0, 0, 0, 0.55) 44%,
    rgba(0, 0, 0, 0.25) 60%,
    rgba(0, 0, 0, 0.00) 78%
  );
}


.custom-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 980px;
}

/* Headline */
.custom-hero__headline {
  margin: 0 0 40px 0;
  line-height: 1.05;
  text-wrap: balance;
  hyphens: auto;
  overflow-wrap: break-word;
  max-width: 22ch;
}

.custom-hero__text {
  font-size: 25px;
  line-height: 1.5;
  text-wrap: pretty;
  hyphens: auto;
  overflow-wrap: break-word;
  max-width: 40ch;
}

/* CTA Container (nur Layout) */
.custom-hero__cta {
  margin-top: 28px;
}


.custom-hero--text-white {
  color: #fff;
}
.custom-hero--text-white .custom-hero__headline,
.custom-hero--text-white .custom-hero__text {
  color: #fff;
}

.custom-hero--text-black {
  color: #000;
}
.custom-hero--text-black .custom-hero__headline,
.custom-hero--text-black .custom-hero__text {
  color: #000;
}

/* Helles Overlay, damit schwarzer Text auf Bild lesbar bleibt */
.custom-hero--text-black::after {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.91) 0%,
    rgba(255, 255, 255, 0.72) 26%,
    rgba(255, 255, 255, 0.58) 44%,
    rgba(255, 255, 255, 0.28) 60%,
    rgba(255, 255, 255, 0.00) 78%
  );
}


/* Mobile */
@media (max-width: 767px) {
  .custom-hero {
    padding: 40px 24px;
    min-height: auto;
    margin-bottom: 60px;
  }

  .custom-hero__headline {
    font-size: 32px;
    line-height: 1.1;
    margin-bottom: 20px;
    max-width: 26ch;
  }

  .custom-hero__text {
    font-size: 16px;
    line-height: 1.5;
    max-width: 62ch;
  }

  .custom-hero__cta {
    margin-top: 20px;
  }
}

{% end_scope_css %}