.elementor .jgh-news50{display:block}
.jgh-news50-grid{--news-gutter:2.5rem;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--news-gutter)}
.jgh-news50-card{position:relative;display:flex;align-items:center;gap:1rem;min-width:0;padding:0}
.jgh-news50-card::before,.jgh-news50-card::after{content:"";position:absolute;background:#e2e5e8;pointer-events:none;display:none}
.jgh-news50-card:not(:nth-child(3n))::after{display:block;top:0;bottom:0;right:calc(var(--news-gutter)/-2);width:1px}
.jgh-news50-card:nth-child(-n+3)::before{display:block;left:0;right:0;bottom:calc(var(--news-gutter)/-2);height:1px}
.jgh-news50-copy{flex:1;min-width:0}
.jgh-news50-copy time{display:block;margin-bottom:.7rem;font-family:var(--JGH-Body-Font);font-size:.72rem;line-height:1.6;letter-spacing:.14em;text-transform:uppercase;color:var(--JGH-Text-DarkBlue)}
.jgh-news50-copy a{font-family:var(--JGH-Heading-Font);font-size:1.15rem;font-weight:400;line-height:1.4;color:var(--JGH-Primary-Navy);text-decoration:underline;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.jgh-news50-copy a:hover{color:var(--JGH-Text-DarkBlue)}
.jgh-news50-photo{flex:0 0 clamp(4.75rem,7.2vw,7.2rem)}
.jgh-news50-photo img{width:100%;aspect-ratio:1;height:auto;object-fit:cover;display:block}
.jgh-news50 a:focus-visible{outline:2px solid var(--JGH-Accent-Turquoise);outline-offset:4px}
@media(max-width:1024px){
.jgh-news50-grid{--news-gutter:2rem;grid-template-columns:repeat(2,minmax(0,1fr))}
.jgh-news50-card:nth-child(n)::after,.jgh-news50-card:nth-child(n)::before{display:none}
.jgh-news50-card:nth-child(odd)::after{display:block}
.jgh-news50-card:nth-child(-n+4)::before{display:block}
}
@media(max-width:767px){
.jgh-news50-grid{grid-template-columns:1fr}
.jgh-news50-card:nth-child(n)::after{display:none}
.jgh-news50-card:not(:last-child)::before{display:block}
.jgh-news50-photo{flex-basis:7.2rem}
}

/* Keep the masthead, hero and first news row within a typical desktop viewport. */
@media(min-width:1025px){
 .elementor .elementor-element-55e1a7a2{min-height:0!important;padding-top:20px!important;padding-bottom:96px!important;gap:clamp(32px,4vw,80px)!important}
 .elementor .elementor-element-3cb2a385{padding-top:12px!important;gap:16px!important}
 .elementor .e-52469333-dc38{font-size:clamp(25px,2.35vw,32.8px)!important;line-height:1.3!important}
 .elementor .e-13a1146b-cd68{height:min(28vw,calc(100svh - 390px))!important;min-height:220px;aspect-ratio:auto!important;object-fit:cover}
 .elementor .elementor-element-596107aa{padding-top:24px!important}
 .jgh-news50-card{align-items:center}
}
@media(min-width:1025px) and (max-height:750px){
 .elementor .elementor-element-72da536d{padding-top:10px!important;padding-bottom:10px!important}
 .elementor .elementor-element-3cb2a385{padding-top:0!important;gap:12px!important}
 .elementor .e-2c2f23a4-81bb{margin-top:4px!important}
 .elementor .e-7da66714-fae7{font-size:1.1rem!important}
}

.jgh-news50-card::before{left:0;right:0;bottom:calc(var(--news-gutter)/-2);height:1px}
.jgh-news50-card::after{top:0;bottom:0;right:calc(var(--news-gutter)/-2);width:1px}

.jgh-news50-footer{display:flex;justify-content:flex-end;margin-top:.45rem;margin-left:auto;text-align:right}
.jgh-news50-all{display:inline-flex;align-items:center;gap:.35rem;font-family:var(--JGH-Heading-Font);font-size:.8rem;font-weight:400;line-height:1.4;color:var(--JGH-Primary-Navy);text-decoration:none;padding:.15rem 0}
.jgh-news50-all:hover{color:var(--JGH-Primary-Navy);text-decoration:underline;text-underline-offset:.25em}

/* Footer always follows the complete six-post grid, never beside it. */
.elementor .elementor-element-596107aa.jgh-news50{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:0!important}
.jgh-news50-grid{width:100%;flex:none}
.jgh-news50-footer{width:100%;flex:none;box-sizing:border-box;justify-content:flex-end;margin:0.65rem 0 0}

.elementor .elementor-element-596107aa.jgh-news50{padding-bottom:.8rem!important}
@media(max-width:767px){.jgh-news50-all{font-size:.68rem}}


/* Single vector arrow; hide the fallback glyph completely. */
.jgh-clear-arrow,.e-64a4cabe-8f66 span,.e-3072c61b-2d7f span,.e-57971dca-8fe1 span,.e-6c5e75c2-1079 span{display:inline-block!important;flex-shrink:0;width:1.65rem;height:1rem;vertical-align:middle;font-size:0!important;line-height:0!important;text-indent:0!important;background-color:currentColor;mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2028%2016%22%3E%3Cpath%20d%3D%22M2%208h23M19%202l6%206-6%206%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E");mask-size:contain;mask-position:center;mask-repeat:no-repeat;-webkit-mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2028%2016%22%3E%3Cpath%20d%3D%22M2%208h23M19%202l6%206-6%206%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E");-webkit-mask-size:contain;-webkit-mask-position:center;-webkit-mask-repeat:no-repeat}
.jgh-clear-arrow::before,.jgh-clear-arrow::after,.e-64a4cabe-8f66 span::before,.e-64a4cabe-8f66 span::after,.e-3072c61b-2d7f span::before,.e-3072c61b-2d7f span::after,.e-57971dca-8fe1 span::before,.e-57971dca-8fe1 span::after,.e-6c5e75c2-1079 span::before,.e-6c5e75c2-1079 span::after{content:none!important;display:none!important}

/* Keep the flag as a single image; uncovered hero area stays navy. */
.elementor .elementor-element-55e1a7a2{background-repeat:no-repeat!important;background-color:#002147!important}

/* Blend the final 220px of the single flag image into its dark navy surround. */
.elementor .elementor-element-55e1a7a2{
 background-color:#001427!important;
 background-image:linear-gradient(to right,#001427 calc(50% - 701px),transparent calc(50% - 441px),transparent calc(50% + 481px),#001427 calc(50% + 701px)),linear-gradient(90deg,rgba(0,15,34,.90) 0%,rgba(0,20,43,.78) 32%,rgba(0,20,43,.42) 62%,rgba(0,20,43,.20) 100%),url("https://staging.jgherder.de/wp-content/uploads/2026/09/herder-hero-stoffstruktur.png")!important;
 background-size:100% 100%,100% 100%,1402px 768px!important;
 background-position:center,center,center 60%!important;
 background-repeat:no-repeat!important;
}

/* Extend the flag across the hero and fade gently at the viewport edges. */
.elementor .elementor-element-55e1a7a2{
 background-image:linear-gradient(to right,#001427 0%,rgba(0,20,39,.8) 3%,rgba(0,20,39,.35) 9%,transparent 18%,transparent 82%,rgba(0,20,39,.35) 91%,rgba(0,20,39,.8) 97%,#001427 100%),linear-gradient(90deg,rgba(0,15,34,.90) 0%,rgba(0,20,43,.78) 32%,rgba(0,20,43,.42) 62%,rgba(0,20,43,.20) 100%),url("https://staging.jgherder.de/wp-content/uploads/2026/09/herder-hero-stoffstruktur.png")!important;
 background-size:100% 100%,100% 100%,max(100%,1402px) 768px!important;
}

/* Match the Herderpost paper color across the news area, including the open right column. */
.elementor .elementor-element-596107aa{background-color:#fff!important;box-shadow:0px 6px 16px 0px rgba(0,0,0,.08)!important;clip-path:none!important}
.elementor .elementor-element-596107aa::after{content:"";position:absolute;top:5rem;bottom:0;left:100%;width:calc(100vw - 100%);background:#f5f3ed;z-index:-1;pointer-events:none}
@media(max-width:767px){.elementor .elementor-element-596107aa::after{top:2rem}}

.elementor .elementor-element-596107aa{display:block!important}.elementor-element-596107aa>.elementor-widget-jgh-news{width:100%;max-width:100%}.jgh-news50-widget{width:100%}

/* Eight reports, retaining the original card typography, photos and dividing rules. */
@media(min-width:1351px){
 body.page-id-10 .jgh-news50-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
 body.page-id-10 .jgh-news50-card:nth-child(n)::before,
 body.page-id-10 .jgh-news50-card:nth-child(n)::after{display:none}
 body.page-id-10 .jgh-news50-card:not(:nth-child(4n))::after{display:block}
 body.page-id-10 .jgh-news50-card:nth-child(-n+4)::before{display:block}
}
@media(min-width:768px) and (max-width:1350px){
 body.page-id-10 .jgh-news50-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 body.page-id-10 .jgh-news50-card:nth-child(n)::before,
 body.page-id-10 .jgh-news50-card:nth-child(n)::after{display:none}
 body.page-id-10 .jgh-news50-card:nth-child(odd)::after,
 body.page-id-10 .jgh-news50-card:nth-child(-n+6)::before{display:block}
}
@media(max-width:767px){
 body.page-id-10 .jgh-news50-grid{grid-template-columns:1fr!important}
 body.page-id-10 .jgh-news50-card:nth-child(n)::after{display:none}
 body.page-id-10 .jgh-news50-card:not(:last-child)::before{display:block}
}

/* Identical report anatomy: common date baseline, three-line title space and top-aligned photos. */
body.page-id-10 .jgh-news50-card{align-items:flex-start!important}
body.page-id-10 .jgh-news50-copy a{min-height:4.2em;line-height:1.4!important}
body.page-id-10 .jgh-news50-photo{align-self:flex-start}

/* Equal alignment and a shared three-line title area for every report. */
body.page-id-10 .jgh-news50-card{align-items:flex-start!important}
body.page-id-10 .jgh-news50-copy{align-self:flex-start}
body.page-id-10 .jgh-news50-copy a{min-height:4.2em;line-height:1.4!important}
body.page-id-10 .jgh-news50-photo{align-self:flex-start}

/* Balanced German title lines with discretionary compound-word hyphenation. */
body.page-id-10 .jgh-news50-copy a{text-wrap:balance;hyphens:auto;-webkit-hyphens:auto;overflow-wrap:normal;word-break:normal}

/* Only editorial compound-word breakpoints, never automatic syllable splitting. */
body.page-id-10 .jgh-news50-copy a{hyphens:manual!important;-webkit-hyphens:manual!important;word-break:normal!important;overflow-wrap:normal!important}
