/* ==========================================================================
   CENPREX – Website (Relaunch-Entwurf 2026)
   Gemeinsames Stylesheet für Startseite und Unterseiten.
   Prinzip: Typografie und Weißraum tragen, Linien statt Kästen,
   Petrol als Akzent – nicht als Fläche überall.
   ========================================================================== */

:root {
  --petrol:       #006D77;
  --petrol-dark:  #004E57;
  --petrol-light: #E6F2F3;
  --paper:        #F4F6F7;
  --line:         #DDE3E5;
  --line-strong:  #BFCACD;
  --ink:          #2D3436;
  --mute:         #546E7A;
  --night:        #1A1A2E;

  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --gap: 32px;
  --sec: clamp(80px, 9.5vw, 136px);
  --head-h: 76px;
  --r: 6px;
  --ease: .25s ease;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--head-h); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; line-height: 1.15; letter-spacing: -.015em; }
p, ul, ol, dl, dd, figure, address { margin: 0; padding: 0; }
ul, ol { list-style: none; }
address { font-style: normal; }
button { font: inherit; }

:focus-visible { outline: 2px solid var(--petrol); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; top: 12px; z-index: 100; background: #fff; color: var(--ink); padding: 10px 14px; }
.skip:focus { left: 12px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Layout-Helfer ---------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.grid12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.sec { padding: var(--sec) 0; }
.sec--paper { background: var(--paper); }
.sec--dark { background: var(--petrol-dark); color: #fff; }

/* Sektionskopf: Linie über volle Breite, Bezeichnung links, Titel rechts */
.sec-head { border-top: 1px solid var(--ink); padding-top: 28px; row-gap: 24px; }
.sec--dark .sec-head { border-top-color: rgba(255,255,255,.4); }
.sec-label { grid-column: 1 / 4; font-size: .875rem; font-weight: 600; letter-spacing: .01em; padding-top: .55em; }
.sec-title {
  grid-column: 4 / 13;
  font-size: clamp(2rem, 3.7vw, 3.375rem);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -.028em;
  max-width: 17em;
  text-wrap: balance;
}
.sec-intro { grid-column: 4 / 12; color: var(--mute); font-size: 1.0625rem; max-width: 62ch; }
.sec--dark .sec-intro { color: rgba(255,255,255,.72); }
.sec-body { margin-top: clamp(48px, 6vw, 80px); }

/* ---------- Links & Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 22px;
  border: 1px solid transparent; border-radius: var(--r);
  font-size: .9375rem; font-weight: 600; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}
.btn-primary { background: var(--petrol); color: #fff; }
.btn-primary:hover { background: var(--petrol-dark); }
.btn-light { background: #fff; color: var(--petrol-dark); }
.btn-light:hover { background: var(--petrol-light); }

.arrow-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .9375rem; font-weight: 600; text-decoration: none;
  padding-bottom: 3px; border-bottom: 1px solid currentColor;
}
.arrow-link svg, .btn svg { width: 14px; height: 14px; flex: none; transition: transform var(--ease); }
.arrow-link:hover svg, .btn:hover svg { transform: translateX(3px); }
.arrow-link--ext:hover svg { transform: translate(2px, -2px); }
.ico { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Kopfzeile ---------- */
.site-head {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--head-h);
  color: #fff;
  border-bottom: 1px solid transparent;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}
.site-head.is-solid, .menu-open .site-head { background: #fff; color: var(--ink); border-bottom-color: var(--line); }
.site-head > .wrap { height: 100%; display: flex; align-items: center; gap: 36px; }

.brand { display: flex; flex-direction: column; gap: 4px; flex: none; text-decoration: none; margin-right: auto; }
.brand svg { width: 122px; height: auto; aspect-ratio: 3088 / 584; fill: currentColor; }
.brand-sub { font-size: 9.5px; line-height: 1; letter-spacing: .17em; text-transform: uppercase; white-space: nowrap; opacity: .78; }
.site-head .brand svg { color: inherit; }
.site-head.is-solid .brand svg, .menu-open .site-head .brand svg { color: var(--petrol-dark); }

.nav { display: flex; gap: 30px; }
.nav a { position: relative; display: block; padding: 6px 0; font-size: .9375rem; text-decoration: none; opacity: .88; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }

.head-actions { display: flex; align-items: center; gap: 22px; }
.lang { background: none; border: 0; padding: 6px 0; color: inherit; cursor: pointer; font-size: .8125rem; letter-spacing: .05em; }
.lang span { opacity: .5; transition: opacity var(--ease); }
.lang span.on { opacity: 1; font-weight: 600; }
.lang i { font-style: normal; opacity: .35; margin: 0 4px; }

.head-cta {
  display: inline-flex; align-items: center;
  padding: 9px 16px; border-radius: var(--r);
  border: 1px solid rgba(255,255,255,.55);
  font-size: .875rem; font-weight: 600; text-decoration: none;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}
.head-cta:hover { background: #fff; color: var(--petrol-dark); border-color: #fff; }
.site-head.is-solid .head-cta { background: var(--petrol); border-color: var(--petrol); color: #fff; }
.site-head.is-solid .head-cta:hover { background: var(--petrol-dark); border-color: var(--petrol-dark); }

.menu-btn { display: none; position: relative; width: 40px; height: 40px; margin-right: -8px; background: none; border: 0; color: inherit; cursor: pointer; }
.menu-btn span { position: absolute; left: 9px; right: 9px; height: 1.5px; background: currentColor; transition: transform var(--ease), top var(--ease); }
.menu-btn span:nth-child(1) { top: 15px; }
.menu-btn span:nth-child(2) { top: 24px; }
.menu-open .menu-btn span:nth-child(1) { top: 19.5px; transform: rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { top: 19.5px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: var(--head-h) 0 0 0; z-index: 49;
  display: none; flex-direction: column;
  padding: 16px var(--gutter) 40px; background: #fff; color: var(--ink); overflow-y: auto;
}
.menu-open .menu { display: flex; }
.menu-open { overflow: hidden; }
.menu a { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 1.625rem; font-weight: 300; letter-spacing: -.01em; text-decoration: none; }
.menu a:hover { color: var(--petrol); }
.menu .btn { margin-top: 32px; align-self: flex-start; padding: 14px 22px; font-size: 1rem; font-weight: 600; letter-spacing: 0; border-bottom: 0; }
.menu .btn:hover { color: #fff; }

/* Unterseiten ohne Bild-Hero: Kopfzeile von Anfang an hell */
.page-light .site-head { background: #fff; color: var(--ink); border-bottom-color: var(--line); }
.page-light .site-head .brand svg { color: var(--petrol-dark); }
.page-light .head-cta { background: var(--petrol); border-color: var(--petrol); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column;
  min-height: max(660px, 100vh); min-height: max(660px, 100svh);
  color: #fff; background: #0b3f45;
}
.hero-img {
  position: absolute; inset: 0; z-index: -2;
  background: url('img/hero.jpg') center 35% / cover no-repeat;
  animation: hero-settle 2.4s cubic-bezier(.2,.6,.2,1) both;
}
@keyframes hero-settle { from { transform: scale(1.06); } to { transform: none; } }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(0,32,36,.55) 0%, rgba(0,32,36,0) 24%),
    linear-gradient(0deg, rgba(0,32,36,.6) 0%, rgba(0,32,36,0) 38%),
    linear-gradient(90deg, rgba(0,60,67,.9) 0%, rgba(0,70,78,.66) 46%, rgba(0,78,87,.28) 100%);
}
.hero-body { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; padding-top: calc(var(--head-h) + 56px); padding-bottom: clamp(40px, 6vh, 72px); }
.hero-kicker { font-size: .9375rem; opacity: .82; margin-bottom: clamp(20px, 3vh, 32px); }
.hero-title {
  font-size: clamp(3.25rem, 9.2vw, 8.25rem);
  font-weight: 300; line-height: .96; letter-spacing: -.04em;
}
.hero-row { margin-top: clamp(32px, 5vh, 56px); align-items: end; row-gap: 28px; }
.hero-lead { grid-column: 1 / 7; font-size: clamp(1.0625rem, 1.4vw, 1.25rem); line-height: 1.55; color: rgba(255,255,255,.88); max-width: 34em; }
.hero-actions { grid-column: 8 / 13; justify-self: end; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }

.hero-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); padding: 22px 0 30px; border-top: 1px solid rgba(255,255,255,.26); }
.hero-facts dt { font-size: .9375rem; font-weight: 600; }
.hero-facts dd { font-size: .8125rem; line-height: 1.45; color: rgba(255,255,255,.68); margin-top: 2px; }

/* ---------- Über uns ---------- */
.about-lead { grid-column: 4 / 12; font-size: clamp(1.125rem, 1.6vw, 1.375rem); line-height: 1.55; }
.about-lead strong { font-weight: 600; }
.about-text { grid-column: 4 / 11; margin-top: 28px; color: var(--mute); }
.about-link { grid-column: 4 / 13; margin-top: 40px; }

/* ---------- Leistungen: 4 Stufen als Zeilen ---------- */
.stages { border-bottom: 1px solid var(--line-strong); counter-reset: none; }
.stage { padding: 40px 0 44px; border-top: 1px solid var(--line-strong); row-gap: 18px; }
.stage-num { grid-column: 1 / 4; display: flex; flex-direction: column; gap: 14px; padding-top: .3em; }
.stage-num b { font-size: 1rem; font-weight: 600; color: var(--petrol); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.stage-bar { display: flex; gap: 4px; }
.stage-bar i { width: 22px; height: 3px; background: var(--line-strong); }
.stage-bar i.on { background: var(--petrol); }
.stage-title { grid-column: 4 / 7; font-size: clamp(1.375rem, 2vw, 1.75rem); font-weight: 300; line-height: 1.2; letter-spacing: -.02em; padding-right: 12px; }
.stage-text { grid-column: 7 / 11; color: var(--mute); font-size: 1rem; }
.stage-keys { grid-column: 11 / 13; font-size: .8125rem; line-height: 1.5; color: var(--ink); }
.stage-keys li + li { margin-top: 6px; }

/* ---------- Team ---------- */
.team { grid-column: 4 / 13; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px var(--gap); }
.person-img { aspect-ratio: 4 / 5; background: var(--paper); overflow: hidden; margin-bottom: 22px; }
.person-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.person-img--initials { display: flex; align-items: flex-end; padding: 20px; }
.person-img--initials span { font-size: 4.5rem; font-weight: 300; letter-spacing: -.04em; line-height: 1; color: var(--petrol); }
.person-name { font-size: 1.1875rem; font-weight: 600; letter-spacing: -.01em; }
.person-role { font-size: .875rem; color: var(--mute); margin-top: 4px; line-height: 1.45; }
.person-role span + span::before { content: " · "; }
.person-bio { font-size: .9375rem; margin-top: 16px; }
.person-keys { font-size: .8125rem; color: var(--mute); margin-top: 14px; line-height: 1.5; }
.person-keys span + span::before { content: " / "; opacity: .6; }
.person .arrow-link { margin-top: 20px; }

/* ---------- Referenzen ---------- */
.clients { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid rgba(255,255,255,.22); border-bottom: 1px solid rgba(255,255,255,.22); }
.clients li { padding: 26px 24px 28px; font-size: 1.0625rem; line-height: 1.35; }
.clients li:first-child { padding-left: 0; }
.clients li + li { border-left: 1px solid rgba(255,255,255,.22); }
.clients small { display: block; font-size: .75rem; color: rgba(255,255,255,.55); margin-top: 6px; letter-spacing: .01em; }

.ref-filter { display: flex; flex-wrap: wrap; gap: 6px 28px; margin: 56px 0 44px; }
.ref-filter button {
  background: none; border: 0; padding: 6px 0; cursor: pointer;
  color: rgba(255,255,255,.6); font-size: .875rem;
  border-bottom: 1px solid transparent; transition: color var(--ease), border-color var(--ease);
}
.ref-filter button b { font-weight: 600; margin-right: 6px; font-variant-numeric: tabular-nums; }
.ref-filter button:hover { color: #fff; }
.ref-filter button[aria-pressed="true"] { color: #fff; border-bottom-color: #fff; }

.refs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px var(--gap); }
.ref { border-top: 1px solid rgba(255,255,255,.28); padding-top: 22px; display: flex; flex-direction: column; }
.ref[hidden] { display: none; }
.ref-meta { display: flex; gap: 14px; font-size: .8125rem; color: rgba(255,255,255,.62); margin-bottom: 14px; }
.ref-meta b { color: #fff; font-weight: 600; white-space: nowrap; }
.ref h3 { font-size: 1.3125rem; font-weight: 400; line-height: 1.25; letter-spacing: -.015em; }
.ref p { font-size: .9375rem; color: rgba(255,255,255,.76); margin-top: 14px; }
.ref .ref-keys { margin-top: auto; padding-top: 18px; font-size: .8125rem; color: rgba(255,255,255,.5); }
.ref-more { margin-top: 56px; font-size: .875rem; color: rgba(255,255,255,.62); }

/* ---------- Link-Liste (Wissen) ---------- */
.link-list { grid-column: 4 / 13; border-bottom: 1px solid var(--line-strong); }
.link-list a {
  display: grid; grid-template-columns: 140px 1fr auto; align-items: baseline; gap: 24px;
  padding: 26px 0; border-top: 1px solid var(--line-strong); text-decoration: none;
  transition: color var(--ease);
}
.link-list .kind { font-size: .8125rem; color: var(--mute); }
.link-list .title { font-size: clamp(1.1875rem, 1.8vw, 1.5rem); font-weight: 300; letter-spacing: -.015em; line-height: 1.3; }
.link-list svg { width: 18px; height: 18px; align-self: center; transition: transform var(--ease); }
.link-list a:hover { color: var(--petrol); }
.link-list a:hover svg { transform: translateX(4px); }

/* ---------- Kontakt ---------- */
.contact-aside { grid-column: 1 / 5; display: flex; flex-direction: column; gap: 28px; font-size: .9375rem; }
.contact-aside h3 { font-size: .8125rem; font-weight: 600; color: var(--mute); letter-spacing: .01em; margin-bottom: 6px; }
.contact-mail { font-size: 1.375rem; font-weight: 300; letter-spacing: -.01em; text-decoration: none; border-bottom: 1px solid var(--line-strong); transition: border-color var(--ease), color var(--ease); }
.contact-mail:hover { color: var(--petrol); border-bottom-color: var(--petrol); }
.contact-note { font-size: .8125rem; color: var(--mute); line-height: 1.55; }
.contact-note a { color: var(--petrol); text-underline-offset: 3px; }
.contact-note strong { font-weight: 600; color: var(--ink); }

.contact-form { grid-column: 6 / 13; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px var(--gap); }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field label { font-size: .8125rem; font-weight: 600; color: var(--mute); }
.field input, .field select, .field textarea {
  width: 100%; padding: 10px 0 11px;
  font: inherit; font-size: 1.0625rem; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0;
  transition: border-color var(--ease), box-shadow var(--ease);
  -webkit-appearance: none; appearance: none;
}
.field select {
  cursor: pointer; padding-right: 28px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 6l5 5 5-5' fill='none' stroke='%23546E7A' stroke-width='1.5'/%3E%3C/svg%3E") right 2px center / 14px no-repeat;
}
.field textarea { min-height: 132px; resize: vertical; line-height: 1.55; }
.field input::placeholder, .field textarea::placeholder { color: #9AA8AE; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--petrol); box-shadow: 0 1px 0 var(--petrol); }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 36px; }
.form-note { font-size: .8125rem; color: var(--mute); }
.form-success { padding: 32px 0; border-top: 1px solid var(--petrol); }
.form-success strong { display: block; font-size: 1.5rem; font-weight: 300; color: var(--petrol-dark); }
.form-success p { color: var(--mute); margin-top: 6px; }

/* ---------- Fußzeile ---------- */
.site-foot { background: var(--night); color: rgba(255,255,255,.72); font-size: .875rem; padding: 88px 0 32px; }
.foot-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,.12); }
.site-foot .brand { color: #fff; margin-right: 0; }
.site-foot .brand svg { width: 168px; }
.foot-claim { max-width: 30em; text-align: right; color: rgba(255,255,255,.6); }
.foot-cols { padding: 48px 0 64px; row-gap: 40px; }
.foot-cols > div { grid-column: span 3; }
.foot-cols h4 { font-size: .75rem; font-weight: 600; letter-spacing: .04em; color: #fff; margin-bottom: 16px; }
.foot-cols li + li { margin-top: 8px; }
.foot-cols a { text-decoration: none; transition: color var(--ease); }
.foot-cols a:hover { color: #fff; }
.foot-cols address { line-height: 1.6; }
.foot-cols .mail { display: inline-block; margin-top: 12px; color: #fff; border-bottom: 1px solid rgba(255,255,255,.3); }
.stw { display: flex; gap: 14px; align-items: flex-start; }
.stw svg { flex: none; }
.stw a { display: inline-block; margin-top: 8px; border-bottom: 1px solid rgba(255,255,255,.3); }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: .8125rem; color: rgba(255,255,255,.45); }

/* ---------- Responsiv ---------- */
@media (max-width: 1100px) {
  .nav-wrap, .head-cta { display: none; }
  .site-head > .wrap { gap: 20px; }
  .head-actions { gap: 14px; }
  .menu-btn { display: block; }
  .stage-num { grid-row: 1 / span 2; }
  .stage-title { grid-column: 4 / 13; }
  .stage-text { grid-column: 4 / 10; }
  .stage-keys { grid-column: 10 / 13; }
  .team { grid-column: 1 / 13; }
  .contact-aside { grid-column: 1 / 13; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 28px var(--gap); }
  .contact-aside > :first-child { grid-column: 1 / -1; }
  .contact-form { grid-column: 1 / 13; margin-top: 56px; }
}

@media (max-width: 860px) {
  :root { --gap: 20px; --head-h: 68px; }
  .grid12 > * { grid-column: 1 / -1 !important; }
  .sec-label { padding-top: 0; }
  .hero-actions { justify-self: start; }
  .hero-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 18px; }
  .stage { row-gap: 14px; padding: 32px 0 36px; }
  .stage-num { grid-row: auto; flex-direction: row; align-items: center; }
  .stage-keys { display: flex; flex-wrap: wrap; gap: 4px 16px; }
  .stage-keys li + li { margin-top: 0; }
  .team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .clients { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .clients li:nth-child(3) { border-left: 0; padding-left: 0; }
  .clients li:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.22); }
  .refs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .link-list a { grid-template-columns: 1fr auto; row-gap: 4px; }
  .link-list .kind { grid-column: 1 / -1; }
  .contact-aside { grid-template-columns: 1fr 1fr; }
  .foot-claim { text-align: left; }
  .foot-cols > div { grid-column: span 6 !important; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero-title { font-size: clamp(3rem, 15vw, 4.5rem); }
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 20px; }
  .team, .refs { grid-template-columns: 1fr; }
  .person-img { max-width: 420px; }
  .clients { grid-template-columns: 1fr; }
  .clients li { padding: 18px 0 !important; border-left: 0 !important; }
  .clients li + li { border-top: 1px solid rgba(255,255,255,.22); }
  .contact-aside, .form-grid { grid-template-columns: 1fr; }
  .foot-cols > div { grid-column: 1 / -1 !important; }
}

@media (max-width: 360px) {
  .site-head .brand svg { width: 100px; }
  .site-head .brand-sub { font-size: 8px; letter-spacing: .12em; }
}

/* ==========================================================================
   Unterseiten
   ========================================================================== */
.page-light .site-head .nav a[aria-current="page"] { color: var(--petrol-dark); }

/* Seitenkopf */
.page-head { padding: calc(var(--head-h) + clamp(56px, 8vw, 112px)) 0 clamp(48px, 6vw, 80px); }
.page-head .sec-head { border-top: 0; padding-top: 0; row-gap: 28px; }
.page-head .sec-label { padding-top: 1.1em; color: var(--mute); font-weight: 600; }
.page-title { grid-column: 4 / 13; font-size: clamp(2.5rem, 5.4vw, 4.75rem); font-weight: 300; line-height: 1.03; letter-spacing: -.035em; max-width: 15em; text-wrap: balance; }
.page-lead { grid-column: 4 / 11; font-size: clamp(1.0625rem, 1.5vw, 1.25rem); line-height: 1.55; color: var(--mute); max-width: 40em; }
.page-meta { grid-column: 4 / 13; display: flex; flex-wrap: wrap; gap: 6px 32px; font-size: .8125rem; color: var(--mute); }
.page-meta b { color: var(--ink); font-weight: 600; margin-right: 6px; }
.page-actions { grid-column: 4 / 13; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }

/* Text mit Inhaltsverzeichnis */
.doc { border-top: 1px solid var(--ink); padding: clamp(40px, 5vw, 64px) 0 var(--sec); row-gap: 40px; }
.doc-toc { grid-column: 1 / 4; }
.doc-toc nav { position: sticky; top: calc(var(--head-h) + 32px); }
.doc-toc h2 { font-size: .8125rem; font-weight: 600; color: var(--mute); margin-bottom: 10px; }
.doc-toc ol { counter-reset: toc; }
.doc-toc li { counter-increment: toc; }
.doc-toc a { display: grid; grid-template-columns: 2.1em 1fr; padding: 5px 0; font-size: .875rem; line-height: 1.4; color: var(--mute); text-decoration: none; transition: color var(--ease); }
.doc-toc a::before { content: counter(toc, decimal-leading-zero); font-size: .75rem; padding-top: .12em; font-variant-numeric: tabular-nums; }
.doc-toc a:hover, .doc-toc a.on { color: var(--ink); }
.doc-toc a.on::before { color: var(--petrol); font-weight: 600; }
.doc-toc li.plain { counter-increment: none; }
.doc-toc li.plain a::before { content: ""; }
.prose { grid-column: 4 / 12; max-width: 44rem; }

.prose > :first-child { margin-top: 0 !important; }
.prose h2 { margin: 72px 0 20px; padding-top: 22px; border-top: 1px solid var(--line); font-size: clamp(1.5rem, 2.2vw, 1.875rem); font-weight: 300; line-height: 1.2; letter-spacing: -.02em; scroll-margin-top: calc(var(--head-h) + 24px); }
.prose h3 { margin: 36px 0 10px; font-size: 1.0625rem; font-weight: 600; letter-spacing: -.005em; }
.prose p, .prose ul, .prose ol, .prose address, .prose .table-wrap, .prose .note, .prose .entry, .prose .cols3, .prose .defs { margin: 0 0 18px; }
.prose ul > li { position: relative; padding-left: 22px; }
.prose ul > li::before { content: ""; position: absolute; left: 2px; top: .82em; width: 10px; height: 1px; background: currentColor; }
.prose ol { counter-reset: ol; }
.prose ol > li { counter-increment: ol; position: relative; padding-left: 30px; }
.prose ol > li::before { content: counter(ol) "."; position: absolute; left: 0; top: 0; font-weight: 600; color: var(--petrol); font-variant-numeric: tabular-nums; }
.prose li + li { margin-top: 8px; }
.prose a { color: var(--petrol); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { color: var(--petrol-dark); }
.prose strong { font-weight: 600; }
.prose code { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: .86em; background: var(--paper); padding: 1px 5px; border-radius: 3px; }
.prose .stand { margin-top: 48px; font-size: .8125rem; color: var(--mute); }
.prose .sources { font-size: .875rem; line-height: 1.55; color: var(--mute); }
.prose .lead-in { font-size: 1.1875rem; line-height: 1.6; }

.prose .table-wrap { overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: .9375rem; line-height: 1.5; }
.prose th { text-align: left; vertical-align: bottom; padding: 0 16px 10px 0; border-bottom: 1px solid var(--ink); font-size: .8125rem; font-weight: 600; color: var(--mute); }
.prose td { text-align: left; vertical-align: top; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line); }
.prose td.k { font-weight: 600; white-space: nowrap; }
.prose td.num { white-space: nowrap; font-variant-numeric: tabular-nums; }

.prose .note { padding: 20px 24px; background: var(--petrol-light); border-radius: var(--r); }
.prose .note--muted { background: var(--paper); }
.prose .note > :last-child { margin-bottom: 0; }
.prose .entry { padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.prose .entry + .entry { border-top: 0; margin-top: -18px; }
.prose .entry-title { display: block; font-weight: 600; margin-bottom: 4px; }
.prose .entry-meta { display: block; margin-top: 10px; font-size: .8125rem; line-height: 1.55; color: var(--mute); }

.prose .cols3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 28px; margin-bottom: 28px; }
.prose .cols3 > div { padding-top: 14px; border-top: 1px solid var(--ink); }
.prose .cols3 .k { display: block; margin-bottom: 6px; font-size: .8125rem; font-weight: 600; color: var(--petrol); }
.prose .cols3 h3 { margin: 0 0 8px; font-size: 1.0625rem; line-height: 1.35; }
.prose .cols3 p { margin: 0; font-size: .9375rem; color: var(--mute); }

.prose .defs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; margin-top: 24px; margin-bottom: 28px; }
.prose .defs > div { padding: 14px 0; border-top: 1px solid var(--line); }
.prose .defs dt { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.prose .defs dt i { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--petrol)); }
.prose .defs dd { margin-top: 4px; padding-left: 20px; font-size: .9375rem; color: var(--mute); }
.dot { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--c, var(--petrol)); vertical-align: .08em; }

/* Abschluss-Aufruf auf Unterseiten */
.cta-row { grid-column: 4 / 13; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }

/* Einträge (Tools, Artikel, Stellen) */
.items { border-bottom: 1px solid var(--line-strong); }
.item { padding: 36px 0 40px; border-top: 1px solid var(--line-strong); row-gap: 16px; }
.item-meta { grid-column: 1 / 4; display: flex; flex-direction: column; gap: 4px; padding-top: .5em; font-size: .8125rem; color: var(--mute); }
.item-meta b { font-weight: 600; color: var(--ink); }
.item-meta .flag { font-weight: 600; color: var(--petrol); }
.item-main { grid-column: 4 / 10; }
.item-main h3 { font-size: clamp(1.375rem, 2vw, 1.75rem); font-weight: 300; line-height: 1.2; letter-spacing: -.02em; }
.item-main p { margin-top: 12px; color: var(--mute); }
.item-keys { margin-top: 14px; font-size: .8125rem; color: var(--mute); }
.item-keys span + span::before { content: " / "; opacity: .6; }
.item-facts { display: flex; flex-wrap: wrap; gap: 4px 28px; margin-top: 16px; font-size: .875rem; }
.item-facts span { color: var(--mute); margin-right: 6px; }
.item-actions { grid-column: 10 / 13; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding-top: .55em; }
.item--soon .item-main h3 { color: var(--mute); }
.items-empty { padding: 36px 0 40px; border-top: 1px solid var(--line-strong); color: var(--mute); }
.items-note { margin-top: 32px; color: var(--mute); }
.items-note a { color: var(--petrol); text-underline-offset: 3px; }

/* Faktenraster (Profil) */
.facts { grid-column: 4 / 13; display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 40px var(--gap); }
.facts > div { padding-top: 16px; border-top: 1px solid var(--line-strong); }
.facts h3 { margin-bottom: 8px; font-size: 1rem; font-weight: 600; line-height: 1.4; }
.facts p { font-size: .9375rem; color: var(--mute); }
.facts a { color: var(--petrol); text-underline-offset: 3px; }
.facts-note { grid-column: 4 / 13; margin-top: 40px; font-size: .9375rem; }
.facts-note b { font-weight: 600; margin-right: 8px; }

/* Zeilen (Vita, Publikationen) */
.rows { border-bottom: 1px solid var(--line); }
.row { padding: 22px 0; border-top: 1px solid var(--line); row-gap: 6px; }
.row-k { grid-column: 1 / 4; padding-top: .2em; font-size: .875rem; color: var(--mute); font-variant-numeric: tabular-nums; }
.row-v { grid-column: 4 / 12; }
.row-v h3 { font-size: 1.125rem; font-weight: 600; letter-spacing: -.005em; line-height: 1.4; }
.row-v .org { margin-top: 2px; }
.row-v p { margin-top: 6px; font-size: .9375rem; color: var(--mute); }
.row-v .cite { font-size: 1rem; color: var(--ink); margin-top: 0; }

/* Profilkopf */
.profile-head { padding: calc(var(--head-h) + clamp(48px, 7vw, 96px)) 0 clamp(48px, 6vw, 80px); }
.profile-head .grid12 { align-items: end; row-gap: 32px; }
.profile-photo { grid-column: 1 / 4; aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper); }
.profile-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.profile-text { grid-column: 4 / 13; }
.profile-role { margin-bottom: 18px; font-size: .9375rem; color: var(--mute); }
.profile-text .page-title { max-width: none; }
.profile-sub { margin-top: 20px; font-size: 1.125rem; }
.profile-keys { margin-top: 10px; font-size: .875rem; color: var(--mute); }
.profile-keys span + span::before { content: " / "; opacity: .6; }
.profile-links { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-top: 32px; }
.print-only { display: none; }

@media (max-width: 1100px) {
  .prose, .doc--plain .prose { grid-column: 1 / 13; }
  .doc-toc { grid-column: 1 / 13; }
  .doc-toc nav { position: static; }
  .doc-toc ol { columns: 2; column-gap: var(--gap); }
  .doc-toc li { break-inside: avoid; }
  .item-main { grid-column: 4 / 13; }
  .item-actions { grid-column: 4 / 13; flex-direction: row; align-items: center; gap: 28px; padding-top: 4px; }
  .facts { grid-column: 1 / 13; }
  .facts-note { grid-column: 1 / 13; }
}
@media (max-width: 860px) {
  .page-head .sec-label { padding-top: 0; }
  .doc-toc ol { columns: 1; }
  .prose .cols3 { grid-template-columns: 1fr; }
  .prose .defs { grid-template-columns: 1fr; }
  .item-meta { flex-direction: row; flex-wrap: wrap; gap: 4px 16px; padding-top: 0; }
  .facts { --n: 2 !important; }
  .row-k { padding-top: 0; }
  .profile-photo { max-width: 280px; }
}
@media (max-width: 560px) {
  .facts { --n: 1 !important; }
  .item-actions { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* Druck (v. a. Profil/Lebenslauf und Rechtstexte) */
@media print {
  @page { size: A4; margin: 14mm 16mm; }
  html, body { background: #fff; }
  body { font-size: 10pt; line-height: 1.5; color: #111; }
  .site-head, .menu, .site-foot, .skip, .no-print, .doc-toc { display: none !important; }
  .print-only { display: block !important; }
  .profile-head, .page-head { padding: 0 0 14pt; }
  .profile-photo { max-width: 32mm; }
  .page-title { font-size: 24pt; }
  .sec { padding: 10pt 0; }
  .sec--paper, .sec--dark { background: none; color: inherit; }
  .sec-title { font-size: 15pt; }
  .sec-intro, .sec-body { margin-top: 6pt; }
  .doc { border-top: 0; padding: 0; }
  .prose { grid-column: 1 / 13; max-width: none; }
  a { color: inherit; text-decoration: none; }
  .row, .facts > div, .entry, .note { break-inside: avoid; }
  .row { padding: 6pt 0; }
}

/* Erste Überschrift im Fließtext: keine zweite Linie direkt unter der Seitenlinie */
.prose > h2:first-child { border-top: 0; padding-top: 0; }

/* Textlink als Schaltfläche (z. B. „Als PDF speichern“) */
button.arrow-link { background: none; border: 0; border-bottom: 1px solid currentColor; padding: 0 0 3px; color: inherit; font: inherit; font-size: .9375rem; font-weight: 600; cursor: pointer; }

/* Rücklink im Seitenkopf (z. B. „Wissen / Methoden-Artikel“) */
.sec-label a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--line-strong); transition: color var(--ease), border-color var(--ease); }
.sec-label a:hover { color: var(--petrol); border-bottom-color: var(--petrol); }

/* Druck: kompakter Lebenslauf (Profilseite) – überschreibt die schmalen Bildschirm-Layouts */
@media print {
  .profile-head .grid12 { grid-template-columns: 1fr 30mm; column-gap: 8mm; align-items: start; }
  .profile-head .grid12 > .profile-text { grid-column: 1 !important; grid-row: 1; }
  .profile-head .grid12 > .profile-photo { grid-column: 2 !important; grid-row: 1; max-width: 30mm; }
  .profile-role { margin-bottom: 4pt; font-size: 9pt; }
  .profile-text .page-title { font-size: 22pt; letter-spacing: -.02em; }
  .profile-sub { margin-top: 6pt; font-size: 10.5pt; }
  .profile-keys { margin-top: 4pt; font-size: 8.5pt; }
  .profile-head { border-bottom: 1px solid #111; margin-bottom: 4pt; }
  .sec-head { border-top: 0; padding-top: 0; row-gap: 0; }
  .sec-head > .sec-label { display: none; }
  .sec-head > .sec-title { font-size: 13pt; font-weight: 600; letter-spacing: 0; padding-bottom: 3pt; border-bottom: 1px solid #999; max-width: none; }
  .sec-body { margin-top: 6pt !important; }
  .facts { --n: 3 !important; gap: 8pt 14pt; }
  .facts > div { padding-top: 5pt; border-top: 0; }
  .facts h3 { margin-bottom: 2pt; font-size: 9.5pt; }
  .facts p { font-size: 8.5pt; line-height: 1.4; }
  .facts-note { margin-top: 8pt; font-size: 8.5pt; }
  .rows { border-bottom: 0; }
  .row.grid12 { grid-template-columns: 27mm 1fr; column-gap: 0; padding: 4pt 0; border-top: 0; row-gap: 0; }
  .row.grid12 > .row-k { grid-column: 1 !important; font-size: 8.5pt; padding-top: 1pt; }
  .row.grid12 > .row-v { grid-column: 2 !important; }
  .row-v h3 { font-size: 10pt; }
  .row-v .org, .row-v p { margin-top: 1pt; font-size: 8.5pt; line-height: 1.4; }
}

/* Schmale Bildschirme: Schlüsselspalte in Tabellen darf umbrechen */
@media (max-width: 560px) {
  .prose td.k { white-space: normal; }
}
