#header-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transform: translateY(calc(-100% - 2px));
  transition: transform 0.3s ease;
  box-shadow: 0 2px 12px var(--shadow-light);
}

#header-container.visible {
  transform: translateY(0);
}

#header-container.header-hidden {
  transform: translateY(calc(-100% - 2px));
}

.stickyHeader {
  position: static;
}

/* ─── Header ─── */
header {
  height: 100px;
  background-color: var(--accent-light);
  border-bottom: 1px solid var(--accent-green);
}

.menu-toggle {
  display: none;
  /* Dold på dator */
}

header.box {
  padding: 15px clamp(15px, 2.5vw, 40px);
  display: flex;
  align-items: center;
  position: relative;
}

.headerLeft {
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 1;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex: 1;
  justify-content: flex-end;
}

.logo-link {
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.logo-link:hover {
  opacity: 0.8;
}

.headerLogo {
  height: 70px;
  width: auto;
  object-fit: contain;
}

/* ─── Nav ─── */
nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 50px;
  justify-content: center;
  align-items: center;
  padding: 0;
  margin: 0;
  background: none;
}

nav a {
  color: var(--text-link);
  text-decoration: none;
  transition: color 0.2s ease;
  white-space: nowrap;
}

nav a:hover {
  color: var(--text-dark);
}

nav a.active {
  color: var(--text-dark);
  font-weight: bold;
}

nav ul {
  display: flex;
  justify-content: center;
  gap: clamp(12px, 3.5vw, 50px);
  list-style: none;
  padding: 0;
  margin: 0;
}

nav li {
  cursor: pointer;
  font-weight: bold;
  white-space: nowrap;
}

.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px;
  opacity: 0.5;
  transition: opacity 0.2s, transform 0.2s;
}

/* Desktop: visa bara den utanför nav */
.lang-switcher {
  display: none;
}

.lang-switcher-desktop {
  display: flex;
  gap: 4px;
  align-items: center;
  margin-left: 30px;
}


/* Mobile: visa bara den inuti nav, längst ner */
@media (max-width: 960px) {
  .lang-switcher-desktop {
    display: none !important;
  }

  .lang-switcher {
    position: absolute;
    top: 1px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 16px 0 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    width: 80%;
  }

  /* Se till att nav är en flex-kolumn så margin-top:auto funkar */
  #nav-menu {
    display: flex;
    flex-direction: column;
  }
}

.lang-btn .fi {
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 3px;
  display: block;
}

.lang-btn:hover {
  opacity: 0.75;
  transform: scale(1.1);
}

.lang-btn.active {
  opacity: 1;
  transform: scale(1.15);
}