/* ------------------------------------------------------------------ *
 * NimbusDNS – Rechtsseiten (Impressum, AGB, Datenschutz)
 *
 * Setzt auf landing.css auf: Farben, Kopfzeile und Fußzeile kommen von
 * dort, hier steht nur, was ein langes Rechtsdokument zusätzlich braucht –
 * ein Inhaltsverzeichnis, lesbare Spaltenbreite und ruhige Typografie.
 * ------------------------------------------------------------------ */

/* ------------------------------- Kopf ------------------------------- */

.rt-kopf {
  padding: 68px 0 34px;
  border-bottom: 1px solid var(--lp-line);
  position: relative;
  overflow: hidden;
}

/* Dezenter Schimmer, damit die Seite nicht als graue Wand beginnt. */
.rt-kopf::before {
  content: '';
  position: absolute;
  inset: -60% 30% auto -10%;
  height: 320px;
  background: radial-gradient(closest-side, rgba(47, 123, 255, .18), transparent 70%);
  pointer-events: none;
}

.rt-kopf .lp-wrap { position: relative; }

.rt-marke {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--lp-akzent-2);
  margin-bottom: 14px;
}

.rt-marke::before {
  content: '';
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: .6;
}

.rt-kopf h1 {
  font-size: clamp(2rem, 4.4vw, 3rem);
  line-height: 1.12;
  letter-spacing: -.02em;
  margin: 0 0 12px;
}

.rt-kopf .rt-unter {
  color: var(--lp-muted);
  font-size: 1.06rem;
  max-width: 60ch;
  margin: 0;
}

.rt-stand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  padding: 6px 13px;
  border: 1px solid var(--lp-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .03);
  color: var(--lp-muted);
  font-size: .82rem;
}

.rt-stand b { color: var(--lp-text); font-weight: 600; }

/* ------------------------------ Layout ------------------------------ */

.rt-layout {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 52px;
  align-items: start;
  padding: 44px 0 90px;
}

/* Inhaltsverzeichnis – bleibt beim Scrollen stehen. */
.rt-toc {
  position: sticky;
  top: 92px;
  font-size: .9rem;
}

/* Als <details> gebaut, damit es auf schmalen Geräten zusammenklappt.
   Breit ist die Klappmechanik überflüssig – dort bleibt es offen stehen. */
.rt-toc > summary { display: none; }

.rt-toc-titel {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--lp-muted);
  margin: 0 0 12px;
  padding-left: 13px;
}

.rt-toc a {
  display: block;
  padding: 7px 13px;
  border-left: 2px solid var(--lp-line);
  color: var(--lp-muted);
  text-decoration: none;
  line-height: 1.4;
  transition: color .16s, border-color .16s, background .16s;
}

.rt-toc a:hover {
  color: var(--lp-text);
  border-left-color: var(--lp-muted);
  background: rgba(255, 255, 255, .03);
}

.rt-toc a.aktiv {
  color: var(--lp-akzent-2);
  border-left-color: var(--lp-akzent-2);
  background: linear-gradient(90deg, rgba(53, 214, 255, .09), transparent);
}

/* ------------------------------ Inhalt ------------------------------ */

.rt-text { min-width: 0; }

.rt-abschnitt {
  background: var(--lp-card);
  border: 1px solid var(--lp-line);
  border-radius: 18px;
  padding: 30px 34px;
  margin-bottom: 20px;
}

.rt-abschnitt > :first-child { margin-top: 0; }
.rt-abschnitt > :last-child { margin-bottom: 0; }

.rt-text h2 {
  font-size: 1.16rem;
  letter-spacing: -.01em;
  margin: 34px 0 12px;
  scroll-margin-top: 100px;
}

/* Der erste Titel im Block hat den Kartenrand schon als Abstand. */
.rt-abschnitt > h2:first-child { margin-top: 0; }

.rt-text h3 {
  font-size: 1rem;
  color: var(--lp-muted);
  margin: 24px 0 8px;
}

.rt-text p,
.rt-text li {
  color: #c3d0e6;
  line-height: 1.75;
  max-width: 72ch;
}

.rt-text p { margin: 0 0 14px; }

.rt-text ul,
.rt-text ol { margin: 0 0 16px; padding-left: 22px; }
.rt-text li { margin-bottom: 7px; }
.rt-text li::marker { color: var(--lp-akzent); }

.rt-text a {
  color: var(--lp-akzent-2);
  text-decoration: none;
  border-bottom: 1px solid rgba(53, 214, 255, .32);
  overflow-wrap: anywhere;
}

.rt-text a:hover { border-bottom-color: currentColor; }

/* Nebenbemerkungen: kleiner und ruhiger als der Fließtext. */
.rt-text .sub {
  color: var(--lp-muted);
  font-size: .88rem;
  line-height: 1.65;
}

.rt-text strong { color: var(--lp-text); }

.rt-text .mono,
.rt-text code {
  font-family: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  font-size: .88em;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--lp-line);
  border-radius: 6px;
  padding: 1px 6px;
}

/* Hervorgehobener Hinweis, z. B. auf die Haftung für fremde DNS-Einträge. */
.rt-hinweis {
  border: 1px solid var(--lp-line);
  border-left: 3px solid var(--lp-akzent);
  border-radius: 12px;
  background: rgba(47, 123, 255, .07);
  padding: 15px 18px;
  margin: 18px 0;
}

.rt-hinweis > :last-child { margin-bottom: 0; }

/* Tabellen (Datenschutz: Speicherfristen) laufen auf schmalen Geräten
   in ihrer eigenen Scrollfläche, nicht über die Seitenbreite hinaus. */
.rt-tabelle-wrap { overflow-x: auto; margin: 0 0 18px; }

.rt-tabelle {
  border-collapse: collapse;
  width: 100%;
  min-width: 420px;
  font-size: .92rem;
}

.rt-tabelle th,
.rt-tabelle td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--lp-line);
}

.rt-tabelle th {
  color: var(--lp-muted);
  font-size: .76rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 600;
}

.rt-tabelle tr:last-child td { border-bottom: none; }

/* In der Tabelle genügt die Schriftart – Rahmen um jede Zelle wären unruhig. */
.rt-tabelle td.mono { background: none; border: none; padding: 10px 14px; }

/* Verweise auf die jeweils anderen Rechtsseiten. */
.rt-weiter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--lp-line);
}

.rt-weiter a {
  padding: 9px 16px;
  border: 1px solid var(--lp-line);
  border-radius: 11px;
  color: var(--lp-muted);
  font-size: .92rem;
  text-decoration: none;
  border-bottom: 1px solid var(--lp-line);
  transition: color .16s, border-color .16s, background .16s;
}

.rt-weiter a:hover {
  color: var(--lp-text);
  border-color: var(--lp-akzent);
  background: rgba(47, 123, 255, .08);
}

/* --------------------------- Schmale Geräte --------------------------- */

@media (max-width: 900px) {
  .rt-layout {
    grid-template-columns: 1fr;
    gap: 26px;
    padding-top: 30px;
  }

  /* Ohne Platz für eine Spalte wird das Verzeichnis zur Klappliste. */
  .rt-toc {
    position: static;
    border: 1px solid var(--lp-line);
    border-radius: 14px;
    background: var(--lp-card);
    padding: 6px 10px;
  }

  .rt-toc-titel { display: none; }

  .rt-toc > summary {
    display: block;
    cursor: pointer;
    padding: 10px 6px;
    font-weight: 600;
    list-style: none;
  }

  .rt-toc > summary::-webkit-details-marker { display: none; }

  .rt-toc > summary::after {
    content: '▾';
    float: right;
    color: var(--lp-muted);
    transition: transform .18s;
  }

  .rt-toc[open] > summary::after { transform: rotate(180deg); }

  .rt-toc a { border-left: none; padding-left: 6px; }
  .rt-toc a.aktiv { background: none; }
}

@media (max-width: 620px) {
  .rt-kopf { padding: 46px 0 28px; }
  .rt-abschnitt { padding: 22px 20px; border-radius: 14px; }
}

/* Beim Drucken zählt nur der Text – kein Verzeichnis, keine Navigation. */
@media print {
  .lp-nav, .lp-fuss, .rt-toc, .rt-weiter, .lp-skip { display: none; }
  .rt-layout { grid-template-columns: 1fr; padding: 0; }
  .rt-abschnitt { border: none; background: none; padding: 0; }
  .rt-text p, .rt-text li { color: #000; }
}
