/* LUK Seeth: Menü- und Header-Design.
 * Speicherort: /see/seite/menuenavigation/menue/menue.css
 * Benötigt die originale seeth-header.css-Datei.
 */
#snx,
#smm {
  --seeth-ink: #10291f;
  --seeth-header: #aee2bf;
  --seeth-panel: #fff;
  --seeth-button: rgba(255, 255, 255, .55);
  --seeth-button-hover: rgba(255, 255, 255, .8);
  --seeth-line: rgba(16, 41, 31, .08);
  --seeth-active: #1f8a5b;
  --seeth-category: #cf7415;
}

html.seeth-dark #snx,
html.seeth-dark #smm {
  --seeth-ink: #f1faf5;
  --seeth-header: #10231c;
  --seeth-panel: #0f1f19;
  --seeth-button: #173027;
  --seeth-button-hover: #204132;
  --seeth-line: rgba(255, 255, 255, .08);
  --seeth-active: #6fe0a8;
  --seeth-category: #ffc77d;
}

/* Fixierter Header */
#snx {
  position: fixed !important;
  inset: 0 0 auto;
  z-index: 9995;
  width: 100%;
  margin: 0 !important;
}

#snx .snx-bar {
  gap: 8px;
  padding: calc(12px + env(safe-area-inset-top, 0px))
           max(14px, calc(50% - 280px)) 12px;
  border: 0;
  border-bottom: 1px solid var(--seeth-line);
  border-radius: 0;
  background: var(--seeth-header);
  color: var(--seeth-ink);
  box-shadow: 0 4px 18px rgba(16, 41, 31, .06);
}

#snx .snx-brand {
  gap: 10px;
  color: var(--seeth-ink);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -.02em;
}

#snx .snx-logo {
  flex: 0 0 auto;
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  color: inherit;
}

#snx .snx-logo svg { width: 26px; height: 26px; }

#snx .snx-btn {
  height: 46px;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 16px;
  background: var(--seeth-button);
  color: var(--seeth-ink);
  font-size: 15px;
  font-weight: 800;
}

#snx .snx-btn:hover { background: var(--seeth-button-hover); }

#snx #snx-theme {
  width: 40px;
  min-width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(16, 41, 31, .14);
  border-radius: 12px;
  background: rgba(255, 255, 255, .45);
}

#snx #slp-open {
  gap: 8px;
  padding: 0 14px 0 12px;
  border-radius: 23px;
}

#snx #slp-open svg { width: 22px; height: 22px; }

#snx #slp-open::after {
  content: '';
  width: 8px;
  height: 8px;
  margin: -4px 2px 0 4px;
  border-right: 2.6px solid currentColor;
  border-bottom: 2.6px solid currentColor;
  transform: rotate(45deg);
}

#snx .snx-lang-label {
  max-width: 96px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#snx .snx-burger {
  width: 46px;
  min-width: 46px;
  padding: 0;
  background: var(--seeth-button);
  color: var(--seeth-ink);
}

#snx .snx-burger:hover { background: var(--seeth-button-hover); }
#snx .snx-burger svg { width: 26px; height: 26px; stroke-width: 2.8; }

html.seeth-dark #snx .snx-bar { box-shadow: 0 4px 18px rgba(0, 0, 0, .35); }
html.seeth-dark #snx .snx-btn,
html.seeth-dark #snx .snx-burger { border: 0; }
html.seeth-dark #snx #snx-theme {
  border: 1px solid rgba(255, 255, 255, .14);
  background: transparent;
}

html.seeth-dark #smm .smm-close { border: 0; }

/* Vollbildmenü */
#smm,
#smm * { box-sizing: border-box; }

#smm {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  flex-direction: column;
  background: var(--seeth-panel);
  color: var(--seeth-ink);
  font-family: Inter, 'Noto Sans', system-ui, -apple-system, sans-serif;
  text-align: left;
}

#smm.on {
  display: flex;
  animation: smm-in .28s cubic-bezier(.16, 1, .3, 1);
}

@keyframes smm-in {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}

#smm .smm-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: calc(14px + env(safe-area-inset-top, 0px))
           max(16px, calc(50% - 280px)) 14px;
  border-bottom: 1px solid var(--seeth-line);
  background: var(--seeth-header);
}

#smm .smm-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -.02em;
}

#smm .smm-brand svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#smm .smm-close {
  flex: 0 0 46px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 16px;
  background: var(--seeth-button);
  color: var(--seeth-ink);
  cursor: pointer;
}

#smm .smm-close svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
}

#smm .smm-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 6px max(16px, calc(50% - 280px))
           calc(28px + env(safe-area-inset-bottom, 0px));
}

#smm .smm-grp {
  display: block;
  margin: 22px 4px 4px;
  color: var(--seeth-category);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}

#smm .smm-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 62px;
  padding: 12px 6px;
  border-bottom: 1px solid var(--seeth-line);
  color: var(--seeth-ink) !important;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none !important;
  -webkit-tap-highlight-color: transparent;
}

#smm .smm-link svg {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .7;
}

#smm .smm-link:active { background: rgba(31, 138, 91, .08); }
#smm .smm-link[aria-current='page'] { color: var(--seeth-active) !important; }

#smm .smm-link[aria-current='page']::before {
  content: '';
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  margin-right: -4px;
  border-radius: 50%;
  background: var(--seeth-active);
}

html[dir='rtl'] #smm { text-align: right; }
html[dir='rtl'] #smm .smm-link svg { transform: scaleX(-1); }

@media (max-width: 380px) {
  #snx .snx-brand { font-size: 20px; }
  #snx #slp-open { padding: 0 10px; }
  #snx .snx-lang-label { max-width: 72px; }
}

@media (max-width: 360px) {
  #snx #slp-open::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  #smm.on { animation: none; }
}
