/* --- Globale Stile und Basis-Typografie --- */
:root {
  /* Farben für Light Mode */
  --background-color-light: #f9f9f9;
  --text-color-light: #333;
  --heading-color-light: #1a1a1a;
  --link-color-light: #007bff;
  --border-color-light: #eee;
  --box-shadow-light: rgba(0, 0, 0, 0.1);
}



body {
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif; /* Klassischere Schrift für Artikel */
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background-color: var(--background-color-light);
  color: var(--text-color-light);
  transition: background-color 0.3s ease, color 0.3s ease; /* Sanfter Übergang beim Theme-Wechsel */
}

a{
  color: var(--link-color-light);
  text-decoration: none;
  transition: color 0.3s ease;
}



html[data-theme="dark"] body {
  background-color: var(--background-color-dark);
  color: var(--text-color-dark);
}

#header-placeholder {
  box-shadow: 0 2px 6px var(--box-shadow-light); /* Standard-Schatten */
  transition: box-shadow 0.3s ease;
}

html[data-theme="dark"] #header-placeholder {
  box-shadow: 0 4px 6px var(--box-shadow-dark); /* Dark Mode Schatten */
}


/* --- Main Container für den Inhalt --- */
main {
  max-width: 800px; /* Breite des Artikelbereichs begrenzen */
  margin: 0 auto; /* Zentrieren */
  padding: 20px;
}

.hero-image-container {
  position: relative;
  width: 100%;
  height: 450px; /* Höhe des Titelbildbereichs */
  overflow: hidden; /* Sicherstellen, dass das Bild innerhalb des Containers bleibt */
  display: flex;
  align-items: center; /* Zentriert vertikal */
  justify-content: center; /* Zentriert horizontal */
  text-align: center;
  margin-bottom: 40px; /* Abstand zum Artikeltext */
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Bild füllt den Bereich aus, ohne verzerrt zu werden */
  filter: brightness(0.4); /* Bild etwas abdunkeln für bessere Lesbarkeit des Textes */
}

html[data-theme="dark"] .hero-image {
  filter: brightness(0.2); /* Noch dunkler im Dark Mode */
}

.hero-title {
  position: absolute;
  color: white;
  z-index: 10; /* Stellt sicher, dass der Text über dem Bild liegt */
  padding: 20px;
  max-width: 90%; /* Textbreite begrenzen */
}

.hero-title h1 {
  font-size: 3em; /* Grosser Titel */
  margin: 0 0 10px 0;
  line-height: 1.1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); /* Schatten für bessere Lesbarkeit */
}

.hero-title .article-subtitle {
  font-size: 1.5em;
  margin-top: 0;
  font-style: italic;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.hero-title .article-meta {
  font-size: 0.9em;
  opacity: 0.8;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

/* --- Artikel Inhalt (Article Tag) --- */
article {
  padding: 20px 0; /* Padding für den Artikelinhalt */
  margin-bottom: 40px;
}

article h1 {
  font-size: 2.5em;
  color: var(--heading-color-light);
  margin-top: 0;
  margin-bottom: 20px;
}

html[data-theme="dark"] article h1 {
  color: var(--heading-color-dark);
}

article h2 {
  font-size: 2em;
  color: var(--heading-color-light);
  margin-top: 30px;
  margin-bottom: 15px;
}

html[data-theme="dark"] article h2 {
  color: var(--heading-color-dark);
}

article p {
  margin-bottom: 1.5em;
  font-size: 1.1em;
}

article ul {
  list-style: disc; /* Oder 'none' wenn du eigene Icons nutzen möchtest */
  margin-left: 20px;
  margin-bottom: 1.5em;
}

article li {
  margin-bottom: 0.5em;
  font-size: 1.1em;
}

/* --- Responsive Anpassungen --- */
@media (max-width: 768px) {
  .hero-image-container {
    height: 300px; /* Höhe auf kleineren Bildschirmen reduzieren */
  }

  .hero-title h1 {
    font-size: 2em;
  }

  .hero-title .article-subtitle {
    font-size: 1.2em;
  }

  main {
    padding: 15px;
  }

  article h1 {
    font-size: 2em;
  }

  article h2 {
    font-size: 1.6em;
  }
}

@media (max-width: 480px) {
  .hero-image-container {
    height: 250px;
  }

  .hero-title h1 {
    font-size: 1.5em;
  }

  .hero-title .article-subtitle {
    font-size: 1em;
  }

  article p,
  article li {
    font-size: 1em;
  }
}


.image-float {
  max-width: 50%;
  margin: 0 20px 20px 0;
}

.image-float.left {
  float: left;
}

.image-float.right {
  float: right;
  margin: 0 0 20px 20px;
}

.image-float img {
  width: 100%;
  height: auto;
  display: block;
}

.image-float .caption {
  font-size: 0.9em;
  font-style: italic;
  color: #666;
  margin-top: 5px;
  text-align: center;
}

/* Handy-Version */
@media (max-width: 768px) {
  .image-float {
    float: none;
    margin: 20px auto;
    max-width: 100%;
    width: 100%;
    display: block;
    text-align: center;
  }

  .image-float.right,
  .image-float.left {
    margin: 20px auto;
    float: none;
  }

  .image-float img {
    margin: 0 auto;
  }
}





.tooltip-link {
  position: relative;
  cursor: pointer;
  text-decoration: none;
  color: #0077cc;
}

.tooltip-link .tooltip-text {
  visibility: hidden;
  opacity: 0;
  width: max-content;
  max-width: 250px;
  background-color: #333;
  color: #fff;
  text-align: left;
  padding: 6px 10px;
  border-radius: 6px;
  position: absolute;
  z-index: 1;
  bottom: 125%; /* Position über dem Link */
  left: 50%;
  transform: translateX(-50%);
  transition: opacity 0.3s;
  font-size: 0.85em;
  pointer-events: none;
  white-space: normal;
}

.tooltip-link:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}
