:root {
  color-scheme: light;
  --bg: #f7f4ee;
  --text: #171717;
  --muted: #64615b;
  --panel: #ffffff;
  --line: rgba(23, 23, 23, 0.14);
  --accent: #1b7f52;
  --accent-strong: #0f5f3b;
  --abend: #f28a24;
  --ink: #11151a;
  --blue: #2f5f8f;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(23, 23, 23, 0.08);
  background: rgba(247, 244, 238, 0.92);
  backdrop-filter: blur(16px);
}

.brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  color: var(--abend);
  font-size: 21px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
}

.brand span {
  color: var(--ink);
}

.brand em {
  color: var(--accent);
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--text);
}

.hero {
  min-height: calc(100svh - 58px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  position: relative;
  overflow: hidden;
  padding: clamp(80px, 13vh, 150px) clamp(18px, 4vw, 56px) clamp(56px, 10vh, 96px);
  background:
    linear-gradient(180deg, rgba(17, 21, 26, 0.22), rgba(17, 21, 26, 0.7)),
    url("https://tile.openstreetmap.org/12/2202/1345.png");
  background-size: cover;
  background-position: center;
  color: #fff;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 21, 26, 0.92), rgba(17, 21, 26, 0.54) 52%, rgba(17, 21, 26, 0.22)),
    linear-gradient(0deg, rgba(17, 21, 26, 0.82), transparent 42%);
}

.hero-copy,
.hero-visual {
  position: relative;
  z-index: 1;
}

.hero-copy {
  max-width: 820px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--abend);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(42px, 9vw, 92px);
  line-height: 0.98;
}

.hero p:not(.eyebrow) {
  max-width: 650px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(18px, 2.4vw, 22px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 850;
  text-decoration: none;
}

.button-primary {
  background: var(--accent);
  color: #fff;
}

.button-primary:hover {
  background: var(--accent-strong);
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.button-secondary-dark {
  border-color: var(--line);
  color: var(--text);
}

.hero-visual {
  width: min(420px, 44vw);
  min-width: 280px;
  position: absolute;
  right: clamp(18px, 4vw, 56px);
  bottom: clamp(28px, 6vh, 64px);
  opacity: 0.92;
}

.route-card {
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  padding: 14px;
  background: rgba(17, 21, 26, 0.58);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
}

.route-card span {
  display: block;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.route-card svg {
  display: block;
  width: 100%;
  height: auto;
}

.city-grid {
  fill: none;
  stroke: rgba(255, 255, 255, 0.18);
  stroke-width: 3;
}

.route-line {
  fill: none;
  stroke: #29d391;
  stroke-linecap: round;
  stroke-width: 10;
}

.route-point {
  fill: #fff;
  stroke: #29d391;
  stroke-width: 5;
}

.route-point.is-live {
  fill: var(--abend);
}

.project-teaser {
  max-width: 690px;
  display: grid;
  gap: 10px;
  margin-top: 28px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  padding: 16px;
  background: rgba(17, 21, 26, 0.6);
  backdrop-filter: blur(10px);
}

.project-teaser span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-teaser strong {
  font-size: clamp(22px, 4vw, 36px);
  line-height: 1.05;
}

.project-teaser ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.project-teaser li {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 6px 10px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  font-weight: 750;
}

.section {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(52px, 8vw, 96px) 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 28px;
}

.section-heading p:not(.eyebrow) {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 19px;
}

.section h2 {
  margin: 0;
  font-size: clamp(31px, 5vw, 58px);
  line-height: 1.02;
}

.story-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(32px, 7vw, 86px);
}

.story-text {
  display: grid;
  gap: 18px;
  color: #282828;
  font-size: 18px;
}

.story-text p,
.goal-band p,
.tracker-copy p,
.support-section p,
.chapter-grid p,
.berlin-section p,
.roadmap-grid p,
.timeline p {
  margin: 0;
}

.chapter-section {
  border-top: 1px solid var(--line);
}

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

.chapter-grid article {
  min-height: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: #fff;
}

.chapter-grid h3 {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.15;
}

.chapter-grid p {
  color: var(--muted);
}

.goal-band,
.tracker-section,
.support-section,
.berlin-section,
.profile-teaser-section,
.content-teaser-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(260px, 1.05fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  border-top: 1px solid var(--line);
}

.goal-band p,
.tracker-copy p,
.support-section p,
.berlin-section p,
.profile-teaser-copy p {
  color: var(--muted);
  font-size: 19px;
}

.tracker-section {
  border-bottom: 1px solid var(--line);
}

.gpt-section {
  border-top: 1px solid var(--line);
}

.gpt-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.82fr);
  gap: 14px;
}

.gpt-card {
  display: grid;
  gap: 16px;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(22px, 4vw, 34px);
  background: var(--panel);
  box-shadow: 0 18px 48px rgba(17, 21, 26, 0.08);
}

.gpt-card h3 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.08;
}

.gpt-card p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.gpt-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.gpt-card-muted {
  background: #f2eadf;
}

.tracker-copy {
  display: grid;
  gap: 18px;
  justify-items: start;
}

.profile-teaser-copy {
  display: grid;
  gap: 18px;
  justify-items: start;
}

.status-preview,
.support-metric,
.roadmap-grid article,
.profile-mini-card,
.profile-card,
.service-card,
.profile-summary {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 18px 48px rgba(17, 21, 26, 0.08);
}

.status-preview {
  display: grid;
  gap: 8px;
  padding: clamp(22px, 4vw, 34px);
}

.profile-mini-card {
  display: grid;
  gap: 14px;
  padding: clamp(22px, 4vw, 34px);
}

.profile-mini-card span,
.status-preview span,
.support-metric span,
.roadmap-grid span,
.service-card span,
.profile-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-preview strong {
  color: var(--accent);
  font-size: clamp(32px, 6vw, 58px);
  line-height: 1;
}

.profile-mini-card strong {
  color: var(--accent);
  font-size: clamp(32px, 6vw, 58px);
  line-height: 1.02;
}

.profile-mini-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.timeline {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 12px 24px;
  align-items: baseline;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.timeline time {
  color: var(--blue);
  font-weight: 900;
}

.timeline strong {
  font-size: 20px;
}

.timeline p {
  grid-column: 2;
  color: var(--muted);
}

.support-metric {
  padding: clamp(22px, 4vw, 34px);
}

.berlin-section {
  border-bottom: 1px solid var(--line);
}

.support-metric strong {
  display: block;
  margin: 6px 0 0;
  color: var(--abend);
  overflow-wrap: anywhere;
  font-size: clamp(32px, 6vw, 58px);
  line-height: 1.02;
}

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.roadmap-grid article {
  padding: 18px;
}

.roadmap-grid h3 {
  margin: 12px 0 10px;
  font-size: 20px;
  line-height: 1.15;
}

.legal-main {
  min-height: calc(100svh - 58px);
}

.legal-section {
  padding-top: clamp(56px, 9vw, 96px);
}

.legal-section h1 {
  margin: 0;
  font-size: clamp(42px, 8vw, 82px);
  line-height: 0.98;
}

.legal-card {
  max-width: 760px;
  display: grid;
  gap: 26px;
  margin-top: 32px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.legal-card section + section {
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.legal-card h2 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.2;
}

.legal-card p,
.legal-card address {
  margin: 0;
  color: var(--muted);
  font-style: normal;
}

.legal-card a {
  color: var(--accent-strong);
  font-weight: 800;
}

.legal-updated {
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.profile-main {
  min-height: calc(100svh - 58px);
}

.profile-hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: center;
  padding-top: clamp(56px, 9vw, 96px);
}

.profile-hero-copy {
  display: grid;
  gap: 20px;
  justify-items: start;
}

.profile-hero-copy h1 {
  margin: 0;
  font-size: clamp(48px, 9vw, 96px);
  line-height: 0.95;
}

.profile-hero-copy p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(19px, 2.6vw, 23px);
}

.profile-summary {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 4vw, 34px);
}

.profile-summary strong {
  color: var(--accent);
  font-size: clamp(28px, 5vw, 46px);
  line-height: 1.04;
}

.profile-summary dl {
  display: grid;
  gap: 14px;
  margin: 0;
}

.profile-summary div {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.profile-summary dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-summary dd {
  margin: 4px 0 0;
  font-weight: 800;
}

.profile-section {
  border-top: 1px solid var(--line);
}

.profile-card-grid,
.profile-service-grid {
  display: grid;
  gap: 14px;
}

.profile-card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.profile-service-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.profile-card,
.service-card {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 20px;
}

.profile-card h3,
.service-card h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.15;
}

.profile-card p,
.service-card p {
  margin: 0;
  color: var(--muted);
}

.service-card strong,
.service-card a {
  align-self: end;
  color: var(--accent-strong);
  font-weight: 900;
  text-decoration: none;
}

.service-card-linked {
  background: #f2eadf;
}

.profile-highlight {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 1.2fr);
  gap: clamp(28px, 5vw, 64px);
  border-top: 1px solid var(--line);
}

.profile-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.profile-list li {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 12px 24px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.profile-list strong {
  color: var(--blue);
}

.profile-list span {
  color: var(--muted);
}

.content-main {
  min-height: calc(100svh - 58px);
}

.posts-hero-section,
.admin-hero-section {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding-top: clamp(56px, 9vw, 96px);
}

.posts-hero-section h1,
.admin-hero-section h1,
.post-detail h1 {
  margin: 0;
  font-size: clamp(42px, 8vw, 82px);
  line-height: 0.98;
}

.posts-section,
.comments-section,
.comment-form-section {
  border-top: 1px solid var(--line);
}

.post-list {
  display: grid;
  gap: 14px;
}

.post-card {
  display: grid;
  gap: 14px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 18px 48px rgba(17, 21, 26, 0.08);
}

.post-card h3 {
  margin: 0;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.05;
}

.post-card p,
.post-lead,
.post-body p,
.post-source,
.comment-card p,
.admin-panel p,
.admin-comment p {
  margin: 0;
  color: var(--muted);
}

.post-meta,
.post-card-footer,
.comment-card header,
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}

.post-meta span,
.post-meta time,
.post-card-footer span,
.comment-card time,
.admin-comment span,
.admin-post-list span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.post-card-footer {
  justify-content: space-between;
}

.post-card-footer a,
.post-source a,
.admin-post-list a {
  color: var(--accent-strong);
  font-weight: 900;
  text-decoration: none;
}

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

.post-lead {
  max-width: 800px;
  font-size: clamp(19px, 2.6vw, 23px);
}

.post-body {
  display: grid;
  gap: 18px;
  max-width: 820px;
  font-size: 18px;
}

.notice {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.notice strong {
  font-size: 18px;
}

.notice p {
  margin: 0;
  color: var(--muted);
}

.notice-success {
  border-color: rgba(27, 127, 82, 0.35);
  background: #eef7f2;
}

.notice-warning {
  border-color: rgba(242, 138, 36, 0.42);
  background: #fff5ea;
}

.comment-list,
.admin-comment-list,
.admin-post-list,
.admin-stack {
  display: grid;
  gap: 14px;
}

.comment-card,
.admin-panel,
.admin-comment,
.admin-post-list article,
.form-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 18px 48px rgba(17, 21, 26, 0.08);
}

.comment-card {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.form-card {
  max-width: 820px;
  display: grid;
  gap: 16px;
  padding: clamp(22px, 4vw, 34px);
}

.form-card h2,
.admin-panel h2 {
  margin: 0;
  font-size: clamp(24px, 4vw, 36px);
  line-height: 1.1;
}

.form-field {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 850;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

.form-field textarea {
  resize: vertical;
}

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

.hidden-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.compact-section {
  padding-top: 0;
  padding-bottom: 0;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
  gap: 18px;
  align-items: start;
  border-top: 1px solid var(--line);
}

.admin-panel,
.admin-comment,
.admin-post-list article {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.admin-comment small {
  color: var(--muted);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 28px clamp(18px, 4vw, 56px);
  background: var(--ink);
  color: #fff;
}

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

.site-footer a {
  color: #fff;
  font-weight: 850;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

@media (max-width: 900px) {
  .hero-visual {
    width: min(320px, 70vw);
    position: relative;
    right: auto;
    bottom: auto;
    margin-bottom: 28px;
  }

  .story-section,
  .goal-band,
  .gpt-grid,
  .tracker-section,
  .support-section,
  .berlin-section,
  .profile-teaser-section,
  .content-teaser-section,
  .profile-hero-section,
  .profile-highlight,
  .admin-layout {
    grid-template-columns: 1fr;
  }

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

  .roadmap-grid,
  .profile-card-grid,
  .profile-service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: auto;
    padding-top: 54px;
  }

  .hero h1 {
    font-size: clamp(40px, 14vw, 60px);
  }

  .button {
    width: 100%;
  }

  .timeline li {
    grid-template-columns: 1fr;
  }

  .timeline p {
    grid-column: auto;
  }

  .profile-list li {
    grid-template-columns: 1fr;
  }

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

  .roadmap-grid,
  .profile-card-grid,
  .profile-service-grid {
    grid-template-columns: 1fr;
  }
}
