/* ==========================================================================
   Bilal Eker – Bau- und Projektleiter
   Visual language: construction drawing sheet (Schriftfeld, Bauzeitenplan),
   DIN-style lettering (Barlow), CV navy + signal amber.
   ========================================================================== */

/* ---------- Fonts (self-hosted, latin + latin-ext for ä ö ü ß ş ı) ---------- */
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/barlow-latin-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/barlow-latin-ext-400.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/barlow-latin-500.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/barlow-latin-ext-500.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-latin-600.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-latin-ext-600.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/barlow-semi-condensed-latin-500.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/barlow-semi-condensed-latin-ext-500.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-semi-condensed-latin-600.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-semi-condensed-latin-ext-600.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- Tokens ---------- */
:root {
  --navy: #0F355C;          /* CV primary */
  --navy-deep: #0A2742;     /* hero + contact ground */
  --navy-night: #071C30;    /* footer */
  --ink: #172334;
  --muted: #536477;
  --rule: #CDD5DF;
  --rule-soft: #E3E8EE;
  --paper: #F2F5F8;
  --white: #FFFFFF;
  --signal: #F2A900;        /* RAL 1003-like signal amber */
  --signal-hover: #FFBD24;
  --steel: #5A8CBD;

  --font: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Barlow Semi Condensed", "Barlow", "Arial Narrow", system-ui, sans-serif;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 68px;
  --focus: var(--navy);
}

.cat-hochbau     { --cat: var(--navy); }
.cat-labor       { --cat: var(--steel); }
.cat-tiefbau     { --cat: var(--signal); }
.cat-fortbildung { --cat: var(--navy); }

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 12px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font: 400 1.0625rem/1.6 var(--font);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-kerning: normal;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 { margin: 0; overflow-wrap: break-word; hyphens: manual; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
address { font-style: normal; }
time { font-variant-numeric: tabular-nums; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.icon {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}

.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 100;
  padding: 10px 16px; background: var(--signal); color: var(--navy-deep); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 20px;
  font: 600 1rem/1 var(--font); letter-spacing: .01em;
  border: 2px solid transparent; border-radius: 3px;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn .icon { width: 18px; height: 18px; stroke-width: 2; }
.btn-signal { background: var(--signal); color: var(--navy-deep); }
.btn-signal:hover { background: var(--signal-hover); }
.btn-ghost-light { border-color: rgba(255, 255, 255, .45); color: var(--white); }
.btn-ghost-light:hover { border-color: var(--white); background: rgba(255, 255, 255, .08); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  color: var(--white);
  --mark-bg: var(--white); --mark-fg: var(--navy);
  --focus: var(--signal);
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled,
.site-header.is-open,
.page-plain .site-header {
  background: rgba(255, 255, 255, .97);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--rule);
  --mark-bg: var(--navy); --mark-fg: var(--white);
  --focus: var(--navy);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header.is-scrolled { background: rgba(255, 255, 255, .9); backdrop-filter: saturate(1.4) blur(10px); }
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 100%; }

.brand { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand-mark { width: 32px; height: 32px; flex: none; }
.bm-bg { fill: var(--mark-bg); transition: fill .2s ease; }
.bm-a { fill: var(--mark-fg); transition: fill .2s ease; }
.bm-b { fill: var(--signal); }
.brand-name { font: 600 1.3125rem/1 var(--font-display); letter-spacing: .01em; }

.site-nav { display: flex; align-items: center; gap: 20px; }
.site-nav ul { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.site-nav ul a {
  position: relative; display: block; padding: 10px 12px;
  color: inherit; font-weight: 500; text-decoration: none;
}
.site-nav ul a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px;
  background: var(--signal); transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
.site-nav ul a:hover::after,
.site-nav ul a.is-active::after { transform: scaleX(1); }
.nav-cta { min-height: 40px; padding: 0 16px; font-size: .9375rem; }

.nav-toggle {
  display: none; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 12px; margin-right: -12px;
  font: 600 1rem/1 var(--font); color: inherit; background: none; border: 0; cursor: pointer;
}
.nav-toggle .icon { width: 24px; height: 24px; }
.nav-toggle .icon-close,
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 1000px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 16px;
    padding: 8px var(--gutter) 24px;
    background: var(--white); color: var(--ink);
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 24px 40px -24px rgba(10, 39, 66, .35);
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
  }
  .site-nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .2s ease, transform .2s ease; }
  .site-nav ul { flex-direction: column; }
  .site-nav ul a { padding: 14px 0; font-size: 1.25rem; border-bottom: 1px solid var(--rule-soft); }
  .site-nav ul a::after { left: 0; right: auto; width: 32px; bottom: 10px; }
  .nav-cta { min-height: 48px; font-size: 1rem; }
  .no-js .site-nav { position: static; visibility: visible; opacity: 1; transform: none; }
}

/* ---------- Blueprint ground (hero + contact) ---------- */
.blueprint,
.hero,
.contact {
  background-color: var(--navy-deep);
  background-image:
    linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 160px 160px, 160px 160px, 32px 32px, 32px 32px;
  background-position: -1px -1px;
  color: var(--white);
  --focus: var(--signal);
}

/* ---------- Hero ---------- */
.hero { padding-top: calc(var(--header-h) + clamp(40px, 7vw, 104px)); padding-bottom: clamp(40px, 6vw, 80px); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "copy photo" "facts facts";
  column-gap: clamp(32px, 5vw, 80px);
  align-items: end;
}
.hero-copy { grid-area: copy; padding-bottom: clamp(32px, 4vw, 56px); }
.hero-photo { grid-area: photo; margin: 0; width: clamp(220px, 23vw, 300px); }
.hero-photo img { width: 100%; aspect-ratio: 458 / 684; object-fit: cover; background: #1b2b3b; }
.hero-facts { grid-area: facts; }

.hero-name {
  font: 600 clamp(3.25rem, 1.6rem + 6.4vw, 7rem)/.92 var(--font-display);
  letter-spacing: -.012em;
  margin: 0 0 clamp(16px, 2vw, 24px);
}
.hero-role {
  font: 500 clamp(1.25rem, 1rem + 1vw, 1.75rem)/1.25 var(--font-display);
  color: var(--signal);
  margin: 0 0 20px;
}
.hero-lead { max-width: 58ch; font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); color: rgba(255, 255, 255, .8); margin: 0 0 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Schriftfeld / title block ---------- */
.titleblock {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  background: var(--rule);
  border: 2px solid var(--navy);
}
.tb-cell { background: var(--white); padding: 12px 16px 14px; min-width: 0; }
.tb-wide { grid-column: 1 / -1; }
.titleblock dt { font-size: .8125rem; line-height: 1.3; color: var(--muted); margin-bottom: 4px; }
.titleblock dd { margin: 0; font-weight: 500; line-height: 1.4; overflow-wrap: anywhere; }
.titleblock dd a { color: var(--ink); text-decoration-color: var(--rule); }
.titleblock dd a:hover { color: var(--navy); text-decoration-color: currentColor; }

.titleblock-dark { grid-template-columns: repeat(4, minmax(0, 1fr)); background: rgba(255, 255, 255, .22); border-color: rgba(255, 255, 255, .6); }
.titleblock-dark .tb-cell { background: var(--navy-deep); padding: 16px 20px 18px; }
.titleblock-dark dt { color: rgba(255, 255, 255, .62); }
.titleblock-dark dd { font-size: 1.0625rem; color: var(--white); }
.titleblock-dark .tb-cell:first-child { background: #0D2F50; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section-tint { background: var(--paper); }
.section-head { border-top: 2px solid var(--navy); padding-top: 20px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head h2,
.contact h2 {
  font: 600 clamp(2.125rem, 1.5rem + 2.4vw, 3.25rem)/1.02 var(--font-display);
  letter-spacing: -.005em;
  color: var(--navy);
}
.section-intro { max-width: 62ch; margin-top: 14px; color: var(--muted); font-size: 1.125rem; }
.h-small { font: 600 1.1875rem/1.3 var(--font-display); color: var(--navy); margin-bottom: 16px; letter-spacing: .005em; }

/* ---------- Profil ---------- */
.profile-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.profile-text { max-width: 64ch; }
.profile-text p { color: #2A3A4E; }
.profile-text .lead { font-size: clamp(1.25rem, 1.05rem + .7vw, 1.5rem); line-height: 1.45; color: var(--ink); font-weight: 500; margin-bottom: 1.1em; }
.signature { margin-top: 32px; display: flex; flex-direction: column; gap: 6px; }
.signature-img {
  display: block; width: 210px; aspect-ratio: 644 / 269;
  background: var(--navy);
  -webkit-mask: url("../img/unterschrift-bilal-eker.png") left center / contain no-repeat;
  mask: url("../img/unterschrift-bilal-eker.png") left center / contain no-repeat;
}
.signature-name { font-size: .9375rem; color: var(--muted); padding-left: 4px; }

.path { margin-top: clamp(56px, 7vw, 96px); }
.path-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; list-style: none; margin: 0; padding: 0; }
.path-step { display: flex; flex-direction: column; gap: 6px; padding-top: 16px; border-top: 6px solid var(--cat); }
.path-year { font-size: .875rem; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.path-title { font: 600 1.5rem/1.15 var(--font-display); color: var(--ink); }
.path-text { color: #3A4A5E; font-size: 1rem; line-height: 1.5; }

/* ---------- Bauzeitenplan (Gantt) ---------- */
.gantt-figure { margin: 0; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; margin: 0 0 14px; padding: 0; font-size: .9375rem; color: var(--muted); }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.swatch { width: 24px; height: 10px; border-radius: 2px; background: var(--cat); }
.swatch.cat-fortbildung,
.g-bar.cat-fortbildung {
  background: repeating-linear-gradient(135deg, var(--navy) 0 1.5px, transparent 1.5px 5px);
  box-shadow: inset 0 0 0 1.5px var(--navy);
}

.gantt {
  --label-w: 300px;
  position: relative;
  background: var(--white);
  border: 2px solid var(--navy);
}
.g-axis { display: grid; grid-template-columns: var(--label-w) minmax(0, 1fr); border-bottom: 1px solid var(--rule); }
.g-axis-label { display: flex; align-items: center; padding: 0 16px; font-size: .8125rem; color: var(--muted); border-right: 1px solid var(--rule); }
.g-axis-track { position: relative; height: 40px; }
.g-axis-track span {
  position: absolute; top: 0; bottom: 0;
  left: calc(var(--y) * 12 / var(--span) * 100%);
  width: calc(12 / var(--span) * 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: .8125rem; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums;
  border-left: 1px solid var(--rule-soft);
}
.g-rows { list-style: none; margin: 0; padding: 0; }
.g-group {
  padding: 6px 16px; font-size: .8125rem; font-weight: 600; color: var(--navy);
  background: var(--paper); border-bottom: 1px solid var(--rule);
}
.g-row a {
  display: grid; grid-template-columns: var(--label-w) minmax(0, 1fr);
  min-height: 50px; color: inherit; text-decoration: none;
  border-bottom: 1px solid var(--rule-soft);
  transition: background-color .15s ease;
}
.g-row:last-child a { border-bottom: 0; }
.g-row a:hover { background: #F5F8FB; }
.g-row a:hover .g-label strong { text-decoration: underline; text-underline-offset: 3px; }
.g-row a:focus-visible { outline-offset: -3px; }
.g-label { display: flex; flex-direction: column; justify-content: center; gap: 1px; padding: 7px 16px; border-right: 1px solid var(--rule); line-height: 1.25; min-width: 0; }
.g-label strong { font-weight: 600; font-size: .9375rem; color: var(--ink); }
.g-label span { font-size: .8125rem; color: var(--muted); }
.g-row-current .g-label strong { color: var(--navy); }
.g-track {
  position: relative;
  background-image: linear-gradient(to right, var(--rule-soft) 1px, transparent 1px);
  background-size: calc(100% * 12 / var(--span)) 100%;
}
.g-bar {
  position: absolute; top: 50%; height: 14px; margin-top: -7px;
  left: calc(var(--s) / var(--span) * 100%);
  width: calc((var(--e) - var(--s)) / var(--span) * 100%);
  min-width: 6px;
  background: var(--cat); border-radius: 2px;
  transform-origin: left center;
}
.g-track-split .g-bar { height: 8px; margin-top: -9px; }
.g-track-split .g-bar + .g-bar { margin-top: 1px; }
.g-today {
  position: absolute; top: 0; bottom: -10px; width: 0;
  left: calc(var(--label-w) + (100% - var(--label-w)) * var(--t) / var(--span));
  border-left: 2px solid var(--signal);
  pointer-events: none;
}
.g-today span {
  position: absolute; bottom: -22px; right: -2px;
  padding: 2px 7px; border-radius: 2px;
  font-size: .75rem; font-weight: 600; line-height: 1.3;
  background: var(--signal); color: var(--navy-deep);
}

/* One orchestrated moment: the schedule draws itself in */
@media (prefers-reduced-motion: no-preference) {
  .js .gantt .g-bar { transform: scaleX(0); transition: transform .9s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 70ms + 150ms); }
  .js .gantt .g-today { opacity: 0; transition: opacity .4s ease 1.1s; }
  .js .gantt.is-visible .g-bar { transform: none; }
  .js .gantt.is-visible .g-today { opacity: 1; }
}

/* ---------- Experience entries ---------- */
.exp-block { margin-top: clamp(56px, 7vw, 88px); }
.exp-country { font: 600 1.625rem/1.2 var(--font-display); color: var(--navy); padding-bottom: 12px; border-bottom: 2px solid var(--navy); }
.entries { list-style: none; margin: 0; padding: 0; }
.entry {
  display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 8px 40px;
  padding: 28px 0; border-bottom: 1px solid var(--rule);
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.entry-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding-top: 3px; }
.entry-date { display: inline-block; font-weight: 500; color: var(--navy); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cat-dot { display: inline-block; width: 10px; height: 10px; margin-right: 10px; vertical-align: 1px; border-radius: 2px; background: var(--cat); }
.badge { display: inline-block; padding: 3px 10px; border-radius: 2px; background: var(--signal); color: var(--navy-deep); font-size: .8125rem; font-weight: 600; line-height: 1.3; }
.entry-title { font: 600 1.4375rem/1.2 var(--font-display); color: var(--ink); }
.entry-org { font-weight: 500; color: var(--navy); margin: 4px 0 14px; }
.entry-body > p:not(.entry-org) { max-width: 70ch; color: #2E3E52; }
.entry-compact { padding: 20px 0; }
.entry-compact .entry-org,
.entries-plain .entry-org { margin-bottom: 0; }
.entry:target { animation: target-flash 1.6s ease-out; }
@keyframes target-flash { 0%, 30% { background: rgba(242, 169, 0, .16); } 100% { background: transparent; } }

.ticks { list-style: none; margin: 0 0 4px; padding: 0; display: grid; gap: 4px; }
.ticks li { position: relative; padding-left: 20px; color: #2E3E52; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; background: var(--navy); }

.places { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 12px; margin-top: 16px; }
.places-label { font-size: .875rem; color: var(--muted); }
.places ul { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.places li { padding: 2px 10px; font-size: .875rem; font-weight: 500; border: 1px solid var(--rule); border-radius: 2px; background: var(--white); }

.projects { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; margin-top: 4px; max-width: 760px; }
.spec { margin: 0; border: 1.5px solid var(--navy); background: var(--white); font-size: .9375rem; }
.spec > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); border-top: 1px solid var(--rule-soft); }
.spec > div:first-child { border-top: 0; }
.spec dt { padding: 8px 12px; color: var(--muted); font-size: .8125rem; border-right: 1px solid var(--rule-soft); display: flex; align-items: center; }
.spec dd { margin: 0; padding: 8px 12px; font-weight: 500; line-height: 1.4; }
.spec .spec-head { background: var(--paper); }
.spec .spec-head dd { color: var(--navy); }

.lab-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 18px; max-width: 760px; }
.lab-grid h5 { font: 600 1rem/1.3 var(--font); color: var(--navy); margin: 0 0 8px; }
.lab-grid h5:not(:first-child) { margin-top: 18px; }

.exp-extra .entry-title { font-size: 1.25rem; }

/* ---------- Kompetenzen ---------- */
.skills-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 5vw, 64px) clamp(40px, 6vw, 96px); }
.skill-panel { min-width: 0; }

.tiers { display: grid; gap: 22px; }
.tier-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.tier-name { font-weight: 600; color: var(--ink); }
.meter { display: inline-flex; gap: 3px; }
.meter i { width: 18px; height: 6px; background: var(--rule); border-radius: 1px; }
.meter i.on { background: var(--navy); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chips li { padding: 6px 12px; font-weight: 500; font-size: .9375rem; line-height: 1.3; border: 1px solid var(--rule); border-radius: 3px; background: var(--white); }

.langs { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.lang-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.lang-head strong { font: 600 1.25rem/1.2 var(--font-display); }
.lang-level { font: 600 1.25rem/1 var(--font-display); color: var(--navy); }
.lang-note { display: block; font-size: .875rem; color: var(--muted); margin-top: 2px; }
.cefr { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 3px; margin-top: 10px; }
.cefr i { font-style: normal; text-align: center; font-size: .75rem; font-weight: 600; line-height: 1; padding: 6px 0; background: var(--rule-soft); color: #8494A6; border-radius: 1px; }
.cefr i.on { background: #D3DEEA; color: var(--navy); }
.cefr i.is-level { background: var(--navy); color: var(--white); }

.icon-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.icon-list li { display: flex; align-items: center; gap: 14px; }
.icon-list .icon { width: 24px; height: 24px; color: var(--navy); stroke-width: 1.6; }
.icon-list strong { font-weight: 600; margin-right: 4px; }

/* ---------- Zertifikate ---------- */
.cert-layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 5vw, 72px); align-items: start; }
.certs { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--navy); }
.cert { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.cert-date { font-weight: 500; color: var(--navy); padding-top: 2px; }
.cert-title { font: 600 1.1875rem/1.3 var(--font); color: var(--ink); }
.cert-norm { margin: 6px 0 0; font-size: .9375rem; color: var(--muted); }

.course { background: var(--white); border: 2px solid var(--navy); padding: clamp(20px, 3vw, 32px); scroll-margin-top: calc(var(--header-h) + 24px); }
.course:target { animation: target-flash 1.6s ease-out; }
.course-title { font: 600 1.5rem/1.2 var(--font-display); color: var(--navy); }
.course-org { margin: 6px 0 22px; font-weight: 500; color: var(--ink); }
.modules { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.modules li { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 12px 0 12px 26px; border-top: 1px solid var(--rule-soft); }
.modules li::before {
  content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 10px; border-radius: 1px;
  background: repeating-linear-gradient(135deg, var(--navy) 0 1.5px, transparent 1.5px 5px);
  box-shadow: inset 0 0 0 1.5px var(--navy);
}
.module-when { font-size: .875rem; color: var(--muted); }
.module-name { font-weight: 500; line-height: 1.4; }

/* ---------- Bildung ---------- */
.edu-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(40px, 6vw, 96px); }
.edu-col .h-small:not(:first-child) { margin-top: 48px; }
.edu-col .entries { border-top: 2px solid var(--navy); }
.entries-plain .entry { grid-template-columns: 170px minmax(0, 1fr); gap: 4px 24px; padding: 18px 0; }
.entries-plain .entry-title { font-size: 1.1875rem; }
.entries-plain .entry-date { font-size: .9375rem; }

/* ---------- Kontakt ---------- */
.contact { padding-block: clamp(72px, 10vw, 128px); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact h2 { color: var(--white); border-top: 2px solid rgba(255, 255, 255, .6); padding-top: 20px; margin-bottom: 18px; }
.contact-intro p { max-width: 52ch; color: rgba(255, 255, 255, .8); font-size: 1.125rem; }
.contact-mail {
  display: inline-block; margin: 8px 0 32px;
  font: 600 clamp(1.5rem, 1rem + 2.6vw, 2.75rem)/1.15 var(--font-display);
  color: var(--white); text-decoration: underline; text-decoration-color: var(--signal);
  text-decoration-thickness: 3px; text-underline-offset: 8px; overflow-wrap: anywhere;
}
.contact-mail:hover { color: var(--signal); }
.contact-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid rgba(255, 255, 255, .6); }
.contact-list li { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid rgba(255, 255, 255, .16); }
.contact-list .icon { width: 22px; height: 22px; margin-top: 2px; color: var(--signal); }
.contact-list div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cl-label { font-size: .8125rem; color: rgba(255, 255, 255, .6); }
.contact-list a, .contact-list address { color: var(--white); font-weight: 500; overflow-wrap: anywhere; text-decoration-color: rgba(255, 255, 255, .35); }
.contact-list a:hover { text-decoration-color: var(--signal); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-night); color: rgba(255, 255, 255, .7); font-size: .9375rem; --focus: var(--signal); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding-block: 24px; }
.site-footer p { margin: 0; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 4px 24px; list-style: none; margin: 0; padding: 0; }
.site-footer a { color: rgba(255, 255, 255, .85); text-decoration-color: rgba(255, 255, 255, .3); }
.site-footer a:hover { color: var(--white); text-decoration-color: var(--signal); }

/* ---------- Legal page ---------- */
.legal { padding-top: calc(var(--header-h) + clamp(40px, 6vw, 80px)); padding-bottom: clamp(64px, 8vw, 112px); }
.legal .container { max-width: calc(820px + 2 * var(--gutter)); }
.legal h1 { font: 600 clamp(2.25rem, 1.6rem + 2.4vw, 3.25rem)/1.05 var(--font-display); color: var(--navy); margin-bottom: 32px; }
.legal h2 { font: 600 1.625rem/1.2 var(--font-display); color: var(--navy); margin: 48px 0 12px; padding-top: 16px; border-top: 2px solid var(--navy); scroll-margin-top: calc(var(--header-h) + 16px); }
.legal h3 { font: 600 1.1875rem/1.3 var(--font); margin: 28px 0 8px; }
.legal p, .legal li { color: #2E3E52; max-width: 70ch; }
.legal .titleblock { max-width: 560px; margin-bottom: 8px; }

.notfound { min-height: 100vh; display: grid; place-items: center; text-align: left; padding: var(--gutter); }
.notfound h1 { font: 600 clamp(2.5rem, 2rem + 3vw, 4rem)/1 var(--font-display); margin-bottom: 16px; }
.notfound p { color: rgba(255, 255, 255, .8); margin-bottom: 28px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .gantt { --label-w: 250px; }
  .entry { grid-template-columns: 190px minmax(0, 1fr); gap: 8px 28px; }
}

@media (max-width: 900px) {
  .profile-grid,
  .cert-layout,
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .profile-text { max-width: none; }
  .profile-data { max-width: 640px; }
  .path-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
  .titleblock-dark { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .skills-grid { grid-template-columns: minmax(0, 1fr); }
  .edu-grid { grid-template-columns: minmax(0, 1fr); }
  .edu-col + .edu-col { margin-top: 48px; }
}

@media (max-width: 760px) {
  :root { --header-h: 60px; }
  body { font-size: 1rem; }
  /* long German compounds need hyphenation on narrow screens */
  dd, .entry-org, .module-name, .cert-title, .cert-norm, .g-label strong, .entry-body > p:not(.entry-org) { hyphens: auto; }

  .hero { padding-top: calc(var(--header-h) + 28px); }
  .hero-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "photo" "copy" "facts"; }
  .hero-photo { width: 120px; margin-bottom: 24px; }
  .hero-copy { padding-bottom: 32px; }
  .hero-actions .btn { flex: 1 1 auto; }

  .entry,
  .entries-plain .entry { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 22px 0; }
  .entry-meta { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding-top: 0; }
  .lab-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .lab-grid > div + div { margin-top: 18px; }

  /* Gantt: label above each bar, full-width track */
  .gantt { --label-w: 0px; }
  .g-axis, .g-row a { grid-template-columns: minmax(0, 1fr); }
  .g-axis-label { display: none; }
  .g-axis-track { height: 34px; }
  .g-axis-track span { font-size: .6875rem; }
  .g-axis-track span:nth-child(even) { color: transparent; }
  .g-label { border-right: 0; padding: 10px 12px 2px; }
  .g-track { height: 26px; }
  .g-group { padding-inline: 12px; }

  .cert { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 18px 0; }
}

@media (max-width: 520px) {
  .titleblock:not(.titleblock-dark) { grid-template-columns: minmax(0, 1fr); }
  .titleblock-dark .tb-cell { padding: 12px 14px 14px; }
  .titleblock-dark dd { font-size: 1rem; }
  .path-list { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .brand-name { font-size: 1.1875rem; }
  .spec > div { grid-template-columns: 84px minmax(0, 1fr); }
  .meter i { width: 14px; }
}

/* ---------- Print: clean CV-style output ---------- */
@media print {
  @page { margin: 14mm; }
  body { font-size: 10.5pt; color: #000; }
  .site-header, .skip-link, .hero-actions, .nav-toggle, .site-footer ul, .legend + .gantt .g-today { display: none !important; }
  .hero, .contact { background: none !important; color: var(--ink); padding: 0 0 16px; }
  .hero-name, .contact h2, .contact-mail, .contact-list a, .contact-list address { color: var(--navy) !important; }
  .hero-role { color: var(--ink); }
  .hero-lead, .contact-intro p, .cl-label { color: var(--muted); }
  .titleblock-dark { background: var(--rule); border-color: var(--navy); }
  .titleblock-dark .tb-cell { background: #fff !important; }
  .titleblock-dark dt { color: var(--muted); }
  .titleblock-dark dd { color: var(--ink); }
  .section, .contact { padding-block: 18px; }
  .section-tint { background: none; }
  .entry, .cert, .g-row, .spec, .course { break-inside: avoid; }
  .js .gantt .g-bar { transform: none !important; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  a { text-decoration: none; }
}
