/* ============================================================
   LEBENDIGES WISSEN — Shared Styles
   Used across all pages of the website.
   ============================================================ */

/* ---- Fonts ---- */
@font-face {
  font-family: 'Libre Baskerville';
  src: url('fonts/LibreBaskerville-VariableFont_wght.ttf') format('truetype');
  font-weight: 400 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Libre Baskerville';
  src: url('fonts/LibreBaskerville-Italic-VariableFont_wght.ttf') format('truetype');
  font-weight: 400 700; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Mulish';
  src: url('fonts/Mulish-VariableFont_wght.ttf') format('truetype');
  font-weight: 200 900; font-style: normal; font-display: swap;
}
@import url('https://fonts.googleapis.com/css2?family=Almarai:wght@400;700;800&display=swap');

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; background: var(--bg); }
body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
}
a { -webkit-tap-highlight-color: transparent; }
::selection { background: var(--accent); color: var(--ink); }
img { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, blockquote, figure { margin: 0; }
button { font: inherit; }

/* ---- Tokens ---- */
:root {
  --serif: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
  --sans: 'Mulish', system-ui, -apple-system, sans-serif;
  --ui: 'Almarai', 'Mulish', system-ui, sans-serif;

  --green: #1F2E21;
  --green-700: #2C4030;
  --green-300: #6E7E70;
  --offwhite: #F5F4EF;
  --white: #FFFFFF;
  --paper-shade: #ECEAE1;
  --paper-line: #DEDCD2;
  --ink: #0D0D0D;
  --accent: #FEBB48;
  --accent-deep: #E5A22F;
  --accent-soft: #FCE6B4;

  --bg: var(--offwhite);
  --fg-on-dark: #F5F4EF;
  --fg-on-dark-muted: #A9B3AB;
  --text-secondary: #3C463E;
  --text-muted: #6E7E70;

  --max-w: 1120px;
  --max-w-narrow: 820px;
  --max-w-text: 680px;
  --pad-x: 32px;
  --section-y: 104px;
}

/* ---- Typography ---- */
.t-display {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(36px, 5.4vw, 64px); line-height: 1.12;
  letter-spacing: -0.01em;
}
.t-h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(32px, 4.2vw, 48px); line-height: 1.15;
  letter-spacing: -0.01em;
}
.t-h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(28px, 3.6vw, 40px); line-height: 1.18;
  letter-spacing: -0.01em;
}
.t-h3 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(22px, 2.6vw, 28px); line-height: 1.3;
}
.t-h4 {
  font-family: var(--serif); font-weight: 400;
  font-size: 22px; line-height: 1.3; letter-spacing: -0.005em;
}
.t-quote {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(22px, 3vw, 30px); line-height: 1.42;
  letter-spacing: -0.005em;
}
.t-body { font-family: var(--sans); font-size: 16.5px; line-height: 1.75; color: var(--text-secondary); }
.t-small { font-family: var(--sans); font-size: 14px; line-height: 1.6; color: var(--text-muted); }

/* ---- Overline ---- */
.overline {
  font-family: var(--sans); font-weight: 700; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.14em; color: var(--text-muted);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--ui); font-weight: 400; font-size: 14px;
  letter-spacing: 0.02em; padding: 14px 28px;
  border: none; border-radius: 0; cursor: pointer;
  text-decoration: none; text-align: center; line-height: 1.1;
  transition: background-color 160ms ease, transform 120ms ease, color 160ms ease;
}
.btn--lg { padding: 18px 38px; font-size: 16px; }
.btn--primary { background: var(--accent); color: var(--ink); }
.btn--primary:hover { background: var(--accent-deep); }
.btn--primary:active { transform: translateY(1px); }
.btn--dark { background: var(--green); color: var(--offwhite); }
.btn--dark:hover { background: var(--green-700); }
.btn--dark:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--offwhite); }
.btn--ghost-light { background: transparent; color: var(--fg-on-dark); border: 1px solid rgba(245,244,239,0.5); }
.btn--ghost-light:hover { background: var(--fg-on-dark); color: var(--green); }

/* ---- Layout ---- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad-x); }
.container--narrow { max-width: var(--max-w-narrow); margin: 0 auto; padding: 0 var(--pad-x); }
.container--text { max-width: var(--max-w-text); margin: 0 auto; padding: 0 var(--pad-x); }
.section { padding: var(--section-y) 0; }
.section--dark { background: var(--green); color: var(--fg-on-dark); }
.section--dark .overline { color: var(--accent); }
.section--shade { background: var(--paper-shade); }
.section--light { background: var(--offwhite); }

/* ---- Navigation ---- */
.nav {
  position: sticky; top: 0; z-index: 30;
  background: rgba(245,244,239,0.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--paper-line);
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 16px var(--pad-x);
  display: flex; align-items: center; justify-content: space-between; gap: 24;
}
.nav-logo {
  font-family: var(--serif); font-size: 21px; color: var(--green);
  letter-spacing: -0.01em; text-decoration: none; white-space: nowrap;
}
.nav-right { display: flex; align-items: center; gap: 28px; }
.nav-links { display: flex; gap: 26px; }
.nav-links a {
  font-family: var(--ui); font-weight: 400; font-size: 14px;
  color: var(--ink); text-decoration: none;
  padding-bottom: 3px; border-bottom: 1px solid transparent;
  transition: border-color 140ms;
}
.nav-links a:hover { border-color: var(--ink); }
.nav-links a.active { border-color: var(--accent); color: var(--green); }

/* Mobile menu toggle */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; transition: all 200ms; }

/* ---- Footer ---- */
.footer { background: var(--ink); color: var(--fg-on-dark); }
.footer-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 72px var(--pad-x) 40px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 48px; align-items: start;
}
.footer-brand { font-family: var(--serif); font-size: 24px; letter-spacing: -0.01em; }
.footer-text {
  font-family: var(--sans); font-size: 15px; line-height: 1.75;
  color: #B8BDB6; max-width: 46ch; margin-top: 18px;
}
.footer-text a { color: var(--accent); text-decoration: none; }
.footer-text a:hover { border-bottom: 1px solid var(--accent); }
.footer-col-title { font-family: var(--sans); font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent); }
.footer-links { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-direction: column; gap: 12px; }
.footer-links a {
  font-family: var(--ui); font-weight: 400; font-size: 14px;
  color: #C7CCC8; text-decoration: none; transition: color 140ms;
}
.footer-links a:hover { color: var(--accent); }
.footer-social { display: flex; gap: 18px; margin-top: 24px; }
.footer-social a { color: #C7CCC8; transition: color 140ms; }
.footer-social a:hover { color: var(--accent); }
.footer-bottom {
  margin-top: 52px; padding-top: 22px; border-top: 1px solid rgba(245,244,239,0.12);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-family: var(--sans); font-size: 12px; color: #6E766F;
}
.footer-bottom a { color: #6E766F; text-decoration: none; }
.footer-bottom a:hover { color: var(--accent); }

/* ---- Reveal ---- */
.reveal {
  opacity: 0; transform: translateY(14px);
  transition: opacity 520ms ease, transform 520ms ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ---- Prose (long-form text) ---- */
.prose { font-family: var(--sans); font-size: 16.5px; line-height: 1.8; color: var(--text-secondary); max-width: 64ch; }
.prose p { margin-bottom: 20px; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose em { font-style: italic; }
.prose blockquote {
  font-family: var(--serif); font-style: italic; font-size: 22px;
  line-height: 1.5; color: var(--green); margin: 36px 0;
  padding-left: 24px; border-left: 2px solid var(--accent);
}
.prose ul, .prose ol { padding-left: 20px; margin-bottom: 20px; }
.prose li { margin-bottom: 8px; }
.prose h2 {
  font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 3vw, 34px);
  line-height: 1.2; color: var(--ink); margin: 56px 0 20px; letter-spacing: -0.01em;
}
.prose h3 {
  font-family: var(--serif); font-weight: 400; font-size: 22px;
  line-height: 1.3; color: var(--green); margin: 40px 0 16px;
}

/* Prose on dark backgrounds */
.section--dark .prose { color: #D8DCD6; }
.section--dark .prose strong { color: var(--fg-on-dark); }
.section--dark .prose blockquote { color: var(--fg-on-dark); border-left-color: var(--accent); }
.section--dark .prose h2 { color: var(--fg-on-dark); }
.section--dark .prose h3 { color: var(--accent); }

/* ---- Cards ---- */
.card {
  background: var(--white); border: 1px solid var(--paper-line);
  padding: 30px; display: flex; flex-direction: column;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px -20px rgba(31,46,33,0.4); border-color: #CFCDC2; }
}
.card h3 { font-family: var(--serif); font-weight: 400; font-size: 24px; color: var(--ink); }
.card p { font-family: var(--sans); font-size: 15.5px; line-height: 1.7; color: var(--text-secondary); margin-top: 14px; }

/* ---- FAQ Accordion ---- */
.faq-list { border-top: 1px solid var(--paper-line); }
.faq-item { border-bottom: 1px solid var(--paper-line); }
.faq-question {
  appearance: none; background: transparent; border: none; width: 100%;
  text-align: left; cursor: pointer; padding: 19px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
  font-family: var(--serif); font-weight: 400; font-size: clamp(16.5px, 2vw, 19px);
  line-height: 1.35; color: var(--ink); letter-spacing: -0.005em;
}
.faq-question:hover, .faq-question[aria-expanded="true"] { color: var(--green); }
.faq-arrow { flex: none; transition: transform 220ms ease; }
.faq-question[aria-expanded="true"] .faq-arrow { transform: rotate(180deg); }
.faq-question:hover .faq-arrow path,
.faq-question[aria-expanded="true"] .faq-arrow path { stroke: var(--accent-deep); }
.faq-answer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 260ms ease; }
.faq-answer.open { grid-template-rows: 1fr; }
.faq-answer-inner { overflow: hidden; }
.faq-answer-content { padding: 0 0 22px; max-width: 64ch; }
.faq-answer-content p { font-family: var(--sans); font-size: 15.5px; line-height: 1.7; color: var(--text-secondary); }

/* ---- Testimonial Cards ---- */
.testimonial-card {
  background: var(--white); border: 1px solid var(--paper-line);
  padding: 28px 26px; display: flex; flex-direction: column;
}
.testimonial-card p {
  font-family: var(--serif); font-style: italic; font-size: 17.5px;
  line-height: 1.5; color: #2A352C; flex: 1;
}
.testimonial-card .attribution {
  font-family: var(--sans); font-weight: 700; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.14em; color: var(--text-muted); margin-top: 20px;
}

/* ---- Grids ---- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 56px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

/* ---- Image ---- */
.img-cover { width: 100%; height: 100%; object-fit: cover; }
.img-circle { border-radius: 50%; }

/* ---- Marker dots/dashes ---- */
.marker-dot {
  display: flex; align-items: center; height: 1.6em;
}
.marker-dot::before {
  content: ''; width: 7px; height: 7px; background: var(--accent); display: block;
}
.marker-dash {
  display: flex; align-items: center; height: 1.6em;
}
.marker-dash::before {
  content: ''; width: 10px; height: 1px; background: #9A9A90; display: block;
}

/* ---- Utility ---- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 12px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 32px; }
.mt-4 { margin-top: 48px; }
.mt-5 { margin-top: 64px; }
.mb-3 { margin-bottom: 32px; }
.max-w-prose { max-width: 64ch; }
.max-w-narrow { max-width: 46ch; }
.accent-color { color: var(--accent); }

/* ---- Responsive: Tablet ---- */
@media (max-width: 920px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

/* ---- Responsive: Mobile ---- */
@media (max-width: 760px) {
  :root { --pad-x: 22px; --section-y: 72px; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; gap: 16px;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(245,244,239,0.97); backdrop-filter: blur(10px);
    padding: 24px var(--pad-x); border-bottom: 1px solid var(--paper-line);
  }
  .grid-2 { grid-template-columns: 1fr; gap: 28px; }
  .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .t-display { font-size: clamp(32px, 8vw, 48px); }
}
