/* Rechtstexte (Impressum, Datenschutz, AGB) und 404 · Website-Leasing.io
   Von Hand gepflegt (kein Generator). Prüfung 10.11.2026, D-09: Markenschrift, Kopf und Fuß wie die übrigen Seiten, Textspalte etwa 68 Zeichen.
   Schriften, Farben, Kopf (.kopf/.marke/.logo-io) und Fuß (.fuss) entsprechen assets/branche.css. Bei Änderungen dort hier nachziehen.
   Im Rahmen (Dialog „Rechtliches“ auf Branchen-, Werbe- und Danke-Seite, Fragebogen) setzt die Seite selbst html.im-rahmen:
   dann sind Kopf und Fuß ausgeblendet. Der Kopf behält zusätzlich die Klasse .legal-header, die die einbettenden Seiten ausblenden. */
@font-face { font-family: 'Geist'; src: url('/fonts/geist-regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Geist'; src: url('/fonts/geist-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Geist'; src: url('/fonts/geist-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url('/fonts/instrument-serif-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('/fonts/jetbrains-mono-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
/* Ersatzschriften mit Geist-Maßen (wie branche.css): kein Springen der Zeilen, wenn die Webschrift nachlädt */
@font-face { font-family: 'Geist Ersatz'; src: local('Arial'); size-adjust: 101.6%; ascent-override: 98.9%; descent-override: 29%; line-gap-override: 0%; }
@font-face { font-family: 'Geist Ersatz'; src: local('Arial Bold'), local('Arial-BoldMT'); font-weight: 700; size-adjust: 102.3%; ascent-override: 98.2%; descent-override: 28.8%; line-gap-override: 0%; }
@font-face { font-family: 'Serif Ersatz'; src: local('Georgia'); size-adjust: 79.7%; ascent-override: 124.2%; descent-override: 38.9%; line-gap-override: 0%; }

:root {
  --bg: #0A0908; --bg-1: #131210; --bg-2: #1B1A18; --bg-3: #252320;
  --text: #FAFAF9; --text-2: #C0BDB7; --text-3: #8A8782;
  --lime: #D9F75A;
  --rand: rgba(255, 255, 255, 0.08);
  --pad: 20px; --kopf-h: 60px;
  --mass: 36rem;   /* Textspalte: etwa 68 Zeichen je Zeile (gemessen 19.11.2026 bei 1440 px: im Mittel 68 bis 70) */
  --serif: 'Instrument Serif', 'Serif Ersatz', Georgia, serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}
@media (min-width: 900px) { :root { --pad: 32px; --kopf-h: 68px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Geist', 'Geist Ersatz', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--lime); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 4px; }

/* ---------- Kopf (wie .kopf in branche.css) ---------- */
.kopf {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: var(--kopf-h);
  padding: 0 max(var(--pad), calc((100% - 1200px) / 2));
  background: rgba(10, 9, 8, 0.82);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--bg-2);
}
.marke { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: -0.025em; color: var(--text); text-decoration: none; }
.marke:hover { text-decoration: none; }
.marke svg { width: 30px; height: 30px; flex-shrink: 0; }
.logo-io { font-family: var(--serif); font-style: italic; color: var(--lime); font-weight: 400; font-size: 1.08em; margin-left: -9px; }
.kopf-zurueck { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--text-2); font-size: 15px; }
.kopf-zurueck:hover { color: var(--text); text-decoration: none; }
.kopf-zurueck svg { flex-shrink: 0; }
.marke, .kopf-zurueck { white-space: nowrap; }
@media (max-width: 374.98px) { .kopf-zurueck { display: none; } }   /* unter 375 px passt nur das Logo (es führt auch zur Startseite), wie auf den übrigen Seiten am Handy */

/* ---------- Fuß (wie .fuss in branche.css) ---------- */
.fuss { padding: 32px var(--pad) 44px; border-top: 1px solid var(--bg-2); text-align: center; font-size: 15px; line-height: 1.58; color: var(--text-2); }
.fuss .links { display: flex; gap: 4px 18px; justify-content: center; flex-wrap: wrap; margin-bottom: 12px; }
.fuss .links a { display: inline-flex; align-items: center; min-height: 44px; }
.fuss a { color: var(--text-2); }
.fuss a:hover { color: var(--text); text-decoration: underline; }
.fuss a[aria-current="page"] { color: var(--text); }
.fuss p { margin: 0; }

/* ---------- Im Rahmen (Dialog „Rechtliches“): nur der Rechtstext ---------- */
.im-rahmen .kopf, .im-rahmen .fuss { display: none !important; }
.im-rahmen { scroll-behavior: auto; }

/* ---------- Rechtstext ---------- */
main.legal {
  max-width: calc(var(--mass) + 50px + 2 * var(--pad));
  margin: 0 auto;
  padding: 64px var(--pad) 80px;
}
.im-rahmen main.legal { padding-top: 40px; }
h2[id] { scroll-margin-top: calc(var(--kopf-h) + 24px); }   /* Sprungziel (z. B. agb.html#sec-5) nicht unter dem festen Kopf verstecken */
.im-rahmen h2[id] { scroll-margin-top: 16px; }

.legal h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 700;
  text-wrap: balance;
  overflow-wrap: break-word;
}
.legal-eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(217, 247, 90, 0.1);
  color: var(--lime);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.legal-meta { margin: 0 0 40px; color: var(--text-3); font-size: 0.92rem; }
.legal h2 {
  margin: 48px 0 14px;
  font-size: 1.2rem;
  line-height: 1.3;
  letter-spacing: -0.015em;
  font-weight: 600;
  color: var(--text);
  text-wrap: balance;
}
.legal h3 { margin: 24px 0 8px; font-size: 1.02rem; font-weight: 600; color: var(--text); }
/* Grundwerte ohne Gewicht (:where), damit Klassen wie .legal-meta, .legal-footer, .toc sie überschreiben */
:where(.legal) :where(p, ul, ol) { margin: 0 0 14px; color: var(--text); }
:where(.legal) :where(ul, ol) { padding-left: 22px; }
:where(.legal) :where(li) { margin-bottom: 6px; }
.legal strong { font-weight: 600; }
/* AGB: Absätze stehen ohne Kasten in der Spalte, also gleich lang wie der Text in den Kästen */
.legal > p, .legal > ul, .legal > ol { max-width: var(--mass); }

.legal-block {
  padding: 22px 24px;
  margin: 0 0 18px;
  border: 1px solid var(--rand);
  border-radius: 10px;
  background: var(--bg-1);
}
.legal-block p:last-child, .legal-block ul:last-child { margin-bottom: 0; }
/* Hervorhebung für den Widerspruchs-Hinweis nach Art. 21 Abs. 4 DSGVO */
.legal-block.highlight { border: 1px solid var(--lime); background: rgba(217, 247, 90, 0.06); }
.placeholder {
  display: inline-block; padding: 1px 8px; border-radius: 4px;
  background: rgba(255, 200, 80, 0.12); color: #ffc850;
  font-family: var(--mono); font-size: 0.85rem; letter-spacing: -0.01em;
}

/* Inhaltsverzeichnis Datenschutz (.toc) und AGB (.legal-toc) */
.toc, .legal-toc {
  margin: 0 0 48px;
  padding: 22px 24px;
  border: 1px solid var(--rand);
  border-radius: 10px;
  background: var(--bg-1);
}
.toc strong {
  display: block;
  margin-bottom: 10px;
  color: var(--text-3);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.toc ol { margin: 0; padding-left: 26px; display: grid; gap: 4px; }
.toc li { margin-bottom: 0; }
.toc a, .legal-toc a { color: var(--text); }
.toc a:hover, .legal-toc a:hover { color: var(--lime); text-decoration: none; }
.legal-toc-title { font-weight: 600; font-size: 0.96rem; margin-bottom: 14px; color: var(--text); }
.legal-toc ol { list-style: decimal; padding-left: 26px; margin: 0; columns: 2; column-gap: 32px; font-size: 0.92rem; }
.legal-toc li { margin-bottom: 6px; break-inside: avoid; }

.legal-footer {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--rand);
  color: var(--text-3);
  font-size: 0.85rem;
}

@media (max-width: 540px) {
  main.legal { padding: 40px 18px 56px; }
  .legal h1 { font-size: 2rem; }
  .legal-block, .toc, .legal-toc { padding: 18px; }
  .legal-toc ol { columns: 1; }
}

/* ---------- 404 ---------- */
body.s404 { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.s404 main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 56px var(--pad) 72px; }
.s404 .box { width: 100%; max-width: 560px; }
.s404 .code { font-family: var(--mono); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--lime); margin: 0 0 18px; }
.s404 h1 { font-size: clamp(1.75rem, 5vw, 2.6rem); line-height: 1.12; letter-spacing: -0.03em; margin: 0 0 16px; font-weight: 700; text-wrap: balance; }
.s404 .text { color: var(--text-3); font-size: 1.02rem; margin: 0 0 32px; }
.s404 .btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  background: var(--lime); color: var(--bg);
  font-weight: 700; font-size: 1rem; text-decoration: none;
  transition: transform 0.15s ease;
}
.s404 .btn:hover { transform: translateY(-2px); text-decoration: none; }
.s404 .weiter { margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--rand); }
.s404 .weiter p { margin: 0 0 14px; font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }
.s404 .weiter ul { list-style: none; margin: 0; padding: 0; }
.s404 .weiter li { margin-bottom: 10px; }
.s404 .weiter a { color: var(--text); text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, 0.18); padding-bottom: 2px; font-size: 0.98rem; }
.s404 .weiter a:hover { border-color: var(--lime); color: var(--lime); }
@media (max-width: 520px) { .s404 main { padding: 40px 18px 56px; } }
@media (prefers-reduced-motion: reduce) { .s404 .btn { transition: none; } .s404 .btn:hover { transform: none; } }
