:root {
  --bg: #020a1a;
  --bg-alt: #111a22;
  --surface: #1f2937;
  --surface-soft: rgba(255, 255, 255, 0.05);
  --surface-hover: rgba(255, 255, 255, 0.08);
  --text: #f6f8ff;
  --text-secondary: rgba(246, 248, 255, 0.88);
  --muted: rgba(246, 248, 255, 0.55);
  --border: rgba(255, 255, 255, 0.1);
  --divider: rgba(255, 255, 255, 0.07);
  --primary: #4c8dff;
  --primary-light: #60a5fa;
  --primary-soft: rgba(76, 141, 255, 0.16);
  --primary-border: rgba(76, 141, 255, 0.4);
  --shadow: rgba(3, 7, 18, 0.75);
  --radius-card: 18px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  color: var(--text);
  background:
    radial-gradient(1200px 680px at 18% -12%, rgba(76, 141, 255, 0.18), transparent 60%),
    radial-gradient(980px 620px at 100% 0%, rgba(96, 165, 250, 0.1), transparent 56%),
    var(--bg);
  font-family: Inter, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.65;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  opacity: 0.95;
  z-index: 5;
}

a {
  color: var(--primary-light);
  text-decoration-color: rgba(96, 165, 250, 0.55);
  text-underline-offset: 3px;
  transition: color 140ms ease, opacity 140ms ease;
}

a:hover {
  color: var(--text);
}

.container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 28px 16px 56px;
}

.card {
  background:
    linear-gradient(180deg, rgba(31, 41, 55, 0.98), rgba(17, 26, 34, 0.97));
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 16px 36px -22px var(--shadow);
}

.card:first-child {
  border-color: var(--primary-border);
  box-shadow:
    0 0 0 1px rgba(76, 141, 255, 0.18),
    0 16px 36px -22px var(--shadow);
}

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--text);
}

h1 {
  font-size: 1.8rem;
  line-height: 1.2;
  letter-spacing: 0.01em;
  margin-bottom: 0.75rem;
}

h2 {
  font-size: 1.2rem;
  line-height: 1.32;
  margin-top: 1.4rem;
  margin-bottom: 0.65rem;
}

h3 {
  font-size: 1.03rem;
  line-height: 1.4;
  margin-top: 1.2rem;
  margin-bottom: 0.55rem;
  color: var(--text-secondary);
}

p,
li {
  color: var(--text-secondary);
  line-height: 1.68;
}

p {
  margin: 0 0 0.85rem;
}

strong {
  color: var(--text);
}

.meta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.9rem;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.28rem 0.72rem;
  margin: 0 0 0.8rem;
}

.link-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.link-list li {
  margin: 0;
  padding: 0.42rem 0;
}

.link-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
}

.link-list a::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 0 0 3px rgba(76, 141, 255, 0.22);
}

ul,
ol {
  margin: 0.65rem 0 1rem;
  padding-left: 1.2rem;
}

li + li {
  margin-top: 0.35rem;
}

hr {
  border: 0;
  border-top: 1px solid var(--divider);
  margin: 1.2rem 0;
}

/* Generator compatibility (Datenschutz-Generator etc.) */
.index,
.m-elements,
.glossary {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
}

.index li,
.m-elements li,
.glossary li {
  margin-top: 0.35rem;
}

.index-link {
  text-decoration: none;
  border-bottom: 1px dashed rgba(76, 141, 255, 0.58);
}

.index-link:hover {
  border-bottom-style: solid;
}

.seal {
  margin-top: 1.1rem;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--primary-soft);
  border: 1px solid var(--primary-border);
  font-size: 0.9rem;
}

@media (max-width: 700px) {
  .container {
    padding: 16px 12px 38px;
  }

  .card {
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 12px;
  }

  h1 {
    font-size: 1.45rem;
  }

  h2 {
    font-size: 1.08rem;
  }
}
