:root {
  --hamburg-red: #a91524;
  --hamburg-red-bright: #c8102e;
  --marine: #102033;
  --marine-2: #14283d;
  --anthracite: #1f2933;
  --brick: #8f3b2d;
  --water: #5d8799;
  --elb-gray: #e8ecef;
  --warmwhite: #faf7f2;
  --paper: #f6f2ea;
  --white: #ffffff;
  --ink: #1f2933;
  --muted: #64717d;
  --muted-2: #7a858f;
  --line: #d9e0e4;
  --soft-line: #edf0f2;
  --success: #4f725c;
  --warning: #9b6b29;
  --danger: #8f3b2d;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 40px;
  --space-9: 52px;
  --space-10: 64px;
  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 10px;
  --shadow-soft: 0 10px 28px rgba(16, 32, 51, 0.08);
  --shadow-card: 0 16px 40px rgba(16, 32, 51, 0.1);
  --shadow-strong: 0 24px 60px rgba(16, 32, 51, 0.14);
  --focus: 0 0 0 4px rgba(169, 21, 36, 0.18);
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  min-width: 0;
  margin: 0;
  overflow-x: hidden;
  background: var(--warmwhite);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

button,
input,
select,
textarea {
  min-width: 0;
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.54;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a,
span,
strong,
dd,
dt {
  overflow-wrap: anywhere;
}

h1,
h2,
h3,
p,
dl,
dd {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--ink);
  letter-spacing: 0;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

h1 {
  max-width: 780px;
  margin-bottom: var(--space-4);
  color: var(--white);
  font-size: clamp(2.25rem, 4.7vw, 4.4rem);
  font-weight: 780;
}

h2 {
  margin-bottom: var(--space-3);
  font-size: clamp(1.65rem, 2.6vw, 2.65rem);
  font-weight: 750;
}

h3 {
  margin-bottom: var(--space-2);
  font-size: 1.08rem;
  font-weight: 760;
}

p {
  color: var(--muted);
  overflow-wrap: anywhere;
}

ul {
  margin: 0;
  padding: 0;
}

li {
  list-style: none;
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

::selection {
  background: rgba(169, 21, 36, 0.18);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(250, 247, 242, 0.12);
  background: rgba(16, 32, 51, 0.96);
  backdrop-filter: blur(14px);
}

.nav-shell {
  display: flex;
  width: min(1220px, calc(100% - 32px));
  min-width: 0;
  height: 62px;
  margin-inline: auto;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  color: var(--white);
}

.brand {
  display: inline-flex;
  min-width: max-content;
  align-items: center;
  gap: 10px;
  font-weight: 780;
  letter-spacing: 0;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(250, 247, 242, 0.34);
  border-radius: var(--radius-sm);
  background: var(--hamburg-red);
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 800;
}

.brand-mark::after {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(250, 247, 242, 0.95);
  content: "";
}

.nav-links {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: var(--space-1);
}

.nav-links a {
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  font-weight: 640;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.07);
  color: var(--white);
}

.nav-cta,
.button,
.load-question {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 9px 14px;
  font-weight: 760;
  letter-spacing: 0;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.nav-cta {
  border-color: rgba(200, 16, 46, 0.62);
  background: var(--hamburg-red);
  color: var(--white);
  font-size: 0.9rem;
}

.button-primary {
  background: var(--hamburg-red);
  color: var(--white);
  box-shadow: 0 12px 26px rgba(169, 21, 36, 0.22);
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.32);
  background: transparent;
  color: var(--white);
}

.question-card .button-secondary,
.create-section .button-secondary,
.verification-dialog .button-secondary {
  border-color: var(--line);
  color: var(--ink);
}

.button.wide {
  width: 100%;
}

.nav-cta:hover,
.button:hover,
.load-question:hover {
  transform: translateY(-1px);
}

.button-primary:hover,
.nav-cta:hover {
  background: #951321;
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-sm);
  background: transparent;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: var(--white);
  transition: transform 160ms ease, opacity 160ms ease;
}

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--marine) 0%, var(--marine-2) 58%, #1b2f43 100%);
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(250, 247, 242, 0.28), transparent);
  content: "";
}

.hero-content {
  position: relative;
  display: grid;
  min-height: 520px;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
  padding: clamp(58px, 8vw, 88px) 0 clamp(44px, 7vw, 72px);
}

.hero-copy-block {
  max-width: 760px;
}

.hero-copy {
  max-width: 720px;
  margin-bottom: var(--space-6);
  color: rgba(250, 247, 242, 0.82);
  font-size: clamp(1.02rem, 1.5vw, 1.22rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.hero-brief {
  display: flex;
  max-width: 760px;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.hero-brief span {
  border: 1px solid rgba(250, 247, 242, 0.16);
  border-radius: 999px;
  padding: 7px 10px;
  color: rgba(250, 247, 242, 0.76);
  font-size: 0.86rem;
  font-weight: 650;
}

.hero-briefing {
  width: 100%;
  max-width: 500px;
  justify-self: end;
  border: 1px solid rgba(250, 247, 242, 0.16);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 28px);
  background: rgba(250, 247, 242, 0.96);
  box-shadow: var(--shadow-strong);
}

.briefing-head,
.card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.briefing-head {
  margin-bottom: var(--space-4);
}

.briefing-head span,
.mini-label,
.eyebrow {
  color: var(--hamburg-red);
  font-size: 0.76rem;
  font-weight: 820;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.briefing-head strong {
  border-radius: 999px;
  padding: 6px 9px;
  background: rgba(169, 21, 36, 0.1);
  color: var(--hamburg-red);
  font-size: 0.78rem;
}

.briefing-list {
  display: grid;
  overflow: hidden;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--soft-line);
  border-radius: var(--radius-sm);
  margin: 0;
  background: var(--white);
}

.briefing-list div {
  min-width: 0;
  padding: var(--space-3);
}

.briefing-list div:nth-child(2n) {
  border-left: 1px solid var(--soft-line);
}

.briefing-list div:nth-child(n + 3) {
  border-top: 1px solid var(--soft-line);
}

.briefing-list dt,
.mini-facts dt,
.verification-summary dt,
.explain-card dt {
  color: var(--muted-2);
  font-size: 0.74rem;
  font-weight: 780;
  text-transform: uppercase;
}

.briefing-list dd,
.mini-facts dd,
.verification-summary dd,
.explain-card dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-weight: 760;
}

.opinion-meter {
  display: flex;
  overflow: hidden;
  height: 10px;
  margin: var(--space-4) 0 var(--space-3);
  border-radius: 999px;
  background: var(--elb-gray);
}

.preview-bar.agree,
.bar-fill.agree,
.legend-dot.agree {
  background: var(--hamburg-red);
}

.preview-bar.reject,
.bar-fill.reject,
.legend-dot.reject {
  background: var(--marine);
}

.preview-bar.abstain,
.bar-fill.abstain,
.legend-dot.abstain {
  background: var(--water);
}

.preview-bar.agree {
  width: 51%;
}

.preview-bar.reject {
  width: 42%;
}

.preview-bar.abstain {
  width: 7%;
}

.hero-briefing p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.section,
.section-rise {
  padding: var(--space-9) 0;
}

#districts,
#questions,
#question,
#verification,
#process,
#create,
#legal {
  scroll-margin-top: 78px;
}

.section-rise {
  background: var(--warmwhite);
}

.district-picker {
  background: var(--warmwhite);
}

.question-section {
  background: #fbfaf6;
}

.section-heading {
  max-width: 780px;
  margin-bottom: var(--space-6);
}

.section-heading.horizontal {
  display: flex;
  max-width: none;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-6);
}

.section-heading.horizontal > p {
  max-width: 480px;
}

.eyebrow {
  margin-bottom: var(--space-2);
}

.picker-panel,
.question-card,
.results-card,
.profile-card,
.mini-question-card,
.step-card,
.verification-card,
.explain-card,
.create-form,
.legal-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.picker-panel {
  padding: var(--space-6);
  background: rgba(255, 255, 255, 0.86);
}

.search-row {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(230px, 0.7fr);
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.field,
.confirmation-field {
  display: grid;
  gap: var(--space-2);
}

.field span,
.visibility legend,
.confirmation-field span {
  color: var(--anthracite);
  font-size: 0.86rem;
  font-weight: 740;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cfd8df;
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  font-size: 16px;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

input,
select {
  height: 46px;
  padding: 0 13px;
}

textarea {
  min-height: 106px;
  padding: 13px;
  resize: vertical;
}

input:hover,
select:hover,
textarea:hover {
  border-color: #b9c5cd;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--hamburg-red);
  box-shadow: var(--focus);
  outline: none;
}

.district-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}

.district-card {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  text-align: left;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.district-card:hover,
.district-card:focus-visible {
  border-color: rgba(169, 21, 36, 0.3);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.district-card-inner {
  display: grid;
  min-height: 244px;
  grid-template-rows: auto auto 1fr auto auto;
  gap: var(--space-3);
  padding: var(--space-5);
}

.district-card-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
}

.district-card strong {
  display: block;
  color: var(--marine);
  font-size: 1.16rem;
}

.district-card small {
  flex: 0 0 auto;
  border: 1px solid rgba(169, 21, 36, 0.18);
  border-radius: 999px;
  padding: 5px 8px;
  background: rgba(169, 21, 36, 0.07);
  color: var(--hamburg-red);
  font-size: 0.75rem;
  font-weight: 780;
}

.district-card-description {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

.district-card-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
  border-top: 1px solid var(--soft-line);
  padding-top: var(--space-3);
}

.district-card-meta em {
  display: block;
  color: var(--muted-2);
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.district-card-meta b {
  display: block;
  margin-top: 4px;
  color: var(--marine);
  font-size: 0.94rem;
}

.district-card-topics,
.topic-chips,
.hero-brief {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.district-card-topics i,
.topic-chips span {
  border: 1px solid var(--soft-line);
  border-radius: 999px;
  padding: 6px 9px;
  background: #f9fbfc;
  color: var(--anthracite);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 720;
}

.district-card-action {
  width: fit-content;
  border-bottom: 1px solid currentColor;
  color: var(--hamburg-red);
  font-weight: 820;
}

.district-card.active {
  border-color: rgba(169, 21, 36, 0.44);
  background: #fff8f6;
  box-shadow: inset 0 3px 0 var(--hamburg-red), var(--shadow-card);
}

.local-overview {
  padding: var(--space-7) 0;
  border-block: 1px solid var(--line);
  background: var(--elb-gray);
}

.local-overview-panel {
  display: grid;
  gap: var(--space-5);
  border: 1px solid rgba(16, 32, 51, 0.08);
  border-radius: var(--radius);
  padding: var(--space-6);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
}

.local-copy h2 {
  margin-bottom: var(--space-2);
  color: var(--marine);
}

.overview-summary {
  max-width: 860px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.status-strip {
  display: grid;
  overflow: hidden;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
  background: var(--white);
}

.status-strip div {
  min-width: 0;
  padding: var(--space-4);
}

.status-strip div + div {
  border-left: 1px solid var(--soft-line);
}

.status-strip strong {
  display: block;
  margin-top: 5px;
  color: var(--marine);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  line-height: 1.1;
}

.overview-topics {
  display: grid;
  gap: var(--space-2);
}

.questions-list {
  background: #fbfaf6;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: flex-end;
}

.filter-tab {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: var(--white);
  color: var(--anthracite);
  font-size: 0.9rem;
  font-weight: 740;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.filter-tab:hover {
  border-color: rgba(169, 21, 36, 0.34);
}

.filter-tab.active {
  border-color: var(--marine);
  background: var(--marine);
  color: var(--white);
}

.local-question-grid,
.verification-grid,
.step-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}

.mini-question-card {
  display: grid;
  min-width: 0;
  gap: var(--space-3);
  padding: var(--space-5);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.mini-question-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.mini-question-card.active {
  border-color: rgba(169, 21, 36, 0.3);
  background: #fff8f6;
  box-shadow: inset 0 3px 0 var(--hamburg-red), var(--shadow-card);
}

.mini-topic {
  display: grid;
  gap: 3px;
}

.mini-topic span,
.mini-question-label {
  color: var(--hamburg-red);
  font-size: 0.72rem;
  font-weight: 820;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.mini-topic strong {
  color: var(--marine);
  font-size: 0.96rem;
  line-height: 1.25;
}

.mini-question-card h3 {
  margin-bottom: 0;
  font-size: 1.06rem;
  line-height: 1.3;
}

.mini-question-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.mini-facts {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--soft-line);
  border-radius: var(--radius-sm);
  background: #fbfcfd;
}

.mini-facts div {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1fr);
  gap: var(--space-2);
  padding: 9px 11px;
}

.mini-facts div + div {
  border-top: 1px solid var(--soft-line);
}

.mini-facts dd {
  text-align: right;
}

.mini-question-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  border-top: 1px solid var(--soft-line);
  padding-top: var(--space-3);
}

.mini-question-footer span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.load-question {
  min-height: 36px;
  border-color: rgba(169, 21, 36, 0.2);
  background: rgba(169, 21, 36, 0.08);
  color: var(--hamburg-red);
  font-size: 0.86rem;
}

.empty-state {
  grid-column: 1 / -1;
  border: 1px dashed rgba(16, 32, 51, 0.22);
  border-radius: var(--radius);
  padding: var(--space-7);
  background: var(--white);
  text-align: center;
}

.empty-mark {
  display: block;
  width: 34px;
  height: 3px;
  margin: 0 auto var(--space-4);
  border-radius: 999px;
  background: var(--hamburg-red);
}

.question-layout,
.after-layout,
.create-layout,
.trust-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: var(--space-5);
  align-items: start;
}

.question-card,
.results-card {
  padding: var(--space-6);
}

.card-topline {
  margin-bottom: var(--space-4);
}

.badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 0.75rem;
  font-weight: 820;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-blue {
  border-color: rgba(93, 135, 153, 0.3);
  background: rgba(93, 135, 153, 0.11);
  color: #355f70;
}

.badge-bordeaux {
  border-color: rgba(143, 59, 45, 0.28);
  background: rgba(143, 59, 45, 0.1);
  color: var(--brick);
}

.badge-gold {
  border-color: rgba(155, 107, 41, 0.3);
  background: rgba(155, 107, 41, 0.12);
  color: var(--warning);
}

.deadline,
.session-date,
.verified {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.question-card h2,
.results-card h2 {
  font-size: clamp(1.55rem, 2.2vw, 2.25rem);
}

.question-card > p:not(.session-date),
.result-summary,
.trust-note {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.62;
}

.decision-dossier,
.result-share-grid,
.result-meta {
  display: grid;
  overflow: hidden;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
  background: #fbfcfd;
}

.decision-dossier {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: var(--space-5) 0;
}

.decision-dossier div,
.result-share-grid div,
.result-meta div {
  min-width: 0;
  padding: var(--space-3);
}

.decision-dossier div,
.result-share-grid div,
.result-meta div {
  border-top: 1px solid var(--soft-line);
}

.decision-dossier div:nth-child(-n + 3),
.result-share-grid div:nth-child(-n + 2),
.result-meta div:nth-child(-n + 2) {
  border-top: 0;
}

.decision-dossier div:not(:nth-child(3n + 1)),
.result-share-grid div:not(:nth-child(2n + 1)),
.result-meta div:not(:nth-child(2n + 1)) {
  border-left: 1px solid var(--soft-line);
}

.decision-dossier strong,
.result-meta strong,
.result-share-grid strong {
  display: block;
  margin-top: 5px;
  color: var(--marine);
  font-weight: 780;
}

.arguments {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
  margin: var(--space-5) 0;
}

.arguments > div {
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
  padding: var(--space-4);
  background: #fbfcfd;
}

.arguments h3 {
  font-size: 1rem;
}

.arguments li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.94rem;
}

.arguments li + li {
  margin-top: var(--space-2);
}

.arguments li::before {
  position: absolute;
  top: 0.64em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--hamburg-red);
  content: "";
}

.vote-panel {
  border: 1px solid rgba(169, 21, 36, 0.16);
  border-radius: var(--radius);
  padding: var(--space-4);
  background: #fff8f6;
}

.vote-label {
  margin-bottom: var(--space-3);
  color: var(--marine);
  font-weight: 780;
}

.vote-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-2);
}

.vote-button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  font-weight: 780;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.vote-button:hover {
  transform: translateY(-1px);
  border-color: rgba(169, 21, 36, 0.34);
}

.vote-button.selected,
.vote-button.agree.selected {
  border-color: var(--hamburg-red);
  background: var(--hamburg-red);
  color: var(--white);
}

.vote-button.reject.selected {
  border-color: var(--marine);
  background: var(--marine);
  color: var(--white);
}

.vote-button.abstain.selected {
  border-color: var(--water);
  background: var(--water);
  color: var(--white);
}

.vote-note {
  margin: var(--space-3) 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.results-card {
  position: sticky;
  top: 78px;
}

.result-total {
  display: grid;
  gap: 5px;
  border-radius: var(--radius);
  padding: var(--space-4);
  margin: var(--space-4) 0;
  background: var(--marine);
}

.result-total .mini-label {
  color: rgba(255, 255, 255, 0.7);
}

.result-total strong {
  color: var(--white);
  font-size: clamp(1.9rem, 3vw, 2.55rem);
  line-height: 1;
}

.result-share-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: var(--space-4);
}

.result-share-grid div:nth-child(-n + 3) {
  border-top: 0;
}

.result-share-grid div:not(:first-child) {
  border-left: 1px solid var(--soft-line);
}

.result-share-grid strong {
  font-size: 1.25rem;
}

.result-bars {
  display: grid;
  gap: var(--space-3);
}

.bar-row {
  min-width: 0;
}

.bar-head {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: 6px;
  color: var(--anthracite);
  font-size: 0.9rem;
  font-weight: 780;
}

.bar-track {
  overflow: hidden;
  height: 10px;
  border-radius: 999px;
  background: var(--elb-gray);
}

.bar-fill {
  width: 0;
  height: 100%;
  border-radius: 999px;
  transition: width 560ms cubic-bezier(0.22, 1, 0.36, 1);
}

.result-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin: var(--space-4) 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.result-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.legend-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.result-meta {
  margin-bottom: var(--space-4);
}

.district-breakdown {
  border-top: 1px solid var(--soft-line);
  padding-top: var(--space-4);
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  padding: 9px 0;
  color: var(--muted);
}

.breakdown-row + .breakdown-row {
  border-top: 1px solid var(--soft-line);
}

.breakdown-row strong {
  color: var(--marine);
}

.trust-note {
  margin: var(--space-4) 0 0;
  border-left: 3px solid var(--hamburg-red);
  padding-left: var(--space-3);
  font-size: 0.9rem;
}

.verification-dialog {
  width: min(720px, calc(100% - 32px));
  max-height: 88vh;
  border: 0;
  border-radius: var(--radius-lg);
  padding: 0;
  background: transparent;
  color: var(--ink);
}

.verification-dialog::backdrop {
  background: rgba(16, 32, 51, 0.58);
  backdrop-filter: blur(4px);
}

.verification-modal {
  max-height: 88vh;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  background: var(--white);
  box-shadow: var(--shadow-strong);
}

.dialog-close {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  font-size: 1.3rem;
  line-height: 1;
}

.verification-existing {
  border-radius: var(--radius);
  padding: var(--space-3);
  background: rgba(93, 135, 153, 0.1);
  color: #355f70;
  font-weight: 700;
}

.verification-summary {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
  margin: var(--space-4) 0;
}

.verification-summary div {
  display: grid;
  grid-template-columns: 0.35fr 1fr;
  gap: var(--space-3);
  padding: var(--space-3);
}

.verification-summary div + div {
  border-top: 1px solid var(--soft-line);
}

.verification-options {
  display: grid;
  gap: var(--space-2);
}

.verification-option {
  display: grid;
  gap: 4px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-4);
  background: var(--white);
  color: var(--ink);
  text-align: left;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.verification-option span {
  color: var(--muted);
  font-size: 0.9rem;
}

.verification-option:hover,
.verification-option.active {
  border-color: rgba(169, 21, 36, 0.36);
  background: #fff8f6;
}

.verification-check,
.confirmation-field {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.verification-check input,
.confirmation-field input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--hamburg-red);
}

.verification-note {
  margin: var(--space-3) 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-2);
  margin-top: var(--space-5);
}

.verification-section {
  background: var(--warmwhite);
}

.verification-card,
.step-card,
.profile-card {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-5);
}

.verification-card ul {
  display: grid;
  gap: var(--space-2);
}

.verification-card li,
.legal-list li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.verification-card li::before,
.legal-list li::before {
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--hamburg-red);
  content: "";
}

.step-number {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: rgba(169, 21, 36, 0.09);
  color: var(--hamburg-red);
  font-size: 0.8rem;
  font-weight: 820;
}

.process {
  background: #fbfaf6;
}

.after-vote {
  background: var(--marine);
  color: var(--white);
}

.after-vote h2,
.after-vote h3,
.after-vote .eyebrow {
  color: var(--white);
}

.after-vote p {
  color: rgba(250, 247, 242, 0.72);
}

.after-layout {
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1fr);
}

.explain-card {
  padding: var(--space-6);
  background: rgba(250, 247, 242, 0.97);
  color: var(--ink);
}

.explain-card dl {
  display: grid;
  gap: var(--space-3);
  margin-bottom: 0;
}

.explain-card div {
  border-top: 1px solid var(--soft-line);
  padding-top: var(--space-3);
}

.profiles.compact-profiles {
  padding: var(--space-8) 0;
  background: var(--paper);
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-3);
}

.profile-card {
  min-height: 0;
  padding: var(--space-4);
}

.profile-card h3 {
  margin-bottom: 4px;
  color: var(--marine);
  font-size: 1rem;
}

.profile-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.profile-district {
  color: var(--hamburg-red) !important;
  font-weight: 740;
}

.create-section {
  background: var(--warmwhite);
}

.create-layout {
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
}

.sticky-copy {
  position: sticky;
  top: 86px;
}

.create-form {
  padding: var(--space-6);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}

.field.full,
.visibility.full,
.confirmation-field.full {
  grid-column: 1 / -1;
}

.visibility {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-4);
}

.visibility legend {
  padding: 0 var(--space-2);
}

.visibility label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--ink);
  font-weight: 700;
}

.visibility input {
  width: 18px;
  height: 18px;
  accent-color: var(--hamburg-red);
}

.form-message {
  display: none;
  margin-bottom: var(--space-4);
  border-radius: var(--radius);
  padding: var(--space-4);
  font-weight: 700;
}

.form-message.success,
.form-message.error {
  display: block;
}

.form-message.success {
  border: 1px solid rgba(79, 114, 92, 0.28);
  background: rgba(79, 114, 92, 0.1);
  color: #385943;
}

.form-message.error {
  border: 1px solid rgba(169, 21, 36, 0.24);
  background: rgba(169, 21, 36, 0.08);
  color: var(--hamburg-red);
}

.form-message ul {
  display: grid;
  gap: 5px;
  margin-top: var(--space-2);
}

.trust-section {
  padding: var(--space-8) 0;
  border-top: 1px solid var(--line);
  background: #f7f4ee;
}

.trust-grid {
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1fr);
}

.legal-copy p:not(.eyebrow) {
  max-width: 560px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.legal-panel {
  padding: var(--space-5);
  background: rgba(255, 255, 255, 0.78);
}

.legal-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3) var(--space-4);
}

.legal-note {
  margin: var(--space-4) 0 0;
  border-top: 1px solid var(--soft-line);
  padding-top: var(--space-3);
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer {
  background: var(--marine);
  color: var(--white);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  padding: var(--space-7) 0;
}

.footer-brand {
  display: grid;
  gap: var(--space-2);
}

.footer-brand p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--space-2);
}

.footer-links a {
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.9rem;
}

.footer-links a:hover {
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--white);
}

@media (max-width: 1080px) {
  .hero-content,
  .question-layout,
  .after-layout,
  .create-layout,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .hero-content {
    min-height: auto;
  }

  .hero-briefing {
    max-width: 720px;
    justify-self: start;
  }

  .district-grid,
  .local-question-grid,
  .verification-grid,
  .step-grid,
  .profile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .results-card,
  .sticky-copy {
    position: static;
  }

  .section-heading.horizontal {
    align-items: flex-start;
    flex-direction: column;
    gap: var(--space-3);
  }

  .filter-tabs {
    justify-content: flex-start;
  }
}

@media (max-width: 820px) {
  .container {
    width: min(100% - 28px, 1160px);
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 62px;
    right: 12px;
    left: 12px;
    display: grid;
    max-height: calc(100dvh - 74px);
    overflow: hidden;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    background: rgba(16, 32, 51, 0.99);
    box-shadow: var(--shadow-strong);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 160ms ease, transform 160ms ease;
  }

  .nav-links a {
    border-radius: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 13px 16px;
  }

  .nav-cta {
    width: calc(100% - 24px);
    margin: 12px;
  }

  .nav-open .nav-links {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .hero-content {
    padding: var(--space-8) 0 var(--space-7);
  }

  .search-row,
  .decision-dossier,
  .arguments,
  .result-share-grid,
  .result-meta,
  .form-grid,
  .legal-list {
    grid-template-columns: 1fr;
  }

  .decision-dossier div,
  .result-share-grid div,
  .result-meta div {
    border-left: 0 !important;
    border-top: 1px solid var(--soft-line) !important;
  }

  .decision-dossier div:first-child,
  .result-share-grid div:first-child,
  .result-meta div:first-child {
    border-top: 0 !important;
  }

  .status-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .status-strip div + div {
    border-left: 0;
  }

  .status-strip div:nth-child(even) {
    border-left: 1px solid var(--soft-line);
  }

  .status-strip div:nth-child(n + 3) {
    border-top: 1px solid var(--soft-line);
  }
}

@media (max-width: 640px) {
  h1 {
    font-size: clamp(1.95rem, 10vw, 2.75rem);
  }

  h2 {
    font-size: clamp(1.42rem, 6.4vw, 1.9rem);
  }

  .section,
  .section-rise {
    padding: var(--space-8) 0;
  }

  #districts,
  #questions,
  #question,
  #verification,
  #process,
  #create,
  #legal {
    scroll-margin-top: 66px;
  }

  .hero-content {
    gap: var(--space-5);
    padding: var(--space-6) 0 var(--space-5);
  }

  .hero-copy {
    margin-bottom: var(--space-4);
    font-size: 1rem;
    line-height: 1.58;
  }

  .hero-actions {
    margin-bottom: var(--space-4);
  }

  .hero-brief {
    gap: 6px;
  }

  .hero-brief span {
    padding: 6px 8px;
    font-size: 0.78rem;
  }

  .hero-actions,
  .vote-actions,
  .dialog-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button,
  .nav-cta,
  .load-question {
    width: 100%;
  }

  .hero-briefing,
  .picker-panel,
  .question-card,
  .results-card,
  .verification-modal,
  .create-form,
  .legal-panel,
  .explain-card {
    padding: var(--space-4);
  }

  .briefing-list,
  .district-grid,
  .local-question-grid,
  .verification-grid,
  .step-grid,
  .profile-grid,
  .status-strip {
    grid-template-columns: 1fr;
  }

  .briefing-list dd {
    font-size: 0.95rem;
  }

  .briefing-list div,
  .status-strip div {
    border-left: 0 !important;
    border-top: 1px solid var(--soft-line);
  }

  .briefing-list div:first-child,
  .status-strip div:first-child {
    border-top: 0;
  }

  .district-card-inner {
    min-height: 0;
  }

  .mini-question-footer,
  .footer-inner {
    align-items: stretch;
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .verification-summary div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .verification-dialog {
    width: calc(100% - 20px);
    max-height: calc(100dvh - 20px);
  }

  .verification-modal {
    max-height: calc(100dvh - 20px);
    padding: var(--space-4);
  }

  .verification-option {
    padding: var(--space-3);
  }

  .bar-track {
    height: 12px;
  }

  .bar-head {
    font-size: 0.92rem;
  }

  input,
  select {
    height: 48px;
  }

  textarea {
    min-height: 96px;
  }
}

@media (max-width: 420px) {
  .container {
    width: min(100% - 22px, 1160px);
  }

  .nav-shell {
    width: min(100% - 20px, 1220px);
    height: 58px;
  }

  .nav-links {
    top: 58px;
    right: 10px;
    left: 10px;
    max-height: calc(100dvh - 68px);
  }

  .brand-mark {
    width: 30px;
    height: 30px;
  }

  h1 {
    font-size: clamp(1.8rem, 10vw, 2.35rem);
  }

  .hero-copy {
    font-size: 0.96rem;
  }

  .section,
  .section-rise {
    padding: var(--space-7) 0;
  }

  .status-strip strong,
  .result-total strong {
    font-size: 1.6rem;
  }

  .card-topline,
  .briefing-head {
    align-items: flex-start;
    flex-direction: column;
    gap: var(--space-2);
  }

  .mini-facts div {
    grid-template-columns: 1fr;
  }

  .mini-facts dd {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}
