/* ========================================
   RESET & NORMALIZE (Mobile-first)
======================================== */
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: 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.65;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  background: #f5f7fa;
  color: #1f2933;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
*, *:before, *:after {
  box-sizing: inherit;
}
a {
  text-decoration: none;
  color: #24553b;
  transition: color 0.2s;
  cursor: pointer;
}
a:hover, a:focus {
  color: #e5b754;
  outline: none;
}
ul, ol {
  padding-left: 24px;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
  border: none;
  outline: none;
}
button {
  background: none;
  cursor: pointer;
}
textarea {
  resize: vertical;
}

/* ========================================
   BRANDING & TYPOGRAPHY
======================================== */
:root {
  --primary: #24553b;
  --primary-dark: #173925;
  --secondary: #eaf8f2;
  --accent: #e5b754;
  --gray-100: #f5f7fa;
  --gray-200: #e3e9ef;
  --gray-300: #d1dadf;
  --gray-600: #768390;
  --gray-800: #222c38;
  --white: #fff;
  --shadow: 0 2px 8px rgba(36,85,59,0.11);
  --shadow-hover: 0 4px 24px rgba(36,85,59,0.13);
  --border-radius: 14px;
  --transition: all 0.23s cubic-bezier(.23,1,.32,1);
}

h1, .h1 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 2.1rem;
  letter-spacing: -0.5px;
  color: var(--primary-dark);
  margin-bottom: 24px;
  line-height: 1.18;
}
h2, .h2 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1.45rem;
  color: var(--primary);
  margin-bottom: 20px;
  line-height: 1.2;
}
h3, .h3 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--primary-dark);
  margin-bottom: 14px;
}
h4, .h4 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: var(--primary-dark);
}
p, li, ul, ol {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: #293144;
  line-height: 1.68;
  margin-bottom: 10px;
}
strong {
  font-weight: 700;
}

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

/* ========================================
   HEADER & NAVIGATION
======================================== */
header {
  box-shadow: var(--shadow);
  background: var(--white);
  padding: 0;
  z-index: 50;
  position: sticky;
  top: 0;
}
header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 18px 18px 18px;
}
header a img {
  height: 42px;
  width: auto;
  margin-right: 10px;
}
header nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
header nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--primary-dark);
  padding: 6px 12px;
  border-radius: 6px;
  transition: var(--transition);
}
header nav a:hover,
header nav a:focus {
  background: var(--secondary);
  color: var(--primary);
}
.cta-primary,
.cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 10px;
  font-size: 1.05rem;
  padding: 12px 30px;
  margin-left: 18px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: none;
  cursor: pointer;
}
.cta-primary {
  background: var(--primary);
  color: var(--white);
}
.cta-primary:hover, .cta-primary:focus {
  background: var(--primary-dark);
  color: var(--accent);
  box-shadow: var(--shadow-hover);
}
.cta-secondary {
  background: var(--accent);
  color: var(--primary-dark);
  border: 2px solid var(--primary);
}
.cta-secondary:hover, .cta-secondary:focus {
  background: var(--primary);
  color: var(--white);
  border-color: var(--accent);
  box-shadow: var(--shadow-hover);
}
/* Mobile burger toggle */
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--white);
  font-size: 2rem;
  border-radius: 8px;
  width: 44px;
  height: 44px;
  border: none;
  margin-left: 12px;
  transition: background 0.2s;
  z-index: 102;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--accent);
  color: var(--primary-dark);
}

/* Hide main nav and show burger on mobile: */
@media (max-width: 1024px) {
  header nav {
    display: none;
  }
  .cta-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 1025px) {
  .mobile-menu-toggle {
    display: none;
  }
  .mobile-menu {
    display: none !important;
  }
}

/* ========================================
   MOBILE MENU OVERLAY
======================================== */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--white);
  box-shadow: 0 0 0 100vw rgba(36,85,59,0.12);
  z-index: 2000;
  transform: translateX(100%);
  transition: transform 0.33s cubic-bezier(.55,.09,.68,.53);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 0 0 0;
  will-change: transform;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu .mobile-menu-close {
  background: transparent;
  color: var(--primary-dark);
  font-size: 2.2rem;
  padding: 14px 20px;
  align-self: flex-end;
  border-radius: 0 0 0 16px;
  margin: 12px 8px 6px 0;
  transition: background 0.15s;
}
.mobile-menu .mobile-menu-close:hover,
.mobile-menu .mobile-menu-close:focus {
  background: var(--secondary);
  color: var(--accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  align-items: flex-start;
  padding: 36px 32px 24px 26px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 1.18rem;
  color: var(--primary-dark);
  padding: 12px 8px;
  border-radius: 8px;
  width: 100%;
  display: block;
  transition: background 0.18s, color 0.18s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--secondary);
  color: var(--primary);
}

/* Overlay fade on menu open */
.mobile-menu.open::before {
  content: '';
  position: fixed;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background: rgba(36,85,59, 0.05);
  z-index: -1;
  pointer-events: none;
}

/* ========================================
   STRUCTURED SECTIONS & SPACING PATTERNS
======================================== */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  width: 100%;
}
.card, .recipe-card, .testimonial-card {
  margin-bottom: 20px;
  position: relative;
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 26px 24px 20px 24px;
  transition: box-shadow 0.18s, transform 0.18s;
  min-width: 260px;
  flex: 1 1 260px;
}
.card:hover, .recipe-card:hover, .testimonial-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px) scale(1.012);
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  width: 100%;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  width: 100%;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--gray-100);
  color: #1e2a32;
  border-left: 5px solid var(--accent);
  box-shadow: var(--shadow);
  width: 100%;
  margin-bottom: 20px;
}
.testimonial-card p {
  margin: 0 0 0 0;
  flex: 1 1 0;
  color: #222c38;
  font-size: 1.01rem;
}
.testimonial-card strong {
  min-width: 115px;
  color: var(--primary-dark);
  font-size: 0.97rem;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.recipe-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.recipe-card {
  background: var(--secondary);
  border: 1px solid var(--gray-300);
  color: #232e2f;
  min-width: 235px;
  flex: 1 1 310px;
  max-width: 430px;
}
.posts-overview {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.posts-overview article {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 24px 22px;
  min-width: 220px;
  flex: 1 1 300px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.posts-overview article:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px) scale(1.01);
}
.education-articles {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.education-articles article {
  background: var(--secondary);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 24px 22px;
  min-width: 200px;
  flex: 1 1 250px;
}
/* Search filter bar */
.search-filter {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 24px;
}
.search-filter input {
  padding: 10px 13px;
  border-radius: 8px;
  border: 1px solid var(--gray-200);
  background: var(--white);
  font-size: 1rem;
  color: #21292b;
  width: 100%;
  box-shadow: none;
  outline: none;
  margin-top: 2px;
}
.search-filter input:focus {
  border-color: var(--primary);
  background: #ebfff5;
}

/* ========================================
   FOOTER
======================================== */
footer {
  background: var(--primary);
  color: var(--white);
  padding: 42px 0 26px 0;
}
footer .container {
  flex-direction: column;
  gap: 20px;
}
footer a {
  color: var(--white);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 12px 0 14px 0;
}
footer nav a {
  padding: 6px 10px;
  border-radius: 5px;
  transition: background 0.17s;
}
footer nav a:hover,
footer nav a:focus {
  background: var(--accent);
  color: var(--primary-dark);
}
.contact-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: flex-start;
  font-size: 0.97rem;
  line-height: 1.5;
  margin-top: 10px;
  color: #eaf8f2;
}
.contact-footer span {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 170px;
}
footer img {
  height: 36px;
  margin-bottom: 10px;
}

/* ========================================
   CONTENT & VARIANTS
======================================== */
.legal-text {
  background: var(--gray-100);
  padding: 26px 24px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}
.address-map {
  background: var(--secondary);
  border-radius: var(--border-radius);
  padding: 16px 18px;
  box-shadow: var(--shadow);
  margin-top: 12px;
  font-size: 0.98rem;
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}
/* Feature icons block (on homepage) */
.feature-icons {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  margin: 16px 0 0 0;
}
.feature-icons span {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--secondary);
  padding: 10px 16px;
  border-radius: 22px;
  font-size: 0.96rem;
  color: var(--primary);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  box-shadow: 0 1px 3px rgba(36,85,59,0.05);
}
.feature-icons img {
  width: 25px;
  height: 25px;
}

/* ========================================
   BUTTONS & FORMS
======================================== */
button, .cta-primary, .cta-secondary {
  outline: none;
  border: none;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 10px;
  transition: var(--transition);
}
button:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--primary);
}

/* ========================================
   COOKIE CONSENT BANNER
======================================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  z-index: 3000;
  background: var(--white);
  box-shadow: 0 -2px 18px rgba(36,85,59, 0.18);
  border-top: 5px solid var(--accent);
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 20px 24px 20px;
  max-width: 100vw;
  align-items: flex-start;
  animation: cookieSlideUp 0.7s cubic-bezier(.55,.09,.68,.53);
}
@keyframes cookieSlideUp {
  from { transform: translateY(40px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  font-size: 1rem;
  color: var(--primary-dark);
  margin: 0 0 8px 0;
}
.cookie-banner .cookie-btns {
  display: flex;
  gap: 18px;
  margin-top: 4px;
  flex-wrap: wrap;
}
.cookie-btn {
  padding: 9px 22px;
  border-radius: 8px;
  border: none;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.02rem;
  font-weight: 600;
  background: var(--secondary);
  color: var(--primary-dark);
  margin-right: 6px;
  margin-bottom: 4px;
  transition: background 0.16s, color 0.16s, box-shadow 0.14s;
  box-shadow: 0 2px 6px rgba(36,85,59, 0.08);
}
.cookie-btn.accept {
  background: var(--primary);
  color: var(--white);
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: var(--accent);
  color: var(--primary-dark);
}
.cookie-btn.reject {
  background: #e5baba;
  color: #842a2a;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #e57373;
  color: #fff;
}
.cookie-btn.settings {
  background: var(--secondary);
  color: var(--primary-dark);
  border: 2px solid var(--primary);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--primary-dark);
  color: var(--accent);
  border-color: var(--accent);
}

/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(36,85,59, 0.18);
  z-index: 3100;
  display: none;
  align-items: center;
  justify-content: center;
}
.cookie-modal-overlay.open {
  display: flex;
}
.cookie-modal {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: 0 6px 38px rgba(36,85,59, 0.15);
  padding: 36px 22px 26px 22px;
  min-width: 98vw;
  max-width: 390px;
  width: 98vw;
  animation: cookieModalIn 0.5s cubic-bezier(.55,.09,.68,.53);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
@media (min-width: 530px) {
  .cookie-modal { min-width: 390px; }
}
@keyframes cookieModalIn {
  from { opacity: 0; transform: translateY(60px) scale(0.99); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.cookie-modal h2 {
  font-size: 1.3rem;
  color: var(--primary-dark);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}
.cookie-modal .close-cookie-modal {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  color: var(--primary-dark);
  border: none;
  font-size: 1.5rem;
  border-radius: 50%;
  transition: background 0.13s;
  padding: 2px 8px;
}
.cookie-modal .close-cookie-modal:hover {
  background: var(--secondary);
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.02rem;
}
.cookie-category label {
  font-weight: 500;
  color: var(--primary-dark);
  margin-left: 4px;
}
.cookie-toggle {
  width: 38px;
  height: 22px;
  background: var(--gray-200);
  border-radius: 14px;
  position: relative;
  cursor: pointer;
  margin-left: 8px;
  transition: background 0.2s;
  border: 1px solid var(--gray-300);
}
.cookie-toggle input[type="checkbox"] {
  display: none;
}
.cookie-toggle .slider {
  display: block;
  position: absolute;
  left: 3px;
  top: 3px;
  width: 16px;
  height: 16px;
  background: var(--accent);
  border-radius: 50%;
  transition: left 0.14s, background 0.17s;
}
.cookie-toggle input:checked + .slider {
  background: var(--primary);
  left: 19px;
}
.cookie-category.essential .cookie-toggle {
  pointer-events: none;
  background: #e5eeec;
  border-color: #e1e1e1;
}
.cookie-category.essential label {
  color: #727272;
  opacity: 0.77;
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */
@media (max-width: 1024px) {
  .container {
    max-width: 97vw;
    padding: 0 8px;
  }
  .card,
  .recipe-card, 
  .testimonial-card, 
  .education-articles article, 
  .posts-overview article {
    min-width: 90vw;
    max-width: 98vw;
    padding: 18px 12px;
    font-size: 1rem;
  }
  .feature-icons {
    gap: 14px;
    flex-direction: column;
  }
  .address-map, .contact-footer {
    font-size: 0.92rem;
  }
}
@media (max-width: 768px) {
  section {
    padding: 32px 4vw;
    margin-bottom: 38px;
  }
  h1,
  .h1 {
    font-size: 1.51rem;
    margin-bottom: 17px;
  }
  h2,
  .h2 {
    font-size: 1.18rem;
    margin-bottom: 13px;
  }
  .text-image-section, 
  .content-grid, 
  .card-container, 
  .recipe-cards, 
  .posts-overview, 
  .education-articles {
    flex-direction: column;
    gap: 20px;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    width: 100%;
  }
  .contact-footer {
    flex-direction: column;
    gap: 10px;
  }
}
@media (max-width: 512px) {
  body {
    font-size: 15px;
  }
  .cookie-banner {
    padding: 17px 6px 18px 11px;
    font-size: 0.98rem;
  }
  .cookie-modal {
    min-width: 92vw;
    padding: 22px 7px 12px 8px;
  }
  .mobile-nav {
    padding: 29px 8px 9px 10px;
    gap: 12px;
  }
}

/* ========================================
   ANIMATIONS & MICROINTERACTIONS
======================================== */
.card, .testimonial-card, .recipe-card, .education-articles article, .posts-overview article {
  transition: box-shadow 0.22s, transform 0.22s;
}
.card:active, .testimonial-card:active, .recipe-card:active,
.education-articles article:active, .posts-overview article:active {
  transform: scale(0.985);
}
.cta-primary, .cta-secondary, .cookie-btn {
  transition: background 0.20s, color 0.20s, box-shadow 0.18s, transform 0.17s;
}
.cta-primary:active, .cta-secondary:active, .cookie-btn:active {
  transform: scale(0.97);
}
/* Focus ring for accessibility */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* =============
   UTILITIES
============ */
.hide {
  display: none !important;
}
.flex-row {
  display: flex;
  flex-direction: row;
}
.flex-col {
  display: flex;
  flex-direction: column;
}
.gap-20 {
  gap: 20px;
}
.mt-32 {
  margin-top: 32px !important;
}
.mb-24 {
  margin-bottom: 24px !important;
}

/* ========================================
   END STYLES (KräuterKraft Menü)
======================================== */