

/* Floating Button */

#backToTop {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #f2f2f2;
  border: 2px solid #ccc;
  border-radius: 50%;
  width: 55px;
  height: 55px;
  font-size: 12px;
  color: #333366;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-weight: 600;
  transition: all 0.2s ease-in-out;
}

#backToTop:hover {
  background: #e0e0e0;
  border-color: #333366;
  color: #b82967;
}


/* Horizontale Navigation überarbeitet */

.kapitel-navi ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  padding: 0;
  list-style: none;
  margin-bottom: 2rem;
  border-bottom: 1px solid #eee;
}

.kapitel-navi li {
  display: inline-block;
  padding: 0 0.5rem;
  border-right: 1px solid #ddd;
}

.kapitel-navi li:last-child {
  border-right: none;
}

.kapitel-navi li a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  color: #b82967;
  transition: color 0.2s ease;
}

.kapitel-navi li a:hover {
  color: #333366;
}


/* Zusatz-Styles: Audio-Zentrierung, aktive Zeile, Zurück-Link */

/* Audio zentrieren */
audio {
  display: block;
  margin: 1.5rem auto;
}

/* Aktiver Track */
.active-track {
  background-color: #f9f4f7;
  border-left: 4px solid #b82967;
  padding-left: 0.5rem;
  font-weight: bold;
}

/* Zurück-Link am Kapitelende */
a.back-link {
  color: #b82967;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  display: inline-block;
  margin-top: 2rem;
}

a.back-link:hover {
  color: #333366;
  text-decoration: underline;
}


/* Hilfe-Button, Modal, Subnav, Glossar-Aktiv */

/* ❓ Hilfe-Button im Kapitel */
.kapitel-help-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 6px #b82967;
  color: #333366;
  font-weight: bold;
  font-size: 20px;
  text-align: center;
  line-height: 38px;
  cursor: pointer;
  z-index: 100;
}

/* Modal Hintergrund */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

/* Modal Fenster */
.modal {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  padding: 1.5rem;
  max-width: 500px;
  box-shadow: 0 0 12px rgba(184, 41, 103, 0.3);
  position: relative;
  text-align: left;
  font-size: 1rem;
  color: #333;
}

/* Schließen-Button */
.modal-close {
  position: absolute;
  top: 0.5rem;
  right: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: #b82967;
}

/* Subnavigation für Kapitel 16 */
.subnav {
  margin: 1rem 0 2rem;
  text-align: center;
  font-size: 0.95rem;
}

.subnav a {
  color: #b82967;
  text-decoration: none;
  margin: 0 0.3rem;
}

.subnav a:hover {
  text-decoration: underline;
  color: #333366;
}

/* Aktiver Glossar-Link */
.subnav a.active-sub {
  font-weight: bold;
  color: #333366;
  text-decoration: underline;
}


/* Geschwindigkeitsslider */

/* Geschwindigkeitsslider */
.speed-control {
  text-align: center;
  margin: 1rem auto 2rem;
  font-size: 0.95rem;
  color: #333366;
}

.speed-control label {
  margin-right: 0.5rem;
  font-weight: 500;
}

.speed-control input[type=range] {
  width: 200px;
  accent-color: #333366;
  vertical-align: middle;
}

.speed-control span {
  margin-left: 0.5rem;
  font-weight: bold;
}
