/* ==========================================================
   BASE
   ========================================================== */

.page-hero {
  position: relative;
  display: block;
  width: 100%;
  color: #fff;
  background: #2b2c2a;
  overflow: hidden;
}


/* ==========================================================
   HERO VISUAL / BILDBEREICH
   ========================================================== */

.page-hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 720px;
  overflow: hidden;
}


/* Hintergrundbild */

.page-hero__background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}


/* Dunkler Verlauf über dem Hintergrundbild */

.page-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, .72) 0%,
      rgba(0, 0, 0, .32) 80%,
      rgba(0, 0, 0, .12) 100%
    );
}


/* ==========================================================
   HERO CONTAINER
   ========================================================== */

.page-hero__container {
  position: relative;
  z-index: 2;
  width: 100%;
}


/* ==========================================================
   HERO CONTENT
   ========================================================== */

.page-hero__content {
  position: relative;

  width: 100%;
  max-width: 850px;

  /*
   * Platz für die Feature-Leiste.
   * Diese liegt ab 768px über dem unteren Bildbereich.
   */
  padding-top: 4rem;
  padding-bottom: 10rem;
}


/* ==========================================================
   HEADLINE
   ========================================================== */

.page-hero__headline {
  width: 100%;
  max-width: 960px;

  margin: 0 0 1.75rem;

  color: #fff;

  font-size: clamp(3.25rem, 5vw, 5rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -.025em;

  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;

  text-wrap: balance;
}


.page-hero__supraheader {
  margin: 0 0 14px;

  font-family: Oswald, sans-serif;
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
}


/* ==========================================================
   TEXT
   ========================================================== */

.page-hero__text {
  width: 100%;
  max-width: 760px;

  margin: 0 0 2rem;

  color: #fff;

  font-size: 1.18rem;
  font-weight: 400;
  line-height: 1.4;

  overflow-wrap: normal;
  word-break: normal;
}


.page-hero__text p:last-child {
  margin-bottom: 0;
}


/* ==========================================================
   BUTTONS
   ========================================================== */

.page-hero__buttons {
  display: flex;
  flex-wrap: wrap;

  gap: 1rem;

  width: 100%;

  margin-top: 2rem;
}


.page-hero__buttons .btn {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  min-height: 58px;

  padding: .9rem 1.5rem;

  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;

  text-align: center;
  text-transform: uppercase;

  border-width: 2px;
  border-radius: 0;
}


/* ==========================================================
   FEATURES
   Desktop: über dem unteren Bildbereich
   ========================================================== */

.page-hero__features {
  position: absolute;

  right: 0;
  bottom: 0;
  left: 0;

  z-index: 3;

  width: 100%;

  background: rgba(43, 44, 42, .70);
}


.page-hero__features > .container {
  width: 100%;
}


.page-hero__features .row {
  display: flex;
  flex-wrap: wrap;

  align-items: stretch;
}


/* ==========================================================
   FEATURE
   ========================================================== */

.page-hero__feature {
  width: 100%;
  height: 100%;

  min-height: 130px;

  padding: 1.75rem 2rem;

  border-right: 1px solid rgba(255, 255, 255, .20);
}


/* Letztes Desktop-Element ohne rechte Border */

.page-hero__features .row > div:last-child .page-hero__feature {
  border-right: 0;
}


/* Feature Überschrift */

.page-hero__feature-headline {
  margin: 0 0 .5rem;

  color: #fff;

  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
}


/* Feature Text */

.page-hero__feature-text {
  margin: 0;

  color: rgba(255, 255, 255, .75);

  font-size: .9rem;
  font-weight: 400;
  line-height: 1.45;
}


/* ==========================================================
   DESKTOP
   >= 992px

   Erstes Feature links exakt an der Containerkante.
   Letztes Feature rechts ohne zusätzliches Außenpadding.
   ========================================================== */

@media (min-width: 992px) {

  .page-hero__features .row > div:first-child .page-hero__feature {
    padding-left: 0;
  }


  .page-hero__features .row > div:last-child .page-hero__feature {
    padding-right: 0;
  }
}


/* ==========================================================
   TABLET
   768px - 991px

   Features bleiben über dem Bild und wechseln auf 2 x 2.

   Feature 1 und 3 bilden die linke Spalte und werden
   an derselben linken Containerkante wie Hero-Text
   und Buttons ausgerichtet.
   ========================================================== */

@media (min-width: 768px) and (max-width: 991.98px) {

  /* ------------------------------------------------------
     Hero Visual
     ------------------------------------------------------ */

  .page-hero__visual {
    min-height: 680px;
  }


  /* ------------------------------------------------------
     Content
     ------------------------------------------------------ */

  .page-hero__content {
    max-width: 800px;

    padding-top: 4rem;

    /*
     * Platz für die 2 x 2 Feature-Leiste.
     */
    padding-bottom: 19rem;
  }


  /* ------------------------------------------------------
     Headline
     ------------------------------------------------------ */

  .page-hero__headline {
    max-width: 800px;

    font-size: clamp(3rem, 7vw, 4.5rem);
  }


  /* ------------------------------------------------------
     Text
     ------------------------------------------------------ */

  .page-hero__text {
    max-width: 800px;

    font-size: 1.1rem;
  }


  /* ------------------------------------------------------
     Feature Grid 2 x 2
     ------------------------------------------------------ */

  .page-hero__features .row > div {
    flex: 0 0 50%;

    width: 50%;
    max-width: 50%;
  }


  .page-hero__feature {
    min-height: 125px;

    padding: 1.5rem;
  }


  /*
   * Linke Feature-Spalte:
   *
   * 1 | 2
   * -----
   * 3 | 4
   *
   * Feature 1 und 3 beginnen exakt an derselben
   * Containerkante wie Hero-Text und Buttons.
   */

  .page-hero__features .row > div:nth-child(odd) .page-hero__feature {
    padding-left: 0;
  }


  /* obere Zeile */

  .page-hero__features .row > div:nth-child(-n+2) .page-hero__feature {
    border-bottom: 1px solid rgba(255, 255, 255, .20);
  }


  /* rechte Spalte */

  .page-hero__features .row > div:nth-child(2n) .page-hero__feature {
    border-right: 0;
  }


  /*
   * Rechtes Außenpadding der rechten Feature-Spalte
   * entfernen, damit auch die rechte Außenkante sauber
   * mit dem Container abschließt.
   */

  .page-hero__features .row > div:nth-child(even) .page-hero__feature {
    padding-right: 0;
  }
}


/* ==========================================================
   MOBILE
   < 768px

   Features liegen nicht mehr über dem Bild.
   Sie stehen als eigener Bereich unter page-hero__visual.
   ========================================================== */

@media (max-width: 767.98px) {

  .page-hero {
    display: block;

    width: 100%;

    overflow: hidden;
  }


  /* ======================================================
     HERO VISUAL
     ====================================================== */

  .page-hero__visual {
    position: relative;

    display: block;

    width: 100%;
    min-height: 0;

    overflow: hidden;
  }


  .page-hero__background {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center center;
  }


  /*
   * Auf Mobile gleichmäßigerer Verlauf,
   * damit der Text unabhängig vom Bild lesbar bleibt.
   */

  .page-hero__overlay {
    position: absolute;
    inset: 0;

    z-index: 1;

    background:
      linear-gradient(
        90deg,
        rgba(0, 0, 0, .72) 0%,
        rgba(0, 0, 0, .48) 100%
      );
  }


  /* ======================================================
     CONTAINER
     ====================================================== */

  .page-hero__container {
    position: relative;

    z-index: 2;

    width: 100%;
    max-width: 100%;

    padding-right: 1.5rem;
    padding-left: 1.5rem;
  }


  /* ======================================================
     CONTENT
     ====================================================== */

  .page-hero__content {
    position: relative;

    width: 100%;
    max-width: none;

    /*
     * Kein zusätzlicher Platz für die Features nötig.
     * Sie stehen außerhalb des Visual-Bereichs.
     */
    padding-top: 3rem;
    padding-bottom: 3rem;
  }


  /* ======================================================
     HEADLINE
     ====================================================== */

  .page-hero__headline {
    width: 100%;
    max-width: none;

    margin: 0 0 1.5rem;

    font-size: clamp(2.75rem, 10vw, 4rem);
    line-height: 1;

    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;

    text-wrap: wrap;
  }


  /* ======================================================
     TEXT
     ====================================================== */

  .page-hero__text {
    width: 100%;
    max-width: none;

    margin: 0 0 1.75rem;

    font-size: 1.18rem;
    line-height: 1.5;

    overflow-wrap: normal;
    word-break: normal;
  }


  /* ======================================================
     BUTTONS
     ====================================================== */

  .page-hero__buttons {
    display: flex;
    flex-wrap: wrap;

    gap: .75rem;

    width: 100%;

    margin-top: 1.5rem;
  }


  .page-hero__buttons .btn {
    min-height: 52px;

    padding: .8rem 1.25rem;

    font-size: .95rem;
  }


  /* ======================================================
     FEATURES

     Eigener Bereich unter dem Hero-Bild.
     ====================================================== */

  .page-hero__features {
    position: relative;

    top: auto;
    right: auto;
    bottom: auto;
    left: auto;

    z-index: auto;

    display: block;

    width: 100%;

    margin: 0;

    background: #2b2c2a;
  }


  .page-hero__features > .container {
    width: 100%;
    max-width: 100%;

    padding-right: 0;
    padding-left: 0;
  }


  .page-hero__features .row {
    display: flex;
    flex-wrap: wrap;

    width: 100%;

    margin-right: 0;
    margin-left: 0;
  }


  /*
   * Features 2 x 2.
   */

  .page-hero__features .row > div {
    flex: 0 0 50%;

    width: 50%;
    max-width: 50%;

    padding-right: 0;
    padding-left: 0;
  }


  .page-hero__feature {
    width: 100%;
    height: 100%;

    min-height: 0;

    padding: 1.5rem;

    border-right: 1px solid rgba(255, 255, 255, .20);
    border-bottom: 1px solid rgba(255, 255, 255, .20);
  }


  /* rechte Spalte */

  .page-hero__features .row > div:nth-child(2n) .page-hero__feature {
    border-right: 0;
  }


  /* letzte Zeile */

  .page-hero__features .row > div:nth-last-child(-n+2) .page-hero__feature {
    border-bottom: 0;
  }


  /* ======================================================
     FEATURE TYPO
     ====================================================== */

  .page-hero__feature-headline {
    margin: 0 0 .5rem;

    font-size: 1.15rem;
    line-height: 1.25;
  }


  .page-hero__feature-text {
    margin: 0;

    font-size: 1rem;
    line-height: 1.45;
  }
}


/* ==========================================================
   KLEINE SMARTPHONES
   < 576px
   ========================================================== */

@media (max-width: 575.98px) {

  /* ======================================================
     CONTAINER
     ====================================================== */

  .page-hero__container {
    padding-right: 1.25rem;
    padding-left: 1.25rem;
  }


  /* ======================================================
     CONTENT
     ====================================================== */

  .page-hero__content {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }


  /* ======================================================
     HEADLINE
     ====================================================== */

  .page-hero__headline {
    margin-bottom: 1.25rem;

    font-size: clamp(2.5rem, 11vw, 3.25rem);
    line-height: 1;
  }


  /* ======================================================
     TEXT
     ====================================================== */

  .page-hero__text {
    margin-bottom: 1.5rem;

    font-size: 1.05rem;
    line-height: 1.5;
  }


  /* ======================================================
     BUTTONS
     ====================================================== */

  .page-hero__buttons {
    display: grid;

    grid-template-columns: 1fr;

    gap: .75rem;

    width: 100%;

    margin-top: 1.5rem;
  }


  .page-hero__buttons .btn {
    width: 100%;

    min-height: 52px;

    padding: .8rem 1rem;

    font-size: .9rem;
  }


  /* ======================================================
     FEATURES
     ====================================================== */

  .page-hero__feature {
    padding: 1.5rem;
  }


  .page-hero__feature-headline {
    font-size: 1.05rem;
    line-height: 1.25;
  }


  .page-hero__feature-text {
    font-size: .95rem;
    line-height: 1.4;
  }
}


/* ==========================================================
   SEHR KLEINE SMARTPHONES
   < 400px

   Features wechseln auf eine Spalte.
   ========================================================== */

@media (max-width: 399.98px) {

  /* ======================================================
     HERO
     ====================================================== */

  .page-hero__container {
    padding-right: 1rem;
    padding-left: 1rem;
  }


  .page-hero__content {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }


  /* ======================================================
     HEADLINE
     ====================================================== */

  .page-hero__headline {
    margin-bottom: 1.25rem;

    font-size: 2.5rem;
    line-height: 1.02;
  }


  /* ======================================================
     TEXT
     ====================================================== */

  .page-hero__text {
    font-size: 1rem;
    line-height: 1.5;
  }


  /* ======================================================
     FEATURES: 1 Spalte
     ====================================================== */

  .page-hero__features .row > div {
    flex: 0 0 100%;

    width: 100%;
    max-width: 100%;
  }


  .page-hero__feature {
    padding: 1.25rem;

    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .20);
  }


  /*
   * Die Mobile-Regel für die letzten beiden Elemente
   * wieder zurücksetzen.
   */

  .page-hero__features .row > div:nth-last-child(-n+2) .page-hero__feature {
    border-bottom: 1px solid rgba(255, 255, 255, .20);
  }


  /*
   * Nur das letzte Feature ohne untere Linie.
   */

  .page-hero__features .row > div:last-child .page-hero__feature {
    border-bottom: 0;
  }


  .page-hero__feature-headline {
    font-size: 1.1rem;
    line-height: 1.25;
  }


  .page-hero__feature-text {
    font-size: .95rem;
    line-height: 1.4;
  }
}