/* Mobile menu fix: backdrop-filter on the header made it the containing block for the
   fixed menu, so the opened menu had zero height. Use a solid header on mobile instead. */
@media (max-width:1080px){
  /* The header's drop-in animation (fill-mode both) keeps a transform on the header, which
     also traps the fixed menu inside the 74px bar. No header animation/transform on mobile. */
  .site-header,.js .site-header,.dt .site-header{animation:none!important;transform:none!important;filter:none!important;will-change:auto!important;contain:none!important}
  .site-header.is-scrolled .wrap{min-height:74px}
  .site-header{-webkit-backdrop-filter:none;backdrop-filter:none;background:rgba(6,10,23,.97)}
  .nav{top:var(--hh,74px);right:0;bottom:0;left:0;z-index:60;background:#060a17;padding-bottom:6rem}
  .nav.is-open{box-shadow:0 30px 60px rgba(0,0,0,.5)}
  .nav-toggle[aria-expanded="true"]{border-color:#22d3ee;color:#22d3ee;background:rgba(34,211,238,.08)}
  .nav__item{border-bottom:1px solid rgba(148,163,184,.12)}
  .nav .mobile-cta{flex-direction:column;align-items:stretch;gap:.55rem;margin-top:1.25rem}
  .nav .mobile-cta .btn,.nav .mobile-cta.btn-row .btn{flex:none!important;height:auto!important;min-height:0!important;padding:.75rem 1rem!important;font-size:.95rem!important;line-height:1.2!important;justify-content:center;border-radius:12px}
  .nav .mobile-cta .btn svg{width:16px;height:16px}
  .nav .mobile-cta .lang-switch{align-self:flex-start}
  body:has(.nav.is-open) .dta-launch,body:has(.nav.is-open) .dta-teaser,body:has(.nav.is-open) .dtc{display:none}
}

/* Language switcher */
.lang-switch{display:inline-flex;align-items:center;gap:2px;padding:3px;border-radius:999px;border:1px solid rgba(148,163,184,.25);background:rgba(15,23,42,.55);flex:none}
.lang-switch a{display:inline-grid;place-items:center;min-width:34px;height:28px;padding:0 .5rem;border-radius:999px;font-family:"JetBrains Mono",ui-monospace,monospace;font-size:.72rem;letter-spacing:.06em;font-weight:500;color:rgba(226,232,240,.72);text-decoration:none;transition:background .2s,color .2s}
.lang-switch a:hover{color:#fff}
.lang-switch a[aria-current="true"]{color:#04101c;background:linear-gradient(90deg,#22d3ee,#a78bfa)}
.lang-switch--mobile{display:none}
@media (max-width:1080px){
  .lang-switch--mobile{display:inline-flex;margin-bottom:.4rem}
  .header-cta .lang-switch--desktop{margin-right:.2rem}
}
@media (max-width:420px){.header-cta .lang-switch--desktop{display:none}}

/* German typography: longer compound words must never break the layout */
html[lang^="de"] body{overflow-wrap:break-word}
html[lang^="de"] h1,html[lang^="de"] h2,html[lang^="de"] h3,html[lang^="de"] h4,
html[lang^="de"] .card h3,html[lang^="de"] .lead,html[lang^="de"] .card p,
html[lang^="de"] .aisys__card h3,html[lang^="de"] .aiflow__label,html[lang^="de"] .qa-facts dd,
html[lang^="de"] .cc__intro h2,html[lang^="de"] .eyebrow,html[lang^="de"] .facts span,
html[lang^="de"] .values h3,html[lang^="de"] .mega strong,html[lang^="de"] .dta__m p{
  -webkit-hyphens:auto;hyphens:auto;overflow-wrap:break-word;word-break:normal;hyphenate-limit-chars:10 4 4
}
html[lang^="de"] h1{font-size:clamp(2.1rem,5.2vw,4.4rem);letter-spacing:-.02em}
html[lang^="de"] .page-hero h1{font-size:clamp(1.9rem,4.4vw,3.6rem)}
html[lang^="de"] h2{text-wrap:balance}
html[lang^="de"] .eyebrow{letter-spacing:.1em}

/* Header: German labels are longer */
html[lang^="de"] .nav__link{font-size:.92rem;padding-left:.7rem;padding-right:.7rem}
html[lang^="de"] .header-cta .btn{white-space:nowrap}
@media (max-width:1380px) and (min-width:1081px){
  html[lang^="de"] .header-cta .btn--ghost{display:none}
}
html[lang^="de"] .mega a span span{-webkit-hyphens:auto;hyphens:auto}

/* Buttons and chips may wrap instead of overflowing */
html[lang^="de"] .btn{white-space:normal;text-align:center;line-height:1.25}
html[lang^="de"] .btn-row{flex-wrap:wrap}
html[lang^="de"] .tag,html[lang^="de"] .cc__tag,html[lang^="de"] .aisys__live{white-space:nowrap}
html[lang^="de"] .cc__chips li{white-space:normal}
html[lang^="de"] .filters{flex-wrap:wrap}

/* Cards, stats and flows */
html[lang^="de"] .facts strong + span,html[lang^="de"] .aisys__stats span{-webkit-hyphens:auto;hyphens:auto}
html[lang^="de"] .aiflow__label{max-width:170px;font-size:.88rem}
html[lang^="de"] .qa-facts div{grid-template-columns:130px 1fr}
html[lang^="de"] .cc__feed-list li{font-size:.82rem}
@media (max-width:860px){html[lang^="de"] .qa-facts div{grid-template-columns:1fr;gap:.2rem}}

/* Footer */
html[lang^="de"] .footer-grid a,html[lang^="de"] .footer-grid p{-webkit-hyphens:auto;hyphens:auto;overflow-wrap:break-word}
