/* =====================================================
   Kräuterkrone • Vibrant Energetic UI • style.css
   Mobile-first • Flexbox-only • No CSS Grid/Columns
   ===================================================== */

/* ------------------------------
   1) CSS 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: var(--ink, #141414); background: var(--surface, #FFFFFF); line-height: 1.6; }
img, svg { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--link, #0D63FF); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--electric-blue, #00C4FF); outline-offset: 2px; }

/* Smooth scrolling for anchor jumps */
html { scroll-behavior: smooth; }

/* ------------------------------
   2) Design Tokens
------------------------------ */
:root {
  --brand-primary: #2D3A2F; /* deep herb green */
  --brand-secondary: #8C2E1A; /* spicy brick */
  --brand-accent: #F5EFE6; /* warm accent surface */

  /* Vibrant energetic accents */
  --electric-orange: #FF5A3D;
  --electric-lime: #2EE66B;
  --electric-blue: #00C4FF;
  --electric-yellow: #FFD400;
  --electric-pink: #FF2D7A;

  --ink: #141414;
  --muted: #61666A;
  --surface: #FFFFFF;
  --surface-2: #FAFAFA;
  --shadow-1: 0 8px 24px rgba(0,0,0,0.12);
  --shadow-2: 0 14px 40px rgba(0,0,0,0.18);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
}

/* ------------------------------
   3) Typography
------------------------------ */
.h1, h1 { font-family: Georgia, 'Times New Roman', serif; font-weight: 800; font-size: 32px; line-height: 1.2; letter-spacing: 0.2px; margin: 0 0 14px; color: var(--brand-primary, #2D3A2F); }
.h2, h2 { font-family: Georgia, 'Times New Roman', serif; font-weight: 800; font-size: 26px; line-height: 1.25; margin: 0 0 12px; color: var(--brand-primary, #2D3A2F); }
.h3, h3 { font-family: Georgia, 'Times New Roman', serif; font-weight: 700; font-size: 20px; line-height: 1.3; margin: 18px 0 8px; color: var(--ink, #141414); }
p { margin: 0 0 12px; font-size: 16px; }
small { font-size: 12px; color: var(--muted, #61666A); }
.subheadline { font-size: 18px; color: var(--ink, #141414); margin-bottom: 14px; }
.tagline { font-size: 14px; color: var(--muted, #61666A); }
strong { color: var(--ink, #141414); font-weight: 800; }

/* Larger type on wider screens */
@media (min-width: 768px) {
  .h1, h1 { font-size: 44px; }
  .h2, h2 { font-size: 32px; }
  .h3, h3 { font-size: 22px; }
  p { font-size: 17px; }
}
@media (min-width: 1024px) {
  .h1, h1 { font-size: 52px; }
  .h2, h2 { font-size: 36px; }
  p { font-size: 18px; }
}

/* ------------------------------
   4) Layout Containers (Flex-only)
------------------------------ */
.container { max-width: 1120px; margin: 0 auto; padding: 0 16px; display: flex; flex-direction: column; align-items: stretch; }
.content-wrapper { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; justify-content: flex-start; width: 100%; }
section { padding: 48px 0; }

/* Mandatory spacing/alignment patterns */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; background: var(--surface, #FFFFFF); border-radius: var(--radius-md); box-shadow: var(--shadow-1); padding: 18px; }
.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: var(--brand-accent, #F5EFE6); color: var(--ink, #141414); border-radius: var(--radius-md); box-shadow: var(--shadow-1); border-left: 6px solid var(--electric-lime, #2EE66B); }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* Responsive rule for text-image-section */
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; }
}
@media (min-width: 768px) {
  .content-wrapper { flex-direction: column; }
}

/* ------------------------------
   5) Header & Navigation
------------------------------ */
header { position: relative; background: var(--surface, #FFFFFF); border-bottom: 4px solid var(--electric-yellow, #FFD400); box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
header .content-wrapper { flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { height: 40px; width: auto; }

.main-nav { display: none; align-items: center; gap: 18px; }
.main-nav a { color: var(--ink, #141414); font-weight: 700; padding: 8px 10px; border-radius: 8px; transition: background-color .2s ease, color .2s ease, transform .2s ease; }
.main-nav a:hover { background: var(--brand-accent, #F5EFE6); color: var(--brand-primary, #2D3A2F); transform: translateY(-1px); }
.main-nav a[aria-current="page"] { color: var(--surface, #FFFFFF); background: var(--brand-primary, #2D3A2F); }

.header-cta { display: flex; align-items: center; gap: 12px; }

@media (min-width: 992px) {
  .main-nav { display: flex; }
  .logo img { height: 56px; }
}

/* Mobile burger button */
.mobile-menu-toggle { position: fixed; top: 14px; right: 14px; z-index: 1200; background: var(--brand-primary, #2D3A2F); color: #fff; border: none; border-radius: 12px; padding: 10px 12px; font-size: 20px; line-height: 1; box-shadow: var(--shadow-1); cursor: pointer; transition: transform .2s ease, background-color .2s ease; }
.mobile-menu-toggle:hover { transform: translateY(-1px); background: var(--electric-orange, #FF5A3D); }

/* Hide burger on desktop */
@media (min-width: 992px) {
  .mobile-menu-toggle { display: none; }
}

/* Mobile menu overlay */
.mobile-menu { position: fixed; inset: 0; background: var(--brand-primary, #2D3A2F); color: #fff; z-index: 1300; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 24px; transform: translateX(100%); transition: transform .35s ease; }
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-close { position: absolute; top: 12px; right: 14px; background: transparent; border: 2px solid #fff; color: #fff; border-radius: 12px; padding: 6px 10px; font-size: 18px; cursor: pointer; }
.mobile-nav { display: flex; flex-direction: column; gap: 14px; align-items: center; max-width: 90%; }
.mobile-nav a { color: #fff; font-weight: 800; font-size: 18px; padding: 10px 14px; border-radius: 10px; background: rgba(255,255,255,0.06); width: 100%; text-align: center; transition: background-color .2s ease, transform .2s ease; }
.mobile-nav a:hover { background: rgba(255,255,255,0.15); transform: translateY(-1px); }

/* Body lock when mobile menu open (JS toggles .no-scroll on body) */
body.no-scroll { overflow: hidden; }

/* ------------------------------
   6) Hero Section (Vibrant/Energetic)
------------------------------ */
.hero { position: relative; background: var(--brand-accent, #F5EFE6); border-top: 6px solid var(--electric-orange, #FF5A3D); }
.hero .content-wrapper { padding: 12px 0; }
.hero::before, .hero::after { content: ""; position: absolute; z-index: 0; opacity: .12; }
.hero::before { top: 14px; left: -16px; width: 120px; height: 120px; background: var(--electric-pink, #FF2D7A); border-radius: 18px; transform: rotate(8deg); }
.hero::after { bottom: -20px; right: -16px; width: 160px; height: 160px; background: var(--electric-blue, #00C4FF); border-radius: 22px; transform: rotate(-6deg); }
.hero .container, .hero .content-wrapper { position: relative; z-index: 1; }

/* USP list - energetic chips */
.usp-list { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.usp-list li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; background: #fff; border: 2px solid var(--electric-yellow, #FFD400); border-radius: 999px; font-weight: 700; box-shadow: 0 2px 0 rgba(0,0,0,0.06); }
.usp-list li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--electric-orange, #FF5A3D); }

/* ------------------------------
   7) Text Sections & Lists
------------------------------ */
.text-section { display: flex; flex-direction: column; gap: 10px; max-width: 880px; }
.text-section ul, .text-section ol { margin: 6px 0 6px 18px; }
.text-section li { margin: 6px 0; }

/* Links as inline pills in text sections when needed */
.text-section a { color: var(--brand-secondary, #8C2E1A); font-weight: 700; }
.text-section a:hover { color: var(--electric-orange, #FF5A3D); }

/* ------------------------------
   8) Buttons & Micro-interactions
------------------------------ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: 14px; font-weight: 800; border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease; box-shadow: 0 6px 0 rgba(0,0,0,0.1); }
.btn:active { transform: translateY(1px); box-shadow: 0 2px 0 rgba(0,0,0,0.12); }
.btn.primary { background: var(--electric-orange, #FF5A3D); color: #fff; }
.btn.primary:hover { background: #FF3F1E; }
.btn.secondary { background: #fff; color: var(--brand-primary, #2D3A2F); border-color: var(--electric-blue, #00C4FF); }
.btn.secondary:hover { background: var(--brand-accent, #F5EFE6); }

/* ------------------------------
   9) Testimonials (High contrast)
------------------------------ */
/* Already defined base via .testimonial-card (light bg + dark text) */
.testimonial-card p { margin: 0; }
.testimonial-card p + p { opacity: 0.9; }

/* ------------------------------
   10) Footer
------------------------------ */
footer { background: var(--brand-primary, #2D3A2F); color: #E9F1EA; padding-top: 16px; }
footer a { color: #fff; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; justify-content: center; padding: 10px 0; }
.footer-nav a { padding: 6px 10px; border-radius: 8px; background: rgba(255,255,255,0.06); font-weight: 700; }
.footer-nav a[aria-current="page"] { background: var(--electric-lime, #2EE66B); color: #111; }
footer .text-section { align-items: center; text-align: center; color: #E9F1EA; }

/* ------------------------------
   11) Generic Cards / Content blocks
------------------------------ */
.card.emphasis { border-left: 6px solid var(--electric-pink, #FF2D7A); }
.card .card-title { font-weight: 800; margin-bottom: 8px; }

/* ------------------------------
   12) Forms (for potential inputs)
------------------------------ */
input, select, textarea { width: 100%; padding: 10px 12px; border-radius: 10px; border: 2px solid #D9D9D9; background: #fff; font-family: inherit; font-size: 16px; }
input:focus, select:focus, textarea:focus { border-color: var(--electric-blue, #00C4FF); outline: none; box-shadow: 0 0 0 3px rgba(0,196,255,0.15); }
label { font-weight: 700; margin-bottom: 6px; display: inline-flex; }

/* ------------------------------
   13) Tables (basic - not used but safe)
------------------------------ */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px; border-bottom: 1px solid #eee; }
th { background: var(--surface-2, #FAFAFA); font-weight: 800; }

/* ------------------------------
   14) Utility & Accessibility helpers
------------------------------ */
.hidden { display: none !important; }
.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; }
.center { display: flex; align-items: center; justify-content: center; }
.mt-20 { margin-top: 20px; }

/* ------------------------------
   15) Page-specific tweaks
------------------------------ */
/* Highlight active main menu item */
.main-nav a[aria-current="page"], header .footer-nav a[aria-current="page"] { background: var(--electric-lime, #2EE66B); color: #111; }

/* Index highlights */
.hero .btn + .btn { margin-left: 8px; }

/* Footer spacing fix */
footer .content-wrapper { align-items: center; }

/* Link icons inside text sections */
.text-section img { display: inline-block; vertical-align: middle; margin-left: 6px; height: 18px; width: auto; }

/* ------------------------------
   16) Responsive behavior
------------------------------ */
@media (min-width: 768px) {
  .content-grid > * { flex: 1 1 calc(50% - 20px); }
}
@media (min-width: 1024px) {
  .content-grid > * { flex: 1 1 calc(33% - 20px); }
}

/* Header alignment at larger screens */
@media (min-width: 992px) {
  header .content-wrapper { gap: 22px; }
}

/* Ensure adequate spacing: all section inner blocks have gaps */
.content-wrapper > * + * { margin-top: 4px; }

/* ------------------------------
   17) Cookie Consent (Banner + Modal)
------------------------------ */
/* Banner */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1400; background: var(--brand-primary, #2D3A2F); color: #fff; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 14px 18px; box-shadow: var(--shadow-2); }
.cookie-banner .cookie-text { display: flex; flex: 1 1 260px; align-items: center; gap: 10px; }
.cookie-banner .cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-banner .btn { box-shadow: none; }
.cookie-banner .btn.accept { background: var(--electric-lime, #2EE66B); color: #111; border-color: transparent; }
.cookie-banner .btn.reject { background: #fff; color: #111; border-color: var(--electric-pink, #FF2D7A); }
.cookie-banner .btn.settings { background: var(--electric-orange, #FF5A3D); color: #fff; }

/* Modal overlay */
.cookie-modal { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(0,0,0,0.5); z-index: 1500; opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.cookie-modal.open { opacity: 1; pointer-events: auto; }
.cookie-modal .modal-card { background: #fff; color: var(--ink, #141414); border-radius: var(--radius-lg); box-shadow: var(--shadow-2); width: 100%; max-width: 680px; display: flex; flex-direction: column; gap: 14px; padding: 18px; border-top: 6px solid var(--electric-blue, #00C4FF); }
.cookie-modal .modal-header { display: flex; align-items: center; justify-content: space-between; }
.cookie-modal .modal-body { display: flex; flex-direction: column; gap: 12px; }
.cookie-modal .modal-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
/* Simple toggles */
.cookie-toggle { display: inline-flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 999px; border: 2px solid #ddd; }
.cookie-toggle .dot { width: 12px; height: 12px; border-radius: 50%; background: #ddd; }
.cookie-toggle.on { border-color: var(--electric-lime, #2EE66B); }
.cookie-toggle.on .dot { background: var(--electric-lime, #2EE66B); }

/* ------------------------------
   18) Animations
------------------------------ */
@keyframes riseIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.hero .content-wrapper > * { animation: riseIn .5s ease both; }
.hero .content-wrapper > *:nth-child(2) { animation-delay: .05s; }
.hero .content-wrapper > *:nth-child(3) { animation-delay: .1s; }

/* ------------------------------
   19) Additional Flex Layout Enhancements
------------------------------ */
/* Footer columns behave as vertical stacks on mobile */
footer .content-wrapper { display: flex; flex-direction: column; gap: 16px; }

/* Align text blocks consistently */
section .text-section, section .testimonial-card, section .card { margin-top: 10px; }

/* Ensure minimum spacing between any stacked elements */
section .content-wrapper > * { margin-bottom: 10px; }

/* ------------------------------
   20) Accessibility color & contrast helpers
------------------------------ */
/* Dark-on-light enforced for testimonials and reviews */
section .testimonial-card, .testimonial-card * { color: var(--ink, #141414); }

/* ------------------------------
   21) Edge Case Fixes for Lists in Provided HTML
------------------------------ */
ul { padding-left: 18px; }
ol { padding-left: 20px; }

/* Make generic navs flex where present */
nav { display: flex; flex-wrap: wrap; gap: 10px; }

/* Footer and header navs have individual styles already */

/* ------------------------------
   22) Images inside hero/contact lines
------------------------------ */
.text-section p a + img { margin-left: 6px; }

/* ------------------------------
   23) Prevent overlaps with adequate spacing
------------------------------ */
section + section { margin-top: 6px; }

/* ------------------------------
   24) Print-safe basics (optional)
------------------------------ */
@media print {
  .mobile-menu-toggle, .mobile-menu, .cookie-banner, .cookie-modal { display: none !important; }
  a { text-decoration: underline; }
}
