/* Allgemeine Stile */
@font-face {
  font-family: 'Roboto';
  src: url('fonts/roboto-regular.woff2') format('woff2'); /* Beispiel */
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'DM Serif Display';
  src: url('fonts/dm-serif-display.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}



body {
    font-family: 'Roboto', sans-serif;
    font-size: 16px; /* Standardgröße für gute Lesbarkeit */
    line-height: 1.6; /* Lesefreundlicher Zeilenabstand */
    color: #102c17;
  }

  html, body {
    margin: 0;
    padding: 0;
    max-width: 100%;
    overflow-x: hidden;
  }
  
  .container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 0px;
    box-sizing: border-box;
  }

  .section-divider-line {
    width: 100%;
    height: 1px;
    background-color: #27a944;
    margin: 0;
  }

/* Headlines */
h1, h2, h3 {
    font-family: 'DM Serif Display', serif;
    line-height: 1.2;
    font-weight: 500;
    letter-spacing: -1.5px;
    color: #102c17;
    margin-top: 0;
  }
  
  h1 {
    font-size: 2.5rem;
    line-height: 1.15;
  }
  
  h2 {
    font-size: 1.75rem; /* 28px */
    line-height: 1.2;
    letter-spacing: -0.2px;
    font-weight: 700;
  }
  
  h3 {
    font-size: 1.375rem; /* 22px */
    line-height: 1.3;
  }
  
  /* Absätze */
  p {
    margin-top: 0;
    margin-bottom: 1em;
    font-size: 1rem;
    line-height: 1.6;
  }
  
  /* Links */
  a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease-in-out;
  }

  /* Header */ 
  
  header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(28, 28, 28, 0.9); /* halbtransparentes Dunkelgrau */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1); /* optional für Tiefe */
  }
  
  header.hidden {
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
  }

  .logo img {
    max-height: 60px;
    width: auto;
    display: block;
  }  
  
  nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: flex-end;
  }
  
  nav ul li {
    margin-left: 20px;
  }
  
  nav ul li a {
    color: #fff;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
  }
  
  nav ul li a::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 1.5px;
    background-color: #27a944;
    transition: width 0.3s ease;
  }
  
  nav ul li a:hover {
    color: #27a944;
  }
  
  nav ul li a:hover::after {
    width: 100%;
  }

  header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .nav-wrapper {
    display: flex;
    align-items: center;
    gap: 30px;
  }  
  
  /* Hero Section */
  .hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    position: relative;
    background-image:
      radial-gradient(circle at top left, #e9f7ee 0%, #ffffff 100%),
      repeating-linear-gradient(
        45deg,
        rgba(0, 0, 0, 0.03) 0px,
        rgba(0, 0, 0, 0.03) 1px,
        transparent 1px,
        transparent 4px
      );
    background-blend-mode: overlay;
    background-size: cover;
    background-position: center;
    color: #102c17;
  }
  
  .hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 0px;
    box-sizing: border-box;
  }
  
  .hero-text {
    flex: 0 0 50%;
    max-width: 500px;
    padding-right: 30px;
    box-sizing: border-box;
  }

  .hero-text h1 {
    font-size: 2.5rem; /* 40px */
    line-height: 0.9;  /* 48px Zeilenhöhe */
    letter-spacing: -0.5px;
    font-weight: 700;
    margin-bottom: 0.3em;
  }

  .hero-text p {
    margin-bottom: 4rem; /* oder z. B. 24px / 2em */
  }
  
  .hero-image {
    display: flex;
    justify-content: flex-end;
    box-sizing: border-box;
  }
  
  .hero-image img {
    width: 100%;
    max-width: 550px;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: 0;
    border-radius: 8px;
  }
  
  .Impressum {
    padding: 40px 0;
  }

  @media (max-width: 768px) {
    .service {
      flex: 1 1 100%;
    }
  }

  .cta-button {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #27a944;
    border: 2px solid #27a944;
    color: white;
    font-weight: bold;
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.3s ease;
  }
  
  .cta-button:hover {
    background-color: #1b7930;
    border: 2px solid #1b7930;
  }
  
  .cta-button.cta-outline {
    background-color: transparent;
    color: #27a944;
    border: 2px solid #27a944;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    transition: all 0.25s ease;
    margin-left: 1rem;
  }
  
  .cta-button.cta-outline:hover {
    background-color: #1b7930;
    color: #fff;
    border: 2px solid #1b7930;
  }
  
  
  /* Dienstleistungen */
  .services .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    padding: 40px 0;
  }

  .services{
    padding-bottom: 80px;
  }
  
  .services-heading {
    text-align: center;
    width: 100%;
    max-width: 100%;
    margin: 0 auto 40px;
    font-size: 1.75rem;
  }

  .services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
  }

  .service {
    flex: 1 1 calc(33.333% - 20px);
    padding-top: 5px;
    padding-right: 5px;
    padding-bottom: 5px;
    padding-left: 5px;
    background-color: #f4f4f4;
    box-sizing: border-box;
    text-align: center;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    transition: background-color 0.3s ease;
    border: 1px solid #27a944;
  }
  
  .service:hover {
    background-color: #e9f7ee;
  }
  
  .service-image-wrapper {
    overflow: hidden;
  }
  
  .service-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
  }
  
  .service:hover .service-image-wrapper img {
    transform: scale(1.00);
  }
  
  .service img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
  }
  
  .service h2 {
    margin: 15px 10px 5px;
    font-size: 1.2rem;
  }
  
  .service p {
    margin: 0 10px 15px;
    font-size: 0.95rem;
  }

  .service-content {
    margin-top: auto;
  }
  
  #dienstleistungen {
    scroll-margin-top: 60px;
  }

  /* Footer */
  .footer {
    background-color: #333;
    color: #fff;
    padding: 40px 20px;
    font-size: 0.9rem;
  }
  
  .footer-table {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: space-between;
  }

  .footer-section {
    flex: 1 1 220px;
    min-width: 180px;
  }

  .footer-section strong {
    display: block;
    margin-bottom: 10px;
    font-size: 1rem;
    color: #27a944;
  }

  .footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .footer-section ul li {
    margin-bottom: 6px;
  }

  .footer a {
    color: #fff;
    text-decoration: none;
  }

  .footer a:hover {
    text-decoration: underline;
  }

  .claim {
    font-size: 1.1rem;
    font-weight: 500;
    margin-top: 10px;
  }
  
  /* Löschen die 2 */
  .footer-table td {
    padding: 8px 12px;
    vertical-align: top;
    word-wrap: break-word;
    text-align: left;
  }

  .footer-table td.claim {
    font-size: 1.1rem;
    font-weight: 500;
    padding-top: 6px;
  }
  
  
  /* Neue Spaltenbreiten */
  .footer-table colgroup col:nth-child(1) {
    width: 33.33%; /* 1/3 für Spalte 1 */
  }
  .footer-table colgroup col:nth-child(2),
  .footer-table colgroup col:nth-child(3),
  .footer-table colgroup col:nth-child(4) {
    width: 22.22%; /* die restlichen 2/3 in 3 gleich große Teile aufgeteilt */
  }
  
  /* Optional: Überschriften in der ersten Zeile fett & größer */
  .footer-table tr:first-child td {
    font-weight: bold;
    font-size: 1rem;
  }
  
  /* Footer-Links */
  .footer-table a {
    color: #fff;
    text-decoration: none;
  }
  .footer-table a:hover {
    text-decoration: underline;
  }
  
  .footer-table td.claim {
    font-size: 1.2rem;
    font-weight: 500;
    padding-top: 8px;
  }  
  
  /* Responsive Design */
  @media (max-width: 1100px) {
    .logo {
      padding-left: 15px; /* oder 20px, je nach gewünschtem Abstand */
    }
    
    .container {
      width: 100%;
      padding: 0 0px;
    }
  
    .hero .container {
      flex-direction: column;
      text-align: center;
    }
  
    .hero-text,
    .hero-image {
      flex: 1 1 100%;
    }

    .hero-text .cta-button {
      display: inline-block;
      margin: 10px 5px; /* etwas Abstand zwischen den Buttons */
    }

    .hero-text {
      padding-right: 0;
      margin-bottom: 20px;
      text-align: center;
    }
  
    .services .container {
      flex-direction: column;
      align-items: center;
        padding: 0 20px; /* ⬅️ mehr seitlicher Innenabstand */
    }

    .services {
      padding-top: 40px; /* oder 3rem für Rastertreue */
      padding-bottom: 40px;
    }

    .services-heading {
      margin-top: 0;
      margin-bottom: 30px;
      text-align: center;
    }
  
    .service {
      width: 100%;
    max-width: 500px;
    margin: 0 auto 20px auto; /* zentriert & mit Abstand unten */
    }

    .hero-text h1 {
      margin-bottom: 2rem; /* z. B. 16px statt 0.4em */
        font-size: 1.75rem; /* ca. 28px */
        line-height: 1.3;
    }
  
    .hero-text p {
      margin-top: 0; /* Sicherstellen, dass kein zusätzlicher Abstand entsteht */
    }

    .footer-table {
      flex-direction: column;
      align-items: flex-start;
      gap: 16px;
    }
  
    .footer-table colgroup,
    .footer-table tr {
      display: block;
      margin-bottom: 20px;
    }
  
    .footer-section {
      width: 100%;
      margin-bottom: 10px;
    }

    .footer .claim {
      margin-top: 10px;
      margin-bottom: 10px;
    }

    .footer-table td {
      display: block;
      width: 100%;
      padding: 6px 0;
      text-align: left;
      font-size: 0.95rem;
      border: none;
    }
  
    .footer-table tr:first-child td {
      font-weight: bold;
      color: #27a944;
      margin-bottom: 6px;
      font-size: 1rem;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }
  }

  @media (max-width: 1024px) {
    .hero .container {
      flex-wrap: wrap;
      justify-content: center;
      text-align: center;
    }
  
    .hero-text,
    .hero-image {
      padding: 0 20px;
      box-sizing: border-box;
    }

    .hero-text h1 {
        font-size: 2rem; /* ca. 28px */
        line-height: 1.3;
    }
  
    .hero-image {
      display: flex;
      justify-content: center;
      align-items: center;
      margin-top: 30px;
    }
  
    .hero-image img {
      max-width: 90%;
      height: auto;
      margin: 0 auto;
      display: block;
    }
  }
  
  

  /* Burger-Menu*/
  .burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 18px;
    cursor: pointer;
    z-index: 1001;
  }
  
  .burger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #fff;
    border-radius: 2px;
    transition: 0.4s;
  }
  
  .burger.active span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
  }
  
  .burger.active span:nth-child(2) {
    opacity: 0;
  }
  
  .burger.active span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
  }

  @media (max-width: 768px) {
  .burger {
    display: flex;
  }

  #nav-menu {
    display: none;
    position: absolute;
    top: 70px; /* Abstand unter dem Header */
    right: 0;
    background-color: #333;
    flex-direction: column;
    width: 100%;
    padding: 10px 0;
    z-index: 999;
  }

  #nav-menu.active {
    display: flex;
  }

  #nav-menu li {
    text-align: center;
    padding: 10px 0;
  }

  #nav-menu li a {
    color: #fff;
    text-decoration: none;
  }
}

@media (max-width: 768px) {
    .hero .container {
      flex-direction: column;
      align-items: center;
      text-align: center;
    }

    .hero {
      padding-top: 50px;
    }
  
    .hero-text,
    .hero-image {
      padding: 10px 15px;
      box-sizing: border-box;
    }
  
    .hero-image {
      display: block;
        display: flex;
        justify-content: center !important;
    }
  
    .hero-image img {
      display: block;
      margin: 0 auto;
      width: 90%;
      max-width: 400px;
      height: auto;
    }
    
    .services-grid {
      flex-direction: column;
      align-items: center;
    }
  
    .service {
      flex: 1 1 100%;
      max-width: 500px;
    }

    .Impressum h1,
    .Datenschutz h1 {
      font-size: 1.75rem;
      line-height: 1.3;
      text-align: center;
      word-break: break-word;
      hyphens: auto;
      margin-bottom: 24px;
    }
  
    .Datenschutz h2,
    .Impressum h2 {
      font-size: 1.25rem;
    }
    .Impressum,
    .Datenschutz {
      padding-top: 90px;
      padding-left: 15px;
      padding-right: 15px;
    }
  }  


  /* Kontaktformular*/
  .contact-section {
  padding: 60px 20px;
  background-image:
    radial-gradient(circle at top left, #e9f7ee 0%, #ffffff 100%),
    repeating-linear-gradient(
      45deg,
      rgba(0, 0, 0, 0.03) 0px,
      rgba(0, 0, 0, 0.03) 1px,
      transparent 1px,
      transparent 4px
    );
  background-blend-mode: overlay;
  background-size: cover;
  background-position: center;
  color: #102c17;
}

.contact-section .container {
    display: flex;
    flex-wrap: wrap; /* <- wichtig für mobile responsiveness */
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
  }
  
  .contact-form2,
  .contact-image {
    flex: 1 1 500px; /* Basisgröße: 500px, darf aber kleiner werden */
    box-sizing: border-box;
  }

  .contact-form2 input,
  .contact-form2 textarea {
  margin-top: 4px;
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #333; /* Footer-Grau */
  border-radius: 4px;
  background-color: #fff;
  color: #000;
}

.contact-form2 h2 {
  margin-bottom: 20px;
  font-size: 1.6rem;
}

.contact-form2 form {
  display: flex;
  flex-direction: column;
}

.contact-form2 label {
  margin-top: 12px;
  font-weight: bold;
}

.contact-form2 input,
.contact-form2 textarea {
  margin-top: 4px;
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.contact-form2 button {
  margin-top: 20px;
  padding: 12px;
  background-color: #27a944;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form2 button:hover {
  background-color: #21903c;
}

.contact-image {
  flex: 1 1 35%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

#contact {
  scroll-margin-top: 60px;
}

.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0,0,0,0.3);
  backdrop-filter: blur(5px);
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: linear-gradient(135deg, #e9f7ee, #ffffff);
  padding: 40px 30px;
  border-radius: 12px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  font-family: 'DM Serif Display', serif;
  color: #1b7930;
}

.modal-content h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.modal-content p {
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  color: #222;
}

.modal-content button {
  background-color: #27a944;
  color: white;
  padding: 10px 24px;
  margin-top: 20px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-family: 'Roboto', sans-serif;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.modal-content button:hover {
  background-color: #1b7930;
}


.Impressum,
.Datenschutz {
  padding-top: 100px; /* oder passend zur Header-Höhe */
  padding-left: 20px;
  padding-right: 20px;
  max-width: 1100px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Datenschutz & Impressum Headings */
.Datenschutz h1,
.Datenschutz h2,
.Datenschutz h3,
.Impressum h1,
.Impressum h2,
.Impressum h3 {
  font-family: 'DM Serif Display', serif;
  color: #1c3b29; /* dunkelgrün */
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-top: 1em;
  margin-bottom: 0.5em;
}

/* Einheitliche Schriftgrößen */
.Datenschutz h1,
.Impressum h1 {
  font-size: 2rem;
  margin-bottom: 30px;
}

.Datenschutz h2,
.Impressum h2 {
  font-size: 1.5rem;
}

.Datenschutz h3,
.Impressum h3 {
  font-size: 1.2rem;
}
