﻿ul.listmenu {
max-height: 100vh;
  overflow-y: auto;
}
ul.listmenu, ul.listmenu li {
  
  padding: 0;
  list-style: none;
}
ul.listmenu li {
  margin: 0;
  padding: 0;
  list-style: none;
}
ul.listmenu {
margin: 0;
 padding: 0;
  list-style: none;
  padding-bottom: 200px;
}

/* Hvert menupunkt */
ul.listmenu li {
  border-top: 1px solid #ddd;   /* linje over */
  width: 100%;
}

/* Selve linket */
ul.listmenu li a {
  display: flex;                /* saa tekst + pil kan fordeles */
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 12px 16px;
  text-decoration: none;
  color: #000;
  box-sizing: border-box;
  font-weight: 400;
}

/* Pil til hoejre */
ul.listmenu, ul.listmenu li a .menu-arrow {
  flex-shrink: 0;   /* pilen skal ikke skubbes sammen */
}

  body {
    margin: 0;
    font-family: Arial, sans-serif;
  }
  /* Burger knap */
  .burger {
    font-size: 18px;
    cursor: pointer;
    z-index: 99;
    position: relative;
    width:120px;
    text-align: left;
  }
  /* Overlay */
  .overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    z-index: 99;
  }
  /* Selve menuen */
  .menu {
    position: fixed;
    top: 0;
    left: -400px; /* skjult */
    width: 400px;
    height: 100%;
    background: #fff;
    box-shadow: 2px 0 5px rgba(0,0,0,0.3);
    transition: left 0.3s ease;
    z-index: 100;
    padding: 20px;
  }
  .menu.open {
    left: 0;
  }
  /* Luk knap */
  .close-btn {
    font-size: 25px;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 15px;
  }
  /* ---- Mobil tilpasning ---- */
  @media (max-width: 768px) {
    .menu {
      width: 100%;
      left: -100%;
    }
    .menu.open {
      left: 0;
    }
  }