/* An identity and three source-backed ways to explore the opening study. */
.role-mobile-cv, .role-mobile-cv .role-cv-short { display: none; }
#profil .h-role-choices small { font-size: .875em; font-weight: 400; }
#rollenvergleich .h-role-choices button[aria-pressed="true"] small { color: inherit; }
#profil .h-role-choices small::before { content: "· "; }
#profil .role-identity {
  container-type: inline-size;
  display: flex;
  align-items: center;
  gap: clamp(.65rem, 1.35vw, 1.4rem);
  width: 100%;
  margin: 0;
}
#profil .role-identity img {
  flex: none;
  width: clamp(3rem, 5.5vw, 5rem);
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid var(--studio-edge);
  outline: 3px solid var(--studio-glass);
  object-position: center 32%;
}
#profil .role-byline { min-width: 0; }
#profil .role-byline #role-name {
  display: block;
  margin: 0;
  padding: 0;
  color: var(--studio-ink);
  font: 500 clamp(2rem, 4.1vw, 4.3rem)/1.02 Outfit, system-ui, sans-serif;
  font-size: clamp(1.8rem, 11.7cqi, 4.3rem);
  letter-spacing: -.035em;
}
#profil #role-name .role-name-word {
  display: inline-block;
  margin: 0;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
}
#profil .portfolio-intro[data-studio-scene] #role-name .role-name-word { text-shadow: none; }
#profil .role-byline p {
  margin: .48rem 0 0;
  color: var(--studio-muted);
  font: 500 clamp(.875rem, 1.22vw, 1.125rem)/1.35 Outfit, system-ui, sans-serif;
}
#profil .portfolio-lead.role-lead {
  display: block;
  max-width: 32ch;
  margin: clamp(1.5rem, 3.1vw, 3rem) 0 clamp(1rem, 1.7vw, 1.5rem);
  color: var(--studio-ink);
  font: 400 clamp(1.3rem, 2.25vw, 2rem)/1.22 Outfit, system-ui, sans-serif;
  letter-spacing: -.024em;
  text-wrap: pretty;
}
#profil .role-lead a {
  display: flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-height: 44px;
  padding: 0;
  border: 0;
  color: var(--studio-key);
  background: transparent;
  font-family: inherit;
  font-size: clamp(.95rem, 1.1vw, 1.1rem);
  line-height: 1.45;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: .06em;
  text-underline-offset: .16em;
}
#profil .role-lead [data-open-sheet12] {
  box-sizing: border-box;
  gap: .65rem;
  margin-block-start: .45rem;
  padding: .42rem .85rem;
  border: 1px solid var(--studio-edge);
  border-radius: .45rem;
  background: var(--studio-glass);
  color: var(--studio-key);
  font-weight: 650;
}
#profil .role-lead [data-open-sheet12] img {
  flex: none;
  width: 38px;
  height: 27px;
  object-fit: cover;
  border: 1px solid var(--studio-edge);
  border-radius: 3px;
}
#profil .role-lead a:is(:hover,:focus-visible,:active) {
  border-color: currentColor;
  text-decoration-thickness: .11em;
}
.role-work {
  margin: 0 0 clamp(1.1rem, 2vw, 1.8rem);
  min-width: 0;
}
#profil .role-proofs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: clamp(.25rem, 1.15vw, .9rem);
  border: 0;
  padding: 0;
  margin: 0;
}
#profil .role-proofs a {
  box-sizing: border-box;
  min-width: 0;
  min-height: 54px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: .22rem;
  padding: .55rem .1rem .6rem;
  border: 0;
  border-top: 1px solid var(--studio-edge);
  color: var(--studio-key);
  background: transparent;
  text-align: start;
  text-decoration: none;
  line-height: 1.25;
  cursor: pointer;
}
#profil .role-proofs .role-proof-label {
  color: inherit;
  font: 600 clamp(.9rem, 1.18vw, 1.08rem)/1.2 Outfit, system-ui, sans-serif;
  letter-spacing: -.018em;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .17em;
}
#profil .role-proofs small { color: var(--studio-muted); font: 400 .875rem/1.2 Outfit, system-ui, sans-serif; }
#profil .role-proofs a[aria-current="true"] {
  border-top-color: var(--studio-key);
  box-shadow: inset 0 2px var(--studio-key);
}
#profil :is(.role-lead a, .role-proofs a, .role-proof-actions a, .role-proof-actions button):focus-visible {
  border-radius: 3px;
  outline: 2px solid var(--studio-key);
  outline-offset: 2px;
}
#role-proof-note {
  padding: .6rem 0 0 .8rem;
  margin: .38rem 0 .25rem;
  border-inline-start: 2px solid var(--studio-key);
}
#role-proof-note[hidden] { display: none; }
#role-proof-status { margin: 0; color: var(--studio-ink); font-size: 1rem; line-height: 1.4; }
.role-proof-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem 1.25rem; }
#profil .role-proof-actions :is(a,button) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .25rem 0;
  margin: 0;
  border: 0;
  color: var(--studio-key);
  background: transparent;
  font: 550 .9rem/1.25 Outfit, system-ui, sans-serif;
  text-decoration: underline;
  text-underline-offset: .2em;
  cursor: pointer;
}
#profil .role-proof-actions button { color: var(--studio-muted); }
#hero-model .orbit-drag-hint { display: block; }
#hero-model:not([data-has-inspect]) .orbit-inspect-hint { display: none; }
@media (max-width: 430px) {
  #hero-model[data-interactive] .role-ifc-date { display: none; }
  #hero-model .orbit-heading small { font-family: Outfit, system-ui, sans-serif; letter-spacing: normal; }
}
@media (hover:hover) {
  #profil .role-proofs a:hover { border-color: var(--studio-key); background: linear-gradient(180deg, var(--studio-glass), transparent); }
  #profil .role-proofs a:hover .role-proof-label { text-decoration-thickness: 2px; }
}
@media (max-width: 720px) {
  body[data-presentation="overview"] .app-header .role-mobile-cv {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin-inline-start: auto;
    padding: 0 .2rem;
    color: var(--folio-accent);
    font: 600 .875rem/1.2 Outfit, system-ui, sans-serif;
    text-decoration: underline;
    text-underline-offset: .2em;
  }
  body[data-presentation] .app-header .pw-mobile-menu { margin-inline-start: .5rem; }
  #profil .role-identity { order: 0; gap: .68rem; }
  #profil .role-identity img { width: clamp(2.45rem, 11vw, 4rem); }
  #profil .role-byline p { margin: .2rem 0 0; font-size: clamp(.81rem, 3.45vw, 1rem); }
  #profil .portfolio-lead.role-lead {
    order: 1;
    max-width: 45ch;
    margin: .3rem 0 .2rem;
    font-size: clamp(1.03rem, 4.25vw, 1.4rem);
    line-height: 1.28;
    letter-spacing: -.012em;
  }
  #profil .role-work { order: 2; margin: 0; }
  #profil .role-proofs { gap: .48rem; }
  #profil .role-proofs a { min-height: 46px; padding: .35rem 0; gap: .12rem; }
  #profil .role-proofs .role-proof-label { font-size: clamp(.875rem, 3.75vw, 1rem); }
  #profil .role-proofs small { font-size: .8125rem; }
  #role-proof-note { padding: .25rem 0 0 .65rem; }
  #role-proof-status { font-size: .94rem; }

  #profil .portfolio-intro .portfolio-actions a {
    justify-content: center;
    gap: .4rem;
    min-height: 46px;
    padding: .4rem;
    white-space: normal;
    text-wrap: balance;
  }
  #profil .portfolio-actions #h-section-thumb { width: 28px; height: 21px; }
  #profil .portfolio-shortcuts { gap: .15rem 1rem; }
  #profil .portfolio-shortcuts a { min-height: 44px; margin: 0; font-size: .92rem; }
  #profil > #rollenvergleich { margin-block: .5rem .7rem; padding: .9rem 0 .3rem; }
  #rollenvergleich .h-evidence-head h2 {
    font-size: clamp(1.5rem, 6.2vw, 1.95rem);
    line-height: 1.14;
    margin: 0;
  }
  #rollenvergleich .h-evidence-head p { margin: .35rem 0 .75rem; font-size: 1rem; line-height: 1.4; }
  #rollenvergleich .h-evidence-grid { gap: .65rem; }
  #rollenvergleich .h-role-card { padding: .65rem .75rem .35rem; }
  #rollenvergleich .h-role-choices { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .45rem; }
  #rollenvergleich .h-role-choices button {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: .12rem;
    min-height: 48px;
    padding: .32rem .5rem;
    font-size: .925rem;
  }
  #rollenvergleich .h-role-choices small { font-size: .8125rem; }
  #rollenvergleich .h-role-choices small::before { content: none; }
  #rollenvergleich .h-skill-body { gap: .7rem; align-items: flex-start; margin: .75rem 0 .15rem; }
  #rollenvergleich .h-skill-body img { width: clamp(3.4rem, 18vw, 5.5rem); height: auto; }
  #rollenvergleich .h-skill-body strong { display: block; line-height: 1.26; font-size: 1rem; }
  #rollenvergleich .h-skill-body p { margin: .22rem 0 0; font-size: .94rem; line-height: 1.4; }
  #rollenvergleich .h-dest a { display: inline-flex; align-items: center; min-height: 44px; font-size: .94rem; }
  #rollenvergleich .h-role-card:has([data-h-skill="ramp"][aria-pressed="true"]) .h-dest a:nth-child(2),
  #rollenvergleich .h-role-card:has([data-h-skill="coord"][aria-pressed="true"]) .h-dest a:first-child { display: none; }
  #rollenvergleich .h-context {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 0 .75rem;
    align-items: start;
  }
  #rollenvergleich .h-context > details { min-width: 0; padding-inline: 0; }
  #rollenvergleich .h-context > details[open] { grid-column: 1 / -1; }
  #rollenvergleich .h-context summary {
    min-height: 44px;
    padding: .62rem .02rem;
    font-size: .94rem;
    line-height: 1.35;
  }
  #main > #arbeitsweise.portfolio-competence:not(#profil) {
    margin: 0 .85rem;
    padding: .35rem 0 !important;
    display: grid;
    gap: 0;
  }
  #main > #arbeitsweise.portfolio-competence p {
    display: grid;
    grid-template-columns: minmax(0,.95fr) minmax(0,1.1fr);
    gap: .75rem;
    align-items: baseline;
    padding: .42rem 0;
    margin: 0;
    line-height: 1.32;
    font-size: .9rem;
  }
  #arbeitsweise.portfolio-competence p + p { border-top: 1px solid var(--folio-edge); }
  #main > #arbeitsweise.portfolio-competence strong { margin: 0; line-height: 1.25; font-size: .94rem; }
  #main > #rampen-check {
    padding: clamp(1.1rem,5vw,1.8rem) .85rem 1.25rem !important;
    scroll-margin-top: 4rem;
  }
  #rampen-check .rd-heading { margin-bottom: .7rem; }
  #rampen-check .rd-heading > p { margin-bottom: .26rem; }
  #rampen-check .rd-heading h2 { font-size: clamp(1.55rem, 6.3vw, 2rem); line-height: 1.14; }
  #rampen-check .rd-route { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); padding: 0; }
  #rampen-check .rd-route button { min-width: 0; min-height: 44px; padding: .38rem .2rem; font-size: .94rem; }
}
@media (min-width:721px) and (max-width:820px) {
  #profil .role-proofs { gap: .4rem; }
  #profil .role-proofs .role-proof-label { font-size: .875rem; }
  #profil .role-proofs small { font-size: .8125rem; }
}
@media (max-width:360px) {
  #profil .portfolio-lead.role-lead { font-size: 1rem; text-wrap: wrap; }
  #hero-model .h-point {
    display: grid;
    grid-template-columns: max-content minmax(0,1fr);
    gap: .4rem;
    padding-block: .2rem;
  }
  #profil .portfolio-actions #h-section-thumb { display: none; }
}
@media (max-width:359px) {
  body[data-presentation] .app-header .role-mobile-cv { min-width: 44px; margin-inline-start: auto; }
  body[data-presentation] .app-header .role-cv-short { display: inline; }
  body[data-presentation] .app-header .role-cv-long { display: none; }
  body[data-presentation] .app-header .pw-mobile-menu { margin-inline-start: 0; }
}
@media (forced-colors:active) {
  #profil .role-proofs a[aria-current="true"] { border-top: 3px solid Highlight; }
}
#hero-model #h-open-ramp:not([hidden]) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  max-width: 100%;
  padding: .35rem .6rem;
  background: var(--studio-key);
  color: var(--studio-key-ink);
  border: 1px solid var(--studio-key);
  border-radius: .375rem;
  font: 650 .94rem/1.2 Outfit,system-ui,sans-serif;
  text-decoration: none;
}
@media (max-width: 360px) {
  #hero-model #h-open-ramp:not([hidden]) { padding: .2rem .4rem; font-size: .875rem; line-height: 1.15; }
}

/* Use the reader's type size to decide how many actions fit on a row. */
@media (max-width: 720px) {
  body[data-presentation="overview"] :is(.app-header,main,footer) {
    overflow-wrap: anywhere;
  }
  body[data-presentation="overview"] .app-header .brand { min-width: 0; flex-shrink: 1; }
  body[data-presentation="overview"] .app-header .brand span { min-width: 0; white-space: normal; }
  body[data-presentation="overview"] .app-header { container: portfolio-header / inline-size; }
  body[data-presentation="overview"] .app-header .pw-mobile-menu { flex: none; }
  body[data-presentation="overview"] .app-header .pw-mobile-menu > summary {
    white-space: nowrap;
    font-size: .875rem;
    line-height: 1.2;
  }
  body[data-presentation="overview"] .app-header .pw-mobile-menu > nav { top: 100%; }
  #profil .role-identity { flex-wrap: wrap; }
  #profil .role-byline { flex: 1 1 10rem; }
  #profil .role-proofs { grid-template-columns: repeat(auto-fit,minmax(min(100%,5.55rem),1fr)); }
  #profil .role-proofs :is(a,span,small),
  #profil .portfolio-intro .portfolio-actions a,
  #profil .portfolio-shortcuts a,
  #rollenvergleich .h-role-choices :is(button,small) {
    min-width: 0;
    max-width: 100%;
    white-space: normal;
  }
  #profil .portfolio-intro .portfolio-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(min(100%,8rem),1fr));
  }
  #profil .portfolio-shortcuts a { flex: 0 1 auto; }
  #rollenvergleich :is(.h-role-choices,.h-context) {
    grid-template-columns: repeat(auto-fit,minmax(min(100%,8rem),1fr));
  }
  #rollenvergleich .h-skill-body { display: flex; flex-wrap: wrap; }
  #rollenvergleich .h-skill-body > div { flex: 1 1 8rem; min-width: 0; }
  #rollenvergleich .h41-detail dl { grid-template-columns: repeat(auto-fit,minmax(min(100%,7.5rem),1fr)); }
  #main > #arbeitsweise.portfolio-competence p { grid-template-columns: repeat(auto-fit,minmax(min(100%,7rem),1fr)); }
  #rampen-check .rd-route { grid-template-columns: repeat(auto-fit,minmax(min(100%,5rem),1fr)); }
  #rampen-check .rd-panel, #modellbereich #projekt-render { grid-template-columns: minmax(0,1fr); }
  #rampen-check .rd-figure, #rampen-check .rd-copy,
  #modellbereich :is(.presentation-copy,figure),
  #workspace-preview :is(.studio-launch-head > div,.studio-family,.studio-app > span) { min-width: 0; }
  #workspace-preview .studio-family .studio-app { flex-wrap: wrap; }
  #workspace-preview .studio-family .studio-app > span:not(.studio-mark) { flex: 1 1 6.4rem; }
  #rampen-check .rd-figure figcaption,
  #modellbereich :is(.presentation-switch,figcaption) { flex-wrap: wrap; }
  #projekte .visit-tools button, #koordination .visit-wipe-controls button,
  #modellbereich .presentation-switch button { max-width: 100%; white-space: normal; }
  #koordination .portfolio-method, #automation .field-row {
    grid-template-columns: repeat(auto-fit,minmax(min(100%,7rem),1fr));
  }
  #automation .field-row :is(label,input) { min-width: 0; max-width: 100%; }
}
@media (max-width:360px) {
  #koordination .portfolio-method { grid-template-columns:minmax(0,1fr); }
  #koordination .portfolio-method p, .template-grid .badge { overflow-wrap:anywhere; white-space:normal; }
}
@container portfolio-header (max-width: 15rem) {
  body[data-presentation="overview"] .app-header .role-cv-short { display: inline; }
  body[data-presentation="overview"] .app-header .role-cv-long { display: none; }
  body[data-presentation="overview"] .app-header .pw-mobile-menu { flex: none; margin-inline-start: .2rem; }
  body[data-presentation="overview"] .app-header .pw-mobile-menu > summary {
    min-height: 44px;
    padding: .12em .3em;
    white-space: nowrap;
  }
}
@container portfolio-header (max-width: 10rem) {
  .app-header .pw-mobile-menu > summary::after { content: none; }
}
