/*! NBC v7.442 · Service Family Owner
    Canonical family layer for Process / ERP / AI service detail pages.
    Owns founder composition, service-scope ledger, shared decision layouts,
    mobile disclosure material and family rhythm. Surface colors are inherited
    from global-contracts via data-nbc-surface; no page-local palette forks. */

@layer nbc.contracts {
  body.page-service[data-nbc-service-owner="v7442"]{background:var(--nbc-dark)!important}

  /* Family contract enforcement: service sections consume the global material and
     rhythm tokens even when historical page files still contain local declarations. */
  body.page-service[data-nbc-service-owner="v7442"] [data-nbc-surface]{color:var(--nbc-surface-ink)!important}
  body.page-service[data-nbc-service-owner="v7442"] .service-editorial-section[data-nbc-rhythm="standard"]{padding-block:var(--nbc-section-y)!important}
  body.page-service[data-nbc-service-owner="v7442"] .service-editorial-section[data-nbc-rhythm="compact"]{padding-block:var(--nbc-section-y-compact)!important}
  body.page-service[data-nbc-service-owner="v7442"] .service-editorial-section[data-nbc-rhythm="dense"]{padding-block:var(--nbc-section-y-dense)!important}

  /* Founder statement: one authored paper composition on all three services. */
  body.page-service[data-nbc-service-owner="v7442"] .service-founder-statement{
    position:relative!important;overflow:hidden!important;
    border-top:1px solid var(--nbc-surface-line)!important;
    padding:clamp(64px,5vw,84px) 0!important;
  }
  body.page-service[data-nbc-service-owner="v7442"] .service-founder-statement::after{
    content:"";position:absolute;inset:auto -8vw -22% auto;width:min(48vw,720px);aspect-ratio:1;border-radius:50%;
    background:radial-gradient(circle,rgba(74,122,88,.12),rgba(74,122,88,0) 66%);pointer-events:none;
  }
  body.page-service[data-nbc-service-owner="v7442"] .service-founder-statement__inner{
    position:relative!important;z-index:1!important;display:grid!important;
    grid-template-columns:minmax(280px,.68fr) minmax(0,1.32fr)!important;
    gap:clamp(44px,5vw,78px)!important;align-items:center!important;
  }
  body.page-service[data-nbc-service-owner="v7442"] .service-founder-statement__portrait{
    width:100%!important;max-width:410px!important;justify-self:start!important;margin:0!important;min-width:0!important;position:relative!important;overflow:visible!important;
  }
  body.page-service[data-nbc-service-owner="v7442"] .service-founder-statement__portrait::before{
    content:"";position:absolute;inset:16px -16px -16px 16px;border:1px solid rgba(53,99,66,.24);pointer-events:none;
  }
  body.page-service[data-nbc-service-owner="v7442"] .service-founder-statement__portrait img{
    display:block!important;width:100%!important;height:auto!important;max-height:560px!important;aspect-ratio:auto!important;
    object-fit:contain!important;object-position:50% 0!important;filter:saturate(.90) contrast(1.02)!important;box-shadow:0 22px 54px rgba(17,21,18,.12)!important;
  }
  body.page-service[data-nbc-service-owner="v7442"] .service-founder-statement__copy{min-width:0!important;max-width:900px!important}
  body.page-service[data-nbc-service-owner="v7442"] .service-founder-statement__copy>.mono{
    display:inline-flex!important;align-items:center!important;gap:10px!important;margin:0 0 clamp(22px,2.5vw,34px)!important;
    color:var(--nbc-surface-link)!important;font-size:12px!important;line-height:1.25!important;letter-spacing:.12em!important;
  }
  body.page-service[data-nbc-service-owner="v7442"] .service-founder-statement__copy>.mono::before{content:"";width:28px;height:1px;background:currentColor}
  body.page-service[data-nbc-service-owner="v7442"] .service-founder-statement blockquote{margin:0!important;padding:0!important;border:0!important;max-width:none!important}
  body.page-service[data-nbc-service-owner="v7442"] .service-founder-statement[data-nbc-surface] blockquote p{
    margin:0!important;max-width:27ch!important;font-size:clamp(30px,3.05vw,47px)!important;line-height:1.09!important;
    letter-spacing:-.035em!important;font-weight:520!important;text-wrap:balance!important;color:var(--nbc-surface-ink)!important;-webkit-text-fill-color:currentColor!important;
  }
  body.page-service[data-nbc-service-owner="v7442"] .service-founder-statement blockquote footer{
    margin-top:clamp(24px,2.4vw,34px)!important;padding-top:18px!important;border-top:1px solid var(--nbc-surface-line)!important;
    color:var(--nbc-surface-muted)!important;font-size:14px!important;line-height:1.45!important;letter-spacing:.01em!important;
  }

  /* Service scope: one component, palette inherited from the chosen surface. */
  body.page-service[data-nbc-service-owner="v7442"] .wave2-service-scope{
    margin:0!important;padding:0 0 clamp(64px,6vw,88px)!important;border:0!important;border-bottom:1px solid var(--nbc-surface-line)!important;
  }
  body.page-service[data-nbc-service-owner="v7442"] .wave2-service-scope__grid{
    display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:0!important;
    border-top:1px solid var(--nbc-surface-line)!important;border-bottom:1px solid var(--nbc-surface-line)!important;background:transparent!important;
  }
  body.page-service[data-nbc-service-owner="v7442"] .wave2-service-scope__item{
    min-height:0!important;min-width:0!important;padding:clamp(25px,2.5vw,34px) clamp(20px,2.2vw,30px)!important;
    margin:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;
  }
  body.page-service[data-nbc-service-owner="v7442"] .wave2-service-scope__item+.wave2-service-scope__item{border-left:1px solid var(--nbc-surface-line)!important}
  body.page-service[data-nbc-service-owner="v7442"] .wave2-service-scope__item>span{
    display:block!important;margin-bottom:13px!important;color:var(--nbc-surface-link)!important;-webkit-text-fill-color:currentColor!important;
    font-size:11px!important;line-height:1.25!important;letter-spacing:.12em!important;
  }
  body.page-service[data-nbc-service-owner="v7442"] .wave2-service-scope__item>strong{
    display:block!important;margin:0 0 10px!important;color:var(--nbc-surface-ink)!important;-webkit-text-fill-color:currentColor!important;
    font-size:clamp(16px,1.22vw,19px)!important;line-height:1.28!important;
  }
  body.page-service[data-nbc-service-owner="v7442"] .wave2-service-scope__item p{
    max-width:40ch!important;margin:0!important;color:var(--nbc-surface-muted)!important;-webkit-text-fill-color:currentColor!important;font-size:14px!important;line-height:1.55!important;
  }
  body.page-service[data-nbc-service-owner="v7442"] .wave2-service-scope a{color:var(--nbc-surface-link)!important;-webkit-text-fill-color:currentColor!important;text-decoration-thickness:1px;text-underline-offset:2px}

  /* ERP bridge belongs to the dark continuous canvas and uses the global rail. */
  body.page-service.service-erp[data-nbc-service-owner="v7442"] .erp-v7380-bridge{
    position:relative!important;width:min(var(--nbc-rail-visual),calc(100% - (2 * var(--nbc-layout-gutter))))!important;max-width:var(--nbc-rail-visual)!important;
    margin-inline:auto!important;padding:26px 0 20px!important;display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:7px!important;align-items:start!important;
    color:var(--nbc-dark-ink)!important;
  }
  body.page-service.service-erp[data-nbc-service-owner="v7442"] .erp-v7380-bridge::before{content:"";position:absolute;left:0;right:0;top:0;height:1px;background:linear-gradient(90deg,rgba(158,217,172,.08),rgba(158,217,172,.34),rgba(158,217,172,.06))}
  body.page-service.service-erp[data-nbc-service-owner="v7442"] .erp-v7380-bridge span{font:650 10px/1.2 var(--nbc-font-mono)!important;letter-spacing:.11em!important;color:var(--nbc-dark-muted)!important}
  body.page-service.service-erp[data-nbc-service-owner="v7442"] .erp-v7380-bridge strong{font-size:clamp(18px,2vw,27px)!important;line-height:1.15!important;letter-spacing:-.025em!important;font-weight:720!important;color:var(--nbc-dark-link)!important}
  body.page-service.service-erp[data-nbc-service-owner="v7442"] .erp-v7380-bridge i{display:block!important;height:4px!important;border-radius:999px!important;background:linear-gradient(90deg,rgba(158,224,177,.16),rgba(158,224,177,.74) 62%,rgba(25,51,38,.08))!important;transform-origin:left!important}

  /* Shared authored layouts formerly owned by the global-width compatibility file. */
  @media(min-width:821px){
    body.page-service.service-erp[data-nbc-service-owner="v7442"] #erp-entscheidungsebenen .svp-erp-decision-layers>li{
      display:grid!important;grid-template-columns:54px minmax(205px,.78fr) minmax(0,1fr) minmax(205px,.82fr)!important;
      gap:clamp(18px,2vw,28px)!important;align-items:center!important;padding:14px 0!important;min-height:0!important;
    }
    body.page-service.service-erp[data-nbc-service-owner="v7442"] #erp-entscheidungsebenen .erp-layer-title h3{font-size:clamp(22px,1.8vw,28px)!important;line-height:1.08!important}
    body.page-service.service-erp[data-nbc-service-owner="v7442"] #erp-entscheidungsebenen .erp-layer-question{padding-left:18px!important}

    body.page-service.service-ki[data-nbc-service-owner="v7442"] #produktionslogik .svp-ai-gates>.ai-gate{
      display:grid!important;grid-template-columns:58px minmax(0,1fr)!important;gap:20px!important;padding:15px 0!important;
    }
    body.page-service.service-ki[data-nbc-service-owner="v7442"] #produktionslogik .svp-ai-gates>.ai-gate>.ai-gate__body{
      display:grid!important;grid-template-columns:minmax(220px,.72fr) minmax(280px,1fr) minmax(150px,.46fr)!important;
      column-gap:clamp(20px,3vw,40px)!important;align-items:center!important;
    }
    body.page-service.service-ki[data-nbc-service-owner="v7442"] #produktionslogik .ai-gate__body>.mono{grid-column:1!important;grid-row:1!important}
    body.page-service.service-ki[data-nbc-service-owner="v7442"] #produktionslogik .ai-gate__body>h3{grid-column:1!important;grid-row:2!important;margin:4px 0 0!important}
    body.page-service.service-ki[data-nbc-service-owner="v7442"] #produktionslogik .ai-gate__body>p,
    body.page-service.service-ki[data-nbc-service-owner="v7442"] #produktionslogik .ai-gate__body>blockquote{grid-column:2!important;grid-row:1 / span 2!important;margin:0!important}
    body.page-service.service-ki[data-nbc-service-owner="v7442"] #produktionslogik .ai-gate__signals,
    body.page-service.service-ki[data-nbc-service-owner="v7442"] #produktionslogik .ai-gate__body>.service-text-link{grid-column:3!important;grid-row:1 / span 2!important;margin:0!important}
  }

  /* Progressive evidence disclosure: a shared service primitive, not page-local styling. */
  body.page-service[data-nbc-service-owner="v7442"] .nbc-mobile-progressive-toggle{
    appearance:none;display:none;align-items:center;justify-content:space-between;width:100%;min-height:50px;margin-top:18px;padding:12px 14px 12px 16px;
    border:1px solid var(--nbc-surface-line);border-radius:13px;background:rgba(255,255,255,.025);color:var(--nbc-surface-link);
    font:650 13px/1.25 var(--nbc-font-sans);text-align:left;cursor:pointer;
  }
  body.page-service[data-nbc-service-owner="v7442"] .nbc-mobile-progressive-toggle::after{
    content:"+";display:grid;place-items:center;flex:0 0 28px;width:28px;height:28px;margin-left:14px;border-radius:50%;border:1px solid var(--nbc-surface-line);font:500 17px/1 var(--nbc-font-mono);
  }
  body.page-service[data-nbc-service-owner="v7442"] .nbc-mobile-progressive-toggle[aria-expanded="true"]::after{content:"−"}
  body.page-service[data-nbc-service-owner="v7442"] .nbc-mobile-progressive-body{min-width:0}
  body.page-service[data-nbc-service-owner="v7442"] .p3-signature-index:empty{display:none!important;width:0!important;height:0!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;box-shadow:none!important;background:transparent!important}

  @media(max-width:980px){
    body.page-service[data-nbc-service-owner="v7442"] .wave2-service-scope__grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
    body.page-service[data-nbc-service-owner="v7442"] .wave2-service-scope__item:nth-child(odd){border-left:0!important}
    body.page-service[data-nbc-service-owner="v7442"] .wave2-service-scope__item:nth-child(n+3){border-top:1px solid var(--nbc-surface-line)!important}
  }

  @media(max-width:820px){
    body.page-service[data-nbc-service-owner="v7442"] .service-founder-statement__inner{display:block!important}
    body.page-service[data-nbc-service-owner="v7442"] .service-founder-statement__portrait{width:min(78vw,330px)!important;max-width:330px!important;margin:0 0 44px!important}
    body.page-service[data-nbc-service-owner="v7442"] .service-founder-statement__portrait::before{inset:11px -11px -11px 11px!important}
    body.page-service[data-nbc-service-owner="v7442"] .service-founder-statement__portrait img{width:100%!important;height:auto!important;max-height:none!important}
    body.page-service[data-nbc-service-owner="v7442"] .service-founder-statement blockquote p{max-width:18ch!important;font-size:clamp(25px,7.2vw,32px)!important;line-height:1.12!important}
    body.page-service[data-nbc-service-owner="v7442"] .wave2-service-scope__grid{grid-template-columns:1fr!important}
    body.page-service[data-nbc-service-owner="v7442"] .wave2-service-scope__item+.wave2-service-scope__item{border-left:0!important;border-top:1px solid var(--nbc-surface-line)!important}
    body.page-service[data-nbc-service-owner="v7442"] .wave2-service-scope__item{padding:23px 0!important}

    body.page-service.service-erp[data-nbc-service-owner="v7442"] #erp-entscheidungsebenen .svp-erp-decision-layers>li{display:grid!important;grid-template-columns:48px minmax(0,1fr)!important;gap:8px 14px!important;padding:18px 0!important}
    body.page-service.service-ki[data-nbc-service-owner="v7442"] #produktionslogik .svp-ai-gates>.ai-gate{grid-template-columns:48px minmax(0,1fr)!important;gap:14px!important;padding:18px 0!important}
    body.page-service.service-ki[data-nbc-service-owner="v7442"] #produktionslogik .svp-ai-gates>.ai-gate>.ai-gate__body{display:block!important}
  }

  @media(max-width:700px){
    html.nbc-mobile-progressive-ready body.page-service[data-nbc-service-owner="v7442"] .nbc-mobile-progressive-toggle{display:flex}
    html.nbc-mobile-progressive-ready body.page-service[data-nbc-service-owner="v7442"] [data-mobile-progressive-collapsed="true"] .nbc-mobile-progressive-body{display:none}
    html.nbc-mobile-progressive-ready body.page-service[data-nbc-service-owner="v7442"] [data-mobile-progressive-collapsed="false"] .nbc-mobile-progressive-body{display:block}
    body.page-service[data-nbc-service-owner="v7442"] .nbc-mobile-progressive-body{padding-top:18px}
    body.page-service[data-nbc-service-owner="v7442"] .nbc-mobile-progressive-body>:first-child{margin-top:0!important}
    body.page-service[data-nbc-service-owner="v7442"] .nbc-mobile-progressive-body>:last-child{margin-bottom:0!important}
    body.page-service.service-erp[data-nbc-service-owner="v7442"] .erp-v7380-bridge{padding:22px 0 16px!important;gap:7px!important}
    body.page-service.service-erp[data-nbc-service-owner="v7442"] .erp-v7380-bridge span{font-size:11px!important}
    body.page-service.service-erp[data-nbc-service-owner="v7442"] .erp-v7380-bridge strong{font-size:21px!important}
  }
}

@media(prefers-reduced-motion:reduce){body.page-service[data-nbc-service-owner="v7442"] .nbc-mobile-progressive-body{animation:none!important;transition:none!important}}
