/* ════════════════════════════════════════════════════════════
   Alvar Knowledge — „Der belegte Satz" (Editorial Archive)
   Shared stylesheet for the landing page
   ════════════════════════════════════════════════════════════ */

:root {
  --emerald: #17A378;
  --green-dark: #0F6B4F;
  --ink: #0B1F1A;
  --muted: #4A5D58;
  --gold: #E8B14F;
  --gold-dark: #8A5F12;
  --bg: #F7FAF9;
  --paper: #FFFFFF;
  --line: #E2EAE7;
  --rule: #C9D6D1;
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans: system-ui, -apple-system, 'Segoe UI', 'Helvetica Neue', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.page {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 48px;
}

p { text-wrap: pretty; }

/* ── Nav ───────────────────────────────────────────────────── */
.topline { border-top: 3px solid var(--ink); }

nav {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-right: auto;
  text-decoration: none;
  color: var(--ink);
}
.wordmark { display: flex; align-items: baseline; gap: 9px; }
.wordmark .alvar {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.45rem;
  letter-spacing: -0.01em;
}
.wordmark .knowledge {
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav-links { display: flex; gap: 28px; }
.nav-links a { font-size: 0.92rem; color: var(--muted); text-decoration: none; }
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--green-dark);
  text-decoration: none;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 2px;
}
.nav-cta:hover { color: var(--ink); }

/* ── Type ──────────────────────────────────────────────────── */
h1, h2 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.12;
  margin: 0 0 28px;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 4.6vw, 4.05rem); }
h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 1.18; }
h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.35rem;
  line-height: 1.3;
  margin: 0 0 12px;
}
h1 em, h2 em { font-style: italic; font-weight: 600; }

.kicker {
  display: flex;
  align-items: baseline;
  gap: 16px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 34px;
}
.kicker .az {
  color: var(--gold-dark);
  letter-spacing: 0.12em;
  font-weight: 500;
}
.kicker::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid var(--rule);
  transform: translateY(-4px);
}

.fnref {
  font-family: var(--serif);
  font-size: 0.5em;
  vertical-align: super;
  line-height: 0;
  color: var(--emerald);
  text-decoration: none;
  font-weight: 600;
  padding-left: 0.12em;
}
.fnref:hover { color: var(--gold-dark); }

.lede {
  font-family: var(--serif);
  font-size: 1.22rem;
  line-height: 1.55;
  max-width: 38rem;
  margin: 0 0 14px;
}

/* ── Sections ──────────────────────────────────────────────── */
section.block { padding: 88px 0 72px; border-top: 1px solid var(--rule); }
section.block:first-of-type { border-top: none; }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 72px;
  margin-bottom: 56px;
  align-items: baseline;
}
.section-head .intro {
  font-family: var(--serif);
  font-size: 1.12rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 72px;
  padding: 88px 0 64px;
  align-items: start;
}
.standfirst {
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1.55;
  max-width: 36rem;
  margin: 0 0 14px;
}
.standfirst .contra { font-style: italic; color: var(--muted); }
.standfirst .fnref { font-size: 0.62em; }

.ctas { display: flex; align-items: center; gap: 28px; margin-top: 40px; }
.btn-primary {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: var(--green-dark);
  text-decoration: none;
  padding: 15px 32px;
  border-radius: 3px;
  display: inline-block;
}
.btn-primary:hover { background: var(--ink); }
.link-quiet {
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
}
.link-quiet:hover { border-color: var(--ink); }

.trustline {
  margin-top: 26px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.02rem;
  color: var(--muted);
}

/* ── Exhibits ──────────────────────────────────────────────── */
.exhibit-frame {
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(11,31,26,0.05), 0 24px 48px -24px rgba(11,31,26,0.18);
  padding: 10px;
  position: relative;
}
.exhibit-frame img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
}
.exhibit-frame.crop img { height: 420px; object-fit: cover; object-position: top; }
.exhibit-stamp { position: absolute; top: -22px; right: -22px; transform: rotate(8deg); }
.exhibit-caption {
  margin-top: 18px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: baseline;
}
.exhibit-caption .fig {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-dark);
  white-space: nowrap;
}
.exhibit-caption p {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--muted);
}
.exhibit-caption .q { font-style: normal; color: var(--ink); }

/* ── Footnotes ─────────────────────────────────────────────── */
.footnotes {
  border-top: 1px solid var(--ink);
  margin: 24px 0 0;
  padding: 26px 0 72px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
.footnote {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  font-family: var(--serif);
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--muted);
  transition: color 0.25s ease;
}
.footnote .num { font-weight: 600; color: var(--emerald); }
.footnote.lit { color: var(--ink); }
.footnote.lit .num { color: var(--gold-dark); }

.fn-single {
  border-top: 1px solid var(--rule);
  margin-top: 48px;
  padding-top: 20px;
  max-width: 44rem;
}

/* ── Problem: three editorial columns ──────────────────────── */
.col3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.col3 > div { padding: 0 40px; border-left: 1px solid var(--rule); }
.col3 > div:first-child { padding-left: 0; border-left: none; }
.col3 h3 { font-size: 1.25rem; }
.col3 p { font-size: 0.99rem; color: var(--muted); margin: 0; }
.col3 .ord {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--gold-dark);
  display: block;
  margin-bottom: 14px;
}

/* ── Story ─────────────────────────────────────────────────── */
.story {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 64px;
  align-items: center;
  max-width: 980px;
}
.story blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.4vw, 2.05rem);
  line-height: 1.4;
  font-weight: 500;
}
.story figcaption {
  margin-top: 22px;
  font-size: 0.92rem;
  color: var(--muted);
}
.story figcaption strong { color: var(--ink); font-weight: 600; }

/* ── Steps ─────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.steps > div { padding: 0 36px; border-left: 1px solid var(--rule); }
.steps > div:first-child { padding-left: 0; border-left: none; }
.steps .num {
  font-family: var(--serif);
  font-size: 2.6rem;
  font-weight: 600;
  color: var(--rule);
  line-height: 1;
  display: block;
  margin-bottom: 18px;
}
.steps h3 { font-size: 1.18rem; }
.steps p { font-size: 0.95rem; color: var(--muted); margin: 0; }

/* ── Features ──────────────────────────────────────────────── */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 80px;
  padding: 64px 0;
  border-top: 1px solid var(--rule);
  align-items: center;
}
.feature:first-of-type { border-top: none; padding-top: 0; }
.feature.flip .feature-copy { order: 2; }
.feature.flip .feature-media { order: 1; }
.feature .eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-dark);
  display: block;
  margin-bottom: 16px;
}
.feature h3 { font-size: clamp(1.5rem, 2.2vw, 1.9rem); margin-bottom: 18px; }
.feature p { color: var(--muted); }
.feature ul {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.feature li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  font-size: 0.96rem;
  color: var(--ink);
}
.feature li::before {
  content: "—";
  color: var(--gold-dark);
  font-family: var(--serif);
}

.quotes { display: grid; gap: 14px; margin-top: 26px; }
.quotes blockquote {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.08rem;
  color: var(--ink);
  border-left: 2px solid var(--gold);
  padding-left: 18px;
}

/* ── Ledger (Warum nicht ChatGPT) ──────────────────────────── */
.ledger { border-top: 2px solid var(--ink); }
.ledger-head, .ledger-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.ledger-head {
  padding: 18px 0 14px;
  border-bottom: 1px solid var(--rule);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.ledger-head .l { color: var(--muted); }
.ledger-head .r { color: var(--green-dark); }
.ledger-row { padding: 22px 0; border-bottom: 1px solid var(--rule); }
.ledger-row .l {
  font-family: var(--serif);
  font-style: italic;
  color: var(--muted);
}
.ledger-row .r { color: var(--ink); }

/* ── Sicherheit ────────────────────────────────────────────── */
.sec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 56px;
}
.sec-item h3 { font-size: 1.12rem; display: flex; gap: 12px; align-items: baseline; }
.sec-item h3 .idx {
  font-style: italic;
  font-weight: 500;
  color: var(--gold-dark);
  font-size: 0.95rem;
}
.sec-item p { font-size: 0.94rem; color: var(--muted); margin: 0; }

/* ── Video (dark) ──────────────────────────────────────────── */
.video-band {
  background: var(--ink);
  color: #EAF2EF;
  margin-top: 88px;
}
.video-band .inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 80px;
  padding: 88px 0;
  align-items: center;
}
.video-band h2 { color: #fff; }
.video-band .kicker { color: var(--gold); }
.video-band .kicker::after { border-color: rgba(234,242,239,0.25); }
.video-band p { color: rgba(234,242,239,0.75); }
.video-poster {
  position: relative;
  display: block;
  border: 1px solid rgba(234,242,239,0.2);
}
.video-poster img { display: block; width: 100%; height: auto; }
.video-poster .play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.video-poster .play span {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: rgba(247,250,249,0.92);
  display: grid;
  place-items: center;
  transition: transform 0.2s ease;
}
.video-poster:hover .play span { transform: scale(1.06); }

.figures {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid rgba(234,242,239,0.2);
}
.figures > div {
  padding: 36px 36px 56px;
  border-left: 1px solid rgba(234,242,239,0.2);
}
.figures > div:first-child { padding-left: 0; border-left: none; }
.figures .big {
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 600;
  color: #fff;
  display: block;
  line-height: 1.1;
  margin-bottom: 10px;
}
.figures .big em { color: var(--gold); font-style: italic; }
.figures p { font-size: 0.9rem; margin: 0; }

/* ── Preise ────────────────────────────────────────────────── */
.tariffs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 2px solid var(--ink);
}
.tariff {
  padding: 36px 40px 44px;
  border-left: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
}
.tariff:first-child { padding-left: 0; border-left: none; }
.tariff .t-name {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 6px;
}
.tariff .badge {
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
  border: 1px solid var(--gold);
  padding: 3px 9px;
  border-radius: 2px;
}
.tariff .t-for {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.97rem;
  color: var(--muted);
  margin: 0 0 26px;
}
.tariff .t-price {
  font-family: var(--serif);
  font-size: 2.1rem;
  font-weight: 600;
  line-height: 1;
}
.tariff .t-price small {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
}
.tariff .t-sub { font-size: 0.85rem; color: var(--muted); margin: 8px 0 26px; }
.tariff ul {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: grid;
  gap: 10px;
  flex: 1;
}
.tariff li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--ink);
}
.tariff li::before {
  content: "—";
  color: var(--gold-dark);
  font-family: var(--serif);
}
.tariff .t-cta {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--green-dark);
  text-decoration: none;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 2px;
  align-self: start;
}
.tariff .t-cta:hover { color: var(--ink); }
.tariff.highlight { background: var(--paper); box-shadow: 0 24px 48px -32px rgba(11,31,26,0.25); border-left-color: transparent; padding: 36px 40px 44px; }

/* ── FAQ ───────────────────────────────────────────────────── */
.faq { max-width: 800px; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--serif);
  font-size: 1.18rem;
  font-weight: 600;
  padding: 24px 36px 24px 0;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 22px;
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--gold-dark);
}
.faq details[open] summary::after { content: "–"; }
.faq details p {
  margin: 0 0 26px;
  color: var(--muted);
  max-width: 42rem;
}

/* ── Abschluss ─────────────────────────────────────────────── */
.closing { text-align: center; max-width: 760px; margin: 0 auto; padding: 110px 0; }
.closing h2 { font-size: clamp(2.1rem, 3.4vw, 2.9rem); }
.closing p { font-family: var(--serif); font-size: 1.15rem; color: var(--muted); }
.closing .ctas { justify-content: center; }
.closing .alt { margin-top: 26px; font-size: 0.95rem; color: var(--muted); }
.closing .alt a { color: var(--green-dark); }

/* ── Footer ────────────────────────────────────────────────── */
footer {
  border-top: 2px solid var(--ink);
  padding: 56px 0 64px;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 3fr);
  gap: 64px;
  font-size: 0.9rem;
  color: var(--muted);
}
footer .f-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
footer h4 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 14px;
}
footer p { margin: 0 0 10px; }
footer a { color: var(--green-dark); text-decoration: none; }
footer a:hover { text-decoration: underline; }
.copyright {
  border-top: 1px solid var(--rule);
  padding: 20px 0 40px;
  font-size: 0.82rem;
  color: var(--muted);
  font-family: var(--serif);
  font-style: italic;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 980px) {
  .page { padding: 0 24px; }
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; gap: 56px; padding: 56px 0 48px; }
  .hero .exhibit { border-left: none; padding-left: 0; }
  .section-head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 40px; }
  .footnotes { grid-template-columns: 1fr; gap: 18px; padding-bottom: 48px; }
  .col3, .steps, .sec-grid, .tariffs, .figures { grid-template-columns: 1fr; }
  .col3 > div, .steps > div, .tariffs .tariff, .figures > div {
    padding: 28px 0;
    border-left: none;
    border-top: 1px solid var(--rule);
  }
  .col3 > div:first-child, .steps > div:first-child, .figures > div:first-child { border-top: none; padding-top: 0; }
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 36px; padding: 48px 0; }
  .feature.flip .feature-copy { order: 1; }
  .feature.flip .feature-media { order: 2; }
  .ledger-head, .ledger-row { grid-template-columns: 1fr; gap: 10px; }
  .ledger-head .r { display: none; }
  .ledger-row .r::before { content: "Alvar Knowledge — "; font-weight: 600; color: var(--green-dark); }
  .story { grid-template-columns: 1fr; gap: 32px; }
  .video-band .inner { grid-template-columns: 1fr; gap: 48px; padding: 56px 0; }
  footer { grid-template-columns: 1fr; gap: 36px; }
}

/* ════════════════════════════════════════════════════════════
   Production additions (not part of the design prototype):
   self-hosted fonts, a11y, mobile nav, inline video player
   ════════════════════════════════════════════════════════════ */

/* Source Serif 4 — selbst gehostet (DSGVO; ersetzt Google-Fonts-Links) */
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/source-serif-4-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/source-serif-4-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/source-serif-4-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/source-serif-4-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* A11y */
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 10px 18px; z-index: 200; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 2px solid var(--green-dark); outline-offset: 3px; }

/* Mobile nav burger (Prototyp blendet Links < 980px nur aus) */
.nav-burger { display: none; background: none; border: none; padding: 8px; cursor: pointer; }
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform 0.2s ease, opacity 0.2s ease; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 980px) {
  .nav-burger { display: block; }
  .nav-links.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 92px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--rule);
    padding: 12px 24px 22px;
    gap: 0;
    z-index: 50;
  }
  .nav-links.is-open a { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 1.02rem; }
  nav { position: relative; }
}

/* Inline-Videoplayer (ersetzt das Poster nach Klick) */
.video-poster video { display: block; width: 100%; height: auto; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .video-poster .play span { transition: none; }
}

/* Schmale Viewports: Nav-Zeile kompakt halten */
@media (max-width: 560px) {
  nav { gap: 14px; }
  .wordmark .knowledge { display: none; }
  .nav-cta { font-size: 0.86rem; }
}
