/*
 * Category page refinements.
 */

#wrapper .breadcrumb {
  margin-bottom: 0.75rem;
  font-family: "Noto Sans", Arial, sans-serif;
  font-size: 0.9rem;
  line-height: 1.45;
}

#wrapper .breadcrumb ol,
#wrapper .breadcrumb ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.4rem;
  margin-bottom: 0;
}

#wrapper .breadcrumb li,
#wrapper .breadcrumb a,
#wrapper .breadcrumb span {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

#wrapper #left-column,
#wrapper #content-wrapper {
  min-width: 0;
}

#wrapper .block-categories {
  height: auto;
  min-height: 0;
  padding: 1.25rem;
  overflow: visible;
}

#wrapper .block-categories .h6,
#wrapper .block-categories .category-sub-menu a {
  display: block;
  font-family: "Noto Sans", Arial, sans-serif;
  font-size: 0.95rem;
  line-height: 1.35;
  letter-spacing: 0;
  text-transform: none;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}

#wrapper .block-categories .category-sub-menu li[data-depth="0"] > a {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
}

#wrapper .block-category {
  position: relative;
  height: auto;
  min-height: 11rem;
  margin-bottom: 1.5rem;
  padding: 1.5rem 15rem 1.5rem 1.5rem;
  overflow: hidden;
}

#wrapper .block-category .h1,
#wrapper .block-category h1 {
  max-width: 100%;
  margin: 0 0 0.8rem;
  font-family: "Noto Sans", Arial, sans-serif;
  font-size: 2.05rem;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
}

#wrapper .block-category #category-description {
  max-width: 100%;
  margin: 0;
  color: #222;
  font-family: "Noto Sans", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
}

#wrapper .block-category #category-description p {
  margin: 0 0 0.75rem;
  line-height: 1.5;
}

#wrapper .block-category #category-description p:last-child {
  margin-bottom: 0;
}

#wrapper .block-category #category-description * {
  max-width: 100%;
}

#wrapper .block-category .category-cover {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  bottom: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 12.5rem;
  height: calc(100% - 2.5rem);
  max-width: 28%;
  margin: 0;
  text-align: center;
}

#wrapper .block-category .category-cover img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

@media (max-width: 1199.98px) {
  #wrapper .block-category .h1,
  #wrapper .block-category h1 {
    font-size: 1.75rem;
  }
}

@media (max-width: 991.98px) {
  #wrapper .block-category {
    min-height: 0;
    padding: 1.25rem;
    overflow: visible;
  }

  #wrapper .block-category .h1,
  #wrapper .block-category h1,
  #wrapper .block-category #category-description {
    max-width: 100%;
  }

  #wrapper .block-category .category-cover {
    position: static;
    width: 11rem;
    max-width: 100%;
    margin: 1rem auto 0;
    text-align: center;
  }
}

@media (max-width: 767.98px) {
  #wrapper .breadcrumb {
    font-size: 0.85rem;
  }

  #wrapper .block-categories,
  #wrapper .block-category {
    padding: 1rem;
  }

  #wrapper .block-category .h1,
  #wrapper .block-category h1 {
    font-size: 1.45rem;
    line-height: 1.18;
  }

  #wrapper .block-category #category-description {
    font-size: 0.95rem;
  }
}

/*
 * Secondary logo in the desktop header.
 */
@media (min-width: 992px) {
  #header .header-top .header-top-right.position-static {
    position: relative !important;
    padding-right: 11.25rem;
    min-height: 10rem;
  }

  #header .header-top .header-top-right::after {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    right: 0.9375rem;
    width: 10rem;
    height: 10rem;
    background: url("../img/logo-wilhelm-tell.jpg") center / contain no-repeat;
    pointer-events: none;
  }
}
