/* ==========================================================================
   A49 — Bürgerstimmen (Variante 3d)
   assets/css/buergerstimmen-a49.css
   ========================================================================== */

:root {
    --a49-vote-text: var(--white, #fff);
    --a49-vote-muted: rgba(214,233,250,1);
    --a49-vote-line: rgba(255,255,255,.3);
    --a49-vote-dur: 6000ms;
}

.a49-vote {
    display: flex;
    gap: clamp(24px, 3.5vw, 56px);
    height: 100%;
    color: var(--a49-vote-text);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

/* --- linke Spalte: Zeichen, Linie, Zähler -------------------------------- */

.a49-vote__aside {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.a49-vote__mark {
    display: block;
    height: 46px;
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 700;
    font-size: 96px;
    line-height: .78;
    color: var(--a49-vote-text);
    user-select: none;
}

.a49-vote__line {
    display: block;
    flex: 1;
    width: 2px;
    min-height: 80px;
    background: var(--a49-vote-line);
    overflow: hidden;
}

.a49-vote__fill {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--orange);
    transform: scaleY(0);
    transform-origin: top;
}

.a49-vote.is-running .a49-vote__fill {
    animation: a49-vote-grow var(--a49-vote-dur) linear forwards;
}

.a49-vote.is-paused .a49-vote__fill {
    animation-play-state: paused;
}

@keyframes a49-vote-grow {
    to { transform: scaleY(1); }
}

.a49-vote__count {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .06em;
    font-variant-numeric: tabular-nums;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    white-space: nowrap;
}

/* --- Zitate (übereinander gestapelt, Höhe = längstes Zitat) -------------- */

.a49-vote__stage {
    display: grid;
    flex: 1;
    min-width: 0;
    align-content: center;
}

.a49-vote__item {
    grid-area: 1 / 1;
    margin: 0;
    pointer-events: none;
}

.a49-vote__item.is-active {
    pointer-events: auto;
}

.a49-vote .a49-vote__text {
    margin: 0;
    padding: 0;
    border: 0;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 600;
    font-size: clamp(26px, 2.7vw, 46px);
    line-height: 1.14;
    letter-spacing: -0.03em;
    color: var(--a49-vote-text);
}

.a49-vote__word {
    display: inline-block;
    opacity: 0;
    transform: translateY(.7em);
    filter: blur(4px);
    transition: opacity .5s ease, transform .7s cubic-bezier(.2, 1.1, .3, 1), filter .6s ease;
    transition-delay: 0s;
}

.a49-vote__item.is-active .a49-vote__word {
    opacity: 1;
    transform: none;
    filter: blur(0);
    transition-delay: calc(.35s + var(--i, 0) * .05s);
}

.a49-vote__meta {
    margin-top: 28px;
    font-size: 17px;
    color: var(--a49-vote-muted);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .6s ease, transform .6s ease;
}

.a49-vote__item.is-active .a49-vote__meta {
    opacity: 1;
    transform: none;
    transition-delay: var(--d, 1s);
}

/* --- Mobil ---------------------------------------------------------------- */

@media (max-width: 575px) {
    .a49-vote__mark {
        height: 34px;
        font-size: 72px;
    }
}

/* --- Reduzierte Bewegung -------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    .a49-vote__word,
    .a49-vote__meta {
        transform: none;
        filter: none;
        transition: opacity .3s ease;
        transition-delay: 0s !important;
    }

    .a49-vote.is-running .a49-vote__fill {
        animation: none;
        transform: scaleY(1);
    }
}
