/* Content pages (Glossar, Studien) — slimmer styling on top of rs-styles.css.
   Same tokens (--bg, --fg, --accent, --line, --font-display, --font-mono),
   just different layout chrome: a max-width text column with sidebars
   instead of the marketing-section grids. */

.rs-content-nav {
  border-bottom: 1px solid var(--line);
}

/* Page wrapper — readable text width, generous top padding under the nav */
.rs-content {
  max-width: 920px;
  margin: 0 auto;
  padding: 96px var(--pad) 96px;
}

.rs-content-header {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}
.rs-content-header .rs-section-kicker {
  margin-bottom: 16px;
  display: inline-block;
}
.rs-content-header .rs-h1 {
  font-size: clamp(40px, 5vw, 60px);
  margin: 0 0 24px;
  text-wrap: balance;
}
.rs-content-lead {
  font-size: 17px;
  color: var(--fg-2);
  line-height: 1.6;
  max-width: 640px;
  text-wrap: pretty;
}

/* ── GLOSSAR ──────────────────────────────────── */

/* A–Z jump bar — sticky-ish band of letter links */
.rs-glossar-index {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 16px 18px;
  margin-bottom: 56px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: sticky;
  top: 12px;
  z-index: 4;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.rs-glossar-index a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  padding: 6px 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--fg-2);
  border-radius: 6px;
  transition: color .15s ease, background .15s ease;
}
.rs-glossar-index a:hover {
  color: var(--accent);
  background: rgba(83, 233, 255, 0.08);
}

.rs-glossar-letter {
  margin-bottom: 56px;
  scroll-margin-top: 90px;
}
.rs-glossar-letter-h {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: -0.04em;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  line-height: 1;
}

.rs-glossar-list {
  margin: 0;
  display: flex;
  flex-direction: column;
}
.rs-glossar-entry {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  align-items: start;
}
.rs-glossar-entry:last-child {
  border-bottom: 0;
}
.rs-glossar-term {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  color: var(--fg);
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}
.rs-glossar-def {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--fg-2);
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-wrap: pretty;
}
.rs-glossar-foryou {
  display: block;
  padding: 12px 14px;
  background: rgba(83, 233, 255, 0.05);
  border-left: 2px solid var(--accent);
  border-radius: 4px;
  font-size: 14px;
  color: var(--fg-2);
}
.rs-glossar-foryou strong {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  font-weight: 500;
  display: block;
  margin-bottom: 4px;
}

/* ── STUDIEN ─────────────────────────────────── */
.rs-studien-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin: 48px 0 56px;
}
.rs-studien-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--bg-3), var(--bg));
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  padding: 28px;
  transition: border-color .2s ease, transform .2s ease;
}
.rs-studien-item.is-coming {
  opacity: 0.6;
}
.rs-studien-item:hover {
  border-color: rgba(83, 233, 255, 0.3);
}
.rs-studien-cover {
  aspect-ratio: 3 / 4;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.rs-studien-cover svg {
  width: 100%;
  height: 100%;
  display: block;
}
.rs-studien-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.rs-studien-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--fg);
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin: 0 0 12px;
  text-wrap: balance;
}
.rs-studien-summary {
  font-size: 14.5px;
  color: var(--fg-2);
  line-height: 1.6;
  margin: 0 0 18px;
  text-wrap: pretty;
}
.rs-studien-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.rs-studien-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg);
  letter-spacing: 0.02em;
  transition: border-color .15s ease, color .15s ease;
}
.rs-studien-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.rs-studien-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-3);
  letter-spacing: 0.04em;
}

/* ── CTA AT BOTTOM ─────────────────────────────── */
.rs-content-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px;
  margin-top: 64px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--bg-3), var(--bg));
  flex-wrap: wrap;
}
.rs-content-cta h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 6px;
  color: var(--fg);
}
.rs-content-cta p {
  margin: 0;
  font-size: 14.5px;
  color: var(--fg-2);
}

.rs-content-footer .rs-footer-bottom a {
  color: var(--fg-2);
  transition: color .15s ease;
}
.rs-content-footer .rs-footer-bottom a:hover {
  color: var(--accent);
}

/* ── NEWSLETTER MODAL ─────────────────────────── */
.rs-nl-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 24px;
  animation: rs-nl-fade .18s ease;
}
@keyframes rs-nl-fade { from { opacity: 0; } to { opacity: 1; } }
.rs-nl-card {
  position: relative;
  max-width: 460px;
  width: 100%;
  background: linear-gradient(180deg, var(--bg-3), var(--bg));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(83, 233, 255, 0.05);
}
.rs-nl-close {
  position: absolute; top: 12px; right: 12px;
  background: transparent; border: 0; color: var(--fg-3);
  font-size: 22px; line-height: 1; padding: 6px 10px;
  cursor: pointer; border-radius: 6px;
  transition: color .15s ease, background .15s ease;
}
.rs-nl-close:hover { color: var(--fg); background: var(--bg-2); }
.rs-nl-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.rs-nl-h {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  color: var(--fg);
}
.rs-nl-p {
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg-2);
  text-wrap: pretty;
}
.rs-nl-p strong { color: var(--fg); font-weight: 500; }
.rs-nl-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.rs-nl-dismiss {
  background: transparent;
  border: 0;
  color: var(--fg-2);
  font-family: var(--font-mono);
  font-size: 13px;
  cursor: pointer;
  padding: 8px 4px;
  transition: color .15s ease;
}
.rs-nl-dismiss:hover { color: var(--fg); }

/* ── LEGAL (Impressum / Datenschutz) ───────────── */
.rs-legal .rs-legal-block {
  margin-bottom: 40px;
}
.rs-legal h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--fg);
  margin: 0 0 14px;
  padding-top: 8px;
  text-wrap: balance;
}
.rs-legal p,
.rs-legal ul {
  font-size: 15px;
  line-height: 1.65;
  color: var(--fg-2);
  margin: 0 0 14px;
  text-wrap: pretty;
}
.rs-legal ul {
  padding-left: 20px;
}
.rs-legal li {
  margin-bottom: 6px;
}
.rs-legal strong {
  color: var(--fg);
  font-weight: 500;
}
.rs-legal a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(83, 233, 255, 0.35);
  text-underline-offset: 3px;
  transition: text-decoration-color .15s ease;
}
.rs-legal a:hover {
  text-decoration-color: var(--accent);
}
.rs-legal-todo {
  display: inline-block;
  padding: 1px 8px;
  background: rgba(255, 200, 80, 0.08);
  border: 1px dashed rgba(255, 200, 80, 0.4);
  border-radius: 4px;
  color: rgb(255, 210, 130);
  font-family: var(--font-mono);
  font-size: 12.5px;
}
.rs-legal-note {
  padding: 14px 16px;
  background: var(--bg-3);
  border-left: 2px solid var(--accent);
  border-radius: 4px;
  font-size: 14px;
}
.rs-legal-toc {
  padding: 20px 24px;
  margin-bottom: 40px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.rs-legal-toc strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 10px;
}
.rs-legal-toc ol {
  margin: 0;
  padding-left: 20px;
  columns: 2;
  column-gap: 32px;
  font-size: 14px;
  line-height: 1.8;
}
.rs-legal-toc a {
  color: var(--fg-2);
  text-decoration: none;
}
.rs-legal-toc a:hover {
  color: var(--accent);
}
.rs-legal-block[id] {
  scroll-margin-top: 24px;
}
.rs-legal-stand {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--fg-3);
  font-style: italic;
}

@media (max-width: 720px) {
  .rs-legal-toc ol { columns: 1; }
  .rs-content { padding: 64px var(--pad) 64px; }
  .rs-glossar-entry,
  .rs-studien-item {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .rs-glossar-letter-h { font-size: 40px; }
  .rs-glossar-index { top: 0; border-radius: 0; margin-left: calc(-1 * var(--pad)); margin-right: calc(-1 * var(--pad)); }
  .rs-content-cta { flex-direction: column; align-items: flex-start; }
}
