@font-face { font-family: "Overpass"; font-weight: 400; font-display: swap; src: url("fonts/overpass-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Overpass"; font-weight: 700; font-display: swap; src: url("fonts/overpass-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Overpass"; font-weight: 800; font-display: swap; src: url("fonts/overpass-latin-800-normal.woff2") format("woff2"); }

:root {
  --paper: #EEF2F5;
  --ink: #142033;
  --muted: #566173;
  --rule: #C9D1DB;
  --request: #0B7A68;
  --deploy: #5B3CC4;
  --gap: 28px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Overpass", system-ui, sans-serif;
  font-size: 1.125rem;
  line-height: 1.55;
}

a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 2px; }
a:hover { text-decoration-color: var(--request); }
:focus-visible { outline: 3px solid var(--request); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.prose { max-width: 64ch; }

/* Hero */
.hero { padding: 96px 0 72px; }
.hero-top {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0 0 28px;
}
.hero h1 {
  margin: 0;
  font-size: clamp(3rem, 9vw, 6rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
}
.hero-photo {
  width: 88px;
  height: 88px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--ink);
}
.hero .lead { font-size: 1.375rem; line-height: 1.45; margin: 0 0 16px; }
.hero .sub { color: var(--muted); margin: 0 0 36px; }

.actions { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.button {
  display: inline-block;
  padding: 14px 24px 11px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
}
.button:hover { background: var(--request); }
.actions a:not(.button) { font-weight: 700; }

/* Sections */
section.block { padding: 64px 0; border-top: 2px solid var(--ink); }
section.block > .wrap > h2 {
  margin: 0 0 12px;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.intro { color: var(--muted); margin: 0 0 48px; }

/* Route map */
.route + .route { margin-top: 56px; }
.route h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 24px;
  font-size: 1.125rem;
  font-weight: 800;
}
.route h3::before {
  content: "";
  width: 36px;
  height: 6px;
  border-radius: 3px;
  background: var(--c);
}
.route--request { --c: var(--request); }
.route--deploy { --c: var(--deploy); }

.line {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}
.stop { position: relative; }
.stop:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 7px;
  width: calc(100% + var(--gap));
  height: 6px;
  background: var(--c);
  transform-origin: left center;
}
.dot {
  position: relative;
  z-index: 1;
  display: block;
  width: 20px;
  height: 20px;
  margin-bottom: 16px;
  border: 4px solid var(--c);
  border-radius: 10px;
  background: var(--paper);
}
.dot--interchange { height: 44px; }
.stop strong { display: block; font-weight: 700; font-size: 1.0625rem; line-height: 1.3; }
.stop strong + strong { margin-top: 2px; }
.stop p { margin: 8px 0 0; color: var(--muted); font-size: 0.96875rem; line-height: 1.5; }
.stop code { font-family: inherit; font-weight: 700; color: var(--ink); }

.live { margin: 28px 0 0; font-size: 0.96875rem; color: var(--muted); min-height: 1.5em; }
.live b { color: var(--request); font-weight: 700; }

/* Work */
.timeline { list-style: none; margin: 0; padding: 0; }
.job { display: grid; grid-template-columns: 200px 1fr; gap: 8px 40px; padding: 28px 0; border-bottom: 1px solid var(--rule); }
.job:first-child { padding-top: 0; }
.job:last-child { border-bottom: 0; }
.when { color: var(--muted); font-size: 1rem; padding-top: 3px; }
.job h3 { margin: 0 0 4px; font-size: 1.25rem; font-weight: 800; line-height: 1.3; }
.job .where { margin: 0 0 12px; color: var(--muted); }
.job ul { margin: 0; padding-left: 1.1em; max-width: 64ch; }
.job li + li { margin-top: 6px; }
.job .note { margin: 0; max-width: 64ch; }

/* Tools */
.tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 32px; margin: 0; }
.tools dt { font-weight: 800; margin-bottom: 6px; }
.tools dd { margin: 0; color: var(--muted); }

/* Next steps */
.todo { list-style: none; margin: 0; padding: 0; max-width: 64ch; }
.todo li { position: relative; padding: 14px 0 14px 40px; border-bottom: 1px solid var(--rule); }
.todo li:last-child { border-bottom: 0; }
.todo li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 17px;
  width: 20px;
  height: 20px;
  border: 4px solid var(--rule);
  border-radius: 10px;
}
.todo li.done::before { border-color: var(--request); background: var(--request); }
.todo li.done { color: var(--muted); }

footer { padding: 48px 0 64px; border-top: 2px solid var(--ink); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 24px; font-weight: 700; }

/* Legal pages (impressum, datenschutz): back-link only, no photo/CTAs.
   The page title is the pasted content's own <h1>, styled below to match. */
.legal-header { padding: 64px 0 32px; }
.legal-header .back { margin: 0; font-weight: 700; }

/* Legal pages: lightly style the generator's own output, incl. its own h1 */
.legal h1 {
  margin: 0 0 32px;
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}
.index {
  list-style: none;
  margin: 0 0 40px;
  padding: 20px 24px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  columns: 2;
  column-gap: 32px;
}
.index li { break-inside: avoid; margin: 0 0 8px; }
.index-link { font-weight: 700; }

.m-elements,
.glossary {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}
.m-elements > li,
.glossary > li {
  padding: 16px 0;
  border-top: 1px solid var(--rule);
}
.m-elements > li:first-child,
.glossary > li:first-child {
  border-top: 0;
  padding-top: 0;
}

.seal {
  margin: 48px 0 0;
  padding-top: 24px;
  border-top: 2px solid var(--ink);
  font-size: 0.875rem;
  color: var(--muted);
}

/* One orchestrated moment: the two lines draw themselves on load */
@media (prefers-reduced-motion: no-preference) {
  .stop:not(:last-child)::after { animation: draw 500ms ease-out both; }
  .dot, .stop strong, .stop p { animation: appear 350ms ease-out both; }
  .stop:nth-child(1) .dot, .stop:nth-child(1) strong, .stop:nth-child(1) p { animation-delay: 150ms; }
  .stop:nth-child(1)::after { animation-delay: 300ms; }
  .stop:nth-child(2) .dot, .stop:nth-child(2) strong, .stop:nth-child(2) p { animation-delay: 650ms; }
  .stop:nth-child(2)::after { animation-delay: 800ms; }
  .stop:nth-child(3) .dot, .stop:nth-child(3) strong, .stop:nth-child(3) p { animation-delay: 1150ms; }
  .stop:nth-child(3)::after { animation-delay: 1300ms; }
  .stop:nth-child(4) .dot, .stop:nth-child(4) strong, .stop:nth-child(4) p { animation-delay: 1650ms; }
  .route--deploy .stop::after, .route--deploy .dot, .route--deploy strong, .route--deploy p { animation-play-state: paused; }
  .route--deploy.go .stop::after, .route--deploy.go .dot, .route--deploy.go strong, .route--deploy.go p { animation-play-state: running; }
}
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes drawDown { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes appear { from { opacity: 0; } to { opacity: 1; } }

/* Phone and narrow screens: lines run downwards */
@media (max-width: 820px) {
  .hero { padding: 64px 0 48px; }
  .hero .lead { font-size: 1.25rem; }
  .hero-top { flex-direction: column; align-items: flex-start; gap: 16px; }
  .hero-photo { order: -1; }
  .line { grid-template-columns: 1fr; gap: 28px; }
  .stop { padding-left: 40px; }
  .dot { position: absolute; left: 0; top: 0; margin: 0; }
  .stop:not(:last-child)::after {
    left: 7px;
    top: 10px;
    width: 6px;
    height: calc(100% + 28px);
    transform-origin: center top;
  }
  .job { grid-template-columns: 1fr; }
  .index { columns: 1; }
}
@media (max-width: 820px) and (prefers-reduced-motion: no-preference) {
  .stop:not(:last-child)::after { animation-name: drawDown; }
}
