/* Nur fuer die Site web-rechner (nd-filter-rechner.de). Wird beim Bauen nach
   web-rechner/css/rechner.css kopiert und nach content.css geladen.

   Steht hier und nicht in content.css, damit die beiden Bestandssites
   unveraendert bleiben. */

/* Der Rechner ist hier die Seite, nicht ein Abschnitt - also etwas mehr Luft
   nach oben als bei einer Inhaltsseite. */
.rd-content .rd-calc-card { margin-top: 8px; }

/* Die Zeile unter dem Ergebnis, die die vier Felder benennt. */
.rd-calc-hint {
  margin: 10px 0 0;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-align: center;
  opacity: 0.6;
}

/* Der ergebnisabhaengige Hinweis unter dem Rechner. Im Prototyp ein
   Platzhalter - deshalb traegt er sichtbar ein Schild und fuehrt absichtlich
   nirgendwohin. */
.rd-partner {
  margin-top: 24px;
  padding: 18px 20px;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}
.rd-partner__badge {
  display: inline-block;
  margin: 0 0 10px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--clr-muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.rd-partner__text { margin: 0 0 14px; }
.rd-partner__cta {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--clr-accent, #FF0081);
  color: #fff !important;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}
.rd-partner__cta:hover { filter: brightness(1.1); }
.rd-partner__note {
  margin: 12px 0 0;
  font-size: 0.8rem !important;
  opacity: 0.65;
}

/* Landingpages je Filterstaerke: die drei Kennzahlen unter der Einleitung. */
.rd-fakten {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0 8px !important;
  padding: 0;
  list-style: none;
}
.rd-fakten li {
  flex: 1 1 150px;
  margin: 0 !important;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}
.rd-fakten span {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.6;
}
.rd-fakten strong {
  display: block;
  margin-top: 4px;
  font-size: 1.25rem;
}

/* Das Motiv oben auf einer Staerke-Seite, sofern eines vorliegt. */
.rd-figur {
  margin: 20px 0 0;
}
.rd-figur img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
}

/* "Welcher ND-Filter?": der Entscheidungsweg. Nummeriert, weil die
   Reihenfolge eine Aussage ist - absteigend nach Haeufigkeit. */
.rd-weg {
  margin: 16px 0 0 !important;
  padding: 0;
  list-style: none;
  counter-reset: weg;
}
.rd-weg > li {
  position: relative;
  margin: 0 0 14px !important;
  padding: 16px 18px 16px 52px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  counter-increment: weg;
}
.rd-weg > li::before {
  content: counter(weg);
  position: absolute;
  left: 18px;
  top: 16px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--clr-accent, #FF0081);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
}
.rd-weg > li > strong { display: block; color: #fff; }
.rd-weg > li > p { margin: 6px 0 0; }
.rd-weg > li > p:last-child { margin-top: 10px; }

/* Navigation: Aufklappliste "Gaengige Filter" und das Menue fuer kleine
   Schirme. Letzteres fehlte bisher ganz - redesign.css blendet
   .rd-nav__links unter 768 px aus und erwartet einen Hamburger, den diese
   Seiten nie mitgebracht haben. Auf dem Handy gab es also keine Navigation. */

.rd-drop { position: relative; }
.rd-drop__knopf {
  padding: 0;
  border: 0;
  background: none;
  color: var(--clr-muted);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  cursor: pointer;
}
.rd-drop__knopf::after {
  content: "";
  display: inline-block;
  margin-left: 6px;
  border: 4px solid transparent;
  border-top-color: currentColor;
  transform: translateY(2px);
}
.rd-drop__knopf:hover,
.rd-drop__knopf[aria-expanded="true"] { color: #fff; }

.rd-drop__menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 268px;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  border-radius: 12px;
  background: #100a1c;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}
.rd-drop:hover .rd-drop__menu,
.rd-drop:focus-within .rd-drop__menu,
.rd-drop__knopf[aria-expanded="true"] + .rd-drop__menu { display: block; }

.rd-drop__menu a {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 10px;
  padding: 9px 18px;
  text-align: center;
}
.rd-drop__menu a:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }
.rd-drop__menu span { opacity: 0.55; font-size: 0.8rem; white-space: nowrap; }

.rd-nav__menu { display: none; }

@media (max-width: 767px) {
  .rd-nav__menu {
    display: inline-block;
    padding: 5px 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: none;
    color: var(--clr-muted);
    font-family: var(--font-display);
    font-size: 0.85rem;
    cursor: pointer;
  }
  .rd-nav__menu[aria-expanded="true"] { color: #fff; border-color: rgba(255, 255, 255, 0.45); }

  /* Die Leiste hat feste Hoehe, das Menue haengt sich deshalb darunter. */
  .rd-nav__links {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 6px 5% 16px;
    background: #0a0614;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  .rd-nav__links.offen { display: flex; }
  .rd-nav__links > li { padding: 9px 0; }

  /* Auf dem Handy klappt nichts: die Filter stehen flach in der Liste. */
  .rd-drop__knopf { pointer-events: none; opacity: 0.55; font-size: 0.78rem; text-transform: uppercase; }
  .rd-drop__knopf::after { display: none; }
  .rd-drop__menu {
    display: block;
    position: static;
    /* Zentrierung und Versatz gelten nur fuer das Aufklappmenue am Desktop;
       in der flachen Liste stuende der Text sonst verschoben und mittig. */
    transform: none;
    min-width: 0;
    margin: 4px 0 0;
    padding: 0 0 0 14px;
    border: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0;
    background: none;
    box-shadow: none;
  }
  .rd-drop__menu a {
    justify-content: space-between;
    padding: 8px 0;
    text-align: left;
  }
  .rd-drop__menu a:hover { background: none; }
}

/* 404 der kleinen Site. */
.rd-content--mitte { text-align: center; }
