/* ===============================
   NeonVista Rezeptwerkstatt – style.css
   Vibrant Energetic theme using brand colors & fonts
   Mobile-first, flexbox-only layouts (no grid/columns)
   =============================== */

/* ========== CSS Reset & Base ========== */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; margin: 0; }
button { font: inherit; border: none; background: none; cursor: pointer; }
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--electric); outline-offset: 2px; }

/* ========== Theme Tokens ========== */
:root {
  --primary: #1F3B2D;       /* Deep forest green */
  --secondary: #C84E00;     /* Vivid orange */
  --accent: #F6F1E6;        /* Soft warm neutral */
  --ink: #13231B;           /* Darker text */
  --bg: #FFFFFF;            /* Base background */
  --muted: #62786D;         /* Muted text */
  --line: #E7DED0;          /* Subtle divider on light */
  --shadow: rgba(0,0,0,0.1);
  --shadow-strong: rgba(0,0,0,0.18);
  /* Vibrant highlights for energetic feel (complements brand) */
  --electric: #06D6A0;      /* electric teal for focus/hover glows */
  --heat: #FF6A1A;          /* brighter orange for hovers */
}

/* ========== Typography ========== */
body {
  font-family: Verdana, Geneva, Tahoma, sans-serif; /* Brand body */
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px; /* Mobile base */
}

h1, h2, h3 { font-family: Georgia, 'Times New Roman', serif; color: var(--primary); margin: 0 0 12px; line-height: 1.2; }
h1 { font-size: 32px; letter-spacing: 0.2px; }
h2 { font-size: 24px; margin-top: 8px; }
h3 { font-size: 18px; color: var(--primary); }

p { margin: 0 0 14px; }
small, .small { font-size: 14px; color: var(--muted); }
strong { font-weight: 700; }

/* Links */
a { color: var(--secondary); text-underline-offset: 3px; }
a:hover { color: var(--heat); }
a:active { color: var(--primary); }

/* ========== Layout: Flex-only ========== */
header, footer, section, nav, .container, .content-wrapper, .text-section { display: flex; }

/* Containers */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
  flex-direction: column;
  gap: 20px;
}

.content-wrapper {
  flex-direction: column;
  gap: 16px;
}

/* Global section spacing (plus required .section class below) */
section { width: 100%; padding: 24px 0; margin-bottom: 40px; }
section:last-of-type { margin-bottom: 0; }

/* Required spacing/align patterns */
.section { margin-bottom: 60px; padding: 40px 20px; display: flex; flex-direction: column; gap: 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; display: flex; flex-direction: column; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; box-shadow: 0 6px 18px var(--shadow); }
.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; }

/* Text blocks */
.text-section { flex-direction: column; gap: 10px; }
.text-section ul { display: flex; flex-wrap: wrap; gap: 10px 16px; }
.text-section li { position: relative; padding-left: 0; }

/* ========== Header ========== */
header { position: sticky; top: 0; z-index: 50; background: var(--bg); box-shadow: 0 2px 10px var(--shadow); }
header .container { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
.logo img { height: 36px; width: auto; }

.main-nav { display: none; gap: 14px; align-items: center; flex-wrap: wrap; }
.main-nav a { color: var(--primary); font-weight: 700; padding: 8px 10px; border-radius: 10px; transition: background-color .2s ease, color .2s ease, transform .15s ease; }
.main-nav a[aria-current="page"] { background: var(--accent); color: var(--primary); }
.main-nav a:hover { background: var(--secondary); color: #fff; transform: translateY(-1px); }

/* Mobile burger */
.mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 10px; background: var(--secondary); color: #fff; font-size: 20px; box-shadow: 0 6px 18px var(--shadow); transition: transform .15s ease, background-color .2s ease; }
.mobile-menu-toggle:hover { background: var(--heat); transform: translateY(-1px); }

/* Mobile Menu Overlay */
.mobile-menu { position: fixed; inset: 0; background: var(--primary); color: #fff; transform: translateX(100%); transition: transform .35s ease; z-index: 100; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-close { align-self: flex-end; width: 42px; height: 42px; border-radius: 10px; background: #ffffff1a; color: #fff; font-size: 18px; display: inline-flex; align-items: center; justify-content: center; }
.mobile-nav { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.mobile-nav a { background: #ffffff14; color: #fff; padding: 12px 14px; border-radius: 12px; font-weight: 700; }
.mobile-nav a[aria-current="page"] { background: #ffffff2b; }
.mobile-nav a:hover { background: var(--secondary); color: #fff; }

/* ========== Hero accents & energetic vibe ========== */
section[aria-label="Hero"] { background: var(--accent); }
section[aria-label="Hero"] .content-wrapper { border-left: 6px solid var(--secondary); padding-left: 16px; }

/* Call-to-action buttons */
.cta-group { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-group a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: 14px; background: var(--secondary); color: #fff; font-weight: 800; letter-spacing: .2px; box-shadow: 0 10px 24px var(--shadow); transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease; }
.cta-group a:hover { background: var(--heat); transform: translateY(-2px); box-shadow: 0 14px 28px var(--shadow-strong); }
.cta-group a:active { transform: translateY(0); }

/* Trust badges */
.trust-badges ul { display: flex; flex-wrap: wrap; gap: 10px; }
.trust-badges li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; background: #fff; border: 1px solid var(--line); border-radius: 999px; color: var(--primary); box-shadow: 0 4px 14px var(--shadow); font-weight: 700; }
.trust-badges img { width: 18px; height: 18px; }

/* Breadcrumbs */
nav[aria-label="Brotkrumen"] { display: flex; flex-wrap: wrap; gap: 6px; color: var(--muted); font-size: 14px; }
nav[aria-label="Brotkrumen"] span, nav[aria-label="Brotkrumen"] a { color: var(--muted); }

/* Pagination */
nav[aria-label="Seiten"] { display: flex; gap: 10px; flex-wrap: wrap; }
nav[aria-label="Seiten"] a { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 12px; background: #fff; border: 1px solid var(--line); border-radius: 10px; color: var(--primary); font-weight: 700; box-shadow: 0 6px 16px var(--shadow); transition: background-color .2s ease, color .2s ease, transform .15s ease; }
nav[aria-label="Seiten"] a:hover { background: var(--secondary); color: #fff; transform: translateY(-1px); }

/* ========== Testimonials (readability: dark text on light bg) ========== */
.testimonial-card { background: #fff; border: 1px solid var(--line); border-left: 6px solid var(--secondary); border-radius: 14px; color: var(--ink); box-shadow: 0 10px 24px var(--shadow); }
.testimonial-card p { margin: 0; }

/* ========== Footer ========== */
footer { background: var(--primary); color: #fff; padding: 28px 0; margin-top: 20px; }
footer .content-wrapper { flex-direction: column; gap: 18px; }
footer a { color: #fff; }
.footer-nav, .legal-nav { display: flex; flex-wrap: wrap; gap: 10px 14px; }
.footer-nav a, .legal-nav a { background: #ffffff14; padding: 8px 12px; border-radius: 10px; transition: background-color .2s ease, transform .15s ease; }
.footer-nav a:hover, .legal-nav a:hover { background: var(--secondary); transform: translateY(-1px); }

/* Contact lines in footer */
footer .text-section { flex-direction: column; gap: 8px; }
footer .text-section img { width: 16px; height: 16px; display: inline-block; vertical-align: middle; margin-right: 6px; }

/* ========== Cards & lists (for energetic layout rhythm) ========== */
.text-section ul li { background: var(--accent); border: 1px solid var(--line); padding: 10px 12px; border-radius: 12px; box-shadow: 0 6px 16px var(--shadow); }
.text-section ul li strong { color: var(--primary); }

/* ========== Forms/Inputs (if any appear later) ========== */
input, select, textarea { font: inherit; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink); box-shadow: 0 4px 12px var(--shadow) inset; }
input:focus, select:focus, textarea:focus { border-color: var(--secondary); box-shadow: 0 0 0 3px #C84E0033; }

/* ========== Cookie Consent Banner ========== */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 120; background: #fff; color: var(--ink); border-top: 4px solid var(--secondary); box-shadow: 0 -10px 30px var(--shadow-strong); display: flex; flex-direction: column; gap: 12px; padding: 16px; transform: translateY(100%); transition: transform .35s ease; }
.cookie-banner.show { transform: translateY(0); }
.cookie-banner .cookie-content { display: flex; flex-direction: column; gap: 10px; }
.cookie-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-buttons .btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 14px; border-radius: 12px; font-weight: 800; }
.cookie-accept { background: var(--secondary); color: #fff; }
.cookie-accept:hover { background: var(--heat); }
.cookie-reject { background: #fff; color: var(--primary); border: 1px solid var(--line); }
.cookie-settings { background: var(--accent); color: var(--primary); border: 1px solid var(--line); }

/* Cookie Modal */
.cookie-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 130; opacity: 0; pointer-events: none; transition: opacity .25s ease; display: flex; }
.cookie-backdrop.show { opacity: 1; pointer-events: auto; }
.cookie-modal { margin: auto; width: 92%; max-width: 640px; background: #fff; color: var(--ink); border-radius: 16px; border: 1px solid var(--line); box-shadow: 0 18px 48px var(--shadow-strong); display: flex; flex-direction: column; gap: 14px; padding: 18px; transform: translateY(20px); transition: transform .25s ease; }
.cookie-backdrop.show .cookie-modal { transform: translateY(0); }
.cookie-modal h3 { margin-bottom: 4px; }
.cookie-modal .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cookie-modal .row:last-child { border-bottom: 0; }
.cookie-modal .switch { display: inline-flex; align-items: center; gap: 8px; }

/* ========== Utility Badges and Highlights ========== */
.badge { display: inline-flex; align-items: center; padding: 6px 10px; background: var(--accent); border: 1px solid var(--line); color: var(--primary); border-radius: 999px; font-weight: 700; }

/* ========== Accessibility helpers ========== */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; border: 0; padding: 0; clip: rect(0 0 0 0); overflow: hidden; white-space: nowrap; }

/* ========== Responsive Rules ========== */
@media (min-width: 480px) {
  h1 { font-size: 36px; }
  h2 { font-size: 26px; }
}

@media (min-width: 768px) {
  /* Header nav visible on tablet+ */
  .main-nav { display: flex; }
  .mobile-menu-toggle { display: none; }

  /* Section rhythm */
  section { padding: 32px 0; margin-bottom: 48px; }

  /* Text-image sections align center horizontally */
  .text-image-section { flex-direction: row; align-items: center; }

  /* Layout grouping */
  .content-wrapper { gap: 18px; }

  /* Hero prominence */
  section[aria-label="Hero"] .content-wrapper { padding-left: 20px; }

  h1 { font-size: 44px; }
  h2 { font-size: 28px; }
  h3 { font-size: 20px; }

  /* Footer layout */
  footer .content-wrapper { flex-direction: row; flex-wrap: wrap; justify-content: space-between; }
  footer .text-section { width: 100%; max-width: 360px; }
  .footer-nav, .legal-nav { align-items: flex-start; }
}

@media (min-width: 1024px) {
  .container { padding: 0 20px; }
  section { padding: 40px 0; margin-bottom: 60px; }
  h1 { font-size: 48px; }
  h2 { font-size: 32px; }
  h3 { font-size: 22px; }

  /* Example flex rows where appropriate */
  .content-grid { justify-content: space-between; }
}

/* ========== Misc polishing ========== */
hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }

/* ========== Page-specific micro-styles (kept generic) ========== */
/* Make list groups look energetic but clean */
.content-wrapper > .text-section + .text-section { margin-top: 6px; }

/* Footer logo size */
footer .text-section a img { height: 28px; width: auto; }

/* Make legal/utility pages easy to scan */
main .content-wrapper h2 + .text-section ul { gap: 8px 12px; }

/* Ensure no overlaps */
.content-wrapper, .text-section, .card, .testimonial-card { z-index: 1; }

/* ========== Buttons as links (generic) ========== */
.button, .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: 12px; background: var(--secondary); color: #fff; font-weight: 800; box-shadow: 0 10px 24px var(--shadow); transition: transform .15s ease, background-color .2s ease; }
.button:hover, .btn:hover { background: var(--heat); transform: translateY(-2px); }
.button--ghost, .btn--ghost { background: #fff; color: var(--primary); border: 1px solid var(--line); }

/* ========== Alignment helpers ========== */
.centered { display: flex; align-items: center; justify-content: center; }
.space-between { display: flex; align-items: center; justify-content: space-between; }

/* Ensure adequate gaps globally */
.content-grid > * { margin: 0; }
.card-container > * { margin: 0; }

/* ========== Print basics ========== */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-backdrop { display: none !important; }
  body { color: #000; }
}
