/* ==========================================================
   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: 520px;
  overflow: hidden;
}


/* Hintergrundbild */

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


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

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


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

.page-hero__content {
  position: relative;

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


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

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

  margin: 0 0 1.75rem;

  color: #fff;

  font-family: "Anton", "Arial Narrow", sans-serif;
  font-size: clamp(3.25rem, 5vw, 5rem);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.05;
  letter-spacing: -.025em;

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

  text-wrap: balance;
}




/* ==========================================================
   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;
  gap: .75rem;

  min-height: 58px;

  padding: .9rem 1.5rem;

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

  text-align: center;
  text-transform: none;

  border-width: 2px;
  border-radius: 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-block: 4rem;
  }

  /* ------------------------------------------------------
     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;
  }


  /* ==========================================================
     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;
    }


    /* ======================================================
       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;
    }

  }


  /* ==========================================================
     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;
    }

  }


  /* ==========================================================
     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;
    }

  }
}
