/* GRUNDEINSTELLUNGEN */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
  font-family: 'Work Sans', Arial, sans-serif;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0; 
  padding: 0;
}

/* LIST STYLES */
ul, ol {
  list-style: disc outside;
  padding-left: 1.2rem;
}

/* VARIABLEN */
:root {
  --main-color: #134f5c;     /* Schmuckfarbe */
  --light-gray: #f2f2f2;
  --border-gray: #ddd;
  --text-color: #333;
}

/* BODY */
body {
  background-color: #fff;
  color: var(--text-color);
  line-height: 1.6;
}

/* STICKY HEADER + NAVIGATION */
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1290px;
  margin: 0 auto;
  padding: 0.75rem 1rem;
}
.logo img {
  max-height: 50px;
  padding-left: 0.5rem;
}
.menu-toggle {
  display: none; /* Wird unter 1024px via Media Query angezeigt */
  font-size: 1.4rem;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-list {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: color 0.3s;
}
.nav-list a:hover,
.nav-list a:focus {
  color: var(--main-color);
  font-weight: 700;
}
.Smooth-Menu.active {
  border-bottom: 2px solid var(--main-color);
}

/* Social-Media-Bereich neben der Navigation */
.social-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.social-links img {
  width: 24px;
  height: auto;
  display: block;
}

/* HERO-BEREICH */
.hero-section {
  width: 100%;
  margin: 0 auto; 
}
.hero-image-wrapper {
  position: relative;
  overflow: hidden;
  max-width: 1290px;
  margin: 0 auto;
}
.hero-image {
  display: block;
  width: 100%;
  height: auto;
}
.hero-overlay-text {
  position: absolute;
  left: 40%; /* statt 50%, damit Titel in einer Zeile bleibt */
  top: 75%;
  transform: translate(-36%, -50%);
  color: #fff;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.hero-overlay-text h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.hero-overlay-text h2 {
  font-weight: 500;
  margin-bottom: 0;
}

/* MAX-WIDTH-CONTAINER NACH DEM HERO */
.main-container {
  max-width: 1290px;
  margin: 0 auto;
  padding: 0 1.2rem;
}

/* OPTIONAL: Nur eine Trennlinie nach dem Hero
.section-divider {
  display: block;
  width: 100%;
  height: 1px;
  background-color: var(--border-gray);
  border: none;
}
*/

/* BEISPIELSTILE FÜR SEKTIONS-HEADINGS ODER TEXTE */
section {
  padding: 2rem 0;
  /* border-bottom: 1px solid var(--border-gray); */
}
section h2 {
  margin-bottom: 1rem;
}

/* GALLERY */
.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.gallery-item {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3; /* Beispiel: 2:3-Seitenverhältnis */
  overflow: hidden;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
  cursor: pointer;
}
.gallery-item:hover img {
  transform: scale(1.03);
}
.gallery-item::after {
  content: attr(data-caption);
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  background: rgba(51,51,51,0.6);
  color: #fff;
  padding: 0.5rem;
  opacity: 0;
  transition: opacity 0.3s;
}
.gallery-item:hover::after {
  opacity: 1;
}

/* LIGHTBOX (Overlays) */
.lightbox {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
}
.lightbox-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0,0,0,0.7);
}
.lightbox-content {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: none;
  border: none;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  z-index: 1;
}
.lightbox-controls {
  margin-top: 1rem;
  display: flex;
  gap: 1rem;
}
.lightbox-prev,
.lightbox-next {
  background: none;
  border: 1px solid #fff;
  color: #fff;
  font-size: 1.5rem;
  padding: 0.5rem;
  cursor: pointer;
  transition: background-color 0.3s;
}
.lightbox-prev:hover,
.lightbox-next:hover {
  background-color: rgba(255,255,255,0.2);
}
.lightbox.open {
  display: block;
}

/* MEDIA QUERY FÜR KLEINE VIEWPORTS (VOLL-BILD LIGHTBOX) */
@media (max-width: 768px) {
  .lightbox-content {
    top: 0; 
    left: 0;
    transform: none;
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    justify-content: center;
    align-items: center;
  }
  .lightbox-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
  }
  .lightbox-close {
    top: 1rem;
    right: 1rem;
  }
  .lightbox-controls {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
  }
}

/* CTA-BEREICH */
.cta-section {
  text-align: center;
  background-color: var(--light-gray);
}
.cta-section p {
  margin-bottom: 1rem;
}
.btn-primary {
  display: inline-block;
  background-color: var(--main-color);
  color: #fff;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s;
}
.btn-primary:hover {
  background-color: #0e3f4b;
}

/* FOOTER */
.site-footer {
  background-color: #fafafa;
  border-top: 1px solid var(--border-gray);
  margin: 0;
  padding: 0.5rem 0;
}

/* 3-spaltiger Footer */
.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  align-items: start;
}

/* Optional: Spalten können einzeln gestylt werden
.footer-column {
   z.B. individuellen Padding / Margin
} */

.footer-fullwidth {
  width: 100%;
  background-color: #fafafa;
  text-align: center;
  margin-top: 0.5rem;
  padding: 0.5rem 0;
}
.footer-fullwidth p {
  margin: 0;
}

/* Footer-Navigation als vertikale Liste */
.footer-nav ul {
  display: flex;
  flex-direction: column;
  list-style: none;
  padding: 0;
}
.footer-nav a {
  text-transform: uppercase;
  color: var(--text-color);
  text-decoration: none;
}
.footer-nav a:hover {
  font-weight: 700;
  color: var(--main-color);
}

/* RESPONSIVE BREAKPOINTS (Mobile-First) */
/* Unter 1024px -> Menü-Button sichtbar, Dropdown-Menü etc. */
@media (max-width: 1023px) {
  .menu-toggle {
    display: block;
  }
  .nav-list {
    position: absolute;
    top: 60px;
    right: 0;
    background-color: #fff;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    /*display: none;     Damit das Menü ausgeblendet ist, bis es mit dem Toggle geöffnet wurde */
    transform: translateX(100%);
    transition: transform 0.3s;
    pointer-events: none;  /* keine Events im zugeklappten Zustand */
    z-index: 900;
  }
  .nav-list.open {
    transform: translateX(0);
    pointer-events: auto; /* Jetzt darf man klicken / wischen */
  }
}

/* Footer & Hero-Schriftgrößen anpassen, Layout etc. */
@media (max-width: 768px) {
  .hero-overlay-text h1 {
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 92%;
  }
  .hero-overlay-text h2 {
    font-size: 0.64rem;
    line-height: 78%;
  }
  .social-links {
    display: none;
  }
  .footer-content {
    grid-template-columns: 1fr; /* 1 Spalte statt 3 */
  }
}

/* Ab 600px: Galerie-Zweispaltig */
@media (min-width: 600px) and (max-width: 1023px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Ab 1024px: Desktop -> 4-spaltige Galerie */
@media (min-width: 1024px) {
  .gallery {
    grid-template-columns: repeat(4, 1fr);
  }
  .hero-overlay-text h1 {
    font-size: 2.5rem;
  }
}
