/* All component rules are scoped to this plugin. Kadence is hidden only after a successful JS/CSS readiness check. */
#hhnav-root {
  --hhnav-ready: 1;
  --hhnav-ink: #203f4a;
  --hhnav-muted: #596971;
  --hhnav-line: #e3e8e6;
  --hhnav-paper: #fff;
  --hhnav-soft: #eff4f3;
  --hhnav-sand: #f1e6d3;
  --hhnav-sand-ink: #594428;
  --hhnav-blue: #244b57;
  --hhnav-admin-offset: 0px;
  --hhnav-panel-top: 68px;
  --hhnav-quick-height: 76px;
  position: sticky;
  top: var(--hhnav-admin-offset);
  z-index: 99990;
  width: 100%;
  margin: 0;
  border: 0;
  background: var(--hhnav-paper);
  color: var(--hhnav-ink);
  font: 400 15px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  box-shadow: 0 1px 0 var(--hhnav-line);
  text-align: left;
  isolation: isolate;
}
#hhnav-root[hidden], #hhnav-root [hidden] { display: none !important; }
#hhnav-root *, #hhnav-root *::before, #hhnav-root *::after { box-sizing: border-box; }
#hhnav-root ul { list-style: none; margin: 0; padding: 0; }
#hhnav-root li { margin: 0; padding: 0; }
#hhnav-root a { color: inherit; text-decoration: none; box-shadow: none; }
#hhnav-root button { font: inherit; font-weight: 400; color: inherit; letter-spacing: normal; text-transform: none; cursor: pointer; box-shadow: none; }
#hhnav-root button:hover { color: inherit; }
#hhnav-root a:focus-visible, #hhnav-root button:focus-visible, #hhnav-root summary:focus-visible { outline: 2px solid var(--hhnav-blue); outline-offset: 3px; }
#hhnav-root .hhnav-icon { width: 18px; height: 18px; display: inline-block; flex: 0 0 auto; vertical-align: middle; }
#hhnav-root .hhnav-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: 1440px; margin: 0 auto; padding: 12px 24px; min-height: 68px; background: var(--hhnav-paper); }
#hhnav-root .hhnav-brand { display: flex; flex-direction: column; justify-content: center; min-height: 44px; flex-shrink: 0; }
#hhnav-root .hhnav-brand > span { font: 400 23px/1.15 Georgia, "Times New Roman", serif; letter-spacing: -.5px; white-space: nowrap; }
#hhnav-root .hhnav-brand > small { color: var(--hhnav-muted); font-size: 10px; line-height: 1.1; letter-spacing: 3.5px; margin-top: 3px; }
#hhnav-root .hhnav-actions { display: none; }
#hhnav-root .hhnav-book { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; border: 0; border-radius: 8px; background: var(--hhnav-blue); color: #fff; padding: 10px 14px; font-size: 14px; font-weight: 500; white-space: nowrap; }
#hhnav-root .hhnav-book > span { display: inline-flex; align-items: center; justify-content: center; gap: 9px; }
#hhnav-root .hhnav-book:hover { background: #183c48; color: #fff; }
#hhnav-root .hhnav-book:focus-visible { outline-color: var(--hhnav-blue); }
#hhnav-root .hhnav-desktop-nav { flex: 1 1 auto; min-width: 0; }
#hhnav-root .hhnav-top-list { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
#hhnav-root .hhnav-top-list > li { flex: 0 0 auto; }
#hhnav-root .hhnav-trigger { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 9px; border: 0; border-radius: 8px; background: var(--hhnav-paper); font-size: 14px; white-space: nowrap; }
#hhnav-root .hhnav-trigger > .hhnav-icon { width: 16px; height: 16px; }
#hhnav-root .hhnav-trigger:hover, #hhnav-root .hhnav-trigger[aria-expanded="true"] { background: var(--hhnav-soft); }
#hhnav-root .hhnav-events > .hhnav-trigger { background: var(--hhnav-sand); color: var(--hhnav-sand-ink); }
#hhnav-root .hhnav-trigger[aria-expanded="true"] > .hhnav-icon:last-child { transform: rotate(180deg); }
#hhnav-root .hhnav-panel { position: absolute; top: 100%; left: 0; right: 0; background: var(--hhnav-paper); border-top: 1px solid var(--hhnav-line); border-bottom: 1px solid var(--hhnav-line); box-shadow: 0 16px 24px #18364018; max-height: calc(100vh - var(--hhnav-panel-top) - 16px); max-height: calc(100dvh - var(--hhnav-panel-top) - 16px); overflow: auto; }
#hhnav-root .hhnav-panel-inner { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 32px; max-width: 1220px; padding: 24px 28px 28px; margin: 0 auto; }
#hhnav-root .hhnav-panel-links-only { grid-template-columns: minmax(0, 1fr); }
#hhnav-root .hhnav-menu-heading { color: var(--hhnav-muted); font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase; margin: 0 10px 12px; }
#hhnav-root .hhnav-link-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 20px; }
#hhnav-root .hhnav-menu-link { display: flex; flex-direction: column; justify-content: center; min-height: 75px; padding: 12px 10px; gap: 5px; border-radius: 8px; }
#hhnav-root .hhnav-menu-link:hover { background: var(--hhnav-soft); }
#hhnav-root .hhnav-menu-link > span { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 500; }
#hhnav-root .hhnav-menu-link > small { color: var(--hhnav-muted); font-size: 12px; line-height: 1.45; }
#hhnav-root .hhnav-menu-link[aria-current="page"] > span { text-decoration: underline; text-underline-offset: 4px; }
#hhnav-root .hhnav-feature { padding: 24px; background: var(--hhnav-soft); border-radius: 12px; }
#hhnav-root .hhnav-feature-event { background: var(--hhnav-sand); color: var(--hhnav-sand-ink); }
#hhnav-root .hhnav-feature > p { font-size: 14px; margin: 0 0 15px; }
#hhnav-root .hhnav-feature .hhnav-feature-title { font: 400 27px/1.18 Georgia, "Times New Roman", serif; margin-bottom: 14px; }
#hhnav-root .hhnav-eyebrow { display: block; font-size: 11px; letter-spacing: 1.5px; margin: 0 0 14px; }
#hhnav-root .hhnav-feature-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; }
#hhnav-root .hhnav-menu-toggle, #hhnav-root .hhnav-mobile-nav, #hhnav-root .hhnav-quick { display: none; }
#hhnav-root .hhnav-backdrop { position: fixed; top: var(--hhnav-panel-top); left: 0; right: 0; bottom: 0; z-index: -1; margin: 0; padding: 0; border: 0; border-radius: 0; background: #102d3740; }
body.hhnav-enabled #masthead, body.hhnav-enabled #mobile-drawer, body.hhnav-enabled #search-drawer { display: none !important; }
body.hhnav-mobile-open { overflow: hidden; }
body.hhnav-enabled :is(#bingo, #quiz, #tim-termine, #tim-anfrage, #hhb-zimmeruebersicht) { scroll-margin-top: var(--hhnav-anchor-offset, 164px) !important; }
@media (min-width: 960px) and (max-width: 1199px) {
  #hhnav-root .hhnav-top { min-height: 64px; padding: 10px 18px; gap: 12px; }
  #hhnav-root .hhnav-brand > span { font-size: 21px; }
  #hhnav-root .hhnav-top-list { gap: 3px; }
  #hhnav-root .hhnav-trigger { padding: 9px 4px; gap: 4px; font-size: 13px; }
  #hhnav-root .hhnav-trigger > .hhnav-icon { width: 14px; height: 14px; }
  #hhnav-root .hhnav-top-book { min-height: 42px; padding: 9px 10px; font-size: 13px; }
  #hhnav-root .hhnav-top-book > span { gap: 6px; }
}
@media (min-width: 960px) and (max-width: 1023px) {
  #hhnav-root .hhnav-top { gap: 8px; }
  #hhnav-root .hhnav-top-list { gap: 2px; }
  #hhnav-root .hhnav-trigger { padding-inline: 2px; }
  #hhnav-root .hhnav-top-book { padding-inline: 8px; }
  #hhnav-root .hhnav-top-book > span { gap: 4px; }
  #hhnav-root .hhnav-top-book .hhnav-icon { width: 14px; height: 14px; }
}
@media (max-width: 959px) {
  #hhnav-root .hhnav-top { min-height: 80px; padding: 14px 20px; gap: 14px; }
  #hhnav-root .hhnav-brand > span { font-size: 25px; }
  #hhnav-root .hhnav-brand > small { font-size: 11px; line-height: 1.5; margin-top: 5px; }
  #hhnav-root .hhnav-actions { display: flex; align-items: center; }
  #hhnav-root .hhnav-desktop-nav { display: none; }
  #hhnav-root .hhnav-menu-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 12px; border: 1px solid var(--hhnav-line); border-radius: 8px; background: var(--hhnav-paper); font-size: 14px; }
  #hhnav-root .hhnav-menu-toggle .hhnav-icon { width: 19px; height: 19px; }
  #hhnav-root .hhnav-mobile-nav { display: block; position: absolute; top: 100%; left: 0; right: 0; z-index: 2; border-top: 1px solid var(--hhnav-line); background: var(--hhnav-paper); box-shadow: 0 12px 24px #18364018; }
  #hhnav-root .hhnav-mobile-scroll { max-height: calc(100vh - var(--hhnav-panel-top) - var(--hhnav-quick-height)); max-height: calc(100dvh - var(--hhnav-panel-top) - var(--hhnav-quick-height)); overflow-y: auto; overscroll-behavior: contain; padding: 10px 18px 16px; }
  #hhnav-root .hhnav-mobile-group { border-bottom: 1px solid var(--hhnav-line); }
  #hhnav-root .hhnav-mobile-group > summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 56px; padding: 13px 8px; list-style: none; font-size: 16px; font-weight: 500; cursor: pointer; }
  #hhnav-root .hhnav-mobile-group > summary::-webkit-details-marker { display: none; }
  #hhnav-root .hhnav-mobile-group > summary > span { display: inline-flex; align-items: center; gap: 9px; }
  #hhnav-root .hhnav-mobile-group[open] > summary > .hhnav-icon { transform: rotate(180deg); }
  #hhnav-root .hhnav-mobile-group > ul { padding: 0 8px 9px 16px; }
  #hhnav-root .hhnav-mobile-events { margin-top: 8px; background: var(--hhnav-sand); color: var(--hhnav-sand-ink); border-radius: 10px; border-bottom: 0; }
  #hhnav-root .hhnav-mobile-link { display: flex; align-items: center; min-height: 48px; padding: 11px 8px; border-radius: 6px; font-size: 15px; }
  #hhnav-root .hhnav-mobile-link > span { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; }
  #hhnav-root .hhnav-mobile-link:hover { color: var(--hhnav-ink); background: var(--hhnav-soft); }
  #hhnav-root .hhnav-mobile-link[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }
  #hhnav-root .hhnav-mobile-contact { display: inline-flex; align-items: center; min-height: 48px; padding: 10px 8px; margin-top: 8px; font-size: 14px; }
  #hhnav-root .hhnav-quick { display: grid; grid-template-columns: minmax(100px, 1fr) minmax(0, 1.7fr); gap: 9px; position: fixed; bottom: 0; left: 0; right: 0; z-index: 3; padding: 10px max(14px, calc((100vw - 600px) / 2)) calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--hhnav-paper); border-top: 1px solid var(--hhnav-line); box-shadow: 0 -4px 16px #1836400d; }
  #hhnav-root .hhnav-quick .hhnav-book { min-height: 46px; font-size: 14px; padding: 10px 12px; }
  #hhnav-root .hhnav-quick-events { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; border-radius: 8px; background: var(--hhnav-sand); color: var(--hhnav-sand-ink); font-size: 14px; }
  body.hhnav-enabled #wrapper { padding-bottom: var(--hhnav-bottom-space, 76px); }
  /* Leave room for the existing Haus Hubertus chat above the mobile quick actions. */
  body.hhnav-enabled #hh-chat-root .hh-chat-launcher { bottom: calc(var(--hhnav-bottom-space, 76px) + 14px); }
  body.hhnav-enabled #hh-chat-root .hh-chat-panel { bottom: calc(var(--hhnav-bottom-space, 76px) + 68px); max-height: calc(100vh - var(--hhnav-bottom-space, 76px) - 90px); max-height: calc(100dvh - var(--hhnav-bottom-space, 76px) - 90px); }
  body.hhnav-mobile-open #hh-chat-root { display: none !important; }
}
@media (max-width: 380px) {
  #hhnav-root .hhnav-top { padding: 12px 14px; min-height: 76px; }
  #hhnav-root .hhnav-brand > span { font-size: 23px; }
  #hhnav-root .hhnav-mobile-scroll { padding: 8px 12px 14px; }
  #hhnav-root .hhnav-quick { padding-left: 10px; padding-right: 10px; grid-template-columns: minmax(85px, 1fr) minmax(0, 1.85fr); gap: 8px; }
  #hhnav-root .hhnav-quick .hhnav-book { font-size: 12px; padding: 10px; }
  #hhnav-root .hhnav-quick .hhnav-book > span { gap: 5px; }
}
@media (prefers-reduced-motion: no-preference) {
  #hhnav-root .hhnav-trigger, #hhnav-root .hhnav-menu-link, #hhnav-root .hhnav-book { transition: background-color .15s ease; }
}
