@media (max-width: 575px) {
    .hide-before-sm {
        display: none;
    }
}
@media (min-width: 576px) {
    .show-before-sm {
        display: none;
    }
}
@media (max-width: 767px) {
    .hide-before-ml {
        display: none;
    }
}
@media (min-width: 768px) {
    .show-before-ml {
        display: none;
    }
}

.mainmenu{
  font-size: calc(var(--pico-font-size)*0.8);
}

.sub-items {
    display: block;
    opacity: 0;
    max-height: 0;
    margin: 0;
    padding-top: 0;
    padding-bottom: 0;
    flex-grow: 1;
    width: 0;
    line-height: calc(var(--pico-line-height)/2);
    transition: all 300ms ease; /* Animationseffekt */
    transform: translateY(-20px);
}

.sub-items >li{
    /* font-size: calc(var(--pico-font-size)*0.65); */
    width:fit-content;
    padding-top: calc(var(--pico-typography-spacing-vertical)/3); 
    padding-bottom: calc(var(--pico-typography-spacing-vertical)/3);
    overflow-y: hidden;
    text-wrap: nowrap;
    overflow: hidden;
}

.parentmenu{
    display: inline;
}

.parentmenu > aside{
    display: flex;
}


  /* Zeigt das Dropdown an */
.parentmenu:hover .sub-items {
    display: block;
    max-height: 50vh;
    opacity: 1;
    transform: translateY(0);
    padding-top: calc(var(--pico-typography-spacing-vertical)/2);
    
    
}

.flex-start{
    align-items: start;
}
.flex-center{
    align-items: center;
}

.p-bt-0{
    padding-bottom: 0!important;
}

.m-bt-0{
    margin-bottom: 0!important;
}

#innlights-logo{
    fill: url(#inn-shape-gradient);
    height: var(--pico-font-size);
}



/* Hamburger */

#menuToggle
{
    display: block;
    position: relative;
    /* left: 50px; */
/*     top: 2.5rem;
    right: 2.5rem; */
    z-index: 1;
    -webkit-user-select: none;
    user-select: none;
}

#menuToggle a
{
  text-decoration: none;
  /* color: var(--inn-dark-2); */
  
  transition: color 0.3s ease;
}

#menuToggle input
{
  display: block;
  width: 40px;
  height: 32px;
  position: absolute;
  top: -7px;
  left: -5px;
  
  cursor: pointer;
  
  opacity: 0; /* hide this */
  z-index: 2; /* and place it over the hamburger */
  
  -webkit-touch-callout: none;
}

/*
 * Just a quick hamburger
 */
#menuToggle span
{
  display: block;
  width: 33px;
  height: 4px;
  margin-bottom: 5px;
  position: relative;
  
  background: var(--pico-color);
  border-radius: 3px;
  
  z-index: 1;
  
  transform-origin: 4px 0px;
  
  transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
              background 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
              opacity 0.55s ease;
}

#menuToggle span:first-child
{
  transform-origin: 0% 0%;
}

#menuToggle span:nth-last-child(2)
{
  transform-origin: 0% 100%;
}

/* 
 * Transform all the slices of hamburger
 * into a crossmark.
 */
#menuToggle input:checked ~ span
{
  opacity: 1;
  transform: rotate(45deg) translate(-2px, -1px);
  background: var(--inn-gradient);
}

/*
 * But let's hide the middle one.
 */
#menuToggle input:checked ~ span:nth-last-child(3)
{
  opacity: 0;
  transform: rotate(0deg) scale(0.2, 0.2);
}

/*
 * Ohyeah and the last one should go the other direction
 */
#menuToggle input:checked ~ span:nth-last-child(2)
{
  transform: rotate(-45deg) translate(0, -1px);
}

/*
 * Make this absolute positioned
 * at the top left of the screen
 */
#menu
{
    position: fixed;
    top: 0;
    right: 0;
    /* max-width: 70vw; */
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 0;
    /* max-height: 100vh; */
    /* margin: -5rem 0 0 5rem; */
    /* padding: 50px; */
    /* padding-top: 125px; */
    box-sizing: border-box;
    overflow-y: auto;
    background: var(--pico-background-color);;
    list-style-type: none;
    -webkit-font-smoothing: antialiased;
    transform-origin: 0% 0%;
    transform: translate(0, -100vh);
    transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2.5rem;
    padding-top: 5rem;
}
/*
#menu li
{
  padding: 10px 0;
  font-size: 22px;
}*/
 
#menu li label
{
  cursor: pointer;
}

/*
 * And let's slide it in from the left
 */
#menuToggle input:checked ~ ul
{
  transform: none;
}