/* =========================================================
   GCGF – Angebote für Einsteiger
   Introbereich mit Bildwechsel
   Seite: /afe-neu/
   ========================================================= */

#top .gcgf-afe-intro {
  width: 100%;
  padding: 76px 0 80px;
  background: #ffffff;
  box-sizing: border-box;
}

#top .gcgf-afe-intro *,
#top .gcgf-afe-intro *::before,
#top .gcgf-afe-intro *::after {
  box-sizing: border-box;
}

#top .gcgf-afe-intro__wrap {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 40px;
}


/* =========================================================
   Oberer Bereich: Text und Bild
   ========================================================= */

#top .gcgf-afe-intro__top {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  column-gap: 64px;
  align-items: center;
  margin-bottom: 56px;
}

#top .gcgf-afe-intro__main {
  min-width: 0;
  margin: 0;
}

#top .gcgf-afe-intro__kicker {
  margin: 0 0 14px;
  padding: 0;
  color: #679938;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

#top .gcgf-afe-intro__main h2 {
  margin: 0 0 22px;
  padding: 0;
  color: #183d25;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 3vw, 48px);
  line-height: 1.12;
  font-weight: 400;
  text-transform: none;
  letter-spacing: -0.015em;
}

#top .gcgf-afe-intro__main p {
  margin: 0 0 16px;
  padding: 0;
  color: #303a33;
  font-size: 17px;
  line-height: 1.7;
}

#top .gcgf-afe-intro__main p:last-of-type {
  margin-bottom: 0;
}

#top .gcgf-afe-intro__lead {
  font-size: 18px;
}


/* =========================================================
   Hauptbutton
   ========================================================= */

#top .gcgf-afe-intro__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin-top: 26px;
  padding: 15px 23px;

  border: 1px solid #679938;
  border-radius: 2px;
  background: #679938;

  color: #ffffff !important;
  text-decoration: none !important;

  font-size: 14px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.035em;
  text-transform: uppercase;

  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}

#top .gcgf-afe-intro__button:hover,
#top .gcgf-afe-intro__button:focus-visible {
  border-color: #527d31;
  background: #527d31;
  color: #ffffff !important;
  transform: translateY(-2px);
}


/* =========================================================
   Bildbereich mit Fade-Slider
   ========================================================= */

#top .gcgf-afe-intro__image {
  position: relative;
  width: 100%;
  height: 430px;
  overflow: hidden;
  background: #eef1eb;
}

#top .gcgf-afe-intro__slide {
  position: absolute;
  inset: 0;

  display: block;
  width: 100%;
  height: 100%;

  border: 0;
  object-fit: cover;
  object-position: center center;

  opacity: 0;
  visibility: hidden;

  transition:
    opacity 1.8s ease-in-out,
    visibility 1.8s ease-in-out;
}

#top .gcgf-afe-intro__slide.is-active {
  z-index: 2;
  opacity: 1;
  visibility: visible;
}


/* =========================================================
   Slider-Pfeil
   ========================================================= */

#top .gcgf-afe-intro__arrow {
  position: absolute;
  top: 50%;
  right: 24px;
  z-index: 5;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 52px;
  height: 52px;
  padding: 0;

  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  background: rgba(24, 61, 37, 0.28);

  box-shadow: none;
  cursor: pointer;

  transform: translateY(-50%);

  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);

  transition:
    background-color 0.25s ease,
    border-color 0.25s ease;
}

#top .gcgf-afe-intro__arrow svg {
  display: block;
  width: 26px;
  height: 26px;
  fill: #ffffff;
}

#top .gcgf-afe-intro__arrow:hover,
#top .gcgf-afe-intro__arrow:focus-visible {
  border-color: rgba(255, 255, 255, 0.75);
  background: rgba(24, 61, 37, 0.48);
}


/* =========================================================
   Drei verlinkte Themenbereiche
   ========================================================= */

#top .gcgf-afe-intro__benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 38px;
  row-gap: 28px;
}

#top .gcgf-afe-intro__benefit {
  position: relative;

  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 25px 6px 8px 0;

  border-top: 2px solid #dce5d7;

  color: #303a33 !important;
  text-decoration: none !important;

  transition:
    border-color 0.25s ease,
    transform 0.25s ease;
}

#top .gcgf-afe-intro__benefit:hover,
#top .gcgf-afe-intro__benefit:focus-visible {
  border-top-color: #841d5b;
  color: #303a33 !important;
  transform: translateY(-3px);
}

#top .gcgf-afe-intro__benefit h3 {
  margin: 0 0 11px;
  padding: 0;

  color: #183d25;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

#top .gcgf-afe-intro__benefit p {
  margin: 0 0 17px;
  padding: 0;

  color: #303a33;
  font-size: 16px;
  line-height: 1.6;
}

#top .gcgf-afe-intro__benefit-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  margin-top: auto;

  color: #679938;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

#top .gcgf-afe-intro__benefit-link span {
  display: inline-block;
  font-size: 18px;
  line-height: 1;

  transition: transform 0.25s ease;
}

#top .gcgf-afe-intro__benefit:hover
.gcgf-afe-intro__benefit-link span {
  transform: translateX(5px);
}


/* =========================================================
   Tablet
   ========================================================= */

@media only screen and (max-width: 989px) {

  #top .gcgf-afe-intro {
    padding: 58px 0 64px;
  }

  #top .gcgf-afe-intro__wrap {
    padding: 0 32px;
  }

  #top .gcgf-afe-intro__top {
    grid-template-columns: 1fr;
    row-gap: 40px;
    margin-bottom: 48px;
  }

  #top .gcgf-afe-intro__image {
    height: 390px;
  }

  #top .gcgf-afe-intro__benefits {
    grid-template-columns: 1fr;
    row-gap: 25px;
  }

  #top .gcgf-afe-intro__benefit {
    padding-right: 0;
    padding-bottom: 4px;
  }
}


/* =========================================================
   Smartphone
   ========================================================= */

@media only screen and (max-width: 767px) {

  #top .gcgf-afe-intro {
    padding: 44px 0 50px;
  }

  #top .gcgf-afe-intro__wrap {
    padding: 0 24px;
  }

  #top .gcgf-afe-intro__top {
    row-gap: 34px;
    margin-bottom: 42px;
  }

  #top .gcgf-afe-intro__kicker {
    margin-bottom: 11px;
    font-size: 13px;
  }

  #top .gcgf-afe-intro__main h2 {
    margin-bottom: 18px;
    font-size: 32px;
    line-height: 1.15;
  }

  #top .gcgf-afe-intro__main p,
  #top .gcgf-afe-intro__lead {
    font-size: 16px;
    line-height: 1.65;
  }

  #top .gcgf-afe-intro__button {
    width: 100%;
    margin-top: 22px;
    padding: 15px 18px;
    text-align: center;
  }

  #top .gcgf-afe-intro__image {
    height: 270px;
  }

  #top .gcgf-afe-intro__arrow {
    right: 15px;
    width: 44px;
    height: 44px;
  }

  #top .gcgf-afe-intro__arrow svg {
    width: 22px;
    height: 22px;
  }

  #top .gcgf-afe-intro__benefit {
    padding-top: 22px;
  }

  #top .gcgf-afe-intro__benefit h3 {
    font-size: 17px;
  }

  #top .gcgf-afe-intro__benefit p {
    font-size: 16px;
  }
}


/* =========================================================
   Reduzierte Bewegung
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  #top .gcgf-afe-intro__slide,
  #top .gcgf-afe-intro__button,
  #top .gcgf-afe-intro__benefit,
  #top .gcgf-afe-intro__benefit-link span {
    transition: none;
  }
}

