/* signup */
.signup-teaser {
  .signup-teaser__wrapper {
    display: flex;
    flex-direction: column;

    @media (width >= 768px) {
      flex-direction: row;
    }

    .signup-teaser__container {
      background-color: var(--primary-color);
      color: var(--tertiary-color);
      padding-block: var(--spacing-medium);

      @media (width >= 768px) {
        flex: 0 0 50.261%;
        padding-block: var(--spacing-xs) var(--spacing-xs);
        padding-inline: var(--container-margin) 46px;
      }

      @media (width >= 1024px) {
        padding-block: 50px;
        padding-inline: var(--container-margin) 25px;
        flex: 0 0 50.8053%;
      }

      .signup-teaser__content {
        display: flex;
        flex-direction: column;
        white-space: normal;
        overflow-wrap: break-word;
        gap: var(--spacing-small);
        color: var(--tertiary-color);
        box-sizing: border-box;

        .signup-teaser__title h1,
        h2,
        h3,
        h4,
        h5,
        h6 {
          font-feature-settings: var(--font-settings);
          font-size: var(--fs-xlarge);
          font-weight: var(--fw-400);
          line-height: 2.9rem;
          max-width: 291px;

          @media (width >= 1024px) {
            font-size: var(--fs-xxlarge);
            line-height: 4rem;
            max-width: 311px;
          }
        }

        .signup-teaser__description {
          font-weight: var(--fw-300);
          font-size: var(--fs-xsmall);
          line-height: var(--lh-small);

          @media (width >= 1024px) {
            font-weight: var(--fw-400);
            font-size: var(--fs-medium);
            line-height: var(--lh-large);
          }
        }

        .signup-teaser__description-divider {
          width: 100%;
          height: 1px;
          background-color: var(--box-border);
          margin-block: var(--spacing-small) 0;
        }
      }

      .signup-teaser__actions {
        padding-block: var(--spacing-medium) 0;
        display: flex;
        flex-direction: column;
        gap: var(--spacing-xs);

        @media (width >= 768px) {
          gap: 0;
          flex-direction: row;
          justify-content: space-between;
        }

        .signup-teaser__link {
          text-align: right;

          .signup-teaser__cta {
            color: var(--tertiary-color);
            font-size: var(--fs-xsmall);
            font-feature-settings: var(--font-settings);
            font-style: italic;
            font-weight: var(--fw-300);
            line-height: var(--lh-large);
            text-decoration: underline;
            text-decoration-skip-ink: none;
            text-underline-position: from-font;
          }
        }

        .signup-teaser__signup.button.button--tertiary {
          all: unset;
          display: inline;
          color: var(--tertiary-color);
          text-decoration-line: underline;
          text-decoration-skip-ink: none;
          text-underline-position: from-font;
          font-size: var(--fs-medium);
          font-weight: var(--fw-500);
          line-height: 2.2rem;
          cursor: pointer;

          &:hover:not(:disabled, .disabled) {
            color: var(--tertiary-color);
          }
        }
      }
    }

    .signup-teaser__media {
      background: var(--color-background-light);

      .signup-teaser__image {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: contain;
      }
    }
  }
}

/* cards teaser and bnpl teaser have same styles  apart from the divider as of now - but different selectors for further customization */
.signup-teaser--cards_teaser, .signup-teaser--bnpl_teaser {
  background-color: var(--teaser-background-color);
  padding-block: 21px 26px;

  @media (width >= 768px) {
    padding-block: var(--spacing-big);
  }

  @media (width >= 1024px) {
    padding-block: 50px;
  }

  .signup-teaser__wrapper {
    @media (width >= 768px) {
      display: flex;
      justify-content: space-between;
    }

    .signup-teaser__container {
      all: unset;

      @media (width >= 768px) {
        display: flex;
        flex-direction: column;
        flex: 0 0 48.099%;
      }

      @media (width >= 1024px) {
        flex: 0 0 38.099%;
      }

      .signup-teaser__content {
        gap: 0;
        padding: 0;

        @media (width >= 768px) {
          flex: unset;
        }

        @media (width >= 1024px) {
          gap: 22px;
        }

        .signup-teaser__title h1,
        h2,
        h3,
        h4,
        h5,
        h6 {
          font-size: var(--fs-large);
          font-weight: var(--fw-600);
          line-height: var(--lh-xlarge);
          margin-block: 0 var(--spacing-small);
          max-width: unset;

          @media (width >= 768px) {
            font-size: var(--fs-xlarge);
            line-height: 2.9rem;
          }

          @media (width >= 1024px) {
            max-width: unset;
            font-size: 3rem;
            font-weight: var(--fw-600);
            line-height: 3.7rem;
            margin-block: 0;
          }
        }

        .signup-teaser__subtitle {
          display: block;
          font-feature-settings: var(--font-settings);
          font-size: var(--fs-medium);
          font-weight: var(--fw-400);
          line-height: var(--lh-medium);
          margin-block: 0 var(--spacing-xxsmall);

          @media (width >= 768px) {
            font-size: var(--fs-medium);
            line-height: 2.3rem;
            margin-block: 0 var(--spacing-xsmall);
          }

          @media (width >= 1024px) {
            font-size: 1.9rem;
            line-height: 2.3rem;
            margin-bottom: 0;
          }
          
          @media (width >= 1200px) {
            width: 95%;
            text-align: justify;
          }
        }

        .signup-teaser__description {
          font-weight: var(--fw-300);
          font-size: var(--fs-xsmall);
          line-height: var(--lh-small);
          margin-block: 0 var(--spacing-small);

          @media (width >= 768px) {
            font-weight: var(--fw-400);
          }

          @media (width >= 1024px) {
            font-size: var(--fs-small);
            font-weight: var(--fw-300);
            line-height: 2.1rem;
            margin: 0;
          }
        }
      }

      .signup-teaser__actions {
        font-feature-settings: var(--font-settings);
        display: flex;
        flex-direction: row;
        align-items: center;
        padding-block: 0;
        justify-content: space-between;

        @media (width >= 1024px) {
          padding-block: 22px 0;
        }

        .signup-teaser__buttonwrapper {
          .button.button--tertiary {
            font-size: var(--fs-small);
            font-weight: var(--fw-400);
            line-height: var(--lh-small);

            @media (width >= 768px) {
              font-size: 1.5rem;
              font-weight: var(--fw-500);
              line-height: 2.1rem;
            }
          }
        }

        .signup-teaser__link {
          .signup-teaser__cta {
            font-size: var(--fs-xsmall);
            line-height: 2.2rem;

            @media (width >= 768px) {
              font-size: 1.1rem;
            }

            @media (width >= 1024px) {
              font-size: var(--fs-xsmall);
            }
          }
        }
      }
    }

    .signup-teaser__media {
      background: none;
      margin: var(--spacing-l) 0;

      @media (width >= 768px) {
        margin: 0;
      }

      .signup-teaser__picture {
        position: relative;

        &::before {
          content: '';
          background: linear-gradient(268deg, var(--gradient-color) 65.45%, var(--teaser-background-color) 98.55%);
          width: 100%;
          height: 100%;
          position: absolute;
        }
      }

      .signup-teaser__image {
        aspect-ratio: 80 / 41;

        @media (width >= 768px) {
          aspect-ratio: 356 / 219.47;
        }

        @media (width >= 1024px) {
          aspect-ratio: 123/ 66.4;
        }
      }
    }
  }

  .signup-teaser__steps {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    color: var(--dark-primary);

    .signup-teaser__step {
      flex: 1 1 calc(50% - 0.5rem);
      box-sizing: border-box;
      padding: var(--container-margin) var(--spacing-small);
      display: flex;
      flex-direction: column;
      gap: var(--spacing-xsmall);

      .signup-teaser__step-image {
        height: 24px;
        width: 24px;
        margin-block: 0 var(--spacing-xsmall);

        @media (width >= 768px) {
          height: 32px;
          width: 32px;
        }

        @media (width >= 1024px) {
          margin-block: 0 var(--spacing-xxsmall);
          height: 40px;
          width: 40px;
        }
      }

      .signup-teaser__step-subtitle > *{
        font-weight: var(--fw-400);
        font-size: var(--fs-small);
        line-height: 1.7rem;

        @media (width >= 768px) {
          font-size: var(--fs-medium);
          line-height: 2.2rem;
        }

        @media (width >= 1024px) {
          font-size: var(--fs-xmedium);
          line-height: 2.5rem;
        }
      }

      .signup-teaser__step-description {
        font-size: var(--fs-xsmall);
        font-weight: var(--fw-300);
        line-height: var(--lh-xsmall);

        @media (width >= 768px) {
          font-weight: var(--fw-400);
          line-height: var(--lh-small);
        }

        @media (width >= 1024px) {
          font-size: var(--fs-small);
          line-height: 2.1rem;
        }
      }
    }

    .signup-teaser__step:nth-child(2),
    .signup-teaser__step:nth-child(5) {
      background-color: var(--nexa-tertiary-light-grey);
    }

    .signup-teaser__step:nth-child(3),
    .signup-teaser__step:nth-child(4) {
      background-color: var(--ui-surface-flat-high);
    }

    @media (width >= 768px) {
      .signup-teaser__step {
        flex: 1 1 25%;
        padding: var(--spacing-small);
        gap: var(--spacing-xsmall);

        @media (width >= 1024px) {
          padding: var(--spacing-xbig);
          gap: var(--spacing-xs);
        }
      }

      .signup-teaser__step:nth-child(even) {
        background-color: var(--nexa-tertiary-light-grey);
      }

      .signup-teaser__step:nth-child(odd) {
        background-color: var(--shimmer-bg);
      }
    }
  }
}