/* V77: aligned project stories, connected services and related navigation.
   Scope additions to the existing components; keep the site's type and palette. */

/* All three proof cards share their title, copy, quote and link rows. */
@media (min-width:961px) {
  @supports (grid-template-rows:subgrid) {
    .s53 .home-projects {row-gap:0}
    .s53 .home-projects .home-case {
      display:grid;grid-row:span 6;grid-template-rows:subgrid;row-gap:0;
    }
    .s53 .home-case-body {
      display:grid;grid-row:span 5;grid-template-rows:subgrid;row-gap:.75rem;
      align-items:start;padding-block:1.45rem;
    }
    .s53 .home-case-body .home-case-customer,
    .s53 .home-case-body h3,
    .s53 .home-case-body .home-case-work {margin:0}
    #main.s53 .home-case-body blockquote.kundenstimme {
      display:flex;align-items:center;align-self:stretch;width:100%;margin:0;
    }
    .s53 .home-case-body > .s53-link {
      align-self:end;justify-self:center;text-align:center;justify-content:center;
      margin-top:.35rem;
    }
  }
}

/* The supplied TS and Schmalz originals include a white canvas. Blend that
   canvas into the light logo surface without redrawing either wordmark. */
body :is(.case53-media,.nx-mark-surface,.home-case-media,.am-project-visual,.hu-case-logo):is([data-mark="ts"],[data-mark="schmalz"]) {
  background:#f7f6f9;isolation:isolate;
}
body img:is([data-canonical-logo="ts"],[data-canonical-logo="schmalz"]) {
  mix-blend-mode:multiply!important;filter:none!important;opacity:1!important;
}
body .home-case-media:has(img[data-canonical-logo="ts"]) {background:#f7f6f9;isolation:isolate}

/* A single shared workspace for the three parts of growing a team. */
#main .nx77-growth {scroll-margin-top:6rem;background:#f4f2f8}
#main .nx77-growth-heading {max-width:53rem;margin:0 auto 2rem;text-align:center}
#main .nx77-growth-heading h2 {max-width:none;margin:0;font-size:clamp(1.9rem,3.4vw,2.65rem);line-height:1.12;letter-spacing:-.035em;text-wrap:balance}
#main .nx77-growth-heading p {max-width:66ch;margin:1rem auto 0;color:#514b60;line-height:1.55}
#main .nx77-growth-board {border:1px solid #ded9e7;border-radius:1.2rem;overflow:hidden;background:#fff}
#main .nx77-growth-features {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;list-style:none;margin:0;padding:0}
#main .nx77-growth-features > li {min-width:0;margin:0;padding:clamp(1.35rem,2.5vw,2rem)}
#main .nx77-growth-features > li + li {border-inline-start:1px solid #e4e0eb}
#main .nx77-growth-icon {display:grid;place-items:center;width:3.75rem;height:3.75rem;margin:0 0 1.25rem;border-radius:1rem;background:#efebf5;color:#51415f}
#main .nx77-growth-icon svg {width:2.65rem;height:2.65rem}
#main .nx77-growth-features h3 {margin:0 0 .6rem;font-size:1.3rem;line-height:1.3;letter-spacing:-.015em;text-wrap:balance}
#main .nx77-growth-features p {margin:0;color:#514b60;line-height:1.55}
#main .nx77-growth-features a {display:inline-flex;align-items:center;gap:.5rem;margin-top:.8rem;min-height:44px;color:#4a405e;font-size:.94rem;font-weight:700;text-underline-offset:.2em}
#main .nx77-growth-actions {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:1rem 2rem;border-top:1px solid #e4e0eb;padding:1.2rem clamp(1.35rem,2.5vw,2rem);background:#faf9fc}
#main .nx77-growth-actions .btn {display:inline-flex;align-items:center;justify-content:center;gap:1.5rem;min-height:48px;margin:0;background:#d0d953;color:#000;border:1px solid transparent}
#main .nx77-growth-actions .btn:hover {background:#c2cd43}
#main a.nx77-growth-proof {display:grid;grid-template-columns:1fr auto;column-gap:1rem;max-width:26rem;color:#4a405e;font-weight:700;line-height:1.4;text-decoration:none}
#main .nx77-growth-proof > span:first-child {grid-column:1/-1;font-size:.8rem;font-weight:400;color:#625a70;margin-bottom:.2rem}
#main .nx77-growth-proof:hover {text-decoration:underline;text-underline-offset:.2em}
#main .nx77-growth a:focus-visible {outline:3px solid #645173;outline-offset:4px}

/* Consistent secondary destinations, separate from the primary inquiry. */
body :is(#main, #inhalt, main) .nx77-related {
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem;
  width:100%;max-width:none;margin:0;padding:0;border:0;list-style:none;
}
body :is(#main, #inhalt, main) .nx77-related > a {
  box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;
  gap:1rem;min-width:0;min-height:64px;height:100%;margin:0;padding:1rem 1.1rem;
  border:1px solid #dcd7e4;border-radius:.7rem;background:#fff;color:#4a405e;
  font-size:1rem;font-weight:700;line-height:1.4;text-decoration:none;overflow-wrap:break-word;
  transition:background-color .15s ease,border-color .15s ease;
}
body :is(#main, #inhalt, main) .nx77-related > a::after {content:'→';flex:none;font-weight:400;font-size:1.15rem;color:#786a89}
body :is(#main, #inhalt, main) .nx77-related > a:hover {background:#f2eef7;border-color:#b9aecb;text-decoration:none}
body :is(#main, #inhalt, main) .nx77-related > a:focus-visible {outline:3px solid #645173;outline-offset:3px}
body :is(#main, #inhalt, main) .nx77-related > a:only-child {grid-column:1/-1}
body :is(#main, #inhalt, main) .nx77-related-heading {margin:1.8rem 0 .8rem;font-size:1.05rem;line-height:1.4}
body :is(#main, #inhalt, main) .kw-links.nx77-related {margin-top:1rem}
body :is(#main, #inhalt, main) .nx-process-security-links.nx77-related {grid-template-columns:minmax(0,1fr)}
body :is(#main, #inhalt, main) .nx-start-related.nx77-related {max-width:55rem;margin:0;padding:0;border:0}
/* The three-item groups span the available service column evenly. */
@media (min-width:1100px) {
  body :is(#main, #inhalt, main) .nx77-related:has(> a:nth-child(3):last-child) {grid-template-columns:repeat(3,minmax(0,1fr))}
}

/* A time range and its unit are one indivisible piece of information. */
footer.nx-colophon .footer-hours-time {display:inline-block;white-space:nowrap}

@media (max-width:760px) {
  #main .nx77-growth-heading {text-align:start;margin-bottom:1.4rem}
  #main .nx77-growth-heading h2 {font-size:clamp(1.8rem,5.6vw,2.2rem)}
  #main .nx77-growth-features {grid-template-columns:minmax(0,1fr)}
  #main .nx77-growth-features > li {display:grid;grid-template-columns:2.75rem minmax(0,1fr);column-gap:1rem;padding:1.25rem}
  #main .nx77-growth-features > li + li {border-inline-start:0;border-top:1px solid #e4e0eb}
  #main .nx77-growth-icon {grid-column:1;grid-row:1/span 3;width:2.75rem;height:2.75rem;border-radius:.75rem;margin:0}
  #main .nx77-growth-icon svg {width:2rem;height:2rem}
  #main .nx77-growth-features :is(h3,p,a) {grid-column:2}
  #main .nx77-growth-features h3 {font-size:1.15rem}
  #main .nx77-growth-features a {margin-top:.45rem}
  #main .nx77-growth-actions {align-items:flex-start;flex-direction:column;gap:1.2rem;padding:1.25rem}
  #main .nx77-growth-actions .btn {width:100%}
}
@media (max-width:600px) {
  body :is(#main, #inhalt, main) .nx77-related {grid-template-columns:minmax(0,1fr)}
  body :is(#main, #inhalt, main) .nx77-related > a {min-height:60px;padding:.9rem 1rem;font-size:.96rem}
  .s53 .home-case-body > .s53-link {align-self:center;text-align:center;justify-content:center}
}
@media (prefers-reduced-motion:reduce) {body :is(#main, #inhalt, main) .nx77-related > a {transition:none}}
