.wp-block-group {
  margin: 0 $container-padding;
  margin-bottom: $global-padding*5;

  .wp-block-group__inner-container {
    .wp-block-media-text:last-child {
      .wp-block-media-text__content {
        padding-left: 0;
      }
    }
  }

  h2 {
    text-transform: uppercase;
    color: $brand-primary;

    @media only screen and (max-width: 350px) {
      font-size: 1rem;
    }
  }

  h2:focus {
    outline: none;
  }

  &.amds-benefits {
    margin-left: 0;
    margin-right: 0;

    padding: $global-padding*5 $container-padding;

    h2 {
      margin-bottom: $global-padding*3;
    }
  }

  &.background {
    h2, h3, p, a {
      color: $brand-white;
    }

    &.primary {
      background: $brand-primary;
    }

    &.secondary {
      background: $brand-secondary;
    }
  }

  &.content-header {
    margin: 0;
    position: relative;
    top: -$global-padding;
    width: calc(100vw - 17px);
    height: 100vh;

    text-align: center;

    h1 {
      color: $brand-white;
      position: relative;
      top: 75vh;

      line-height: 1.2;
      max-width: 540px;
      margin: 0 auto;
    }

    h2 {
      color: $brand-white;
      position: relative;
      top: 75vh;
    }

    &.background {
      &.primary {
        left: 0;
        // background: $brand-primary url("/wp-content/themes/meg/static/images/icons/MEG-Metall_weiss.svg") no-repeat center/22%;
        background: $brand-primary url("/wp-content/themes/meg/static/images/icons/20200618-schweissgeraet.png") no-repeat center/21%;
      }

      &.secondary {
        background: $brand-secondary url("/wp-content/themes/meg/static/images/icons/MEG-Batterie_weiss.svg") no-repeat center/20%;
      }
    }

    &.image-mixed {
      left: 0;
    }

    @media only screen and (max-width: 1440px) {
      width: 100vw;

      h1 {
        font-size: 1.75rem;
      }
    }

    @media only screen and (max-width: 1280px) {
      h1 {
        font-size: 1.625rem;
      }
    }

    @include breakpoint(large down) {
      h1 {
        font-size: 1.5rem;
        top: 71vh;
      }

      h2 {
        top: 73vh;
      }
    }

    @include breakpoint(medium down) {
      &.background {
        &.primary {
          // background: $brand-primary url("/wp-content/themes/meg/static/images/icons/MEG-Metall_weiss.svg") no-repeat center 35%/55%;
          background: $brand-primary url("/wp-content/themes/meg/static/images/icons/20200618-schweissgeraet.png") no-repeat center/35%;
        }

        &.secondary {
          background: $brand-secondary url("/wp-content/themes/meg/static/images/icons/MEG-Batterie_weiss.svg") no-repeat center/33%;
        }
      }
    }

    @include breakpoint(small down) {
      height: 102vh;

      h1 {
        font-size: 1.25rem;
        top: 65vh;
      }

      h2 {
        top: 67vh;
      }

      &.background {
        &.primary {
          // background: $brand-primary url("/wp-content/themes/meg/static/images/icons/MEG-Metall_weiss.svg") no-repeat center 35%/55%;
          background: $brand-primary url("/wp-content/themes/meg/static/images/icons/20200618-schweissgeraet.png") no-repeat center 35%/55%;
        }

        &.secondary {
          background: $brand-secondary url("/wp-content/themes/meg/static/images/icons/MEG-Batterie_weiss.svg") no-repeat center 35%/50%;
        }
      }
    }

    @media only screen and (max-width: 328px) {
      h1 {
        font-size: 1rem;
        padding: 0 10px;
        top: 60vh;
      }

      h2 {
        top: 62vh;
      }

      &.background {
        &.primary {
          // background: $brand-primary url("/wp-content/themes/meg/static/images/icons/MEG-Metall_weiss.svg") no-repeat center 35%/50%;
          background: $brand-primary url("/wp-content/themes/meg/static/images/icons/20200618-schweissgeraet.png") no-repeat center 35%/50%;
        }

        &.secondary {
          background: $brand-secondary url("/wp-content/themes/meg/static/images/icons/MEG-Batterie_weiss.svg") no-repeat center 35%/46%;
        }
      }
    }
  }

  &.content-header-mini {
    height: 400px;
    margin: 0;
    margin-bottom: $global-padding;
    position: relative;
    top: -$global-padding*2;
    width: calc(100vw - 17px);

    .wp-block-group__inner-container {
      position: absolute;
      bottom: 48px;
      width: 100%;

      h1 {
        color: $brand-white;
      }
    }

    @include breakpoint(large down) {
      width: 100vw;
    }
  }

  &.footer-contact {
    background: $brand-primary url("/wp-content/themes/meg/static/images/MEG-Logo-white.svg") 10vw 18% no-repeat !important;
    background-size: 150px !important;
    position: relative;
    margin-bottom: 0;
    margin-left: 0;
    padding: $global-padding*2 $container-padding;
    width: calc(100vw - 17px);

    @media only screen and (max-width: 1440px) {
      width: 100vw;
    }

    @include breakpoint(small down) {
      background: $brand-primary url("/wp-content/themes/meg/static/images/MEG-Logo-white.svg") 10vw 8% no-repeat !important;
      background-size: 120px !important;
    }

    color: $brand-white;

    h3 {
      margin-bottom: $global-padding;

      color: $brand-white;
      font-family: $brand-font-bold;
      line-height: 1.2;
    }

    p {
      font-size: $small-font-size;
      line-height: 1.5;
    }

    strong:hover {
      color: $brand-secondary;
    }
  }

  &.impression {
    margin: 0;
    position: relative;
    top: -68px;
  }

  &.meg-contact-tabs {
    .wp-block-columns {
      margin-bottom: 90px;
      padding-top: 0;
    }
  }

  &.meg-contact-tabs,
  &.meg-contact-form {
    margin: 0 25vw 100px 25vw;

    input,
    textarea {
      background-color: $brand-gray;
      border: none;
    }

    label {
      font-size: 0.75rem;
      font-weight: 500;

      span {
        color: $brand-secondary !important;
      }
    }

    .btn {
      background-color: $brand-primary;
      color: $brand-white;
      font-size: 0.75rem;
      margin-top: 10px;
      padding: 5px 80px;
    }

    .btn:hover {
      background-color: $brand-secondary;
      color: $brand-white;
    }
  }

  &.meg-contact-call {
    margin-top: $global-padding*3;

    strong {
      color: $brand-primary;
      font-family: $brand-font-bold;
      font-size: 1.25rem;
      text-transform: uppercase;

      a:hover {
        color: $brand-secondary;
      }
    }
  }

  &.impressum-content,
  &.privacy-content {
    h4 {
      margin-top: 2rem;
    }

    a:hover {
      color: $brand-secondary;
    }
  }

  &.wp-text-only {
    padding: $global-padding*2 $global-padding*5;
    margin-top: $global-padding;

    h1 {
      color: $brand-primary;
      text-transform: uppercase;
    }

    @include breakpoint(small down) {
      padding: 40px 0;
    }
  }

  @include breakpoint(small down) {
    margin-bottom: $global-padding*3;

    &.amds-benefits {
      padding: $global-padding*4 $container-padding;

      h2 {
        margin-bottom: $global-padding*2;
      }
    }

    &.content-header-mini {
      .wp-block-group__inner-container {
        padding: 0 $global-padding;
      }
    }

    &.meg-contact-tabs,
    &.meg-contact-form {
      margin: 0 $container-padding 100px $container-padding;
    }
  }
}