/* GrowWithGermany: DE/EN editorial rhythm and accessibility refinement, 2026-11-13.
   Deliberately presentation-only: no change to consent, attribution, forms or backend. */

/* No two-column editorial content may intrude into the neighbouring column. */
.chapter-row,
.chapter-row > *,
.chapter-side,
.chapter-row > div:not(.chapter-side),
.chapter,
.chapter > *,
.stories-shell > *,
.detail-intro > *,
.page-closing .inner > * {
  min-width: 0;
}
.chapter-row {
  grid-template-columns: minmax(0, 35%) minmax(0, 1fr);
  column-gap: clamp(38px, 5vw, 82px);
  align-items: start;
}
.chapter-side h2 {
  font-size: clamp(34px, 3.3vw, 54px);
  line-height: 1.13;
  letter-spacing: -.036em;
  max-width: 100%;
  hyphens: auto;
  overflow-wrap: break-word;
  text-wrap: pretty;
}
.chapter-side p { max-width: 38ch; }
.chapter-row > div:not(.chapter-side) {max-width: 100%;}

/* About: quoted positioning used an English-width inline font at 58px. */
.page-about .chapter-row:first-child .chapter-side h2 {
  font-size: clamp(32px, 3.05vw, 49px);
}
.page-about .chapter-row:first-child > div:not(.chapter-side) > p[style*="Georgia"] {
  font-size: clamp(27px, 2.85vw, 47px) !important;
  line-height: 1.23 !important;
  letter-spacing: -.018em;
  max-width: 100%;
  hyphens: auto;
  text-wrap: pretty;
}
.page-about .chapter-row:first-child > div:not(.chapter-side) > p:not(:first-child) {
  line-height: 1.65;
  max-width: 65ch;
}

/* Insights: titles should not overlap the opening paragraph. */
.page-insights .chapter-row .chapter-side h2 {
  font-size: clamp(31px, 3.0vw, 48px);
  line-height: 1.14;
}
.page-insights .insight-content .chapter-row {align-items: start;}
.page-insights .insight-article {width: 100%; max-width: 800px; min-width: 0;}
.page-insights .insight-article .insight-lead {
  font-size: clamp(19px, 1.85vw, 24px);
  line-height: 1.5;
}
.page-insights .insight-article p,
.page-insights .insight-article li {overflow-wrap: break-word;}

/* Services: free the introductory column from word-by-word wrapping. */
.page-services .chapter-side h2 {
  font-size: clamp(34px, 3.1vw, 52px);
  line-height: 1.12;
}
.page-services .card h3 {font-size: clamp(27px, 2.25vw, 37px); hyphens: auto;}
.page-services .feature-list article {min-width: 0; grid-template-columns: 52px minmax(0,1fr) auto; gap: 18px;}
.page-services .feature-list strong {font-size: clamp(23px, 2.1vw, 30px); line-height: 1.2;}
.page-services .feature-step-link {max-width: 150px; text-align: right; line-height: 1.35;}

/* Increase the space allocated to section descriptions and reduce tiny labels. */
:root {--editorial: clamp(315px, 27vw, 395px);}
.chapter-intro h2,
.stories-intro h2 {
  font-size: clamp(35px, 3.25vw, 46px);
  line-height: 1.12;
  hyphens: auto;
  text-wrap: pretty;
}
.chapter-intro > p:not(.section-label),
.stories-intro > p:not(.section-label) {max-width: 35ch;}
.chapter {gap: clamp(34px, 4vw, 60px);}
.stories-shell {gap: clamp(34px, 4vw, 60px);}
.research-grid .case-copy h3 {font-size: clamp(21px, 1.65vw, 27px);line-height: 1.22;}
.research-grid .case-research-lines p {font-size: 14px;line-height: 1.55;}
.research-grid .case-copy {padding: 30px 26px;}
.research-grid article {min-height: 455px;}

/* Heading/call-to-action relationships on secondary pages. */
.page-closing .inner {grid-template-columns: minmax(0,1fr) auto; align-items: center;gap: clamp(28px, 5vw, 80px);}
.page-closing h2 {font-size: clamp(42px,5vw,74px);line-height: 1.08;max-width: 900px;hyphens: auto;text-wrap: pretty;}
.page-closing .gold-button {justify-self: end;align-self: center;}
.quote-band blockquote {font-size: clamp(36px,4.4vw,65px);line-height: 1.17;text-wrap: pretty;}

/* Legible, consistent site footer on both language versions. */
.site-footer .footer-main {
  grid-template-columns: minmax(205px,.95fr) minmax(0,2.4fr) minmax(225px,.95fr);
  gap: clamp(28px,3vw,48px);
}
.site-footer .footer-navigation {gap: 18px;}
.site-footer .footer-group h3 {font-size: 13px;line-height:1.3;}
.site-footer .footer-group a {font-size: 14px;line-height:1.55;margin: 10px 0;}
.site-footer .footer-brand > p {font-size: 15px;line-height: 1.65;}
.site-footer .footer-contact h2 {font-size: clamp(24px,2vw,30px);line-height:1.2;}
.site-footer .footer-contact .button {white-space: normal;max-width:100%;justify-content:space-between;gap:18px;line-height:1.35;}
.site-footer .footer-bottom {column-gap:24px;row-gap:15px;}
.site-footer .footer-bottom > div {gap:18px;flex-wrap:wrap;align-items:center;}

/* Large German compound nouns should break at natural hyphenation points if necessary. */
:lang(de) .detail-section h2,
:lang(de) .detail-card h3,
:lang(de) .sector-hub-link strong,
:lang(de) .card h3 {hyphens:auto;overflow-wrap:break-word;}

/* Medium desktop: avoid the 250px editorial column from the old English-only breakpoint. */
@media (min-width: 901px) and (max-width: 1400px) {
  :root {--editorial: clamp(290px, 28vw, 360px);}
  .chapter-row {grid-template-columns: minmax(0,36%) minmax(0,1fr);column-gap:clamp(28px,4vw,56px);}
  .chapter-side h2 {font-size:clamp(32px,3.45vw,46px);}
  .page-about .chapter-row:first-child > div:not(.chapter-side) > p[style*="Georgia"] {font-size:clamp(28px,3vw,42px)!important;}
  .site-footer .footer-main {grid-template-columns:minmax(190px,.85fr) minmax(0,2fr);}
  .site-footer .footer-contact {grid-column:1 / -1;border-left:0;border-top:1px solid rgba(255,255,255,.12);padding:24px 0 0;}
  .site-footer .footer-navigation {grid-template-columns:repeat(4,minmax(0,1fr));}
}
@media (min-width: 901px) and (max-width: 1550px) {
  .solution-grid {grid-template-columns:repeat(3,minmax(0,1fr));}
  .solution-grid article {min-height:290px;}
}
@media (max-width: 900px) {
  .chapter-row {display:block;grid-template-columns:1fr;padding:60px 0;}
  .chapter-side {margin-bottom:32px;}
  .chapter-side h2,.page-services .chapter-side h2,.page-insights .chapter-side h2 {
    font-size:clamp(33px,7.2vw,48px);max-width:22ch;
  }
  .page-about .chapter-row:first-child > div:not(.chapter-side) > p[style*="Georgia"] {font-size:clamp(27px,5.3vw,40px)!important;}
  .chapter-intro h2,.stories-intro h2 {font-size:clamp(35px,6.4vw,44px);}
  .page-closing .inner {grid-template-columns:1fr;align-items:start;}
  .page-closing h2 {font-size:clamp(38px,6.7vw,57px);}
  .page-closing .gold-button {justify-self:start;}
  .site-footer .footer-main {display:block;}
  .site-footer .footer-navigation {grid-template-columns:repeat(2,minmax(0,1fr));gap:30px;}
  .page-services .feature-list article {grid-template-columns:42px minmax(0,1fr);}
  .page-services .feature-step-link {grid-column:2;max-width:none;text-align:left;}
}
@media (max-width: 600px) {
  .chapter-row {padding:48px 0;}
  .chapter-side h2,.page-services .chapter-side h2,.page-insights .chapter-side h2 {font-size:clamp(32px,9vw,40px);}
  .page-about .chapter-row:first-child > div:not(.chapter-side) > p[style*="Georgia"] {font-size:clamp(26px,7vw,34px)!important;}
  .insight-article .insight-lead {font-size:19px;}
  .quote-band blockquote {font-size:clamp(34px,9vw,48px);}
  .page-closing h2 {font-size:clamp(36px,10vw,46px);}
  .page-closing .gold-button {width:100%;white-space:normal;justify-content:center;text-align:center;}
  .site-footer .footer-group a {font-size:14px;}
  .site-footer .footer-contact h2 {font-size:27px;}
  .research-grid .case-copy h3 {font-size:23px;}
}
@media (max-width: 380px) {
  .site-footer .footer-navigation {grid-template-columns:1fr;}
  .chapter-side h2 {font-size:31px;}
}

/* Keep editorial cards aligned, even when a German title is shorter. */
.page-services .card {min-height:330px;}
.page-services .card h3 {margin:22px 0 16px;}
.page-services .card a {margin-top:auto;padding-top:24px;}
.page-insights .article-card h3 {margin:28px 0 17px;font-size:clamp(25px,2.05vw,32px);line-height:1.17;}
.page-insights .article-card p {line-height:1.65;}
.page-insights .article-card a {margin-top:auto;}
@media (min-width: 901px) {
  .page-insights .chapter-row:first-child {grid-template-columns:minmax(0,28%) minmax(0,1fr);}
  .page-insights .chapter-row:first-child .chapter-side h2 {font-size:clamp(32px,3vw,48px);}
}
/* Anchor navigation should not hide content behind the fixed header. */
html {scroll-padding-top:112px;}
section[id],article[id],.chapter-row[id],.detail-section[id] {scroll-margin-top:112px;}
@media (max-width: 900px) {
  html {scroll-padding-top:86px;}
  section[id],article[id],.chapter-row[id],.detail-section[id] {scroll-margin-top:86px;}
  .page-services .card {min-height:0;}
}

/* Strong visible keyboard focus without changing the approved gold palette. */
.site-header a:focus-visible,.site-footer a:focus-visible,.button:focus-visible,
.gold-button:focus-visible,.chapter-link:focus-visible,.article-card a:focus-visible {
  outline: 3px solid #f2b632;
  outline-offset: 4px;
}
.site-footer .footer-bottom {font-size:13px;}
@media (prefers-reduced-motion: reduce) {
  .card:hover,.sector-hub-link:hover {transform:none;}
  html {scroll-behavior:auto;}
}
/* Three editorial cards cannot fit side by side at mid-size desktop widths. */
@media (min-width:901px) and (max-width:1250px) {
  .page-insights .article-grid {grid-template-columns:repeat(2,minmax(0,1fr));}
}
/* Closed mobile navigation must not create sideways scrolling or expose focusable links. */
@media (max-width:900px) {
  .mobile-menu:not(.open) {visibility:hidden;pointer-events:none;}
  .mobile-menu.open {visibility:visible;pointer-events:auto;}
}
html,body {overflow-x:clip;}
