/* =========================
   Reset & Base
   ========================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Verdana, Geneva, Tahoma, sans-serif; color: #111; background: #fff; line-height: 1.6; }
img, svg { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: none; padding: 0; cursor: pointer; }
ul, ol { margin: 0 0 16px 24px; padding: 0; }
p { margin: 0 0 16px; }
small { color: #555; }
:focus { outline: none; box-shadow: 0 0 0 3px rgba(17,17,17,0.7); }

/* =========================
   Design Tokens (Monochrome + subtle brand references)
   ========================= */
:root {
  --bg: #ffffff;
  --bg-muted: #f6f6f6;
  --bg-contrast: #0f0f0f;
  --text: #111111;
  --text-muted: #555555;
  --border: #e4e4e4;
  --border-strong: #cfcfcf;
  --shadow: rgba(0,0,0,0.06);
  --shadow-strong: rgba(0,0,0,0.12);
  --brand-primary: #2F5D50; /* subtle use for focus/accents only */
  --brand-secondary: #8A5A1F; /* subtle separators if needed */
  --brand-accent: #FAF6ED; /* gentle tint for highlights if desired */
}

/* =========================
   Typography
   ========================= */
h1, h2, h3, h4, h5 { font-family: Georgia, 'Times New Roman', serif; color: var(--text); line-height: 1.2; margin: 0 0 16px; }
h1 { font-size: 32px; letter-spacing: -0.3px; }
h2 { font-size: 24px; letter-spacing: -0.2px; margin-top: 8px; }
h3 { font-size: 18px; letter-spacing: -0.1px; }
a { color: #111; text-decoration: none; border-bottom: 1px solid transparent; transition: color .2s ease, border-color .2s ease, background-color .2s ease; }
a:hover { color: #000; border-bottom-color: #000; }

/* =========================
   Layout Containers (Flex-only)
   ========================= */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; flex-direction: column; gap: 20px; }
.content-wrapper { display: flex; flex-direction: column; gap: 20px; }
section { margin-bottom: 60px; padding: 40px 0; background: var(--bg); }

/* Mandatory spacing class, kept as-is */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; background: #fff; border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 6px 16px var(--shadow); padding: 20px; transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-2px); box-shadow: 0 10px 20px var(--shadow-strong); }
.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: #fafafa; border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 4px 12px var(--shadow); color: var(--text); }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* =========================
   Header & Navigation
   ========================= */
.site-header { position: sticky; top: 0; z-index: 1000; background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: 0 2px 12px var(--shadow); }
.site-header .content-wrapper { flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; }
.logo { display: flex; align-items: center; }
.logo img { height: 36px; width: auto; }

.main-nav { display: none; align-items: center; gap: 18px; flex-wrap: wrap; }
.main-nav a { padding: 8px 6px; border-bottom: 1px solid transparent; font-size: 14px; color: var(--text); }
.main-nav a:hover { border-bottom-color: #111; }

.cta-nav { display: none; align-items: center; gap: 10px; }

.mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--border-strong); border-radius: 8px; background: #fff; color: #111; transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.mobile-menu-toggle:hover { background: #111; color: #fff; border-color: #111; }

/* Mobile menu overlay/panel */
.mobile-menu { position: fixed; inset: 0; display: flex; flex-direction: column; background: #0f0f0f; color: #fff; transform: translateX(100%); transition: transform .35s ease; z-index: 1100; padding: 20px; gap: 20px; }
.mobile-menu.open, .mobile-menu.is-open, .mobile-menu.active { transform: translateX(0); }
.mobile-menu-close { align-self: flex-end; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; color: #fff; border: 1px solid rgba(255,255,255,0.25); border-radius: 8px; background: transparent; }
.mobile-nav { display: flex; flex-direction: column; gap: 14px; }
.mobile-nav a { color: #fff; font-size: 18px; padding: 10px 6px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.mobile-nav a:hover { background: rgba(255,255,255,0.06); }

/* =========================
   Hero & Bands
   ========================= */
.hero { background: var(--bg-muted); border-bottom: 1px solid var(--border); }
.hero .content-wrapper { padding: 20px 0; }
.hero h1 { font-size: 32px; margin-bottom: 8px; }
.hero p { max-width: 70ch; color: var(--text); }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 44px; }
.tagline-band { display: flex; align-items: center; justify-content: center; padding: 12px 16px; background: #111; color: #fff; border-radius: 8px; box-shadow: 0 6px 16px var(--shadow); }

.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 8px; }

/* =========================
   Buttons
   ========================= */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 16px; border-radius: 8px; border: 1px solid #111; color: #111; background: transparent; transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .15s ease; text-decoration: none; font-weight: 600; }
.btn:hover { background: #111; color: #fff; transform: translateY(-1px); }
.btn.primary { background: #111; color: #fff; border-color: #111; }
.btn.primary:hover { background: #000; border-color: #000; }
.btn.secondary { background: #fff; color: #111; border-color: #111; }
.btn.secondary:hover { background: #111; color: #fff; }
.btn:active { transform: translateY(0); }

/* =========================
   Text Sections & Lists
   ========================= */
.text-section { display: flex; flex-direction: column; gap: 12px; }
.text-section ul, .text-section ol { margin: 0 0 0 18px; display: flex; flex-direction: column; gap: 8px; }
.text-section p:last-child { margin-bottom: 0; }

/* =========================
   Recipe cards grid
   ========================= */
.recipe-cards-grid { display: flex; flex-wrap: wrap; gap: 20px; }
.recipe-cards-grid article { flex: 1 1 100%; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 18px; box-shadow: 0 6px 16px var(--shadow); display: flex; flex-direction: column; gap: 8px; transition: transform .2s ease, box-shadow .2s ease; }
.recipe-cards-grid article:hover { transform: translateY(-2px); box-shadow: 0 10px 20px var(--shadow-strong); }
.recipe-cards-grid h3 { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0 0 4px; }
.recipe-cards-grid h3 span { display: inline-flex; align-items: center; padding: 3px 8px; font-size: 12px; line-height: 1; border-radius: 999px; background: #111; color: #fff; letter-spacing: 0.3px; }

/* =========================
   Breadcrumbs (inside hero)
   ========================= */
[aria-label="Brotkrumen"] { display: flex; align-items: center; gap: 6px; color: var(--text-muted); font-size: 14px; }
[aria-label="Brotkrumen"] a { color: var(--text-muted); border-bottom-color: transparent; }
[aria-label="Brotkrumen"] a:hover { color: #111; border-bottom-color: #111; }

/* =========================
   Testimonials (light for readability)
   ========================= */
.testimonial-card p { margin: 0; }
.testimonial-card p + p { color: #222; font-weight: 600; }

/* =========================
   Footer
   ========================= */
.site-footer { background: #0f0f0f; color: #e9e9e9; border-top: 1px solid #0a0a0a; }
.site-footer section { margin-bottom: 0; padding: 32px 0; background: transparent; }
.site-footer .content-wrapper { flex-direction: column; gap: 20px; }
.footer-brand { display: flex; flex-direction: column; gap: 10px; }
.footer-brand img { height: 30px; filter: invert(100%); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 14px; }
.footer-nav a { color: #e9e9e9; border-bottom-color: transparent; }
.footer-nav a:hover { border-bottom-color: #e9e9e9; }
.footer-contact { display: flex; flex-direction: column; gap: 8px; color: #cfcfcf; }
.footer-contact p { display: flex; align-items: center; gap: 10px; margin: 0; }
.footer-contact img { width: 16px; height: 16px; filter: invert(100%); }
.footer-trust { color: #bdbdbd; }

/* =========================
   Mobile-first responsive column => row at wider screens
   ========================= */
@media (min-width: 576px) {
  .recipe-cards-grid article { flex: 1 1 calc(50% - 10px); }
}
@media (min-width: 768px) {
  h1 { font-size: 40px; }
  h2 { font-size: 28px; }
  h3 { font-size: 20px; }
  .text-image-section { flex-direction: row; }
  .main-nav { display: flex; }
  .cta-nav { display: inline-flex; }
  .mobile-menu-toggle { display: none; }
  .hero .content-wrapper { padding: 24px 0; }
}
@media (min-width: 992px) {
  .recipe-cards-grid article { flex: 1 1 calc(33.333% - 14px); }
  .site-footer .content-wrapper { flex-direction: row; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; }
  .footer-brand { flex: 1 1 240px; }
  .footer-nav { flex: 1 1 320px; }
  .footer-contact { flex: 1 1 320px; }
}

/* =========================
   Utility & Micro-interactions
   ========================= */
hr { border: 0; border-top: 1px solid var(--border); margin: 24px 0; }
.tagline-band strong { font-weight: 700; }

/* =========================
   Cookie Consent Banner
   ========================= */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1200; background: #ffffff; color: #111; border-top: 1px solid var(--border); box-shadow: 0 -8px 24px var(--shadow); display: flex; flex-direction: column; gap: 12px; padding: 14px 16px; }
.cookie-banner .cookie-content { display: flex; flex-direction: column; gap: 10px; }
.cookie-banner .cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-banner .btn { padding: 8px 14px; border-radius: 6px; }
.cookie-banner .btn.accept { background: #111; color: #fff; border-color: #111; }
.cookie-banner .btn.reject { background: #fff; color: #111; border-color: #111; }
.cookie-banner .btn.settings { background: #f7f7f7; color: #111; border-color: var(--border-strong); }

/* Cookie Preferences Modal */
.cookie-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 1300; opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.cookie-backdrop.open, .cookie-backdrop.active, .cookie-backdrop.is-open { opacity: 1; pointer-events: auto; }
.cookie-modal { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(0.98); background: #fff; color: #111; width: 92%; max-width: 640px; border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,0.2); z-index: 1310; padding: 20px; display: flex; flex-direction: column; gap: 16px; opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease; }
.cookie-modal.open, .cookie-modal.active, .cookie-modal.is-open { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }
.cookie-modal .cookie-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cookie-modal .cookie-body { display: flex; flex-direction: column; gap: 12px; }
.cookie-modal .cookie-categories { display: flex; flex-direction: column; gap: 10px; }
.cookie-modal .cookie-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; background: #fafafa; }
.cookie-modal .cookie-footer { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

/* Toggle Switch */
.toggle { position: relative; display: inline-flex; align-items: center; gap: 10px; }
.toggle input { position: absolute; width: 1px; height: 1px; margin: -1px; clip: rect(0 0 0 0); overflow: hidden; }
.switch { width: 44px; height: 24px; border-radius: 999px; background: #dcdcdc; border: 1px solid #c9c9c9; position: relative; transition: background-color .2s ease, border-color .2s ease; display: inline-flex; align-items: center; padding: 0 2px; }
.switch::after { content: ""; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px var(--shadow-strong); transform: translateX(0); transition: transform .2s ease; }
.toggle input:checked + .switch { background: #111; border-color: #111; }
.toggle input:checked + .switch::after { transform: translateX(20px); }

/* =========================
   Badges & Status labels
   ========================= */
span[role="status"], .status, .badge { display: inline-flex; align-items: center; padding: 3px 8px; font-size: 12px; line-height: 1; border-radius: 999px; background: #111; color: #fff; }

/* =========================
   Icons in content
   ========================= */
.text-section img[alt^="Adresse"],
.text-section img[alt^="Telefon"],
.text-section img[alt^="E-Mail"],
.text-section img[alt^="Öffnungszeiten"] { width: 18px; height: 18px; }

/* =========================
   Additional responsive tweaks
   ========================= */
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; }
}

/* =========================
   Visual hierarchy helpers
   ========================= */
.lead { font-size: 18px; color: #222; }
.muted { color: var(--text-muted); }

/* =========================
   Ensure adequate spacing between blocks
   ========================= */
.container > * + * { margin-top: 0; }
.content-wrapper > * + * { margin-top: 0; }

/* =========================
   Tables (if any appear later)
   ========================= */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; border-bottom: 1px solid var(--border); padding: 10px; }

/* =========================
   Ensure no overlaps with z-index layers
   ========================= */
.site-header { z-index: 1000; }
.mobile-menu { z-index: 1100; }
.cookie-banner { z-index: 1200; }
.cookie-backdrop { z-index: 1300; }
.cookie-modal { z-index: 1310; }

/* =========================
   Subtle separators using monochrome tints
   ========================= */
.separator { height: 1px; background: var(--border); width: 100%; display: flex; }

/* =========================
   Forms (future-proofing)
   ========================= */
input[type="text"], input[type="email"], input[type="search"], textarea, select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border-strong); border-radius: 8px; background: #fff; color: #111; transition: border-color .2s ease, box-shadow .2s ease; }
input:focus, textarea:focus, select:focus { border-color: #111; box-shadow: 0 0 0 3px rgba(0,0,0,0.08); }

/* =========================
   Page-specific gentle enhancements
   ========================= */
.hero p strong { font-weight: 700; }
.hero p span { display: inline-flex; padding: 3px 8px; border-radius: 999px; background: #111; color: #fff; font-size: 12px; }

/* =========================
   Prevent any accidental overflow
   ========================= */
body { overflow-x: hidden; }
