.lh-hdr {
  --snel: 120ms;
  --basis: 220ms;
  --in: cubic-bezier(0, 0, 0.2, 1);
  --tussen: cubic-bezier(0.4, 0, 0.2, 1);
}

.lh-hdr *, .lh-hdr *::before, .lh-hdr *::after { box-sizing: border-box; }
.lh-hdr a, .lh-hdr a:hover { border-bottom: none; text-decoration: none; }

.lh-hdr {
  position: sticky;
  top: 0;
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px clamp(16px, 3vw, 28px);
  box-sizing: border-box;
  width: 100%;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(10, 10, 10, 0.07);
  background: rgba(255, 255, 255, 0.86);
}

.lh-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  color: #0a0a0a;
}

.lh-logo:hover {
  color: #0a0a0a;
}

.lh-logo-mark {
  position: relative;
  width: 20px;
  height: 20px;
  display: block;
}

.lh-logo-mark img {
  position: absolute;
  inset: 0;
  height: 20px;
  width: auto;
}

.lh-logo-mark img:last-child {
  opacity: 0;
}

.lh-logo-name {
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: #0a0a0a;
}

.lh-hdr-actions {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.5vw, 24px);
}

.lh-languages {
  display: flex;
  align-items: center;
}

.lh-hdr [data-lang-wrap] {
  position: relative;
  flex: none;
}

.lh-hdr [data-lang-trigger] {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid transparent;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  font-family: "Fragment Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0a0a0a;
  transition: border-color var(--snel) var(--tussen), color var(--snel) var(--tussen), background var(--snel) var(--tussen), box-shadow var(--snel) var(--tussen);
}

.lh-hdr [data-lang-trigger] svg {
  transition: transform var(--snel) var(--tussen);
  opacity: 0.72;
}

.lh-hdr [data-lang-wrap][data-open="1"] [data-lang-trigger] svg {
  transform: rotate(180deg);
  opacity: 1;
}

.lh-hdr [data-lang-theme="light"] [data-lang-trigger] {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(10, 10, 10, 0.1);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.lh-hdr [data-lang-theme="light"] [data-lang-trigger]:hover {
  border-color: rgba(255, 106, 0, 0.35);
}

.lh-hdr [data-lang-menu] {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: auto;
  min-width: 148px;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid rgba(10, 10, 10, 0.1);
  background: #ffffff;
  box-shadow: 0 18px 48px -20px rgba(10, 10, 10, 0.28);
  z-index: 200;
  animation: lhIn var(--basis) var(--in) both;
}

@keyframes lhIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.lh-hdr [data-lang-opt] {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: none;
  background: transparent;
  border-radius: 8px;
  padding: 9px 10px;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 400;
  text-align: left;
  text-decoration: none;
  color: #0a0a0a;
  transition: background var(--snel) var(--tussen);
}

.lh-hdr [data-lang-opt][data-active="1"] {
  background: rgba(255, 106, 0, 0.1);
  font-weight: 600;
}

.lh-hdr [data-lang-opt]:hover,
.lh-hdr [data-lang-opt]:focus-visible {
  background: rgba(10, 10, 10, 0.05);
  color: #0a0a0a;
}

.lh-lang-code {
  font-family: "Fragment Mono", monospace;
  font-size: 10px;
  color: #a3a3a3;
}

.lh-login {
  border: none;
  background: transparent;
  padding: 6px 0;
  font-family: "Fragment Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #0a0a0a;
  text-decoration: none;
  transition: color var(--basis) var(--tussen);
}

.lh-login:hover {
  color: #ff6a00;
}

.lh-hdr [data-lang-menu] { display: none; }
.lh-hdr [data-lang-wrap][data-open="1"] [data-lang-menu] { display: block; }
.lh-logo-mark img { max-width: none; }
.lh-logo, .lh-hdr-actions { flex-shrink: 0; }
.lh-login { white-space: nowrap; }

@media (max-width: 920px) {
  .lh-hdr [data-lang-trigger] {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .lh-hdr [data-lang-theme="light"] [data-lang-trigger] {
    background: rgba(255, 255, 255, 0.96);
  }
}

@media (max-width: 480px) {
  .lh-hdr { padding: 12px 16px; }
  .lh-hdr-actions { gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .lh-hdr *, .lh-hdr *::before, .lh-hdr *::after {
    animation: none;
    transition: none;
  }
}
