/* Header menu "Partner & Veranstaltungsorte" (all public pages; behaviour: static/site_nav.js).
   Desktop: opens on hover or click, partners with several venues open a second list on hover – both to the left (the
   entry sits on the right of the header). Phones: part of the folded-out main menu, lists expand in place. */
.nav-drop { position: relative; display: flex; }
.nav-drop-btn { display: inline-flex; align-items: center; gap: 4px; padding: 6px 10px; border: 0; border-radius: var(--radius, 6px); background: none;
  font: inherit; font-size: 14px; color: var(--ink-2); cursor: pointer; white-space: nowrap; -webkit-tap-highlight-color: transparent; }
.nav-drop-btn:hover, .nav-drop.open > .nav-drop-btn { background: var(--surface-2); color: var(--ink); }
.nav-drop-btn[aria-current="page"] { color: var(--ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.nd-chev { width: 14px; height: 14px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.nav-drop.open > .nav-drop-btn .nd-chev { transform: rotate(180deg); }
.nav-drop-menu { display: none; position: absolute; top: 100%; right: 0; z-index: 1300; padding-top: 6px; }
.nav-drop.open > .nav-drop-menu { display: block; }
.nd-list, .nd-sub { list-style: none; margin: 0; padding: 6px; min-width: 240px; max-width: 340px; background: var(--surface); border: 1px solid var(--rule);
  border-radius: var(--radius, 6px); box-shadow: var(--shadow-pop, 0 8px 24px rgba(0,0,0,.15)); }
.nd-item { position: relative; display: flex; align-items: center; gap: 2px; }
.main-nav .nav-drop-menu a { flex: 1; display: block; padding: 7px 10px; border: 0; border-radius: 4px; box-shadow: none; background: none; color: var(--ink-2);
  font-size: 14px; font-weight: 400; text-decoration: none; white-space: normal; opacity: 1; }
.main-nav .nav-drop-menu a:hover, .main-nav .nav-drop-menu a:focus-visible { background: var(--surface-2); color: var(--ink); }
.main-nav .nav-drop-menu a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nd-sub-btn { flex-shrink: 0; display: inline-grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 4px; background: none; color: var(--muted); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.nd-sub-btn:hover, .nd-item.open > .nd-sub-btn { background: var(--surface-2); color: var(--ink); }
.nd-sub-btn .nd-chev { transform: rotate(90deg); }   /* points left: the venues open to the left */
.nd-sub { display: none; position: absolute; top: -7px; right: 100%; z-index: 1; padding: 6px; }
.nd-sub-head { padding: 4px 10px 6px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.nd-item.open > .nd-sub, .nd-item:focus-within > .nd-sub { display: block; }
@media (hover: hover) and (min-width: 861px) {
  .nav-drop:hover > .nav-drop-menu { display: block; }
  .nav-drop:hover > .nav-drop-btn .nd-chev { transform: rotate(180deg); }
  .nd-item.has-sub:hover > .nd-sub { display: block; }
  .nd-item.has-sub:hover > .nd-sub-btn { background: var(--surface-2); color: var(--ink); }
}
/* phones: inside the folded-out main menu – everything in place, no flyouts */
@media (max-width: 860px) {
  .nav-drop { display: block; border-bottom: 1px solid var(--rule); }
  .nav-drop-btn { width: 100%; justify-content: space-between; padding: 10px 4px; border-radius: 0; }
  .nav-drop-btn[aria-current="page"] { box-shadow: inset 3px 0 0 var(--accent); padding-left: 12px; }
  .nav-drop-menu { position: static; padding: 0 0 8px; }
  .nd-list, .nd-sub { min-width: 0; max-width: none; border: 0; box-shadow: none; padding: 0; background: none; }
  .nd-item { flex-wrap: wrap; }
  .main-nav .nav-drop-menu a { padding: 9px 4px 9px 14px; }
  .nd-sub { position: static; width: 100%; padding-left: 14px; }
  .nd-sub-head { display: none; }
  .nd-sub-btn .nd-chev { transform: none; }
  .nd-item.open > .nd-sub-btn .nd-chev { transform: rotate(180deg); }
  .nd-item:focus-within > .nd-sub { display: none; }
  .nd-item.open > .nd-sub { display: block; }
}
