/* ============================================================
   Krayt — legal.css
   Styling für impressum.html & datenschutz.html
   Passend zur Startseite (index.html). Lokale Fonts, DSGVO-konform.
   ============================================================ */

/* ---- Schriften (lokal gehostet, keine externen Verbindungen) ---- */
@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('./fonts/BricolageGrotesque.woff2') format('woff2-variations');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('./fonts/JetBrainsMono.woff2') format('woff2-variations');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* ---- Farb-Tokens (identisch zur Startseite) ---- */
:root {
  --navy: #1F3864;
  --violet: #7C3AED;
  --violet-deep: #5B21B6;
  --violet-soft: #F5F3FF;
  --cream: #FAF8F3;
  --cream-tint: #F3EFE3;
  --ink: #0F1729;
  --ink-soft: #475569;
  --line: #E5E0D2;
  --line-strong: #C8C0AB;
}

/* ---- Basis ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Bricolage Grotesque', system-ui, -apple-system, sans-serif;
  font-variation-settings: "opsz" 14;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.7;
  font-size: 16px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.container { max-width: 820px; margin: 0 auto; padding: 0 24px; }

/* ---- Header ---- */
header {
  border-bottom: 1px solid var(--line);
  background: rgba(250, 248, 243, 0.85);
  backdrop-filter: saturate(140%) blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}
.logo-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--violet);
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.28);
}
.back-link {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.94rem;
  font-weight: 500;
  transition: color 0.18s ease;
}
.back-link:hover { color: var(--violet); }

/* ---- Main / Typografie ---- */
main { padding: 56px 0 80px; }

.page-eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--violet);
  margin-bottom: 14px;
}
.page-title {
  font-weight: 600;
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-variation-settings: "opsz" 96;
  color: var(--ink);
  margin-bottom: 14px;
}
.page-meta {
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 60ch;
  margin-bottom: 8px;
}

h2 {
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin: 44px 0 14px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
h2:first-of-type { border-top: none; padding-top: 8px; }

p { margin-bottom: 16px; max-width: 68ch; }
p + p { margin-top: -2px; }

a {
  color: var(--violet-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  transition: color 0.15s ease;
}
a:hover { color: var(--violet); }

strong { font-weight: 600; color: var(--ink); }
em { font-style: italic; }

ul { margin: 0 0 16px 0; padding-left: 0; list-style: none; max-width: 68ch; }
ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 9px;
}
ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--violet);
}

/* ---- Info-Cards ---- */
.info-card {
  background: var(--cream-tint);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 24px;
  margin: 18px 0 26px;
}
.info-card.violet {
  background: var(--violet-soft);
  border-color: #E3DAFA;
  border-left: 3px solid var(--violet);
}
.info-card .label {
  display: block;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 12px;
}
.info-card.violet .label { color: var(--violet-deep); }

.address-block {
  font-style: normal;
  line-height: 1.7;
  color: var(--ink);
}
.address-block strong { display: block; margin-bottom: 2px; font-size: 1.05rem; }

/* ---- Hilfsklassen ---- */
.muted { color: var(--ink-soft); font-size: 0.92rem; }

/* ---- Footer ---- */
footer {
  border-top: 1px solid var(--line);
  background: var(--cream-tint);
  padding: 40px 0 48px;
}
footer .nav { min-height: 0; flex-wrap: wrap; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
}
.footer-links a:hover { color: var(--violet); }
.footer-bottom {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

/* ---- Mobile ---- */
@media (max-width: 560px) {
  main { padding: 36px 0 60px; }
  .nav { min-height: 60px; }
  h2 { font-size: 1.18rem; margin-top: 36px; }
  .info-card { padding: 18px 18px; }
  .footer-links { gap: 16px; }
}
