.language-switch {
  position: absolute;
  right: 132px;
  display: flex;
  align-items: center;
  gap: 4px;
  font: 600 12px/1.3 Arial, sans-serif;
  letter-spacing: 0;
}
.language-switch a {
  display: grid;
  place-items: center;
  min-width: 32px;
  min-height: 32px;
  color: #242421;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.language-switch a[aria-current] { border-bottom-color: currentColor; }
.language-switch a:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
@media (max-width: 767px) {
  .header-social-links { display: none; }
  .language-switch { right: 10px; }
}
@media (max-width: 430px) {
  .language-switch { flex-direction: column; gap: 0; right: 8px; }
  .language-switch a { min-height: 28px; min-width: 30px; }
}
html[lang="de"] .nowrap { white-space: normal; }
html[lang="de"] :is(h1,h2,h3,p,li,summary,label,strong) { overflow-wrap: break-word; }
html[lang="de"] :is(h1,h2,h3) {
  hyphens: none;
  overflow-wrap: normal;
  word-break: normal;
  text-wrap: balance;
}
html[lang="de"] .hero-title-line { white-space: normal; }
html[lang="de"] .safari-team-role { hyphens: auto; }
html[lang="de"] .mobile-safari-intro h2 span { white-space: normal; }
html[lang="de"] .document-download-link > span { hyphens: auto; }
html[lang="de"] .feature-stat-grid strong { font-size: 30px; }
html[lang="de"] .yacht-overview-section .feature-stat-grid > div {
  display: grid;
  grid-row: span 2;
  grid-template-rows: subgrid;
  row-gap: 0;
}
html[lang="de"] .yacht-overview-section .feature-stat-grid strong { min-height: 0; align-self: start; }
@media (min-width: 768px) {
  html[lang="de"] .home-order-why .why-grid { row-gap: 0; }
  html[lang="de"] .home-order-why .why-grid > article:nth-child(n) {
    display: grid;
    grid-row: span 3;
    grid-template-rows: subgrid;
    row-gap: 0;
    padding-bottom: 52px;
  }
  html[lang="de"] .home-order-why .why-grid > article > .why-card-copy {
    display: grid;
    grid-row: span 2;
    grid-template-rows: subgrid;
    row-gap: 0;
  }
  html[lang="de"] .home-order-why .why-grid h3 { min-height: 0; align-self: start; }
}
@media (max-width: 599px) {
  html[lang="de"] .feature-stat-grid strong { font-size: 25px; }
  html[lang="de"] .hero h1 { font-size: 46px; }
  html[lang="de"] :is(.page-hero h1,.section-head h2,.copy h2) { font-size: 40px; }
  html[lang="de"] .page-jump-links a { font-size: 12px; }
}
@media (max-width: 359px) {
  html[lang="de"] .mobile-safari-intro h2 { font-size: 32px; }
}

/* German display type follows the actual copy column, not the viewport. */
html[lang="de"] :is(.black-panther-copy, .duotone-standard-copy, .editorial-split > .copy, .academy-video-section .section-head) {
  container-type: inline-size;
  container-name: german-copy;
  min-width: 0;
}
html[lang="de"] :is(.black-panther-copy h2, .editorial-split .copy h2, .academy-video-section .section-head h2) {
  max-width: 100%;
  font-size: 52px;
  line-height: 1.1;
}
html[lang="de"] .black-panther-copy h2 .phrase-nowrap {
  display: block;
  white-space: normal;
}
html[lang="de"] .duotone-standard-copy h2 {
  max-width: 100%;
  font-size: 44px;
  line-height: 1.12;
}
html[lang="de"] :is(.duotone-standard-copy h2, .academy-video-section .section-head h2) { white-space: pre-line; }
@container german-copy (max-width: 600px) {
  html[lang="de"] :is(.black-panther-copy h2, .editorial-split .copy h2, .academy-video-section .section-head h2) { font-size: 44px; }
}
@container german-copy (max-width: 420px) {
  html[lang="de"] :is(.black-panther-copy h2, .duotone-standard-copy h2, .editorial-split .copy h2, .academy-video-section .section-head h2) { font-size: 36px; }
}
@container german-copy (max-width: 320px) {
  html[lang="de"] :is(.black-panther-copy h2, .duotone-standard-copy h2, .editorial-split .copy h2, .academy-video-section .section-head h2) { font-size: 32px; }
  html[lang="de"] .yacht-overview-section .copy h2 { font-size: 28px; }
}

html[lang="de"] #wingfoil .wingfoil-focus-grid strong {
  font-size: 26px;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}
@media (min-width: 1080px) and (max-width: 1279px) {
  html[lang="de"] #wingfoil .wingfoil-focus-grid strong { font-size: 22px; }
}
@media (max-width: 767px) {
  html[lang="de"] .partner-heading h2 { font-size: 32px; }
}

/* Shared tracks align every text row, including course duration labels. */
html[lang="de"] .course-grid { row-gap: 0; }
html[lang="de"] .course-grid > article {
  display: grid;
  grid-row: span 4;
  grid-template-rows: subgrid;
  row-gap: 0;
  min-width: 0;
}
html[lang="de"] .course-grid :is(.level, h3, p, small) { align-self: start; }
html[lang="de"] .course-grid h3 {
  font-size: 30px;
  line-height: 1.12;
  margin: 28px 0 18px;
}
html[lang="de"] .course-grid p { margin: 0; }
html[lang="de"] .course-grid small { margin-top: 26px; }

@media (max-width: 389px) {
  html[lang="de"] .yacht-overview-section .feature-stat-grid strong {
    font-size: 20px;
    overflow-wrap: normal;
  }
}
@media (max-width: 359px) {
  html[lang="de"] .section-head h2 { font-size: 32px; }
  html[lang="de"] .legal-content :is(h2, h3) { font-size: 22px; }
}

/* Only the German safari facts and the two reported mobile hero titles. */
html[lang="de"] .de-home-title-mobile { display: none; }
html[lang="de"] .safari-intro-section .safari-feature-stat-grid {
  container: safari-stats / inline-size;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
html[lang="de"] .safari-intro-section .safari-feature-stat-grid > div {
  display: grid;
  grid-row: span 2;
  grid-template-rows: subgrid;
  row-gap: 0;
  align-content: normal;
}
html[lang="de"] .safari-intro-section .safari-feature-stat-grid strong {
  min-height: 0;
  align-self: start;
  font-size: 26px;
  white-space: nowrap;
  overflow-wrap: normal;
}
html[lang="de"] .safari-intro-section .safari-feature-stat-grid span { align-self: start; }
@container safari-stats (max-width: 420px) {
  html[lang="de"] .safari-intro-section .safari-feature-stat-grid > div { padding-inline: 14px; }
  html[lang="de"] .safari-intro-section .safari-feature-stat-grid strong { font-size: 22px; }
}
@container safari-stats (max-width: 340px) {
  html[lang="de"] .safari-intro-section .safari-feature-stat-grid > div { padding-inline: 12px; }
  html[lang="de"] .safari-intro-section .safari-feature-stat-grid strong { font-size: 20px; }
}
@container safari-stats (max-width: 300px) {
  html[lang="de"] .safari-intro-section .safari-feature-stat-grid > div { padding-inline: 10px; }
  html[lang="de"] .safari-intro-section .safari-feature-stat-grid strong { font-size: 18px; }
}
@media (max-width: 767px) {
  html[lang="de"] .de-home-title-desktop { display: none; }
  html[lang="de"] .de-home-title-mobile { display: block; }
  html[lang="de"] .home-layout > .hero h1 {
    max-width: 100%;
    font-size: 48px;
    text-wrap: initial;
  }
  html[lang="de"] .home-layout > .hero .hero-title-line { white-space: nowrap; }
  html[lang="de"] .home-layout > .hero .hero-content { padding-top: 52px; }
  html[lang="de"] .home-layout > .hero .hero-emotional-hook { margin-top: 28px; }
  html[lang="de"] .yachts-page-hero h1 {
    max-width: 10ch;
    font-size: 54px;
    line-height: 1.04;
    text-wrap: initial;
  }
  html[lang="de"] .yachts-page-hero .eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0;
    color: #fff;
  }
}
@media (max-width: 359px) {
  html[lang="de"] .home-layout > .hero h1 { font-size: 44px; }
  html[lang="de"] .home-layout > .hero .hero-content { padding-top: 40px; }
}
@media (max-width: 374px) {
  html[lang="de"] .yachts-page-hero h1 { font-size: 50px; }
}
