/* Reset CSS */

html, body {
  background: white;
  z-index: 1;
  font-size: 4vh;
  padding: 0;
  margin: 0;
  font-family: "Geist", sans-serif;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button, input, label {
  cursor: pointer
}

*, *:after, *:before {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

ul, li {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1 {
  font-size: 4vh;
  font-weight: 400;
}

@keyframes pulse {
  0% {
      transform: scale(1);
      color: red; /* Anfangsfarbe */
  }
  50% {
      transform: scale(1); /* Vergrößern der Schrift */
      color: red; /* Mittlere Farbe */
  }
  100% {
      transform: scale(1);
      color: red; /* Zurück zur ursprünglichen Farbe */
  }
}



/* Your CSS */

.title {
  position: fixed;
  right: 6px;
  top: 6px;
  z-index: 1;
  font-size: 4vh;
  color: black;
  transition: color 0.2s linear; /* Sanfter Übergang */
  cursor: pointer;
}

.title:hover {
  color: red;
}

.toggle-text {
  cursor: pointer;
  width: 20vw;
  padding: 6px;
  font-size: 4vh;
  color: black;
  display: block;
  position: relative; /* Text bleibt im normalen Flow */
  transition: color 0.2s linear; /* Sanfter Übergang */
  z-index: 1;
}

.toggle-text:hover {
  color: red;
}

.toggle-box {
    display: none;
    width: 100vw;
    height: auto;
    padding-inline: 6px;
    /* margin-top: 5px;
    margin-bottom: 5px; */
    overflow-x: auto; /* Erlaubt horizontales Scrollen */

  }

  
  .toggle-box p {
    font-size: 3vh;
  }


.default-text {
  width: 35%;
}




.image-container {
  width: 100%;
  /* margin-left: 5%; */
  display: grid; 
  grid-template-columns: repeat(3, 1fr);
  grid-row-gap: 10px;
  column-gap: 10px;
  overflow: hidden;
}

.contact-container {
  width: 100%;
}

.imp-container {
  width: 100%;
  line-height: 3vh;
}

.imp-container a{
  font-size: 3vh;
}

.toggle-box img{
  width: 100%;
  height: 100%;
  margin-top: 6px;
  margin-bottom: 6px;
  display: block;
  object-fit: cover;
}

a:link{
  color:black;
  font-size: 3vh;  
}

.imp-container a:link{
  color:black;
  font-size:3vh;
}

a:visited {
  color:black;
}

#center-box {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  pointer-events: auto;
  z-index: 2;
  cursor: pointer;
  /* object-fit HIER entfernen! */
}

#center-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 80%; /* ← z.B. Fokus auf oberen Bereich */
  display: block;
}

.fullscreen-bg {
  position: absolute; /* Wichtig: lässt das Bild frei platzieren */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.fullscreen-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom; 
  display: block;
}


.centered-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-align: center;
  z-index: 1;
  font-family: 'Geist', sans-serif;
  padding: 1rem;
  text-shadow: 0 0 10px rgba(0,0,0,0.5);
  cursor: pointer;
}

#center-box.hidden {
  pointer-events: none; /* Verhindert, dass das unsichtbare Div Klicks blockiert */
}


.open {
  display: flex;
}

#lightbox {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: white;
  opacity: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

#lightbox .lightbox-img {
  max-width: 90%;
  max-height: 90%;
}

#lightbox .close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  font-weight: 100;
  color: black;
  cursor: pointer;
  z-index: 10000;
}

.image-container img {
  cursor: pointer;
}

#lightbox .prev,
#lightbox .next {
  position: absolute;
  top: 50%;
  width: 100px;
  height: 100px;
  color: white;
  border-top: 2px solid black;
  border-left: 2px solid black;
  transform: translateY(-50%) rotate(-45deg);
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}

#lightbox .next {
  right: 40px;
  transform: translateY(-50%) rotate(135deg);
}

#lightbox .prev {
  left: 40px;
}

#lightbox .prev:hover,
#lightbox .next:hover {
  border-color: red;
}

/* Media Queries */

@media screen and (max-width: 500px){

  #lightbox {
    display: none;
  }

.toggle-box{
  display: none;
}

toggle-box.open {
  display: block;
  padding-left: 0;
  margin-left: 0;
}

  .default-text {
    width: 100%;
    
  }

  #center-box {
    visibility: hidden;
  }

  .title {
    visibility: hidden;
  }

  .image-container {
    width: 100%;
    display: block; 
    grid-template-columns: 100%;
}

  .toggle-box img{
    max-width: 100%;
    margin-left: 0;
  }
}
