/* UFH Voting – [ufh_vote] «Zahl + Herz»-Pille und [ufh_test_mode_notice].
   Alles unter .ufh-vote bzw. .ufh-test-notice; Tokens mit Fallbacks. */

.ufh-vote{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;max-width:100%}

/* Pille: Standard = Kontur Violett, weiss, Herz als Umriss */
.ufh-vote .ufh-vote__btn.ufh-vote__btn{
	-webkit-appearance:none;appearance:none;box-sizing:border-box;
	display:inline-flex;align-items:center;justify-content:center;gap:.45rem;
	height:44px;min-height:44px;max-width:100%;margin:0;padding:0 1rem;
	border:2px solid var(--c-violett,#382c8a);border-radius:999px;
	background:var(--c-weiss,#fff);color:var(--c-violett,#382c8a);box-shadow:none;
	font:inherit;font-size:1rem;font-weight:700;line-height:1;white-space:nowrap;
	font-variant-numeric:tabular-nums;cursor:pointer;opacity:1;filter:none
}
.ufh-vote .ufh-vote__heart{width:20px;height:20px;flex:none;fill:none;transform-origin:50% 55%}
.ufh-vote .ufh-vote__num,.ufh-vote .ufh-vote__text{min-width:0;overflow:hidden;text-overflow:ellipsis}
/* Variante ohne Zahl («Abstimmen») etwas kompakter, damit sie in schmale Karten passt */
.ufh-vote .ufh-vote__btn.ufh-vote__btn:has(.ufh-vote__text){padding:0 .8rem;gap:.35rem;font-size:.875rem}

/* Hover / Fokus */
.ufh-vote .ufh-vote__btn.ufh-vote__btn:hover:not(:disabled),
.ufh-vote .ufh-vote__btn.ufh-vote__btn:focus-visible:not(:disabled){background:var(--c-helllila,#a9b2ff)}
.ufh-vote .ufh-vote__btn.ufh-vote__btn:focus-visible{outline:3px solid var(--c-lila,#735afe);outline-offset:3px}

/* Wird gesendet */
.ufh-vote .ufh-vote__btn.ufh-vote__btn[aria-busy="true"]{opacity:.7;cursor:progress}
.ufh-vote .ufh-vote__btn.ufh-vote__btn:disabled{cursor:default}

/* Abgestimmt: Violett, weiss, Herz gefüllt */
.ufh-vote .ufh-vote__btn.ufh-vote__btn.is-voted{background:var(--c-violett,#382c8a);border-color:var(--c-violett,#382c8a);color:var(--c-weiss,#fff);opacity:1;filter:none;cursor:default}
.ufh-vote .ufh-vote__btn.is-voted .ufh-vote__heart{fill:currentColor}

/* Gesperrt (bereits für ein anderes Projekt abgestimmt): gedämpft, ohne Hover */
.ufh-vote .ufh-vote__btn.ufh-vote__btn.is-locked{background:var(--c-weiss,#fff);border-color:var(--c-helllila,#a9b2ff);color:rgba(56,44,138,.6);opacity:1;filter:none;cursor:default}
.ufh-vote__note{flex-basis:100%;margin:0;font-size:.75rem;line-height:1.3;color:rgba(56,44,138,.75)}

@media (prefers-reduced-motion:no-preference){
	.ufh-vote .ufh-vote__btn.ufh-vote__btn{transition:background-color .15s ease,color .15s ease,border-color .15s ease}
	.ufh-vote .ufh-vote__btn.is-popping .ufh-vote__heart{animation:ufh-vote-pop .3s ease-out}
}
@keyframes ufh-vote-pop{0%{transform:scale(1)}45%{transform:scale(1.25)}100%{transform:scale(1)}}

/* Rückmeldung: rechts neben der Pille, sonst darunter (flex-wrap) */
.ufh-vote__status{margin:0;font-size:.8125rem;font-weight:600;line-height:1.3;color:var(--c-violett,#382c8a)}
.ufh-vote__status:empty{display:none}
.ufh-vote__sr{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* [ufh_test_mode_notice] – nur für eingeloggte Redaktion sichtbar */
.ufh-test-notice{margin:1rem 0 0;padding:.75rem 1rem;border:2px dashed var(--c-violett,#382c8a);border-radius:12px;background:var(--c-hellblau,#c4e5f9);color:var(--c-violett,#382c8a);font-size:.875rem;line-height:1.45}
.ufh-test-notice a{color:inherit;text-decoration:underline;font-weight:600}
