:root {
  --bg: #131313;
  --card: #1c1c1c;
  --ink: #f4f1ea;
  --muted: #a8a29a;
  --line: #2a2a2a;
  --red: #f30606;
  --red-soft: rgba(243, 6, 6, 0.16);
  --radius: 14px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Outfit, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.5;
}

a {
  color: var(--ink);
  text-underline-offset: 3px;
}

a:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  color: #fff;
}

#map {
  position: absolute;
  inset: 0;
  background: #1a1f18;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 400;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10, 10, 10, 0.55) 0%, rgba(10, 10, 10, 0.08) 28%, rgba(10, 10, 10, 0.12) 52%, rgba(10, 10, 10, 0.88) 100%);
}

.hero-bar,
.hero-copy,
.map-key {
  position: absolute;
  z-index: 500;
  pointer-events: none;
}

.finder,
.to-content,
.zoom-hint {
  position: absolute;
  z-index: 520;
}

.hero-bar {
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: calc(18px + var(--safe-top)) 22px 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-bar p { margin: 0; }

.finder {
  top: calc(52px + var(--safe-top));
  left: 22px;
  right: 72px;
  max-width: 420px;
  pointer-events: auto;
}

.finder label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.finder input {
  width: 100%;
  height: 46px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(19, 19, 19, 0.78);
  color: #fff;
  font: 500 15px/1 Outfit, sans-serif;
  backdrop-filter: blur(12px);
}

.finder input::placeholder { color: rgba(255, 255, 255, 0.45); }
.finder input:focus {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.hero-copy {
  left: 0;
  right: 0;
  bottom: 88px;
  padding: 0 22px;
  max-width: 820px;
}

.live {
  display: inline-block;
  margin: 0 0 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.eyebrow {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(34px, 6.4vw, 68px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.map-key {
  left: 22px;
  bottom: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.82);
}

.zoom-hint {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(19, 19, 19, 0.88);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  pointer-events: none;
  opacity: 0;
  transition: opacity 160ms ease;
}

.zoom-hint.is-on {
  opacity: 1;
}

.to-content {
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  padding: 10px 16px 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(19, 19, 19, 0.72);
  color: #fff;
  font: 600 13px/1 Outfit, sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  pointer-events: auto;
  backdrop-filter: blur(10px);
}

.to-content:hover,
.to-content:focus-visible {
  background: rgba(243, 6, 6, 0.92);
  border-color: transparent;
}

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-radius: 50%;
  vertical-align: 0;
}

.dot.zone { background: var(--red); box-shadow: 0 0 0 4px var(--red-soft); }
.dot.find { background: #fff; }

.leaflet-container { font-family: Outfit, sans-serif; }

.leaflet-control-zoom {
  border: 0 !important;
  box-shadow: none !important;
  margin: calc(18px + env(safe-area-inset-top, 0px)) 16px 0 0 !important;
}

.leaflet-control-zoom a {
  width: 40px !important;
  height: 40px !important;
  line-height: 40px !important;
  background: rgba(19, 19, 19, 0.78) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: blur(10px);
}

.leaflet-control-zoom a:first-child { border-radius: 10px 10px 0 0 !important; }
.leaflet-control-zoom a:last-child { border-radius: 0 0 10px 10px !important; }

.leaflet-control-attribution {
  background: transparent !important;
  color: rgba(255, 255, 255, 0.45) !important;
  margin: 0 12px 8px 0 !important;
}

.leaflet-control-attribution a { color: inherit !important; }

.lab {
  background: none !important;
  border: 0 !important;
}

.lab span {
  display: inline-block;
  transform: translate(10px, -8px);
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(19, 19, 19, 0.82);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.leaflet-popup-content-wrapper {
  background: #1c1c1c;
  color: #f4f1ea;
  border-radius: 12px;
  box-shadow: none;
}

.leaflet-popup-tip { background: #1c1c1c; }
.leaflet-popup-content { margin: 12px 14px; font-size: 14px; }
.leaflet-popup-content strong { display: block; margin-bottom: 4px; font-size: 16px; }
.leaflet-container a.leaflet-popup-close-button { color: #fff; }

main {
  position: relative;
  z-index: 2;
  max-width: 1040px;
  margin: 0 auto;
  padding: 36px 28px 72px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.stats article {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 176px;
  padding: 26px 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.stats p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.stats strong {
  display: block;
  margin: 18px 0 8px;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.stats span {
  color: var(--muted);
  font-size: 14px;
}

.cities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
}

.cities button {
  min-height: 36px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font: 500 13px/1 Outfit, sans-serif;
  cursor: pointer;
}

.cities button.is-on,
.cities button:hover,
.cities button:focus-visible {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.list-block { margin-top: 48px; }

.list-note {
  margin: -8px 0 16px;
  color: var(--muted);
  font-size: 14px;
}

.lokal-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
}

.lokal-list button {
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.lokal-list button:hover,
.lokal-list button:focus-visible {
  border-color: var(--red);
}

.lokal-list strong { display: block; font-weight: 600; }
.lokal-list span { color: var(--muted); font-size: 14px; }

.candidates { margin-top: 56px; }

.candidate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.kandidat {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.kandidat-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  background: #161616;
}

.kandidat-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.kandidat-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-family: Fraunces, Georgia, serif;
  font-size: 52px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.kandidat-badge {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.kandidat-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px 18px 18px;
}

.kandidat-party {
  margin: 0;
  color: var(--red);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kandidat h3 {
  margin: 6px 0 0;
  font-family: Fraunces, Georgia, serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.kandidat-job {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.kandidat-slogan {
  margin: 12px 0 0;
  padding: 0 0 0 12px;
  border-left: 2px solid var(--red);
  color: var(--ink);
  font-family: Fraunces, Georgia, serif;
  font-size: 16px;
  font-style: italic;
  font-weight: 500;
  line-height: 1.35;
}

.kandidat-about {
  margin: 10px 0 0;
  color: #ddd8cf;
  font-size: 15px;
}

.kandidat-link {
  margin-top: auto;
  padding-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.parties { margin-top: 56px; }

.party-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.party-list li {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font-size: 14px;
}

.lead {
  max-width: 40em;
  margin: 36px 0 0;
  color: #ddd8cf;
  font-size: 20px;
  line-height: 1.55;
}

.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 32px;
  margin: 36px 0 0;
}

.facts > div {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.facts dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.facts dd {
  margin: 6px 0 0;
  font-size: 17px;
  font-weight: 500;
}

h2 {
  margin: 0 0 18px;
  font-family: Fraunces, Georgia, serif;
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.timeline-block,
.rules,
.panels {
  margin-top: 56px;
}

.panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 28px;
}

.panels article {
  padding: 22px 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.panels h2 {
  font-size: 24px;
}

.panels p,
.panels li {
  color: #ddd8cf;
}

.panels p {
  margin: 0 0 12px;
}

.panels p:last-child { margin-bottom: 0; }

.panels ul {
  margin: 0;
  padding-left: 1.15em;
}

.panels li { margin: 0 0 8px; }
.panels li:last-child { margin-bottom: 0; }

.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.timeline li:last-child { border-bottom: 1px solid var(--line); }

.timeline time {
  color: var(--red);
  font-size: 13px;
  font-weight: 600;
}

.timeline p {
  margin: 0;
  color: #ddd8cf;
}

.rules ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rules li {
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 18px;
}

.rules li:last-child { border-bottom: 1px solid var(--line); }

footer {
  padding: 24px 22px calc(28px + var(--safe-bottom));
  color: var(--muted);
  font-size: 13px;
}

footer p {
  max-width: 980px;
  margin: 0 auto;
}

@media (max-width: 760px) {
  .hero { height: 88svh; min-height: 520px; }
  .hero-copy { bottom: 80px; }
  .stats { grid-template-columns: 1fr; gap: 14px; }
  .stats article { min-height: 0; padding: 20px; }
  .stats strong { margin: 10px 0 6px; }
  .facts { grid-template-columns: 1fr; }
  .panels { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 1fr; gap: 6px; }
  .lead { font-size: 18px; }
  .lokal-list { grid-template-columns: 1fr; }
  .finder { right: 22px; max-width: none; }
}
