/* Basic styling for body and container */
body, html {
  margin: 0;
  padding: 0 !important;
  box-sizing: border-box;
  font-family: 'Inter', Arial, sans-serif;
  background-color: rgb(170, 170, 170);
  overflow-x: hidden;
  overflow-y: hidden;
}

p{
  margin: 0;
  padding-bottom: 0px;
  font-size: 13px;
  line-height: 18px;
  color: rgb(25, 25, 25);
}

a{
  font-size: 13px;
  text-decoration: none;
  color: rgb(25, 25, 25);
}

.container {
  display: flex;
  height: 100vh;
  overflow-x: hidden; /* Prevent horizontal scrolling */
}

/* NAVBAR */
.navbar {
  width: 230px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  padding-top: 20px;
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  font-weight: 400;
}

.navbar ul{
  margin-top: 100px;
}

/* Styling for the menu and list items */
.menu {
  list-style-type: none;
  padding: 0;
  margin: 0;
  width: 100%;
  background-color: rgb(170, 170, 170);
}

.menu li {
  display: block;
  cursor: pointer;
}

.menu li a {
  display: block;
  padding: 0px;
  color: rgb(25, 25, 25);
  text-decoration: none;
}

/* Styling for the menu and list items */
.menu, #dropdown-menu {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

/* Style for regular menu items */
.menu li, #dropdown-menu li {
  display: block;
  background-color: rgb(170, 170, 170);
  cursor: pointer;
  padding: 0px 0px 0px 40px;
}

/* Link styling for all menu items */
.menu li a, #dropdown-menu li a {
  display: block;
  color: rgb(25, 25, 25);
  text-decoration: none;
  padding: 2px 0px 2px 0px;
}

#dropdown-menu li a:hover,
#dropdown-menu li a.selected {
    background-color: rgb(40, 60, 80); /* Darker background color */
    color: #fff; /* White text color */
    padding-left: 30px; /* Padding for both hover and selected */
}




#menu1 {
  font-weight: 600;
  margin-bottom: 30px;
  background-color: rgb(40, 60, 80);
}

#menu1 a{
  color: #fff;
}



/* Initially, set the hamburger button */
.menu-toggle {
  display: block;
  font-size: 15px;
  background: none;
  border: none;
  cursor: pointer;
  width: 100%;          /* Full width of the container */
  color: rgb(25, 25, 25); /* Icon color */
  transition: transform 0.5s ease;  /* Smooth transition for any transform */
  padding: 0px;
  margin-top: 0px;
  outline: none;
  box-shadow: none;
  border-bottom: none;
}

#sub-menu{
  display: none;
}


/* Hide dropdown menu by default */
#dropdown-menu {
  display: none;
  list-style-type: none;
  padding: 0;
  margin: 0;
}


.menu-actions {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;  /* Add space between the hamburger and buttons */
  padding: 10px 20px;
  background-color: rgb(170, 170, 170);
}

/*"Contact" and "Impressum" buttons */
.menu-action {
  font-size: 14px;
  color: rgb(25, 25, 25);
  text-decoration: none;
  padding: 2px 10px;
  background-color: rgb(170, 170, 170);
  border: none;
  cursor: pointer;
}


.menu-action:hover {
  background-color: rgb(40, 60, 80);
  color: #fff;}


  /* SIDEBAR */
  .sidebar {
    padding-left: 5px;
    width: 230px;
    flex-shrink: 0;
    position: fixed;
    right: 0;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    font-size: 14px;
  }

  .contact{
    margin-right: 20px;
  }
  .sidebar-grid{
    display: grid;
  
  }

  .sidebar-middle{
    margin-bottom: 50px;
  }

  .sidebar-bottom{
    height: 20px;
    background-color: rgb(40, 60, 80);
  }

  .sidebar-top{
    margin-top: 120px;
  }


  .menu-action-sidebar{
    font-weight: 600;
  }
  
  .title{
    font-weight: 600;
    font-size: 14px;
  }
  

    /* MAIN CONTENT */
.content {
    background-color: rgba(44, 183, 58, 0);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-left: 255px; /* Leave space for the navbar */
    margin-right: 255px; /* Leave space for the sidebar */
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
    margin-top: 0px !important;

  }

  .hover-image-layer { 
    position: relative;
    display: flex;
    z-index: 20; /* Setzt es über den anderen Inhalten */
    pointer-events: none; /* Interaktivität nicht blockieren */
}

  #hover-image {
    margin-top: 20px;
    width: 90%;
    height: auto;
    display: none; /* Initially hidden */
    object-fit: cover;
    border-radius: 7px;
    margin-top: 70px !important;
    margin-bottom: 200px !important;
    margin: 0 auto;

}


  
  .image-gallery {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    height: calc(100vh - 40px);
    margin-top: 20px;
    margin-bottom: 20px;
  }
  
  .image-gallery img {
    width: auto;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    margin: 0px;
    /* Keep image hidden using clip-path */
    clip-path: inset(50% 50% 50% 50%);
    transition: clip-path 0.0s ease-in; /* Smooth transition */
  }


  .image-container {
    position: relative; /* Ensure the image container is the positioning reference for the text */
    width: 100%;
    height: 100%;
    cursor: none;
    z-index: 1; /* Keep it below the text overlay */
  }
  
  .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    cursor: none;
  }
  
  .overlay-text {
    position: absolute;
    top: 50%; /* Center text vertically */
    left: 50%; /* Center text horizontally */
    transform: translate(-50%, -50%); /* Center text based on its own dimensions */
    z-index: 3; /* Ensure the text stays on top */
    background-color: rgb(170, 170, 170);
    padding: 20px;
    max-width: 80%; /* Limit the width of the background */
  }

  .image-gallery-mobile{
    display: none;
    height: 1000px;
  }

  .mobile-background{
    display: none;
  }

  .overlay-text-mobile{
    display: none;
  }
  
  



/* Media query for large screens */
@media (min-width: 931px), (max-width: 930px) and (orientation: landscape) {

  body {
    padding-top: 60px; /* This should match your navbar height */
  }

  /* Hide the hamburger button on large screens */
  .menu-toggle {
      display: none;
  }

  /* Display all menu items normally on large screens */
  .menu li {
      display: block;
  }

  /* Always show the dropdown menu on large screens */
  #dropdown-menu {
      display: block;
  }

  .menu-action {
    display: none;
}
}

/* Media query for smaller screens (max-width: 930px) */
@media only screen and (max-width: 930px) and (orientation: portrait) {

  
  .container {
    display: flex;
    flex-direction: column; /* Stack content and sidebar vertically */
    width: calc(100% - 40px);
    margin-left: 20px;
    margin-right: 20px;
    height: 1000vh;
    box-sizing: border-box;
    overflow-y: auto;
  }

  

  /* NAVBAR */
  .navbar {
    width: calc(100%);
    position: fixed;
    height: auto;
    order: -1;
    padding-top: 0px;
    margin-top: 0px;
    background-color: rgb(170, 170, 170);
    z-index: 4;
  }
  .navbar ul {
  margin-top: 0px;
  background-color: rgb(170, 170, 170);
  }
  .top-background{
    margin: 0px 20px 0px 20px;
    padding: 0px;
    height: 20px;
    background-color: rgb(170, 170, 170);
  }

  .menu li, #dropdown-menu li {
    display: block;
    cursor: pointer;
    padding: 2px 2px 2px 5px; 
  }

  #menu1{
    margin: 0px 20px 0px 20px;
    padding-left: 5px;
  }

  .menu-actions {
    display: flex;  /* Ensure buttons and menu toggle are visible */
    background-color: rgb(170, 170, 170);
  }

  .menu-action{
    padding: 2px 2px 2px 4px;
    margin: 0px;
  }

    /* HAMBURGERMENU */
    .menu li:nth-child(n+2) {
      display: none;
  }

  /* Adjust the positioning of the hamburger button */
  .menu-toggle {
    display: block;
    width: 100%;
    text-align: left;
    padding: 2px 2px 2px 5px;
    margin: 10px 20px 0px 0px;
    margin: 0px;
  }

  /* Show the dropdown menu when the .show class is toggled */
  #dropdown-menu.show {
      display: block;
      max-height: 500px; /* Set a max-height that's enough to fit the dropdown content */
      opacity: 1;

      
  }

  /* Ensure the dropdown menu appears below the hamburger button */
  #dropdown-menu {
    margin: 0px 20px 0px 20px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 1s ease,
  }

  /* When the dropdown is open, push content and sidebar down */
  body.dropdown-open .content, body.dropdown-open .sidebar {
  margin-top: 300px; /* Adjust this value based on the height of the dropdown */

  }


  /* SIDEBAR */

  .sidebar {
    position: fixed;  /* Make sidebar fixed at the bottom */
    height: 100px;
    margin-top: 745px;
    width: 100%; /* Full width of the screen */
    background-color: rgb(170, 170, 170); /* Change background color as needed */
    z-index: 0; /* Make sure it's above other content */
    order: 2;
    padding: 20px;
    text-align: center;
    display: none;
  }
  
  .sidebar-grid{
    display: grid;

  }


  /* MAIN CONTENT */
  .content {
    height: 200px;
    width: 100%;
    margin: 0px 0px 0px 0px; /* Remove margin to ensure it's flush */
    text-align: center; /* Center align the text inside the content */
    display: flex;
    box-sizing: border-box; /* Ensure padding doesn't break layout */
    flex-grow: 1;
  }

  /* Image gallery setup for small screens */
  .image-gallery {
    display: flex;
    flex-direction: column;
    height: 100vh;           /* Volle Höhe des Viewports */
    width: 100%;
    box-sizing: border-box;  /* Damit Padding/Margins in der Höhe berücksichtigt werden */
    padding-bottom: 20px;    /* 20px unten freilassen */
    margin-bottom: 20px;
    cursor: pointer;
  }

  .image-container {
    flex: 1;                 /* Container füllt den verfügbaren Raum */
    width: 100%;
    overflow: hidden;
  }

  .image-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;       /* Bild füllt den Container, überschüssige Teile werden abgeschnitten */
    cursor: pointer;
  }

  .overlay-text {
    width: 100%; /* Reduce max width for small screens */
    padding: 20px;
    font-size: 13px;
    cursor: pointer;
  }
}

  @media only screen and (max-device-width: 930px) and (orientation: landscape) {
    /* Schriftgrößen im Header-Menü anpassen */
    .navbar ul li a {
      font-size: 12px; /* Kleinere Schriftgröße für Querformat */
    }

    .menu-actions{
      padding-bottom: 5px;
      padding-top: 5px;
    }
  
    .menu-action {
      font-size: 12px; /* Kleinere Schriftgröße für Menü-Aktionen */
    }
  
    /* Hamburger Menu Abstände anpassen */
    .menu-toggle {
      font-size: 12px;
    }
  
    /* Dropdown-Menü Größe im Querformat */
    #dropdown-menu li a {
      font-size: 12px; /* Kleinere Schriftgröße für Dropdown-Menü */
      padding-top: 0px;
      padding-bottom: 0px;
    }
  
    /* Sidebar-Schriftgrößen anpassen */
    .sidebar {
      font-size: 12px; /* Kleinere Schriftgröße für Sidebar im Querformat */
    }
  
    .overlay-text {
      font-size: 12px; /* Kleinere Schriftgröße für den Overlay-Text */
    }
    .content{
      overflow-y: auto;}

  }

  @media only screen and (max-width: 930px) and (orientation: landscape) {

    .navbar ul{
      margin-top: 0px;
    }
  
    .sidebar-top{
      margin-top: 20px;
    }
  
    .navbar {
    width: 150px;
    }
  
    .sidebar {
    width: 150px;
    }
  
    .content {
      margin-left: 160px; /* Leave space for the navbar */
      margin-right: 160px; /* Leave space for the sidebar */
    }
  
    .menu li, #dropdown-menu li {
      padding: 0px 0px 0px 10px;
    }
  
    .image-gallery img {
      margin-top: 5px;
    }
  
    .image-gallery{
    gap: 10px;
    }
  
    .sidebar-bottom{
      display: grid;
      margin-bottom: 20px;
    }

  }
 


  
