/* --- Grundlayout und Farben --- */
:root {
  --background-color: rgba(249, 255, 254, 0.93);
  --bg-color: #ffefccc2; /* Helles Gelb */
  --primary-color: #f3e45f;   /* Gelb/Grünstich */
  --secondary-color: #fc5fef; /* Pink/Magenta */
  --text-color: #333333f5;
  --heading-font: 'Trebuchet MS', sans-serif;
  --body-font: Arial, sans-serif;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--body-font);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
}

/* Header */
header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 10px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

/* Hauptüberschrift */
.main-header {
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  position: relative;
  padding: 15px;
  text-align: center;
}

.main-header h1 {
  color: #fff;
  margin: 0 auto;
  font-family: var(--heading-font);
  font-size: 2rem;
  max-width: 80%;
}

.language-switch {
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  display: flex;          /* verwandelt das Element in ein Flex-Layout */
  flex-direction: column; /* ordnet die Kindelemente senkrecht (untereinander) an */
  align-items: flex-start; /* optional: ausrichten der Buttons am linken Rand */
  /* oder: align-items: center;  - falls du sie zentriert möchtest */
  gap: 10px;               /* optional: Abstand zwischen den Buttons */
}

.language-switch button {
  margin: 0 5px;
  padding: 8px 12px;
  border: none;
  background-color: black;
  color: var(--primary-color);
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 4px;
  transition: opacity 0.3s, background-color 0.3s;
}

.language-switch .active {
  background-color: var(--primary-color);
  color: #ffffff;
}

.language-switch button:hover {
  opacity: 0.8;
}

/* Hauptinhalt */
main {
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 20px;
}

/* Bücherbereich */
.books {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.book-container {
  text-align: center;
  max-width: 200px;
}

.book-container img {
  width: 100%;
  border: 2px solid var(--primary-color);
  border-radius: 8px;
  transition: transform 0.3s;
}

.book-container img:hover {
  transform: scale(1.05);
}

.book-container h3 {
  margin: 10px 0 0;
  font-family: var(--heading-font);
  color: var(--secondary-color);
}

/* Klasse zum Einbetten des Covers innerhalb des Textes */
    .text-with-cover img {
      float: left;            /* Bild linksbündig, Text fließt drumherum */
      margin-right: 15px;     /* Abstand rechts zum Text */
      margin-bottom: 15px;    /* Abstand nach unten */
      max-width: 200px;       /* Bei Bedarf anpassen, um das Bild kleiner/größer zu machen */
      height: auto;           /* Seitenverhältnis beibehalten */
    }

/* Autorin-Bereich */
.author-section {
  display: flex;
  flex-wrap: wrap;
  margin-top: 50px;
  align-items: flex-start;
}

.author-photo {
  max-width: 200px;
  margin-right: 20px;
  margin-bottom: 20px;
  border: 2px solid var(--secondary-color);
  border-radius: 8px;
}

.author-section p {
  margin: 0;
  font-size: 1rem;
  max-width: 600px;
}

/* Footer */
footer {
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  padding: 10px;
  margin-top: 50px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.footer-links a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: text-decoration 0.3s;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* --- Responsivität --- */
@media (max-width: 768px) {
  .books {
    flex-direction: column;
    align-items: center;
  }

  .author-section {
    flex-direction: column;
  }

  .author-photo {
    margin-right: 0;
    margin-bottom: 10px;
  }
}

/* Ausklappbar */
.details {
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 10px;
  background-color: #f9f9f9;
}
.summary {
  font-weight: bold;
  cursor: pointer;
}
.bilder img {
  width: 100px;
  margin: 5px;
}

 /* Klasse zum Einbetten des Covers innerhalb des Textes */
 .text-with-cover img {
  float: left;            /* Bild linksbündig, Text fließt drumherum */
  margin-right: 15px;     /* Abstand rechts zum Text */
  margin-bottom: 15px;    /* Abstand nach unten */
  max-width: 200px;       /* Bei Bedarf anpassen, um das Bild kleiner/größer zu machen */
  height: auto;           /* Seitenverhältnis beibehalten */
}
 /* Container zentrieren */
    .video-container {
        display: flex;
        justify-content: center; /* Horizontal zentrieren */
        margin: 20px auto;       /* Automatischer Abstand von oben und unten */
    }
    /* Optional: Responsive Anpassungen */
    video {
        max-width: 50%;         /* Verhindert, dass das Video größer als der Bildschirm wird */
        height: auto;            /* Verhältnis der Höhe beibehalten */
    }
    .container-Text-Video {
        display: flex;           /* Aktiviert Flexbox */
        justify-content: space-between; /* Platz zwischen den Spalten */
        align-items: flex-start; /* Elemente oben ausrichten */
        gap: 20px;              /* Abstand zwischen Spalten */
        margin: 20px;
    }

    /* Linke Spalte */
    .left-column {
        flex: 1;                /* Linke Spalte nimmt verbleibenden Platz ein */
        max-width: 50%;         /* Begrenzung auf maximal 50% Breite */
    }

    /* Rechte Spalte */
    .right-column {
        flex: 1;                /* Rechte Spalte nimmt verbleibenden Platz ein */
        max-width: 50%;         /* Begrenzung auf maximal 50% Breite */
    }
    /* Modal Hintergrund */
    .modal {
      display: none; /* Standardmäßig unsichtbar */
      position: fixed; /* Fixiert das Modal im Viewport */
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.5); /* Halbtransparenter Hintergrund */
      justify-content: center; /* Zentriert den Inhalt horizontal */
      align-items: center; /* Zentriert den Inhalt vertikal */
      z-index: 1000;
    }

    /* Sichtbares Modal */
    .modal.show {
      display: flex; /* Modal sichtbar machen */
    }

    /* Modal-Inhalt */
    .modal-content {
      background: #fff;
      padding: 20px;
      border-radius: 8px;
      width: 90%; /* Breite auf Mobilgeräten angepasst */
      max-width: 600px; /* Maximalbreite für größere Bildschirme */
      max-height: 80%; /* Begrenzte Höhe für Scrollbalken */
      overflow-y: auto; /* Scrollbalken bei Überlauf */
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

    /* Schließen-Button */
    .close-btn {
      float: right;
      font-size: 20px;
      font-weight: bold;
      cursor: pointer;
      color: #333;
    }