/* ============================================================
   NEXUM — Rechts- und Serviceseiten (/imprint, /privacy, /terms,
   /delete-account, /support)

   Eigenes Stylesheet, weil diese Seiten weder die Kapitel-Layouts
   aus sections.css noch die Hero-Mechanik brauchen. Sie erben nur
   tokens.css (Farben, Typo-Skala, Maße) und base.css (Reset,
   Primitiven, .btn, .wrap*, .eyebrow, .mono) — und layout.css für
   .brand, .switch und .theme-toggle, damit die Kopfzeile exakt wie
   die der Startseite aussieht.

   Zweisprachigkeit: beide Fassungen stehen im Dokument, sichtbar ist
   genau eine. Ohne JavaScript bleibt die deutsche vollständig lesbar
   — das ist die rechtlich verbindliche.
   ============================================================ */

/* ---------- Sprachumschaltung ---------- */
[data-pane="en"] { display: none; }
:root[data-lang="en"] [data-pane="en"] { display: block; }
:root[data-lang="en"] [data-pane="de"] { display: none; }

/* ---------- Kopfzeile ---------- */
.lp-bar {
  position: sticky; inset-block-start: 0; z-index: 80;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid var(--line);
}
.lp-bar__inner {
  max-width: var(--w-wide);
  min-height: var(--nav-h);
  display: flex; align-items: center; gap: 1rem;
}
.lp-bar__tools { display: flex; align-items: center; gap: 0.5rem; margin-inline-start: auto; }
.lp-back {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-size: var(--t-small); color: var(--fg-2); text-decoration: none;
  padding: 0.5rem 0.7rem; border-radius: var(--r-sm);
}
.lp-back:hover { color: var(--accent); }
.lp-back svg { width: 0.9em; height: 0.9em; }
@media (max-width: 560px) { .lp-back span { display: none; } }

/* ---------- Seitenkopf ---------- */
.lp-head {
  padding-block: clamp(2.75rem, 1.5rem + 5vw, 5.5rem) clamp(1.75rem, 1rem + 2.5vw, 3rem);
}
.lp-head .eyebrow { margin-bottom: 1.2rem; }
.lp-head h1 {
  font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3.6rem);
  max-width: 20ch;
  /* „Datenschutzerklärung" und „Nutzungsbedingungen" passen bei 320 px in
     keine Zeile — ohne Trennung schiebt das Wort die ganze Seite seitwärts.
     Die Sprache steht auf <html>, die automatische Trennung greift also. */
  hyphens: auto;
  overflow-wrap: break-word;
}
.lp-head__stand { margin-top: 1.4rem; color: var(--fg-3); }
.lp-head__intro { margin-top: 1.4rem; max-width: 58ch; color: var(--fg-2); font-size: var(--t-lead); line-height: 1.55; }

/* ---------- Inhaltsverzeichnis (aus den h2 der sichtbaren Fassung) ---------- */
.lp-toc {
  margin-block: 0 clamp(2rem, 4vw, 3rem);
  padding: 1.4rem 1.6rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.lp-toc[hidden] { display: none; }
.lp-toc h2 {
  font-family: var(--font-mono); font-size: var(--t-mono); font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-3);
  margin-bottom: 0.9rem;
}
.lp-toc ol {
  list-style: none;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr));
  gap: 0.45rem 1.75rem;
  counter-reset: toc;
}
.lp-toc li { counter-increment: toc; }
/* Unterabschnitte zählen nicht mit — sonst behauptet die Nummer eine
   Gliederungstiefe, die es nicht gibt. */
.lp-toc li.is-sub { counter-increment: none; padding-inline-start: 1.6rem; }
.lp-toc li.is-sub a::before { content: "·"; letter-spacing: 0; }
.lp-toc a {
  display: flex; gap: 0.7em;
  font-size: var(--t-small); color: var(--fg-2); text-decoration: none;
  line-height: 1.5;
}
.lp-toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--font-mono); font-size: var(--t-mono);
  color: var(--fg-4); flex-shrink: 0; padding-top: 0.2em;
}
.lp-toc a:hover { color: var(--accent); }

/* ---------- Fließtext ---------- */
.lp-body { padding-bottom: clamp(3rem, 6vw, 6rem); }
.lp-body h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.7rem);
  letter-spacing: -0.02em; line-height: 1.25;
  margin-top: clamp(2.5rem, 5vw, 3.5rem); margin-bottom: 0.9rem;
  scroll-margin-top: calc(var(--nav-h) + 16px);
  color: var(--fg-1);
}
.lp-body h2:first-child { margin-top: 0; }
.lp-body h3 {
  font-family: var(--font-body); font-weight: 600;
  font-size: var(--t-body); letter-spacing: 0;
  margin-top: 1.9rem; margin-bottom: 0.6rem;
  color: var(--fg-1);
}
.lp-body p, .lp-body li { color: var(--fg-2); max-width: 70ch; }
.lp-body p { margin-top: 0.9rem; }
.lp-body ul, .lp-body ol { margin-top: 0.9rem; padding-inline-start: 1.3rem; }
.lp-body ul { list-style: disc; }
.lp-body ol { list-style: decimal; }
.lp-body li { margin-top: 0.45rem; padding-inline-start: 0.2rem; }
.lp-body strong { color: var(--fg-1); font-weight: 600; }
/* Links im Fließtext dürfen sich nicht allein über die Farbe erklären (WCAG 1.4.1). */
.lp-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}
.lp-body a:hover { text-decoration-thickness: 2px; }

/* Ein hervorgehobener Block — Postanschrift, Muster-Widerruf, Hinweiskasten */
.lp-note {
  margin-top: 1.4rem;
  padding: 1.15rem 1.35rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-inline-start: 2px solid var(--accent-line);
  border-radius: var(--r-sm);
}
.lp-note > :first-child { margin-top: 0; }

/* Nummerierte Schrittfolge — Kontolöschung */
ol.lp-steps { list-style: none; padding-inline-start: 0; counter-reset: step; margin-top: 1.4rem; }
ol.lp-steps > li {
  counter-increment: step;
  position: relative;
  padding-inline-start: 3.1rem;
  margin-top: 1.1rem;
  max-width: 66ch;
}
ol.lp-steps > li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; inset-inline-start: 0; inset-block-start: 0.05em;
  font-family: var(--font-mono); font-size: var(--t-mono);
  color: var(--accent); letter-spacing: 0.1em;
}

/* Kontaktkanäle auf /support */
ul.lp-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(255px, 100%), 1fr));
  gap: 1rem; margin-top: 1.6rem; list-style: none; padding: 0;
}
ul.lp-cards > li {
  margin: 0; padding: 1.4rem 1.5rem;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
  max-width: none;
}
.lp-cards h3 { margin-top: 0; }
.lp-cards p { margin-top: 0.5rem; font-size: var(--t-small); }
.lp-cards .lp-cards__k {
  font-family: var(--font-mono); font-size: var(--t-mono); letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--fg-4); display: block; margin-bottom: 0.7rem;
}

/* ---------- Querverweise auf die anderen Rechtsseiten ---------- */
.lp-more {
  padding-block: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
}
.lp-more h2 {
  font-family: var(--font-mono); font-size: var(--t-mono); font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-3);
  margin-bottom: 1.1rem;
}
.lp-more ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.75rem 1.75rem; }
.lp-more a { font-size: var(--t-small); color: var(--fg-2); text-decoration: none; }
.lp-more a:hover { color: var(--accent); }
.lp-more a[aria-current="page"] { color: var(--accent); }

/* ---------- Fußzeile ---------- */
.lp-foot {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding-block: clamp(2.5rem, 4vw, 3.5rem) 2rem;
}
.lp-foot dl {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr));
  gap: 1.25rem 2rem;
  padding-bottom: 2rem; border-bottom: 1px solid var(--line);
}
.lp-foot dt {
  font-family: var(--font-mono); font-size: var(--t-mono); letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--fg-4); margin-bottom: 0.35rem;
}
.lp-foot dd { font-size: var(--t-small); color: var(--fg-2); line-height: 1.6; }
.lp-foot dd a { color: var(--fg-1); text-decoration: none; border-bottom: 1px solid var(--line-med); }
.lp-foot dd a:hover { color: var(--accent); border-bottom-color: var(--accent-line); }
.lp-foot__disclaimer {
  padding-block: 1.6rem;
  font-size: var(--t-small); color: var(--fg-2); max-width: 78ch; line-height: 1.65;
}
.lp-foot__bottom {
  padding-top: 1.4rem; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.75rem; justify-content: space-between;
}
.lp-foot__bottom p { font-size: var(--t-small); color: var(--fg-3); }
