/* ==================================================================
   InnerPulse interaktiver Fragebogen (Self-Test)
   Lädt zusätzlich zu innerpulse.css + innerpulse-blog.css.
   ================================================================== */

.ipq-page .ip-article-header__title { max-width: 18ch; }

/* ==================================================================
   PROSE RESET — the widget is rendered inside .ip-article-body.ip-prose,
   so article-prose margins (h2 margin-top:48px, p margin-bottom:16px, …)
   leak into the interactive UI and make it bulky. Neutralise them here,
   then re-apply our own compact spacing with 2-class selectors below
   (specificity beats `.ip-prose <element>`).
   ================================================================== */
.ipq-widget h2, .ipq-widget h3, .ipq-widget h4,
.ipq-widget p, .ipq-widget ul, .ipq-widget ol,
.ipq-about p, .ipq-fallback p, .ipq-fallback ol {
    margin-top: 0;
    margin-bottom: 0;
}
/* Start card */
.ipq-start .ipq-start__heading { margin: 0 0 8px; }
.ipq-start .ipq-start__sub { margin: 0 0 22px; }
.ipq-start .ipq-start__privacy { margin: 16px 0 0; }
/* Question card */
.ipq-card .ipq-prompt { margin: 0 0 12px; }
.ipq-card .ipq-qtitle { margin: 0 0 6px; }
.ipq-card .ipq-qtext { margin: 0 0 22px; }
/* Result card */
.ipq-card .ipq-result__eyebrow { margin: 0 0 14px; }
.ipq-card .ipq-result__blurb { margin: 0 auto 20px; }
.ipq-card .ipq-result__disclaimer { margin: 0 auto 16px; }
/* Crisis box */
.ipq-crisis .ipq-crisis__heading { margin: 0 0 8px; }
.ipq-crisis .ipq-crisis__body { margin: 0 0 8px; }
.ipq-crisis .ipq-crisis__lines { margin: 0; }
/* Result CTA */
.ipq-result-cta .ipq-result-cta__headline { margin: 0 0 8px; }
.ipq-result-cta .ipq-result-cta__body { margin: 0 auto 32px; }
/* About / source */
.ipq-about .ipq-about__measures { margin: 0 0 8px; }
.ipq-about .ipq-about__source { margin: 0; }
/* Fallback */
.ipq-fallback .ipq-fallback__prompt { margin: 0 0 10px; }
.ipq-fallback .ipq-fallback__list { margin: 0 0 10px; }

/* ---- Meta strip in hero ---- */
.ipq-meta {
    list-style: none;
    margin: 22px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    align-items: center;
    justify-content: center;
}
.ipq-meta__item {
    font-size: 0.84rem;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 6px 13px;
    border-radius: 999px;
}
.ipq-meta__item strong { color: var(--text); }
.ipq-meta__item--private {
    color: var(--green);
    background: var(--green-soft);
    border-color: transparent;
}

/* ---- Severity colour helpers ---- */
.ipq-c-green  { color: var(--green); }
.ipq-c-yellow { color: var(--warm-light); }
.ipq-c-orange { color: var(--orange); }
.ipq-c-red    { color: var(--red); }

/* ==================== WIDGET ==================== */
.ipq-widget {
    margin: 34px 0 30px;
}

/* ---- Start card ---- */
.ipq-start {
    background: linear-gradient(160deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 40px 32px;
    text-align: center;
    box-shadow: 0 20px 60px -30px rgba(var(--shadow-rgb), 0.7);
}
.ipq-start__badge {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--accent-light);
    background: var(--accent-glow);
    padding: 5px 13px;
    border-radius: 999px;
    margin-bottom: 16px;
}
.ipq-start__heading {
    font-size: 1.55rem;
    margin: 0 0 8px;
    color: var(--text);
}
.ipq-start__sub {
    color: var(--text-secondary);
    margin: 0 0 24px;
    font-size: 0.95rem;
}
.ipq-start__privacy {
    margin: 18px 0 0;
    font-size: 0.82rem;
    color: var(--text-dim);
}

/* ==================== BUTTONS ==================== */
.ipq-btn {
    font: inherit;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    padding: 12px 22px;
    transition: transform .12s ease, background .15s ease, border-color .15s ease;
}
.ipq-btn:active { transform: translateY(1px); }
.ipq-btn--primary,
.ip-prose a.ipq-btn--primary {
    background: var(--accent);
    color: var(--white);
    text-decoration: none;
    box-shadow: 0 8px 30px -10px var(--accent-glow);
}
.ipq-btn--primary:hover,
.ip-prose a.ipq-btn--primary:hover { background: var(--accent-light); color: var(--white); }
.ipq-btn--lg { padding: 15px 30px; font-size: 1.02rem; }
.ipq-btn--ghost {
    background: transparent;
    color: var(--text-secondary);
    border-color: var(--border-light);
}
.ipq-btn--ghost:hover { color: var(--text); border-color: var(--text-dim); }

/* ==================== CARD (question / result) ==================== */
.ipq-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 30px 30px 26px;
    box-shadow: 0 20px 60px -30px rgba(var(--shadow-rgb), 0.7);
    animation: ipqFade .25s ease;
}
@keyframes ipqFade {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---- Progress ---- */
.ipq-progress { margin-bottom: 22px; }
.ipq-progress__meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}
.ipq-progress__pct { font-variant-numeric: tabular-nums; }
.ipq-progress__track {
    height: 6px;
    border-radius: 999px;
    background: var(--bg-dark);
    overflow: hidden;
}
.ipq-progress__bar {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    transition: width .3s ease;
}

/* ---- Question ---- */
.ipq-prompt {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin: 0 0 12px;
}
.ipq-qtitle {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent-light);
    margin: 0 0 6px;
}
.ipq-qtext {
    font-size: 1.25rem;
    line-height: 1.4;
    color: var(--text);
    margin: 0 0 22px;
    font-weight: 500;
}

/* ---- Options ---- */
.ipq-options { display: flex; flex-direction: column; gap: 10px; }
.ipq-option {
    display: flex;
    align-items: center;
    gap: 13px;
    width: 100%;
    text-align: left;
    font: inherit;
    color: var(--text);
    background: var(--bg-elevated);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 15px 17px;
    cursor: pointer;
    transition: border-color .14s ease, background .14s ease, transform .1s ease;
}
.ipq-option:hover { border-color: var(--accent); background: var(--bg-card-hover); }
.ipq-option.is-selected {
    border-color: var(--accent);
    background: var(--accent-glow);
}
.ipq-option__dot {
    flex: 0 0 auto;
    width: 14px; height: 14px;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(var(--overlay-rgb), 0.03);
}
.ipq-option__dot--green  { background: var(--green); }
.ipq-option__dot--yellow { background: var(--warm-light); }
.ipq-option__dot--orange { background: var(--orange); }
.ipq-option__dot--red    { background: var(--red); }
.ipq-option__label { font-size: 1rem; }

/* ---- Nav ---- */
.ipq-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 22px;
    gap: 14px;
}
.ipq-nav__hint {
    font-size: 0.82rem;
    color: var(--text-dim);
    text-align: right;
}

/* ==================== RESULT ==================== */
.ipq-card--result { text-align: center; }
.ipq-result__eyebrow {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    margin: 0 0 14px;
}
.ipq-gauge {
    width: 128px; height: 128px;
    margin: 0 auto 14px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 6px solid var(--border-light);
    background: var(--bg-elevated);
}
.ipq-gauge--green  { border-color: var(--green); box-shadow: 0 0 40px -8px var(--green); }
.ipq-gauge--yellow { border-color: var(--warm-light); box-shadow: 0 0 40px -8px var(--warm-light); }
.ipq-gauge--orange { border-color: var(--orange); box-shadow: 0 0 40px -8px var(--orange); }
.ipq-gauge--red    { border-color: var(--red); box-shadow: 0 0 40px -8px var(--red); }
.ipq-gauge__num {
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1;
    color: var(--text);
    font-variant-numeric: tabular-nums;
}
.ipq-gauge__max {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 4px;
}
.ipq-band {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 8px 18px;
    border-radius: 999px;
    margin-bottom: 14px;
}
.ipq-band__dot { width: 11px; height: 11px; border-radius: 50%; background: currentColor; }
.ipq-band--green  { color: var(--green);  background: var(--green-soft); }
.ipq-band--yellow { color: var(--warm-light); background: rgba(var(--warm-light-rgb), 0.13); }
.ipq-band--orange { color: var(--orange); background: rgba(var(--orange-rgb), 0.13); }
.ipq-band--red    { color: var(--red);    background: rgba(var(--red-rgb), 0.13); }
.ipq-band { margin-bottom: 12px; }
.ipq-result__blurb {
    max-width: 56ch;
    margin: 0 auto 20px;
    color: var(--text);
    line-height: 1.55;
}

/* ---- Scale bar ---- */
.ipq-scale {
    display: flex;
    gap: 3px;
    margin: 0 auto 18px;
    max-width: 460px;
}
.ipq-scale__seg {
    position: relative;
    height: 40px;
    border-radius: 6px;
    opacity: 0.32;
    transition: opacity .2s ease;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: visible;
}
.ipq-scale__seg.is-active { opacity: 1; transform: scaleY(1.12); }
.ipq-scale__seg--green  { background: var(--green); }
.ipq-scale__seg--yellow { background: var(--warm-light); }
.ipq-scale__seg--orange { background: var(--orange); }
.ipq-scale__seg--red    { background: var(--red); }
.ipq-scale__label {
    position: absolute;
    bottom: -20px;
    font-size: 0.62rem;
    color: var(--text-dim);
    white-space: nowrap;
    opacity: 0;
}
.ipq-scale__seg.is-active .ipq-scale__label { opacity: 1; color: var(--text-secondary); }

.ipq-result__disclaimer {
    font-size: 0.82rem;
    color: var(--text-dim);
    line-height: 1.5;
    max-width: 62ch;
    margin: 0 auto 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

/* ---- Crisis box ---- */
.ipq-crisis {
    text-align: left;
    background: rgba(var(--red-rgb), 0.10);
    border: 1.5px solid var(--red);
    border-radius: var(--radius-md);
    padding: 20px 22px;
    margin-bottom: 26px;
}
.ipq-crisis__heading {
    margin: 0 0 8px;
    color: var(--red);
    font-size: 1.1rem;
}
.ipq-crisis__body { margin: 0 0 12px; color: var(--text); line-height: 1.55; }
.ipq-crisis__lines {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text);
    font-weight: 500;
    line-height: 1.7;
}

/* ---- Result CTA ---- */
.ipq-result-cta {
    background: linear-gradient(160deg, var(--accent-glow) 0%, transparent 80%);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    /* padding-top (above title) = padding-bottom (below button), kept equal
       to the body's margin-bottom (above button) for balanced breathing room */
    padding: 32px 28px;
    margin-top: 0;
}
.ipq-result-cta__headline { margin: 0 0 8px; font-size: 1.25rem; color: var(--text); }
.ipq-result-cta__body {
    margin: 0 auto 18px;
    max-width: 52ch;
    color: var(--text-secondary);
    line-height: 1.55;
}
.ipq-restart { margin-top: 16px; }

/* ==================== ABOUT / SOURCE ==================== */
.ipq-about {
    margin: 6px 0 8px;
    padding: 16px 18px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
}
.ipq-about__measures { margin: 0 0 8px; color: var(--text); }
.ipq-about__source { margin: 0; color: var(--text-dim); font-size: 0.82rem; }
.ipq-about__source span { color: var(--text-secondary); }

/* ==================== FAQ ==================== */
.ipq-faq { margin: 38px 0 10px; }
.ipq-faq__item {
    border-bottom: 1px solid var(--border);
    padding: 4px 0;
}
.ipq-faq__item summary {
    cursor: pointer;
    padding: 16px 0;
    font-weight: 600;
    color: var(--text);
    list-style: none;
}
.ipq-faq__item summary::-webkit-details-marker { display: none; }
.ipq-faq__item summary::after { content: '+'; float: right; color: var(--text-secondary); }
.ipq-faq__item[open] summary::after { content: '−'; }
.ipq-faq__answer { padding: 0 0 16px; color: var(--text-secondary); line-height: 1.65; }

/* ==================== NO-JS FALLBACK ==================== */
.ipq-fallback {
    margin-top: 20px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}
.ipq-fallback__prompt { color: var(--text-secondary); font-style: italic; }
.ipq-fallback__list { padding-left: 1.3em; line-height: 1.7; }
.ipq-fallback__scale { color: var(--text-dim); font-size: 0.85rem; }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 600px) {
    .ipq-card { padding: 22px 18px 20px; }
    .ipq-start { padding: 32px 20px; }
    .ipq-qtext { font-size: 1.12rem; }
    .ipq-scale { max-width: 100%; }
    .ipq-scale__label { display: none; }
    .ipq-nav__hint { display: none; }
}
