@use '../../_global/styles/mixins' as *;
@use '../../_global/styles/vars' as *;

.participation-teaser {
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: var(--color-background);
  overflow: hidden;
  width: 100%;
  border-radius: var(--border-radius-lg);
  padding: 24px;
  transition: 0.25s ease;
  text-decoration: none;
  font-size: var(--font-size-small);
  flex-flow: column;
  justify-content: space-between;
  @media(max-width: 999px) {
    padding: 14px;
  }

  @media(max-width: 767px) {
    font-size: 16px;
    min-height: 84px;
    border-radius: 8px;
  }

  &::before {
    content: "";
    position: absolute;
    display: block;
    height: 70px;
    background-color: var(--color-button-primary-background);
    margin: 0 -24px 10px;
    top: 0;
    left: 0;
    right: 0;
    @media(max-width: 567px) {
      margin-top: 0px;
    }
  }
  &::after {
    content: "";
    position: absolute;
    z-index: 10;
    display: block;
    height: 60px;
    background-color: var(--color-button-primary-text);
    mask-image: url('./topic-meinung.svg');
    mask-repeat: no-repeat;
    mask-position: center 65%;
    mask-size: 60px;
    top: 5px;
    left: 0;
    right: 0;
    @media(max-width: 567px) {
      font-size: 50px;
    }
  }
  .text-box {
    padding-top: 66px;
  }
  .like-h4, p, .buttons {
    margin: 0.5em 0;
  }

  .buttons {
    display: flex;
    justify-content: space-between;
    padding-top: 0.4em;
    @media screen and (max-width:1200px){
      flex-wrap:wrap;
    }
    .btn {
      @media screen and (max-width:1200px){
        margin-bottom:6px;
      }
      &:last-child {
        margin-left: auto;
        margin-left:12px;
        @media screen and (max-width:1200px){
          margin-left: 0;
        }
      }
    }
  }
}
