/* ============================================================
   cv.joelduss.xyz — GITHUB-INSPIRED (light only)
   Sidebar + main grid · repo-card-style sections · langbar.
   Not a 1:1 clone — adapted for a personal CV.
   ============================================================ */

/* ───────────────────────── helpers ──────────────────────── */
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ───────────────────────── reset ─────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, h5, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
a { color: inherit; }

/* ───────────────────────── tokens (Primer-light) ─────────── */
:root {
  --bg:            #ffffff;
  --bg-subtle:     #f6f8fa;
  --bg-muted:      #eaeef2;

  --border:        #d0d7de;
  --border-muted:  #d8dee4;

  --fg:            #1f2328;
  --fg-muted:      #59636e;
  --fg-subtle:     #818b98;

  --accent:        #0969da;
  --accent-emph:   #0550ae;
  --accent-bg:     #ddf4ff;

  --success:       #1a7f37;
  --success-emph:  #1f883d;
  --success-bg:    #dafbe1;

  --done:          #8250df;
  --done-bg:       #fbefff;

  --attention:     #9a6700;
  --attention-bg:  #fff8c5;

  --danger:        #cf222e;

  /* skill-row colours */
  --c-azure:       #178600;
  --c-blue:        #0969da;
  --c-orange:      #f1502f;
  --c-purple:      #8250df;
  --c-yellow:      #d29922;
  --c-red:         #cf222e;
  --c-teal:        #008080;
  --c-pink:        #ea4aaa;
  --c-grey:        #6e7781;

  --shadow-small:  0 1px 0 rgba(31,35,40,0.04);
  --shadow-medium: 0 3px 6px rgba(140,149,159,0.15);

  --f-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans",
            Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  --f-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
            "Liberation Mono", monospace;

  --fs-meta:   12px;
  --fs-body:   14px;
  --fs-md:     16px;
  --fs-lg:     20px;
  --fs-xl:     24px;
  --fs-2xl:    32px;

  --r-sm: 4px;
  --r-md: 6px;
  --r-lg: 12px;

  --gutter: clamp(0.9rem, 2.5vw, 1.6rem);
  --page-max: 1280px;
}

/* ───────────────────────── utility classes ──────────────── */
.lang-dot--blue   { background: var(--c-blue); }
.lang-dot--azure  { background: var(--c-azure); }
.lang-dot--orange { background: var(--c-orange); }
.lang-dot--purple { background: var(--c-purple); }
.lang-dot--yellow { background: var(--c-yellow); }
.lang-dot--red    { background: var(--c-red); }
.lang-dot--teal   { background: var(--c-teal); }
.lang-dot--pink   { background: var(--c-pink); }
.lang-dot--grey   { background: var(--c-grey); }

.mini-caption {
  font-size: var(--fs-meta);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-muted);
  font-weight: 600;
  margin-bottom: 8px;
}

.langbar__seg { display: block; height: 100%; }
.langbar__seg--ms     { flex: 26; background: var(--c-blue); }
.langbar__seg--itsm   { flex: 20; background: var(--success-emph); }
.langbar__seg--auto   { flex: 16; background: var(--c-azure); }
.langbar__seg--infra  { flex: 14; background: var(--c-teal); }
.langbar__seg--klinik { flex: 14; background: var(--c-red); }
.langbar__seg--pers   { flex: 10; background: var(--c-pink); }

time, .pct, .activity__date, .count, .followers strong { font-variant-numeric: tabular-nums; }

/* ───────────────────────── base ──────────────────────────── */
body {
  margin: 0;
  font-family: var(--f-sans);
  font-size: var(--fs-body);
  line-height: 1.5;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a.link { color: var(--accent); text-decoration: none; }
a.link:hover { text-decoration: underline; }

::selection { background: var(--accent-bg); color: var(--fg); }

/* ───────────────────────── glyph util ────────────────────── */
.glyph {
  display: inline-block;
  width: 16px; height: 16px;
  vertical-align: text-bottom;
  fill: currentColor;
  flex-shrink: 0;
}
.glyph--14 { width: 14px; height: 14px; }
.glyph--20 { width: 20px; height: 20px; }
.glyph--24 { width: 24px; height: 24px; }
.glyph--32 { width: 32px; height: 32px; }

/* ───────────────────────── header (slim, sticky) ─────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 14px var(--gutter);
}
.site-header__inner {
  max-width: var(--page-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px 24px;
}
.brand {
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none;
  font-weight: 600;
  color: var(--fg);
  font-size: var(--fs-md);
}
.brand .glyph { color: var(--fg); }
.brand strong { color: var(--accent); font-weight: 600; }
.brand .slash { color: var(--fg-muted); font-weight: 400; }

.site-nav {
  display: flex; flex-wrap: wrap; gap: 4px;
  justify-self: center;
}
.site-nav a {
  --nav-color: var(--accent);
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px 10px;
  border-radius: var(--r-md) var(--r-md) 0 0;
  text-decoration: none;
  color: var(--fg);
  font-size: var(--fs-body);
  font-weight: 500;
  position: relative;
  transition: background 120ms, color 120ms;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 8px; right: 8px;
  bottom: 0;
  height: 2px;
  background: var(--nav-color);
  border-radius: 2px 2px 0 0;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 160ms cubic-bezier(0.2,0.7,0.2,1);
}
.site-nav a:hover {
  background: color-mix(in srgb, var(--nav-color) 10%, transparent);
  color: var(--nav-color);
}
.site-nav a:hover::after,
.site-nav a.is-active::after { transform: scaleX(1); }
.site-nav a:hover .glyph,
.site-nav a.is-active .glyph { color: var(--nav-color); }
.site-nav a.is-active {
  font-weight: 600;
  color: var(--nav-color);
  background: color-mix(in srgb, var(--nav-color) 8%, transparent);
}
.site-nav a .glyph { color: var(--fg-muted); transition: color 120ms; }
.site-nav a .count {
  font-size: 11px;
  background: var(--bg-muted);
  color: var(--fg-muted);
  border-radius: 999px;
  padding: 1px 6px;
  font-weight: 500;
  transition: background 120ms, color 120ms;
}
.site-nav a:hover .count,
.site-nav a.is-active .count {
  background: color-mix(in srgb, var(--nav-color) 18%, transparent);
  color: var(--nav-color);
}

/* per-section colour assignment */
.site-nav a[href="#overview"]     { --nav-color: #0969da; }  /* blue */
.site-nav a[href="#werdegang"]    { --nav-color: #1a7f37; }  /* green */
.site-nav a[href="#faehigkeiten"] { --nav-color: #8250df; }  /* purple */
.site-nav a[href="#schwerpunkte"] { --nav-color: #d4691f; }  /* orange */
.site-nav a[href="#kontakt"]      { --nav-color: #cf222e; }  /* red */

.site-header__right {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--fg-muted);
  font-size: var(--fs-meta);
}
.site-header__status {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 2px 8px;
  background: var(--success-bg);
  color: var(--success);
  border-radius: 999px;
  font-size: var(--fs-meta);
  font-weight: 600;
}
.site-header__status::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--success-emph);
  border-radius: 50%;
}

@media (max-width: 900px) {
  .site-header__inner { grid-template-columns: auto 1fr; }
  .site-nav { display: none; }
}

/* ───────────────────────── page grid ─────────────────────── */
.page {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 28px var(--gutter) 56px;
  display: grid;
  grid-template-columns: 296px 1fr;
  gap: 32px;
}
@media (max-width: 1012px) {
  .page { grid-template-columns: 1fr; gap: 28px; }
}

/* ───────────────────────── sidebar ───────────────────────── */
.sidebar { display: grid; gap: 16px; align-content: start; }
@media (min-width: 1013px) {
  .sidebar { position: sticky; top: 80px; }
}

.avatar-card { display: grid; gap: 12px; }

.avatar {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 296px;
  border-radius: 50%;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  border-radius: 50%;
}
.avatar::after {
  content: "";
  position: absolute;
  bottom: 6%; right: 8%;
  width: 14%; height: 14%;
  background: var(--success-emph);
  border: 4px solid var(--bg);
  border-radius: 50%;
  z-index: 2;
}

.profile-name {
  font-size: var(--fs-2xl);
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.15;
  color: var(--fg);
}
.profile-handle {
  font-size: var(--fs-lg);
  font-weight: 300;
  color: var(--fg-muted);
  line-height: 1.25;
  margin-top: 2px;
}
.profile-pronouns {
  font-size: var(--fs-meta);
  color: var(--fg-muted);
  margin-top: 4px;
}

.profile-bio {
  margin-top: 12px;
  font-size: var(--fs-body);
  color: var(--fg);
  line-height: 1.45;
}

.followers {
  display: flex; gap: 16px;
  align-items: center;
  font-size: var(--fs-body);
  color: var(--fg-muted);
  margin-top: 4px;
  flex-wrap: wrap;
}
.followers strong { color: var(--fg); font-weight: 600; }
.followers .dot { width: 4px; height: 4px; background: var(--fg-muted); border-radius: 50%; }
.followers .glyph { color: var(--fg-muted); }

.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 16px;
  font-family: var(--f-sans);
  font-size: var(--fs-body);
  font-weight: 500;
  line-height: 20px;
  border: 1px solid rgba(31,35,40,0.15);
  border-radius: var(--r-md);
  background: var(--bg-subtle);
  color: var(--fg);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 120ms, border-color 120ms;
  box-shadow: var(--shadow-small);
}
.btn:hover { background: var(--bg-muted); }
.btn--primary {
  background: var(--success-emph);
  color: #fff;
  border-color: rgba(31,35,40,0.15);
}
.btn--primary:hover { background: var(--success); }
.btn--primary .glyph { color: rgba(255,255,255,0.9); }
.btn--block { width: 100%; justify-content: center; }
.btn .glyph { color: var(--fg-muted); }

.meta-list {
  display: grid; gap: 8px;
  margin-top: 4px;
  font-size: var(--fs-body);
}
.meta-list li {
  display: flex; align-items: center; gap: 8px;
  color: var(--fg);
  min-height: 22px;
}
.meta-list .glyph { color: var(--fg-muted); flex-shrink: 0; }
.meta-list .muted { color: var(--fg-muted); }
.meta-list .org { font-weight: 600; }
.meta-list a.link { color: var(--accent); }

.profile-divider {
  border: 0;
  border-top: 1px solid var(--border-muted);
  margin: 4px 0 0;
}

.achievements {
  display: flex; flex-wrap: wrap; gap: 4px;
  margin-top: 4px;
}
.achievement {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: var(--fs-meta);
  color: var(--fg-muted);
  padding: 2px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
}
.achievement .glyph { width: 12px; height: 12px; }

/* ───────────────────────── main ──────────────────────────── */
.main { display: grid; gap: 24px; min-width: 0; }

.section { display: grid; gap: 12px; }
.section__head {
  display: flex; align-items: center; gap: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border-muted);
}
.section__head h2 {
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--fg);
  display: inline-flex; align-items: center; gap: 6px;
  flex: 1;
}
.section__head h2 .glyph { color: var(--fg-muted); }
.section__head .meta {
  font-size: var(--fs-meta);
  color: var(--fg-muted);
}

/* ───────────────────────── intro card ────────────────────── */
.intro {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg);
  padding: clamp(20px, 3vw, 32px);
  display: grid; gap: 14px;
  font-size: 16px;
  line-height: 1.6;
}
.intro h1 {
  font-size: clamp(24px, 1.4rem + 1vw, 32px);
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1.2;
}
.intro h2 {
  font-size: var(--fs-lg);
  font-weight: 600;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-muted);
  margin-top: 8px;
}
.intro p { color: var(--fg); }
.intro p.muted { color: var(--fg-muted); }
.intro code {
  font-family: var(--f-mono);
  font-size: 85%;
  background: var(--bg-muted);
  padding: 0.2em 0.4em;
  border-radius: var(--r-sm);
}
.intro a { color: var(--accent); text-decoration: none; }
.intro a:hover { text-decoration: underline; }
.intro ul.bullets { padding-left: 22px; }
.intro ul.bullets li { list-style: disc; margin: 4px 0; }
.intro strong { font-weight: 600; }
.intro em { font-style: italic; color: var(--fg-muted); }

/* badges (status-shield row) */
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.badge,
.intro a.badge {
  display: inline-flex; align-items: center;
  height: 20px;
  font-size: 11px;
  font-weight: 500;
  border-radius: 3px;
  overflow: hidden;
  color: #fff !important;
  text-decoration: none !important;
}
.badge__l, .badge__r {
  padding: 0 8px;
  display: inline-flex; align-items: center;
  line-height: 20px;
  color: #fff !important;
}
.badge__l { background: #555; }
.badge__r { background: var(--accent); }
.badge--success .badge__r { background: var(--success-emph); }
.badge--purple  .badge__r { background: var(--done); }
.badge--orange  .badge__r { background: #f1502f; }
.badge--yellow  .badge__r { background: #b67d00; color: #fff; }
.badge--red     .badge__r { background: var(--danger); }
.badge--teal    .badge__r { background: var(--c-teal); }
.badge--blue    .badge__r { background: var(--accent); }

/* ───────────────────────── pinned cards ──────────────────── */
.pinned {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (max-width: 768px) { .pinned { grid-template-columns: 1fr; } }

.repo-card {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px;
  display: grid; gap: 8px;
  background: var(--bg);
  transition: border-color 120ms, box-shadow 120ms;
}
.repo-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-medium);
}
.repo-card__head {
  display: flex; align-items: center; gap: 6px;
}
.repo-card__head .glyph { color: var(--fg-muted); }
.repo-card__name {
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  word-break: break-word;
}
.repo-card__name:hover { text-decoration: underline; }
.repo-card__visibility {
  margin-left: auto;
  font-size: var(--fs-meta);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0 7px;
  color: var(--fg-muted);
  font-weight: 500;
  line-height: 18px;
}
.repo-card__desc {
  font-size: var(--fs-body);
  color: var(--fg-muted);
  line-height: 1.45;
}
.repo-card__meta {
  display: flex; gap: 16px; flex-wrap: wrap;
  font-size: var(--fs-meta);
  color: var(--fg-muted);
  margin-top: 4px;
}
.repo-card__meta span { display: inline-flex; align-items: center; gap: 4px; }
.lang-dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--c-blue);
  flex-shrink: 0;
}

/* ───────────────────────── activity / timeline ───────────── */
.activity {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg);
  overflow: hidden;
}
.activity__year {
  padding: 6px 16px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-muted);
  font-family: var(--f-mono);
  font-size: var(--fs-meta);
  letter-spacing: 0.04em;
  color: var(--fg-muted);
  text-transform: uppercase;
}
.activity__item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: start;
  padding: 16px;
  border-bottom: 1px solid var(--border-muted);
}
.activity__item:last-child { border-bottom: 0; }
.activity__icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg-subtle);
  border: 1px solid var(--border-muted);
  margin-top: 2px;
  flex-shrink: 0;
}
.activity__icon--green {
  background: var(--success-bg);
  border-color: var(--success-emph);
  color: var(--success-emph);
}
.activity__icon--purple {
  background: var(--done-bg);
  border-color: var(--done);
  color: var(--done);
}
.activity__icon--blue {
  background: var(--accent-bg);
  border-color: var(--accent);
  color: var(--accent);
}
.activity__icon .glyph { color: inherit; }

.activity__body { min-width: 0; display: grid; gap: 4px; }
.activity__title {
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--fg);
  display: inline-flex; align-items: center; gap: 8px;
  flex-wrap: wrap;
}
.activity__title .pct {
  font-size: var(--fs-meta);
  font-weight: 500;
  color: var(--fg-muted);
  font-family: var(--f-mono);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0 8px;
  line-height: 18px;
}
.activity__org {
  font-size: var(--fs-body);
  color: var(--fg-muted);
}
.activity__org .link { color: var(--accent); font-weight: 500; }
.activity__list {
  display: grid;
  gap: 4px;
  margin-top: 8px;
  padding-left: 0;
}
.activity__list li {
  position: relative;
  padding-left: 18px;
  color: var(--fg);
  font-size: var(--fs-body);
  line-height: 1.55;
}
.activity__list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.6em;
  width: 6px; height: 6px;
  background: var(--fg-muted);
  border-radius: 50%;
}
.activity__date {
  font-size: var(--fs-meta);
  color: var(--fg-muted);
  white-space: nowrap;
  margin-top: 6px;
  font-family: var(--f-mono);
}
@media (max-width: 720px) {
  .activity__item { grid-template-columns: auto 1fr; }
  .activity__date { grid-column: 1 / -1; padding-left: 46px; margin: 0; }
}

.activity__chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.chip {
  display: inline-flex; align-items: center;
  height: 24px;
  padding: 0 10px;
  font-size: var(--fs-meta);
  background: var(--accent-bg);
  color: var(--accent-emph);
  border-radius: 999px;
  font-weight: 500;
}

.current-banner {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  background: var(--success-bg);
  color: var(--success);
  font-weight: 600;
  font-size: var(--fs-body);
  border-bottom: 1px solid var(--success-emph);
}
.current-banner .pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 2px 10px;
  background: var(--success-emph);
  color: #fff;
  border-radius: 999px;
  font-size: var(--fs-meta);
  font-weight: 600;
}
.current-banner .pill .glyph { color: #fff; }

/* ───────────────────────── skills ────────────────────────── */
.langbar {
  display: flex;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--border-muted);
  margin-bottom: 12px;
}
.langbar > * { height: 100%; }

.skills-groups { display: grid; gap: 12px; }
.skill-group {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg);
}
.skill-group__head {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-muted);
}
.skill-group__head h3 {
  font-size: var(--fs-body);
  font-weight: 600;
  flex: 1;
  display: inline-flex; align-items: center; gap: 8px;
}
.skill-group__head h3 .glyph { color: var(--fg-muted); }
.skill-group__head .count {
  font-size: var(--fs-meta);
  background: var(--bg-muted);
  border-radius: 999px;
  padding: 1px 8px;
  color: var(--fg-muted);
  font-weight: 500;
}
.skill-group__body {
  padding: 12px 16px;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.skill-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  font-size: var(--fs-meta);
  background: var(--accent-bg);
  color: var(--accent-emph);
  border-radius: 999px;
  font-weight: 500;
}

/* ───────────────────────── languages ─────────────────────── */
.lang-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg);
}
.lang-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}
.lang-row h4 { font-size: var(--fs-md); font-weight: 600; }
.lang-row .level {
  font-size: var(--fs-meta);
  color: var(--fg-muted);
  font-family: var(--f-mono);
}
.lang-row .bars {
  display: inline-flex; gap: 3px;
  grid-column: 1 / -1;
}
.lang-row .bar {
  flex: 1; height: 6px;
  background: var(--bg-muted);
  border-radius: 999px;
}
.lang-row .bar--on { background: var(--success-emph); }

/* ───────────────────────── contact ───────────────────────── */
.contact-card {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg);
  overflow: hidden;
}
.contact-card__head {
  padding: 12px 16px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-muted);
  font-weight: 600;
}
.contact-card__list { padding: 4px 0; }
.contact-card__list > div {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-muted);
}
.contact-card__list > div:last-child { border-bottom: 0; }
.contact-card__list .glyph { color: var(--fg-muted); }
.contact-card__list dt {
  font-size: var(--fs-meta);
  color: var(--fg-muted);
  font-weight: 500;
}
.contact-card__list dd {
  font-size: var(--fs-body);
  color: var(--fg);
  text-align: right;
}
.contact-card__list a { color: var(--accent); text-decoration: none; }
.contact-card__list a:hover { text-decoration: underline; }
.placeholder {
  color: var(--fg-muted) !important;
  font-style: italic;
}

/* ───────────────────────── footer ────────────────────────── */
.site-footer {
  max-width: var(--page-max);
  margin: 32px auto 0;
  padding: 24px var(--gutter);
  border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 12px 24px;
  font-size: var(--fs-meta);
  color: var(--fg-muted);
  justify-content: space-between;
  align-items: center;
}
.site-footer__col { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.site-footer .glyph { color: var(--fg-muted); }

/* ───────────────────────── reveal ────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 360ms ease, transform 360ms ease;
}
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
html { scroll-behavior: smooth; }

/* ───────────────────────── focus ring ────────────────────── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ============================================================
   PRINT  (Awesome-CV inspired)
   Single column · top header block · compact A4 · nothing covered.
   ============================================================ */
@media print {
  @page { size: A4; margin: 11mm 12mm 12mm 12mm; }

  /* base */
  html, body {
    background: #fff !important;
    color: #000 !important;
    font-size: 9pt;
    line-height: 1.38;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  /* reveal anim never blocks visibility in print */
  .reveal,
  .reveal.is-in { opacity: 1 !important; transform: none !important; transition: none !important; }

  /* tokens — flatten to ink */
  :root {
    --bg: #fff;
    --bg-subtle: #fff;
    --bg-muted: #f4f4f4;
    --fg: #000;
    --fg-muted: #444;
    --fg-subtle: #666;
    --border: #888;
    --border-muted: #bbb;
    --accent: #0a3a8a;
    --accent-emph: #0a3a8a;
    --accent-bg: #e8eefa;
    --success: #0a6b2f;
    --success-emph: #0a6b2f;
    --success-bg: #e6f3ea;
    --done: #5a2db0;
    --done-bg: #efe8fa;
  }

  /* hide screen-only chrome */
  .site-header,
  .site-footer,
  .btn-row,
  .contact-card .btn,
  .topbar,
  .site-header__status,
  .followers,
  .meta-list,                          /* duplicated in printed header below */
  .profile-divider,
  .achievements,
  .mini-caption,
  .avatar::after,
  .current-banner .pill,
  .repo-card__visibility,
  .skill-group__head .count,
  .activity__year,
  .no-print { display: none !important; }

  /* page wrapper → printable header + single column main */
  .page {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    max-width: none;
  }

  /* hide screen sidebar entirely — its info moves into a print header block via ::before content
     but we keep the avatar in the printed header for visual identity */
  .sidebar {
    position: static !important;
    display: block !important;
    margin: 0 0 6mm 0 !important;
    padding: 0 0 4mm 0 !important;
    border-bottom: 1.5pt solid #000 !important;
  }
  .sidebar .avatar-card {
    display: grid !important;
    grid-template-columns: 22mm 1fr;
    grid-template-rows: auto auto;
    gap: 1mm 6mm;
    align-items: center;
  }
  .avatar {
    grid-column: 1;
    grid-row: 1;
    width: 22mm !important;
    height: 22mm !important;
    max-width: 22mm !important;
    border: 0.5pt solid #888 !important;
    aspect-ratio: 1 / 1 !important;
  }
  .avatar-card > div:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
  }
  .profile-bio {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    margin: 2mm 0 0 0 !important;
    padding-top: 1.5mm;
    border-top: 0.3pt solid #ccc;
    font-size: 9.5pt;
    color: #222 !important;
  }
  .profile-name {
    font-size: 22pt !important;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.05;
    margin: 0;
  }
  .profile-handle {
    font-size: 11pt !important;
    color: #555 !important;
    font-weight: 400;
    margin-top: 1pt;
  }
  .profile-pronouns { display: none; }
  /* print-only contact strip */
  .avatar-card > div:nth-child(2)::after {
    content: "Klinik Südhang · IT Service Manager Support · Schweiz";
    display: block;
    margin-top: 1.5mm;
    font-size: 8.8pt;
    color: #444;
    letter-spacing: 0.02em;
  }

  /* main column → linear flow */
  .main {
    display: block !important;
    margin: 0 !important;
  }
  .section { margin-bottom: 6mm !important; gap: 2mm !important; }
  .section__head {
    border-bottom: 0.6pt solid #000 !important;
    padding-bottom: 1mm !important;
    margin-bottom: 2mm !important;
  }
  .section__head h2 {
    font-size: 11pt;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #000 !important;
  }
  .section__head h2 .glyph { display: none; }
  .section__head .meta {
    font-size: 8.5pt;
    color: #555 !important;
  }

  /* intro card */
  .intro {
    border: 0 !important;
    padding: 0 !important;
    gap: 2mm !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  .intro h1 {
    font-size: 14pt !important;
    margin-bottom: 1mm;
    border-bottom: 0;
    padding-bottom: 0;
  }
  .intro h2 {
    font-size: 10.5pt !important;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 0.4pt solid #888 !important;
    padding-bottom: 0.6mm;
    margin-top: 3mm;
  }
  .intro p, .intro li { font-size: 9.5pt; color: #000 !important; }
  .intro p.muted { color: #555 !important; }
  .intro code {
    background: #f0f0f0;
    border: 0.3pt solid #ccc;
    padding: 0.5pt 2pt;
    border-radius: 1pt;
    font-size: 8.5pt;
  }
  .intro ul.bullets li { margin: 0.6mm 0; }

  /* badges — keep as small flat pills */
  .badges { gap: 2pt; }
  .badge {
    height: auto;
    border-radius: 2pt;
    font-size: 7.5pt;
    color: #000 !important;
    overflow: hidden;
  }
  .badge__l, .badge__r {
    padding: 1pt 4pt;
    line-height: 11pt;
    color: #000 !important;
  }
  .badge__l { background: #e4e4e4 !important; }
  .badge__r { background: #d6e3f5 !important; }
  .badge--success .badge__r { background: #d8efdf !important; }
  .badge--purple  .badge__r { background: #eadcfa !important; }
  .badge--orange  .badge__r { background: #fadecc !important; }
  .badge--yellow  .badge__r { background: #fbedb1 !important; }
  .badge--red     .badge__r { background: #fad6d8 !important; }
  .badge--teal    .badge__r { background: #cce6e6 !important; }

  /* pinned (Schwerpunkte) — compact 3-col */
  .pinned {
    grid-template-columns: 1fr 1fr 1fr !important;
    gap: 2mm !important;
  }
  .repo-card {
    border: 0.4pt solid #888 !important;
    padding: 2mm 2.5mm !important;
    background: #fff !important;
    box-shadow: none !important;
    page-break-inside: avoid;
    gap: 1mm !important;
  }
  .repo-card__head { gap: 3pt !important; }
  .repo-card__name { color: #000 !important; font-size: 9pt; text-decoration: none; }
  .repo-card__name::before { content: "⌘ "; color: #666; font-weight: 400; }
  .repo-card__desc { font-size: 7.8pt; color: #333 !important; line-height: 1.35; }
  .repo-card__meta { font-size: 7pt; color: #555 !important; gap: 5pt !important; margin-top: 1mm !important; }
  .lang-dot { width: 6pt; height: 6pt; border-radius: 50%; }
  .repo-card__head .glyph { width: 3mm; height: 3mm; }

  /* activity (Werdegang + Bildung) — clean entries */
  .activity {
    border: 0 !important;
    background: transparent !important;
    border-top: 0.4pt solid #888 !important;
    border-radius: 0;
  }
  .current-banner {
    background: #d8efdf !important;
    color: #0a6b2f !important;
    border: 0 !important;
    border-bottom: 0.4pt solid #0a6b2f !important;
    padding: 1.5mm 3mm !important;
    font-size: 9pt;
  }
  .activity__item {
    display: grid !important;
    grid-template-columns: auto 1fr auto;
    gap: 3mm !important;
    padding: 2.5mm 0 !important;
    border-bottom: 0.3pt dotted #aaa !important;
    page-break-inside: avoid;
  }
  .activity__item:last-child { border-bottom: 0 !important; }
  .activity__icon {
    width: 6mm !important;
    height: 6mm !important;
    border: 0.4pt solid #666 !important;
    background: #fff !important;
  }
  .activity__icon--green {
    background: #d8efdf !important;
    border-color: #0a6b2f !important;
    color: #0a6b2f !important;
  }
  .activity__icon--purple {
    background: #eadcfa !important;
    border-color: #5a2db0 !important;
    color: #5a2db0 !important;
  }
  .activity__icon--blue {
    background: #d6e3f5 !important;
    border-color: #0a3a8a !important;
    color: #0a3a8a !important;
  }
  .activity__icon .glyph { width: 3.5mm; height: 3.5mm; }
  .activity__title {
    font-size: 10pt;
    font-weight: 700;
    color: #000 !important;
    gap: 2mm !important;
  }
  .activity__title .pct {
    font-size: 7.5pt;
    border: 0.3pt solid #888 !important;
    padding: 0 4pt;
    line-height: 10pt;
    color: #555 !important;
  }
  .activity__org {
    font-size: 8.5pt;
    color: #555 !important;
  }
  .activity__org .link { color: #000 !important; font-weight: 600; }
  .activity__list { margin-top: 1mm !important; gap: 0.6mm !important; }
  .activity__list li {
    font-size: 8.8pt;
    color: #222 !important;
    line-height: 1.4;
    padding-left: 4mm;
  }
  .activity__list li::before {
    top: 0.55em;
    width: 1.4mm; height: 1.4mm;
    background: #444 !important;
    left: 1mm;
  }
  .activity__chips { gap: 1.5pt !important; margin-top: 1.5mm !important; }
  .chip {
    height: 11pt;
    padding: 0 4pt;
    font-size: 7pt;
    background: #e8eefa !important;
    color: #0a3a8a !important;
    border-radius: 6pt;
  }
  .activity__date {
    font-size: 8pt;
    color: #444 !important;
    white-space: nowrap;
    margin-top: 1mm;
    font-variant-numeric: tabular-nums;
  }

  /* skills */
  .langbar {
    height: 4pt !important;
    border: 0.4pt solid #888 !important;
    margin-bottom: 2mm;
  }
  .skills-groups { gap: 2mm !important; }
  .skill-group {
    border: 0.4pt solid #888 !important;
    background: #fff !important;
    page-break-inside: avoid;
  }
  .skill-group__head {
    padding: 1.2mm 2.5mm !important;
    background: #f4f4f4 !important;
    border-bottom: 0.3pt solid #aaa !important;
  }
  .skill-group__head h3 {
    font-size: 9pt;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }
  .skill-group__head .glyph { width: 3.2mm; height: 3.2mm; }
  .skill-group__body { padding: 1.5mm 2.5mm 2mm !important; gap: 2pt !important; }
  .skill-tag {
    background: #e8eefa !important;
    color: #0a3a8a !important;
    border-radius: 6pt;
    padding: 0.5pt 4pt;
    font-size: 7.5pt;
    line-height: 11pt;
    height: auto;
  }

  /* languages */
  .lang-grid {
    border: 0.4pt solid #888 !important;
    padding: 2mm 3mm !important;
    background: #fff !important;
  }
  .lang-row h4 { font-size: 10pt; }
  .lang-row .level { font-size: 8pt; color: #555 !important; }
  .lang-row .bar { background: #ddd !important; height: 3pt; }
  .lang-row .bar--on { background: #0a6b2f !important; }

  /* contact */
  .contact-card {
    border: 0.4pt solid #888 !important;
    background: #fff !important;
    page-break-inside: avoid;
  }
  .contact-card__head {
    background: #f4f4f4 !important;
    border-bottom: 0.3pt solid #aaa !important;
    padding: 1.2mm 2.5mm !important;
    font-size: 9pt;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }
  .contact-card__list > div {
    padding: 1.2mm 2.5mm !important;
    border-bottom: 0.3pt dotted #ccc !important;
  }
  .contact-card__list dt { font-size: 7.5pt; color: #555 !important; }
  .contact-card__list dd { font-size: 9pt; color: #000 !important; }

  /* glyphs (inline icons): subtle ink */
  .glyph { fill: #444 !important; color: #444 !important; }
  .activity__icon .glyph { fill: currentColor !important; color: inherit !important; }

  /* links: black underline */
  a { color: #000 !important; text-decoration: none !important; }
  .repo-card__name, .activity__org .link { text-decoration: none !important; }

  /* general anti-cut rules */
  .activity, .intro, .skill-group, .lang-grid, .contact-card, .pinned > *, .activity__item {
    page-break-inside: avoid;
    break-inside: avoid;
  }
  h1, h2, h3, h4 { page-break-after: avoid; break-after: avoid; }
  .section__head { page-break-after: avoid; break-after: avoid; }
}
