/* Globaler Darstellungsvertrag für Partnerbereich und scrollbare Katalog-Untermenüs. */
html body.bi-modern-ui #tags {
  background-color: #a88c7f !important;
  background-image: linear-gradient(145deg, #d1b29a, #a88c7f) !important;
  color: #fff !important;
  border-radius: 10px !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, .1) !important;
}

/* Mobile-Lesbarkeit für verlinkte Zeltrechner-Hinweise, Zeltgrößen-Seiten und Terminplanung. */
@media (max-width: 640px) {
  html body.bi-modern-ui .zr-links {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 9px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 18px 0 0 !important;
    padding: 14px 12px 0 !important;
  }

  html body.bi-modern-ui .zr-links a {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    line-height: 1.4 !important;
    overflow-wrap: anywhere !important;
    white-space: normal !important;
  }

  html body.bi-modern-ui .content_container.intro-text {
    width: calc(100% - 24px) !important;
    max-width: none !important;
    box-sizing: border-box !important;
    margin-left: 12px !important;
    margin-right: 12px !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    overflow-wrap: anywhere !important;
  }

  html body.bi-modern-ui .content_container.intro-text > p {
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    line-height: 1.55 !important;
    text-align: center !important;
    text-align-last: center !important;
    overflow-wrap: anywhere !important;
  }

  html body.bi-modern-ui .content_container.intro-text > p:last-child {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    margin-top: 20px !important;
  }

  html body.bi-modern-ui .content_container.intro-text > p:last-child a {
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    justify-content: center !important;
    margin: 0 !important;
    text-align: center !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  /* Die Seitenbeschreibung und die Modulbeschreibung bleiben linksbündig und lesbar. */
  html body.bi-modern-ui .thema-container:has(.tp-shell) p {
    text-align: left !important;
    text-align-last: auto !important;
    line-height: 1.55 !important;
    overflow-wrap: anywhere !important;
  }

  html body.bi-modern-ui .thema-container .tp-page-intro {
    margin: 0 12px 14px !important;
    text-align: left !important;
    text-align-last: auto !important;
    line-height: 1.55 !important;
    overflow-wrap: anywhere !important;
  }

  html body.bi-modern-ui .thema-container:has(.tp-shell) .tp-shell {
    width: calc(100% - 24px) !important;
    max-width: none !important;
    box-sizing: border-box !important;
    margin: 18px 12px 24px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  html body.bi-modern-ui .thema-container:has(.tp-shell) .tp-card {
    padding: 16px !important;
    border-radius: 16px !important;
  }

  html body.bi-modern-ui .thema-container:has(.tp-shell) .tp-header p,
  html body.bi-modern-ui .thema-container:has(.tp-shell) .tp-kicker {
    text-align: left !important;
    text-align-last: auto !important;
  }
}

html body.bi-modern-ui.is-homepage #tags {
  background-color: #a88c7f !important;
  background-image: linear-gradient(145deg, #d1b29a, #a88c7f) !important;
}

html body.bi-modern-ui #tags > .foot_bottom {
  background: transparent !important;
  color: #fff !important;
  border-radius: 0 !important;
}

html body.bi-modern-ui.is-homepage #tags > .foot_bottom {
  background: transparent !important;
}

/* Der alte SEO-Infoblock bleibt für Suchmaschinen im Dokument, darf aber keinen sichtbaren Zwischenraum erzeugen. */
html body.bi-modern-ui #tags > .googlebot-visible {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

html body.bi-modern-ui #tags > .foot_bottom #partner-slider-title {
  color: #fff !important;
  background: transparent !important;
}

html body.bi-modern-ui #tags > .foot_bottom #partner-slider-title::after {
  background-color: #fff !important;
}

@media (min-width: 801px) {
  html body.bi-modern-ui #menu-wrapper.bi-menu-desktop #menu ul.slimmenu li.bi-submenu-scroll-control {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: sticky !important;
    bottom: 0 !important;
    z-index: 20 !important;
    min-height: 50px !important;
    margin: 4px -2px -4px !important;
    padding: 8px 0 4px !important;
    background: linear-gradient(to top, #fff 68%, rgba(255, 255, 255, 0)) !important;
  }

  html body.bi-modern-ui #menu-wrapper.bi-menu-desktop #menu ul.slimmenu li.bi-submenu-scroll-control[hidden] {
    display: none !important;
  }

  html body.bi-modern-ui #menu-wrapper.bi-menu-desktop #menu ul.slimmenu li.bi-submenu-scroll-control > .bi-submenu-scroll-down {
    display: grid !important;
    place-items: center !important;
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    border: 1px solid #d4a58f !important;
    border-radius: 50% !important;
    background: #fff !important;
    color: #8c2f10 !important;
    font-size: 24px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    cursor: pointer !important;
  }

  /* Ein Pfeilklick darf ein durch Hover oder Fokus sichtbares Untermenü schließen. */
  html body.bi-modern-ui #menu-wrapper.bi-menu-desktop #menu ul.slimmenu li.bi-submenu-click-closed > ul,
  html body.bi-modern-ui #menu-wrapper.bi-menu-desktop #menu ul.slimmenu li.bi-submenu-click-closed:hover > ul,
  html body.bi-modern-ui #menu-wrapper.bi-menu-desktop #menu ul.slimmenu li.bi-submenu-click-closed:focus-within > ul {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
  }
}

/* Abschlussabstände für verlinkte Ratgeber und Wissenswertes-Karten. */
html body.bi-modern-ui .zr-links {
  box-sizing: border-box !important;
  margin-bottom: 36px !important;
  padding-bottom: 20px !important;
}

html body.bi-modern-ui .wissenswertes-topic-card {
  box-sizing: border-box !important;
  margin: 0 0 16px !important;
  padding: 20px 22px !important;
}

html body.bi-modern-ui .wissenswertes-topic-card > h2,
html body.bi-modern-ui .wissenswertes-topic-card > p,
html body.bi-modern-ui .wissenswertes-topic-card > .wissenswertes-topic-card__more {
  max-width: 100% !important;
  overflow-wrap: anywhere !important;
}

@media (max-width: 640px) {
  html body.bi-modern-ui .zr-links {
    margin-bottom: 36px !important;
    padding: 14px 12px 22px !important;
  }

  html body.bi-modern-ui .wissenswertes-topic-card {
    margin: 0 12px 14px !important;
    padding: 16px !important;
  }
}