/* English and German share the Panaccess design. Language control stays visible. */
#masthead .site-header-main-section-right { gap:12px; }
#masthead .pa-language-switch { display:inline-flex; align-items:center; flex:0 0 auto; gap:2px; padding:3px; border:1px solid rgba(255,255,255,.5); border-radius:999px; margin-left:6px; }
#masthead .pa-language-switch .pa-language-link { display:block; min-width:30px; padding:6px 5px; border-radius:999px; font:600 11px/1.2 "Montserrat",sans-serif; letter-spacing:.03em; color:#fff; text-decoration:none; text-align:center; white-space:nowrap; }
#masthead .pa-language-switch .pa-language-link[aria-current="true"] { background:#fff; color:#08063b; }
#masthead .pa-language-switch a:hover { background:rgba(255,255,255,.18); }
#masthead .pa-language-switch a[aria-current="true"]:hover { background:#fff; }
#masthead .pa-language-switch a:focus-visible { outline:2px solid #fff; outline-offset:4px; }
html[lang="de"] .entry-content { overflow-wrap:break-word; }
html[lang="de"] .entry-content :is(h1,h2,h3,h4,p,li,summary) { hyphens:auto; }
html[lang="de"] :is(.pa-analytics,.ph-home) h1 { font-size:clamp(2.25rem,4.1vw,4.5rem); }
html[lang="de"] #masthead .header-navigation .header-menu-container>ul>li>a { padding-inline:.55em; }
@media(min-width:1280px) and (max-width:1519px) {
 #masthead .site-branding.pa-partner-branding { --pa-wordmark-height:21px; --pa-wordmark-gap:11px; }
 #masthead .header-navigation .header-menu-container>ul>li>a { font-size:16px; padding-inline:.45em; }
 #masthead .site-header-main-section-right { gap:6px; }
}
/* Keep the full navigation on desktop, including narrower preview windows.
   Compact both wordmarks and labels so the German menu also fits. */
@media(min-width:1025px) and (max-width:1279px) {
 #masthead #main-header .site-branding.pa-partner-branding { --pa-wordmark-height:18px; --pa-wordmark-gap:10px; }
 #masthead #main-header .header-navigation .header-menu-container>ul>li>a { font-size:14px; padding-inline:.4em; }
 #masthead #main-header .site-header-row { grid-template-columns:auto minmax(0,1fr); column-gap:12px; }
 #masthead #main-header .site-header-main-section-right { gap:6px; }
 #masthead #main-header .site-header-item-main-navigation { margin-right:0; }
}
@media(max-width:1024px) {
 #masthead #main-header { display:none!important; }
 #masthead #mobile-header { display:block!important; }
 #masthead .site-header-main-section-right { gap:10px; }
 #masthead .pa-language-switch { margin-left:0; }
}
@media(min-width:1025px) {
 #masthead #main-header { display:block!important; }
 #masthead #mobile-header { display:none!important; }
}
@media(max-width:599px) {
 #masthead .site-branding.pa-partner-branding { --pa-wordmark-height:12.5px; --pa-wordmark-gap:7px; }
 #masthead .site-main-header-wrap .site-container { padding-inline:16px; }
 #masthead .pa-language-switch { padding:2px; }
 #masthead .pa-language-switch .pa-language-link { min-width:26px; padding:7px 4px; font-size:10px; }
 #masthead .site-header-main-section-right { gap:7px; }
 #masthead .menu-toggle-open { padding:6px; }
}
@media(max-width:359px) {
 #masthead .site-branding.pa-partner-branding { --pa-wordmark-height:11px; --pa-wordmark-gap:5px; }
 #masthead .site-main-header-wrap .site-container { padding-inline:12px; }
 #masthead .site-header-main-section-right { gap:4px; }
}

#masthead .pa-language-switch { align-self:center!important; height:auto!important; max-height:38px; }
