* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
    font-family: "Open Sans", sans-serif;
    overflow-x: hidden;
    background-color: black;
    max-width: 2000px;
    margin: 0 auto;
    padding: 0;
}

html, body {
  overscroll-behavior-x: none;
}

#hero {
    position: relative;
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.background {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.background img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    transform: translate(-50%, -50%);
}

#title {
    position: absolute;
    bottom: 10%;
    font-size: clamp(2rem, 8vw, 6rem);
    color: rgb(255, 255, 255);
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
    opacity: 0;
    font-weight: 800;
    font-style: normal;
    line-height: 1;
    z-index: 10;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 1);
    text-transform: uppercase;
    max-width: 90vw; /* Titel bleibt innerhalb 90 % der Breite */

}

#block-players {
    position: absolute;
    bottom: -12%;
    width: 95%;
    text-align: center;
}

#block-players img {
    width: 100%;
}

#gallery {
    position: relative;
    height: auto;
    /* Längere Seite für Scroll-Effekt */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    perspective: 1000px;
    /* 3D-Effekt */
}

.previewblock {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.image {
    width: 100vw;
    height: 100vh;
    background-size: cover;
    background-position: center;
    position: relative;
    transform: translateZ(0px) scale(1);
    transition: transform 0.3s ease-out;
}

.image.fullscreen {
    width: 100vw;
    /* Volle Bildschirmbreite */
    height: 100vh;
    /* Volle Bildschirmhöhe */
}

.image.half {
    width: 50vw;
    /* Zwei Bilder nebeneinander */
    height: 100vh;
    /* Volle Bildschirmhöhe */
}

.row {
    display: flex;
    justify-content: center;
    width: 100vw;
    height: 100vh;
}

.overlay {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
    padding: 20px;
    align-items: center;
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.subtitle {
    font-size: clamp(1.5rem, 3vw, 4rem);
    color: white;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.9);
    margin-bottom: 10px;
    text-align: center;
}

.smalltitle {
    font-size: clamp(1rem, 1.5vw, 3rem);
    color: white;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.9);
    text-align: center;
}

.gallery-title {
    font-size: clamp(1.5rem, 3vw, 4rem);
    color: white;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.9);
    margin-bottom: 20px;
    text-align: center;
}

.buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 10;
}

.buttons button {
    margin: 0px 10px;
}

button {
    background-color: rgba(255, 255, 255, 0.9);
    color: rgb(0, 0, 0);
    border: none;
    padding: 15px 40px;
    font-size: 1.5rem;
    border-radius: 100px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);

}

button:hover {
    background-color: rgba(0, 0, 0, 0.9);
    transform: scale(1.05);
    color: white;
}

#footer {
    position: relative;
    width: 100%;
    height: 150px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
}

.footer-content {
    text-align: center;
}

#navigation {
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    width: 100%;
    height: 70px;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: right;
    align-items: center;
    padding-right: 20px;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links li {
    list-style: none;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    padding: 10px;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    background-color: rgb(255, 255, 255);
    color: black;
}


.fotogrid {
    display: grid;
    grid-template-columns: repeat(4, auto);
    grid-template-rows: repeat(2, auto);
    height: auto;
}

.foto {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: all 0.4s ease;
}

.foto.quer {
    grid-column: 1 / 3;
}

.foto:hover {
    transform: scale(1.04);
    filter: brightness(1.1);
}

.photo-wrapper {
    overflow: hidden;
    position: relative;
}

.gallery-swiper {
  max-width: 90vw;
  margin: 50px auto;
}

.main-slider,
.main-slider-maenner,
.main-slider-frauen-alle,
.main-slider-maenner-alle {
  width: 100%;
  max-height: 80vh;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-slider .swiper-slide,
.main-slider-maenner .swiper-slide,
.main-slider-frauen-alle .swiper-slide,
.main-slider-maenner-alle .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
}


.gallery-swiper .swiper-slide img {
  max-height: 80vh;
  max-width: 100%;
  object-fit: cover;
  margin: none;
}

.thumb-slider,
.thumb-slider-maenner,
.thumb-slider-frauen-alle,
.thumb-slider-maenner-alle {
  height: auto;
  padding: 10px 0;
}


/* Vorschau-Thumbnails für ALLE Slider-Typen */
.thumb-slider .swiper-slide,
.thumb-slider-maenner .swiper-slide,
.thumb-slider-frauen-alle .swiper-slide,
.thumb-slider-maenner-alle .swiper-slide {
  width: auto;
  height: auto;
  opacity: 0.5;
  cursor: pointer;
  transition: opacity 0.3s;
}

.thumb-slider .swiper-slide-thumb-active,
.thumb-slider-maenner .swiper-slide-thumb-active,
.thumb-slider-frauen-alle .swiper-slide-thumb-active,
.thumb-slider-maenner-alle .swiper-slide-thumb-active {
  opacity: 1;
}

.thumb-slider .swiper-slide img,
.thumb-slider-maenner .swiper-slide img,
.thumb-slider-frauen-alle .swiper-slide img,
.thumb-slider-maenner-alle .swiper-slide img {
  height: 70px;
  width: auto;
  object-fit: contain;
  border-radius: 5px;
}


.swiper-button-next::after,
.swiper-button-prev::after {
  color: white; /* deine Wunschfarbe */
}

/* Hamburger Style */
.hamburger {
    display: none;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    z-index: 200;
    padding: 0 20px;
}
#preloader {
  position: fixed;
  width: 100vw;
  height: 100vh;
  background: black;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 6px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

#mobile-hint {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9998;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.85);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  text-align: center;
}

#mobile-hint.hidden {
  display: none;
}

.hint-box {
  background-color: #222;
  border-radius: 12px;
  padding: 20px 30px;
  box-shadow: 0 0 10px black;
  max-width: 90%;
}

#close-hint {
  margin-top: 15px;
  background-color: white;
  color: black;
  border: none;
  padding: 10px 20px;
  border-radius: 100px;
  font-weight: bold;
  cursor: pointer;
}


@media screen and (max-width: 1000px) {
    #title {
        font-size: 4rem; /* Kleinere Schriftgröße für kleinere Bildschirme */
        top: 10%;
        bottom: auto;
    }

    #block-players  {
        width: 100%;
        height: auto;
        bottom: -20%;
    }

    .background img {
        top: 60%;
    }

    .nav-links a {
        font-size: 0.8rem;
    }

    .nav-links {
        align-items: center; /* Zentriert die Links */
        text-align: center; /* Zentriert den Text */
    }

    .main-slider .swiper-slide img {
  max-height: 80vh;
}

}

@media screen and (max-width: 800px) {
        #hero {
        height: 80vh; /* Volle Höhe für kleinere Bildschirme */
    }

    .break {
        display: none; /* Versteckt die Breaks auf kleineren Bildschirmen */
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 70px;
        right: 0;
        background-color: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        width: 100%;
        align-items: center;
        gap: 30px;
        display: none; /* Wird via JS sichtbar */
        padding-bottom: 20px;
    }

    .nav-links.show {
        display: flex;
    }
}

@media screen and (max-width: 650px) {
        #hero {
        height: 70vh; /* Volle Höhe für kleinere Bildschirme */
    }

    #title {
        font-size: 3rem; /* Noch kleinere Schriftgröße für sehr kleine Bildschirme */
        top: 5%;
        bottom: auto;
    }
}

@media screen and (max-width: 560px) {
        #hero {
        height: 60vh; /* Volle Höhe für kleinere Bildschirme */
    }

    #block-players {
        bottom: -26%;
    }
}

@media screen and (max-width: 450px) {
        #hero {
        height: 50vh; /* Volle Höhe für kleinere Bildschirme */
    }

        #block-players {
        bottom: -30%;
    }

    #title {
        font-size: 2.5rem; /* Noch kleinere Schriftgröße für sehr kleine Bildschirme */
        top: 2%;
        bottom: auto;
    }
}