/* ==========================================================================
   Home – Hero
   ========================================================================== */

.home-hero {
  position: relative;
  overflow: hidden;
  background-color: var(--mh-primary);
  color: var(--mh-white);
}

.home-hero__inner {
  display: grid;
  grid-template-columns:
    minmax(0, 1.05fr)
    minmax(390px, 0.95fr);
  align-items: center;
  gap: clamp(3rem, 6vw, 6rem);

  width: min(calc(100% - 48px), var(--mh-content-width));
  margin-inline: auto;
  min-height: 600px;

  padding-block-start: calc(
    var(--mh-header-overlay-height) + clamp(1.5rem, 3vw, 3rem)
  );

  padding-block-end: clamp(4rem, 6vw, 6rem);
}

/* Inhalt */

.home-hero__content {
  position: relative;
  z-index: 3;
  max-width: 720px;
}

.home-hero__eyebrow {
  display: inline-block;
  width: fit-content;
  margin: 0 0 1rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background-color: var(--mh-yellow);
  color: var(--mh-dark-teal);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.home-hero__title {
  max-width: 760px;
  margin: 0 0 1.5rem;
  color: var(--mh-white);
  font-size: clamp(2.75rem, 5vw, 4.75rem);
  line-height: 1.03;
  text-wrap: balance;
}

.home-hero__text {
  max-width: 640px;
  margin: 0;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.6;
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

/* Visual */

.home-hero__visual {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 500px;
  isolation: isolate;
}

/* Baumkulisse */

.home-hero__trees {
  position: absolute;
  z-index: -2;
  right: -18%;
  bottom: -5%;
  width: min(135%, 720px);
  max-width: none;
  height: auto;
  opacity: 0.82;
  pointer-events: none;
}

/* ==========================================================================
   Foto in originalem MOUSE-HOUSE-Shape
   ========================================================================== */

.home-hero__media {
  position: relative;
  width: min(100%, 440px);
  aspect-ratio: 898 / 1132;
  margin: 0;
  filter: drop-shadow(0 24px 28px rgb(0 89 93 / 24%));
}

/* Gelbe, leicht versetzte Shape-Fläche */

.home-hero__media::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-color: var(--mh-yellow);
  content: "";
  transform: translate(-14px, -10px) rotate(-2deg);
  transform-origin: center;

  -webkit-mask-image: url("../../../images/brand/mousehole-mask.svg");
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;

  mask-image: url("../../../images/brand/mousehole-mask.svg");
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: 100% 100%;
}

/* Hero-Foto */

.home-hero__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 84% center;

  -webkit-mask-image: url("../../../images/brand/mousehole-mask.svg");
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;

  mask-image: url("../../../images/brand/mousehole-mask.svg");
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: 100% 100%;
}

/* Claim */

.home-hero__claim {
  position: absolute;
  z-index: 3;
  top: 8%;
  left: -9%;
  margin: 0;
  padding: 1rem 1.25rem;
  border-radius: 50% 50% 48% 52% / 54% 46% 54% 46%;
  background-color: var(--mh-yellow);
  color: var(--mh-dark-teal);
  box-shadow: 0 10px 24px rgb(0 89 93 / 16%);
  font-size: clamp(1.25rem, 2.1vw, 1.8rem);
  font-weight: 700;
  line-height: 0.95;
  text-align: center;
  transform: rotate(-6deg);
}

/* Mäuse vor dem Eingang */

.home-hero__mice {
  position: absolute;
  z-index: 4;
  right: 47%;
  bottom: 3%;
  width: clamp(145px, 17vw, 230px);
  height: auto;
  pointer-events: none;
}

/* ==========================================================================
   Tablet
   ========================================================================== */

@media (max-width: 1000px) {
  .home-hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
    gap: 2.5rem;
    min-height: 580px;
  }

  .home-hero__visual {
    min-height: 430px;
  }

  .home-hero__media {
    width: min(100%, 360px);
  }

  .home-hero__trees {
    right: -25%;
    width: 140%;
  }

  .home-hero__claim {
    left: -5%;
  }
}

/* ==========================================================================
   Mobile
   ========================================================================== */

@media (max-width: 760px) {
  .home-hero__inner {
    grid-template-columns: 1fr;
    gap: 3rem;
    width: min(calc(100% - 32px), var(--mh-content-width));
    min-height: auto;

    padding-block-start: calc(var(--mh-header-overlay-height) + 2.5rem);

    padding-block-end: 4rem;
  }

  .home-hero__content {
    max-width: none;
  }

  .home-hero__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .home-hero__actions .mh-button {
    width: 100%;
  }

  .home-hero__visual {
    min-height: 430px;
  }

  .home-hero__media {
    width: min(86%, 360px);
  }

  .home-hero__trees {
    right: -14%;
    bottom: -6%;
    width: 125%;
    opacity: 0.72;
  }

  .home-hero__mice {
    right: 57%;
    bottom: 2%;
    width: clamp(125px, 35vw, 180px);
  }

  .home-hero__claim {
    top: 7%;
    left: -7%;
  }
}

@media (max-width: 420px) {
  .home-hero__title {
    font-size: clamp(2.5rem, 13vw, 3.5rem);
  }

  .home-hero__visual {
    min-height: 380px;
  }

  .home-hero__media {
    width: min(84%, 310px);
  }

  .home-hero__claim {
    left: -4%;
    padding: 0.8rem 1rem;
    font-size: 1.2rem;
  }

  .home-hero__mice {
    right: 56%;
    width: 125px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero__claim {
    transform: none;
  }
}
