/* === Grundstil === */

@charset "UTF-8";
/* https://fonts.google.com/specimen/Fira+Sans */

@import url('https://fonts.googleapis.com/css2?family=Fira+Sans:wght@100;200;300;400;500&display=swap');

@media (prefers-reduced-motion: no-preference) {
  :root {
    scroll-behavior: smooth;
  }
}

*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  scroll-behavior: smooth;
  font-family: 'Fira Sans', sans-serif;
}

body {
  position: relative;
  overflow-x: hidden;
  background-color: #081b08;
}

/* === Navigation === */
.nav-logo img {
  height: 40px;
  width: auto;
}

.navbar {
  position: fixed; /* immer oben sichtbar */
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  z-index: 1000; /* über allem */
  transition: background 0.3s ease;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  position: relative; /* für z-index der Menüs */
  margin: 0 auto;
  padding: 0.6rem 1.2rem;
}

/* Desktop Menü */
.nav-menu {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  transition: all 0.3s ease;
}

.nav-menu li a {
  text-decoration: none;
  color: #2e7d32;
  font-weight: 500;
  font-size: 1rem;
  padding: 0.3rem 0.6rem;
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-menu li a:hover {
  background: #e8f5e9;
  color: #1b5e20;
}

/* Hamburger Button */
.nav-toggle {
  display: none; /* nur Mobile */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 35px;
  height: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001; /* über Menü */
}

.nav-toggle .bar {
  height: 3px;
  width: 100%;
  background-color: #2e7d32;
  border-radius: 5px;
  margin: 3px 0;
  transition: all 0.3s ease;
}

/* Mobile Ansicht */
@media (max-width: 800px) {
  .nav-menu {
    display: flex;            /* bleibt Flex für Layout */
    flex-direction: column;
    align-items: center;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 0;            /* zusammenklappen */
    overflow: hidden;
    transition: max-height 0.35s ease;
    background: #fff;
    z-index: 999;
  }

  /* Menü sichtbar, wenn Hamburger aktiv */
  .nav-menu.active {
    max-height: 500px;
  }

  /* Desktop-Links verstecken */
  .nav-menu li a {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.8rem 0;
  }

  .nav-toggle {
    display: flex; /* sichtbar auf Mobile */
  }

  /* Hamburger → Kreuz Animation */
  .nav-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  /* Links zentrieren */
  .nav-menu li {
    width: 100%;
  }
  .nav-menu li a {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.8rem 0;
    border-radius: 0;
  }
}


  /* HERO */
.hero {
  position: relative;
  height: 90vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: rgb(255, 255, 255);
  overflow: hidden;
  background-color: #081b08;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.5));
}

.hero-image {
  max-width: 300px;
  height: auto;
  margin-bottom: 20px;
}

.hero-content {
  position: relative;
  z-index: 1;
  animation: fadeInUp 1.5s ease;
}

.hero-content h1 {
  font-size: 1,5rem;
  letter-spacing: 2px;
  margin-bottom: 1,9rem;
}

.hero-content p {
  font-size: 3rem;
  margin-bottom: 6rem;
  text-shadow: 0 3px 3px rgba(0,0,0,0.3);
  color: #109216;
}

.hero-btn {
  background: #2b552d;
  color: white;
  padding: 0.8rem 1.6rem;
  border-radius: 30px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.3s ease;
}

.hero-btn:hover {
  background: #388e3c;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Video */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh; /* Vollbildhöhe */
  overflow: hidden;
}

.background-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Zuschneiden statt Verzerren */
  transform: translate(-50%, -50%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  color: white;
  text-align: center;
  top: 50%;
  transform: translateY(-50%);
  padding: 0 1rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 2rem;
}

/* --- Anpassung für Smartphones --- */
@media (max-width: 768px) {
  .hero-section {
    height: 80vh; /* nicht zu hoch auf Handy */
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1.5rem;
  }

  .background-video {
    object-position: center center;
  }
}

/* Profil */
.profile-snippet {
  position: relative;
  padding: 3rem 5%;
  background-color:rgb(6, 34, 16);
  overflow: hidden;
  border-radius: 20px;
  margin: 4rem auto;
  max-width: 1100px;
}

.profile-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.profile-img {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid #0b440d;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  animation: float 5s ease-in-out infinite;
}

.profile-text {
  flex: 1;
  min-width: 280px;
  text-align: left;
}

.profile-text h2 {
  color: #ffffff;
  margin-bottom: 0.8rem;
  font-size: 1.8rem;
}

.profile-text p {
  color: #ffffff;
  margin-bottom: 0.6rem;
  line-height: 1.5;
}

.profile-text .quote {
  font-style: italic;
  color: #c6fbc8;
  font-weight: 500;
  margin-top: 0.5rem;
}

/* Sektionen */
.section { padding:3.5rem 6%; text-align:center; }
.section h2 { color:#ffffff; margin-bottom:2em; font-size:1.9rem; }

/* === Leistungen === */
#leistungen {
  text-align: center;
  padding: 4rem 2rem;
  position: relative;
  background-color:rgb(6, 34, 16);
  overflow: hidden;
  border-radius: 20px;
  margin: 4rem auto;
  max-width: 1100px;
}

/* Grid für 2x3 Layout */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  justify-items: center;
  max-width: 1000px;
  margin: 0 auto;
  justify-items: center;
}

.card {
  background: rgba(255, 255, 255);
  border-radius: 20px;
  padding: 2rem 1rem;
  width: 90%;
  max-width: 280px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.1);
}

.card img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.card:hover img {
  transform: scale(1.05);
}

.card h3 {
  font-size: 1.1rem;
  color: #2e7d32;
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.95rem;
  color: #4e6b4b;
  line-height: 1.4;
  max-width: 90%;
  margin: 0 auto;
}

/* --- Mobile Layout für Leistungen --- */
/* Bis 900px: leicht kompakter, z. B. Tablets */
@media (max-width: 900px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 600px) {
  .cards {
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem;
    padding: 1rem;
  }

  .card img {
    width: 80px;
    height: 80px;
  }

  .card h3 {
    font-size: 1rem;
  }

  .card p {
    font-size: 0.9rem;
  }
}

@media (max-width: 400px) {
  .cards {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .card {
    text-align: center;
  }

  .card img {
    width: 70px;
    height: 70px;
  }
}

/* Vorher/Nachher Sektion */
#vorher-nachher { 
  text-align: center;
  padding: 4rem 2rem;
  position: relative;
  background-color:rgb(6, 34, 16);
  overflow: hidden;
  border-radius: 20px;
  margin: 4rem auto;
  max-width: 1100px;
 }

/* Grid */
.before-after-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  max-width: 1300px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Vergleichskachel */
.compare {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

/* Bild-Wrapper */
.image-compare {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10; /* gleichmäßige Größe */
  overflow: hidden;
  touch-action: none; /* für pointer events */
}

/* Basisbilder */
.image-compare img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Bild füllt exakt den Container */
  display: block;
  border: none;
  margin: 0;
  padding: 0;
}

.image-compare .after {
  clip-path: inset(0 50% 0 0); /* Start: Hälfte sichtbar */
  transition: clip-path 0.12s linear;
}

/* Range (sichtbar, halbtransparent) */
.compare-range {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 10px;
  z-index: 50;
  -webkit-appearance: none;
  appearance: none;
  height: 28px;
  background: transparent;
}

/* Range: thumb styling */
.compare-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #66bb6a;
  border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.compare-range::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%; background:#66bb6a; border: 3px solid #fff;
}

/* Responsive: Tablet / Mobile */
@media (max-width: 1000px) {
  .before-after-grid { grid-template-columns: repeat(2, 1fr); }
  .image-compare { aspect-ratio: 4 / 3; }
}
@media (max-width: 600px) {
  .before-after-grid { grid-template-columns: 1fr; }
  .compare-range { left: 12px; right: 12px; bottom: 8px; }
  .image-compare { aspect-ratio: 16/9; }
}

/* Galerie */
#galerie {
  text-align: center;
  padding: 4rem 2rem;
  position: relative;
  background-color:rgb(6, 34, 16);
  overflow: hidden;
  border-radius: 20px;
  margin: 4rem auto;
  max-width: 1100px;
}

/* --- Galerie-Grid (Bilder) --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  max-width: 1300px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.gallery-grid img {
  width: 100%;          /* volle Breite des Grid-Elements */
  height: 250px;        /* gleiche Höhe für alle Bilder */
  object-fit: cover;    /* Bild wird zugeschnitten, bleibt aber proportional */
  border-radius: 20px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

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

.hidden {
  display: none;
}

.gallery-buttons {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.btn {
  background: #66bb6a;
  border: none;
  color: white;
  padding: 0.8rem 1.6rem;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn:hover {
  background: #388e3c;
}

/* --- Tablet & kleinere Laptops --- */
@media (max-width: 900px) {
  .gallery-grid img {
    height: 220px;
  }
}

/* --- Smartphone (max. 600px): 2 Bilder nebeneinander --- */
@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }

  .gallery-grid img {
    height: 150px;            /* kleinere, kompaktere Bilder */
    border-radius: 12px;
  }
}

/* --- Kontakt --- */
#kontakt {
  text-align: center;
  padding: 4rem 2rem;
  position: relative;
  background-color:rgb(6, 34, 16);
  color: #ffffff;
  overflow: hidden;
  border-radius: 20px;
  margin: 4rem auto;
  max-width: 1100px;
}

#kontakt a {
  color: #66bb6a;
}

.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25D366;
  color: white;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.9rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, background 0.3s ease;
  z-index: 200;
}

.whatsapp-float:hover {
  background-color: #1ebe5d;
  transform: scale(1.1);
}

/* Scroll-Animation */
.animate-on-scroll { opacity:0; transform: translateY(28px); transition: all .7s ease-out; }
.animate-on-scroll.visible { opacity:1; transform: translateY(0); }

/* Blätter */
.leaves { position:fixed; top:0; left:0; width:100%; height:100%; pointer-events:none; overflow:hidden; z-index:0; }
.leaf { position:absolute; top:-60px; width:48px; opacity:.7; animation: fall linear infinite; }
@keyframes fall { 0% { transform: translateY(0) rotate(0deg); } 100% { transform: translateY(100vh) rotate(360deg); } }
.leaf:nth-child(1) { left:8%; animation-duration:11s; }
.leaf:nth-child(2) { left:52%; animation-duration:13s; }
.leaf:nth-child(3) { left:82%; animation-duration:9s; }


/* Responsive tweaks */
@media (max-width:700px) {
  .hero { padding:6rem 1.2rem; background-attachment: scroll; }
  .nav-links { display:none; }
}

/* Footer CSS */
footer {
  background: rgba(255,255,255,0.9); 
  opacity: 70%; 
  padding: 20px 0;
}

.footertext {
  display: flex;
  justify-content: center; /* zentriert das gesamte Flex-Element */
  align-items: center;
  position: relative; /* erlaubt absolute Positionierung innerhalb */
  max-width: 1200px;
  margin: 0 auto;
}

.footer-center {
  font-size: 15px;
  color: rgb(6, 56, 24);
  text-align: center;
}

.footer-links {
  position: absolute;
  right: 0; /* schiebt die Links ganz nach rechts */
  display: flex;
  gap: 0.8rem;
}

.footer-links a {
  color: rgb(6, 56, 24);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #768777;
}


@media (max-width: 900px) {
  .footertext {
    flex-direction: column;
    gap: 0.5rem;
  }

  .footer-links {
    position: static;
  }
}

/* Impressum */
.impressum-content {
  margin-top: 150px;
  margin-bottom: 150px;
  color:#ffffff;
  font-size: 12px;
}


.impressum-content h1 {
  font-size: 20px;
  margin-bottom: 15px;
}

.impressum-content h2 {
  font-size: 18px;
  margin-bottom: 10px;
  margin-top: 30px;
}

.impressum-content h3 {
  font-size: 16px;
  margin-bottom: 10px;
  margin-top: 25px;
} 

.impressum-content a {
  color: #66bb6a;
}

.impressum-content ul,li {
  margin-top: 10px;
}


@media (max-width: 576px) { 
  .impressum-content {
    margin-right: 25px;
    margin-left: 25px;
    margin-top: 150px;
  }
}

@media (min-width: 768px) { 
  .impressum-content {
    margin-right: 100px;
    margin-left: 100px;
    margin-top: 150px;
  }
}

@media (min-width: 1200px) { 
  .impressum-content {
    margin-right: 100px;
    margin-left: 100px;
    margin-top: 150px;
  }
}
