/* RESET & BASE STYLES ------------------------------------------------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body, h1, h2, h3, h4, h5, h6, p, ul, li, a, span, strong, b, em, button, input, textarea {
  margin: 0; padding: 0; border: 0; font-size: 100%; font: inherit; vertical-align: baseline; box-sizing: inherit;
}
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; border: none; }
a { color: inherit; text-decoration: none; cursor: pointer; transition: color .20s; }
button { font: inherit; cursor: pointer; background: none; border: none; }

/* FONT FAMILIES ------------------------------------------------------- */
:root {
  --brand-primary: #204385;
  --brand-secondary: #292929;
  --brand-accent: #F5F7FA;
  --nature-green: #36743a;
  --nature-leaf: #80b54c;
  --nature-earth: #a18867;
  --nature-moss: #eae6d9;
  --nature-brown: #c5a47e;
  --text-main: #172313;
  --text-muted: #5b6152;
  --white: #fff;
  --shadow: 0 4px 16px 0 rgba(60, 80, 44, 0.09);
  --radius-section: 32px;
  --radius-card: 20px;
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Open Sans', Arial, sans-serif;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-main);
  background: var(--brand-accent);
  line-height: 1.7;
  min-height: 100vh;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--brand-primary);
  font-weight: 700;
}
h1 { font-size: 2.4rem; margin-bottom: 14px; }
h2 { font-size: 1.8rem; margin-bottom: 12px; }
h3 { font-size: 1.2rem; margin-bottom: 10px; }
.subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
}

strong, b {
  font-weight: 700;
}

.section, section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--white);
  border-radius: var(--radius-section);
  box-shadow: var(--shadow);
}

@media (max-width: 768px) {
  .section, section {
    padding: 30px 8px;
    border-radius: 18px;
    margin-bottom: 32px;
  }
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.2rem; }
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 10px;
  width: 100%;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: flex-start;
  align-items: flex-start;
}

.text-section {
  gap: 12px;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
}

/* FLEXBOX LAYOUTS (MANDATORY PATTERNS) -------------------------------- */
.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;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* HERO SECTION -------------------------------------------------------- */
.hero {
  background: linear-gradient(120deg, var(--nature-leaf) 0%, var(--nature-moss) 100%);
  background-size: cover;
  color: var(--brand-primary);
  margin-bottom: 60px;
  padding: 52px 0 56px 0;
  border-radius: 0 0 var(--radius-section) var(--radius-section);
}
.hero h1 { color: var(--brand-secondary); }
.hero .subtitle { color: var(--text-muted); margin-bottom: 10px; }
.hero .cta {
  margin-top: 18px;
}
@media (max-width: 768px) {
  .hero {
    padding: 36px 0;
    border-radius: 0 0 18px 18px;
  }
}

/* NAVIGATION ---------------------------------------------------------- */
header {
  background: var(--nature-leaf);
  box-shadow: 0 3px 14px rgba(50, 74, 58, 0.07);
  padding: 0;
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  font-family: var(--font-display);
  gap: 14px;
}
.main-nav a {
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--brand-primary);
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background .2s, color .2s;
}
.main-nav .logo img {
  height: 44px;
  width: auto;
  vertical-align: middle;
  margin-right: 8px;
}
.main-nav a:not(.logo):hover, .main-nav a:not(.logo):focus {
  background: var(--nature-earth);
  color: var(--white);
}

.main-nav .cta.primary {
  background: var(--brand-primary);
  color: var(--white);
  border-radius: 16px;
  padding: 12px 22px;
  font-size: 1rem;
  margin-left: 8px;
  box-shadow: 0 2px 10px rgba(80, 110, 76, 0.07);
  transition: background .18s, color .18s, box-shadow .23s;
}
.main-nav .cta.primary:hover, .main-nav .cta.primary:focus {
  background: var(--nature-leaf);
  color: var(--white);
  box-shadow: 0 4px 16px 0 rgba(60,80,44,0.14);
}

@media (max-width: 980px) {
  .main-nav a { font-size: 0.97rem; padding: 10px 8px; }
  .main-nav {
    gap: 8px;
  }
}
@media (max-width: 930px) {
  .main-nav {
    flex-wrap: wrap;
  }
}
@media (max-width: 840px) {
  .main-nav a { font-size: 0.92rem; padding: 9px 6px; }
}
@media (max-width: 768px) {
  .main-nav a { font-size: 1rem; }
  .main-nav { display: none; }
}

/* MOBILE MENU --------------------------------------------------------- */
.mobile-menu-toggle {
  display: none;
  background: var(--brand-primary);
  color: var(--white);
  font-size: 2.2rem;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  align-items: center;
  justify-content: center;
  margin: 14px 16px 14px auto;
  z-index: 25;
  transition: background .18s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: var(--nature-leaf);
  color: var(--white);
}
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
    position: absolute;
    top: 12px;
    right: 10px;
  }
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(46,69,38,0.88);
  z-index: 1101;
  transform: translateX(-100%);
  transition: transform .32s cubic-bezier(0.75,0,0.21,1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: all;
}
.mobile-menu-close {
  font-size: 2rem;
  color: var(--white);
  background: transparent;
  border: none;
  align-self: flex-end;
  margin: 25px 24px 10px 0 ;
  padding: 12px;
  border-radius: 50%;
  transition: background .14s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--nature-leaf);
  color: var(--brand-primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100vw;
  padding: 30px 34px;
  margin-top: 24px;
  align-items: flex-start;
}
.mobile-nav a {
  font-size: 1.2rem;
  color: var(--white);
  padding: 12px 0;
  border-radius: 8px;
  width: 100%;
  outline: none;
  transition: background .18s, color .18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--nature-leaf);
  color: var(--text-main);
}
@media (min-width: 769px) {
  .mobile-menu, .mobile-menu-toggle { display: none !important; }
}

/* BUTTONS & CTA ------------------------------------------------------- */
.cta, .btn {
  display: inline-block;
  background: var(--nature-leaf);
  color: var(--white);
  border-radius: 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 12px 26px;
  box-shadow: 0 2px 10px rgba(80, 110, 76, 0.07);
  margin-top: 8px;
  transition: background .20s, color .18s, box-shadow .22s;
  border: none;
  outline: none;
}
.cta.primary {
  background: var(--brand-primary);
  color: var(--white);
}
.cta:hover, .cta:focus {
  background: var(--nature-green);
  color: var(--white);
  box-shadow: 0 4px 18px 0 rgba(115,160,117,0.15);
}
.cta.primary:hover, .cta.primary:focus {
  background: var(--nature-leaf);
}

/* FEATURES LIST ------------------------------------------------------- */
.features ul,
.about-features ul,
.referenzen-impact ul,
.services-list,
.benefits-highlight ul,
.blog-list,
.blog-categories ul,
.legal ul {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 16px 0;
  padding: 0;
}
.features ul li,
.about-features ul li,
.referenzen-impact ul li,
.services-list .service-item,
.benefits-highlight ul li,
.blog-list li,
.legal ul li {
  background: var(--nature-moss);
  border-radius: var(--radius-card);
  padding: 16px 22px;
  position: relative;
  font-size: 1rem;
  color: var(--text-main);
  min-width: 0;
  box-shadow: 0 1px 4px rgba(146, 141, 121, 0.05);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.features ul li img,
.about-features ul li img {
  height: 30px; min-width:30px; margin-right: 8px; align-self: flex-start;
}
@media (max-width: 600px) {
  .features ul li, .about-features ul li, .referenzen-impact ul li {
    padding: 11px 10px;
    font-size: .95rem;
  }
}

/* SERVICE CARDS ------------------------------------------------------- */
.services-list {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 32px;
}
.service-item {
  flex: 1 1 320px;
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  padding: 24px 24px 20px;
  min-width: 270px;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow .19s, transform .22s;
}
.service-item h3 {
  color: var(--nature-green);
}
.service-item .price {
  color: var(--brand-primary);
  font-weight: 600;
  margin-top: 8px;
}
.service-item:hover, .service-item:focus-within {
  transform: translateY(-7px) scale(1.02);
  box-shadow: 0 8px 26px 0 rgba(38,60,30,0.13);
}
@media (max-width: 950px) {
  .services-list {
    flex-direction: column;
    gap: 18px;
  }
}
@media (max-width: 600px) {
  .service-item {
    padding: 16px 10px 12px;
  }
}

.benefits-highlight {
  background: var(--nature-moss);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  padding: 20px 28px;
  margin-top: 34px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}
.benefits-highlight ul {
  gap: 10px;
}

/* TESTIMONIALS -------------------------------------------------------- */
.testimonials, .testimonial-cases {
  background: var(--nature-moss);
  border-radius: var(--radius-section);
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 20px 30px;
  margin: 0 0 22px 0;
  box-shadow: 0 3px 20px 0 rgba(44,80,55,0.10);
  color: var(--brand-secondary);
  transition: box-shadow .18s, transform .18s;
}
.testimonial-card p {
  color: var(--text-main);
  font-size: 1rem;
  font-family: var(--font-body);
}
.testimonial-card .client {
  color: var(--nature-green);
  font-weight: 700;
  font-family: var(--font-display);
  margin-top: 12px;
}
.testimonial-card:hover,
.testimonial-card:focus-within {
  box-shadow: 0 12px 28px 0 rgba(62,114,74,.14);
  transform: scale(1.02) translateY(-4px);
}
@media (max-width: 768px) {
  .testimonial-card {
    padding: 16px 10px;
    margin-bottom: 16px;
  }
}

/* BLOG STYLING -------------------------------------------------------- */
.blog-list {
  gap: 18px;
  margin-bottom: 22px;
}
.blog-list li {
  background: var(--nature-earth);
  color: var(--white);
  border-radius: var(--radius-card);
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  box-shadow: 0 3px 15px rgba(64, 54, 44, .07);
  transition: box-shadow .19s, background .19s;
}
.blog-list li:hover,
.blog-list li:focus {
  background: var(--nature-leaf);
  color: var(--white);
  box-shadow: 0 8px 26px 0 rgba(38,60,30,0.18);
}
.blog-list h3 { color: var(--brand-primary); }

.blog-categories ul {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}
.blog-categories ul li {
  background: var(--nature-brown);
  color: var(--brand-secondary);
  border-radius: 8px;
  font-size: 0.98rem;
  padding: 7px 13px;
}

/* CONTACT DETAILS ----------------------------------------------------- */
.contact-details {
  background: var(--nature-moss);
  border-radius: var(--radius-section);
  padding: 24px 30px;
  margin: 16px 0;
  box-shadow: var(--shadow);
}
.contact-details a {
  color: var(--nature-green);
  transition: color .15s;
  text-decoration: underline dotted;
}
.contact-details a:hover, .contact-details a:focus {
  color: var(--brand-primary);
}
.contact-summary {
  color: var(--nature-green);
  margin-bottom: 10px;
}

/* LEGAL/TEXT CONTENT -------------------------------------------------- */
.legal {
  background: var(--nature-moss);
  border-radius: var(--radius-section);
  box-shadow: 0 4px 20px rgba(40,44,22,0.08);
}
.legal h1, .legal h2, .legal h3 { color: var(--brand-primary); }
.legal ul li { background: none; padding: 0 0 6px 0; }
.legal ul { margin-bottom: 18px; }

/* THANK-YOU PAGE ------------------------------------------------------ */
section.thank-you {
  background: var(--nature-moss);
  text-align: center;
}
section.thank-you .content-wrapper {
  align-items: center;
}

/* FOOTER -------------------------------------------------------------- */
footer {
  padding: 34px 12px 18px 12px;
  background: var(--nature-earth);
  color: var(--brand-secondary);
  font-size: 0.98rem;
  border-radius: 32px 32px 0 0;
  margin-top: 36px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  margin-bottom: 8px;
}
.footer-nav a {
  color: var(--white);
  background: var(--nature-green);
  border-radius: 9px;
  padding: 7px 18px;
  font-size: 0.98rem;
  font-family: var(--font-display);
  letter-spacing: 0.01em;
  transition: background .17s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: var(--brand-primary);
  color: var(--white);
}
.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.footer-brand img {
  height: 34px; width: auto; margin-right: 0;
}
@media (max-width: 768px) {
  footer { padding: 22px 8px 12px 8px; border-radius: 18px 18px 0 0; }
  .footer-nav { flex-direction: column; align-items: center; gap: 8px; }
  .footer-brand { flex-direction: column; gap: 4px; }
}

/* SPACING & WHITE SPACE ----------------------------------------------- */
section, .section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
@media (max-width: 768px) {
  section, .section {
    padding: 28px 5px 22px 5px;
    margin-bottom: 30px;
  }
}
.card, .testimonial-card, .service-item, .blog-list li {
  margin-bottom: 20px;
}

/* UTILITY ------------------------------------------------------------- */
.mt-0 { margin-top: 0 !important; }
.mt-40 { margin-top: 40px !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-20 { margin-bottom: 20px !important; }
.gap-20 { gap: 20px !important; }
.gap-32 { gap: 32px !important; }
.align-center { align-items: center !important; }
.flex-row { flex-direction: row !important; }
.flex-col { flex-direction: column !important; }

/* SHADOWS & EFFECTS -------------------------------------------------- */
.card, .service-item, .testimonial-card, .blog-list li {
  box-shadow: var(--shadow);
}

/* ORGANIC SHAPES: Decorative background blobs ------------------------- */
.hero, .testimonials, .services, .section {
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  z-index: 0;
  top: -60px; left: -90px;
  width: 260px; height: 180px;
  background: var(--nature-brown);
  opacity: 0.13;
  border-radius: 56% 60% 46% 44%/56% 54% 46% 44%;
  pointer-events: none;
}
.hero .container, section .container {
  position: relative;
  z-index: 2;
}
section::after {
  content: '';
  position: absolute;
  bottom: -54px; right: -120px;
  width: 210px; height: 140px;
  background: var(--nature-leaf);
  opacity: 0.06;
  border-radius: 52% 58% 50% 42%/58% 52% 52% 49%;
  pointer-events: none;
  z-index: 0;
}

/* ANIMATIONS & INTERACTIONS ------------------------------------------- */
.cta, .btn, .main-nav a, .footer-nav a, .mobile-nav a, .service-item, .testimonial-card {
  transition: background .19s, color .18s, box-shadow .22s, transform .17s;
}

/* COOKIE CONSENT BANNER ----------------------------------------------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 2000;
  background: var(--white);
  color: var(--brand-secondary);
  box-shadow: 0 -4px 24px 0 rgba(39,42,24,0.09);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 22px 14px 20px 14px;
  border-radius: 22px 22px 0 0;
  transition: transform .38s cubic-bezier(.77,.03,.23,1);
  gap: 16px;
  width: 98vw;
  max-width: 540px;
  margin: 0 auto;
  opacity: 1;
  pointer-events: all;
}
.cookie-banner.hidden {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner strong {
  color: var(--brand-primary);
  margin-bottom: 6px;
}
.cookie-banner .cookie-banner-actions {
  display: flex;
  gap: 13px;
  margin-top: 10px;
}
.cookie-banner .btn {
  border: none;
  padding: 10px 22px;
  border-radius: 12px;
  font-size: 1rem;
  background: var(--nature-leaf);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
}
.cookie-banner .btn.settings {
  background: var(--nature-earth);
  color: var(--brand-secondary);
}
.cookie-banner .btn.reject {
  background: var(--brand-secondary);
  color: var(--white);
}
.cookie-banner .btn:hover, .cookie-banner .btn:focus {
  filter: brightness(1.1);
}
@media (max-width: 700px) {
  .cookie-banner {
    left: 1vw; right: 1vw; padding: 15px 4vw 12px 4vw; max-width: 98vw;
  }
}

/* COOKIE PREFERENCES MODAL -------------------------------------------- */
.cookie-modal-overlay {
  position: fixed;
  z-index: 2100;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(51, 62, 56, 0.56);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: all;
  transition: opacity .25s;
}
.cookie-modal-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: var(--white);
  border-radius: 18px;
  box-shadow: 0 8px 40px 0 rgba(40,64,36,0.17);
  padding: 36px 34px 24px 34px;
  max-width: 400px;
  width: 96vw;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  align-items: flex-start;
}
.cookie-modal h3 {
  color: var(--nature-green);
  font-size: 1.25rem;
  margin-bottom: 5px;
}
.cookie-modal .category-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 12px 0 21px 0;
}
.cookie-modal .category {
  background: var(--nature-moss);
  color: var(--brand-secondary);
  border-radius: 8px;
  padding: 8px 14px 7px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.cookie-modal .category.essential {
  background: var(--nature-brown);
  color: var(--white);
}
.cookie-modal .toggle {
  margin-left: auto;
}
.cookie-modal .toggle input {
  accent-color: var(--nature-leaf);
  width: 18px; height: 18px;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}
.cookie-modal .btn {
  font-size: 1.05rem;
}
.cookie-modal .close-modal {
  position: absolute; top: 10px; right: 12px;
  background: transparent;
  color: var(--brand-primary);
  font-size: 1.45rem;
  border: none; border-radius: 50%;
  width: 35px; height: 35px;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.cookie-modal .close-modal:hover,
.cookie-modal .close-modal:focus {
  background: var(--nature-moss);
}

@media (max-width: 540px) {
  .cookie-modal { padding: 24px 10px 15px 10px; }
}

/* RESPONSIVE TYPOGRAPHY ----------------------------------------------- */
@media (max-width: 600px) {
  h1 { font-size: 1.19rem; }
  h2 { font-size: 1.08rem; }
  h3 { font-size: 1rem; }
  body { font-size: 15px; }
}

/* MISC FIXES ---------------------------------------------------------- */
::-webkit-scrollbar { width: 12px; background: var(--nature-moss); }
::-webkit-scrollbar-thumb { background: var(--nature-brown); border-radius: 6px; }

/* Make sure links stand out when focused for a11y */
a:focus, button:focus, .cta:focus, .btn:focus {
  outline: 2px solid var(--nature-leaf);
  outline-offset: 3px;
}

/* END OF CSS */
