/* ===============================
   KraftKüche style.css
   Design: monochrome_sophisticated (black/white/gray, dramatic contrast, elegant typography)
   Brand fonts applied; brand colors used as subtle focus/interactive accents
   Mobile-first, flexbox-only layouts
   =============================== */

/* -------------------------------
   0) RESET / NORMALIZE
   ------------------------------- */
* { box-sizing: border-box; }
*::before, *::after { box-sizing: inherit; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Verdana, Geneva, Tahoma, sans-serif; color: #0E0E0E; background: #FFFFFF; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: #0E0E0E; text-decoration: none; }
ul, ol { margin: 0; padding-left: 1.2rem; }
button, input, select, textarea { font: inherit; color: inherit; }
button { border: none; background: none; padding: 0; cursor: pointer; }
:focus { outline: none; }

/* -------------------------------
   1) THEME TOKENS
   ------------------------------- */
:root {
  /* Monochrome palette */
  --ink: #0E0E0E;          /* primary text */
  --ink-2: #222222;        /* strong headings */
  --muted: #6B6B6B;        /* secondary text */
  --bg: #FFFFFF;           /* page bg */
  --elev: #F7F7F7;         /* elevated panels */
  --border: #E6E6E6;       /* borders */
  --border-2: #CFCFCF;     /* stronger border */

  /* Brand accents (subtle) */
  --brand-primary: #1E4D3C;  /* used for focus rings and small accents */
  --brand-secondary: #E07A29;/* hover/active minor accents */
  --brand-accent: #F6FBF8;

  /* Effects */
  --radius-6: 6px;
  --radius-8: 8px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 6px 18px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 26px rgba(0,0,0,0.12);

  /* Spacing scale */
  --s-8: 8px;
  --s-12: 12px;
  --s-16: 16px;
  --s-20: 20px;
  --s-24: 24px;
  --s-32: 32px;
  --s-40: 40px;
  --s-48: 48px;
  --s-60: 60px;
}

/* -------------------------------
   2) TYPOGRAPHY
   ------------------------------- */
h1, h2, h3, h4, h5 { font-family: "Trebuchet MS", Verdana, Geneva, Tahoma, sans-serif; color: var(--ink-2); margin: 0 0 var(--s-12); line-height: 1.2; letter-spacing: 0.2px; }
h1 { font-size: 32px; }
h2 { font-size: 24px; }
h3 { font-size: 18px; }
h4 { font-size: 16px; }
p { margin: 0 0 var(--s-16); color: var(--ink); }
small, .muted { color: var(--muted); font-size: 14px; }
strong { color: var(--ink-2); }

/* Link interactions */
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, .btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--brand-primary); outline-offset: 2px; border-radius: 4px; }

/* -------------------------------
   3) GLOBAL LAYOUT (FLEXBOX ONLY)
   ------------------------------- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--s-20); display: flex; flex-direction: column; gap: var(--s-20); }
.content-wrapper { display: flex; flex-direction: column; gap: var(--s-20); }
main { display: flex; flex-direction: column; gap: var(--s-32); }
section { display: flex; flex-direction: column; }

/* Mandatory spacing classes */
.section { margin-bottom: 60px; padding: 40px 20px; }
.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; }

/* Prevent overlapping and ensure spacing */
section + section { margin-top: var(--s-32); }

/* -------------------------------
   4) HEADER / NAVIGATION
   ------------------------------- */
header { position: relative; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--border); }
.main-nav { display: flex; align-items: center; justify-content: space-between; gap: var(--s-16); padding: var(--s-12) var(--s-20); }
.main-nav > a img { width: 120px; height: auto; }
.main-nav ul { list-style: none; padding: 0; margin: 0; display: none; align-items: center; gap: var(--s-16); }
.main-nav ul li a { padding: 8px 10px; border-radius: 4px; transition: color .2s ease, background-color .2s ease; }
.main-nav ul li a:hover { background: var(--elev); }
.cta-buttons { display: none; align-items: center; gap: var(--s-12); }

/* Mobile burger */
.mobile-menu-toggle { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 0 var(--s-20) var(--s-12); border: 1px solid var(--border-2); border-radius: 50%; background: var(--bg); color: var(--ink); box-shadow: var(--shadow-sm); }
.mobile-menu-toggle:hover { background: var(--elev); }

/* Mobile menu overlay */
.mobile-menu { position: fixed; inset: 0; background: #FFFFFF; transform: translateX(-100%); transition: transform .35s ease; display: flex; flex-direction: column; padding: var(--s-20); gap: var(--s-20); box-shadow: var(--shadow-lg); z-index: 999; }
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-close { align-self: flex-end; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border-2); border-radius: 50%; background: var(--bg); color: var(--ink); }
.mobile-nav { display: flex; flex-direction: column; gap: var(--s-12); }
.mobile-nav a { padding: 12px 8px; border-bottom: 1px solid var(--border); font-size: 18px; }
.mobile-nav a:hover { background: var(--elev); }

/* -------------------------------
   5) BUTTONS
   ------------------------------- */
.btn-primary, a.btn-primary { display: inline-flex; align-items: center; justify-content: center; padding: 12px 18px; background: #0F0F0F; color: #FFFFFF; border-radius: var(--radius-8); border: 1px solid #0F0F0F; transition: transform .1s ease, background .25s ease, color .25s ease; text-decoration: none; }
.btn-primary:hover { background: #1A1A1A; transform: translateY(-1px); }
.btn-secondary, a.btn-secondary { display: inline-flex; align-items: center; justify-content: center; padding: 12px 18px; background: transparent; color: #0F0F0F; border: 1px solid var(--ink); border-radius: var(--radius-8); transition: background .25s ease, color .25s ease, transform .1s ease; }
.btn-secondary:hover { background: var(--elev); transform: translateY(-1px); }

/* Inline CTA rows */
.cta-row, .cta-buttons { display: flex; flex-wrap: wrap; gap: var(--s-12); }

/* -------------------------------
   6) HERO SECTIONS
   ------------------------------- */
.hero { background: #F2F2F2; border-bottom: 1px solid var(--border); }
.hero .content-wrapper { padding: var(--s-32) 0; }
.hero h1 { font-size: 32px; letter-spacing: 0.4px; }
.hero h2 { font-size: 18px; color: var(--muted); }

/* Trust badges */
.trust-badges { display: flex; align-items: center; gap: var(--s-12); flex-wrap: wrap; color: var(--muted); }
.trust-badges img { width: 20px; height: 20px; }

/* Benefits list */
.benefits-list { display: flex; flex-direction: column; gap: 8px; padding-left: 1.2rem; color: var(--ink); }

/* -------------------------------
   7) GENERIC CARDS & PANELS
   ------------------------------- */
.card, .testimonial-card, .recipe-card { background: #FFFFFF; border: 1px solid var(--border); border-radius: var(--radius-8); box-shadow: var(--shadow-sm); }
.testimonial-card { background: #FAFAFA; border-left: 4px solid #111111; color: #0E0E0E; }
.recipe-card, .testimonial-card { padding: var(--s-20); }

/* -------------------------------
   8) FEATURE / GRID BLOCKS (FLEX ONLY)
   ------------------------------- */
.feature-grid, .features-grid, .recipe-preview, .plan-cards, .recipe-cards-grid, .filters-row, .secure-payment-icons { display: flex; flex-wrap: wrap; gap: var(--s-20); }
.feature-grid > div, .features-grid > div, .recipe-preview > div, .plan-cards > div { flex: 1 1 280px; background: #FFFFFF; border: 1px solid var(--border); border-radius: var(--radius-8); padding: var(--s-20); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: var(--s-12); }
.feature-grid img, .features-grid img { width: 28px; height: 28px; }

/* Recipe preview specifics */
.recipe-preview h3 { margin-bottom: 6px; }
.recipe-preview ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; color: var(--muted); }
.recipe-preview li { display: flex; align-items: center; gap: 8px; }
.recipe-preview li img { width: 16px; height: 16px; }

/* Recipe cards grid */
.recipe-cards-grid { justify-content: space-between; }
.recipe-card h3 { margin-bottom: 8px; }
.recipe-card ul { list-style: none; padding: 0; margin: 0 0 8px; display: flex; gap: 10px; color: var(--muted); }
.recipe-card p { margin-bottom: 12px; }
.recipe-card button { padding: 10px 12px; border: 1px solid var(--ink); border-radius: var(--radius-6); background: transparent; transition: background .25s ease; margin-right: 8px; }
.recipe-card button:hover { background: var(--elev); }

/* Plan cards */
.plan-cards > div { align-items: flex-start; }
.plan-cards h3 { display: flex; align-items: center; gap: 8px; }
.plan-cards .highlight, .badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--border-2); background: #FFFFFF; color: var(--ink); font-size: 12px; text-transform: uppercase; letter-spacing: 0.4px; }
.badge-popular { border-color: var(--ink); }

.plan-benefits { display: flex; flex-direction: column; gap: 8px; padding-left: 0; list-style: none; }
.plan-benefits li { display: flex; align-items: center; gap: 10px; }
.plan-benefits img { width: 18px; height: 18px; }

/* -------------------------------
   9) LISTS, TABLES, CONTENT STYLES
   ------------------------------- */
ol { display: flex; flex-direction: column; gap: 10px; }
.table-wrap { display: flex; flex-direction: column; }
.table-wrap table { width: 100%; border-collapse: collapse; }
.feature-comparison-table table,
.cookie-list table { width: 100%; border-collapse: collapse; border: 1px solid var(--border); }
.feature-comparison-table th, .feature-comparison-table td,
.cookie-list th, .cookie-list td { padding: 12px 10px; border-bottom: 1px solid var(--border); text-align: left; }
.feature-comparison-table thead th,
.cookie-list thead th { background: #F4F4F4; font-weight: bold; }
.feature-comparison-table tbody tr:nth-child(odd),
.cookie-list tbody tr:nth-child(odd) { background: #FCFCFC; }

/* -------------------------------
   10) SEARCH / FILTERS / FORMS
   ------------------------------- */
.search-bar { display: flex; align-items: center; gap: 8px; border: 1px solid var(--border-2); border-radius: var(--radius-8); padding: 6px 6px 6px 12px; background: #FFFFFF; box-shadow: var(--shadow-sm); }
.search-bar input[type="text"] { flex: 1 1 auto; border: none; padding: 10px 6px; min-width: 140px; }
.search-bar button { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-6); border: 1px solid var(--border); background: var(--elev); }
.search-bar button:hover { background: #EFEFEF; }

.filters { background: #FFFFFF; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.filters-row { align-items: center; }
.filter-chips, .cuisine-filters { display: flex; flex-wrap: wrap; gap: 10px; }
.filter-chips span, .cuisine-filters span { padding: 8px 12px; border: 1px solid var(--border-2); border-radius: 999px; background: #FFFFFF; color: var(--ink); transition: background .2s ease, border-color .2s ease; }
.filter-chips span:hover, .cuisine-filters span:hover { background: var(--elev); border-color: var(--ink); }
.meal-type-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.meal-type-tabs button { padding: 8px 12px; border: 1px solid var(--border-2); border-radius: 999px; background: #FFFFFF; }
.meal-type-tabs button:hover { border-color: var(--ink); }
.time-difficulty, .calorie-macros-slider, .sort-dropdown, .active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.time-difficulty input[type="range"], .calorie-macros-slider input[type="range"] { accent-color: var(--ink); }
select { padding: 8px 10px; border: 1px solid var(--border-2); border-radius: var(--radius-6); background: #FFFFFF; }
.active-filters button { padding: 8px 12px; border: 1px solid var(--ink); border-radius: var(--radius-6); background: transparent; }

/* Pagination */
.pagination-controls { display: flex; gap: 12px; align-items: center; }
.pagination-controls a, .pagination-controls span { padding: 8px 12px; border: 1px solid var(--border-2); border-radius: var(--radius-6); }
.pagination-controls span { background: #111111; color: #FFFFFF; border-color: #111111; }
.pagination-controls a:hover { background: var(--elev); }

/* -------------------------------
   11) SPECIAL SECTIONS
   ------------------------------- */
.how-it-works, .brand-story, .cooking-help, .reviews, .expert-testimonials, .success-stories, .community-press, .support-help, .support-contact, .contact-options, .about-story, .how-we-work, .careers-media, .tools-services, .topics-overview, .nutrition-principles, .onboarding-service, .algorithm-insights, .preview, .export-integration, .plans-section, .features-included, .faq, .support-contact, .pricing, .newsletter-contact, .cookie-categories, .cookie-consent, .cookie-list, .cookie-contact, .terms-general, .terms-usage, .terms-subscriptions, .terms-legal, .legal-contact, .processing-overview, .security-block, .subprocessors, .data-subject-requests, .data-transfers, .data-contact-block, .data-processing, .data-sharing, .cookies, .rights {
  background: #FFFFFF;
}

/* Evidence list and similar */
.evidence-list ul, .featured-guides-list ul { list-style: disc; padding-left: 1.2rem; display: flex; flex-direction: column; gap: 6px; }
.beginner-to-advanced-paths { display: flex; flex-direction: column; gap: 6px; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius-8); background: var(--elev); }

.metrics-text p { font-weight: bold; }
.press-snippets em { color: var(--muted); }

/* Contact options */
.contact-methods { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.contact-methods img { width: 18px; height: 18px; }
.map-placeholder { display: flex; align-items: center; justify-content: center; min-height: 160px; border: 1px dashed var(--border-2); border-radius: var(--radius-8); background: var(--elev); color: var(--muted); }

/* Accordions (static demo) */
.accordion, .faq-mini-accordion { display: flex; flex-direction: column; gap: 12px; }
.accordion > div, .faq-mini-accordion > div { padding: 14px; border: 1px solid var(--border); border-radius: var(--radius-8); background: #FFFFFF; box-shadow: var(--shadow-sm); }
.accordion h3, .faq-mini-accordion h3 { margin-bottom: 6px; }
.callback-note { padding: 12px; border-left: 3px solid #111; background: #FAFAFA; border-radius: var(--radius-6); }

/* -------------------------------
   12) TESTIMONIALS & RATINGS (contrast-safe)
   ------------------------------- */
.testimonials .testimonial-card, .reviews .testimonial-card, .expert-testimonials .testimonial-card, .success-stories .testimonial-card, .community-press .testimonial-card { background: #FAFAFA; color: #111111; border-color: var(--border); }
.testimonial-card blockquote { margin: 0; font-style: italic; }
.testimonial-card cite { color: var(--muted); }
.star-rating-summary { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: bold; }
.star-rating-summary img { width: 18px; height: 18px; }

/* -------------------------------
   13) FOOTER
   ------------------------------- */
footer { background: #0F0F0F; color: #EDEDED; padding: var(--s-24) 0; border-top: 1px solid #1C1C1C; }
footer .content-wrapper { gap: var(--s-16); }
.footer-nav, .footer-legal, .footer-contact, .social-links { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
footer a { color: #FFFFFF; opacity: 0.9; }
footer a:hover { opacity: 1; text-decoration: underline; }
.footer-contact img { filter: invert(1); }
.social-links img { width: 22px; height: 22px; filter: invert(1); opacity: 0.9; }
.social-links img:hover { opacity: 1; }

/* -------------------------------
   14) UTILITIES
   ------------------------------- */
.highlight, .badge { font-weight: 600; }
.muted { color: var(--muted); }

/* -------------------------------
   15) MOBILE MENU BREAKPOINTS / DESKTOP NAV
   ------------------------------- */
@media (min-width: 768px) {
  .hero h1 { font-size: 40px; }
  .hero h2 { font-size: 20px; }
}
@media (min-width: 960px) {
  .main-nav ul { display: flex; }
  .cta-buttons { display: flex; }
  .mobile-menu-toggle { display: none; }
}

/* -------------------------------
   16) RESPONSIVE ALIGNMENT RULES
   ------------------------------- */
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; }
}

/* Ensure all primary flex containers align well */
.content-grid, .feature-grid, .features-grid, .recipe-preview, .plan-cards, .recipe-cards-grid { align-items: stretch; }
.text-image-section { align-items: center; }

/* -------------------------------
   17) MOBILE MENU ANIMATIONS (Micro-interactions)
   ------------------------------- */
.mobile-menu { will-change: transform; }
.mobile-menu a { transition: background .2s ease; }

/* -------------------------------
   18) COOKIE CONSENT (Banner + Modal)
   ------------------------------- */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: var(--s-12); background: #FFFFFF; color: #0E0E0E; border-top: 1px solid var(--border); box-shadow: 0 -8px 24px rgba(0,0,0,0.08); padding: var(--s-16) var(--s-20); transform: translateY(100%); transition: transform .35s ease; z-index: 1000; }
.cookie-banner.show { transform: translateY(0); }
.cookie-banner .cookie-text { display: flex; flex-direction: column; gap: 6px; }
.cookie-banner .cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-actions .btn-accept { padding: 10px 14px; background: #0F0F0F; color: #FFFFFF; border: 1px solid #0F0F0F; border-radius: var(--radius-6); }
.cookie-actions .btn-reject { padding: 10px 14px; background: #FFFFFF; color: #0F0F0F; border: 1px solid var(--ink); border-radius: var(--radius-6); }
.cookie-actions .btn-settings { padding: 10px 14px; background: #FFFFFF; color: #0F0F0F; border: 1px dashed var(--border-2); border-radius: var(--radius-6); }
.cookie-actions .btn-accept:hover { background: #1A1A1A; }
.cookie-actions .btn-reject:hover, .cookie-actions .btn-settings:hover { background: var(--elev); }

.cookie-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.5); display: none; align-items: center; justify-content: center; padding: var(--s-20); z-index: 1001; }
.cookie-modal.open { display: flex; }
.cookie-modal .cookie-modal-content { width: 100%; max-width: 720px; background: #FFFFFF; color: #0E0E0E; border-radius: var(--radius-8); border: 1px solid var(--border); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: var(--s-16); padding: var(--s-20); }
.cookie-modal .cookie-modal-header { display: flex; align-items: center; justify-content: space-between; }
.cookie-modal .cookie-categories { display: flex; flex-direction: column; gap: 10px; }
.cookie-modal .cookie-category { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px; border: 1px solid var(--border); border-radius: var(--radius-6); background: #FAFAFA; }
.cookie-modal .cookie-modal-actions { display: flex; justify-content: flex-end; gap: 10px; }

/* -------------------------------
   19) ACCESSIBILITY & FOCUS ACCENTS (brand subtlety)
   ------------------------------- */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--brand-primary); }
.btn-primary:focus-visible { box-shadow: 0 0 0 3px rgba(30,77,60,0.25); }
.btn-secondary:focus-visible { box-shadow: 0 0 0 3px rgba(30,77,60,0.25); }

/* -------------------------------
   20) PAGE-SPECIFIC SMALL TWEAKS
   ------------------------------- */
.pricing .secure-payment-icons { align-items: center; }
.pricing .secure-payment-icons img { width: 40px; height: auto; filter: grayscale(1); opacity: .8; }
.pricing .secure-payment-icons img:hover { opacity: 1; }

.newsletter-contact a { align-self: flex-start; }

/* -------------------------------
   21) DESKTOP ENHANCEMENTS
   ------------------------------- */
@media (min-width: 1024px) {
  .container { gap: var(--s-24); }
  .content-wrapper { gap: var(--s-24); }
  .hero .content-wrapper { padding: var(--s-48) 0; }
  .feature-grid > div, .features-grid > div { flex: 1 1 calc(50% - 12px); }
  .recipe-preview > div { flex: 1 1 calc(33.333% - 13.34px); }
  .plan-cards > div { flex: 1 1 calc(50% - 10px); }
  .recipe-cards-grid > .recipe-card { flex: 1 1 calc(33.333% - 13.34px); }
}

/* -------------------------------
   22) PRINT (clean)
   ------------------------------- */
@media print {
  .mobile-menu-toggle, .mobile-menu, .cta-buttons, .btn-primary, .btn-secondary, .cookie-banner, .cookie-modal { display: none !important; }
  a { text-decoration: underline; }
  footer { color: #000; background: #fff; border-top: 1px solid #000; }
}

/* -------------------------------
   23) EDGE CASES & MISC
   ------------------------------- */
/* Ensure minimum spacing between all cards/sections */
section .card, section .testimonial-card, section .recipe-card { margin-bottom: 20px; }

/* Link micro-interaction underline animation */
a { background-image: linear-gradient(currentColor, currentColor); background-size: 0% 1px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .25s ease; }
a:hover { text-decoration: none; background-size: 100% 1px; }

/* Ensure icons in text align nicely */
li img, p img { display: inline-block; vertical-align: middle; margin-right: 6px; }

/* -------------------------------
   24) SAFETY: NO GRID/COLUMNS USED
   ------------------------------- */
/* All layout containers rely on flexbox with gap spacing per requirements */
