/* Ausführliche Rechtsseiten: Impressum und Datenschutz */
html { scroll-padding-top:  7rem; }

.recht-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}

.recht-layout .prose { max-width: 52rem; }

.recht-inhalt {
  counter-reset: recht-abschnitt;
  min-width: 0;
}

.recht-inhalt > section {
  scroll-margin-top: 7rem;
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}

.recht-inhalt > section:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.recht-inhalt h2 {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
  font-size: 1.55rem;
  line-height: 1.25;
}

.recht-inhalt h3 {
  margin-top: 1.8rem;
  font-size: 1.12rem;
  line-height: 1.35;
}

.recht-inhalt h4 {
  margin-top: 1.4rem;
  font-size: 1rem;
}

.recht-inhalt p,
.recht-inhalt li,
.recht-inhalt address {
  line-height: 1.75;
}

.recht-inhalt ul,
.recht-inhalt ol { padding-left: 1.35rem; }
.recht-inhalt li + li { margin-top: .45rem; }

.recht-inhalt table {
  width: 100%;
  margin: 1.25rem 0;
  border-collapse: collapse;
  font-size: .9375rem;
}

.recht-inhalt th,
.recht-inhalt td {
  padding: .8rem;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.recht-inhalt th { background: var(--paper); font-weight: 700; }

.recht-nav {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.recht-nav h2 {
  margin: 0 0 1rem;
  font-size: 1.15rem;
}

.recht-nav ol {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--text-muted);
}

.recht-nav li { margin: .45rem 0; line-height: 1.45; }
.recht-nav a { color: var(--text); text-decoration: none; }
.recht-nav a:hover { color: var(--accent-600); text-decoration: underline; }

.recht-hinweis {
  margin: 1.5rem 0;
  padding: 1.15rem 1.25rem;
  border-left: 4px solid var(--accent-500);
  border-radius: 0 12px 12px 0;
  background: var(--accent-050);
}

.recht-hinweis p:last-child { margin-bottom: 0; }

.recht-meta {
  margin-top: 3rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  font-size: .9375rem;
}

.recht-meta p:last-child { margin-bottom: 0; }

@media (min-width: 75rem) {
  .recht-layout { grid-template-columns: 17rem minmax(0, 1fr); gap: 4rem; }
  .recht-nav { position: sticky; top: 7rem; max-height: calc(100vh - 9rem); overflow-y: auto; }
}

@media (max-width: 40rem) {
  .recht-inhalt h2 { font-size: 1.35rem; }
  .recht-inhalt table { display: block; overflow-x: auto; }
}

@media print {
  .recht-nav, .site-header, .topbar, .site-footer, .cookie { display: none !important; }
  .recht-layout { display: block; }
  .recht-inhalt > section { break-inside: avoid; }
}
