/* =====================================================================
   Sternenpromenade Rezepte — Vibrant Energetic Theme (Flexbox-only)
   - Brand: primary #2E4A2E, secondary #8C3B2A, accent #F6F1E9
   - Fonts: Georgia (display), Verdana (body)
   - Mobile-first, high-energy, bold, dynamic
   - NO CSS Grid or Columns
   ===================================================================== */

/* ===========================
   RESET & NORMALIZE
   =========================== */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure { margin: 0; padding: 0; }
ul, ol { padding-left: 1.1rem; }
img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
button, input, select { font: inherit; color: inherit; background: transparent; border: none; }
button { cursor: pointer; }
:focus { outline: none; }
:focus-visible { outline: 3px solid #00E5FF; outline-offset: 2px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ===========================
   THEME VARIABLES
   =========================== */
:root {
  --color-primary: #2E4A2E; /* deep herb green */
  --color-secondary: #8C3B2A; /* warm spice */
  --color-accent: #F6F1E9; /* soft cream bg */
  --color-bg: #FFFDFC; /* near white */
  --color-text: #142015; /* dark greenish text */
  --color-muted: #5B6B5B;
  --color-border: #E6E0D7;

  /* Electric accents to boost energy */
  --electric-cyan: #00E5FF;
  --electric-pink: #FF3D7F;
  --electric-yellow: #FFD400;

  /* Shadows & Radii */
  --shadow-sm: 0 2px 10px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.10);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

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

/* ===========================
   BASE TYPOGRAPHY
   =========================== */
body {
  background: var(--color-accent);
  color: var(--color-text);
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3 { font-family: Georgia, 'Times New Roman', serif; color: #0f1a10; letter-spacing: 0.2px; }
h1 { font-size: 32px; line-height: 1.2; margin-bottom: var(--sp-16); }
h2 { font-size: 24px; line-height: 1.25; margin-bottom: var(--sp-16); }
h3 { font-size: 18px; line-height: 1.3; margin-bottom: var(--sp-12); }
p, li { font-size: 16px; }
small { font-size: 14px; color: var(--color-muted); }
strong { font-weight: 700; }
em { font-style: italic; }

/* Typography scale up on larger screens */
@media (min-width: 768px) {
  h1 { font-size: 40px; }
  h2 { font-size: 28px; }
  h3 { font-size: 20px; }
  p, li { font-size: 17px; }
}
@media (min-width: 1024px) {
  h1 { font-size: 48px; }
  h2 { font-size: 32px; }
  h3 { font-size: 22px; }
}

/* ===========================
   LAYOUT BASICS (FLEX-ONLY)
   =========================== */
/* Containers */
.container {
  display: flex; /* flex-only layout */
  flex-direction: column;
  gap: var(--sp-20);
  padding: 0 16px;
  max-width: 1200px;
  margin: 0 auto;
}
.content-wrapper {
  display: flex; /* flex-only layout */
  flex-direction: column;
  gap: var(--sp-20);
}

/* Global section spacing */
section { margin-bottom: var(--sp-60); }
.section { margin-bottom: 60px; padding: 40px 20px; } /* Mandatory pattern */

/* Generic text block container */
.text-section {
  display: flex; /* flex-only */
  flex-direction: column;
  gap: var(--sp-16);
}
.text-section ul { display: flex; flex-direction: column; gap: 10px; }
.text-section li { margin-left: 16px; }

/* Utility: content grids (flex) */
.content-grid { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; } /* Mandatory pattern */
.card-container { display: flex; flex-wrap: wrap; gap: 24px; } /* Mandatory pattern */
.card { margin-bottom: 20px; position: relative; } /* Mandatory pattern */
.text-image-section { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; } /* Mandatory pattern */
.testimonial-card { display: flex; align-items: center; gap: 20px; padding: 20px; } /* Mandatory pattern */
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; } /* Mandatory pattern */

/* ===========================
   HEADER & NAVIGATION
   =========================== */
header {
  background: var(--color-bg);
  position: relative;
  z-index: 1000;
  border-bottom: 4px solid var(--electric-yellow);
  box-shadow: var(--shadow-sm);
}
header .content-wrapper { flex-direction: row; align-items: center; justify-content: space-between; gap: var(--sp-16); }
.logo-link img { height: 42px; width: auto; }

.primary-nav { display: none; gap: var(--sp-16); align-items: center; }
.primary-nav a {
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--color-primary);
  font-weight: 700;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.primary-nav a:hover { background: var(--electric-cyan); color: #062026; transform: translateY(-1px); }
.primary-nav a[aria-current="page"] { background: var(--electric-pink); color: #fff; box-shadow: 0 0 0 2px #fff inset; }

.mobile-menu-toggle {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--color-primary);
  color: #fff;
  font-size: 22px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, background .2s;
}
.mobile-menu-toggle:hover { transform: rotate(4deg) scale(1.03); background: #264026; }

/* Show desktop nav */
@media (min-width: 992px) {
  .primary-nav { display: flex; }
  .mobile-menu-toggle { display: none; }
}

/* Breadcrumbs inside hero top bars */
.hero nav[aria-label="Brotkrumen"] { display: flex; flex-wrap: wrap; gap: 8px; color: var(--color-muted); }
.hero nav[aria-label="Brotkrumen"] a { color: var(--color-secondary); text-decoration: underline; }

/* ===========================
   HERO SECTION
   =========================== */
.hero {
  background: #ffffff;
  position: relative;
  border-radius: var(--radius-lg);
  margin: var(--sp-20) var(--sp-16) 0;
}
.hero .container { padding-top: var(--sp-24); padding-bottom: var(--sp-24); }
.hero .content-wrapper {
  background: linear-gradient(0deg, transparent 0, transparent 100%); /* fallback neutral */
  border-left: 8px solid var(--electric-pink);
  padding: var(--sp-20);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.subheadline { color: #314a31; max-width: 70ch; }

/* Trust badges */
.trust-badges { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.trust-badges span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; background: var(--color-accent); border: 1px solid var(--color-border); border-radius: 999px; font-size: 14px; color: var(--color-primary); box-shadow: var(--shadow-sm); }
.trust-badges img { width: 18px; height: 18px; }

/* CTA group */
.cta-group, .link-buttons { display: flex; flex-wrap: wrap; gap: var(--sp-12); align-items: center; }

/* ===========================
   BUTTONS
   =========================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 18px;
  border-radius: 12px;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  background: #fff;
  font-weight: 800;
  letter-spacing: .2px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); background: var(--electric-yellow); color: #241a00; border-color: #241a00; }

.btn-primary {
  background: var(--electric-pink);
  color: #fff;
  border-color: var(--electric-pink);
}
.btn-primary:hover {
  background: #ff1f6b;
  border-color: #ff1f6b;
  box-shadow: 0 10px 24px rgba(255,61,127,0.35);
}

/* Inline buttons in filters */
.text-section button {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 12px; border-radius: 999px; border: 2px solid var(--color-secondary);
  color: var(--color-secondary); background: #fff;
  font-weight: 700; transition: background .2s, color .2s, transform .2s;
}
.text-section button:hover { background: var(--electric-cyan); color: #062026; transform: translateY(-1px); }

/* ===========================
   FORMS / SEARCH / SELECT
   =========================== */
.search-bar { display: flex; flex-wrap: wrap; gap: var(--sp-12); align-items: center; }
.search-bar input[type="search"] {
  flex: 1 1 220px;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 12px;
  border: 2px solid var(--color-border);
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.search-bar input[type="search"]:focus { border-color: var(--electric-cyan); box-shadow: 0 0 0 4px rgba(0,229,255,0.15); }

select {
  padding: 10px 14px;
  border: 2px solid var(--color-border);
  border-radius: 10px;
  background: #fff;
}

/* ===========================
   LISTS, LINKS, TEXT
   =========================== */
.text-section a { color: var(--color-secondary); text-decoration: underline; font-weight: 700; }
.text-section a:hover { color: var(--electric-pink); text-decoration-thickness: 3px; }

/* ===========================
   TESTIMONIALS (high contrast requirement)
   =========================== */
.testimonial-card {
  background: #ffffff;
  border: 2px solid var(--color-border);
  border-left: 8px solid var(--electric-yellow);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  color: #0d0e0d; /* dark text on light bg for readability */
}
.testimonial-card p { margin: 0; }

/* ===========================
   MAP PLACEHOLDER
   =========================== */
.map-placeholder {
  display: flex; align-items: center; justify-content: center;
  height: 220px; border: 2px dashed var(--color-border);
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--color-muted);
}

/* ===========================
   FOOTER
   =========================== */
footer { background: var(--color-primary); color: #EFF7EF; padding: var(--sp-24) 0; margin-top: var(--sp-80); }
footer .content-wrapper { flex-direction: column; gap: var(--sp-20); }
.footer-brand { display: flex; flex-direction: column; gap: var(--sp-12); }
.footer-brand img { height: 36px; width: auto; filter: brightness(0) invert(1); }
.footer-primary, .footer-legal { display: flex; flex-wrap: wrap; gap: 12px; }
.footer-primary a, .footer-legal a { color: #F8FEF9; padding: 6px 10px; border-radius: 8px; transition: background .2s, transform .2s; }
.footer-primary a:hover, .footer-legal a:hover { background: rgba(255,255,255,0.12); transform: translateY(-1px); }
.footer-contact { display: flex; flex-direction: column; gap: 6px; }
.footer-contact a { color: #fff; text-decoration: underline; }

/* ===========================
   MOBILE MENU (overlay)
   =========================== */
.mobile-menu {
  position: fixed; inset: 0; z-index: 2000;
  display: flex; /* flex-only layout */
  flex-direction: column;
  background: rgba(14,20,15,0.65);
  transform: translateX(100%);
  transition: transform .35s ease;
}
.mobile-menu[aria-hidden="false"] { transform: translateX(0); }

.mobile-menu-close {
  align-self: flex-end; margin: 14px; width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #ffffff; color: #0e1410; border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.mobile-nav {
  display: flex; flex-direction: column; gap: 8px;
  background: #ffffff; border-top-left-radius: 20px; border-bottom-left-radius: 20px;
  margin-left: auto; width: min(86%, 360px); height: 100%; padding: 20px;
  box-shadow: var(--shadow-md);
}
.mobile-nav a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 12px; border-radius: 10px; border: 2px solid var(--color-border);
  color: var(--color-primary); font-weight: 800;
  transition: background .2s, color .2s, transform .2s, border-color .2s;
}
.mobile-nav a:hover { background: var(--electric-cyan); color: #062026; border-color: var(--electric-cyan); transform: translateX(-2px); }
.mobile-nav a[aria-current="page"] { background: var(--electric-pink); color: #fff; border-color: var(--electric-pink); }

/* Hide primary nav on mobile */
@media (max-width: 991px) { .primary-nav { display: none !important; } }

/* ===========================
   COOKIE CONSENT BANNER & MODAL
   =========================== */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 3000;
  display: flex; /* flex-only */
  flex-direction: column; gap: var(--sp-12);
  background: #ffffff;
  color: #101410;
  border-top: 6px solid var(--electric-yellow);
  box-shadow: 0 -10px 30px rgba(0,0,0,0.12);
  padding: 16px;
  transform: translateY(100%);
  transition: transform .35s ease;
}
.cookie-banner.is-visible { transform: translateY(0); }
.cookie-banner .cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-banner .cookie-accept { background: var(--electric-pink); color: #fff; border: 2px solid var(--electric-pink); border-radius: 12px; padding: 10px 14px; font-weight: 800; }
.cookie-banner .cookie-accept:hover { background: #ff1f6b; }
.cookie-banner .cookie-reject { background: #fff; color: #111; border: 2px solid #111; border-radius: 12px; padding: 10px 14px; font-weight: 800; }
.cookie-banner .cookie-settings { background: var(--electric-cyan); color: #062026; border: 2px solid var(--electric-cyan); border-radius: 12px; padding: 10px 14px; font-weight: 800; }

.cookie-modal {
  position: fixed; inset: 0; z-index: 3500;
  display: none; /* toggled to flex */
  align-items: center; justify-content: center;
  background: rgba(5,8,6,0.65);
}
.cookie-modal.is-open { display: flex; }
.cookie-modal .cookie-modal-content {
  display: flex; flex-direction: column; gap: 16px;
  background: #ffffff; color: #0f120f; width: min(92%, 720px);
  border-radius: 18px; padding: 20px; box-shadow: var(--shadow-md);
}
.cookie-modal .cookie-categories { display: flex; flex-direction: column; gap: 12px; }
.cookie-modal .cookie-category { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border: 2px solid var(--color-border); border-radius: 12px; }
.cookie-modal .cookie-category .always-on { font-size: 14px; color: var(--color-muted); }
.cookie-modal .cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

/* Simple toggle style (for checkboxes) */
.switch { position: relative; width: 48px; height: 28px; background: #ddd; border-radius: 999px; transition: background .2s; }
.switch:before { content: ""; position: absolute; left: 4px; top: 4px; width: 20px; height: 20px; background: #fff; border-radius: 50%; box-shadow: var(--shadow-sm); transition: transform .2s; }
input:checked + .switch { background: var(--electric-cyan); }
input:checked + .switch:before { transform: translateX(20px); }

/* ===========================
   CARDS (generic styles for potential use)
   =========================== */
.card {
  background: #fff;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: var(--sp-16);
}
.card:hover { box-shadow: var(--shadow-md); }

/* ===========================
   PAGE-SPECIFIC TWEAKS
   =========================== */
/* Category blocks (index: Kategorien entdecken) */
.content-wrapper > .text-section > div { background: #fff; border: 2px solid var(--color-border); border-radius: 14px; padding: 16px; box-shadow: var(--shadow-sm); }
.content-wrapper > .text-section > div:hover { border-color: var(--electric-cyan); box-shadow: var(--shadow-md); }

/* Active filters row */
.active-filters { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #fff; border: 2px dashed var(--color-border); border-radius: 12px; }

/* Pagination buttons */
.text-section > .text-section button { padding: 10px 14px; border-radius: 10px; }

/* Contact icons inside text */
.text-section img[alt^="Adresse"],
.text-section img[alt^="Telefon"],
.text-section img[alt^="E-Mail"],
.text-section img[alt^="Öffnungszeiten"],
.text-section img[alt^="Erfolg"],
.text-section img[alt^="Frisch"],
.text-section img[alt^="Schnell"],
.text-section img[alt^="Verlässlich"],
.text-section img[alt^="Auszeichnung"] { display: inline; vertical-align: middle; margin-right: 8px; }

/* ===========================
   LINKS - STATE ENHANCEMENTS
   =========================== */
a { transition: color .2s ease, background .2s ease; }
a:hover { color: var(--electric-pink); }

/* ===========================
   RESPONSIVE RULES
   =========================== */
/* Text-image sections stack on mobile, side-by-side on desktop */
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; }
}
@media (min-width: 769px) {
  .text-image-section { flex-direction: row; }
}

/* Wider layout on desktop for footer and header blocks */
@media (min-width: 992px) {
  footer .content-wrapper { flex-direction: row; align-items: flex-start; justify-content: space-between; }
  .hero { margin-left: 0; margin-right: 0; }
}

/* ===========================
   MANDATORY SPACING SAFEGUARDS
   =========================== */
/* Ensure at least 20px between siblings inside common wrappers */
.content-wrapper > * + * { margin-top: 0; }
.container > * + * { margin-top: 0; }
section + section { margin-top: var(--sp-60); }

/* ===========================
   MICRO-INTERACTIONS
   =========================== */
@keyframes pop-in { from { transform: translateY(6px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.hero .content-wrapper { animation: pop-in .4s ease both; }

/* ===========================
   ACCESSIBILITY COLOR CONTRAST ENFORCEMENT
   - Testimonials and review sections always use dark text on light bg
   =========================== */
section:has(.testimonial-card) { background: transparent; }
/* Fallback for browsers without :has support: already white cards with dark text */

/* ===========================
   TABLES (if appear later)
   =========================== */
table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-sm); }
th, td { padding: 12px; border-bottom: 1px solid var(--color-border); text-align: left; }
th { background: #faf7f0; font-family: Georgia, 'Times New Roman', serif; }

/* ===========================
   MISC
   =========================== */
hr { border: none; height: 2px; background: var(--color-border); margin: 20px 0; }
blockquote { border-left: 6px solid var(--electric-cyan); padding-left: 12px; color: #203020; }

/* Ensure no overlapping: adequate paddings and z-index already applied */
/* End of stylesheet */
