/* =============================
   GenussErbe — Luxury Premium Theme
   Mobile-first, Flexbox-only, No CSS Grid/Columns
   ============================= */

/* --------- CSS Reset & Normalize (lightweight) --------- */
*, *::before, *::after { box-sizing: border-box; }
html { line-height: 1.15; -webkit-text-size-adjust: 100%; }
body { margin: 0; }
h1 { font-size: 2em; margin: 0.67em 0; }
img { border-style: none; max-width: 100%; height: auto; display: block; }
a { background-color: transparent; text-decoration: none; }
button, input, select, textarea { font: inherit; margin: 0; }
button { border: none; background: none; padding: 0; cursor: pointer; }
ul, ol { padding-left: 1.2rem; }
:focus { outline: none; }
:focus-visible { outline: 3px solid rgba(200,162,77,0.6); outline-offset: 2px; }

/* --------- Design Tokens --------- */
:root {
  --primary: #0E5A3A; /* deep evergreen */
  --secondary: #6BBF59; /* fresh green */
  --accent: #F5FBF8; /* light mint tint */
  --gold: #C8A24D; /* refined gold */
  --gold-deep: #A8862D; /* hover gold */
  --ink: #1F1F1A; /* luxe charcoal */
  --ink-soft: #3D3D36; /* softer text */
  --muted: #6E6E64; /* muted text */
  --surface: #FFFFFF; /* card/base */
  --surface-2: #F7F5EF; /* warm neutral background */
  --stroke: rgba(200,162,77,0.28); /* gold hairline */
  --shadow-sm: 0 6px 18px rgba(0,0,0,0.06);
  --shadow-md: 0 10px 30px rgba(0,0,0,0.10);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --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 {
  font-family: "Verdana", Tahoma, Arial, sans-serif;
  color: var(--ink);
  background-color: var(--surface-2);
  font-size: 16px;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: "Trebuchet MS", "Verdana", Tahoma, Arial, sans-serif;
  color: var(--ink);
  letter-spacing: 0.2px;
  margin: 0 0 var(--space-16) 0;
}

h1 { font-size: 40px; line-height: 1.15; }
h2 { font-size: 28px; line-height: 1.25; }
h3 { font-size: 22px; line-height: 1.3; }

p { margin: 0 0 var(--space-16) 0; color: var(--ink-soft); }
strong { color: var(--ink); }

/* Link styles */
a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold-deep); text-decoration: underline; }

/* Eyebrow label */
.eyebrow {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--gold-deep);
  margin-bottom: var(--space-12);
}

/* --------- Layout Containers (Flex-only) --------- */
.container {
  display: flex;
  width: 100%;
  padding-left: var(--space-20);
  padding-right: var(--space-20);
  justify-content: center;
}

.content-wrapper {
  display: flex;
  flex-direction: column; /* mobile-first */
  gap: var(--space-20);
  width: 100%;
  max-width: 1160px;
}

main section { /* breathing space for sections */
  margin-bottom: var(--space-60);
}

/* 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; }

/* --------- Header --------- */
header {
  background: var(--surface);
  border-bottom: 1px solid var(--stroke);
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}
header .content-wrapper {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-20);
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
}
.logo img { height: 36px; }

/* Desktop nav hidden on mobile */
.main-nav {
  display: none; /* shown on >= 992px */
  align-items: center;
  gap: var(--space-20);
}

.main-nav a {
  color: var(--ink);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  transition: color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.main-nav a[aria-current="page"] { color: var(--primary); box-shadow: inset 0 -2px 0 var(--gold); }
.main-nav a:hover { color: var(--gold-deep); background: var(--accent); }

.header-cta {
  display: none; /* shown on >= 992px */
  align-items: center; gap: var(--space-12);
}

/* Mobile burger */
.mobile-menu-toggle {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 8px;
  color: var(--ink);
  background: var(--accent);
  border: 1px solid var(--stroke);
  transition: background .2s ease, transform .15s ease;
}
.mobile-menu-toggle:hover { background: #EEF7F2; }
.mobile-menu-toggle:active { transform: scale(0.98); }

/* Mobile menu overlay */
.mobile-menu {
  position: fixed; inset: 0; z-index: 100;
  display: flex; flex-direction: column; /* overlay panel */
  background: rgba(0,0,0,0.4);
  transform: translateX(100%);
  opacity: 0; pointer-events: none;
  transition: transform .35s ease, opacity .25s ease;
}
.mobile-menu[aria-hidden="false"] {
  transform: translateX(0);
  opacity: 1; pointer-events: auto;
}
.mobile-menu .mobile-nav {
  margin-left: auto; /* slide-in from right */
  width: 86%; max-width: 380px;
  background: var(--surface);
  border-left: 1px solid var(--stroke);
  box-shadow: var(--shadow-md);
  display: flex; flex-direction: column; gap: 6px;
  padding: var(--space-24);
}
.mobile-menu-close {
  position: absolute; top: 14px; right: 14px;
  width: 40px; height: 40px; border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--stroke);
  color: var(--ink);
}
.mobile-nav a {
  display: flex; align-items: center;
  padding: 14px 12px; border-radius: 10px;
  color: var(--ink);
  background: transparent; border: 1px solid transparent;
}
.mobile-nav a:hover {
  background: var(--accent);
  border-color: var(--stroke);
}

/* --------- Hero --------- */
.hero {
  background: var(--surface);
  border-bottom: 1px solid var(--stroke);
}
.hero .content-wrapper {
  padding-top: var(--space-40);
  padding-bottom: var(--space-40);
}
.hero h1 { font-size: 36px; }
.hero p { font-size: 18px; }

.cta-group { display: flex; flex-wrap: wrap; gap: var(--space-12); }
.trust-icons { display: flex; flex-wrap: wrap; gap: var(--space-12); align-items: center; color: var(--muted); font-size: 14px; }
.trust-icons span { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border: 1px solid var(--stroke); border-radius: 999px; background: var(--surface-2); }
.trust-icons img { width: 18px; height: 18px; }

/* --------- Buttons --------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: var(--surface);
  color: var(--ink);
  transition: background .2s ease, color .2s ease, box-shadow .2s ease, transform .1s ease, border-color .2s ease;
  box-shadow: var(--shadow-sm);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(0,0,0,0.12); }

.btn.primary {
  background: var(--primary);
  color: #fff;
  border-color: rgba(14,90,58,0.08);
}
.btn.primary:hover { background: #0B4A30; }

.btn.secondary {
  background: var(--surface);
  color: var(--primary);
  border-color: var(--gold);
}
.btn.secondary:hover { background: var(--accent); color: var(--gold-deep); border-color: var(--gold-deep); }

.badge {
  display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px;
  background: rgba(200,162,77,0.12); color: var(--gold-deep); font-size: 12px; border: 1px solid var(--stroke);
}

/* --------- Text Blocks & Lists --------- */
.text-section {
  display: flex; flex-direction: column; gap: var(--space-12);
  max-width: 860px;
}
.text-section ul, .text-section ol { margin: 0; padding-left: 1.2rem; }
.text-section li { margin-bottom: 10px; }

/* Enhance lists for luxury feel */
.text-section ul { list-style: none; padding-left: 0; }
.text-section ul li { position: relative; padding-left: 22px; }
.text-section ul li::before {
  content: ""; position: relative; display: inline-block; margin-right: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold);
  position: absolute; left: 0; top: 10px;
}
.text-section ol { counter-reset: lux; list-style: none; padding-left: 0; }
.text-section ol li { counter-increment: lux; padding-left: 30px; position: relative; }
.text-section ol li::before {
  content: counter(lux) "."; position: absolute; left: 0; top: 0; color: var(--gold-deep); font-weight: bold;
}

/* Details/summary */
details { border: 1px solid var(--stroke); border-radius: var(--radius-md); background: var(--surface); padding: 14px 16px; }
summary { cursor: pointer; list-style: none; font-weight: 600; color: var(--ink); }
summary::-webkit-details-marker { display: none; }
details[open] { box-shadow: var(--shadow-sm); }

/* --------- Cards & Testimonials --------- */
.card {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--space-20);
}

.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  color: var(--ink); /* dark text on light background for readability */
}
.testimonial-card p { margin: 0; }
.testimonial-card + .testimonial-card { margin-top: var(--space-16); }

/* --------- Footer --------- */
footer {
  background: #0C4C32;
  color: #EAEAE5;
  border-top: 1px solid var(--stroke);
}
footer a { color: #EDE3C8; }
footer a:hover { color: #F6D88C; text-decoration: underline; }
footer .content-wrapper { padding-top: var(--space-32); padding-bottom: var(--space-32); }
footer nav, footer address, footer .text-section, footer .social {
  display: flex; flex-direction: column; gap: 8px;
}
footer nav a { display: inline-flex; padding: 4px 0; }
    footer h3,
    footer strong,
    footer p{
        color: #fff;
    }
    /* --------- Utility Layouts --------- */
    .content-grid {
        align-items: stretch;
    }
.text-image-section { align-items: center; }
.card-container .card { flex: 1 1 260px; }

/* --------- Forms (basic) --------- */
input, select, textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--stroke); background: var(--surface);
}

/* --------- Accessibility helpers --------- */
[aria-current="page"] { font-weight: 600; }

/* --------- Cookie Consent Banner --------- */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: flex; justify-content: center; padding: var(--space-16) var(--space-20);
  background: var(--surface);
  border-top: 1px solid var(--stroke);
  box-shadow: 0 -8px 24px rgba(0,0,0,0.08);
  transform: translateY(100%);
  opacity: 0; pointer-events: none;
  transition: transform .35s ease, opacity .25s ease;
}
.cookie-banner.show { transform: translateY(0); opacity: 1; pointer-events: auto; }
.cookie-banner .content {
  display: flex; flex-direction: column; gap: var(--space-12);
  width: 100%; max-width: 1160px;
}
.cookie-actions { display: flex; flex-wrap: wrap; gap: var(--space-12); }
.cookie-actions .btn { padding: 10px 16px; }
.cookie-accept { background: var(--primary); color: #fff; border-color: rgba(14,90,58,0.12); }
.cookie-accept:hover { background: #0B4A30; }
.cookie-reject { background: var(--surface); color: var(--ink); border-color: var(--stroke); }
.cookie-reject:hover { background: var(--accent); }
.cookie-settings { background: var(--surface); color: var(--gold-deep); border-color: var(--gold); }
.cookie-settings:hover { background: rgba(200,162,77,0.08); }

/* Cookie Preferences Modal */
.cookie-modal {
  position: fixed; inset: 0; z-index: 120;
  display: none; align-items: center; justify-content: center; padding: var(--space-20);
  background: rgba(0,0,0,0.45);
}
.cookie-modal.show { display: flex; }
.cookie-modal .modal-content {
  background: var(--surface);
  width: 100%; max-width: 720px;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  display: flex; flex-direction: column; gap: var(--space-16);
  padding: var(--space-24);
}
.cookie-modal .modal-header { display: flex; align-items: center; justify-content: space-between; }
.cookie-modal .modal-body { display: flex; flex-direction: column; gap: var(--space-12); }
.cookie-modal .modal-actions { display: flex; flex-wrap: wrap; gap: var(--space-12); justify-content: flex-end; }

/* --------- Micro-interactions --------- */
.card:hover, .testimonial-card:hover { transform: translateY(-2px); transition: transform .18s ease, box-shadow .18s ease; box-shadow: var(--shadow-md); }

/* --------- Images within text-section --------- */
.text-section img { display: inline-block; vertical-align: middle; margin-right: 8px; }

/* --------- Social text --------- */
.social p { margin: 0; }

/* --------- Page-specific subtle accents --------- */
.hero + section .content-wrapper h2::after {
  content: ""; display: block; width: 48px; height: 2px; background: var(--gold);
  margin-top: 10px; border-radius: 2px;
}

/* --------- Responsive (Mobile-first) --------- */
@media (min-width: 576px) {
  .hero h1 { font-size: 42px; }
}

@media (min-width: 768px) {
  .text-image-section { flex-direction: row; }
  .hero .content-wrapper { padding-top: var(--space-48); padding-bottom: var(--space-48); }
  h1 { font-size: 44px; }
  h2 { font-size: 30px; }
}

@media (min-width: 992px) {
  .main-nav { display: flex; }
  .header-cta { display: flex; }
  .mobile-menu-toggle { display: none; }
  header .content-wrapper { gap: var(--space-24); }
  .hero h1 { font-size: 48px; }
  .content-grid { gap: var(--space-24); }
}

/* --------- Additional Components present in HTML --------- */
/* CTA blocks in footers */
footer .btn.primary { background: var(--gold-deep); color: #1C1A14; border-color: var(--gold); }
footer .btn.primary:hover { background: #906E22; color: #fff; }

/* Address formatting */
address { font-style: normal; color: #EAEAE5; }
main address { color: var(--ink-soft); }

/* Trust badges and labels */
.badge + p { margin-top: 6px; }

/* Improve ordered lists outside text-section (e.g., steps) */
ol { counter-reset: step; list-style: none; padding-left: 0; }
ol > li { counter-increment: step; position: relative; padding-left: 32px; margin-bottom: 10px; }
ol > li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 22px; height: 22px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(200,162,77,0.16); color: var(--gold-deep);
  font-size: 12px; font-weight: 700;
  border: 1px solid var(--stroke);
}

/* Header CTA alignment tweaks */
.header-cta .btn { white-space: nowrap; }

/* Hero contrast for secondary pages */
.hero { background: var(--surface); }

/* Tables (if any appear) */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--stroke); }
th { color: var(--ink); }

/* --------- Ensuring flex usage for all known containers --------- */
header, main, footer, nav, section { display: block; }
nav[aria-label], footer nav, .header-cta, .cta-group, .trust-icons { display: flex; }

/* --------- Prevent overlap & spacing safety --------- */
section .content-wrapper > * + * { margin-top: 0; }

/* --------- Active states --------- */
.btn:active { transform: translateY(0); box-shadow: var(--shadow-sm); }

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