/* =====================================================================
   Layout refinements on top of the base stylesheet.
   Loaded last so these rules win.
   ===================================================================== */

/* ---- Large screens: scale the whole (rem-based) design proportionally
        instead of leaving a small layout in the middle of the screen. ---- */
@media screen and (min-width: 1600px) {
  html {
    font-size: clamp(16px, 1vw, 28px);
  }
}

/* ---- Hero: background colour spans the full viewport width ---- */
.section_hero {
  max-width: none;
}
.bottom-overlay svg {
  width: 100%;
  height: auto;
  display: block;
}

/* ---- Navigation: more room between the entries ---- */
@media screen and (min-width: 992px) {
  .nav_container {
    max-width: 90rem;
    grid-column-gap: 2rem;
  }
  .nav_brand {
    flex: 0 0 auto;
  }
  .nav_menu {
    width: auto;
    flex: 1 1 auto;
  }
  .nav_menu-wrapper {
    justify-content: center;
    grid-column-gap: 2.25rem;
  }
  .nav_menu_link {
    font-size: 1rem;
    white-space: nowrap;
  }
}
@media screen and (min-width: 992px) and (max-width: 1279px) {
  .nav_menu-wrapper {
    grid-column-gap: 1.25rem;
  }
  .nav_menu_link {
    font-size: 0.875rem;
  }
}

/* ---- Funnel section: use the available width ---- */
.funnel-section .funnel-heading,
.anfrage-hero {
  max-width: 56rem;
}
.funnel-steps {
  max-width: 75rem;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.funnel-steps_item {
  padding: 1.5rem 1.75rem;
  gap: 1rem;
}
.funnel-steps_num {
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.1rem;
}
.funnel-steps_title {
  font-size: 1.15rem;
}
.funnel-steps_text {
  font-size: 0.95rem;
}
.funnel-steps_arrow {
  right: -1.15rem;
}
.funnel {
  max-width: 75rem;
  min-height: 0;
  padding: 2.5rem 3rem 3rem;
}
.funnel_progress {
  max-width: 44rem;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}
.funnel_question {
  text-align: center;
  font-size: 1.75rem;
  margin-bottom: 1.75rem;
}
.funnel_hint,
.funnel_slide > .funnel_hint {
  text-align: center;
  margin: -1rem 0 1.75rem;
}
.funnel_slide .funnel_options {
  margin-top: 0;
  margin-bottom: 0;
}
.funnel_options {
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.funnel_options--two {
  grid-template-columns: repeat(2, 1fr);
  max-width: 44rem;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}
.funnel_option {
  padding: 1.75rem 1rem;
  font-size: 1.15rem;
}
.funnel_back--center {
  align-self: center;
  margin-top: 1.5rem;
}
.funnel_fields {
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.funnel_fields .funnel_textarea {
  grid-column: 1 / -1;
}
@media screen and (max-width: 767px) {
  .funnel {
    padding: 1.5rem;
  }
  .funnel_options {
    grid-template-columns: repeat(2, 1fr);
  }
  .funnel_fields {
    grid-template-columns: 1fr;
  }
  .funnel_question {
    font-size: 1.4rem;
  }
  .funnel_option {
    padding: 1.1rem 0.75rem;
    font-size: 1rem;
  }
}

/* ---- /anfrage: wide container for steps + form ---- */
.anfrage-section .container-medium {
  max-width: 75rem;
}

/* ---- "Unsere Referenzen" header above the customer videos ---- */
.videos_header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  max-width: 48rem;
}
.videos_header h2 {
  margin: 0;
}

/* ---- "Ihr Weg zur unabhängigen Energie": keep the heading clear of the
        diagonal orange stripe, which grows with the viewport width. ---- */
@media screen and (min-width: 992px) {
  .section_benefit {
    padding-top: calc(2.5rem + 6vw);
  }
}
