/* =========================
   Wurzeln & Würze – Minimalist Flex CSS
   Mobile-first, flexbox-only, generous whitespace, subtle shadows
   ========================= */

/* -------- CSS Variables (with sensible defaults) -------- */
:root {
  --primary: #7A2E1B;
  --secondary: #2F5D44;
  --accent: #F5F2EA;
  --bg: #FFFFFF;
  --text: #1A1A1A;
  --muted: #6B6B6B;
  --border: #E6E6E6;
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-32: 32px;
  --space-40: 40px;
  --space-60: 60px;
}

/* -------- Reset & Normalize (minimal) -------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.6; font-family: Verdana, Geneva, Tahoma, sans-serif; }
img, svg { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
input, button, select, textarea { font: inherit; color: inherit; }
button { background: none; border: none; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { padding-left: 20px; }

/* -------- Typography -------- */
h1, h2, h3, h4 { font-family: Georgia, "Times New Roman", serif; color: var(--text); margin: 0; line-height: 1.25; }
h1 { font-size: 32px; letter-spacing: -0.2px; }
h2 { font-size: 24px; margin-top: 0; }
h3 { font-size: 18px; }
p { margin: 0; color: var(--text); }
.subheadline { color: var(--muted); font-size: 16px; }
strong { color: var(--text); }

/* -------- Global Layout Wrappers (Flex-only) -------- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 var(--space-16); display: flex; flex-direction: column; gap: var(--space-24); }
.content-wrapper { display: flex; flex-direction: column; gap: var(--space-20); align-items: flex-start; }
.text-section { display: flex; flex-direction: column; gap: var(--space-16); }
.content-grid { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; }

/* -------- Header & Navigation -------- */
header { position: sticky; top: 0; background: var(--bg); border-bottom: 1px solid var(--border); z-index: 1000; }
header .container { flex-direction: row; align-items: center; justify-content: space-between; gap: var(--space-16); padding-top: var(--space-12); padding-bottom: var(--space-12); }
.logo img { height: 32px; }

.main-nav { display: none; align-items: center; flex-wrap: wrap; gap: var(--space-12); }
.main-nav a { padding: 8px 10px; border-radius: var(--radius-sm); color: var(--text); transition: background-color .2s ease, color .2s ease; }
.main-nav a:hover { background: var(--accent); color: var(--primary); }
.main-nav a[aria-current="page"] { color: var(--primary); font-weight: bold; }

.mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff; box-shadow: var(--shadow-xs); transition: border-color .2s ease, transform .1s ease; }
.mobile-menu-toggle:hover { border-color: var(--primary); }
.mobile-menu-toggle:active { transform: scale(0.98); }

/* Mobile Menu (full-screen overlay, slide-in) */
.mobile-menu { position: fixed; inset: 0; background: #FFF; transform: translateX(100%); transition: transform .3s ease; z-index: 1100; display: flex; flex-direction: column; align-items: stretch; padding: var(--space-16); gap: var(--space-16); box-shadow: var(--shadow-md); }
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-close { align-self: flex-end; width: 40px; height: 40px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff; box-shadow: var(--shadow-xs); display: inline-flex; align-items: center; justify-content: center; }
.mobile-nav { display: flex; flex-direction: column; gap: 6px; }
.mobile-nav a { display: flex; align-items: center; min-height: 44px; padding: 10px 12px; border-radius: var(--radius-sm); border: 1px solid transparent; }
.mobile-nav a:hover { background: var(--accent); border-color: var(--border); }
.mobile-nav a[aria-current="page"] { color: var(--primary); font-weight: bold; }

/* -------- Hero Section -------- */
.hero { padding: var(--space-40) 0; background: var(--accent); border-bottom: 1px solid var(--border); }
.hero .container { gap: var(--space-24); }
.hero .content-wrapper { gap: var(--space-16); }

/* Breadcrumbs */
nav[aria-label="Brotkrumen"] ol { list-style: none; padding: 0; margin: 0; display: flex; align-items: center; gap: var(--space-8); color: var(--muted); font-size: 14px; }
nav[aria-label="Brotkrumen"] ol li { display: flex; align-items: center; }
nav[aria-label="Brotkrumen"] ol li + li::before { content: "/"; color: var(--muted); margin: 0 6px; }
nav[aria-label="Brotkrumen"] a { color: var(--muted); }
nav[aria-label="Brotkrumen"] a:hover { color: var(--primary); }

/* Search Bar (informational prompt) */
.search-bar { display: flex; align-items: center; gap: var(--space-12); background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 12px 14px; box-shadow: var(--shadow-xs); color: var(--muted); }
.search-bar img { width: 18px; height: 18px; opacity: .7; }

/* CTA Buttons */
.cta-group { display: flex; flex-wrap: wrap; gap: var(--space-12); align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 16px; border-radius: var(--radius-md); border: 1px solid transparent; transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .06s ease; text-align: center; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: #692816; }
.btn-secondary { background: #fff; color: var(--primary); border-color: var(--primary); }
.btn-secondary:hover { background: var(--accent); }

/* Badges & Tags */
.badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px; background: #F2F2F2; color: #333; font-size: 12px; border: 1px solid var(--border); }
.text-section p span, .text-section li span { display: inline-flex; align-items: center; padding: 2px 8px; margin-right: 6px; margin-top: 6px; border-radius: 999px; background: var(--accent); color: var(--secondary); font-size: 12px; border: 1px solid var(--border); }

/* Lists spacing */
.text-section ul { margin: 0; display: flex; flex-direction: column; gap: var(--space-12); }
.text-section li { padding-left: 0; }

/* Text & Icon rows in contact */
.text-image-section { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.text-image-section img { width: 40px; height: 40px; }

/* Testimonials (dark text on light background) */
.testimonial-card { display: flex; align-items: center; gap: 20px; padding: 20px; background: #fff; color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); flex-wrap: wrap; margin-bottom: 20px; }

/* Generic Cards (for future recipe previews) */
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; flex: 1 1 260px; min-width: 240px; border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--space-16); background: #fff; box-shadow: var(--shadow-xs); display: flex; flex-direction: column; gap: var(--space-12); }
.card:hover { box-shadow: var(--shadow-sm); }

/* Feature item vertical stack */
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* Section defaults & spacing (plus required .section class) */
section { padding: var(--space-40) 0; border-bottom: 1px solid var(--border); }
.section { margin-bottom: 60px; padding: 40px 20px; }

/* Footer */
footer { background: #FAFAFA; border-top: 1px solid var(--border); }
footer .container { padding-top: var(--space-24); padding-bottom: var(--space-24); }
.footer-nav { display: flex; flex-wrap: wrap; gap: var(--space-12); }
.footer-nav a { padding: 4px 8px; border-radius: var(--radius-sm); color: var(--muted); }
.footer-nav a:hover { background: var(--accent); color: var(--primary); }
address { font-style: normal; color: var(--muted); }
.brand-badge { color: var(--secondary); font-size: 14px; opacity: .9; }

/* Footer logo if present */
footer .logo img { height: 28px; }

/* Accessibility & Focus */
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
a:hover { color: var(--primary); }

/* Utility alignment for common content wrappers */
.content-wrapper > * { max-width: 100%; }
.content-wrapper > * + * { /* ensure at least 20px between stack items */ }

/* -------- Mobile Navigation Visibility Rules -------- */
@media (min-width: 992px) {
  .main-nav { display: flex; }
  .mobile-menu-toggle { display: none; }
}

/* -------- Cookie Consent Banner -------- */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; background: #FFFFFF; border-top: 1px solid var(--border); box-shadow: 0 -6px 20px rgba(0,0,0,0.06); z-index: 1150; transform: translateY(0); transition: transform .3s ease; display: flex; flex-direction: column; gap: var(--space-16); padding: var(--space-16); }
.cookie-banner.hidden { transform: translateY(100%); }
.cookie-banner .cookie-row { display: flex; flex-direction: column; gap: var(--space-16); align-items: flex-start; }
.cookie-buttons { display: flex; flex-wrap: wrap; gap: var(--space-12); }
.cookie-btn { padding: 10px 14px; border-radius: var(--radius-md); border: 1px solid transparent; transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.cookie-btn.accept { background: var(--secondary); color: #fff; }
.cookie-btn.accept:hover { background: #254a36; }
.cookie-btn.reject { background: #fff; color: var(--secondary); border-color: var(--secondary); }
.cookie-btn.reject:hover { background: var(--accent); }
.cookie-btn.settings { background: #fff; color: var(--text); border: 1px solid var(--border); }
.cookie-btn.settings:hover { background: #F9F9F9; }

/* Cookie Settings Modal */
.cookie-modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.4); opacity: 0; pointer-events: none; transition: opacity .3s ease; z-index: 1190; }
.cookie-modal-backdrop.show { opacity: 1; pointer-events: auto; }
.cookie-modal { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; padding: var(--space-16); z-index: 1200; pointer-events: none; }
.cookie-modal .modal { background: #fff; width: 100%; max-width: 640px; border-radius: var(--radius-lg); border: 1px solid var(--border); box-shadow: var(--shadow-md); padding: var(--space-24); display: flex; flex-direction: column; gap: var(--space-16); transform: translateY(20px); opacity: 0; transition: transform .3s ease, opacity .3s ease; pointer-events: auto; }
.cookie-modal.show .modal { transform: translateY(0); opacity: 1; }
.cookie-modal .modal-header { display: flex; align-items: center; justify-content: space-between; gap: var(--space-12); }
.cookie-modal .modal-body { display: flex; flex-direction: column; gap: var(--space-12); }
.cookie-category { display: flex; align-items: center; justify-content: space-between; gap: var(--space-12); border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--space-12); }
.cookie-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 28px; border-radius: 999px; background: #EAEAEA; position: relative; transition: background-color .2s ease; }
.cookie-toggle::after { content: ""; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-xs); transform: translateX(-7px); transition: transform .2s ease; border: 1px solid var(--border); }
.cookie-toggle.on { background: var(--secondary); }
.cookie-toggle.on::after { transform: translateX(7px); }

/* -------- Forms & Links (generic) -------- */
address a, .text-section a, .footer-nav a { text-decoration: none; }
.text-section a:hover { text-decoration: underline; color: var(--primary); }

/* -------- Images inside text sections -------- */
.text-section img { display: inline-block; width: 18px; height: 18px; margin-right: 6px; vertical-align: -3px; opacity: .8; }

/* -------- Alignment Helpers -------- */
.align-center { display: flex; align-items: center; justify-content: center; }

/* -------- Responsive Rules -------- */
@media (min-width: 768px) {
  h1 { font-size: 40px; }
  h2 { font-size: 28px; }
  h3 { font-size: 20px; }
  .subheadline { font-size: 18px; }
  .logo img { height: 36px; }
  .hero { padding: 60px 0; }
  .text-image-section { flex-direction: row; align-items: center; }
  .container { gap: var(--space-32); }
}

@media (min-width: 1200px) {
  h1 { font-size: 48px; }
}

/* -------- Mandatory Flex Spacing Patterns (as provided) -------- */
/* Already integrated above, but declared explicitly to match requirements */
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; }
.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; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }
.section { margin-bottom: 60px; padding: 40px 20px; }

/* -------- Misc micro-interactions -------- */
.btn, .mobile-menu-toggle, .mobile-menu-close, .cookie-btn { will-change: transform; }

/* -------- Print (minimal) -------- */
@media print {
  header, .mobile-menu, .cookie-banner, .cookie-modal-backdrop, .cookie-modal { display: none !important; }
  a { text-decoration: underline; }
}
