:root {
  --accent: #5a3e2b;   /* Akzentfarbe für Buttons, Links etc. */
  --text: #333333;     /* Haupttextfarbe */
  --font-primary: 'Montserrat', sans-serif;
  --font-secondary: 'Merriweather', serif;

}

.hidden {
  display: none !important;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-y: scroll;
  font-family: var(--font-secondary);
  background: url("docs/assets/images/Leaves.jpg");
  color: var(--text);
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

.wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
}
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255, 255, 255, 0.6); /* 0.6 = Deckkraft, anpassbar */
  z-index: -1;
}

header {
  padding: 2rem;
  text-align: center;
  color: #5a3e2b;
  background: linear-gradient(135deg, #fce8d5 0%, #f9c27d 100%);
  border-bottom: 2px solid #e9b87a;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  font-family: var(--font-primary);
}

header h1 {
  margin: 0;
  font-size: 2.2rem;
}

header p {
  font-size: 1.1rem;
  margin-top: 0.5rem;
  font-style: italic;
}
/*----------------------------NAVBAR----------------------------------*/
nav {
  position: sticky;
  top: 0px; /* Höhe des Headers */
  z-index: 999;
  background: url("docs/assets/images/Background.png");
  background-size: cover;

  padding: 0.5rem;
  text-align: center;
  border-bottom: 1px solid #ddd;
}

nav button {
  margin: 0 1.5rem;
  padding: 0.6rem 1.4rem;
  border: none;
  background: linear-gradient(
    135deg,
    rgba(255, 240, 220, 0.5),
    rgba(249, 194, 125, 0.6)
  );
  color: var(--accent);
  font-size: 1.2rem;
  font-family: var(--font-primary);
  border-radius: 16px;
  backdrop-filter: blur(5px) saturate(1.1);
  -webkit-backdrop-filter: blur(5px) saturate(1.1);
  box-shadow: 3px 4px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

nav button.active {
  background-color: #ffffff33;
  border-bottom: 1px solid rgb(145, 110, 16);
  font-weight: bold;
}

nav button:hover {
  transform: translateY(-2px);
  background: linear-gradient(
    135deg,
    rgba(255, 225, 190, 0.7),
    rgba(249, 194, 125, 0.9)
  );
  box-shadow: 5px 6px 14px rgba(0, 0, 0, 0.1);
  color: #a55e2f;
}
/*MAIN*/
main {
  padding: 2rem;
  text-align: center;
}

footer {
  background: #eee;
  padding: 1rem;
  text-align: center;
  font-size: 0.9rem;
  color: #666;
}
/*---------------------GALLERY-------------------------*/
.gallery {
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(400px, 1fr)
  ); /* vorher: 220px */
  gap: 2.5rem;
  margin-top: 2rem;
  justify-items: stretch; /* optional: zentriert die Karten */
}

.gallery-item {
  position: relative;
  z-index: 1;
  padding: 0.2rem;
  border-radius: 12x;
  box-shadow: 0 2px 10px rgba(228, 216, 106, 0.151);
  transition: transform 0.5s ease;
  text-align: center;
  overflow: hidden; /* Für abgerundete Ecken */
  background-clip: padding-box;
  font-family: var(--font-primary);
}

.gallery-item:hover {
  transform: translateY(-15px);
}

.gallery-item img {
  margin-bottom: 2px;
  position: relative;
  z-index: 1;
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.2));
  transition: transform 0.5s ease, z-index 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.7);
  z-index: 3;
}

.gallery-item:hover .info {
  opacity: 0;
  pointer-events: none;
}

.gallery-item .info {
  position: relative;
  z-index: 2;
  margin-top: 0.8rem;
  font-size: 1.2rem;
  color: #ffffff;
  font-style: italic;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
  transition: opacity 0.3s ease;
}
/*---------------------------LIGHTBOX-----------------------------*/
#lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  z-index: 9999;
}

.lightbox-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 90vw;
  max-height: 90vh;
  gap: 0.8rem;
}

#lightbox-img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 0 30px #000;
}

.close-icon {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 36px;
  color: white;
  cursor: pointer;
  z-index: 10000;
  font-weight: bold;
}

.close-btn {
  padding: 0.8rem 1.2rem;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  border: 1px solid #ccc;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  font-family: var(--font-primary);
  transition: background 0.3s ease;
}

.close-btn:hover {
  background: rgba(245, 245, 245, 1);
}

.lightbox-controls {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem; /* Kleiner Abstand zwischen Counter und Button */
}

/*--------------------------------CONTACT--------------------------------*/
.contact-section {
  padding: 4rem 1rem;
  display: flex;
  justify-content: center;
}

.contact-box {
  background: rgba(255, 255, 255, 0.8);
  padding: 2rem 2.5rem;
  border-radius: 12px;
  max-width: 500px;
  width: 100%;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.contact-box h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #5a3e2b;
}

.contact-box p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: #333;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.contact-link {
  font-size: 1.2rem;
  color: #5a3e2b;
  background: linear-gradient(
    135deg,
    rgba(255, 240, 220, 0.5),
    rgba(249, 194, 125, 0.6)
  );
  padding: 0.6rem 1.2rem;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.contact-link:hover {
  background: rgba(249, 194, 125, 0.9);
  color: #fff;
}

/*---------------------------ABOUT*--------------------------------*/

.about-section {
  padding: 3rem 1rem;
  display: flex;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
}

.about-container {
  background-color: rgba(255, 255, 255, 0.85);
  padding: 2rem;
  border-radius: 12px;
  max-width: 900px;
  margin: 2rem auto; /* <-- zentriert horizontal */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.about-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
}

.portrait {
  width: 100%;
  max-width: 350px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.text-box {
  flex: 1;
}

.text-box h2 {
  margin-top: 0;
  font-size: 2rem;
  font-family: var(--font-primary);
}

.text-box p {
  margin: 1rem 0;
  line-height: 1.6;
  font-size: 1.1.rem;
}

blockquote {
  margin: 1.5rem 0;
  font-style: italic;
  padding-left: 1rem;
  border-left: 3px solid #333;
  color: #555;
}

.kontakt-hinweis {
  margin-top: 2rem;
  font-weight: bold;
}

.kontakt-hinweis a {
  color: #000;
  text-decoration: underline;
}

.behind-the-scenes {
  margin-top: 3rem;
}

.behind-the-scenes h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.behind-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.behind-gallery img {
  width: 100%;
  max-width: 48%;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}


/*--------------------------MEDIA-----------------------------------*/
@media (max-width: 768px) {
  nav button {
    display: block;
    margin: 0.5rem auto;
    width: 80%;
    font-size: 1rem;
  }

  nav button.active {
  background-color: #ffffff33;
  border-bottom: 1px solid rgb(145, 110, 16);
  font-weight: bold;
  transform: translateY(-2px);
  background: linear-gradient(
    135deg,
    rgba(255, 225, 190, 0.7),
    rgba(249, 194, 125, 0.9)
  );
  box-shadow: 5px 6px 14px rgba(0, 0, 0, 0.1);
  color: #a55e2f;
}

  .gallery {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1rem;
  }

  .gallery-item img {
    height: auto;
    max-height: 300px;
  }

  body {
    overflow-x: hidden;
  }
  .lightbox-content {
    width: 90%;
    align-items: center;
  }
  #lightbox-img {
    max-height: 60vh;
  }
  .close-btn {
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
    max-width: 80%;
    text-align: center;
    display: block;
    margin: 0 auto;
  }

  .lightbox-counter {
    font-size: 0.9rem;
  }
.about-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.portrait {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 1rem;
}

  .behind-gallery img {
    max-width: 100%;
  }
   .about-content {
    flex-direction: row;
    gap: 2rem;
  }

  .text-box {
    flex: 1;
  }

  .portrait {
    max-width: 300px;
  }
}


@media (hover: none) {
  .gallery-item img:hover {
    transform: none;
    z-index: 1;
  }

  .gallery-item img:hover + .info {
    opacity: 1;
  }
}
