.site-header {
  background-color: #1c3144;
  color: white;
  padding: 10px 20px;
}

.header-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.logo-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-title .logo {
  height: 32px;
}

/* Container für alle Header-Links */
.header-links-container {
  display: flex;
  flex-wrap: wrap;          /* bei sehr schmalen Viewports umbrechen */
  justify-content: center;  /* horizontal zentrieren */
  gap: 0.2em;                /* Abstand zwischen den Links */
  margin: 0.2em 0;
}
.header-link {
  display: inline-block;
  padding: 0.2em 0.5em;
  font-size: 1.5rem;
  color: #0366d6;              /* Link-Farbe */
  text-decoration: none;
  position: relative;          /* für das Pseudo-Element */
  transition: color 0.2s;
}

.header-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;                /* Stärke der Linie */
  background-color: #0366d6;  /* gleiche Farbe wie der Text */
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.header-link:hover {
  color: #f1f1f1;             /* dunkler beim Hovern */
}

.header-link:hover::after {
  transform: scaleX(1);       /* Unterstreichung wird sichtbar */
}

/* Dark Mode Anpassung */
@media (prefers-color-scheme: dark) {
  .header-link {
    color: #58a6ff;
  }
  .header-link::after {
    background-color: #58a6ff;
  }
  .header-link:hover {
    color: #f1f1f1;
  }
}

/* Unter 600px: kompakter */
@media (max-width: 800px) {
  .header-link {
    font-size: 0.875rem;
    padding: 0.25em 0.5em;
  }
}




.site-title {
  font-weight: bold;
  font-size: 24px;
}
  /* Basis‐Style für den Link */
  .site-titlel {
    position: relative;
    color: #ffffff;              /* Link-Farbe */
    text-decoration: none;       /* Unterstreichung abschalten */
    font-weight: 500;
    padding: 0.1em 0;            /* etwas Abstand ober/unter */
    transition: color 0.2s;      /* sanfter Farbwechsel */
  }

  /* Farbverlauf‐Hintergrund, versteckt im Normalzustand */
  .site-titlel::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 0.35em;              /* Höhe des Highlight-Streifens */
    background: linear-gradient(120deg, rgba(255,215,0,0.6), rgba(255,140,0,0.6));
    border-radius: 0.2em;
    z-index: -1;                 /* hinter den Text legen */
    transform: scaleX(0);        /* von 0% starten */
    transform-origin: left;
    transition: transform 0.3s ease;
  }

  /* Hover- und Fokus‐Zustand: Farbe + „Wisch“-Animation */
  .site-titlel:hover,
  .site-titlel:focus {
    color: #d7b600;                 /* Schriftfarbe ändert sich */
  }
  .site-titlel:hover::before,
  .site-titlel:focus::before {
    transform: scaleX(1);        /* Hintergrund breitet sich über den Text aus */
  }










.main-nav a {
  color: white;
  text-decoration: none;
  margin-right: 12px;
}

.search-area {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  position: relative;
  max-width: 100%;
}
.search-area select,
.search-area input {
  padding: 8px 12px;
  font-size: 14px;
  border: 1px solid #aaa;
  border-radius: 6px;
  background: #f8f9fa;
  color: #222;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
}

.search-area select:focus,
.search-area input:focus {
  outline: none;
  border-color: #0074cc;
  box-shadow: 0 0 4px rgba(0, 116, 204, 0.5);
}

.search-area button {
  background-color: #0074cc;
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.search-area button:hover {
  background-color: #005fa3;
}

.language-select select {
  background-color: #f0f0f0;
  border: 1px solid #bbb;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 14px;
  color: #333;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.language-select select:focus {
  border-color: #0074cc;
  box-shadow: 0 0 4px rgba(0, 116, 204, 0.5);
}


.autocomplete-box {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: white;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  display: none;
  color: black;
}
.autocomplete-item {
  padding: 8px;
  cursor: pointer;
}
.autocomplete-item:hover,
.autocomplete-item.active {
  background-color: #f0f0f0;
}
.section-title {
  font-weight: bold;
  padding: 6px 8px;
  background-color: #eee;
}

/* Responsive Verhalten */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    align-items: stretch;
  }

  .search-area,
  .main-nav,
  .language-select {
    width: 100%;
    justify-content: center;
  }

  .main-nav {
    text-align: center;
  }

  .search-area input,
  .search-area select,
  .search-area button {
    width: 100%;
  }

  .language-select select {
    width: 100%;
  }
}

:root {
  --bg-color: #ffffff;
  --text-color: #000000;
  --header-bg: #1c3144;
  --input-bg: #f8f9fa;
  --input-border: #ccc;
}

[data-theme="dark"] {
  --bg-color: #0e2439;         /* dunkles Marineblau für Hintergrund */
  --text-color: #e0e6ed;       /* leichtes Grau für Text */
  --header-bg: #102a43;        /* Marineblau für Header */
  --input-bg: #1b3b5f;         /* etwas heller für Inputfelder */
  --input-border: #406080;     /* dezente Umrandung */
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
}

.site-header {
  background-color: var(--header-bg);
}

/* optional: Inputs */
.search-area input,
.search-area select,
.language-select select {
  background-color: var(--input-bg);
  border: 1px solid var(--input-border);
  color: var(--text-color);
}
