/* Styles for translated pages only. scripts/i18n.mjs apply links this file from every translated page,
   after the site's own styles. Translations run longer than English (German by 20-35%), so they get
   room to wrap neatly. Text is never set smaller than on the English page (rulebook, "Layout and text
   length"): copy that doesn't fit is shortened in <language>.json instead. English pages never load it. */

/* Long German compound words in headings and menus break with a hyphen instead of overflowing.
   Body text wraps normally, like English; only words of 10+ letters are split. */
html[lang="de"] :is(h2, h3, h4, .gn-t b, .gn-t span) {
  -webkit-hyphens: auto;
  hyphens: auto;
  hyphenate-limit-chars: 10 4 4;
}

/* On phones the hero headline is large enough that one German compound (Sicherheitsmodell) can be
   wider than the screen. Same hyphenation there; desktop headlines keep their line breaks. */
@media (max-width: 600px) {
  html[lang="de"] h1 {
    -webkit-hyphens: auto;
    hyphens: auto;
    hyphenate-limit-chars: 10 4 4;
  }
}

/* Hero: the German headline may use the full width (same size as English). */
html[lang="de"] .hero h1 {
  max-width: none !important;
}

/* Customer story cards (quotes) and resource cards (descriptions) preview in 3 lines, which fits the
   English. German needs up to 7, so it shows the whole text rather than ending in "…" mid-sentence. */
html[lang="de"] .cu-q,
html[lang="de"] .bl-d {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}

/* Header: translated labels are longer ("Vertrieb kontaktieren"), so the header tightens and drops
   Login and Product tour at wider windows than English (site.css, "Header fit"). */
@media (min-width:1400px) and (max-width:1499px){.gn-bar{gap:20px}.gn-main .gn-l1{padding:0 9px}.gn-l1::after{left:9px;right:9px}.gn-right{gap:6px}.gn-login,.gn-lang{padding:0 8px}.gn-right .bbtn{padding:0 12px}}
@media (max-width:1399px){.gn-login{display:none}}
@media (max-width:1259px){.gnav .gn-right .bbtn.tour{display:none!important}}
/* Spanish "Recorrido del producto" (the rulebook label) is 86px wider than "Product tour", so it goes
   up to 1340px; below that the language menu would be pushed past the right edge. */
@media (max-width:1339px){html[lang="es"] .gnav .gn-right .bbtn.tour{display:none!important}}
@media (max-width:1139px){.gn-main,.gn-right{display:none}.gn-burger{display:block}.gn-panels{display:none}}

/* Platform page, Interoperability points: three narrow columns at 1280px. German words are longer,
   so the text column may shrink below its longest word and hyphenate instead of pushing past the screen. */
html[lang="de"] .ippt > div { min-width: 0; }
html[lang="de"] .ippt p { -webkit-hyphens: auto; hyphens: auto; hyphenate-limit-chars: 10 4 4; }
/* Between 900 and 1320px the three columns are only about 117px wide, with the step number beside
   the text. German titles (Niemand, Identität) don't fit beside it, so the number sits above them. */
@media (min-width: 900px) and (max-width: 1320px) {
  html[lang="de"] .ip2 .ippt { flex-direction: column; gap: 6px; }
}
