/* Lebenslauf – ergänzt site.css */

/* Farbgruppen der Zeitachse (validiert: 3 Farben + Grau, hell und dunkel, alle Paare, CVD) */
:root{
  --g-dev:#2a78d6; --g-test:#1baf7a; --g-lead:#eb6834; --g-other:#A8A295;
  --g-dev-ink:#fff; --g-test-ink:#0B2A20; --g-lead-ink:#fff; --g-other-ink:#1D2127;
}
@media (prefers-color-scheme:dark){
  :root{ --g-dev:#3987e5; --g-test:#199e70; --g-lead:#d95926; --g-other:#6B7079;
         --g-test-ink:#fff; --g-other-ink:#fff; }
}
.g-dev{--g:var(--g-dev);--gi:var(--g-dev-ink)} .g-test{--g:var(--g-test);--gi:var(--g-test-ink)}
.g-lead{--g:var(--g-lead);--gi:var(--g-lead-ink)} .g-other{--g:var(--g-other);--gi:var(--g-other-ink)}
.sw{display:inline-block;width:10px;height:10px;border-radius:3px;background:var(--g);flex:0 0 auto}

.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}

/* Kopf */
.cv-intro .status{color:var(--muted);max-width:64ch;font-size:15.5px;margin:0}
.kpis{display:grid;grid-template-columns:repeat(4,1fr);margin:36px 0 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.kpis div{padding:20px 16px 18px;border-right:1px solid var(--line)}
.kpis div:last-child{border-right:0}
.kpis dt{font-size:13.5px;color:var(--muted);order:2}
.kpis div{display:flex;flex-direction:column-reverse;gap:6px}
.kpis dd{margin:0;font-family:var(--serif);font-weight:600;font-size:clamp(34px,4.4vw,46px);line-height:1}
@media (max-width:640px){.kpis{grid-template-columns:repeat(2,1fr)}.kpis div:nth-child(2){border-right:0}
  .kpis div:nth-child(-n+2){border-bottom:1px solid var(--line)}}

/* Zeitachse */
.glegend{list-style:none;margin:0 0 14px;padding:0;display:flex;flex-wrap:wrap;gap:6px 18px;font-size:13.5px;color:var(--muted)}
.glegend li{display:flex;align-items:center;gap:7px}
.gantt-scroll{overflow-x:auto;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
.gantt{position:relative;min-width:760px;padding:12px 14px 14px}
.gantt .axis{position:relative;height:18px;margin-bottom:8px}
.gantt .axis span{position:absolute;transform:translateX(-50%);font-family:var(--mono);font-size:11px;color:var(--muted)}
.gantt .lanes{position:relative;height:calc(var(--lanes) * var(--lane))}
.gantt .grid{position:absolute;top:0;bottom:0;width:1px;background:var(--line)}
.bar{position:absolute;height:calc(var(--lane) - 5px);border-radius:4px;background:var(--g);display:flex;align-items:center;
  overflow:hidden;text-decoration:none;box-shadow:0 0 0 1px var(--surface);transition:opacity .2s}
.bar span{font-family:var(--mono);font-size:10px;color:var(--gi);padding:0 6px;white-space:nowrap}
.bar:hover,.bar:focus-visible{box-shadow:0 0 0 2px var(--surface),0 0 0 4px var(--ink);z-index:2}
.bar.dim{opacity:.13}
.gantt-foot{font-family:var(--mono);font-size:11.5px;color:var(--muted);margin:10px 0 0}
.tip{position:fixed;z-index:60;max-width:300px;background:var(--ink);color:var(--paper);border-radius:8px;padding:9px 11px;
  font-size:13px;line-height:1.4;pointer-events:none;box-shadow:0 8px 24px rgba(0,0,0,.2)}
.tip b{display:block;font-weight:600}
.tip span{font-family:var(--mono);font-size:11px;opacity:.8}

/* Filter */
.controls{display:grid;gap:12px;margin:0 0 20px}
.chips{display:flex;flex-wrap:wrap;gap:7px}
.chip{display:inline-flex;align-items:center;gap:7px;font:inherit;font-size:13.5px;padding:6px 12px;border-radius:20px;cursor:pointer;
  border:1px solid var(--line-strong);background:var(--surface);color:var(--ink)}
.chip small{font-family:var(--mono);font-size:11px;color:var(--muted)}
.chip[aria-pressed="true"]{background:var(--ink);color:var(--paper);border-color:var(--ink)}
.chip[aria-pressed="true"] small{color:inherit;opacity:.7}
.controls .row{display:flex;gap:12px;flex-wrap:wrap}
.search{flex:1;min-width:220px}
.search input,.select select{width:100%;font:inherit;font-size:15px;color:var(--ink);background:var(--surface);
  border:1px solid var(--line-strong);border-radius:8px;padding:9px 12px}
.select select{width:auto;cursor:pointer}
.reset,.count{font-family:var(--mono);font-size:12.5px;color:var(--muted)}
.reset{background:none;border:0;cursor:pointer;text-decoration:underline;text-underline-offset:3px}

/* Projekte */
.proj{display:grid;grid-template-columns:170px 1fr;gap:24px;padding:24px 0;border-top:1px solid var(--line);scroll-margin-top:80px}
.proj:last-child{border-bottom:1px solid var(--line)}
.proj.flash{animation:flash 1.6s ease}
@keyframes flash{0%,35%{background:color-mix(in srgb,var(--accent) 14%,transparent)}100%{background:transparent}}
.pmeta .per{font-family:var(--mono);font-size:13px;font-weight:500}
.pmeta .dur{font-family:var(--mono);font-size:12px;color:var(--muted);margin-top:2px}
.pcat{display:flex;align-items:center;gap:7px;font-size:12.5px;color:var(--muted);margin-top:10px}
.pbody h3{font-family:var(--serif);font-weight:600;font-size:21px;line-height:1.25;margin:0 0 4px}
.pbody .role{color:var(--sea);font-weight:500;font-size:15px;margin:0 0 4px}
.pbody .kunde{font-size:14px;color:var(--muted);margin:0 0 12px}
.pbody .kunde b{color:var(--ink);font-weight:600}
.pbody .desc{font-size:15.5px;margin:0 0 12px;max-width:72ch}
.pbody details{margin:0 0 12px;font-size:15px}
.pbody summary{cursor:pointer;color:var(--accent-ink);font-weight:500;font-size:14px}
.pbody details ul{margin:8px 0 0;padding-left:1.2em;max-width:72ch}
.pbody details li{margin:4px 0}
.pbody .tags{display:flex;flex-wrap:wrap;gap:6px}
button.tag{font:inherit;font-family:var(--mono);font-size:11px;cursor:pointer;border:1px solid transparent}
button.tag:hover{border-color:var(--sea)}
button.tag.on{background:var(--sea);color:var(--paper)}
.pbody .tools{font-size:13px;color:var(--muted);margin:10px 0 0}
@media (max-width:680px){.proj{grid-template-columns:1fr;gap:8px}}

/* Kompetenzen & Ausbildung */
.two{display:grid;grid-template-columns:1fr 1fr;gap:56px}
.two h2{margin-bottom:20px}
@media (max-width:860px){.two{grid-template-columns:1fr;gap:48px}}
.topk{list-style:none;margin:0;padding:0}
.topk button{display:grid;grid-template-columns:150px 1fr 30px;gap:12px;align-items:center;width:100%;padding:5px 0;
  background:none;border:0;font:inherit;font-size:14px;color:var(--ink);cursor:pointer;text-align:left}
.topk .tn{text-align:right;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.topk .track{height:8px;background:var(--line);border-radius:4px;overflow:hidden}
.topk .fill{display:block;height:100%;background:var(--sea);border-radius:4px}
.topk .tc{font-family:var(--mono);font-size:12px;color:var(--muted)}
.topk button:hover .tn,.topk button.on .tn{color:var(--accent-ink)}
.topk button.on .fill{background:var(--accent)}
.edu{list-style:none;margin:0;padding:0 0 0 20px;border-left:2px solid var(--line-strong)}
.edu li{position:relative;padding:0 0 18px;display:grid;gap:1px}
.edu li::before{content:"";position:absolute;left:-26px;top:6px;width:10px;height:10px;border-radius:50%;background:var(--accent);box-shadow:0 0 0 3px var(--paper)}
.edu .yr{font-family:var(--mono);font-size:12.5px;color:var(--accent-ink);font-weight:500}
.edu b{font-weight:600;font-size:15px}
.edu .in,.extra .in{font-size:13.5px;color:var(--muted)}
.extra{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:16px}
.extra li{border:1px solid var(--line);border-radius:10px;padding:16px 18px;background:var(--surface)}
.extra p{font-size:14.5px;margin:6px 0 10px}
.extra .tags{display:flex;flex-wrap:wrap;gap:6px}

.cv-facts{padding:40px 0}
.cv-facts dl{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:20px;margin:0;font-size:15px}
.cv-facts dt{font-family:var(--mono);font-size:11.5px;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
.cv-facts dd{margin:4px 0 0}

/* Druck */
@media print{
  .topbar,footer,.controls,.reset,.skip,.tip,.gantt-foot{display:none!important}
  body{background:#fff;font-size:11pt}
  section{padding:18px 0;break-inside:auto}
  .proj{break-inside:avoid;padding:10px 0}
  .gantt-scroll{overflow:visible;border:0}
  .gantt{min-width:0}
  .bar{print-color-adjust:exact;-webkit-print-color-adjust:exact}
  .sw,.fill{print-color-adjust:exact;-webkit-print-color-adjust:exact}
  button.tag{border:1px solid #ccc}
}


/* v2: ungefähre Zeitangaben schraffiert */
.bar.fz,.sw.fz{background:repeating-linear-gradient(135deg,var(--g) 0 5px,color-mix(in srgb,var(--g) 45%,var(--surface)) 5px 8px)}

/* v2: Stationen (Anstellungen & Mandate) */
.stations,.stations ol{list-style:none;margin:0;padding:0}
.stations>li{display:grid;grid-template-columns:170px 1fr;gap:24px;padding:18px 0;border-top:1px solid var(--line)}
.stations>li:last-child{border-bottom:1px solid var(--line)}
.st-per{font-family:var(--mono);font-size:13px;font-weight:500}
.st-per small{display:block;font-size:12px;font-weight:400;color:var(--muted);margin-top:2px}
.st-body>b{font-family:var(--serif);font-weight:600;font-size:19px}
.st-body .in{display:block;font-size:13.5px;color:var(--muted);margin-top:2px}
.st-body p{font-size:15px;margin:8px 0 0;max-width:72ch}
.stations ol{margin:14px 0 0;padding-left:18px;border-left:2px solid var(--line-strong)}
.stations ol li{padding:0 0 14px}
.stations ol li:last-child{padding-bottom:0}
.stations ol .st-per{display:block;margin-bottom:2px}
.stations ol .st-per small{display:inline;margin-left:8px}
.stations ol b{font-weight:600;font-size:15.5px}
@media (max-width:680px){.stations>li{grid-template-columns:1fr;gap:6px}}

/* v2: Projektdetails */
.pmeta .ptyp{font-size:12.5px;color:var(--muted);margin-top:4px}
.pbody .parent{font-size:13.5px;color:var(--muted);margin:-6px 0 12px}
.pbody .hl,.extra .hl{margin:0 0 12px;padding-left:1.2em;font-size:15px;max-width:72ch}
.pbody .hl li,.extra .hl li{margin:3px 0}
.pbody .hl li::marker{color:var(--accent)}

/* v2: kuratierte Kompetenzen */
.skillgroups{display:grid;gap:20px}
.skillgroups h3{font-size:15px;font-weight:600;margin:0 0 8px}
.skillgroups .tags{display:flex;flex-wrap:wrap;gap:6px}
.skillgroups .tag{white-space:normal;text-align:left}
.skillgroups span.tag{font-family:var(--mono);font-size:11px}
.extra details{font-size:14px;margin:0 0 10px}
.extra summary{cursor:pointer;color:var(--accent-ink);font-weight:500;font-size:13.5px}
.extra details ul{margin:6px 0 0;padding-left:1.2em}
.extra .links{font-size:13.5px;margin:8px 0 0;display:flex;flex-wrap:wrap;gap:12px}
