/* -------------------- */
/* RESET */
/* -------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* -------------------- */
/* BASE STYLES */
/* -------------------- */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', sans-serif;
  background:
    linear-gradient(rgba(255,255,255,0.50), rgba(255,255,255,0.50)),
    url('../images/background.webp') no-repeat center center fixed;
  background-size: cover;
  color: #222;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* -------------------- */
/* LINKS */
a {
  color: #e57200;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s;
}

a:hover,
a:focus {
  color: #e57200;
}

/* -------------------- */
/* HEADER / NAVIGATION */
header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 40px 0;
  background: transparent;
  transition: 0.3s ease;
  z-index: 1000;
}

header.scrolled {
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
}

nav a {
  color: #1a1a1a;
  position: relative;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  border-bottom: 1px dashed #1a1a1a;
  transition: width 0.4s ease;
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

/* -------------------- */
/* LOGO */
.logo img {
  max-height: 34px;
  height: auto;
  border-radius: 0;
  box-shadow: none;
}

/* -------------------- */
/* HERO */
.hero {
  padding-top: 200px;
  padding-bottom: 80px;
}

.subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 4vw, 4.5rem);
  font-weight: 200;
  font-style: italic;
  text-align: center;
  max-width: 1100px;
  margin: 0 auto 57px auto;
  line-height: 1.11;
  color: rgba(100, 91, 64, 0.72);
  text-shadow:
    1px 1px 2px rgba(0,0,0,0.05),
    3px 3px 8px rgba(0,0,0,0.03);
}

/* -------------------- */
/* SECTIONS */
.section {
  margin: 0 auto;
}

.section.text-section {
  padding-top: 120px;
  padding-bottom: 55px;
}

.section.grid-4-container {
  padding-top: 20px;
  padding-bottom: 20px;
}

/* -------------------- */
/* HEADINGS */
h1 {
  font-family: 'Manrope', sans-serif;
  font-size: 3.2rem;
  font-weight: 600;
  margin-bottom: 10px;
}

h2, h3 {
  font-family: 'Manrope', sans-serif;
  margin-top: -8px;
  line-height: 2;
  color: rgba(100, 91, 64, 0.81);
}

h4 {
  font-family: 'Manrope', sans-serif;
  margin-top: -8px;
  line-height: 2;
  color: #e57200;
}

/* -------------------- */
/* GRIDS */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px,1fr));
  gap: 40px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 40px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 20px;
}

.grid-gallery-section {
  padding-top: 120px; /* gleiche Höhe wie Textfelder auf anderen Seiten */
}

.grid-gallery {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 20px;
}

.grid-gallery img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.grid-gallery img:hover {
  transform: scale(1.03);
}

/* -------------------- */
/* BOX DESIGN */
.stitch-box {
  position: relative;
  padding: 30px;
  border: 1px dashed rgba(0,0,0,0.21);
  border-radius: 22px;
  transition: transform 0.25s ease;
  box-shadow:
    2px 2px 4px rgba(0,0,0,0.03),
    8px 8px 28px rgba(0,0,0,0.04);
  transform: translateZ(0);
}

.stitch-box::before {
  content: "";
  position: absolute;
  inset: 7px;
  background: rgba(126,94,0,0.03);
  border-radius: 15px;
  z-index: -1;
}

.stitch-box:hover {
  transform: translateY(-4px);
}

/* -------------------- */
/* IMAGES */
img:not(.logo img) {
  width: 100%;
  display: block;
  border-radius: 11px;
  transition: transform 0.4s ease;
  box-shadow:
    0 4px 12px rgba(0,0,0,0.06),
    0 14px 35px rgba(0,0,0,0.05);
}

img:hover:not(.logo img) {
  transform: scale(1.03);
}

/* -------------------- */
/* LIGHTBOX */
.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,0.8);
  z-index: 2000;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox img {
  max-width: 80%;
  max-height: 80%;
  cursor: pointer;
  border-radius: 12px;
  box-shadow:
    0 4px 12px rgba(0,0,0,0.06),
    0 14px 35px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.lightbox img:hover {
  transform: scale(1.03);
}

/* -------------------- */
/* Close-Kreuz */
.lightbox .close {
  top: 20px;
  right: 20px;
  font-size: 2.5rem;
  position: absolute;
  width: 50px;
  height: 50px;
  line-height: 50px;
  text-align: center;
  font-weight: 300;
  color: #fff;
  background: rgba(0,0,0,0.3);
  border-radius: 50%;
  cursor: pointer;
  user-select: none;
  z-index: 2100;
  transition: background 0.2s, transform 0.2s;
}

.lightbox .close:hover {
  background: rgba(0,0,0,0.6);
  transform: scale(1.1); /* bleibt an Position */
}

/* -------------------- */
/* Pfeile links/rechts */
.lightbox .prev,
.lightbox .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  line-height: 50px;
  text-align: center;
  font-size: 2.5rem;
  font-weight: 300;
  color: #fff;
  background: rgba(0,0,0,0.3);
  border-radius: 50%;
  cursor: pointer;
  user-select: none;
  z-index: 2100;
  transition: background 0.2s, transform 0.2s;
}

.lightbox .prev:hover,
.lightbox .next:hover {
  background: rgba(0,0,0,0.6);
  transform: translateY(-50%) scale(1.1); /* bleibt vertikal zentriert */
}

.lightbox .prev { left: 20px; }
.lightbox .next { right: 20px; }

/* -------------------- */
/* FOOTER */
.seo-text {
  font-size: 0.9rem;
  color: rgba(0,0,0,0.45);
  text-align: center;
  padding: 0 20px;
  margin-top: 40px;
}

footer {
  padding: 30px 0;
  text-align: center;
  font-size: 0.9rem;
  color: #5f5f5f;
}

.datenschutz-mini {
  font-size: 0.65rem;
  color: #777;
  line-height: 1.3;
  max-width: 600px;       /* optional: falls du die Breite begrenzen willst */
  margin: 0.5rem 0 0 0;   /* nur Abstand oben, sonst keine Einrückung */
  padding: 0;              /* kein zusätzliches Padding */
  text-align: left;        /* linksbündig */
}


/* -------------------- */
/* MOBILE */
@media (max-width: 768px) {

  .hero {
    padding-top: 220px;  /* 40px weniger */
    padding-bottom: 85px; /* 35px weniger */
  }

  .subtitle {
    font-size: 1.8rem;
    padding: 0 20px;
  }

  .container {
    width: 92%;
  }

  .nav {
    flex-direction: column;
    align-items: center;
  }

  header {
    padding: 25px 0;
  }

  nav ul {
    justify-content: center;
    gap: 18px;
  }

  .logo {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 25px;
  }

  .logo img {
    max-height: 34px;
  }

  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .grid-4, .grid-gallery {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }

  .section.text-section {
    padding-top: 140px; /* gleiche Höhe wie Galerie */
    padding-bottom: 25px;
  }

  .grid-gallery-section {
    padding-top: 140px;
  }

  /* Lightbox mobil */
  .lightbox img {
    max-width: 90%;
    max-height: 70%;
  }

  .lightbox .close {
    top: 10px; 
    right: 10px;
    width: 40px; 
    height: 40px; 
    line-height: 40px;
    font-size: 2rem;
  }

  .lightbox .prev,
  .lightbox .next {
    width: 40px;
    height: 40px;
    line-height: 40px;
    font-size: 2rem;
  }

  .lightbox .prev { left: 10px; }
  .lightbox .next { right: 10px; }
}