html {
  scroll-behavior: smooth;
}
/* --- Allgemeines Styling --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  line-height: 1.6;
  background: #fff;
}

/* --- Header / Navigation --- */
header {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  height: 50px;
}

/* Desktop Navigation */
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #008000;
}

/* Burger-Menü Button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #008000;
}

/* --- Hero Section --- */
.hero {
  background: linear-gradient(135deg, #008000 0%, #006400 100%);
  color: white;
  padding: 6rem 2rem;
  text-align: center;
}
@media (max-width: 600px) {
  .hero {
    padding: 6rem 1rem 7rem; /* oben/unten mehr Platz */
  }

  .hero h1 {
    font-size: 1.8rem; /* kleiner, damit nichts abgeschnitten wird */
    line-height: 1.3;
  }

  .hero p {
    font-size: 1rem;
    line-height: 1.5;
  }
}
.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.cta-button {
  background: white;
  color: #008000;
  padding: 1rem 2.5rem;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: transform 0.3s, box-shadow 0.3s;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* --- Sektionen --- */
section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
  scroll-margin-top: 80px;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  text-align: center;
  color: #008000;
}

/* --- Leistungen --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.service-card {
  background: #f9f9f9;
  padding: 2rem;
  border-radius: 10px;
  border-left: 4px solid #008000;
  transition: transform 0.3s, box-shadow 0.3s;
}

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

.service-card h3 {
  color: #008000;
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

/* --- Über uns --- */
.about {
  background: #f5f5f5;
  padding: 4rem 2rem;
}

.about h2 {
  text-align: center;
  color: #008000;
  margin-bottom: 2rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.about-text h3 {
  color: #008000;
  margin-bottom: 1rem;
}

.about-values {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  text-align: center;
}

.about-values h4 {
  margin-top: 0.5rem;
}

.about-values p {
  font-size: 0.95rem;
}

.emoji {
  font-size: 2.5rem;
}

/* --- Kontaktformular --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info {
  background: #f9f9f9;
  padding: 2rem;
  border-radius: 10px;
}

.contact-item strong {
  color: #008000;
  display: block;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* --- Footer --- */
footer {
  background: #111;
  color: white;
  padding: 3rem 2rem 2rem;
  margin-top: 4rem;
  text-align: center;
}

.footer-content {
  max-width: 900px;
  margin: 0 auto 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.footer-section h3 {
  color: #00a000;
  margin-bottom: 0.8rem;
  font-size: 1.2rem;
}

.footer-section p,
.footer-section ul {
  color: #ccc;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section ul li a:hover {
  color: #00ff88;
}

.footer-bottom {
  font-size: 0.9rem;
  color: #999;
  border-top: 1px solid #333;
  padding-top: 1rem;
}

/* --- Rechtliche Seiten (Impressum / Datenschutz) --- */
.legal-section,
.datenschutz-container {
  max-width: 900px;
  margin: 6rem auto;
  background: #fff;
  padding: 3.5rem 3rem;
  border-radius: 15px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.legal-section h1,
.datenschutz-container h1 {
  text-align: center;
  color: #008000;
  margin-bottom: 2rem;
  font-size: 2.6rem;
  font-weight: 700;
}

.legal-section h2 {
  color: #006400;
  margin-top: 2.5rem;
  margin-bottom: 0.8rem;
  font-size: 1.5rem;
  border-left: 4px solid #008000;
  padding-left: 0.6rem;
}

.legal-content {
  color: #444;
  line-height: 1.8;
  font-size: 1.05rem;
}

.legal-content p:first-of-type {
  text-align: center;
  font-size: 1.15rem;
  color: #333;
  margin-bottom: 2rem;
}

/* --- Responsive Design --- */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-values {
    grid-template-columns: 1fr 1fr;
    justify-items: center;
  }

  .about-values div {
    max-width: 200px;
  }
}

@media (max-width: 850px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem 0;
    border-top: 1px solid #ddd;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
  }

  .hero {
    padding: 4rem 1.5rem;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .about-values {
    grid-template-columns: 1fr;
  }

  .emoji {
    font-size: 2rem;
  }

  h2 {
    font-size: 2rem;
  }

  section {
    padding: 2rem 1rem;
  }
}

/* --- Technische Korrekturen --- */
html, body {
  overflow-x: hidden;
}
/* --- Fix: Header bleibt wirklich sticky und sichtbar --- */
header {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* Sicherheitsfix: Kein übergeordnetes Element darf Sticky verhindern */
body, html {
  overflow-x: hidden;
}

main, section {
  position: static !important;
  overflow: visible !important;
}
header.scrolled {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: box-shadow 0.3s ease;
}
/* --- 🧩 Sticky Header Fix --- */
header {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: #fff;
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

/* Schatten beim Scrollen */
header.scrolled {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(4px);
}

/* Fix: Kein Element darf Sticky blockieren */
body, html {
  overflow-x: hidden;
  overflow-y: auto;
}

main, section {
  position: relative;
  z-index: 1;
}
/* --- Header / Navigation --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

header.scrolled {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* Damit der Inhalt nicht hinter dem Header verschwindet */
body {
  padding-top: 80px;
}
/* --- Mobile Header Fixes --- */

/* Logo korrekt skalieren & sichtbar halten */
.logo {
  height: 45px;
  max-width: 160px;
  object-fit: contain;
  z-index: 10000;
}

/* Mobile Menü Layout fixen */
@media (max-width: 850px) {
  .nav-links {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem 0;
    border-top: 1px solid #ddd;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
  }

  .menu-toggle {
    display: block;
    z-index: 10001;
  }

  nav {
    position: relative;
  }
}

/* Fix: Scroll-Offset bei fixed Header */
section {
  scroll-margin-top: 90px;
}
/* --- Mobile Fix: Datenschutz / Impressum Titel richtig umbrechen --- */
@media (max-width: 600px) {
  .legal-section h1,
  .datenschutz-container h1 {
    font-size: 1.9rem;
    word-break: break-word;
    text-align: center;
    padding: 0 1rem;
  }

  .legal-section,
  .datenschutz-container {
    margin: 4rem 1rem;
    padding: 2.5rem 1.5rem;
  }
}
/* --- Footer-Link-Farben fixen (auch auf Mobile) --- */
footer a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #00ff88;
}

footer a:visited {
  color: #ccc;
}