:root {
  color-scheme: dark;
  --bg: #0b0e15;
  --panel: #151a25;
  --panel2: #1c2230;
  --panel3: #222937;
  --ink: #f6f2e9;
  --muted: #a6acb9;
  --border: #323a48;
  --highlight: #e6c589;
  --danger: #ee716b;
  --green: #78d6ad;
  --blue: #6a9ee8;
  --rep: #e1746c;
  --party: #e6c589;
  --radius: 16px;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  min-height: 100%;
  background: var(--bg);
}
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 80% -20%, #293043 0, transparent 45%), var(--bg);
  font-size: 15px;
  line-height: 1.56;
}
button {
  font: inherit;
  cursor: pointer;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--highlight);
  outline-offset: 3px;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
a {
  color: inherit;
  text-decoration: none;
}
.app-frame {
  max-width: 1140px;
  margin: auto;
  padding: 0 26px;
}
.masthead {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  border-bottom: 1px solid var(--border);
  min-height: 84px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 15px;
}
.logo-symbol {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 47px;
  height: 47px;
  background: var(--highlight);
  border-radius: 11px;
  color: #111621;
  font-family: Georgia, serif;
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -3px;
  transform: skew(-5deg);
}
.logo-dot {
  color: #a93034;
  font-size: 20px;
  margin: 0 4px;
}
.logo-text {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.18em;
}
.logo-sub {
  font-size: 10px;
  display: block;
  letter-spacing: 0.2em;
  color: var(--muted);
  font-weight: 700;
}
.masthead-right {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.14em;
  font-weight: 700;
  white-space: nowrap;
}
.live-dot {
  width: 7px;
  height: 7px;
  background: #c45954;
  border-radius: 50%;
  box-shadow: 0 0 0 4px #c4595422;
}
.text-button {
  background: transparent;
  border: 0;
  color: var(--highlight);
  font-size: 11px;
  margin-left: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.text-button:hover {
  text-decoration: underline;
}
main {
  min-height: calc(100dvh - 150px);
}
footer {
  padding: 22px 0 32px;
  border-top: 1px solid var(--border);
  color: #747e90;
  font-size: 10px;
  letter-spacing: 0.1em;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.intro {
  padding: 66px 0 24px;
}
.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--highlight);
  font-weight: 850;
  font-size: 11px;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}
.kicker:before {
  content: "";
  height: 2px;
  width: 20px;
  background: var(--highlight);
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-family:
    Georgia,
    Times New Roman,
    serif;
  font-size: clamp(53px, 8.5vw, 108px);
  font-weight: 900;
  line-height: 0.96;
  letter-spacing: -0.06em;
}
h1 em {
  color: var(--highlight);
  font-style: normal;
}
h2 {
  font-family: Georgia, serif;
  font-size: clamp(31px, 4vw, 51px);
  line-height: 1.1;
  letter-spacing: -0.037em;
  font-weight: 800;
}
h3 {
  font-size: 19px;
  line-height: 1.25;
}
.lead {
  font-size: 17px;
  line-height: 1.65;
  color: #cbd0d8;
  max-width: 650px;
  margin-top: 24px;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 13px;
}
.eyebrow {
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--muted);
}
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  padding: 33px 0 65px;
}
.party-card,
.panel {
  border: 1px solid var(--border);
  background: linear-gradient(152deg, #1b2130, #121721 80%);
  border-radius: var(--radius);
}
.party-card {
  padding: 27px;
  text-align: left;
  min-height: 218px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition:
    transform 0.18s,
    border-color 0.18s;
}
.party-card:hover {
  transform: translateY(-3px);
  border-color: var(--highlight);
}
.party-icon {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.party-mark {
  font-family: Georgia, serif;
  font-size: 47px;
  font-weight: 900;
  line-height: 1;
}
.party-arrow {
  font-size: 22px;
  color: var(--highlight);
}
.party-name {
  font-family: Georgia, serif;
  font-size: 27px;
  line-height: 1.1;
  margin-top: 17px;
}
.party-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}
.party-bottom strong {
  font-size: 20px;
  color: var(--ink);
}
.hero-note {
  margin-top: 28px;
  padding: 16px 20px;
  border-left: 3px solid var(--highlight);
  background: #e6c5890c;
  color: #bfc6cf;
  font-size: 13px;
}
.dashboard {
  padding: 30px 0 20px;
}
.topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 13px;
}
.topline strong {
  letter-spacing: 0.12em;
  font-size: 11px;
}
.turn {
  font-size: 12px;
  color: var(--muted);
}
.meter-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin: 0 0 10px;
}
.meter-large {
  font-family: Georgia, serif;
  font-size: 45px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}
.meter-desc {
  text-align: right;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.track {
  height: 13px;
  background: #b74b4b;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
}
.track .own {
  background: var(--party);
  height: 100%;
  transition: width 0.35s;
}
.track-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
}
.main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 278px;
  gap: 25px;
  padding: 27px 0 64px;
  align-items: start;
}
.main-card {
  border: 1px solid var(--border);
  border-radius: 17px;
  background: #161b26;
  overflow: hidden;
}
.story-banner {
  min-height: 114px;
  padding: 24px 27px;
  background:
    radial-gradient(circle at 90% 0%, #c03b3540, transparent 60%),
    linear-gradient(100deg, #2a2934, #1b1f29);
  border-bottom: 1px solid #363644;
  position: relative;
  overflow: hidden;
}
.story-banner:after {
  content: "CLASSIFIED";
  position: absolute;
  top: 9px;
  right: -17px;
  transform: rotate(18deg);
  border: 2px solid #e1816c4d;
  padding: 7px 15px;
  color: #e1816c55;
  font-weight: 900;
  letter-spacing: 0.12em;
  font-size: 17px;
  pointer-events: none;
}
.story-banner .category {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.11em;
  color: #ffb4a9;
  font-weight: 850;
  text-transform: uppercase;
}
.story-banner .category:before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff8c80;
}
.story-banner .banner-date {
  color: #b4a7ad;
  font-size: 12px;
  margin-top: 15px;
}
.story-body {
  padding: 28px 30px 32px;
}
.story-body h2 {
  margin: 8px 0 18px;
}
.body-text {
  line-height: 1.7;
  color: #d1d4dd;
  font-size: 15px;
}
.party-context {
  margin-top: 18px;
  border-left: 2px solid var(--party);
  padding: 10px 14px;
  color: #cdd2dc;
  font-size: 13px;
  background: #ffffff06;
}
.choice-heading {
  margin: 30px 0 13px;
  border-top: 1px solid var(--border);
  padding-top: 23px;
  font-weight: 900;
  font-size: 14px;
}
.choices {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.choice {
  display: flex;
  align-items: start;
  gap: 15px;
  text-align: left;
  width: 100%;
  border: 1px solid #394150;
  background: #202633;
  padding: 16px;
  border-radius: 10px;
  color: var(--ink);
  transition:
    background 0.16s,
    border-color 0.16s;
}
.choice:hover {
  border-color: var(--highlight);
  background: #2b303c;
}
.choice.selected {
  border-color: var(--highlight);
  background: #38372e;
  box-shadow: inset 0 0 0 1px #e6c58966;
}
.choice-letter {
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  background: #394151;
  border-radius: 8px;
  flex-shrink: 0;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}
.choice.selected .choice-letter {
  background: var(--highlight);
  color: #1c1f24;
}
.choice-title {
  font-size: 14px;
  font-weight: 850;
  display: block;
}
.choice-desc {
  font-size: 13px;
  color: #abb3c2;
  display: block;
  margin-top: 4px;
  line-height: 1.5;
}
.primary {
  width: 100%;
  padding: 15px 22px;
  margin-top: 20px;
  border: 0;
  border-radius: 9px;
  font-weight: 900;
  background: var(--highlight);
  color: #151923;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.primary:hover {
  background: #f5d49c;
}
.primary .arrow {
  font-size: 20px;
}
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 17px;
}
.sidebar .panel {
  padding: 19px;
}
.panel-title {
  font-weight: 850;
  letter-spacing: 0.13em;
  color: var(--muted);
  font-size: 10px;
  margin-bottom: 19px;
  text-transform: uppercase;
}
.stat {
  margin: 16px 0;
}
.stat-head {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #cfd4dc;
  gap: 10px;
}
.stat-head strong {
  color: var(--ink);
}
.mini-track {
  margin-top: 8px;
  height: 5px;
  border-radius: 5px;
  overflow: hidden;
  background: #3b4452;
}
.mini-track span {
  height: 100%;
  display: block;
  border-radius: 5px;
  background: var(--highlight);
}
.sidebar-note {
  font-size: 12px;
  line-height: 1.65;
  color: var(--muted);
}
.warning-icon {
  color: var(--highlight);
  margin-right: 4px;
}
.history-item {
  display: flex;
  align-items: start;
  gap: 9px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  font-size: 12px;
}
.history-item:first-of-type {
  border: 0;
  padding-top: 0;
}
.history-n {
  color: var(--highlight);
  font-weight: 800;
  flex-shrink: 0;
}
.history-name {
  line-height: 1.4;
  color: #d0d4db;
}
.history-effect {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 2px;
}
.results-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 17px;
}
.outcome-label {
  display: inline-block;
  border-radius: 100px;
  background: #5a3d36;
  color: #ffd2b7;
  border: 1px solid #bd7666;
  padding: 5px 11px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
}
.outcome-label.positive {
  background: #21443b;
  color: #adf1d3;
  border-color: #43755e;
}
.outcome-label.negative {
  background: #592f36;
  color: #ffb2aa;
  border-color: #8d4a54;
}
.outcome-score {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-top: 24px;
  padding: 20px;
  background: #222a35;
  border-radius: 12px;
}
.delta {
  font-size: 37px;
  font-weight: 850;
  font-family: Georgia, serif;
  line-height: 1;
}
.delta.up {
  color: var(--green);
}
.delta.down {
  color: var(--danger);
}
.delta.neutral {
  color: var(--highlight);
}
.score-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.score-now {
  font-size: 20px;
  font-weight: 850;
}
.after-effects {
  background: #e6c5890b;
  border: 1px dashed #e6c58968;
  border-radius: 10px;
  padding: 16px 19px;
  margin-top: 19px;
  color: #ebd7ac;
  font-size: 13px;
}
.lineage {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  padding: 15px 0;
  border-top: 1px solid var(--border);
  margin-top: 18px;
}
.small-caps {
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 900;
}
.recap {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.pill {
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 10px;
  background: #252b38;
  color: #cbd1dc;
  font-size: 11px;
}
.ending {
  max-width: 780px;
  margin: 60px auto 75px;
  text-align: center;
}
.ending h2 {
  font-size: clamp(42px, 6vw, 77px);
  margin: 15px 0;
}
.ending .lead {
  margin: 20px auto 30px;
}
.ending .panel {
  text-align: left;
  padding: 22px;
  margin: 25px auto;
}
.ending .primary {
  max-width: 380px;
  margin: 24px auto 0;
}
.ending-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.ending-table td {
  padding: 10px;
  border-bottom: 1px solid var(--border);
}
.ending-table td:last-child {
  text-align: right;
  font-weight: 900;
}
.empty {
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
}
.sep {
  margin: 17px 0;
  border: 0;
  border-top: 1px solid var(--border);
}
@media (max-width: 780px) {
  .app-frame {
    padding: 0 17px;
  }
  .masthead {
    min-height: 72px;
  }
  .logo-text {
    font-size: 12px;
  }
  .masthead-right > span:nth-child(2) {
    display: none;
  }
  .intro {
    padding: 47px 0 14px;
  }
  .intro-grid {
    gap: 12px;
    padding: 28px 0 47px;
  }
  .main-grid {
    grid-template-columns: 1fr;
  }
  .sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .sidebar .panel:last-child {
    grid-column: 1/-1;
  }
  .main-grid {
    gap: 16px;
  }
  .story-body {
    padding: 22px;
  }
  .story-banner {
    padding: 21px;
  }
  .ending {
    margin: 45px auto 60px;
  }
}
@media (max-width: 500px) {
  .logo-symbol {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  .logo-text {
    font-size: 10px;
  }
  .logo-sub {
    font-size: 8px;
  }
  .text-button {
    margin-left: 1px;
  }
  .intro-grid {
    grid-template-columns: 1fr 1fr;
  }
  .party-card {
    min-height: 190px;
    padding: 17px;
  }
  .party-name {
    font-size: 21px;
  }
  .party-mark {
    font-size: 34px;
  }
  .party-bottom {
    align-items: end;
  }
  .party-bottom strong {
    font-size: 18px;
  }
  .main-grid {
    padding-top: 20px;
  }
  .sidebar {
    grid-template-columns: 1fr;
  }
  .sidebar .panel:last-child {
    grid-column: auto;
  }
  .meter-large {
    font-size: 38px;
  }
  .story-body {
    padding: 20px 16px;
  }
  .story-banner {
    padding: 20px 17px;
  }
  .choice {
    padding: 13px;
    gap: 10px;
  }
  .choice-letter {
    width: 29px;
    height: 29px;
  }
  .results-top {
    flex-wrap: wrap;
  }
  .outcome-score {
    padding: 15px;
  }
}
@media (max-width: 500px) {
  .party-bottom {
    gap: 5px;
  }
  .party-bottom strong {
    white-space: nowrap;
    font-size: 16px;
  }
  .party-bottom span {
    font-size: 10px;
  }
  .masthead-right .live-dot {
    display: none;
  }
}

/* ── v0.2: Parteikarten ─────────────────────────────────────────── */
.party-card {
  min-width: 0;
}
.party-tagline {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

/* ── v0.2: Wehende US-Flagge im Header ──────────────────────────── */
.flag {
  --flag-w: 40px;
  --flag-h: 21px;
  --flag-img: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 190 100' preserveAspectRatio='none'%3E%3Crect width='190' height='100' fill='%23fff'/%3E%3Crect y='0.00' width='190' height='7.69' fill='%23b22234'/%3E%3Crect y='15.38' width='190' height='7.69' fill='%23b22234'/%3E%3Crect y='30.77' width='190' height='7.69' fill='%23b22234'/%3E%3Crect y='46.15' width='190' height='7.69' fill='%23b22234'/%3E%3Crect y='61.54' width='190' height='7.69' fill='%23b22234'/%3E%3Crect y='76.92' width='190' height='7.69' fill='%23b22234'/%3E%3Crect y='92.31' width='190' height='7.69' fill='%23b22234'/%3E%3Crect width='76' height='53.85' fill='%233c3b6e'/%3E%3Cg fill='%23fff'%3E%3Ccircle cx='6.3' cy='5.4' r='1.9'/%3E%3Ccircle cx='19.0' cy='5.4' r='1.9'/%3E%3Ccircle cx='31.7' cy='5.4' r='1.9'/%3E%3Ccircle cx='44.3' cy='5.4' r='1.9'/%3E%3Ccircle cx='57.0' cy='5.4' r='1.9'/%3E%3Ccircle cx='69.7' cy='5.4' r='1.9'/%3E%3Ccircle cx='12.7' cy='10.8' r='1.9'/%3E%3Ccircle cx='25.3' cy='10.8' r='1.9'/%3E%3Ccircle cx='38.0' cy='10.8' r='1.9'/%3E%3Ccircle cx='50.7' cy='10.8' r='1.9'/%3E%3Ccircle cx='63.3' cy='10.8' r='1.9'/%3E%3Ccircle cx='6.3' cy='16.2' r='1.9'/%3E%3Ccircle cx='19.0' cy='16.2' r='1.9'/%3E%3Ccircle cx='31.7' cy='16.2' r='1.9'/%3E%3Ccircle cx='44.3' cy='16.2' r='1.9'/%3E%3Ccircle cx='57.0' cy='16.2' r='1.9'/%3E%3Ccircle cx='69.7' cy='16.2' r='1.9'/%3E%3Ccircle cx='12.7' cy='21.5' r='1.9'/%3E%3Ccircle cx='25.3' cy='21.5' r='1.9'/%3E%3Ccircle cx='38.0' cy='21.5' r='1.9'/%3E%3Ccircle cx='50.7' cy='21.5' r='1.9'/%3E%3Ccircle cx='63.3' cy='21.5' r='1.9'/%3E%3Ccircle cx='6.3' cy='26.9' r='1.9'/%3E%3Ccircle cx='19.0' cy='26.9' r='1.9'/%3E%3Ccircle cx='31.7' cy='26.9' r='1.9'/%3E%3Ccircle cx='44.3' cy='26.9' r='1.9'/%3E%3Ccircle cx='57.0' cy='26.9' r='1.9'/%3E%3Ccircle cx='69.7' cy='26.9' r='1.9'/%3E%3Ccircle cx='12.7' cy='32.3' r='1.9'/%3E%3Ccircle cx='25.3' cy='32.3' r='1.9'/%3E%3Ccircle cx='38.0' cy='32.3' r='1.9'/%3E%3Ccircle cx='50.7' cy='32.3' r='1.9'/%3E%3Ccircle cx='63.3' cy='32.3' r='1.9'/%3E%3Ccircle cx='6.3' cy='37.7' r='1.9'/%3E%3Ccircle cx='19.0' cy='37.7' r='1.9'/%3E%3Ccircle cx='31.7' cy='37.7' r='1.9'/%3E%3Ccircle cx='44.3' cy='37.7' r='1.9'/%3E%3Ccircle cx='57.0' cy='37.7' r='1.9'/%3E%3Ccircle cx='69.7' cy='37.7' r='1.9'/%3E%3Ccircle cx='12.7' cy='43.1' r='1.9'/%3E%3Ccircle cx='25.3' cy='43.1' r='1.9'/%3E%3Ccircle cx='38.0' cy='43.1' r='1.9'/%3E%3Ccircle cx='50.7' cy='43.1' r='1.9'/%3E%3Ccircle cx='63.3' cy='43.1' r='1.9'/%3E%3Ccircle cx='6.3' cy='48.5' r='1.9'/%3E%3Ccircle cx='19.0' cy='48.5' r='1.9'/%3E%3Ccircle cx='31.7' cy='48.5' r='1.9'/%3E%3Ccircle cx='44.3' cy='48.5' r='1.9'/%3E%3Ccircle cx='57.0' cy='48.5' r='1.9'/%3E%3Ccircle cx='69.7' cy='48.5' r='1.9'/%3E%3C/g%3E%3C/svg%3E");
  position: relative;
  display: inline-flex;
  align-items: center;
  height: calc(var(--flag-h) + 10px);
  padding-left: 3px;
  flex-shrink: 0;
}
.flag::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: -4px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(#e6c589, #8b8f99);
}
.flag i {
  display: block;
  width: calc(var(--flag-w) / 20);
  height: var(--flag-h);
  background-image: var(--flag-img);
  background-size: var(--flag-w) var(--flag-h);
  background-position: calc(var(--i) * var(--flag-w) / -20) 0;
  animation: flag-wave 1.8s ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.09s);
}
.flag i:first-child {
  border-radius: 1px 0 0 1px;
}
@keyframes flag-wave {
  0%,
  100% {
    transform: translateY(calc(var(--a) * -2px));
    filter: brightness(1.08);
  }
  50% {
    transform: translateY(calc(var(--a) * 2px));
    filter: brightness(0.78);
  }
}
@media (prefers-reduced-motion: reduce) {
  .flag i {
    animation: none;
  }
}
@media (max-width: 500px) {
  .flag {
    --flag-w: 30px;
    --flag-h: 16px;
  }
}

/* ── v0.2: Animierte Wahlergebnisse ─────────────────────────────── */
.verdict {
  transition: color 0.4s;
}
.verdict.win {
  color: var(--green);
}
.verdict.loss {
  color: var(--danger);
}
.verdict.tie {
  color: var(--highlight);
}
.count-status {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
}
#counted {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.results {
  margin: 34px auto 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.result-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}
.result-name {
  font-weight: 850;
  font-size: 15px;
}
.result-mark {
  font-family: Georgia, serif;
  font-weight: 900;
  font-size: 20px;
  margin-right: 9px;
}
.result-pct {
  font-family: Georgia, serif;
  font-size: 30px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  opacity: 0.35;
  transition: opacity 0.5s;
}
.ending.done .result-pct {
  opacity: 1;
}
.result-track {
  position: relative;
  height: 26px;
  border-radius: 7px;
  background: #222937;
  overflow: hidden;
}
.result-bar {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 7px;
}
.majority {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(50 / 70 * 100%);
  border-left: 2px dashed #f6f2e9aa;
}
.majority-label {
  margin-left: calc(50 / 70 * 100%);
  transform: translateX(-50%);
  width: max-content;
  margin-top: -10px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.14em;
  font-weight: 800;
}
.reveal {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition:
    opacity 0.6s 0.3s,
    transform 0.6s 0.3s;
}
.ending.done .reveal {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.party-card {
  justify-content: flex-start;
  gap: 17px;
}
.party-card .party-name {
  margin-top: 0;
}
.party-card .party-bottom {
  margin-top: auto;
}
@media (max-width: 500px) {
  .party-tagline {
    font-size: 12px;
  }
}

/* ── v0.3: Flagge rechts neben dem Schriftzug ───────────────────── */
.logo .flag {
  margin-left: -3px;
}

/* ── v0.3: Parteigröße ──────────────────────────────────────────── */
.party-grandee {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}
.party-grandee strong {
  color: var(--ink);
}
.grandee {
  border-color: color-mix(in srgb, var(--party) 45%, var(--border));
}
.grandee .panel-title {
  margin-bottom: 14px;
}
.grandee-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.grandee-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: var(--party);
  color: #111621;
  font-family: Georgia, serif;
  font-weight: 900;
  font-size: 19px;
  box-shadow: 0 0 0 3px #ffffff14;
}
.grandee-name {
  font-family: Georgia, serif;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
}
.grandee-role {
  font-size: 11px;
  color: var(--muted);
}
.grandee-line {
  margin-top: 13px;
  font-size: 13px;
  line-height: 1.55;
  color: #d6dae2;
  font-style: italic;
}
.grandee-verdict {
  margin-top: 26px;
  font-family: Georgia, serif;
  font-size: 19px;
  font-style: italic;
}

/* ── v0.3: Wählergruppen ────────────────────────────────────────── */
.groups-block {
  margin-top: 20px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #1b2130;
}
.groups-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.group-row {
  margin-top: 12px;
}
.group-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  color: #d1d5dd;
}
.group-head strong {
  color: var(--ink);
}
.group-delta {
  display: inline-block;
  min-width: 42px;
  text-align: right;
  font-size: 12px;
  color: var(--muted);
}
.group-delta.up {
  color: var(--green);
}
.group-delta.down {
  color: var(--danger);
}
.group-track {
  margin-top: 6px;
  height: 6px;
  border-radius: 6px;
  background: #323a48;
  overflow: hidden;
}
.group-track span {
  display: block;
  height: 100%;
  border-radius: 6px;
  background: var(--green);
}
.group-track span.neg {
  background: var(--danger);
}
