/* PointerScore – Unterseiten (Rechtstexte, Kontakt, 404) im Design der Startseite.
   Der Inhalt in <main class="legal-page"> wird von legal-content.js / render-legal.mjs vorgegeben. */

:root {
  --bg: #000;
  --raise: #111113;
  --raise-2: #19191c;
  --line: rgba(255, 255, 255, .08);
  --text: #f4f4f6;
  --body: #c4c4cc;
  --muted: #8d8d96;
  --faint: #5c5c66;
  --blue: #5b8cff;
  --blue-2: #a8c2ff;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--text); font: 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 3px; border-radius: 8px; }

/* Kopfzeile */
.sub-top { position: sticky; top: 0; z-index: 10; background: rgba(0, 0, 0, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.sub-nav { max-width: 1080px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 17px; letter-spacing: -.02em; }
.brand img { border-radius: 9px; }
.back { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: var(--raise); color: var(--text); font-size: 14px; font-weight: 600; text-decoration: none; transition: background .2s; }
.back:hover { background: var(--raise-2); }
.back svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Auswahl der Rechtsseiten */
.legal-tabs { max-width: 1080px; margin: 0 auto; padding: 28px 24px 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.legal-tabs::-webkit-scrollbar { display: none; }
.legal-tabs a { flex: none; padding: 8px 15px; border-radius: 999px; background: var(--raise); color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: none; transition: background .2s, color .2s; }
.legal-tabs a:hover { color: var(--text); }
.legal-tabs a[aria-current="page"] { background: var(--blue); color: #000; }

/* Rechtstext */
.legal-page { flex: 1; width: 100%; }
.legal-content { max-width: 1080px; margin: 0 auto; padding: 36px 24px 72px; }
.legal-document > * { max-width: 760px; }
.legal-document { animation: rise .6s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.legal-document .eyebrow { margin: 0 0 12px; font-size: 14px; font-weight: 600; color: var(--blue-2); }
.legal-document h1 { margin: 0; font-size: clamp(34px, 5vw, 54px); font-weight: 800; letter-spacing: -.04em; line-height: 1.05; }
.legal-date { margin: 14px 0 0; font-size: 14px; color: var(--faint); }
.legal-section { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
.legal-section:first-of-type { margin-top: 44px; }
.legal-section h2 { margin: 0 0 14px; font-size: 20px; font-weight: 700; letter-spacing: -.02em; line-height: 1.3; }
.legal-section p { margin: 0 0 14px; color: var(--body); font-size: 15.5px; overflow-wrap: anywhere; }
.legal-section p:last-child { margin-bottom: 0; }
.legal-section a { color: var(--blue-2); text-decoration: underline; text-decoration-color: rgba(168, 194, 255, .35); text-underline-offset: 3px; transition: text-decoration-color .2s; }
.legal-section a:hover { text-decoration-color: var(--blue-2); }

/* 404 */
.not-found-page { flex: 1; display: grid; place-items: center; padding: 48px 24px; }
.not-found-card { max-width: 560px; text-align: center; animation: rise .6s var(--ease) both; }
.not-found-code { margin: 0; font-size: clamp(96px, 22vw, 168px); font-weight: 800; letter-spacing: -.06em; line-height: .9; color: var(--blue); }
.not-found-card .eyebrow { margin: 18px 0 0; font-size: 14px; font-weight: 600; color: var(--blue-2); }
.not-found-card h1 { margin: 10px 0 0; font-size: clamp(28px, 5vw, 40px); font-weight: 800; letter-spacing: -.035em; line-height: 1.1; }
.not-found-card > p:not([class]) { margin: 14px auto 0; max-width: 28em; color: var(--muted); }
.not-found-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 30px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; border-radius: 999px; font-weight: 700; font-size: 15px; text-decoration: none; transition: background .2s, transform .2s var(--ease); }
.btn:active { transform: scale(.97); }
.btn-blue { background: var(--blue); color: #000; }
.btn-blue:hover { background: var(--blue-2); }
.btn-dark { background: var(--raise-2); color: var(--text); }

/* Fußzeile */
.sub-foot { border-top: 1px solid var(--line); }
.sub-foot-inner { max-width: 1080px; margin: 0 auto; padding: 22px 24px 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: 12.5px; color: var(--faint); }
.sub-foot p { margin: 0; max-width: 46em; display: flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 500; }
.sub-foot p::before { content: ""; flex: none; width: 16px; height: 16px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a8c2ff' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v5M12 8v.1'/%3E%3C/svg%3E") center/contain no-repeat; }
.sub-foot-links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.sub-foot-links a { color: var(--faint); text-decoration: none; transition: color .2s; }
.sub-foot-links a:hover { color: var(--text); }

@media (max-width: 640px) {
  .sub-nav { padding: 12px 16px; }
  .back span { display: none; }
  .back { padding: 10px; }
  .legal-tabs { padding: 20px 16px 0; }
  .legal-content { padding: 28px 16px 56px; }
  .legal-section { margin-top: 32px; padding-top: 26px; }
  .legal-section p { font-size: 15px; }
  .not-found-actions .btn { flex: 1 1 100%; }
  .sub-foot-inner { padding: 20px 16px 24px; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
