/* --- CSS RESET & BASE --- */
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,
main, 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 {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}

*, *:before, *:after {
  box-sizing: inherit;
}

body {
  background: #F2EADC url('../assets/bg-texture.jpg') repeat;
  color: #225356;
  font-family: 'Open Sans', Arial, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #225356;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}
h1 { font-size: 2.4rem; margin-bottom: 18px; }
h2 { font-size: 2rem; margin-bottom: 16px; }
h3 { font-size: 1.4rem; margin-bottom: 12px; }
h4, h5, h6 { font-size: 1.125rem; margin-bottom: 8px; }
p, ul, ol, li, dl, dt, dd { font-size: 1rem; }
.subheadline { font-size: 1.175rem; color: #4E7E2E; font-weight: 600; margin-bottom: 20px; }
strong, b { color: #225356; font-weight: 700; }
a {
  color: #4E7E2E;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #225356;
  text-decoration: underline;
}

/* --- CONTAINER STRUCTURE --- */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: rgba(255,255,255,0.93);
  border-radius: 32px;
  box-shadow: 0 2px 10px 0 rgba(34,83,86,0.1);
}
@media (max-width: 900px) {
  .section {
    padding: 32px 10px;
    margin-bottom: 40px;
  }
  .container {
    padding: 0 10px;
  }
}

/* --- FLEX LAYOUTS --- */
.features, .steps, .testimonials, .faq-preview, .review-summary, .office-info, .map, .team-list, .values, .pricing, .process-timeline, .testimonial-list, .service-overview, .content-grid, .card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  width: 100%;
}
.card-container {
  gap: 24px;
}
.card {
  position: relative;
  margin-bottom: 20px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 8px 0 rgba(34,83,86,0.10);
  transition: box-shadow 0.2s;
}
.card:hover, .card:focus {
  box-shadow: 0 4px 18px 0 rgba(34,83,86,0.17);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
}
.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 24px 48px 24px 48px / 36px 17px 36px 17px;
  box-shadow: 0 3px 12px 0 rgba(76,137,100,0.11);
  min-width: 250px;
  max-width: 370px;
  margin-bottom: 24px;
  border: 1.5px solid #E4E2D8;
  transition: box-shadow 0.2s, border 0.2s;
}
.testimonial-card:hover, .testimonial-card:focus {
  border-color: #8CAF6C;
  box-shadow: 0 6px 25px 0 rgba(76,137,100,0.18);
}
.testimonial-name {
  font-size: 1rem;
  color: #225356;
  font-weight: 600;
  opacity: 0.94;
}
.star-rating {
  font-size: 1.35rem;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #8CAF6C;
  letter-spacing: 0.06em;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  min-width: 180px;
  background: rgba(142,175,108,0.07);
  border-radius: 24px 12px 32px 12px;
  padding: 22px 18px;
  box-shadow: 0 2px 6px 0 rgba(76,137,100,0.06);
}
@media (max-width: 900px) {
  .features, .steps, .pricing, .review-summary, .content-grid, .testimonials, .testimonial-list, .service-overview, .team-list, .office-info, .values {
    flex-direction: column;
    gap: 16px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 22px;
    align-items: flex-start;
  }
  .card-container {
    gap: 16px;
  }
}
@media (max-width: 600px) {
  .testimonial-card {
    min-width: 0;
    max-width: 100%;
    padding: 17px;
  }
}

/* --- NAVIGATION & HEADER --- */
header {
  background: #fff;
  box-shadow: 0px 3px 18px rgba(34,83,86,0.06);
  border-bottom-left-radius: 32px 70px;
  border-bottom-right-radius: 32px 70px;
  padding: 0 0 0.5em 0;
  position: relative;
  z-index: 201;
}
.main-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  width: 100%;
  justify-content: flex-start;
  padding: 18px 0 10px 0;
}
.main-nav img {
  height: 48px;
  width: auto;
  margin-right: 16px;
}
.main-nav a {
  color: #225356;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 9px 16px;
  border-radius: 20px;
  transition: background 0.16s, color 0.18s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #F2EADC;
  color: #4E7E2E;
}
.main-nav .cta {
  background: #4E7E2E;
  color: #fff;
  margin-left: auto;
  border-radius: 24px;
  font-size: 1.08rem;
  padding: 10px 24px;
  box-shadow: 0 1px 6px rgba(76,137,100,0.11);
  transition: background 0.18s, box-shadow 0.18s;
}
.main-nav .cta:hover, .main-nav .cta:focus {
  background: #225356;
  box-shadow: 0 4px 14px rgba(76,137,100,0.18);
  color: #fff;
}
/* Mobile NAV */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #225356;
  z-index: 251;
  cursor: pointer;
  position: absolute;
  right: 16px;
  top: 18px;
  margin-left: auto;
  transition: color 0.2s;
}
.mobile-menu-toggle:focus { color: #4E7E2E; outline: none; }

.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 310px;
  background: #F2EADC;
  box-shadow: -8px 0 18px rgba(34,83,86,0.10);
  z-index: 300;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(0.72,0,0.39,1);
  padding: 25px 20px 10px 32px;
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.2rem;
  color: #225356;
  margin-bottom: 24px;
  cursor: pointer;
  align-self: flex-end;
  transition: color 0.2s;
}
.mobile-menu-close:focus { color: #4E7E2E; outline: none; }
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}
.mobile-nav a {
  color: #225356;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.14rem;
  font-weight: 600;
  padding: 12px 0;
  border-radius: 10px;
  transition: background 0.18s, color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #8CAF6C;
  color: #fff;
}
@media (max-width: 1050px) {
  .main-nav .cta {
    margin-left: 0;
  }
}
@media (max-width: 900px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 901px) {
  .mobile-menu, .mobile-menu-toggle {
    display: none !important;
  }
}

/* --- BUTTONS & CTA --- */
.cta, .cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  border-radius: 28px;
  font-size: 1.09rem;
  padding: 12px 30px;
  background: #4E7E2E;
  color: #fff;
  box-shadow: 0 1px 8px 0 rgba(76,137,100,0.10);
  transition: background 0.16s, color 0.16s, box-shadow 0.16s, transform 0.14s;
  border: none;
  margin-top: 16px;
  cursor: pointer;
}
.cta:hover, .cta:focus {
  background: #225356;
  color: #fff;
  box-shadow: 0 5px 20px 0 rgba(34,83,86,0.20);
  transform: translateY(-2px) scale(1.03);
}
.cta-secondary {
  background: #fff;
  color: #4E7E2E;
  border: 2px solid #4E7E2E;
  margin-top: 10px;
}
.cta-secondary:hover, .cta-secondary:focus {
  background: #4E7E2E;
  color: #fff;
}
button:focus-visible, .cta:focus-visible, .cta-secondary:focus-visible {
  outline: 2px solid #8CAF6C;
  outline-offset: 2px;
}

/* --- FORMS & FAQ SEARCH --- */
input, textarea, select {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  border-radius: 14px;
  border: 1.5px solid #C6C4B1;
  padding: 11px 16px;
  margin-bottom: 14px;
  background: #fffefb;
  color: #225356;
  transition: border 0.13s, box-shadow 0.13s;
}
input[type="text"]:focus, textarea:focus, select:focus {
  border: 1.5px solid #8CAF6C;
  box-shadow: 0 0 0 2px #8CAF6C2a;
  outline: none;
}
input[type="text"]::placeholder {
  color: #839F87;
  opacity: .8;
}

/* --- TABLES --- */
table {
  border-collapse: separate;
  width: 100%;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 2px 10px 0 rgba(34,83,86,0.08);
  margin-bottom: 24px;
}
th, td {
  padding: 14px 16px;
  text-align: left;
}
th {
  background: #F2EADC;
  color: #225356;
  font-weight: 700;
}
td {
  color: #225356;
}
tr:nth-child(even) td {
  background: #F7F4EB;
}

/* --- LISTS --- */
ul, ol {
  margin-bottom: 18px;
  margin-left: 20px;
  padding-left: 18px;
}
ul li, ol li {
  margin-bottom: 7px;
}

/* --- FOOTER --- */
footer {
  background: #225356;
  color: #fff;
  padding: 34px 0 26px 0;
  border-top-left-radius: 42px 56px;
  border-top-right-radius: 42px 56px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 14px;
  justify-content: center;
}
.footer-nav a {
  color: #F2EADC;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 0.97rem;
  background: rgba(76,137,100,0.06);
  border-radius: 16px;
  padding: 8px 16px;
  transition: background 0.15s, color 0.13s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #8CAF6C;
  background: rgba(76,137,100,0.13);
}
.footer-contact {
  text-align: center;
  font-size: 0.98rem;
  margin-top: 6px;
}
.footer-contact a {
  color: #8CAF6C;
  text-decoration: underline;
  margin: 0 3px;
}
@media (max-width: 900px) {
  footer {
    padding: 26px 0 19px 0;
    border-radius: 28px 38px 28px 38px / 40px 22px 40px 22px;
  }
}

/* --- ORGANIC/NATURE ELEMENTS --- */
.section, .card, .testimonial-card, .feature-item, .cta, .cta-secondary {
  border-radius: 24px 45px 24px 45px/36px 18px 36px 18px;
}
.menu-types-grid > div,
.infoboxes > div, .comparison-chart {
  border-radius: 28px 12px 28px 12px/18px 30px 18px 30px;
  background: #F7F4EB;
  padding: 20px 18px 15px 18px;
  margin-bottom: 20px;
  box-shadow: 0 1px 6px 0 rgba(142,175,108,0.10);
}
.values ul, .values li {
  list-style: none;
  padding: 0;
  margin-bottom: 0;
}
.values ul {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.values li {
  display: flex;
  align-items: center;
  gap: 17px;
  background: #fff;
  border-radius: 27px 17px 27px 17px/19px 37px 19px 37px;
  padding: 15px 18px;
  box-shadow: 0 2px 7px 0 rgba(76,137,100,0.07);
  min-width: 220px;
  font-weight: 600;
  color: #4E7E2E;
}
.values img {
  width: 33px;
  height: 33px;
}

/* --- REVIEWS/TESTIMONIAL SECTIONS --- */
.review-summary {
  background: #EDE9DE;
  border-radius: 20px;
  box-shadow: 0 1px 8px 0 rgba(142,175,108,0.09);
  padding: 28px 22px;
  gap: 40px;
  align-items: flex-start;
  margin-bottom: 24px;
  color: #225356;
}
.review-summary .star-rating {
  font-size: 2rem;
  color: #8CAF6C;
}

/* --- SPECIAL SECTIONS --- */
.legal-text {
  background: rgba(242,234,220,0.57);
  border-radius: 20px;
  padding: 28px 18px;
  color: #225356;
  box-shadow: 0 1px 12px 0 rgba(34,83,86,0.05);
  margin-bottom: 18px;
}

.address-block, .office-hours {
  background: #FAF7EE;
  border-radius: 14px 28px 14px 28px/18px 22px 18px 22px;
  padding: 17px 14px 14px 17px;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  color: #225356;
  box-shadow: 0 3px 13px 0 rgba(76,137,100,0.07);
}
.contact-details ul {
  list-style: none;
  padding: 0;
  gap: 12px;
  display: flex;
  flex-direction: column;
}
.contact-details li {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1rem;
}
.contact-details img {
  width: 22px;
  height: 22px;
}

/* --- CARD-LIKE ELEMENTS (for Abläufe, Preistabellen etc.) --- */
.infoboxes, .comparison-chart {
  display: flex;
  flex-direction: row;
  gap: 22px;
}
.infoboxes > div, .comparison-chart {
  min-width: 210px;
}
@media (max-width: 800px) {
  .infoboxes, .comparison-chart {
    flex-direction: column;
    gap: 14px;
  }
}

.process-icons {
  display: flex;
  flex-direction: row;
  gap: 36px;
  align-items: center;
  margin: 18px 0 4px 0;
}
.process-icons img {
  width: 46px;
  height: 46px;
}

/* --- FAQ & ACCORDION --- */
.faq input[type="text"] {
  width: 100%;
  margin-bottom: 22px;
  border-radius: 14px;
}
.faq dl, .faq-preview dl {
  margin: 0 0 18px 0;
}
.faq dt {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #225356;
  margin-bottom: 7px;
  font-size: 1.07rem;
  margin-top: 14px;
}
.faq dd {
  margin-left: 0;
  margin-bottom: 10px;
  color: #4E7E2E;
  font-size: 1rem;
  background: rgba(142,175,108,0.07);
  border-radius: 12px;
  padding: 10px 16px;
  font-family: 'Open Sans', Arial, sans-serif;
}

/* --- THANK YOU / CONFIRMATION --- */
.confirmation {
  display: flex;
  flex-direction: column;
  gap: 19px;
  padding: 26px 18px;
  border-radius: 26px 37px 26px 37px/14px 32px 14px 32px;
  background: #F8F6EF;
  box-shadow: 0 1px 13px 0 rgba(76,137,100,0.09);
}
.next-steps ul {
  list-style: disc;
  padding-left: 24px;
  margin-left: 4px;
  margin-bottom: 12px;
}
.next-steps li {
  margin-bottom: 6px;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 700px) {
  h1 { font-size: 1.45rem; }
  h2 { font-size: 1.22rem; }
  .container { padding: 0 7px; }
}
@media (max-width: 500px) {
  .section {
    padding: 19px 3px;
    margin-bottom: 28px;
  }
  .testimonial-card, .feature-item, .review-summary {
    padding: 14px 8px;
    margin-bottom: 14px;
  }
  .review-summary {
    gap: 13px;
  }
}

/* --- MICRO-INTERACTIONS --- */
.cta, .cta-secondary, .main-nav a, .mobile-nav a, .testimonial-card, .card {
  transition: box-shadow 0.17s, background 0.17s, color 0.17s, transform 0.16s, border 0.17s;
}
.cta:active {
  transform: scale(0.97);
}

/* --- COOKIE BANNER --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  width: 97%;
  max-width: 620px;
  z-index: 1001;
  background: #F2EADC;
  box-shadow: 0 -2px 23px 0 rgba(34,83,86,.12);
  border-radius: 24px 24px 14px 14px/20px 20px 18px 18px;
  padding: 29px 22px 18px 22px;
  color: #225356;
  font-family: 'Open Sans', Arial, sans-serif;
  display: flex;
  flex-direction: column;
  gap: 13px;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.42s cubic-bezier(0.65,0,0.21,1), opacity 0.27s;
}
.cookie-banner.active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: all;
}
.cookie-banner p {
  font-size: 1rem;
}
.cookie-banner-buttons {
  display: flex;
  gap: 15px;
  margin-top: 7px;
  flex-wrap: wrap;
}
.cookie-banner button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  padding: 10px 27px;
  border-radius: 28px;
  border: none;
  margin: 0;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.18s, color 0.14s;
}
.cookie-banner .accept {
  background: #4E7E2E;
  color: #fff;
}
.cookie-banner .accept:hover, .cookie-banner .accept:focus { background: #225356; }
.cookie-banner .reject {
  background: #fff;
  border: 2px solid #4E7E2E;
  color: #4E7E2E;
}
.cookie-banner .reject:hover, .cookie-banner .reject:focus { background: #4E7E2E; color: #fff; }
.cookie-banner .settings {
  background: #225356;
  color: #fff;
}
.cookie-banner .settings:hover, .cookie-banner .settings:focus { background: #8CAF6C; color: #fff; }

/* COOKIE MODAL */
.cookie-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 1002;
  transform: translate(-50%, -54%) scale(0.95);
  background: #fff;
  border-radius: 24px 34px 24px 34px/26px 40px 26px 40px;
  box-shadow: 0 8px 44px 0 rgba(34,83,86,.19);
  padding: 38px 24px 29px 24px;
  width: 95%;
  max-width: 410px;
  opacity: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 23px;
  transition: transform 0.27s cubic-bezier(0.58,0,0.27,1), opacity 0.21s;
}
.cookie-modal.active {
  opacity: 1;
  pointer-events: all;
  transform: translate(-50%, -50%) scale(1);
}
.cookie-modal h2 {
  margin-bottom: 10px;
  color: #225356;
  font-size: 1.17rem;
}
.cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 17px;
  margin-bottom: 22px;
}
.cookie-category {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}
.cookie-category label {
  font-weight: 600;
  color: #4E7E2E;
}
.cookie-category input[type="checkbox"] {
  accent-color: #8CAF6C;
  width: 20px;
  height: 20px;
}
.cookie-category .always-on {
  font-size: 0.97rem;
  color: #C6C4B1;
}
.cookie-modal-buttons {
  display: flex;
  gap: 13px;
  justify-content: flex-end;
}
.cookie-modal button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  background: #4E7E2E;
  color: #fff;
  border: none;
  border-radius: 22px;
  padding: 9px 21px;
  font-size: 1rem;
  cursor: pointer;
}
.cookie-modal button.secondary {
  background: #fff;
  color: #4E7E2E;
  border: 2px solid #4E7E2E;
}
.cookie-modal button.secondary:hover, .cookie-modal button.secondary:focus { background: #4E7E2E; color: #fff; }

@media (max-width: 480px) {
  .cookie-banner {
    padding: 17px 5px 12px 8px;
    font-size: 0.93rem;
    width: 99%;
  }
  .cookie-modal {
    padding: 23px 6px 17px 8px;
    width: 99%;
  }
  .cookie-modal h2 {
    font-size: 1rem;
  }
}

/* --- UTILITIES & MISC --- */
.hidden { display: none !important; }
.text-section { margin-bottom: 12px; }
.card-grid { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; }
.card {
  margin-bottom: 20px;
}

::-webkit-scrollbar { width: 8px; background: #EDE9DE; }
::-webkit-scrollbar-thumb { background: #8CAF6C; border-radius: 8px; }
