/* =========================================================
   SUBHERO BERATUNGSFELDER
   eigenständiger Hero – beeinflusst Startseite nicht
   ========================================================= */


/* =========================
   SECTION FULLWIDTH FIX
   ========================= */

#amc-subhero-section {
  padding: 0 !important;
}

#amc-subhero-section .container {
  max-width: none !important;
  width: 100% !important;
  padding: 0 !important;
}

#amc-subhero-section .content,
#amc-subhero-section .template-page {
  padding: 0 !important;
}

#amc-subhero-section .entry-content-wrapper {
  max-width: none !important;
}


/* =========================
   HERO LAYOUT DESKTOP
   ========================= */

.amc-subhero-split {
  display: flex;
  width: 100%;
  height: 400px;
  overflow: hidden;
}


/* =========================
   LINKER BLOCK
   ========================= */

.amc-subhero-content {
  width: 50%;
  color: #fff;

  padding-top: 55px;
  padding-right: 8vw;
  padding-bottom: 55px;
  padding-left: calc((100vw - 1310px) / 2 + 50px);

  display: flex;
  flex-direction: column;
  justify-content: center;

  background: linear-gradient(
    110deg,
    #848484 0%,
    #b5b5b5 45%,
    #b3b3b3 100%
  );

  clip-path: polygon(0 0, 100% 0, 94% 100%, 0% 100%);

  z-index: 2;
}


/* =========================
   HEADLINE
   ========================= */

.amc-subhero-content h2 {
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.05;
  margin-bottom: 20px;
  color: #fff;
}


/* =========================
   TEXT
   ========================= */

.amc-subhero-content p {
  font-size: 19px;
  line-height: 1.6;
  margin-bottom: 0;
  max-width: 520px;
}


/* =========================
   RECHTE SEITE / FIXES BILD
   ========================= */

.amc-subhero-media {
  width: 53%;
  margin-left: -3%;
  height: 100%;
}

.amc-subhero-image {
  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: 68% center;

  display: block;

  filter:
    saturate(0.85)
    contrast(1.05)
    brightness(1.02)
    hue-rotate(-5deg);
}


/* =========================
   ANIMATIONEN
   wie Startseite, aber getrennt
   ========================= */

.amc-subhero-content h2,
.amc-subhero-content p {
  opacity: 0;
  transform: translateX(-85px);
  animation: amcSubTextIn 1s ease-out forwards;
}

.amc-subhero-content p {
  animation-delay: 0.18s;
}

.amc-subhero-image {
  opacity: 0;
  transform: translateX(60px) scale(1.03);
  animation: amcSubImageIn 1.15s ease-out 0.15s forwards;
}


/* =========================
   KEYFRAMES
   ========================= */

@keyframes amcSubTextIn {
  from {
    opacity: 0;
    transform: translateX(-85px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes amcSubImageIn {
  from {
    opacity: 0;
    transform: translateX(60px) scale(1.03);
  }

  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}


/* =========================
   BARRIEREFREIHEIT
   ========================= */

@media (prefers-reduced-motion: reduce) {

  .amc-subhero-content h2,
  .amc-subhero-content p,
  .amc-subhero-image {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}


/* =========================
   TABLET QUER / KLEINERE DESKTOPS
   ========================= */

@media (max-width: 1200px) {

  .amc-subhero-split {
    height: 390px;
  }

  .amc-subhero-content {
    width: 50%;

    padding-left: 60px;
    padding-right: 6vw;
  }

  .amc-subhero-media {
    width: 53%;
    margin-left: -3%;
  }

  .amc-subhero-content h2 {
    font-size: 46px;
  }

  .amc-subhero-content p {
    font-size: 18px;
  }
}


/* =========================
   TABLET HOCH / GROSSE MOBILES
   ========================= */

@media (max-width: 900px) {

  .amc-subhero-split {
    flex-direction: column-reverse;
    height: auto;
  }

  .amc-subhero-media {
    width: 100%;
    margin-left: 0;
    height: 300px;
  }

  .amc-subhero-content {
    width: 100%;

    clip-path: none;

    padding: 48px 32px;
  }

  .amc-subhero-content h2 {
    font-size: 34px;
  }

  .amc-subhero-content p {
    font-size: 18px;
  }
}


/* =========================
   SMARTPHONE
   ========================= */

@media (max-width: 600px) {

  .amc-subhero-media {
    height: 280px;
  }

  .amc-subhero-content {
    padding: 48px 56px;
  }

  .amc-subhero-content h2 {
    font-size: 34px;
  }

  .amc-subhero-content p {
    font-size: 17px;
    line-height: 1.55;
  }
}