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

.page-details {
  margin: 0 0 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: auto;
  padding: 10px 42px 0;

  @media(max-width: 1199px) {
    padding: 0 28px;
    margin: 20px 0 36px;
  }
  @media(max-width: 767px) {
    padding: 0 var(--container-padding);
    margin: 14px 0;
    display: block;
  }

  &.intranet {
    .document-number {
      position: relative;
      padding-left: calc(var(--icon-size) * 1.3);

      &:before {
        @include icon-schloss;
        position: absolute;
        left: 0;
        top: calc(50% - var(--icon-size) / 2);
        font-family: "Icons", sans-serif;
        font-size: var(--icon-size);
        line-height: 1;
      }
    }
  }
}

.intranet-short-text {
  position: relative;
  background-color: var(--color-surface-inset);
  padding: 40px 80px 40px 40px;
  overflow: hidden;

  &:before {
    @include icon-schloss;
    position: absolute;
    right: 1%;
    top: 14%;
    margin: -16px 10px;
    font-family: "Icons", sans-serif;
    font-size: var(--icon-size);
    line-height: 1;
  }
}

.breadcrumb-list-wrapper {
  @media(max-width: 999px) {
    width: 100%;
  }
}

.breadcrumb {
  list-style: none;
  font-size: 18px;
  padding: 0;
  margin: 0 -2px;
  background-color: inherit;
  border-radius: 0;
  white-space: nowrap;

  br {
    display: none;
  }

  @media(max-width: 999px) {
    overflow: auto;
    max-width: 100vw;
    margin: 0 -20px -10px;
    padding: 0 18px 10px;
  }

  @media(max-width: 767px) {
    font-size: 16px;
    opacity: 1;
  }

  a {
    padding: 2px 4px;
    border-radius: var(--border-radius-xs);
    transition: 0.3s ease;
    @include focus-visible;
    margin: 0 -2px;

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

  li {
    display: inline-block;

    + li:before {
      @include icon-pfeil-rechts;
      font-family: "Icons", sans-serif;
      margin: -1px 6px 0 3px;
      padding: 0;
      position: relative;
      display: inline-block;
      font-size: 20px;
      vertical-align: top;
      color: inherit;

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

    &:last-child a {
      text-decoration: none;
    }
  }
}

.document-number {
  margin-left: auto;
  font-size: 18px;
  line-height: 20px;
  padding: 6px 12px 5px 12px;
  margin-right: -14px;
  margin-bottom: initial;
  margin-top: initial;
  border: 1px solid var(--color-surface-inset);
  border-radius: 50px;
  letter-spacing: 0.015em;

  @media(max-width: 1199px) {
    margin-right: -12px;
  }

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