/* Alexander Kluge — persönliche Seite. Statisch, keine externen Ressourcen.
   Einziges Skript: stars.js für den Sternenhimmel im Hintergrund. */

:root {
  --bg: #0b0c0e;
  --fg: #e7e9ea;
  --muted: #8b9296;
  --line: #1e2226;
  --accent: #66e0c0;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.7;
  font-weight: 400;
}

#sky {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 660px;
  margin: 0 auto;
  padding: 88px 24px 64px;
}

a {
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 3;
  padding: 8px 12px;
  background: var(--bg);
  transform: translateY(-200%);
}

.skip-link:focus { transform: translateY(0); }

.section-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 24px; font-size: 13px; }
.section-intro { color: var(--muted); }
.breadcrumbs { color: var(--muted); font-size: 12px; margin-bottom: 32px; overflow-wrap: anywhere; }
.eyebrow { color: var(--accent); font-size: 12px; margin-bottom: 12px; }
.project-page h1 { font-size: clamp(22px, 4vw, 30px); line-height: 1.35; }
.project-lead { color: var(--muted); margin-top: 18px; }
.project-page section > p { color: var(--muted); }
.project-page h2 { line-height: 1.6; letter-spacing: 0.1em; }
.project-links { padding-left: 20px; margin: 20px 0 0; }
.project-links li { margin: 8px 0; }
.project-page a, dl.contact dd { overflow-wrap: anywhere; }
section[id] { scroll-margin-top: 28px; }

h1 {
  font-size: 15px;
  font-weight: 400;
  margin: 0;
  letter-spacing: 0.02em;
}

h1 + p.sub {
  margin: 2px 0 0;
  color: var(--muted);
}

p.links {
  margin: 10px 0 0;
  font-size: 13px;
}

p.links a { border-bottom-color: var(--muted); white-space: nowrap; }

h2 {
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin: 0 0 20px;
}

h3 {
  font-size: 15px;
  font-weight: 400;
  margin: 0;
}

p { margin: 0 0 16px; }

section { margin-top: 56px; }

.intro { margin-top: 32px; }

.intro p:last-child { margin-bottom: 0; }

.item {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.item:last-child { border-bottom: 1px solid var(--line); }

.item p {
  margin: 6px 0 0;
  color: var(--muted);
}

.meta {
  display: block;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 8px;
}

.dot { color: var(--line); }

.cv {
  display: grid;
  grid-template-columns: 92px 1fr;
  column-gap: 0;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.cv:last-child { border-bottom: 1px solid var(--line); }

.cv .when {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-top: 3px;
}

.cv p {
  margin: 4px 0 0;
  color: var(--muted);
}

dl.contact {
  margin: 0;
  display: grid;
  grid-template-columns: 92px 1fr;
  row-gap: 6px;
}

dl.contact dt {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-top: 3px;
}

dl.contact dd { margin: 0; }

dl.contact.lang { grid-template-columns: 124px 1fr; }

footer {
  margin-top: 72px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

footer a { border-bottom: none; }

.legal h2 { margin-top: 40px; }

.legal h2:first-of-type { margin-top: 0; }

.legal p, .legal li { color: var(--muted); }

.legal strong { color: var(--fg); font-weight: 400; }

.legal ul { padding-left: 18px; margin: 0 0 16px; }

.back { display: inline-block; margin-bottom: 40px; }

@media (max-width: 520px) {
  .wrap { padding: 56px 20px 48px; }
  dl.contact { grid-template-columns: 1fr; row-gap: 0; }
  dl.contact dd { margin-bottom: 12px; }
  .cv { grid-template-columns: 1fr; }
}
