:root {
  --accent-color: hsl(236, 89%, 72%); /* dunkles Violett */
  --accent-color-light: #a7d4f8; /* optional hellere Variante für Effekte */
  --bg-dark: #1e3a2c; /* dunkles Waldgrün für Body */
  --bg-card: #3e5646; /* helleres Grünschwarz für Team-Karten */
  --text-color: #f0f0e0; /* helles Grau für Text auf dunklem Hintergrund */
  --text-card: #e8ead6; /* helles, leicht grüngraues Text-Farbe für Karten */
}

/* Modern Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Inter", sans-serif;
  background: #fafafa;
  color: #222;
  background: var(--bg-dark);
  color: var(--text-color);
}

/* Navigation */
nav {
  background: #111;
  padding: 25px 60px;
  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.25);
}
nav a {
  color: white;
  text-decoration: none;
  padding: 14px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.15rem;
  transition: 0.3s;
}
nav a:hover,
nav a:focus {
  background: var(--accent-color);
  color: #fff;
  transform: translateY(-2px);
}

/* Hero */
/* Hero */
.hero {
  position: relative;
  width: 100vw;
  height: 70vh;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  top: 50%;
  left: 50%;
  width: auto;
  height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  object-position: center;
  filter: brightness(65%);
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* nach unten */
  align-items: center;

  padding-bottom: 40px;
  text-align: center;
}

.overlay h1 {
  font-size: 5.5rem;
  font-weight: 800;
  color: white;
  margin-bottom: 10px;
  text-shadow: 0 3px 12px rgba(0,0,0,0.8);
}
.overlay p {
  font-size: 1.4rem;
  margin-bottom: 20px;
}
.stueck-titel-hero {
  font-size: clamp(5rem, 10vw, 9rem);
  font-weight: 800;
  color: white;
  text-shadow: 0 4px 16px rgba(0,0,0,0.9);
}


.stueck-titel {
  font-size: 5.5rem;
  font-weight: 800;
  text-align: center;
  color: var(--accent-color);
  margin: 20px 0 40px 0;
  letter-spacing: 0.03em;
}


#projektbeschreibung h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--accent-color);
}
#projektbeschreibung {
  background: var(--bg-card);
  color: var(--text-card);
  padding: 30px 25px;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  line-height: 1.7;
}
#projektbeschreibung p {
  font-size: 1.3rem;
  line-height: 1.8;
}
#crowdfunding-box {
  background: white;
  color: #222;
  padding: 20px;
  border-radius: 12px;
  font-size: 1.2rem;
  text-align: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.crowd-lower {
  background: #fff;
}

/* Home Content */
.home-content {
  max-width: 1000px;
  margin: 60px auto;
  padding: 0 20px;
}
.content-block {
  margin-bottom: 60px;
}
.content-block h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 20px;
  text-align: left;
  color: var(--accent-color);
}

/* Video Wrapper */
.video-wrapper {
  background: #000;
  padding: 0px;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}
.video-wrapper video {
  width: 100%;
  border-radius: 12px;
}
.crowd-lower {
  background: rgba(0, 0, 0, 0.05);
}

/* Sections */
h1 {
  padding: 40px 20px 10px;
  font-size: 2.4rem;
  text-align: center;
  font-weight: 700;
}

/* Music Section */
.music-list {
  padding: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}
.music-item {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
  transition: 0.3s;
}
.music-item:hover {
  transform: translateY(-5px);
}
.music-item h3 {
  margin-bottom: 10px;
}
.music-item a {
  display: inline-block;
  margin-bottom: 10px;
  color: #0066ff;
  text-decoration: none;
  font-weight: 500;
}

/* Team */
.team-grid {
  padding: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
}
/* Lebenslauf-Karten */
.team-item {
  background: var(--bg-card);
  padding: 30px 25px;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: left;
  overflow: hidden;
}

.team-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* Bild im Lebenslauf */
.team-item img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  border: 4px solid var(--accent-color);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

/* Name und Jahrgang */
.team-item h3 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 15px;
  text-align: center;
}

/* Lebenslauf-Absätze */
/* Einheitliches Styling für alle Absätze in Lebenslauf-Karten */
.team-item p {
  margin-left: 0; /* kein extra Padding oder Margin links */
  margin-right: 0; /* keine extra rechte Einrückung */
  padding: 0; /* entfernt Padding, falls geerbt */
  text-indent: 0; /* keine Einrückung der ersten Zeile */
  line-height: 1.7; /* angenehme Zeilenhöhe */
  text-align: justify;
  color: var(--text-card);
  font-size: 1rem;
  margin-bottom: 15px; /* Abstand zwischen Absätzen */
}

/* Optional: Links im Lebenslauf */
.team-item a {
  color: var(--accent-color-light);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.team-item a:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

/* Scrollbar für lange Lebensläufe */
.team-item.long {
  max-height: 600px; /* Höhe anpassen */
  overflow-y: auto;
  padding-right: 10px;
}

/* Optional: Scrollbar-Styling */
.team-item.long::-webkit-scrollbar {
  width: 8px;
}

.team-item.long::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 4px;
}

.team-item.long::-webkit-scrollbar-thumb {
  background-color: var(--accent-color-light);
  border-radius: 4px;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
  .team-item {
    padding: 20px 15px;
  }
  .team-item img {
    width: 140px;
    height: 140px;
    margin-bottom: 15px;
  }
  .team-item h3 {
    font-size: 1.4rem;
  }
  .team-item p {
    font-size: 0.95rem;
  }
}

/* Libretto */
.scene-nav {
  display: flex;
  justify-content: center;
  gap: 15px;
  padding: 20px;
}
.scene-nav a {
  background: #ddd;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  color: #222;
  font-weight: 500;
  transition: 0.3s;
}
.scene-nav a:hover,
.scene-nav a:focus {
  background: var(--accent-color);
  color: #fff;
}

section {
  padding: 20px 20px;
  max-width: 1080px;
  margin: auto;
}

/* Szene Box */
.scene-box {
  background: var(--bg-card);
  border-left: 6px solid var(--accent-color-light);
  padding: 25px 30px;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  max-width: 1080px; /* maximale Breite der Szenen */
  width: 1080px;
  transition: 0.3s;
  color: #000;
}

.scene-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.scene-header h2 {
  font-size: 1.9rem;
  color: var(--accent-color);
  margin-bottom: 5px;
}

.scene-header h3 {
  font-size: 1.3rem;
  color: var(--accent-color-light);
  margin-bottom: 15px;
  }

/* Stage Directions */
.stage-directions {
  background: var(--bg-dark); /* grüngrauer Ton passend zu Box */
  padding: 12px 18px;
  border-left: 4px solid #0099ff;
  font-style: italic;
  color: var(--text-card);
  margin: 15px 0;
  border-radius: 8px;
  text-align: right;
}

/* Dialogue */
/* Dialogue – kompaktere Abstände */
.dialogue p {
  color: var(--text-card);
  padding: 8px 12px; /* leichter reduziertes Padding */
  border-radius: 8px;
  margin-bottom: 6px; /* kleinerer Abstand zwischen zwei Sprechern */
  line-height: 1.5; /* etwas enger */
}

/* Speaker-Balken */
.speaker.orpheus {
  border-left: 4px solid var(--accent-color);
}
.speaker.telemach {
  border-left: 4px solid var(--accent-color-light);
}
.speaker.teresa {
  border-left: 4px solid #b3a800;
}
.speaker.penelope {
  border-left: 4px solid #8055cc;
}
.speaker.odysseus {
  border-left: 4px solid #aa66ff;
}
.speaker.eurydike {
  border-left: 4px solid #66cc99;
}


/* Speaker-Hintergründe leicht neutralisiert */
.speaker.orpheus {
  background: rgba(15, 15, 40, 0.15);
} /* dunkles Blau statt Grün */
.speaker.telemach {
  background: rgba(0, 120, 120, 0.15);
} /* Petrol statt Grün */
.speaker.teresa {
  background: rgba(180, 150, 0, 0.15);
} /* Goldton, kein Grün */
.speaker.penelope {
  background: rgba(128, 85, 204, 0.15);
} /* Lila */
.speaker.odysseus {
  background: rgba(170, 102, 255, 0.15);
} /* Violett */
.speaker.eurydike {
  background: rgba(102, 160, 200, 0.15);
} /* Hellblau statt Grün */
.speaker.cerberus {
background: rgba(180, 80, 80, 0.15);
} /* gedämpftes Rot */

.speaker.charon {
background: rgba(70, 90, 170, 0.15);
} /* Indigo-Blau */

.speaker.system {
background: rgba(120, 120, 120, 0.12);
} /* neutrale Systemstimme */

/* Media Boxen */
.media {
  background: #f9f9f9;
  padding: 15px 20px;
  border-radius: 12px;
  margin: 15px 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}
/* Bild rechtsbündig */
.media-right {
  display: flex;
  justify-content: flex-end; /* Bild nach rechts schieben */
  align-items: flex-start; /* optional, wenn Text daneben ist */
  margin-top: 15px;
}

.media-right img {
  max-width: 50%; /* optional: Bild nicht zu groß */
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}
/* Media-Box für zwei Bilder */
.media-double {
  display: flex;
  justify-content: space-between; /* eines links, eines rechts */
  align-items: flex-start; /* optional: gleiche obere Kante */
  gap: 20px;
  margin: 15px 0;
  flex-wrap: wrap; /* responsive: bei kleinen Screens untereinander */
}

.media-double img {
  max-width: 48%; /* max. fast die Hälfte, damit sie nebeneinander passen */
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

/* Optional: mobile Anpassung */
@media (max-width: 768px) {
  .media-double img {
    max-width: 100%;
  }
}

.media audio,
.media video {
  width: 100%;
  margin-top: 10px;
  border-radius: 8px;
}

.media img {
  width: 30%; /* responsive Breite */
  max-height: 400px; /* Höhe optional begrenzen */
  object-fit: cover; /* Bild füllt den Container ohne Verzerrung */
  border-radius: 12px;
  margin-top: 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

/* Computer-Text */
.computer-text {
  background: #222;
  color: #0f0;
  font-family: monospace;
  padding: 12px 15px;
  border-radius: 10px;
  margin: 15px 0;
  white-space: pre-wrap;
  font-size: 14px;
}

/* Song Lyrics Box */
.song-lyrics-box {
  background: rgba(210, 200, 255, 0.15); /* leichtes transparentes Blau */
  border-left: 6px solid var(--accent-color);
  padding: 20px 25px;
  border-radius: 16px;
  margin: 25px 0;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: var(--text-card);
}

/* Speaker innerhalb der Song Lyrics */
.song-lyrics-box p.speaker {
  padding: 5px 7px;
  border-radius: 8px;
  margin: 0;
  line-height: 1.6;
}

/* Szenen-Navigation sticky am oberen Rand */
.scene-nav.sticky {
  position: sticky;
  top: 0;
  background: #ffffffee; /* halbtransparentes Weiß für leichten Overlay */
  padding: 0.5rem 1rem;
  display: flex;
  gap: 1rem;
  z-index: 1000;
  border-bottom: 1px solid #ddd;
  backdrop-filter: blur(5px); /* moderner Glass-Effekt */
}

/* Wrapper: Sidebar + Content */
.libretto-wrapper {
  display: flex;
  gap: 20px;
  justify-content: center;
}

/* Sidebar links, fixiert auf der Seite */
.scene-sidebar {
  position: fixed;
  top: 150px;
  left: 20px;
  width: 180px;

  max-height: calc(100vh - 170px);
  overflow-y: auto;

  display: flex;
  flex-direction: column;
  gap: 10px;

  background: rgba(30, 58, 44, 0.9);
  color: var(--text-card);

  padding: 10px;
  border-radius: 12px;

  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);

  scrollbar-width: thin;
  scrollbar-color: var(--accent-color-light) transparent;
}
/* Optional: Sidebar Links Style */
.scene-sidebar a {
  display: block;
  padding: 8px 10px;

  background: rgba(255, 255, 255, 0.08);
  color: var(--text-card);

  text-decoration: none;
  border-radius: 6px;

  transition:
    background 0.2s,
    color 0.2s,
    transform 0.2s;
}

.scene-sidebar a:hover,
.scene-sidebar a:focus {
  background: var(--accent-color);
  color: #fff;
  transform: translateX(2px);
}

/* Bühnenbildgrid */

.grid-view {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
  padding: 40px;
}

.scene-card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 15px;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  position: relative;
}

.scene-card:hover {
  transform: translateY(-5px) scale(1.02);
}

.scene-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
  margin: 10px 0;
}

.preview-text {
  font-size: 0.9rem;
  color: var(--text-card);
  line-height: 1.4;
}

.scene-full {
  display: none;
}

.scene-card.active .scene-preview {
  display: none;
}

.scene-card.active .scene-full {
  display: block;
}

.scene-card.active {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 80%;
  max-width: 1000px;
  max-height: 80vh;
  overflow-y: auto;
  transform: translate(-50%, -50%);
  z-index: 2000;

  padding: 30px;
  border-radius: 20px;

  background: var(--bg-card);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);

  animation: zoomIn 0.3s ease;
}

.scene-card.active .scene-full {
  display: block;
}

.scene-card.active img {
  height: auto;
}

@keyframes zoomIn {
  from {
    transform: translate(-50%, -60%) scale(0.8);
    opacity: 0;
  }
  to {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

.scene-card::after {
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-size: 0.75rem;
  opacity: 0;
  transition: 0.3s;
  content: "Doppelklick für Details";
}
.scene-card.active::after {
  display: none;
}
.scene-card:hover::after {
  opacity: 1;
}

#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1500;
  display: none;
}

.scene-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin: 20px 0;
}

/* Bilder einheitlich */
.scene-images img {
  width: 100%;
  height: 200px; /* 🔑 gleiche Höhe */
  object-fit: cover; /* 🔑 kein Verzerren */
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s;
}

/* schöner Hover-Effekt */
.scene-images img:hover {
  transform: scale(1.03);
}

.stage-notes {
  margin: 20px 0;
  padding: 18px 22px;
  border-left: 4px solid var(--accent-color-light);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-card);
  font-style: italic;
  line-height: 1.7;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  position: relative;
}

/* kleine visuelle Kennzeichnung */
.stage-notes::before {
  content: "Bühnenanweisung";
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-color-light);
  margin-bottom: 8px;
  font-style: normal;
  opacity: 0.9;
}

.besetzung {
  margin: 20px 0;
  padding: 18px 22px;
  border-left: 4px solid var(--accent-color-light);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-card);
  font-style: italic;
  line-height: 1.7;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  position: relative;
}

/* kleine visuelle Kennzeichnung */
.besetzung::before {
  content: "Besetzung";
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-color-light);
  margin-bottom: 8px;
  font-style: normal;
  opacity: 0.9;
}

/* Liste reset */
.besetzung ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* einzelne Zeilen */
.besetzung li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.9rem;
  margin-bottom: 6px;
  gap: 10px;
}

/* Rolle (links) */
.besetzung li span.role {
  color: #cfd6c0;
  opacity: 0.9;
}

/* Name (rechts) */
.besetzung li span.name {
  color: white;
  font-weight: 500;
  white-space: nowrap;
}
.speaker {
    display: flex;
    align-items: baseline;
    margin: 0.3em 0;
}

.rolle {
    width: 150px;      /* feste Breite für die Rollennamen */
    font-weight: bold;
}

.stimme {
    text-align: left;
}
.speaker {
    display: flex;
    margin: 0;
    line-height: 1.4;
}

.rolle {
    width: 150px;
    font-weight: bold;
}

.stimme {
    width: 120px;   /* sorgt für Abstand zur Interpretin */
}

.interpretin {
    width: 250px;
    font-weight: bold;
}
.chor {
    margin-top: 1.5em;  /* Abstand oberhalb des Chors */
}
.besetzung-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Überschrift in den Boxen */
.besetzung-grid .team-item h3 {
    margin-bottom: 5px;
}

/* Besetzungszeilen */
.besetzung-grid .speaker {
    margin-bottom: 10px;
}

/* Mobilgeräte */
@media (max-width: 768px) {
    .besetzung-grid {
        grid-template-columns: 1fr;
    }
}
.libretto-zusammenfassung {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}
.libretto-box {
    max-width: 1000px;
    margin: 40px auto;
}
.libretto-box {
  align-items: stretch;
}
.scene-title {
  font-size: 1.2em; /* nach Bedarf anpassen */
  font-weight: 600;
   color: var(--accent-color-light);
   margin-bottom: 0.5rem;
}
.libretto-box .handlung-title {
  font-size: 3rem;
}
