:root {
  --bg: #13110d; --panel: #0e0c09; --line: #241f17; --text: #d6cfc2; --strong: #efe7d8;
  --dim: #8a8071; --faint: #5c5346; --accent: oklch(0.78 0.13 75); --chip: #302819; --underline: #3a2f14;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #faf7f0; --panel: #f0eadd; --line: #e2dbcb; --text: #2a2620; --strong: #1c1913;
  --dim: #7d7466; --faint: #a89e8b; --accent: oklch(0.55 0.13 75); --chip: #ded5c2; --underline: #e0d3b4;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font: 13px/1.75 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
a { color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--underline); }
a:hover { border-bottom-color: var(--accent); }
ul { list-style: none; margin: 0; padding: 0; }
p { margin: 0; text-wrap: pretty; }
.accent { color: var(--accent); }
.spacer { flex: 1; }
.label { font-size: 10.5px; letter-spacing: .1em; color: var(--faint); }

/* Fenster */
.window { display: flex; flex-direction: column; height: 100%; }
main { flex: 1; overflow: auto; }

/* Tabs */
.tabs {
  flex: none; display: flex; align-items: stretch; height: 34px;
  background: var(--panel); border-bottom: 1px solid var(--line);
  overflow-x: auto; scrollbar-width: none;
}
.tab {
  display: flex; align-items: center; padding: 0 16px; font-size: 11.5px; white-space: nowrap;
  color: var(--dim); border: 0; border-right: 1px solid var(--line); border-top: 2px solid transparent;
}
.tab:hover { color: var(--strong); }
.tab.active { background: var(--bg); border-top-color: var(--accent); color: var(--strong); }
.theme-toggle {
  background: none; border: 0; padding: 0 14px; font: inherit; font-size: 12px;
  color: var(--dim); cursor: pointer;
}

/* Seiten */
.page { display: none; padding: 40px 44px; }
.page.active { display: block; }

/* ~/ */
.name { margin: 0; font-size: 54px; font-weight: 400; line-height: 1.02; letter-spacing: -.03em; color: var(--strong); }
.lead { margin-top: 16px; color: var(--dim); max-width: 54ch; }
.chips { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 8px; max-width: 640px; }
.chips li { padding: 3px 10px; border: 1px solid var(--chip); font-size: 12px; line-height: 1.6; }
.links { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 14px 24px; font-size: 12.5px; }

/* about */
.page-about.active { display: grid; grid-template-columns: 1fr 260px; padding: 0; min-height: 100%; }
.about-main { padding: 36px 40px; }
.about-main p { margin-top: 16px; font-size: 13.5px; line-height: 1.9; color: var(--dim); max-width: 58ch; }
.about-main p.first { margin-top: 18px; color: var(--text); }
.about-side { padding: 36px 26px; border-left: 1px solid var(--line); font-size: 12px; line-height: 1.9; color: var(--dim); }
.stations { margin: 14px 0 24px; display: grid; gap: 12px; }
.stations span { display: block; color: var(--text); line-height: 1.5; }
.stations small { font-size: 11px; color: var(--faint); }
.about-side p { margin-top: 10px; }

/* referenzen */
.page-refs { padding: 34px 44px; }
.refs { margin-top: 20px; max-width: 860px; border-bottom: 1px solid var(--line); }
.refs li {
  display: grid; grid-template-columns: 72px 1fr; gap: 20px; align-items: start;
  padding: 16px 0; border-top: 1px solid var(--line); font-size: 12.5px;
}
.refs img { width: 72px; height: 72px; object-fit: cover; display: block; border: 1px solid var(--line); }
.ref-title { margin-right: 10px; }
.ref-type { font-size: 11px; color: var(--faint); }
.refs p { margin-top: 4px; color: var(--dim); line-height: 1.7; }
.more { margin-top: 26px; font-size: 12px; color: var(--faint); }

/* Statusleiste */
.statusbar {
  flex: none; display: flex; align-items: center; gap: 20px; height: 26px; padding: 0 14px;
  background: var(--panel); border-top: 1px solid var(--line); color: var(--dim); font-size: 10.5px;
}

/* Mobil */
@media (max-width: 640px) {
  .tabs { height: 40px; }
  .tab { padding: 0 14px; }
  .page, .page-refs { padding: 30px 22px; }
  .name { font-size: 40px; line-height: 1.04; }
  .links { flex-direction: column; align-items: flex-start; font-size: 13px; }
  .page-about.active { display: block; }
  .about-main { padding: 26px 22px 0; }
  .about-side { padding: 26px 22px; border-left: 0; }
  .refs li { grid-template-columns: 56px 1fr; gap: 14px; }
  .refs img { width: 56px; height: 56px; }
  .statusbar { height: 30px; }
}
