/* --- CSS RESET & NORMALIZATION --- */
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
html, body { margin: 0; padding: 0; font-size: 16px; }
body { min-height: 100vh; min-width: 320px; background: #F8F8F5; font-family: 'Open Sans', Arial, Helvetica, sans-serif; color: #253528; font-weight: 400; line-height: 1.6; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 16px 0; font-family: 'Montserrat', Arial, Helvetica, sans-serif; color: #1A374D; font-weight: 700; letter-spacing: 0.01em; }
h1 { font-size: 2.5rem; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.25rem; margin-bottom: 16px; }
p, ul, ol, address { margin-top: 0; margin-bottom: 16px; }
address { font-style: normal; color: #435c2c; font-size: 1rem; }
ul, ol { padding-left: 24px; }
li { margin-bottom: 8px; }
a { color: #336d3d; text-decoration: none; transition: color 0.18s; }
a:hover, a:focus { color: #678a42; text-decoration: underline; }
img { max-width: 100%; display: block; border-radius: 12px; }
button { font-family: inherit; }

/* --- THEME COLORS "nature_organic" --- */
:root {
  --primary: #1A374D; /* Brand primary */
  --secondary: #B1D0E0; /* Brand secondary */
  --accent: #FFFFFF;
  --green-main: #336d3d;
  --green-light: #cbe6c1;
  --earth-brown: #BDAFA3;
  --sand: #EFEBE3;
  --wood: #9B7B5B;
  --mist-blue: #DCEAF2;
  --shadow: 0 3px 16px rgba(66, 72, 65, 0.10); /* soft organic shadow */
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 8px;
  --focus-outline: 2px solid #336d3d;
}

/* --- GLOBAL CONTAINERS AND SECTIONS --- */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
}
.content-wrapper {
  background: var(--accent);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 32px 20px;
  margin-bottom: 24px;
  transition: box-shadow 0.22s;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--green-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  position: relative;
}

/* --- FLEX LAYOUTS (MANDATORY) --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--sand);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 24px 18px;
  flex: 1 1 280px;
}
.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;
  background: #F5FAF6;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  min-width: 250px;
  max-width: 600px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

/* --- HERO SECTION & CTA --- */
.cta-btn {
  padding: 14px 32px;
  background: var(--green-main);
  color: var(--accent);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
  border: none;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 12px rgba(51,109,61,0.07);
  cursor: pointer;
  margin-top: 12px;
  letter-spacing: 0.05em;
  transition: background 0.19s, box-shadow 0.21s, transform 0.17s;
  outline: none;
  display: inline-block;
}
.cta-btn:hover, .cta-btn:focus {
  background: #678a42;
  color: #fff;
  box-shadow: 0 4px 16px rgba(51,109,61,0.19);
  transform: translateY(-1.5px) scale(1.025);
  text-decoration: none;
}

/* --- NAVIGATION --- */
header {
  background: var(--sand);
  border-bottom: 2px solid var(--earth-brown);
  padding: 0;
  position: relative;
  z-index: 50;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  justify-content: center;
  padding: 18px 0;
}
.main-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: var(--green-main);
  font-weight: 500;
  font-size: 1.08rem;
  letter-spacing: 0.02em;
  transition: color 0.15s, background 0.13s;
  border-radius: var(--radius-sm);
  padding: 5px 12px;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--green-light);
  color: #222e1f;
  outline: none;
}
.main-nav img {
  height: 38px;
  width: auto;
  margin-right: 12px;
}

/* --- MOBILE NAVIGATION --- */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 18px;
  top: 14px;
  background: var(--green-light);
  color: var(--green-main);
  font-size: 2.1rem;
  border: none;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  z-index: 1002;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(66, 109, 61, 0.09);
  transition: background 0.17s;
}
.mobile-menu-toggle:focus {
  outline: var(--focus-outline);
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; right: 0;
  bottom: 0;
  background: #f5f9f3ee;
  box-shadow: 0 0 40px rgba(50,90,60,0.14);
  transform: translateX(100%);
  transition: transform 0.33s cubic-bezier(.66,0,.27,1);
  z-index: 1080;
  opacity: 0.99;
  visibility: hidden;
}
.mobile-menu.open {
  transform: translateX(0);
  visibility: visible;
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 17px 22px 0 0;
  background: var(--mist-blue);
  color: var(--green-main);
  font-size: 2rem;
  border: none;
  border-radius: 50%;
  width: 44px; height: 44px;
  cursor: pointer;
  z-index: 1091;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  padding: 25px 36px 36px 36px;
  gap: 24px;
  margin-top: 24px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.25rem;
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 10px 0;
  border-radius: var(--radius-sm);
  transition: background 0.14s, color 0.13s;
  min-width: 170px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--green-light);
  color: #284128;
}

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

/* --- SERVICE CARDS (Dienstleistungen) --- */
.service-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 30px;
}
.service-card {
  flex: 1 1 270px;
  background: var(--sand);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 28px 22px 24px 22px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 250px;
  transition: box-shadow 0.19s, transform 0.16s;
}
.service-card h2 { font-size: 1.22rem; color: var(--green-main); margin-bottom: 12px; }
.service-card p { color: #3b4c2a; font-size: 1rem; margin-bottom: 12px; }
.service-card span { font-weight: bold; color: var(--wood); background: var(--green-light); border-radius: var(--radius-sm); padding: 5px 16px; font-size: 1.04rem; }
.service-card:hover {
  box-shadow: 0 8px 28px rgba(134, 153, 111, .14);
  transform: translateY(-2px) scale(1.026);
}

/* --- FEATURE ICONS --- */
.feature-icons {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.feature-icons img {
  height: 54px;
  width: 54px;
  border-radius: 50%;
  background: var(--mist-blue);
  padding: 9px;
  box-shadow: 0 1px 8px rgba(134, 153, 111,.09);
  border: 3px solid var(--green-light);
}

/* --- TESTIMONIALS --- */
.testimonial-card {
  background: #F5FAF6;
  color: #253528;
  border-left: 8px solid var(--green-main);
  font-size: 1rem;
  font-style: italic;
  font-family: 'Open Sans', Arial, sans-serif;
  line-height: 1.7;
  margin-bottom: 20px;
  box-shadow: 0 5px 22px rgba(51,109,61,0.08);
}
.testimonial-card span {
  font-size: 0.98rem;
  font-style: normal;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #678a42;
  margin-left: 16px;
  font-weight: 600;
}
.testimonial-card p {
  margin-bottom: 0;
}

/* --- CONTACT CARDS --- */
.contact-details {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 16px;
  font-size: 1rem;
  align-items: center;
  color: #27412C;
}
.contact-details p {
  margin: 0 0 10px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.contact-details img { height: 20px; width: auto; margin-right: 4px; }

/* --- FOOTER --- */
footer {
  background: var(--mist-blue);
  border-top: 2px solid var(--earth-brown);
  margin-top: 48px;
  padding: 32px 0 24px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 10px;
  justify-content: center;
}
.footer-menu a {
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: none;
  transition: background 0.12s, color 0.1s;
}
.footer-menu a:hover, .footer-menu a:focus {
  background: var(--green-light);
  color: #678a42;
}
.brand-info {
  color: #60745a;
  font-size: 1.06rem;
  letter-spacing: 0.01em;
  margin-bottom: 0;
}

/* --- COOKIE BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #EFF3EC;
  color: #27412C;
  padding: 26px 18px 20px 18px;
  box-shadow: 0 -4px 36px rgba(60,98,47,0.10);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  z-index: 9999;
  transition: transform 0.29s cubic-bezier(.66,0,.27,1), opacity 0.2s;
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.cookie-banner p {
  margin: 0 0 12px 0;
  font-size: 1rem;
  color: #27412C;
}
.cookie-banner .cookie-btn-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.cookie-btn, .cookie-btn-secondary {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 26px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.15s, color 0.14s, box-shadow 0.17s;
  margin-bottom: 0;
}
.cookie-btn {
  background: var(--green-main);
  color: var(--accent);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #678a42;
  outline: none;
  color: #fff;
}
.cookie-btn-secondary {
  background: #daddce;
  color: #31432b;
}
.cookie-btn-secondary:hover, .cookie-btn-secondary:focus {
  background: #C8C7B8;
  color: #253c21;
}
.cookie-settings-link {
  background: none !important;
  color: var(--green-main); 
  text-decoration: underline;
  cursor: pointer;
  padding: 0 8px;
  border: none;
  font-size: 1rem;
} 

/* --- COOKIE PREFERENCES MODAL --- */
.cookie-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(44,62,44,0.38);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.20s;
}
.cookie-modal.visible {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal-content {
  background: #f9fbf7;
  padding: 38px 30px 24px 30px;
  border-radius: var(--radius-lg);
  min-width: 310px; max-width: 92vw;
  box-shadow: 0 8px 36px rgba(58,109,61,0.16);
  color: #253528;
  display: flex; flex-direction: column; gap: 18px;
  position: relative;
}
.cookie-modal-close {
  position: absolute; right: 22px; top: 18px;
  background: transparent;
  color: #336d3d;
  font-size: 2rem;
  border: none; cursor: pointer;
}
.cookie-modal h2 { margin-bottom: 8px; color: #336d3d; font-size: 1.22rem; }
.cookie-category {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}
.cookie-category label { font-weight: 500; letter-spacing: 0.01em; font-size: 1rem; color: #253528; }
.cookie-toggle {
  width: 48px; height: 28px;
  background: #D6E4D6;
  border-radius: 14px;
  position: relative;
  transition: background 0.14s;
  margin-right: 8px;
}
.cookie-toggle input { display: none; }
.cookie-toggle::before {
  content: "";
  position: absolute;
  left: 3px; top: 4px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #b7dbb7;
  transition: left 0.14s cubic-bezier(.47,1.64,.41,.77);
}
.cookie-toggle input:checked + .toggle-slider {
  background: #669f49;
}
.cookie-toggle input:checked + .toggle-slider::before {
  left: 25px;
  border-color: #336d3d;
}
.toggle-slider {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  cursor: pointer;
}
/* Essential cookies always on / not clickable */
.cookie-category[data-essential] .cookie-toggle {
  background: #cbe6c1;
  opacity: 0.65;
  pointer-events: none;
}
.cookie-category[data-essential] label {
  font-style: italic;
}

/* --- TYPOGRAPHY UTILS AND ORGANIC SHAPES --- */
.text-section { margin: 18px 0 0 0; color: #3b4c2a; font-size: 1.13rem; }

/* Add organic soft corners and random subtle shapes */
.section:before {
  content: "";
  display: block;
  position: absolute;
  left: -44px; top: -26px;
  width: 140px; height: 70px;
  background: #d5e9cf;
  opacity: 0.17;
  border-radius: 65% 37% 60% 41%/58% 42% 56% 62%;
  z-index: 0;
  filter: blur(2px);
}
.section:after {
  content: "";
  display: block;
  position: absolute;
  right: -42px; bottom: -20px;
  width: 80px; height: 36px;
  background: var(--mist-blue);
  opacity: 0.18;
  border-radius: 55% 84% 53% 64%/94% 74% 44% 65%;
  z-index: 0;
  filter: blur(1px);
}
.section > .container, .content-wrapper { position: relative; z-index: 2; }

/* --- RESPONSIVE DESIGN (MOBILE FIRST) --- */
@media (max-width: 768px) {
  .container { padding: 0 8px; }
  .section { margin-bottom: 36px; padding: 23px 5px; }
  .content-wrapper { padding: 16px 6px; }
  .card-container, .content-grid, .service-cards { flex-direction: column; gap: 18px; }
  .feature-icons { gap: 12px; }
  .testimonial-card { max-width: 100%; flex-direction: column; gap: 10px; }
  .text-image-section { flex-direction: column; gap: 18px; }
  .main-nav { display: none; }
  footer { padding: 23px 0 18px 0; }
}

@media (max-width: 520px) {
  h1 { font-size: 1.45rem; }
  h2 { font-size: 1.17rem; }
  h3 { font-size: 1.08rem; }
  .testimonial-card { padding: 13px; }
  .card, .service-card { padding: 13px 9px; }
  .footer-menu { gap: 7px; font-size: 0.93rem; }
  .cta-btn, .cookie-btn, .cookie-btn-secondary { font-size: 0.97rem; padding: 10px 12px; }
}

/* --- FORM FIELDS & UTILS (if future use) --- */
input, textarea, select {
  border: 1.7px solid #cae1c5;
  border-radius: var(--radius-sm);
  background: #f7fff8;
  font-family: inherit;
  font-size: 1rem;
  padding: 10px;
  margin-bottom: 16px;
  width: 100%;
  transition: border 0.13s, box-shadow 0.13s;
}
input:focus, textarea:focus, select:focus {
  outline: var(--focus-outline);
  border: 1.7px solid #336d3d;
  box-shadow: 0 1px 10px rgba(51,109,61,0.08);
}

/* --- FOCUS STATES FOR ACCESSIBILITY --- */
a:focus-visible, button:focus-visible, .cta-btn:focus-visible {
  outline: var(--focus-outline); outline-offset: 2px;
  background: #e4efda;
  color: #336d3d;
}

/* --- MICRO-ANIMATIONS --- */
.cta-btn, .cookie-btn, .cookie-btn-secondary, .mobile-menu-toggle, .mobile-menu-close {
  transition: background 0.16s, box-shadow 0.14s, color 0.12s, transform 0.13s;
}
.cta-btn:active, .cookie-btn:active, .cookie-btn-secondary:active {
  transform: scale(0.97);
}

/* --- UTIL CLASSES --- */
.d-none { display: none !important; }
.flex-center { display: flex; align-items: center; justify-content: center; }

