/* ============================================================
   GW Perform – Rechtstexte (Impressum, Datenschutz, AGB) + 404
   im Kino-Stil. Wird nach home.css eingebunden.
   ============================================================ */

/* ---------- Rechtstext-Container ---------- */
.legal .legal-page {
  padding: 132px 0 120px;
}
.legal .legal-page > .container {
  max-width: 760px;
}
.legal .legal-page h1,
.legal .legal-page h2,
.legal .legal-page h3 {
  font-family: 'Instrument Sans', system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--text);
  text-wrap: balance;
}
.legal .legal-page h1 {
  font-size: clamp(30px, 5vw, 56px);
  line-height: 1.05;
  hyphens: auto;
  overflow-wrap: break-word;
  margin: 0 0 12px;
}
.legal .legal-page h1:not(:first-child) {
  margin-top: 88px;
  padding-top: 48px;
  border-top: 1px solid rgba(16, 35, 59, .1);
}
.legal .legal-page h2 {
  font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.2;
  margin: 56px 0 14px;
}
.legal .legal-page h3 {
  font-size: 19px;
  line-height: 1.3;
  margin: 32px 0 10px;
}
.legal .legal-updated {
  display: inline-block;
  margin: 0 0 24px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.legal .legal-updated::before {
  content: "";
  display: inline-block;
  width: 28px; height: 1px;
  margin-right: 12px;
  vertical-align: middle;
  background: var(--accent);
}
.legal .legal-page p,
.legal .legal-page li {
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-muted);
}
.legal .legal-page p { margin: 0 0 16px; }
.legal .legal-page ul,
.legal .legal-page ol { margin: 0 0 18px; padding-left: 1.3em; }
.legal .legal-page li { margin-bottom: 6px; }
.legal .legal-page li::marker { color: var(--accent); }
.legal .legal-page strong { color: var(--text); font-weight: 600; }
.legal .legal-page .imprint-addr { font-size: 17px; color: var(--text-muted); opacity: 1; }
.legal .legal-page a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
.legal .legal-page a:hover { text-decoration-thickness: 2px; }

@media (max-width: 768px) {
  .legal .legal-page { padding: 112px 0 88px; }
  .legal .legal-page h2 { margin-top: 44px; }
  .legal .legal-page h1:not(:first-child) { margin-top: 64px; padding-top: 36px; }
  .legal .legal-page p,
  .legal .legal-page li,
  .legal .legal-page .imprint-addr { font-size: 16px; }
}

/* ============================================================
   404 – dunkler Kino-Moment
   ============================================================ */
body.lost { background: var(--ink); }
.lost-stage {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 120px 24px 96px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 45% at 50% 42%, rgba(127, 179, 255, .14), transparent 70%),
    var(--ink);
  color: var(--on-dark);
  text-align: center;
}
/* Lichtlinie mit Lücke: ein Teil des Systems fehlt */
.lost-stage::before,
.lost-stage::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--glow));
  box-shadow: 0 0 14px rgba(127, 179, 255, .35);
}
.lost-stage::before { top: 0; height: 18vh; }
.lost-stage::after {
  bottom: 0; height: 14vh;
  background: linear-gradient(0deg, transparent, var(--glow-2));
}
.lost-inner { position: relative; max-width: 680px; }
.lost-inner .lost-code {
  margin: 0 0 20px;
  max-width: none;
  line-height: 1.5;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--glow-2);
}
.lost-inner h1 {
  margin: 0 0 20px;
  font-size: clamp(38px, 6.5vw, 72px);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.04;
  color: var(--on-dark);
  text-wrap: balance;
}
.lost-inner h1 .serif { color: var(--glow); }
.lost-inner p {
  margin: 0 auto 36px;
  max-width: 480px;
  font-size: 18px;
  line-height: 1.65;
  color: var(--on-dark-muted);
}
.lost-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.lost-logo {
  position: absolute;
  top: 24px; left: 24px;
  z-index: 2;
}
.lost-logo img { height: 44px; width: auto; filter: brightness(0) invert(1); }

@media (prefers-reduced-motion: no-preference) {
  .js .lost-inner { animation: lost-in .9s var(--ease-out, ease-out) both; }
}
@keyframes lost-in { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 768px) {
  .lost-inner p { font-size: 16px; }
  .lost-actions .btn { width: 100%; }
}

/* Design-Review: Datum bleibt Meta-Information */
.legal .legal-page .legal-updated { font-size: 12px; }
