
.mobile {display: none;}

#burger {
    z-index: auto;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    top: -8px;
}

#burger.pressed:before {
    top: 0;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0px 2px 8px 2px rgba(0, 0, 0, 0.4);
}

#burgermenu {
    position: fixed;
    background: #ffffff;
    width: 100vw !important;
    height: 100vh;
    top: 0;
    left: 0;
    padding: 32px;
    padding-top: 7rem;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    z-index: 1;
    transition: opacity 0.25s ease-in;
    opacity: 0;
    pointer-events: none;
    background: #ffffff;
}

#burgermenu .menu {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    row-gap: 22px;
    justify-content: flex-start;
    flex-direction: column;
    align-content: stretch;
}

.header {
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1;
}
.header_wrapper.desktop {
    position: relative;
    width: 100%;
    height: auto;
    z-index: 1;
    padding: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    column-gap: 2rem;
}

.header_links.invisible {width: 0;height: 50px;}

#header_home_wrapper {
  text-decoration: none;
  color: #4b4b4b;
  width: 100%;
  position: relative;
  display: contents;
}

.header_links {
  width: 50%;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  align-self: flex-start;
  column-gap: 20px;
}
.mobile .header_links {width: 70%;}

#startpage #header_logo {
  margin-bottom: 1.5rem;
}    
#header_logo {
    max-width: 200px;
}
.mobile #header_logo {
    margin-bottom: 0;
    max-width: 60px;
}
.header_rechts {float: right;width: 50%;}

.menu {
    display: flex;
    flex-wrap: wrap;
    row-gap: 22px;
    justify-content: flex-start;
    flex-direction: row;
}
#home_button, .first-in-row {
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}
#letzterbtn, .last-in-row {
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
}
.nav_wrapper {
  display: flex;
  background: none;
  padding:0em;
  flex-wrap:wrap;
  row-gap:22px;
}
button {
  position: relative;
  display: inline-block;
  cursor: pointer;
  outline: none;
  border: 1px solid #7F7666;
  border-radius: 3px;
  vertical-align: middle;
  text-decoration: none;
  font-size: 0.8rem;
  font-family: inherit;
}
button.nav_button, button.toggle_button {
  top: 0;
  font-weight: 600;
  margin-right: 4px;
  overflow: visible !important;
  color: #4b4b4b;
  padding: 10px 1.1rem;
  background: #CCC5B8;
  transition: top 250ms cubic-bezier(0, 0, 0.58, 1), box-shadow 250ms cubic-bezier(0, 0, 0.58, 1), background 250ms cubic-bezier(0, 0, 0.58, 1), color 250ms cubic-bezier(0, 0, 0.58, 1);
}
#burgermenu button.nav_button {
  width: 100%;
  border-top-left-radius: 10px !important;
  border-bottom-left-radius: 10px !important;
  border-top-right-radius: 10px !important;
  border-bottom-right-radius: 10px !important;
}
#burgermenu a {
    width: 100%;
    display: inline-block;
    position: relative;
}

button.nav_button svg {position: relative; height: 15px;fill:#4b4b4b;} 


button.nav_button::before, button.toggle_button::before {
  position: absolute;
  content: '';
  width: 100%;
  height: 100%;
  top: 15px;
  left: -1px;
  right: 0;
  bottom: 0;
  border: 1px solid #7F7666;
  box-sizing: content-box;
  background: #7F7666;
  border-radius: inherit;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0px 8px 8px 2px rgba(0, 0, 0, 0.4);
  transition: top 250ms cubic-bezier(0, 0, 0.58, 1), box-shadow 250ms cubic-bezier(0, 0, 0.58, 1), background 250ms cubic-bezier(0, 0, 0.58, 1);;
  z-index: -1;
}
button.nav_button:hover, button.toggle_button:hover {
  background: #BFB7A9;
  top:10px;
}
button.nav_button:hover::before, button.toggle_button:hover::before {
  top: 5px;
  box-shadow: 0 0.45em 0 0 #ECE3D4;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0px 6px 8px 2px rgba(0, 0, 0, 0.4);
}
button.nav_button.selected {
    top: 15px;
    background: #9A3951 !important;
    border: 1px solid #bb3d5d !important;
    color: white;
    fill: white;
}
button.nav_button.selected svg {fill:white;}

button.toggle_button.toggle_aktiv {
  background: #2D5C49;
  color: white;
  top: 15px;
}
button.toggle_button.toggle_aktiv svg {fill:white;}

button.nav_button.selected::before {
  box-shadow: 0 0 32px #9A3951;
  top: 0px;
}
button.toggle_button.toggle_aktiv::before {
  box-shadow: 0 0 32px #2D5C49;
  top: 0px;
}

button.nav_button:focus, button.nav_button:active {
  background:#c07085;
  color: white;
  
}
button.nav_button:active {
  top: 15px;
}
button.nav_button:active svg {fill:white;}

button.nav_button:active::before {
  box-shadow: 0 0 32px #8A3D4F;
  top: 0px;
}

button.toggle_button.pressed {
    color: white;
    z-index: 2 !important;
    top: 25px !important;
}

#header_home_anchor {cursor: pointer;}



/* Media query to handle screen widths below 756px */

@media (max-width: 800px) {

  button.nav_button:hover, button.toggle_button:hover {
    top: 0px;
    background:#CCC5B8;
  }
  button.nav_button:hover::before, button.toggle_button:hover::before {
    top: 15px;
  }
  button.toggle_button.pressed {
    top: 4px !important;
  }

  
  .mobile {
    display: flex;
    z-index: 1;
    position: relative;
    width: 100%;
    height: auto;
    flex-wrap: nowrap;
    flex-direction: row-reverse;
    justify-content: space-between;
    padding: 32px;
    align-items: center;
  }
  .header_wrapper.desktop {display: none;}
  .header_links.invisible {
    opacity: 1;
    z-index: 2;
    height: 86px;
    width: 70% !important;
  }

}


