/* ==========================================================================
   BETTERAI.STUDIO / KANZLEI  v2 (strukturell eigenständig)
   Metapher: Mandanteninformation / Gutachten. Dokumentkopf mit Betreff und
   Inhaltsverzeichnis, Marginalspalte mit römischen Ziffern, Anlagen-Rahmen,
   Konditionen-Tableau, Autorenkasten, ruhiger Abschluss statt Riesen-CTA.
   Papier, Anthrazit, ein Tiefgrün. Newsreader + Public Sans.
   ========================================================================== */

/* ---- Fonts (self-hosted) ---- */
@font-face {
  font-family: 'Newsreader';
  src: url('../fonts/newsreader-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Newsreader';
  src: url('../fonts/newsreader-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Newsreader';
  src: url('../fonts/newsreader-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Public Sans';
  src: url('../fonts/publicsans-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Public Sans';
  src: url('../fonts/publicsans-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Public Sans';
  src: url('../fonts/publicsans-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ---- Tokens ---- */
:root {
  --paper: #F6F4EE;
  --card: #FFFFFF;
  --ink: #1A1D1B;
  --green: #0B4F3C;
  --green-soft: #A8CFC0;

  --bg: var(--paper);
  --fg: var(--ink);
  --fg-60: rgba(26, 29, 27, 0.64);
  --fg-16: rgba(26, 29, 27, 0.16);
  --acc: var(--green);

  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Public Sans', -apple-system, system-ui, sans-serif;
  --gutter: clamp(24px, 4vw, 72px);
  --page-max: 1280px;
  --ease-out: cubic-bezier(0.19, 1, 0.22, 1);
}

.deep {
  --bg: var(--green);
  --fg: #F0EFE7;
  --fg-60: rgba(240, 239, 231, 0.68);
  --fg-16: rgba(240, 239, 231, 0.22);
  --acc: var(--green-soft);
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-padding-top: 92px; }
html.lenis { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

.deep { background: var(--bg); color: var(--fg); }

::selection { background: var(--green); color: #FFFFFF; }

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 2px solid var(--acc);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 10px;
  z-index: 300;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 16px;
  text-decoration: none;
}
.skip-link:focus { left: 10px; }

/* ---- Typo-Utilities ---- */
.lbl {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  line-height: 1.5;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 500; }
em, i { font-weight: inherit; }

/* Satzspiegel: Inhalt zentriert mit Maximalbreite, nie an der Viewport-Kante */
.wrap {
  max-width: var(--page-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.link-line {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--fg);
  border-bottom: 1.5px solid var(--acc);
  padding-bottom: 4px;
  transition: color 0.25s ease;
}
.link-line:hover { color: var(--acc); }
.link-line.big { font-size: 15.5px; }

/* ---- Header ---- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(246, 244, 238, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.site-header.scrolled { border-bottom-color: var(--fg-16); }
.header-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 17px var(--gutter);
}
.site-header a { text-decoration: none; color: var(--ink); }
.wordmark { font-weight: 600; font-size: 13.5px; letter-spacing: 0.15em; text-transform: uppercase; }
.wordmark span { color: var(--green); }
.site-nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 32px); }
.site-nav a { font-size: 13.5px; font-weight: 500; letter-spacing: 0.04em; position: relative; }
.site-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-out);
}
.site-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.site-nav .back { color: var(--fg-60); }

/* ==========================================================================
   DOKUMENTKOPF (statt Hero-Inszenierung)
   ========================================================================== */
.doc-head { padding-top: 128px; padding-bottom: clamp(48px, 7vh, 80px); }
.doc-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--fg-60);
  border-bottom: 2px solid var(--ink);
  padding-bottom: 14px;
}
.doc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(250px, 23vw, 310px);
  gap: clamp(28px, 5vw, 88px);
  margin-top: clamp(30px, 5vh, 52px);
  align-items: center;
}
.doc-subject .betreff { color: var(--fg-60); margin-bottom: 14px; }
.doc-subject h1 {
  font-size: clamp(44px, 6.6vw, 108px);
  line-height: 1.04;
  letter-spacing: -0.005em;
  max-width: 13ch;
}
.doc-subject h1 em { font-style: italic; color: var(--green); }
.doc-subject .lead { font-size: 18px; margin-top: 24px; max-width: 46ch; }
.doc-subject .lead strong { font-weight: 600; }
.doc-actions { display: flex; flex-wrap: wrap; gap: 14px 26px; margin-top: 28px; align-items: center; }
.doc-note { color: var(--fg-60); font-size: 14.5px; margin-top: 14px; }

/* Inhaltsverzeichnis (kompakt, Beiwerk zur Headline) */
.toc {
  border: 1px solid var(--ink);
  background: var(--card);
  padding: 16px 18px 6px;
}
.toc .toc-title { color: var(--fg-60); margin-bottom: 8px; font-size: 11px; }
.toc ol { list-style: none; }
.toc li { border-bottom: 1px solid var(--fg-16); }
.toc li:last-child { border-bottom: none; }
.toc a {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 8px 2px;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 16.5px;
  transition: color 0.2s ease, padding-left 0.25s var(--ease-out);
}
.toc a:hover { color: var(--green); padding-left: 8px; }
.toc .rn { font-family: var(--sans); font-weight: 600; font-size: 11px; letter-spacing: 0.1em; color: var(--green); width: 24px; flex: none; }
.toc .pg { margin-left: auto; color: var(--fg-60); font-size: 12px; font-family: var(--sans); }

/* ==========================================================================
   ABSCHNITTE MIT MARGINALSPALTE (Gutachten-Layout)
   ========================================================================== */
/* Nur vertikales Padding setzen: das Shorthand wuerde den .wrap-Gutter loeschen */
.sec {
  padding-top: clamp(56px, 9vh, 110px);
  padding-bottom: clamp(56px, 9vh, 110px);
  border-top: 1px solid var(--fg-16);
}
.sec-grid {
  display: grid;
  grid-template-columns: 3fr 9fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
}
.margin-col { position: sticky; top: 104px; }
.margin-col .roman {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 4vw, 58px);
  line-height: 1;
  color: var(--acc);
}
.margin-col .m-title { margin-top: 10px; }
.margin-col .m-hint { color: var(--fg-60); margin-top: 6px; font-size: 11.5px; }

.content-col { max-width: 860px; }
.content-col .statement {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 3.8vw, 56px);
  line-height: 1.14;
  max-width: 24ch;
}
.content-col .statement em { font-style: italic; color: var(--acc); }
.content-col .body-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 44px);
  margin-top: 28px;
}
.content-col .body-2col p { font-size: 16.5px; max-width: 44ch; }
.content-col .body-2col .dim { color: var(--fg-60); }
.content-col p strong { font-weight: 600; color: var(--fg); }

/* Zitat-Liste (Anfragen aus KI-Systemen) */
.quote-list { margin-top: 36px; border-top: 2px solid var(--ink); }
.quote-list li {
  list-style: none;
  padding: 20px 0 18px;
  border-bottom: 1px solid var(--fg-16);
}
.quote-list .q {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 2.3vw, 28px);
  line-height: 1.3;
  display: block;
}
.quote-list .q-src { display: flex; justify-content: space-between; gap: 14px; margin-top: 8px; color: var(--fg-60); }

/* Anlagen (gerahmte Beweisstücke) */
.annex { margin-top: 40px; }
.annex + .annex { margin-top: 34px; }
.annex-caption {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--fg-60);
  margin-bottom: 10px;
}
.annex-caption .a-id { color: var(--green); }
.deep .annex-caption .a-id { color: var(--green-soft); }

/* Chat-Panel innerhalb einer Anlage */
.answer-card {
  background: var(--card);
  border: 1px solid var(--ink);
  display: flex;
  flex-direction: column;
}
.answer-card.cited { border-color: var(--green); box-shadow: 6px 6px 0 rgba(11, 79, 60, 0.10); }
.answer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  border-bottom: 1px solid var(--fg-16);
  color: var(--fg-60);
}
.answer-card.cited .answer-head { color: var(--green); border-bottom-color: rgba(11, 79, 60, 0.25); }
.answer-head .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--fg-16); }
.answer-card.cited .answer-head .dot { background: var(--green); }
.answer-body { padding: 20px 18px; display: flex; flex-direction: column; gap: 15px; }
.msg { display: flex; gap: 12px; align-items: flex-start; }
.msg.user { flex-direction: row-reverse; }
.avatar {
  flex: none;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
}
.avatar.ai { background: var(--card); color: var(--ink); border: 1px solid var(--ink); border-radius: 4px; }
.answer-card.cited .avatar.ai { border-color: var(--green); color: var(--green); }
.bubble { font-size: 15px; line-height: 1.6; padding: 12px 15px; max-width: 82%; }
.msg.user .bubble { background: var(--ink); color: var(--paper); border-radius: 10px 10px 2px 10px; }
.msg.ai .bubble { border: 1px solid var(--fg-16); border-radius: 10px 10px 10px 2px; }
.bubble strong { font-weight: 600; }
.bubble .cite {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  background: var(--green);
  color: #FFFFFF;
  padding: 2px 9px;
  border-radius: 3px;
  white-space: nowrap;
  transform: translateY(-1px);
}
.sources {
  display: flex;
  gap: 10px;
  align-items: baseline;
  flex-wrap: wrap;
  color: var(--fg-60);
  border-top: 1px dashed var(--fg-16);
  padding-top: 13px;
  font-size: 12.5px;
}
.sources i { font-style: normal; border: 1px solid var(--fg-16); padding: 3px 9px; border-radius: 3px; }
.sources i.hit { border-color: var(--green); color: var(--green); font-weight: 600; }
.answer-verdict { border-top: 1px solid var(--fg-16); padding: 14px 18px; font-size: 15px; color: var(--fg-60); }
.answer-card.cited .answer-verdict { color: var(--ink); }
.demo-note { margin-top: 26px; color: var(--fg-60); font-size: 15px; max-width: 60ch; }

/* ==========================================================================
   KONDITIONEN-TABLEAU (Leistungen)
   ========================================================================== */
.tableau { border-top: 2px solid var(--ink); }
.tableau-row {
  display: grid;
  grid-template-columns: 56px 1.1fr 1.6fr 0.9fr;
  gap: clamp(14px, 2vw, 30px);
  padding: 26px 0;
  border-bottom: 1px solid var(--fg-16);
  align-items: baseline;
}
.tableau-row .pos { font-family: var(--serif); font-size: 20px; color: var(--acc); }
.tableau-row h3 { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.15; }
.tableau-row .t-desc { font-size: 15.5px; color: var(--fg-60); max-width: 48ch; }
.tableau-row .t-cond { text-align: right; }
.tableau-row .t-cond .price { font-weight: 600; font-size: 16.5px; display: block; }
.tableau-row .t-cond .cond { color: var(--fg-60); font-size: 13px; display: block; margin-top: 4px; }
.tableau-foot { padding-top: 18px; color: var(--fg-60); font-size: 15px; }
.tableau-foot strong { color: var(--fg); font-weight: 600; }

/* ---- Regler (Anlage C) ---- */
.compare {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--fg);
  aspect-ratio: 16 / 9.5;
  --pos: 50%;
  touch-action: pan-y;
  background: #FFFFFF;
}
.compare:focus-within { outline: 2px solid var(--acc); outline-offset: 4px; }
.pane { position: absolute; inset: 0; overflow: hidden; }
.pane-after { clip-path: inset(0 0 0 var(--pos)); }
.pane-label {
  position: absolute;
  bottom: 14px;
  z-index: 5;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 10px;
  pointer-events: none;
}
.pane-before .pane-label { left: 14px; background: #26292B; color: #FFFFFF; }
.pane-after .pane-label { right: 14px; background: var(--green); color: #FFFFFF; }
.compare-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  background: var(--green-soft);
  z-index: 6;
  pointer-events: none;
}
.compare-divider::after {
  content: '↔\FE0E';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 42px;
  height: 42px;
  background: #FFFFFF;
  color: var(--green);
  border: 1px solid var(--green);
  border-radius: 50%;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.compare input[type='range'] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  z-index: 7;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
}
.compare-caption { margin-top: 14px; color: var(--fg-60); font-size: 15px; max-width: 62ch; }

/* Mock: Vorher (verstaubte Kanzlei-Seite) */
.mock { width: 100%; height: 100%; display: flex; flex-direction: column; font-family: 'Times New Roman', Times, serif; }
.mock-before { background: #FFFFFF; color: #333333; }
.mock-before .m-top {
  background: #27415E;
  color: #FFFFFF;
  padding: 2.4% 3%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: clamp(9px, 1.3vw, 15px);
}
.mock-before .m-top small { font-size: clamp(6.5px, 0.85vw, 10px); font-family: Verdana, sans-serif; opacity: 0.85; }
.mock-before .m-nav {
  background: #E8E8E8;
  border-bottom: 2px solid #27415E;
  display: flex;
  font-family: Verdana, sans-serif;
  font-size: clamp(6.5px, 0.9vw, 10px);
}
.mock-before .m-nav span { padding: 1.6% 2.4%; border-right: 1px solid #CCCCCC; }
.mock-before .m-nav span:first-child { background: #27415E; color: #FFFFFF; }
.mock-before .m-body { flex: 1; display: grid; grid-template-columns: 2fr 1fr; gap: 3%; padding: 2.6% 3%; min-height: 0; }
.mock-before .m-body h4 { font-size: clamp(9px, 1.3vw, 15px); color: #27415E; margin-bottom: 2%; }
.mock-before .m-body p { font-size: clamp(6.5px, 0.9vw, 10.5px); line-height: 1.5; text-align: justify; color: #444444; }
.mock-before .m-side { background: #F2F2F2; border: 1px solid #DDDDDD; padding: 4%; font-family: Verdana, sans-serif; font-size: clamp(6px, 0.8vw, 9.5px); color: #555555; }
.mock-before .m-side b { display: block; color: #27415E; margin-bottom: 4%; }
.mock-before .m-foot {
  background: #DDDDDD;
  color: #666666;
  font-family: Verdana, sans-serif;
  font-size: clamp(6px, 0.8vw, 9px);
  padding: 1.4% 3%;
  text-align: center;
}
.mock-before .m-cookie {
  background: #333333;
  color: #CCCCCC;
  font-family: Verdana, sans-serif;
  font-size: clamp(6.5px, 0.85vw, 10px);
  display: flex;
  align-items: center;
  gap: 4%;
  justify-content: space-between;
  padding: 1.8% 3%;
}
.mock-before .m-cookie i { background: #7CB342; color: #FFFFFF; font-style: normal; font-weight: 700; padding: 1% 2.6%; border-radius: 3px; white-space: nowrap; }

/* Mock: Nachher */
.mock-after { background: #F6F4EE; color: #1A1D1B; padding: 2.6% 3.2%; gap: 2%; font-family: var(--sans); }
.mock-after .m-top {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  font-size: clamp(6.5px, 0.85vw, 10px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(26, 29, 27, 0.6);
  border-bottom: 1px solid rgba(26, 29, 27, 0.18);
  padding-bottom: 1.6%;
}
.mock-after .m-main { flex: 1; display: grid; grid-template-columns: 1.3fr 1fr; gap: 4%; align-items: center; min-height: 0; }
.mock-after .m-h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(17px, 2.9vw, 46px); line-height: 1.05; }
.mock-after .m-h1 i { font-style: italic; color: #0B4F3C; }
.mock-after .m-p { margin-top: 4%; font-size: clamp(7px, 1vw, 12px); line-height: 1.55; color: rgba(26, 29, 27, 0.7); max-width: 38ch; }
.mock-after .m-cta {
  display: inline-block;
  margin-top: 5%;
  font-weight: 600;
  font-size: clamp(6.5px, 0.85vw, 10px);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1.5px solid #0B4F3C;
  padding-bottom: 2px;
}
.mock-after .m-list { border-top: 1px solid rgba(26, 29, 27, 0.6); }
.mock-after .m-list div {
  display: flex;
  justify-content: space-between;
  font-size: clamp(6.5px, 0.9vw, 11px);
  padding: 3.5% 0;
  border-bottom: 1px solid rgba(26, 29, 27, 0.16);
}
.mock-after .m-list div b { font-weight: 600; }
.mock-after .m-list div span { color: rgba(26, 29, 27, 0.55); }

/* Prüfvermerk */
.report { background: #FFFFFF; color: var(--ink); }
.report-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 20px;
  border-bottom: 1px solid rgba(26, 29, 27, 0.5);
}
.report-head .ok { color: var(--green); }
.report-list { list-style: none; }
.report-list li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  padding: 15px 20px;
  border-bottom: 1px solid rgba(26, 29, 27, 0.12);
  align-items: baseline;
}
.report-list li:last-child { border-bottom: none; }
.report-list .tick { color: var(--green); font-weight: 600; font-size: 14px; }
.report-list b { display: block; font-weight: 600; font-size: 16px; }
.report-list span.d { color: rgba(26, 29, 27, 0.64); font-size: 14.5px; }
.report-foot { padding: 14px 20px; border-top: 1px solid rgba(26, 29, 27, 0.5); color: rgba(26, 29, 27, 0.64); font-size: 14px; }
.report-foot a { color: var(--ink); }

.deep .statement { color: var(--fg); }
.deep .proof-intro { color: var(--fg-60); font-size: 16px; max-width: 54ch; margin-top: 16px; }

/* ==========================================================================
   AUTORENKASTEN (Der Verfasser)
   ========================================================================== */
.author-card {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 0;
  background: var(--card);
  border: 1px solid var(--ink);
}
.author-card .a-photo { position: relative; min-height: 240px; }
.author-card .a-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.author-card .a-body { padding: 26px 28px; }
.author-card h3 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.1; }
.author-card h3 em { font-style: italic; color: var(--green); }
.author-card .a-role { color: var(--fg-60); font-size: 13px; margin-top: 4px; }
.author-card p.a-text { font-size: 15.5px; margin-top: 14px; max-width: 56ch; }
.author-facts { list-style: none; margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.author-facts li { font-size: 13.5px; color: var(--fg-60); display: flex; gap: 8px; align-items: baseline; }
.author-facts li::before { content: ''; width: 7px; height: 7px; background: var(--green); flex: none; transform: translateY(-1px); }
.author-card .a-links { margin-top: 18px; display: flex; gap: 22px; flex-wrap: wrap; }
.author-note { margin-top: 18px; color: var(--fg-60); font-size: 15px; max-width: 62ch; }

/* ---- Rückfragen ---- */
.faq-list { border-top: 2px solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--fg-16); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 64px 1fr 30px;
  gap: 16px;
  align-items: baseline;
  padding: 20px 4px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .fq { font-family: var(--serif); font-weight: 500; font-size: clamp(19px, 2.1vw, 26px); line-height: 1.2; }
.faq-item summary .fx { color: var(--acc); font-size: 18px; text-align: right; transition: transform 0.25s ease; }
.faq-item[open] summary .fx { transform: rotate(45deg); }
.faq-item .faq-a { padding: 0 4px 24px; margin-left: 80px; font-size: 15.5px; color: var(--fg-60); max-width: 58ch; }
.faq-item .faq-a p + p { margin-top: 10px; }

/* ==========================================================================
   ABSCHLUSS (ruhig, kein Riesen-CTA)
   ========================================================================== */
.closing { border-top: 1px solid var(--fg-16); }
.closing-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(56px, 9vh, 100px) 0;
}
.closing h2 { font-size: clamp(30px, 3.8vw, 54px); line-height: 1.12; max-width: 18ch; }
.closing h2 em { font-style: italic; color: var(--green-soft); }
.closing .c-sub { color: var(--fg-60); font-size: 16px; margin-top: 16px; max-width: 46ch; }
.closing .c-sub a { color: var(--fg); }
.closing-box { background: rgba(240, 239, 231, 0.07); border: 1px solid var(--fg-16); padding: 26px 28px; }
.closing-box .cb-title { color: var(--fg-60); margin-bottom: 14px; }
.closing-box .cb-row { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.closing-box .cb-note { color: var(--fg-60); font-size: 13.5px; margin-top: 14px; }

/* WhatsApp contact + QR (markennativ, QR desktop-only) */
.wa-inline { display: inline-flex; align-items: center; gap: 6px; }
.wa-inline svg { width: 15px; height: 15px; flex: none; }
.k-wa-qr { display: none; text-decoration: none; margin-top: 20px; }
.k-wa-qr img { width: 100px; height: 100px; display: block; background: #fff; padding: 6px; border-radius: 6px; }
.k-wa-qr span { display: block; font-family: var(--sans); font-size: 12px; color: var(--fg-60); margin-top: 6px; }
@media (min-width: 768px) { .k-wa-qr { display: inline-block; } }

.site-footer-k { border-top: 1px solid var(--fg-16); padding: 22px 0; }
.footer-k-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--fg-60);
  font-size: 12.5px;
}
.footer-k-inner .cols { display: flex; gap: clamp(16px, 2.6vw, 36px); flex-wrap: wrap; }
.footer-k-inner a { color: var(--fg-60); text-decoration: none; }
.footer-k-inner a:hover { color: var(--fg); }
.to-top { cursor: pointer; background: none; border: none; font-family: var(--sans); font-weight: 600; font-size: 12.5px; color: var(--fg); }

/* ---- Reveals ---- */
html.js .lm { display: block; overflow: hidden; padding-top: 0.14em; padding-bottom: 0.18em; margin-bottom: -0.32em; }
html.js .lm > span { display: block; transform: translateY(135%); transition: transform 0.9s var(--ease-out); }
html.js .lm.in > span { transform: translateY(0); }
html.js .lm.in.free { overflow: visible; }
html.js .fade { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
html.js .fade.in { opacity: 1; transform: none; }
html.js .d1 { transition-delay: 0.08s; }
html.js .d2 { transition-delay: 0.16s; }

@media (prefers-reduced-motion: reduce) {
  html.js .lm > span, html.js .fade { transform: none; opacity: 1; transition: none; }
  .site-nav a::after { transition: none; }
}

/* ---- Responsive ---- */
@media (max-width: 980px) {
  .doc-grid { grid-template-columns: 1fr; }
  .toc { max-width: 520px; }
  .sec-grid { grid-template-columns: 1fr; gap: 20px; }
  .margin-col { position: static; display: flex; align-items: baseline; gap: 14px; }
  .margin-col .roman { font-size: 34px; }
  .margin-col .m-title { margin-top: 0; }
  .margin-col .m-hint { display: none; }
  .content-col .body-2col { grid-template-columns: 1fr; }
  .tableau-row { grid-template-columns: 40px 1fr; }
  .tableau-row .t-desc { grid-column: 2; }
  .tableau-row .t-cond { grid-column: 2; text-align: left; margin-top: 6px; }
  .author-card { grid-template-columns: 1fr; }
  .author-card .a-photo { min-height: 260px; }
  .closing-grid { grid-template-columns: 1fr; }
  .compare { aspect-ratio: 4 / 3.6; }
  .mock-before .m-nav span:nth-child(n+5) { display: none; }
  .faq-item summary { grid-template-columns: 48px 1fr 24px; }
  .faq-item .faq-a { margin-left: 64px; }
}
@media (max-width: 560px) {
  .site-nav .nav-anchor { display: none; }
  .doc-meta { flex-direction: column; gap: 4px; }
  .compare { aspect-ratio: 1 / 1.15; }
  .mock-after .m-main { grid-template-columns: 1fr; gap: 3%; }
  .mock-before .m-body { grid-template-columns: 1fr; }
  .mock-before .m-side { display: none; }
  .bubble { max-width: 100%; }
}
