/* POLITIQ – Sichtbarkeits-Check */
.pq-vis { max-width: 920px; margin: 0 auto; padding: clamp(32px, 6vw, 72px) 16px 64px; }
.pq-vis [hidden] { display: none !important; }
.pq-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.pq-check-hero { text-align: center; margin-bottom: 28px; }
.pq-check-title { font-size: clamp(30px, 5vw, 48px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; color: var(--pq-ink); margin: 10px auto 14px; max-width: 16ch; text-wrap: balance; }
.pq-check-lead { font-size: clamp(16px, 2vw, 18px); color: var(--pq-muted); max-width: 60ch; margin: 0 auto 28px; text-wrap: pretty; }

/* Segment-Control */
.pq-seg { --i: 0; position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 14px; background: #ebeae6; }
.pq-seg button { position: relative; z-index: 1; appearance: none; border: 0; background: none; font: inherit; font-weight: 600; font-size: 15px; color: var(--pq-muted);
  padding: 10px 18px; min-height: 44px; border-radius: 10px; cursor: pointer; transition: color .2s ease; -webkit-tap-highlight-color: transparent; }
.pq-seg button[aria-selected="true"] { color: var(--pq-ink); }
.pq-seg-pill { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 10px; background: #fff;
  box-shadow: 0 1px 2px rgba(17, 27, 44, .08), 0 3px 10px -4px rgba(17, 27, 44, .2);
  transform: translateX(calc(var(--i) * 100%)); transition: transform 320ms var(--pq-ease); }
@media (max-width: 420px) { .pq-seg { display: grid; } .pq-seg button { padding: 10px 8px; font-size: 14px; } }

.pq-check-panel { animation: pq-step-in 360ms var(--pq-ease) both; }

/* URL-Eingabe */
.pq-check-url { display: flex; gap: 8px; padding: 8px; background: #fff; border-radius: 20px; box-shadow: var(--pq-shadow); max-width: 640px; margin: 0 auto; }
.pq-check-url-field { flex: 1; min-width: 0; display: flex; }
.pq-check-url input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 17px; padding: 0 14px; color: var(--pq-ink); outline: none; }
.pq-check-url:focus-within { box-shadow: 0 0 0 3px rgba(70, 113, 159, .25), var(--pq-shadow); }
.pq-check-url .pq-btn { flex: none; }
@media (max-width: 520px) {
  .pq-check-url { flex-direction: column; padding: 8px; }
  .pq-check-url input { min-height: 48px; font-size: 16px; }
}
.pq-check-note { text-align: center; max-width: 60ch; margin: 14px auto 0; }
.pq-check-error { color: var(--pq-red); text-align: center; font-weight: 600; margin: 16px auto 0; }

/* Fortschritt */
.pq-check-progress { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 28px auto 0; max-width: 640px; }
.pq-check-progress span { font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: #efeee9; color: #9a9ca6;
  transition: background-color .25s ease, color .25s ease, transform 300ms var(--pq-ease); }
.pq-check-progress span.is-active { background: #e3ebf5; color: var(--pq-navy); transform: scale(1.04); }
.pq-check-progress span.is-done { background: #e4f3ea; color: var(--pq-green); }
.pq-check-progress span.is-done::before { content: "✓ "; }

/* Ergebnis */
.pq-check-result { margin-top: 36px; outline: none; scroll-margin-top: calc(var(--header-h, 68px) + 16px); transition: opacity .2s ease; }
.pq-check-result:not([hidden]) { animation: pq-step-in 420ms var(--pq-ease) both; }
.pq-check-result.is-stale { opacity: .45; }
.pq-check-result > * + * { margin-top: 16px; }

.pq-score { display: flex; align-items: center; gap: 24px; padding: 24px; border-radius: var(--pq-radius-lg); background: #fff; box-shadow: var(--pq-shadow); }
.pq-score-ring { --p: 0; --c: var(--pq-green); position: relative; flex: none; width: 128px; height: 128px; border-radius: 50%; display: grid; place-content: center; text-align: center;
  background: conic-gradient(var(--c) calc(var(--p) * 1%), #ecebe7 0); }
.pq-score-ring::before { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: #fff; }
.pq-score-ring b, .pq-score-ring small { position: relative; }
.pq-score-ring b { font-size: 40px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: var(--pq-ink); font-variant-numeric: tabular-nums; }
.pq-score-ring small { font-size: 12px; color: var(--pq-muted); margin-top: 2px; }
.pq-score[data-tone="warn"] .pq-score-ring { --c: #d99a00; }
.pq-score[data-tone="bad"] .pq-score-ring { --c: var(--pq-red); }
.pq-score-text .pq-title { margin: 4px 0 6px; font-size: clamp(22px, 3vw, 28px); }
@media (max-width: 560px) { .pq-score { flex-direction: column; text-align: center; } }

.pq-tips { background: var(--pq-navy); color: #fff; }
.pq-tips .pq-headline { color: #fff; margin-bottom: 10px; }
.pq-tips ol { margin: 0; padding-left: 22px; display: grid; gap: 10px; }
.pq-tips li { line-height: 1.5; color: #dfe7f1; }
.pq-tips li b { color: #fff; }
.pq-tips .pq-caption { color: var(--pq-blue-light); margin: 12px 0 0; }

.pq-cats { align-items: start; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: 16px; }
.pq-cat header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.pq-cat ul { list-style: none; margin: 0; padding: 0; }
.pq-cat-score { font-weight: 800; font-size: 14px; min-width: 40px; text-align: center; padding: 3px 10px; border-radius: 999px; background: #e4f3ea; color: var(--pq-green); font-variant-numeric: tabular-nums; }
.pq-cat-score[data-tone="warn"] { background: #fbf1d9; color: #9a6b00; }
.pq-cat-score[data-tone="bad"] { background: #fdecef; color: var(--pq-red); }

.pq-chk { display: grid; grid-template-columns: 22px 1fr; gap: 10px; padding: 12px 0; border-top: 1px solid var(--pq-line); }
.pq-chk:first-child { border-top: 0; }
.pq-chk i { width: 12px; height: 12px; border-radius: 50%; margin-top: 6px; background: var(--pq-green); box-shadow: 0 0 0 4px #e4f3ea; }
.pq-chk[data-status="warn"] i { background: #e0a400; box-shadow: 0 0 0 4px #fbf1d9; }
.pq-chk[data-status="bad"] i { background: var(--pq-red); box-shadow: 0 0 0 4px #fdecef; }
.pq-chk b { font-weight: 600; color: var(--pq-ink); }
.pq-chk p { margin: 2px 0 0; font-size: 14.5px; color: var(--pq-muted); overflow-wrap: anywhere; }
.pq-chk .pq-chk-tip { color: var(--pq-navy); margin-top: 6px; }
.pq-chk .pq-chk-tip::before { content: "Tipp: "; font-weight: 700; }

.pq-check-next { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; padding: 12px 0; text-align: center; }
.pq-check-next p { margin: 0; color: var(--pq-muted); }

/* Instagram-Formular */
.pq-ig-form { display: grid; gap: 8px; }
.pq-ig-q { border: 0; margin: 0 0 20px; padding: 0; min-width: 0; }
.pq-ig-q legend { font-size: 19px; font-weight: 700; letter-spacing: -0.015em; color: var(--pq-ink); margin-bottom: 12px; padding: 0; }
.pq-ig-hint { color: var(--pq-muted); font-size: 14.5px; margin: -6px 0 12px; }
.pq-ig-q .pq-options { grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.pq-ig-q .pq-options--3 { grid-template-columns: repeat(3, 1fr); }
.pq-ig-q .pq-option span { min-height: 52px; font-weight: 500; font-size: 15px; }
.pq-ig-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.pq-ig-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pq-ig-nums .pq-field { margin: 0; }
@media (max-width: 720px) {
  .pq-ig-row { grid-template-columns: 1fr; }
  .pq-ig-nums { grid-template-columns: 1fr; }
}
@media (max-width: 420px) { .pq-ig-q .pq-options--3 { grid-template-columns: 1fr; } }
.pq-ig-submit { display: flex; justify-content: center; }
.pq-ig-submit .pq-btn { min-width: 220px; }

.pq-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 620px) { .pq-metrics { grid-template-columns: 1fr; } }
.pq-metric { display: grid; gap: 2px; text-align: center; border-top: 4px solid var(--pq-green); }
.pq-metric[data-tone="warn"] { border-top-color: #e0a400; }
.pq-metric[data-tone="bad"] { border-top-color: var(--pq-red); }
.pq-metric span { font-size: 13px; font-weight: 600; color: var(--pq-muted); }
.pq-metric b { font-size: 32px; font-weight: 800; letter-spacing: -0.03em; color: var(--pq-ink); font-variant-numeric: tabular-nums; }
.pq-metric small { font-size: 12.5px; color: var(--pq-muted); }

.pq-ig-guide { display: grid; gap: 16px; margin-top: 16px; border: 2px solid var(--pq-navy); animation: pq-step-in 420ms 120ms var(--pq-ease) both; }
.pq-ig-guide .pq-title { margin: 4px 0 6px; }
.pq-ig-guide .pq-field { margin: 0; }
.pq-ig-guide .pq-caption { margin: -6px 0 0; text-align: center; }

/* Abschluss */
.pq-check-cta { margin-top: 56px; padding: clamp(24px, 4vw, 40px); border-radius: var(--pq-radius-lg); background: var(--pq-navy-deep); color: #fff; text-align: center; }
.pq-check-cta h2 { font-size: clamp(22px, 3vw, 28px); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 8px; color: #fff; }
.pq-check-cta p { color: #c9d6e6; max-width: 52ch; margin: 0 auto 20px; }
.pq-check-cta .pq-btn { background: #fff; color: var(--pq-navy); }
.pq-check-legal { text-align: center; margin-top: 20px; }
.pq-check-legal a { color: inherit; }

@media (prefers-reduced-motion: reduce) {
  .pq-check-panel, .pq-check-result:not([hidden]), .pq-ig-guide { animation: none; }
  .pq-seg-pill, .pq-check-progress span { transition: none; }
}
.pq-vis .pq-check-result:focus, .pq-vis .pq-check-result:focus-visible { outline: none; }
.pq-vis section.pq-check-panel, .pq-vis section.pq-cat { padding: 0; }
.pq-vis section.pq-cat { padding: 20px; }

/* ---------- Vorschau + Freischalten ---------- */
.pq-teaser-line { margin: 4px 0 0; font-size: 17px; color: var(--pq-ink); }
.pq-locked { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 12px; }
.pq-locked li { display: flex; align-items: center; gap: 12px; }
.pq-locked i { width: 12px; height: 12px; border-radius: 50%; background: #e3e1dc; flex: none; }
.pq-locked span { height: 11px; border-radius: 6px; background: linear-gradient(90deg, #ebe9e4, #f3f2ee 50%, #ebe9e4); background-size: 200% 100%; animation: pq-shimmer 2.4s ease-in-out infinite; }
.pq-cats--locked .pq-cat, .pq-metrics--locked .pq-metric { position: relative; }
.pq-blur { filter: blur(7px); user-select: none; }
@keyframes pq-shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
.pq-gate { margin-top: 20px; padding: clamp(20px, 3vw, 32px); border: 1.5px solid var(--pq-navy); box-shadow: 0 18px 48px -24px rgba(17, 27, 44, .35); }
.pq-gate-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.pq-gate-head .pq-title { margin: 0 0 4px; }
.pq-gate-head .pq-sub { margin: 0; }
.pq-gate-lock { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--pq-navy); color: #fff; }
.pq-gate-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 8px; }
.pq-gate-wide { grid-column: 1 / -1; }
.pq-gate .pq-btn--block { margin-top: 10px; }
.pq-gate-ok { margin: 0 0 16px; padding: 12px 16px; border-radius: 12px; background: #e4f3ea; color: #155c33; font-weight: 500; }
@media (max-width: 600px) { .pq-gate-fields { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .pq-locked span { animation: none; } }

/* ---------- Vorschau v2: Gesamtübersicht + unscharfe Auswertung mit Freischalt-Karte ---------- */
.pq-overview { margin-top: 16px; padding: 20px 24px; }
.pq-overview .pq-teaser-line { margin: 0 0 14px; }
.pq-bars { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 32px; }
.pq-bars li { display: grid; grid-template-columns: minmax(0, 1fr) 90px 32px; align-items: center; gap: 12px; font-size: 15px; }
.pq-bars li span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pq-bars i { height: 8px; border-radius: 4px; background: #ebe9e4; overflow: hidden; }
.pq-bars i b { display: block; height: 100%; border-radius: inherit; background: #c4372a; }
.pq-bars i[data-tone="warn"] b { background: #d39b2a; }
.pq-bars i[data-tone="ok"] b { background: #1f8a4c; }
.pq-bars em { font-style: normal; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.pq-metrics--locked { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.pq-metrics--locked .pq-metric { display: grid; gap: 4px; }
.pq-lockwrap { display: grid; margin-top: 16px; }
.pq-lockwrap > * { grid-area: 1 / 1; }
.pq-lockfake { padding: 20px 24px; border-radius: var(--pq-radius-lg, 22px); background: #fff; box-shadow: var(--pq-shadow); filter: blur(5px); opacity: .75; user-select: none; pointer-events: none; display: grid; gap: 16px; overflow: hidden; }
.pq-lockrow { display: flex; gap: 12px; }
.pq-lockrow i { width: 12px; height: 12px; margin-top: 5px; border-radius: 50%; flex: none; background: #c4372a; }
.pq-lockrow i[data-s="warn"] { background: #d39b2a; } .pq-lockrow i[data-s="ok"] { background: #1f8a4c; }
.pq-lockrow b { font-size: 15px; } .pq-lockrow p { margin: 2px 0 0; font-size: 14px; color: #666; }
.pq-lockcard { align-self: center; justify-self: center; z-index: 1; width: min(440px, calc(100% - 32px)); margin: 24px 0; padding: 24px; border-radius: 20px; text-align: center;
  background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 0 0 1px rgba(17, 27, 44, .08), 0 24px 60px -24px rgba(17, 27, 44, .45); transition: width 260ms var(--pq-ease, ease); }
.pq-lockcard .pq-gate-lock { margin: 0 auto 10px; }
.pq-lockcard-count { margin: 0 0 14px; font-weight: 600; font-size: 17px; color: var(--pq-ink); }
.pq-lockcard.is-open { width: min(560px, calc(100% - 24px)); text-align: left; }
.pq-lockcard.is-open .pq-gate-lock, .pq-lockcard.is-open .pq-lockcard-count { display: none; }
.pq-lockcard .pq-gate { margin: 0; padding: 0; border: 0; box-shadow: none; background: none; }
.pq-lockcard .pq-gate-head .pq-gate-lock { display: none; }
@media (max-width: 600px) {
  .pq-bars { grid-template-columns: 1fr; }
  .pq-bars li { grid-template-columns: minmax(0, 1fr) 70px 28px; }
  .pq-lockcard { padding: 20px; }
}
@media (prefers-reduced-transparency: reduce) { .pq-lockcard { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; } }
.pq-overview-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 14px; }
.pq-overview-head .pq-teaser-line { margin: 0; }
.pq-link-btn { border: 0; background: none; padding: 6px 0; font: inherit; font-weight: 600; color: var(--pq-blue, #46719f); cursor: pointer; }
.pq-link-btn:hover { text-decoration: underline; text-underline-offset: 3px; }
.pq-lockcard { align-self: start; margin-top: 36px; }
.pq-lockcard-title { margin: 0 0 2px; font-size: 20px; font-weight: 700; letter-spacing: -0.01em; color: var(--pq-ink); }
.pq-lockcard-count { font-weight: 500; font-size: 15px; color: var(--pq-muted, #6b6b73); }
.pq-lockcard .pq-btn { min-width: 220px; }
.pq-lockcard-fine { margin: 10px 0 0; font-size: 13px; color: var(--pq-muted, #6b6b73); }
.pq-lockcard.is-open .pq-lockcard-title { display: none; }
.pq-lockcard .pq-gate-lock { background: #e8eef6; color: var(--pq-navy); }
