/* sexplicy PWA-Styles: Footer-Link, Install-Banner, /app-Seite.
   Im Standalone-Modus (als App gestartet) werden Install-Hinweise ausgeblendet. */

/* --- Im App-Modus alles "nur-Browser" verstecken --- */
body.pwa-standalone .pwa-only-browser { display: none !important; }
@media all and (display-mode: standalone) { .pwa-only-browser { display: none !important; } }

/* --- Footer-Link "Als App installieren" --- */
.foot-app { margin: 14px 0 0; }
.foot-app-link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px;
  background: rgba(255, 61, 127, .12); color: #ff8ab4 !important;
  border: 1px solid rgba(255, 61, 127, .35);
  font-weight: 600; font-size: .92rem; text-decoration: none;
  transition: background .15s ease, transform .1s ease;
}
.foot-app-link:hover { background: rgba(255, 61, 127, .2); }
.foot-app-link:active { transform: translateY(1px); }

/* --- Einmaliger Hinweis-Balken (Handy, nur Browser) --- */
.pwa-banner {
  position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 900;
  display: flex; align-items: center; gap: 8px;
  padding: 8px 8px 8px 12px; border-radius: 14px;
  background: #170d12; border: 1px solid rgba(255, 61, 127, .35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
  /* Platz lassen, damit der Chat-Launcher (unten rechts) frei bleibt */
  padding-right: 64px;
}
.pwa-banner-cta {
  display: flex; align-items: center; gap: 10px; flex: 1;
  color: #f5eef0 !important; text-decoration: none; font-weight: 600; font-size: .92rem;
}
.pwa-banner-ic { font-size: 1.25rem; }
.pwa-banner-x {
  appearance: none; border: 0; background: transparent; color: #9c8a92;
  font-size: 1rem; cursor: pointer; padding: 6px 8px; line-height: 1;
}
@media (min-width: 721px) { .pwa-banner { display: none; } }

/* --- /app Install-Seite --- */
.appx { max-width: 760px; margin: 0 auto; }
.appx-hero { text-align: center; padding: 8px 0 6px; }
.appx-hero img { width: 84px; height: 84px; border-radius: 20px; box-shadow: 0 8px 26px rgba(0, 0, 0, .45); }
.appx-hero h1 { margin: 16px 0 8px; }
.appx-lead { color: #c9b9c0; max-width: 56ch; margin: 0 auto; line-height: 1.6; }

.appx-cta { text-align: center; margin: 22px 0 6px; }
.appx-btn {
  display: none; align-items: center; gap: 10px; margin: 0 auto;
  padding: 14px 26px; border-radius: 999px; border: 0; cursor: pointer;
  background: #ff3d7f; color: #fff; font-weight: 700; font-size: 1.02rem; text-decoration: none;
}
.appx-btn:active { transform: translateY(1px); }
body.pwa-installable .appx-btn { display: inline-flex; }     /* nur wenn Android-Prompt bereit */
body.pwa-standalone .appx-cta { display: none; }

.appx-installed {
  display: none; text-align: center; margin: 18px auto; max-width: 56ch;
  padding: 14px 18px; border-radius: 14px;
  background: rgba(95, 208, 160, .12); border: 1px solid rgba(95, 208, 160, .4); color: #bff0da;
}
body.pwa-standalone .appx-installed { display: block; }

.appx-benes { list-style: none; padding: 0; margin: 18px auto 26px; max-width: 56ch; }
.appx-benes li { display: flex; gap: 10px; padding: 7px 0; color: #e8dde2; line-height: 1.5; }
.appx-benes li::before { content: "✓"; color: #5fd0a0; font-weight: 700; }

.appx-os { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; margin: 10px 0 24px; }
@media (max-width: 640px) { .appx-os { grid-template-columns: 1fr; } }
.appx-card {
  background: #140c11; border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 16px; padding: 18px 18px 20px;
}
.appx-card h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 1.1rem; }
.appx-card h2 .os-ic { font-size: 1.3rem; }
.appx-steps { margin: 0; padding-left: 0; list-style: none; counter-reset: step; }
.appx-steps li {
  position: relative; padding: 8px 0 8px 38px; color: #d9cdd3; line-height: 1.5;
  border-top: 1px solid rgba(255, 255, 255, .06);
}
.appx-steps li:first-child { border-top: 0; }
.appx-steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 7px; width: 26px; height: 26px;
  display: grid; place-items: center; border-radius: 999px;
  background: rgba(255, 61, 127, .16); color: #ff8ab4; font-weight: 700; font-size: .85rem;
}
/* Erkanntes System hervorheben */
body.pwa-android .appx-card--android,
body.pwa-ios .appx-card--ios { border-color: rgba(255, 61, 127, .5); box-shadow: 0 0 0 1px rgba(255, 61, 127, .25); }
.appx-note { color: #9c8a92; font-size: .9rem; text-align: center; margin-top: 8px; }
.appx-ios-share { display: inline-block; padding: 0 5px; }

/* --- /feeds (RSS-Baukasten) --- */
.feedx { max-width: 720px; margin: 0 auto; }
.feedx-lead { color: #c9b9c0; line-height: 1.6; max-width: 60ch; }
.feedx-lead code, .feedx-url { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.feedx-builder {
  background: #140c11; border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 16px; padding: 18px; margin: 18px 0 26px;
}
.feedx-builder label { display: block; font-weight: 600; margin-bottom: 8px; }
.feedx-row { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.feedx-row:last-child { margin-bottom: 0; }
.feedx select, .feedx input {
  flex: 1; min-width: 180px; padding: 11px 12px; border-radius: 10px;
  background: #0e080b; color: #f5eef0; border: 1px solid rgba(255, 255, 255, .14); font: inherit;
}
.feedx-btn {
  appearance: none; cursor: pointer; font: inherit; font-weight: 600; white-space: nowrap;
  padding: 11px 16px; border-radius: 10px; border: 0; background: #ff3d7f; color: #fff; text-decoration: none;
  display: inline-flex; align-items: center;
}
.feedx-btn:active { transform: translateY(1px); }
.feedx-btn--ghost { background: transparent; border: 1px solid rgba(255, 61, 127, .5); color: #ff8ab4; }
.feedx-hint { color: #5fd0a0; font-size: .9rem; min-height: 1.2em; margin: 6px 0 0; }
.feedx-h2 { margin: 6px 0 12px; }
.feedx-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.feedx-item {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: #140c11; border: 1px solid rgba(255, 255, 255, .08); border-radius: 12px; padding: 12px 14px;
}
.feedx-ic { font-size: 1.15rem; }
.feedx-name { font-weight: 600; }
.feedx-name small { color: #9c8a92; font-weight: 400; }
.feedx-url { color: #ff8ab4; text-decoration: none; margin-left: auto; font-size: .9rem; }
.feedx-url:hover { text-decoration: underline; }
.feedx-item .feedx-btn { padding: 8px 13px; font-size: .9rem; }
@media (max-width: 560px) { .feedx-url { margin-left: 0; width: 100%; } }

/* --- Chips über Bildern lesbar machen: deckender dunkler Grund + Blur + Schatten.
   Die Rubrik-/Typ-Farbe bleibt als Schriftfarbe (hoher Kontrast auf dunklem Grund). --- */
.chip {
  background: rgba(12, 7, 10, .65) !important;
  -webkit-backdrop-filter: blur(6px) saturate(1.15);
  backdrop-filter: blur(6px) saturate(1.15);
  border-color: rgba(255, 255, 255, .22) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .5);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .55);
  font-weight: 700;
  letter-spacing: .02em;
}

/* --- Rubrik-Chips: Farben für Kategorien ohne eigene Typ-Farbe --- */
.chip--sextoys { background: rgba(255, 106, 162, .14); color: var(--rose-soft, #ff86b1); border-color: rgba(255, 106, 162, .36); }
.chip--stories { background: rgba(196, 139, 255, .14); color: #d6adff; border-color: rgba(196, 139, 255, .36); }
.chip--vergleiche { background: rgba(233, 180, 115, .14); color: var(--gold, #e9b473); border-color: rgba(233, 180, 115, .36); }
.chip--lifestyle { background: rgba(255, 165, 82, .15); color: #ffc08a; border-color: rgba(255, 165, 82, .36); }
.chip--szene { background: rgba(140, 160, 255, .15); color: #aab4ff; border-color: rgba(140, 160, 255, .36); }
