@import url('https://fonts.googleapis.com/css?family=Encode+Sans+Condensed:400,600');


@media screen and (max-width: 2560px) {
strong {
  font-weight: 600;
}


header {
  display: flex;
  /* position: fixed; */
  /* width: 100%; */
  /* height: 70px; */
  /* background: linear-gradient(to right, #1a1a1a 20%, #0091ff 100%); */
  color: #fff;
  justify-content: right;
  align-items: center;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
}


#nav-container {
  position: fixed;
  height: 50vh;
  width: 100%;
  pointer-events: none;
  z-index: 1000;
}
#nav-container .bg {
  position: absolute;
  top: 70px;
  left: 0;
  width: 100%;
  /* height: calc(100% - 50px); */
  height: 47vh;
  visibility: hidden;
  opacity: 0;
  transition: .5s;
  background: #000;
}
#nav-container:focus-within .bg {
  visibility: visible;
  opacity: .6;
}
#nav-container * {
  visibility: visible;
}

.button {
  position: fixed;
  /* top: 10px; */
  left: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 1001;
  -webkit-appearance: none;
  border: 0;
  background-color: transparent;
  transition: background-color 0.3s ease; /* Weicher Übergang für die Hintergrundfarbe */
  border-radius: 0;
  height: 60px;
  width: 30px;
  cursor: pointer;
  pointer-events: auto;
  margin-left: 25px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
}
/* .button.scrolled {
  background-color: rgba(255, 255, 255, 0.5); /* Weiße, leicht transparente Farbe 
} */
.icon-bar {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--highlite); /* Sicherstellen, dass die Variable definiert ist */
  transition: 0.3s;
}

.icon-bar + .icon-bar {
  margin-top: 5px;
}
#hamburger-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw; /* Volle Breite des Viewports */
  height: 60px; /* Die Höhe kannst du anpassen */
  /* background-color: transparent;  */
  z-index: 999; /* Muss unter dem Button liegen */
  transition: background-color 0.3s ease;
}

/* Der blaue, leicht transparente Hintergrund, der beim Scrollen angezeigt wird */
.scrolled-background {
  background-color: rgba(0, 0, 255, 0.5); /* Blaue, leicht transparente Farbe */
}

#nav-container:focus-within .button {
  pointer-events: none;
}
#nav-container:focus-within .icon-bar:nth-of-type(1) {
  transform: translate3d(0,8px,0) rotate(45deg);
}
#nav-container:focus-within .icon-bar:nth-of-type(2) {
  opacity: 0;
}
#nav-container:focus-within .icon-bar:nth-of-type(3) {
  transform: translate3d(0,-8px,0) rotate(-45deg);
}

#nav-content {
  margin-top: 70px;
  padding: 20px;
  width: 90%;
  max-width: 300px;
  position: absolute;
  top: 0;
  left: 0;
  height: calc(100% - 70px);
  /* background: #2a2a2a; */
  pointer-events: auto;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
  transform: translateX(-100%);
  transition: transform .3s;
  will-change: transform;
  contain: paint;
}

#nav-content ul {
  height: 100%;
  display: flex;
  flex-direction: column;
}

#nav-content li a {
    
color: var(--highlite);
  padding: 10px 5px;
  display: block;
  text-transform: uppercase;
  transition: color .1s;
}
#nav-content ul li {
    list-style-type: none;
}

#nav-content li a:hover {
  color: #BF7497;
}

#nav-container:focus-within #nav-content {
  transform: none;
}

@media (min-width: 2560px) {
  .button {
    display: none;
  }

  #nav-content {
    transform: none;
    position: relative;
    top: 0;
    height: auto;
    background: transparent;
    display: none;
  }

  #nav-content ul {
    flex-direction: row;
  }

  #nav-content li {
    margin: 0 15px;
  }

  #nav-content li a {
    padding: 10px 20px;
  }

  #nav-content li a:hover {
    background-color: #007bff;
    border-radius: 5px;
  }
}
}