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

.print-share {
  margin: var(--section-margin) 0;

  .bookmarks {
    margin-top: 0.8em;
  }
}

.print-share-list {
  position: relative;
  display: block;
  border-top: 1px solid var(--color-surface-inset);
  list-style: none;
  padding: 20px 0;
  margin: 0;

  li {
    display: inline-block;
    margin-right: 20px;
  }

  a {
    transition: 0.25s ease;
    @include focus-visible;
    margin: 0;
    padding: 0.2em 0;
    border-radius: var(--border-radius-xs);

    &.print-btn::before {
      @include icon-drucker;
    }

    &.share-mail::before {
      @include icon-teilen;
    }

    &.print-pdf::before {
      @include icon-pdf;
    }

    &:before {
      font-size: 30px;
      line-height: 1;
      font-family: "Icons", sans-serif;
      display: inline-block;
      vertical-align: middle;
      margin-right: 7px;
      text-decoration: underline;
    }

    &:before {
      text-decoration: none;
    }

    &:hover {
      color: var(--color-text-accent);
    }
  }

  @media(max-width: 999px) {
    li {
      margin-right: 10px;
    }

    a {
      font-size: 0;
    }
  }
}

.main-col {
  .print-share {
    @media(max-width: 999px) {
      display: none;
    }
  }
}

.mobile-footer {
  display: none;
  flex: 1 1 100%;
  padding: 10px 10px 0;

  &:after {
    content: "";
    position: relative;
    display: block;
    clear: both;
  }

  @media(max-width: 999px) {
    display: block;
  }

  .docnumber, .document-number {
    display: inline-block;
    float: right;
    margin: 15px -4px;

    &:last-child {
      margin-bottom: 0;
      margin-right: 8px;
    }

    + .print-share {
      clear: both;
    }
  }

  .print-share-list {
    margin-bottom: 10px;
  }
}

.bookmarks-wrapper {
  @media(max-width: 999px) {
    padding-top: 15px;

    .print-share-list {
      margin-bottom: 6px;
    }
  }

  .docnumber, .document-number {
    display: inline-block;
    float: right;
    margin: 15px -4px;

    @media(min-width: 1000px) {
      display: none;
    }

    + .print-share {
      clear: both;
    }
  }
}

.bookmarks, #socialbookmarks {
  position: relative;
  display: block;
  margin-bottom: -54px;
  transition: 0.3s ease;

  .social-icons {
    display: inline-block;
    vertical-align: top;
    transform: translate3d(0, 0, 0) scale(0.8);
    @include hide;

    @media(max-width: 567px) {
      margin-left: -10px;
      margin-bottom: -10px;

      li {
        margin-left: 10px;
        margin-bottom: 10px;
      }

      a {
        width: 32px;
        height: 32px;
        font-size: 32px;

        &:before {
          font-size: 32px;
          line-height: 32px;
        }
      }
    }

    @media(max-width: 359px) {
      margin-left: -8px;
      margin-bottom: -8px;

      li {
        margin-left: 8px;
        margin-bottom: 8px;
      }
    }
  }

  &.show-bookmarks {
    margin-bottom: 76px;

    @media(max-width: 767px) {
      margin-bottom: 5px;
    }

    .social-icons {
      @include show;
      transform: translate3d(0, 0, 0) scale(1);
    }
  }
}
