/*
 * PMPS Live Vote – Public CSS
 * Scope: .pmps-lv__
 * CI: #196297 (primary), #2475b3 (secondary)
 * Schrift: Manrope (Headings), System-Stack (Fließtext)
 */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;600;700;800&display=swap');

/* ── Basis ───────────────────────────────────────────────────────────────── */

.pmps-lv__vote-app,
.pmps-lv__results-app {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 16px 40px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    color: #222;
}

/* ── Header / Event-Titel ────────────────────────────────────────────────── */

.pmps-lv__header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 28px 0 20px;
    border-bottom: 3px solid #196297;
    margin-bottom: 28px;
}

.pmps-lv__event-title {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(1.4rem, 4vw, 2rem);
    font-weight: 800;
    color: #196297;
    margin: 0;
    line-height: 1.2;
}

.pmps-lv__live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #d32f2f;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 4px 10px;
    border-radius: 20px;
    animation: pmps-lv-pulse 1.8s ease-in-out infinite;
    white-space: nowrap;
    flex-shrink: 0;
}

@keyframes pmps-lv-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.6; }
}

/* ── Frage ───────────────────────────────────────────────────────────────── */

.pmps-lv__question {
    background: #fff;
    border: 2px solid #c8d8ed;
    border-radius: 14px;
    padding: 28px 28px 24px;
    margin-bottom: 12px;
    box-shadow: 0 2px 18px rgba(25,98,151,0.08);
    width: 100%;
    box-sizing: border-box;
}

.pmps-lv__question-type {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #2475b3;
    margin: 0 0 8px;
}

.pmps-lv__question-title {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(1.1rem, 3vw, 1.45rem);
    font-weight: 700;
    color: #111;
    margin: 0 0 24px;
    line-height: 1.35;
}

/* ── Antwort-Elemente ────────────────────────────────────────────────────── */

.pmps-lv__answer-area {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.pmps-lv__radio-label,
.pmps-lv__checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 2px solid #c8d8ed;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 400;
    overflow: hidden;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.18s, background 0.18s, transform 0.18s, box-shadow 0.18s;
}
.pmps-lv__radio-label:hover,
.pmps-lv__checkbox-label:hover {
    border-color: #196297;
    background: #f0f6fb;
    transform: translateX(4px);
    box-shadow: 0 3px 14px rgba(25,98,151,0.13);
}
.pmps-lv__radio-label:has(input:checked),
.pmps-lv__checkbox-label:has(input:checked) {
    border-color: #196297;
    background: #edf4fb;
    box-shadow: 0 2px 10px rgba(25,98,151,0.12);
}

.pmps-lv__radio-label input,
.pmps-lv__checkbox-label input {
    accent-color: #196297;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* ── Ranking ─────────────────────────────────────────────────────────────── */

.pmps-lv__ranking {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 8px;
}

.pmps-lv__rank-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border: 2px solid #c8d8ed;
    border-radius: 10px;
    background: #fff;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.pmps-lv__rank-item:hover { border-color: #196297; background: #f5f9fd; box-shadow: 0 2px 10px rgba(25,98,151,0.1); }

.pmps-lv__rank-select {
    padding: 8px 10px;
    border: 1px solid #c6d4e3;
    border-radius: 7px;
    font-size: 0.95rem;
    color: #333;
    background: #f8fbfe;
    cursor: pointer;
    flex-shrink: 0;
    min-width: 120px;
}

.pmps-lv__rank-select:focus {
    outline: none;
    border-color: #196297;
}

.pmps-lv__rank-option-label {
    font-size: 1rem;
    color: #222;
}

/* ── Skala ───────────────────────────────────────────────────────────────── */

.pmps-lv__scale-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pmps-lv__scale-legend {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    color: #666;
    padding: 0 2px;
}

.pmps-lv__scale-legend--result {
    margin-top: 12px;
}

.pmps-lv__scale {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.pmps-lv__scale-btn {
    width: 52px;
    height: 52px;
    border: 2px solid #c8d8ed;
    border-radius: 10px;
    background: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.pmps-lv__scale-btn:hover {
    border-color: #196297;
    background: #e8f2fb;
    transform: scale(1.14);
    box-shadow: 0 4px 14px rgba(25,98,151,0.18);
    position: relative; z-index: 1;
}
.pmps-lv__scale-btn.active {
    background: #196297;
    border-color: #196297;
    color: #fff;
    transform: scale(1.08);
    box-shadow: 0 4px 14px rgba(25,98,151,0.28);
}

/* ── Texteingabe ─────────────────────────────────────────────────────────── */

.pmps-lv__text-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #c8d8ed;
    border-radius: 10px;
    font-size: 1rem;
    color: #222;
    transition: border-color 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
    background: #fff;
}
.pmps-lv__text-input:focus {
    border-color: #196297;
    outline: none;
    box-shadow: 0 0 0 3px rgba(25,98,151,0.12);
}

/* ── Absenden-Button ─────────────────────────────────────────────────────── */

.pmps-lv__submit-btn {
    width: 100%;
    padding: 16px;
    background: #196297;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.18s, transform 0.18s, box-shadow 0.18s, opacity 0.15s;
    min-height: 52px;
    box-shadow: 0 4px 16px rgba(25,98,151,0.25);
    letter-spacing: 0.02em;
}
.pmps-lv__submit-btn:hover:not(:disabled) {
    background: #2475b3;
    transform: translateY(-2px);
    box-shadow: 0 7px 22px rgba(25,98,151,0.32);
}
.pmps-lv__submit-btn:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(25,98,151,0.2);
}

.pmps-lv__submit-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* ── Ergebnis-Balken ─────────────────────────────────────────────────────── */

.pmps-lv__bar-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.pmps-lv__bar-label {
    font-size: 0.95rem;
    color: #333;
}

.pmps-lv__bar-track {
    width: 160px;
    height: 14px;
    background: #e8f1f8;
    border-radius: 7px;
    overflow: hidden;
}

.pmps-lv__bar-fill {
    height: 100%;
    background: #196297;
    border-radius: 7px;
    transition: width 0.6s ease;
}

.pmps-lv__bar-pct {
    font-size: 0.85rem;
    font-weight: 700;
    color: #196297;
    min-width: 40px;
    text-align: right;
}

/* ── Skala-Ergebnis ──────────────────────────────────────────────────────── */

.pmps-lv__scale-result {
    text-align: center;
    padding: 24px 0;
}

.pmps-lv__scale-avg {
    font-family: 'Manrope', sans-serif;
    font-size: 4rem;
    font-weight: 800;
    color: #196297;
    line-height: 1;
}

/* ── Ranking-Ergebnis ────────────────────────────────────────────────────── */

.pmps-lv__rank-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    font-size: 1rem;
}

.pmps-lv__rank-num {
    font-weight: 800;
    font-size: 1.2rem;
    color: #196297;
    min-width: 24px;
}

/* ── Textergebnisse ──────────────────────────────────────────────────────── */

.pmps-lv__text-results {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pmps-lv__text-results li {
    padding: 10px 14px;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
}

/* ── Word Cloud Hinweis ──────────────────────────────────────────────────── */

.pmps-lv__wc-hint {
    font-size: 0.95rem;
    color: #555;
    text-align: center;
    padding: 20px 0;
}

/* ── Warte-/Status-Screens ───────────────────────────────────────────────── */

.pmps-lv__waiting,
.pmps-lv__closed {
    text-align: center;
    padding: 48px 24px;
    color: #666;
}

.pmps-lv__waiting-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    color: #2475b3;
}

.pmps-lv__waiting-icon svg {
    width: 100%;
    height: 100%;
}

.pmps-lv__waiting-next {
    font-size: 0.85rem;
    color: #999;
    margin-top: 20px;
    text-align: center;
}

/* ── Ergebnis-Label ──────────────────────────────────────────────────────── */

.pmps-lv__result-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #2475b3;
    margin: 0 0 8px;
}

/* ── Spinner ─────────────────────────────────────────────────────────────── */

.pmps-lv__loading {
    text-align: center;
    padding: 48px 24px;
    color: #888;
}

.pmps-lv__spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #e8f1f8;
    border-top-color: #196297;
    border-radius: 50%;
    animation: pmps-lv-spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

@keyframes pmps-lv-spin {
    to { transform: rotate(360deg); }
}

/* ── Fehlermeldung ───────────────────────────────────────────────────────── */

.pmps-lv__error {
    background: #fff3f3;
    border: 1px solid #ffcdd2;
    border-radius: 8px;
    padding: 14px 16px;
    color: #c62828;
    font-size: 0.9rem;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 480px) {
    .pmps-lv__bar-track { width: 80px; }

    .pmps-lv__scale {
        gap: 6px;
    }

    .pmps-lv__scale-btn {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }

    .pmps-lv__rank-select {
        min-width: 100px;
    }
}

/* ══════════════════════════════════════════════════════════════════════════
   ERGEBNIS-VIEW (Beamer)  –  .pmps-lv-res__*
   ══════════════════════════════════════════════════════════════════════════ */

/* Breiterer Container für Beamer-Ansicht */
.pmps-lv__results-app {
    max-width: 920px;
}

/* ── Meta-Bar (Teilnehmer / Antworten / Fragen) ──────────────────────────── */

.pmps-lv-res__meta-bar {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 10px 16px;
    background: #f4f8fc;
    border: 1px solid #dde9f5;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 0.88rem;
    color: #555;
    flex-wrap: wrap;
}

.pmps-lv-res__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.pmps-lv-res__meta-item strong {
    color: #196297;
    font-size: 1rem;
}

.pmps-lv-res__meta-item svg {
    color: #2475b3;
    flex-shrink: 0;
}

/* ── Ergebnis-Card ───────────────────────────────────────────────────────── */

.pmps-lv-res__card {
    background: #fff;
    border: 2px solid #c8d8ed;
    border-radius: 14px;
    padding: 28px 32px;
    box-shadow: 0 2px 18px rgba(25,98,151,0.08);
    transition: box-shadow 0.2s;
    width: 100%;
    box-sizing: border-box;
}
.pmps-lv-res__card:hover { box-shadow: 0 6px 28px rgba(25,98,151,0.13); }

/* ── Fortschrittsbalken (Beamer-View) ────────────────────────────────────── */

.pmps-lv-res__progress {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.pmps-lv-res__progress-text {
    font-size: 0.82rem;
    font-weight: 700;
    color: #196297;
    white-space: nowrap;
    min-width: 110px;
}

.pmps-lv-res__progress-track {
    flex: 1;
    height: 6px;
    background: #e8f1f8;
    border-radius: 4px;
    overflow: hidden;
}

.pmps-lv-res__progress-fill {
    height: 100%;
    background: #196297;
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* ── Header (Typ-Badge + Stimmen) ────────────────────────────────────────── */

.pmps-lv-res__header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.pmps-lv-res__type-badge {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: #2475b3;
    background: #e8f2fb;
    padding: 3px 10px;
    border-radius: 20px;
}

.pmps-lv-res__votes-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #555;
    background: #f4f6f8;
    padding: 3px 10px;
    border-radius: 20px;
    margin-left: auto;
}

.pmps-lv-res__votes-badge svg {
    width: 13px;
    height: 13px;
    color: #196297;
    flex-shrink: 0;
}

/* ── Frage-Titel (Beamer: groß) ──────────────────────────────────────────── */

.pmps-lv-res__question-title {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(1.3rem, 3.5vw, 1.9rem);
    font-weight: 800;
    color: #111;
    margin: 0 0 28px;
    line-height: 1.3;
}

.pmps-lv-res__body {
    /* Container für alle Ergebnis-Inhalte */
}

/* ── Kein Ergebnis ────────────────────────────────────────────────────────── */

.pmps-lv-res__no-data {
    text-align: center;
    color: #aaa;
    font-size: 1rem;
    padding: 32px 0;
}

/* ── Balkendiagramm (Chart.js) ───────────────────────────────────────────── */

.pmps-lv-res__chart-wrap {
    position: relative;
    width: 100%;
}

.pmps-lv-res__chart-wrap canvas {
    width: 100% !important;
}

/* ── Skala-Ergebnis ──────────────────────────────────────────────────────── */

.pmps-lv-res__scale-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.pmps-lv-res__scale-avg-wrap {
    text-align: center;
}

.pmps-lv-res__scale-avg {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(4rem, 10vw, 6rem);
    font-weight: 800;
    color: #196297;
    line-height: 1;
}

.pmps-lv-res__scale-avg-label {
    font-size: 0.85rem;
    color: #999;
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

/* Vertikale Balken 1–10 */
.pmps-lv-res__scale-dist {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 120px;
    width: 100%;
    max-width: 520px;
}

.pmps-lv-res__scale-dist-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    height: 100%;
}

.pmps-lv-res__scale-dist-bar-wrap {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: flex-end;
    background: #f0f6fb;
    border-radius: 4px 4px 0 0;
    overflow: hidden;
}

.pmps-lv-res__scale-dist-bar {
    width: 100%;
    background: #196297;
    border-radius: 4px 4px 0 0;
    transition: height 0.6s ease;
    min-height: 2px;
}

.pmps-lv-res__scale-dist-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #888;
    margin-top: 5px;
}

.pmps-lv-res__scale-legend {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 520px;
    font-size: 0.82rem;
    color: #666;
    padding: 0 2px;
}

/* ── Ranking-Ergebnis ────────────────────────────────────────────────────── */

.pmps-lv-res__ranking-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pmps-lv-res__ranking-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    background: #f8fbfe;
    border: 1px solid #e0eaf4;
    border-radius: 10px;
    transition: background 0.15s;
}

.pmps-lv-res__ranking-item:first-child {
    background: #e8f2fb;
    border-color: #b8d4ed;
}

.pmps-lv-res__rank-pos {
    font-family: 'Manrope', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: #196297;
    min-width: 32px;
    text-align: center;
}

.pmps-lv-res__ranking-item:first-child .pmps-lv-res__rank-pos {
    font-size: 1.8rem;
}

.pmps-lv-res__rank-label {
    flex: 1;
    font-size: 1.05rem;
    font-weight: 600;
    color: #222;
}

.pmps-lv-res__rank-score {
    font-size: 0.82rem;
    color: #888;
    white-space: nowrap;
}

/* ── Freitext-Ergebnis ────────────────────────────────────────────────────── */

.pmps-lv-res__freetext-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 360px;
    overflow-y: auto;
}

.pmps-lv-res__freetext-item {
    padding: 12px 16px;
    background: #f8fbfe;
    border-left: 3px solid #196297;
    border-radius: 0 8px 8px 0;
    font-size: 0.98rem;
    color: #333;
    line-height: 1.5;
}

/* ── Word Cloud ──────────────────────────────────────────────────────────── */

.pmps-lv-res__wc-wrap {
    width: 100%;
}

.pmps-lv-res__wc-wrap canvas {
    width: 100% !important;
    border-radius: 8px;
}

.pmps-lv-res__wc-fallback {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    align-items: center;
    justify-content: center;
    padding: 24px;
    min-height: 160px;
}

.pmps-lv-res__wc-tag {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    color: #196297;
    transition: color 0.15s;
}

/* ── Session beendet ─────────────────────────────────────────────────────── */

.pmps-lv-res__closed {
    text-align: center;
    padding: 56px 24px;
    color: #888;
}

.pmps-lv-res__closed svg {
    width: 52px;
    height: 52px;
    color: #2475b3;
    margin: 0 auto 16px;
    display: block;
}

.pmps-lv-res__closed p {
    font-size: 1.1rem;
    color: #666;
}

/* ══════════════════════════════════════════════════════════════════════════
   FORTSCHRITTSBALKEN – Teilnehmer-Frontend  .pmps-lv__vote-progress
   ══════════════════════════════════════════════════════════════════════════ */

.pmps-lv__vote-progress {
    margin-bottom: 20px;
    padding: 10px 14px;
    background: #f4f8fc;
    border-radius: 8px;
}

.pmps-lv__vote-progress-text {
    font-size: 0.8rem;
    font-weight: 700;
    color: #2475b3;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.pmps-lv__vote-progress-track {
    height: 5px;
    background: #dde9f5;
    border-radius: 4px;
    overflow: hidden;
}

.pmps-lv__vote-progress-fill {
    height: 100%;
    background: #196297;
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* ══════════════════════════════════════════════════════════════════════════
   RESULTS-VIEW NAVIGATION  –  .pmps-lv-res__nav-*
   ══════════════════════════════════════════════════════════════════════════ */

.pmps-lv-res__nav-bar {
    margin-bottom: 16px;
}

.pmps-lv-res__nav-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f0f6fb;
    border: 1px solid #dde9f5;
    border-radius: 10px;
    padding: 8px 10px;
    flex-wrap: wrap;
}

.pmps-lv-res__nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    background: #fff;
    border: 1px solid #c6d8ec;
    border-radius: 7px;
    cursor: pointer;
    color: #196297;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background 0.12s, border-color 0.12s;
    white-space: nowrap;
    flex-shrink: 0;
}

.pmps-lv-res__nav-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.pmps-lv-res__nav-btn:hover:not(:disabled) {
    background: #e8f2fb;
    border-color: #196297;
}

.pmps-lv-res__nav-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

/* Live-Button */
.pmps-lv-res__nav-btn--live {
    background: #e8f5e9;
    border-color: #a5d6a7;
    color: #2e7d32;
}

.pmps-lv-res__nav-btn--live:hover:not(:disabled) {
    background: #c8e6c9;
    border-color: #2e7d32;
}

.pmps-lv-res__nav-btn--live svg circle:last-child {
    animation: pmps-lv-pulse 1.6s ease-in-out infinite;
}

/* Export-Button */
.pmps-lv-res__nav-btn--export {
    background: #fff;
    border-color: #c6d8ec;
    color: #555;
    margin-left: auto;
}

.pmps-lv-res__nav-btn--export:hover:not(:disabled) {
    background: #f4f8fc;
    border-color: #196297;
    color: #196297;
}

/* Dropdown */
.pmps-lv-res__nav-select-wrap {
    flex: 1;
    min-width: 0;
}

.pmps-lv-res__nav-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #c6d8ec;
    border-radius: 7px;
    font-size: 0.88rem;
    color: #222;
    background: #fff;
    cursor: pointer;
    appearance: auto;
}

.pmps-lv-res__nav-select:focus {
    outline: none;
    border-color: #196297;
}

/* Manuell-Badge */
.pmps-lv-res__manual-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #e65100;
    background: #fff3e0;
    padding: 2px 8px;
    border-radius: 20px;
}

/* ── Word Cloud (Teilnehmer-Frontend) ────────────────────────────────────── */

.pmps-lv__wc-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    padding: 12px 4px;
    align-items: center;
    justify-content: center;
    min-height: 80px;
}

.pmps-lv__wc-tag {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    color: #196297;
    line-height: 1.3;
}

/* ── Skala Mini-Verteilung (Teilnehmer-Ergebnis) ─────────────────────────── */

.pmps-lv__scale-avg-sub {
    font-size: 0.82rem;
    color: #999;
    margin: 4px 0 0;
}

.pmps-lv__scale-mini-dist {
    display: flex;
    align-items: flex-end;
    gap: 5px;
    height: 64px;
    max-width: 360px;
    margin: 16px auto 4px;
}

.pmps-lv__scale-mini-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    height: 100%;
}

.pmps-lv__scale-mini-bar-wrap {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: flex-end;
    background: #eef4f9;
    border-radius: 3px 3px 0 0;
    overflow: hidden;
}

.pmps-lv__scale-mini-bar {
    width: 100%;
    background: #196297;
    border-radius: 3px 3px 0 0;
    transition: height 0.6s ease;
    min-height: 2px;
}

.pmps-lv__scale-mini-lbl {
    font-size: 0.68rem;
    font-weight: 700;
    color: #aaa;
    margin-top: 3px;
}

/* ══════════════════════════════════════════════════════════════════════════
   FOKUS-LAYOUT  –  body.pmps-lv-focus-body
   ══════════════════════════════════════════════════════════════════════════ */

body.pmps-lv-focus-body {
    background: #fff;
    margin: 0;
    padding: 0;
}

body.pmps-lv-focus-body .pmps-lv__vote-app,
body.pmps-lv-focus-body .pmps-lv__results-app {
    max-width: 100%;
    padding: 0 24px 40px;
}

/* Größere Schriften im Fokus-Modus */
body.pmps-lv-focus-body .pmps-lv__event-title,
body.pmps-lv-focus-body .pmps-lv-res__question-title {
    font-size: clamp(1.6rem, 5vw, 2.6rem);
}

body.pmps-lv-focus-body .pmps-lv__question-title {
    font-size: clamp(1.4rem, 4vw, 2rem);
}

body.pmps-lv-focus-body .pmps-lv__radio-label,
body.pmps-lv-focus-body .pmps-lv__checkbox-label {
    padding: 18px 22px;
    font-size: 1.1rem;
}

body.pmps-lv-focus-body .pmps-lv__scale-btn {
    width: 64px;
    height: 64px;
    font-size: 1.3rem;
}

body.pmps-lv-focus-body .pmps-lv__submit-btn {
    padding: 20px;
    font-size: 1.15rem;
}

/* Beamer: noch breiter und größer */
body.pmps-lv-focus-body .pmps-lv__results-app {
    max-width: 100%;
}

body.pmps-lv-focus-body .pmps-lv-res__card {
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: none;
    padding: 32px 24px;
}

@media (max-width: 600px) {
    .pmps-lv-res__nav-inner { flex-wrap: wrap; }
    .pmps-lv-res__nav-select-wrap { order: -1; width: 100%; flex-basis: 100%; }
    .pmps-lv-res__nav-btn--export span { display: none; }
    .pmps-lv-res__nav-btn--live span { display: none; }
}

/* ══════════════════════════════════════════════════════════════════════════
   LAYOUT-VERBESSERUNGEN v2  –  allgemein, 16:9, Branding
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Teilnehmer-App: Event-Titel Schriftgröße ────────────────────────────── */
.pmps-lv__event-title {
    font-size: clamp(1.3rem, 4vw, 2rem);
    letter-spacing: -0.01em;
}

/* ── Antwort-Optionen: stärkeres Hover-Feedback ──────────────────────────── */
/* v2-Layout-Overrides: in Basis-CSS integriert */

/* ── Balken: direkte Wert-Beschriftung ───────────────────────────────────── */
/* Chart.js rendert canvas – Beschriftungen werden über tooltip gelöst.
   Für die Export-HTML-Ansicht ist inline CSS bereits umgesetzt.          */

/* ── Ergebnis-Card Ranking: 1. Platz Gold-Akzent ────────────────────────── */
.pmps-lv-res__ranking-item:first-child {
    border-left: 4px solid #f9a825;
}
.pmps-lv-res__ranking-item:first-child .pmps-lv-res__rank-pos {
    color: #f9a825;
}

/* ── Ergebnis-Card Fragen-Titel: etwas größer im Beamer-View ────────────── */
.pmps-lv-res__question-title {
    font-size: clamp(1.4rem, 3.5vw, 2.4rem);
    line-height: 1.25;
    letter-spacing: -0.01em;
}

/* ── Fortschrittsbalken: subtileres Erscheinungsbild ─────────────────────── */
.pmps-lv-res__progress {
    margin-bottom: 20px;
}
.pmps-lv-res__progress-fill {
    transition: width 0.5s ease;
}

/* ── Closed-Session: voller Results-View (kein leerer Screen) ────────────── */
/* results.js zeigt jetzt Navigation + Export nach Session-Ende.
   showClosed() erscheint nur noch wenn KEINE Fragen in der Session sind. */

/* ── Manual-Navigation-Hinweis: dezenter ─────────────────────────────────── */
.pmps-lv-res__manual-badge {
    font-size: 0.7rem;
    padding: 2px 7px;
}

/* ── 16:9-spezifisch (via body.pmps-lv-focus-body) ──────────────────────── */
/* Inhaltsbreite auf Beamer-Format ausdehnen */
body.pmps-lv-focus-body .pmps-lv__results-app,
body.pmps-lv-focus-body .pmps-lv__vote-app {
    max-width: 100%;
    margin: 0 auto;
}

body.pmps-lv-focus-body .pmps-lv-res__card,
body.pmps-lv-focus-body .pmps-lv__question-card {
    border-left: none;
    border-right: none;
    border-radius: 0;
    box-shadow: none;
}
body.pmps-lv-focus-body .pmps-lv-res__card:hover { box-shadow: none; }
body.pmps-lv-focus-body .pmps-lv__radio-label:hover,
body.pmps-lv-focus-body .pmps-lv__checkbox-label:hover { transform: none; }

/* ── Branding-Bar (in page-focus.php gerendert, Stile für Konsistenz) ─────── */
.pmps-focus-topbar {
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* ── Mobile-spezifisch: Padding-Anpassungen ──────────────────────────────── */
@media (max-width: 600px) {
    .pmps-lv__vote-app,
    .pmps-lv__results-app {
        padding: 0 12px 32px;
    }
    .pmps-lv-res__card {
        padding: 20px 16px;
    }
    .pmps-lv-res__nav-inner {
        gap: 6px;
        padding: 8px;
    }
    .pmps-lv-res__nav-btn span {
        display: none;
    }
    /* Ausnahme: Live-Button-Text bleibt auf Mobile sichtbar */
    .pmps-lv-res__nav-btn--live span {
        display: inline;
    }
}
