/* Neurovexa — Rechtsseiten der Website (/datenschutz, /agb, …) und API-Dokumentation (/api/docs)
   Baut auf nvx-panel-tokens.css + nvx-domain.css auf (Hero, Karten, CTA-Band).
   Hier nur: Einbettung in die Website, Kurzüberblick und das Lese-Layout des Rechtstexts (Inter statt Teko).
*/

/* ---- Einbettung in die Website ---- */
body.nvx-site-privacy {
  background-color: var(--nvx-navy);
}

body.nvx-site-privacy .nvx-pv-top {
  position: relative;
  z-index: 3;
  background: none;
}

/* breiter als die übrigen Seiten (1080px): langer Rechtstext braucht Platz */
.nvx-domain.nvx-privacy {
  max-width: 1440px;
}

.nvx-privacy {
  position: relative;
  z-index: 1;
  clear: both;
  padding-top: 1.25rem;
  font-family: var(--nvx-font);
  font-size: 13px;
  line-height: 1.5;
}

/* Website-CSS setzt Teko auf Überschriften, Spans und Adressen – hier überall Inter */
.nvx-privacy h1,
.nvx-privacy h2,
.nvx-privacy h3,
.nvx-privacy span,
.nvx-privacy strong,
.nvx-privacy small,
.nvx-privacy a,
.nvx-privacy p,
.nvx-privacy li,
.nvx-privacy td,
.nvx-privacy th,
.nvx-privacy address,
.nvx-privacy code {
  font-family: var(--nvx-font);
  text-transform: none;
  letter-spacing: normal;
}

.nvx-privacy h1,
.nvx-privacy h2,
.nvx-privacy h3 {
  line-height: 1.25;
}

/* ---- Kurzüberblick ---- */
.nvx-pv-highlights {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--nvx-gap);
}

.nvx-domain .nvx-pv-highlight {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1.25rem 1.2rem;
}

.nvx-domain .nvx-pv-highlight:hover {
  transform: none;
}

.nvx-pv-highlight .nvx-dm-icon {
  flex-shrink: 0;
}

.nvx-pv-highlight h3 {
  margin: 0 0 0.25rem;
  font-size: 0.98rem;
  font-weight: 700;
}

.nvx-pv-highlight p {
  margin: 0;
  color: var(--nvx-muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

/* ---- Rechtstext: eine ruhige Lesespalte ---- */
/* volle Breite des Inhaltsbereichs, wie die Karten darüber */
.nvx-domain .nvx-pv-doc {
  max-width: none;
  margin: 0;
  padding: 3rem 3.5rem;
}

.nvx-domain .nvx-pv-doc:hover {
  transform: none;
}

.nvx-pv-section {
  padding: 2.25rem 0;
  border-top: 1px solid var(--nvx-border-soft);
  scroll-margin-top: 1.5rem;
}

.nvx-pv-section:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.nvx-pv-section:last-of-type {
  padding-bottom: 0;
}

.nvx-pv-section h2 {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0 0 1.1rem;
  color: #fff;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.nvx-pv-num {
  display: inline-grid;
  flex-shrink: 0;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(66, 151, 249, 0.22), rgba(168, 85, 247, 0.22));
  box-shadow: inset 0 0 0 1px rgba(61, 224, 245, 0.35);
  color: var(--nvx-cyan);
  font-size: 0.82rem;
  font-weight: 800;
}

.nvx-pv-section h3 {
  margin: 1.6rem 0 0.55rem;
  color: #fff;
  font-size: 1.02rem;
  font-weight: 700;
}

.nvx-pv-section h2 + h3,
.nvx-pv-section h2 + p + h3 {
  margin-top: 0.8rem;
}

.nvx-pv-section p,
.nvx-pv-list li {
  color: rgba(220, 230, 255, 0.8);
  font-size: 0.98rem;
  line-height: 1.75;
}

.nvx-pv-section p {
  margin: 0 0 0.9rem;
}

.nvx-pv-section p:last-child {
  margin-bottom: 0;
}

.nvx-pv-section strong {
  color: #fff;
  font-weight: 700;
}

.nvx-pv-section a {
  color: var(--nvx-cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(61, 224, 245, 0.35);
}

.nvx-pv-section a:hover,
.nvx-pv-section a:focus-visible {
  color: #fff;
  border-bottom-color: #fff;
}

.nvx-pv-section code {
  padding: 0.1rem 0.4rem;
  border-radius: 6px;
  background: rgba(66, 151, 249, 0.12);
  color: #bfe3ff;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.85em;
}

/* Listen mit Häkchen-Punkten */
.nvx-pv-list {
  display: grid;
  gap: 0.55rem;
  margin: 0.4rem 0 1rem;
  padding: 0;
  list-style: none;
}

.nvx-pv-list li {
  position: relative;
  padding-left: 1.6rem;
}

.nvx-pv-list li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0.2rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--nvx-sky), var(--nvx-cyan));
  box-shadow: 0 0 10px rgba(61, 224, 245, 0.45);
}

/* Anschrift */
.nvx-pv-address {
  display: grid;
  gap: 0.2rem;
  margin: 0.6rem 0 1.1rem;
  padding: 1.1rem 1.3rem;
  border: 1px solid var(--nvx-border-soft);
  border-left: 3px solid var(--nvx-cyan);
  border-radius: var(--nvx-radius-sm);
  background: rgba(6, 7, 34, 0.5);
  color: rgba(220, 230, 255, 0.85);
  font-size: 0.95rem;
  font-style: normal;
  line-height: 1.6;
}

.nvx-pv-address strong {
  font-size: 1.02rem;
}

/* Firmendaten (Legal Notice): Bezeichnung | Wert */
.nvx-pv-facts {
  display: grid;
  margin: 0 0 1.1rem;
  border: 1px solid var(--nvx-border-soft);
  border-radius: var(--nvx-radius-sm);
  background: rgba(6, 7, 34, 0.45);
  overflow: hidden;
}

.nvx-pv-facts > div {
  display: grid;
  grid-template-columns: minmax(11rem, 15rem) 1fr;
  gap: 1rem;
  padding: 0.8rem 1.1rem;
  border-bottom: 1px solid rgba(66, 151, 249, 0.12);
}

.nvx-pv-facts > div:last-child {
  border-bottom: 0;
}

.nvx-pv-facts > div:nth-child(even) {
  background: rgba(66, 151, 249, 0.035);
}

.nvx-pv-facts dt {
  color: #9fd4ff;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.9;
  text-transform: uppercase;
}

.nvx-pv-facts dd {
  margin: 0;
  color: rgba(220, 230, 255, 0.85);
  font-size: 0.95rem;
  line-height: 1.6;
}

@media (max-width: 575.98px) {
  .nvx-pv-facts > div {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
}

/* Code-Blöcke und HTTP-Methode (API-Dokumentation) */
.nvx-privacy pre.nvx-pv-code {
  margin: 0.6rem 0 1.2rem;
  padding: 1rem 1.2rem;
  overflow-x: auto;
  border: 1px solid var(--nvx-border-soft);
  border-left: 3px solid var(--nvx-cyan);
  border-radius: var(--nvx-radius-sm);
  background: rgba(3, 4, 20, 0.75);
  -webkit-overflow-scrolling: touch;
}

.nvx-privacy pre.nvx-pv-code code {
  display: block;
  padding: 0;
  background: none;
  color: #d6e8ff;
  font-size: 0.86rem;
  line-height: 1.65;
  white-space: pre;
}

.nvx-pv-endpoint {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.nvx-privacy .nvx-pv-method {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 6px;
  background: rgba(34, 197, 94, 0.16);
  box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.45);
  color: #4ade80;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.nvx-pv-section h3 small {
  color: var(--nvx-muted);
  font-size: 0.8rem;
  font-weight: 500;
}

/* Tabellen */
.nvx-pv-table-wrap {
  margin: 1rem 0 1.2rem;
  overflow-x: auto;
  border: 1px solid var(--nvx-border-soft);
  border-radius: var(--nvx-radius-sm);
  background: rgba(6, 7, 34, 0.45);
  -webkit-overflow-scrolling: touch;
}

.nvx-pv-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
}

.nvx-pv-table th,
.nvx-pv-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(66, 151, 249, 0.12);
  text-align: left;
  vertical-align: top;
  font-size: 0.86rem;
  line-height: 1.55;
}

.nvx-pv-table th {
  background: rgba(66, 151, 249, 0.1);
  color: #9fd4ff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  white-space: nowrap;
}

.nvx-pv-table td {
  color: rgba(220, 230, 255, 0.82);
}

.nvx-pv-table td:first-child {
  color: #fff;
  font-weight: 600;
}

.nvx-pv-table tbody tr:last-child td {
  border-bottom: 0;
}

.nvx-pv-table tbody tr:nth-child(even) td {
  background: rgba(66, 151, 249, 0.035);
}

/* ---- Responsive ---- */
@media (max-width: 1199.98px) {
  .nvx-pv-highlights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  body.nvx-page-hero::before {
    opacity: 0.45;
  }

  .nvx-pv-highlights {
    grid-template-columns: 1fr;
  }

  .nvx-domain .nvx-pv-doc {
    padding: 1.6rem 1.25rem;
  }

  .nvx-pv-section {
    padding: 1.75rem 0;
  }

  .nvx-pv-section h2 {
    font-size: 1.2rem;
  }

  .nvx-pv-section p,
  .nvx-pv-list li {
    font-size: 0.93rem;
  }
}
