@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@100..700&display=swap');

body {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  margin: 0;
  background-color: #1f2020;
  color: #F9F6EF;
}

.hero, nav, main {
  max-width: 75ch;
  margin: 0 auto;
  padding-inline: 1em;
}

h1, h2, h3 {
  line-height: .8;
}

p {
  line-height: 1.5;
}

nav {
  position: sticky;
  top: 0;
  left: 0;
  min-height: 3rem;
  background-color: #1f2020d0;
  backdrop-filter: blur(.2em);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  position: -webkit-sticky; /* Safari */
  z-index: 1; /* Sicherstellen, dass das Menü überlagert */
}

.main-menu {
    display: flex;
    flex-wrap: wrap; /* Sicherstellen, dass das Menü bei kleinen Bildschirmen umbricht */
    justify-content: center; /* Zentriert das Menü */
    gap: 1rem;
    list-style: none;
    padding: 0.5em 0;
    margin: 0;
  }
  
  .main-menu li {
    margin: 0;
  }
  
  .main-menu a {
    color: #F9F6EF;
    text-decoration: none;
    font-size: 1.2rem;
  }
  
  .main-menu a:hover {
    color: #5EB0E5;
  }

.nav-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, 
    hsl(0, 100%, 70%), 
    hsl(30, 100%, 70%), 
    hsl(60, 100%, 70%), 
    hsl(90, 100%, 70%), 
    hsl(120, 100%, 70%), 
    hsl(150, 100%, 70%), 
    hsl(180, 100%, 70%), 
    hsl(210, 100%, 70%), 
    hsl(240, 100%, 70%), 
    hsl(270, 100%, 70%), 
    hsl(300, 100%, 70%), 
    hsl(330, 100%, 70%), 
    hsl(360, 100%, 70%)
  );
}

.hero {
  min-height: 20vh;
  display: grid;
  align-content: center;
  text-align: center;
  z-index: 2; /* Sicherstellen, dass der Header überlagert */
  position: relative;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 100;
  color: hsl(290 85% 75%);
}

/* Fotogalerie-Stile */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1em;
  margin-top: 1em;
  z-index: 0; /* Sicherstellen, dass die Galerie nicht überlagert */
}

.gallery img, .gallery video {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease-in-out;
  cursor: pointer;
}

.gallery img:hover, .gallery video:hover {
  transform: scale(1.05);
}

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

.lightbox.hidden {
  opacity: 0;
  visibility: hidden;
}

.lightbox-content {
  max-width: 90%;
  max-height: 80%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem; /* Abstand zur Unterkante des Fensters */
}

.lightbox img, .lightbox video {
  max-width: 100%;
  max-height: 90vh; /* Maximalhöhe für Videos und Bilder */
  object-fit: contain;
}

.lightbox .close {
    position: absolute;
    top: 10%;
    right: 5%;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
}

.lightbox .close:hover {
  color: #ccc;
}

/* Lightbox Navigation Arrows */
.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    user-select: none;
    z-index: 1001;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.arrow.prev {
    left: 5%;
}

.arrow.next {
    right: 5%;
}

.arrow:hover {
    color: #ccc;
}

/* Toggle Box */
.toggle-box {
    display: none;
    margin: 1em 0;
}

.toggle-btn {
    position: relative;
    display: inline-block;
    padding: 0.5em 1em;
    color: rgba(234,110,72,1);
    text-transform: uppercase;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid;
    border-image-source: linear-gradient(45deg, rgba(234,110,72,1) 0%, rgba(188,26,99,1) 100%);
    border-image-slice: 1;
    background: none;
    cursor: pointer;
}

.toggle-btn:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(234,110,72,1) 0%, rgba(188,26,99,1) 100%);
    z-index: -1;
    transition: all 0.3s ease;
    opacity: 0;
}

.toggle-btn:hover {
    color: #fff;
}

.toggle-btn:hover:before {
    opacity: 1;
}

/* Packliste */

.styled-table {
    border-collapse: collapse;
    margin: 0 auto;
    font-size: 0.9em;
    min-width: 400px;
    background-color: #4d4d4d;
    color: #F9F6EF;
}

.styled-table thead tr {
    background-color: #009879;
    color: #ffffff;
    text-align: left;
}

.styled-table th,
.styled-table td {
    padding: 12px 15px;
}

.styled-table tbody tr {
    border-bottom: 1px solid #dddddd;
}

.styled-table tbody tr:nth-of-type(even) {
    background-color: #b9b9b9;
    color: #1f2020;
}

.styled-table tbody tr:nth-of-type(odd) {
    background-color: #4d4d4d;
    color: #F9F6EF;
}

.styled-table tbody tr:last-of-type {
    border-bottom: 2px solid #009879;
}

.styled-table tbody tr.active-row {
    font-weight: bold;
    color: #009879;
}


/* Maps */

.maps {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 25px 0;
}

.map-container {
    width: 100%;
    max-width: 800px;
    margin: 20px 0;
}

.map-container h3 {
    margin-bottom: 10px;
}

.map-container iframe {
    width: 100%;
    height: 400px; /* Passt die Höhe für kleinere Bildschirme an */
}

/* Tipps */

.tipp-content {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80vh; /* Höhe des Inhaltsbereichs */
    text-align: center;
}

.tipp-content p {
    font-size: 1.5rem;
    color: #F9F6EF;
}

/* Mati.html */

.about-me {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 25px 0;
}

.profile-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    flex-wrap: wrap; /* Damit das Layout bei kleinen Bildschirmen umbricht */
    gap: 20px; /* Abstand zwischen Text und Bild */
}

.profile-text {
    max-width: 600px;
    margin: 0 10px;
    text-align: left;
    flex: 1;
}

.profile-image img {
    max-width: 100%;
    height: auto;
    border-radius: 20%;
    flex: 0 0 200px; /* Basisbreite von 200px */
    max-width: 200px;
}


/* Footer */

.footer {
    background-color: #1f2020;
    color: #F9F6EF;
    padding: 20px 0;
    font-family: 'Montserrat', sans-serif;
    max-width: 75ch;
    margin: 0 auto;
    padding-inline: 1em;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 100%;
    padding: 0 20px;
}

.footer-column {
    flex: 1;
    min-width: 200px;
    margin: 10px;
    text-align: left; /* Links ausgerichtete Spalten */
}

.footer-column h3 {
    margin-bottom: 10px;
    font-size: 1.2em;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #F9F6EF;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.footer-column ul li a img {
    width: 24px;
    height: 24px;
    margin-right: 10px;
}

.footer-column ul li a:hover {
    color: #5EB0E5;
}

.visitor-counters {
    margin-top: 20px;
    font-size: 0.9em;
    color: #1f2020; /* Schwach sichtbare Farbe */
}

.visitor-counters p {
    margin: 5px 0;
}





@media (min-width: 768px) {
    .gallery {
        grid-template-columns: repeat(4, 1fr);
    }

    nav {
        display: flex;
        flex-direction: column;
        align-items: center; /* Zentriert das Menü und Submenü */
    }
    
    .main-menu {
        justify-content: space-evenly; /* Verteilt die Elemente gleichmäßig */
    }

    .map-container iframe {
        height: 700px; /* Standardhöhe für größere Bildschirme */
    }
}
