/* Liniennetzplan: Linien, Haltestellen, Aushänge. Nur 0/45/90 Grad. */
@font-face { font-family: "Mulish"; font-weight: 200 1000; font-style: normal; font-display: swap; src: url("../fonts/mulish.woff2") format("woff2"); }
@font-face { font-family: "Mulish"; font-weight: 200 1000; font-style: italic; font-display: swap; src: url("../fonts/mulish-italic.woff2") format("woff2"); }

:root {
  --signal: #67bde4;
  --ink: #00344f;
  --paper: #f4f4f3;
  --white: #ffffff;
  --mute: #53565a;
  --l-firma: #a11a48;
  --l-karriere: #00827e;
  --l-praxis: #0060ab;
  --l-teams: #b1cd2f;
  --l-wissen: #e89300;
  --h-ai: #978473;
  --h-consult: #0060ab;
  --h-manufacture: #67bde4;
  --h-plm: #efc041;
  --h-protect: #65bcac;
  --h-sustain: #b1cd2f;
  --h-transform: #a11a48;
  --line: var(--signal);
  --on: var(--ink);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --display: "Mulish", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Mulish", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gut: clamp(1rem, 4vw, 2rem);
  --i-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3'%3E%3Cpath d='M7 17L17 7M9 7h8v8'/%3E%3C/svg%3E");
  --i-plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.5'%3E%3Cpath d='M12 4v16M4 12h16'/%3E%3C/svg%3E");
  --i-minus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.5'%3E%3Cpath d='M4 12h16'/%3E%3C/svg%3E");
  --max: 72rem;
}
body.l-firma { --line: var(--l-firma); --on: #fff; }
body.l-karriere { --line: var(--l-karriere); --on: #fff; }
body.l-praxis { --line: var(--l-praxis); --on: #fff; }
body.l-teams { --line: var(--l-teams); --on: var(--ink); }
body.l-wissen { --line: var(--l-wissen); --on: var(--ink); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-color: var(--ink) var(--paper); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.5 var(--body);
  caret-color: var(--ink);
  -webkit-tap-highlight-color: transparent;
}
body.home { background: var(--signal); }
::selection { background: var(--ink); color: var(--signal); }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 6px #fff; border-radius: 4px; }
p { margin: 0 0 0.75rem; }
ul, ol { margin: 0 0 0.75rem; padding-left: 1.25rem; }
li { margin-bottom: 0.3rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--gut); top: -4rem; z-index: 50; background: var(--ink); color: var(--signal); padding: 0.7rem 1rem; font-weight: 700; }
.skip:focus { top: 0.5rem; }

/* ---- Kopfband in Linienfarbe ---- */
.band { background: var(--line); color: var(--on); }
.band__in { max-width: var(--max); margin: 0 auto; padding: 0.75rem var(--gut) 1.75rem; }
.topbar { position: sticky; top: 0; z-index: 30; background: var(--line); color: var(--on); }
.top { max-width: var(--max); margin: 0 auto; display: flex; align-items: center; gap: 1rem; padding: 0.35rem var(--gut); }
.mark { font: 800 1.35rem/1 var(--display); text-decoration: none; letter-spacing: -0.01em; margin-right: auto; }
.mark span { font-weight: 700; opacity: 0.85; }
.top__link { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 0.15rem; font-weight: 700; text-decoration: none; border-bottom: 3px solid transparent; }
.top__link:hover { border-bottom-color: currentColor; }

/* Linienband mit Haltestellen */
.strip { margin: 0.25rem 0 1rem; }
.strip ol { list-style: none; margin: 0; padding: 1.1rem 0.5rem 0.7rem; display: flex; align-items: flex-start; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
.strip ol::-webkit-scrollbar { display: none; }
.strip li { position: relative; flex: 1 0 5.6rem; margin: 0; text-align: center; scroll-snap-align: center; }
.strip li::before { content: ""; position: absolute; top: 1.625rem; left: 0; right: 0; height: 0.75rem; background: var(--on); transform-origin: left; }
.strip li:nth-child(2)::before { left: 0; }
.strip li.term { flex: 0 0 3.4rem; }
.strip li.term::before { left: 50%; }
.strip li:last-child::before { right: 50%; }
.strip a { position: relative; display: flex; flex-direction: column; align-items: center; padding: 0.35rem 0.25rem 0.25rem; text-decoration: none; min-height: 4.25rem; }
.badge {
  display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; margin-top: 0.45rem; border-radius: 50%; position: relative; z-index: 1;
  background: var(--on); color: var(--line); font: 800 1.35rem/1 var(--display);
}
.dot { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; margin: 0.45rem 0 0.2rem; position: relative; }
.dot::before { content: ""; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--white); border: 0.3rem solid var(--ink); }
.strip .lbl { display: block; font: 600 0.9375rem/1.1 var(--body); overflow-wrap: anywhere; }
.strip [aria-current="page"] .dot::before { width: 2.3rem; height: 2.3rem; background: var(--signal); border-width: 0.4rem; }
.strip [aria-current="page"] .lbl { font-weight: 800; }
.here {
  position: absolute; left: 50%; top: -0.2rem; transform: translateX(-50%); z-index: 2; white-space: nowrap;
  background: var(--ink); color: var(--signal); font: 700 0.75rem/1 var(--body); padding: 0.28rem 0.5rem; border-radius: 4px;
}
.xfer { display: inline-grid; place-items: center; width: 1.4rem; height: 1.4rem; margin-left: 0.25rem; border-radius: 50%; font: 800 0.8125rem/1 var(--display); color: #fff; vertical-align: -0.2em; border: 2px solid var(--ink); }
.xfer.l-firma { background: var(--l-firma); } .xfer.l-karriere { background: var(--l-karriere); } .xfer.l-praxis { background: var(--l-praxis); }
.xfer.l-teams { background: var(--l-teams); } .xfer.l-wissen { background: var(--l-wissen); color: var(--ink); }

.band h1 {
  margin: 0.75rem 0 0; max-width: 18ch; font: 800 clamp(2.25rem, 7vw, 4.5rem)/1.02 var(--display);
  letter-spacing: -0.02em; text-wrap: balance; hyphens: manual;
}
.orig-btn {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; margin-top: 1.25rem; padding: 0.4rem 0.9rem;
  border: 3px solid currentColor; border-radius: 8px; font-weight: 700; text-decoration: none;
}
.orig-btn:hover { background: var(--on); color: var(--line); }
.orig-btn svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 2.4; }

/* ---- Artikel auf der Linie ---- */
.layout { max-width: var(--max); margin: 0 auto; padding: 2rem var(--gut) 3rem; display: grid; gap: 2.5rem; }
@media (min-width: 62rem) { .layout { grid-template-columns: minmax(0, 46rem) minmax(15rem, 1fr); gap: 4rem; } .trans { position: sticky; top: 4.5rem; align-self: start; } }
.article { position: relative; padding-left: 2.6rem; }
.article::before { content: ""; position: absolute; left: 0.5rem; top: 0.6rem; bottom: 0; width: 0.75rem; background: var(--line); }
.article > *:last-child { margin-bottom: 0; }
.stop { position: relative; margin: 2.75rem 0 0; }
.stop::before {
  content: ""; position: absolute; left: -2.6rem; top: 0.2rem; width: 1.75rem; height: 1.75rem; border-radius: 50%;
  background: var(--white); border: 0.35rem solid var(--ink);
}
.article > .intro:first-child { margin-top: 0; }
.stop h2 { margin: 0 0 0.9rem; font: 800 clamp(1.5rem, 4.5vw, 2rem)/1.05 var(--display); letter-spacing: -0.01em; text-wrap: balance; }
.say { max-width: 40rem; margin: 0 0 1.1rem; }
.who { display: flex; align-items: center; gap: 0.5rem; margin: 0 0 0.3rem; font: 700 0.9375rem/1 var(--body); }
.who i { width: 1rem; height: 1rem; border-radius: 50%; background: var(--tc); border: 2px solid var(--ink); }
.say b { font-weight: 700; }
.say ul li::marker, .say ol li::marker { color: var(--line); font-weight: 800; }
.tab { display: inline-block; padding: 0.05rem 0.5rem; background: var(--ink); color: var(--signal); border-radius: 4px; letter-spacing: 0.02em; }

.notice {
  max-width: 40rem; margin: 0 0 1.5rem; padding: 0.85rem 1rem; background: var(--signal); border: 3px solid var(--ink); border-radius: 10px;
  font-size: 1rem; line-height: 1.4;
}
.notice p { margin: 0; }
.notice strong { display: block; width: fit-content; margin-bottom: 0.45rem; padding: 0.2rem 0.5rem; background: var(--ink); color: var(--signal); border-radius: 4px; font: 800 0.9375rem/1 var(--display); letter-spacing: 0.04em; }

.orig { margin: 0.6rem 0 0.9rem; max-width: 40rem; }
.orig summary {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; padding: 0.3rem 0.8rem; cursor: pointer; list-style: none;
  background: var(--ink); color: var(--signal); border-radius: 8px; font-weight: 700; font-size: 0.9375rem;
}
.orig summary::-webkit-details-marker { display: none; }
.orig summary::after { content: ""; width: 0.9rem; height: 0.9rem; background: currentColor; -webkit-mask: var(--i-plus) center / contain no-repeat; mask: var(--i-plus) center / contain no-repeat; }
.orig[open] summary::after { -webkit-mask-image: var(--i-minus); mask-image: var(--i-minus); }
.orig blockquote { margin: 0.5rem 0 0; padding: 0.8rem 1rem; background: var(--white); border: 3px solid var(--ink); border-radius: 10px; font-size: 1rem; }
.orig cite { display: block; margin-top: 0.4rem; font-size: 0.875rem; font-style: normal; font-weight: 600; color: var(--mute); }

/* Haltestellenschilder als Links */
.go { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.4rem 0 0.2rem; }
.pill {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; padding: 0.4rem 0.9rem 0.4rem 0.6rem;
  background: var(--white); color: var(--ink); border: 3px solid var(--ink); border-radius: 10px; font-weight: 700; text-decoration: none; line-height: 1.15;
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.pill::before { content: ""; flex: none; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--line); border: 3px solid var(--ink); }
.pill:hover { background: var(--signal); transform: translateX(3px); }
.pill--solid { background: var(--ink); color: var(--signal); }
.pill--solid::before { background: var(--signal); border-color: var(--signal); box-shadow: inset 0 0 0 3px var(--ink); }
.pill--solid:hover { background: var(--line); color: var(--on); }
.pill[target="_blank"]::after { content: ""; width: 1rem; height: 1rem; background: currentColor; -webkit-mask: var(--i-arrow) center / contain no-repeat; mask: var(--i-arrow) center / contain no-repeat; }

.stamp {
  display: grid; place-items: center; width: 8.25rem; height: 8.25rem; margin: 0.5rem 0 1.25rem; padding: 0.5rem; border-radius: 50%;
  background: var(--signal); border: 0.5rem solid var(--ink); text-align: center; font: 800 1.9rem/0.95 var(--display); letter-spacing: -0.01em;
}
.stamp small { display: block; font-size: 1.25rem; }

/* Umsteigen-Spalte */
.trans h2 { margin: 0 0 0.7rem; font: 800 1.35rem/1 var(--display); }
.trans .go { flex-direction: column; align-items: stretch; }
.trans .pill, .trans .pill--solid { width: 100%; background: var(--white); color: var(--ink); }
.trans .pill:hover { background: var(--signal); }
.trans .pill--solid::before { background: var(--line); border-color: var(--ink); box-shadow: none; }
.next { margin-top: 1.5rem; display: grid; gap: 0.5rem; }
.next a {
  display: block; padding: 0.75rem 0.9rem; border: 3px solid var(--ink); border-radius: 10px; background: var(--line); color: var(--on);
  text-decoration: none; font-weight: 700; transition: transform 0.2s var(--ease);
}
.next a:hover { transform: translateX(3px); }
.next small { display: block; font-weight: 600; opacity: 0.9; }
.next a strong { display: block; font: 800 1.35rem/1.05 var(--display); }

.foot { max-width: var(--max); margin: 0 auto; padding: 1.5rem var(--gut) 2.5rem; border-top: 3px solid var(--ink); font-size: 0.9375rem; line-height: 1.45; color: var(--mute); }
.foot p { max-width: 46rem; }
.foot a { color: var(--ink); font-weight: 600; }
body.home .foot { border-color: var(--ink); color: var(--ink); }

/* ---- Startseite ---- */
.home .band { background: var(--signal); color: var(--ink); }
.home .topbar { background: var(--signal); color: var(--ink); }
.home .band h1 { max-width: 12ch; font-size: clamp(3rem, 12vw, 7.5rem); margin-top: 1rem; }
.lead { max-width: 34rem; margin: 1rem 0 0; font-size: 1.25rem; line-height: 1.35; font-weight: 500; }
.finder { position: relative; display: flex; max-width: 34rem; margin-top: 1.5rem; }
.finder input {
  width: 100%; min-height: 3.5rem; padding: 0.6rem 1rem 0.6rem 3.25rem; border: 4px solid var(--ink); border-radius: 12px; background: var(--white);
  font: 600 1.125rem/1.2 var(--body); color: var(--ink);
}
.finder input::placeholder { color: var(--mute); opacity: 1; }
.finder svg { position: absolute; left: 1rem; top: 50%; width: 1.5rem; height: 1.5rem; transform: translateY(-50%); fill: none; stroke: var(--ink); stroke-width: 2.6; stroke-linecap: round; pointer-events: none; }
.resume { margin: 1rem 0 0; }
.results { max-width: 46rem; margin: 0 auto; padding: 1.5rem var(--gut) 3rem; background: var(--paper); }
.results ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.results li { margin: 0; }
.results a { display: block; padding: 0.8rem 1rem; border: 3px solid var(--ink); border-radius: 10px; background: var(--white); text-decoration: none; }
.results a:hover { background: var(--signal); }
.results strong { display: block; font: 800 1.35rem/1.1 var(--display); }
.results small { display: block; font-size: 0.9375rem; line-height: 1.35; color: var(--mute); }
.results mark { background: var(--signal); color: inherit; padding: 0 0.1em; }
.results__none { font-weight: 600; }

.net { background: var(--paper); padding: 2.5rem 0 3rem; }
.net__in { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.net h2 { margin: 0 0 1.5rem; font: 800 clamp(1.75rem, 5vw, 2.5rem)/1 var(--display); }
.lines { display: grid; gap: 2.5rem 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.ln { --line: var(--signal); --on: var(--ink); }
.ln.l-firma { --line: var(--l-firma); --on: #fff; } .ln.l-karriere { --line: var(--l-karriere); --on: #fff; } .ln.l-praxis { --line: var(--l-praxis); --on: #fff; }
.ln.l-teams { --line: var(--l-teams); --on: var(--ink); } .ln.l-wissen { --line: var(--l-wissen); --on: var(--ink); }
.ln__head { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 0.75rem; padding: 0.7rem 0.9rem; background: var(--line); color: var(--on); border: 3px solid var(--ink); border-radius: 10px; }
.ln__head .badge { width: 2.4rem; height: 2.4rem; font-size: 1.4rem; }
.ln__head h3 { margin: 0; font: 800 1.5rem/1 var(--display); }
.ln__head p { margin: 0.15rem 0 0; font-size: 0.9375rem; line-height: 1.2; font-weight: 600; }
.ln ul { list-style: none; margin: 0; padding: 1rem 0 0 0; position: relative; }
.ln li::before { content: ""; position: absolute; left: 0.5rem; top: 0; bottom: 0; width: 0.75rem; background: var(--line); }
.ln li:first-child::before { top: -1rem; }
.ln li:last-child::before { bottom: auto; height: 1.265rem; }
.ln li { position: relative; margin: 0; padding-left: 2.6rem; }
.ln li a { display: block; position: relative; padding: 0.55rem 0.2rem 0.55rem 0; min-height: 2.75rem; text-decoration: none; }
.ln li a::before {
  content: ""; position: absolute; left: -2.475rem; top: 0.515rem; width: 1.5rem; height: 1.5rem; border-radius: 50%;
  background: var(--white); border: 0.3rem solid var(--ink); transition: background-color 0.2s var(--ease);
}
.ln li a:hover::before, .ln li a:focus-visible::before { background: var(--signal); }
.ln li strong { display: block; font: 800 1.3rem/1.1 var(--display); }
.ln li a:hover strong { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 0.18em; }
.ln li small { display: block; font-size: 0.9375rem; line-height: 1.3; color: var(--mute); }
.ln li.is-last a::after {
  content: "zuletzt hier"; display: inline-block; margin-top: 0.25rem; padding: 0.2rem 0.5rem; background: var(--ink); color: var(--signal); border-radius: 4px; font: 700 0.75rem/1 var(--body);
}

/* ---- Eine Bewegung: die Linie fährt ein ---- */
@media (prefers-reduced-motion: no-preference) {
  .strip li::before { animation: ride 0.5s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms + 120ms); }
  .strip .dot { animation: pop 0.4s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms + 180ms); }
  @keyframes ride { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  @keyframes pop { from { transform: scale(0.2); opacity: 0; } to { transform: scale(1); opacity: 1; } }
}

@media (max-width: 40rem) {
  .band__in { padding-bottom: 1.5rem; }
  .article { padding-left: 2.1rem; }
  .article::before { left: 0.45rem; width: 0.6rem; }
  .stop::before { left: -2.1rem; width: 1.5rem; height: 1.5rem; }
  .top__link--sec { display: none; }
}

/* ---- Startseite: Netzplan im Kopf ---- */
.hero { display: grid; gap: 1.5rem; }
.map { display: none; width: 100%; height: auto; font: 700 17px var(--display); fill: var(--ink); }
@media (min-width: 62rem) {
  .hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 2rem; align-items: center; }
  .map { display: block; margin-top: 1.5rem; }
}

/* ---- Impressum, Datenschutz ---- */
body.l-legal { --line: var(--ink); --on: var(--signal); }
.legal { max-width: 46rem; margin: 0 auto; padding: 2rem var(--gut) 3rem; }
.legal h2 { margin: 2rem 0 0.5rem; font: 800 1.3rem/1.15 var(--display); }
.legal p { max-width: 40rem; }
.ph { background: none; color: inherit; font-weight: 600; }
.legal-links { display: flex; gap: 1.25rem; margin-top: 0.75rem; }
.legal-links a { font-weight: 700; }

/* ---- Mobil ---- */
.ln__head::-webkit-details-marker { display: none; }
.ln__head::after {
  content: ""; flex: none; width: 0.7rem; height: 0.7rem; margin: 0 0.25rem 0 auto; border: solid currentColor; border-width: 0 3px 3px 0;
  transform: rotate(45deg) translateY(-0.15rem); transition: transform 0.2s var(--ease);
}
.ln[open] > .ln__head::after { transform: rotate(-135deg) translateY(-0.15rem); }
@media (min-width: 62rem) { .ln__head { cursor: default; } .ln__head::after { display: none; } }
@media (max-width: 61.99rem) {
  .lines { gap: 0.9rem; }
  .ln ul { padding-top: 0.75rem; }
  .ln:not([open]) { margin-bottom: 0; }
  .ln__head { min-height: 3.5rem; }
  .ln li:first-child::before { top: -0.75rem; }
}
@media (max-width: 40rem) {
  .lead { font-size: 1.125rem; }
  .home .band h1 { font-size: clamp(2.5rem, 13vw, 3.5rem); }
  .band__in { padding-top: 0.5rem; }
  .finder input { font-size: 1rem; }
  .net { padding-top: 1.75rem; }
  .net h2 { font-size: 1.5rem; margin-bottom: 1rem; }
  .strip .lbl { white-space: nowrap; }
  .strip ol { -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); padding-right: 2rem; }
  .pill, .orig-btn, .trans .pill { min-height: 3rem; }
  .layout { padding-top: 1.5rem; }
  .trans .go { gap: 0.5rem; }
}
