/* Profil — Schema, Kernthemen-Panel, Gesichter, Fundament */

/* Hero: gleicher Aufbau und gleiche Mindesthöhe wie auf der Büroseite (.buero-intro) */
@media (min-width:900px){
  .profil-intro{
    --pj-lead:3;--pj-text:4;
    min-height:max(
      calc(4 * var(--col) + 3 * var(--gutter)),
      calc(2 * 1.06 * var(--fs-h1) + var(--sp-4) + var(--stack) + (var(--pj-lead) * 1.5 + var(--pj-text) * 1.6) * var(--fs-body)))}
}
@media (min-width:900px) and (max-width:901.98px){.profil-intro{--pj-text:5}}
@media (min-width:1101px){.profil-intro{--pj-lead:2}}

/* Schema (SVG) */
.profil-schema{width:100%;height:auto;display:none;overflow:visible}
@media (min-width:900px){.profil-schema{display:block}}
.profil-schema .sv-rail{stroke:var(--ink);stroke-width:1}
.profil-schema .sv-link{stroke:var(--mute);stroke-width:1;stroke-dasharray:1.5 5;stroke-linecap:round;transition:stroke .25s var(--ease),stroke-dasharray .25s var(--ease)}
/* Leistungen bewusst ohne Rahmen: Kasten = klickbar, Text = Ergebnis */
.profil-schema .sv-svc text{font-family:var(--font-ui);font-weight:400;font-size:24px;letter-spacing:.01em;fill:var(--ink)}
.profil-schema .node{cursor:pointer}
.profil-schema .node rect{fill:var(--paper);stroke:var(--ink);stroke-width:1;transition:fill .3s var(--ease),stroke-opacity .25s var(--ease)}
.profil-schema .node text{font-family:var(--font-ui);font-weight:400;font-size:18px;letter-spacing:.01em;fill:var(--ink);transition:fill .3s var(--ease),opacity .25s var(--ease)}
.profil-schema .node:hover rect{fill:var(--shade)}
.profil-schema .node:focus{outline:none}
.profil-schema .node:focus-visible rect{stroke-width:2}
/* nicht gewählte Kästen: nur Rahmen, Text und Linie blassen ab, der Grund bleibt weiß */
.profil-schema.has-on .node:not(.is-on) rect{stroke-opacity:.4}
.profil-schema.has-on .node:not(.is-on) :is(text,.sv-link){opacity:.4}
.profil-schema .node.is-on rect,.profil-schema .node.is-on:hover rect{fill:var(--ink)}
.profil-schema .node.is-on text{fill:var(--paper)}
.profil-schema .node.is-on .sv-link{stroke:var(--ink);stroke-dasharray:none}

/* Auswahlknöpfe als Ersatz auf kleinen Schirmen */
.profil-chips{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--sp-1)}
@media (min-width:900px){.profil-chips{display:none}}
/* auf getöntem Grund: Hover hell statt grau, sonst unsichtbar */
/* Nicht für die gewählte Schaltfläche: Auf Touch-Geräten bleibt :hover nach dem Antippen hängen und machte sie weiß auf weiß */
.band--tint .profil-chips .chip:not([aria-pressed="true"]):hover{background:var(--paper)}

/* Textfeld zum gewählten Kernthema */
.profil-panel{margin-top:var(--sp-6);padding-top:var(--sp-5);transition:opacity .25s var(--ease)}
.profil-panel.is-fading{opacity:0}
.profil-panel .link-arrow{margin-top:var(--sp-4)}

/* Expertise: Einleitungstext über den Gesichtern */
.profil-expertise__intro{margin-bottom:var(--sp-7)}

/* Gesichter: Porträts von der Büroseite */
.profil-face{display:block}
.profil-face .media{margin-bottom:var(--sp-2)}
.profil-face .media img{transition:transform .8s var(--ease)}
.profil-face:hover .media img{transform:scale(1.04)}
.profil-face:hover .t-h4{text-decoration:underline;text-underline-offset:.2em;text-decoration-thickness:1px}
/* Pfeil hinter der Headline erscheint erst beim Hover (inline-block: bleibt ohne Unterstrich) */
.profil-face .t-h4>span[aria-hidden]{display:inline-block;opacity:0;transform:translateX(-4px);transition:opacity .3s var(--ease),transform .3s var(--ease)}
.profil-face:is(:hover,:focus-visible) .t-h4>span[aria-hidden]{opacity:1;transform:none}
.profil-face p+p{margin-top:var(--sp-1)}
/* Qualifikation direkt unter dem Namen */
.profil-face .t-small+.t-small{margin-top:0}

/* Fundament: Aussage links, Nutzen mit Symbolen rechts (6 | 1 frei | 5), Trennlinie mittig in der freien Spalte */
.profil-usp{align-items:start}
.profil-usp__list{position:relative}
.profil-usp__item{display:grid;grid-template-columns:36px minmax(0,1fr);column-gap:var(--sp-4);align-items:start}
.profil-usp__item+.profil-usp__item{margin-top:var(--sp-5)}
.profil-usp__ico{grid-row:span 2;display:block;width:36px;height:36px;overflow:visible;color:var(--ink)}
.profil-usp__item .t-small{margin-top:var(--sp-1)}
@media (max-width:899.98px){.profil-usp__list{margin-top:var(--sp-6)}}
@media (min-width:900px){
  .profil-usp__list::before{content:'';position:absolute;top:0;bottom:0;left:calc(-1 * (var(--gutter) + var(--col) / 2));border-left:1px solid var(--rule)}
}

/* Block hs/kernthemen-schema: Elemente ohne Daten ausblenden */
.profil-panel [hidden]{display:none!important}
