/* ===========================================================
   CSS RESET & NORMALIZE - minimal and widely compatible
   =========================================================== */
html {
  box-sizing: border-box;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
  border: 0;
}
body {
  min-height: 100vh;
  font-family: 'Open Sans', Arial, sans-serif;
  background: #fff;
  color: #1a2b22;
  line-height: 1.6;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, picture, video {
  max-width: 100%;
  height: auto;
  display: block;
  border: none;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s;
}
ul, ol {
  margin-left: 1.5em;
  margin-bottom: 1.5em;
  padding-left: 0;
}
li {
  margin-bottom: 0.8em;
}
button {
  font: inherit;
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', Georgia, serif;
  color: #245742;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 0.8em;
}
h1 {
  font-size: 2.25rem;
  margin-bottom: 1em;
}
h2 {
  font-size: 1.5rem;
  margin-bottom: 1em;
}
h3 {
  font-size: 1.125rem;
  margin-bottom: 0.7em;
}

/* =============================
   CONTAINER & LAYOUT FLEXBOX
   ============================= */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 84px;
}
.footer-flex {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  padding: 40px 0 24px 0;
  border-top: 1px solid #eeeeee;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 0;
}
.text-section {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
/* HERO SECTION */
.hero-section {
  background: #F4F7F1;
  border-radius: 0 0 32px 32px;
  box-shadow: 0 6px 24px rgba(36, 87, 66, 0.06);
  margin-bottom: 60px;
  padding: 64px 0 48px 0;
}
.hero-section .btn-primary {
  margin-top: 24px;
}

/* =============================
   FLEXBOX GRIDS & PATTERNS
   ============================= */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 24px;
  margin-bottom: 0;
}
.features-grid > div {
  flex: 1 1 220px;
  min-width: 200px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px 0 rgba(36,87,66,0.04);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 0;
  transition: box-shadow 0.18s;
}
.features-grid > div:hover {
  box-shadow: 0 6px 30px 0 rgba(36,87,66,0.08);
}
.services-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 0;
}
.services-list > div {
  flex: 1 1 260px;
  min-width: 220px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 8px 0 rgba(36,87,66,0.03);
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 0;
  transition: box-shadow 0.18s;
}
.services-list > div:hover {
  box-shadow: 0 4px 16px 0 rgba(36,87,66,0.08);
}
.team-bios {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
  margin-bottom: 0;
}
.team-bios > div {
  flex: 1 1 260px;
  min-width: 220px;
  background: #F4F7F1;
  border-radius: 14px;
  padding: 22px 16px;
  box-shadow: 0 2px 12px 0 rgba(36,87,66,0.03);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.case-study {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px 0 rgba(36,87,66,0.04);
  padding: 22px 20px 14px 20px;
  margin-bottom: 24px;
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}
.card {
  background: #fff;
  box-shadow: 0 2px 12px 0 rgba(36,87,66,0.04);
  border-radius: 14px;
  margin-bottom: 20px;
  padding: 24px 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: box-shadow 0.15s;
}
.card:hover {
  box-shadow: 0 8px 32px 0 rgba(36,87,66,0.10);
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Testimonials & Attributions */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 26px;
  background: #F4F7F1;
  border-radius: 14px;
  box-shadow: 0 2px 10px 0 rgba(36,87,66,0.06);
  margin-bottom: 20px;
  flex-direction: column;
}
.testimonial-card blockquote {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1.125rem;
  color: #245742;
  quotes: "\201C" "\201D";
  margin-bottom: 0.6em;
  background: none;
}
.testimonial-card span {
  font-size: 0.95rem;
  color: #656e62;
  font-style: italic;
  align-self: flex-end;
}

/* MAP PLACEHOLDER */
.map-placeholder {
  background: #f4f7f1;
  border-radius: 12px;
  padding: 18px 12px;
  text-align: center;
  color: #849985;
  margin-top: 18px;
  margin-bottom: 0;
  font-size: 1rem;
}

/* SECTION SPACING & PADDING PATTERNS */
section {
  margin-bottom: 60px;
  padding: 40px 0 0 0;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* ===================================
   BUTTONS, LINKS, & MICRO-INTERACTIONS
   =================================== */
.btn-primary {
  background-color: #245742;
  color: #fff;
  font-family: 'Merriweather', Georgia, serif;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 16px 36px;
  border-radius: 32px;
  border: none;
  box-shadow: 0 2px 16px 0 rgba(36,87,66,0.10);
  transition: background 0.18s, box-shadow 0.18s, transform 0.17s;
  display: inline-block;
  letter-spacing: 0.02em;
}
.btn-primary:hover, .btn-primary:focus {
  background: #2c764c;
  color: #fff;
  box-shadow: 0 6px 36px 0 rgba(36,87,66,0.16);
  transform: translateY(-2px) scale(1.03);
}
.btn-link {
  color: #245742;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: underline;
  transition: color 0.13s;
  padding: 0.25em 0.4em;
  background: transparent;
  border-radius: 5px;
  display: inline-block;
}
.btn-link:hover, .btn-link:focus {
  background: #f4f7f1;
  color: #1b422a;
}

/* LINKS in NAV & FOOTER */
.main-nav a, .footer-nav a, .mobile-nav a {
  color: #245742;
  font-weight: 600;
  font-family: 'Open Sans', Arial, sans-serif;
  padding: 8px 14px;
  border-radius: 5px;
  margin-right: 5px;
  transition: background 0.12s, color 0.12s;
  font-size: 1rem;
}
.main-nav a.active, .footer-nav a.active, .mobile-nav a.active {
  background: #F4F7F1;
  color: #1b422a;
}
.main-nav a:hover, .footer-nav a:hover, .mobile-nav a:hover, .footer-nav a:focus, .main-nav a:focus {
  background: #8FA96B;
  color: #fff;
}

/* =========================
   HEADER & NAVIGATION
   ========================= */
header {
  background: #fff;
  box-shadow: 0 2px 18px 0 rgba(36,87,66,0.07);
  position: relative;
  z-index: 70;
}
header .container {
  padding-top: 0;
  padding-bottom: 0;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Hamburger Menu Button */
.mobile-menu-toggle {
  display: none;
  background: #245742;
  color: #fff;
  font-size: 1.9rem;
  border-radius: 8px;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  transition: background 0.17s, box-shadow 0.14s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #8FA96B;
  color: #fff;
}

/* Mobile Navigation Overlay */
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: #f4f7f1;
  z-index: 1000;
  padding: 0 0 0 0;
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.36s cubic-bezier(.4,1,.1,1), opacity 0.28s;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 28px 24px 0 0;
  font-size: 2.2rem;
  color: #245742;
  background: transparent;
  border-radius: 8px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.14s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: #8FA96B;
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px 24px;
  margin-top: 24px;
}
.mobile-nav a {
  font-size: 1.15rem;
  padding: 16px 0;
  background: none;
}

/* Hide navigation on mobile, show hamburger */
@media (max-width: 950px) {
  .main-nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 951px) {
  .mobile-menu {
    display: none !important;
  }
}

/* =============================
   FOOTER DESIGN
   ============================= */
footer {
  background: #fafcfa;
  border-top: 1px solid #eef0ee;
}
.footer-flex > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #849985;
  font-size: 0.99rem;
}
footer img {
  width: 50px;
  height: auto;
  margin-bottom: 10px;
}

/* =============================
   COOKIE CONSENT BANNER
   ============================= */
.cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #F4F7F1;
  border-top: 1px solid #e5ecd6;
  box-shadow: 0 -2px 12px 0 rgba(36,87,66,0.10);
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  z-index: 1600;
  opacity: 1;
  transition: opacity 0.35s;
}
.cookie-consent-banner.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-consent-banner .cookie-btns {
  display: flex;
  flex-direction: row;
  gap: 18px;
  margin-top: 10px;
}
.cookie-consent-banner button {
  font-size: 1rem;
  font-weight: 600;
  padding: 10px 28px;
  border-radius: 22px;
  box-shadow: 0 1px 6px 0 rgba(36,87,66,0.05);
  border: none;
  margin: 0;
  background: #fff;
  color: #245742;
  transition: background 0.14s, color 0.14s, box-shadow 0.14s;
}
.cookie-consent-banner button.accept {
  background: #245742;
  color: #fff;
}
.cookie-consent-banner button.accept:hover,
.cookie-consent-banner button.accept:focus {
  background: #2c764c;
  color: #fff;
}
.cookie-consent-banner button.reject {
  background: #fff;
  color: #245742;
  border: 1px solid #8FA96B;
}
.cookie-consent-banner button.reject:hover,
.cookie-consent-banner button.reject:focus {
  background: #fbeeeb;
  color: #bb2c2c;
}
.cookie-consent-banner button.settings {
  background: #8FA96B;
  color: #fff;
}
.cookie-consent-banner button.settings:hover,
.cookie-consent-banner button.settings:focus {
  background: #245742;
  color: #fff;
}

/* Cookie modal */
.cookie-settings-modal {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(36,87,66,0.18);
  z-index: 1700;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.34s;
}
.cookie-settings-modal.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-settings-modal .modal-content {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 6px 60px 0 rgba(36,87,66,0.16);
  padding: 34px 28px 26px 28px;
  max-width: 400px;
  width: 96vw;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
.cookie-settings-modal h2 {
  margin-bottom: 10px;
  font-size: 1.28rem;
  color: #245742;
}
.cookie-settings-modal .category-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  padding: 8px 0 8px 0;
}
.cookie-settings-modal label {
  flex: 1;
  color: #245742;
  font-size: 1rem;
}
.cookie-settings-modal input[type="checkbox"]:disabled + label {
  color: #8FA96B;
}
.cookie-settings-modal .close-modal {
  position: absolute;
  right: 18px;
  top: 18px;
  background: transparent;
  color: #245742;
  font-size: 1.7rem;
  border-radius: 7px;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  display: flex;
  transition: background 0.17s;
}
.cookie-settings-modal .close-modal:hover,
.cookie-settings-modal .close-modal:focus {
  background: #8FA96B;
  color: #fff;
}
.cookie-settings-modal .save-cookies {
  background: #245742;
  color: #fff;
  border: none;
  border-radius: 22px;
  font-size: 1rem;
  font-weight: 700;
  padding: 11px 0;
  margin-top: 10px;
  width: 100%;
  box-shadow: 0 1px 8px 0 rgba(36,87,66,0.07);
  transition: background 0.15s;
}
.cookie-settings-modal .save-cookies:hover,
.cookie-settings-modal .save-cookies:focus {
  background: #8FA96B;
  color: #fff;
}

/* =========================================
   TYPOGRAPHY, LISTS & MISC. ELEMENTS
   ========================================= */
p {
  margin-bottom: 1.1em;
}
ul, ol {
  margin-top: 0.6em;
  margin-bottom: 1.5em;
  padding-left: 1.6em;
  color: #284737;
  font-size: 1.02em;
  font-family: 'Open Sans', Arial, sans-serif;
}
ul li strong, ol li strong {
  color: #245742;
}
a {
  color: #245742;
  transition: color 0.18s;
}
a:hover, a:focus {
  color: #8FA96B;
  text-decoration: underline;
}
blockquote {
  padding-left: 16px;
  border-left: 3px solid #8FA96B;
  font-style: italic;
  background: none;
  color: #245742;
  margin-bottom: 0.5em;
}

/* ======================= RESPONSIVE DESIGN ======================== */
@media (max-width: 1200px) {
  .container {
    max-width: 1002px;
  }
}
@media (max-width: 900px) {
  .container {
    max-width: 740px;
  }
  .footer-flex {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }
  .header-flex {
    gap: 12px;
  }
}
@media (max-width: 768px) {
  .container {
    max-width: 98vw;
    padding-left: 13px;
    padding-right: 13px;
  }
  .footer-flex {
    flex-direction: column;
    gap: 20px;
    padding: 25px 0 16px 0;
  }
  .header-flex {
    flex-direction: row;
    gap: 8px;
    padding-top: 8px;
    padding-bottom: 8px;
  }
  .features-grid {
    flex-direction: column;
    gap: 20px;
  }
  .services-list {
    flex-direction: column;
    gap: 18px;
  }
  .team-bios {
    flex-direction: column;
    gap: 16px;
  }
  .card-container, .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
  }
  .case-study {
    margin-bottom: 16px;
    padding: 16px 10px;
  }
  .footer-nav, .footer-contact {
    align-items: flex-start;
  }
  section, .section {
    margin-bottom: 34px;
    padding: 25px 0 0 0;
  }
  .hero-section {
    padding: 36px 0 20px 0;
    border-radius: 0 0 18px 18px;
  }
}
@media (max-width: 540px) {
  .header-flex {
    gap: 4px;
    min-height: 62px;
  }
  h1 {
    font-size: 1.32rem;
  }
  h2 {
    font-size: 1.12rem;
  }
  .btn-primary {
    padding: 10px 16px;
    font-size: 0.97rem;
  }
  .testimonial-card {
    padding: 14px 8px;
    font-size: 0.98rem;
    border-radius: 8px;
  }
  .footer-flex {
    padding: 17px 0 9px 0;
  }
  .case-study {
    border-radius: 7px;
  }
  .cookie-settings-modal .modal-content {
    padding: 22px 8px 14px 8px;
  }
}

/* ===================
   ANIMATIONS
   =================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.hero-section, .testimonial-card, .card, .features-grid > div, .services-list > div, .team-bios > div {
  animation: fadeInUp 0.9s cubic-bezier(.41,.9,.21,1) both;
}

/* ====================
   MISC & OVERRIDES
   ==================== */
::-webkit-input-placeholder { color: #acb9a1; }
::-moz-placeholder { color: #acb9a1; }
:-ms-input-placeholder { color: #acb9a1; }
::placeholder { color: #acb9a1; }

body {
  background: #fff;
}

/* Ensure no elements overlap and maintain spacing */
.card, .card-container > *, .features-grid > *, .services-list > *, .team-bios > *, .testimonial-card, .case-study, .text-image-section > * {
  margin-bottom: 0 !important;
}

/* Selectors for special lists (Kontakt icons) */
.content-wrapper ul img {
  margin-right: 7px;
  vertical-align: middle;
  width: 24px;
  height: 24px;
  display: inline-block;
}
.content-wrapper ul li a {
  color: #245742;
}
.content-wrapper ul li a:hover, .content-wrapper ul li a:focus {
  color: #8FA96B;
  text-decoration: underline;
}

/* Accessibility: Focus outlines for interactive elements */
a:focus, button:focus, .btn-primary:focus {
  outline: 2px dashed #8FA96B;
  outline-offset: 2px;
}

/* End of CSS */
