/* ---------------------------------------------------
  CSS RESET & BASELINE 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,
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, 
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 {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  background: #F6F7EB;
  color: #1c2b22;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  letter-spacing: 0.02em;
}
*, *::before, *::after {
  box-sizing: inherit;
}
img, video {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #114B5F;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #028090;
  text-decoration: underline;
}
ul, ol {
  padding-left: 1.5em;
  margin-bottom: 1em;
}
address {
  font-style: normal;
}

/* ---------------------------------------------------
  COLOR VARIABLES (WITH FALLBACKS)
----------------------------------------------------- */
:root {
  --primary: #114B5F;
  --secondary: #028090;
  --accent: #F6F7EB;
  --earth: #A4B494;
  --earth-dark: #738678;
  --leaf: #659157;
  --sand: #E7D2A7;
  --bark: #5B524C;
  --warn: #BA8D3D;
  --success: #4B8453;
  --card-shadow: rgba(17,75,95,0.10);
}

/* ---------------------------------------------------
  TYPOGRAPHY
----------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  color: #114B5F;
  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; }
h4, h5, h6 { font-size: 1.1rem; }
p, li, ul, ol, address, .testimonial-meta, span, td, th {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #263238;
  font-weight: 400;
}
p { font-size: 1rem; margin-bottom: 16px; }
.subheadline {
  color: var(--earth-dark);
  font-size: 1.25rem;
  margin-bottom: 16px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
}
strong, b { font-weight: 700; }

/* ---------------------------------------------------
  LAYOUT CONTAINERS & SECTIONS
----------------------------------------------------- */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}
/* Mandatory spacing and alignment for top-level sections */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
  border-radius: 36px;
}
@media (max-width: 600px) {
  section { padding: 24px 5px; margin-bottom: 32px; border-radius: 14px; }
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.text-section {
  background: var(--sand);
  border-radius: 32px;
  padding: 32px;
}
@media (max-width: 600px) {
  .text-section { padding: 16px; border-radius: 14px; }
}
.section-earth {
  background: var(--earth);
  border-radius: 36px;
}

/* ---------------------------------------------------
  FLEXBOX GRIDS & FEATURE CARDS
----------------------------------------------------- */
.feature-grid,
.card-container,
.content-grid,
.service-listings,
.testimonials-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-bottom: 12px;
}
@media (max-width: 900px) {
  .feature-grid, .service-listings, .content-grid, .card-container, .testimonials-wrapper {
    flex-direction: column;
    gap: 16px;
  }
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--accent);
  border-radius: 24px;
  padding: 28px 24px;
  min-width: 220px;
  max-width: 350px;
  box-shadow: 0 4px 16px var(--card-shadow);
  margin-bottom: 20px;
  border: 2px solid var(--earth);
  transition: box-shadow 0.25s, border-color 0.25s;
}
.feature-item img {
  width: 48px;
  height: 48px;
  margin-bottom: 10px;
}
.feature-item:hover,
.feature-item:focus-within {
  box-shadow: 0 8px 24px rgba(101,145,87,0.13);
  border-color: var(--leaf);
}

/* CARD CONTAINER (General) */
.card-container {
  gap: 24px;
  margin-bottom: 20px;
}
.card {
  background: var(--accent);
  border-radius: 20px;
  box-shadow: 0 2px 8px var(--card-shadow);
  padding: 24px;
  margin-bottom: 20px;
  position: relative;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

/* Service Listings (Leistungen) */
.service-listings {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.service-card {
  background: var(--accent);
  border-radius: 24px;
  padding: 28px 22px;
  box-shadow: 0 4px 16px var(--card-shadow);
  flex: 1 1 220px;
  max-width: 330px;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  border: 2px solid var(--earth);
  margin-bottom: 20px;
  transition: box-shadow 0.22s, border-color 0.21s;
}
.service-card img {
  width: 40px;
  height: 40px;
}
.service-card:hover {
  border-color: var(--leaf);
  box-shadow: 0 8px 24px rgba(101,145,87,0.13);
}

/* Table Styling (Membership models, etc.) */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--accent);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 1px 6px var(--card-shadow);
}
th, td {
  padding: 14px 10px;
  text-align: left;
  border-bottom: 1px solid var(--earth);
}
th {
  background: var(--earth);
  color: #114B5F;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
}
tr:last-child td {
  border-bottom: none;
}
@media (max-width: 700px) {
  table, thead, tbody, th, td, tr {
    display: block;
    width: 100%;
  }
  th, td {
    padding: 10px 6px;
  }
  tr {
    margin-bottom: 8px;
  }
}

/* ---------------------------------------------------
  BUTTONS, CTAs, AND LINKS
----------------------------------------------------- */
.cta-btn, button, .mobile-menu-toggle, .mobile-menu-close {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  border: none;
  outline: none;
  background: var(--leaf);
  color: #fff;
  padding: 14px 32px;
  border-radius: 28px;
  box-shadow: 0 2px 8px var(--card-shadow);
  font-size: 1rem;
  margin: 8px 0 0 0;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  display: inline-block;
  position: relative;
}
.cta-btn:hover, .cta-btn:focus, button:hover, button:focus, .mobile-menu-toggle:hover, .mobile-menu-close:hover {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 18px rgba(17, 75, 95, 0.12);
  text-decoration: none;
}
.cta-btn.secondary {
  background: var(--secondary);
}
.cta-btn:active {
  background: var(--leaf);
  color: #f6f7eb;
}
.btn-group {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

/* Inline Links in text */
.content-wrapper a:not(.cta-btn), .text-section a:not(.cta-btn) {
  color: var(--secondary);
  border-bottom: 1.5px solid var(--leaf);
  transition: color 0.14s, border-bottom 0.24s;
  padding-bottom: 1px;
}
.content-wrapper a:not(.cta-btn):hover, .text-section a:not(.cta-btn):hover {
  color: var(--leaf);
  border-bottom-color: var(--primary);
}

/* ---------------------------------------------------
  TESTIMONIALS
----------------------------------------------------- */
.testimonials-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
  justify-content: flex-start;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  min-width: 220px;
  max-width: 380px;
  background: #fff;
  border-radius: 24px 24px 20px 40px;
  box-shadow: 0 2px 12px var(--card-shadow);
  border: 2px solid var(--earth);
  margin-bottom: 20px;
  transition: box-shadow 0.20s, border-color 0.18s;
  position: relative;
  color: #1E272B;
}
.testimonial-card .stars {
  color: var(--leaf);
  font-size: 1.25rem;
  margin-bottom: 4px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  letter-spacing: 1.5px;
}
.testimonial-meta {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 0.98rem;
  color: var(--bark);
  margin-top: 4px;
  font-weight: 600;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 8px 32px rgba(101,145,87,0.13);
  border-color: var(--leaf);
}

/* ---------------------------------------------------
  NAVIGATION (DESKTOP)
----------------------------------------------------- */
header {
  background: linear-gradient(90deg, var(--earth) 0%, var(--accent) 100%);
  box-shadow: 0 2px 8px var(--card-shadow);
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  z-index: 15;
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 14px;
}
.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  list-style: none;
  margin-left: 28px;
}
.main-nav li {
  margin: 0;
}
.main-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  color: #114B5F;
  font-size: 1.02rem;
  padding: 8px 14px;
  border-radius: 16px;
  transition: background 0.16s, color 0.16s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--leaf);
  color: #fff;
}
.main-nav img {
  height: 38px;
}

/* HIDE mobile menu button on desktop */
.mobile-menu-toggle {
  display: none;
}

/* ---------------------------------------------------
  RESPONSIVE: NAVIGATION (MOBILE)
----------------------------------------------------- */
@media (max-width: 900px) {
  .main-nav ul {
    display: none;
  }
  .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
    background: var(--leaf);
    color: #fff;
    font-size: 2rem;
    border-radius: 20px;
    padding: 10px 18px;
    margin-right: 8px;
    margin-left: auto;
    line-height: 1;
    z-index: 1051;
    transition: background 0.17s, color 0.17s;
  }
  .mobile-menu-toggle:focus {
    background: var(--primary);
  }
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(120deg, var(--earth) 70%, var(--leaf) 100%);
  box-shadow: -2px 0 24px rgba(17,75,95,0.13);
  z-index: 2000;
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1), opacity 0.26s;
}
.mobile-menu.active {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-close {
  background: none;
  color: #114B5F;
  font-size: 2.25rem;
  border: none;
  align-self: flex-end;
  margin: 24px 24px 0 0;
  cursor: pointer;
  outline: none;
  transition: color 0.17s, background 0.18s;
  z-index: 99;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  color: var(--leaf);
  background: #E7D2A7;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin: 32px;
  margin-top: 48px;
  align-items: flex-start;
}
.mobile-nav a {
  font-size: 1.25rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #114B5F;
  padding: 8px 10px;
  border-radius: 10px;
  transition: background 0.16s, color 0.16s;
  min-width: 160px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--primary);
  color: #fff;
}
@media (min-width: 901px) {
  .mobile-menu, .mobile-menu-toggle {
    display: none !important;
  }
}

/* ---------------------------------------------------
  HERO, FLEX SECTIONS, TEXT-IMAGE, ETC.
----------------------------------------------------- */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 800px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

/* ---------------------------------------------------
  FOOTER
----------------------------------------------------- */
footer {
  background: var(--earth-dark);
  color: #fff;
  padding: 0 0 0 0;
}
.footer-main {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  padding: 40px 20px;
  max-width: 1120px;
  margin: 0 auto;
}
.footer-main img {
  height: 36px;
  margin-bottom: 18px;
}
.footer-main nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-main nav a {
  color: #f6f7eb;
  font-size: 1.08rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  transition: color 0.16s;
  padding: 1px 0;
}
.footer-main nav a:hover, .footer-main nav a:focus {
  color: #A4B494;
  text-decoration: underline;
}
.footer-main div {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #fff;
  font-size: 0.99rem;
}
.footer-main address {
  color: #F6F7EB;
  font-size: 1rem;
}
.footer-main span {
  color: #A4B494;
  font-size: 0.98rem;
}
@media (max-width: 900px) {
  .footer-main {
    flex-direction: column;
    gap: 16px;
    padding: 30px 8px;
    text-align: left;
  }
  .footer-main nav { flex-direction: row; gap: 16px; flex-wrap: wrap; }
}

/* ---------------------------------------------------
  COOKIE CONSENT BANNER & PREFERENCES MODAL
----------------------------------------------------- */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: linear-gradient(92deg, var(--earth) 60%, var(--accent) 100%);
  color: #114B5F;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 16px 20px 22px;
  z-index: 3000;
  box-shadow: 0 -2px 16px rgba(20,55,34,0.11);
  border-radius: 12px 12px 0 0;
  font-size: 1rem;
  transition: transform 0.28s cubic-bezier(0.38,0.01,0.42,1), opacity 0.22s;
  opacity: 1;
  transform: translateY(0);
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
}
.cookie-banner .btn-group {
  gap: 12px;
}
.cookie-banner button {
  background: var(--leaf);
  color: #fff;
  padding: 10px 22px;
  font-size: 1rem;
  border-radius: 20px;
  margin: 0 4px;
}
.cookie-banner button:focus, .cookie-banner button:hover {
  background: var(--primary);
  color: #fff;
}
.cookie-banner button.reject {
  background: #A4B494;
  color: #fff;
}
.cookie-banner button.settings {
  background: #E7D2A7;
  color: #114B5F;
}
.cookie-banner button.settings:hover, .cookie-banner button.settings:focus {
  background: #BA8D3D;
  color: #fff;
}
@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 7px 12px 12px;
    font-size: 0.97rem;
  }
}

/* Cookie Preferences Modal */
.cookie-modal-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  inset: 0;
  background: rgba(16,31,16,0.24);
  z-index: 4000;
  transition: opacity 0.25s;
  opacity: 0;
  pointer-events: none;
}
.cookie-modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal {
  background: var(--accent);
  border-radius: 24px;
  padding: 36px 28px;
  max-width: 420px;
  width: calc(100vw - 30px);
  box-shadow: 0 6px 32px rgba(17,75,95,0.14);
  display: flex;
  flex-direction: column;
  gap: 26px;
  z-index: 4010;
}
.cookie-modal h2 {
  font-size: 1.35rem;
  margin-bottom: 8px;
  color: var(--primary);
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 1rem;
  margin-bottom: 14px;
}
.cookie-toggle {
  appearance: none;
  width: 38px;
  height: 22px;
  border-radius: 11px;
  background: #A4B494;
  position: relative;
  outline: none;
  transition: background 0.18s;
  cursor: pointer;
}
.cookie-toggle:checked {
  background: var(--leaf);
}
.cookie-toggle:before {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: left 0.18s;
}
.cookie-toggle:checked:before {
  left: 19px;
}
.cookie-modal .btn-group {
  justify-content: flex-end;
  gap: 14px;
}
.cookie-modal .close-modal {
  background: none;
  color: #114B5F;
  border: none;
  font-size: 1.6rem;
  position: absolute;
  top: 13px;
  right: 16px;
  cursor: pointer;
}
.cookie-modal .close-modal:hover,
.cookie-modal .close-modal:focus { color: var(--leaf); }

/* ---------------------------------------------------
  UTILITY CLASSES
----------------------------------------------------- */
.gap-16 { gap: 16px !important; }
.m-t-24 { margin-top: 24px !important; }
.m-b-24 { margin-bottom: 24px !important; }
.flex-center { display: flex; justify-content: center; align-items: center; }

/* ---------------------------------------------------
  ORGANIC NATURE STYLES: SHAPES & TEXTURE
----------------------------------------------------- */
section, .feature-item, .service-card, .testimonial-card, .card, .text-section, .cookie-modal, .cookie-banner {
  /* soft subtle organic touch with border-radius */
  border-radius: 36px 32px 28px 80px/22px 36px 36px 64px;
}
@media (max-width: 700px) {
  section, .feature-item, .service-card, .testimonial-card,.card, .text-section, .cookie-modal, .cookie-banner {
    border-radius: 16px 16px 18px 26px/11px 16px 19px 32px;
  }
}
/* Slight grain texture effect via SVG background image as data URI (only on some cards/sections) */
.organic-texture {
  background-image: url("data:image/svg+xml,%3Csvg width='120' height='120' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle fill='%23e7d2a7' fill-opacity='0.1' cx='60' cy='60' r='35'/%3E%3Cellipse fill='%23659157' fill-opacity='0.08' cx='85' cy='24' rx='10' ry='7'/%3E%3Cellipse fill='%23817b5a' fill-opacity='0.05' cx='29' cy='96' rx='8' ry='4'/%3E%3C/svg%3E");
  background-size: 200px auto;
  background-repeat: no-repeat;
  background-position: 90% 70%;
}

/* ---------------------------------------------------
  SPACING & RESPONSIVE HEADINGS
----------------------------------------------------- */
@media (max-width: 700px) {
  h1 { font-size: 2rem; margin-bottom: 18px; }
  h2 { font-size: 1.45rem; margin-bottom: 12px; }
  h3 { font-size: 1.06rem; margin-bottom: 10px; }
  .subheadline { font-size: 1.07rem; }
  p { font-size: 0.98rem; }
}

/* ---------------------------------------------------
  TABLES: Scrollable Mobile
----------------------------------------------------- */
@media (max-width: 700px) {
  .content-wrapper table {
    overflow-x: auto;
    display: block;
    width: 100%;
  }
}

/* ---------------------------------------------------
  ACCESSIBILITY & SELECTION
----------------------------------------------------- */
::selection {
  background: #A4B494;
  color: #fff;
}

/* ---------------------------------------------------
  ANIMATIONS & MICRO-INTERACTIONS
----------------------------------------------------- */
.cta-btn, .feature-item, .service-card, .testimonial-card, .card {
  transition: box-shadow 0.19s, border-color 0.19s, background 0.19s, color 0.14s;
}
.content-wrapper, .feature-grid, .testimonials-wrapper, .service-listings {
  transition: gap 0.15s;
}
@media (max-width: 600px) {
  .card, .feature-item, .service-card, .testimonial-card { min-width: 0; }
}

/* ---------------------------------------------------
  FORMS & INPUTS (for future-proofing)
----------------------------------------------------- */
input, select, textarea {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  padding: 12px;
  border-radius: 8px;
  border: 1.5px solid var(--earth);
  margin-bottom: 14px;
  background: #fff;
  color: #263238;
  width: 100%;
  outline: none;
  transition: border-color 0.15s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--leaf);
}

/* ---------------------------------------------------
  CUSTOM FLEXBOX 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; }

/* RESPONSIVE FLEX-DIRECTION RULES */
@media (max-width: 768px) {
  .text-image-section, .feature-grid, .service-listings, .card-container, .content-grid, .testimonials-wrapper {
    flex-direction: column !important;
    align-items: stretch;
  }
}
