/* ==========================================================
   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, menu, 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, 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, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #FAF3E7;
  color: #4E2E1D;
}
ul, ol {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color .2s;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
  background: none;
  border: none;
  outline: none;
  padding: 0;
}

/* ==========================================================
   Root CSS Variables
========================================================== */
:root {
  --primary: #4E2E1D;
  --secondary: #A86C3F;
  --accent: #FAF3E7;
  --white: #fff;
  --black: #20160E;
  --muted: #E3DACB;
  --success: #386341;
  --danger: #AC3B24;

  --font-display: 'Merriweather', serif;
  --font-body: 'Open Sans', 'Arial', sans-serif;

  --radius-s: 6px;
  --radius-m: 12px;
  --shadow-s: 0 1px 4px rgba(78, 46, 29, 0.06);
  --shadow-m: 0 4px 24px rgba(78, 46, 29, 0.07);
}



/* ==========================================================
   Typography
========================================================== */
html {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--primary);
  background: var(--accent);
  min-height: 100vh;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.01em;
}
h1 { font-size: 2.6rem; margin-bottom: 0.7em; line-height: 1.15; }
h2 { font-size: 2rem; margin-bottom: 0.6em; line-height: 1.2; }
h3 { font-size: 1.35rem; margin-bottom: 0.4em; line-height: 1.3; }
h4 { font-size: 1.12rem; }

@media (max-width: 900px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.7rem; }
  h3 { font-size: 1.06rem; }
}

p, ul li, ol li, label, input, select, textarea, .text-section {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--primary);
}
small, .footer {
  font-size: 0.94rem;
  color: var(--secondary);
}
strong {
  font-weight: 700;
  color: var(--secondary);
}
.text-section {
  margin-bottom: 20px;
}

/* Visual Lists */
ul li::marker, ol li::marker {
  color: var(--secondary);
}
ul {
  margin-left: 1.5em;
  padding-left: 0.7em;
}

/* ==========================================================
   Layout Containers (Flexbox Only)
========================================================== */
.container {
  width: 100%;
  padding: 0 18px;
  margin: 0 auto;
  max-width: 960px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  background: none;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--accent);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-s);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  width: 100%;
}
.card {
  background: var(--white);
  border-radius: var(--radius-s);
  box-shadow: var(--shadow-s);
  margin-bottom: 20px;
  position: relative;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
}

.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 {
  background: var(--muted);
  color: var(--primary);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-s);
  margin-bottom: 20px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-direction: column;
  min-width: 0;
  transition: box-shadow .2s;
}
.testimonial-card:hover {
  box-shadow: var(--shadow-m);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Custom-page grids & lists */
.hausmannskost-recipes-grid, .german-regional-recipes-list, .service-details-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
  margin-bottom: 20px;
}
.hausmannskost-recipes-grid > .text-section, 
.german-regional-recipes-list > .text-section, 
.service-details-grid > .text-section {
  background: var(--muted);
  border-radius: var(--radius-s);
  box-shadow: var(--shadow-s);
  padding: 20px 18px;
  flex: 1 1 230px;
  min-width: 200px;
}

/* Category Tags */
.category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 16px 0 12px 0;
}
.category-tags span {
  padding: 6px 14px;
  background: var(--muted);
  border-radius: var(--radius-s);
  color: var(--primary);
  font-size: 0.97rem;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background .2s, color .2s;
}
.category-tags span:hover, .category-tags span.active {
  background: var(--secondary);
  color: var(--white);
}

/* ==========================================================
   Header & Navigation
========================================================== */
header {
  background: var(--white);
  box-shadow: 0 3px 16px rgba(78,46,29,0.05);
  padding: 0 0 0 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
header nav {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px 10px 18px;
}
header nav > a img {
  height: 43px;
  width: auto;
  margin-right: 20px;
  vertical-align: middle;
}
header nav ul {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}
header nav ul li {
  margin: 0 5px;
}
header nav ul li a {
  font-family: var(--font-display);
  font-size: 1.04rem;
  padding: 6px 8px;
  border-radius: var(--radius-s);
  color: var(--primary);
  transition: background .2s, color .2s;
}
header nav ul li a:hover, header nav ul li a.active {
  background: var(--secondary);
  color: var(--white);
}

/* Burger Menu Button */
.mobile-menu-toggle {
  display: none;
  background: var(--secondary);
  color: var(--white);
  font-size: 2rem;
  border-radius: 50%;
  padding: 8px 12px 6px 12px;
  margin-left: 16px;
  border: none;
  cursor: pointer;
  transition: box-shadow .2s, background .2s;
  z-index: 110;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--primary);
  box-shadow: 0 3px 12px rgba(78,46,29,0.14);
}

/* Mobile Navigation */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(78,46,29,0.97);
  transform: translateX(-100%);
  transition: transform .36s cubic-bezier(.68,.22,.27,.97);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: transparent;
  color: var(--white);
  font-size: 2.1rem;
  border: none;
  align-self: flex-end;
  margin: 22px 30px 22px 0;
  cursor: pointer;
  z-index: 2100;
  transition: color .2s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  color: var(--secondary);
}
.mobile-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
  padding: 26px 38px 38px 38px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.19rem;
  color: var(--white);
  background: transparent;
  border-radius: var(--radius-s);
  padding: 7px 10px;
  width: 100%;
  transition: background .19s, color .19s;
}
.mobile-nav a:hover, .mobile-nav a.active {
  background: var(--secondary);
  color: var(--accent);
}

/* Hide main nav, show burger button on mobile */
@media (max-width: 900px) {
  header nav ul {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}

@media (max-width: 900px) {
  header nav {
    padding: 12px 10px 4px 10px;
  }
  header nav > a img {
    height: 38px;
    margin-right: 11px;
  }
}

/* ==========================================================
   Call to Action Button
========================================================== */
.cta {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: bold;
  letter-spacing: 0.02em;
  color: var(--white);
  background: var(--secondary);
  padding: 12px 32px;
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-m);
  margin-top: 12px;
  margin-bottom: 0;
  cursor: pointer;
  border: none;
  transition: background .2s, box-shadow .25s, transform .16s;
  outline: none;
}
.cta:hover, .cta:focus {
  background: var(--primary);
  color: var(--accent);
  box-shadow: 0 6px 34px rgba(78,46,29,0.10);
  transform: translateY(-3px) scale(1.03);
}

/* ==========================================================
   Main Section Styling
========================================================== */
main > section {
  margin-bottom: 60px;
  padding: 40px 0 0 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
}

@media (max-width: 600px) {
  main > section {
    padding: 28px 0 0 0;
    margin-bottom: 36px;
  }
}

/* Flexbox lists for recipe teasers/highlights */
main ul {
  margin-top: 0.8em;
  margin-bottom: 1em;
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
}
main ul li::before {
  content: "• ";
  color: var(--secondary);
  font-weight: bold;
  font-size: 1.06em;
  margin-right: 0.2em;
}
main ul li {
  padding-left: 12px;
  font-size: 1.03rem;
}
main ul li strong {
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 1.03em;
}

/* Inputs & Forms */
input[type="text"], select {
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid var(--muted);
  background: var(--accent);
  border-radius: var(--radius-s);
  padding: 10px 14px;
  margin-right: 12px;
  margin-bottom: 10px;
  color: var(--primary);
  transition: border .17s;
}
input[type="text"]:focus, select:focus {
  border-color: var(--secondary);
}
label {
  font-family: var(--font-body);
  color: var(--primary);
  margin-right: 7px;
  font-weight: bold;
}

/* ==========================================================
   Footer
========================================================== */
footer {
  background: var(--primary);
  color: var(--accent);
  padding: 30px 0 20px 0;
  font-size: 1rem;
  margin-top: 60px;
}
footer .container {
  padding: 0 18px;
  max-width: 980px;
}
footer .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
}
footer nav {
  width: 100%;
  margin-bottom: 12px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  color: var(--accent);
  font-size: 1.07rem;
}
footer nav a {
  color: var(--accent);
  padding: 4px 6px;
  border-radius: var(--radius-s);
  transition: background .16s, color .16s;
}
footer nav a:hover {
  background: var(--secondary);
  color: var(--white);
}
.brand-info {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 22px;
  background-color: #fff;
  margin-bottom: 12px;
}
.brand-info img {
  height: 50px;
}
.brand-info .text-section {
  color: var(--accent);
  font-size: 1rem;
  font-family: var(--font-body);
  margin-bottom: 0;
}
.brand-info strong {
  color: var(--secondary);
}
.social-links {
  display: flex;
  flex-direction: row;
  gap: 15px;
}
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  border-radius: 50%;
  padding: 8px;
  height: 36px;
  width: 36px;
  transition: background .18s;
}
.social-links a:hover {
  background: var(--secondary);
}
.social-links img {
  width: 22px;
  height: 22px;
}

@media (max-width: 700px) {
  .brand-info {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
  }
}

/* ==========================================================
   Media Queries for Responsiveness
========================================================== */
@media (max-width: 900px) {
  .container {
    max-width: 100vw;
    padding: 0 10px;
  }
  .brand-info img {
    height: 39px;
  }
}
@media (max-width: 768px) {
  .text-image-section, .content-grid, .hausmannskost-recipes-grid, .german-regional-recipes-list, .service-details-grid {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 14px;
    padding: 18px 12px;
  }
  .section {
    padding: 22px 6px;
    margin-bottom: 36px;
  }
}
@media (max-width: 500px) {
  h1 { font-size: 1.45rem; }
  h2 { font-size: 1.13rem; }
  .cta { padding: 10px 18px; font-size: 1rem; }
}

/* ==========================================================
   Transitions & Microinteractions
========================================================== */
a, button, .cta, .category-tags span, input, select {
  transition: color .18s, background .19s, box-shadow .21s, border .2s, transform .17s;
}

/* Subtle card shadow on hover */
.card:hover, .hausmannskost-recipes-grid>.text-section:hover, .german-regional-recipes-list>.text-section:hover, .service-details-grid>.text-section:hover {
  box-shadow: 0 6px 16px rgba(78,46,29,0.10);
  transform: translateY(-2px) scale(1.02);
}

/* ==========================================================
   Cookie Consent Banner
========================================================== */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 3000;
  background: var(--white);
  color: var(--primary);
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 32px;
  box-shadow: 0 -4px 32px rgba(78,46,29,0.14);
  border-top-left-radius: var(--radius-m);
  border-top-right-radius: var(--radius-m);
  font-size: 1rem;
  max-width: 750px;
  margin: 0 auto;
  opacity: 1;
  transform: translateY(0);
  transition: opacity .3s, transform .3s;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(60px);
}
.cookie-banner-text {
  flex: 1 1 60%;
  font-family: var(--font-body);
  color: var(--primary);
  line-height: 1.6;
  font-size: 1rem;
}
.cookie-banner-buttons {
  display: flex;
  flex-direction: row;
  gap: 13px;
}
.cookie-btn {
  font-family: var(--font-display);
  font-size: 1rem;
  border-radius: var(--radius-s);
  padding: 9px 22px;
  border: none;
  cursor: pointer;
  background: var(--muted);
  color: var(--primary);
  box-shadow: var(--shadow-s);
  font-weight: bold;
  transition: background .18s, color .18s, box-shadow .18s;
}
.cookie-btn.accept {
  background: var(--secondary);
  color: var(--white);
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: var(--primary);
  color: var(--accent);
}
.cookie-btn.reject {
  background: var(--muted);
  color: var(--danger);
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: var(--danger);
  color: var(--white);
}
.cookie-btn.settings {
  background: var(--accent);
  color: var(--primary);
  border: 1px solid var(--secondary);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--secondary);
  color: var(--white);
}

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    padding: 16px 10px;
    font-size: 0.98rem;
    max-width: 96vw;
  }
}

/* Cookie Modal Overlay */
#cookie-modal {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 3100;
  background: rgba(78,46,29,0.60);
  justify-content: center;
  align-items: center;
  animation: fadein .32s cubic-bezier(.52,.18,.49,.91);
}
#cookie-modal.active {
  display: flex;
}
.cookie-modal-content {
  background: var(--white);
  color: var(--primary);
  border-radius: var(--radius-m);
  box-shadow: 0 8px 38px rgba(78,46,29,0.20);
  padding: 38px 28px 28px 28px;
  max-width: 95vw;
  min-width: 290px;
  width: 410px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: modalEntrance .36s cubic-bezier(.62,-0.04,.56,1.44);
}
@keyframes fadein {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes modalEntrance {
  0% { opacity: 0; transform: scale(0.92) translateY(40px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
.cookie-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.cookie-modal-header h2 {
  font-size: 1.30rem;
  font-family: var(--font-display);
  color: var(--primary);
}
.cookie-modal-close {
  font-size: 2rem;
  color: var(--primary);
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  padding: 2px 10px;
  transition: background .17s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: var(--muted);
}
.cookie-category {
  background: var(--muted);
  padding: 13px 15px;
  border-radius: var(--radius-s);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.cookie-category .switch {
  margin-left: 8px;
}
.cookie-category.essential {
  opacity: 0.72;
}
.cookie-category label {
  font-size: 1rem;
  font-family: var(--font-body);
}
.toggle-switch {
  width: 46px;
  height: 24px;
  position: relative;
  display: inline-block;
}
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--secondary);
  transition: .3s;
  border-radius: var(--radius-m);
}
.toggle-slider:before {
  position: absolute;
  content: '';
  height: 17px;
  width: 17px;
  left: 4px;
  bottom: 3.5px;
  background: var(--white);
  transition: .23s;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(78,46,29,0.08);
}
.toggle-switch input:checked + .toggle-slider {
  background: var(--primary);
}
.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(20px);
  background: var(--secondary);
}

/* ==========================================================
   Utility Classes
========================================================== */
.d-flex { display: flex !important; }
.align-center { align-items: center !important; }
.flex-col { flex-direction: column !important; }
.flex-row { flex-direction: row !important; }
.w-100 { width: 100% !important; }
.gap-s { gap: 8px !important; }
.gap-m { gap: 18px !important; }
.gap-l { gap: 32px !important; }

/* Hide visually but keep accessible */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* ==========================================================
   Misc and Accessibility
========================================================== */
:focus {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}
::-webkit-selection, ::selection {
  background: var(--secondary);
  color: var(--white);
}

/* Scrollbar for large screens */
@media (min-width: 900px) {
  ::-webkit-scrollbar {
    width: 11px;
    background: var(--muted);
  }
  ::-webkit-scrollbar-thumb {
    border-radius: var(--radius-s);
    background: var(--secondary);
  }
}
