/* Global Styles */
html {
  scroll-behavior: smooth;
}

body {
  font-family: "Raleway", sans-serif;
  font-weight: 400;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  color: #000000;
  background: #fff;
  overflow-x: hidden;
  width: 100%; 
  height: 100%;
}

p {
  color: #000000c2;
}

h1, h2 {
  font-family: "Raleway", sans-serif;
}

h1 {
  font-weight: 700;
}

h2 {
  font-weight: 400;
  font-style: sans-serif;
}

/* Header Styles */
header {
  text-align: center;
  padding: 1rem;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: background-color 0.3s ease-in-out;
  color: #fff;
}
video{
  width: 195vh;
}

header.scrolled {
  background-color: #fff;
}

header img {
  filter: invert(1);
}

header.scrolled img {
  filter: invert(0);
}

/* Navigation Styles */
nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

nav a {
  color: #ffffff;
  text-decoration: none;
  padding: 0.5rem 1rem;
  transition: color 0.3s ease-in-out;
  font-size: 1.3em;
  display: inline-block;
}

nav a:hover {
  background: #bdbdbd;
  color: #000000;
  border-radius: 5px;
}

nav a img {
  height: 100px;
  transition: transform 0.3s ease, background-color 0.3s ease;
}
nav .logo {
  display: none;
}


nav a img:hover {
  transform: scale(1.1);
  background: none;
  pointer-events: auto;
}

nav a:hover img {
  background: none;
}


@media (max-width: 768px) {
  nav a {
    font-size: 1em;
    padding: 0.5rem;
  }
}
@media (max-width: 480px) {
  nav a {
    font-size: 0.8em;
    padding: 0.3rem;
  }
}


/* Hero Section */
#hero {
  position: relative;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;

  text-align: center;
  

}

#hero h1, #hero h2 {
  position: absolute;
  margin: auto;
  color: #ffffff;
  bottom: 500px;
  display: inline-block;
  width: 50%;
  opacity: 0;
}

#hero h1 {
  font-size: 4rem;
  opacity: 0;
  z-index: 10;
  margin: auto;
  font-family: 'Raleway',sans-serif;
  font-weight: bold;
  margin-bottom: 20px;
}

#hero img {
  height: 10%;
  width: 10%;
}

#hero h1.fade-in,
#hero h2.fade-in {
  animation: fadeIn 2s ease-in-out forwards;
}

#hero h2.fade-in {
  animation-delay: 0.5s;
}

@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

/* Section Styles */
section {
  padding: 2rem 0;
  text-align: center;
}

/* Footer Styles */
footer {
  background: #000;
  color: #fff;
  text-align: center;
  padding: 1rem 0;
}

.footer {
  background-color: #f1f1f1;
  color: #fff;
  text-align: center;
  padding: 20px 0;
  font-family: Arial, sans-serif;
  font-size: 14px;
  position: relative;
  bottom: 0;
  width: 100%;
  margin-top: 50px;
}

@media (max-width: 600px) {
  .footer {
    font-size: 12px;
    padding: 15px 0;
  }
}

/* Social Links */
.social a {
  color: #fff;
  text-decoration: none;
  margin: 0 0.5rem;
}

.social a:hover {
  color: #ccc;
}

 

.Leistungen-grid {
  margin-top: 5%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  justify-items: center;
  align-items: center;
  width: 60%;;
  margin: auto;
}

@media (max-width: 1600px) {
  .Leistungen-grid {
    grid-template-columns: repeat(2, 1fr);
    width: 50%;
  }
  .Leistungen-item{
    margin-bottom: 30px;
  }
  .Leistungen-item .image-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 290px;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
    border-radius: 5px;
    background-color: transparent; /* Ensure background is transparent */
  }
  .Leistungen-item:hover .image-text{
    margin-left: 0px;
    margin-right: 5px;
  }
  
  .image-text {
    opacity: 1;
    font-size: 1.7em;
    font-weight: bold;
    text-shadow: rgb(0, 0, 0) 1px 0 0px;
  }
}
@media (max-width: 1200px) {
  .Leistungen-grid {
    grid-template-columns: repeat(1, 1fr);
    width: 50%;
  }
}
.Leistungen-item {
  width: 300px;
  height: 500px;
  position: relative;
  overflow: hidden;
  min-width: 300px;
  margin-top: 0%;
  align-items: center;
  border-radius: 5px;
}

.Leistungen-item img {
  min-width: 300px;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 5px;
}

#Leistungen button {
  border: none !important;
  width: 100%;
  height: 100%;
  display: inline-block;
  background: transparent;
}

.image-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 300px;
  height: 100%;
  margin-left: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.5);
  color: #fff;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  border-radius: 5px;
}

.Leistungen-item:hover .image-text {
  opacity: 1;
  width: 300px;
  border-radius: 5px;
  margin-left: 5px;
}

#Leistungen h2 {
  margin-top: 5%;
  font-size: 2em;
}

#gallery {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  max-height: 80vh;
  padding-top: 150px;
  margin: auto;
}

#gallery .slider {
  gap: 20px;
  position: relative;
  height: 80vh;
}

#gallery .slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
  position: relative;
  width: 100%;
  height: auto;
  position: relative;
  
}

#gallery .slide {
  flex: 0 0 100%;
  height: 1980px;
  width: 1080px;
}

#gallery .prevBtn, #gallery .nextBtn {
  position: relative;
  transform: translateY(-50%);
  background-color: transparent;
  color: #2b2a2a;
  padding: 10px;
  border: none;
  cursor: pointer;
  z-index: 10;
  font-size: 2em;
}

#gallery .prevBtn {
  left: 20%;
}

#gallery .nextBtn {
  right: 20%;
}

#gallery .prevBtn:hover, #gallery .nextBtn:hover {
  background-color: rgba(187, 187, 187, 0.8);
}

#gallery img {
  width: 50%;
  object-fit: cover;
  border-radius: 5px;
  outline: none;
}

#gallery h2 {
  font-size: 2em;
}
@media (max-width: 768px) {
  #gallery img {
    width: 90%;
    height: auto;
    left: 5%;
  }

  #gallery .slider {
    width: 90%;
    height: auto;
    gap: 20px;
    overflow: hidden;
  }
  #gallery .slide {
    height: auto;
    margin: auto;
    margin-bottom: 20%;
    padding-top: 0;
    gap: 50px;
  }

  #gallery .prevBtn, #gallery .nextBtn {
    top: 75%;
    font-size: 1.5em;
    display: none;
  }

  #gallery .prevBtn {
    left: 10%;
  }

  #gallery .nextBtn {
    right: 10%;
  }
}

/* Popup Styles */
#popup img {
  width: 50%;
  object-fit: cover;
  border-radius: 5px;
}

#popupbutton button {
  padding: 2em 5em;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-weight: 500;
  color: #ffffff;
  background-color: #00aa33;
  border: none;
  border-radius: 45px;
  box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease 0s;
  cursor: pointer;
  outline: none;
  position: fixed;
  right: 5%;
  bottom: 5%;
  z-index: 10;
}

#popupbutton button:hover {
  background-color: #00440b;
  box-shadow: 0px 15px 20px rgba(202, 229, 46, 0.062);
  color: #fff;
  transform: translateY(-7px);
}

#popupbutton button:active {
  transform: translateY(-1px);
}

.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.popup-content {
  background: #fff;
  padding: 2rem;
  border-radius: 10px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  position: relative;
  text-align: center;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.5rem;
  cursor: pointer;
  color: #333;
}

.popup-content form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.popup-content input, 
.popup-content textarea {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.popup-content button {
  padding: 0.75rem;
  background-color: #00aa33;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.popup-content button:hover {
  background-color: #008022;
}

#popup a:visited {
  color: pink;
  background-color: transparent;
  text-decoration: none;
}

#popup a:hover {
  color: rgb(71, 71, 71);
  background-color: transparent;
  text-decoration: underline;
}

#popup a:active {
  color: yellow;
  background-color: transparent;
  text-decoration: underline;
}

/* Biography Section */
.biography-container {
  display: flex;
  align-items: center;
  justify-content: start;
  gap: 20px;
}

#über {
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}
@media (max-width: 900px) {
  .biography-photo img {
    display: none;
  }
}

.biography-photo img {
  width: 50%;
  height: 50%;
  margin-top: 15%;
  object-fit: cover;
  border-radius: 50%;
}

.biography-text {
  width: 80%;
  text-align: left;
  margin-left: 10%;
  margin-top: 0%;
  font-size: 1.2rem;
}

/* Media Section */
#Media {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#Media .video-container {
  display: flex;
  justify-content: space-between;
  margin-top: 5%;
  width: 70%;
}

#Media .video {
  flex: 1;
  margin: 0 10px;
}
#Media .video1 {
  flex: 1;
  margin: 0 10px;
  float: left;
}



iframe {
  border-radius: 5px;
  width: 100%;
  height: 350px;
  margin: auto;
}

#Media h2 {
  font-size: 2em;
}

#Media h3 {
  font-size: 1.5em;
}

/* Reviews Section */
.checked {
  color: orange;
}



/* Dropdown Styles */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 1;
  border-radius: 5px;
}

.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
  background-color: #f1f1f1;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* Reference Section */
.reference-container {
  width: 80%;
  margin: auto;
  padding: 20px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 0 2em #949494;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
}

.reference-container h2 {
  font-size: 1.5em;
  margin-bottom: 10px;
  text-align: center;
}

.reference-container ul {
  width: 80%;
  max-width: 800px;
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.reference-container li {
  color: #000000;
  border-radius: 4px;
  text-align: center;
}

.reference-container a {
  text-decoration: none;
  color: #000000;
}

.reference-container a:hover {
  text-decoration: underline;
}

.reference-item {
  background-color: #ffffff;
  text-align: center;
  font-size: 1rem;
  color: #000000;
}

@media screen and (max-width: 1200px) {
  .reference-container {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media screen and (max-width: 768px) {
  .reference-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Miscellaneous */
[id] {
  scroll-margin-top: 150px !important;
}

:any-link {
  text-decoration: none;
  color: #000;
}

nav :any-link {
  text-decoration: none;
  color: #000000;
}

#RundR {
  height: 80vh;
}

.entry-content {
  text-align: left;
  width: 50%;
  margin: auto;
}

.button-container {
  margin-top: 20px;
  display: flex;
  justify-content: center;
}

.sch-slider {
  width: 80%;
  overflow: hidden;
  border: 1px solid #ddd;
}
#RundR {
    position: relative;
    padding: 50px 0;
  }
  
.rezension-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 20px;
    position: relative;
  }
  
.rezension-slide {
    width: 80%;
    max-width: 600px;
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
    background-color: #ffffff;
    border-radius: 5px;
    margin: 10px 0;
    font-size: 1.0em;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    font-weight: 400 ;

  }
  
#RundR .prevBtn, #RundR .nextBtn {
    position: absolute;
    top: 50%; /* Ensures both buttons are vertically centered */
    transform: translateY(-50%);
    background-color: transparent;
    color: #2b2a2a;
    padding: 10px;
    border: none;
    cursor: pointer;
    z-index: 10;
    font-size: 2em;
    
  }
  
#RundR .prevBtn {
    left:  30%;
  }
  
#RundR .nextBtn {
    right: 30%;
  }
#RundR .prevBtn:hover, #RundR .nextBtn:hover {
    background-color: rgba(187, 187, 187, 0.8);
  }


@media screen and (max-width: 1600px) {
  #RundR .prevBtn, #RundR .nextBtn {
    top: 50%;
    font-size: 1.5em;
  }
  #RundR .prevBtn {
    left: 20%;
  }
  #RundR .nextBtn {
    right: 20%;
  }
  
}
@media screen and (max-width: 1050px) {
  #RundR .prevBtn, #RundR .nextBtn {
    top: 50%;
    font-size: 1.5em;
  }
  #RundR .prevBtn {
    left: 50px;
  }
  #RundR .nextBtn {
    right: 50px;
  }
}
@media screen and (max-width: 768px) {
  #RundR .prevBtn, #RundR .nextBtn {
    top: 50%;
    font-size: 1.5em;

  }
  #RundR .prevBtn {
    left: 10px;
  }
  #RundR .nextBtn {
    right: 10px;
  }
}
.content {
  position: relative;
  z-index: 2;
  width: 100%;
  margin: auto;
  right: 23%;
  text-align: center;
  height: 100%;
  bottom: 10%;
}
.parallax{
  width: 100%;
  min-height: 100%;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.background-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw; /* Avoid unexpected overflows with 100vw */
  height: 100vh; /* Full viewport height */
  z-index: -1;
  object-fit: cover;
  min-width: 100%; /* Ensures video doesn't shrink below container */
  min-height: 100%;
}
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  background: white;
  height: 3px;
  width: 25px;
  margin: 4px 0;
  border-radius: 2px;
}
@media screen and (max-width: 450px) {
  .Leistungen-item img {
    display: grid;
    justify-content: center;
    min-width: 100%;
    margin-right: 100%;
    width: 60%;
    height: 100%;
    margin-bottom: 0; /* Reduce the top margin */
  }

  .Leistungen-grid {
    grid-gap: 0;
    width: 100%;
    height: 100%;

    
  }
  .image-text{
    opacity: 1;
    width: 290px;
    background-color: transparent;
 
  }
  .Leistungen-item{
    width: 200px;
    height: 600px;
    position: relative;
    overflow: hidden;
    min-width: 300px;
    margin-top: 0%;
    align-items: center;
    border-radius: 5px;
    margin: 0;
    grid-template-columns: repeat(1, 1fr);	
    margin-bottom: 50px
  }
  .Leistungen-item:hover .image-text {
      position: absolute;
      top: 0;
      left: 0;
      width: 290px;
      height: 100%;
      display: flex;
      justify-content: center;
      align-items: center;
      color: #fff;
      opacity: 1;
      transition: opacity 0.3s ease-in-out;
      border-radius: 5px;
    
  }
  .image-text {
    opacity: 1;
    font-size: 1.7em;
    font-weight: bold;
    background-color:transparent;
    text-shadow: rgb(0, 0, 0) 1px 0 0px;

  }
  #gallery .slider {
    width: 90%;
    height: auto;
    gap: 20px;
    overflow: hidden;
    margin: auto;
  }
  #über p{
    font-size: 0.7em;
  }
  #Media .video-container {
    display:block;
    justify-content: center;
    margin-top: 5%;
    width: 100%;
    height: auto;
    flex-direction: column;
    align-items: center;
  }
  #Media .video{
    float: none;
  }
  #Media .video1{
    float: none;
  }

}
nav .hamburger-menu {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  position: fixed; /* Change to fixed */
  top: 0px; /* Adjust the top position as needed */
  left: 10px; /* Adjust the left position as needed */
  padding: 10px;
  z-index: 1000; /* Ensure it stays on top of other elements */
}

nav .hamburger-menu span {
  width: 25px;
  height: 3px;
  background-color: #ffffff;
}
nav .hamburger-menu.scrolled span {
  background-color: #252525; /* Change to grey when scrolled */
}
nav .navbar.show {
  display: flex;
  flex-direction: column;
}
nav .navbar.show img{
  display: none; /* Hide the logo when the navbar is expanded */
  color : #000000;
}
nav .logo{
  display: none;
}
@media (max-width: 450px) {
  nav .logo {
    display: block ;
  }
  .navbar {
    display: none;
  }
  nav .hamburger-menu {
    display: flex;
  }
  nav .navbar a[href="#hero"] {
    display: none;
  }
  .reference-container {
    grid-template-columns: repeat(2, 1fr);
  }
  .reference-item {
    font-size: 0.5em;
  }

  #hero h1 {
    bottom: 30%;
    font-size: 3em;
  }
  #hero h2 {
    bottom: 25%;
    font-size: 1.5em;
  }
  header{
    text-align: left;
    padding: 20px;
  }

 
}
@media  (min-width: 450px) {
  nav .logo {
    display: none !important;
  }
}

@media (min-width: 1600px){
  .Leistungen-grid {
    grid-template-columns: repeat(4, 1fr);
    width: 60%;
  }
  .Leistungen-item{
    margin-bottom: 30px;
  }
  .Leistungen-item .image-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 290px;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
    border-radius: 5px;
    background-color: transparent; /* Ensure background is transparent */
  }
  .Leistungen-item:hover .image-text{
    margin-left: 0px;
    margin-right: 5px;
  }
  
  .image-text {
    opacity: 1;
    font-size: 1.7em;
    font-weight: bold;
    text-shadow: rgb(0, 0, 0) 1px 0 0px;
  }
}