
:root {
  --rot: #C50D0D;
  --rotActiveSelected: #891313;
  --gelb: #FFC107;
  --gelbActiveSelected: #ac840d;
  --beigeGlass: #eae4d6f2;
  --border-radius: 12px;
  --padding: 2rem;
  --btns-headings-font-neu: "Gabarito", sans-serif;
  --body-font: "Average", sans-serif;
}

.mobile {display: none;}

.header_wrapper {}

.menu_wrapper.mobile {
    z-index: 1;
    position: relative;
    width: 100%;
    flex-wrap: nowrap;
    flex-direction: row-reverse;
    justify-content: space-between;
    height: 100%;
    pointer-events: none;
}

#burger {
    width: 50px;
    height: 50px;
    top: 24px;
    right: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    pointer-events: all;
    background: var(--gelb);
    color: var(--rot);
}

#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: #4a4845;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    padding: 4rem;
    padding-top: 5rem;
    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;
    opacity: 0;
}
#burgermenu .menu {
    display: flex;
    flex-wrap: wrap;
    row-gap: 22px;
    justify-content: flex-start;
    flex-direction: column;
    align-content: stretch;
    width: 100%;
}

#menu {
  width: 33%;
  transition: width 0.2s ease-in;
}
.menu_wrapper.desktop {
    width: 100%;
    position: relative;
    height: 100dvh;
    padding: 5rem;
    padding-top: 2rem;
    padding-right:0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    z-index: 1;
    row-gap: 32px;
}

.menu {
    display: flex;
    row-gap: 22px;
    justify-content: center;
    flex-direction: column;
    width: 100%;
    right: 0;
    flex-wrap: nowrap;
    align-items: flex-end;
    position: absolute;
    height: 100dvh;
    top: 0;
}

.nav_wrapper {
  display: flex;
  background: none;
  padding:0em;
  flex-wrap:wrap;
  row-gap:22px;
}

button.nav_button:nth-child(odd) {background: var(--rot);color:var(--gelb);}
button.nav_button:nth-child(even) {background: var(--gelb);;color:var(--rot)}

button.nav_button {
    top: 0;
    font-weight: 600;
    font-size: 1.5rem;
    overflow: visible !important;
    padding: 20px 1.1rem;
    padding-left: 3rem;
    text-align: left;
    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);
}

button.nav_button svg:nth-child(odd) {position: relative; height: 28px;top:2px;fill:var(--gelb);;}
button.nav_button svg:nth-child(even) {position: relative; height: 28px;top:2px;fill:var(--rot);} 

button.nav_button::before {
  position: absolute;
  content: '';
  width: 100%;
  height: 100%;
  top: 15px;
  left: -1px;
  right: 0;
  bottom: 0;
  box-sizing: content-box;
  background: #921313;
  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:nth-child(even)::before, button.toggle_button:nth-child(even)::before {
  background: #c49919;
}

button.nav_button:hover {
  top:10px;
}
button.nav_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;
}
button.nav_button.selected:nth-child(odd) {
  background: var(--rotActiveSelected);
}
button.nav_button.selected:nth-child(even) {
  background: var(--gelbActiveSelected);
}

button.nav_button.selected::before {
  top: 0px;
}

button.nav_button:nth-child(odd):focus, button.nav_button:nth-child(odd):active {
    background: var(--rotActiveSelected);
}
button.nav_button:nth-child(even):focus, button.nav_button:nth-child(even):active {
    background: var(--gelbActiveSelected);
}
button.nav_button:active {
  top: 15px;
}

button.nav_button:active::before {
  top: 0px;
}

button a {
    color: inherit;
    text-decoration: none;
    height: 100%;
    width: 100%;
    position: relative;
    display: grid;
    padding-left: 3rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
}


#header_home_anchor {cursor: pointer;}


#start_frag .header_links {justify-content: flex-start;}
#start_frag #header_home_wrapper {
  right: 0;
  left: 50px;
}
#start_frag .header_firmenname {width: auto;}

#home_button {width:66%;}
#aktuell_button {width:71%;}
#events_button {width:77%;}
#speisen_button {width:83%;}
#vorstand_button {width:70.5%;}
#kontakt_button {width: 60%;}
#anfahrt_button {width:52%;}

#desktop_menu.desktop_menu_start {width: 50%;}

/* Nav area needs to shrink a little... */ 


@media (max-width: 1340px) {
  button.nav_button {text-align: right;padding-left: 0;}
  .heading_slogan {margin-bottom: 1rem;}
  .header_links {align-self: center;}
}

@media (max-width: 1120px) {
    #menu {width: 40% !important;}
    main {width: 60% !important;}
    .content_side {position: initial;}
    #start_frag #header_home_wrapper {
    bottom: auto;
    top: 32px;
    margin-bottom: 0;
    left: auto;
    position: absolute;
    justify-content: flex-end;
  }
  #desktop_menu.desktop_menu_start {
    width: 100%;
  }
}

@media screen and (max-height: 580px) and (min-width: 801px) {
  .menu {row-gap: 0}
  #start_frag {margin-top: 0;padding-bottom: 2rem;}
  footer {
    background: var(--beigeGlass);
    width: 40%;
    right: 0;
  }
}




/* Media query to handle mobile */

@media (max-width: 800px) {

  .hg {display: none;}
  .page {flex-direction: column;height: 100%;}
  button.nav_button {
    padding-left: 2rem;
    padding-right: 1rem;
    margin-bottom: 1rem;
  }
  .hg {position: relative;}
  #menu {
    width: 100% !important;
    position: relative;
    z-index: 1;
    height: auto;
  }
  .menu_wrapper.mobile {
    position: relative;
    top: 0;
    bottom: auto;
    height: auto;
    background: var(--beigeGlass);
  }
  #burgermenu {
    height: 100dvh;
    overflow-y: auto;
    display: block;
    padding-left: 2rem;
  }
  main#main {width: 100% !important;position: relative;height: auto;}
  .content_side {padding-bottom: 6rem !important;}
  .desktop {display: none !important;}
  .mobile {display: inherit;}
  .menu_wrapper {display: flex;padding: 1rem;flex-direction: row !important;align-items: center;}
  #header_logo {
    max-width: unset;
    height: 80px;
  }
  h1.header_firmenname {
    font-size: 1.5rem;
    width: auto;
  }
  #burger {
    top: 0;
    right: 0;
  }
}