
@font-face {
    font-family: 'RobotoSlab';
    src: url('./RobotoCondensed-VariableFont_wght.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Comforter';
    src: url('./Comforter-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

h1, h2 {
  background: #333;
  color: white;
  text-shadow: 1px 1px 1px #333;
  border-bottom: 1px solid orange;  
  border-radius: 10px;
  text-align: center;
  box-shadow: 10px 0 10px #333;
   }

h1 { font-family: 'Comforter'; font-size: 2.5rem; padding: 20px 0 20px 0; }
:is(h2) { font-family: 'Comforter'; font-size: 2rem;  line-height: 3.0em; }

h3.beds {
    margin-bottom: -60px;
}

body {
  font-family: 'RobotoSlab', sans-serif;
  font-size: 1.2em;
  background-image: url('../img/bg_straight-on.webp');
  background-size: cover;
  background-attachment: fixed;
  margin: 0;
  overflow-x: hidden;
  overflow-y: scroll
}

#wrapper {
  width: 100%;
  }
  
.center {
  text-align: center;
  }
  
.right {
  text-align: right;
  }
  
.flex-hori {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  }
  
/* //////////////////////////////// header /////////////////////////////// */

header {
  margin-top: 0px;
  position: fixed;
  width: 100%;
  line-height: 3.0em;
  background: #333;
  border-bottom: 1px solid orange;
  }  

/* /////////////////////////////// Navigation ///////////////////////// */

.FB-icon {
  margin-top: 15px;
  background: url('../img/FB_icon.png') no-repeat center center;
  background-size: contain;
  width: 30px;
  height: 30px;
  display: inline-block;
  cursor: pointer;
}

.FB-icon:hover {
  background: url('../img/FB_icon_hell.png') no-repeat center center;
  background-size: contain;
  width: 30px;
  height: 30px;
  display: inline-block;
  }

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

nav ul li {
    position: relative;
}

nav ul li a {
    font-weight: bold;
    display: block;
    padding: 10px 20px;
    text-decoration: none;
    color: white;
}

nav ul li:hover > a,
nav ul li a.active {
    color: orange;
}

nav ul li .dropdown {
    display: none;
    position: absolute;
    top: 100%; /* Unterhalb des Hauptmenüs platzieren */
    left: 0;
    background-color: lightgrey;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    min-width: 200px;
    padding: 0;
    z-index: 1;
}

nav ul li:hover .dropdown {
    display: block; /* Zeigt das Dropdown bei Hover an */
    animation: slideDown 0.3s ease-in-out; /* Sanftes Öffnen */
}

nav ul li .dropdown li {
    width: 100%;
}

nav ul li .dropdown li a {
    color: #333;
    text-decoration: none;
    display: block;
    width: 200px;
}

nav ul li .dropdown li a:hover {
    background-color: orange;
    color: #fff;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
  
/* //////////////////////////////// main /////////////////////////////////// */
  
main {
  width: 1400px;
  margin: 30px auto 30px auto;
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 10px;
  }

.rand {
  border: 30px solid #333;
  border-radius: 10px;
  box-shadow: 10px 10px 10px #aaa;
  }

.innen {
  padding: 40px;
  }
  
.startbild {
  width: 40vw;
  }
  
a.gross {
  padding: 20px;
  display: inline;
  font-size: 2.0em;
  line-height: 3.0em;
  text-decoration: none;
  background: skyblue;
  color: white;
  border-radius: 15px;
  transition: 0.3s;
  }
  
a.gross:hover {
  background: orange;
  }
  
.BildCaption {
  text-align: center;
  }
  
  
/* /////////////////// FOTOGALERIEN ///////////////////////// */

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    max-width: 1000px;
    margin: 20px auto;
    padding: 10px;
}

.thumbnail {
    position: relative;
    display: block;
    width: 150px;
    height: 150px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail:hover {
    transform: scale(1.05);
}

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8); /* Abgedunkelter Hintergrund */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.visible {
    visibility: visible;
    opacity: 1;
}

.lightbox img {
    max-width: 90%;
    max-height: 80%;
    border-radius: 16px; /* Abgerundete Ecken */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5); /* Leichte Schatten für Tiefe */
    background: white; /* Weißer Hintergrund */
    padding: 20px; /* Abstand zwischen Bild und Hintergrund */
    transition: opacity 0.3s ease-in-out; /* Sanfter Übergang */
    opacity: 0; /* Anfangszustand: unsichtbar */
}

.lightbox .close,
.lightbox .prev,
.lightbox .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: none;
    color: black;
    font-size: 2rem;
    padding: 10px;
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1001;
}

.lightbox .close {
    top: 10%;
    right: 10%;
    transform: translateY(0);
}

.lightbox .prev {
    left: 5%;
}

.lightbox .next {
    right: 5%;
}

.caption {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.2rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.6); /* Halbtransparenter Hintergrund */
    padding: 10px 20px;
    border-radius: 8px;
    max-width: 80%;
    word-wrap: break-word;
}

/* ////////////////////////////// VIDEO ////////////////////////////// */

video {
    margin-top: 0;
    margin-left: auto;
    margin-right: auto;
    padding: 0; 
    border: none;
    display: block;
}


