/* =====================================================================
   Nature Organic – Vortex Autokompass Leipzig
   Style: earth tones, organic shapes, natural textures, green accents
   CRITICAL: Flexbox-only layouts. No CSS Grid or Columns.
   Fonts: Trebuchet MS (display), Verdana (body)
   ===================================================================== */

/* ------------------------------
   Reset & Base Normalize
------------------------------ */
* { box-sizing: border-box; }
*::before, *::after { box-sizing: inherit; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { padding-left: 1.25rem; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; border: none; background: transparent; cursor: pointer; }

/* ------------------------------
   Design Tokens (with fallbacks)
------------------------------ */
:root {
  --primary: #0B2545; /* deep slate blue (brand) */
  --green: #2E7D32;   /* brand secondary green */
  --accent: #F5F7FA;  /* brand accent light */
  --earth-50: #FCFBF8;   /* soft paper */
  --earth-100: #F7F4EE;  /* sand */
  --earth-200: #ECE6DE;  /* warm beige */
  --earth-300: #DED6CB;  /* stone */
  --earth-600: #6B5F4D;  /* bark */
  --ink: #0A1A2A;       /* dark readable text */
  --leaf-50: #EDF5EF;   /* light leaf */
  --leaf-100: #DDEEDD;  /* pale green */
  --leaf-600: #1E5B25;  /* deep leaf */
  --shadow: 0 8px 20px rgba(20, 38, 20, 0.08);
  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 24px;
  --radius-xl: 36px;
  --focus: 0 0 0 3px rgba(46,125,50,0.25);
  --transition: 200ms ease;
}

/* ------------------------------
   Base Typography & Body
------------------------------ */
body {
  font-family: Verdana, Geneva, sans-serif;
  color: var(--ink, #0B2545);
  background: var(--earth-50, #FAFAFA);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: "Trebuchet MS", Tahoma, sans-serif;
  color: var(--primary, #0B2545);
  line-height: 1.25;
}

h1 { font-size: 32px; margin-bottom: 12px; }
h2 { font-size: 24px; margin-bottom: 10px; }
h3 { font-size: 18px; margin-bottom: 8px; }
p, li { font-size: 16px; }
small { font-size: 12px; color: rgba(0,0,0,0.65); }

@media (min-width: 768px) {
  h1 { font-size: 42px; }
  h2 { font-size: 28px; }
  h3 { font-size: 20px; }
  p, li { font-size: 17px; }
}

/* ------------------------------
   Containers & Sections (Flex-only)
------------------------------ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Mandatory spacing pattern */
.section { margin-bottom: 60px; padding: 40px 20px; }

/* Apply similar spacing to semantic sections */
section { margin-bottom: 60px; }
section > .container { padding-top: 40px; padding-bottom: 40px; }

/* Organic subtle backdrop for first section of each page */
main section:first-of-type .container {
  position: relative;
}
main section:first-of-type .container::before {
  content: "";
  position: absolute;
  right: -40px;
  top: -30px;
  width: 220px; height: 220px;
  background: var(--leaf-50, #EDF5EF);
  border-radius: 50% 40% 55% 45% / 45% 55% 40% 60%;
  filter: blur(0.3px);
  z-index: 0;
}
main section:first-of-type .container > * { position: relative; z-index: 1; }

.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

/* ------------------------------
   Header & Navigation (Flex-only)
------------------------------ */
header {
  position: sticky; top: 0; z-index: 999;
  background: var(--earth-50, #FCFBF8);
  border-bottom: 1px solid var(--earth-200, #ECE6DE);
  box-shadow: 0 2px 12px rgba(0,0,0,0.03);
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px; padding-bottom: 14px;
}
header img { height: 42px; }

header nav {
  display: none; /* mobile hidden */
  align-items: center;
  gap: 16px;
}
header nav a {
  padding: 8px 10px;
  border-radius: var(--radius-s);
  color: var(--primary, #0B2545);
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
header nav a:hover { background: var(--leaf-50, #EDF5EF); color: var(--leaf-600, #1E5B25); }
header nav a:focus { outline: none; box-shadow: var(--focus); }

.mobile-menu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  color: var(--primary, #0B2545);
  background: var(--leaf-50, #EDF5EF);
  transition: background var(--transition), transform var(--transition);
}
.mobile-menu-toggle:hover { background: var(--leaf-100, #DDEEDD); transform: scale(1.03); }
.mobile-menu-toggle:focus { outline: none; box-shadow: var(--focus); }

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

/* ------------------------------
   Buttons
------------------------------ */
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 700;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
  will-change: transform;
}

.btn-primary {
  background: var(--green, #2E7D32);
  color: #fff;
  box-shadow: 0 4px 14px rgba(46,125,50,0.25);
}
.btn-primary:hover { background: #276e2b; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(46,125,50,0.3); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:focus { outline: none; box-shadow: var(--focus); }

.btn-secondary {
  background: #fff;
  color: var(--green, #2E7D32);
  border: 2px solid var(--leaf-100, #DDEEDD);
}
.btn-secondary:hover { background: var(--leaf-50, #EDF5EF); }
.btn-secondary:focus { outline: none; box-shadow: var(--focus); }

/* ------------------------------
   Lists and text helpers
------------------------------ */
.tagline { color: var(--leaf-600, #1E5B25); font-weight: 600; }

ul { display: flex; flex-direction: column; gap: 8px; }
ol { display: flex; flex-direction: column; gap: 8px; padding-left: 1.25rem; }

/* ------------------------------
   Feature and service blocks (Flex-only)
------------------------------ */
.feature-grid, .service-cards, .highlight-grid, .case-cards, .audience-tiles, .content-grid {
  display: flex; flex-wrap: wrap; gap: 20px; justify-content: flex-start; align-items: stretch;
}

.feature-grid > div, .service-cards > div, .highlight-grid > div {
  flex: 1 1 260px;
  background: #fff;
  border: 1px solid var(--earth-200, #ECE6DE);
  border-radius: var(--radius-l);
  padding: 18px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.feature-grid > div:hover, .service-cards > div:hover, .highlight-grid > div:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(20, 38, 20, 0.12);
}

/* Pills, tags, simple chips */
.trust-badges, .add-ons, .output-examples, .experience-stats, .numbers, .case-cards, .audience-tiles {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
}
.trust-badges span, .add-ons span, .output-examples span, .case-cards span, .audience-tiles span {
  background: var(--leaf-50, #EDF5EF);
  color: var(--leaf-600, #1E5B25);
  border: 1px solid var(--leaf-100, #DDEEDD);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 14px;
}

.stats-snippet, .rating-summary, .experience-stats, .numbers {
  color: var(--primary, #0B2545);
  background: var(--earth-100, #F7F4EE);
  border: 1px dashed var(--earth-300, #DED6CB);
  padding: 12px 14px;
  border-radius: var(--radius-m);
}

/* ------------------------------
   Testimonial cards (Readable contrast)
------------------------------ */
.testimonial-card {
  display: flex; align-items: center; gap: 20px; padding: 20px; /* mandatory pattern */
  background: #fff;
  border-left: 6px solid var(--green, #2E7D32);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow);
  color: var(--primary, #0B2545);
}
.testimonial-card p { font-style: italic; }
.testimonial-card .stars { margin-left: auto; color: #F0A500; font-weight: 700; }

/* Ensure readability on any background */
.testimonial-card *, .testimonial-card p, .testimonial-card span { color: #132a3b; }

/* ------------------------------
   Contact details (Flex-only)
------------------------------ */
.contact-details {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  padding: 16px; background: var(--accent, #F5F7FA); border-radius: var(--radius-m);
  border: 1px solid var(--earth-200, #ECE6DE);
}
.contact-details a { color: var(--green, #2E7D32); font-weight: 700; }

@media (min-width: 768px) {
  .contact-details { flex-direction: row; flex-wrap: wrap; gap: 16px; }
  .contact-details > div { margin-right: 8px; }
}

/* ------------------------------
   Pricing table (semantic table, styled)
------------------------------ */
.pricing-table { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border-radius: var(--radius-l); overflow: hidden; box-shadow: var(--shadow); }
.pricing-table thead th { text-align: left; background: var(--leaf-50, #EDF5EF); color: var(--leaf-600, #1E5B25); padding: 12px; border-bottom: 1px solid var(--earth-200, #ECE6DE); font-weight: 700; }
.pricing-table tbody td { padding: 12px; border-bottom: 1px solid var(--earth-200, #ECE6DE); }
.pricing-table tbody tr:nth-child(even) { background: var(--accent, #F5F7FA); }

/* Mobile horizontal scroll helper without grid/columns */
@media (max-width: 640px) {
  .pricing-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .pricing-table table { min-width: 560px; }
}

/* ------------------------------
   Footer (Flex-only)
------------------------------ */
footer {
  background: var(--earth-100, #F7F4EE);
  border-top: 1px solid var(--earth-200, #ECE6DE);
}
footer .content-wrapper {
  flex-direction: row; flex-wrap: wrap; gap: 20px; align-items: flex-start;
}
footer nav { display: flex; flex-direction: column; gap: 8px; }
footer a { color: var(--primary, #0B2545); }
footer a:hover { color: var(--green, #2E7D32); }
footer small { display: block; margin-top: 8px; }

/* ------------------------------
   Mobile Menu (overlay, slide-in)
------------------------------ */
.mobile-menu {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--earth-50, #FCFBF8);
  display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch;
  padding: 20px;
  transform: translateX(100%);
  transition: transform 280ms ease;
}
.mobile-menu.open, .mobile-menu.active { transform: translateX(0); }

.mobile-menu-close {
  align-self: flex-end;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--leaf-50, #EDF5EF);
  color: var(--primary, #0B2545);
}
.mobile-nav { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.mobile-nav a {
  padding: 14px 12px; border-radius: var(--radius-m);
  background: #fff; border: 1px solid var(--earth-200, #ECE6DE);
  color: var(--primary, #0B2545);
  box-shadow: var(--shadow);
}
.mobile-nav a:active { background: var(--leaf-50, #EDF5EF); }

/* Ensure desktop hidden */
@media (min-width: 992px) { .mobile-menu { display: none; } }

/* ------------------------------
   Utility Flex Layout Patterns (required)
------------------------------ */
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; background: #fff; border: 1px solid var(--earth-200, #ECE6DE); border-radius: var(--radius-l); box-shadow: var(--shadow); 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; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

@media (max-width: 768px) { .text-image-section { flex-direction: column; } }

/* ------------------------------
   Links & Focus states
------------------------------ */
a:not(.btn-primary):not(.btn-secondary) { color: var(--green, #2E7D32); }
a:not(.btn-primary):not(.btn-secondary):hover { text-decoration: underline; }
:focus-visible { outline: none; box-shadow: var(--focus); }

/* ------------------------------
   Organic Dividers & Accents
------------------------------ */
hr { border: none; height: 1px; background: var(--earth-200, #ECE6DE); margin: 24px 0; }

/* Optional organic corner on cards */
.card::after, .feature-grid > div::after, .service-cards > div::after {
  content: ""; position: absolute; right: -8px; bottom: -8px; width: 48px; height: 48px;
  background: var(--leaf-50, #EDF5EF);
  border-radius: 60% 40% 60% 40%/40% 60% 40% 60%;
  z-index: 0; opacity: 0.6; pointer-events: none;
}
.card > *, .feature-grid > div > *, .service-cards > div > * { position: relative; z-index: 1; }

/* ------------------------------
   Page-specific subtle helpers
------------------------------ */
.press-mention { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: var(--radius-m); background: var(--accent, #F5F7FA); border: 1px solid var(--earth-200, #ECE6DE); }
.rating-summary { font-weight: 700; }

/* ------------------------------
   Spacing rules (no overlap)
------------------------------ */
section + section { margin-top: 0; }
.content-wrapper > * { margin-top: 0; }
section * + .btn-primary, section * + .btn-secondary { margin-top: 6px; }

/* ------------------------------
   Animations & Micro-interactions
------------------------------ */
.fade-in { animation: fadeIn 300ms ease forwards; opacity: 0; }
@keyframes fadeIn { to { opacity: 1; } }

/* ------------------------------
   Cookie Consent Banner & Modal
------------------------------ */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 9999;
  display: flex; flex-direction: column; gap: 12px;
  background: #fff;
  border-top: 1px solid var(--earth-200, #ECE6DE);
  box-shadow: 0 -8px 20px rgba(0,0,0,0.08);
  padding: 16px 20px;
  transform: translateY(110%);
  transition: transform 280ms ease;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner .content { display: flex; flex-direction: column; gap: 8px; }
.cookie-banner .actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-banner .btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 16px; border-radius: 999px; font-weight: 700; transition: background var(--transition), color var(--transition), box-shadow var(--transition); }
.cookie-banner .btn-accept { background: var(--green, #2E7D32); color: #fff; box-shadow: 0 4px 14px rgba(46,125,50,0.25); }
.cookie-banner .btn-accept:hover { background: #276e2b; }
.cookie-banner .btn-reject { background: var(--earth-100, #F7F4EE); color: var(--primary, #0B2545); border: 1px solid var(--earth-200, #ECE6DE); }
.cookie-banner .btn-settings { background: #fff; color: var(--green, #2E7D32); border: 2px solid var(--leaf-100, #DDEEDD); }

.cookie-modal {
  position: fixed; inset: 0; z-index: 10000; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(10,20,10,0.35);
}
.cookie-modal.show { display: flex; }
.cookie-modal .modal-content {
  width: 100%; max-width: 720px;
  background: #fff; border-radius: var(--radius-xl); box-shadow: 0 20px 50px rgba(0,0,0,0.25);
  display: flex; flex-direction: column; gap: 16px; padding: 20px;
  transform: scale(0.96); opacity: 0; transition: transform 220ms ease, opacity 220ms ease;
}
.cookie-modal.show .modal-content { transform: scale(1); opacity: 1; }
.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 .category { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid var(--earth-200, #ECE6DE); border-radius: var(--radius-m); background: var(--accent, #F5F7FA); }
.cookie-modal .modal-footer { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.cookie-modal .btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 16px; border-radius: 999px; font-weight: 700; }
.cookie-modal .btn-primary { background: var(--green, #2E7D32); color: #fff; }
.cookie-modal .btn-secondary { background: #fff; color: var(--green, #2E7D32); border: 2px solid var(--leaf-100, #DDEEDD); }

/* Toggle switch (for Analytics/Marketing) */
.toggle-switch { position: relative; width: 46px; height: 26px; background: var(--earth-300, #DED6CB); border-radius: 999px; transition: background var(--transition); }
.toggle-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; background: #fff; border-radius: 50%; box-shadow: var(--shadow); transition: transform var(--transition); }
.toggle-switch.is-on { background: var(--green, #2E7D32); }
.toggle-switch.is-on::after { transform: translateX(20px); }

/* ------------------------------
   Responsive Layout Tweaks
------------------------------ */
@media (min-width: 768px) {
  .content-wrapper { gap: 18px; }
}

@media (min-width: 1024px) {
  .feature-grid > div, .service-cards > div, .highlight-grid > div { flex: 1 1 calc(33% - 20px); }
}

/* ------------------------------
   Accessibility & Readability
------------------------------ */
::selection { background: rgba(46,125,50,0.2); }

/* ------------------------------
   Ensure minimum gaps between cards/sections
------------------------------ */
section .testimonial-card, section .card, section .feature-grid > div, section .service-cards > div { margin-bottom: 20px; }

/* ------------------------------
   Additional semantic helpers present in HTML
------------------------------ */
.output-examples span, .add-ons span { background: #fff; border: 1px solid var(--earth-200, #ECE6DE); color: var(--primary, #0B2545); }

/* Make first hero buttons cluster spacing comfortable */
.content-wrapper a.btn-primary + a.btn-secondary { margin-left: 4px; }

/* ------------------------------
   Tables inside sections preserve spacing to other blocks
------------------------------ */
.pricing-table { margin-top: 8px; margin-bottom: 8px; }

/* ------------------------------
   Dark-on-light requirement for testimonials & reviews
------------------------------ */
section .testimonial-card { background: #fff; }
section .testimonial-card p, section .testimonial-card span { color: #132a3b; }

/* ------------------------------
   End of stylesheet
------------------------------ */
