/* Würde und Gemeinschaft hero */
.community-hero {
  --hero-ink: #fffdf7;
  --hero-gold: #d3ad63;
  position: relative;
  display: grid;
  min-height: clamp(560px, 66vw, 920px);
  margin-top: 2rem;
  overflow: hidden;
  isolation: isolate;
  color: #15263d;
  font-family: var(--font-sans, ui-sans-serif, system-ui, sans-serif);
}

.community-hero__picture,
.community-hero__picture img,
.community-hero__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.community-hero__picture img {
  display: block;
  object-fit: cover;
  object-position: center center;
}

.community-hero__shade {
  z-index: 1;
  background:
    linear-gradient(
      90deg,
      rgba(12, 24, 16, 0.72) 0%,
      rgba(12, 24, 16, 0.4) 34%,
      rgba(12, 24, 16, 0.05) 64%,
      transparent 100%
    ),
    linear-gradient(0deg, rgba(12, 24, 16, 0.2), transparent 45%);
  pointer-events: none;
}

.community-hero__content {
  position: relative;
  z-index: 2;
  align-self: center;
  width: min(670px, calc(100% - 2rem));
  margin-left: max(1rem, calc((100% - 1440px) / 2));
  padding: clamp(1.5rem, 4vw, 4rem);
  color: var(--hero-ink);
}

.community-hero__eyebrow {
  margin: 0 0 0.8rem;
  color: var(--hero-gold);
  font-size: clamp(0.9rem, 1.4vw, 1.1rem);
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.community-hero__title {
  margin: 0;
  max-width: 15ch;
  font-family: var(--font-display, Georgia, "Times New Roman", serif);
  font-size: clamp(2.7rem, 5.5vw, 5.7rem);
  font-weight: 400;
  line-height: 1.03;
  text-wrap: balance;
  color: var(--hero-ink);
}

.community-hero__intro {
  max-width: 48ch;
  margin: 1.3rem 0 1.8rem;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  line-height: 1.55;
}

.community-hero__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-height: 3.6rem;
  padding: 0.9rem 1.3rem;
  border: 1px solid rgba(255, 253, 247, 0.72);
  color: var(--hero-ink);
  background: rgba(17, 39, 24, 0.72);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  backdrop-filter: blur(5px);
}

.community-hero__button:hover {
  background: rgba(17, 39, 24, 0.92);
  color: var(--hero-ink);
}

.community-hero__button:focus-visible {
  outline: 3px solid white;
  outline-offset: 4px;
}

@media (max-width: 900px) {
  .community-hero__shade {
    background: linear-gradient(
      0deg,
      rgba(12, 24, 16, 0.78) 0%,
      rgba(12, 24, 16, 0.25) 54%,
      transparent 76%
    );
  }

  .community-hero__content {
    align-self: end;
    width: min(760px, 100%);
    margin: 0;
    padding: 2rem 1.25rem;
  }

  .community-hero__title {
    max-width: 18ch;
  }
}

@media (max-width: 640px) {
  .community-hero {
    min-height: 780px;
  }

  .community-hero__picture img {
    object-position: center center;
  }

  .community-hero__content {
    padding-bottom: 1.5rem;
  }

  .community-hero__title br {
    display: none;
  }

  .community-hero__button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .community-hero__picture img {
    transition: transform 8s ease;
  }

  .community-hero:hover .community-hero__picture img {
    transform: scale(1.025);
  }
}
