/* wahlen-multi.css · Ergänzungen für die Wahl-Auswahl (Landing, Ergebnisbalken, Ranglisten) */

.wm-title { font-size: 1.15rem; font-weight: 650; margin: 4px 2px 12px; color: #1e293b; }

/* ── Wahl-Kacheln auf der Landing Page ── */
.wm-cards {
    display: grid; gap: 14px; margin-bottom: 18px;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}
.wm-card {
    all: unset; box-sizing: border-box; cursor: pointer;
    display: flex; flex-direction: column; gap: 6px; padding: 16px 16px 14px;
    border-radius: 18px; background: rgba(255,255,255,.62);
    border: 1px solid rgba(255,255,255,.7);
    box-shadow: 0 6px 22px rgba(15,23,42,.07);
    backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
    transition: transform .15s ease, box-shadow .15s ease;
}
.wm-card:hover, .wm-card:focus-visible { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(15,23,42,.12); }
.wm-card:focus-visible { outline: 2px solid #14b8a6; outline-offset: 2px; }
.wm-card-h { display: flex; align-items: center; gap: 7px; font-size: .74rem; color: #64748b; text-transform: uppercase; letter-spacing: .05em; }
.wm-card-h svg { width: 15px; height: 15px; color: #0d9488; }
.wm-card-t { font-weight: 650; font-size: 1.02rem; color: #0f172a; }
.wm-card-big { display: flex; align-items: center; gap: 7px; font-size: 1.25rem; font-weight: 700; color: #0f172a; margin-top: 4px; line-height: 1.2; }
.wm-card-sub { font-size: .78rem; color: #64748b; min-height: 1em; }
.wm-card-f { display: flex; justify-content: space-between; align-items: center; font-size: .8rem; color: #475569; margin-top: 4px; }
.wm-card-f svg { width: 15px; height: 15px; color: #0d9488; }

.wm-stack { display: flex; height: 8px; border-radius: 5px; overflow: hidden; background: rgba(148,163,184,.2); margin-top: 6px; }
.wm-stack i { display: block; height: 100%; }

.wm-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; }

/* ── Ergebnisbalken ── */
.wm-parties { display: flex; flex-direction: column; gap: 10px; }
.wm-row { display: grid; grid-template-columns: minmax(150px, 30%) 1fr 118px; align-items: center; gap: 12px; }
.wm-lbl { display: flex; align-items: flex-start; gap: 8px; min-width: 0; }
.wm-lbl .wm-dot { margin-top: 5px; }
.wm-lbl b { font-weight: 650; color: #0f172a; }
.wm-lbl small { display: block; font-size: .72rem; color: #64748b; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.wm-lbl > div { min-width: 0; }
.wm-bar { height: 12px; border-radius: 7px; background: rgba(148,163,184,.18); overflow: hidden; }
.wm-bar i { display: block; height: 100%; border-radius: 7px; transition: width .4s ease; }
.wm-val { text-align: right; font-weight: 650; color: #0f172a; font-variant-numeric: tabular-nums; }
.wm-val small { display: block; font-weight: 400; font-size: .72rem; color: #64748b; }
.wm-diff { display: block; font-size: .72rem; font-weight: 600; }
.wm-diff.up, .wm-rv.up { color: #059669; }
.wm-diff.dn, .wm-rv.dn { color: #dc2626; }
.wm-mand, .wm-sieg {
    display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 99px;
    font-size: .68rem; font-weight: 600; vertical-align: 1px;
    background: rgba(20,184,166,.14); color: #0f766e;
}
.wm-sieg { background: #0d9488; color: #fff; }

/* ── Ranglisten ── */
.wm-rank { display: flex; flex-direction: column; }
.wm-ri {
    all: unset; box-sizing: border-box; cursor: pointer;
    display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 8px;
    padding: 7px 6px; border-radius: 10px; border-bottom: 1px solid rgba(148,163,184,.15);
}
.wm-ri:last-child { border-bottom: 0; }
.wm-ri:hover, .wm-ri:focus-visible { background: rgba(20,184,166,.08); }
.wm-rn { font-size: .75rem; color: #94a3b8; text-align: right; font-variant-numeric: tabular-nums; }
.wm-rname { font-weight: 600; color: #0f172a; min-width: 0; }
.wm-rname small { display: block; font-weight: 400; font-size: .72rem; color: #64748b; }
.wm-rv { font-weight: 650; font-variant-numeric: tabular-nums; color: #0f172a; }

/* ── Partei-Auswahl ── */
.wm-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.wm-pill {
    all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 7px;
    padding: 7px 13px; border-radius: 99px; font-size: .85rem; font-weight: 600; color: #334155;
    background: rgba(255,255,255,.6); border: 1px solid rgba(148,163,184,.35);
}
.wm-pill:hover { border-color: var(--c); }
.wm-pill.on { background: var(--c); border-color: var(--c); color: #fff; }
.wm-pill.on .wm-dot { background: #fff !important; }

.bv-filter select { min-width: 0; }

@media (max-width: 760px) {
    .wm-row { grid-template-columns: 1fr 92px; gap: 4px 10px; }
    .wm-bar { grid-column: 1 / -1; grid-row: 2; height: 9px; }
    .wm-cards { grid-template-columns: 1fr 1fr; gap: 10px; }
    .wm-card { padding: 13px; }
    .wm-card-big { font-size: 1.05rem; }
}
@media (max-width: 420px) { .wm-cards { grid-template-columns: 1fr; } }
