@charset "UTF-8";

.overlay {  /* Schwarzer Hintergrund des Menüs. div mit Menüpunkten trägt diese Klasse */
  height: 0%;
  width: 100%;
  position: fixed;
  z-index: 1; /* bleibt im Vordergrund */
  top: 0;
  left: 0;
  background-color: rgb(0,0,0); /* Fallback-Color */
  background-color: rgba(0,0,0, 0.9); /* Teil-Opazität */
  overflow-y: hidden; /* vertikales Scrollen wird verhindert */
  transition: 0.5s; /* Verzögerung beim Erscheinen */
}

/* Positionierung des Inhalts im Overlay */
.overlay-content {
  position: relative;
  top: 25%;
  width: 100%;
  text-align: center;
  margin-top: 30px; /* Zur Vermeidung von Konflikten mit dem X-Button auf kleinen Screens */
}

.overlay a {
  padding: 0.1em;
  text-decoration: none;
  font-size: 2.5em;
  color: #818181;
  display: block;
  transition: 0.3s; /* Verzögerung des Hover-Effekts */
}

.overlay a.additional {
  padding: 2em;
  font-size: 1.5em;
}

.overlay a:hover, .overlay a:focus {
  color: #f1f1f1;
  font-style: normal;
}

.overlay .closebtn {
  position: absolute;
  top: 20px;
  right: 45px;
  font-size: 60px;
}

/* Media Query für kleine Screens, kleinere Schriften und angepasste Pos. Close-Buttons */
@media screen and (max-height: 450px) {
  .overlay a {font-size: 20px}
  .overlay .closebtn {
  font-size: 40px;
  top: 15px;
  right: 35px;
  }
} /* Ende @media */