/* Farbschema */
:root {
  --primary-color: #2D4F6C; /* ARGB(255, 45, 79, 108) */
  --background-color: #ffffff;
  --link-color: #0066cc;
  --link-hover-color: #004f99;
  --button-color: #2D4F6C; /* Blau für Buttons */
  --button-text-color: #ffffff; /* Weiße Schrift für Buttons */
  --active-link-color: #ffffff; /* Farbe für aktiven Link */
  --active-link-bg: #004f99; /* Hintergrundfarbe für aktiven Link */
  --content-width: 800px; /* Maximale Breite für Inhalte */
}

/* Allgemeine Stile */
body {
  font-family: Arial, sans-serif;
  background-color: var(--background-color);
  color: var(--primary-color);
  margin: 0;
  padding: 0;
  line-height: 1.6;
  text-align: center; /* Zentriert den Text */
}

header {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 10px 20px;
  background-color: var(--primary-color);
  color: var(--background-color);
}

header img {
  height: 50px;
  margin-bottom: 10px;
}

nav {
  display: flex;
  gap: 20px;
  justify-content: center; /* Zentriert das Menü */
}

nav a {
  color: var(--background-color);
  text-decoration: none;
  font-weight: normal;
  padding: 5px 10px;
  border-radius: 5px;
}

nav a:hover {
  text-decoration: underline;
}

nav a.active {
  font-weight: bold;
  background-color: var(--active-link-bg);
  color: var(--active-link-color);
}

/* Burger-Menü */
.burger-menu {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.burger-menu div {
  width: 25px;
  height: 3px;
  background-color: var(--background-color);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  background-color: var(--primary-color);
  position: absolute;
  top: 60px;
  right: 20px;
  padding: 10px;
  border-radius: 8px;
  z-index: 1000;
}

.mobile-nav a {
  color: var(--background-color);
  text-decoration: none;
  padding: 10px;
  border-radius: 5px;
  font-weight: normal;
}

.mobile-nav a:hover {
  background-color: var(--link-hover-color);
}

.mobile-nav a.active {
  font-weight: bold;
  background-color: var(--active-link-bg);
  color: var(--active-link-color);
}

main {
  max-width: var(--content-width); /* Begrenzte Breite */
  margin: 0 auto; /* Zentriert den Inhalt */
  padding: 20px;
  text-align: left; /* Text linksbündig innerhalb des zentrierten Bereichs */
}

h1, h2, h3 {
  text-align: center; /* Überschriften zentrieren */
  color: var(--primary-color);
}

p {
  margin-bottom: 20px;
}

/* Buttons */
.downloads a {
  display: inline-block;
  margin: 5px 0;
  padding: 10px 15px;
  background-color: var(--button-color);
  color: var(--button-text-color);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  text-align: center;
}

.downloads a:hover {
  background-color: var(--link-hover-color);
}

/* Galerie */
.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
}

.gallery img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  width: 30%;
  max-height: 400px;
  object-fit: contain;
}

/* Kategorien-Bereich für volle Breite */
.category-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
  width: 100%; /* Volle Breite nutzen */
  padding: 0 20px; /* Abstand an den Seiten */
  box-sizing: border-box; /* Padding wird in die Breite einbezogen */
}

.category {
  flex: 1 1 calc(33.333% - 40px); /* Drei Kategorien pro Zeile, mit Abstand */
  max-width: calc(33.333% - 40px);
  text-align: center;
  position: relative;
}

.category h3 {
  margin-bottom: 10px;
}

.category img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  margin-top: 15px;
}

@media (max-width: 768px) {
  nav {
    display: none;
  }

  .burger-menu {
    display: flex;
  }

  .mobile-nav {
    display: flex;
  }

  .category {
    flex: 1 1 100%; /* Eine Kategorie pro Zeile auf kleinen Bildschirmen */
    max-width: 100%;
  }
}

/* Fußzeile */
footer {
  text-align: center;
  padding: 15px;
  background-color: var(--primary-color);
  color: var(--background-color);
  font-size: 0.9em;
}

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 999;
  display: none;
}

.mobile-nav.fullscreen {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 80%;
  max-width: 320px;
  background-color: var(--primary-color);
  padding: 30px 20px;
  z-index: 1000;
  flex-direction: column;
  display: none;
  transition: transform 0.3s ease-in-out;
}

.mobile-nav.fullscreen a {
  font-size: 1.2em;
  padding: 12px 0;
  text-align: left;
}

.mobile-nav.fullscreen .close-menu {
  align-self: flex-end;
  font-size: 1.5em;
  margin-bottom: 20px;
  background: none;
  border: none;
  color: var(--background-color);
  cursor: pointer;
}

@media (max-width: 768px) {
  .downloads.store-logos {
    flex-direction: column;
    align-items: center;
  }
}

/* Logo Fade-In Animation */
.logo-fade-in {
  animation: fadeInLogo 1.5s ease-in-out both;
}

@keyframes fadeInLogo {
  0% {
    opacity: 0;
    transform: scale(0.95);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@media (min-width: 769px) {
  .category:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 0;
    right: -20px;
    width: 2px;
    height: 100%;
    background-color: var(--primary-color);
  }
}

.intro {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 20px;
}
/* Dropdown-Stil für Desktop-Navigation */

/* Neue Dropdown-Darstellung wie normale Menüpunkte, beim Hover nach unten erweitert */
nav .dropdown-content {
  position: absolute;
  left: 0;
  top: 100%;
  background-color: var(--primary-color);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  margin: 0;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  min-width: max-content;
  border-radius: 0 0 4px 4px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 100;
}

nav .dropdown:hover .dropdown-content {
  visibility: visible;
  opacity: 1;
}

nav .dropdown-content a {
  padding: 10px 15px;
  color: var(--background-color);
  white-space: nowrap;
  text-decoration: none;
  width: 100%;
}

nav .dropdown-content a:hover {
  background-color: var(--link-hover-color);
}

/* Ergänzende Dropdown-Styles */
nav .dropdown {
  position: relative;
}

nav .dropbtn {
  background-color: transparent;
  color: var(--background-color);
  border: none;
  cursor: pointer;
  padding: 5px 10px;
  font-size: 1em;
  font-weight: normal;
  display: flex;
  align-items: center;
}

nav .dropbtn:hover {
  text-decoration: underline;
}

/* Ergänzung für Kategorie-Button Ausrichtung */
nav .dropbtn {
  display: inline-block;
  vertical-align: middle;
  margin: 0;
  padding: 5px 10px;
}

.centered-image {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh; /* Nimmt die gesamte Höhe des Viewports ein */
}

.centered-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain; /* Skaliert das Bild, ohne es zu verzerren */
}

/* Zentrierung für das hochformatige Bild */
.vertical-centered-image {
  display: flex;
  justify-content: center; /* Horizontal zentrieren */
  align-items: center; /* Vertikal zentrieren */
  height: 100vh; /* Nimmt die gesamte Höhe des Viewports ein */
  width: 100%; /* Nimmt die gesamte Breite ein */
  box-sizing: border-box; /* Padding wird in die Breite einbezogen */
}

.vertical-centered-image img {
  max-width: 100%; /* Bild passt sich der Breite an */
  max-height: 100%; /* Bild passt sich der Höhe an */
  object-fit: contain; /* Skaliert das Bild, ohne es zu verzerren */
}

/* Neue Bildcontainer-Klasse für flexible Bildanordnung */
.image-container {
  display: flex; /* Bilder nebeneinander anordnen */
  justify-content: center; /* Zentriert die Bilder horizontal */
  align-items: center; /* Zentriert die Bilder vertikal */
  gap: 20px; /* Abstand zwischen den Bildern */
  flex-wrap: wrap; /* Bilder umbrechen, falls der Platz nicht ausreicht */
}

.image-container img {
  max-width: 500px; /* Maximale Breite der Bilder */
  width: 100%; /* Bilder passen sich der verfügbaren Breite an */
  height: auto; /* Höhe wird automatisch angepasst */
  border-radius: 8px; /* Optional: Abgerundete Ecken */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Optional: Schatteneffekt */
}