/*! NBC v7.376 · targeted composition polish
    Scope: regional gateways, diagnose continuation, decision-guide rhythm.
    Keeps v7.375 rail and service contracts unchanged. */

/* -------------------------------------------------------------------------
   1 · Regional pages: remove old viewport-like section heights where content
       is intrinsically shorter. The live regional tool host is intentionally
       excluded because its scene owns its own stage height.
   ------------------------------------------------------------------------- */
html body#nbc-page.page-regional-gateway :is(
  .regional-self-check,
  .regional-presence,
  .regional-faq,
  .local-faq,
  .local-qualification,
  .rx-close,
  .local-final,
  .ks-proof,
  .ks-profile,
  .ks-thesis,
  .gp-first,
  .regional-radius
){
  height:auto!important;
  min-height:0!important;
}

@media (min-width:821px){
  html body#nbc-page.page-regional-gateway :is(.regional-self-check,.local-qualification){
    padding-block:clamp(54px,4.2vw,68px)!important;
  }
  html body#nbc-page.page-regional-gateway .regional-presence{
    padding-block:clamp(58px,4.5vw,72px)!important;
  }
  html body#nbc-page.page-regional-gateway :is(.regional-faq,.local-faq){
    padding-block:clamp(56px,4.4vw,70px)!important;
  }
  html body#nbc-page.page-regional-gateway :is(.rx-close,.local-final){
    padding-block:clamp(60px,4.6vw,74px)!important;
  }
  html body#nbc-page.page-regional-gateway :is(.gp-first,.regional-radius,.ks-proof,.ks-profile,.ks-thesis){
    padding-block:clamp(58px,4.6vw,72px)!important;
  }
  html body#nbc-page.page-regional-gateway .regional-presence__media img{
    max-height:540px!important;
  }
}

/* Never manufacture whitespace after short content; spacing belongs to the
   section itself, not to an imposed viewport-height canvas. */
html body#nbc-page.page-regional-gateway .regional-self-check > :is(.sw,.wrap),
html body#nbc-page.page-regional-gateway :is(.regional-faq,.local-faq,.local-qualification,.rx-close,.local-final) > :is(.sw,.wrap,.rx-reading){
  min-height:0!important;
}

/* -------------------------------------------------------------------------
   2 · Diagnose: dark continuation section must use a genuine dark-surface
       ink contract. The old p1 light-break colors had higher cascade weight.
   ------------------------------------------------------------------------- */
html body#nbc-page.page-diagnose #gezielt-weiterpruefen{
  height:auto!important;
  min-height:0!important;
  padding-block:clamp(60px,4.6vw,74px)!important;
  background:
    radial-gradient(circle at 86% 18%,rgba(95,158,111,.07),transparent 27%),
    linear-gradient(180deg,#09150f 0%,#07110d 100%)!important;
  color:#edf4ee!important;
  border-block:1px solid rgba(205,229,212,.10)!important;
}
html body#nbc-page.page-diagnose #gezielt-weiterpruefen .dxn-section-head{
  margin-bottom:clamp(24px,2.4vw,34px)!important;
}
html body#nbc-page.page-diagnose #gezielt-weiterpruefen h2{
  color:#edf4ee!important;
  -webkit-text-fill-color:#edf4ee!important;
  max-width:22ch!important;
}
html body#nbc-page.page-diagnose #gezielt-weiterpruefen .dxn-probe-rows{
  border-top:1px solid rgba(205,229,212,.12)!important;
}
html body#nbc-page.page-diagnose #gezielt-weiterpruefen .dxn-probe-rows>a{
  display:grid!important;
  grid-template-columns:minmax(130px,.34fr) minmax(0,1fr) minmax(190px,.48fr)!important;
  gap:clamp(20px,3vw,44px)!important;
  align-items:center!important;
  padding:clamp(18px,1.6vw,24px) 0!important;
  min-height:0!important;
  background:transparent!important;
  color:#edf4ee!important;
  -webkit-text-fill-color:currentColor!important;
  border:0!important;
  border-bottom:1px solid rgba(205,229,212,.11)!important;
  border-radius:0!important;
  box-shadow:none!important;
}
html body#nbc-page.page-diagnose #gezielt-weiterpruefen .dxn-probe-rows>a>span{
  color:#9ed9ac!important;
  -webkit-text-fill-color:#9ed9ac!important;
  font-family:"IBM Plex Mono",monospace!important;
  font-size:11px!important;
  line-height:1.35!important;
  letter-spacing:.09em!important;
}
html body#nbc-page.page-diagnose #gezielt-weiterpruefen .dxn-probe-rows strong{
  color:#f0f5f1!important;
  -webkit-text-fill-color:#f0f5f1!important;
}
html body#nbc-page.page-diagnose #gezielt-weiterpruefen .dxn-probe-rows p{
  margin:6px 0 0!important;
  color:rgba(225,237,228,.68)!important;
  -webkit-text-fill-color:rgba(225,237,228,.68)!important;
}
html body#nbc-page.page-diagnose #gezielt-weiterpruefen .dxn-probe-rows b{
  color:#b8e6c6!important;
  -webkit-text-fill-color:#b8e6c6!important;
  font-weight:600!important;
  text-align:right!important;
}
html body#nbc-page.page-diagnose #gezielt-weiterpruefen .dxn-probe-rows>a:is(:hover,:focus-visible){
  background:rgba(158,217,172,.035)!important;
}

/* -------------------------------------------------------------------------
   3 · Decision guides: preserve content and full-width rail, reduce only the
       oversized inter-section transitions that remained from older folio CSS.
   ------------------------------------------------------------------------- */
html body#nbc-page.page-template-guide #nutzen .dg3-section-head{
  margin-bottom:30px!important;
}
html body#nbc-page.page-template-guide #vorschau{
  padding-top:clamp(70px,5.3vw,82px)!important;
}
html body#nbc-page.page-template-guide #vorschau .dg3-section-head{
  margin-bottom:32px!important;
}
html body#nbc-page.page-template-guide #guide-access{
  padding-top:clamp(68px,5vw,80px)!important;
  padding-bottom:clamp(66px,4.8vw,78px)!important;
}
html body#nbc-page.page-template-guide #naechster-schritt{
  padding-top:clamp(78px,5.8vw,92px)!important;
  padding-bottom:clamp(62px,4.6vw,74px)!important;
}

@media(max-width:760px){
  html body#nbc-page.page-regional-gateway :is(.regional-self-check,.regional-presence,.regional-faq,.local-faq,.local-qualification,.rx-close,.local-final,.ks-proof,.ks-profile,.ks-thesis,.gp-first,.regional-radius){
    height:auto!important;
    min-height:0!important;
  }
  html body#nbc-page.page-regional-gateway .regional-presence{padding-block:46px!important;}
  html body#nbc-page.page-regional-gateway :is(.regional-self-check,.regional-faq,.local-faq,.local-qualification,.rx-close,.local-final,.ks-proof,.ks-profile,.ks-thesis,.gp-first,.regional-radius){padding-block:44px!important;}

  html body#nbc-page.page-diagnose #gezielt-weiterpruefen{padding-block:48px!important;}
  html body#nbc-page.page-diagnose #gezielt-weiterpruefen .dxn-section-head{margin-bottom:20px!important;}
  html body#nbc-page.page-diagnose #gezielt-weiterpruefen .dxn-probe-rows>a{
    grid-template-columns:1fr!important;
    gap:7px!important;
    padding:18px 0!important;
  }
  html body#nbc-page.page-diagnose #gezielt-weiterpruefen .dxn-probe-rows b{text-align:left!important;font-size:12px!important;}

  html body#nbc-page.page-template-guide #nutzen .dg3-section-head{margin-bottom:24px!important;}
  html body#nbc-page.page-template-guide #vorschau{padding-top:54px!important;}
  html body#nbc-page.page-template-guide #vorschau .dg3-section-head{margin-bottom:24px!important;}
  html body#nbc-page.page-template-guide #guide-access{padding-top:52px!important;padding-bottom:56px!important;}
  html body#nbc-page.page-template-guide #naechster-schritt{padding-top:54px!important;padding-bottom:54px!important;}
}

/* -------------------------------------------------------------------------
   4 · Cascade lock: v7.376 is intentionally the final active page layer.
       Older release layers use body attributes + !important, so the release
       selector must carry the same contract specificity rather than relying
       on source order alone.
   ------------------------------------------------------------------------- */

/* Diagnose · override the legacy P1 paper break with a true dark continuation. */
html body#nbc-page.page.page-diagnose.design-system-executive[data-composition-polish="v7376"][data-v7359-p1="true"] main#main-content > section#gezielt-weiterpruefen.dxn-deeper.p1-light-break.p1-diagnose-break{
  height:auto!important;
  min-height:0!important;
  padding-block:clamp(60px,4.6vw,74px)!important;
  background:radial-gradient(circle at 86% 18%,rgba(95,158,111,.07),transparent 27%),linear-gradient(180deg,#09150f 0%,#07110d 100%)!important;
  color:#edf4ee!important;
  border-top:1px solid rgba(205,229,212,.10)!important;
  border-bottom:1px solid rgba(205,229,212,.10)!important;
  box-shadow:none!important;
}
html body#nbc-page.page.page-diagnose.design-system-executive[data-composition-polish="v7376"][data-v7359-p1="true"] main#main-content > section#gezielt-weiterpruefen.dxn-deeper.p1-light-break.p1-diagnose-break :is(h1,h2,h3,h4,strong){
  color:#edf4ee!important;
  -webkit-text-fill-color:#edf4ee!important;
}
html body#nbc-page.page.page-diagnose.design-system-executive[data-composition-polish="v7376"][data-v7359-p1="true"] main#main-content > section#gezielt-weiterpruefen.dxn-deeper.p1-light-break.p1-diagnose-break :is(p,li){
  color:rgba(225,237,228,.70)!important;
  -webkit-text-fill-color:rgba(225,237,228,.70)!important;
}
html body#nbc-page.page.page-diagnose.design-system-executive[data-composition-polish="v7376"][data-v7359-p1="true"] main#main-content > section#gezielt-weiterpruefen.dxn-deeper.p1-light-break.p1-diagnose-break .mono,
html body#nbc-page.page.page-diagnose.design-system-executive[data-composition-polish="v7376"][data-v7359-p1="true"] main#main-content > section#gezielt-weiterpruefen.dxn-deeper.p1-light-break.p1-diagnose-break .dxn-probe-rows>a>span{
  color:#9ed9ac!important;
  -webkit-text-fill-color:#9ed9ac!important;
}
html body#nbc-page.page.page-diagnose.design-system-executive[data-composition-polish="v7376"][data-v7359-p1="true"] main#main-content > section#gezielt-weiterpruefen.dxn-deeper.p1-light-break.p1-diagnose-break .dxn-probe-rows{
  border-top:1px solid rgba(205,229,212,.12)!important;
}
html body#nbc-page.page.page-diagnose.design-system-executive[data-composition-polish="v7376"][data-v7359-p1="true"] main#main-content > section#gezielt-weiterpruefen.dxn-deeper.p1-light-break.p1-diagnose-break .dxn-probe-rows>a{
  grid-template-columns:minmax(130px,.34fr) minmax(0,1fr) minmax(190px,.48fr)!important;
  gap:clamp(20px,3vw,44px)!important;
  padding:clamp(18px,1.6vw,24px) 0!important;
  min-height:0!important;
  background:transparent!important;
  color:#edf4ee!important;
  border:0!important;
  border-bottom:1px solid rgba(205,229,212,.11)!important;
  border-radius:0!important;
  box-shadow:none!important;
}
html body#nbc-page.page.page-diagnose.design-system-executive[data-composition-polish="v7376"][data-v7359-p1="true"] main#main-content > section#gezielt-weiterpruefen.dxn-deeper.p1-light-break.p1-diagnose-break .dxn-probe-rows strong{
  color:#f0f5f1!important;-webkit-text-fill-color:#f0f5f1!important;
}
html body#nbc-page.page.page-diagnose.design-system-executive[data-composition-polish="v7376"][data-v7359-p1="true"] main#main-content > section#gezielt-weiterpruefen.dxn-deeper.p1-light-break.p1-diagnose-break .dxn-probe-rows p{
  color:rgba(225,237,228,.68)!important;-webkit-text-fill-color:rgba(225,237,228,.68)!important;
}
html body#nbc-page.page.page-diagnose.design-system-executive[data-composition-polish="v7376"][data-v7359-p1="true"] main#main-content > section#gezielt-weiterpruefen.dxn-deeper.p1-light-break.p1-diagnose-break .dxn-probe-rows b{
  color:#b8e6c6!important;-webkit-text-fill-color:#b8e6c6!important;text-align:right!important;
}

/* Decision Guides · reduce transition padding only; keep the now-correct rail. */
html body.page.design-system-executive.page-template-guide[data-composition-polish="v7376"][data-phase74-family="decision-guide"][data-p3-guide-release="v7348"] #nutzen.dg3-section .dg3-section-head{
  margin-bottom:26px!important;
}
html body.page.design-system-executive.page-template-guide[data-composition-polish="v7376"][data-phase74-family="decision-guide"][data-p3-guide-release="v7348"] #vorschau.dg3-section{
  padding-top:clamp(70px,5.2vw,78px)!important;
  padding-bottom:clamp(70px,5.2vw,78px)!important;
}
html body.page.design-system-executive.page-template-guide[data-composition-polish="v7376"][data-phase74-family="decision-guide"][data-p3-guide-release="v7348"] #vorschau.dg3-section .dg3-section-head{
  margin-bottom:26px!important;
}
html body.page.design-system-executive.page-template-guide[data-composition-polish="v7376"][data-phase74-family="decision-guide"][data-p3-guide-release="v7348"] #guide-access.dg3-access{
  padding-top:clamp(62px,4.6vw,70px)!important;
  padding-bottom:clamp(62px,4.6vw,70px)!important;
}
html body.page.design-system-executive.page-template-guide[data-composition-polish="v7376"][data-phase74-family="decision-guide"][data-p3-guide-release="v7348"] #naechster-schritt.dg3-section.dg3-closure{
  padding-top:clamp(72px,5.2vw,82px)!important;
  padding-bottom:clamp(60px,4.4vw,70px)!important;
}

/* Regional family · compact true whitespace without touching the live RSO stage. */
html body#nbc-page.page.page-regional.page-regional-gateway.design-system-executive[data-composition-polish="v7376"][data-regional-release="v7354-p1"][data-regional-premium-v7363="true"] main#main-content > :is(
  .regional-self-check,
  .regional-presence,
  .local-qualification,
  .local-faq,
  .local-final,
  .rx-close,
  .ks-proof,
  .ks-profile,
  .ks-thesis,
  .gp-first,
  .regional-radius
){
  min-height:0!important;
}
html body#nbc-page.page.page-regional.page-regional-gateway.design-system-executive[data-composition-polish="v7376"][data-regional-release="v7354-p1"][data-regional-premium-v7363="true"] main#main-content > :is(.regional-self-check,.local-qualification){
  padding-block:clamp(54px,4.2vw,66px)!important;
}
html body#nbc-page.page.page-regional.page-regional-gateway.design-system-executive[data-composition-polish="v7376"][data-regional-release="v7354-p1"][data-regional-premium-v7363="true"] main#main-content > .regional-presence{
  padding-block:clamp(58px,4.4vw,68px)!important;
}
html body#nbc-page.page.page-regional.page-regional-gateway.design-system-executive[data-composition-polish="v7376"][data-regional-release="v7354-p1"][data-regional-premium-v7363="true"] main#main-content > :is(.local-faq,.regional-faq){
  padding-block:clamp(56px,4.2vw,66px)!important;
}
html body#nbc-page.page.page-regional.page-regional-gateway.design-system-executive[data-composition-polish="v7376"][data-regional-release="v7354-p1"][data-regional-premium-v7363="true"] main#main-content > :is(.rx-close,.local-final){
  padding-block:clamp(60px,4.4vw,70px)!important;
}
html body#nbc-page.page.page-regional.page-regional-gateway.design-system-executive[data-composition-polish="v7376"][data-regional-release="v7354-p1"][data-regional-premium-v7363="true"] main#main-content > :is(.gp-first,.regional-radius,.ks-proof,.ks-profile,.ks-thesis){
  padding-block:clamp(58px,4.4vw,68px)!important;
}
/* Kassel alone still carries historic viewport-height sections. Remove them
   only where the child content is intrinsic; keep #ks-hebel / RSO untouched. */
html body#nbc-page.page.page-regional.page-regional-gateway.region-kassel[data-composition-polish="v7376"][data-regional-premium-v7363="true"] main#main-content > :is(.ks-thesis,.ks-profile,.ks-proof,.regional-presence,.regional-self-check,.rx-close){
  height:auto!important;
  min-height:0!important;
}

@media(max-width:760px){
  html body#nbc-page.page.page-diagnose.design-system-executive[data-composition-polish="v7376"][data-v7359-p1="true"] main#main-content > section#gezielt-weiterpruefen.dxn-deeper.p1-light-break.p1-diagnose-break{
    padding-block:48px!important;
  }
  html body#nbc-page.page.page-diagnose.design-system-executive[data-composition-polish="v7376"][data-v7359-p1="true"] main#main-content > section#gezielt-weiterpruefen.dxn-deeper.p1-light-break.p1-diagnose-break .dxn-probe-rows>a{
    grid-template-columns:1fr!important;gap:7px!important;padding:18px 0!important;
  }
  html body#nbc-page.page.page-diagnose.design-system-executive[data-composition-polish="v7376"][data-v7359-p1="true"] main#main-content > section#gezielt-weiterpruefen.dxn-deeper.p1-light-break.p1-diagnose-break .dxn-probe-rows b{
    text-align:left!important;font-size:12px!important;
  }

  html body.page.design-system-executive.page-template-guide[data-composition-polish="v7376"][data-phase74-family="decision-guide"][data-p3-guide-release="v7348"] #nutzen.dg3-section{
    padding-top:54px!important;padding-bottom:50px!important;
  }
  html body.page.design-system-executive.page-template-guide[data-composition-polish="v7376"][data-phase74-family="decision-guide"][data-p3-guide-release="v7348"] #vorschau.dg3-section{
    padding-top:50px!important;padding-bottom:52px!important;
  }
  html body.page.design-system-executive.page-template-guide[data-composition-polish="v7376"][data-phase74-family="decision-guide"][data-p3-guide-release="v7348"] #guide-access.dg3-access{
    padding-top:50px!important;padding-bottom:52px!important;
  }
  html body.page.design-system-executive.page-template-guide[data-composition-polish="v7376"][data-phase74-family="decision-guide"][data-p3-guide-release="v7348"] #naechster-schritt.dg3-section.dg3-closure{
    padding-top:50px!important;padding-bottom:50px!important;
  }

  html body#nbc-page.page.page-regional.page-regional-gateway.design-system-executive[data-composition-polish="v7376"][data-regional-release="v7354-p1"][data-regional-premium-v7363="true"] main#main-content > :is(.regional-self-check,.regional-presence,.regional-faq,.local-faq,.local-qualification,.rx-close,.local-final,.ks-proof,.ks-profile,.ks-thesis,.gp-first,.regional-radius){
    min-height:0!important;
    padding-block:44px!important;
  }
  html body#nbc-page.page.page-regional.page-regional-gateway.design-system-executive[data-composition-polish="v7376"][data-regional-release="v7354-p1"][data-regional-premium-v7363="true"] main#main-content > .regional-presence{
    padding-block:46px!important;
  }
}

/* v7.376 regional cadence lock in the legacy cascade layer that owns the older
   important section-spacing contract. The operating stage itself is excluded. */
@layer nbc.legacy{
 @media(min-width:761px){
  html body#nbc-page.page-regional-gateway[data-composition-polish="v7376"][data-regional-release="v7354-p1"] main#main-content > :is(
    .pfm-after-hero,.ka-thesis,.st-thesis,
    .regional-self-check,.regional-presence,.regional-faq,.rx-close
  ):not(.rso-regional-host){padding-block:64px!important;}
  html body#nbc-page.region-goettingen.page-regional-gateway[data-composition-polish="v7376"][data-regional-release="v7354-p1"] main#main-content > :is(
    .regional-economy,.regional-radius,.local-qualification,.local-faq
  ){padding-block:64px!important;}
  html body#nbc-page.region-goettingen.page-regional-gateway[data-composition-polish="v7376"][data-regional-release="v7354-p1"] main#main-content > #erster-pruefauftrag.gp-first{padding-block:68px!important;}
  html body#nbc-page.region-goettingen.page-regional-gateway[data-composition-polish="v7376"][data-regional-release="v7354-p1"] main#main-content > .local-final{padding-block:72px!important;}
 }
}
