/* =====================================================================
   Voting-Seite /abstimmen/
   ===================================================================== */
.vp { background: var(--bg); }

/* Status-Chip in der Navigation */
.vstatus {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px 0 12px;
  border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink);
  font-size: 13.5px; font-weight: 700; max-width: 62vw; transition: all .3s var(--ease);
}
.vstatus__star { color: var(--amber); font-size: 16px; transition: transform .6s var(--spring); }
.vstatus__txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vstatus[data-s="voted"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.vstatus[data-s="voted"] .vstatus__star { transform: rotate(144deg); }
.vstatus[data-s="pending"] { border-style: dashed; border-color: var(--amber); }
.vstatus.bump { animation: bump .6s var(--spring); }
@keyframes bump { 40% { transform: scale(1.12); } }

/* Kopf */
.vhead { position: relative; overflow: hidden; color: var(--ice); padding: 130px 0 70px;
  background:
    radial-gradient(90% 80% at 50% 130%, rgba(52,97,255,.55), transparent 60%),
    linear-gradient(180deg, var(--night-0), var(--night-1) 40%, var(--night-2)); }
.vhead__sky { position: absolute; inset: 0; pointer-events: none; }
.vhead__sky span { position: absolute; top: -20px; font-weight: 800; color: rgba(234,240,255,.5); animation: fall linear infinite; }
@keyframes fall { to { transform: translate3d(var(--dx, 20px), 520px, 0) rotate(var(--r, 90deg)); } }
.vhead__in { position: relative; display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.vhead__text { max-width: 720px; }
.vhead h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(36px, 5.4vw, 64px); letter-spacing: -.02em; color: #fff; margin-top: 18px; }
.vhead h1 em { color: var(--blue-soft); font-weight: 400; }
.vhead__lead { margin-top: 16px; font-size: clamp(16px, 1.5vw, 18px); color: rgba(234,240,255,.75); max-width: 620px; }
.steps { list-style: none; padding: 0; margin: 26px 0 0; display: flex; gap: 8px 22px; flex-wrap: wrap; font-size: 14px; font-weight: 700; color: rgba(234,240,255,.85); }
.steps li { display: flex; align-items: center; gap: 9px; }
.steps b { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,182,72,.15); color: var(--amber); font-size: 12.5px; }
.vhead__cd { display: flex; flex-direction: column; font-size: 12px; color: rgba(234,240,255,.6); letter-spacing: .04em; padding-bottom: 6px; }
.vhead__cd .countdown__val b { font-family: var(--serif); font-weight: 500; font-size: 30px; color: #fff; font-variant-numeric: tabular-nums; }
.vhead__cd .countdown__val small { margin-right: 10px; }

/* Banner */
.vbanner { margin-top: 22px; display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: 14px; background: #fff; border: 1px solid var(--line); font-size: 14.5px; color: var(--ink-2); }
.vbanner::before { content: "✶"; color: var(--amber); font-size: 18px; line-height: 1.2; }
.vbanner b { color: var(--ink); }
.vbanner a { color: var(--blue); font-weight: 700; }
.vbanner--test { background: #FFF6E8; border-color: #FFD9A6; }
.vbanner--dark { background: var(--night-1); color: rgba(234,240,255,.8); border-color: transparent; }
.vbanner--dark b { color: #fff; }
.vbanner--dark a { color: var(--amber); }

/* Warten */
.vwait { padding: 60px var(--gutter) 110px; }
.vwait__card { max-width: 640px; margin: 0 auto; text-align: center; background: #fff; border-radius: var(--r-lg); padding: 50px 34px; box-shadow: var(--shadow); }
.vwait__door { display: inline-grid; place-items: center; width: 92px; height: 112px; border-radius: 16px; font-family: var(--serif); font-style: italic; font-size: 56px; color: #fff;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.14), transparent 45%), linear-gradient(145deg, #1D2C7A, #0D1544); box-shadow: inset 0 0 0 6px rgba(255,255,255,.04), 0 18px 40px -16px rgba(13,21,68,.6); position: relative; }
.vwait__door::after { content: ""; position: absolute; right: 12px; top: 50%; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 10px rgba(255,182,72,.8); }
.vwait h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(28px, 4vw, 40px); margin-top: 26px; }
.vwait h2 em { color: var(--blue); font-weight: 400; }
.vwait p { margin: 14px auto 28px; color: var(--muted); max-width: 480px; }

/* Werkzeugleiste */
.gallery { padding-top: 30px; padding-bottom: 110px; }
.gtools { position: sticky; top: 76px; z-index: 10; display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  padding: 10px; margin: 0 -10px; border-radius: 18px; background: rgba(244,245,252,.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.gtools .chips { display: flex; gap: 6px; flex-wrap: wrap; }
.gtools .chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 14px; font-size: 13.5px; font-weight: 700; color: var(--ink-2); display: inline-flex; gap: 7px; align-items: center; }
.gtools .chip i { font-style: normal; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.gtools .chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.gtools .chip.on i { color: rgba(255,255,255,.65); }
.gsearch { flex: 0 1 300px; display: flex; align-items: center; gap: 9px; background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: 0 14px; color: var(--muted); }
.gsearch:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(52,97,255,.12); }
.gsearch svg { width: 17px; height: 17px; flex: none; }
.gsearch input { border: 0; background: none; font: inherit; font-size: 14.5px; padding: 9px 0; width: 100%; outline: none; color: var(--ink); }
.gnote { font-size: 13px; color: var(--muted); margin: 12px 2px 20px; }

/* Karten */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.pc { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: 22px; padding: 22px 24px 20px; border: 1.5px solid transparent;
  box-shadow: 0 1px 2px rgba(16,20,46,.05), 0 10px 30px -18px rgba(16,20,46,.3); transition: border-color .4s var(--ease), box-shadow .4s var(--ease), transform .4s var(--ease);
  opacity: 0; transform: translateY(14px); animation: cardIn .7s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes cardIn { to { opacity: 1; transform: none; } }
.pc:hover { box-shadow: 0 2px 2px rgba(16,20,46,.04), 0 24px 50px -24px rgba(16,20,46,.35); }
.pc.is-mine { border-color: var(--amber); box-shadow: 0 0 0 5px rgba(255,182,72,.16), 0 24px 50px -24px rgba(232,144,42,.5); }
.pc__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.pc__cat { font-size: 12px; font-weight: 800; color: var(--blue); background: rgba(52,97,255,.08); padding: 4px 10px; border-radius: 999px; }
.pc__no { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.pc__badge { position: absolute; top: -12px; right: 20px; background: var(--amber); color: #1A1206; font-size: 12px; font-weight: 800; padding: 4px 11px; border-radius: 999px; box-shadow: 0 6px 16px -6px rgba(232,144,42,.7); animation: pop .5s var(--spring); }
.pc__badge--win { background: var(--ink); color: #fff; box-shadow: none; }
.pc h3 { font-family: var(--serif); font-weight: 500; font-size: 23px; line-height: 1.15; margin-top: 14px; }
.pc__use { margin-top: 8px; font-size: 14.5px; color: var(--muted); font-style: italic; }
.pc__prompt { position: relative; margin-top: 14px; font-family: var(--mono); font-size: 13px; line-height: 1.7; color: var(--ink-2); white-space: pre-wrap; word-break: break-word;
  background: var(--bg); border-radius: 12px; padding: 14px 16px; max-height: calc(1.7em * 7 + 28px); overflow: hidden; }
.pc__prompt.is-long::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 56px; background: linear-gradient(transparent, var(--bg)); }
.pc__more { align-self: flex-start; margin-top: 10px; background: none; border: 0; padding: 0; font-size: 13.5px; font-weight: 700; color: var(--blue); }
.pc__more:hover { text-decoration: underline; text-underline-offset: 3px; }
.pc__foot { display: flex; gap: 10px; margin-top: auto; padding-top: 18px; flex-wrap: wrap; align-items: center; }
.pc__foot .vbtn--vote { margin-left: auto; }
.vbtn[aria-pressed="true"] { background: var(--amber); color: #1A1206; }
.vbtn[aria-pressed="true"] .vbtn__star { transform: rotate(144deg) scale(1.3); color: #1A1206; }
.vbtn:disabled { opacity: .45; cursor: default; }
.vp[data-readonly] .pc__foot .vbtn--vote { display: none; }

.gempty { grid-column: 1 / -1; text-align: center; padding: 60px 20px; color: var(--muted); background: #fff; border-radius: var(--r-lg); border: 1.5px dashed var(--line); }
.gempty b { display: block; font-family: var(--serif); font-weight: 500; font-size: 24px; color: var(--ink); margin-bottom: 6px; }
.gskel { height: 300px; border-radius: 22px; background: linear-gradient(90deg, #fff 0%, #EEF0FA 50%, #fff 100%); background-size: 200% 100%; animation: sk 1.2s linear infinite; }
@keyframes sk { to { background-position: -200% 0; } }

/* Dialoge */
.dlg { width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); border: 0; border-radius: 26px; padding: 34px 32px 30px; background: var(--paper); color: var(--ink);
  box-shadow: 0 40px 100px -20px rgba(7,11,31,.6); }
.dlg--wide { width: min(760px, calc(100vw - 24px)); }
.dlg::backdrop { background: rgba(7,11,31,.6); backdrop-filter: blur(4px); }
.dlg[open] { animation: dlgIn .45s var(--spring); }
@keyframes dlgIn { from { opacity: 0; transform: translateY(16px) scale(.97); } }
.dlg__x { position: absolute; top: 14px; right: 14px; }
.dlg__x button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 22px; line-height: 1; }
.dlg h2 { font-family: var(--serif); font-weight: 500; font-size: 30px; line-height: 1.1; padding-right: 30px; }
.dlg__meta { font-size: 12.5px; font-weight: 800; color: var(--blue); margin-bottom: 8px; }
.dlg__meta span { font-family: var(--mono); color: var(--muted); font-weight: 500; margin-right: 8px; }
.dlg__use { margin-top: 8px; color: var(--muted); font-style: italic; }
.dlg__prompt { margin-top: 18px; font-family: var(--mono); font-size: 13.5px; line-height: 1.75; white-space: pre-wrap; word-break: break-word; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.dlg__actions { display: flex; gap: 10px; margin-top: 22px; justify-content: flex-end; flex-wrap: wrap; }
.dlg__kicker { font-size: 12.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }

.mini { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; }
.mini span { display: block; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.mini b { display: block; font-family: var(--serif); font-weight: 500; font-size: 19px; line-height: 1.25; margin-top: 2px; }
.mini--from { opacity: .55; }
.mini--light { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.15); text-align: left; }
.mini--light span { color: rgba(234,240,255,.6); }
.mini--light b { color: #fff; }

.vform { margin-top: 22px; }
.vform label { display: block; font-size: 12.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.vform input[type=email] { width: 100%; font: inherit; font-size: 16px; padding: 13px 15px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); }
.vform input[type=email]:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(52,97,255,.14); }
.vform input.bad { border-color: #D9472B; box-shadow: 0 0 0 4px rgba(217,71,43,.1); }
.vform__err { margin-top: 10px; color: #B2381F; font-weight: 700; font-size: 14px; }
.vform__btn { width: 100%; justify-content: center; margin-top: 16px; }
.vform__hint { margin-top: 14px; font-size: 13px; color: var(--muted); }
.vsmall { margin-top: 14px; font-size: 13.5px; color: var(--muted); }
.vsmall .link-btn { font-size: 13.5px; }
.vsmall .link-btn:disabled { color: var(--muted); text-decoration: none; cursor: default; }
.vsmall--demo { color: #8F3A12; background: #FFF1E8; padding: 10px 12px; border-radius: 10px; }
.vstep[data-step="sent"] { text-align: center; padding-top: 6px; }
.vstep[data-step="sent"] h2 { padding: 0; margin-top: 18px; }
.vstep[data-step="sent"] > p { margin-top: 10px; color: var(--ink-2); }

.mailart { position: relative; width: 108px; height: 76px; margin: 4px auto 0; }
.mailart__env { position: absolute; inset: 0; border-radius: 10px; background: linear-gradient(170deg, #3A55D6, #2541C2); overflow: hidden; animation: envIn .7s var(--spring); }
.mailart__env::before { content: ""; position: absolute; inset: 0 0 38%; background: linear-gradient(180deg, #4B66E6, #3352D6); clip-path: polygon(0 0, 100% 0, 50% 100%); }
.mailart__star { position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -14px 0 0 -17px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #FFD48A, var(--amber) 45%, #D9781F); color: #6A3A08; font-size: 16px; animation: pop .6s .35s var(--spring) both; }
@keyframes envIn { from { transform: translateY(18px) rotate(-6deg); opacity: 0; } }

.swap { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; }
.swap__arrow { font-size: 22px; color: var(--amber); }

/* Danke-Overlay */
.thanks { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; background: rgba(7,11,31,.82); backdrop-filter: blur(6px); animation: fadeIn .35s ease; }
.thanks[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } }
.thanks__burst { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.thanks__burst span { position: absolute; left: 50%; top: 50%; font-weight: 800; animation: burst 1.6s cubic-bezier(.15,.7,.3,1) forwards; }
@keyframes burst { 0% { transform: translate(-50%, -50%) scale(.3); opacity: 1; } 100% { transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) rotate(var(--r)) scale(1); opacity: 0; } }
.thanks__card { position: relative; width: min(460px, 100%); text-align: center; color: var(--ice); background: linear-gradient(170deg, #17246A, var(--night-1)); border: 1px solid rgba(169,188,255,.2); border-radius: 28px; padding: 40px 32px 32px; box-shadow: 0 40px 120px -20px rgba(0,0,0,.7); animation: dlgIn .6s .1s var(--spring) both; }
.thanks__star { width: 78px; height: 78px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; font-size: 34px; color: #6A3A08; background: radial-gradient(circle at 35% 30%, #FFD48A, var(--amber) 45%, #D9781F); box-shadow: 0 0 0 10px rgba(255,182,72,.12), 0 0 60px rgba(255,182,72,.55); animation: pop .7s .2s var(--spring) both; }
.thanks h2 { font-family: var(--serif); font-weight: 500; font-size: 32px; color: #fff; margin-bottom: 18px; }
.thanks p { margin: 16px 0 24px; color: rgba(234,240,255,.75); font-size: 15px; }
.thanks--error .thanks__star { background: #2B3157; color: #fff; box-shadow: none; }

.vtoast { position: fixed; left: 50%; bottom: 26px; z-index: 90; transform: translate(-50%, 20px); max-width: calc(100vw - 32px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 14px; font-size: 14px; font-weight: 600; opacity: 0; transition: all .3s var(--ease); pointer-events: none; text-align: center; box-shadow: 0 14px 40px -12px rgba(7,11,31,.6); }
.vtoast.show { opacity: 1; transform: translate(-50%, 0); }

/* Responsiv */
@media (max-width: 900px) {
  .grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .vhead { padding: 110px 0 50px; }
  .vhead__cd { padding: 0; }
  .gtools { top: 66px; }
  .gsearch { flex: 1 1 100%; }
  .gtools .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -2px; padding: 2px; }
  .gtools .chips::-webkit-scrollbar { display: none; }
  .gtools .chip { white-space: nowrap; }
  .pc { padding: 20px 18px 18px; }
  .pc__foot .vbtn { flex: 1; justify-content: center; text-align: center; }
  .pc__foot .vbtn--vote { margin-left: 0; }
  .dlg { padding: 30px 22px 24px; border-radius: 22px; }
  .swap { grid-template-columns: 1fr; }
  .swap__arrow { transform: rotate(90deg); justify-self: center; }
}
@media (prefers-reduced-motion: reduce) {
  .vhead__sky { display: none; }
  .pc { opacity: 1; transform: none; animation: none; }
}
