@charset "UTF-8";

.sidebar .linklist > li {
  margin-bottom: 6px;
  line-height: 1.4;

  > a {
    padding-left: 34px;

    &:before {
      top: 2px;
      font-size: 24px;
    }
  }
}

.linklist, .richtext .linklist {
  list-style: none;
  padding: 0;
  margin: 24px 0;

  @media(max-width: 767px) {
    margin: 18px 0;
  }

  > li {
    position: relative;
    margin: 0 0 8px;
    padding-left: 38px;

    &:after {
      display: none !important;
    }

    @media(max-width: 767px) {
      margin-bottom: 4px;
      padding-left: 32px;
    }

    > a {
      position: relative;
      display: inline-block;
      transition: 0.2s $easeOutQuad;
      transform: translate3d(0, 0, 0);
      text-underline-offset: 3px;
      padding: 4px 4px 4px 38px;
      line-height: 1.2;
      font-weight: 400;
      @include focusvisible;
      @extend .icon-pfeil-simple-rechts;
      margin-left: -38px;
      margin-right: -4px;
      border-radius: 3px;

      @media(max-width: 767px) {
        margin-left: -32px;
        padding-left: 32px;
        font-size: 18px;
      }

      &:before {
        font-family: "Icons";
        font-size: 30px;
        line-height: 1;
        position: absolute;
        top: 2px;
        left: -4px;
        transform: translate3d(0, 0, 0);
        text-decoration: underline;

        @media(max-width: 767px) {
          top: 3px;
          left: -3px;
          font-size: 24px;
        }
      }

      &:before {
        text-decoration: none;
      }

      &:hover {
        color: $color-link-hover;
        color: var(--theme-color-link-hover, $color-link-hover);
      }
    }

    a.download:before {
      @extend .icon-download;
    }
    a.external:before, a.extern:before {
      @extend .icon-link-external;
    }
    a.intranet:before {
      @extend .icon-schloss;
    }
    a.extranet:before {
      @extend .icon-stern;
    }
  }

  > li > p, > li > div.text {
    font-size: 18px;
    margin-top: 6px;
    margin-bottom: 8px;

    &:last-child {
      margin-bottom: 14px;
    }

    @media(max-width: 991px) {
      font-size: 16px;
    }
  }
}

.link-collection, .dl-teaser, .ll-teaser, .ll-teaser-text {
  margin: calc(1.5vw + 40px) 0 0;
  background-color: $color-secondary-light;
  background-color: var(--theme-color-secondary-dimmed, $color-secondary-light);
  padding: 40px 42px 36px;
  border-bottom: 8px solid $color-secondary;
  border-bottom: 8px solid var(--theme-color-secondary, $color-secondary);

  @media(max-width: 567px) {
    margin: calc(1.5vw + 28px) 0 0;
    padding: 24px 18px 28px;
  }

  .btn-wrapper {
    padding-top: 10px;
    text-align: right;
  }
}

section .link-collection {
  margin-top: 0;
}

.col:first-child:last-child > .link-collection {
  @media(min-width: 1200px) {
    padding: 46px 60px 42px;
  }

  .linklist {
    @media(min-width: 1000px) {
      columns: 2;
      column-gap: 40px;
    }

    > li {
      -webkit-column-break-inside: avoid;
      page-break-inside: avoid;
      break-inside: avoid;
    }
  }
}

.main-col .col:first-child:last-child > .link-collection, .main-col .link-collection {
  margin: calc(2% + 20px) 0 calc(3% + 20px);

  .linklist {
    columns: 1;
  }
}
