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

article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background-color: #FAF6F1;
  color: #33291A;
  min-height: 100vh;
  font-family: 'Source Sans Pro', Arial, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

ol, ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
  outline: none;
  border: none;
  background: none;
  color: inherit;
}

/* ---------------- VARIABLES & NATURE ORGANIC BASE ---------------- */
:root {
  --primary: #7C4217;
  --primary-dark: #573012;
  --secondary: #D9BF9C;
  --secondary-light: #F4EFE7;
  --accent: #32612D;
  --accent-light: #577844;
  --natural-bg: #FAF6F1;
  --organic-green: #8A9F6A;
  --sand-light: #EBE5D9;
  --card-radius: 22px;
  --box-shadow: 0 2px 8px 0 rgba(124,66,23,0.08), 0 1.5px 6px 0 rgba(50,97,45,0.06);
  --shadow-hover: 0 4px 16px 0 rgba(124,66,23,0.12);
  --transition-fast: 0.19s cubic-bezier(.5,.16,.37,1);
  --transition-slow: 0.32s cubic-bezier(.5,.16,.37,1);
  --font-display: 'Merriweather', serif;
  --font-body: 'Source Sans Pro', Arial, sans-serif;
}

/* ---------------- UNIVERSAL TYPOGRAPHY ---------------- */
h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.25rem;
  color: var(--primary);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.7rem;
  color: var(--accent);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--primary);
}
h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--accent);
}
p, li, span, a, button {
  font-family: var(--font-body);
  color: #41412B;
  font-size: 1rem;
}
p, ul li {
  margin-bottom: 12px;
}
strong {
  font-weight: 700;
  color: var(--accent);
}

/* Typography scale for hierarchy */
@media (min-width: 600px) {
  h1 { font-size: 2.9rem; }
  h2 { font-size: 2.1rem; }
}
@media (min-width: 900px) {
  h1 { font-size: 3.3rem; }
  h2 { font-size: 2.4rem; }
}

/* ---------------- CONTAINER LAYOUTS ---------------- */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 18px;
}

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

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--secondary-light);
  border-radius: var(--card-radius);
  box-shadow: var(--box-shadow);
}

/* ---------------- HEADER & NAVIGATION ---------------- */
header {
  background: var(--natural-bg);
  box-shadow: 0 1px 8px 0 rgba(50,97,45,0.06);
  padding: 0;
}
header .container,
footer .container {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
}

header a img {
  height: 58px;
  padding: 10px 0;
}

.main-nav {
  display: flex;
  flex-direction: row;
  gap: 18px;
  align-items: center;
  margin: 10px 0;
}

.main-nav a {
  padding: 6px 12px;
  border-radius: 12px;
  font-weight: 600;
  color: var(--primary);
  background: none;
  transition: background var(--transition-fast), color var(--transition-fast);
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--accent-light);
  color: #fff;
}

.cta-button {
  padding: 10px 26px;
  border-radius: 22px 30px 20px 30px/26px 14px 28px 18px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  margin-left: 12px;
  box-shadow: var(--box-shadow);
  transition: background var(--transition-slow), box-shadow var(--transition-fast), transform var(--transition-fast);
  border: none;
  display: inline-block;
  cursor: pointer;
  letter-spacing: 0.02em;
}
.cta-button:hover, .cta-button:focus {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px) scale(1.03) rotate(-1deg);
  box-shadow: var(--shadow-hover);
}

/* Hamburger mobile menu */
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-light);
  color: #fff;
  border-radius: 12px;
  font-size: 1.7rem;
  width: 48px;
  height: 48px;
  cursor: pointer;
  margin-left: auto;
  border: none;
  z-index: 100;
  transition: background var(--transition-fast), box-shadow var(--transition-fast);
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--primary);
  box-shadow: 0 2px 8px 0 rgba(124,66,23,0.17);
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(81,98,72,0.93);
  z-index: 9999;
  display: none;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 32px 24px 24px 24px;
  transform: translateX(100%);
  transition: transform 0.33s cubic-bezier(.41,.75,.3,1);
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  background: var(--primary-dark);
  color: #fff;
  font-size: 2rem;
  border-radius: 16px;
  align-self: flex-end;
  padding: 5px 13px;
  margin-bottom: 26px;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 8px rgba(124,66,23,0.10);
  transition: background var(--transition-fast);
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--accent);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  padding: 12px 0;
  border-radius: 11px;
  color: #fff;
  transition: background var(--transition-fast);
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--organic-green);
}


/* HEADER responsive layout */
@media (max-width: 1140px) {
  .container { max-width: 98vw; }
}
@media (max-width: 900px) {
  header .container, footer .container {
    flex-direction: column;
    align-items: flex-start;
  }
  .main-nav, .footer-nav nav {
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.99rem;
  }
  .cta-button { margin-top: 8px; }
}
@media (max-width: 768px) {
  header .container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }
  .main-nav {
    display: none;
  }
  .cta-button {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 769px) {
  .mobile-menu-toggle, .mobile-menu {
    display: none !important;
  }
}

/* ---------------- HERO & INTRO SECTIONS ---------------- */
.hero {
  margin-bottom: 60px;
  padding: 50px 0 60px 0;
  background: linear-gradient(125deg, #EBE5D9 80%, #d7e6cf 100%);
  border-radius: 0 0 52px 0/0 0 48px 0;
  box-shadow: var(--box-shadow);
}
@media (max-width: 768px) {
  .hero {
    padding: 32px 0 36px 0;
    border-radius: 0 0 32px 0/0 0 30px 0;
  }
}

.hero .container {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 0;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 16px;
}

/* ---------------- FLEXBOX PATTERNS ---------------- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  margin-bottom: 20px;
  border-radius: var(--card-radius);
  box-shadow: var(--box-shadow);
  position: relative;
  transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}
.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px) scale(1.02);
}
.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, .feature-grid {
    flex-direction: column;
    gap: 18px;
  }
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--box-shadow);
  margin-bottom: 20px;
  border-left: 6px solid var(--accent);
  transition: box-shadow var(--transition-fast);
}
.testimonial-card:hover {
  box-shadow: var(--shadow-hover);
}
.testimonial-card p {
  color: #2d341e;
  font-size: 1.07rem;
  font-style: italic;
}
.testimonial-card span {
  font-size: 0.98rem;
  color: var(--primary);
  font-family: var(--font-display);
  font-style: normal;
  margin-top: -8px;
}

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

/* ---------------- FEATURE GRIDS ---------------- */
.feature-grid,
.recipe-snippets,
.recipe-preview-cards,
.tipps-grid,
.historical-facts,
.faq-accordion {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 8px;
}
.feature-grid > div,
.recipe-snippets > div,
.recipe-preview-cards > div,
.tipps-grid > div,
.historical-facts > div,
.faq-accordion > div {
  background: #fff;
  border-radius: 16px 40px 26px 32px/30px 22px 32px 16px;
  box-shadow: var(--box-shadow);
  padding: 24px 18px;
  min-width: 220px;
  flex: 1 1 220px;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: box-shadow var(--transition-fast), transform var(--transition-fast);
  margin-bottom: 20px;
  border: 1.5px solid var(--sand-light);
}
.feature-grid img,
.tipps-grid img,
.historical-facts img {
  width: 38px;
  height: 38px;
  margin-bottom: 8px;
  filter: drop-shadow(0 2px 8px rgba(50,97,45,0.08));
}
.feature-grid > div:hover,
.recipe-snippets > div:hover,
.recipe-preview-cards > div:hover,
.tipps-grid > div:hover,
.historical-facts > div:hover,
.faq-accordion > div:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px) scale(1.01);
}
@media (max-width: 900px) {
  .feature-grid, .tipps-grid, .historical-facts {
    gap: 18px;
  }
}
@media (max-width: 620px) {
  .feature-grid > div, .tipps-grid > div, .recipe-snippets > div, .recipe-preview-cards > div, .historical-facts > div {
    min-width: 148px;
    padding: 14px 10px;
    font-size: 0.97rem;
  }
}


/* ---------------- CARDS ---------------- */
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.newsletter {
  background: var(--accent-light);
  color: #fff;
  border-radius: 24px 36px 36px 16px/44px 14px 16px 24px;
  box-shadow: var(--box-shadow);
  margin-bottom: 60px;
  padding: 40px 24px;
  transition: box-shadow var(--transition-fast);
}
.newsletter h2, .newsletter p, .newsletter ul, .newsletter li, .newsletter strong { color: #fff; }
.newsletter ul { margin: 8px 0 18px 0; padding-left: 22px; list-style: square inside; }
.newsletter ul li { margin-bottom: 9px; }
.newsletter strong { text-shadow: 0 1px 6px rgba(124,66,23,0.10); }
@media (max-width: 700px) {
  .newsletter {
    padding: 24px 10px;
    font-size: 0.96rem;
  }
}

/* About-Preview section */
.about-preview {
  background: var(--organic-green);
  color: #fff;
  border-radius: 16px 60px 24px 22px/38px 22px 44px 16px;
  box-shadow: var(--box-shadow);
  margin-bottom: 60px;
  padding: 40px 22px;
}
.about-preview h2, .about-preview p {
  color: #fff;
}

/* Ingredient spotlights */
.ingredient-spotlights {
  background: #F9F7ED;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(50,97,45,0.06);
  padding: 18px 22px;
  margin-bottom: 24px;
}
.ingredient-spotlights h3 {
  color: var(--primary);
  margin-bottom: 10px;
}
.ingredient-spotlights ul li {
  color: var(--accent);
  font-weight: 600;
  margin-left: 8px;
  margin-bottom: 6px;
}


/* ---------------- FOOTER ---------------- */
footer {
  background: var(--sand-light);
  color: #665142;
  padding: 0 0 16px 0;
  box-shadow: 0 -2px 14px 0 rgba(124,66,23,0.07);
  margin-top: 60px;
}

.footer-nav {
  margin-bottom: 26px;
}
.footer-nav nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 1rem;
}
.footer-nav a {
  color: var(--primary);
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 9px;
  transition: background var(--transition-fast);
}
.footer-nav a:hover, .footer-nav a:focus {
  background: var(--accent-light);
  color: #fff;
}

.brand-legal {
  display: flex;
  flex-direction: row;
  gap: 26px;
  align-items: center;
  margin-top: 12px;
}
.brand-legal img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}
.legal-info {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.legal-info span {
  color: var(--primary);
  font-size: 0.97rem;
  font-family: var(--font-body);
}
@media (max-width: 800px) {
  .brand-legal { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ---------------- UTILS & SPACING ---------------- */
.text-section {
  margin-bottom: 32px;
}
@media (max-width: 620px) {
  .text-section { margin-bottom: 20px; }
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 10010;
  background: #fff;
  border-top: 3px solid var(--accent-light);
  box-shadow: 0 -2px 16px 0 rgba(50,97,45,0.08);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  padding: 22px 14px 22px 20px;
  font-size: 1rem;
  transition: transform 0.38s cubic-bezier(.57,1.2,.34,1), opacity 0.2s linear;
}
.cookie-banner.hide {
  transform: translateY(140%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-left: 28px;
  align-items: center;
}
.cookie-banner button {
  padding: 9px 22px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  transition: background var(--transition-fast), transform var(--transition-fast);
  border: none;
  cursor: pointer;
}
.cookie-banner button.cookie-reject {
  background: #DED6C3;
  color: var(--primary);
}
.cookie-banner button.cookie-settings {
  background: var(--primary-dark);
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: var(--primary);
  color: #fff;
  transform: scale(1.03);
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  z-index: 10020;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-54%) scale(0.97);
  background: #fff;
  border-radius: 24px 32px 24px 32px/22px 40px 22px 32px;
  box-shadow: 0 8px 48px 0 rgba(81,98,72,0.24);
  padding: 34px 28px 28px 28px;
  width: 98vw;
  max-width: 410px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  opacity: 1;
  transition: opacity 0.23s cubic-bezier(.5,.16,.37,1);
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal h2 {
  color: var(--primary);
  font-size: 1.25rem;
}
.cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 17px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--secondary-light);
  border-radius: 12px;
  padding: 11px 16px 11px 14px;
  color: var(--primary);
}
.cookie-modal .cookie-category label {
  font-weight: 700;
}
.cookie-modal .cookie-toggle {
  width: 38px;
  height: 22px;
  border-radius: 11px;
  background: var(--sand-light);
  position: relative;
  display: inline-block;
  cursor: pointer;
  transition: background var(--transition-fast);
}
.cookie-modal .cookie-toggle input {
  display: none;
}
.cookie-modal .cookie-toggle span {
  position: absolute;
  left: 3px; top: 3px;
  width: 16px; height: 16px;
  border-radius: 8px;
  background: var(--accent);
  transition: left 0.14s cubic-bezier(.5,.16,.37,1);
}
.cookie-modal .cookie-toggle input:checked + span {
  left: 19px; background: var(--organic-green);
}
.cookie-modal .cookie-footer {
  display: flex;
  gap: 14px;
  margin-top: 6px;
}
.cookie-modal .cookie-close {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1.06rem;
  padding: 7px 18px;
  cursor: pointer;
  transition: background var(--transition-fast);
}
.cookie-modal .cookie-close:hover, .cookie-modal .cookie-close:focus {
  background: var(--accent);
}

@media (max-width: 700px) {
  .cookie-banner { flex-direction: column; align-items: flex-start; gap: 12px; padding: 13px 9px; }
  .cookie-banner .cookie-actions { margin-left: 0; }
  .cookie-modal { padding: 18px 6vw 10px 7vw; }
}

/* --------------- INTERACTIONS / MICROANIMATIONS --------------- */
a, button, .cta-button, .main-nav a, .footer-nav a {
  transition: box-shadow var(--transition-fast), background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

/* Text selection */
::selection {
  background: var(--accent-light);
  color: #fff;
}

/* Inputs in modals, text-section, etc. */
input, textarea {
  border-radius: 10px;
  border: 1px solid var(--sand-light);
  padding: 10px 12px;
  margin-bottom: 10px;
  font-size: 1rem;
  background: #f9f7ee;
  color: #382a10;
}
input:focus, textarea:focus {
  border-color: var(--accent);
  background: #fff;
}

/* List Items */
ul {
  margin-bottom: 12px;
  padding-left: 17px;
  list-style: disc outside;
}
ul li {
  margin-bottom: 8px;
  font-size: 1rem;
}
/* FAQ accordion visually distinctive */
.faq-accordion > div {
  border-left: 5px solid var(--organic-green);
  background: #fffefb;
}

/* Icon Lists in Kontakt Page */
.text-section ul li img {
  vertical-align: middle;
  margin-right: 8px;
  width: 20px;
  height: 20px;
  display: inline;
}

/* Responsive main layout wrapper */
main {
  width: 100%;
  margin: 0 auto;
  margin-top: 14px;
  margin-bottom: 0;
  min-height: 50vh;
}

/* Anchor focus outline for accessibility */
a:focus, button:focus, .cta-button:focus {
  outline: 2px solid var(--accent-light);
  outline-offset: 1px;
}

/* Hide visually only */
.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px,1px,1px,1px);
  white-space: nowrap;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* --------------- MOBILE HIGH-PRIORITY LAYOUTS --------------- */
@media (max-width: 768px) {
  .container { padding: 0 8px; }
  .section, .about-preview, .newsletter {
    padding: 20px 6px;
    margin-bottom: 36px;
  }
  .feature-grid, .recipe-snippets, .recipe-preview-cards, .tipps-grid, .historical-facts, .faq-accordion {
    flex-direction: column;
    gap: 14px;
    margin-bottom: 10px;
  }
  .footer-nav nav, .main-nav {
    flex-direction: column;
    gap: 12px;
  }
}

@media (max-width: 500px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.15rem; }
  h3 { font-size: 1rem; }
  .section, .about-preview, .newsletter {
    padding: 12px 3px;
    margin-bottom: 28px;
  }
  .footer-nav nav, .main-nav, .content-wrapper {
    gap: 10px;
  }
}

/* ------------------ ORGANIC/NATURE DECORATIVE TOUCHES ------------------ */
.section, .card, .feature-grid > div, .recipe-preview-cards > div, .historical-facts > div, .tipps-grid > div {
  /* Organic shadow, organic border radius */
  border-radius: 18px 40px 24px 30px/26px 18px 30px 13px;
  box-shadow: var(--box-shadow);
}

/* Handdrawn/organic border accent for feature cards */
.feature-grid > div::before {
  content: '';
  display: block;
  width: 36px;
  height: 10px;
  border-radius: 16px 40px 8px 10px/8px 4px 10px 6px;
  background: var(--organic-green);
  margin-bottom: 8px;
  opacity: 0.22;
}

/* Nature look for testimonial cards */
.testimonial-card {
  background: #F9F7ED;
  border-left: 5px solid var(--organic-green);
  border-radius: 18px 38px 22px 24px/20px 18px 20px 13px;
  color: #233109;
}

/* Subtle leaf icon decoration in hero (optional, can be commented out if no SVG available) */
/*
.hero .container::before {
  content: '';
  display: block;
  position: absolute;
  left: 1.5vw; top: 18%;
  width: 64px; height: 64px;
  background: url('../assets/icons/icon-leaf.svg') no-repeat center/contain;
  opacity: 0.10;
  pointer-events: none;
  z-index: 0;
}
*/

/* --------------- UTILITY SPACING CLASSES --------------- */
.mt-2 { margin-top: 12px !important; }
.mb-2 { margin-bottom: 12px !important; }
.mt-4 { margin-top: 24px !important; }
.mb-4 { margin-bottom: 24px !important; }
.p-2 { padding: 12px !important; }
.p-4 { padding: 24px !important; }

/*---------------- END OF CSS ----------------*/
