/* Progresso Consulting Germany GmbH – Stylesheet
   Schrift lokal eingebunden (IBM Plex Sans, SIL Open Font License), keine externen Abrufe. */

@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/ibm-plex-sans-latin-wght.woff2") format("woff2");
  font-weight: 100 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #fafbfb;
  --surface: #edf1f3;
  --ink: #15202b;
  --muted: #55636f;
  --line: #d5dce1;
  --accent: #1d6a84;
  --signal: #d9961f;
  --bar: #9fb6c2;
  --group: #2a7a96;
  --group-ink: #ffffff;
  --skill: #a9d3e0;
  --skill-ink: #15202b;

  --measure: 66ch;
  --wide: 68rem;
  --head: 11rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f171e;
    --surface: #17232d;
    --ink: #e8eef2;
    --muted: #9aaab6;
    --line: #2a3946;
    --accent: #5db2cf;
    --signal: #e8a93a;
    --bar: #3d5666;
    --group: #4a9dba;
    --group-ink: #0f171e;
    --skill: #2f5163;
    --skill-ink: #e8eef2;
    color-scheme: dark;
  }
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: var(--gutter); top: -3rem;
  background: var(--ink); color: var(--bg); padding: 0.5rem 0.8rem; z-index: 10;
}
.skip:focus { top: 0.75rem; }

/* Kopfzeile */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 4.5rem; flex-wrap: wrap;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.7rem;
  color: var(--ink); text-decoration: none; font-weight: 600; letter-spacing: -0.005em;
}
.brand svg { width: 2.25rem; height: 2.25rem; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.15rem; font-weight: 600; }
.brand-text span { font-size: 0.85rem; font-weight: 500; color: var(--muted); }
.brand .mark-bg { fill: var(--ink); }
.brand .mark-bar { fill: var(--bg); }
.brand .mark-signal { fill: var(--signal); }
.site-tools { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 0.2rem 1.4rem; list-style: none; margin: 0; padding: 0; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--ink); }

/* Sprachumschalter: normale Links, damit die Seite ohne JavaScript auskommt */
.lang { display: flex; list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.lang a {
  display: block; padding: 0.2rem 0.6rem; color: var(--muted);
  font-size: 0.85rem; font-weight: 600; text-decoration: none;
}
.lang a:hover { color: var(--ink); background: var(--surface); }
.lang a[aria-current] { background: var(--ink); color: var(--bg); }

/* Startseite: Kopfbereich */
.hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2.5rem, 6vw, 3.5rem); }
.hero h1 {
  margin: 0; max-width: 20ch;
  font-size: clamp(2.1rem, 5vw, 3.6rem); line-height: 1.08;
  font-weight: 600; letter-spacing: -0.022em;
}
.lead {
  margin: 1.2rem 0 0; max-width: 46ch; color: var(--muted); font-size: 1.15rem;
}

/* Opener: die Berater als Ressourcen auf der Planungstafel.
   Alle Skills haben bewusst dieselbe Farbe, damit keine Abstufung nach Können entsteht. */
.crew {
  scroll-margin-top: 1rem;
  list-style: none; margin: clamp(2rem, 5vw, 3rem) 0 0; padding: 0;
  border-top: 1px solid var(--line);
}
.crew-row { min-width: 0; padding: 1.75rem 0 2.25rem; border-bottom: 1px solid var(--line); }
.crew-head { display: grid; grid-template-columns: var(--head) 1fr; gap: 1.25rem; align-items: end; }
.crew-head img {
  display: block; width: 100%; height: auto; aspect-ratio: 1;
  border-radius: 3px; background: var(--surface);
  outline: 1px solid var(--line); outline-offset: -1px;
}
.crew-head h2 { margin: 0; font-size: 1.35rem; }
.crew-head h2 a { color: inherit; text-decoration: none; }
.crew-head h2 a:hover { text-decoration: underline; }
.profile-link { display: inline-block; margin-top: 0.3rem; font-size: 0.95rem; font-weight: 500; }
.crew-head p { margin: 0.3rem 0 0; max-width: var(--measure); color: var(--muted); font-size: 1rem; line-height: 1.5; }

.focus {
  list-style: none; margin: 1.1rem 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.3rem;
}
.focus .area { flex: 1 1 100%; }
.focus ul { list-style: none; margin: 0.3rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.3rem; }
.focus ul li { flex: 1 1 auto; background: var(--skill); color: var(--skill-ink); }
.focus ul.notes li { flex: 1 1 40%; }
.focus ul li, .area > span {
  padding: 0.24rem 0.6rem; font-size: 0.92rem; font-weight: 500; line-height: 1.35;
}
.area > span { display: block; background: var(--group); color: var(--group-ink); font-weight: 600; }
.focus small {
  display: block; margin-top: 0.15rem; opacity: 0.9;
  font-size: 0.82rem; font-weight: 400; line-height: 1.35;
}

@media (prefers-reduced-motion: no-preference) {
  .focus > li { animation: schedule 0.6s cubic-bezier(.2,.7,.2,1) both; }
  .crew-row:nth-child(2) .focus > li { animation-delay: 0.1s; }
}
@keyframes schedule { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }

@media (prefers-color-scheme: dark) {
  .crew-head img { filter: brightness(0.92); }
}

/* Abschnitte */
h2 { font-size: 1.3rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.section { padding: 0 0 clamp(3rem, 8vw, 5.5rem); }

.section h2 { margin: 0 0 1rem; }
.refs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.refs > li {
  display: grid; grid-template-columns: var(--head) 1fr; gap: 0.2rem 1.75rem;
  padding: 1.25rem 0; border-bottom: 1px solid var(--line);
}
.refs h3 { margin: 0; font-size: 1.08rem; font-weight: 600; line-height: 1.35; }
.refs p { margin: 0.3rem 0 0; max-width: 68ch; }
.refs .ref-industry { margin: 0; color: var(--muted); font-weight: 500; }
.ref-result strong { font-weight: 600; }
.refs-more-title { margin: 2rem 0 0.4rem; font-size: 1.08rem; font-weight: 600; }
.refs-more { margin: 0; padding-left: 1.2rem; color: var(--muted); }

.contact { background: var(--surface); padding: clamp(2.5rem, 6vw, 4rem) 0; }
.contact h2 { margin: 0 0 0.6rem; }
.contact a {
  font-size: clamp(1.15rem, 3.2vw, 1.7rem); font-weight: 500; letter-spacing: -0.01em;
  word-break: break-word;
}

/* Rechtstexte */
.legal { padding: clamp(2.5rem, 7vw, 4.5rem) 0 clamp(3rem, 8vw, 5rem); }
.legal .wrap > * { max-width: var(--measure); }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 2rem; }
.legal h2 { margin: 2.4rem 0 0.6rem; }
.legal h3 { font-size: 1.05rem; font-weight: 600; margin: 1.6rem 0 0.4rem; }
.legal p, .legal ul { margin: 0 0 1rem; }
.legal address { font-style: normal; margin: 0 0 1rem; }
.legal .meta { color: var(--muted); font-size: 0.95rem; }

/* Profilseiten */
.profile-top { padding: clamp(1.5rem, 4vw, 2.5rem) 0 clamp(2.5rem, 6vw, 4rem); }
.back { margin: 0 0 1.5rem; font-size: 0.95rem; }
.profile-head { display: grid; grid-template-columns: var(--head) 1fr; gap: 1.75rem; align-items: end; }
.profile-head img {
  display: block; width: 100%; height: auto; aspect-ratio: 1;
  border-radius: 3px; background: var(--surface);
  outline: 1px solid var(--line); outline-offset: -1px;
}
.profile-head h1 {
  margin: 0; font-size: clamp(2.1rem, 5vw, 3.2rem); line-height: 1.08;
  font-weight: 600; letter-spacing: -0.022em;
}
.profile-head .lead { margin-top: 0.6rem; }
.profile-intro { margin-top: 2rem; }
.profile-intro p { margin: 0 0 1rem; max-width: var(--measure); }
.facts {
  list-style: none; margin: 1.75rem 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.3rem;
}
.facts li { background: var(--skill); color: var(--skill-ink); padding: 0.6rem 0.75rem; }
.facts strong { display: block; font-size: 1.15rem; font-weight: 600; line-height: 1.3; }
.facts span { display: block; font-size: 0.9rem; line-height: 1.35; }
h3.ref-industry { font-size: 1rem; line-height: 1.6; }
.refs .topics { color: var(--muted); font-size: 0.98rem; }
.refs .ref-role { color: var(--muted); font-size: 0.98rem; margin-top: 0.1rem; }
.ref-role strong { font-weight: 500; }
.refs p.ref-industry { margin: 0; }
.refs-earlier { margin: 1.25rem 0 0; color: var(--muted); }
.profile-more { margin: 0; border-top: 1px solid var(--line); }
.profile-more > div {
  display: grid; grid-template-columns: var(--head) 1fr; gap: 0.2rem 1.75rem;
  padding: 0.8rem 0; border-bottom: 1px solid var(--line);
}
.profile-more dt { color: var(--muted); font-weight: 500; }
.profile-more dd { margin: 0; }

/* Fußzeile */
.site-footer { border-top: 1px solid var(--line); padding: 1.6rem 0 2rem; color: var(--muted); font-size: 0.92rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; justify-content: space-between; }
.site-footer ul { display: flex; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.site-footer a { color: var(--muted); }

@media (max-width: 56rem) {
  .facts { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 40rem) {
  .crew-head { grid-template-columns: 5.5rem 1fr; gap: 0.75rem 1rem; align-items: center; }
  .crew-head > div { display: contents; }
  .crew-head p, .profile-link { grid-column: 1 / -1; margin: 0; }
  .profile-head { grid-template-columns: 5.5rem 1fr; gap: 1rem; align-items: center; }
  .profile-head .lead { font-size: 1rem; }
  .profile-more > div { grid-template-columns: 1fr; }
  .refs > li { grid-template-columns: 1fr; }
  .contact a { font-size: 1rem; }
  .site-nav ul { gap: 0.2rem 1rem; }
}

@media print {
  .skip, .site-nav { display: none; }
  .focus li, .area > span { background: none; color: #000; border: 1px solid #000; }
  .lang, .back, .profile-link { display: none; }
  body { background: #fff; color: #000; }
}
