/* ============================================
   CSS RESET & NORMALIZE
============================================ */
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 {
  scroll-behavior: smooth;
}
body {
  line-height: 1.6;
  background-color: #F5F2EE;
  color: #222d25;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
ol, ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
  box-sizing: border-box;
}
button {
  cursor: pointer;
}

/* ============================================
   VARIABLES (with fallbacks)
============================================ */
:root {
  --color-primary: #175839;
  --color-secondary: #64AFA7;
  --color-accent: #F5F2EE;
  --color-dark: #21251c;
  --color-green-light: #E5EFE6;
  --color-brown: #B09877;
  --color-shadow: rgba(23, 88, 57, 0.10);
  --color-error: #BF4C3B;
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
  --radius-xl: 40px;
  --radius-l: 24px;
  --radius-m: 16px;
  --radius-s: 8px;

  --space-xs: 8px;
  --space-s: 16px;
  --space-m: 24px;
  --space-l: 32px;
  --space-xl: 48px;
  --shadow-card: 0 4px 18px var(--color-shadow);
  --shadow-hover: 0 6px 24px rgba(23,88,57,0.17);
}

/* ============================================
   TYPOGRAPHY
============================================ */
body {
  font-family: var(--font-body), Arial, sans-serif;
  font-size: 16px;
  background-color: var(--color-accent);
  color: var(--color-dark);
  min-height: 100vh;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display), Arial, sans-serif;
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: -0.5px;
}
h1 { font-size: 2.5rem; line-height: 1.1; margin-bottom: var(--space-m); }
h2 { font-size: 2rem; margin-bottom: var(--space-s); }
h3 { font-size: 1.25rem; margin-bottom: var(--space-xs); }
h4, h5, h6 { font-size: 1rem; }
p, ul, ol, li { font-size: 1rem; line-height: 1.6; }
p:not(:last-child) { margin-bottom: var(--space-s); }
strong { font-weight:700; }
em { font-style: italic; }
a { color: var(--color-secondary); transition: color 0.15s; }
a:hover, a:focus { color: var(--color-primary); text-decoration: underline; }

/* ============================================
   UTILITY & LAYOUT CLASSES
============================================ */
.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  max-width: 1140px;
  padding: 0 var(--space-s);
  box-sizing: border-box;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-m);
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
.text-section {
  max-width: 720px;
}

/* FLEXBOX PATTERNS */
.card-container, .features, .feature-cards, .recipe-list-grid, .blog-post-grid, .footer-wrapper, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.card {
  margin-bottom: 20px;
  background: var(--color-accent);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-card);
  padding: var(--space-m);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
}
.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;
  background: #fff;
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  min-width: 280px;
  max-width: 520px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}
.features {
  gap: var(--space-s);
  flex-wrap: wrap;
}
.features li {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-s);
  background: var(--color-green-light);
  border-radius: var(--radius-l);
  margin-bottom: 0;
  font-size: 1rem;
  color: var(--color-primary);
}

/* ============================================
   HEADER & NAVBAR
============================================ */
header {
  background: #fff;
  box-shadow: 0 2px 10px rgba(23,88,57,0.03);
  position: sticky;
  top: 0;
  z-index: 99;
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  padding-top: var(--space-xs);
  padding-bottom: var(--space-xs);
}
header nav {
  display: flex;
  gap: var(--space-s);
  align-items: center;
}
header nav a {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--color-primary);
  padding: 6px 10px;
  border-radius: var(--radius-s);
  transition: background 0.18s, color 0.18s;
}
header nav a.cta-primary {
  background: var(--color-primary);
  color: #fff;
  padding: 8px 22px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 8px var(--color-shadow);
  margin-left: 6px;
  transition: background 0.18s, box-shadow 0.18s;
}
header nav a.cta-primary:hover,
header nav a.cta-primary:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
  box-shadow: 0 4px 16px var(--color-shadow);
}
header nav a:hover, header nav a:focus {
  background: var(--color-green-light);
  color: var(--color-secondary);
}
.mobile-menu-toggle {
  display: none;
  background: var(--color-primary);
  color: #fff;
  border-radius: 999px;
  width: 44px;
  height: 44px;
  font-size: 2rem;
  align-items: center;
  justify-content: center;
}

/* ============================================
   HERO SECTION
============================================ */
.hero {
  min-height: 340px;
  background-color: var(--color-green-light);
  background-image: url('../assets/nature-bg-texture.svg');
  background-repeat: repeat;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  margin-bottom: 40px;
  overflow: hidden;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 340px;
}

/* ============================================
   CARDS, BLOGS & RECIPE LISTS
============================================ */
.recipe-list-grid {
  flex-wrap: wrap;
  gap: 24px;
  display: flex;
}
.recipe-list-grid li {
  background: #fff;
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-card);
  padding: var(--space-m);
  flex: 1 1 260px;
  min-width: 220px;
  max-width: 320px;
  margin-bottom: 0;
  transition: box-shadow 0.18s, transform 0.18s;
}
.recipe-list-grid li:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px) scale(1.012);
}
.blog-post-grid {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.blog-post-grid > div {
  background: #fff;
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-card);
  padding: var(--space-m);
  flex: 1 1 260px;
  min-width: 220px;
  max-width: 320px;
  margin-bottom: 0;
  transition: box-shadow 0.18s, transform 0.18s;
}
.blog-post-grid > div:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px) scale(1.015);
}
.principle-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.principle-cards li {
  background: #fff;
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-card);
  padding: var(--space-m);
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 320px;
  margin-bottom: 0;
  transition: box-shadow 0.18s, transform 0.18s;
}
.principle-cards li:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px) scale(1.01);
}

/* ============================================
   CTA & BUTTONS
============================================ */
.cta-primary {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  padding: 12px 36px;
  margin-top: var(--space-xs);
  margin-bottom: 4px;
  font-weight: 700;
  letter-spacing: 0.2px;
  box-shadow: 0 2px 10px var(--color-shadow);
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
}
.cta-primary:hover, .cta-primary:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
  box-shadow: 0 4px 24px var(--color-shadow);
}
button, [type="button"] {
  font-family: var(--font-display);
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-m);
  min-width: 120px;
  min-height: 44px;
  font-size: 1rem;
  font-weight: 700;
  padding: 0 22px;
  transition: background 0.17s, color 0.17s;
}
button:hover, button:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
}

/* ============================================
   INPUTS & FORM ELEMENTS
============================================ */
input[type="search"], input[type="email"], input[type="text"], textarea {
  background: #fff;
  border: 1.5px solid var(--color-green-light);
  border-radius: var(--radius-s);
  padding: 12px 16px;
  font-size: 1rem;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: var(--space-s);
  box-shadow: 0 2px 6px rgba(23,88,57,0.05);
  transition: border-color 0.15s, box-shadow 0.18s;
}
input:focus, textarea:focus {
  border-color: var(--color-secondary);
  box-shadow: 0 4px 15px rgba(23,88,57,0.10);
}

/* ============================================
   TABLES
============================================ */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  box-shadow: var(--shadow-card);
  background: #fff;
  border-radius: var(--radius-l);
  overflow: hidden;
  margin-bottom: var(--space-m);
  margin-top: var(--space-s);
}
thead {
  background: var(--color-green-light);
}
th, td {
  padding: 14px 18px;
  text-align: left;
}
th {
  font-weight: 700;
  color: var(--color-primary);
}
tbody tr:not(:last-child) td {
  border-bottom: 1px solid #e6e3dc;
}

/* ============================================
   FAQ & ACCORDION (structure)
============================================ */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: var(--space-m);
}
.faq-accordion > div {
  background: #fff;
  padding: var(--space-s) var(--space-m);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-card);
}
.faq-accordion strong {
  font-size: 1.1rem;
  color: var(--color-primary);
}

/* ============================================
   PAGINATION
============================================ */
.pagination {
  margin-top: var(--space-m);
  font-family: var(--font-display);
}
.pagination span {
  padding: var(--space-xs) var(--space-s);
  border-radius: var(--radius-s);
  background: var(--color-green-light);
  color: var(--color-primary);
  font-size: 1rem;
}

/* ============================================
   TESTIMONIALS
============================================ */
.testimonial-card {
  background: #fff;
  color: #193c24;
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-card);
  min-width: 280px;
  max-width: 540px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 28px;
  font-size: 1.05rem;
  transition: box-shadow 0.18s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 28px rgba(23,88,57,0.13);
}
.testimonial-card strong {
  color: var(--color-primary);
}
.testimonial-card span {
  margin-left: 12px;
  color: #FFD700;
  font-size: 1.2em;
}

/* ============================================
   QUICK FACTS/BADGES
============================================ */
.quick-facts, .feature-comparison {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-s);
  font-family: var(--font-display);
  font-size: 1rem;
  margin: var(--space-s) 0;
}
.quick-facts span, .feature-comparison span {
  background: var(--color-green-light);
  color: var(--color-primary);
  border-radius: var(--radius-s);
  padding: 8px 18px;
  margin-bottom: 0;
}

/* ============================================
   FOOTER
============================================ */
footer {
  background: #fff;
  box-shadow: 0 -2px 18px rgba(23,88,57,0.05);
  border-top-left-radius: var(--radius-xl);
  border-top-right-radius: var(--radius-xl);
  margin-top: 60px;
}
.footer-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
  padding: var(--space-l) 0 var(--space-m) 0;
}
.footer-wrapper nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}
.footer-wrapper nav a {
  color: var(--color-primary);
  font-size: 1rem;
  padding: 2px 6px;
  border-radius: var(--radius-s);
  transition: background 0.2s, color 0.2s;
}
.footer-wrapper nav a:hover,
.footer-wrapper nav a:focus {
  color: var(--color-secondary);
  background: var(--color-green-light);
}
.footer-contact {
  font-size: 0.95rem;
  color: var(--color-dark);
}
.footer-contact img {
  vertical-align: middle;
  margin-right: 6px;
}
.footer-bottom {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  font-size: 0.90rem;
  color: #888;
  padding-bottom: 8px;
  padding-right: var(--space-s);
}

/* ============================================
   TAG FILTERS (Blog/Rezepte)
============================================ */
.tags-filters {
  margin-top: var(--space-s);
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: 1rem;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.tags-filters span,
.tags-filters a {
  background: var(--color-green-light);
  border-radius: var(--radius-s);
  padding: 6px 12px;
  color: var(--color-primary);
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* ============================================
   MOBILE MENU
============================================ */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; height: 100vh; width: 100vw;
  background: #fff;
  z-index: 999;
  transition: transform 0.35s cubic-bezier(.78,.22,.1,.89);
  transform: translateX(-110%);
  box-shadow: 0 2px 24px rgba(23,88,57,0.09);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: var(--space-l) var(--space-m);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  position: absolute;
  top: var(--space-m);
  right: var(--space-m);
  z-index: 2;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-m);
  margin-top: 80px;
}
.mobile-nav a {
  font-size: 1.15rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-primary);
  padding: 14px 20px;
  border-radius: var(--radius-l);
  transition: background 0.16s, color 0.16s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-green-light);
  color: var(--color-secondary);
}

@media (max-width: 1100px) {
  .container {
    max-width: 960px;
  }
}
@media (max-width: 950px) {
  .footer-wrapper {
    flex-direction: column;
    gap: var(--space-m);
    align-items: flex-start;
  }
  .content-wrapper {
    gap: var(--space-s);
  }
}

@media (max-width: 860px) {
  header .container {
    flex-direction: row;
    gap: var(--space-xs);
  }
  .footer-wrapper {
    gap: var(--space-m);
  }
}

@media (max-width: 768px) {
  /* Responsive Navigation */
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  /* Main content layout */
  .container {
    padding: 0 var(--space-xs);
  }
  .section {
    padding: 24px 0 32px 0;
    margin-bottom: 40px;
  }
  .hero .container,
  .content-wrapper,
  .footer-wrapper {
    flex-direction: column;
    align-items: flex-start;
  }
  .card-container, .features, .feature-cards, .recipe-list-grid, .blog-post-grid, .content-grid {
    flex-direction: column;
    gap: var(--space-m);
  }
  .principle-cards {
    flex-direction: column;
    gap: var(--space-m);
  }
  .testimonial-card {
    flex-direction: column;
    gap: var(--space-xs);
    padding: 16px 12px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
  }
}
@media (max-width: 600px) {
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.28rem; }
  .footer-bottom {
    justify-content: center;
    padding: 0 0 8px 0;
  }
  .content-wrapper, .text-section { max-width: 100%; }
}

/* ============================================
   COOKIE CONSENT BANNER & MODAL
============================================ */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; width: 100%;
  z-index: 800;
  background: #fffbe9;
  color: var(--color-dark);
  border-top: 2px solid var(--color-green-light);
  box-shadow: 0 -2px 18px rgba(181, 176, 152, .13);
  padding: var(--space-m) var(--space-s);
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-m);
  font-size: 1rem;
  animation: fadein-cb 0.35s;
}
@keyframes fadein-cb {
  0% { opacity: 0; transform: translateY(15px); }
  100% { opacity: 1; transform: translateY(0); }
}
.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}
.cookie-banner button {
  font-size: 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  border-radius: var(--radius-s);
  padding: 8px 22px;
  color: #fff;
  background: var(--color-primary);
  margin-right: 8px;
  margin-bottom: 0;
  transition: background 0.14s, color 0.14s;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
}
.cookie-banner .cookie-settings {
  background: #fff;
  border: 1.5px solid var(--color-primary);
  color: var(--color-primary);
}
.cookie-banner .cookie-settings:hover,
.cookie-banner .cookie-settings:focus {
  background: var(--color-green-light);
  color: var(--color-secondary);
}

@media (max-width: 680px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-s);
    font-size: 0.95rem;
  }
  .cookie-banner__actions {
    gap: var(--space-xs);
  }
}

/* COOKIE MODAL */
.cookie-modal {
  position: fixed;
  left: 0; top: 0; width: 100%; height: 100vh;
  background: rgba(26, 24, 22, 0.4);
  z-index: 1002;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadein-cm 0.22s;
  pointer-events: auto;
}
@keyframes fadein-cm {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.cookie-modal__content {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: var(--space-l) var(--space-m);
  box-shadow: 0 10px 40px rgba(23,88,57, .17);
  min-width: 320px;
  max-width: 95vw;
  position: relative;
  color: var(--color-dark);
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
}
.cookie-modal__close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: var(--color-secondary);
  color: #fff;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.16s;
}
.cookie-modal__close:hover, .cookie-modal__close:focus {
  background: var(--color-primary);
}
.cookie-modal__categories {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
  margin-top: var(--space-s);
}
.cookie-toggle {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 1rem;
}
.cookie-toggle input[type="checkbox"] {
  width: 24px; height: 24px;
  accent-color: var(--color-primary);
}
.cookie-toggle label {
  font-size: 1rem;
}
.cookie-modal__actions {
  display: flex;
  gap: var(--space-s);
  margin-top: var(--space-s);
}
.cookie-modal__actions button {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-s);
  padding: 9px 28px;
}

/* ============================================
   ANIMATIONS & MICRO-INTERACTIONS
============================================ */
a, button, input, .card, .search, .testimonial-card, .cta-primary, .blog-post-grid > div, .recipe-list-grid li {
  transition: box-shadow 0.18s, background 0.16s, color 0.16s, transform 0.18s;
}

/* Organic shape decorations (optionally via psuedo-elements/decoration) */
.section {
  position: relative;
}
.section::before {
  content: '';
  display: block;
  width: 85px;
  height: 32px;
  position: absolute;
  left: -18px;
  top: -16px;
  z-index: 0;
  background: var(--color-green-light);
  border-radius: 37% 63% 52% 48% / 65% 48% 52% 35%;
  opacity: 0.32;
}

@media (max-width: 600px) {
  .section::before {
    width: 46px; height: 18px; left: -10px; top: -6px;
  }
}

/* ============================================
   SCROLLBAR
============================================ */
::-webkit-scrollbar {
  width: 7px;
  background: #f2eee7;
}
::-webkit-scrollbar-thumb {
  background: var(--color-green-light);
  border-radius: 7px;
}

/* ============================================
   PRINT STYLES (BASICS)
============================================ */
@media print {
  header, .mobile-menu, .cookie-banner, .cookie-modal, footer {
    display: none !important;
  }
  body {
    color: #000;
    background: #fff;
  }
}
