/* Referenzen (Session 5, 13.10.2026): Mac + Handy mit echten Bildschirmfotos, Filter, Detailseiten.
   Rahmen wie die Geräte-Mockups der Leistungsseiten (leistung.css), hier eigenständig mit rf-Präfix. */

/* ── Geräte ── */
.rf-buehne { position: relative; padding: 0 9% 7% 0; }
.rf-mac { position: relative; }
.rf-deckel { background: #1d1d1f; border-radius: 12px; padding: 7px 7px 10px; box-shadow: inset 0 0 0 1px #3a3a3c, 0 30px 60px -32px rgba(16, 40, 70, .5); }
.rf-schirm { position: relative; overflow: hidden; background: var(--nl-surface-2); }
.rf-mac .rf-schirm { aspect-ratio: 16 / 10; border-radius: 3px; }
.rf-mac-fuss { position: relative; height: 9px; margin: 0 -6%; border-radius: 0 0 14px 14px; background: linear-gradient(180deg, #e6e8ec, #aeb3bb); box-shadow: 0 16px 24px -16px rgba(0, 0, 0, .45); }
.rf-mac-fuss::before { content: ""; position: absolute; left: 41%; width: 18%; top: 0; height: 4px; border-radius: 0 0 5px 5px; background: #9ca1a9; }
.rf-phone { position: absolute; right: 0; bottom: 0; width: 22%; background: #1d1d1f; border-radius: 18px; padding: 4px; box-shadow: inset 0 0 0 1.5px #3a3a3c, 0 24px 40px -18px rgba(16, 40, 70, .6); }
.rf-phone .rf-schirm { aspect-ratio: 9 / 19.5; border-radius: 14px; }
.rf-insel { position: absolute; z-index: 2; top: 2%; left: 50%; translate: -50% 0; width: 30%; height: 3%; border-radius: 99px; background: #000; }
.rf-schirm img { display: block; width: 100%; height: auto; max-width: none; }

/* Detail: groß, ganze Seite läuft im Bildschirm durch */
.rf-gross { max-width: 1080px; margin-inline: auto; padding: 0 7% 5% 0; }
.rf-gross .rf-deckel { border-radius: 18px; padding: 12px 12px 16px; }
.rf-gross .rf-mac-fuss { height: 14px; }
.rf-gross .rf-phone { width: 21%; border-radius: 34px; padding: 7px; }
.rf-gross .rf-phone .rf-schirm { border-radius: 28px; }
.rf-gross .rf-schirm { container-type: size; }
.rf-gross .rf-schirm img { animation: rf-lauf var(--dauer, 30s) ease-in-out infinite; animation-play-state: paused; }
.rf-gross.rf-laeuft .rf-schirm img { animation-play-state: running; }
.rf-gross .rf-schirm:hover img { animation-play-state: paused; }
@keyframes rf-lauf { 0%, 8% { translate: 0 0; } 46%, 54% { translate: 0 calc(-100% + 100cqh); } 92%, 100% { translate: 0 0; } }
.rf-hinweis { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 28px 0 0; font-size: .875rem; color: var(--nl-text-muted); text-align: center; }
.rf-zeige-abschnitt { padding-top: 8px; }
@media (prefers-reduced-motion: reduce) { .rf-gross .rf-schirm img { animation: none; } }
@media (width < 700px) {
  .rf-gross .rf-deckel { border-radius: 10px; padding: 6px 6px 9px; }
  .rf-gross .rf-phone { width: 26%; border-radius: 16px; padding: 4px; }
  .rf-gross .rf-phone .rf-schirm { border-radius: 12px; }
  .rf-gross { padding: 0 10% 8% 0; }
  .rf-hinweis span { text-align: left; }
}

/* ── Übersicht: Filter + Raster ── */
.rf-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.rf-knopf { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 99px; border: 1px solid var(--nl-line-strong);
  background: var(--nl-surface-card); color: var(--nl-text-strong); font: inherit; font-size: .9375rem; font-weight: 520; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s; }
.rf-knopf span { font-size: .8125rem; color: var(--nl-text-muted); font-variant-numeric: tabular-nums; }
.rf-knopf:hover { border-color: var(--nl-brand); }
.rf-knopf[aria-pressed="true"] { background: var(--nl-text-strong); border-color: var(--nl-text-strong); color: var(--nl-surface-0); }
.rf-knopf[aria-pressed="true"] span { color: inherit; opacity: .7; }
.rf-knopf:focus-visible { outline: 2px solid var(--nl-focus); outline-offset: 2px; }
@media (width < 700px) {
  .rf-filter { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--nl-gutter)) 32px; padding: 2px var(--nl-gutter); }
  .rf-filter::-webkit-scrollbar { display: none; }
  .rf-knopf { flex: none; }
}

.rf-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 48px 32px; }
.rf-raster.rf-drei { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.rf-karte { display: flex; flex-direction: column; gap: 22px; color: inherit; text-decoration: none; border-radius: var(--nl-radius-lg); }
.rf-karte[hidden] { display: none; }
.rf-karte .rf-buehne { padding: 20px 9% 22px 20px; border-radius: var(--nl-radius-lg); background: var(--nl-surface-1); border: 1px solid var(--nl-line);
  transition: transform .5s var(--nl-ease), box-shadow .5s var(--nl-ease), border-color .3s; }
.rf-karte .rf-phone { right: 16px; bottom: 14px; }
.rf-karte .rf-schirm img { transition: translate 1.6s var(--nl-ease); }
.rf-karte:hover .rf-buehne { transform: translateY(-4px); box-shadow: var(--nl-shadow-hover); border-color: var(--nl-brand-line); }
.rf-karte:hover .rf-mac .rf-schirm img { translate: 0 -6%; }
.rf-karte:focus-visible { outline: 2px solid var(--nl-focus); outline-offset: 4px; }
.rf-karte-text { display: flex; flex-direction: column; gap: 6px; }
.rf-marke { font-size: .8125rem; color: var(--nl-text-muted); }
.rf-karte-titel { font-size: 1.25rem; font-weight: 620; letter-spacing: -.01em; color: var(--nl-text-strong); }
.rf-karte:hover .rf-karte-titel { color: var(--nl-link); }
.rf-karte-kurz { font-size: .9375rem; line-height: 1.55; color: var(--nl-text); }
.rf-karte.rf-rein { animation: rf-rein .5s var(--nl-ease) both; }
@keyframes rf-rein { from { opacity: 0; transform: translateY(12px); } }

/* ── Detail: Text + Steckbrief ── */
.rf-detail { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 56px; align-items: start; }
.rf-detail-text h2 { margin-top: 0; }
.rf-steckbrief { padding: 28px; position: sticky; top: 96px; }
.rf-steckbrief dl { margin: 0 0 24px; display: grid; gap: 14px; }
.rf-steckbrief dl div { display: grid; gap: 2px; }
.rf-steckbrief dt { font-size: .8125rem; color: var(--nl-text-muted); }
.rf-steckbrief dd { margin: 0; font-weight: 560; color: var(--nl-text-strong); }
.rf-steckbrief dd a { color: var(--nl-link); }
.rf-steckbrief h3 { font-size: 1rem; margin: 0 0 12px; padding-top: 20px; border-top: 1px solid var(--nl-line); }
.rf-steckbrief ul { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 10px; }
.rf-steckbrief li { display: flex; gap: 10px; align-items: flex-start; font-size: .9375rem; }
.rf-steckbrief li svg { flex: none; margin-top: 2px; color: var(--nl-brand); }
.rf-live { width: 100%; height: auto; min-height: var(--nl-control-h); padding-block: 10px; white-space: normal; overflow-wrap: anywhere; text-align: center; }
@media (width < 900px) { .rf-detail { grid-template-columns: minmax(0, 1fr); gap: 32px; } .rf-steckbrief { position: static; } }

.rf-weitere-kopf { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 24px; margin-bottom: 36px; }
.rf-weitere-kopf h2 { margin: 0; }

/* Referenz-Beispiele auf Startseite, Leistungs- und Branchenseiten (Session 5) */
.rf-b-text { margin: 8px 0 0; max-width: 60ch; color: var(--nl-text); }
.rf-alle { flex: none; }
.rf-beispiele .rf-weitere-kopf { align-items: flex-end; }
.rf-start { padding-block: clamp(64px, 9vw, 120px); }
.rf-start h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); letter-spacing: -.03em; line-height: 1.05; }
@media (width < 700px) { .rf-filter { mask-image: linear-gradient(90deg, #000 85%, transparent); } }
