/* Element-Deklarationen */
body, h1, p {
  font-family: "Montserrat", sans-serif;
  color: #666;
}

img, video {
  margin-bottom: -7px;
  cursor: pointer;
}

/* Klassen-Deklarationen */
.video-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
}

video {
  width: 100%;
  height: auto;
  display: block; /* Video sichtbar machen */
  background-color: #000; /* Schwarzer Hintergrund als Fallback, falls kein Frame geladen wird */
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translateX(3.5px);
  width: 0;
  height: 0;
  border-left: 20px solid white;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  z-index: 1;
  pointer-events: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.video-wrapper::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
  transition: background-color 0.3s ease;
}

.video-wrapper:hover .play-button {
  transform: translate(-50%, -50%) translateX(3.5px) scale(1.2);
  opacity: 1;
}

.video-wrapper:hover::before {
  background-color: rgba(0, 0, 0, 0.7);
}

.w3-row-padding img, .w3-row-padding .video-wrapper {
  margin-bottom: 12px;
}

.toggle-container {
  padding: 16px 0;
  text-align: center;
}

.toggle-btn {
  padding: 10px 20px;
  background-color: #666;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.toggle-btn:hover {
  background-color: #d3d3d3;
  color: #666;
}

.w3-modal-content {
  position: relative;
  margin: auto;
  padding: 0;
  width: 80%;
  max-width: 1200px;
}

.w3-image {
  max-width: 90%;  
  max-height: 80vh;
  width: auto;
  height: auto;
  display: block;
  margin: auto;
}

.w3-video {
  max-width: 90%;
  max-height: 80vh;
  margin: auto;
}

.w3-sidebar {
  z-index: 10;
  background-color: #000;
}

.w3-button.w3-right .fa-bars {
  color: #666;
  transition: color 0.3s;
}

.w3-button.w3-right:hover .fa-bars {
  color: #f0f0f0;
}

.scroll-top-container {
  padding: 16px 0;
  text-align: center;
}

.scroll-top-btn {
  padding: 10px 20px;
  background-color: #666;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
  text-decoration: none;
  display: inline-block;
}

.scroll-top-btn:hover {
  background-color: #d3d3d3;
  color: #666;
}

/* Identifier-Deklarationen */
#modal01 {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
}

#caption {
  margin-top: 10px;
  font-size: 16px;
  color: white;
  text-align: center;
}

#myGrid .w3-third {
  width: 33.33% !important;
  float: left;
  box-sizing: border-box;
}

@media screen and (max-width: 600px) {
  #myGrid .w3-third {
    width: 33.33% !important;
  }
}