
html {
    scroll-behavior: smooth;   /* Weiches Scrollen (optional, aber schön) */
    scroll-padding-top: 80px;  /* Abstand nach oben, z. B. 80px */
  }
  

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.8;
    color: #6c7180;
  }
  
  /* FIXED HEADER / NAVIGATION */
  header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #f8f8f8;
    padding: 10px 20px;
    z-index: 1000;
  }

  h3 {
    padding-bottom: 15px;
  }
  
  nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .nav-header {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-between;
  }
  
  nav img {
    height: 50px;
    width: auto;
  }
  
  .nav-links {
    list-style: none;
    display: flex;
  }
  
  .nav-links li {
    margin-left: 20px;
  }
  
  .nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 18px;
    transition: color 0.2s;
  }
  
  .nav-links a:hover {
    color: #8ca38c;
  }
  
  .menu-toggle {
    display: none;
  }
  
  /* HERO-BANNER */
  .hero-banner {
    position: relative;
    width: 100%;
    overflow: hidden;
    z-index: 0;
    /* margin-top wird dynamisch via JS gesetzt */
  }
  
  .hero-banner img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    z-index: 1;
  }
  
  .hero-banner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(140, 163, 140, 0.5);
    pointer-events: none;
    z-index: 2;
  }
  
  .hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 3;
    color: #fff;
  }
  
  .hero-text h1 {
    font-size: 4rem;
    font-weight: bold;
    margin: 0;
    opacity: 0;
    animation: fadeInDown 1s ease-out forwards;
  }
  
  .hero-text p {
    font-size: 1.5rem;
    margin: 0;
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
    animation-delay: 0.5s;
  }
  
  @keyframes fadeInDown {
    from {
      opacity: 0;
      transform: translateY(-20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* FOOTER */
  footer {
    background-color: #f8f8f8;
    padding: 20px;
    text-align: center;
  }
  
  /* ÜBER UNS Sektion */
  #ueber-uns {
    max-width: 1200px;
    margin: 40px auto;
    padding-left:  20px;
    padding-right:  20px;
    padding-bottom: 20px;
    font-size: 16px;
  }
  
  #ueber-uns h2 {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
  }
  
  #ueber-uns h2::after {
    content: "";
    display: block;
    margin-top: 10px;
    width: 100%;
    height: 2px;
    background-color: #8ca38c;
  }
  
  .ueber-uns-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
  }
  
  .ueber-uns-text {
    flex: 1;
  }
  
  .profile-image {
    flex: 0 0 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .profile-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  }
  
  .social-icons {
    margin-top: 10px;
  }
  .social-icons a {
    margin: 0 5px;
    text-decoration: none;
    color: #333;
    font-size: 1.2rem;
  }
  
  /* RESPONSIVE DESIGN */
  @media (max-width: 768px) {
    nav {
      flex-direction: column;
      align-items: flex-start;
    }
    
    .nav-header {
      width: 100%;
    }
    
    .menu-toggle {
      display: flex;
      flex-direction: column;
      justify-content: space-around;
      width: 30px;
      height: 24px;
      background: none;
      border: none;
      cursor: pointer;
    }
    
    .menu-toggle .bar {
      width: 100%;
      height: 2px;
      background-color: #333;
      display: block;
    }
    
    .nav-links {
      display: none;
      flex-direction: column;
      width: 100%;
      margin-top: 10px;
    }
    
    .nav-links.active {
      display: flex;
    }
    
    .nav-links li {
      margin-left: 0;
      margin-bottom: 10px;
    }
    
    .ueber-uns-content {
      flex-direction: column;
    }
    
    .profile-image {
      order: 1; 
      margin-bottom: 20px;
      flex: 0 0 auto;
    }
    .ueber-uns-text {
      order: 2;
    }
  }

  /* --- LEISTUNGEN-SEKTION --- */

/* Hintergrundfarbe über die ganze Breite */
#leistungen {
    background-color: #f8f8f8; /* Hier den gewünschten Farbwert einfügen */
    padding: 40px 0; /* Vertikaler Abstand */
  }
  
  /* Zentrierter Inhalts-Container */
  #leistungen .leistungen-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    font-size: 16px; /* Falls gewünscht */
  }
  
  
  
  #leistungen h2 {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
  }
  
  /* Optionale Linie unter der Überschrift */
  #leistungen h2::after {
    content: "";
    display: block;
    margin-top: 10px;
    width: 100%;
    height: 2px;
    background-color: #8ca38c;
  }
  
  .leistungen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    padding: 0;
    margin: 1rem 0;
  }
  .leistung-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
    background: #fff;
    transition: transform 0.2s;
  }
  .leistung-item:hover {
    transform: translateY(-4px);
  }
  .leistung-item img {
    width: 100%;
    height: auto;
    display: block;
  }
  .leistung-item span {
    display: block;
    padding: 0.5rem;
    font-weight: bold;
  }
  


  /* --- Modal-Styling --- */
  .modal {
    display: none; /* Standard: versteckt */
    position: fixed;
    z-index: 9999; /* Damit es über dem Rest der Seite liegt */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Falls der Inhalt größer als der Bildschirm ist */
    background-color: rgba(0, 0, 0, 0.5); /* Halbtransparenter Overlay */
  }
  
  .modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 40px 20px 20px; /* Oben mehr Platz, damit das X nicht überlappt wird */
    width: 80%;
    max-width: 600px;
    border-radius: 8px;
    position: relative;
  }
  
  .close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 50; /* Damit das X immer oben bleibt */
  }
  
  /* Wenn du möchtest, kannst du den Link in der Liste anders stylen */
  .leistungen-liste a {
    color: #0040ff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
  }
  
  .leistungen-liste a:hover {
    color: #8ca38c;
    text-decoration: underline;
  }
  
  /* REFERENZEN-SEKTION */
#referenzen {
    background-color: #fff; /* Weißer Hintergrund */
    padding: 40px 0;
    text-align: center;     /* Überschrift und Logos zentrieren */
  }
  
  /* Überschrift-Styling nach Wunsch */
  #referenzen h2 {
    margin-bottom: 20px;
    position: relative;
  }
  /* Optionale Linie unter der Überschrift */
  #referenzen h2::after {
    content: "";
    display: block;
    margin: 10px auto 0;
    width: 60px;
    height: 2px;
    background-color: #8ca38c;
  }
  
  /* Der "Marquee"-Container: verhindert Zeilenumbrüche & schneidet Überlauf ab */
  .references-marquee {
    position: relative;
    overflow: hidden;   /* Logos, die aus dem Bereich fahren, werden abgeschnitten */
    white-space: nowrap; /* Verhindert Umbrüche, alles in einer Zeile */
  }
  
  /* Der Track enthält alle Logos hintereinander */
  .references-track {
    display: inline-flex;       /* Logos nebeneinander */
    align-items: center;
    animation: marquee 20s linear infinite; /* 20s = Geschwindigkeit, infinite Loop */
  }
  
  /* Beim Hover kann man die Animation pausieren (optional) */
  .references-track:hover {
    animation-play-state: paused;
  }
  
  /* Einzelnes Item mit etwas Rand */
  .item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 121px; /* Horizontaler Abstand zwischen den Logos */
  }

  @media (max-width: 768px) {
    .item {
      margin: 0 20px; /* Abstand auf mobilen Geräten reduzieren */
    }
  }
  
  /* Logo-Bilder selbst */
  .item img {
    max-height: 60px; /* Logo-Größe anpassen */
    height: auto;
    display: block;
  }
  
  /* KEYFRAMES:
     Verschiebt den Track von 0% (rechts) nach -50% (links),
     sodass die zweite Runde der Logos nahtlos folgt.
  */
  @keyframes marquee {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(-50%);
    }
  }
  

/* TESTIMONIALS-SEKTION */
#testimonials {
    background-color: #fff; /* z.B. weißer Hintergrund */
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px 40px;
    text-align: center;
  }
  
  #testimonials h2 {
    margin-bottom: 20px;
    position: relative;
  }
  
  /* Optional: Linie unter H2 */
  #testimonials h2::after {
    content: "";
    display: block;
    margin: 10px auto 0;
    width: 60px;
    height: 2px;
    background-color: #8ca38c;
  }
  
  .testimonial-container {
    background-color: #f8f8f8;
    border-radius: 8px;
    padding: 20px;
    margin: 0 auto;
    max-width: 800px; /* Breite des Zitat-Bereichs */
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  }
  
  /* Zitat-Text */
  #quote-text {
    font-style: italic;
    white-space: pre-wrap; /* Damit Zeilenumbrüche aus dem Text beibehalten werden */
    margin-bottom: 20px;
  }
  
  /* Autor-Name */
  #quote-author {
    font-weight: bold;
    margin-bottom: 20px;
  }
  
  /* Navigation-Buttons */
  .testimonial-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
  }
  
  .testimonial-buttons button {
    background-color: #8ca38c;
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
  }
  
  .testimonial-buttons button:hover {
    background-color: #6b826b;
  }


/* KONTAKT-SEKTION */
/* Vollflächiger Hintergrund für den Kontaktbereich */
#kontakt {
    background-color: #f8f8f8;
    width: 100%;
    padding: 40px 0; /* Vertikaler Abstand */
  }
  
  /* Zentrierter Inhalts-Wrapper */
  .kontakt-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
  }
  
  /* Bestehende Regeln für den Kontaktbereich bleiben unverändert */
  #kontakt h2 {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
  }
  
  #kontakt h2::after {
    content: "";
    display: block;
    margin-top: 10px;
    width: 100%;
    height: 2px;
    background-color: #8ca38c;
  }
  
  .kontakt-intro {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
    font-size: 1.1rem;
  }
  
  .kontakt-content {
    display: flex;
    align-items: flex-start;
    gap: 20px;
  }
  
  .kontakt-image {
    flex: 0 0 300px;
    border-right: 1px solid #8ca38c;
    padding-right: 20px;
  }
  
  .kontakt-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  }
  
  .kontakt-text {
    flex: 1;
    padding-left: 20px;
  }
  
  .kontakt-text h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: #333;
  }
  
  .contact-subtitle {
    font-size: 1rem;
    color: #6c7180;
    margin-bottom: 20px;
  }
  
  .contact-label {
    font-weight: bold;
    margin-bottom: 2px;
    color: #6c7180;
  }
  
  .contact-value {
    margin-bottom: 10px;
  }
  
  .contact-value a {
    color: #0040ff;
    text-decoration: none;
  }
  .contact-value a:hover {
    color: #8ca38c;
    text-decoration: underline;
  }
  
  /* Mobile-Ansicht: Bild über Text, Trennlinie entfernen */
  @media (max-width: 768px) {
    .kontakt-content {
      flex-direction: column;
    }
  
    .kontakt-image {
      order: 1;
      border-right: none;
      padding-right: 0;
      margin-bottom: 20px;
      flex: 0 0 auto;
    }
  
    .kontakt-text {
      order: 2;
      padding-left: 0;
    }
  }
  
  /* FAQ-Sektion */
#faq {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px 40px; /* etwas Platz nach unten */
  }
  
  /* FAQ Überschrift */
  #faq h2 {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
  }
  
  /* Grüne Linie unter H2 */
  #faq h2::after {
    content: "";
    display: block;
    margin-top: 10px;
    width: 100%;
    height: 2px;
    background-color: #8ca38c;
  }
  
  /* Jeder FAQ-Eintrag */
  .faq-item {
    margin-bottom: 10px;
  }
  
  /* FAQ-Frage als großer Button */
  .faq-question {
    display: block;
    width: 100%;
    text-align: left;
    background-color: #fff;
    border: 2px solid #8ca38c;
    padding: 15px;
    font-size: 1rem;
    cursor: pointer;
    color: #333;
    transition: background-color 0.2s;
    font-weight: 500; /* leicht fetter Text */
  }
  
  /* Hover-Effekt */
  .faq-question:hover {
    background-color: #f2f2f2; /* leicht abgedunkeltes Weiß */
  }
  
  /* FAQ-Antwort (versteckt per JS) */
  .faq-answer {
    display: none; /* Startzustand: ausgeblendet */
    padding: 15px;
    border-left: 2px solid #8ca38c; 
    background-color: #fff;
    /* Du kannst hier z.B. einen Rand, Schatten, etc. hinzufügen */
    margin-bottom: 10px;
  }
  
  /* Wenn du magst, kannst du das Accordion etwas animieren:
     Hier ein einfacher Trick: transition kann aber nur fixed heights animieren,
     oder wir nutzen JS-Lösungen für smooth open/close. 
  */
  