/* =========================================
   CSS Reset and Normalize
   ========================================= */
html {
  box-sizing: border-box;
  font-size: 100%;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Lato', Arial, sans-serif;
  color: #254126;
  background-color: #F3F9FB;
  line-height: 1.6;
  min-height: 100vh;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 0.3s;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
ul, ol {
  list-style: none;
  margin: 0 0 16px 0;
  padding: 0;
}
a {
  color: #164773;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus,
a:hover {
  color: #206230;
}
button {
  font-family: inherit;
  font-size: 1rem;
  border: none;
  background: none;
  cursor: pointer;
  outline: none;
}

/* =========================================
   Fonts
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Lato:wght@400;700&display=swap');
h1, .h1 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2.5rem;
  font-weight: 900;
  color: #164773;
  margin-bottom: 24px;
  line-height: 1.15;
  letter-spacing: -1px;
}
h2, .h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #206230;
  margin-bottom: 20px;
  line-height: 1.2;
}
h3 { 
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #254126;
  margin-bottom: 12px;
}
h4 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #549D59;
  margin-bottom: 10px;
}
p, li {
  font-family: 'Lato', Arial, sans-serif;
  font-size: 1rem;
  color: #254126;
  margin-bottom: 12px;
}
strong {
  color: #164773;
}
.small {
  font-size: 0.94rem;
  color: #5d7150;
}

/* =========================================
   Layout Containers & Spacing (Flex Library)
   ========================================= */
.container {
  width: 100%;
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background-color: #fff;
  border-radius: 28px;
  box-shadow: 0 2px 16px rgba(139, 176, 118, 0.06);
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #F6FBF4;
  margin-bottom: 20px;
  border-radius: 18px;
  box-shadow: 0 1px 7px rgba(80, 125, 92, 0.07);
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px 20px 20px 20px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover, .card:focus {
  box-shadow: 0 4px 20px rgba(98, 135, 91, 0.17);
  transform: translateY(-3px) scale(1.01);
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  border-radius: 20px;
  background-color: #F6FBF4;
  margin-bottom: 20px;
  box-shadow: 0 1px 8px rgba(33, 61, 39, 0.06);
}
.testimonial-card p {
  color: #164773;
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 12px;
}
.testimonial-card span {
  font-size: 1rem;
  color: #206230;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
}
.feature-grid li {
  background: #FFFFFF;
  border-left: 7px solid #549D59;
  box-shadow: 0 1px 6px rgba(40, 98, 52,0.06);
  color: #254126;
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 0;
  min-width: 220px;
  max-width: 380px;
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color 0.2s, background 0.2s;
}
.feature-grid li:hover {
  border-left-color: #206230;
  background: #F6FBF4;
}
.services-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.services-list li {
  background: #F3F9FB;
  border-radius: 16px;
  box-shadow: 0 1px 8px rgba(40, 86, 64,0.09);
  padding: 18px 18px 14px 18px;
  flex: 1 1 340px;
  margin-bottom: 0;
}
.services-list h3 {
  margin-bottom: 8px;
  color: #206230;
  font-size: 1.08rem;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* =========================================
   Header & Navigation
   ========================================= */
header {
  background: #F6FBF4;
  box-shadow: 0 2px 16px rgba(22,71,115, 0.07);
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 20px;
  height: 78px;
}
.logo img {
  height: 48px;
  width: auto;
}
.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 30px;
}
.main-nav a {
  font-family: 'Lato', Arial, sans-serif;
  font-weight: 500;
  font-size: 1.04rem;
  color: #164773;
  padding: 8px 4px;
  border-radius: 5px;
  transition: background 0.16s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #E3EDDF;
  color: #206230;
}
.cta-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  background: #206230;
  color: #ffffff;
  border: none;
  padding: 13px 30px;
  border-radius: 22px;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-left: 18px;
  box-shadow: 0 1px 7px rgba(31,83,49,0.14);
  transition: background 0.15s, box-shadow 0.15s, transform 0.13s;
  text-shadow: none;
  cursor: pointer;
  outline: none;
  display: inline-block;
}
.cta-btn:focus,
.cta-btn:hover {
  background: #549D59;
  color: #fff;
  box-shadow: 0 3px 14px rgba(68, 151, 60, 0.21);
  transform: translateY(-2px) scale(1.02);
}

/* =========================================
   Mobile Navigation (Burger Menu)
   ========================================= */
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  background: #206230;
  color: #fff;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  z-index: 201;
  transition: background 0.2s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #164773;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(120deg, #F3F9FB 85%, #E3EDDF 100%);
  z-index: 2000;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(.77,0,.18,1);
  opacity: 1;
  box-shadow: 0 4px 26px rgba(68, 151, 60, 0.11);
}
.mobile-menu.open {
  transform: translateX(0);
  box-shadow: 0 0 40px rgba(68, 151, 60, 0.19);
}
.mobile-menu-close {
  font-size: 2rem;
  color: #206230;
  background: none;
  position: absolute;
  top: 24px;
  right: 26px;
  width: 44px;
  height: 44px;
  z-index: 2101;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.18s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: #F2FFE9;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 92px 38px 42px 38px;
  gap: 22px;
}
.mobile-nav a {
  font-size: 1.25rem;
  font-weight: 700;
  color: #164773;
  padding: 13px 4px;
  border-radius: 5px;
  transition: background 0.14s;
  width: 100%;
  letter-spacing: 0.3px;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: #E3EDDF;
  color: #206230;
}

/* =========================================
   Main and Section Content
   ========================================= */
main {
  flex: 1 0 auto;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 2px 16px rgba(139, 176, 118, 0.06);
}
.text-section {
  max-width: 720px;
  margin: 0 auto 0 0;
}

/* Blog Teasers */
.blog-post-teaser {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 24px;
  border-radius: 15px;
  background: #F3F9FB;
  padding: 18px 20px 16px 20px;
  box-shadow: 0 1px 6px rgba(31,83,49,0.07);
  transition: background 0.12s;
}
.blog-post-teaser:hover {
  background: #F6FBF4;
}
.categories-overview {
  margin-bottom: 18px;
}
.categories-overview ul {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.categories-overview li {
  background: #F6FBF4;
  color: #206230;
  border-radius: 10px;
  padding: 7px 16px;
  font-weight: 700;
  font-size: 0.98rem;
}

/* =========================================
   Tables & Lists
   ========================================= */
table {
  width: 100%;
  color: #254126;
  border-collapse: separate;
  border-spacing: 0 6px;
  margin: 22px 0 16px 0;
  box-shadow: 0 1px 8px rgba(126,150,123,0.05);
  background: #fff;
  font-size: 1rem;
  border-radius: 14px;
  overflow: hidden;
}
thead th {
  padding: 16px 11px;
  background: #E3EDDF;
  color: #164773;
  text-align: left;
  font-size: 1.08rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
}
tbody td {
  padding: 11px 11px;
  border-top: 2px solid #E3EDDF;
  color: #206230;
  font-weight: 500;
}
.pricing-notes {
  color: #5d7150;
  font-size: 0.98rem;
  margin-bottom: 18px;
}

/* =========================================
   Footer
   ========================================= */
footer {
  background: #164773;
  color: #fff;
  padding: 45px 0 30px 0;
  margin-top: 70px;
  font-size: 1rem;
}
footer .container {
  flex-direction: row;
  justify-content: space-between;
}
.footer-menu {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}
.footer-menu a {
  color: #F3F9FB;
  font-size: 1.02rem;
  font-family: 'Lato', Arial, sans-serif;
  text-decoration: underline;
  transition: color 0.18s;
}
.footer-menu a:focus, .footer-menu a:hover {
  color: #B6F1F3;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #F3F9FB;
  font-size: 1rem;
  align-items: flex-end;
}
.footer-contact img {
  height: 28px;
  width: auto;
  vertical-align: middle;
  margin-right: 7px;
}

/* =========================================
   Cookie Consent Banner & Modal
   ========================================= */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4000;
  background: #F6FBF4;
  border-top: 3px solid #206230;
  box-shadow: 0 -2px 18px rgba(68, 151, 60, 0.13);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  gap: 10px;
  max-width: 100vw;
  transition: transform 0.36s cubic-bezier(.41,.73,.56,1);
}
.cookie-banner.hide {
  transform: translateY(115%);
}
.cookie-banner p {
  flex: 1 1 0;
  color: #164773;
  font-size: 1rem;
  margin: 0 2vw 0 0;
}
.cookie-banner .cookie-btns {
  display: flex;
  gap: 15px;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  background: #206230;
  color: #fff;
  border: none;
  border-radius: 20px;
  font-size: 1rem;
  font-weight: 700;
  padding: 10px 25px;
  cursor: pointer;
  transition: background 0.13s, box-shadow 0.15s, color 0.17s;
}
.cookie-btn:focus,
.cookie-btn:hover {
  background: #549D59;
  color: #fff;
}
.cookie-btn.cookie-settings {
  background: #E3EDDF;
  color: #206230;
  border: 2px solid #206230;
  font-weight: 600;
  padding: 10px 23px;
}
.cookie-btn.cookie-settings:focus, .cookie-btn.cookie-settings:hover {
  background: #206230;
  color: #fff;
}

/* Cookie Modal Overlay */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(32, 98, 48, 0.14);
  z-index: 4100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: all;
  transition: opacity 0.22s;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #F6FBF4;
  border-radius: 22px;
  min-width: 310px;
  max-width: calc(100vw - 40px);
  padding: 36px 30px 28px 30px;
  box-shadow: 0 6px 40px rgba(31,83,49,0.14);
  display: flex;
  flex-direction: column;
  gap: 19px;
  position: relative;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 15px;
  right: 18px;
  background: none;
  color: #206230;
  font-size: 1.65rem;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  height: 34px;
  width: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.13s;
}
.cookie-modal .cookie-modal-close:focus, .cookie-modal .cookie-modal-close:hover {
  background: #E3EDDF;
}
.cookie-modal h3 {
  color: #164773;
  font-size: 1.3rem;
  margin-bottom: 6px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
}
.cookie-modal ul {
  display: flex;
  flex-direction: column;
  gap: 17px;
  margin-bottom: 5px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
}
.cookie-category label {
  font-size: 1rem;
  color: #206230;
  font-weight: 700;
  font-family: 'Montserrat', Arial, sans-serif;
}
.cookie-toggle {
  appearance: none;
  width: 42px;
  height: 22px;
  border-radius: 13px;
  background: #E3EDDF;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background 0.14s;
  margin-right: 6px;
}
.cookie-toggle:checked {
  background: #549D59;
}
.cookie-toggle:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.cookie-toggle::after {
  content: '';
  position: absolute;
  top: 3px; left: 4px;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 1px rgba(40, 98, 52,0.12);
  transition: transform 0.14s;
}
.cookie-toggle:checked::after {
  transform: translateX(16px);
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  margin-top: 8px;
  justify-content: flex-end;
}

/* =========================================
   Map Placeholder (Kontakt)
   ========================================= */
.map-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #E3EDDF;
  min-height: 110px;
  border-radius: 16px;
  margin-top: 12px;
}
.map-placeholder p {
  color: #164773;
}

/* =========================================
   Responsive (Mobile-first)
   ========================================= */
@media (max-width: 992px) {
  .container, footer .container {
    padding-left: 14px;
    padding-right: 14px;
  }
  .footer-contact {
    align-items: flex-start;
    gap: 9px;
  }
}

@media (max-width: 768px) {
  h1, .h1 { font-size: 2rem; }
  h2, .h2 { font-size: 1.3rem; }
  .container {
    padding-left: 7px; padding-right: 7px;
  }
  header .container {
    height: auto;
    flex-direction: row;
    gap: 12px;
    padding: 0 7px;
  }
  .main-nav {
    display: none;
  }
  .cta-btn {
    margin-left: 7px;
    padding: 12px 20px;
    font-size: 1.08rem;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .section, section {
    padding: 23px 6px;
    margin-bottom: 36px;
    border-radius: 18px;
  }
  .feature-grid,
  .card-container,
  .services-list,
  .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .services-list li, .feature-grid li {
    min-width: unset;
    max-width: 100%;
    font-size: 1.02rem;
    padding: 13px 8px;
  }
  .testimonial-card {
    border-radius: 14px;
    padding: 15px;
    font-size: 1rem;
  }
  .footer-menu {
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
  }
  footer .container {
    flex-direction: column;
    gap: 22px;
    align-items: flex-start;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}
@media (max-width: 480px) {
  html {
    font-size: 95%;
  }
  h1, .h1 { font-size: 1.45rem; }
  h2, .h2 { font-size: 1.08rem; }
  .section, section {
    padding: 13px 3.5vw;
    border-radius: 10px;
  }
  .card {
    border-radius: 9px;
    padding: 12px 8px;
  }
  .testimonial-card {
    border-radius: 9px;
    padding: 8px 10px;
  }
  .footer-contact {
    font-size: 0.98rem;
  }
  .categories-overview li {
    font-size: 0.94rem;
    padding: 5px 8px;
  }
  .mobile-menu {
    padding: 0; /* override */
  }
  .mobile-nav {
    padding: 60px 14px 20px 14px;
    gap: 13px;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 22px 7px 18px 7px;
  }
  .cookie-banner p {
    margin-bottom: 10px;
    font-size: 0.99rem;
  }
  .cookie-btn {
    padding: 8px 10vw;
    font-size: 1rem;
  }
  .cookie-btn.cookie-settings {
    padding: 8px 7vw;
  }
  .cookie-modal {
    min-width: 0;
    padding: 14px 6vw 16px 6vw;
    font-size: 0.96rem;
  }
}

/* =========================================
   Organic, Nature-inspired Details
   ========================================= */
.section, section, .card, .feature-grid li, .services-list li, .testimonial-card, .blog-post-teaser, .categories-overview li {
  border-radius: 18px;
  background: #F6FBF4;
  box-shadow: 0 1.5px 8px rgba(98,141,91,0.09);
}
section:nth-child(odd), .section:nth-child(odd) {
  background: #fff;
}
section:nth-child(even), .section:nth-child(even) {
  background: #F3F9FB;
}
/* Slight organic shape with a clip-path on hero sections */
@media (min-width: 1024px) {
  section:first-of-type {
    clip-path: ellipse(98% 81% at 48% 10%);
  }
}

/* Subtle accent line and earth feel */
h2, .h2 {
  position: relative;
  padding-left: 0.2em;
}
h2:after, .h2:after {
  content: '';
  display: block;
  width: 46px;
  height: 5px;
  background: #549D59;
  border-radius: 6px;
  margin-top: 5px;
}

/* Minimal transition for all clickable */
button, .cta-btn, a {
  transition: all 0.17s;
}

/* Secondary & Accent Texts */
.secondary {
  color: #549D59;
}
.brand-primary {
  color: #164773 !important;
}

/* =========================================
   Misc Utility Classes
   ========================================= */
.hide {
  display: none !important;
}
.text-center {
  text-align: center;
}
.text-right {
  text-align: right;
}
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.hr {
  border: none;
  border-bottom: 2px solid #E3EDDF;
  margin: 16px 0;
}

/* =========================================
   Focus States for Accessibility
   ========================================= */
a:focus, button:focus, .cta-btn:focus, .cookie-btn:focus {
  outline: 2px dashed #206230;
  outline-offset: 2px;
}

/* =========================================
   End of style.css
   ========================================= */