/* Grundlegende Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Inter", sans-serif;
}

body {
  background-color: #f4f4f4;
  color: #333;
  transition: background 0.3s, color 0.3s;
}

/* Dark Mode */
body.dark-mode {
  background-color: #121212;
  color: #f1f1f1;
}

/* Basis-Styling für den Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background: #0a192f; /* Dunkelblau */
  color: white;
  position: relative;
}

/* Container für Menü-Button & Logo */
.header-container {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Styling für das Logo */
.logo {
  font-size: 1.5em;
  font-weight: bold;
}

/* Menü-Toggle (☰) Styling */
.menu-toggle {
  background: none;
  border: none;
  color: white;
  font-size: 1.8em;
  cursor: pointer;
  display: block;
}

/* Sidebar (versteckt standardmäßig) */
.nav-sidebar {
  position: fixed;
  top: 0;
  left: -250px; /* Startet außerhalb des Bildschirms */
  width: 250px;
  height: 100%;
  background: #112240; /* Dunkelblau-Ton */
  transition: left 0.3s ease-in-out;
  padding-top: 60px;
  box-shadow: 5px 0 10px rgba(0, 0, 0, 0.2);
}

/* Sichtbare Sidebar */
.nav-sidebar.active {
  left: 0;
}

/* Navigation Links */
.nav-list {
  list-style: none;
  padding: 0;
}

.nav-list li {
  padding: 15px;
  text-align: center;
}

.nav-list li a {
  color: white;
  text-decoration: none;
  font-size: 1.2em;
  display: block;
}

.nav-list li a:hover {
  background: #0a192f;
  transition: 0.3s;
}

/* Dark-Mode-Button */
.dark-mode-toggle {
  background: none;
  border: none;
  color: white;
  font-size: 1.5em;
  cursor: pointer;
  margin-right: 15px;
}

/* Sidebar (versteckt standardmäßig) */
.nav-sidebar {
  position: fixed;
  top: 0;
  left: -250px; /* Startet außerhalb des Bildschirms */
  width: 250px;
  height: 100%;
  background: #112240; /* Dunkelblau */
  transition: left 0.3s ease-in-out;
  padding-top: 60px;
  box-shadow: 5px 0 10px rgba(0, 0, 0, 0.2);
  z-index: 1000; /* Stellt sicher, dass es über allem liegt */
  overflow-y: auto; /* Falls Inhalte zu lang sind */
  display: flex;
  flex-direction: column;
}

/* Sichtbare Sidebar */
.nav-sidebar.active {
  left: 0;
}

/* Schließen-Button (✖) */
.close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  color: white;
  font-size: 1.5em;
  cursor: pointer;
}

/* Hover-Effekt für Schließen-Button */
.close-btn:hover {
  color: #ff4757; /* Rot als Hinweis zum Schließen */
}

/* Navigation Liste */
.nav-list {
  list-style: none;
  padding: 20px 0;
  margin: 0;
  width: 100%;
}

/* Links sichtbar machen */
.nav-list li {
  padding: 15px;
  text-align: center;
}

.nav-list li a {
  color: white !important; /* Stellt sicher, dass die Links sichtbar sind */
  text-decoration: none;
  font-size: 1.2em;
  display: block;
  font-weight: 600; /* Hebt die Schrift hervor */
}

.nav-list li a:hover {
  background: #0a192f;
  transition: 0.3s;
  padding: 10px;
}



/* Suchleiste unter der Navigation */
.search-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  border-radius: 5px;
}

.search-bar {
  width: 80%;
  padding: 10px;
  font-size: 16px;
  border: 2px solid #ddd;
  border-radius: 5px;
  outline: none;
}

/* Such-Button mit SVG */
.search-btn {
  background: #004080;
  color: white;
  border: none;
  padding: 10px 15px; /* Extra Platz für das Icon */
  cursor: pointer;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px; /* Fügt Platz zwischen Icon und Button-Rand hinzu */
  margin-left: 8px;
}

/* SVG-Icon im Suchbutton */
.search-btn svg {
  width: 20px;
  height: 20px;
  fill: white;
}

/* Hover-Effekt */
.search-btn:hover {
  background: #002d5a;
}




/* Mobile Styles */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    background: #001f3f;
    position: absolute;
    top: 60px;
    right: 0;
    width: 100%;
    padding: 10px;
  }

  .nav-list.active {
    display: flex;
  }

  .dropdown-menu {
    position: static;
    display: none;
    width: 100%;
    background: #003366;
  }

  .dropdown.active .dropdown-menu {
    display: block;
  }
}

/* Hero-Bereich */
.hero {
  text-align: center;
  padding: 60px 20px;
  background: #004080;
  color: white;
}

/* Grid-Layout für Artikel */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  padding: 20px;
}

/* Artikel-Container */
.news-grid article {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease-in-out, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

.news-grid article:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* Artikelbilder */
.news-grid article img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
}

/* Artikelüberschrift */
.news-headline {
  margin: 15px 0 10px;
  font-size: 1.4em;
  font-weight: bold;
  color: #004080;
  transition: color 0.3s;
}

.news-headline a {
  text-decoration: none;
  color: inherit;
}

.news-headline:hover {
  color: #002d5a;
}

/* Artikelbeschreibung */
.news-grid article p {
  font-size: 1em;
  color: #555;
  line-height: 1.6;
  margin-bottom: 15px;
}

/* "Mehr lesen" Button */
.read-more {
  text-decoration: none;
  color: white;
  background: #004080;
  padding: 10px 15px;
  border-radius: 5px;
  display: inline-block;
  font-weight: bold;
  text-align: center;
  transition: background 0.3s;
}

.read-more:hover {
  background: #002d5a;
}


/* Footer */
footer {
  text-align: center;
  padding: 10px;
  background: #001f3f;
  color: white;
}

.footer-link {
  color: white;
  text-decoration: none;
}
