/*
Theme Name: Sheshi Visitor Navigation
Version: 0.32.3
Description: Reduces the primary navigation to Verzeichnis, Ratgeber and Über sheshi, with direct category access.
*/

@media (min-width: 1024px) {
  .sheshi-site-header .sheshi-menu-directory {
    display: inline-flex !important;
    align-items: center !important;
  }

  .sheshi-site-header .sheshi-menu-directory > a {
    padding-right: 4px !important;
  }

  .sheshi-site-header .sheshi-nav-dropdown--categories {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
  }

  .sheshi-site-header .sheshi-nav-dropdown--categories > summary {
    width: 28px !important;
    min-width: 28px !important;
    min-height: 44px !important;
    justify-content: center !important;
    padding: 0 4px !important;
    border-radius: 0 !important;
    background: transparent !important;
  }

  .sheshi-site-header .sheshi-nav-dropdown--categories > summary:hover,
  .sheshi-site-header .sheshi-nav-dropdown--categories > summary:focus-visible,
  .sheshi-site-header .sheshi-nav-dropdown--categories[open] > summary {
    color: var(--accent) !important;
    background: transparent !important;
  }

  .sheshi-site-header .sheshi-nav-dropdown--categories > summary::after {
    display: none !important;
    content: none !important;
  }

  .sheshi-site-header .sheshi-nav-panel--categories {
    left: -160px !important;
    display: block !important;
    width: min(800px, calc(100vw - 48px)) !important;
    padding: 14px !important;
    border-color: var(--border) !important;
    border-radius: 14px !important;
    background: var(--surface-card) !important;
    box-shadow: none !important;
  }

  .sheshi-site-header .sheshi-nav-panel-head {
    display: flex !important;
    min-height: 36px !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    padding: 0 4px 10px !important;
    border-bottom: 1px solid var(--border) !important;
  }

  .sheshi-site-header .sheshi-nav-panel-head > strong {
    color: var(--text-primary) !important;
    font-size: 14px !important;
  }

  .sheshi-site-header .sheshi-nav-panel-head > a {
    display: inline-flex !important;
    min-height: 32px !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 0 6px !important;
    color: var(--accent) !important;
    font-size: 12px !important;
    font-weight: 720 !important;
  }

  .sheshi-site-header .sheshi-nav-panel-head > a span {
    color: inherit !important;
    font-size: inherit !important;
  }

  .sheshi-site-header .sheshi-nav-category-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 2px 8px !important;
    padding-top: 8px !important;
  }

  .sheshi-site-header .sheshi-nav-category-grid > a {
    display: grid !important;
    min-width: 0 !important;
    min-height: 42px !important;
    grid-template-columns: minmax(0, 1fr) max-content !important;
    gap: 8px !important;
    align-items: center !important;
    padding: 8px 9px !important;
    border-radius: 8px !important;
  }

  .sheshi-site-header .sheshi-nav-category-grid > a > span {
    overflow: hidden !important;
    color: var(--text-primary) !important;
    font-size: 12.5px !important;
    font-weight: 650 !important;
    line-height: 1.2 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .sheshi-site-header .sheshi-nav-category-grid > a > small {
    color: var(--text-muted) !important;
    font-size: 11px !important;
    font-weight: 650 !important;
  }

  .sheshi-site-header .sheshi-mobile-menu {
    display: none !important;
  }
}

@media (max-width: 1023px) {
  .sheshi-site-header .sheshi-nav > .sheshi-desktop-nav,
  .sheshi-site-header .sheshi-nav > .sheshi-nav-cta {
    display: none !important;
  }

  .sheshi-site-header .sheshi-mobile-menu {
    display: block !important;
    margin-left: auto !important;
  }

  .sheshi-site-header .sheshi-mobile-menu[open] > nav {
    top: 64px !important;
    height: calc(100dvh - 64px) !important;
    max-height: calc(100dvh - 64px) !important;
    box-sizing: border-box !important;
    overflow-y: auto !important;
  }

  .sheshi-site-header .sheshi-mobile-action,
  .sheshi-site-header .sheshi-mobile-action > span {
    color: var(--text-primary) !important;
  }

  .sheshi-site-header .sheshi-mobile-section + .sheshi-mobile-section {
    border-top: 0 !important;
  }

  .sheshi-site-header .sheshi-mobile-categories {
    margin-top: 8px !important;
    border-top: 1px solid var(--border) !important;
    border-bottom: 1px solid var(--border) !important;
  }

  .sheshi-site-header .sheshi-mobile-categories > summary {
    display: flex !important;
    width: 100% !important;
    height: auto !important;
    min-height: 48px !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    padding: 8px 10px !important;
    border: 0 !important;
    color: var(--text-primary) !important;
    font-size: 14px !important;
    font-weight: 720 !important;
    cursor: pointer !important;
    list-style: none !important;
  }

  .sheshi-site-header .sheshi-mobile-categories > summary .sheshi-nav-chevron {
    width: 14px !important;
    height: 14px !important;
    flex: 0 0 14px !important;
  }

  .sheshi-site-header .sheshi-mobile-categories > summary::-webkit-details-marker {
    display: none !important;
  }

  .sheshi-site-header .sheshi-mobile-categories[open] > summary .sheshi-nav-chevron {
    transform: rotate(180deg) !important;
  }

  .sheshi-site-header .sheshi-mobile-categories > div {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 2px 8px !important;
    padding: 0 0 10px !important;
  }

  .sheshi-site-header .sheshi-mobile-categories a {
    display: grid !important;
    min-width: 0 !important;
    min-height: 44px !important;
    grid-template-columns: minmax(0, 1fr) max-content !important;
    gap: 8px !important;
    align-items: center !important;
    padding: 8px 10px !important;
    border-radius: 8px !important;
    color: var(--text-primary) !important;
    text-decoration: none !important;
  }

  .sheshi-site-header .sheshi-mobile-categories a:hover,
  .sheshi-site-header .sheshi-mobile-categories a:focus-visible {
    background: var(--surface-sunken) !important;
  }

  .sheshi-site-header .sheshi-mobile-categories a > span {
    overflow: hidden !important;
    font-size: 12.5px !important;
    font-weight: 650 !important;
    line-height: 1.25 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .sheshi-site-header .sheshi-mobile-categories a > small {
    color: var(--text-muted) !important;
    font-size: 11px !important;
    font-weight: 650 !important;
  }
}

@media (max-width: 620px) {
  .sheshi-site-header .sheshi-mobile-menu[open] > nav {
    top: 62px !important;
    height: calc(100dvh - 62px) !important;
    max-height: calc(100dvh - 62px) !important;
  }

  .sheshi-site-header .sheshi-mobile-categories > div {
    grid-template-columns: 1fr !important;
  }
}

.sheshi-content-page--ueber-sheshi {
  max-width: 780px !important;
}

.sheshi-content-page--ueber-sheshi .entry-content > h2 {
  margin-top: 42px !important;
}

.sheshi-content-page--ueber-sheshi .entry-content > p,
.sheshi-content-page--ueber-sheshi .entry-content > ol,
.sheshi-content-page--ueber-sheshi .entry-content > ul {
  max-width: 70ch !important;
}
