/* ===================================================================
   CSS RESET & BASE STYLES
   =================================================================== */

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

article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F2F7F2;
  color: #222;
}
ol, ul {
  list-style: none;
}
blockquote, q {
  quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
  content: '';
  content: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===================================================================
   VARIABLES & FONT IMPORTS
   =================================================================== */

@import url('https://fonts.googleapis.com/css?family=Montserrat:700,900&display=swap');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600,700&display=swap');

:root {
  /* Brand Colors */
  --color-primary: #125A44;
  --color-primary-dark: #0c3d2e;
  --color-secondary: #F2F7F2;
  --color-white: #fff;
  --color-accent: #9C7A00;
  --color-accent-alt: #C09F38;
  /* Earth tones & nature-inspired support */
  --color-earth-1: #EADDCA;
  --color-earth-2: #B7B79B;
  --color-leaf: #48996B;
  --color-bark: #6D5B37;
  --color-sky: #A1C8B4;
  --color-shadow: rgba(18,90,68,0.07);

  /* Typography */
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Open Sans', Verdana, sans-serif;

  /* Spacing & Radius */
  --radius-card: 20px;
  --radius-btn: 27px;

  --shadow-card: 0 4px 22px var(--color-shadow);
  --shadow-btn: 0 2px 10px rgba(18,90,68,0.12);

  --transition: all 0.23s cubic-bezier(.33,.58,.43,1);
}

/* ===================================================================
   TYPOGRAPHY
   =================================================================== */

body {
  font-family: var(--font-body);
  background: var(--color-secondary);
  color: #21302D;
  font-size: 16px;
  min-height: 100vh;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-primary);
  letter-spacing: -0.04em;
}
h1 {
  font-size: 2.5rem; /* 40px */
  font-weight: 900;
  margin-bottom: 18px;
}
h2 {
  font-size: 2rem; /* 32px */
  font-weight: 700;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.3rem; /* ~21px */
  font-weight: 600;
  margin-bottom: 10px;
}
h4, h5, h6 {
  font-size: 1.1rem;
  font-weight: 600;
}
p {
  color: #283930;
  font-size: 1rem;
  margin-bottom: 16px;
}
strong {
  color: var(--color-primary);
  font-weight: 600;
}

.sub-note {
  color: #667d64;
  font-size: 15px;
  margin-top: 10px;
  font-style: italic;
}

/* ===================================================================
   LAYOUT & FLEXBOX CONTAINERS
   =================================================================== */

.container {
  width: 100%;
  max-width: 1160px;
  padding: 0 18px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}

.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.text-section {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.features-grid, .testimonials-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 14px;
  margin-bottom: 12px;
}

.features-grid {
  justify-content: flex-start;
  align-items: stretch;
}

.testimonials-grid {
  justify-content: flex-start;
  align-items: stretch;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.card {
  background: var(--color-white);
  border-radius: var(--radius-card);
  margin-bottom: 20px;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  position: relative;
  padding: 30px 22px 24px 22px;
  display: flex;
  flex-direction: column;
  min-width: 240px;
  max-width: 340px;
  flex: 1 1 240px;
}
.card:hover, .feature:hover {
  box-shadow: 0 8px 32px rgba(18,90,68,0.14);
  transform: translateY(-4px) scale(1.01);
}

.feature {
  background: var(--color-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 28px 18px 22px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  transition: var(--transition);
  min-width: 235px;
  flex: 1 1 225px;
  margin-bottom: 8px;
}
.feature img {
  width: 54px;
  height: 54px;
  margin-bottom: 7px;
}

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

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  background: var(--color-earth-1);
  color: #222;
  padding: 20px;
  border-radius: 17px;
  margin-bottom: 20px;
  box-shadow: 0 1px 8px 1px rgba(34,60,49,0.07);
  min-width: 230px;
  max-width: 410px;
  flex: 1 1 220px;
}
.testimonial-card blockquote {
  color: #18342B;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.09rem;
  quotes: "\201C" "\201D";
}
.testimonial-meta {
  color: var(--color-primary);
  font-size: 0.98rem;
  margin-top: 2px;
  font-style: italic;
}

/* List Styles */
ul, ol {
  margin-left: 22px;
  margin-bottom: 18px;
  color: #375041;
}
ul li {
  margin: 0 0 11px 0;
  padding-left: 0.2em;
  position: relative;
}
ul li::before {
  content: '';
  display: inline-block;
  vertical-align: middle;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 9px;
  background: var(--color-accent);
  position: relative;
  top: -1px;
}

dt {
  font-weight: 700;
  margin-top: 15px;
  color: #253C2C;
}
dd {
  margin-left: 0;
  margin-bottom: 14px;
  color: #3c5747;
  font-size: 1rem;
}

/* ===================================================================
   HEADER
   =================================================================== */

header {
  background: var(--color-white);
  box-shadow: 0 3px 16px 0 rgba(36, 61, 49,.05);
  width: 100%;
  z-index: 14;
  position: relative;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  padding: 15px 18px;
}
header nav {
  display: flex;
  gap: 24px;
}
header nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--color-primary);
  padding: 6px 0 6px 0;
  position: relative;
  border-radius: 7px;
  transition: background 0.23s;
}
header nav a:hover, header nav a:focus {
  background: var(--color-secondary);
  color: var(--color-accent);
}
header img {
  height: 48px;
  margin-right: 42px;
  border-radius: 11px;
  background: none;
}
header .btn-primary {
  margin-left: 28px;
}

@media (max-width: 900px) {
  header .container {
    flex-wrap: wrap;
  }
  header img {
    margin-right: 0px;
  }
}

@media (max-width: 760px) {
  header nav,
  header .btn-primary {
    display: none;
  }
  header .container {
    padding: 10px 11px;
  }
  header img {
    height: 40px;
  }
}

/* ===================================================================
   BUTTONS & LINKS
   =================================================================== */
.btn-primary {
  background: var(--color-primary);
  color: var(--color-secondary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.09rem;
  border-radius: var(--radius-btn);
  padding: 12px 27px 11px 27px;
  border: none;
  outline: none;
  cursor: pointer;
  box-shadow: var(--shadow-btn);
  transition: background 0.19s, transform 0.16s, box-shadow 0.2s;
  margin-top: 18px;
  margin-bottom: 8px;
  letter-spacing: 0.01em;
  display: inline-block;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--color-accent);
  color: var(--color-white);
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 4px 22px rgba(156,122,0,0.14);
}
.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-btn);
  font-family: var(--font-display);
  font-weight: 700;
  padding: 12px 24px 10px 24px;
  margin-left: 16px;
  margin-top: 8px;
  margin-bottom: 8px;
  transition: color 0.18s, border 0.18s, background 0.17s;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--color-earth-2);
  color: var(--color-accent-alt);
  border-color: var(--color-accent-alt);
}

/* Accessibility focus */
.btn-primary:focus-visible,
.btn-secondary:focus-visible {
  outline: 2px dashed var(--color-accent);
  outline-offset: 1px;
  box-shadow: 0 0 0 2px var(--color-accent-alt);
}

/* ===================================================================
   HERO SECTION
   =================================================================== */
.hero {
  background: linear-gradient(155deg, #F2F7F2 78%, var(--color-earth-1) 100%);
  padding-top: 28px;
  padding-bottom: 38px;
  border-radius: 0 0 104px 0 / 0 0 64px 0;
  margin-bottom: 56px;
}
.hero .container {
  flex-direction: column;
  gap: 0;
}
.hero .content-wrapper {
  text-align: left;
  align-items: flex-start;
  gap: 10px;
}
.hero h1 {
  color: var(--color-primary);
  line-height: 1.1;
}
.hero p {
  font-size: 1.13rem;
  color: #315340;
}

/* ===================================================================
   TABLES
   =================================================================== */
table {
  width: 100%;
  background: var(--color-earth-1);
  border-radius: 13px;
  margin-bottom: 26px;
  overflow-x: auto;
  box-shadow: 0 1px 10px 0 rgba(36, 61, 49,.07);
}
table th, table td {
  padding: 11px 13px;
  text-align: left;
  font-family: var(--font-body);
  font-size: 15px;
  color: #233e31;
}
table thead {
  background: var(--color-accent-alt);
  color: var(--color-white);
}
table th {
  font-family: var(--font-display);
  font-weight: 700;
}
table tr {
  border-bottom: 1px solid #e2e2d4;
}
table tr:last-child {
  border-bottom: none;
}

/* ===================================================================
   FOOTER
   =================================================================== */
footer {
  background: #E5ECE6;
  padding: 40px 0 15px 0;
  margin-top: 60px;
  border-radius: 40px 40px 0 0 / 27px 27px 0 0;
  box-shadow: 0px -1px 18px 0px rgba(34,60,49,0.07);
}
footer .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  max-width: 1160px;
}
footer nav {
  display: flex;
  gap: 23px;
}
footer nav a {
  font-family: var(--font-display);
  color: var(--color-primary-dark);
  font-size: 1.01rem;
  opacity: 0.88;
  padding: 3px 0;
  transition: color 0.16s;
}
footer nav a:hover, footer nav a:focus {
  color: var(--color-accent);
}
footer p {
  color: #526751;
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  footer .container {
    flex-direction: column;
    gap: 9px;
    align-items: flex-start;
  }
  footer nav {
    flex-wrap: wrap;
    gap: 15px;
  }
}

/* ===================================================================
   MOBILE MENU & NAVIGATION
   =================================================================== */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 22px;
  right: 20px;
  z-index: 130;
  width: 48px;
  height: 48px;
  padding: 0;
  background: var(--color-primary);
  color: #fff;
  font-size: 2rem;
  border: none;
  border-radius: 50%;
  box-shadow: 0 2px 7px 0 rgba(18,90,68,0.13);
  cursor: pointer;
  transition: background 0.18s, transform .15s;
}
.mobile-menu-toggle:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
@media (max-width: 760px) {
  .mobile-menu-toggle {
    display: block;
  }
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(31,59,47,0.96);
  transform: translateX(-100%);
  transition: transform 0.34s cubic-bezier(.3,.67,.36,1.1);
  z-index: 1500;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 15px;
  right: 22px;
  font-size: 2.2rem;
  background: none;
  color: #fff;
  border: none;
  cursor: pointer;
  z-index: 1540;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 26px;
  padding: 84px 32px 39px 38px;
  width: 100%;
}
.mobile-nav a {
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.23rem;
  padding: 11px 0;
  border-radius: 7px;
  width: 100%;
  display: block;
  transition: background 0.18s, color 0.15s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-leaf);
  color: var(--color-accent-alt);
  outline: none;
}

@media (max-width: 480px) {
  .mobile-nav {
    padding: 80px 13px 30px 16px;
  }
}

/* Prevent body scroll when mobile menu is open (JS will set .menu-open on body) */
body.menu-open {
  overflow: hidden;
}

/* ===================================================================
   COOKIE CONSENT BANNER & MODAL
   =================================================================== */
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: var(--color-earth-1);
  color: #253c2c;
  box-shadow: 0 -2px 18px 0 rgba(18,90,68,0.09);
  z-index: 1600;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 32px;
  justify-content: center;
  padding: 22px 16px 22px 22px;
  font-size: 1rem;
  transition: transform .3s;
}
.cookie-consent-banner.slide-down {
  transform: translateY(0);
}
.cookie-consent-banner.slide-up {
  transform: translateY(100%);
}
.cookie-consent-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  margin-left: 20px;
}
.cookie-consent-banner button {
  font-family: var(--font-display);
  font-size: 1rem;
  border: none;
  border-radius: 24px;
  padding: 9px 21px;
  margin-left: 0px;
  margin-right: 0px;
  cursor: pointer;
  box-shadow: 0 1px 6px 0 rgba(18,90,68,0.08);
  transition: background 0.18s, color 0.13s;
}
.cookie-consent-banner .btn-accept {
  background: var(--color-leaf);
  color: #fff;
  font-weight: bold;
}
.cookie-consent-banner .btn-accept:hover {
  background: var(--color-primary);
}
.cookie-consent-banner .btn-reject {
  background: #ebebeb;
  color: #705b19;
  font-weight: 600;
}
.cookie-consent-banner .btn-reject:hover {
  background: #ded5b8;
}
.cookie-consent-banner .btn-settings {
  background: transparent;
  color: var(--color-accent-alt);
  border: 2px solid var(--color-accent-alt);
}
.cookie-consent-banner .btn-settings:hover {
  background: var(--color-accent-alt);
  color: #fff;
}

@media (max-width: 680px) {
 .cookie-consent-banner {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
    padding: 15px 8px;
  }
  .cookie-consent-banner .cookie-actions {
    gap: 8px;
    margin-left: 0;
    margin-top: 9px;
  }
}

/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(34,60,49,0.33);
  z-index: 1700;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity .25s;
}
.cookie-modal-overlay.closed {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: var(--color-secondary);
  max-width: 435px;
  width: 95vw;
  padding: 38px 19px 21px 24px;
  border-radius: 18px;
  box-shadow: 0 6px 36px 1px rgba(18,90,68,0.14);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 1710;
}
.cookie-modal h2 {
  font-size: 1.34rem;
}
.cookie-modal-close {
  position: absolute;
  right: 13px;
  top: 10px;
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: 2rem;
  cursor: pointer;
  z-index: 1720;
}
.cookie-modal .categories-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-top: 8px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 17px;
  background: var(--color-earth-2);
  border-radius: 11px;
  padding: 12px 15px 11px 13px;
}
.cookie-category label {
  font-weight: 600;
  font-family: var(--font-display);
  color: #21462f;
  font-size: 1.02rem;
}
.cookie-category input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--color-leaf);
}
.cookie-category.essential label:after {
  content: "(immer aktiviert)";
  color: #889f7b;
  margin-left: 7px;
  font-size: 0.98em;
  font-style: italic;
}
.cookie-category.essential input {
  display: none;
}

.cookie-modal .cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  margin: 16px 0 0 0;
}
.cookie-modal .cookie-modal-actions button {
  min-width: 105px;
}

@media (max-width: 480px) {
 .cookie-modal {
   padding: 23px 6px 13px 10px;
 }
}

/* ===================================================================
   RESPONSIVE DESIGN (Mobile-first, breakpoints at 768px)
   =================================================================== */

@media (max-width: 1160px) {
  .container {
    max-width: 800px;
  }
}
@media (max-width: 900px) {
  .features-grid, .testimonials-grid, .card-container, .content-grid {
    gap: 14px !important;
  }
}
@media (max-width: 800px) {
  .container {
    max-width: 96vw;
    padding-left: 7vw;
    padding-right: 7vw;
  }
  .hero {
    border-radius: 0 0 60px 0 / 0 0 33px 0;
    padding-top: 19px;
    padding-bottom: 26px;
  }
  .section {
    padding: 25px 7px;
    margin-bottom: 36px;
  }
  .card, .feature {
    min-width: 160px;
    max-width: 100%;
    flex: 1 1 110px;
    padding-bottom: 19px;
  }
}

@media (max-width: 768px) {
  .container {
    max-width: 100vw;
    padding: 0 8px;
  }
  .section {
    margin-bottom: 34px;
    padding: 22px 4px;
  }
  .features-grid, .testimonials-grid, .card-container, .content-grid {
    flex-direction: column;
    gap: 17px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .content-wrapper {
    gap: 10px;
  }
  .card, .feature, .testimonial-card {
    min-width: 0;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
  .hero {
    border-radius: 0 0 32px 0 / 0 0 12px 0;
    margin-bottom: 36px;
    padding-top: 7px;
    padding-bottom: 19px;
  }
  h1 {
    font-size: 1.6rem;
  }
  h2 {
    font-size: 1.22rem;
  }
}

/* ===================================================================
   FORMS & MISC
   =================================================================== */
input, textarea, select {
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid #bbbead;
  border-radius: 9px;
  padding: 9px 12px;
  background: #fff;
  margin-bottom: 13px;
  width: 100%;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--color-leaf);
  outline: none;
  background: #f6fbf6;
}

/* ===================================================================
   UTILITY CLASSES
   =================================================================== */
.hide {
  display: none !important;
}
.text-center {
  text-align: center !important;
}
.mt-8 { margin-top: 8px !important; }
.mt-16 { margin-top: 16px !important; }
.mb-8 { margin-bottom: 8px !important; }
.mb-16 { margin-bottom: 16px !important; }

/* ===================================================================
   ORGANIC DECORATIVE SHAPES (optional, can be assigned in HTML)
   =================================================================== */
.organic-shape {
  position: absolute;
  pointer-events: none;
  border-radius: 60% 40% 30% 70% / 50% 60% 40% 60%; /* Irregular */
  opacity: 0.17;
  z-index: 0;
}

/* Example shape usage - not assigned by default
.organic-shape-1 {
  top: -30px; left: -25px;
  width: 110px; height: 70px;
  background: var(--color-leaf);
}
.organic-shape-2 {
  bottom: 50px; right: -45px;
  width: 90px; height: 84px;
  background: var(--color-accent-alt);
}
*/

/* ===================================================================
   MICRO-INTERACTIONS & EFFECTS
   =================================================================== */
.card, .feature, .testimonial-card, .btn-primary, .btn-secondary, .cookie-consent-banner button {
  transition: var(--transition);
}
.card:hover, .feature:hover {
  box-shadow: 0 7px 26px 0 rgba(18,90,68,0.13);
  transform: translateY(-2px) scale(1.01);
}
.testimonial-card:hover {
  box-shadow: 0 6px 30px 0 rgba(18,90,68,0.16);
  background: #f8f4e7;
}

.btn-primary:active {
  background: var(--color-primary-dark);
  color: #fff;
  transform: scale(0.98);
}

/* ===================================================================
   ACCESSIBILITY
   =================================================================== */
:focus {
  outline: 2px solid var(--color-accent-alt);
  outline-offset: 2px;
}

/* ===================================================================
   PRINT STYLES (minimal)
   =================================================================== */
@media print {
  header, .mobile-menu, .mobile-menu-toggle, .cookie-consent-banner, .cookie-modal-overlay, footer { display: none !important; }
  main, .container, .section, .content-wrapper { background: #fff !important; color: #000 !important; }
}
