/* Global Styles */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 5;
}

body {
  font-family: Arial, sans-serif;
  background-color: #000;
  color: #d3d3d3;
  text-align: center;
  padding: 10px;
  line-height: 1.5;
  
}

p {
  margin: 5px; /* oder 30px, 40px, etc. */
}

#bild {
  max-width: 500px; /* oder 20vw */
  height: auto;
  margin: 20px auto;
}

#textblock {
  /*width: 600px;*/
  max-width: 600px;
  margin: 40px auto;
  text-align: left;
  font-size: 14px;
  background-color: #000;
  color: #d3d3d3;
}

.infotext {
  max-width: 600px; /* oder eine andere Breite, die du bevorzugst */
  margin: 40px auto; /* oder eine andere Marge, die du bevorzugst */
  padding: 20px; /* oder eine andere Padding, die du bevorzugst */
  text-align: center; /* oder left, right, center, je nachdem, wie du den Text ausrichten möchtest */
  color: #d3d3d3;
  background-color: #000;
}

/* Navigation Styles */

nav {
  background-color: #505050;
  color: #ff8c00;
  padding: 10px;
  text-align: center;
  margin-bottom: 30px;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

nav li {
  display: inline-block;
  margin-right: 20px;
}

nav a {
  color: #ff8c00;
  text-decoration: none;
}

nav a:hover {
  color: #ffb06f;
}



/* Lightbox Styles */

.lightbox {
  position: fixed;
  top: 10%;
  left: 10%;
  transform: translate(-10%, -10%);
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 1000;
  cursor: pointer;
  padding: 0;
  /*height: 90vh;*/
  user-select: none !important;
  -moz-user-select: none !important;
  -webkit-user-select: none !important;
  -ms-user-select: none !important;
}

.lightbox:target {
  display: block;
}

.lightbox img {
  /*width: auto;*/
  max-width: 100%;
  /*max-height: 90vh;*/
  margin: auto;
  display: block;
  position: relative;
  user-select: none !important;
  -moz-user-select: none !important;
  -webkit-user-select: none !important;
  -ms-user-select: none !important;
}

.lightbox .prev, .lightbox .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  color: #ff8c00;
  text-decoration: none;
  z-index: 1;
  background-color: #000; /* Hintergrundfarbe für die Navigationspfeile */
  padding: 10px; /* Padding für die Navigationspfeile */
  border-radius: 5px; /* Rundung für die Navigationspfeile */
}

.lightbox .prev {
  left: 10px;
}

.lightbox .next {
  right: 10px;
}

/* Close Button Styles */

.close {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: #000;
  font-size: 24px;
  color: #ff8c00;
  text-decoration: none;
  padding: 10px;
  /*padding: 5px 10px; */
  /*border: none; */
  border-radius: 5px;
  cursor: pointer;
  z-index: 1;
}

/* Vorschaubild Styles */

.vorschaubild {
  display: inline-block;
  margin-right: 5px;
  margin-top: 5px;
  user-select: none !important;
  -moz-user-select: none !important;
  -webkit-user-select: none !important;
  -ms-user-select: none !important;
}

/* Mobile Styles */

@media only screen and (max-width: 768px) {
  .lightbox {
    width: 90%;
    height: 90vh;
    margin: 5% auto;
  }
  
  .lightbox img {
    max-width: 90%;
    max-height: 80vh;
  }
  
  .close {
    top: 10px;
    right: 10px;
  }
  
  nav {
    padding: 5px;
  }
  
  nav ul {
    margin: 0;
    padding: 0;
  }
  
  nav li {
    display: block;
    margin-right: 0;
  }
  
  nav a {
    display: block;
    padding: 5px;
  }
}

/* Tablet Styles */

@media only screen and (min-width: 769px) and (max-width: 1024px) {
  .lightbox {
    width: 70%;
    height: 70vh;
    margin: 15% auto;
  }
  
  .lightbox img {
    max-width: 80%;
    max-height: 60vh;
  }
  
  .close {
    top: 15px;
    right: 15px;
  }
  
  nav {
    padding: 10px;
  }
  
  nav ul {
    margin: 0;
    padding: 0;
  }
  
  nav li {
    display: inline-block;
    margin-right: 10px;
  }
  
  nav a {
    display: inline-block;
    padding: 5px;
  }
}