/* Initiq — visual language taken from the live politiq.ch site:
   dark ground #0C111D with radial blue washes, glass cards, system font stack,
   light H1, Swiss red / light blue / gold accents. */

:root {
  --bg: #0c111d;
  --surface: rgba(255, 255, 255, 0.05);
  --surface-strong: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #eef0f4;
  --text-secondary: #a0b0c8;
  --text-muted: #6a7a98;
  --red: #e30613;
  --red-soft: rgba(227, 6, 19, 0.15);
  --blue: #8ab4e8;
  --blue-bright: #93bbfd;
  --gold: #e8c79a;
  --slate: #7a8aaa;
  --green: #7fc8a9;
  --radius: 10px;
  --radius-sm: 6px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --maxw: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 30% 15%, rgba(40, 60, 120, 0.25) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 70%, rgba(120, 30, 40, 0.12) 0%, transparent 55%);
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-bright); text-decoration: underline; }

h1, h2, h3 { line-height: 1.25; }
h1 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); font-weight: 300; letter-spacing: 0.04em; }
h1 strong, h1 b { font-weight: 600; }
h2 { font-size: 1.35rem; font-weight: 600; letter-spacing: 0.01em; margin-bottom: 0.5rem; }
h3 { font-size: 1.08rem; font-weight: 600; }

p { color: var(--text-secondary); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }

/* ---------- header ---------- */
.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(12, 17, 29, 0.85);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 40;
}
.site-header .bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 20px;
  max-width: var(--maxw);
  margin: 0 auto;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: baseline; gap: 8px; font-size: 1.05rem; letter-spacing: 0.08em; }
.brand a { color: var(--text); text-decoration: none; font-weight: 600; }
.brand .sub { color: var(--text-muted); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; }
.site-header nav { display: flex; gap: 14px; align-items: center; margin-left: auto; flex-wrap: wrap; }
.site-header nav a { color: var(--text-secondary); font-size: 0.88rem; }
.site-header nav a:hover { color: var(--text); text-decoration: none; }

.lang-bar { display: flex; gap: 4px; }
.lang-bar a {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}
.lang-bar a.active, .lang-bar a:hover { color: var(--text); border-color: var(--border-strong); text-decoration: none; }

/* ---------- cards & layout ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.card + .card { margin-top: 16px; }
/* Stacked cards need that gap; inside a grid the gap belongs to the grid — the
   margin would push every card after the first one out of line with its row. */
.grid > .card + .card { margin-top: 0; }
.card h2 { margin-bottom: 0.4rem; }

.grid { display: grid; gap: 18px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; } }

section { padding: 34px 0; }
.hero { padding: 56px 0 32px; }
.hero p.lead { font-size: 1.08rem; max-width: 60ch; margin-top: 12px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { background: rgba(255, 255, 255, 0.1); text-decoration: none; color: var(--text); }
.btn.primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn.primary:hover { background: #c30510; border-color: #c30510; }
.btn.ghost { background: transparent; }
.btn.small { padding: 7px 13px; font-size: 0.82rem; }
.btn[disabled], .btn.disabled { opacity: 0.45; cursor: not-allowed; pointer-events: none; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }

/* ---------- badges ---------- */
.badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid;
}
.badge.petition { color: var(--gold); border-color: rgba(232, 199, 154, 0.45); background: rgba(232, 199, 154, 0.1); }
.badge.initiative { color: var(--blue); border-color: rgba(138, 180, 232, 0.45); background: rgba(138, 180, 232, 0.1); }
.badge.referendum { color: #ff8a8f; border-color: rgba(227, 6, 19, 0.5); background: var(--red-soft); }
.badge.political_campaign { color: var(--slate); border-color: rgba(122, 138, 170, 0.5); background: rgba(122, 138, 170, 0.12); }
.badge.state { color: var(--text-secondary); border-color: var(--border-strong); background: rgba(255, 255, 255, 0.04); }

/* ---------- forms ---------- */
label { display: block; font-size: 0.82rem; color: var(--text-secondary); margin-bottom: 5px; font-weight: 600; }
input[type="text"], input[type="email"], input[type="password"], input[type="date"],
input[type="tel"], input[type="number"], input[type="url"], input[type="file"], select, textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 10px 12px;
  font-size: 0.95rem;
  font-family: inherit;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
  border-color: var(--blue);
}
textarea { min-height: 130px; resize: vertical; line-height: 1.55; }
.field { margin-bottom: 15px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }
.hint { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; }
.check { display: flex; gap: 9px; align-items: flex-start; margin-bottom: 12px; }
.check input { margin-top: 4px; width: auto; }
.check label { margin: 0; font-weight: 400; color: var(--text-secondary); }

/* ---------- notices ---------- */
.notice { border-radius: var(--radius-sm); padding: 12px 15px; font-size: 0.88rem; margin-bottom: 15px; border: 1px solid; }
.notice.info { background: rgba(138, 180, 232, 0.1); border-color: rgba(138, 180, 232, 0.35); color: #cfe0f7; }
.notice.warn { background: rgba(232, 199, 154, 0.1); border-color: rgba(232, 199, 154, 0.4); color: #f0dcbe; }
.notice.error { background: var(--red-soft); border-color: rgba(227, 6, 19, 0.45); color: #ffb3b8; }
.notice.success { background: rgba(127, 200, 169, 0.12); border-color: rgba(127, 200, 169, 0.4); color: #b6e6d3; }
.notice strong { color: inherit; }
/* Liability disclaimer in the wizards and the data promise on the public forms. */
.notice.liability { background: rgba(255, 255, 255, 0.04); border-color: var(--border-strong); color: var(--text-secondary); }
.notice.liability p { margin: 0 0 10px; }
.notice.liability .hint { margin-bottom: 0; }
.liability-list { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.liability-list li { line-height: 1.55; }
.liability-list strong { color: var(--text); }
.notice.promise { background: rgba(138, 180, 232, 0.08); border-color: rgba(138, 180, 232, 0.3); color: #cfe0f7; }
.notice.promise p { margin: 6px 0 0; }

/* ---------- progress ---------- */
.progress { margin: 14px 0; }
.progress .track { height: 9px; background: rgba(255, 255, 255, 0.07); border-radius: 999px; overflow: hidden; }
.progress .fill { height: 100%; background: linear-gradient(90deg, var(--blue), var(--blue-bright)); border-radius: 999px; }
.progress.referendum .fill { background: linear-gradient(90deg, #ff8a8f, var(--red)); }
.progress .meta { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--text-muted); margin-top: 6px; gap: 12px; flex-wrap: wrap; }

.countdown { font-variant-numeric: tabular-nums; font-weight: 600; }
.countdown.urgent { color: #ff8a8f; }

/* ---------- campaign cards ---------- */
.campaign-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.campaign-card .hero-img { aspect-ratio: 16 / 9; background: rgba(255, 255, 255, 0.04); object-fit: cover; width: 100%; display: block; }
.campaign-card .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.campaign-card h3 a { color: var(--text); }
.campaign-card .initiator { font-size: 0.82rem; color: var(--text-muted); }

/* ---------- campaign page ---------- */
.initiator-header {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
}
.initiator-header .avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(138, 180, 232, 0.18);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: var(--blue); flex: none;
}
.initiator-header .who { font-weight: 600; }
.initiator-header .role { font-size: 0.74rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; }

.content-blocks { margin: 26px 0; }
.content-blocks h2, .content-blocks h3 { margin: 24px 0 8px; }
.content-blocks p { margin-bottom: 14px; color: var(--text); }
.content-blocks img { max-width: 100%; height: auto; border-radius: var(--radius-sm); display: block; }
.content-blocks figure { margin: 20px 0; }
.content-blocks figcaption { font-size: 0.8rem; color: var(--text-muted); margin-top: 6px; }
.content-blocks blockquote {
  border-left: 3px solid var(--gold);
  padding: 4px 0 4px 16px;
  margin: 20px 0;
  color: var(--text);
  font-style: italic;
}
.content-blocks hr { border: none; border-top: 1px solid var(--border); margin: 26px 0; }
.content-blocks ul { margin: 0 0 14px 20px; color: var(--text); }

.action-bar { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0; }
@media (max-width: 640px) {
  .action-bar.sticky {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 30;
    background: rgba(12, 17, 29, 0.96);
    border-top: 1px solid var(--border);
    padding: 10px 14px; margin: 0;
    backdrop-filter: blur(10px);
  }
  .action-bar.sticky .btn { flex: 1; }
  body.has-sticky-bar { padding-bottom: 74px; }
}

details.formalities { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 18px; background: rgba(255,255,255,0.03); }
details.formalities summary { cursor: pointer; font-weight: 600; }
details.formalities dl { margin-top: 12px; display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: 0.9rem; }
details.formalities dt { color: var(--text-muted); }

/* ---------- theme accents ---------- */
.theme_gold { --accent: var(--gold); }
.theme_blue { --accent: var(--blue); }
.theme_red { --accent: var(--red); }
.theme_midnight { --accent: var(--blue); }
.theme_gold .content-blocks blockquote { border-left-color: var(--gold); }
.theme_blue .content-blocks blockquote { border-left-color: var(--blue); }
.theme_red .content-blocks blockquote { border-left-color: var(--red); }

/* ---------- poll ---------- */
.poll-options { display: flex; gap: 12px; flex-wrap: wrap; margin: 16px 0; }
.poll-options button {
  flex: 1 1 160px;
  padding: 20px 16px;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
}
.poll-options button:hover { background: rgba(255, 255, 255, 0.1); }
.poll-result { margin: 12px 0; }
.poll-result .label { display: flex; justify-content: space-between; font-size: 0.88rem; margin-bottom: 4px; }
.poll-result .track { height: 22px; background: rgba(255, 255, 255, 0.06); border-radius: var(--radius-sm); overflow: hidden; }
.poll-result .fill { height: 100%; background: var(--slate); }
.poll-result.yes .fill, .poll-result.for .fill { background: var(--green); }
.poll-result.no .fill, .poll-result.against .fill { background: #ff8a8f; }
.transparency { font-size: 0.78rem; color: var(--text-muted); border-top: 1px solid var(--border); padding-top: 10px; margin-top: 14px; }

/* ---------- tables ---------- */
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--border); }
th { color: var(--text-muted); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }
tbody tr:hover { background: rgba(255, 255, 255, 0.03); }
.table-wrap { overflow-x: auto; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 50px;
  padding: 24px 0 40px;
  font-size: 0.84rem;
  color: var(--text-muted);
}
.site-footer a { color: var(--text-muted); }
.site-footer .links { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 6px; }

/* ---------- utility ---------- */
.muted { color: var(--text-muted); }
.small { font-size: 0.84rem; }
.stack > * + * { margin-top: 12px; }
.flex { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.center { text-align: center; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.86em; }
.pill { display: inline-block; padding: 3px 9px; border-radius: 999px; background: rgba(255,255,255,0.06); font-size: 0.76rem; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.dot.missing { background: var(--gold); }
.dot.machine { background: var(--blue); }
.dot.ok { background: var(--green); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.steps { display: flex; gap: 8px; margin-bottom: 22px; flex-wrap: wrap; }
.steps .step { font-size: 0.78rem; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); color: var(--text-muted); }
.steps .step.active { border-color: var(--blue); color: var(--blue); }
.steps .step.done { border-color: rgba(127,200,169,0.5); color: var(--green); }

/* ---------- layout utilities ----------
   The CSP forbids style attributes (`style-src 'self'`), so every bit of
   positioning lives in a class. */
.mt-6 { margin-top: 6px; }
.mt-8 { margin-top: 8px; }
.mt-10 { margin-top: 10px; }
.mt-12 { margin-top: 12px; }
.mt-22 { margin-top: 22px; }
.ml-18 { margin-left: 18px; }
.list-indent { margin: 8px 0 0 20px; }
.mw-320 { max-width: 320px; }
.mw-340 { max-width: 340px; }
.w-2rem { width: 2rem; }
.d-inline { display: inline; }
.stat-number { font-size: 2rem; color: var(--text); line-height: 1.2; }
.stat-number.big { font-size: 2.4rem; line-height: 1.1; margin-top: 6px; }

/* ---------- Vorteile: Ablauf und Liste ---------- */
.flow {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin: 18px 0 0;
  position: relative;
}
/* Die verbindende Linie liegt hinter den Punkten, von Mitte zu Mitte. */
.flow::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, rgba(227, 6, 19, 0.75), rgba(138, 180, 232, 0.75));
}
.flow-step { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.flow-dot {
  position: relative;
  z-index: 1;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #131a29;
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 600;
}
.flow-label { color: var(--text-secondary); font-size: 0.82rem; line-height: 1.4; }
@media (max-width: 720px) {
  .flow { grid-template-columns: 1fr; gap: 14px; }
  .flow::before { top: 10px; bottom: 10px; left: 21px; right: auto; width: 2px; height: auto;
                  background: linear-gradient(180deg, rgba(227, 6, 19, 0.75), rgba(138, 180, 232, 0.75)); }
  .flow-step { flex-direction: row; text-align: left; gap: 14px; }
  .flow-label { font-size: 0.9rem; }
}
.benefit-list { display: grid; gap: 14px; }
.benefit h3 { color: var(--text); margin-bottom: 6px; }
.benefit p { margin: 0; }
