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

*:has(> .mini-teaser) {
  container-type: inline-size;
}

.mini-teaser {
  position: relative;
  background-color: var(--color-background);
  overflow: hidden;
  width: 100%;
  //max-width: 420px;
  border-radius: 4px;
  padding: 16px 12px;
  transition: 0.25s ease;
  line-height: 1.2;
  text-align: left;
  text-decoration: none;
  display: block;
  .title{
    font-size: 22px;
  }
  &.standard::before {
    content: "";
    position: absolute;
    display: block;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background-color: var(--color-border);
    transition: 0.2s ease;
  }
  &.standard:hover::before {
    height: 8px;
  }
  h4{
    font-size: 22px;
  }
  .text-box{
    position: relative;

    .mini-container {
      width: 100%;
      display: flex;
      flex-direction: column;
    }
  }
  &.infoteaser{
    @include gradient;
    position: relative;
    container-type: inline-size;

    &:after{
      @include gradient;
      content:"";
      position:absolute;
      left:0;
      right:0;
      top:0;
      bottom:0;
      z-index:-1;
    }
    &.background-image{
      background-size:cover;
      &:after{
        content:"";
        position:absolute;
        top:0;
        left:0;
        bottom:0;
        right:0;
        z-index: 0;
        opacity: 0.6;
        background: linear-gradient(87deg, #036 12.55%, rgba(1, 40, 81, 0.86) 56.52%, rgba(0, 51, 102, 0.00) 94.05%);
        background-blend-mode: overlay;
      }
      .text-box{
        position: relative;
        z-index: 1;
      }
    }
    .title, .category, .btn{
      color: var(--color-text);
    }
    .title{
      margin-top: 0;
      min-height: 48px;
      text-align: left;
      line-height: 24px;
      margin-bottom: 11px;
      width: 100%;
      &.noicon{
        padding-left: 0;
        min-height: 0;
        + .btn{
          margin-left: 0;
        }
      }
    }
    .icon-box + .title {
      padding-left: 54px;
    }
    .icon-box + .mini-container {
      padding-left: 54px;
    }
    .btn{
      background-color: transparent;
      border: 1px solid var(--color-button-primary-background);
      margin-left: 0;
      align-self: flex-end;
      display: inline-block;
      padding:8px 10px;
      line-height: 22px;
      border-radius:16px;
      --button-padding: 8px 10px;
      min-height: 0;
      font-size: 22px;
      &:after{
        border-radius:16px;
      }
    }
    .icon-box{
      margin-bottom: 19px;
      margin-top: 0;
      padding-top: 0;
      position: absolute;
      top: 0;
      left: 0;

    }
    .text-box{
      padding: 0;
      display: flex;
      flex-wrap: wrap;
    }
  }

  .icon-box {
    font-family: 'Pictograms', sans-serif;
    line-height: 1;
    color: var(--color-text);
    font-size:48px
  }
  .category{
    text-align: left;
    padding:0;
    margin:0;
    margin-bottom:8px;
    font-size:16px;
    text-transform: uppercase;
    line-height: 18px;
    font-family: 'Source Sans Pro', sans-serif;
  }
  .title{
    text-align: left;
    padding:0;
    margin:0;
  }
  .teaser--link {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
  }
}




