* { box-sizing: border-box; }
:root { color-scheme: light; font-family: var(--font-body); background: var(--cg-sage); color: var(--cg-nori); }
body { margin: 0; min-height: 100svh; display: grid; place-items: center; padding: 28px 12px; }
.profile {
  width: min(100%, 512px); padding: 0 20px 4px; background: var(--cg-leaf);
  border: 1px solid var(--cg-line); border-radius: var(--cg-radius-card); box-shadow: var(--cg-shadow-moss);
}
h1, h2, p, figure, ul { margin: 0; }
a { color: inherit; text-decoration: none; }
svg { width: 20px; height: 20px; flex: none; }
.mast { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 65px; padding: 0 3px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.logo { display: block; width: 172px; max-width: 100%; height: auto; }
.location { display: inline-flex; align-items: center; gap: 4px; color: var(--cg-forest-700); font-size: 13px; font-weight: 700; }
.location svg { width: 16px; height: 16px; }
.mast > h1, .mast > .brand { min-width: 0; }
.mast-tools { display: flex; align-items: center; gap: 5px; }
.company-mast > .location { margin-left: auto; }
.company-mast .mast-tools { gap: 0; }
.icon-button {
  display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0;
  color: var(--cg-forest-700); background: transparent; border: 0; border-radius: 8px; cursor: pointer;
}
.icon-button:hover { background: var(--cg-sage); }
.icon-button:focus-visible, .share-native:focus-visible, .share-url input:focus-visible {
  outline: 2px solid var(--cg-forest-700); outline-offset: 2px;
}
.icon-button[hidden], .share-native[hidden] { display: none; }
#share-card {
  width: min(350px, calc(100% - 24px)); max-height: calc(100dvh - 24px); margin: auto;
  padding: 18px; border: 1px solid var(--cg-line); border-radius: var(--cg-radius-control);
  color: var(--cg-nori); background: var(--cg-leaf); box-shadow: var(--cg-shadow-moss);
}
#share-card::backdrop { background: rgb(15 38 22 / 55%); }
.share-heading { display: flex; align-items: start; justify-content: space-between; gap: 8px; }
.share-heading .eyeline { color: var(--cg-forest-700); }
.share-heading h2 { margin-top: 5px; font-size: 23px; line-height: 1.15; }
.share-qr { margin: 16px auto; width: min(216px, 100%); background: white; }
.share-qr svg { display: block; width: 100%; height: auto; shape-rendering: crispEdges; }
.share-url { display: flex; align-items: center; border: 1px solid var(--cg-line); background: var(--cg-paper); border-radius: 8px; }
.share-url input { flex: 1; min-width: 0; padding: 10px 0 10px 8px; border: 0; background: transparent; color: var(--cg-nori); font: 600 13px/1.3 var(--font-body); }
.share-native { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; min-height: 44px; margin-top: 8px; border: 0; border-radius: 8px; background: var(--cg-forest-800); color: var(--cg-paper); font: 700 15px var(--font-body); cursor: pointer; }
.share-status:not(:empty) { margin-top: 8px; color: var(--cg-forest-700); font-size: 13px; }
.portrait, .group { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--cg-radius-control); background: var(--cg-nori); color: var(--cg-leaf); }
.portrait {
  display: grid; grid-template-columns: minmax(0, 1fr) 40%; align-items: end;
  min-height: 202px; background: var(--cg-nori) url("assets/cg2/forest-sonnenlicht.webp") center 48% / cover;
}
.portrait::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, var(--cg-nori) 0%, color-mix(in srgb,var(--cg-nori) 94%,transparent) 36%, color-mix(in srgb,var(--cg-nori) 12%,transparent) 85%);
}
.portrait-copy { align-self: center; padding: 18px 0 20px 22px; overflow-wrap: anywhere; }
.eyeline, .specialty h2 { display: flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.eyeline { color: var(--cg-accent); }
.eyeline::before { content: ""; width: 19px; height: 2px; background: currentColor; }
.portrait h1 { margin: 11px 0 9px; font-size: 37px; font-weight: 800; line-height: 1.01; }
.portrait + nav { margin-top: 14px; }
.portrait p { color: var(--cg-accent); font: 400 21px/1.12 var(--font-hand); }
.portrait-image { justify-self: end; width: 112%; max-width: none; height: 196px; object-fit: cover; object-position: center top; pointer-events: none; }
.group { display: grid; margin-bottom: 14px; }
.team { display: block; width: 100%; height: auto; aspect-ratio: 2.45; object-fit: cover; object-position: center 12%; }
.group figcaption { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 16px; background: var(--cg-depth-forest); }
.hand { color: var(--cg-accent); font: 400 22px/1.1 var(--font-hand); }
.specialty { padding: 15px 3px 14px; }
.specialty h2 { color: var(--cg-forest-700); }
.specialty ul { list-style: none; display: flex; flex-wrap: wrap; gap: 3px 10px; padding: 0; margin: 5px 0; }
.specialty li { display: inline-flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 750; }
.specialty li + li::before { content: ""; width: 4px; height: 4px; background: var(--cg-forest-600); transform: rotate(45deg); }
.bio { font-size: 14px; line-height: 1.45; color: var(--cg-text-body-deep); }
nav { display: grid; gap: 7px; }
.link {
  display: grid; grid-template-columns: 50px minmax(0,1fr) 30px; gap: 13px; align-items: center;
  min-height: 68px; padding: 8px 14px 8px 8px;
  border: 1px solid var(--cg-line); border-radius: var(--cg-radius-control); background: var(--cg-paper);
}
.action-icon { display: block; width: 50px; height: 50px; }
.action-text { display: grid; gap: 4px; overflow-wrap: anywhere; }
.action-text strong { font-size: 16px; font-weight: 750; line-height: 1.2; }
.action-text small { font-size: 12px; line-height: 1.25; color: var(--cg-text-body); }
.link > svg:last-child { justify-self: end; width: 24px; height: 24px; padding: 2px; color: var(--cg-forest-700); }
.link.primary {
  color: var(--cg-white); border-color: var(--cg-forest-800);
  background: var(--cg-liquid-fill); box-shadow: var(--cg-shadow-liquid);
}
.primary .action-text small, .primary > svg:last-child { color: var(--cg-accent-hover); }
.wall-topics { margin: 20px 0 2px; min-width: 0; padding: 8px 0 0; border: 0; border-top: 1px solid var(--cg-line); }
.wall-topics legend { padding: 0 10px 0 0; font-size: 14px; font-weight: 750; }
.topics { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 3px; position: relative; }
.topics.company-topics { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.topics input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.topics label {
  display: grid; justify-items: center; gap: 3px; cursor: pointer; min-width: 60px; padding: 4px;
  border: 1px solid transparent; border-radius: 8px; font-size: 12px; font-weight: 650;
}
.topic-icon { width: 48px; height: 48px; color: var(--cg-forest-700); }
.topics input:checked + label { background: var(--cg-sage); border-color: var(--cg-forest-700); }
.topic-detail { display: none; grid-column: 1 / -1; flex-basis: 100%; min-width: 0; order: 1; margin: 8px 0 0; overflow-wrap: anywhere; }
.topics input:checked + label + .topic-detail { display: block; }
.wall-stage { width: 100%; aspect-ratio: 8 / 5; position: relative; overflow: hidden; background: #e9efe2; }
.wall-stage img, .wall-stage video { width: 100%; height: 100%; display: block; }
.wall-stage video { position: absolute; inset: 0; opacity: 0; }
.wall-stage.is-playing video { opacity: 1; }
.wall-model-name { position: absolute; top: 10px; left: 4.2%; font-size: 13px; font-weight: 750; color: var(--cg-forest-700); }
.wall-replay { position: absolute; left: 3%; bottom: 4px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; color: var(--cg-forest-700); background: transparent; cursor: pointer; }
.wall-replay[hidden] { display: none; }
.wall-replay:hover, .wall-replay:focus-visible { background: var(--cg-paper); }
.wall-replay:focus-visible { outline: 2px solid currentColor; outline-offset: -2px; }
.topic-detail figcaption { padding: 0 3px 8px; }
.topic-detail p { color: var(--cg-text-body-deep); font-size: 14px; line-height: 1.45; }
.topic-source, .topic-overview { display: inline-flex; gap: 6px; align-items: center; min-height: 44px; color: var(--cg-forest-700); font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.topic-source { font-size: 17px; }
.topic-source svg, .topic-overview svg { width: 16px; height: 16px; }
.topic-overview { display: flex; padding: 0 3px; border-top: 1px solid var(--cg-line); }
details { border-bottom: 1px solid var(--cg-line); }
summary, .person { display: grid; align-items: center; gap: 10px; }
summary { grid-template-columns: auto minmax(0,1fr) auto 18px; min-height: 52px; padding: 0 10px; cursor: pointer; font-weight: 750; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary .team-peek { display: flex; align-items: center; padding-left: 2px; }
.team-peek .person-avatar { width: 29px; height: 29px; border: 2px solid var(--cg-leaf); }
.team-peek .person-avatar + .person-avatar { margin-left: -9px; }
.team-symbol, details[open] .team-peek { display: none; }
details[open] .team-symbol { display: grid; place-items: center; width: 46px; }
details[open] summary > svg:last-child { transform: rotate(180deg); }
.team-count { color: var(--cg-forest-700); font-size: 13px; }
.directory { display: grid; }
.person { grid-template-columns: 46px minmax(0,1fr) 18px; padding: 8px 10px; border-top: 1px solid var(--cg-line); }
.person-avatar { position: relative; width: 46px; height: 46px; border-radius: 50%; overflow: hidden; }
.person-avatar img { position: absolute; width: var(--avatar-width, 100%); height: auto; left: var(--avatar-left, 0); top: var(--avatar-top, 0); }
.person strong, .person small { display: block; }
.person small { color: var(--cg-text-body-deep); margin-top: 3px; }
footer { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 8px; border-top: 1px solid var(--cg-line); color: var(--cg-text-body); font-size: 12px; }
footer a { display: inline-flex; align-items: center; min-height: 44px; }
a:focus-visible, summary:focus-visible, .topics input:focus-visible + label { outline: 2px solid var(--cg-forest-700); outline-offset: 3px; }
@media (hover: hover) {
  .secondary:hover, .person:hover, summary:hover, .topics label:hover { background-color: var(--cg-sage); }
  footer a:hover { text-decoration: underline; }
}
@media (prefers-reduced-motion: no-preference) {
  .portrait-image { animation: grow var(--duration-slow) var(--ease-grow); }
  .link { transition: transform var(--duration-fast) var(--ease-soft); }
  .link:active { transform: scale(.985); }
  @keyframes grow { from { transform: translateY(8px); } to { transform: translateY(0); } }
}
@media (prefers-reduced-transparency: reduce) {
  .portrait::before { background: linear-gradient(90deg,var(--cg-nori) 60%,transparent 60%); }
  .link.primary { background: var(--cg-forest-800); }
}
@media (max-width: 440px) {
  .company-mast {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "brand tools" "location tools";
    gap: 3px 8px; align-content: center; padding-block: 8px;
  }
  .company-mast h1 { grid-area: brand; }
  .company-mast > .location { grid-area: location; margin-left: 0; }
  .company-mast .mast-tools { grid-area: tools; }
  body { padding: 12px 8px; }
  .profile { padding: 0 12px 2px; }
  .mast { min-height: 56px; }
  .portrait { min-height: 180px; }
  .portrait-copy { padding-left: 15px; }
  .portrait h1 { font-size: 32px; }
  .portrait p { font-size: 19px; }
  .portrait-image { height: 174px; }
  .group figcaption { flex-wrap: wrap; }
  .link { gap: 9px; padding-right: 10px; }
  .action-text strong { font-size: 15px; }
  .topics { column-gap: 4px; }
  .topics.company-topics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 360px) {
  .logo { width: 150px; }
  .portrait { grid-template-columns: minmax(0,1fr) 35%; }
  .portrait h1 { font-size: 28px; }
  .portrait p { font-size: 18px; }
  .link { grid-template-columns: 48px minmax(0,1fr) 20px; }
  .action-icon { width: 48px; height: 48px; }
}
