/* 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,
main, 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;
}
body {
  line-height: 1.5;
}
ol, ul {
  list-style: none;
}
a {
  background-color: transparent;
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
}
button, input, select, textarea {
  font: inherit;
  border: none;
  outline: none;
  background: none;
  margin: 0;
  padding: 0;
}

/* Brand Variables/Fallbacks */
:root {
  --color-primary: #304C32;
  --color-secondary: #8A6049;
  --color-accent: #F7EFE6;
  --color-background: #FFFFFF;
  --color-text: #212922;
  --color-muted: #6A6A6A;
  --color-link: #304C32;
  --color-border: #EBEBEB;
  --color-shadow: rgba(60, 60, 60, 0.03);
  --shadow-elevate: 0 3px 12px rgba(48,76,50,0.08);
  --border-radius: 12px;
  --font-display: 'Merriweather', serif;
  --font-body: 'Open Sans', Arial, sans-serif;
}

html {
  box-sizing: border-box;
  font-size: 16px;
  background: var(--color-background);
}
body {
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 400;
  background: var(--color-background);
  min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4 {
  color: var(--color-primary);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
}
h1 {
  font-size: 2.4rem;
  margin-bottom: 16px;
}
h2 {
  font-size: 1.6rem;
  margin-bottom: 12px;
}
h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}
h4 {
  font-size: 1rem;
  margin-bottom: 8px;
}
p, ul, ol, blockquote, label {
  font-size: 1rem;
  color: var(--color-text);
  margin-bottom: 12px;
  letter-spacing: 0.01em;
}
blockquote {
  padding-left: 16px;
  border-left: 2px solid var(--color-primary);
  font-style: italic;
  background: var(--color-accent);
  border-radius: var(--border-radius);
  margin-bottom: 12px;
}
strong {
  color: var(--color-secondary);
  font-weight: 600;
}

/* Links */
a {
  color: var(--color-link);
  transition: color .2s;
}
a:hover, a:focus {
  color: var(--color-secondary);
  text-decoration: underline;
}
.cta-primary {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--border-radius);
  padding: 12px 32px;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: var(--shadow-elevate);
  transition: background .15s, color .15s, box-shadow .2s, transform .15s;
  border: none;
  cursor: pointer;
  outline: none;
}
.cta-primary:hover, .cta-primary:focus {
  background: var(--color-secondary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(48,76,50,0.15);
  transform: translateY(-1px) scale(1.04);
}

/* Containers & Layouts */
.container {
  width: 100%;
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-elevate);
  margin-bottom: 20px;
  padding: 24px;
  position: relative;
  transition: box-shadow .18s, transform .13s;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.card:hover, .card:focus-within {
  box-shadow: 0 6px 18px rgba(48,76,50,0.12);
  transform: translateY(-2px) scale(1.01);
}
.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: var(--color-accent);
  border-radius: var(--border-radius);
  box-shadow: 0 2px 10px var(--color-shadow);
  margin-bottom: 20px;
  flex-direction: column;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
}
.features-grid > div {
  flex: 1 1 180px;
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-elevate);
  padding: 20px;
  min-width: 180px;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  transition: box-shadow .18s, transform .13s;
}
.features-grid > div:hover {
  box-shadow: 0 6px 18px rgba(48,76,50,0.11);
  transform: scale(1.015);
}

/* Hero Section */
.hero-section {
  background: var(--color-accent);
  padding: 64px 0 56px 0;
  margin-bottom: 40px;
}
.hero-section .content-wrapper {
  align-items: flex-start;
  gap: 18px;
}
.hero-section h1 {
  font-size: 2.2rem;
}
.hero-section .subheadline {
  font-size: 1.2rem;
  color: var(--color-secondary);
  margin-bottom: 18px;
  font-family: var(--font-body);
}

.cta-section {
  padding: 32px 20px 40px 20px;
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 10px var(--color-shadow);
  margin-bottom: 60px;
  display: flex;
}
.cta-section .content-wrapper {
  align-items: center;
  justify-content: center;
  gap: 16px;
}

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

.testimonial-card blockquote {
  background: none;
  color: var(--color-text);
  border-left: 2px solid var(--color-secondary);
  font-size: 1.06rem;
  margin-bottom: 8px;
}
.testimonial-card p {
  color: var(--color-primary);
  font-style: normal;
}
.testimonial-card strong {
  color: var(--color-secondary);
  font-size: 1rem;
}

/* Lists */
ul, ol {
  padding-left: 24px;
  margin-bottom: 16px;
}
ul li, ol li {
  margin-bottom: 8px;
  font-size: 1rem;
}
ul li::marker {
  color: var(--color-secondary);
}

/* Table (if any in content) */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
}
th, td {
  border-bottom: 1px solid var(--color-border);
  padding: 10px 8px;
  text-align: left;
}
th {
  font-weight: 700;
  color: var(--color-primary);
  background: var(--color-accent);
}

/* Inputs and Forms */
label {
  font-weight: 600;
  color: var(--color-primary);
}
input[type="search"], select, input[type="text"], input[type="email"], textarea {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 1rem;
  color: var(--color-text);
  margin-bottom: 10px;
  width: 100%;
  transition: border .17s;
  box-shadow: 0 1px 4px rgba(48,76,50,0.02);
}
input[type="search"]:focus, select:focus, input:focus, textarea:focus {
  border: 1.5px solid var(--color-secondary);
}
.filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: center;
  margin-bottom: 12px;
}
.filter-options label {
  margin-right: 4px;
  font-weight: 500;
  color: var(--color-muted);
  font-size: 0.97rem;
}

/* Social Links */
.social-links {
  display: flex;
  flex-direction: row;
  gap: 18px;
  align-items: center;
  margin-top: 10px;
}
.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: background .18s, transform .13s;
}
.social-links a:hover {
  background: var(--color-accent);
  transform: scale(1.065);
}

/* Footer */
footer {
  background: var(--color-accent);
  padding: 32px 0 0 0;
  margin-top: 80px;
}
footer .container {
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 12px;
}
.footer-brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  color: var(--color-primary);
  opacity: 0.85;
  margin-bottom: 10px;
}
.footer-brand img {
  width: 40px;
  height: 40px;
}

/* Header & Main Nav */
header {
  background: #fff;
  box-shadow: 0 1px 8px var(--color-shadow);
  width: 100%;
  position: relative;
  z-index: 40;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  gap: 0;
}
header a img {
  height: 48px;
  padding: 4px 0;
}
header nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
}
header nav a {
  font-weight: 500;
  padding: 7px 0;
  color: var(--color-primary);
  border-radius: 5px;
  font-size: 1rem;
  position: relative;
  transition: background .13s, color .13s;
}
header nav a:hover, header nav a:focus {
  background: var(--color-accent);
  color: var(--color-secondary);
}
header nav .cta-primary {
  background: var(--color-secondary);
  color: #fff;
  margin-left: 6px;
  box-shadow: 0 2px 8px 0 rgba(138,96,73,0.07);
}
header nav .cta-primary:hover, header nav .cta-primary:focus {
  background: var(--color-primary);
  color: #fff;
}

/* Mobile Menu Hamburger */
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  color: var(--color-primary);
  font-size: 2rem;
  border-radius: 8px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  border: none;
  transition: background .18s, color .18s;
  z-index: 202;
  margin-left: 20px;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--color-secondary);
  color: #fff;
}

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(247,239,230,0.98);
  z-index: 201;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(100%);
  transition: transform 0.33s cubic-bezier(.5,.8,.3,1);
  width: 100vw;
  height: 100vh;
  box-shadow: -2px 0 24px 0 rgba(48,76,50,0.11);
  padding: 28px 30px 28px 30px;
  overflow-y: auto;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  font-size: 2.2rem;
  background: transparent;
  color: var(--color-secondary);
  align-self: flex-end;
  border-radius: 8px;
  padding: 6px 16px;
  margin-bottom: 28px;
  border: none;
  cursor: pointer;
  transition: background .16s, color .17s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--color-secondary);
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 22px;
}
.mobile-nav a {
  font-size: 1.2rem;
  color: var(--color-primary);
  padding: 10px 0 10px 8px;
  border-radius: 8px;
  font-weight: 500;
  transition: background .18s, color .15s;
  margin-bottom: 6px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-secondary);
  color: #fff;
}

/* Hide desktop nav on mobile, burger only */
@media (max-width: 1024px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 1025px) {
  .mobile-menu, .mobile-menu-toggle {
    display: none !important;
  }
  header nav {
    display: flex !important;
  }
}

/* Search Section (Rezepte page) */
.search-section {
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--color-accent);
  border-radius: var(--border-radius);
  padding: 16px 18px 12px 18px;
  box-shadow: 0 1px 6px var(--color-shadow);
}

/* Responsiveness */
@media (max-width: 1024px) {
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }
  .features-grid {
    gap: 16px;
    flex-wrap: wrap;
  }
  .features-grid > div {
    min-width: 140px;
    max-width: 100%;
    flex: 1 1 150px;
  }
}
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  .hero-section {
    padding: 36px 0 18px 0;
    margin-bottom: 24px;
  }
  .section, .cta-section {
    padding: 24px 8px;
  }
  .features-grid {
    gap: 14px;
  }
  .content-grid, .card-container {
    gap: 14px;
  }
  .testimonial-card {
    padding: 14px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
  .features-grid > div {
    padding: 13px 12px;
    min-width: 90px;
  }
  header .container {
    height: 60px;
  }
  .footer-brand img {
    width: 28px;
    height: 28px;
  }
}

@media (max-width: 500px) {
  html {
    font-size: 14px;
  }
  .footer-brand span {
    font-size: 0.91rem;
  }
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 9999;
  background: #fff;
  color: var(--color-text);
  border-top: 1.5px solid var(--color-border);
  box-shadow: 0 -2px 20px rgba(60,60,60,0.07);
  padding: 20px 16px 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  min-height: 80px;
  font-size: 1rem;
  animation: slideUp .6s;
}
@keyframes slideUp {
  0% { transform: translateY(100%); opacity:0; }
  85% { opacity:1; }
  100% { transform: translateY(0); }
}
.cookie-banner p {
  color: var(--color-text);
  margin-bottom: 0;
  text-align: center;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 16px;
  margin-top: 4px;
}
.cookie-banner button {
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  background: var(--color-accent);
  color: var(--color-primary);
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: background .15s, color .15s, box-shadow .19s;
}
.cookie-banner button.cookie-accept {
  background: var(--color-primary);
  color: #fff;
  border: none;
  font-weight: 700;
}
.cookie-banner button.cookie-accept:hover, .cookie-banner button.cookie-accept:focus {
  background: var(--color-secondary);
  color: #fff;
}
.cookie-banner button.cookie-reject {
  background: var(--color-secondary);
  color: #fff;
  border: none;
}
.cookie-banner button.cookie-reject:hover, .cookie-banner button.cookie-reject:focus {
  background: var(--color-primary);
  color: #fff;
}
.cookie-banner button.cookie-settings {
  background: var(--color-accent);
  color: var(--color-primary);
  border: 1px solid var(--color-border);
}
.cookie-banner button.cookie-settings:hover, .cookie-banner button.cookie-settings:focus {
  background: var(--color-secondary);
  color: #fff;
}

/* Cookie Modal Overlay */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  z-index: 10001;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(48,76,50,0.13);
  align-items: center;
  justify-content: center;
  animation: fadeIn .25s;
}
@keyframes fadeIn {
  0% { opacity:0; }
  100% { opacity:1; }
}
.cookie-modal-overlay.open {
  display: flex;
}
.cookie-modal {
  background: #fff;
  color: var(--color-text);
  border-radius: 18px;
  box-shadow: 0 12px 48px rgba(48,76,50,0.13), 0 2px 16px rgba(48,76,50,0.05);
  padding: 36px 24px 22px 24px;
  min-width: 300px;
  max-width: 98vw;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: popIn .3s cubic-bezier(.82,1.8,.35,1);
  position: relative;
}
@keyframes popIn {
  0% {transform: scale(.86); opacity: 0;}
  100% {transform: scale(1); opacity:1;}
}
.cookie-modal h3 {
  color: var(--color-primary);
  font-size: 1.2rem;
  margin-bottom: 4px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}
.cookie-category label {
  font-size: 1rem;
  color: var(--color-secondary);
  font-weight: 600;
}
.cookie-modal .switch {
  position: relative;
  display: inline-block;
  width: 39px;
  height: 21px;
}
.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-color: #ccc;
  border-radius: 16px;
  transition: 0.22s;
}
.cookie-modal .switch input:checked + .slider {
  background-color: var(--color-primary);
}
.cookie-modal .slider:before {
  position: absolute;
  content: "";
  height: 15px;
  width: 15px;
  left: 3px;
  bottom: 3px;
  background-color: #fff;
  border-radius: 50%;
  transition: 0.23s;
}
.cookie-modal .switch input:checked + .slider:before {
  transform: translateX(16px);
}
.cookie-modal .cookie-actions {
  display: flex;
  gap: 16px;
  margin-top: 6px;
  justify-content: flex-end;
}
.cookie-modal .cookie-actions button {
  min-width: 96px;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 12px; right: 18px;
  background: transparent;
  border: none;
  color: var(--color-muted);
  font-size: 1.8rem;
  cursor: pointer;
  transition: color .15s;
}
.cookie-modal .close-modal:hover {
  color: var(--color-secondary);
}

@media (max-width: 600px) {
  .cookie-modal {
    padding: 20px 9px 16px 9px;
    min-width: 0;
  }
}

/* Micro-animations */
.card, .features-grid > div, .testimonial-card, .card-content, .cta-primary {
  transition: box-shadow .18s, transform .13s, background .13s, color .13s;
}
.cta-primary:active, .mobile-menu-close:active, .mobile-menu-toggle:active {
  transform: scale(.97);
}
