/* Bewerbung René Barufe – Stylesheet
   Nur Systemschriften, keine externen Ressourcen. */

:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --ink: #1b2430;
  --muted: #5b6675;
  --line: #e2e6ec;
  --accent: #1f5f8b;
  --accent-ink: #ffffff;
  --accent-soft: #e6eff6;
  --bar: #14212e;
  --bar-ink: #d6dee7;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(20, 33, 46, .06), 0 4px 16px rgba(20, 33, 46, .06);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #11171e;
    --surface: #18212b;
    --ink: #e6ebf1;
    --muted: #9aa6b4;
    --line: #26323f;
    --accent: #6aaedb;
    --accent-ink: #0d1620;
    --accent-soft: #1d2d3c;
    --bar: #0b1016;
    --bar-ink: #c7d1dc;
    --shadow: none;
  }
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.6 var(--font);
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; display: block; }

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

.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 16px; }

.skip {
  position: absolute; left: 8px; top: -60px;
  background: var(--surface); color: var(--ink); padding: 8px 12px; border-radius: 6px; z-index: 10;
}
.skip:focus { top: 8px; }

/* ---------- Kopfleiste ---------- */
.topbar { background: var(--bar); color: var(--bar-ink); }
.topbar-in {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px 24px; padding-top: 12px; padding-bottom: 12px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: #fff; text-decoration: none; font-weight: 600; letter-spacing: .01em;
}
.mono {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 8px;
  background: #2b6f9e; color: #fff; font-size: .8rem; font-weight: 700; letter-spacing: .04em;
}
.nav { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.nav a {
  display: block; padding: 6px 10px; border-radius: 6px;
  color: var(--bar-ink); text-decoration: none; font-size: .92rem;
}
.nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.nav a[aria-current="page"] { background: rgba(255, 255, 255, .14); color: #fff; }

/* ---------- Inhalt ---------- */
main { flex: 1; padding-top: 40px; padding-bottom: 56px; }

.eyebrow {
  margin: 0 0 6px; color: var(--accent); font-size: .78rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
}
h1 { margin: 0; font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.6rem); line-height: 1.15; letter-spacing: -.01em; }
h2 { margin: 0; font-size: 1.1rem; line-height: 1.35; }

.page-head { margin-bottom: 32px; max-width: 46rem; }
.lead { margin: 12px 0 0; color: var(--muted); font-size: 1.08rem; }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px;
}

.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 8px;
  background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 600;
  border: 1px solid var(--accent);
}
.btn:hover { filter: brightness(1.08); }
.btn small { font-weight: 400; opacity: .8; }
.btn-ghost { background: transparent; color: var(--accent); }

/* ---------- Startseite ---------- */
.hero { display: grid; gap: 32px; align-items: start; }
.photo { margin: 0; max-width: 180px; }
.photo img {
  border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line);
}
.role { margin: 6px 0 0; color: var(--muted); font-size: 1.15rem; }
.intro { margin: 20px 0 0; max-width: 40rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }

.facts { margin: 24px 0 0; display: grid; gap: 14px 24px; }
.facts div { min-width: 0; }
.facts dt { color: var(--muted); font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.facts dd { margin: 2px 0 0; }

@media (min-width: 560px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 820px) {
  .hero { grid-template-columns: 300px 1fr; gap: 48px; }
  .photo { max-width: none; }
  main { padding-top: 56px; }
}

/* ---------- Zeitleiste ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; max-width: 52rem; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line);
}
.tl-item { position: relative; padding-left: 32px; margin-bottom: 24px; }
.tl-item::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--surface); border: 3px solid var(--accent);
}
.tl-when { margin: 0 0 8px; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.org { margin: 2px 0 0; color: var(--muted); }
.tasks { margin: 12px 0 0; padding-left: 1.1rem; }
.tasks li { margin: 4px 0; }
.tasks li::marker { color: var(--accent); }

@media (min-width: 760px) {
  .timeline::before { left: 151px; }
  .tl-item { display: grid; grid-template-columns: 128px 1fr; gap: 40px; padding-left: 0; }
  .tl-item::before { left: 144px; top: 22px; }
  .tl-when { margin: 0; padding-top: 18px; text-align: right; }
}

/* ---------- Download ---------- */
.docs { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; max-width: 52rem; }
.doc {
  display: grid; grid-template-columns: 44px 1fr; gap: 12px 16px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 18px;
}
.doc-icon {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px;
  background: var(--accent-soft); color: var(--accent);
}
.doc-icon svg { width: 26px; height: 26px; }
.doc-text p { margin: 2px 0 0; color: var(--muted); }
.doc-links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.link small { color: var(--muted); }
.tag {
  display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); font-size: .75rem; font-weight: 600; vertical-align: 2px;
}
.doc-locked .doc-icon { color: var(--muted); }
.thanks { margin: 32px 0 0; }

@media (min-width: 640px) {
  .doc { grid-template-columns: 44px 1fr auto; }
  .doc-links { grid-column: auto; justify-content: flex-end; }
}

/* ---------- Impressum ---------- */
.legal { display: grid; gap: 20px; max-width: 52rem; }
.legal address { font-style: normal; }
.legal h2 { font-size: 1rem; margin-top: 18px; }
.legal h2:first-child { margin-top: 0; }
.legal p { margin: 4px 0 0; }

/* ---------- Fuß ---------- */
.foot { background: var(--bar); color: #8f9caa; font-size: .88rem; }
.foot-in { display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between; padding-top: 16px; padding-bottom: 16px; }
.foot a { color: var(--bar-ink); }

@media print {
  .topbar, .foot, .skip, .actions { display: none; }
  body { background: #fff; color: #000; }
  .card, .doc { box-shadow: none; }
}
