/* Reset und Basis-Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Basis-Typografie und Layout */
body {
    background: #000;
    font-family: Quicksand, sans-serif;
    font-weight: 400;
    font-size: 36px;
    color: #fff;
    overflow: auto;
    line-height: 1.5;
}

@media (width <= 900px) {
  body {
    font-size: 24px;
  }

  .title, h2, .gallery-item a, .menu-overlay a, .contact-links a, .redbull-text, .predigt-text, .zwinker-text, .duundich-text, .artanddeath-text, .obskured-text {
    font-size: 24px !important;
  }
}

      @media (width > 900px) and (width <= 1900px) {
        body {
          font-size: 30px;
        }
        .title, h2, .gallery-item a, .menu-overlay a, .contact-links a, .redbull-text, .predigt-text, .zwinker-text, .duundich-text, .erwin-text, .aeluent-text, .pearheads-text, .sommernachtstraum-text, .artanddeath-text, .obskured-text {
          font-size: 30px !important;
        }
      }

      @media (height <= 400px) {
        body {
          font-size: 20px;
        }
        .title, h2, .gallery-item a, .menu-overlay a, .contact-links a, .redbull-text, .predigt-text, .zwinker-text, .duundich-text, .erwin-text, .aeluent-text, .pearheads-text, .sommernachtstraum-text, .artanddeath-text, .obskured-text {
          font-size: 20px !important;
        }
      }

      @media (width <= 480px) {
        body {
          font-size: 18px;
        }
        .title, h2, .gallery-item a, .menu-overlay a, .contact-links a, .redbull-text, .predigt-text, .zwinker-text, .duundich-text, .erwin-text, .aeluent-text, .pearheads-text, .sommernachtstraum-text, .artanddeath-text, .obskured-text {
          font-size: 18px !important;
        }
      }

/* Container-Layout */
.container {
    width: 100%;
    padding-top: min(6vh, 140px);
    padding-bottom: min(6vh, 140px);
}

/* Gallery-Layout */
.gallery {
    display: flex;
    flex-direction: column;
    gap: 8vh;
    padding-left: 4vw;
    padding-right: 4vw;
}

@media (aspect-ratio < 1/1) {
  .gallery {
    gap: 11vw;
  }
}

.gallery-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

@media (width <= 700px) {
  .gallery-item {
    gap: 12px;
  }
}

.gallery-item a {
  color: #fff;
  text-decoration: none;
  font-family: Quicksand, sans-serif;
  font-size: 36px;
  font-weight: 400;
  transition: color 0s;
}

.gallery-item a:hover .title,
.gallery-item a:focus .title {
  color: #F60;
}

/* Titel-Styling */
.title {
    font-size: 36px;
    font-weight: 400;
    text-align: left;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
}

.fade-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: #000;
  z-index: 1000;
  opacity: 1;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.77, 0, 0.175, 1);
}

.fade-overlay.fadeout {
  opacity: 0;
} 

.fade-menu {
  opacity: 1;
  transition: opacity 0.3s cubic-bezier(0.77, 0, 0.175, 1);
}

.fade-menu.fadeout {
  opacity: 0;
}

.menu-container {
  position: fixed;
  top: 30px;
  right: 30px;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 0;
  width: 44px;
  height: 44px;
  justify-content: center;
  align-items: center;
  z-index: 1400;
}

.menu-toggle span {
  display: block;
  width: 36px;
  height: 4px;
  background: #fff;
  border-radius: 0;
  transition: all 0.3s cubic-bezier(0.77, 0, 0.175, 1);
  position: relative;
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(11px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: translateY(-11px) rotate(-45deg);
}

.menu-overlay {
  display: flex;
  position: fixed;
  top: 30px;
  right: 30px;
  width: 340px;
  min-height: 260px;
  background: #000;
  z-index: 1300;
  justify-content: center;
  border-radius: 0;
  box-shadow: none;
  padding: 40px 30px;
  transition: opacity 0.3s cubic-bezier(0.77, 0, 0.175, 1);
  opacity: 0;
  align-items: flex-end;
  pointer-events: none;
}

.menu-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.fade-overlay-menu {
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.77, 0, 0.175, 1);
}

.fade-overlay-menu.open {
  opacity: 1;
}

.menu-overlay nav {
  display: flex;
  flex-direction: column;
  gap: 0.7em;
  align-items: flex-end;
}

.menu-overlay a {
  font-family: Quicksand, sans-serif;
  font-size: 36px;
  color: #fff;
  text-decoration: none;
  transition: color 0.2s;
  text-align: right;
  width: 100%;
}

/* Galerie-Container für Unterunterseiten */
.gallery-container {
  width: 100%;
  min-height: 100vh;
  padding-top: min(8vh, 140px);
  padding-bottom: min(16vh, 280px);
}

@media (height > width) {
  .gallery-container {
    padding-top: min(8vw, 140px);
    padding-bottom: min(16vw, 280px);
  }
}

@media (width <= 900px) {
  .gallery-container {
    padding-bottom: 0 !important;
  }
}

.menu-overlay a:hover {
  color: #F60;
} 

.obskured-link {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.obskured-title {
  color: #fff;
  font-family: Quicksand, sans-serif;
  font-size: 36px;
  font-weight: 400;
  margin: 0;
  transition: color 0s;
} 

.obskured-title-link {
  display: contents;
  text-decoration: none;
}

.obskured-title-link:hover .obskured-title {
  color: #F60;
} 

.artanddeath-title-link {
  display: contents;
  text-decoration: none;
}

.artanddeath-title-link:hover .artanddeath-title {
  color: #F60;
} 

.kryce-title-link {
  display: contents;
  text-decoration: none;
}

.kryce-title-link:hover .kryce-title {
  color: #F60;
} 

.redbull-title-link {
  display: contents;
  text-decoration: none;
}

.redbull-title-link:hover .redbull-title {
  color: #F60;
}

.sommernachtstraum-title-link {
  display: contents;
  text-decoration: none;
}

.sommernachtstraum-title-link:hover .sommernachtstraum-title {
  color: #F60;
} 

.gallery-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: auto;
  margin: 0;
  padding: 0;
} 

.gallery-group .title {
  max-width: 100%;
  overflow-wrap: break-word;
}

.gallery-group a:not(:first-child) {
  display: contents;
} 

@media (width <= 900px) {
  .menu-container {
    top: 15px;
    right: 15px;
  }
  .menu-toggle {
    width: 22px;
    height: 22px;
    gap: 3.5px;
  }
  .menu-toggle span {
    width: 18px;
    height: 2px;
  }
  .menu-toggle.open span:nth-child(1) {
    transform: translateY(5.5px) rotate(45deg);
  }
  .menu-toggle.open span:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.open span:nth-child(3) {
    transform: translateY(-5.5px) rotate(-45deg);
  }
  .menu-overlay {
    top: 15px;
    right: 15px;
    width: 200px;
    min-height: unset;
    height: auto;
    padding: 1.5em 1.2em;
    align-items: stretch;
  }
}

/* Abstand zwischen Inhalt und Text */
.predigt-text {
  margin-top: 7vw;
}

@media (height > width) {
  .predigt-text {
    margin-top: 7vh;
  }
}

/* Neue Mobile Menu Styles für ≤480px */
@media (width <= 480px) {
  .menu-overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 1300;
    padding: 0;
    opacity: 0;
    pointer-events: none;
  }

  .menu-overlay.open {
    opacity: 1;
    pointer-events: auto;
  }

  .menu-overlay nav {
    display: flex;
    flex-direction: column;
    gap: 40px;
    text-align: center;
  }

  .menu-overlay a {
    text-align: center;
    width: auto;
    font-size: 18px !important;
  }
  /* Zusätzliche Sicherheit für Hamburger-Menü */
  .menu-overlay nav a {
    font-size: 18px !important;
  }
  /* Höchste Spezifität für Hamburger-Menü */
  .menu-overlay nav a,
  .menu-overlay .fade-overlay-menu nav a {
    font-size: 18px !important;
  }
} 