:root {
  /* Primär- und Sekundärfarben */
  --primary-color: #263658;          /* Hauptfarbe (z. B. für Header und Footer Hintergründe) */
  --secondary-color: #7b90a8;          /* Alternative Farbe (z. B. für Produkthintergrund im Header) */
  
  /* Allgemeine Farben */
  --background-color: #e4e4e4;         /* Seite Hintergrund */
  --white-color: #ffffff;              /* Weiß, z. B. für Box-Hintergründe */
  --light-color: #f0f4fa;              /* Heller Hintergrund, z. B. bei der Legal Notice */
  
  /* Textfarben */
  --text-main: #000000;                /* Haupttextfarbe */
  --text-inverse: #ffffff;             /* Umgekehrte Textfarbe, etwa im Header/Footer */
  
  /* Sidebar-Farben */
  --sidebar-text: #7c91a9;             /* Standardfarbe für Sidebar-Links */
  --sidebar-active: #013571;           /* Aktive Farbe im Sidebar-Menü */
  
  /* Rahmen und Schatten */
  --border-color: #ddd;
  
  /* Hero-Button */
  --hero-button-bg: #003366;
  --hero-button-hover-bg: #0059b3;
}

/* Entfernt Margin bei leeren <p> tags */
p:empty {
  margin: 0;
  padding: 0;
  line-height: 0;
  display: none;
}

/* Grundlegende Stile */
html, body {
  height: 100%;
  margin: 0;
  color: var(--text-main)
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
  background-color: var(--background-color);
}

/* Kopfzeile */
header {
  background-color: var(--primary-color);
  color: var(--text-inverse);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  z-index: 1000;
}

/* Eigene Styles für den sub-header */
header.sub-header {
  background-color: var(--secondary-color);
}

header .logo {
  font-size: 1.5em;
  font-weight: bold;
  flex-grow: 1;
}

.china-logo {
  vertical-align: middle;
  height: 60px; /* passend zur Höhe des China-Logos */
}


/* Navigation */
nav ul {
  list-style: none;
  display: flex;
  gap: 15px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

nav ul li a {
  color: var(--text-inverse);
  text-decoration: none;
  font-weight: bold;
  padding: 8px 10px;
  display: block;
  font-size: 1.2rem;
}

/* Für schmale Bildschirme: Header in zwei Zeilen */
@media screen and (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: center;
  }
  header .logo {
    margin-bottom: 10px;
    text-align: center;
  }
  nav {
    width: 100%;
  }
  nav ul {
    justify-content: center;
  }
  nav ul li a {
    font-size: 0.9rem;
  }
}

nav ul li.active a {
  font-weight: bold;  /* Hervorhebung fett */
  border-bottom: 2px solid var(--text-inverse); /* optional, für Unterstreichung */
}


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

/* Hauptbereich */
.hero {
  padding: 60px 20px;
  text-align: center;
  background-color: var(--background-color);
}

.hero h1 {
  margin-bottom: 10px;
  font-size: 2em;
}

.hero p {
  font-size: 1.2em;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Download-Link als Button */
.hero a {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 24px;
  background-color: var(--hero-button-bg);
  color: var(--text-inverse);
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s;
}

.hero a:hover {
  background-color: var(--hero-button-hover-bg);
}

/* Fußzeile für breite Bildschirme: Grid-Layout */
footer {
  background-color: var(--primary-color);
  color: var(--text-inverse);
  padding: 25px 20px;
  font-size: 1.0em;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

/* Der Copyright-Text wird immer in der Mitte platziert */
.footer-content p {
  grid-column: 2;
  margin: 0;
  text-align: center;
}

/* Der Sprachumschalter steht rechts */
.lang-switcher {
  grid-column: 3;
  justify-self: end;
}

footer .lang-switcher ul {
  display: flex;
  gap: 0.75em;
  list-style: none;
  margin: 0;
  padding: 0;
}

footer a {
  color: var(--text-inverse);
  text-decoration: none;
}

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

footer a:visited {
  color: var(--text-inverse);
}

/* Für schmale Bildschirme */
@media screen and (max-width: 768px) {
  .china-logo {
    vertical-align: middle;
    height: 60px;
    margin-top: 10px;
  }
  .footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .lang-switcher {
    order: -1;
    margin: 0 auto 10px auto; /* zentriert den Block */
    width: auto;
    text-align: center;
  }
}