/* RESET & BASIC NORMALIZATION */
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,
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;
}

html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  color: #2C3433;
  background: #F4F5F7;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  background-image: url('../assets/bg-texture-paper.png'); /* Use a subtle organic texture if available */
  background-repeat: repeat;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: inline-block;
}

a {
  color: #388159;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #1B3556;
  text-decoration: underline;
}

/* TYPOGRAPHY & HEADINGS */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #1B3556;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.01em;
  margin-bottom: 16px;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.38rem;
  margin-bottom: 16px;
}
h4 {
  font-size: 1.125rem;
}
h5, h6 {
  font-size: 1rem;
}

p, ul, ol {
  margin-bottom: 18px;
}
strong {
  font-weight: 700;
  color: #388159;
}
.tagline {
  color: #388159;
  font-style: italic;
  font-size: 1.1rem;
  margin-bottom: 18px;
}

/* FLEX UTILITY CONTAINERS */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 18px;
  padding-right: 18px;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* ORGANIC SHAPE & SHADOW HELPERS */
.organic-bg {
  background: #EEF5E9;
  border-radius: 70px 90px 60px 100px / 110px 80px 80px 130px;
}

.shadow-soft {
  box-shadow: 0 3px 20px rgba(56, 129, 89, 0.11), 0 2px 8px rgba(44,52,51,0.03);
}

/* BRAND BUTTONS */
.btn-primary, .btn-secondary {
  display: inline-block;
  padding: 14px 34px;
  border: none;
  border-radius: 50px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  background: #388159;
  color: #fff;
  box-shadow: 0 2px 5px rgba(56, 129, 89, 0.12);
  transition: background 0.2s, transform 0.2s, box-shadow 0.18s;
}  
.btn-primary:hover, .btn-primary:focus {
  background: #256540;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 20px rgba(56,129,89,0.18);
}
.btn-secondary {
  background: #fff;
  color: #388159;
  border: 2px solid #388159;
  margin-top: 10px;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #388159;
  color: #fff;
}

/* HEADER & NAVIGATION */
header {
  background: #fff;
  box-shadow: 0 2px 10px rgba(56,129,89,0.06);
  position: sticky;
  top: 0;
  z-index: 50;
}
header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 16px;
}
header img {
  height: 44px;
  width: auto;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #1B3556;
  padding: 6px 0;
  font-weight: 500;
  transition: color 0.18s;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a:focus, .main-nav a.active {
  color: #388159;
  border-bottom: 2px solid #388159;
}

/* Hide mobile menu toggle on desktop */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #388159;
  cursor: pointer;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  transition: background 0.18s;
}
.mobile-menu-toggle:focus {
  outline: 2px solid #388159;
  background: #EEF5E9;
}

/* MOBILE MENU OVERLAY */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(240,245,240,0.98);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 40px 28px 28px 28px;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(.75,0,.25,1);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 2rem;
  color: #388159;
  cursor: pointer;
  margin-bottom: 16px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  transition: background 0.2s;
}
.mobile-menu-close:focus {
  background: #cce2d4;
  outline: 2px solid #388159;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  margin-top: 16px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.35rem;
  color: #256540;
  padding: 14px 10px;
  border-radius: 12px;
  text-align: left;
  font-weight: 600;
  transition: background 0.15s, color 0.15s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #dbeede;
  color: #1B3556;
}

/* HERO SECTION */
.hero {
  background: #EEF5E9 url('../assets/bg-leaf.svg') right bottom/300px no-repeat;
  min-height: 320px;
  margin-bottom: 60px;
  padding: 40px 20px;
  display: flex;
  align-items: center;
}
.hero .container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.hero .content-wrapper {
  gap: 16px;
  max-width: 650px;
}

/* FEATURES SECTION */
.features {
  background: #fff;
  border-radius: 40px;
  margin-bottom: 60px;
  padding: 40px 20px;
  box-shadow: 0 1px 12px rgba(56,129,89,0.05);
}
.features .content-wrapper ul {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.features .content-wrapper li {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #EEF5E9;
  border-radius: 20px;
  padding: 14px 22px;
  font-weight: 500;
  color: #256540;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  box-shadow: 0 1.5px 9px rgba(56,129,89,0.08);
  font-size: 1.1rem;
}
.features .content-wrapper img {
  width: 32px;
  height: 32px;
}

/* SERVICES OVERVIEW & CARD GRID */
.services-overview, .services-grid {
  background: #EEF5E9;
  border-radius: 40px;
  margin-bottom: 60px;
  padding: 40px 20px;
  box-shadow: 0 2px 18px rgba(44,52,51,0.04);
}
.services-overview .content-wrapper, .services-grid .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  align-items: stretch;
}
.service-card {
  background: #fff;
  flex: 1 1 260px;
  min-width: 250px;
  max-width: 330px;
  border-radius: 22px;
  box-shadow: 0 2px 14px rgba(56,129,89,0.07);
  padding: 28px 22px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 8px;
  transition: box-shadow 0.21s, transform 0.2s;
  position: relative;
  z-index: 1;
}
.service-card h3 {
  margin-bottom: 8px;
}
.service-card a {
  color: #388159;
  font-weight: 600;
  margin-top: 12px;
  transition: color 0.13s;
}
.service-card a:hover, .service-card a:focus {
  color: #1B3556;
  text-decoration: underline;
}
.service-card:hover {
  box-shadow: 0 6px 24px rgba(56,129,89,0.15);
  transform: translateY(-6px) scale(1.02);
}
.btn-secondary {
  align-self: flex-end;
  margin-top: 12px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  position: relative;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 4px 28px rgba(44,52,51,0.07);
  margin-bottom: 20px;
  padding: 28px 22px;
  transition: box-shadow 0.22s, transform 0.17s;
}
.card:hover {
  box-shadow: 0 8px 40px rgba(56,129,89,0.14);
  transform: translateY(-6px);
}

.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;
  margin-bottom: 32px;
}
.text-image-section .text {
  flex: 1 1 260px;
}
.text-image-section .image {
  flex: 1 1 220px;
}

.testimonials, .testimonials-short {
  background: #fff;
  border-radius: 34px;
  margin-bottom: 60px;
  padding: 40px 20px;
  box-shadow: 0 2px 14px rgba(44,52,51,0.07);
}
.testimonials .content-wrapper, .testimonials-short .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  align-items: flex-start;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 20px;
  min-width: 260px;
  max-width: 350px;
  background: #F4F5F7;
  border-radius: 18px 28px 18px 18px;
  box-shadow: 0 2px 12px rgba(27,53,86,0.06);
  color: #253220;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1.04rem;
  font-weight: 500;
  margin-bottom: 20px;
  border-left: 7px solid #4CA672;
  border-bottom: 2.5px dotted #388159;
  transition: box-shadow 0.15s, transform 0.15s;
}
.testimonial-card:hover {
  box-shadow: 0 4px 18px rgba(56,129,89,0.13);
  transform: translateY(-4px) scale(1.012);
}
.testimonial-card span {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #388159;
  font-size: 0.99rem;
  font-weight: 600;
  margin-top: 8px;
}

/* Common CTA and about/contact sections */
.about-short, .contact-short, .cta-secure-advice, .cta-first-contact, .cta-analyse, .cta-training-request, .cta-appointment, .confirmation {
  background: #EEF5E9;
  border-radius: 40px;
  margin-bottom: 60px;
  padding: 40px 20px;
  box-shadow: 0 2px 15px rgba(56,129,89,0.07);
}
.contact-short .content-wrapper, .cta-secure-advice .content-wrapper, .cta-first-contact .content-wrapper, .cta-analyse .content-wrapper, .cta-training-request .content-wrapper, .cta-appointment .content-wrapper, .confirmation .content-wrapper {
  align-items: flex-start;
  gap: 18px;
}

/* LEGAL PAGE STYLES */
.legal .content-wrapper {
  gap: 20px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 2px 16px rgba(44,52,51,0.05);
  padding: 30px 22px;
  margin-bottom: 32px;
}

/* TEAM / EXPERTS */
.expert-team .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  align-items: stretch;
}
.team-member-profile {
  background: #fff;
  border-radius: 21px;
  box-shadow: 0 1.5px 8px rgba(44,52,51,0.08);
  padding: 25px 20px;
  min-width: 220px;
  max-width: 300px;
  flex: 1 1 230px;
  margin-bottom: 20px;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
}
.team-member-profile h3 {
  color: #388159;
  font-size: 1.15rem;
}

/* TRAINING MODULE CARD (mitarbeiterentwicklung) */
.training-programs .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
  justify-content: flex-start;
}
.training-module {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 1.5px 8px rgba(44,52,51,0.08);
  padding: 21px 15px;
  flex: 1 1 170px;
  min-width: 190px;
  max-width: 250px;
  margin-bottom: 20px;
}

/* ADDITIONAL FLEX CONTAINERS FOR LAYOUTS */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: 38px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* OL/UL Custom Styling */
ul, ol {
  padding-left: 1.2em;
}
ul li, ol li {
  margin-bottom: 12px;
  line-height: 1.7;
}
.features ul, .features-short ul {
  list-style: none;
  padding-left: 0;
}

/* ICONS INSIDE FEATURE & INFO LISTS */
.features ul li img,
.features-short ul li img,
.contact-info img,
.content-wrapper img[alt^="icon"] {
  margin-right: 12px;
  vertical-align: middle;
  width: 28px;
  height: 28px;
  border-radius: 0;
  background: none;
  box-shadow: none;
}
.contact-info {
  background: #fff;
  border-radius: 26px;
  box-shadow: 0 2px 12px rgba(56,129,89,0.05);
  margin-bottom: 60px;
  padding: 40px 20px;
}
.contact-info .content-wrapper {
  gap: 17px;
}
.contact-info a {
  color: #388159;
  text-decoration: underline dotted;
  font-weight: 600;
}
.contact-info a:hover, .contact-info a:focus {
  text-decoration: underline solid;
  color: #1B3556;
}

/* FOOTER */
footer {
  background: #1B3556;
  color: #fff;
  padding: 36px 0 18px 0;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
footer img {
  height: 36px;
  width: auto;
  background: #fff;
  border-radius: 80px;
  padding: 4px 12px;
  box-shadow: 0 2px 8px rgba(44,52,51,0.08);
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-nav a {
  color: #4CA672;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1em;
  font-weight: 500;
  transition: color 0.15s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #fff;
}
footer small {
  color: #C3D6C8;
  font-size: 0.98em;
  margin-top: 12px;
  flex-basis: 100%;
  text-align: right;
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 2300;
  background: rgba(240, 245, 240, 0.97);
  border-top: 3px solid #388159;
  box-shadow: 0 -2px 10px rgba(44,52,51,0.05);
  padding: 24px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  animation: slide-banner-in 0.7s cubic-bezier(.19,1,.22,1);
}
@keyframes slide-banner-in {
  0% { transform: translateY(100%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  color: #253220;
  font-size: 1rem;
  flex: 1 1 auto;
  max-width: 420px;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  margin-bottom: 0;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.cookie-banner button {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1em;
  border-radius: 24px;
  padding: 10px 26px;
  border: none;
  cursor: pointer;
  background: #388159;
  color: #fff;
  font-weight: 500;
  transition: background 0.16s, color 0.16s;
}
.cookie-banner .cookie-reject {
  background: #fff;
  color: #388159;
  border: 2px solid #388159;
}
.cookie-banner .cookie-reject:hover, .cookie-banner .cookie-reject:focus {
  background: #388159;
  color: #fff;
}
.cookie-banner .cookie-settings {
  background: #eef5e9;
  color: #256540;
}
.cookie-banner .cookie-settings:hover, .cookie-banner .cookie-settings:focus {
  background: #dbeede;
  color: #1B3556;
}

/* COOKIE SETTINGS MODAL */
.cookie-modal-overlay {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  z-index: 2350;
  background: rgba(27,53,86,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.24s;
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #f4f5f7;
  border-radius: 18px 36px;
  max-width: 410px;
  width: 94vw;
  padding: 40px 26px 28px 26px;
  box-shadow: 0 8px 40px rgba(56,129,89,0.12);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  animation: popup-modal-fade-in 0.38s ease;
}
@keyframes popup-modal-fade-in {
  0% { transform: translateY(38px) scale(0.95); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.31rem;
  margin-bottom: 8px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}
.cookie-modal .cookie-category label {
  font-size: 1.04rem;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
}
.cookie-modal .cookie-toggle {
  accent-color: #388159;
  width: 22px;
  height: 22px;
}
.cookie-modal .cookie-essential[disabled] {
  opacity: 0.60;
  cursor: not-allowed;
}
.cookie-modal .cookie-actions {
  display: flex;
  gap: 18px;
  margin-top: 10px;
}
.cookie-modal .cookie-close {
  position: absolute;
  right: 18px;
  top: 20px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #388159;
  cursor: pointer;
  transition: background 0.2s;
  border-radius: 50%;
  width: 36px;
  height: 36px;
}
.cookie-modal .cookie-close:focus {
  background: #cce2d4;
}

/* RESPONSIVE DESIGN (MOBILE-FIRST) */
@media (max-width: 1020px) {
  .container {
    max-width: 94vw;
  }
}

@media (max-width: 900px) {
  .services-overview .content-wrapper, .services-grid .content-wrapper,
  .expert-team .content-wrapper {
    flex-direction: column;
    gap: 24px;
  }
  .service-card, .team-member-profile {
    /* full width on small screens */
    max-width: 100%;
  }
}

@media (max-width: 768px) {

  /* MOBILE NAVIGATION */
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }

  .container {
    max-width: 98vw;
    padding-left: 10px;
    padding-right: 10px;
  }
  header .container {
    gap: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
    flex-wrap: nowrap;
  }
  .hero {
    padding: 28px 8px;
    min-height: 0;
    background-size: 180px !important;
  }
  .hero .container {
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
  }
  .section, .features, .services-overview, .testimonials, .about-short, .contact-short, .services-grid, .testimonials-short, .contact-info,
  .cta-secure-advice, .cta-first-contact, .cta-analyse, .cta-training-request, .cta-appointment, .confirmation, .legal .content-wrapper {
    padding: 24px 6px;
    margin-bottom: 40px;
    border-radius: 14px;
  }
  .features .content-wrapper ul, .services-overview .content-wrapper, .services-grid .content-wrapper, .testimonials .content-wrapper, .testimonials-short .content-wrapper, .expert-team .content-wrapper, .training-programs .content-wrapper {
    flex-direction: column;
    gap: 18px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
  }
  .service-card, .card, .team-member-profile, .training-module, .testimonial-card {
    min-width: 0;
    max-width: 98vw;
    padding: 16px 10px;
  }
  .btn-primary, .btn-secondary {
    width: 100%;
    text-align: center;
    padding: 13px 0;
    font-size: 1rem;
  }
  .footer-nav {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  footer small {
    text-align: left;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 8px;
    gap: 12px;
  }
  .cookie-modal {
    max-width: 98vw;
    padding: 24px 10px 18px 10px;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 1.52rem; }
  h2 { font-size: 1.18rem; }
  h3 { font-size: 1.03rem; }
}

/* VISUALLY ORGANIC: EARTH TONES, TEXTURES, SHAPES */
.section, .features, .services-overview, .testimonials, .about-short, .contact-short, .services-grid, .testimonials-short, .contact-info,
.cta-secure-advice, .cta-first-contact, .cta-analyse, .cta-training-request, .cta-appointment, .confirmation, .legal .content-wrapper {
  background: #EEF5E9;
  border-radius: 34px;
  box-shadow: 0 2px 12px rgba(56,129,89,0.07);
}
.card, .service-card, .team-member-profile, .testimonial-card, .training-module {
  background: #fff;
  border-radius: 18px 24px 22px 18px;
  box-shadow: 0 2px 10px rgba(44,52,51,0.08);
}

/* MICRO-INTERACTIONS & TRANSITIONS */
.btn-primary, .btn-secondary, .cookie-banner button, .cookie-modal .cookie-close {
  transition: background 0.15s, color 0.15s, transform 0.17s;
}
.card, .service-card, .testimonial-card, .team-member-profile, .training-module {
  transition: box-shadow 0.17s, transform 0.14s;
}
.card:hover, .service-card:hover, .testimonial-card:hover, .team-member-profile:hover, .training-module:hover {
  box-shadow: 0 8px 32px rgba(56,129,89,0.10);
  transform: translateY(-4px) scale(1.008);
}

/* FOCUS STYLES FOR ACCESSIBILITY */
a:focus, button:focus, .btn-primary:focus, .btn-secondary:focus {
  outline: 2px solid #388159;
  outline-offset: 2px;
}

/* Hide visually, but accessible for screen readers */
.sr-only {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
