/* Astronovilux Group – Leitsystem einer Abfahrtstafel */
@font-face { font-family: "Overpass"; src: url("/assets/overpass-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Overpass Mono"; src: url("/assets/overpass-mono-var.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }

:root {
  --board: #121417;
  --flap: #262a31;
  --fuge: #08090b;
  --board-rule: #2b2f36;
  --chalk: #f1eee6;
  --chalk-2: #a9aeb6;
  --signal: #f2b705;
  --feather: #c8202f;
  --feather-deep: #a3182a;
  --hall: #eef0f2;
  --hall-2: #e1e4e8;
  --ink: #121417;
  --ink-2: #474d56;
  --rule: #c5cbd2;
  --sans: "Overpass", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Overpass Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}

/* Base -------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--hall); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  font-feature-settings: "kern", "liga";
  text-rendering: optimizeLegibility;
  scrollbar-color: var(--ink-2) var(--hall-2);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
::selection { background: var(--signal); color: var(--board); }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 2px; }
p, ul, ol, dl, figure { margin: 0; }
h1, h2, h3 { margin: 0; line-height: 1.05; letter-spacing: -0.025em; text-wrap: balance; font-weight: 800; }
h2 { font-size: clamp(2rem, 4.2vw, 3.25rem); }
h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); letter-spacing: -0.015em; font-weight: 700; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: var(--gutter); top: -60px; z-index: 50; padding: 12px 18px; background: var(--signal); color: var(--board); font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }
.lede { font-size: clamp(1.125rem, 1.5vw, 1.3rem); line-height: 1.5; max-width: 60ch; color: var(--ink-2); }
.dark .lede, .board .lede { color: var(--chalk-2); }
.prose { max-width: 66ch; }
.prose p + p { margin-top: 1em; }
.kicker-free { margin-top: 28px; }

/* Two voices: labels speak in the signage sans; mono is only the board and measured data */
.dep-head, caption, thead th, .compare th[scope="row"], .clock-caption, .board-note, .address, .ledger-cap, .mock-cap {
  font: 600 .875rem/1.4 var(--sans); letter-spacing: .01em; color: var(--ink-2);
}
.dep, .ledger, .status-line, .stack td, .timetable td, .ticket-fares dd, .track-sign, .cell, .ring text { font-feature-settings: "kern" 1, "liga" 0, "zero" 1; }

/* Buttons ------------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: .6em; min-height: 48px; padding: 12px 22px 10px;
  font: 700 1rem/1.2 var(--sans); text-decoration: none; border-radius: 4px; border: 2px solid transparent;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn-action { background: var(--feather); color: #fff; }
.btn-action:hover { background: var(--feather-deep); text-decoration: none; }
.btn-line { border-color: currentColor; color: var(--chalk); }
.btn-line:hover { background: var(--chalk); color: var(--board); text-decoration: none; }
.hall .btn-line, .btn-line.on-hall { color: var(--ink); }
.hall .btn-line:hover, .btn-line.on-hall:hover { background: var(--ink); color: var(--hall); }

/* Header ------------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 30; background: var(--board); background: color-mix(in srgb, var(--board) 94%, transparent); backdrop-filter: saturate(140%) blur(10px); color: var(--chalk); border-bottom: 1px solid var(--board-rule); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand img { width: 40px; height: 48px; object-fit: contain; }
.brand span { font-weight: 800; font-size: 1.05rem; letter-spacing: .01em; line-height: 1.1; }
.brand small { display: block; font: 500 .8rem/1.2 var(--sans); color: var(--chalk-2); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { padding: 10px 12px; font-weight: 600; font-size: .95rem; text-decoration: none; border-radius: 4px; color: var(--chalk-2); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--chalk); background: var(--flap); }
.header-cta { min-height: 44px; padding: 10px 18px 8px; }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 4px; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary svg { width: 26px; height: 26px; }
.menu[open] summary { background: var(--flap); }
.menu-panel { position: absolute; right: 0; top: calc(100% + 12px); width: min(86vw, 320px); background: var(--board); border: 1px solid var(--board-rule); border-radius: 6px; padding: 8px; box-shadow: 0 18px 40px rgb(0 0 0 / .35); }
.menu-panel a { display: block; padding: 14px 14px 12px; font-weight: 600; text-decoration: none; border-radius: 4px; }
.menu-panel a:hover { background: var(--flap); }
.menu-panel .btn { display: flex; justify-content: center; margin-top: 8px; }
@media (max-width: 960px) { .nav, .header-cta.desk { display: none; } .menu { display: block; } }

/* The board ---------------------------------------------------------------- */
.board { background: var(--board); color: var(--chalk); }
.board-hero { padding: clamp(28px, 5vw, 64px) 0 clamp(40px, 6vw, 80px); }
.board-head { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end; }
.board-head h1 { font-size: clamp(2.4rem, 6.2vw, 5rem); line-height: .98; letter-spacing: -0.03em; max-width: 15ch; }
.board-head h1 em { font-style: normal; color: var(--signal); }
.board-head .lede { margin-top: 20px; }
.clock { width: clamp(108px, 12vw, 152px); aspect-ratio: 1; }
.clock-face { fill: var(--chalk); }
.clock-tick { stroke: var(--board); }
.clock-hand { stroke: var(--board); stroke-linecap: butt; transition: transform .3s var(--ease); transform-origin: 100px 100px; }
.clock-caption { margin-top: 10px; text-align: center; color: var(--chalk-2); }

.departures { margin-top: clamp(28px, 4vw, 48px); border-top: 2px solid var(--board-rule); }
.dep-list { list-style: none; padding: 0; margin: 0; }
.dep-head, .dep { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr) minmax(0, 21rem) 2rem; gap: 20px; align-items: center; }
.dep-head { padding: 12px 0 10px; font-size: .8rem; color: var(--chalk-2); }
.dep { position: relative; padding: 14px 0; border-top: 1px solid var(--board-rule); text-decoration: none; color: var(--chalk-2); transition: background-color .25s var(--ease); }
.dep:hover { background: rgb(255 255 255 / .03); text-decoration: none; }
.dep:hover .dep-go { transform: translateX(4px); color: var(--chalk); }
.dep-track { font: 700 1.6rem/1 var(--mono); }
.dep-dest { font: 600 clamp(1.05rem, 2vw, 1.55rem)/1.25 var(--mono); text-transform: uppercase; letter-spacing: .02em; }
.dep-status { font: 500 .9rem/1.35 var(--mono); }
.dep-go { width: 24px; height: 24px; justify-self: end; transition: transform .25s var(--ease); }
.dep.live { color: var(--chalk); }
.dep.live .dep-status { color: var(--signal); }
.dep.now .dep-dest, .dep.now .dep-track { color: var(--signal); }
/* Klappzellen: der Text sitzt auf Zellen mit Mittelfuge */
.flap, .cell { background: linear-gradient(to bottom, transparent calc(50% - .5px), var(--fuge) calc(50% - .5px), var(--fuge) calc(50% + .5px), transparent calc(50% + .5px)), var(--flap); }
.flap { display: inline; padding: .08em .18em .02em; box-decoration-break: clone; -webkit-box-decoration-break: clone; border-radius: 3px; }
.js .flap.tiled { background: none; padding: 0; }
.cellword { white-space: nowrap; display: inline-block; }
/* Real split-flap cell: static halves + two leaves turning in 3D */
.cell { position: relative; display: inline-block; vertical-align: top; width: 1.25ch; height: 1.5em; margin-right: .1em; perspective: 260px; background: none; }
.cell .g { visibility: hidden; display: block; text-align: center; line-height: 1.5em; }
.cell .top, .cell .bot, .cell .ft, .cell .fb { position: absolute; left: 0; right: 0; height: 50%; overflow: hidden; background: var(--flap); text-align: center; }
.cell .in { display: block; height: 1.5em; line-height: 1.5em; padding-top: .06em; }
.cell .top, .cell .ft { top: 0; border-radius: 2px 2px 0 0; transform-origin: 50% 100%; }
.cell .bot, .cell .fb { bottom: 0; border-radius: 0 0 2px 2px; transform-origin: 50% 0; border-top: 1px solid var(--fuge); }
.cell .bot .in, .cell .fb .in { margin-top: -.75em; }
.cell .ft, .cell .fb { backface-visibility: hidden; z-index: 1; visibility: hidden; }
.cell .ft { background-image: linear-gradient(to bottom, transparent 40%, rgb(0 0 0 / .35)); }
.cell .fb { background-image: linear-gradient(to top, transparent 40%, rgb(0 0 0 / .25)); }
.cell.go .ft { visibility: visible; animation: leaf-top 55ms ease-in forwards; }
.cell.go .fb { visibility: visible; transform: rotateX(90deg); animation: leaf-bot 55ms ease-out 55ms forwards; }
@keyframes leaf-top { from { transform: rotateX(0); } to { transform: rotateX(-90deg); } }
@keyframes leaf-bot { from { transform: rotateX(90deg); } to { transform: rotateX(0); } }
.io .platform-sign .track-sign.turn-in { animation: sign-in .6s var(--ease); }
@keyframes sign-in { from { transform: perspective(320px) rotateX(-50deg); } to { transform: perspective(320px) rotateX(0); } }
.board-actions { display: flex; flex-wrap: wrap; gap: 12px 16px; margin-top: clamp(28px, 4vw, 40px); align-items: center; }
.board-note { color: var(--chalk-2); }
.hero-mock { width: min(460px, 40vw); align-self: center; }
.hero-mock .mock-cap { color: var(--chalk-2); }

@media (max-width: 720px) {
  .board-head { grid-template-columns: 1fr; align-items: start; }
  .clock-wrap { display: none; }
  .dep-head { display: none; }
  .dep { grid-template-columns: 3rem minmax(0, 1fr) 1.5rem; gap: 6px 12px; padding: 16px 0; align-items: start; }
  .dep-track { font-size: 1.25rem; grid-row: span 2; }
  .dep-status { grid-column: 2; font-size: .85rem; }
  .dep-go { grid-row: 1 / span 2; grid-column: 3; align-self: center; }
  /* Websites hero: prices before the example draft */
  .hero-flow { display: flex; flex-direction: column; }
  .hero-flow .board-head { display: contents; }
  .hero-flow .departures { order: 1; }
  .hero-flow .board-actions { order: 2; }
  .hero-flow .hero-mock { order: 3; width: 100%; margin-top: 40px; }
}

/* Hall sections ------------------------------------------------------------ */
.section { padding: clamp(64px, 9vw, 128px) 0; }
.section + .section.hall { border-top: 1px solid var(--rule); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; justify-items: start; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head .lede { margin: 0; }
/* Wayfinding sign: the section title is set like a station signpost */
.wayfinder { justify-self: start; align-self: start; width: fit-content; max-width: 100%; display: inline-flex; align-items: center; gap: .45em; padding: .28em .55em .2em .3em; background: var(--ink); color: var(--hall); border-radius: 4px; font-size: clamp(1.6rem, 3.2vw, 2.5rem); letter-spacing: -0.02em; }
.wf-arrow { width: 1.05em; height: 1.05em; flex: none; padding: .14em; background: var(--hall); color: var(--ink); border-radius: 3px; }
.dark .wayfinder { background: var(--chalk); color: var(--board); }
.dark .wf-arrow { background: var(--board); color: var(--chalk); }
.wayfinder span { padding-top: .08em; }

/* Ring line (Kreislauf) */
.ring-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.ring { width: 100%; max-width: 560px; justify-self: center; }
.ring .rail { fill: none; stroke: var(--ink); stroke-width: 12; }
.ring .spoke { stroke: var(--ink-2); stroke-width: 3; stroke-dasharray: 2 9; stroke-linecap: round; }
.ring .stop { fill: var(--hall); stroke: var(--ink); stroke-width: 6; }
.ring .hub { fill: var(--signal); stroke: var(--ink); stroke-width: 6; }
.ring text { font-family: var(--sans); fill: var(--ink); }
.ring .hub-label { font-weight: 800; font-size: 32px; }
.ring .hub-sub { font: 600 17px var(--mono); letter-spacing: .06em; }
.ring .stop-label { font-weight: 800; font-size: 30px; }
.ring .stop-track { font: 700 18px var(--mono); }
.ring .chev { fill: var(--hall); }
.ring.run .spoke { animation: to-core 1.4s linear 3; }
@keyframes to-core { to { stroke-dashoffset: 22; } }
.ring .train { fill: var(--signal); stroke: var(--ink); stroke-width: 4; opacity: 0; }
.ring.run .train { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .ring .train { display: none; } .ring .spoke { animation: none; } }
@media (max-width: 720px) {
  .ring .hub-sub { display: none; }
  .ring .hub-label { font-size: 31px; }
  .ring .stop-label { font-size: 36px; }
  .ring .stop { r: 24px; }
  .ring .stop-track { font-size: 24px; }
}
.stops { list-style: none; padding: 0; display: grid; }
.stops li { display: grid; grid-template-columns: 3.25rem 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid var(--rule); }
.stops li:last-child { border-bottom: 1px solid var(--rule); }
.stops strong { display: block; font-size: 1.1rem; }
.stops p { color: var(--ink-2); font-size: 1rem; }
.track-sign { display: inline-grid; place-items: center; width: 2.6rem; height: 2.6rem; background: var(--ink); color: var(--hall); font: 700 1.2rem/1 var(--mono); border-radius: 3px; padding-top: .12em; }
.track-sign.hub { background: var(--signal); color: var(--ink); }
@media (max-width: 880px) { .ring-layout { grid-template-columns: 1fr; } }

/* Platform (Gleis) sections -------------------------------------------------- */
.platform { padding: clamp(56px, 8vw, 104px) 0; border-top: 1px solid var(--rule); }
.platform.dark { border-top: 0; }
.platform h3 { margin-bottom: 12px; }
.platform-sign { display: flex; align-items: center; gap: 18px; margin-bottom: clamp(24px, 3vw, 36px); }
.platform-sign .track-sign { width: 3.4rem; height: 3.4rem; font-size: 1.6rem; flex: none; }
.platform-sign h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); min-width: 0; }
.status-line { display: inline-block; padding: 7px 12px 5px; background: var(--ink); color: var(--chalk); font: 500 .82rem/1.5 var(--mono); letter-spacing: .06em; border-radius: 3px; }
.status-line b { color: var(--signal); font-weight: 700; white-space: nowrap; }
.dark .status-line, .board .status-line { background: var(--flap); }
.platform-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
@media (max-width: 880px) { .platform-grid { grid-template-columns: 1fr; } }
.list { list-style: none; padding: 0; }
.list li { position: relative; padding: 12px 0 10px; border-top: 1px solid var(--rule); }
.list li:last-child { border-bottom: 1px solid var(--rule); }
.list.route li { padding-left: 28px; }
.list.route li::before { content: ""; position: absolute; left: 2px; top: 1.05em; width: 12px; height: 12px; border: 3px solid var(--ink); border-radius: 50%; background: var(--hall); }
.list.route li::after { content: ""; position: absolute; left: 7px; top: calc(1.05em + 12px); bottom: -1.05em; width: 3px; background: var(--ink); }
.list.route li:last-child::after { display: none; }
.list strong { font-weight: 700; }

/* Tables ------------------------------------------------------------------- */
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
caption { text-align: left; padding-bottom: 10px; }
th, td { text-align: left; padding: 14px 16px 12px 0; border-top: 1px solid var(--rule); vertical-align: top; }
thead th { border-top: 2px solid var(--ink); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 1px solid var(--rule); }
.compare th[scope="row"] { width: 9rem; }
.compare thead th:not(:first-child) { font: 800 1.05rem/1.3 var(--sans); letter-spacing: -0.01em; color: var(--ink); }
.timetable tbody td:first-child { font: 700 1rem/1.4 var(--mono); white-space: nowrap; width: 8rem; }
.timetable .track-sign { width: 2rem; height: 2rem; font-size: .95rem; }
.timetable td:nth-child(2) { width: 4rem; }
.example-table td:last-child, .example-table th:last-child { text-align: right; }
.example-table td:last-child { font-family: var(--mono); }

/* Prognose-Log */
.ledger { background: var(--board); color: var(--chalk); border-radius: 6px; padding: 22px 24px 20px; font: 500 .9rem/1.6 var(--mono); }
.ledger dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 18px; }
.ledger dt { color: var(--chalk-2); }
.ledger dd { margin: 0; }
.ledger .tag { color: var(--signal); }
.ledger-cap { margin-top: 12px; }

/* Dark sections ------------------------------------------------------------ */
.dark { background: var(--board); color: var(--chalk); }
.dark th, .dark td { border-color: var(--board-rule); }
.dark thead th { border-top-color: var(--chalk); }
.dark caption, .dark thead th, .dark .ledger-cap { color: var(--chalk-2); }
.dark .ledger { background: var(--flap); }
.dark .prose p, .dark .list li { color: var(--chalk); }
.dark .list li { border-color: var(--board-rule); }
.dark .list.route li::before { border-color: var(--chalk); background: var(--board); }
.dark .list.route li::after { background: var(--chalk); }
.stack th[scope="row"] { font: 700 1rem/1.4 var(--sans); width: 30%; }
.stack td { font: 500 .95rem/1.6 var(--mono); color: var(--chalk); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(40px, 5vw, 64px); border-top: 2px solid var(--chalk); }
.facts p { padding: 18px 24px 0 0; color: var(--chalk-2); }
.facts strong { display: block; color: var(--chalk); font-size: 1.15rem; margin-bottom: 4px; }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr; } .facts p { padding: 16px 0; border-bottom: 1px solid var(--board-rule); } }


/* Founder */
.founder { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.founder-mark { background: var(--board); border-radius: 6px; padding: clamp(24px, 4vw, 48px); display: grid; place-items: center; }
.founder-mark img { width: min(100%, 300px); height: auto; }
@media (max-width: 760px) { .founder { grid-template-columns: 1fr; } .founder-mark img { width: 180px; } }

/* Contact doors */
.doors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px clamp(24px, 4vw, 56px); margin-top: clamp(32px, 4vw, 48px); }
.door { display: grid; gap: 14px; align-content: start; padding: 28px 0 8px; border-top: 2px solid var(--chalk); }
.door h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.door p { color: var(--chalk-2); max-width: 46ch; }
.door .btn { justify-self: start; margin-top: 6px; }
.address { margin-top: clamp(40px, 5vw, 56px); display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 40px; color: var(--chalk-2); }
.address a { color: var(--chalk); display: inline-block; padding: 6px 0; }
@media (max-width: 760px) { .doors { grid-template-columns: 1fr; } }

/* FAQ */
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 18px 0 16px; font-weight: 700; font-size: 1.1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; margin-top: 5px; background: linear-gradient(currentColor, currentColor) center / 100% 2.5px no-repeat, linear-gradient(currentColor, currentColor) center / 2.5px 100% no-repeat; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; color: var(--ink-2); max-width: 62ch; }

/* Footer */
.site-footer { background: var(--fuge); color: var(--chalk-2); padding: 40px 0 32px; font-size: .95rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-inner a { color: var(--chalk); padding: 8px 0; display: inline-block; }

/* Browser frame mock (Websites page) */
.mock { border-radius: 8px; overflow: hidden; background: #fff; box-shadow: 0 2px 4px rgb(18 20 23 / .08), 0 24px 48px -12px rgb(18 20 23 / .28); }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--hall-2); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--rule); }
.mock-bar span { margin-left: 10px; flex: 1; padding: 4px 10px; background: #fff; border-radius: 4px; font: 500 .75rem/1.3 var(--mono); color: var(--ink-2); }
.mock-site { padding: 28px 28px 32px; background: #f7f4ee; color: #23302a; }
.mock-site .m-top { display: flex; justify-content: space-between; align-items: center; font-weight: 800; color: #2f4a3c; }
.mock-site .m-top small { font: 600 .8rem/1 var(--sans); color: #23302a; }
.mock-site .m-h { margin: 28px 0 10px; font-weight: 800; max-width: 18ch; font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.05; letter-spacing: -0.02em; color: #1d2a24; }
.mock-site p { font-size: .95rem; color: #3c4a43; max-width: 34ch; }
.mock-site .m-cta { display: inline-block; margin-top: 18px; padding: 10px 16px 8px; background: #2f4a3c; color: #fff; font-weight: 700; font-size: .9rem; border-radius: 3px; }
.mock-site .m-row { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.mock-site .m-row span { padding: 8px 12px 6px; border: 1px solid #c9c2b4; border-radius: 3px; font-size: .82rem; font-weight: 600; }
.mock-cap { margin-top: 12px; }

/* Legal and article pages */
.page-title { padding: clamp(40px, 6vw, 72px) 0 clamp(32px, 4vw, 48px); }
.page-title h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
.legal { padding: clamp(40px, 6vw, 72px) 0 clamp(64px, 8vw, 104px); }
.legal h2 { font-size: 1.5rem; margin: 40px 0 12px; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { max-width: 72ch; }
.legal p + p { margin-top: 1em; }
.legal dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 24px; }
@media (max-width: 480px) { .legal dl { grid-template-columns: minmax(0, 1fr); gap: 2px; } .legal dd + dt { margin-top: 12px; } }
.legal dt { font-weight: 700; }
.legal dd { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.todo { background: var(--signal); color: var(--board); padding: 0 .3em; font-weight: 700; }

/* TrendBrain example */
.model-controls { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.model-controls[hidden] { display: none; }
.model-controls button { min-height: 44px; padding: 10px 16px 8px; font: 600 .95rem/1.2 var(--sans); background: transparent; color: var(--ink); border: 2px solid var(--ink); border-radius: 4px; cursor: pointer; }
.model-controls button[aria-pressed="true"] { background: var(--ink); color: var(--hall); }
.model-controls button:hover { background: var(--hall-2); }
.model-controls button[aria-pressed="true"]:hover { background: var(--ink); }
#model-description { color: var(--ink-2); margin-bottom: 8px; min-height: 3.2em; }

/* Small screens: tables reflow only where column context is not needed ------ */
@media (max-width: 640px) {
  .profile tr, .profile th[scope="row"], .profile td { display: block; width: auto; }
  .profile th[scope="row"] { border-top: 1px solid var(--rule); padding-bottom: 2px; }
  .profile td { border-top: 0; padding-top: 2px; }
  .compare:not(.profile) th[scope="row"] { width: auto; }
  .timetable thead { display: none; }
  .timetable tr { display: grid; grid-template-columns: auto 1fr; gap: 0 12px; border-top: 1px solid var(--rule); padding: 12px 0; }
  .timetable td { border: 0 !important; padding: 0; width: auto !important; }
  .timetable td:nth-child(2) { grid-column: 2; grid-row: 1; justify-self: end; }
  .timetable td:nth-child(3) { grid-column: 1 / -1; padding-top: 6px; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
@media print { .site-header, .board-actions, .menu { display: none; } .board, .dark { background: #fff; color: #000; } }

/* Betriebsregeln board */
.regel { background: var(--board); color: var(--chalk); border-radius: 0 0 6px 6px; }
.regel caption { background: var(--board); color: var(--chalk-2); padding: 20px 24px 4px; border-radius: 6px 6px 0 0; }
.regel thead th { color: var(--chalk-2); border-top: 0; padding: 18px 24px 10px; background: var(--board); }
.regel th, .regel td { border-color: var(--board-rule); padding: 16px 24px 14px; }
.regel th[scope="row"] { font: 700 1.05rem/1.4 var(--sans); width: 42%; }
.regel td { font: 500 .92rem/1.6 var(--mono); color: var(--chalk-2); }
.regel tbody tr:last-child th, .regel tbody tr:last-child td { border-bottom: 0; }
@media (max-width: 640px) { .regel tr, .regel th[scope="row"], .regel td { display: block; width: auto; } .regel td { border-top: 0; padding-top: 0; } .regel thead { display: none; } }

/* Leistungsschein (Websites): a fare slip set in the house system, flat, no card shadow */
.ticket { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); background: var(--hall-2); color: var(--ink); border-radius: 6px; }
.ticket-main, .ticket-stub { padding: clamp(20px, 3vw, 32px); }
.ticket-stub { border-left: 2px dashed var(--rule); position: relative; }
.ticket-stub::before, .ticket-stub::after { content: ""; position: absolute; left: -13px; width: 24px; height: 24px; border-radius: 50%; background: var(--hall); }
.ticket-stub::before { top: -12px; } .ticket-stub::after { bottom: -12px; }
.ticket-head { padding-bottom: 10px; margin-bottom: 6px; border-bottom: 2px solid var(--ink); font: 700 1rem/1.4 var(--sans); }
.ticket-items { list-style: none; padding: 0; }
.ticket-items li { display: grid; grid-template-columns: 6.5rem 1fr; gap: 12px; padding: 11px 0 9px; border-bottom: 1px solid var(--rule); }
.ticket-items b { font-weight: 700; }
.ticket-fares div { padding: 12px 0 10px; border-bottom: 1px solid var(--rule); }
.ticket-fares dt { font-weight: 700; }
.ticket-fares dd { margin: 2px 0 0; font: 700 1.3rem/1.3 var(--mono); }
.ticket-note { margin-top: 12px; font: 600 .875rem/1.4 var(--sans); color: var(--ink-2); }
@media (max-width: 760px) {
  .ticket { grid-template-columns: 1fr; }
  .ticket-stub { border-left: 0; border-top: 2px dashed var(--rule); }
  .ticket-stub::before, .ticket-stub::after { top: -13px; bottom: auto; }
  .ticket-stub::before { left: -12px; } .ticket-stub::after { left: auto; right: -12px; }
  .ticket-items li { grid-template-columns: 1fr; gap: 0; }
}
.clock-pin { fill: var(--board); }
.nw { white-space: nowrap; }
