/* ============================================================
   Rechtstexte (Impressum / Datenschutz) — CorpScale-konform
   Lädt nach den DS-Tokens. Teilt Header-/Footer-/Button-Stil
   mit der Landing Page.
   ============================================================ */

:root {
  --accent: #C2511F;
  --accent-deep: #A1431A;
  --accent-tint: color-mix(in srgb, #C2511F 8%, white);
  --ink: var(--slate-900);
  --ink-soft: var(--slate-700);
  --ink-muted: var(--slate-500);
  --maxw: 820px;
  --gutter: 40px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--slate-50);
  color: var(--ink-soft);
  font-family: var(--font-sans);
  font-size: 16.5px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--white) 88%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--slate-200);
}
.header-inner { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark {
  width: 32px; height: 32px; flex-shrink: 0; display: block;
}
.brand-name { font-family: var(--font-serif); font-size: 18px; font-weight: 700; color: var(--navy-800); }
.header-back {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 14px; font-weight: 600; color: var(--navy-800);
  text-decoration: none; padding: 8px 14px; border: 1px solid var(--slate-300);
  border-radius: var(--radius-md);
  transition: border-color 150ms var(--ease-standard), background 150ms var(--ease-standard);
}
.header-back:hover { border-color: var(--navy-800); background: var(--slate-50); }
.header-back svg { color: var(--accent); }

/* ---------- Dokument ---------- */
.doc { padding: 56px 0 88px; }
.doc-head { margin-bottom: 40px; }
.doc-head .overline {
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent-deep); margin: 0 0 12px;
}
.doc-head h1 {
  font-family: var(--font-serif); color: var(--navy-800);
  font-size: 40px; line-height: 1.12; font-weight: 700; letter-spacing: -0.015em; margin: 0;
}
.doc-head .doc-meta { font-size: 14px; color: var(--ink-muted); margin: 14px 0 0; }

.doc-body {
  background: var(--white); border: 1px solid var(--slate-200);
  border-radius: var(--radius-md); box-shadow: var(--shadow-subtle);
  padding: 48px 52px;
}

.doc-body h2 {
  font-family: var(--font-serif); color: var(--navy-800);
  font-size: 24px; line-height: 1.25; font-weight: 700; letter-spacing: -0.01em;
  margin: 44px 0 14px; padding-top: 28px; border-top: 1px solid var(--slate-200);
}
.doc-body > h2:first-child,
.doc-body > section:first-child h2 { margin-top: 0; padding-top: 0; border-top: none; }
.doc-body h3 {
  font-family: var(--font-sans); color: var(--navy-800);
  font-size: 17px; line-height: 1.35; font-weight: 700;
  margin: 26px 0 8px;
}
.doc-body p { margin: 0 0 14px; }
.doc-body p:last-child { margin-bottom: 0; }
.doc-body strong { color: var(--navy-800); font-weight: 600; }
.doc-body a { color: var(--text-link); text-decoration: none; }
.doc-body a:hover { text-decoration: underline; }

.doc-body ul { margin: 0 0 16px; padding: 0; list-style: none; display: grid; gap: 9px; }
.doc-body ul li { position: relative; padding-left: 22px; }
.doc-body ul li::before {
  content: ""; position: absolute; left: 4px; top: 0.62em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

/* Adressblock / kompakte Zeilen */
.addr { font-style: normal; line-height: 1.7; }
.kv { display: grid; grid-template-columns: 160px 1fr; gap: 4px 18px; margin: 0 0 16px; }
.kv dt { color: var(--ink-muted); font-size: 14.5px; }
.kv dd { margin: 0; color: var(--navy-800); }
.mono { font-family: var(--font-mono); font-size: 0.94em; }

/* Platzhalter, die der Nutzer ausfüllen muss */
.fill {
  background: var(--accent-tint);
  border: 1px dashed color-mix(in srgb, var(--accent) 45%, white);
  color: var(--accent-deep); font-weight: 600;
  border-radius: 3px; padding: 1px 7px; font-size: 0.93em; white-space: nowrap;
}

/* Hinweis-Kasten */
.callout {
  background: var(--slate-50); border: 1px solid var(--slate-200);
  border-left: 3px solid var(--accent); border-radius: var(--radius-md);
  padding: 16px 20px; margin: 20px 0; font-size: 14.5px; color: var(--ink-soft);
}
.callout strong { color: var(--navy-800); }

/* Consent-Einstellungen erneut öffnen */
.reopen-consent {
  background: none; border: none; padding: 0; cursor: pointer;
  color: var(--text-link); font: inherit; text-decoration: none;
}
.reopen-consent:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer { background: var(--white); border-top: 1px solid var(--slate-200); padding: 28px 0; margin-top: 8px; }
.footer-inner { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.footer-copy { font-size: 12.5px; color: var(--slate-400); letter-spacing: 0.01em; }
.footer-links { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.footer-links a, .footer-links button { font-size: 13px; line-height: 1.4; color: var(--ink-muted); text-decoration: none; }
.footer-links a:hover, .footer-links button:hover { color: var(--navy-800); text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  :root { --gutter: 22px; }
  .doc-body { padding: 30px 24px; }
  .doc-head h1 { font-size: 31px; }
  .doc-body h2 { font-size: 21px; }
  .kv { grid-template-columns: 1fr; gap: 1px 0; }
  .kv dt { margin-top: 8px; }
  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
