/* ---------------------------------------------------------------
  Wurzelwerk – "elegant_classic" CSS SYSTEM
  CONSISTENT FLEXBOX-ONLY LAYOUT (NO CSS GRID!), RESPONSIVE, MODERN
  Serif fonts, muted greens, gold accent, timeless whitespace/classics
-------------------------------------------------------------------*/

/* ---------------------------- CSS RESET ----------------------------- */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
  border: 0;
}
body {
  font-family: 'Roboto', 'Georgia', serif;
  font-size: 1rem;
  line-height: 1.7;
  color: #222;
  background: #F0F5F0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Georgia', serif;
  font-weight: 600;
  color: #256536;
  line-height: 1.14;
  margin-bottom: 0.5em;
}
h1 { font-size: 2.75rem; letter-spacing: -1px; margin-bottom: 0.6em; }
h2 { font-size: 2.125rem; margin-bottom: 0.5em; }
h3 { font-size: 1.375rem; margin-bottom: 0.4em; }
h4 { font-size: 1.125rem; }
h5, h6 { font-size: 1rem; }

p, ul, ol, li {
  font-size: 1rem;
  color: #2e3523;
  margin-bottom: 1em;
}
strong { font-weight: 600; color: #256536; font-family: 'Montserrat', serif; }
em { font-style: italic; }
a {
  color: #256536;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #A37425;
  text-decoration: underline;
}
ul, ol {
  padding-left: 1.4em;
  margin-bottom: 1.25em;
}
img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}
button {
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
  outline: none;
}

/* ------------ Layout Containers ----------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  display: flex;
  flex-direction: column;
  gap: 0px;
}
.content-wrapper {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0px;
  align-items: flex-start;
}

/* ----------------- Header & Navbar ----------------- */
header {
  background: #fff;
  border-bottom: 1px solid #e4e9e4;
  box-shadow: 0 2px 8px -4px rgba(37,101,54,0.04);
  position: relative;
  z-index: 90;
}
header .container {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  min-height: 72px;
  gap: 24px;
}
header a img {
  height: 43px;
  margin-right: 15px;
  vertical-align: middle;
}
.main-nav {
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', serif;
  font-size: 1rem;
  font-weight: 500;
  color: #256536;
  letter-spacing: 0.02em;
  padding: 8px 0;
  transition: color 0.2s;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a:focus {
  color: #A37425;
  border-bottom: 2px solid #A37425;
  background: none;
}
.cta-btn {
  display: inline-block;
  font-family: 'Montserrat', serif;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: #256536;
  border-radius: 26px;
  padding: 10px 32px;
  margin-left: 18px;
  box-shadow: 0 2px 8px -3px rgba(37,101,54,0.11);
  letter-spacing: 0.02em;
  border: 1px solid #256536;
  transition: background 0.18s, color 0.18s, box-shadow 0.2s, border-color 0.18s;
}
.cta-btn:hover, .cta-btn:focus {
  background: #A37425;
  color: #fff;
  border-color: #A37425;
  box-shadow: 0 4px 16px -6px rgba(167,116,37,0.20);
}

/* --------- Mobile Menu (Burger) --------- */
.mobile-menu-toggle {
  display: none;
  background: none;
  font-size: 2rem;
  color: #256536;
  margin-left: 12px;
  z-index: 120;
  line-height: 1;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  transition: background 0.2s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #e4e9e4;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #fff;
  z-index: 200;
  padding: 30px 38px 20px 38px;
  transform: translateX(-100%);
  transition: transform 0.36s cubic-bezier(.86,0,.07,1);
  box-shadow: 0 0 16px 0 rgba(37,101,54,0.13);
  height: 100vh;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  font-size: 2.2rem;
  color: #256536;
  margin-bottom: 28px;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  transition: background 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #e4e9e4;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}
.mobile-nav a {
  font-family: 'Montserrat', serif;
  font-size: 1.125rem;
  padding: 9px 0 9px 0;
  color: #256536;
  font-weight: 500;
  border-radius: 5px;
  transition: background 0.15s, color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #e2e8e2;
  color: #A37425;
}

@media (max-width: 1000px) {
  .main-nav, .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (max-width: 480px) {
  .mobile-menu {
    padding: 20px 12px 20px 18px;
  }
}

/* --------------------- HERO SECTIONS --------------------- */
.hero-section {
  background: #F0F5F0;
  padding: 48px 0 44px 0;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-section h1 {
  font-family: 'Montserrat', 'Georgia', serif;
  font-size: 2.85rem;
  color: #256536;
  margin-bottom: 0.5em;
  letter-spacing: -1.5px;
}
.hero-section .subheadline {
  font-family: 'Roboto', serif;
  font-size: 1.25rem;
  color: #4e5832;
  letter-spacing: 0.01em;
  margin-bottom: 1.2em;
}

/* --------------- SECTION & SPACING UTILS --------------- */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 4px 30px -8px rgba(37,101,54,0.07);
}
section:last-child { margin-bottom: 0; }
@media (max-width: 900px) {
  section {padding: 32px 8px;}
}
@media (max-width: 600px) {
  section {padding: 18px 0.5em; border-radius: 10px; margin-bottom: 28px;}
}

/* ---------------- FEATURE/GRID/FLEX LAYOUTS ---------------- */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-top: 18px;
  margin-bottom: 12px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 10px -2px rgba(37,101,54,0.09);
  padding: 28px 30px;
  min-width: 260px;
  transition: box-shadow 0.2s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 36px -7px rgba(167,116,37,0.13);
}
.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;
}
@media (max-width: 800px) {
  .feature-grid, .card-container, .content-grid, .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #F0F5F0;
  border-radius: 14px;
  box-shadow: 0 2.5px 9px -3px rgba(37,101,54,0.05);
  padding: 26px 20px 18px 22px;
  min-width: 210px;
  flex: 1 1 250px;
  margin-bottom: 12px;
  transition: box-shadow 0.21s;
}
.feature-item img {
  width: 38px;
  margin-bottom: 3px;
}
.feature-item strong {
  color: #A37425;
}
.feature-item h3 {
  font-size: 1.18rem;
}
.feature-item:hover, .feature-item:focus-within {
  box-shadow: 0 6px 28px -8px rgba(167,116,37,0.13);
  transform: translateY(-2px) scale(1.012);
}

/* ----------- Testimonial Card --------- */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fffdf8;
  color: #2b301d;
  border-radius: 18px;
  box-shadow: 0 2px 10px -3px rgba(167,116,37,0.07);
  margin-bottom: 20px;
  border-left: 5px solid #A37425;
}
.testimonial-card strong {
  font-size: 1rem;
  font-family: 'Montserrat', serif;
  color: #256536;
  margin-left: 10px;
}
.testimonial-card p {
  color: #2b301d;
}
.testimonial-card:last-child { margin-bottom: 0; }

@media (max-width: 600px) {
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
    padding: 14px 11px;
    border-left-width: 3px;
  }
}

/* --------- Pricing Teaser / CTA Block ---------- */
.pricing-teaser, .cta-block {
  background: #F0F5F0;
  padding: 26px 20px 18px 26px;
  border-radius: 13px;
  box-shadow: 0 2px 14px -10px rgba(37,101,54,0.08);
  margin-top: 22px;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

/* --------- Misc Content Utilities ---------- */
.text-section {
  margin-bottom: 18px;
}
.faq-accordion ul {
  padding-left: 16px;
}

.case-study {
  background: #f8f6ed;
  border-left: 5px solid #256536;
  border-radius: 13px;
  padding: 20px 18px 16px 22px;
  margin-bottom: 20px;
  box-shadow: 0 1.5px 8px -6px rgba(37,101,54,0.06);
}
.case-study h3 {
  font-size: 1.12rem;
  color: #256536;
  margin-bottom: 0.4em;
}

.project-type-tags {
  margin-top: 12px;
  display: flex;
  flex-direction: row;
  gap: 8px;
  font-size: 1rem;
  color: #948944;
  flex-wrap: wrap;
}
.project-type-tags strong { color: #256536; }
.project-type-tags span {
  padding: 2px 10px;
  border-radius: 16px;
  background: #e8e0cf;
  color: #A37425;
  font-family: 'Montserrat', serif;
  font-size: 0.98em;
  margin-right: 3px;
}

.map-placeholder {
  background: #e7eee2;
  color: #496348;
  border-radius: 13px;
  padding: 17px 18px;
  margin: 14px 0;
  font-style: italic;
  min-height: 34px;
}

/* -------- FOOTER --------- */
footer {
  background: #256536;
  color: #ffffff;
  padding: 42px 0 22px 0;
}
footer .container {
  gap: 14px;
}
.footer-main {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 48px;
  align-items: flex-start;
  margin-bottom: 18px;
}
.footer-main a img {
  height: 39px;
  margin-bottom: 12px;
}
.footer-nav, .footer-legal {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-nav a, .footer-legal a {
  color: #e0f2df;
  font-family: 'Montserrat', serif;
  margin-bottom: 2px;
  transition: color 0.18s;
  font-size: 1.01em;
}
.footer-nav a:hover, .footer-legal a:hover {
  color: #B18217;
}
.footer-contact {
  font-size: 0.97rem;
  color: #e0f2df;
  margin-top: 8px;
}
.footer-contact .brand-tagline {
  color: #B18217;
  font-family: 'Montserrat', serif;
  font-weight: 500;
  font-size: 1.06em;
}
footer a {
  color: #e0f2df;
  text-decoration: underline;
}
footer a:hover {
  color: #B18217;
}

@media (max-width: 820px) {
  .footer-main { flex-direction: column; gap: 24px; }
}
@media (max-width: 600px) {
  footer .container {padding: 16px 4px;}
  .footer-contact { font-size: 0.94rem; }
}

/* --------------------------------------------------
 SPACING and ALIGNMENT PATTERNS - MANDATORY CLASSES
-------------------------------------------------- */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}
.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;
  align-items: center;
  gap: 20px;
  padding: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ------------------- RESPONSIVE MEDIA QUERIES ------------------- */
@media (max-width: 900px) {
  html { font-size: 15px; }
  header .container { gap: 0; }
  .footer-main, .feature-grid, .content-grid, .card-container {
    flex-direction: column;
    gap: 18px;
  }
}
@media (max-width: 768px) {
  html { font-size: 14px;}
  .text-image-section { flex-direction: column; align-items: flex-start; gap: 20px;}
  .hero-section h1, h1 { font-size: 2.15rem; }
  h2 { font-size: 1.325rem;}
}
@media (max-width: 490px) {
  html { font-size: 13.5px;}
  .feature-item, .card { min-width: 0; padding: 14px 6px; }
}

/* ---------------- BUTTONS, FORMS & MICRO-INTERACTIONS ---------------- */
button, .cta-btn, input[type=submit], input[type=button] {
  transition: background 0.2s, color 0.14s, border-color 0.17s, box-shadow 0.21s, transform 0.15s;
}
button:active, .cta-btn:active, input[type=submit]:active, input[type=button]:active {
  transform: scale(0.98);
}
input, textarea, select {
  font-family: inherit;
  font-size: 1.02em;
  padding: 10px 12px;
  border: 1.5px solid #dcdedd;
  border-radius: 8px;
  background: #fff;
  margin-bottom: 18px;
  transition: border-color 0.16s;
}
input:focus, textarea:focus, select:focus {
  border-color: #256536;
  outline: none;
}

/* ------------- Animations -------------------- */
@keyframes fadeInUp {
  0% {opacity:0; transform: translateY(24px);}
  100% {opacity:1; transform: translateY(0);}
}
.hero-section, section, .card, .feature-item, .testimonial-card, .case-study {
  animation: fadeInUp 0.7s cubic-bezier(.75,.02,.23,1);
}
/* ------------------- COOKIE CONSENT BANNER ------------------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 220;
  background: #fff9ee;
  box-shadow: 0 -2px 20px -9px rgba(37,101,54,0.15);
  border-top: 2px solid #B18217;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 26px;
  padding: 20px 22px 18px 22px;
  min-height: 60px;
  font-family: 'Roboto', serif;
  font-size: 1.01rem;
  color: #2a2f1d;
  visibility: visible;
  opacity: 1;
  transition: opacity 0.38s;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}
.cookie-banner .cookie-btn {
  font-family: 'Montserrat', serif;
  padding: 7px 22px;
  margin-left: 9px;
  border-radius: 22px;
  border: 1px solid #dfdfc7;
  font-weight: 500;
  font-size: 1rem;
  background: #efe7d0;
  color: #256536;
  margin-right: 5px;
  transition: background 0.18s, color 0.11s, border-color 0.16s;
}
.cookie-banner .cookie-btn.accept {
  background: #256536;
  color: #fff;
  border-color: #256536;
}
.cookie-banner .cookie-btn.accept:hover {
  background: #A37425;
  border-color: #A37425;
}
.cookie-banner .cookie-btn.reject {
  background: #f3eadd;
  color: #A37425;
  border-color: #B18217;
}
.cookie-banner .cookie-btn.reject:hover {
  background: #e8dfa8;
  color: #6a4c10;
  border-color: #B18217;
}
.cookie-banner .cookie-btn.settings {
  background: #efe7d0;
  color: #B18217;
  border-color: #B18217;
}
.cookie-banner .cookie-btn.settings:hover {
  background: #F0F5F0;
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
    font-size: 0.95rem;
    padding: 12px 7px 10px 7px;
  }
  .cookie-banner .cookie-btn {
    margin-left: 0; margin-right: 8px;
    min-width: 108px;
    margin-top: 3px;
  }
}

/* ---------- COOKIE SETTINGS MODAL/POPUP ----------- */
.cookie-modal {
  position: fixed;
  z-index: 300;
  left: 0;right: 0;top: 0;bottom: 0;
  background: rgba(28,33,16,0.48);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal .cookie-modal-content {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 12px 36px -13px rgba(37,101,54,0.11);
  max-width: 410px;
  width: 94vw;
  padding: 36px 28px 33px 28px;
  display: flex;
  flex-direction: column;
  gap: 19px;
  align-items: stretch;
  position: relative;
  font-family: 'Roboto', serif;
}
.cookie-modal-close {
  position: absolute;
  top: 14px; right: 14px;
  background: none;
  font-size: 2rem;
  color: #256536;
  border-radius: 50%;
  width: 39px; height: 39px;
  transition: background 0.17s;
}
.cookie-modal-close:hover {
  background: #e4e9e4;
}
.cookie-modal .modal-title {
  font-family: 'Montserrat', serif;
  color: #256536;
  font-size: 1.3rem;
  margin-bottom: 0.5em;
  margin-top: -8px;
  font-weight: 600;
}
.cookie-modal .cookie-category {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 6px;
}
.cookie-modal .category-label {
  font-family: 'Montserrat', serif;
  color: #4e5832;
  font-weight: 600;
  min-width: 128px;
  font-size: 1.06em;
}
.cookie-modal .category-toggle {
  margin-left: auto;
}
.cookie-modal .toggle-switch {
  position: relative;
  width: 45px;
  height: 23px;
  display: inline-block;
}
.toggle-switch input {
  opacity: 0;
  width: 0; height: 0;
}
.slider {
  position: absolute; cursor: pointer;
  top:0; left:0; right:0; bottom:0;
  background-color: #d2dacd;
  border-radius: 21px;
  transition: background 0.19s;
}
.slider:before {
  position: absolute; content: "";
  height: 17px; width: 17px;
  left: 3px; bottom: 3px;
  background-color: #fff;
  border-radius: 50%;
  transition: .2s;
  box-shadow: 0 0.4px 4px -3px #25653686;
}
.toggle-switch input:checked + .slider {
  background-color: #256536;
}
.toggle-switch input:checked + .slider:before {
  transform: translateX(20px);
  background: #A37425;
}
.cookie-modal .always-on {
  font-size: 0.95rem;
  color: #B18217;
}
.cookie-modal .cookie-modal-actions {
  margin-top: 12px;
  display: flex;
  flex-direction: row;
  gap: 14px;
  justify-content: flex-end;
}
.cookie-modal .cookie-btn {
  font-family: 'Montserrat', serif;
  padding: 7px 22px;
  border-radius: 22px;
  border: 1.4px solid #dfdfc7;
  font-weight: 500;
  font-size: 1rem;
  background: #efe7d0;
  color: #256536;
  margin-right: 5px;
  transition: background 0.18s, color 0.11s, border-color 0.16s;
}
.cookie-modal .cookie-btn.save {
  background: #256536;
  color: #fff;
  border-color: #256536;
}
.cookie-modal .cookie-btn.save:hover {
  background: #A37425;
  border-color: #A37425;
}
.cookie-modal .cookie-btn.cancel {
  background: #e6e6e6;
  color: #874f0f;
  border-color: #dad1b3;
}
.cookie-modal .cookie-btn.cancel:hover {
  background: #d9e8d4;
  color: #256536;
  border-color: #256536;
}
@media (max-width: 435px) {
  .cookie-modal .cookie-modal-content {padding:14px 7px 10px 10px;}
  .cookie-modal .cookie-modal-actions {flex-direction: column;gap:4px;}
}

/* ----------- VISUAL HIERARCHY: TYPOGRAPHY SCALE ---------- */
.text-section h2, .case-study h2, .faq-accordion h3 {
  font-size: 1.44rem;
  color: #256536;
  margin-bottom: 0.6em;
  font-family: 'Montserrat', serif;
  font-weight: 600;
}
.text-section h3, .case-study h3 {
  font-size: 1.12rem;
  color: #A37425;
}

/* ------------------- ACCESSIBILITY / FOCUS STYLE ---------------- */
:focus {
  outline: 2px dashed #A37425;
  outline-offset: 2px;
}
::-webkit-input-placeholder { color: #8b998b; }
::-moz-placeholder { color: #8b998b; }
:-ms-input-placeholder { color: #8b998b; }
::-ms-input-placeholder { color: #8b998b; }
::placeholder { color: #8b998b; }

/* ----------- UTILITY SPACINGS -----------  */
.mb-20 {margin-bottom: 20px !important;}
.mb-32 {margin-bottom: 32px !important;}
.mt-18 {margin-top: 18px !important;}
.mt-32 {margin-top: 32px !important;}
.gap-20 {gap: 20px !important;}
.gap-24 {gap: 24px !important;}

/* ----------- PRINT / REDUCTION ----------- */
@media print { *, *:before, *:after { background: none !important; color: #222 !important; box-shadow: none !important; } }
