/* ========================================
   Reset / Basis
======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: Arial, sans-serif;
  color: #333;
  background-color: #f8f8f8;
  line-height: 1.6;
}
.inner {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 0;
}
html, body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

/* ========================================
   Navigation & Header / Hero
======================================== */
.hero {
  background: url('bilder/header.png') no-repeat center center;
  background-size: cover;
  color: white;
  position: relative;
  min-height: 700px;
}
.hero .inner {
  position: relative;
  z-index: 1;
  height: 100%;
}
.hero::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
}
.hero-content {
  text-align: center;
  padding: 80px 20px;
  position: relative;
  z-index: 1;
}
.hero-content h1 { font-size: 3rem; margin-bottom: 20px; }
.hero-content p { font-size: 1.25rem; margin-bottom: 30px; }
.btn-primary {
  background-color: #4CAF50;
  color: white;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 1rem;
}
.btn-primary:hover { background-color: #45a049; }

.main-nav {
  background-color: white;
  border-radius: 12px;
  padding: 12px 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  align-items: center;
}

.main-nav a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background 0.2s ease, color 0.2s ease;
}

.main-nav a:hover {
  background-color: #e8f5e9;
  color: #4CAF50;
}

/* Telefonbutton */
.main-nav .nav-button.phone {
  background-color: #25D366;
  color: white;
}

.main-nav .nav-button.phone:hover {
  background-color: #1ebe5a;
  color: white;
}

/* WhatsApp-Button – nur Hintergrund soll wechseln */
.main-nav .whatsapp-button {
  background-color: #25D366;
  color: white !important;
  transition: background-color 0.2s ease;
}

.main-nav .whatsapp-button:hover {
  background-color: #1ebe5a;
  color: white !important;
}
.nav-logo {
  height: 40px;
  margin-right: 15px;
  vertical-align: middle;
}

}

/* ========================================
   Über mich
======================================== */

section.about-me {
  border: 4px solid red;
}
.about-me {
  background-color: #cde8c2 !important;
  padding: 60px 0;
}
.about-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}
.about-img {
  flex: 1 1 300px;
  min-width: 280px;
}
.about-img img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  image-rendering: crisp-edges;
}
.about-text {
  flex: 2 1 400px;
}
.about-text h2 {
  margin-bottom: 20px;
  color: #4A677D; /* Frisch und harmonisch zum Garten-Thema */
}
.about-text p {
  font-size: 1.1rem;
  line-height: 1.8;
}

/* ========================================
   Leistungen – Grundlayout
======================================== */
.leistungen {
  background-color: #edf6e9;
  padding: 60px 0;
}
.leistungen h2,
#preise h2,
#kontakt h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 2rem;
  color: #4A677D;
}
.leistungen-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}
.nav {
  flex: 1 1 400px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.leistung-btn {
  background: #4CAF50;
  color: white;
  border: none;
  padding: 15px;
  font-size: 1.05rem;
  text-align: left;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
  position: relative;
}
.leistung-btn.active { background: #45a049; }

.leistung-textbox {
  background: #e6f5ed;
  color: #333;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.9s ease, opacity 0.6s ease;
  border-radius: 0 0 8px 8px;
  padding: 0 14px;
}
.leistung-btn.active {
  max-height: none ;
  opacity: 1;
  padding: 14px;
}
.leistung-textbox p { margin-bottom: 12px; }

.cta-small {
  display: block;
  margin: 15px auto 5px auto;
  text-align: center;
  background: #4CAF50;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s ease;
}
.cta-small:hover { background: #3f9343; }

/* ========================================
   Bilder rechts
======================================== */
.leistung-bilder {
  width: 48%;
  height: 240px;
  object-fit: cover;
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-start;
  opacity: 0;
  transform: translateX(100px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.leistung-bilder.visible {
  opacity: 1;
  transform: translateX(0);
}
.leistung-bilder img {
  width: 48%;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.15);
}

.slider {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.slides {
  display: flex;
  transition: transform 0.6s ease-in-out;
}
.slides img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}
.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 50%;
  cursor: pointer;
}
.prev:hover, .next:hover {
  background: rgba(0,0,0,0.7);
}
.prev { left: 15px; }
.next { right: 15px; }

/* Wichtig: Overlay startet rechts */
.ba-overlay {
  position: absolute;
  top: 0;
  right: 0;          /* ← geändert */
  left: auto;        /* ← geändert */
  width: 100%;
  height: 100%;
  overflow: hidden;
  clip-path: inset(0 50% 0 0); /* 50 % sichtbar, Start von rechts */
  transition: clip-path 0.15s ease;
  z-index: 2;
}

.ba-slider {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  width: 100%;
  -webkit-appearance: none;
  background: transparent;
  outline: none;
  z-index: 5;
  cursor: ew-resize;
}

.ba-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #4CAF50;
  box-shadow: 0 0 5px rgba(0,0,0,0.3);
}

.ba-slider::-moz-range-thumb {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #4CAF50;
  box-shadow: 0 0 4px rgba(0,0,0,0.3);
}

.ba-label {
  position: absolute;
  top: 10px;
  padding: 6px 10px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 0.9rem;
  border-radius: 4px;
  z-index: 10;
}
.ba-left { left: 10px; }
.ba-right { right: 10px; }

.ba-middle {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  z-index: 3;
  pointer-events: none;
}

/* --- Vertikutieren 3-Phasen-Schalter --- */
.phase-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
}

.phase-buttons button {
  background: #e5f5ea;
  color: #333;
  border: 1px solid #4CAF50;
  border-radius: 6px;
  padding: 6px 14px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  font-size: 0.9rem;
}

.phase-buttons button:hover,
.phase-buttons button.active {
  background: #4CAF50;
  color: #fff;
  font-weight: bold;
}
.logo-display {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 300px; /* oder gewünschte Höhe */
}
.logo-display img {
  width: 300px;
  height: auto;
  object-fit: contain;
}



/* ========================================
   Preise & Kontakt
======================================== */
#preise {
  background-color: #e7f3e3;
  padding: 60px 0;
}
.price-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}
.price-item {
  background: #f8fff6;
  border: 1px solid #d0e4cd;
  border-radius: 8px;
  padding: 25px;
  flex: 1 1 200px;
  text-align: center;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}
.price-item p {
  color: #4CAF50;
  font-weight: bold;
}
.note {
  text-align: center;
  color: #666;
  margin-top: 15px;
}

#kontakt {
  background-color: #cde8c2;
  padding: 60px 0;
}
#kontakt p {
  text-align: center;
}
.kontaktbereich {
  padding: 60px 0;
  background: #cde8c2;
}
.kontakt-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 30px;
}
.kontakt-formular {
  flex: 1 1 400px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  padding: 25px;
}
.kontakt-formular form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.kontakt-formular input,
.kontakt-formular textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}
.kontakt-formular textarea {
  resize: vertical;
  min-height: 120px;
}
.kontakt-formular button {
  padding: 14px;
  background: #4CAF50;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 1.1rem;
  cursor: pointer;
}
.kontakt-formular button:hover {
  background: #45a049;
}
.kontakt-info {
  flex: 1 1 300px;
}
.kontakt-info h3 {
  margin-bottom: 15px;
  color: #4CAF50;
}
.kontakt-info a {
  color: #333;
  text-decoration: none;
}
.kontakt-info a:hover {
  color: #4CAF50;
  text-decoration: underline;
}
.kontakt-formular select {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
  font-size: 16px;
  background-color: #fff;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}
.kontakt-formular select:focus {
  outline: none;
  border-color: #4CAF50;
}

/* ========================================
   Standorte
======================================== */

#standorte {
  padding: 60px 0;
  background-color: #daf0d4;
  text-align: center;
}

#standorte h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #2f5d2c;
}

#standorte p {
  font-size: 1.1rem;
  line-height: 1.8;
  max-width: 900px;
  margin: 0 auto;
  color: #333;
}



/* ========================================
   Footer
======================================== */
.site-footer {
  background: #333;
  color: #ccc;
  padding: 30px 0;
}
.footer-container {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  gap: 40px;
}
.footer-logo img {
  height: 120px;
  object-fit: contain;
}
.footer-text {
  text-align: center;
  line-height: 1.6;
  font-size: 0.95rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.footer-text a {
  color: #ccc;
  text-decoration: none;
}
.footer-text a:hover {
  color: white;
}

/* ========================================
   Modale Fenster (Impressum / Datenschutz)
======================================== */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
}
.modal-content {
  background: #fff;
  padding: 30px 40px;
  border-radius: 10px;
  max-width: 700px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  position: relative;
  animation: fadeIn 0.3s ease;
}
.modal-content h2 {
  text-align: center;
  margin-bottom: 15px;
  color: #4A677D; /* Frisch und harmonisch zum Garten-Thema */
}
.close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
  transition: color 0.2s ease;
}
.close:hover { color: #4CAF50; }

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* ========================================
   Responsive
======================================== */
@media (max-width: 900px) {
  .leistungen-container { flex-direction: column; }
  .leistung-bilder img { width: 48%; }
}
.ba-img.before,
.ba-img.after {
  display: block;
  background: #ddd;
}
/* --- Before/After Mobile Fix (Variante A) --- */
.ba-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  margin: 20px auto;
  background: #ddd;
  min-height: 250px; /* Mobile Höhe fix */
}

/* die Bilder stabil halten */
.ba-container img {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
}

/* Safari/Chrome Fix: Overlay korrekt von rechts */
.ba-overlay {
  right: 0;
  left: auto;
  clip-path: inset(0 50% 0 0);
  min-height: 250px;
}

/* Desktop höhere Priorität */
@media (min-width: 768px) {
  .ba-container {
    min-height: 320px; /* Desktop */
  }
}

/* ===== Scroll-Animationen ===== */
.section-animate {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-out;
}
.section-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* sanfte Variante für Bilder */
.section-animate img {
  transition: transform 1s ease, opacity 1s ease;
}
.section-animate.visible img {
  opacity: 1;
  transform: translateY(0);
}
/* ===== Overlay (Popup) ===== */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
.overlay.hidden {
  display: none;
}
.overlay-box {
  background: #fff;
  border-radius: 12px;
  padding: 30px 40px;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  position: relative;
  animation: fadeIn 0.3s ease-in-out;
}
.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
  color: #333;
}
.overlay-box h3 {
  color: #4CAF50;
  margin-bottom: 10px;
}
.overlay-box.error h3 {
  color: #d32f2f;
}
@keyframes fadeIn {
  from { transform: scale(0.9); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
@media (max-width: 768px) {
  #standorte p {
    font-size: 1rem;
    padding: 0 20px;
  }

  #standorte h2 {
    font-size: 1.5rem;
  }
}
