/* SchalkeTOTAL – Umfragen (/fanzone/umfragen/) und Seitenleisten-Umfrage. Königsblaue Seite, weiße Umfrage-Karte,
 * weitere Umfragen auf Tiefblau. Eckig, ohne Kürzungen. */

.st-poll-page { --pl-ink: #0b1f3a; --pl-soft: #5b6b82; --pl-line: #d9e2ee; --pl-bar: #e3edfa; --pl-hover: #eef3fb; }

/* ---------- Kopf ---------- */
.st-poll-head { padding: var(--st-page-top) var(--st-gutter) 16px; }
.st-poll-back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 8px; font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--st-text-soft); }
.st-poll-back::before { content: "‹"; font-size: 16px; letter-spacing: 0; }
.st-poll-back:hover { color: #fff; }
.st-poll-head h1 { margin: 0; font-size: clamp(32px, 9vw, 48px); font-weight: 800; line-height: 1; letter-spacing: -.01em; text-transform: uppercase; }
.st-poll-lead { max-width: 620px; margin: 10px 0 0; font-size: 15px; line-height: 1.45; color: var(--st-text-soft); }

.st-poll { padding: 0 var(--st-gutter); }
.st-poll-loading { margin: 0; padding: 48px 0; text-align: center; color: var(--st-text-soft); }

/* ---------- Leer / Danke ---------- */
.st-poll-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 28px 22px; background: var(--st-blue-deep); }
.st-poll-empty b { font-size: 21px; font-weight: 800; line-height: 1.2; letter-spacing: -.01em; }
.st-poll-empty p { max-width: 520px; margin: 0; font-size: 15px; line-height: 1.45; color: var(--st-text-soft); }
.st-poll-btn { display: inline-flex; align-items: center; margin-top: 10px; padding: 12px 18px; background: #fff; color: var(--st-blue) !important; font-size: 14px; font-weight: 700; }
.st-poll-btn:hover { background: #e8f0fb; }

/* ---------- Fortschritt ---------- */
.st-poll-progress { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.st-poll-progress:empty { display: none; }
.st-poll-progress p { flex: none; margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--st-text-soft); }
.st-poll-progress span { display: flex; flex: 1; gap: 4px; }
.st-poll-progress i { flex: 1; height: 4px; background: rgba(255, 255, 255, .22); }
.st-poll-progress i.is-on { background: #fff; }

/* ---------- Karte ---------- */
.st-poll-card { background: #fff; color: var(--pl-ink); }
.st-poll-hero { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(135deg, #1663d6 0%, #004d9d 50%, #002d60 100%); }
.st-poll-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.st-poll-shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 25%, rgba(0, 12, 35, .85)); }
.st-poll-hero.is-empty .st-poll-shade { background: none; }
.st-poll-hero-text { position: absolute; left: 16px; right: 16px; bottom: 14px; color: #fff; }
.st-poll-status { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.st-poll-status i { width: 4px; height: 13px; background: #fff; }
.st-poll-badge { padding: 3px 7px; background: #fff; color: var(--st-blue); font-size: 10px; letter-spacing: .1em; }
.st-poll-hero-text h2 { margin: 8px 0 0; font-size: 21px; font-weight: 800; line-height: 1.18; letter-spacing: -.01em; color: #fff; }

.st-poll-right { display: flex; flex-direction: column; padding: 16px; }
.st-poll-opts { display: grid; gap: 8px; }
.st-poll-opt { display: flex; align-items: center; gap: 13px; width: 100%; min-height: 56px; padding: 12px 14px; border: 1px solid var(--pl-line); background: #fff; color: var(--pl-ink) !important; text-align: left; cursor: pointer; transition: border-color .12s, background .12s; }
.st-poll-opt i { flex: none; width: 22px; height: 22px; border: 2px solid var(--pl-line); }
.st-poll-opt span { flex: 1; font-size: 16px; font-weight: 600; line-height: 1.25; }
.st-poll-opt kbd { display: none; }
.st-poll-opt:hover, .st-poll-opt:focus-visible { border-color: var(--st-blue); background: var(--pl-hover); outline: 0; }
.st-poll-opt:hover i { border-color: var(--st-blue); }

.st-poll-res { position: relative; display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 10px 14px; overflow: hidden; border: 1px solid var(--pl-line); background: #fff; }
.st-poll-res.is-own { border: 2px solid var(--st-blue); }
.st-poll-res-bar { position: absolute; inset: 0 auto 0 0; background: var(--pl-bar); transition: width .35s ease-out; }
.st-poll-res.is-own .st-poll-res-bar { background: rgba(0, 77, 157, .16); }
.st-poll-check { position: relative; display: grid; place-items: center; flex: none; width: 22px; height: 22px; background: var(--st-blue); color: #fff; }
.st-poll-res-text { position: relative; flex: 1; font-size: 16px; font-weight: 600; line-height: 1.25; }
.st-poll-res.is-own .st-poll-res-text { font-weight: 700; }
.st-poll-res-num { position: relative; display: flex; flex-direction: column; align-items: flex-end; flex: none; }
.st-poll-res-num b { font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.st-poll-res.is-own .st-poll-res-num b { color: var(--st-blue); }
.st-poll-res-num small { font-size: 12px; color: var(--pl-soft); }

.st-poll-meta { display: flex; align-items: center; gap: 12px; min-height: 36px; margin: 6px 0 0; }
.st-poll-meta span { flex: 1; font-size: 13px; color: var(--pl-soft); }
.st-poll-meta button { padding: 8px 0; border: 0; background: none; color: var(--st-blue) !important; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }

.st-poll-source { display: flex; align-items: center; gap: 12px; margin-top: 10px; padding: 10px; border: 1px solid var(--pl-line); color: var(--pl-ink) !important; }
.st-poll-source:hover { background: var(--pl-hover); }
.st-poll-source-img { display: grid; place-items: center; flex: none; width: 56px; height: 56px; overflow: hidden; background: #e8eef7; color: var(--pl-soft); }
.st-poll-source-img img { width: 100%; height: 100%; object-fit: cover; }
.st-poll-source-text { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.st-poll-source-text small { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--st-blue); }
.st-poll-source-text b { font-size: 14px; font-weight: 700; line-height: 1.3; }
.st-poll-source > svg { flex: none; color: var(--pl-soft); }

.st-poll-bar { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.st-poll-keys { display: none; }
.st-poll-next { display: flex; align-items: center; justify-content: center; gap: 9px; flex: 1; min-height: 50px; padding: 0 22px; border: 0; background: var(--st-blue); color: #fff !important; font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: background .15s; }
.st-poll-next:hover { background: var(--st-blue-deeper); }

/* ---------- Alle Umfragen ---------- */
.st-poll-more:empty { display: none; }
.st-poll-more { margin-top: 28px; }
.st-poll-more-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-bottom: 12px; }
.st-poll-more-head h2 { font-size: 13px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.st-poll-more-head span { font-size: 13px; color: var(--st-text-soft); }
.st-poll-tiles { display: grid; gap: 8px; }
.st-poll-tile { display: grid; grid-template-columns: 96px minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 14px; width: 100%; padding: 10px; border: 0; background: var(--st-blue-deep); color: #fff !important; text-align: left; cursor: pointer; transition: background .15s; }
.st-poll-tile:hover { background: #00428c; }
.st-poll-tile-img { position: relative; grid-row: 1 / 3; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: linear-gradient(135deg, #1663d6 0%, #004d9d 50%, #002d60 100%); }
.st-poll-tile-img img { width: 100%; height: 100%; object-fit: cover; }
.st-poll-tile-img em { position: absolute; left: 6px; top: 6px; padding: 3px 6px; background: #fff; color: var(--st-blue); font-size: 10px; font-style: normal; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.st-poll-tile-img em.is-done { background: #1db954; color: #062b12; }
.st-poll-tile-img em.is-end { background: var(--st-blue-deeper); color: #fff; }
.st-poll-tile b { font-size: 15px; font-weight: 700; line-height: 1.25; }
.st-poll-tile small { margin-top: 6px; font-size: 12.5px; line-height: 1.35; color: var(--st-text-soft); }

/* ---------- Hinweis ---------- */
.st-poll-toast { position: fixed; left: 50%; bottom: calc(var(--st-appnav-h, 64px) + 16px); z-index: 120; width: max-content; max-width: calc(100% - 32px); margin: 0; padding: 12px 16px; background: #fff; color: #0b1f3a; font-size: 14.5px; font-weight: 600; box-shadow: 0 8px 30px rgba(0, 12, 35, .35); transform: translateX(-50%); }
.st-poll-toast[hidden] { display: none; }

/* ---------- Handy: Karte randlos ---------- */
@media (max-width: 767px) {
	.st-poll { padding: 0; }
	.st-poll-progress, .st-poll-more-head { padding: 0 var(--st-gutter); }
	.st-poll-tiles { padding: 0 var(--st-gutter); }
}

/* ---------- Computer ---------- */
@media (min-width: 1024px) {
	.st-poll-head { padding-bottom: 22px; }
	.st-poll-card { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
	.st-poll-hero { aspect-ratio: auto; min-height: 460px; }
	.st-poll-hero-text { left: 36px; right: 36px; bottom: 32px; }
	.st-poll-hero-text h2 { margin-top: 12px; font-size: 38px; line-height: 1.08; letter-spacing: -.02em; }
	.st-poll-right { padding: 34px; }
	.st-poll-opts { gap: 10px; margin-top: auto; }
	.st-poll-opt, .st-poll-res { min-height: 64px; padding: 14px 18px; }
	.st-poll-opt span, .st-poll-res-text { font-size: 17.5px; }
	.st-poll-opt kbd { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border: 1px solid var(--pl-line); color: var(--pl-soft); font: 700 12px/1 var(--st-font); }
	.st-poll-opt:hover kbd { border-color: var(--st-blue); color: var(--st-blue); }
	.st-poll-res-num b { font-size: 20px; }
	.st-poll-bar { margin-top: auto; padding-top: 22px; }
	.st-poll-keys { display: block; margin-right: auto; font-size: 12.5px; color: var(--pl-soft); }
	.st-poll-keys kbd { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 4px; border: 1px solid var(--pl-line); font: 700 11px/1 var(--st-font); }
	.st-poll-next { flex: none; }
	.st-poll-more { margin-top: 44px; }
	.st-poll-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
	.st-poll-tile { display: flex; flex-direction: column; padding: 0 0 16px; }
	.st-poll-tile-img { aspect-ratio: 16 / 9; }
	.st-poll-tile-img em { left: 10px; top: 10px; }
	.st-poll-tile b { margin: 14px 16px 0; font-size: 16px; }
	.st-poll-tile small { margin: 8px 16px 0; }
	.st-poll-toast { bottom: 32px; }
}

/* ---------- Seitenleiste im Artikel (weiße Insel) ---------- */
.st-poll-side { padding: 18px; background: #fff; color: #0b1f3a; }
.st-poll-side[hidden] { display: none; }
.st-poll-inarticle { margin: 20px 0 28px; } /* im Artikel unter den Themen (single.php) */
.st-poll-side-title { margin: 0 0 12px; font-size: 13px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--st-blue); }
.st-poll-side-img { display: block; aspect-ratio: 16 / 9; margin: 0 0 12px; overflow: hidden; background: #e8eef7; }
.st-poll-side-img img { width: 100%; height: 100%; object-fit: cover; }
.st-poll-side-q { margin: 0 0 12px; font-size: 17px; font-weight: 800; line-height: 1.25; color: #0b1f3a !important; }
.st-poll-side-opts { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.st-poll-side-opts button { display: block; width: 100%; padding: 11px 12px; border: 1px solid #d9e2ee; background: #fff; color: #0b1f3a !important; font-size: 15px; font-weight: 600; line-height: 1.25; text-align: left; cursor: pointer; }
.st-poll-side-opts button:hover { border-color: var(--st-blue); background: #eef3fb; }
.st-poll-side-opts li.is-res { position: relative; display: flex; align-items: center; gap: 10px; padding: 11px 12px; overflow: hidden; border: 1px solid #d9e2ee; }
.st-poll-side-opts li.is-mine { border: 2px solid var(--st-blue); }
.st-poll-side-bar { position: absolute; inset: 0 auto 0 0; background: #e3edfa; transition: width .35s ease-out; }
.st-poll-side-opts li.is-mine .st-poll-side-bar { background: rgba(0, 77, 157, .16); }
.st-poll-side-t { position: relative; flex: 1; font-size: 15px; font-weight: 600; line-height: 1.25; }
.st-poll-side-t i { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-left: 4px; background: var(--st-blue); color: #fff; vertical-align: -3px; }
.st-poll-side-opts li b { position: relative; flex: none; font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }
.st-poll-side-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin: 12px 0 0; font-size: 13px; color: #5b6b82 !important; }
.st-poll-side-foot a, .st-poll-side-foot button { padding: 0; border: 0; background: none; color: var(--st-blue) !important; font-size: 13px; font-weight: 700; cursor: pointer; }
.st-poll-side-foot a::after, .st-poll-side-foot button::after { content: " →"; }
