/* ════════════════════════════════════════════
   style-rights.css – MyStudy Rechtliches
   Datenschutz · Impressum · AGB
   Setzt style-main.css voraus
   ════════════════════════════════════════════ */

/* ─── NAVBAR aktiver Link ─── */
.nav-active {
  background: rgba(117, 208, 43, 0.1) !important;
  color: var(--g3) !important;
}

/* ════════════════════════════════════════════
   SEITEN-HEADER
   ════════════════════════════════════════════ */
#rights-header {
  padding: clamp(110px, 14vw, 150px) 0 clamp(40px, 5vw, 60px);
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.rh-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.rh-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.22;
}
.rh-blob-1 {
  width: clamp(280px, 45vw, 600px);
  height: clamp(280px, 45vw, 600px);
  background: radial-gradient(var(--g1), transparent);
  top: -15%;
  right: -5%;
}
.rh-blob-2 {
  width: clamp(180px, 28vw, 380px);
  height: clamp(180px, 28vw, 380px);
  background: radial-gradient(var(--g2), transparent);
  bottom: -10%;
  left: -3%;
  opacity: 0.12;
}
.rh-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle,
    rgba(76, 169, 17, 0.08) 1px,
    transparent 1px
  );
  background-size: 32px 32px;
}

.rh-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.rh-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(117, 208, 43, 0.1);
  border: 1px solid rgba(117, 208, 43, 0.28);
  padding: 5px 14px;
  border-radius: var(--radius-btn);
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--g4);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.rh-title {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: clamp(32px, 5vw, 58px);
  letter-spacing: -2px;
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 16px;
}
.rh-title .hl {
  color: var(--g3);
}

.rh-meta {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 28px;
}

/* ─── Download-Button ─── */
.dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--g3);
  color: #fff;
  border: none;
  border-radius: var(--radius-btn);
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 22px;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.dl-btn:hover {
  background: var(--g4);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(76, 169, 17, 0.28);
}
.dl-btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

/* ════════════════════════════════════════════
   DOKUMENT-INHALT
   ════════════════════════════════════════════ */
#rights-content {
  padding: clamp(40px, 6vw, 72px) 0 clamp(60px, 8vw, 100px);
  background: var(--white);
}

.doc-wrap {
  max-width: 760px;
}

/* Inhaltsverzeichnis */
.doc-toc {
  background: var(--bg);
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: var(--radius-card);
  padding: 24px 28px;
  margin-bottom: 48px;
}
.doc-toc-title {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.doc-toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.doc-toc-list a {
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color var(--transition);
}
.doc-toc-list a:hover {
  color: var(--g3);
}
.doc-toc-list a::before {
  content: "";
  width: 4px;
  height: 4px;
  background: var(--g2);
  border-radius: 50%;
  flex-shrink: 0;
}

/* Abschnitte */
.doc-section {
  margin-bottom: 44px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  scroll-margin-top: 100px;
}
.doc-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.doc-heading {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 19px;
  color: var(--ink);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.doc-heading-num {
  font-size: 12px;
  font-weight: 700;
  color: var(--g4);
  background: rgba(117, 208, 43, 0.12);
  border: 1px solid rgba(117, 208, 43, 0.25);
  border-radius: 6px;
  padding: 2px 8px;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.doc-text {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 12px;
}
.doc-text:last-child {
  margin-bottom: 0;
}

/* Platzhalter-Box */
.doc-placeholder {
  background: rgba(117, 208, 43, 0.05);
  border: 1.5px dashed rgba(117, 208, 43, 0.35);
  border-radius: 12px;
  padding: 18px 22px;
  font-size: 14px;
  color: #8aaa6a;
  font-style: italic;
  line-height: 1.7;
}
.doc-placeholder strong {
  font-style: normal;
  font-weight: 600;
  color: var(--g4);
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ─── PRINT / PDF ─── */
@media print {
  #navbar,
  .sidebar,
  .sidebar-overlay,
  #rights-header .rh-bg,
  .dl-btn,
  footer {
    display: none !important;
  }
  #rights-header {
    padding: 32px 0 24px;
    background: none;
  }
  .rh-title {
    font-size: 28px;
  }
  .doc-placeholder {
    border: 1px solid #ccc;
    background: #f9f9f9;
    color: #666;
  }
  body {
    font-size: 13px;
  }
  .doc-section {
    page-break-inside: avoid;
  }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1090px) {
  #rights-header {
    padding-bottom: 32px;
  }
  .rh-inner {
    padding-top: 0;
  }
  .doc-toc {
    padding: 18px 20px;
  }
}
