/* ===================================================
   CSS Reset & Normalize for Consistent Rendering
=================================================== */
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F6F6F3;
  color: #22313F;
  font-family: 'Open Sans', Arial, sans-serif;
  min-height: 100vh;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}
ul, ol {
  list-style: none;
}
a {
  text-decoration: none;
  color: #345b3c;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #6d8c5f;
}
img {
  max-width: 100%;
  display: block;
  border: 0;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
  color: inherit;
}
*, *:before, *:after {
  box-sizing: inherit;
}

/* =============================================
   VARIABLES for Colors & Brand
============================================= */
:root {
  --color-primary: #22313F;
  --color-secondary: #7FA59E;
  --color-accent: #F6F6F3;
  --color-earth: #e5ddd3;
  --color-green: #6d8c5f;
  --color-brown: #a47c56;
  --color-shadow: rgba(60,78,67,0.08);
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;
}

/* ==========================
   Generic Containers
========================== */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* =====================================
   TYPOGRAPHY
===================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: 0.01em;
}

h1 {
  font-size: 2.25rem;
  line-height: 1.1;
  margin-bottom: 16px;
}
h2 {
  font-size: 1.5rem;
  line-height: 1.2;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}
h4, h5, h6 {
  font-size: 1rem;
}
p, li, address {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: #22313F;
}
p {
  margin-bottom: 12px;
}
ul, ol {
  margin-bottom: 16px;
  padding-left: 20px;
}
ul li, ol li {
  margin-bottom: 8px;
  position: relative;
}
ul li::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #a47c56;
  margin-right: 10px;
  vertical-align: middle;
}
strong {
  font-weight: 700;
  color: #6d8c5f;
}
address {
  font-style: normal;
  margin-bottom: 16px;
}

/* =====================================
   HEADER / MAIN NAVIGATION
===================================== */
header {
  background: #E5DDD3;
  box-shadow: 0 2px 4px var(--color-shadow);
  border-bottom-left-radius: 40px 30px;
  border-bottom-right-radius: 40px 30px;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  position: relative;
  gap: 18px;
  min-height: 64px;
}
header img {
  height: 44px;
  width: auto;
}
nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
nav a {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  padding: 9px 16px;
  color: var(--color-primary);
  border-radius: 18px;
  transition: background 0.2s, color 0.2s;
  position: relative;
}
nav a:hover, nav a:focus {
  color: var(--color-accent);
  background: var(--color-green);
}
.cta-btn {
  background: var(--color-green);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 28px 18px 30px 16px/24px 20px 22px 18px;
  box-shadow: 0 2px 10px 0 var(--color-shadow);
  cursor: pointer;
  margin-left: 12px;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  outline: none;
  border: none;
  position: relative;
  z-index: 2;
}
.cta-btn:hover, .cta-btn:focus {
  background: #22313F;
  color: #fff;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 24px 0 rgba(132,132,94,0.13);
}

/* ===============================
   MOBILE NAVIGATION & HAMBURGER
=============================== */
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  line-height: 1;
  color: var(--color-primary);
  background: none;
  border: none;
  padding: 8px 16px;
  border-radius: 18px;
  cursor: pointer;
  margin-left: 16px;
  transition: background 0.2s;
  z-index: 1500;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #e5ddd3;
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2000;
  background: rgba(34,49,63,0.96);
  transition: transform 0.32s cubic-bezier(0.87,0,0.13,1), opacity 0.32s;
  transform: translateX(100%);
}
.mobile-menu.open {
  display: block;
  transform: translateX(0);
  opacity: 1;
}
.mobile-menu-close {
  position: absolute;
  top: 28px;
  right: 26px;
  font-size: 2rem;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 2010;
  padding: 10px;
  border-radius: 50%;
  transition: background 0.15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: rgba(127, 165, 158, 0.25);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
  padding: 90px 30px 40px 36px;
  gap: 20px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.25rem;
  font-family: var(--font-display);
  font-weight: 600;
  padding: 16px 12px;
  border-radius: 22px;
  width: 100%;
  transition: background 0.18s, color 0.18s;
  background: none;
  margin-bottom: 2px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #6d8c5f;
  color: #fff;
}

@media (max-width: 1024px) {
  nav {
    gap: 10px;
  }
}
@media (max-width: 900px) {
  nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .cta-btn {
    margin-left: 0;
  }
}

/* ===============================
   MAIN: SECTIONS & FLEX LAYOUTS
=============================== */
main {
  min-height: 70vh;
  margin-bottom: 80px;
  background: var(--color-accent);
  border-radius: 36px 36px 0 0 / 32px 32px 0 0;
  box-shadow: 0 2px 16px var(--color-shadow);
  padding-top: 12px;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  display: flex;
  justify-content: center;
  align-items: stretch;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 7px 21px 0 var(--color-shadow);
  overflow: visible;
  position: relative;
  margin-top: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
  justify-content: flex-start;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #F6F6F3;
  box-shadow: 0 4px 16px var(--color-shadow);
  border-radius: 20px 28px 24px 14px/20px 18px 24px 16px;
  padding: 32px 28px;
  min-width: 260px;
  max-width: 100%;
  flex: 1 1 320px;
  transition: box-shadow 0.23s, transform 0.22s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 32px 0 rgba(109,140,95,0.09);
  transform: translateY(-4px) scale(1.03);
}

.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;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 24px;
  background: #fffce8;
  border-radius: 20px 16px 28px 16px/18px 18px 22px 18px;
  box-shadow: 0 2px 16px 0 rgba(164,124,86,0.09);
  margin-bottom: 20px;
  min-width: 220px;
  max-width: 540px;
  border-left: 5px solid #7FA59E;
  transition: box-shadow 0.2s;
  position: relative;
}
.testimonial-card p {
  color: #22313F;
  font-size: 1.08rem;
}
.testimonial-author {
  font-weight: 700;
  color: #6d8c5f;
  font-size: 1rem;
}
.testimonial-rating {
  color: #a47c56;
  font-size: 1.15rem;
  letter-spacing: 0.14rem;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 6px 28px rgba(127,165,158,0.17);
}

.expertise-list,
.service-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 34px;
  align-items: flex-start;
  margin-top: 20px;
}
.expertise-list ul,
.service-grid > div {
  margin-bottom: 0;
  padding: 0;
}
.service-grid > div {
  background: #F6F6F3;
  border-radius: 20px 18px 32px 20px/18px 22px 16px 24px;
  box-shadow: 0 1px 16px 0 var(--color-shadow);
  padding: 26px 18px 18px 20px;
  min-width: 240px;
  flex: 1 1 230px;
  margin-bottom: 20px;
}
.service-grid h3 {
  font-size: 1.08rem;
  margin-bottom: 10px;
}
.service-preis {
  margin-top: 10px;
  font-weight: 700;
  color: var(--color-brown);
  font-size: 1.04rem;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 18px;
}
@media (max-width: 920px) {
  .service-grid {
    flex-direction: column;
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 8px;
  }
  main, section, .card, .testimonial-card {
    border-radius: 12px;
  }
  section {
    padding: 24px 6px;
    margin-bottom: 42px;
    margin-top: 10px;
  }
  .service-grid {
    gap: 16px;
  }
  .testimonial-card {
    font-size: .98rem;
    padding: 16px 12px;
  }
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }
  .content-grid, .card-container, .service-grid {
    flex-direction: column;
    gap: 20px;
  }
}
@media (max-width: 600px) {
  h1 {
    font-size: 1.5rem;
  }
  h2 {
    font-size: 1.14rem;
  }
  .cta-btn {
    padding: 10px 18px;
    font-size: .96rem;
  }
  main {
    padding-top: 0;
  }
}

/* =====================================
   FOOTER
===================================== */
footer {
  background: #22313F;
  color: #fff;
  border-top-left-radius: 32px 30px;
  border-top-right-radius: 32px 30px;
  margin-top: 60px;
  box-shadow: 0 -2px 16px 0 var(--color-shadow);
  padding: 22px 0 14px 0;
}
footer .container {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
}
footer nav {
  display: flex;
  gap: 18px;
  align-items: center;
}
footer nav a {
  color: #F6F6F3;
  font-size: .97rem;
  font-family: var(--font-body);
  transition: color .14s;
}
footer nav a:hover, footer nav a:focus {
  color: #7FA59E;
}
.footer-contact {
  color: #ddd;
  font-size: .93rem;
  font-family: var(--font-body);
}
@media (max-width: 700px) {
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
  }
  footer nav {
    gap: 11px;
    flex-wrap: wrap;
  }
}

/* =====================================
   FORMS & ADDRESS
===================================== */
address img {
  width: 17px;
  vertical-align: middle;
  margin-right: 7px;
}
address div {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}
address a {
  color: #6d8c5f;
}
address a:hover, address a:focus {
  color: #22313F;
  text-decoration: underline;
}

/* =====================================
   COOKIE CONSENT BANNER & MODAL
===================================== */
.cookie-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #fffce8;
  box-shadow: 0 -2px 18px rgba(34,49,63,0.08);
  padding: 20px 20px 16px 24px;
  z-index: 2200;
  border-top-left-radius: 34px 18px;
  border-top-right-radius: 34px 18px;
  font-size: 1rem;
  animation: slideup-cookie .7s cubic-bezier(0.87,0,0.13,1);
}
@keyframes slideup-cookie {
  0% { transform: translateY(100%); opacity:0; }
  80% { transform: translateY(-6px); }
  100% { transform: translateY(0); opacity:1; }
}
.cookie-banner p {
  color: #22313F;
  font-size: 1rem;
  flex: 2;
}
.cookie-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}
.cookie-btn {
  padding: 10px 18px;
  font-size: 1rem;
  border-radius: 20px;
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 8px 0 var(--color-shadow);
  font-weight: 700;
  margin-right: 2px;
  transition: background 0.15s, color 0.15s, transform 0.1s;
}
.cookie-btn.accept {
  background: #6d8c5f;
  color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #22313F;
}
.cookie-btn.reject {
  background: #a47c56;
  color: #fff;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #7FA59E;
}
.cookie-btn.settings {
  background: #f6f6f3;
  color: #22313F;
  border: 1.5px solid #7FA59E;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #e5ddd3;
}

/* COOKIE MODAL */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  z-index: 2300;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(34,49,63,0.3);
  transition: opacity 0.3s;
  justify-content: center;
  align-items: center;
}
.cookie-modal-overlay.open {
  display: flex;
  opacity: 1;
}
.cookie-modal {
  background: #F6F6F3;
  border-radius: 24px 22px 22px 28px/20px 22px 18px 22px;
  box-shadow: 0 12px 48px 0 var(--color-shadow);
  padding: 38px 30px 28px 30px;
  max-width: 460px;
  width: 94vw;
  position: relative;
  animation: fadein-modal 0.3s cubic-bezier(0.87,0,0.13,1);
}
@keyframes fadein-modal {
  0% { transform: translateY(40px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-modal h2 {
  margin-bottom: 18px;
}
.cookie-category-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 22px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  background: #fff;
  border-radius: 12px;
  padding: 13px 12px 11px 13px;
  border: 1px solid #e5ddd3;
}
.cookie-category input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #6d8c5f;
  border-radius: 6px;
  cursor: pointer;
}
.cookie-category .category-label strong {
  margin-right: 5px;
}
.cookie-modal-actions {
  display: flex;
  gap: 17px;
  justify-content: flex-end;
}
.cookie-modal-close {
  position: absolute;
  top: 17px; right: 22px;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: #22313F;
  cursor: pointer;
  border-radius: 50%;
  padding: 4px 8px;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #e5ddd3;
}
.cookie-category[data-essential="true"] input {
  pointer-events: none;
  opacity: 0.6;
}

@media (max-width: 600px) {
  .cookie-modal {
    padding: 24px 7px 15px 13px;
    max-width: 95vw;
  }
  .cookie-banner{
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
    padding: 15px 7px 9px 10px;
    font-size: .96rem;
  }
}

/* =====================================
   MICRO-INTERACTIONS & BUTTON FEEDBACK
===================================== */
button, .cta-btn, .cookie-btn {
  transition: background 0.18s, color 0.18s, box-shadow 0.12s, transform 0.14s;
}
button:active, .cta-btn:active, .cookie-btn:active {
  transform: scale(0.96);
  box-shadow: 0 1px 4px 0 rgba(169,122,74,.13);
}

/* =====================================
   ACCESSIBILITY UTILITIES
===================================== */
:focus-visible {
  outline: 3px solid #7FA59E;
  outline-offset: 2px;
}

/* =====================================
   ORGANIC SHAPES DECORATION (subtle)
===================================== */
.section::before, .section::after {
  content: '';
  position: absolute;
  z-index: 0;
  border-radius: 32% 68% 48% 52%/59% 47% 53% 41%;
}
.section::before {
  background: rgba(127,165,158,.1);
  width: 110px; height: 54px;
  top: -24px; left: -33px;
  filter: blur(2px);
}
.section::after {
  background: rgba(164,124,86,.09);
  width: 120px; height: 34px;
  right: -40px; bottom: -12px;
  filter: blur(1.5px);
}
@media (max-width: 700px) {
  .section::before, .section::after {
    display: none;
  }
}

/* organic shadow for cta buttons */
.cta-btn {
  box-shadow: 0 8px 24px 0 rgba(127,165,158,0.08);
}

/* ========================================
  RESPONSIVE UX: HIDE/SHOW NAVIGATION
======================================== */
@media (max-width: 1024px) {
  .container {
    max-width: 94vw;
  }
}
@media (max-width: 480px) {
  footer, main, header {
    border-radius: 0 !important;
  }
}

/* ==============================
   PRINT STYLES (BASIC)
============================== */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal-overlay {
    display: none !important;
  }
  main, section, .container {
    box-shadow: none !important;
    background: #fff !important;
    padding: 0 !important;
  }
}

/* END OF STYLES */