@use '../../_global/styles/mixins' as *;
@use '../../_global/styles/vars' as *;
.eventoverview-section{
  margin: 0;
  .tilescontainer{
    margin-top: calc(-138px / 2);
    > .row > .col{
      padding-top:0;
      margin-top:0;
    }
  }
}
.eventoverview-stage {
  background-image: url('./hero-veranstaltung-gfx.jpg');
  background-size: cover;
  color: var(--color-text);
  min-height: calc(18vw + 400px);
  display: flex;
  align-items: center;
  margin: 0;

  &.background-image {
    position: relative;
    background-size: cover;
    background-position: 50% 50%;
    .copyright {
      @include copyright;
      @media(max-width: 629px) {
        bottom: 240px;
        left: calc(100% - 8px);
      }
      @media(min-width: 630px) and (max-width: 999px) {
        bottom: 100px;
        left: calc(100% - 8px);
      }
    }
  }

  &.first-element {
    @media(min-width: 1400px) {
      margin-top: -60px;
    }
  }
  form{
    position:relative;
    input.search-field{
      height:60px;
      padding: 14px 90px 14px 24px;
    }
    button.search-submit{
      width: 60px;
      height: 60px;
      border-radius: 24px;
      &:before{
        font-size:30px;
      }
    }
  }
  .kicker {
    margin-bottom: 0.6em;
  }

  .stagetext-box {
    max-width: 580px;
    padding: calc(30px + 1vw) 0;
  }

  .stagetext-box a:not(.btn) {
    color: var(--color-text);
    + .btn {
      margin-left: 30px;
    }
  }

  //.progress {
  //  --color-bg: var(--swatches-neutrals-white);
  //  --color-fg: var(--swatches-neutrals-white);
  //  --bg-opacity: 0.4;
  //
  //  + h1, + .text-2 {
  //    margin-top: 0.7em;
  //  }
  //}

  &.image-stage {
    position: relative;
    background-image: none;
    background-color: var(--color-button-primary-text);
    overflow: hidden;
    z-index: 1;

    &::before {
      content: "";
      position: absolute;
      left: 0;
      right: 50%;
      top: 0;
      bottom: 0;
      margin: -15% 0 -15% 0;
      background-color: var(--color-background);
    }

    .stagetext-box {
      position: relative;
    }

    .image-box {
      position: absolute;
      left: 45%;
      right: 0;
      top: 0;
      bottom: 0;
      z-index: -1;

      img {
        position: relative;
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        opacity: 1;
        transition: 0.4s ease;

        &.loading {
          opacity: 0;
        }
      }
    }

    @media(max-width: 1200px) {
      &::before {
        min-width: 560px;
      }

      .stagetext-box {
        max-width: 480px;
      }
    }

    @media(min-width: 1000px) {
      &::before {
        border-top-right-radius: 28% 50%;
        border-bottom-right-radius: 28% 50%;
        min-width: 650px;
      }
    }

    @media(max-width: 999px) {
      padding-bottom: 75%;

      &::before {
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        margin: 0 -28% 67%;
        border-bottom-left-radius: 50% 28%;
        border-bottom-right-radius: 50% 28%;
        min-width: 0;
      }

      .col {
        padding: 0 var(--col-padding);
      }

      .image-box {
        position: absolute;
        top: auto;
        left: 0;

        &::before {
          content: '';
          position:  relative;
          display: block;
          padding-top: 75%;
        }

        img {
          position: absolute;
          top: 0;
          left: 0;
        }
      }

      .stagetext-box {
        max-width: none;
        margin-bottom: 0;
        padding-bottom: 24px;
      }
    }
  }
}

.tiles {
  background: linear-gradient(0deg, 0%, 100%), linear-gradient(88deg, #003366 0%, rgba(1.01, 40.28, 80.75, 0.86) 54%, rgba(0, 51, 102, 0) 100%);
  &.row {
    margin: -10px;
    @media(min-width: 1481px) {
      flex-wrap: nowrap;
    }
  }


  .icon-box {
    font-size: 40px !important;
    margin-top:0 !important;
  }
  .title {
    font-weight: 400;
    font-size: 20px;
    line-height:21px;
    margin: 8px 0 5px 0 !important;
  }

  .col {
    position: relative;
    display: flex;
    flex: 1 1 100%;
    max-width: 100%;
    padding: 10px;
    @media(max-width: 1480px) {
      flex: 1 1 33.3333333333%;
      max-width: 33.3333333333%;
    }
    @media(max-width: 767px) {
      padding: 6px;
      flex: 1 1 50%;
      max-width: 50%;
    }
    @media (max-width: 767px) {
      &:nth-child(2n+1):last-child {
        flex: 1 1 100%;
        max-width: 100%;
      }
    }
    &.width-half{
      @media(max-width: 1480px) {
        flex: 1 1 50%;
        max-width: 50%;
      }
      + .width-half{
        @media(max-width: 767px) {
          flex: 1 1 100%;
          max-width: 100%;
        }
      }

    }
    &.width-third{
      flex: 1 1 25%;
      max-width: 25%;
      @media(max-width: 1480px) {
        flex: 1 1 50%;
        max-width: 50%;
      }
    }
    .topic-teaser{
      --topic-tile-padding: 10px;
      border-radius: 0.75rem;
      //box-shadow: 0px 0px 15px 0px rgba(0, 51, 102, 0.20), 0px 0px 46px 0px rgba(0, 51, 102, 0.12), 0px 0px 38px 0px rgba(0, 51, 102, 0.14);
      box-shadow: var(--theme-24dp);
      min-height:138px;
    }
  }

  &[data-type='list'] .col {
    @media(max-width: 567px) {
      max-width: 100%;
      flex: 1 1 100%;
    }
  }
}
