/*
 * prototype/ratgeber/r.css — generated by scripts/seo/build-ratgeber.mjs
 * from this file (scripts/seo/assets/r.css is the source of truth; do not
 * hand-edit the copy in prototype/ratgeber/, it is overwritten every build).
 *
 * Design: the promoted Variant-A "Fensterlichter" palette (prototype/
 * styles.css) — same tokens, deliberately re-declared here rather than
 * @import-ed so every /ratgeber page stays fully self-contained (Docs/
 * strategy/SEO-ENGINE.md §1.2/§G1: "self-contained gebaut — eigenes
 * /ratgeber/r.css, keine Root-Assets — damit EIN Pfad-Carve-out genügt").
 * No @font-face: the two Garamond webfonts live under prototype/fonts/,
 * which would be a root-asset dependency this file must not have. The
 * fallback stacks already declared in styles.css (Georgia/Times New Roman
 * for display, the system-ui stack for body) carry the same visual register
 * on their own and are what renders here.
 */

:root {
  --edge: #0D1117;
  --base: #10151F;
  --mid: #141B29;
  --deep: #1A2438;
  --card: #172032;

  --rule: #2A3446;
  --rule-soft: #202A3B;

  --text-hi: #F2EEE6;
  --text: #DBD6CC;
  --text-mid: #C3BCB0;
  --text-dim: #A7AAB0;
  --text-faint: #8A8F98;

  --amber: #E0A94D;
  --amber-hi: #E8B96A;
  --amber-deep: #C8943A;

  --font-display: Georgia, 'Times New Roman', serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100%;
  color: var(--text);
  background-color: var(--edge);
  background-image:
    radial-gradient(130% 78% at 50% -6%,
      rgba(232, 185, 106, 0.12) 0%,
      rgba(200, 148, 58, 0.05) 26%,
      rgba(20, 27, 41, 0) 58%),
    linear-gradient(180deg, #131A28 0%, #10151F 46%, #0B0E14 100%);
  background-attachment: fixed;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--amber-deep); color: var(--edge); }

:focus-visible {
  outline: 2px solid var(--amber-hi);
  outline-offset: 3px;
  border-radius: 2px;
}

a { color: var(--amber); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--amber-hi); }
strong { font-weight: 600; color: var(--text-hi); }

.rg-skip {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px; height: 1px;
  overflow: hidden;
}
.rg-skip:focus {
  position: static;
  width: auto; height: auto;
  display: inline-block;
  margin: 12px;
  padding: 10px 16px;
  background: var(--card);
  border: 1px solid var(--amber);
  border-radius: 4px;
  color: var(--text-hi);
}

.rg-container {
  max-width: 40rem;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Top bar — deliberately brand-free ------------------------------
 * Lint L8 (scripts/seo/CONTRACT.md, Docs/strategy/SEO-ENGINE.md §3.2): the
 * string "Stillschrift" may only appear inside the CTA block. A visible
 * wordmark/header on every /ratgeber page would violate that outright and
 * would also re-introduce the exact leak vector (brand+topic pairing on a
 * page a partner might see) this whole engine exists to avoid. */
.rg-top {
  border-bottom: 1px solid var(--rule-soft);
}
.rg-top .rg-container {
  padding-top: 20px;
  padding-bottom: 20px;
}
.rg-back {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
}
.rg-back:hover { color: var(--amber); }

/* ---------- Quick-Exit ------------------------------------------------------
 * Same pattern as prototype/styles.css .quick-exit on the marketing LPs
 * (BUILD-BRIEF §5 partner-threat-model): a plain <a>, no JS binding — these
 * pages are deliberately script-free (Lint L10), so there is no history-
 * replace enhancement here, only a real link. Tap target >=44px via
 * min-height + flex centering rather than padding math (WCAG 2.5.5). */
.quick-exit {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  text-decoration: none;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: rgba(13, 17, 23, 0.72);
  backdrop-filter: blur(4px);
}
.quick-exit:hover,
.quick-exit:focus-visible {
  color: var(--text-hi);
  border-color: var(--amber);
}
@media print { .quick-exit { display: none; } }

.rg-main {
  padding: clamp(40px, 7vh, 72px) 0 clamp(64px, 10vh, 96px);
}

/* ---------- Article typography --------------------------------------------- */

.rg-article h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 5.4vw, 2.7rem);
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: var(--text-hi);
  text-wrap: balance;
  margin: 0 0 28px;
}
.rg-article h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 4vw, 1.9rem);
  line-height: 1.25;
  color: var(--text-hi);
  margin: clamp(40px, 6vw, 56px) 0 18px;
}
.rg-article h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-hi);
  margin: 28px 0 12px;
}
.rg-article p {
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.8;
  margin: 0 0 22px;
}
.rg-article ul, .rg-article ol {
  margin: 0 0 22px;
  padding-left: 22px;
}
.rg-article li {
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.75;
  margin-bottom: 8px;
}
.rg-article > h1:first-child { margin-top: 0; }

/* ---------- BLK-UNBEOBACHTET ------------------------------------------------ */

.unbeobachtet {
  margin: 0 0 clamp(36px, 6vw, 52px);
  padding: 22px 24px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 8px;
}
.unbeobachtet h2 {
  margin: 0 0 14px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
}
.unbeobachtet ul {
  margin: 0 0 14px;
  padding-left: 20px;
}
.unbeobachtet li {
  color: var(--text-mid);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 10px;
}
.unbeobachtet li:last-child { margin-bottom: 0; }
.unbeobachtet p { margin: 0; font-size: 0.95rem; }
.unbeobachtet strong { color: var(--text-hi); }

/* ---------- BLK-KRISE ------------------------------------------------------- */

.krise {
  margin: 0 0 clamp(36px, 6vw, 52px);
  padding: 20px 24px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  border-left: 3px solid var(--amber-deep);
}
.krise p {
  margin: 0;
  color: var(--text-mid);
  font-size: 0.98rem;
  line-height: 1.75;
}
.krise strong { color: var(--text-hi); white-space: nowrap; }

/* ---------- BLK-CTA ---------------------------------------------------------
 * Both variants render as this same `.hinweis-weiter` shape — a single
 * quiet paragraph, no card chrome, no button. It is one sentence among many
 * on the page, not a pitch (Docs/strategy/SEO-ENGINE.md §1.1). */

.hinweis-weiter {
  margin: clamp(40px, 6vw, 56px) 0 0;
  padding-top: clamp(28px, 5vw, 40px);
  border-top: 1px solid var(--rule);
}
.hinweis-weiter p {
  margin: 0;
  color: var(--text-mid);
  font-size: 0.98rem;
  line-height: 1.75;
}

/* ---------- BLK-AUTOR + BLK-LSB --------------------------------------------- */

.autor {
  margin: clamp(28px, 5vw, 40px) 0 0;
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.7;
}
.autor strong { color: var(--text-hi); }

.lsb {
  margin: clamp(28px, 5vw, 40px) 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--rule-soft);
}
.lsb p {
  margin: 0;
  color: var(--text-faint);
  font-size: 0.85rem;
  line-height: 1.7;
}

@media (max-width: 540px) {
  body { font-size: 17px; }
}

@media print {
  .rg-top, .rg-skip { display: none; }
  body { background: #fff; color: #000; }
  .rg-article h1, .rg-article h2, .rg-article h3 { color: #000; }
  .rg-article p, .rg-article li { color: #000; }
}
