/* === CSS RESET & BASE === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Roboto", Arial, sans-serif;
  background: #F7FAF4;
  color: #22543D;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  letter-spacing: 0.01em;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}
a {
  color: #22543D;
  text-decoration: none;
  transition: color 0.18s;
}
a:hover, a:focus {
  color: #8CB179;
}
ul, ol {
  padding-left: 1.25em;
  margin-bottom: 0.85em;
}
li + li {
  margin-top: 0.4em;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: "Montserrat", "Roboto", Arial, sans-serif;
  font-weight: 700;
  color: #22543D;
  margin-bottom: 16px;
  line-height: 1.18;
}
h1 {
  font-size: 2.4rem;
  margin-bottom: 18px;
}
h2 {
  font-size: 1.8rem;
  margin-bottom: 14px;
}
h3 {
  font-size: 1.28rem;
  margin-bottom: 8px;
  font-weight: 600;
}
h4, h5, h6 {
  font-size: 1rem;
  font-weight: 600;
}
p {
  font-size: 1rem;
  margin-bottom: 1em;
}
span {
  font-size: 1em;
}

/* === LAYOUT CONTAINERS === */
.container {
  width: 100%;
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* === SECTION SPACING === */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
@media (max-width: 900px) {
  section {
    padding: 32px 10px;
  }
}

/* === CARD LAYOUTS === */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 26px;
}
.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 14px 0 rgba(34,84,61,0.09);
  margin-bottom: 20px;
  position: relative;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: box-shadow 0.18s;
}
.card:hover {
  box-shadow: 0 4px 24px 0 rgba(34,84,61,0.13);
}

.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;
}

@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 20px;
  }
  .content-grid {
    flex-direction: column;
    gap: 20px;
  }
}

/* === TESTIMONIALS === */
.testimonial-card {
  background: #fff;
  color: #22543D;
  border-radius: 16px;
  box-shadow: 0 2px 16px 0 rgba(34,84,61,0.10);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  margin-bottom: 20px;
  font-size: 1.07rem;
  position: relative;
  min-width: 0;
}
.testimonial-card p {
  margin-bottom: 0.25em;
  font-style: italic;
}
.testimonial-card span {
  font-size: 0.97em;
  opacity: 0.8;
  margin-left: auto;
}
@media (max-width: 600px) {
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 16px 12px;
    font-size: 1rem;
  }
}

/* === FEATURE LISTS === */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
ul {
  list-style: disc inside;
}
ul li,
ol li {
  margin-bottom: 0.7em;
  font-size: 1.01em;
}

/* === TABLE (ANGEBOTE) === */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px 0 rgba(34,84,61,0.06);
  margin-bottom: 22px;
}
thead {
  background: #8CB179;
  color: #fff;
}
thead th {
  padding: 16px 10px;
  font-size: 1.11em;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 0.02em;
  font-weight: 600;
}
tbody td {
  padding: 14px 10px;
  color: #22543D;
  font-size: 1em;
}
tbody tr {
  border-bottom: 1px solid #F7FAF4;
}
tbody tr:last-child {
  border-bottom: none;
}
@media (max-width: 700px) {
  table,
  thead,
  tbody,
  th,
  td,
  tr {
    display: block;
    width: 100%;
  }
  thead tr {
    display: none;
  }
  tbody td {
    padding: 10px 6px;
    border-bottom: 1px solid #F7FAF4;
  }
}

/* === PRIMARY CTA BUTTONS === */
.cta-primary {
  background: #22543D;
  color: #fff;
  border: none;
  border-radius: 40px;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  padding: 0.75em 2em;
  display: inline-block;
  margin-top: 12px;
  box-shadow: 0 2px 10px 0 rgba(140,177,121,0.08);
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: background 0.18s, box-shadow 0.18s, color 0.18s, transform 0.13s;
}
.cta-primary:hover, .cta-primary:focus {
  background: #8CB179;
  color: #22543D;
  box-shadow: 0 4px 22px 0 rgba(140,177,121,0.19);
  transform: translateY(-1px) scale(1.02);
}

/* === NAVIGATION === */
header {
  background: #fff;
  box-shadow: 0 2px 12px 0 rgba(34,84,61,0.02);
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  padding: 20px 20px 14px 20px;
  max-width: 1080px;
  margin: 0 auto;
  font-size: 1.05em;
}
.main-nav img {
  height: 44px;
  width: auto;
  margin-right: 22px;
  border-radius: 10px;
  box-shadow: none;
  background: transparent;
}
.main-nav a {
  padding: 8px 14px;
  border-radius: 24px;
  transition: background 0.15s, color 0.13s;
}
.main-nav a:not(.cta-primary):hover, .main-nav a:not(.cta-primary):focus {
  background: #F7FAF4;
  color: #8CB179;
}
.main-nav .cta-primary {
  margin-left: 12px;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
  display: none;
  background: #8CB179;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 2rem;
  padding: 8px 16px;
  margin: 14px 18px 14px auto;
  cursor: pointer;
  transition: background 0.14s;
  z-index: 1202;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #22543D;
  color: #fff;
}

@media (max-width: 900px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* === MOBILE MENU === */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(34,84,61,0.95);
  transform: translateX(-100vw);
  transition: transform 0.32s cubic-bezier(.77,0,.18,1);
  z-index: 1201;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2.4rem;
  padding: 18px 20px 10px 10px;
  cursor: pointer;
  margin-left: auto;
  margin-right: 6px;
  margin-top: 12px;
  z-index: 1203;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #8CB179;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 8px;
  padding: 32px 0 0 0;
  align-items: flex-start;
  margin-left: 16px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.3rem;
  padding: 12px 32px 12px 0;
  border-radius: 24px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-align: left;
  transition: background 0.17s, color 0.15s;
  margin-bottom: 2px;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: #8CB179;
  color: #22543D;
}

/* Close mobile menu on very small devices covers full */
@media (max-width: 490px) {
  .mobile-menu {
    padding-right: 0;
  }
}

/* === FOOTER === */
footer {
  background: #fff;
  border-top: 2px solid #F7FAF4;
  box-shadow: 0 -1px 10px 0 rgba(34,84,61,0.04);
  padding: 34px 20px 18px 20px;
  margin-top: 32px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 12px;
}
.footer-nav a {
  color: #22543D;
  font-size: 1em;
  padding: 4px 10px;
  border-radius: 16px;
  transition: background 0.13s, color 0.12s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #8CB179;
  background: #F7FAF4;
}
.footer-info {
  font-size: 0.98em;
  color: #22543D;
  margin-top: 4px;
  line-height: 1.6;
}
address {
  font-style: normal;
  color: #22543D;
}

@media (max-width: 600px) {
  .footer-nav {
    flex-direction: column;
    gap: 7px;
    align-items: flex-start;
  }
}

/* === COOKIE CONSENT BANNER === */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0;
  width: 100vw;
  background: #22543D;
  color: #fff;
  z-index: 9002;
  box-shadow: 0 -2px 24px 0 rgba(34,84,61,0.15);
  padding: 16px 24px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  font-size: 1.02rem;
  flex-wrap: wrap;
  transition: transform 0.35s, opacity 0.23s;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 12px;
  margin-left: auto;
}
.cookie-banner button {
  background: #8CB179;
  color: #22543D;
  border: none;
  border-radius: 28px;
  font-size: 1em;
  padding: 8px 22px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.16s, color 0.13s, box-shadow 0.13s;
  box-shadow: 0 1px 4px 0 rgba(140,177,121,0.18);
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: #F7FAF4;
  color: #22543D;
}

/* Cookie preferences modal */
.cookie-modal-overlay {
  position: fixed;
  z-index: 9900;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(34,84,61, 0.70);
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.22s, visibility 0.18s;
}
.cookie-modal-overlay.show {
  visibility: visible;
  opacity: 1;
}
.cookie-modal {
  background: #fff;
  color: #22543D;
  border-radius: 18px;
  box-shadow: 0 6px 36px 0 rgba(34,84,61,0.20);
  padding: 38px 28px 28px 28px;
  max-width: 430px;
  width: 93vw;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: fadeInModal 0.33s cubic-bezier(.68,-0.55,.27,1.55);
}
@keyframes fadeInModal { from { transform: scale(0.97); opacity:0; } to { transform: scale(1); opacity:1; } }
.cookie-modal h2 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}
.cookie-modal .category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.cookie-modal .category label {
  font-size: 1.05em;
}
.cookie-modal .switch {
  position: relative;
  display: inline-block;
  width: 36px; height: 20px;
}
.cookie-modal .switch input {
  opacity: 0; width: 0; height: 0;
}
.cookie-modal .slider {
  position: absolute; cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #F7FAF4;
  border-radius: 14px;
  transition: background 0.17s;
}
.cookie-modal .switch input:checked + .slider {
  background: #8CB179;
}
.cookie-modal .slider:before {
  position: absolute;
  content: "";
  height: 15px; width: 15px;
  left: 3px; bottom: 2.5px;
  background: #22543D;
  border-radius: 50%;
  transition: transform 0.19s;
}
.cookie-modal .switch input:checked + .slider:before {
  transform: translateX(15px);
  background: #fff;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 14px;
  margin-top: 12px;
}
.cookie-modal button {
  border-radius: 28px;
  background: #8CB179;
  color: #22543D;
  font-family: 'Montserrat', sans-serif;
  padding: 8px 18px;
  font-size: 1em;
  border: none;
  cursor: pointer;
  transition: background 0.13s, color 0.12s;
}
.cookie-modal button:hover {
  background: #22543D;
  color: #fff;
}
.cookie-modal .close-modal {
  position: absolute;
  right: 18px;
  top: 18px;
  background: transparent;
  color: #8CB179;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  z-index: 9951;
}
.cookie-modal .close-modal:hover, .cookie-modal .close-modal:focus {
  color: #22543D;
}

/* ===== GENERAL BUTTONS ===== */
button {
  font-family: inherit;
  font-size: 1em;
  cursor: pointer;
}

/* === RESPONSIVE MEDIA QUERIES === */
@media (max-width: 600px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.23rem; }
  .container { max-width: 99vw; }
  section,
  .footer,
  .content-wrapper {
    padding-left: 5vw;
    padding-right: 5vw;
  }
  .card { padding: 18px 8px; }
}

/* === ADDITIONAL UTILITIES, MICRO-INTERACTIONS, SHADOWS === */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.features {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.card-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

/* Hide on desktop, show only on mobile */
@media (min-width: 901px) {
  .mobile-menu {
    display: none !important;
  }
}

/* === FOCUS OUTLINE FOR ACCESSIBILITY === */
:focus-visible {
  outline: 2px solid #8CB179;
  outline-offset: 2px;
}

/* === SPACING FOR ALL CARDS/SECTIONS === */
section + section { margin-top: 20px; }
.card + .card { margin-top: 20px; }
.content-wrapper + .content-wrapper { margin-top: 20px; }

/* === CATEGORY TAGS (e.g. im Blog) === */
span[class^="category"], .tag {
  display: inline-block;
  padding: 2px 14px;
  background: #8CB179;
  color: #fff;
  border-radius: 17px;
  font-size: 0.92em;
  font-weight: 600;
  margin-right: 7px;
  margin-bottom: 4px;
}

/* === FORM STYLES (if needed in extensions) === */
input, textarea, select {
  border-radius: 10px;
  border: 1px solid #8CB179;
  background: #F7FAF4;
  padding: 10px 14px;
  font-size: 1em;
  color: #22543D;
  margin-bottom: 12px;
  transition: border 0.14s;
}
input:focus, textarea:focus, select:focus {
  border-color: #22543D;
}

/* === Z-INDEX BASES & OVERLAPS === */
header, .main-nav, .footer, .footer-nav, .footer-info { z-index: 90; }
.mobile-menu { z-index: 1201; }
.mobile-menu-toggle { z-index: 1202; }
.cookie-banner { z-index: 9002; }
.cookie-modal-overlay { z-index: 9900; }

/* === END OF STYLE.CSS === */
