/* --------------------------------------
   RESET & BASE STYLES (Normalize + Custom)
   -------------------------------------- */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  background: #F7F5F2; /* pale earth */
  color: #35413a; /* earthy dark */
  min-height: 100vh;
  line-height: 1.7;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  display: block;
  border-radius: 12px;
}
a {
  color: #1a4a2b;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #E38236;
  text-decoration: underline;
}
ul, ol {
  margin-left: 24px;
  margin-bottom: 16px;
}
li {
  margin-bottom: 8px;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #204263;
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
  color: #2d4624;
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
  color: #204263;
}
h3 {
  font-size: 1.35rem;
  margin-bottom: 13px;
  color: #34603c;
}
h4, h5, h6 {
  font-size: 1.1rem;
}
p, ul, ol, blockquote {
  font-size: 1rem;
  margin-bottom: 14px;
}
strong {
  color: #15351a;
}
blockquote {
  font-style: italic;
  color: #245931;
  border-left: 4px solid #E38236;
  padding-left: 20px;
  margin: 0 0 16px 0;
  background: #f3f5ef;
  border-radius: 0 16px 16px 0;
}
small {
  font-size: 0.95rem;
  color: #78806b;
}

/* ----------------------
   CONTAINERS & LAYOUT
   ---------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #ffffff;
  border-radius: 32px;
  box-shadow: 0 6px 28px 0 rgba(135, 98, 46, 0.07);
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.card {
  position: relative;
  margin-bottom: 20px;
  background: #f8faf5;
  border-radius: 24px;
  box-shadow: 0 2px 12px 0 rgba(60,90,40,0.07);
  display: flex;
  flex-direction: column;
  padding: 24px 20px 20px 20px;
}
.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: #F4F7FA;
  border-radius: 24px;
  box-shadow: 0 2px 10px 0 rgba(32,66,99,0.10);
  min-width: 0;
  margin-bottom: 20px;
  flex: 1 1 320px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}


/* -------------
   HEADER / NAV
   ------------- */
header {
  background: #f3f5ed;
  padding: 0;
  box-shadow: 0 2px 16px 0 rgba(60,90,40,0.04);
  position: relative;
  z-index: 22;
}
header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 24px;
  width: 100%;
  padding: 0 16px;
}
header nav a img {
  height: 42px;
  width: auto;
  border-radius: 0;
}
nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  list-style: none;
}
nav ul li {
  margin-bottom: 0;
}
nav ul li a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  color: #225c36;
  font-size: 1rem;
  background: none;
  padding: 5px 8px;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}
nav ul li a:hover, nav ul li a:focus {
  background: #e2f4eb;
  color: #204263;
  outline: none;
}
.cta-primary {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  background: #2e7134;
  color: #fff;
  border-radius: 32px 18px 32px 18px/40px 12px 22px 30px; /* organic shape */
  padding: 12px 32px;
  font-size: 1.1rem;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 16px 0 rgba(39,66,24,0.10);
  border: none;
  margin-left: 12px;
  transition: background 0.18s, color 0.2s, box-shadow 0.18s, transform 0.15s;
  cursor: pointer;
  display: inline-block;
}
.cta-primary:hover, .cta-primary:focus {
  background: #E38236;
  color: #fff8ef;
  box-shadow: 0 6px 18px 0 rgba(227,130,54,0.22);
  transform: translateY(-2px) scale(1.015);
}

/* Burger button */
.mobile-menu-toggle {
  display: none;
  background: #2e7134;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 2rem;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  transition: background 0.18s, box-shadow 0.18s;
  position: absolute;
  right: 19px;
  top: 12px;
  z-index: 80;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #E38236;
  color: #fff8ef;
  outline: none;
}

/* Mobile menu styles */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #fff6ef;
  z-index: 1000;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(0.77, 0.2, 0.18, 1);
  box-shadow: -3px 0 60px 0 rgba(32,66,99,0.08);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 0;
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #18421e;
  font-size: 2.3rem;
  margin: 20px 0 10px 23px;
  cursor: pointer;
  transition: color 0.19s;
  align-self: flex-start;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #E38236;
  outline: none;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0 32px 40px 32px;
  width: 100%;
}
.mobile-nav a {
  font-size: 1.2rem;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #1e4b2a;
  padding: 12px 0 12px 8px;
  border-radius: 10px;
  transition: background 0.14s, color 0.14s;
  display: block;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #E38236;
  color: #fff8ef;
  outline: none;
}

/* Hide menu for desktop */
@media (max-width: 1023px) {
  nav ul {
    display: none;
  }
  .cta-primary {
    display: none;
  }
}
@media (max-width: 1023px) {
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 1024px) {
  .mobile-menu {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: none !important;
  }
  nav ul {
    display: flex;
  }
  .cta-primary {
    display: inline-block;
  }
}

/*------------------------
  HERO SECTION
  -----------------------*/
.hero-section {
  width: 100%;
  padding: 56px 0 32px 0;
  background: #e2f4eb url('../assets/organic-bg.png') left bottom/cover repeat-x;
  border-radius: 0 0 42px 42px/0 0 32px 20px;
  margin-bottom: 46px;
}
.hero-section .container {
  max-width: 1100px;
}
.hero-section .content-wrapper {
  align-items: flex-start;
  gap: 24px;
}
.hero-section h1 {
  color: #204263;
}
.hero-section p {
  font-size: 1.16rem;
  color: #225c36;
  max-width: 560px;
  margin-bottom: 14px;
}
.hero-section .cta-primary {
  margin-top: 14px;
  background: #E38236;
  color: #fff;
  border-radius: 38px 12px 28px 40px / 40px 22px 22px 32px;
}
.hero-section .cta-primary:hover {
  background: #225c36;
  color: #fff8ef;
}

/*------------------------
  FEATURE + SERVICE GRIDS
  ------------------------*/
.feature-grid, .service-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 10px;
}
.feature-grid > div, .service-cards > div {
  background: #F3F5ED;
  border-radius: 24px;
  box-shadow: 0 2px 12px rgba(83,123,80,0.09);
  flex: 1 1 250px;
  min-width: 230px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px;
  gap: 14px;
  transition: box-shadow 0.2s, transform 0.14s;
}
.feature-grid > div:hover, .service-cards > div:hover {
  box-shadow: 0 10px 30px 0 rgba(32,66,99,0.13);
  transform: translateY(-4px) scale(1.016);
}
.feature-grid img, .service-cards img {
  width: 46px;
  height: 46px;
  margin-bottom: 8px;
  border-radius: 16px;
  background: #e2f4eb;
  box-shadow: 0 1px 4px 0 rgba(143,181,99,0.07);
}

.feature-grid h3, .service-cards h3 {
  margin-bottom: 10px;
  color: #2B5434;
  font-size: 1.25rem;
}
.feature-grid p, .service-cards p {
  color: #515c50;
  font-size: 1rem;
}

/*------------------------
  TESTIMONIALS
  -----------------------*/
.testimonial-card {
  border: 2px solid #d7e3ce;
  background: #f9fcf6;
  margin-bottom: 22px;
  transition: border-color 0.18s, box-shadow 0.14s;
  box-shadow: 0 2px 10px 0 rgba(32,66,99,0.08);
}
.testimonial-card blockquote {
  color: #225c36;
  background: transparent;
  border-radius: 0;
  border-left: 4px solid #E38236;
  margin-bottom: 8px;
}
.testimonial-card p {
  color: #183120;
  font-size: 1rem;
  margin: 0;
}
.testimonial-card strong {
  color: #2e7134;
}
.testimonial-card span {
  color: #E38236;
  font-size: 1.05rem;
  margin-left: 3px;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  border-color: #E38236;
  box-shadow: 0 6px 20px 0 rgba(227,130,54,0.10);
  transition: border-color 0.18s, box-shadow 0.18s;
}

/* ----------------
   FORMS & BUTTONS
   ---------------- */
button, input[type="button"], input[type="submit"] {
  font-family: inherit;
  font-size: 1rem;
  border: none;
  border-radius: 28px 14px 34px 13px/28px 20px 18px 30px;
  background: #225c36;
  color: #fff;
  padding: 10px 26px;
  box-shadow: 0 2px 8px 0 rgba(60,90,40,0.08);
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.15s, color 0.12s;
}
button:hover, button:focus,
input[type="button"]:hover, input[type="button"]:focus,
input[type="submit"]:hover, input[type="submit"]:focus {
  background: #E38236;
  color: #fff8ef;
  box-shadow: 0 6px 17px 0 rgba(227,130,54,0.13);
  outline: none;
}

input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid #d7e3ce;
  border-radius: 12px;
  padding: 10px 14px;
  background: #f6f9ef;
  color: #223426;
  margin-bottom: 16px;
  box-shadow: 0 1px 4px 0 rgba(60,90,40,0.04);
  transition: border-color 0.18s, box-shadow 0.14s;
}
input:focus, textarea:focus, select:focus {
  border-color: #E38236;
  box-shadow: 0 2px 12px 0 rgba(227,130,54,0.09);
  outline: none;
}

/* ---------------
   TEXT SECTIONS
   --------------- */
.text-section {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
/* address field for kontakt page */
.address {
  color: #21582a;
  font-weight: 700;
  margin: 6px 0 10px 0;
}

/* ---------------------
   FOOTER
   --------------------- */
footer {
  background: #EAF6E7;
  border-radius: 38px 38px 0 0/24px 24px 0 0;
  box-shadow: 0 -3px 20px 0 rgba(32,66,99,0.06);
  padding: 32px 0 18px 0;
  margin-top: 32px;
  width: 100%;
}
footer .container {
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}
footer nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
footer nav a {
  color: #2e7134;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.15s;
}
footer nav a:hover, footer nav a:focus {
  color: #E38236;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.footer-contact img {
  height: 38px;
  margin-bottom: 10px;
  background: #d1eacb;
  border-radius: 16px;
}
.footer-contact p {
  color: #223426;
  font-size: 0.97rem;
  margin-bottom: 2px;
}

/* ------------------------
   MANDATORY FLEX SPACING
   ------------------------ */
.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; }

/* ------
  GAPS
  ------ */
.section > *, .content-wrapper > * {
  margin-bottom: 20px;
}
.section > *:last-child, .content-wrapper > *:last-child {
  margin-bottom: 0;
}

/* ------------------------
   COOKIE CONSENT BANNER
   ------------------------ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #f6faee;
  color: #225c36;
  box-shadow: 0 -2px 26px 0 rgba(32,66,99,0.11);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 14px 18px 14px;
  z-index: 1201;
  gap: 20px;
  font-size: 1rem;
  transition: transform 0.22s;
}
.cookie-banner__desc {
  flex: 1 1 260px;
  margin-right: 16px;
}
.cookie-banner__actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  border-radius: 18px 28px 22px 30px / 20px 22px 18px 27px;
  border: none;
  padding: 10px 20px;
  margin-right: 4px;
  background: #225c36;
  color: #fff;
  box-shadow: 0 1px 4px rgba(83,123,80,0.08);
  cursor: pointer;
  transition: background 0.17s, color 0.16s;
}
.cookie-btn:last-child { margin-right: 0; }
.cookie-btn.accept {
  background: #E38236;
}
.cookie-btn.reject {
  background: #aaa88a;
}
.cookie-btn.settings {
  background: #204263;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #2e7134;
  color: #fff8ef;
  outline: none;
}
.cookie-btn.accept:hover {
  background: #34603c;
}

/* COOKIE MODAL */
.cookie-modal-overlay {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(32,66,99,0.26);
  z-index: 1202;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s;
  animation: fadeInCookieModal 0.3s cubic-bezier(0.4,0.03,0.47,0.97);
}
@keyframes fadeInCookieModal {
  from { background: rgba(32,66,99,0.01); }
  to   { background: rgba(32,66,99,0.26); }
}
.cookie-modal {
  background: #fff;
  border-radius: 32px;
  padding: 36px 26px 28px 26px;
  min-width: 320px;
  max-width: 90vw;
  box-shadow: 0 8px 50px 0 rgba(60,90,40,0.14);
  color: #183120;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: modalPopIn 0.28s cubic-bezier(0.36,0.66,0.04,1.12);
}
@keyframes modalPopIn {
  0% { transform: scale(0.85); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.cookie-modal h2 {
  margin-bottom: 7px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.cookie-category label {
  font-size: 1rem;
  color: #225c36;
}
.cookie-modal .cookie-btn {
  margin-top: 12px;
}
/* Toggle switches (analytics/marketing) */
.cookie-toggle {
  width: 36px;
  height: 20px;
  appearance: none;
  background: #e6e9d8;
  border-radius: 12px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background 0.17s;
  margin-right: 6px;
}
.cookie-toggle:checked {
  background: #E38236;
}
.cookie-toggle:before {
  content: '';
  display: block;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  left: 2px;
  top: 2px;
  transition: left 0.18s;
  box-shadow: 0 1px 4px rgba(60,90,40,0.11);
}
.cookie-toggle:checked:before {
  left: 18px;
}

/* ---------------
   MEDIA QUERIES
   --------------- */
@media (max-width: 1023px) {
  .container {
    max-width: 98vw;
    padding: 0 10px;
  }
  .footer-contact img {
    height: 32px;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
  h3 { font-size: 1.15rem; }
  .section {
    padding: 28px 8px;
    margin-bottom: 38px;
    border-radius: 22px;
  }
  .feature-grid, .service-cards, .content-grid, .card-container {
    flex-direction: column;
    gap: 22px;
  }
  .feature-grid > div, .service-cards > div {
    min-width: 0;
    width: 100%;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px;
  }
  footer .container {
    flex-direction: column;
    gap: 22px;
  }
  .hero-section {
    padding: 36px 0 18px 0;
    border-radius: 0 0 22px 22px/0 0 16px 12px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .mobile-nav {
    padding: 0 18px 36px 18px;
  }
}
@media (max-width: 540px) {
  .cookie-modal {
    min-width: 0;
    padding: 22px 7vw 18px 7vw;
    border-radius: 22px;
  }
}

/* ---------------
   MICRO-ANIMATIONS
   --------------- */
.cta-primary, .cookie-btn, .feature-grid > div, .service-cards > div, .testimonial-card, .card {
  transition: box-shadow 0.18s, background 0.14s, color 0.14s, transform 0.14s;
}
.cta-primary:active, .cookie-btn:active {
  transform: scale(.98);
}

/* ---------------
   CUSTOM ORGANIC ELEMENTS
   --------------- */
.hero-section, .section, .footer, .card, .feature-grid > div, .service-cards > div, .testimonial-card, .cookie-modal {
  /* Use more organic shapes */
  border-radius: 32px 38px 22px 38px/28px 24px 22px 30px;
}

/* -----
UTILITY
----- */
.hidden { display: none !important; }
.flex { display: flex !important; }
.flex-col { flex-direction: column !important; }
.flex-row { flex-direction: row !important; }
.align-center { align-items: center !important; }
.justify-center { justify-content: center !important; }

/* Fix for no-overlap on all cards and spacing */
.card, .testimonial-card, .feature-grid > div, .service-cards > div {
  margin-bottom: 20px;
  min-width: 0;
}

/* Prevent horizontal scroll on mobile */
body, html {
  max-width: 100vw;
  overflow-x: hidden;
}
