/* Mobile content is allowed to grow. Never mask overflow to make a test pass. */
@media (max-width: 600px) {
  header .nav { flex-wrap: nowrap !important; min-height: 64px !important; padding-block: 0 !important; gap: 8px !important; }
  header .navend { flex-basis: auto !important; margin-inline-start: auto !important; margin-inline-end: 0 !important; gap: 8px !important; }
  header .menu-mobile { margin-inline-start: 0 !important; }
  header .navend > .primary { display: none !important; }
  header .mobile-consultation { display: block; }
  header .menu-mobile > summary { display: flex; align-items: center; min-height: 44px; }
  .site-language [data-language-word] { width: auto !important; font-size: 12px !important; }
  .site-language summary { font-size: 12px !important; }
  .site-language-menu { inset-block-start: 64px !important; }
  header .mega { top: 63px !important; max-height: calc(100svh - 80px) !important; }

  main :is(h1,h2,h3,h4,p,li,td,th,dd,dt,a,button,summary,strong,span) { overflow-wrap: anywhere; }
  main :is(h1,h2,h3) { hyphens: none; }
  html[lang="de"] main :is(h1,h2,h3) { hyphens: auto; }
  main :is(.grid,.grid2,.grid3,.threegrid,.riskgrid,.tiers,.controls,.console,.ph-art,.chapters) > * { min-width: 0; }
  main .ph { padding-block: 28px 32px; }
  main .ph h1, main .hero h1, main .ex-ai-hero h1 { font-size: clamp(30px,8.5vw,40px); line-height: 1.12; }
  main .hero, main .ex-ai-hero { padding-block: 28px 36px; }
  main .ex-home-hero { padding-top: 0; gap: 24px; }
  main .ex-home-copy { box-sizing: border-box; min-height: calc(100svh - 64px); padding-block: 24px 32px; display: flex; flex-direction: column; justify-content: center; }
  main .ex-home-copy h1 { font-size: clamp(30px,8.7vw,38px); margin-block: 16px; }
  main .ex-home-copy .ex-subheadline { font-size: 21px; line-height: 1.3; margin-bottom: 12px; }
  main .ex-home-copy .ex-support { font-size: 14px; line-height: 1.55; margin-block: 0 16px; }
  main .ex-home-copy .actions { margin-top: 0; gap: 12px; }
  main .ex-home-copy .eyebrow { margin-block: 0; }
  main.exedro-page .xai-hero { padding-block: 24px 36px; }
  main.exedro-page .xai-hero > div:first-child { display: flex; flex-direction: column; }
  main.exedro-page .xai-hero h1 { font-size: clamp(28px,8vw,36px); line-height: 1.12; margin-bottom: 14px; }
  main .xai-wordmark { font-size: 26px; margin-block: 12px 16px; }
  main .xai-lead { font-size: 17px; line-height: 1.45; margin-block: 0 14px; }
  main .xai-intro { order: 2; margin-top: 28px; font-size: 14px; line-height: 1.6; }
  main .xai-hero .actions { margin-top: 0; gap: 8px; }
  main .xai-hero .actions .btn { font-size: 12px; padding: 10px; }
  main .xai-release { font-size: 11px; line-height: 1.5; }
  main .ai-introduction { height: auto; min-width: 0; }
  main .ai-intro-glass { padding: 24px; }

  main .choices, main .tabs { display: flex; flex-wrap: wrap; overflow: visible; gap: 8px; }
  main .choices button, main .tabs button { white-space: normal; min-height: 44px; }
  main .taskrow { grid-template-columns: minmax(0,1fr) minmax(64px,82px); gap: 10px; }
  main .taskrow > * { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
  main .consolebar .tinybrand { white-space: nowrap; flex-shrink: 0; }
  main .lifecycle { grid-template-columns: minmax(0,1fr); }
  main .chapters a { gap: 12px; align-items: start; }
  main .chapters .n { white-space: normal; flex-shrink: 1; text-align: end; }
  main .ctl-line { white-space: normal; overflow-wrap: anywhere; }
  main .tablewrap { overflow: visible; }
  main table.mobile-table { min-width: 0; width: 100%; display: block; }
  main table.mobile-table thead { position: absolute; width: 1px; height: 1px; padding: 0; clip-path: inset(50%); overflow: hidden; }
  main table.mobile-table tbody { display: grid; gap: 16px; }
  main table.mobile-table tr { display: block; padding: 12px; border: 1px solid #303741; border-radius: 8px; }
  main table.mobile-table :is(td,th) { display: block; width: auto; padding: 8px 0; border: 0; text-align: start; }
  main table.mobile-table td::before { content: attr(data-mobile-label); display: block; margin-bottom: 5px; color: #aab5c4; font-size: 11px; font-weight: 500; }
}
header .mobile-consultation { display: none; }
@media (max-width: 600px) { header .mobile-consultation { display: block; } }
@media (max-width: 360px) {
  main .ex-home-copy { padding-block: 18px 24px; justify-content: flex-start; }
  main .ex-home-copy h1 { font-size: 29px; margin-block: 12px; }
  main .ex-home-copy .ex-subheadline { font-size: 19px; }
  main .ex-home-copy .actions { gap: 10px; }
}
