/* Grundlayout */
* {
  box-sizing: border-box;
}

/* Gilt global - so zu verwenden -> border-fadius: var(--radius); */
:root {
  --radius: 14px;
  --shadow: 0 20px 50px rgba(0, 0, 0, .1);
  --overlay: rgba(0, 0, 0, 0.3);
  --gap: 10px;
  --thumb-max: 200px;
}

html {
  font-size: 10px;
}

@media (min-width: 760px) {
  html {
    font-size: 13px;
  }
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  background: #f5f5f5;
  color: #222;
  background-image: url(../img/shakers-bg.jpg);
  background-size: contain;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  font-size: 1.5rem;
}

h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
}

h3 {
  font-size: 1.7rem;
}

/* 1. Menüleiste */
header {
  background: #111;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-bar {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (max-width: 400px) {
  .nav-bar {
    flex-direction: column;
    gap: 0.5rem;
  }

  nav ul {
    flex-wrap: wrap;
  }
}

.logo {
  font-weight: bold;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1rem;
}

nav a {
  font-size: 1.4rem;
  color: #c4c4c4;
}

nav a:hover {
  text-decoration: underline;
}


/* Damit der ganze Container zu sehen ist. */
section[id] {
  position: relative;
  scroll-margin-top: 100px;
  /* kannst du später anpassen */
}

section[id]::before {
  content: "";
  display: block;
  height: 100px;
  /* gleiche Höhe wie dein Header */
  margin-top: -100px;
}



.bandfoto-text-container {
  display: flex;
  gap: 2rem;
  align-items: center;
  margin: 2rem 0;
  flex-wrap: wrap;
}

/* Bildcontainer */
.bandfoto-box {
  flex: 1 1 50%;
}

.bandfoto-box img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  /* optional, kann entfernt werden */
}

/* Textcontainer */
.bandtext-box {
  flex: 1 1 50%;
  font-size: 1rem;
}

/* Handy-Layout: untereinander */
@media (max-width: 760px) {
  .bandfoto-text-container {
    flex-direction: column;
  }
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem 3rem;
}

section {
  padding: 2rem 0;
  border-bottom: 1px solid #ddd;
}

section:last-of-type {
  border-bottom: none;
}



/* 2. Band-Container */
.band-container {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
}

.band-bild-container {
  flex: 1 1 500px;
}

.band-bild-container img {
  width: 100%;
  display: block;
  border-radius: 8px;
  background: #ccc;
}

.band-text-container {
  flex: 1 1 260px;
  font-size: 0.95rem;
}

/* 3. Musiker-Container */


.musiker-grid {
  display: grid;
  gap: 1.5rem;

  /* Standard: 3 Spalten → ergibt 2 Reihen bei 6 Cards */
  /* grid-template-columns: repeat(3, 1fr); */
}

/* Sehr große Bildschirme: alles in eine Reihe (6 Spalten) */
@media (min-width: 825px) {
  .musiker-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
  }
}

/* Mobile: z. B. 2 Spalten */
@media (max-width: 824px) {
  .musiker-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Sehr kleines Handy: 1 Spalte */
@media (max-width: 460px) {
  .musiker-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


.musiker-card {
  background: #fff;
  border-radius: 8px;
  padding: .6rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  /* gap: 0.5rem; */
}

.musiker-card img {
  width: 100%;
  border-radius: 6px;
  display: block;
}

.musiker-name {
  font-weight: 600;
  margin-top: 0.5rem;
  font-size: 1.25rem;
}

.musiker-beschreibung {
  font-size: 1.1rem;
  line-height: 1.4rem;
  color: #555;
}

/* 4. Infos-Container (Platzhalter) */
.infos-placeholder {
  font-size: 0.95rem;
  color: #666;
  font-style: italic;
}


/* =============================
   Container mit Image
============================= */
.fv-container {
  max-width: 750px;
  margin: 2rem auto;
  position: relative;
  height: 150px;
  /* <-- Fixe Höhe */
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.fv-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* <-- Bild sauber beschneiden */
  display: block;
}

/* Zentrierter Text */
.fv-overlay-text {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  pointer-events: none;
  /* <-- wichtig! */
}

/* Optional: Hover-Effekt */
.fv-container:hover .fv-overlay-text {
  background: rgba(0, 0, 0, .6);
}

/* Overlay Inhalt */
/* .fv-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, .15),
      rgba(0, 0, 0, .55));
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 18px;
  color: #fff;
} */

/* .fv-overlay h1 {
  margin: 0;
  font-size: 22px;
} */

/* .fv-overlay button {
  border: none;
  background: #fff;
  color: #111;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
} */

/* =============================
   Modals
============================= */
.modal {
  position: fixed;
  /* fallback statt nur inset */
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  /* fallback ende */
  background: var(--overlay);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 9999;
  /*z-index ist wichtig */
  backdrop-filter: blur(2px);
}

.modal.is-open {
  display: flex;
}

.modal__dialog {
  width: min(980px, 100%);
  background: #000000;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  /* max-width: 500px; */
}

.modal__header {
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e5e5e5;
}

.modal__header h2 {
  margin: 0;
  font-size: 18px;
  color: red;
  letter-spacing: 4px;
}

.modal__close {
  border: none;
  background: gray;
  font-size: 22px;
  cursor: pointer;
}

.modal__body {
  padding: 25px 6px;
}

#modalFotosVideos {
  z-index: 10000;
}

#modalVideos {
  z-index: 11000;
}

.video-close-link {
  margin-top: 12px;
  text-align: center;
}

.video-close-link a {
  font-size: 1.4rem;
  color: #333;
  text-decoration: underline;
  cursor: pointer;
}

.video-close-link a:hover {
  color: #000;
}

/* =============================
   Galerie
============================= */
.grid {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(2, minmax(0, 1fr));

}

@media (min-width: 460px) {
  .grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 200px));
    justify-content: space-evenly;
  }
}


.thumb {
  max-width: var(--thumb-max);
  aspect-ratio: 4/3;
  border-radius: 12px;
  overflow: hidden;
  background: #ddd;
  position: relative;
  border: 2px solid #b1b1b1;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Fotos */
.thumb.photo {
  cursor: default;
}

/* Videos */
.thumb.video {
  cursor: pointer;
}

.thumb.video::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(0, 0, 0, .25), rgba(0, 0, 0, .55));
}

.thumb.video::after {

  content: "▶";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  /* Play Symbol größe wächst mit Bildgröße */
  font-size: clamp(28px, 12vw, 56px);
}

/* =============================
   Video Modal
============================= */
#modalFotosVideos {
  z-index: 1000;
}

#modalVideos {
  z-index: 2000;
}

.modal {
  z-index: 99999 !important;
}

.video-frame {
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  /* Video frame kleiner machen  */
  max-width: 500px;
  margin: 0 auto;
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}


/* 5. Kontakt-Container */

.kontakt-daten {
  font-size: 0.95rem;
  text-align: center;
}

.kontakt-daten p {
  margin: 0.3rem 0;
}

/* 5. Footer */
footer {
  background: #111;
  color: #eee;
  padding: 1.5rem 1rem;
  font-size: 0.85rem;
}

.footer-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-section-title {
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.footer-links a {
  display: block;
  color: #eee;
  margin: 0.1rem 0;
  font-size: 0.85rem;
}

.footer-links a:hover {
  text-decoration: underline;
}

@media (max-width: 700px) {
  .kontakt-inhalt {
    grid-template-columns: 1fr;
  }
}

.fotos_videos {
  background-color: gray;
  display: flex;
}

/* Galerie bleibt groß (wie bisher) */
#modalFotosVideos .modal__dialog {
  width: min(980px, 100%);
}

/* Video-Modal: nur 60% von der Galerie */
#modalVideos .modal__dialog {
  width: 60%;
  max-width: 500px;
}

/* damit es auf kleinen Screens nicht zu klein wird */
@media (max-width: 700px) {
  #modalVideos .modal__dialog {
    width: 95%;
    max-width: 95vw;
  }
}

/* Galerie ausblenden, wenn Video aktiv ist */
.modal.is-hidden {
  display: none !important;
}


/* Wenn du willst, dass nur das Galerie-Modal scrollt (und das Video-Modal nicht), dann so: */
#modalFotosVideos .modal__dialog {
  max-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
}

#modalFotosVideos .modal__body {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  min-height: 0;
}

/* Galerie-Modal: nur halbe Bildschirmhöhe */
#modalFotosVideos .modal__dialog {
  height: 70vh;
  /* 👈 halber Screen */
  /* max-height: 70vh; */
  display: flex;
  flex-direction: column;
}

/* Nur der Inhalt scrollt */
#modalFotosVideos .modal__body {
  overflow-y: auto;
  min-height: 0;
  /* extrem wichtig bei Flexbox */
  -webkit-overflow-scrolling: touch;
}