/* Peak-Studios Loudness-Ziel-Finder — Widget-Styles v1.0.0
   Alles unter .pstf gescoped, CI identisch zum LUFS-Analyzer (.pslm). */
.pstf, .pstf * { box-sizing: border-box; }
.pstf {
  --ps-cta: #9C0000;
  --ps-cta-hover: #570000;
  --ps-dark: #121212;
  --ps-text: #282827;
  --ps-muted: #6B6B6A;
  --ps-accent: #B8AB8C;
  --ps-bg: #ECECEC;
  --ps-card: #FFFFFF;
  --ps-input: #F5F5F4;
  --ps-border: #D5D5D5;
  font-family: "Helvetica", Arial, sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ps-text);
  background: var(--ps-card);
  border: 1px solid var(--ps-border);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
  padding: 20px;
  max-width: 720px;
  margin: 0 auto;
}
.pstf-head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 14px; }
.pstf-head strong { font-size: 1.3rem; font-weight: 600; color: var(--ps-dark); }
.pstf-sub { font-size: 0.85rem; color: var(--ps-muted); }

.pstf-group { border: 0; padding: 0; margin: 0 0 12px; }
.pstf-group legend { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ps-muted); margin-bottom: 6px; padding: 0; }
.pstf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pstf-chip { position: relative; cursor: pointer; }
.pstf-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pstf-chip span {
  display: inline-block;
  padding: 9px 14px;
  min-height: 44px;
  line-height: 26px;
  background: var(--ps-input);
  border: 1px solid var(--ps-border);
  border-radius: 999px;
  font-size: 0.9rem;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.pstf-chip:hover span { border-color: var(--ps-accent); }
.pstf-chip input:checked + span { background: var(--ps-dark); border-color: var(--ps-dark); color: #fff; }
.pstf-chip input:focus + span { outline: 2px solid var(--ps-cta); outline-offset: 2px; }
.pstf-chip input:focus:not(:focus-visible) + span { outline: none; }
.pstf-chip input:focus-visible + span { outline: 2px solid var(--ps-cta); outline-offset: 2px; }

.pstf-hint { font-size: 0.9rem; color: var(--ps-muted); margin: 6px 0 0; }

.pstf-card { background: var(--ps-input); border: 1px solid var(--ps-border); border-radius: 12px; padding: 16px; margin-top: 8px; }
.pstf-big { font-size: 1.7rem; font-weight: 700; color: var(--ps-dark); margin-bottom: 8px; }
.pstf-big em { font-style: normal; font-size: 1rem; font-weight: 400; color: var(--ps-muted); }
.pstf-row { font-size: 0.92rem; margin: 4px 0; }
.pstf-muted { color: var(--ps-muted); }
.pstf-penalty { padding: 8px 10px; background: #fff; border-left: 3px solid var(--ps-accent); border-radius: 4px; margin-top: 8px; }
.pstf-refs { font-size: 0.8rem; color: var(--ps-muted); margin-top: 10px; }

.pstf-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; }
.pstf-copy {
  background: var(--ps-cta); color: #fff; border: 0; border-radius: 8px;
  padding: 11px 16px; min-height: 44px; font-size: 0.9rem; font-weight: 700; cursor: pointer;
  transition: background 0.15s;
}
.pstf-copy:hover { background: var(--ps-cta-hover); }
.pstf-copy:focus { outline: 2px solid var(--ps-dark); outline-offset: 2px; }
.pstf-copy:focus:not(:focus-visible) { outline: none; }
.pstf-copy:focus-visible { outline: 2px solid var(--ps-dark); outline-offset: 2px; }
.pstf-link { font-size: 0.88rem; color: var(--ps-cta); text-decoration: underline; min-height: 44px; display: inline-flex; align-items: center; }
.pstf-link:hover { color: var(--ps-cta-hover); }
.pstf-cta { margin-top: 12px; font-size: 0.88rem; padding-top: 10px; border-top: 1px dashed var(--ps-border); }
.pstf-cta a { color: var(--ps-cta); font-weight: 700; }

/* Kompakt-Variante fuer Embeds auf Glossar-/Ratgeberseiten */
.pstf-compact { padding: 14px; }
.pstf-compact .pstf-refs { display: none; }
.pstf-compact .pstf-big { font-size: 1.4rem; }

@media (max-width: 480px) {
  .pstf { padding: 14px; }
  .pstf-chips { gap: 8px; }
  .pstf-chip span { font-size: 0.85rem; padding: 9px 11px; }
  .pstf-big { font-size: 1.45rem; }
  .pstf-actions { flex-direction: column; align-items: stretch; }
  .pstf-copy { width: 100%; }
}
