/* =========================
   HERO ANIMATIONEN
   ========================= */

.amc-hero-content h2,
.amc-hero-content p,
.amc-hero-button {
  opacity: 0;
  transform: translateX(-85px);
  animation: amcTextIn 1s ease-out forwards;
}

.amc-hero-content p {
  animation-delay: 0.18s;
}

.amc-hero-button {
  animation-delay: 0.34s;
}

.amc-hero-slider {
  opacity: 0;
  transform: translateX(60px) scale(1.03);
  animation: amcImageIn 1.15s ease-out 0.15s forwards;
}


/* =========================
   KEYFRAMES
   ========================= */

@keyframes amcTextIn {
  from {
    opacity: 0;
    transform: translateX(-85px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes amcImageIn {
  from {
    opacity: 0;
    transform: translateX(60px) scale(1.03);
  }

  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}


/* =========================
   BARRIEREFREIHEIT
   ========================= */

@media (prefers-reduced-motion: reduce) {

  .amc-hero-content h2,
  .amc-hero-content p,
  .amc-hero-button,
  .amc-hero-slider {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .amc-hero-slide {
    transition: none !important;
  }
}


/* =========================
   SECTION FULLWIDTH FIX
   ========================= */

#amc-hero-section {
  padding: 0 !important;
}

#amc-hero-section .container {
  max-width: none !important;
  width: 100% !important;
  padding: 0 !important;
}

#amc-hero-section .content,
#amc-hero-section .template-page {
  padding: 0 !important;
}

#amc-hero-section .entry-content-wrapper {
  max-width: none !important;
}


/* =========================
   HERO LAYOUT DESKTOP
   ========================= */

.amc-hero-split {
  display: flex;
  width: 100%;
  min-height: 490px;
  overflow: hidden;
}


/* =========================
   LINKER BLOCK
   ========================= */

.amc-hero-content {
  width: 50%;
  color: #fff;

  padding-top: 80px;
  padding-right: 8vw;
  padding-bottom: 80px;
  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-hero-content h2 {
  font-size: clamp(36px, 4.3vw, 58px);
  line-height: 1.05;
  margin-bottom: 20px;
  color: #fff;
}


/* =========================
   TEXT
   ========================= */

.amc-hero-content p {
  font-size: 19px;
  line-height: 1.6;
  margin-bottom: 30px;
  max-width: 520px;
}


/* =========================
   BUTTON
   ========================= */

.amc-hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 15px 30px;

  background: #a6c36f;
  color: #2f4a5a;

  text-decoration: none;

  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;

  border-radius: 8px;

  width: fit-content;
  min-width: 185px;

  box-shadow:
    0 5px 14px rgba(0,0,0,0.12),
    inset 0 1px 0 rgba(255,255,255,0.18);

  transition:
    background 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.amc-hero-button:hover {
  background: #b8d27f;
  color: #233744;

  transform: translateY(-2px);

  box-shadow:
    0 10px 24px rgba(0,0,0,0.18),
    inset 0 1px 0 rgba(255,255,255,0.22);
}

.amc-hero-button:active {
  transform: translateY(0);

  box-shadow:
    0 4px 10px rgba(0,0,0,0.10),
    inset 0 1px 0 rgba(255,255,255,0.12);
}

/*.amc-hero-button,
.amc-hero-button span,
.amc-hero-button:visited,
.amc-hero-button:hover,
.amc-hero-button:focus,
.amc-hero-button:active {
  color: #2f4a5a !important;
}
*/

/* =========================
   RECHTE SEITE / BILD
   ========================= */

.amc-hero-media {
  width: 53%;
  margin-left: -3%;
}


/* =========================
   HERO SLIDER
   ========================= */

.amc-hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.amc-hero-slide {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: 68% center;

  display: block;

  opacity: 0;
  transition: opacity 2.4s ease;

  filter:
    saturate(0.85)
    contrast(1.05)
    brightness(1.02)
    hue-rotate(-5deg);
}

.amc-hero-slide.is-active {
  opacity: 1;
  z-index: 1;
}


/* =========================
   SLIDER PFEIL
   ========================= */

.amc-hero-next {
  position: absolute;
  top: 50%;
  right: 24px;

  transform: translateY(-50%);

  z-index: 3;

  width: 46px;
  height: 46px;

  border: none;
  border-radius: 50%;

  background: rgba(255,255,255,0.78);
  color: #2f4a5a;

  font-size: 30px;
  font-weight: 300;
  line-height: 1;

  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  /* optische Zentrierung des › */
  padding: 0 0 2px 2px;

  box-shadow: 0 5px 18px rgba(0,0,0,0.16);

  transition:
    background 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.amc-hero-next:hover {
  background: rgba(255,255,255,0.95);

  transform:
    translateY(-50%)
    translateX(2px);

  box-shadow:
    0 8px 24px rgba(0,0,0,0.22);
}


/* =========================
   TABLET QUER / KLEINERE DESKTOPS
   ========================= */

@media (max-width: 1200px) {

  .amc-hero-split {
    min-height: 460px;
  }

  .amc-hero-content {
    width: 50%;

    padding-top: 70px;
    padding-bottom: 70px;

    padding-left: 60px;
    padding-right: 6vw;
  }

  .amc-hero-media {
    width: 53%;
    margin-left: -3%;
  }

  .amc-hero-content h2 {
    font-size: 46px;
  }

  .amc-hero-content p {
    font-size: 18px;
  }
}


/* =========================
   TABLET HOCH / GROSSE MOBILES
   ========================= */

@media (max-width: 900px) {

  .amc-hero-split {
    flex-direction: column-reverse;
    min-height: auto;
  }

  .amc-hero-media {
    width: 100%;
    margin-left: 0;
    height: 340px;
  }

  .amc-hero-content {
    width: 100%;

    clip-path: none;

    padding: 55px 32px;
  }

  .amc-hero-content h2 {
    font-size: 34px;
  }

  .amc-hero-content p {
    font-size: 18px;
  }
}


/* =========================
   SMARTPHONE
   ========================= */

@media (max-width: 600px) {

  .amc-hero-media {
    height: 300px;
  }

  .amc-hero-content {
    padding: 52px 56px;
  }

  .amc-hero-content h2 {
    font-size: 34px;
  }

  .amc-hero-content p {
    font-size: 17px;
    line-height: 1.55;
  }

  .amc-hero-button {
    min-width: 170px;
    padding: 14px 24px;
  }

  .amc-hero-next {
    right: 16px;

    width: 38px;
    height: 38px;

    font-size: 28px;

    opacity: 0.82;
    backdrop-filter: blur(4px);
  }
}