/**
 * Pawlie's Fleck-Detektiv, Widget-Styles.
 * Ergänzt die Theme-Utilities um die wenigen Widget-eigenen Komponenten
 * (Chips, Progress-Dots, Dropzone, Spinner). Farben = Brand-Palette.
 */

/* Komponenten-Reset: das Widget lebt in beliebigen Sections (blau, cream, weiß)
   und in .entry-content. Theme-Typografie (weiße Hero-Headings, Listen-Marker,
   Heading-Margins) darf nicht in die Karte durchschlagen. ID-Spezifität statt !important. */
#pfd-app h2 {
  color: #354c84;
  margin: 0 0 0.25rem;
}
#pfd-app h3 {
  color: #354c84;
  margin: 0;
}
#pfd-app ol,
#pfd-app ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
#pfd-app li::before {
  content: none;
  display: none;
}
#pfd-app li::marker {
  content: none;
}
#pfd-app {
  --pfd-muted: #7a6549; /* brand-bark, leicht abgedunkelt: 5.6:1 auf Weiß (AA mit Reserve) */
}
/* Sticky-Header (81px hoch) darf das Ergebnis nicht verdecken.
   scroll-margin-top AM ZIEL bleibt hier wirkungslos: #pfd-app sitzt am oberen Rand
   von .pfd-shell (LP) bzw. der details-Karte (Embed), beide overflow:hidden. Diese
   Clip-Box schneidet die Scroll-Margin-Box oben ab, bevor der Fenster-Scroll sie sieht.
   Im Browser gemessen: Ergebnis landete bei 0px statt bei 110px. Das Polster gehört
   deshalb an den Scrollport, dort greift kein Clipping. */
html:has(#pfd-app) {
  scroll-padding-top: 110px;
}
.pfd-muted {
  color: var(--pfd-muted);
}

/* Auswahl-Chips */
.pfd-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 52px;
  padding: 0.65rem 0.9rem;
  border-radius: 0.75rem;
  border: 2px solid #f3e6d8;
  background: #fff;
  color: #2e2e2e;
  font-size: 0.925rem;
  font-weight: 600;
  line-height: 1.25;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.pfd-chip:hover {
  border-color: #4a6aab;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(53, 76, 132, 0.08);
}
.pfd-chip:focus-visible {
  outline: 3px solid #4a6aab;
  outline-offset: 2px;
}
.pfd-chip-active {
  border-color: #354c84;
  background: #354c84;
  color: #fff;
}
.pfd-chip-active:hover {
  border-color: #354c84;
}

/* Progress-Dots */
.pfd-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: #f3e6d8;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.pfd-dot-active {
  background: #e6425b;
  transform: scale(1.35);
}
.pfd-dot-done {
  background: #354c84;
}

/* Foto-Dropzone */
.pfd-drop {
  border: 2px dashed #d4c4a8;
  border-radius: 0.75rem;
  background: #fbf3eb;
  padding: 1.5rem 1rem;
  text-align: center;
  color: #354c84;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.pfd-drop:hover,
.pfd-drop:focus-visible {
  border-color: #354c84;
  background: #f3e6d8;
  outline: none;
}
.pfd-drop:focus-visible {
  outline: 3px solid #4a6aab;
  outline-offset: 2px;
}

/* Demo-Liste */
.pfd-demo-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.9rem 1rem;
  border-radius: 0.75rem;
  border: 2px solid #f3e6d8;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.pfd-demo-item:hover {
  border-color: #4a6aab;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(53, 76, 132, 0.08);
}
.pfd-demo-item:focus-visible {
  outline: 3px solid #4a6aab;
  outline-offset: 2px;
}

/* Sekundaer-Aktion (Text-Button) */
.pfd-ghost {
  background: none;
  border: none;
  padding: 0.4rem 0.6rem;
  border-radius: 0.5rem;
  color: var(--pfd-muted, #7a6549);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s ease;
}
.pfd-ghost:hover {
  color: #354c84;
}
.pfd-ghost:focus-visible {
  outline: 3px solid #4a6aab;
  outline-offset: 2px;
}

/* Schritt-Nummern im Ergebnis */
.pfd-step-nr {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 9999px;
  background: #354c84;
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
}

/* Spinner */
.pfd-spinner {
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  border: 4px solid #f3e6d8;
  border-top-color: #e6425b;
  animation: pfd-spin 0.8s linear infinite;
}
@keyframes pfd-spin {
  to { transform: rotate(360deg); }
}

/* Sanftes Einblenden bei Schrittwechsel */
.pfd-fade {
  animation: pfd-fade-in 0.25s ease;
}
@keyframes pfd-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Buttons deaktiviert */
.pfd-next:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

@media (prefers-reduced-motion: reduce) {
  .pfd-fade, .pfd-spinner, .pfd-chip, .pfd-demo-item {
    animation: none;
    transition: none;
  }
}

/* ============================================================
   Design v2 (Claude-Design-Vorlage 09.07.): Navy-Hero,
   Zweispalten-Tool-Karte, Stepper mit Labels, Scan-Preview.
   Abweichungen von der Vorlage: Brand-Palette statt Fremdfarben,
   AA-Kontraste, unsere Schritt-Reihenfolge.
   ============================================================ */

.pfd-hero {
  position: relative;
  background: radial-gradient(120% 90% at 50% -10%, #41598f 0%, #354c84 55%, #30447a 100%);
  overflow: hidden;
  --pfd-hero-eyebrow: #f8b8c3; /* Vorlage nutzt pink-light (3.0:1), angehoben auf 4.7:1 */
  --pfd-hero-sub: #c3cce0;
}
.pfd-hero h1 { color: #fff; } /* Theme faerbt Headings nur in bg-brand-blue-Sections weiss */
.pfd-eyebrow { color: var(--pfd-hero-eyebrow); }
.pfd-eyebrow-dark { color: #b02e42; } /* brand-pink-dark abgedunkelt: 5.1:1 auf cream-dark */
.pfd-hero-sub, .pfd-hero-note { color: var(--pfd-hero-sub); }

/* Tool-Karte: links Wizard, rechts Scan-Preview */
.pfd-shell {
  max-width: 600px;
  margin: 34px auto 0;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 30px 70px rgba(20, 32, 66, 0.34);
  overflow: hidden;
}
@media (min-width: 900px) {
  .pfd-shell {
    max-width: 940px;
    display: grid;
    grid-template-columns: 1.12fr 0.88fr;
  }
  .pfd-shell.pfd-result-mode {
    max-width: 680px;
    display: block;
  }
}
.pfd-main { padding: 24px 20px; min-width: 0; }
@media (min-width: 560px) { .pfd-main { padding: 30px; } }
.pfd-panel {
  background: #fbf3eb;
  border-top: 1px solid #ecdcc9;
  padding: 24px 20px;
}
@media (min-width: 560px) { .pfd-panel { padding: 30px 26px; } }
@media (min-width: 900px) {
  .pfd-panel { border-top: none; border-left: 1px solid #ecdcc9; }
}
@media (max-width: 899px) {
  .pfd-shell { display: flex; flex-direction: column; }
  .pfd-panel {
    order: -1;
    border-top: none;
    border-bottom: 1px solid #ecdcc9;
    padding: 16px 20px 18px;
  }
  .pfd-panel-extra { display: none; } /* Legende + Hinweis nur auf Desktop, mobil zaehlt der Eye-Catcher */
}
.pfd-result-mode .pfd-panel { display: none; }
.pfd-shell.pfd-result-mode { background: transparent; box-shadow: none; border-radius: 0; margin-top: 8px; }
.pfd-result-mode .pfd-main { padding: 0; }

/* Stepper */
.pfd-stepper { display: flex; align-items: center; margin-bottom: 22px; }
.pfd-step-item { display: flex; align-items: center; flex: 1 1 auto; min-width: 0; }
.pfd-step-item:last-child { flex: 0 0 auto; }
.pfd-sdot {
  width: 22px; height: 22px; border-radius: 9999px;
  background: #f0e3d1;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  font-weight: 800; font-size: 12px; color: #675741;
  border: none; padding: 0; cursor: default;
}
.pfd-sdot-done { background: #c8354b; color: #fff; cursor: pointer; } /* pink-dark: Weiß 5.16:1 (AA) */
.pfd-sdot-done:focus-visible { outline: 3px solid #4a6aab; outline-offset: 2px; }
.pfd-sdot-active {
  width: 26px; height: 26px; background: #fff;
  border: 2px solid #e6425b; color: #e6425b;
  box-shadow: 0 0 0 4px rgba(230, 66, 91, 0.14);
}
.pfd-slabel {
  margin-left: 8px; font-weight: 800; font-size: 12px; white-space: nowrap; color: var(--pfd-muted, #7a6549);
}
.pfd-slabel-done { color: var(--pfd-muted, #7a6549); }
.pfd-slabel-active { color: #354c84; }
@media (max-width: 559px) { .pfd-slabel { display: none; } }
.pfd-sbar { flex: 1; height: 2px; margin: 0 8px; border-radius: 2px; background: #ecdcc9; }
.pfd-sbar-done { background: #e6425b; }

.pfd-step-count { font-weight: 800; font-size: 12px; color: var(--pfd-muted, #7a6549); white-space: nowrap; }

/* Dropzone v2 */
.pfd-drop2 {
  display: block; position: relative; margin-top: 18px;
  border: 2px dashed #f0b7c0;
  background: linear-gradient(180deg, #fdf6f2, #fbeef0);
  border-radius: 16px; padding: 26px 20px; text-align: center; cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}
.pfd-drop2:hover, .pfd-drop2:focus-visible, .pfd-drop2.pfd-dragover { border-color: #e6425b; background: #fdeef0; outline: none; }
.pfd-drop2:focus-visible { outline: 3px solid #4a6aab; outline-offset: 2px; }
.pfd-drop2-icon {
  width: 56px; height: 56px; border-radius: 9999px; background: #fff;
  box-shadow: 0 8px 20px rgba(230, 66, 91, 0.18);
  display: flex; align-items: center; justify-content: center; margin: 0 auto;
  color: #e6425b;
}
.pfd-drop2-btn {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 12px;
  background: #c8354b; color: #fff; font-weight: 800; font-size: 13px; /* pink-dark: Weiß 5.16:1 (AA) */
  padding: 9px 16px; border-radius: 10px; box-shadow: 0 8px 18px rgba(230, 66, 91, 0.26);
}

/* Consent-Zeilen (UV, Foto-Spende) */
.pfd-consent {
  display: flex; gap: 11px; align-items: flex-start;
  padding: 12px 14px; border-radius: 12px;
  border: 1.5px solid #ecdcc9; background: #fbf7f2; cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}
.pfd-consent.on { border-color: #e6425b; background: #fdeef0; }
.pfd-consent input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pfd-cbox {
  width: 20px; height: 20px; border-radius: 6px; flex-shrink: 0; margin-top: 1px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #d4c4a8; background: #fff; transition: all 0.15s;
}
.pfd-consent.on .pfd-cbox { border-color: #e6425b; background: #e6425b; }
.pfd-cbox svg { opacity: 0; transition: opacity 0.15s; }
.pfd-consent.on .pfd-cbox svg { opacity: 1; }
.pfd-consent:focus-within .pfd-cbox { outline: 3px solid #4a6aab; outline-offset: 2px; }
.pfd-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-weight: 800; font-size: 10px; letter-spacing: 0.03em; text-transform: uppercase;
  padding: 2px 7px; border-radius: 6px;
}
.pfd-badge-uv { color: #6b4ce6; background: #efeaff; } /* Lila = Schwarzlicht (Ben 09.07.), Ton AA-fest */
.pfd-badge-frei { color: #47624a; background: #eef3ee; }

/* Grosser CTA */
.pfd-cta {
  width: 100%; margin-top: 18px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  background: #c8354b; color: #fff; font-weight: 800; font-size: 16px; /* pink-dark: Weiß 5.16:1 (AA) */
  padding: 16px; border: none; border-radius: 13px; cursor: pointer;
  box-shadow: 0 12px 26px rgba(230, 66, 91, 0.30);
  transition: transform 0.12s, background-color 0.15s;
}
.pfd-cta:hover { background: #b02e42; transform: translateY(-1px); } /* eine Stufe dunkler als der Ruhezustand, Weiß 6.33:1 */
.pfd-cta:focus-visible { outline: 3px solid #4a6aab; outline-offset: 2px; }
.pfd-link-secondary {
  font-weight: 800; font-size: 13.5px; color: #354c84;
  text-decoration: underline; text-underline-offset: 3px;
  background: none; border: none; padding: 0.3rem 0.4rem; cursor: pointer;
}
.pfd-link-secondary:focus-visible { outline: 3px solid #4a6aab; outline-offset: 2px; }

/* Scan-Preview (rechte Spalte) */
.pfd-scan { position: relative; margin-top: 12px; border-radius: 14px; overflow: hidden; box-shadow: 0 8px 22px rgba(53, 76, 132, 0.10); }
.pfd-scan img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.pfd-scanline {
  position: absolute; left: 8%; right: 8%; top: 6%; height: 2px;
  background: linear-gradient(90deg, transparent, #e6425b, transparent);
  box-shadow: 0 0 10px #e6425b;
  animation: pfd-scan-y 2.6s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes pfd-scan-y { 0% { top: 6%; } 100% { top: 88%; } }
.pfd-scan-badge {
  position: absolute; left: 11px; bottom: 11px;
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(42, 61, 107, 0.88); color: #fff;
  font-weight: 800; font-size: 10.5px; padding: 5px 9px; border-radius: 8px; pointer-events: none;
}
.pfd-pulse { width: 6px; height: 6px; border-radius: 9999px; background: #7a9e7e; animation: pfd-pulse 1.6s infinite; }
@keyframes pfd-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.pfd-mini-icon {
  width: 26px; height: 26px; border-radius: 8px; background: #fff;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  box-shadow: 0 3px 8px rgba(53, 76, 132, 0.08);
}

@media (prefers-reduced-motion: reduce) {
  .pfd-scanline, .pfd-pulse { animation: none; }
}

/* Warum-Sektion: Bild-Layout am Wrapper, Imagify/Rocket tauschen das innere img-Markup */
.pfd-warum-foto { position: relative; aspect-ratio: 2 / 1; }
.pfd-warum-foto img,
.pfd-warum-foto picture {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}


/* Sektions-Karten (Design-Vorlage v2): weisse Karte mit pinker Oberkante */
.pfd-sand-bg { background: #f0e3d1; }
.pfd-step-card {
  display: block;
  background: #fff;
  border-top: 3px solid #e6425b;
  border-radius: 3px 3px 16px 16px;
  box-shadow: 0 8px 26px rgba(53, 76, 132, 0.05);
  transition: transform 0.16s, box-shadow 0.16s;
}
a.pfd-step-card:hover, a.pfd-step-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px rgba(53, 76, 132, 0.12);
  outline: none;
}
a.pfd-step-card:focus-visible { outline: 3px solid #4a6aab; outline-offset: 2px; }
.pfd-icon-tile {
  width: 38px; height: 38px; border-radius: 11px;
  background: #f3e6d8;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.pfd-icon-tile-pink { background: #fdeef0; }
.pfd-du-bist-hier {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 13px;
  font-weight: 800; font-size: 10.5px; letter-spacing: 0.05em; text-transform: uppercase;
  color: #fff; background: #c8354b; /* pink-dark: Weiß 5.16:1 (AA) */
  padding: 5px 10px; border-radius: 8px;
}
.pfd-du-bist-hier .pfd-pulse { background: #fff; }


/* ============================================================
   Ergebnis-Ansicht (Claude-Design "Fleck-Detektiv Ergebnis")
   Navy-Bühne, weiße Karte, Protokoll-Bausteine.
   ============================================================ */
.pfd-res-pillrow { display: flex; justify-content: center; margin-bottom: 16px; }
.pfd-res-pill {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff; font-weight: 800; font-size: 12px; padding: 6px 13px; border-radius: 999px;
}
.pfd-res-pill-demo { background: rgba(255, 255, 255, 0.16); }

.pfd-res-card {
  background: #fff; border-radius: 22px;
  box-shadow: 0 30px 70px rgba(20, 32, 66, 0.34);
  padding: 26px 20px;
}
@media (min-width: 560px) { .pfd-res-card { padding: 34px; } }

.pfd-res-eyebrow { font-weight: 800; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--pfd-muted, #7a6549); }
.pfd-res-eyebrow-pink { font-weight: 800; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: #b02e42; }

.pfd-res-photochip {
  display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
  font-weight: 800; font-size: 11px; white-space: nowrap;
  color: #7a6549; background: #f3ece0; padding: 6px 11px; border-radius: 999px;
}
.pfd-res-photochip.on { color: #47624a; background: #eef3ee; }
@media (max-width: 559px) { .pfd-res-photochip { display: none; } }

.pfd-res-tag { font-weight: 800; font-size: 12px; color: #354c84; background: #f3e6d8; padding: 6px 12px; border-radius: 8px; }

.pfd-res-insight {
  display: flex; gap: 12px; align-items: flex-start;
  margin-top: 20px; background: #fdeef0; border: 1px solid #f6cdd4; border-radius: 14px; padding: 16px 17px;
}
.pfd-res-insight-icon {
  width: 32px; height: 32px; border-radius: 9px; background: #fff;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(230, 66, 91, 0.14);
}
.pfd-res-insight-label { font-weight: 800; font-size: 12.5px; color: #b02e42; text-transform: uppercase; letter-spacing: 0.04em; }
.pfd-res-insight-text { font-size: 14.5px; line-height: 1.55; color: #2e2e2e; margin: 5px 0 0; }
.pfd-res-insight-more { font-size: 13.5px; line-height: 1.5; color: #2e2e2e; margin: 8px 0 0; padding-top: 8px; border-top: 1px solid #f6cdd4; }

.pfd-res-stepnr {
  width: 26px; height: 26px; border-radius: 9999px; background: #354c84; color: #fff;
  font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

.pfd-res-stat { background: #f3e6d8; border-radius: 14px; padding: 16px 17px; }
.pfd-res-stat-head { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: #6b5842; }
.pfd-res-stat-val { font-family: 'Lora', Georgia, serif; font-weight: 700; font-size: 20px; color: #354c84; margin-top: 8px; line-height: 1.2; }
.pfd-res-stat-val-sm { font-size: 15px; line-height: 1.35; }

.pfd-res-warn { background: #fdf3ea; border: 1px solid #f0d9bf; border-radius: 16px; padding: 18px 20px; margin-top: 22px; }
.pfd-res-warn-label { font-weight: 800; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: #b02e42; }
.pfd-res-warn-item { display: flex; gap: 11px; align-items: flex-start; margin-top: 13px; }
.pfd-res-warn-item p { font-size: 14px; line-height: 1.55; color: #2e2e2e; margin: 0; }

.pfd-res-block { border: 1px solid #ecdcc9; border-radius: 16px; padding: 20px; margin-top: 18px; }
.pfd-res-source-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 800; font-size: 10.5px; letter-spacing: 0.05em; text-transform: uppercase; color: #354c84;
  background: #f3e6d8; padding: 4px 9px; border-radius: 7px;
}
.pfd-res-eskalation { border: 2px solid rgba(53, 76, 132, 0.2); border-radius: 16px; background: #fbfaf8; padding: 18px 20px; margin-top: 18px; }

.pfd-res-prodimg {
  width: 66px; height: 66px; border-radius: 12px; background: #fff; border: 1px solid #f3e6d8;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden;
}
.pfd-res-prodimg img { width: 100%; height: 100%; object-fit: cover; }
.pfd-res-benefit { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; font-size: 12px; color: #47624a; }
.pfd-res-benefit-dot { width: 5px; height: 5px; border-radius: 9999px; background: #7a9e7e; display: inline-block; }
.pfd-res-hint { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; line-height: 1.5; color: var(--pfd-muted, #7a6549); }

/* Sekundär-Empfehlungen unter dem Hero-Produkt */
.pfd-res-alt-label { font-weight: 800; font-size: 10.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--pfd-muted, #7a6549); margin-top: 18px; }
.pfd-res-alt-grid { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 10px; }
@media (min-width: 640px) { .pfd-res-alt-grid-2 { grid-template-columns: 1fr 1fr; } }
.pfd-res-alt {
  display: flex; gap: 12px; align-items: center;
  border: 1px solid #ecdcc9; border-radius: 12px; background: #fff; padding: 10px 12px;
  transition: border-color 0.15s, transform 0.15s;
}
.pfd-res-alt:hover, .pfd-res-alt:focus-visible { border-color: #e6425b; transform: translateY(-1px); outline: none; }
.pfd-res-alt:focus-visible { outline: 3px solid #4a6aab; outline-offset: 2px; }
/* 62px statt 44px: Produktfotos haben Weißraum, kleiner ist das Produkt nicht erkennbar.
   Weißer BG, damit die weißen Foto-Ränder nahtlos im Kästchen aufgehen. 3px Inset + contain:
   nichts wird vom Border-Radius angeschnitten (UV-Lampe liegt diagonal bis in die Ecken). */
.pfd-res-alt-img { display: block; width: 62px; height: 62px; padding: 3px; border-radius: 10px; background: #fff; border: 1px solid #f3e6d8; overflow: hidden; flex-shrink: 0; }
.pfd-res-alt-img img { display: block; width: 100%; height: 100%; object-fit: contain; }

.pfd-res-next {
  display: block; text-align: left; width: 100%;
  border: 1px solid #ecdcc9; border-radius: 14px; padding: 16px; background: #fff; cursor: pointer;
  transition: border-color 0.15s, transform 0.15s;
}
.pfd-res-next:hover, .pfd-res-next:focus-visible { border-color: #e6425b; transform: translateY(-2px); outline: none; }
.pfd-res-next:focus-visible { outline: 3px solid #4a6aab; outline-offset: 2px; }

.pfd-res-restart {
  display: inline-flex; align-items: center; gap: 7px;
  background: none; border: none; cursor: pointer;
  font-weight: 800; font-size: 13.5px; color: var(--pfd-muted, #7a6549);
}
.pfd-res-restart:hover { color: #354c84; }
.pfd-res-restart:focus-visible { outline: 3px solid #4a6aab; outline-offset: 2px; border-radius: 6px; }

.pfd-res-privacy { text-align: center; font-size: 13px; line-height: 1.6; color: #9fb0d6; max-width: 560px; margin: 22px auto 0; }


/* Ergebnis-Fokus: Hero-Pitch ausblenden, Bühne oben straffen.
   Hero-Note auch aus: die Ergebnis-Karte bringt ihre eigene Datenschutz-Notiz mit (sonst doppelt). */
.pfd-hero.pfd-in-result #pfd-hero-intro { display: none; }
.pfd-hero.pfd-in-result .pfd-hero-note { display: none; }
.pfd-hero.pfd-in-result { padding-top: 1.5rem; }

/* Ergebnis-Intro (UV-/Wasch-Lane erklärt den Kontext vor den Schritten) */
.pfd-res-intro { font-size: 14.5px; line-height: 1.6; color: #2e2e2e; margin: 16px 0 0; }

/* WooCommerce PhotoSwipe-Container hängt am Body-Ende und zeigt ohne Galerie-CSS
   einen 51px-Streifen unter dem Footer. Auf der Detektiv-Landingpage gibt es keine
   Produktgalerie, also ausblenden.
   Diese Datei lädt seit dem Widget-Embed auch auf Produktseiten MIT Galerie. Der
   Container liegt am Body-Ende, also ausserhalb des Widgets, deshalb greift kein
   Nachfahren-Selektor. :has() prüft stattdessen, ob die Seite den Landingpage-Hero
   trägt. Nur dort verschwindet der Container, die PhotoSwipe-Lightbox der PDP
   bleibt unangetastet. Browser ohne :has() zeigen auf der LP wieder den Streifen,
   das ist kosmetisch und deutlich harmloser als eine tote Lightbox. */
body:has(.pfd-hero) .pswp:not(.pswp--open) { display: none !important; }


/* ============================================================
   Einbettung ausserhalb der Landingpage (.pfd-embed)
   Produktseite und Danke-Seite haben hellen Grund (weiss oder creme).
   Zwei Ergebnis-Bausteine sind für die Navy-Bühne gebaut und dort
   unlesbar: die Status-Pille und die Datenschutz-Notiz.
   Kontraste geprüft, alle Textpaare erfüllen WCAG AA (>= 4.5:1).
   ============================================================ */
.pfd-embed .pfd-res-pill {
  background: #f3e6d8;          /* brand-cream-dark, wie die Tag-Pillen in der Karte */
  border-color: #d4c4a8;
  color: #354c84;               /* brand-blue auf #f3e6d8 = 6.80:1 */
}
/* Der Haken im SVG trägt stroke="#8fe0a6" als Attribut (für Navy gedacht).
   Jede CSS-Regel schlägt ein Präsentationsattribut, deshalb reicht das hier. */
.pfd-embed .pfd-res-pill svg {
  stroke: #47624a;              /* brand-sage-dunkel auf #f3e6d8 = 5.50:1 */
}
.pfd-embed .pfd-res-pill-demo {
  background: #fdeef0;
  border-color: #f6cdd4;
  color: #b02e42;               /* brand-pink-dunkel auf #fdeef0 = 5.63:1 */
}
.pfd-embed .pfd-res-privacy {
  color: var(--pfd-muted, #7a6549); /* 5.55:1 auf Weiss, 5.05:1 auf brand-cream */
}
