* {
  margin: 0;
  padding: 0;
  list-style: none;
  box-sizing: border-box;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

body::after {
  position: fixed;
  bottom: 1em;
  right: 1em;
  opacity: 0.5;
  font-size: 0.8em;
  border-bottom: 1px solid rgba(0, 0, 0, 0.5);
}

nav {
  width: 100%;
  display: flex;
  justify-content: space-between;
  background-image: url(../images/bg_wood.jpg);
  align-items: center;
  position: fixed;
  top: 0;
  z-index: 10;
  padding: 0 1em;
  height: 60px;
}

nav ul {
  display: flex;
  justify-content: flex-end;
  flex-grow: 1;
  padding: 0;
  margin: 0;
}

nav li {
  margin: 0;
  text-align: center;
}

nav a {
  display: block;
  padding: 1em;
  font-size: 1.3em;
  text-decoration: none;
  color: goldenrod;
}

nav a:hover {
  background: rgba(0, 0, 0, 0.2);
}
#newsLink {
  font-weight: bold;
  color: crimson;

  padding: 1em 1.5em;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

#newsLink:hover {
  background: rgba(0, 0, 0, 0.4);
  transform: scale(0.8);
}

#toggle-nav {
  background: rgba(0, 0, 0, 0.2);
  display: none;
  position: absolute;
  right: 1em;
  top: 50%;
  transform: translateY(-50%);
  padding: 1em;
  color: goldenrod;
  cursor: pointer;
}

#toggle-nav:hover {
  background: rgba(0, 0, 0, 0.4);
}

.logo {
  padding: 0.3em;
  margin-left: 2em;
  max-width: 10%;
  height: 100%;
  object-fit: contain;
}

@media screen and (max-width: 800px) {
  #toggle-nav {
    display: block;
  }

  nav {
    flex-direction: row;
    align-items: center;
  }

  nav ul {
    display: none;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 60px;
    left: 0;
    background-image: url(../images/bg_wood.jpg);
    text-align: center;
  }

  nav.open ul {
    display: flex;
  }

  .logo {
    margin-left: 2em;
    max-width: 25%;
    height: auto;
    object-fit: contain;
  }

  #toggle-nav {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  #toggle-nav:hover {
    background: rgba(0, 0, 0, 0.4);
  }

  #newsLink {
    font-weight: bold;
    color: crimson;
    /* background: rgba(0, 0, 0, 0.2); */
    /*  background-color: rgba(255, 255, 255, 0.3);
    border-radius: 5px; */
    padding: 1em 1.5em;
    transition: background-color 0.3s ease, transform 0.2s ease;
  }

  #newsLink:hover {
    background: rgba(0, 0, 0, 0.4);
    transform: scale(1.1);
  }
}

@media screen and (min-width: 801px) {
  nav ul {
    display: flex;
    flex-direction: row;
  }

  #toggle-nav {
    display: none;
  }
  #toggle-nav:hover {
    background: rgba(0, 0, 0, 0.4);
  }
}

/* Media Query für Tablet Portrait (600x800) */
@media only screen and (min-width: 600px) and (max-width: 600px) and (min-height: 800px) and (max-height: 800px) {
  .logo {
    margin-left: 2em;
    max-width: 15%;
    height: auto;
    object-fit: contain;
  }
}

/* Media Query für Tablet Portrait (768x1024) */
@media only screen and (min-width: 768px) and (max-width: 768px) and (min-height: 1024px) and (max-height: 1024px) {
  .logo {
    margin-left: 2em;
    max-width: 15%;
    height: auto;
    object-fit: contain;
  }
}
