html, body {
  height: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.content h1,
.gallery h1,
.medien h1,
.repertoire-page h1,
.kalender h1,
.kontakt h1 {
  text-align: center;
  font-size: 2.2rem;
  margin: 10px auto 40px auto; /* oben kleiner, mittig */
  writing-mode: horizontal-tb; /* stellt sicher, dass der Text waagerecht ist */
  transform: none;              /* entfernt evtl. Rotationen */
}

@media (max-width: 768px) {
  .content h1,
  .gallery h1,
  .medien h1,
  .repertoire-page h1,
  .kalender h1,
  .kontakt h1 {
    font-size: 1.8rem;
    margin-top: 60px;
    margin-bottom: 30px;
  }
}

.content, .calendar, .gallery, .medien-container {
  padding: 0 20px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Langes Wort-Handling */
.event, .repertoire-row, .content {
  word-wrap: break-word;
  overflow-wrap: break-word;
}


body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: 'Poppins', sans-serif;
    color: #222;
    line-height: 1.6;
}

body.index .content {
  display: none !important;
}

footer {
  background: #fff;
  color: #222;
  text-align: center;
  padding: 15px 20px;
  font-weight: 400;
  font-size: 14px;
  position: relative;
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  box-shadow: 0 -1px 5px rgba(0,0,0,0.05);
}


header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: #fff;
  position: fixed;
  top: 0;
  left: 0;
  max-width: 100%;
  width: 100%;
  height: 60px;
  margin: 0 auto;
  z-index: 10002;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: #222;
    font-weight: 500;
}

.menu-toggle {
    display: none;
    font-size: 26px;
    background: none;
    border: none;
    cursor: pointer;
}

/* Mobile Navigation */
@media (max-width: 768px) {

  .nav-links {
    display: none;
    flex-direction: column;
    background: #fff;
    position: fixed;
    top: 60px;
    right: 15px;
    width: 200px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 10003;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    display: block;
    padding: 12px 16px;
    text-decoration: none;
    color: #000;
  }

  .menu-toggle {
    display: block;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
    margin-left: auto;
    position: relative;
    z-index: 10004; /* Toggle-Button ganz oben */
  }
}

.logo img,
.logo-img {
  max-height: 40px; /* Oder wie groß du das Logo willst */
  height: auto;
  width: auto;
  display: block;
  margin-left: 20px;
}


.hero {
  height: 100vh;
  background: url('portrait.jpg') center center / contain no-repeat;
  background-color: black;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: white;
  text-align: center;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
  padding: 20px;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 600;
}

.hero p {
  font-size: 2rem;
  font-weight: 350;
}


.content {
  padding: 100px 20px;
  max-width: 100%;
  margin: 0 auto;
}



.content p {
    margin-bottom: 1.5em;
    line-height: 1.7;
}

.content-flex {
  display: flex;
  gap: 60px;
  align-items: flex-start;
}

.content-flex img {
  flex-shrink: 0;
  max-width: 250px;
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

.content-flex .text {
  flex: 1;
}

@media (max-width: 768px) {
  .content-flex {
    flex-direction: column;
    text-align: center;
  }
  .content-flex img {
    max-width: 80%; /* oder z. B. 200px */
    margin: 0 auto;
  }
}


.gallery {
  padding: 80px 20px;
  padding-top: 80px;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery h1 {
  margin-bottom: 30px;
  text-align: center;
  font-size: 2.5rem;
}

.gallery-mosaic {
  margin: 0 auto;
}

.gallery-item {
  width: 30%; /* wird von Masonry angepasst */
  break-inside: avoid;
  margin-bottom: 16px;
  float: left;
  position: relative;
  overflow: hidden;
  border-radius: 6px;
}

.gallery-item .caption {
  display: none;
}

.gallery-item img {
  width: 100%;
  display: block;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.gallery-item:hover img {
  transform: scale(1.05);
}



/* responsiv */
@media (max-width: 768px) {
  .gallery-mosaic {
    column-count: 2;
    column-gap: 10px;
  }
}

@media (max-width: 480px) {
  .gallery-mosaic {
    column-count: 1;
  }
}

.lightbox {
  display: none;
  position: fixed;
  z-index: 999;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
}

.lightbox-content {
  display: flex;
  flex-direction: column; /* Bild und Text untereinander */
  align-items: center;
  max-width: 90%;
  max-height: 90%;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: auto;

}

.lightbox .close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
}

.lightbox-caption {
  margin-top: 10px;
  color: white;
  font-size: 0.9rem;
  text-align: center;
  text-shadow: 1px 1px 3px black;
}


@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        right: 20px;
        top: 60px;
        background: #fff;
        padding: 10px;
        gap: 10px;
    }
    .nav-links.active {
        display: flex;
    }
    .menu-toggle {
        display: block;
    }

    .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1.2rem;
  }
}

.kontakt-hero {
  min-height: 100vh;
  background: url('bonn2.jpg') top center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
  background-color: #000; /* Fallback */
  position: relative;
  z-index: 0;
}

.kontakt-box {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.8); /* halbtransparent */
  padding: 30px;
  border-radius: 10px;
  margin-top: -100px; /* Box nach oben schieben */
  max-width: 600px;
  width: 90%;
  color: schwarz;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.kontakt-box h1 {
  margin-bottom: 20px;
  font-size: 2.2rem;
  font-weight: 600;
}

.kontakt-box p {
  margin: 12px 0;
  font-size: 1.1rem;
}

.kontakt-box a {
  color: #222;
  text-decoration: none;
  font-weight: 500;
}

.kontakt-box a:hover {
  text-decoration: underline;
}

.repertoire-page {
  position: relative;
  min-height: 100vh;
  padding-bottom: 0px;
  background: url('sylbild3.jpg') center right / cover no-repeat;
  font-family: 'Poppins', sans-serif;
  color: white; /* Für bessere Lesbarkeit */
}

.repertoire-page::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8); /* Halbtransparente Verdunklung */
  z-index: 0;
  pointer-events: none;
}

.repertoire-page .content,
.repertoire-page footer {
  position: relative;
  z-index: 1;
}
.repertoire-page header {
   position: fixed;  /* oder relative nur für Desktop, siehe unten */
  z-index: 10002;   /* höher als Overlay und Content */
  }

.repertoire-page .content h1 {
  text-align: center;
  font-size: 2.2rem;
  margin: 10px auto 40px auto; /* oben kleiner, mittig */
  writing-mode: horizontal-tb; /* stellt sicher, dass der Text waagerecht ist */
  transform: none;
  margin-left: 0;
}

.repertoire-section {
  margin-bottom: 80px;
  padding-top: 20px;
}

.repertoire-row {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 20px;
  padding: 6px 0;
  font-size: 1rem;
  line-height: 1.6;
}

.repertoire-row .composer {
  font-weight: 500;
}

.repertoire-row .work {
  font-style: italic;
}

.repertoire-section h2 {
  margin-bottom: 20px;
  font-size: 1.6rem;
  font-weight: 600;
  text-align: left; /* Standard: links */
  margin-left: 0;
}

@media (max-width: 768px) {
  .repertoire-section h2 {
    text-align: center; /* Zentriert */
    margin-bottom: 30px;
  }
}

.medien-container {
  max-width: 1000px;
  margin: 100px auto;
  padding-top: 40px;
  padding-bottom: 80px;
  position: relative;
  z-index: 1;
  color: black;
}

.medien-container h1 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 30px;
  color: black;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 0 20px;
}

.video-placeholder {
  background: #eee;
  height: 250px;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  font-size: 1.2rem;
  border-radius: 8px;
}

/* Für kleinere Bildschirme */
@media (max-width: 768px) {
  .video-grid {
    grid-template-columns: 1fr;
  }
}

.calendar {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 0;
}

.events {
  list-style: none;
  padding: 0;
  margin: 0;
}

.event {
  border-bottom: 1px solid #ccc;
  padding: 15px 0;
}

.event-date {
  font-weight: 600;
  font-size: 1.1rem;
  color: #222;
}

.event-location {
  font-size: 1rem;
  color: #555;
  margin-top: 4px;
}

.event-description {
  font-style: italic;
  color: #333;
  margin-top: 4px;
}

@media (max-width: 600px) {
  .event-date,
  .event-location,
  .event-description {
    font-size: 0.95rem;
  }
}