/* NKI header correction: logo left, hamburger menu right, language switch within navigation.
   Applies only to public .header pages (not /shop/, /verwaltung/ or EN shop preview). */
.header.wrap { display:flex; align-items:center; justify-content:space-between; }
.header > .brand { flex:0 0 auto; order:0; margin-right:auto; }
.header > .menu { order:1; }
.header > .nav { order:2; }
.header .nav .nki-language-switch {
  position:static; top:auto; right:auto; bottom:auto; left:auto;
  display:flex; align-items:center; justify-content:flex-end;
  width:auto; flex:0 0 auto; gap:6px;
  margin:0 0 0 8px; padding:0;
  font:700 12px/1.2 system-ui,Arial,sans-serif;
  letter-spacing:.03em; white-space:nowrap;
}
.header .nav .nki-language-switch a {
  display:inline-flex; justify-content:center; align-items:center;
  min-width:32px; min-height:34px; padding:6px 7px;
  border:1px solid transparent; border-radius:5px;
  text-decoration:none; color:inherit; opacity:.75;
}
.header .nav .nki-language-switch a[aria-current="page"] {
  border-color:currentColor; box-shadow:none; opacity:1;
}
.header .nav .nki-language-switch a:hover,
.header .nav .nki-language-switch a:focus-visible { opacity:1; text-decoration:underline; }
.header .nav .nki-language-separator { opacity:.55; font-weight:400; }
/* Earlier patches added a desktop left-positioned switch. Override those rules. */
@media (max-width:1250px) {
  .header > .brand { margin-right:auto; }
  .header > .menu { display:block; margin-left:auto; flex:0 0 auto; }
  .header > .menu::before { content:"☰"; display:inline-block; margin-right:8px; font-size:17px; vertical-align:-1px; }
  .header > .menu[aria-expanded="true"]::before { content:"×"; }
  .header > .nav {
    display:none; position:absolute; top:calc(100% - 1px); left:-5.6%; right:-5.6%;
    padding:18px 5% 20px; background:#171b19;
    border-bottom:1px solid #75836c;
    flex-direction:column; align-items:stretch; gap:0; z-index:40;
  }
  .light-page .header > .nav { background:#e9e4d9; }
  .header > .nav.open { display:flex; }
  .header > .nav > a { display:block; padding:12px; font-size:15px; }
  .header .nav .nki-language-switch {
    width:100%; align-self:stretch; justify-content:flex-end;
    margin:10px 0 0; padding:10px 7px 3px;
    border-top:1px solid rgba(150,150,150,.25);
  }
  .header .nav .nki-language-switch a { min-height:38px; min-width:42px; }
}
@media (min-width:1251px) {
  .header > .menu { display:none; }
  .header > .nav { margin-left:auto; }
}
