:root {
  --ink: #13242d;
  --blue-deep: #123e4a;
  --blue-dark: #0a303b;
  --blue-river: #1e7f9a;
  --green: #78a22f;
  --orange: #f28c28;
  --rust: #b8482a;
  --slate: #344b59;
  --mist: #eef2f1;
  --warm: #fafaf7;
  --line: #d8e0dd;
  --white: #fff;
  --shadow: 0 18px 50px rgba(18, 62, 74, .16);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  overflow-x: clip;
  background: var(--warm);
  color: var(--ink);
  font-family: "Poppins", sans-serif;
  font-size: 17px;
  line-height: 1.45;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(250, 250, 247, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.service-bar {
  display: flex;
  justify-content: flex-end;
  gap: 22px;
  min-height: 14px;
  padding: 0 clamp(18px, 4vw, 56px);
  background: var(--blue-deep);
  color: var(--white);
  font-size: 14px;
}

.service-bar a {
  text-decoration: none;
  opacity: .9;
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: clamp(18px, 4vw, 56px);
}

.brand-row {
  gap: 26px;
  padding-block: 14px;
  background:
    linear-gradient(90deg, var(--orange) 0 12%, var(--green) 12% 34%, var(--blue-river) 34% 100%) left bottom / 100% 4px no-repeat,
    var(--white);
}

.brand-stack {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 22px;
}

.logo-link {
  display: grid;
  place-items: center;
  line-height: 0;
}

.logo-link img {
  display: block;
  height: auto;
}

.logo-city img {
  width: 58px;
}

.logo-works img {
  width: clamp(190px, 18vw, 250px);
}

.menu-button {
  display: none;
}

.main-nav {
  display: flex;
  flex: 1 1 auto;
  justify-content: flex-end;
  gap: clamp(14px, 2.2vw, 28px);
  color: var(--blue-deep);
  font-weight: 700;
}

.main-nav a {
  position: relative;
  padding-block: 18px;
  text-decoration: none;
}

.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: 10px;
  left: 0;
  height: 3px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
  content: "";
}

.main-nav a:hover::after {
  transform: scaleX(1);
}

.hero {
  position: relative;
  min-height: 670px;
  overflow: hidden;
  color: var(--white);
}

.hero-media {
  position: absolute;
  inset: 0;
  background-image: url("assets/images/hero-baustelle.png");
  background-position: center;
  background-size: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 48, 59, .96) 0%, rgba(18, 62, 74, .9) 42%, rgba(18, 62, 74, .56) 70%, rgba(18, 62, 74, .24) 100%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.06) 0 1px, transparent 1px 26px);
}

.hero::after {
  position: absolute;
  right: 8vw;
  bottom: 0;
  width: min(420px, 42vw);
  height: 10px;
  background: linear-gradient(90deg, var(--orange), var(--green), var(--blue-river));
  content: "";
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) 380px;
  gap: clamp(30px, 5vw, 72px);
  align-items: end;
  width: min(1240px, calc(100% - 36px));
  min-height: 670px;
  margin: 0 auto;
  padding: 90px 0 74px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  color: var(--green);
  font-family: "Poppins", sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.section-kicker {
  text-transform: none;
}

.eyebrow {
  text-transform: none;
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  font-family: "Poppins", sans-serif;
  font-size: clamp(47px, 4vw, 112px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  text-transform: none;
}

.lead {
  max-width: 670px;
  margin: 25px 0 28px;
  color: rgba(255, 255, 255, .88);
  font-size: clamp(20px, 2vw, 25px);
}

.search-panel {
  max-width: 720px;
  padding: 14px;
  background: rgba(250, 250, 247, .14);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--radius);
}

.search-panel label {
  display: block;
  margin: 0 0 8px;
  color: rgba(255, 255, 255, .9);
  font-weight: 700;
}

.search-input {
  display: grid;
  grid-template-columns: 1fr 58px;
  background: var(--white);
  border-radius: 6px;
  overflow: hidden;
}

.search-input input {
  width: 100%;
  min-width: 0;
  padding: 17px 18px;
  border: 0;
  color: var(--ink);
  outline: 0;
}

.search-input button {
  display: grid;
  place-items: center;
  border: 0;
  background: var(--orange);
  cursor: pointer;
}

.search-input svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.3;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hero-stats span {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 9px 12px;
  background: rgba(250, 250, 247, .12);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 5px;
}

.hero-stats strong {
  color: var(--orange);
  font-family: "Poppins", sans-serif;
  font-size: 28px;
}

.status-board {
  padding: 20px;
  background: rgba(250, 250, 247, .95);
  border-top: 6px solid var(--orange);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--ink);
}

.board-header,
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.board-header {
  align-items: center;
  margin-bottom: 14px;
  color: var(--blue-deep);
  font-family: "Poppins", sans-serif;
  font-size: 28px;
  font-weight: 800;
  text-transform: uppercase;
}

.live-dot {
  padding: 4px 8px;
  background: var(--green);
  color: var(--white);
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  text-transform: none;
}

.status-board a {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 11px;
  align-items: start;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  width: max-content;
  min-height: 27px;
  padding: 3px 9px;
  border-radius: 4px;
  color: var(--white);
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}

.construction {
  background: var(--orange);
  color: var(--white);
}

.planned {
  background: var(--blue-river);
}

.done {
  background: var(--green);
}

.notice {
  background: var(--rust);
}

.intro-section,
.map-section,
.district-section,
.measure-section,
.detail-section,
.story-section,
.social-section,
.page-hero,
.town-section,
.directory-section,
.related-section {
  width: min(1240px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(54px, 7vw, 92px) 0;
}

.subpage-main {
  background: var(--warm);
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(280px, .45fr);
  gap: clamp(30px, 6vw, 90px);
  align-items: end;
  min-height: 360px;
}

.page-hero > *,
.detail-section > * {
  min-width: 0;
}

.page-hero h1 {
  max-width: 840px;
  margin: 0;
  color: var(--blue-deep);
  font-size: clamp(46px, 6vw, 82px);
  font-weight: 700;
  line-height: 1;
}

.page-hero p:not(.section-kicker) {
  max-width: 760px;
  margin: 20px 0 0;
  font-size: clamp(19px, 2vw, 24px);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  color: var(--slate);
  font-size: 14px;
  font-weight: 700;
}

.breadcrumb a {
  color: var(--blue-deep);
  text-decoration-color: var(--orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.page-facts {
  display: grid;
  gap: 10px;
  padding: 22px;
  background: var(--blue-deep);
  border-top: 7px solid var(--orange);
  border-radius: var(--radius);
  color: var(--white);
}

.page-facts span {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(255,255,255,.16);
}

.page-facts span:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.directory-section {
  padding-top: 18px;
}

.district-directory {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.district-list-card {
  position: relative;
  display: grid;
  min-height: 245px;
  padding: 22px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 7px solid var(--orange);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.district-list-card:hover {
  border-color: rgba(242, 140, 40, .7);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.district-list-card h2 {
  margin-bottom: 12px;
  font-size: 34px;
}

.district-list-card p {
  margin: 0;
  color: var(--slate);
}

.district-list-card .count {
  justify-self: start;
  align-self: end;
  margin-top: 28px;
  color: var(--blue-deep);
  font-size: 15px;
  font-weight: 800;
}

.town-section {
  padding-top: 18px;
}

.town-section + .story-section {
  padding-top: 30px;
}

.town-header {
  width: 100%;
  padding-inline: max(18px, calc((100vw - 1240px) / 2));
  background:
    linear-gradient(90deg, rgba(18, 62, 74, .94), rgba(18, 62, 74, .78)),
    repeating-linear-gradient(135deg, rgba(255,255,255,.08) 0 1px, transparent 1px 26px);
  color: var(--white);
}

.town-header .page-hero {
  width: 100%;
  min-height: 430px;
  padding-block: clamp(58px, 8vw, 110px);
}

.town-header h1,
.town-header .section-kicker,
.town-header p,
.town-header .breadcrumb,
.town-header .breadcrumb a {
  color: var(--white);
}

.town-header .breadcrumb {
  opacity: .82;
}

.town-header .page-facts {
  background: rgba(250, 250, 247, .1);
  border-color: var(--green);
}

.story-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.story-row .story-card {
  min-height: 250px;
}

.story-detail-hero {
  width: 100%;
  padding-inline: max(18px, calc((100vw - 1240px) / 2));
  background:
    linear-gradient(90deg, rgba(18, 62, 74, .95), rgba(18, 62, 74, .72)),
    repeating-linear-gradient(135deg, rgba(255,255,255,.08) 0 1px, transparent 1px 26px);
  color: var(--white);
}

.story-detail-hero .page-hero {
  width: 100%;
  min-height: 520px;
  padding-block: clamp(60px, 8vw, 118px);
}

.story-detail-hero h1,
.story-detail-hero p,
.story-detail-hero .section-kicker,
.story-detail-hero .breadcrumb,
.story-detail-hero .breadcrumb a {
  color: var(--white);
}

.story-figure {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius);
}

.story-figure img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 330px;
  object-fit: cover;
}

.story-article {
  width: min(1040px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(54px, 7vw, 90px) 0 24px;
}

.story-intro {
  max-width: 840px;
}

.story-intro p:last-child {
  margin-top: 18px;
  font-size: clamp(19px, 2vw, 23px);
}

.story-chapters {
  display: grid;
  gap: clamp(38px, 6vw, 72px);
  margin-top: clamp(38px, 6vw, 72px);
}

.story-chapters section {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, .72fr);
  gap: clamp(22px, 4vw, 48px);
  align-items: center;
}

.story-chapters section:nth-child(even) figure {
  order: 2;
}

.story-chapters figure {
  margin: 0;
  overflow: hidden;
  background: var(--white);
  border-radius: var(--radius);
}

.story-chapters img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.story-chapters span {
  display: block;
  margin-bottom: 12px;
  color: var(--orange);
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
}

.story-chapters h2 {
  margin-bottom: 14px;
  font-size: clamp(26px, 2vw, 34px);
}

.story-chapters p {
  margin: 0;
  color: var(--slate);
}

.source-note {
  margin-top: 28px;
  padding: 20px;
  background: var(--mist);
  border-left: 5px solid var(--green);
  border-radius: var(--radius);
}

.source-note p {
  margin: 6px 0 0;
}

.source-note a {
  color: var(--blue-deep);
  font-weight: 800;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}

.intro-section {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(30px, 6vw, 80px);
  align-items: start;
}

h2,
h3 {
  margin-top: 0;
  color: var(--blue-deep);
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  letter-spacing: 0;
  line-height: .98;
  text-transform: none;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(38px, 2vw, 64px);
}

.intro-section p:last-child {
  max-width: 760px;
  margin: 8px 0 0;
  font-size: 22px;
}

.map-section,
.detail-section {
  width: auto;
  padding-inline: max(18px, calc((100vw - 1240px) / 2));
  background: var(--mist);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-row button {
  min-height: 38px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--blue-deep);
  font-weight: 800;
  cursor: pointer;
}

.filter-row .active {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

.map-shell {
  display: grid;
  grid-template-columns: 1fr 310px;
  margin-top: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.google-map-frame {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  background:
    radial-gradient(circle at 22% 22%, rgba(120, 162, 47, .22), transparent 25%),
    radial-gradient(circle at 75% 70%, rgba(30, 127, 154, .2), transparent 28%),
    linear-gradient(135deg, #dfe8d8, #f4f0d8);
}

.google-map-frame::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(18, 62, 74, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 62, 74, .08) 1px, transparent 1px);
  background-size: 48px 48px;
  content: "";
}

.google-map {
  position: absolute;
  inset: 0;
  z-index: 1;
  min-height: 520px;
}

.map-consent {
  position: absolute;
  inset: auto 28px 28px 28px;
  z-index: 2;
  display: grid;
  gap: 12px;
  max-width: 460px;
  padding: 22px;
  background: rgba(250, 250, 247, .96);
  border-left: 6px solid var(--orange);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.map-consent.is-hidden {
  display: none;
}

.map-consent h3 {
  margin: 0;
  font-size: clamp(26px, 2vw, 34px);
}

.map-consent p,
.map-consent small {
  margin: 0;
  color: var(--slate);
}

.map-consent code {
  color: var(--blue-deep);
  font-weight: 800;
}

.map-load-button {
  justify-self: start;
  min-height: 46px;
  padding: 10px 16px;
  border: 1px solid var(--orange);
  background: var(--orange);
  border-radius: 4px;
  color: var(--white);
  font-weight: 800;
  cursor: pointer;
}

.map-load-button:hover,
.map-load-button:focus-visible {
  background: var(--blue-deep);
  border-color: var(--blue-deep);
}

.map-info-window {
  display: grid;
  gap: 8px;
  max-width: 250px;
  color: var(--ink);
  font-family: "Poppins", sans-serif;
}

.map-info-window strong {
  color: var(--blue-deep);
  font-size: 22px;
  line-height: 1.05;
}

.map-info-window p {
  margin: 0;
  color: var(--slate);
}

.map-info-window a {
  color: var(--blue-deep);
  font-weight: 800;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}

.map-marker {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: var(--marker-color, var(--orange));
  border: 3px solid var(--white);
  border-radius: 50% 50% 50% 0;
  box-shadow: 0 8px 20px rgba(19, 36, 45, .26);
  transform: rotate(-45deg);
}

.map-marker::after {
  width: 12px;
  height: 12px;
  background: var(--white);
  border-radius: 50%;
  content: "";
}

.map-marker span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.plan-preview i {
  position: absolute;
  border-radius: 999px;
  transform-origin: center;
}

.map-info-window a,
.text-link,
.map-sidebar a,
.measure-item a {
  color: var(--blue-deep);
  font-weight: 800;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}

.map-sidebar {
  padding: 26px;
  background: var(--blue-deep);
  color: var(--white);
}

.map-sidebar h3 {
  color: var(--white);
  font-size: 34px;
}

.legend {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0 0 28px;
  list-style: none;
}

.legend li {
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 800;
}

.legend-dot {
  width: 16px;
  height: 16px;
  border: 3px solid var(--white);
  border-radius: 50%;
}

.side-note {
  padding: 18px;
  background: rgba(255,255,255,.09);
  border-left: 4px solid var(--green);
}

.side-note a {
  color: var(--white);
}

.district-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.district-card {
  position: relative;
  min-height: 255px;
  padding: 22px;
  overflow: hidden;
  border-radius: var(--radius);
  color: var(--white);
  text-decoration: none;
}

.district-card::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255,255,255,.1), transparent 42%),
    repeating-linear-gradient(45deg, rgba(255,255,255,.06) 0 1px, transparent 1px 22px);
  content: "";
}

.district-card::after {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 7px;
  background: var(--orange);
  content: "";
}

.district-card > * {
  position: relative;
  z-index: 1;
}

.district-card h3 {
  margin: 50px 0 14px;
  color: var(--white);
  font-size: 30px;
}

.district-card p {
  margin: 0 0 24px;
}

.district-card .count {
  position: absolute;
  top: 20px;
  right: 20px;
  font-family: "Poppins", sans-serif;
  font-size: 45px;
  font-weight: 700;
  line-height: .8;
}

.deep { background: var(--blue-deep); }
.water { background: var(--blue-river); }
.green { background: var(--green); }
.slate { background: var(--slate); }

.measure-section {
  padding-top: 22px;
}

.related-section {
  padding-top: 20px;
}

.measure-list {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.section-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 24px;
}

.primary-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 18px;
  background: var(--orange);
  border: 1px solid var(--orange);
  border-radius: 4px;
  color: var(--white);
  font-weight: 800;
  text-decoration: none;
}

.primary-link:hover {
  background: var(--blue-deep);
  border-color: var(--blue-deep);
  color: var(--white);
}

.measure-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(230px, .45fr) auto;
  gap: 22px;
  align-items: center;
  min-width: 0;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 6px solid var(--orange);
  border-radius: var(--radius);
  transition: transform .2s ease, box-shadow .2s ease;
}

.measure-item > * {
  min-width: 0;
}

.measure-item:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.measure-item h3 {
  margin-bottom: 6px;
  font-size: 20px;
}

.measure-item p {
  margin: 0;
}

.measure-item h3,
.measure-item p,
.measure-item dd,
.measure-item a {
  overflow-wrap: anywhere;
}

.measure-item dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.measure-item dt {
  color: var(--slate);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.measure-item dd {
  margin: 0;
  font-weight: 700;
}

.detail-section {
  display: grid;
  gap: 22px;
}

.detail-hero {
  padding: clamp(28px, 5vw, 46px);
  background: var(--blue-deep);
  border-radius: var(--radius);
  color: var(--white);
}

.detail-hero h1,
.detail-hero h2 {
  margin: 0;
  color: var(--white);
  font-size: clamp(46px, 6vw, 82px);
  font-weight: 700;
  line-height: 1;
}

.detail-hero p:not(.section-kicker) {
  margin: 8px 0 0;
  font-size: 22px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.meta-row span:not(.status-pill) {
  padding: 5px 10px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 4px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 18px;
}

.detail-grid > * {
  min-width: 0;
}

.project-card,
.contact-card {
  padding: 26px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.project-card h3,
.contact-card h3 {
  font-size: 34px;
}

.plan-preview {
  position: relative;
  min-height: 210px;
  margin-top: 24px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(30, 127, 154, .17), rgba(120, 162, 47, .2)),
    var(--mist);
  border: 1px solid var(--line);
}

.plan-preview span {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 1;
  padding: 4px 9px;
  background: var(--blue-deep);
  color: var(--white);
  font-weight: 800;
}

.plan-preview i:nth-child(2) {
  top: 50%;
  left: 8%;
  width: 86%;
  height: 12px;
  background: var(--orange);
  transform: rotate(-9deg);
}

.plan-preview i:nth-child(3) {
  top: 20%;
  left: 55%;
  width: 12px;
  height: 68%;
  background: var(--blue-river);
  transform: rotate(11deg);
}

.plan-preview i:nth-child(4) {
  top: 62%;
  left: 20%;
  width: 50%;
  height: 8px;
  background: var(--green);
  transform: rotate(17deg);
}

.detail-map-card {
  position: relative;
  min-height: 320px;
  margin-top: 24px;
  overflow: hidden;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.detail-map-heading {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  display: grid;
  gap: 7px;
  max-width: min(320px, calc(100% - 32px));
  padding: 14px;
  background: rgba(250, 250, 247, .96);
  border-left: 5px solid var(--orange);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.detail-map-heading strong {
  color: var(--blue-deep);
  font-size: 22px;
  line-height: 1.05;
}

.detail-google-map {
  position: absolute;
  inset: 0;
  min-height: 320px;
}

.detail-map-message {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 2;
  margin: 0;
  padding: 12px 14px;
  background: rgba(250, 250, 247, .96);
  border-left: 4px solid var(--green);
  border-radius: var(--radius);
  color: var(--slate);
  font-weight: 700;
}

.detail-map-message.is-hidden {
  display: none;
}

.contact-card {
  border-top: 6px solid var(--green);
}

.contact-card div + div {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.contact-card p {
  margin: 4px 0 0;
}

#contacts h2 {
  font-size: clamp(28px, 2vw, 64px);
}

.contact-card a {
  color: var(--blue-deep);
  font-weight: 800;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}

.accordion-list {
  display: grid;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.accordion-list button {
  min-height: 56px;
  padding: 16px 20px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: var(--white);
  color: var(--blue-deep);
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.accordion-list button::before {
  margin-right: 10px;
  color: var(--orange);
  content: "+";
}

.accordion-list button[aria-expanded="true"]::before {
  content: "-";
}

.accordion-panel {
  padding: 0 20px 18px 46px;
  background: var(--white);
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.story-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 310px;
  padding: 28px;
  overflow: hidden;
  background: var(--blue-deep);
  border-radius: var(--radius);
  color: var(--white);
  text-decoration: none;
}

.story-card::before {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 74% 35%, rgba(242, 140, 40, .8) 0 10%, transparent 11%),
    radial-gradient(circle at 79% 49%, rgba(250, 250, 247, .42) 0 7%, transparent 8%),
    linear-gradient(120deg, rgba(10, 48, 59, .92), rgba(18, 62, 74, .52)),
    repeating-linear-gradient(145deg, rgba(255,255,255,.06) 0 2px, transparent 2px 20px);
  content: "";
}

.story-card.plate::before {
  background:
    radial-gradient(circle at 76% 46%, rgba(120, 162, 47, .85) 0 13%, transparent 14%),
    radial-gradient(circle at 63% 58%, rgba(250, 250, 247, .35) 0 8%, transparent 9%),
    linear-gradient(120deg, rgba(10, 48, 59, .93), rgba(30, 127, 154, .56)),
    repeating-linear-gradient(145deg, rgba(255,255,255,.06) 0 2px, transparent 2px 20px);
}

.story-card > * {
  position: relative;
  z-index: 1;
}

.story-card span {
  width: max-content;
  margin-bottom: 12px;
  padding: 5px 9px;
  background: var(--orange);
  color: var(--white);
  font-weight: 800;
}

.story-card h3 {
  max-width: 520px;
  margin: 0;
  color: var(--white);
  font-size: clamp(34px, 4vw, 52px);
}

.story-card-image img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-card-image::before {
  z-index: 1;
  background: linear-gradient(180deg, rgba(10, 48, 59, .12), rgba(10, 48, 59, .88));
}

.social-section {
  padding-top: 20px;
}

.social-wall {
  position: relative;
  margin-top: 28px;
  padding: 22px 0 6px;
  border-top: 1px solid var(--line);
}

.social-controls {
  position: absolute;
  top: -72px;
  right: 0;
  display: flex;
  gap: 8px;
}

.social-controls button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--blue-deep);
  cursor: pointer;
}

.social-controls button:hover {
  border-color: var(--orange);
  background: var(--mist);
}

.social-controls svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 2.4;
}

.social-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 18px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--blue-river) var(--mist);
}

.social-card {
  flex: 0 0 min(360px, calc(100vw - 56px));
  min-width: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  scroll-snap-align: start;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.social-card:hover {
  border-color: rgba(242, 140, 40, .6);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.social-card a {
  display: grid;
  gap: 16px;
  height: 100%;
  padding: 14px;
  text-decoration: none;
}

.social-visual {
  position: relative;
  display: block;
  aspect-ratio: 1 / .82;
  overflow: hidden;
  background: var(--blue-deep);
  border-radius: 6px;
}

.social-visual::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255,255,255,.16), transparent 42%),
    repeating-linear-gradient(45deg, rgba(255,255,255,.08) 0 1px, transparent 1px 24px);
  content: "";
}

.social-visual i {
  position: absolute;
  display: block;
  background: rgba(255, 255, 255, .72);
}

.social-visual i:nth-child(1) {
  top: 22%;
  left: 12%;
  width: 64%;
  height: 10px;
  transform: rotate(-12deg);
}

.social-visual i:nth-child(2) {
  right: 16%;
  bottom: 18%;
  width: 44%;
  height: 44%;
  border: 10px solid rgba(255, 255, 255, .62);
  background: transparent;
}

.social-visual i:nth-child(3) {
  bottom: 0;
  left: 0;
  width: 100%;
  height: 8px;
  background: var(--orange);
}

.visual-green {
  background: linear-gradient(135deg, var(--green), var(--blue-deep));
}

.visual-orange {
  background: linear-gradient(135deg, var(--orange), var(--blue-deep));
}

.visual-blue {
  background: linear-gradient(135deg, var(--blue-river), var(--slate));
}

.visual-slate {
  background: linear-gradient(135deg, var(--slate), var(--blue-dark));
}

.social-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--slate);
  font-size: 14px;
  font-weight: 700;
}

.social-meta span::before {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 7px;
  background: var(--orange);
  content: "";
}

.social-card h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.12;
}

.social-card p {
  margin: -6px 0 0;
  color: var(--slate);
}

.site-footer {
  padding: 40px clamp(18px, 4vw, 56px);
  background: var(--blue-dark);
  color: var(--white);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: start;
  width: min(1240px, 100%);
  margin: 0 auto;
}

.footer-brand strong {
  display: block;
  font-size: 24px;
  line-height: 1.1;
}

.site-footer p {
  max-width: 760px;
  margin: 8px 0 0;
  color: rgba(255,255,255,.76);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 18px;
  max-width: 560px;
}

.footer-links a,
.footer-links button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--white);
  font: inherit;
  font-weight: 800;
  text-align: left;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  cursor: pointer;
}

.footer-links a:hover,
.footer-links button:hover,
.footer-links a:focus-visible,
.footer-links button:focus-visible {
  color: var(--orange);
}

@media (max-width: 980px) {
  .main-nav {
    display: none;
  }

  .brand-row {
    gap: 16px;
  }

  .brand-stack {
    flex-wrap: wrap;
  }

  .logo-city img {
    width: 50px;
  }

  .logo-works img {
    width: 210px;
  }

  .menu-button {
    display: grid;
    gap: 3px;
    justify-items: center;
    padding: 8px;
    border: 0;
    background: transparent;
    color: var(--blue-deep);
    font-size: 13px;
    font-weight: 800;
  }

  .menu-button span {
    display: block;
    width: 32px;
    height: 3px;
    background: var(--blue-deep);
  }

  .hero-grid,
  .intro-section,
  .map-shell,
  .detail-grid,
  .story-grid,
  .page-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-grid {
    align-items: center;
    min-height: auto;
    padding: 64px 0;
  }

  .status-board {
    max-width: 620px;
  }

  .district-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .district-directory,
  .story-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .story-chapters section {
    grid-template-columns: minmax(0, 1fr);
  }

  .story-chapters section:nth-child(even) figure {
    order: 0;
  }

  .measure-item {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .social-controls {
    position: static;
    justify-content: flex-end;
    margin-bottom: 12px;
  }

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

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

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .brand-row,
  .main-nav {
    padding-inline: 14px;
  }

  .brand-stack {
    gap: 14px;
  }

  .logo-city img {
    width: 42px;
  }

  .logo-works img {
    width: min(178px, 54vw);
  }

  .hero {
    min-height: 0;
  }

  .hero-overlay {
    background: linear-gradient(90deg, rgba(10, 48, 59, .96), rgba(18, 62, 74, .8));
  }

  .search-input {
    grid-template-columns: 1fr 52px;
  }

  .board-header,
  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .district-grid {
    grid-template-columns: 1fr;
  }

  .district-directory,
  .story-row {
    grid-template-columns: 1fr;
  }

  .page-hero {
    min-height: 0;
  }

  .page-hero h1 {
    font-size: clamp(40px, 12vw, 58px);
  }

  .story-figure {
    min-height: 260px;
  }

  .story-figure img {
    min-height: 260px;
  }

  .story-chapters section {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .google-map-frame,
  .google-map {
    min-height: 430px;
  }

  .map-consent {
    inset: auto 14px 14px 14px;
    padding: 18px;
  }

  .social-track {
    gap: 12px;
  }

  .social-card {
    flex-basis: min(290px, 82vw);
  }
}
