header {
  position: fixed;
  z-index: 9999;
  left: var(--mainspacing);
  width: calc(100% - 2 * var(--mainspacing));
}

.nav {

  display: flex;
  height: var(--mainspacing);
  padding-top: var(--smallspacing);
  padding-bottom: var(--smallspacing);
  width: 100%;
  background: #fff;

  color: #000;
  font-family: sans-serif;
}

/* Skjuler checkboxen */
.menu-toggle {
  display: none;
}

/* Hamburger ikon */
.hamburger {
  margin: auto 0;
  cursor: pointer;
  max-height: 100%;
  max-width: 153px;
}

.logo,
.logo img {
  margin-left: auto;
  cursor: pointer;

  max-height: 100%;
  max-width: 155px;
}

@media (max-width: 991px) {
  .logo,
  .logo img {
    margin-left: auto;
    max-height: 23px;
  }
}

.offscreen-menu {
  position: fixed;
  top: 0;
  right: -900px;
  width: 900px;
  height: 100%;
  background-color: white;
  box-shadow: -2px 0 5px rgba(0, 0, 0, 0.3);
  transition: right 0.3s ease-in-out;
  z-index: 1000;
}

.offscreen-menu.visible {
  right: 0;
}


.navcontainer {
  min-height: 100vh;
  display: flex;
  background-color: #f9fafb;
}

.main-navigation {
  background-color: white;
  height: 100vh;
  overflow: visible;
  display: flex;
  width: 880px;
  font-family: "Inter", sans-serif;
  position: relative;
}

.nav-level {
  background-color: white;
  border-right: 1px solid #e5e7eb;
  width: 320px;
  height: 100vh;
  overflow-y: auto;
}

.nav-level ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 60px;
  cursor: pointer;
  transition: all 0.2s;
  color: #374151;
  background-color: white;
  border-bottom: 1px solid #e5e7eb;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.nav-item a {
  text-decoration: none;
  color: inherit;
}

.nav-item:hover {
  background-color: #f9fafb;
  color: #111827;
}

.nav-item.level-1 {
  padding: 0 32px;
  font-size: 13px;
  font-weight: 500;
}

.nav-item.level-2 {
  padding: 0 48px;
  color: #6b7280;
  font-size: 12px;
  font-weight: 400;
}

.nav-item.has-submenu {
  cursor: pointer;
}

.nav-text {
  flex: 1;
}

.nav-arrow {
  transition: transform 0.2s;
  color: #9ca3af;
  width: 16px;
  height: 16px;
}

.nav-arrow.expanded {
  transform: rotate(90deg);
}

.nav-spacer {
  height: 60px;
  background-color: white;
  border-bottom: 1px solid #e5e7eb;
}

.content {
  flex: 1;
  padding: 32px;
}

.content-inner {
  max-width: 1024px;
  margin: 0 auto;
}

.title {
  font-size: 2.25rem;
  font-weight: bold;
  margin-bottom: 24px;
  color: #111827;
}

/*
  .card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    padding: 24px;
    border: 1px solid #e5e7eb;
  }

  .card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: #1f2937;
  }

  .card-text {
    color: #6b7280;
    margin-bottom: 16px;
  }
    */

.features {
  margin-bottom: 16px;
}

.features h3 {
  font-size: 1.125rem;
  font-weight: 500;
  color: #1f2937;
  margin-bottom: 8px;
}

.features ul {
  list-style: disc;
  padding-left: 20px;
}

.features li {
  color: #6b7280;
  margin-bottom: 4px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .main-navigation {
    width: 100%;
    height: auto;
    overflow-y: auto;
    flex-direction: column;
  }

  .nav-level {
    width: 100%;
  }
}

/* Scrollbar styles */
.nav-level::-webkit-scrollbar {
  width: 6px;
}

.nav-level::-webkit-scrollbar-track {
  background-color: #f3f4f6;
}

.nav-level::-webkit-scrollbar-thumb {
  background-color: #d1d5db;
  border-radius: 3px;
}

ja .nav-level::-webkit-scrollbar-thumb:hover {
  background-color: #9ca3af;
}



.mobile-menu {
  display: none;
}

@media (max-width: 991px) {

  .navcontainer {
    display: none;
  }

  .offscreen-menu {
    position: fixed;
    top: 0;
    right: -100vw;
    width: 100vw;
    height: 100%;
    background-color: white;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.3);
    transition: right 0.3s ease-in-out;
    z-index: 1000;
  }

  .offscreen-menu.visible {
    right: 0;
  }


  /* ================================
   Mobile Menu Base Styles
   ================================ */

  .mobile-menu {
    position: relative;
    max-width: 100vw;
    font-family: sans-serif;
    display: block;
  }

  /* Hide all checkboxes */
  .mobile-menu input[type="checkbox"] {
    display: none;
  }

  /* Root toggle button */
  .menu-icon {
    display: block;
    background: #333;
    color: #fff;
    padding: 1em;
    cursor: pointer;
    user-select: none;
  }

  /* Root menu hidden by default */
  #menu-toggle~.menu {
    display: none;
  }

  #menu-toggle:checked~.menu {
    display: block;
  }

  /* Main menu & submenus share common styles */
  .menu,
  .submenu {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  /* ================================
     Leaf links (no children)
     ================================ */

  .menu li a {
    display: block;
    padding: 1em;
    background: #f9f9f9;
    text-decoration: none;
    color: #333;
    border-top: 1px solid #ddd;
  }

  /* ================================
     Submenu toggler labels
     ================================ */

  .has-submenu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 1em;
    background: #f9f9f9;
    border-top: 1px solid #ddd;
  }

  .has-submenu .arrow {
    font-size: 0.8em;
  }

  /* ================================
     Submenus hidden by default
     ================================ */

  .submenu {
    display: none;
  }

  /* Show submenu when its toggle is checked */
  input[type="checkbox"]:checked+.has-submenu+.submenu {
    display: block;
  }

  /* ================================
     Submenu link styling
     ================================ */

  .submenu li a,
  .submenu .has-submenu {
    padding-left: 2em;
    background: #eee;
  }

  /* Optional: more indent for deeper levels */
  .submenu .submenu li a,
  .submenu .submenu .has-submenu {
    padding-left: 3em;
    background: #ddd;
  }

  /* ================================
     Smooth transitions (optional)
     ================================ */

  .submenu {
    overflow: hidden;
    transition: all 0.3s ease;
  }
}