header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bgheader);
  color: var(--headerText);
  padding: 20px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Logo styling */
.logo-link {
  text-decoration: none;
  color: var(--headerText);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-container img {
  height: 60px;
  width: auto;
}

.logo-container h3 {
  font-size: 14px;
  line-height: 1.3;
  color: var(--headerText);
}

/* Burger menu button styling */
.menu {
  background-color: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  padding: 0;
  width: 40px;
  height: 40px;
}

.menu svg {
  width: 100%;
  height: 100%;
}

/* Burger menu lines */
.line {
  fill: none;
  stroke: var(--tekst);
  stroke-width: 6;
  transition:
    stroke-dasharray 600ms cubic-bezier(0.4, 0, 0.2, 1),
    stroke-dashoffset 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Top burger line */
.line1 {
  stroke-dasharray: 60 207;
  stroke-width: 6;
}

/* Middle burger line */
.line2 {
  stroke-dasharray: 60 60;
  stroke-width: 6;
}

/* Bottom burger line */
.line3 {
  stroke-dasharray: 60 207;
  stroke-width: 6;
}

/* Animation for opened burger menu */
.opened .line1 {
  stroke-dasharray: 90 207;
  stroke-dashoffset: -134;
  stroke-width: 6;
}

/* Middle line animation when menu opens */
.opened .line2 {
  stroke-dasharray: 1 60;
  stroke-dashoffset: -30;
  stroke-width: 6;
}

/* Bottom line animation when menu opens */
.opened .line3 {
  stroke-dasharray: 90 207;
  stroke-dashoffset: -134;
  stroke-width: 6;
}

/* Main navigation burger menu */
.burger {
  position: fixed;
  top: 100px;
  right: 0;
  width: 250px;
  background: var(--bgheader);
  box-shadow: -2px 2px 8px rgba(0, 0, 0, 0.2);
  padding: 20px;
  border-radius: 8px 0 0 8px;
  z-index: 99;
  transition: right 0.3s ease-in-out;
}

.burger ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.burger a {
  text-decoration: none;
  color: var(--altTekst);
  font-weight: 500;
  display: block;
  padding: 10px 15px;
  border-radius: 5px;
  transition: background-color 0.2s;
}

.burger a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Hidden menu state */
.off-screen {
  right: -300px !important;
  display: block !important;
}

/* Visible menu state */
.on-screen {
  right: 0 !important;
  display: block !important;
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
  header {
    padding: 15px;
  }

  .logo-container h3 {
    font-size: 12px;
  }

  .logo-container img {
    height: 50px;
  }

  .menu {
    width: 35px;
    height: 35px;
  }

  .burger {
    width: 200px;
    top: 90px;
  }
}
