@use "../breakpoints";

standard-teaser {
  display: block;
  background-image: var(--teaser-background-image);
  background-color: var(--teaser-background-color);
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  width: 100%;
  height: 15rem;
  position: relative;
  // border-radius: 3px;
  padding: 1.5rem;

  .button {
    position: absolute;
    left: 50%;
    bottom: .5rem;
    transform: translateX(-50%);
    white-space: nowrap;
  }

  .wrapping-link, .action-button-teaser-wrapper {
    display: block;
    position: absolute;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    padding: 1rem;
    background-color: #fff;
    background-color: rgba(255, 255, 255, 1);
  }

  @include breakpoints.mq-md {
    .button {
      bottom: 2rem;
    }
  }

  @include breakpoints.mq-md($direction: "above") {
    .wrapping-link, .action-button-teaser-wrapper {
      right: 50%;
    }

    .action-button-teaser-wrapper .button {
      position: absolute;
      bottom: 0;
      right: -100%;
      right: calc(-100% - 2rem);
      left: auto;
    }
  }


  &.with-label {
    padding-bottom: 3.5rem;
  }

  .link-text {
    position: absolute;
    right: 1.5rem;
    bottom: 1rem;

    &:hover {
      text-decoration: underline;
    }
  }

  &.bright-font * {
    color: #fefefe;
  }

  .teaser-headline {
    font-size: 1rem;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 0.5rem;
  }

  .teaser-text {
    font-size: 0.875rem;
  }
}
