:root {
  --color-primary: #be9fe1; /* Akzent */
  --color-primary-light: #c9b6e4; /* Hover & Sekundär */
  --color-bg-soft: #e1ccec; /* Sanfte Sektionen */
  --color-bg-light: #f1f1f6; /* Gesamt Hintergrund */
  --color-text: #1a1027; /* Haupttext */
  --color-text-muted: rgba(26, 16, 39, 0.65);
  --nav-height: 72px;
}

/* Reset + base */
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto,
    "Helvetica Neue", Arial;
  background: var(--color-bg-light);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

/* NAVBAR */

/* Desktop Navbar */
/* Basis Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9998;
  background: linear-gradient(
    180deg,
    rgba(201, 182, 228, 0.9),
    rgba(225, 204, 236, 0.8)
  );
  border-bottom: 1px solid rgba(190, 159, 225, 0.3);
  backdrop-filter: blur(6px);
}

.nav-inner {
  width: 100%;
  max-width: var(--max-width);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.nav-links a {
  color: var(--color-text);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
}

.nav-links a.active {
  color: #fff;
  background: var(--color-primary-light);
}

/* Burger Button */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--color-text);
  border-radius: 2px;
}

/* Mobile */
@media (max-width: 900px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 72px;
    right: 0;
    width: 220px;
    flex-direction: column;
    background: linear-gradient(
      180deg,
      rgba(201, 182, 228, 0.95),
      rgba(225, 204, 236, 0.95)
    );
    border-left: 1px solid rgba(190, 159, 225, 0.3);
    border-bottom-left-radius: 12px;
    padding: 20px;
    gap: 12px;
    box-shadow: -4px 4px 20px rgba(0, 0, 0, 0.1);
  }
  .nav-links.show {
    display: flex;
  }
  .menu-toggle {
    display: flex;
  }
}
.brand {
  font-weight: 800;
  letter-spacing: 0.6px;
}
.brand small {
  display: block;
  font-weight: 600;
  color: var(--muted);
  font-size: 12px;
}

/* Main container uses scroll-snap so each section snaps into place */
main {
  /* scroll-snap-type: y mandatory;
  height: 100vh;
  overflow-y: scroll; */
  scroll-behavior: smooth;
  height: auto;
  overflow: visible;
  scroll-snap-type: none;
}
section {
  min-height: calc(100vh - var(--nav-height));
  padding: calc(var(--nav-height) + 48px) 24px 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  scroll-snap-align: start;
  position: relative;
  /* scroll-margin-top: var(--nav-height, 72px); */
}

/* Section base visual */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
}
.cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}
h1,
h2 {
  margin: 0 0 12px 0;
}
p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.6;
}

/* HERO */
#hero {
  padding: 0;
  margin-top: var(--nav-height);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    180deg,
    var(--color-bg-soft) 0%,
    var(--color-primary-light) 100%
  );
}
.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.6) saturate(1.05);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr; /* zwei Spalten: links Button, rechts Text */
  align-items: right;
  height: 100%;
  padding: 48px;
}
.hero-title {
  grid-column: 2; /* rechte Spalte */
  grid-row: 1;
  justify-self: end; /* rechtsbündig */
  align-self: start; /* oben in der Spalte */
  color: #ffffff;
  font-size: clamp(28px, 6vw, 56px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -1px;
  text-align: right; /* Text rechtsbündig */
}

.hero-sub {
  color: var(--muted);
  margin-top: 12px;
  font-size: clamp(14px, 2.2vw, 18px);
}

/* ABOUT */
#about {
  background: linear-gradient(
    180deg,
    var(--color-bg-light) 0%,
    var(--color-bg-soft) 100%
  );
}
.card {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.03),
    rgba(255, 255, 255, 0.01)
  );
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 10px 40px rgba(2, 6, 23, 0.6);
  backdrop-filter: blur(6px);
}

/* GALLERY */
#gallery-1 {
  background: linear-gradient(
    180deg,
    var(--color-primary-light) 0%,
    var(--color-bg-soft) 100%
  );
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.gallery-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

#gallery-2 {
  background: linear-gradient(
    180deg,
    var(--color-bg-soft) 0%,
    var(--color-primary-light) 100%
  );
}

.gallery-grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* 5 Bilder nebeneinander */
  gap: 18px;
}

/* Wrapper sorgt für runde Ecken und Begrenzung */
.img-wrapper {
  width: 100%;
  height: 400px; /* einheitliche Höhe */
  border-radius: 12px; /* abgerundete Ecken */
  overflow: hidden; /* schneidet Bild an den Ecken ab */
  position: relative;
}

/* Bild füllt das Feld komplett */
.img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Bild füllt Feld, bleibt proportional */
  display: block;
  transition: transform 0.4s ease; /* optional für Hover-Zoom */
}

/* Optional: Hover-Effekt */
.img-wrapper:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transform: translateY(-4px);
}

.img-wrapper:hover img {
  transform: scale(1.08); /* sanfter Zoom beim Hover */
}

/* Responsive Anpassung */
@media (max-width: 1200px) {
  .gallery-grid-5 {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 768px) {
  .gallery-grid-5 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 500px) {
  .gallery-grid-5 {
    grid-template-columns: 1fr;
  }
}

/* Mobile-Optimierung */
@media (max-width: 1200px) {
  .gallery-grid-5 {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 768px) {
  .gallery-grid-5 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 500px) {
  .gallery-grid-5 {
    grid-template-columns: 1fr;
  }
}

/* CONTACT */
/* Kontakt Section -> volle Höhe + Card mittig */
#contact {
  width: 100%;
  min-height: 100vh; /* nimmt die volle Bildschirmhöhe ein */
  display: flex;
  align-items: center; /* vertikal mittig */
  justify-content: center; /* horizontal mittig */
  background: linear-gradient(
    180deg,
    var(--color-bg-light) 0%,
    var(--color-bg-soft) 100%
  );
  padding: 40px;
  box-sizing: border-box;
}

/* Nur die Card im Kontakt-Bereich */
#contact .card {
  max-width: 900px;
  width: 100%;
  background: #fff;
  color: var(--color-text);
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 10px 40px rgba(2, 6, 23, 0.15);
  text-align: left;
}

/* Bild nur in der Kontakt-Card */
#contact .contact-image {
  width: 100%;
  margin-top: 20px;
  border-radius: 12px;
  object-fit: cover;
  max-height: 300px;
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  filter: blur(6px);
  transition: opacity 0.9s cubic-bezier(0.2, 0.9, 0.3, 1),
    transform 0.9s cubic-bezier(0.2, 0.9, 0.3, 1), filter 0.9s;
}
.reveal.in-view {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

/* small screens */
@media (max-width: 900px) {
  .cols {
    grid-template-columns: 1fr;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-card {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }
  .brand {
    font-size: 16px;
  }
}

/* active nav indicator (progress bar under link) */
.nav-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #7dd3fc);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.3s;
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    transition: none;
  }
  * {
    scroll-behavior: auto;
  }
}

/* Footer */
.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 48px;
  background: rgba(225, 204, 236, 0.9); /* dezenter Farbverlauf oder solid */
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center; /* zentriert Text horizontal */
  z-index: 9999;
}

.site-footer p {
  margin: 0;
  font-size: 14px;
  color: var(--color-text); /* Haupttextfarbe */
  text-align: center; /* zentriert auch auf mobilen Geräten */
}

.site-footer a {
  color: var(--color-primary);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* Platz für Footer reservieren, damit Content nicht drunter verschwindet */
body::after {
  content: "";
  display: block;
  height: 30px; /* gleiche Höhe wie Footer */
}

/* Impressum */
#impressum .card {
  color: var(--color-text); /* passt Schriftfarbe an Haupttext an */
}

#impressum .card a {
  color: var(--color-primary);
  text-decoration: none;
}

#impressum .card a:hover {
  text-decoration: underline;
}

@media (min-width: 900px) {
  main {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
  }
  section {
    scroll-snap-align: start;
  }
}
