/* Add a black background color to the top navigation */
.topnav {
    background-color: transparent;
    overflow: hidden;
    /* Korrektur: Komma statt Semikolon nach sans-serif */
    font-family: 'Jaldi', sans-serif, Tahoma, Arial, Helvetica, sans-serif;
}

/* Style the links inside the navigation bar */
.topnav a {
    float: left;
    display: block;
    color: #f2f2f2;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
}

/* Change the color of links on hover */
.topnav a:hover {
    background-color: #ddd;
    color: black;
}

/* Hide the link that should open and close the topnav on small screens */
.topnav .icon {
    display: none;
} 

/* FEHLERBEHEBUNG: 
   Wir fügen !important hinzu, um sicherzustellen, dass die 
   allgemeinen Styles aus der style.css diese Regeln nicht überschreiben.
*/

@media screen and (max-width: 600px) {
  /* Alle Links außer dem ersten (Home) AUSBLENDEN */
  .topnav a:not(:first-child) {
      display: none !important;
  }
  
  /* Das Hamburger-Icon ANZEIGEN */
  .topnav a.icon {
    float: right !important;
    display: block !important;
  }
}

@media screen and (max-width: 600px) {
  /* Wenn das Menü per JS die Klasse .responsive bekommt */
  .topnav.responsive {
      position: relative;
  }
  
  .topnav.responsive a.icon {
    position: absolute;
    right: 0;
    top: 0;
  }
  
  /* Alle Links wieder ANZEIGEN, wenn aufgeklappt */
  .topnav.responsive a {
    float: none !important;
    display: block !important;
    text-align: left;
  }
}