/* LIVE Rosenau */

/*
TODO
- fallback for non popover
*/

/*
header {
  display: flex;
  justify-content: space-between;
}
#desktop-menu {
  display: flex;
  gap: 1.5rem;
}
*/
#mobile-menu-btn-show {
  display: none;
  display: block;
  cursor: pointer;
}
#mobile-menu-btn-close {
  width: fit-content;
  cursor: pointer;
  /*position: absolute;*/
  top: 1rem;
  right: 1em;
  order: -1;
  align-self: flex-end;
}
#mobile-menu {
  --color-link: var(--color-light);
  flex-direction: column;
  gap: 1.5rem;
  height: 100%;
  inset: unset;
  top: 0;
  right: 0;
  background-color: #fff;
  border: none;
  padding: 1rem 0.25rem 0 1.5rem;
	padding: 2em;
	display: none;
  justify-content: flex-start;
  background: var(--color-orange);
}
#mobile-menu:popover-open {
  display: flex;
	left: 0;
	width: 100%;
  height: auto;
  overflow-y: auto;
  /*max-inline-size: 1920px;*/
}
#mobile-menu::backdrop {
  background-color: rgba(0, 0, 0, 0.5);
}
#mobile-menu p {
  color: var(--color-light);
}
#mobile-menu a {
  width: fit-content;
}
/*
@media screen and (orientation: landscape) and (min-width: 1024px) {
  #mobile-menu:popover-open {
    flex-flow: row wrap;
    gap: 0;
  }
}
*/
@media screen and (orientation: landscape) and (min-width: 1024px) {
  #mobile-menu-btn-close {
    position: static;
    justify-self: flex-end;
  }
	/*
  #mobile-menu:popover-open {
    display: grid;
		grid-template-columns: auto 1fr;
    grid-template-columns: 1px 1fr;
		grid-template-rows: auto;
		grid-template-areas:
			"empty button"
      "highlights navigation"
      "bottomleft text";
	}
  */
  #mobile-menu:popover-open {
    display: grid;
    grid-template-columns:
      minmax(0, 1fr)
      minmax(0, 100%)
      minmax(0, 1fr);
    grid-template-rows: auto;
		grid-template-areas:
      "highlights button empty"
      "highlights navigation empty"
      "highlights text empty";
  }
  /* Middle column cap */
  @supports (width: clamp(0px, 100%, 1823px)) {
    #mobile-menu:popover-open {
      grid-template-columns:
        minmax(0, 1fr)
        clamp(0px, calc(100% - 2em), 1823px)
        minmax(0, 1fr);
      gap: 1em;
    }
  }
  #mobile-menu:popover-open > *:first-child {
    grid-area: highlights;
  }
  #mobile-menu:popover-open > *:nth-child(2) {
    grid-area: navigation;
    /*width: 100%;
    max-inline-size: 1920px;
    margin-inline: auto;*/
  }
  #mobile-menu:popover-open > *:nth-child(3) {
    grid-area: text;
    /*width: 100%;
    max-inline-size: 1920px;
    margin-inline: auto;*/
  }
	#mobile-menu:popover-open > *:last-child {
    grid-area: button;
  }
}








/*
@media (max-width: 7680px) {
  #desktop-menu {
    display: none;
  }
  #mobile-menu-btn-show {
    display: flex;
		display: block;
  }
}
*/