* {
  box-sizing: border-box;
}

body, html {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

header.parallax {
  position: relative;
  min-height: 100vh;
  color: white;
  text-align: center;
  display: flex;
  flex-direction: column; /* wichtige Änderung */
  justify-content: flex-start;
  align-items: center;
  overflow: hidden;
  z-index: 1;
  background-color: #000;
  padding-top: calc(env(safe-area-inset-top) + 6em);
  padding-bottom: 4em; /* etwas Luft für Highlights unten */
}

header.parallax::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-image: url("images/bg.JPG");
  background-color: #000;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  filter: blur(4px) brightness(0.5);
  z-index: -1;
}

.hero-content {
  max-width: 90%;
  margin-bottom: 3em;
}

.hero-content h1 {
  font-size: 3em;
  margin: 0;
  animation: fadeInDown 1s ease-out;
}

.hero-content p {
  font-size: 1.5em;
  animation: fadeInUp 1.2s ease-out;
}

@keyframes fadeInDown {
  from { transform: translateY(-20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeInUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.services {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 4em 2em;
  background:
    linear-gradient(to bottom, #303030 0%, #1e1e1e 100%),
    linear-gradient(to right, rgba(0,0,0,0.2), rgba(0,0,0,0));
  gap: 2em;
  overflow: hidden;
}

.services-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2em;

  max-width: 1200px;
  margin: 0 auto;
}


.services::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("images/haifisch.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.1;
  z-index: 0;

  -webkit-mask-image: linear-gradient(to bottom, transparent, black);
  mask-image: linear-gradient(to bottom, transparent, black);
}

.services > * {
  position: relative;
  z-index: 1;
}

.service-box {
  position: relative;
  background-color: white;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 2em;
  flex: 1 1 30%;
  max-width: 400px;
  min-width: 280px;
  transition: transform 0.3s ease;
  overflow: hidden;
  z-index: 1;
}

.service-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("images/pflanzen-textur.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.5;
  z-index: 0;

  -webkit-mask-image: linear-gradient(to bottom, black, transparent);
  mask-image: linear-gradient(to bottom, black, transparent);
}

.service-box h2,
.service-box p {
  position: relative;
  z-index: 1;
}

/* Spezifische Bilder für jede Box */
.box-pflanzung::before {
  background-image: url("images/pflanzung.jpg");
}

.box-pflege::before {
  background-image: url("images/heckenschere.jpg");
}

.box-wege::before {
  background-image: url("images/weg.jpg");
}

.box-rasen::before {
  background-image: url("images/rasen.jpg");
}

.box-reinigung::before {
  background-image: url("images/haifisch.jpg");
}

.box-baumpflege::before {
  background-image: url("images/baumpflege.jpg");
}

/* Responsive Anpassung */
@media (max-width: 1024px) {
  .service-box {
    flex: 1 1 45%;
  }
}

@media (max-width: 600px) {
  .service-box {
    flex: 1 1 100%;
  }
}

.service-box:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  z-index: 2;
}

.service-box:hover::before {
  opacity: 0.65;
  transition: opacity 0.3s ease;
}


/* === NAVBAR === */

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: #354e33;
  color: white;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.navbar .container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8em 2em;
  flex-wrap: nowrap; /* NEU */
  overflow: hidden;   /* verhindert Umbruch */
  gap: 1em;           /* etwas Abstand */
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.5em;
  font-weight: bold;
}

.logo img {
  height: 40px;
  margin-right: 10px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.5em;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-links li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links li a:hover {
  color: #a5d6a7;
}

.nav-icons {
  display: flex;
  align-items: center;
  gap: 1em;
  flex-wrap: wrap;
}

.icon {
  font-size: 1.2em;
  cursor: pointer;
}

.nav-icons .icon svg {
  stroke: white;
  transition: stroke 0.3s ease;
}

.nav-icons .icon:hover svg {
  stroke: #a5d6a7; /* Das gleiche sanfte Grün wie bei den Text-Links */
}

.cta {
  padding: 0.5em 1em;
  border: 1px solid white;
  border-radius: 20px;
  text-decoration: none;
  color: white;
  font-weight: bold;
  transition: background-color 0.3s, color 0.3s;
}

.cta:hover {
  background-color: white;
  color: #2f4f3e;
}

.burger {
  display: none;
  font-size: 1.5em;
  cursor: pointer;
}

/* Responsive */

@media (max-width: 1038px) {
  .nav-links {
    display: none;
  }

  .burger {
    display: block;
  }

  .cta {
    margin-left: auto;
  }
  
.nav-icons {
  display: flex;
  align-items: center;
  gap: 0.8em; /* Abstand zwischen Icon und Button */
}

.nav-icons .icon {
  display: flex;
  align-items: center;
  justify-content: center;
}


  .navbar .container {
    gap: 0;
    padding: 0.8em 1em;
  }
}


/* HIGHLIGHT SECTION */

.highlights {
  display: flex;
  gap: 2em;
  padding: 4em 2em;
  flex-wrap: wrap;
  justify-content: center;
}

.highlight-box {
  position: relative;
  width: clamp(300px, 28vw, 420px); /* Dynamisch zwischen 300px und 420px */
  aspect-ratio: 3 / 4;
  background-size: cover;
  background-position: center;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
  display: flex;
  align-items: flex-end;
  margin-bottom: 2em;
}

.highlight-box:hover {
  transform: translateY(-6px);
}

.highlight-content {
  width: 100%;
  padding: 2em 1.5em;
  background: linear-gradient(to top, rgba(53, 78, 51, 1), rgba(53, 78, 51, 0.9), rgba(53, 78, 51, 0));
  color: white;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.highlight-content h3 {
  margin: 0 0 0.5em;
  font-size: 1.2em;
}

.highlight-content p {
  font-size: 0.9em;
  line-height: 1.4em;
}

.highlight-icon {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 60px;
  opacity: 0.9;
  pointer-events: none;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.3));
}


/* Responsive Anpassung */
@media (max-width: 768px) {
  .highlight-box {
    max-width: 90%;
    aspect-ratio: 3 / 4;
  }

  .highlight-content {
    padding: 1.5em;
  }

  .highlight-icon {
    height: 48px;
  }
}

/* Allgemeine Button-Optik */
.btn {
  background-color: #22c55e;
  color: white;
  padding: 0.8em 2em;
  border-radius: 999px;
  border: none;
  font-size: 1em;
  cursor: pointer;
  transition: background-color 0.3s;
  margin: 0.5em;
}

.btn:hover {
  background-color: #1d9649;
}

/* Modal-Grundstruktur */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  justify-content: center;
  align-items: center;

  /* Wichtig für Mobile: Overlay nicht scrollen */
  overflow: hidden;

  /* mobile padding etwas kleiner */
  padding: 1.2em;
}

/* Modal Content: hier wird gescrollt */
.modal-content {
  background: white;
  border-radius: 12px;
  padding: 1.5em;
  max-width: 700px;
  width: min(92vw, 700px);
  position: relative;
  color: #2f4f3e;
  text-align: left;
  animation: fadeIn 0.3s ease-out;

  /* Scroll im Modal erlauben */
  max-height: 85vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

body.modal-open {
  overflow: hidden;
}


.close {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 2em;
  font-weight: bold;
  background: none;
  border: none;
  color: #888;
  cursor: pointer;
}

.close:hover {
  color: #000;
}

/* Galerie-Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1em;
  margin-top: 1em;
}

@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8em;
  }
}


.img-tilt {
  perspective: 1000px;
}

.img-tilt img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  transform-style: preserve-3d;
}

.img-tilt:hover img {
  transform: scale(1.05) rotateX(6deg) rotateY(-6deg);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* Fade-in animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}


.lightbox {
  position: fixed;
  inset: 0;
  background-color: rgba(0,0,0,0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  padding: 2em;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

.lightbox .close-lightbox {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2.5em;
  color: white;
  cursor: pointer;
}

.hidden {
  display: none !important;
}

/* TESTIMONIAL AREA */

.testimonials {
  position: relative;
  overflow: hidden;
  background-color: #f4f7f4;
  padding: 6em 2em;
  z-index: 1;
  text-align: center;
}

.testimonials h2 {
  font-size: 2em;
  color: #2f4f3e;
  margin-bottom: 2em;
}


/* LEAF BACKGROUND GRID */
/* LEAF BACKGROUND GRID – erweitert */

.leaf-background {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
  grid-auto-rows: 50px;
  opacity: 0.3;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(120deg, #ffffff00, #bcd8c2aa, #ffffff00);
  background-size: 400% 400%;
  animation: leafGradientFlow 20s linear infinite;
}

.leaf-background-full {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
  grid-auto-rows: 50px;
  opacity: 0.3;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(120deg, #ffffff00, #bcd8c2aa, #ffffff00);
  background-size: 400% 400%;
  animation: leafGradientFlow 20s linear infinite;
}

/* Gradient */
.leaf-background {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  transition: transform 0.2s ease-out;
}

.leaf-background svg {
  position: absolute;
  width: 40px;
  height: 40px;
  opacity: 0;
  stroke: #4a6e4f;
  stroke-opacity: 0.8;
  fill: none;
  transform: scale(0.8) rotate(0deg);
  transition: opacity 1.2s ease, transform 2s ease;
}

.leaf-background svg.animate {
  opacity: 1;
  transform: scale(1) rotate(var(--rotate, 10deg));
}

.testimonials h2 {
  font-size: 2em;
  margin-bottom: 1.5em;
  color: #2f4f3e;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2em;
  max-width: 1000px;
  margin: 0 auto;
}

.testimonial-slider {
  max-width: 700px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}

.testimonial-track {
  display: flex;
  transition: transform 0.5s ease;
}

.slide-wrapper {
  flex: 0 0 100%;
  padding: 0 1em; /* Abstand außen */
  box-sizing: border-box;
}

.testimonial {
  background: white;
  border-radius: 12px;
  padding: 2em;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  font-style: italic;
  color: #333;
  text-align: center;
}

.impressumbox {
  background: white;
  border-radius: 12px;
  padding: 2em;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  font-style: italic;
  color: #333;
  text-align: left;
}

.testimonial span {
  display: block;
  margin-top: 1em;
  font-style: normal;
  font-weight: bold;
  color: #2f4f3e;
}


/* Pfeile */
.testimonial-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #ffffffcc;
  border: none;
  font-size: 2em;
  cursor: pointer;
  padding: 0.2em 0.5em;
  border-radius: 6px;
  z-index: 10;
  transition: background-color 0.3s ease;
  user-select: none;
}

.testimonial-arrow:hover {
  background-color: #22c55e;
  color: white;
}

.testimonial-arrow.left {
  left: 10px;
}

.testimonial-arrow.right {
  right: 10px;
}

@media (max-width: 600px) {
  .testimonial {
    padding: 1.2em 1em;
  }

  .testimonial-arrow {
    font-size: 1.5em;
    padding: 0.2em 0.4em;
  }
}



/* ================ */

/* FOOTER */

.footer {
  background-color: #1e2d1d;
  color: white;
  padding: 3em 2em;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2em;
  max-width: 1200px;
  margin: 0 auto;
  text-align: left;
}

.footer-column,
.footer-center {
  flex: 1 1 300px;
  order: 0; /* Standard-Order */
}


.footer-column h3 {
  font-size: 1.2em;
  margin-bottom: 1em;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column li {
  margin-bottom: 0.5em;
}

.footer-column a {
  color: white;
  text-decoration: none;
}

.footer-column a:hover {
  text-decoration: underline;
}

.footer-logo {
  height: 50px;
  margin-bottom: 1em;
  margin-left: 4em;
}

.footer-quote {
  font-style: italic;
  margin: 0.5em 0 1.5em;
  text-align: center;
}

.footer-icons {
  font-size: 1.2em;
  display: flex;
  gap: 1em;
  justify-content: center;
  margin-bottom: 1em;
}

.footer-icons a svg {

  font-size: 1.2em;
  display: flex;
  gap: 1em;
  justify-content: center;
  margin-bottom: 1em;
  stroke: white;
  fill: none;
  transition: stroke 0.3s ease, transform 0.3s ease;
}

.footer-icons a:hover svg {
  stroke: #22c55e;
  transform: scale(1.1);
}


.footer-btn {
  background-color: #22c55e;
  color: white;
  padding: 0.6em 1.5em;
  border-radius: 8px;
  display: inline-block;
  text-decoration: none;
  margin-top: 1em;
  transition: background-color 0.3s;
}

.footer-btn:hover {
  background-color: #1a9e4d;
}

footer .copyright {
  font-size: 0.85em;
  margin-top: 2em;
  text-align: center;
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-column {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 1em;
    margin-bottom: 2em;
    width: 100%;
    max-width: 500px;
  }

  .footer-center {
    width: 100%;
    max-width: 500px;
    order: 2;
  }

  .footer-column:first-of-type {
    order: 3; /* Links → ganz nach unten */
  }

  .footer-column:last-of-type {
    order: 1; /* Kontakt → ganz nach oben */
  }

  .footer-column h3 {
    margin-bottom: 0.5em;
  }

  .footer-column ul {
    padding-left: 0;
  }
}


/* ========== */