/* Nur fuer die Inhaltsseiten (ND-Filter-Tabelle, FAQ). Die Startseite laedt
   diese Datei nicht. */

.rd-nav--solid { background: rgba(10, 6, 20, 0.92); }
.rd-nav__home { display: inline-flex; align-items: center; gap: 10px; }

/* Nur fuer Screenreader. Die Tabellen-Captions benennen ihre Tabelle fuer
   Vorleseprogramme und Crawler; sichtbar waeren sie eine Dopplung der
   Ueberschrift, die direkt darueber steht. clip-path statt display:none -
   Letzteres nimmt den Text auch aus dem Vorlesebaum. */
.rd-nur-vorlesen {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Breite Tabellen scrollen in sich, statt die ganze Seite zu verbreitern. */
.rd-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.rd-table-scroll .rd-data-table { min-width: 520px; }

.rd-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 120px 24px 24px;
}

.rd-content .rd-section { padding: 32px 0; }
.rd-content .rd-section-title { text-align: left; }
.rd-content .rd-section-subtitle { text-align: left; margin-left: 0; }

.rd-content h2 {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 700;
  color: #fff;
  margin: 32px 0 12px;
}

.rd-content p,
.rd-content li { color: var(--clr-muted); font-size: 0.95rem; line-height: 1.7; }
.rd-content ul { margin: 12px 0 12px 20px; }
.rd-content li { margin-bottom: 8px; }
.rd-content strong { color: #fff; }
.rd-content a { color: var(--clr-accent, #FF0081); }

.rd-data-table {
  width: 100%;
  margin: 24px 0;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.rd-data-table th {
  padding: 12px 14px;
  text-align: left;
  font-weight: 700;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}
.rd-data-table td {
  padding: 11px 14px;
  color: var(--clr-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.rd-data-table td:first-child { color: #fff; font-weight: 600; }
.rd-data-table tbody tr:hover { background: rgba(255, 255, 255, 0.04); }

.rd-faq {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4px 0;
}
.rd-faq summary {
  cursor: pointer;
  padding: 14px 0;
  list-style: none;
}
.rd-faq summary::-webkit-details-marker { display: none; }
.rd-faq summary h2 {
  display: inline;
  font-size: 1.05rem;
  margin: 0;
}
.rd-faq summary::after {
  content: "+";
  float: right;
  color: var(--clr-muted);
  font-size: 1.2rem;
  line-height: 1;
}
.rd-faq[open] summary::after { content: "\2013"; }
.rd-faq p { padding: 0 0 16px; }

.rd-note {
  margin-top: 24px;
  padding: 16px 18px;
  border-left: 2px solid var(--clr-accent, #FF0081);
  background: rgba(255, 255, 255, 0.03);
}

@media (max-width: 640px) {
  .rd-content { padding-top: 96px; }
  .rd-data-table { font-size: 0.82rem; }
  .rd-data-table th,
  .rd-data-table td { padding: 9px 8px; }
}

/* Die Knopfzeile ueber der Tabelle (Drucken, PDF). */
.rd-aktionen {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0 0;
}
.rd-aktion {
  display: inline-block;
  padding: 9px 16px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: none;
}
.rd-aktion:hover { border-color: var(--clr-accent, #FF0081); }

/* Druckfassung. Die Tabellenseite ist das, was Leute ausdrucken und an die
   Fototasche legen - sie soll auf eine Seite passen und auf Papier lesbar
   sein, also schwarz auf weiss statt hell auf dunkel. */
@media print {
  @page { margin: 14mm; }

  .rd-nav,
  .rd-footer,
  .rd-aktionen,
  .rd-calc-card,
  .rd-note { display: none !important; }

  html, body {
    background: #fff !important;
    color: #000 !important;
  }
  body { font-size: 10pt; }

  .rd-content { max-width: none; padding: 0; }
  .rd-content .rd-section { padding: 0 0 10px; break-inside: avoid; }

  .rd-content .rd-section-title,
  .rd-content h2,
  .rd-content strong { color: #000 !important; }
  .rd-content .rd-section-title { font-size: 18pt; margin: 0 0 4px; }
  .rd-content h2 { font-size: 12pt; margin: 10px 0 4px; }
  .rd-content p,
  .rd-content li { color: #000 !important; font-size: 9.5pt; line-height: 1.35; }
  .rd-content a { color: #000 !important; text-decoration: none; }

  /* Auf Papier gibt es kein Scrollen - die Tabelle muss ganz hin. */
  .rd-table-scroll { overflow: visible !important; }
  .rd-table-scroll .rd-data-table { min-width: 0 !important; }

  .rd-data-table {
    font-size: 9pt;
    margin: 6px 0;
    break-inside: avoid;
  }
  .rd-data-table th,
  .rd-data-table td {
    padding: 3px 6px;
    color: #000 !important;
    border: 1px solid #999 !important;
  }
  .rd-data-table th { background: #eee !important; }
  .rd-data-table tbody tr:hover { background: transparent !important; }

  /* Woher der Ausdruck kommt, damit ein Zettel ohne Rahmen zuzuordnen ist. */
  .rd-content .rd-section:last-child::after {
    content: "nd-filter-rechner.de";
    display: block;
    margin-top: 8px;
    font-size: 8pt;
    color: #555;
  }

  /* Im FAQ sind die Antworten zugeklappt; gedruckt gehoeren sie aufgeklappt. */
  .rd-faq p { display: block !important; padding-bottom: 6px; }
  .rd-faq summary::after { content: "" !important; }
}
