:root { color-scheme: dark; --bg:#0a1110; --surface:#111b19; --line:#2a3b36; --text:#eef5ef; --muted:#a8b9b0; --accent:#c5f36f; }
:root[data-theme="light"] { color-scheme:light; --bg:#f1f3ec; --surface:#fff; --line:#d6dccf; --text:#1d231a; --muted:#59634f; --accent:#386415; }
* { box-sizing: border-box; }
body { overflow-wrap:anywhere; }
.back-link { display:inline-block; margin-bottom:18px; color:var(--muted); font-size:14px; text-decoration:none; }
a:focus-visible, button:focus-visible { outline:2px solid var(--accent); outline-offset:4px; }
@media (prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } }
html { scroll-behavior: smooth; }
body { margin:0; background:var(--bg); color:var(--text); font:16px/1.54 system-ui,-apple-system,"Segoe UI",Arial,sans-serif; }
a { color:inherit; text-decoration-color:var(--accent); text-underline-offset:3px; }
a:hover { color:var(--accent); }
.shell { max-width:1100px; margin:auto; padding:24px 42px 60px; }
.languages { display:flex; flex-wrap:wrap; gap:7px; justify-content:flex-end; margin-bottom:26px; }
.languages a { padding:5px 9px; border:1px solid var(--line); border-radius:999px; text-decoration:none; color:var(--muted); font-size:12px; }
.languages button { padding:5px 9px; border:1px solid var(--accent); border-radius:999px; background:transparent; color:var(--accent); font:inherit; font-size:12px; cursor:pointer; }
.languages a.active, .languages a:hover { background:var(--accent); color:#102015; border-color:var(--accent); }
.languages button:hover { background:var(--accent); color:#102015; }
.hero { display:grid; grid-template-columns:142px minmax(0,1fr) 185px; align-items:center; gap:24px; padding:0 0 30px; border-bottom:1px solid var(--line); }
.identity { min-width:0; }
.portrait { width:142px; height:178px; object-fit:cover; object-position:center; border-radius:15px; flex:none; }
h1,h2,h3,p { margin-top:0; }
h1 { font-size:clamp(31px,4vw,49px); line-height:1.08; letter-spacing:-.045em; margin-bottom:8px; }
.title { font-size:21px; font-weight:700; margin-bottom:3px; }
.subtitle,.location,.role,.eyebrow { color:var(--muted); }
.subtitle { margin-bottom:14px; }
.contacts { display:flex; flex-wrap:wrap; gap:4px 18px; font-size:14px; }
.location { margin:9px 0 0; font-size:14px; }
main { display:grid; gap:30px; padding-top:28px; }
section { min-width:0; }
h2 { color:var(--accent); text-transform:uppercase; letter-spacing:.09em; font-size:13px; line-height:1.3; margin-bottom:14px; }
h3 { font-size:19px; line-height:1.25; margin-bottom:5px; }
p { margin-bottom:9px; }
.stats { display:flex; flex-direction:column; gap:14px; min-width:0; padding:16px; border:1px solid var(--line); border-radius:14px; background:var(--surface); font-size:14px; font-weight:700; }
.stats span:not(:last-child) { border-bottom:1px solid var(--line); padding-bottom:14px; }
.job-head,.prior-head { display:flex; align-items:baseline; justify-content:space-between; gap:15px; }
.job-head span,.prior-head span { color:var(--muted); white-space:nowrap; font-size:14px; }
.job-head .role { margin:0 0 10px; }
.intro { max-width:940px; }
.achievements { margin:15px 0 0; padding-left:22px; }
.achievements li { padding-left:5px; margin-bottom:10px; }
.achievements li::marker { color:var(--accent); }
.proof { white-space:nowrap; font-size:14px; }
.project-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.project { border:1px solid var(--line); border-radius:14px; background:var(--surface); padding:18px 20px 14px; }
.project h3 { color:var(--accent); }
.project .eyebrow { margin-bottom:10px; font-size:13px; }
.prior-list { display:grid; gap:15px; }
.prior { border-top:1px solid var(--line); padding-top:14px; }
.prior h3 { font-size:17px; }
.prior .role { margin-bottom:5px; font-size:14px; }
.prior p:last-child,.project p:last-child { margin-bottom:0; }
.end-grid { display:grid; grid-template-columns:1fr 1fr; gap:35px; }
footer { color:var(--muted); border-top:1px solid var(--line); margin-top:32px; padding-top:15px; font-size:12px; }
@media screen and (max-width:900px) { .hero{grid-template-columns:100px minmax(0,1fr);align-items:start}.portrait{width:100px;height:128px}.stats{grid-column:1 / -1;flex-direction:row;flex-wrap:wrap;gap:10px 24px}.stats span:not(:last-child){border-bottom:0;padding-bottom:0} }
@media (max-width:750px) { .shell{padding:18px 22px 40px}.languages{justify-content:flex-start}.end-grid{grid-template-columns:1fr}.project-grid{grid-template-columns:1fr} }
@media screen and (max-width:480px) { .hero{grid-template-columns:minmax(0,1fr);gap:18px}.job-head,.prior-head{display:block}.job-head span,.prior-head span{display:block;margin-bottom:8px}.contacts{gap:3px 12px} }
@media print {
  :root, :root[data-theme] { color-scheme:light; --bg:#fff; --surface:#fff; --line:#d9e0dc; --text:#101713; --muted:#5a6861; --accent:#14796a; }
  html:lang(de) body { font-size:9.5pt; line-height:1.28; }
  body { font-size:10pt; line-height:1.35; print-color-adjust:exact; -webkit-print-color-adjust:exact; }
  .shell { max-width:none; padding:0; }
  .languages, .back-link { display:none; }
  .hero { grid-template-columns:82px minmax(0,1fr) 135px; padding-bottom:12px; gap:17px; break-inside:avoid; }
  .portrait { width:82px; height:104px; border-radius:5px; }
  h1 { font-size:25pt; }
  .title { font-size:12pt; }
  .subtitle,.location,.contacts { font-size:8.5pt; }
  main { gap:13px; padding-top:12px; }
  h2 { font-size:9pt; margin-bottom:7px; }
  h3 { font-size:11pt; }
  p { margin-bottom:5px; }
  .stats { padding:8px; gap:7px; font-size:9pt; }
  .stats span:not(:last-child) { padding-bottom:7px; }
  .achievements { margin-top:7px; }
  .achievements li { margin-bottom:5px; }
  .project-grid { gap:6px; }
  .project { padding:8px 10px; border-radius:6px; }
  .project .eyebrow { margin-bottom:3px; }
  .prior-list { gap:6px; }
  .prior { padding-top:6px; }
  .end-grid { gap:15px; }
  footer { display:none; }
  .prior h3 { font-size:10.5pt; }
  .prior .role,.job-head .role { font-size:9pt; }
  .job-head span,.prior-head span,.project .eyebrow,.proof { font-size:8.5pt; }
  section,.project,.prior,.achievements li { break-inside:avoid; }
  a { text-decoration:none; }
  a:focus-visible, button:focus-visible { outline:none; }
  @page { size:A4; margin:14mm; }
}
