/* =========================================================
   Prü fWerk Mobil – Nature_Organic Theme
   Mobile-first, flexbox-only CSS. No grid/columns used.
   Fonts: Trebuchet MS (display), Verdana (body)
   ========================================================= */

/* ------------------------------
   CSS Reset / Normalize (light)
   ------------------------------ */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; }
button { border: none; background: none; padding: 0; cursor: pointer; }
a { text-decoration: none; color: inherit; }
ul, ol { margin: 0; padding: 0 0 0 1.25rem; }

/* ------------------------------
   Root tokens (with fallbacks)
   ------------------------------ */
:root {
  /* Brand */
  --brand-primary: #0A3A5E; /* deep marine */
  --brand-secondary: #2E7D32; /* moss green */
  --brand-accent: #F4F7FA; /* mist */

  /* Nature Organic Palette */
  --earth-sand-50: #F6F3EA;
  --earth-sand-100: #EFE9DA;
  --earth-stone-200: #E2DACB;
  --earth-stone-300: #D4CAB6;
  --earth-clay-500: #B0793F;
  --leaf-500: #5DAA68;
  --leaf-600: #3D8B5C;
  --forest-900: #1F2A24;

  /* Text & UI */
  --text-900: #1F2A24;
  --text-700: #33413C;
  --text-500: #5D6A65;
  --border: #DAD4C8;
  --shadow: rgba(24, 34, 28, 0.08);
  --shadow-strong: rgba(24, 34, 28, 0.14);

  /* Radii */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;

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

/* ------------------------------
   Base Typography
   ------------------------------ */
body {
  background-color: #F6F3EA; /* fallback */
  background-color: var(--earth-sand-50);
  color: #1F2A24; /* fallback */
  color: var(--text-900);
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  line-height: 1.6;
  font-size: 16px;
}

h1, h2, h3, h4, h5 { font-family: "Trebuchet MS", Arial, sans-serif; color: var(--brand-primary); margin: 0 0 var(--space-16); line-height: 1.2; }
h1 { font-size: 32px; }
h2 { font-size: 24px; }
h3 { font-size: 18px; }

p { margin: 0 0 var(--space-16); color: var(--text-700); }
strong { color: var(--text-900); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background-color: #EFE9DA; /* fallback */
  background-color: var(--earth-sand-100);
  color: var(--leaf-600);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.4px;
}

.tagline { color: var(--text-500); font-size: 14px; }

/* Links */
a { color: var(--brand-primary); }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--leaf-500); outline-offset: 2px; border-radius: 6px; }

/* Lists with organic bullets */
ul { list-style: none; padding-left: 0; }
ul li { position: relative; padding-left: 28px; margin-bottom: 10px; color: var(--text-700); }
ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 12px; height: 12px;
  background-color: var(--leaf-500);
  border-radius: 12px 10px 12px 8px; /* organic bean shape */
  box-shadow: 0 0 0 2px #fff inset;
}

/* List items that include icons */
li img { width: 18px; height: 18px; margin-right: 8px; vertical-align: middle; display: inline-block; }
.hero li, .content-wrapper > ul li { padding-left: 0; display: flex; align-items: center; gap: 10px; }
.hero li::before, .content-wrapper > ul li::before { display: none; }

ol { padding-left: 20px; }
ol li { margin-bottom: 10px; color: var(--text-700); }

/* ------------------------------
   Layout Helpers (Flex-only)
   ------------------------------ */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;            /* flex container (required) */
  flex-direction: column;   /* stack by default */
  gap: var(--space-20);
}

.content-wrapper {
  display: flex;            /* flex container */
  flex-direction: column;
  gap: var(--space-20);
}

/* Mandatory spacing and alignment patterns */
.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; }

/* General section spacing (applies to all sections) */
main > section { margin-bottom: var(--space-60); }
main > section .container { padding-top: var(--space-40); padding-bottom: var(--space-40); }

/* Cards */
.card {
  background-color: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--space-20);
  box-shadow: 0 8px 20px var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 12px 24px var(--shadow-strong); }

/* ------------------------------
   Header & Navigation
   ------------------------------ */
header {
  position: relative;
  z-index: 50;
  background-color: #FFFFFF;
  border-bottom: 1px solid var(--earth-stone-200);
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-16);
  padding-top: 12px; padding-bottom: 12px;
}
.logo img { height: 38px; width: auto; }

.main-nav { display: none; align-items: center; gap: 14px; }
.main-nav a {
  padding: 8px 10px;
  color: var(--text-700);
  border-radius: 10px;
  transition: color .2s ease, background-color .2s ease, transform .15s ease;
}
.main-nav a:hover { color: var(--brand-secondary); background-color: var(--brand-accent); }
.main-nav a:active { transform: scale(0.98); }

.header-cta { display: none; align-items: center; gap: 10px; }
.header-cta a {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  background-color: var(--brand-secondary);
  color: #fff;
  border: 1px solid var(--brand-secondary);
  transition: background-color .2s ease, color .2s ease, transform .15s ease, box-shadow .2s ease;
}
.header-cta a:nth-child(2) {
  background: transparent; color: var(--brand-secondary); border-color: var(--brand-secondary);
}
.header-cta a:hover { box-shadow: 0 6px 16px var(--shadow); }
.header-cta a:active { transform: translateY(1px); }

/* Mobile menu toggle */
.mobile-menu-toggle {
  font-size: 22px; line-height: 1;
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--brand-primary);
  background-color: var(--earth-sand-100);
  border-radius: 10px;
}
.mobile-menu-toggle:focus-visible { outline: 2px solid var(--leaf-500); }

/* Mobile menu overlay */
.mobile-menu {
  position: fixed; inset: 0;
  background-color: rgba(20, 28, 24, 0.6);
  display: flex;                 /* flex container */
  flex-direction: row;           /* slide-in panel at right */
  align-items: stretch;
  justify-content: flex-end;
  transform: translateX(100%);
  transition: transform .35s ease;
  z-index: 100;
}
.mobile-menu.open { transform: translateX(0); }

.mobile-menu .mobile-menu-close {
  position: absolute; right: 14px; top: 14px;
  width: 40px; height: 40px; border-radius: 999px;
  background-color: #FFFFFF; color: var(--brand-primary);
  box-shadow: 0 8px 18px var(--shadow);
}

.mobile-nav {
  width: min(84%, 360px);
  background-color: #FFFFFF;
  display: flex; flex-direction: column; gap: 6px;
  padding: 70px 20px 20px;
  border-top-left-radius: 20px; border-bottom-left-radius: 20px;
}
.mobile-nav a {
  display: flex; align-items: center; padding: 14px 12px;
  border-radius: 12px;
  color: var(--text-900);
}
.mobile-nav a:hover { background-color: var(--brand-accent); color: var(--brand-secondary); }

/* ------------------------------
   Hero Section – Organic styling
   ------------------------------ */
.hero {
  position: relative;
  background-color: #EFE9DA; /* fallback */
  background-color: var(--earth-sand-100);
  border-bottom-left-radius: 50px; border-bottom-right-radius: 50px;
  overflow: hidden;
}
.hero .container { padding-top: var(--space-48); padding-bottom: var(--space-48); }
.hero .content-wrapper { gap: var(--space-16); }

/* Decorative organic leaf shape */
.hero::before {
  content: "";
  position: absolute; right: -80px; top: -60px;
  width: 240px; height: 240px; border-radius: 60% 40% 55% 45% / 45% 55% 45% 55%;
  background-color: #5DAA68; /* fallback */
  background-color: var(--leaf-500);
  opacity: 0.12;
  z-index: 0;
}
.hero::after {
  content: "";
  position: absolute; left: -120px; bottom: -120px;
  width: 300px; height: 300px; border-radius: 45% 55% 40% 60% / 55% 45% 60% 40%;
  background-color: #2E7D32; /* fallback */
  background-color: var(--brand-secondary);
  opacity: 0.08;
  z-index: 0;
}
.hero .container, .hero .content-wrapper { position: relative; z-index: 1; }

/* Hero CTAs */
.hero .content-wrapper > div a, .hero .content-wrapper > a {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; margin-right: 10px; margin-bottom: 10px;
  padding: 12px 16px; border-radius: 999px;
  background-color: var(--brand-secondary);
  color: #FFFFFF; border: 1px solid var(--brand-secondary);
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease;
}
.hero .content-wrapper > div a:nth-child(2), .hero .content-wrapper > a + a {
  background: transparent; color: var(--brand-secondary);
  border-color: var(--brand-secondary);
}
.hero .content-wrapper > div a:hover, .hero .content-wrapper > a:hover { box-shadow: 0 10px 20px var(--shadow); }
.hero .content-wrapper > div a:active, .hero .content-wrapper > a:active { transform: translateY(1px); }

/* Keep inline links inside .text-section subtle */
.text-section a { color: var(--brand-primary); text-decoration: underline; padding: 0; border: none; background: none; border-radius: 0; }
.text-section a:hover { color: var(--brand-secondary); }

/* ------------------------------
   Generic Sections & Elements
   ------------------------------ */
section {
  background-color: transparent;
}
.text-section {
  display: flex; flex-direction: column; gap: 10px; /* flex container */
  padding: 14px 0;
}

/* Testimonials – high contrast on light cards */
.testimonial-card {
  background-color: #FFFFFF;
  border: 1px solid var(--earth-stone-200);
  border-radius: var(--r-lg);
  box-shadow: 0 8px 20px var(--shadow);
  color: var(--text-900);
}
.testimonial-card p { margin: 0; }

/* Footer */
footer {
  background-color: #FFFFFF;
  border-top: 1px solid var(--earth-stone-200);
}
footer .container { padding-top: var(--space-40); padding-bottom: var(--space-40); }
footer .content-wrapper {
  display: flex; flex-direction: column; gap: var(--space-20); /* flex container */
}
.footer-nav, .legal-nav {
  display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center;
}
.footer-nav a, .legal-nav a { color: var(--text-700); }
.footer-nav a:hover, .legal-nav a:hover { color: var(--brand-secondary); }

address { font-style: normal; color: var(--text-700); }

/* ------------------------------
   Cookie Consent Banner & Modal
   ------------------------------ */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column; gap: 12px; /* flex container */
  padding: 16px;
  background-color: #FFFFFF;
  border-top: 1px solid var(--earth-stone-200);
  box-shadow: 0 -10px 24px var(--shadow);
  z-index: 200;
  transform: translateY(100%);
  transition: transform .35s ease;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner .cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-banner .cookie-actions .btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 14px; border-radius: 999px; border: 1px solid var(--brand-secondary);
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.cookie-banner .btn-accept { background-color: var(--brand-secondary); color: #fff; }
.cookie-banner .btn-reject { background: transparent; color: var(--brand-secondary); }
.cookie-banner .btn-settings { background-color: var(--brand-accent); color: var(--brand-primary); border-color: var(--brand-accent); }
.cookie-banner .btn:hover { box-shadow: 0 8px 18px var(--shadow); }

/* Cookie preferences modal */
.cookie-modal {
  position: fixed; inset: 0; display: none; /* hidden by default */
  align-items: center; justify-content: center; /* flex container */
  background-color: rgba(20, 28, 24, 0.65);
  z-index: 300;
}
.cookie-modal.open { display: flex; }
.cookie-modal-content {
  width: min(720px, 92%);
  background-color: #FFFFFF;
  border-radius: var(--r-lg);
  border: 1px solid var(--earth-stone-200);
  box-shadow: 0 18px 40px var(--shadow-strong);
  display: flex; flex-direction: column; gap: 14px; /* flex container */
  padding: 18px;
}
.cookie-modal-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cookie-modal-body { display: flex; flex-direction: column; gap: 12px; }
.cookie-category { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px dashed var(--earth-stone-200); }
.cookie-modal-footer { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

/* Toggle switch */
.switch { position: relative; width: 44px; height: 26px; border-radius: 999px; background: var(--earth-stone-200); transition: background .2s ease; }
.switch input { position: absolute; opacity: 0; }
.switch .knob { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px var(--shadow); transition: transform .2s ease; }
.switch input:checked + .knob { transform: translateX(18px); }
.switch input:checked ~ .switch { background: var(--brand-secondary); }

/* ------------------------------
   Buttons (utility class if used)
   ------------------------------ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 16px; border-radius: 999px; border: 1px solid transparent; transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease; }
.btn--primary { background-color: var(--brand-secondary); color: #fff; border-color: var(--brand-secondary); }
.btn--outline { background: transparent; color: var(--brand-secondary); border-color: var(--brand-secondary); }
.btn--ghost { background-color: var(--brand-accent); color: var(--brand-primary); border-color: var(--brand-accent); }
.btn:hover { box-shadow: 0 10px 20px var(--shadow); }
.btn:active { transform: translateY(1px); }

/* ------------------------------
   Utility: content group spacing
   ------------------------------ */
.content-wrapper > p + p { margin-top: -6px; }
.content-wrapper > div { display: flex; flex-wrap: wrap; gap: 10px; }

/* ------------------------------
   Accessibility and Motion
   ------------------------------ */
:focus-visible { outline: 2px solid var(--leaf-500); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ------------------------------
   Responsive Layout (mobile-first)
   All containers remain flex-only.
   ------------------------------ */
/* Small tablets */
@media (min-width: 600px) {
  h1 { font-size: 36px; }
  h2 { font-size: 28px; }
  .logo img { height: 42px; }
}

/* Tablets and up */
@media (min-width: 768px) {
  .text-image-section { flex-direction: row; }
  .content-grid { justify-content: flex-start; }
}

/* Desktop */
@media (min-width: 992px) {
  header .container { padding-top: 16px; padding-bottom: 16px; }
  .main-nav { display: flex; }
  .header-cta { display: flex; }
  .mobile-menu-toggle { display: none; }

  .container { flex-direction: column; }

  .content-grid { gap: 24px; }

  .hero .container { padding-top: 64px; padding-bottom: 64px; }

  /* Footer layout: three areas side-by-side */
  footer .content-wrapper { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 24px; }
  footer .content-wrapper > .text-section { flex: 1 1 280px; }
  .footer-nav { flex: 1 1 220px; }
  .legal-nav { flex: 1 1 220px; }
}

/* ------------------------------
   Additional Organic Details
   ------------------------------ */
/* Soft section dividers using subtle borders */
main > section:not(.hero) .container { border-left: 6px solid rgba(61, 139, 92, 0.08); border-right: 6px solid rgba(61, 139, 92, 0.08); border-radius: 20px; }

/* Organic hover shadow on cards/testimonials */
.testimonial-card:hover { box-shadow: 0 12px 28px var(--shadow-strong); }

/* ------------------------------
   Navigation link sizing and spacing for touch
   ------------------------------ */
.main-nav a, .mobile-nav a { min-height: 44px; }

/* ------------------------------
   Ensure minimum spacing between elements
   ------------------------------ */
.content-wrapper > * + * { margin-top: 0; }
.card-container > * { margin: 0; } /* rely on gap */

/* ------------------------------
   Page-specific minor tweaks
   ------------------------------ */
.hero p { max-width: 68ch; }
.content-wrapper > ul, .content-wrapper > ol { display: flex; flex-direction: column; gap: 8px; }

/* ------------------------------
   Image and icon alignment inside paragraphs
   ------------------------------ */
.content-wrapper p img { display: inline-block; vertical-align: middle; margin-right: 8px; }

/* ------------------------------
   Prevent overlaps & manage z-index when decorative elements exist
   ------------------------------ */
.hero, .hero * { z-index: 1; }

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