/* Shared masthead and navigation */
.vsv-masthead { position: sticky; top: 0; z-index: 20; --masthead-size: 4.65rem; }
.vsv-masthead .masthead-banner { background: var(--navy); color: white; border-bottom: 3px solid var(--yellow); }
.vsv-masthead .masthead-inner { min-height: calc(var(--masthead-size) - 3px); gap: clamp(.55rem, 1.65vw, 1.3rem); }
.vsv-masthead .brand { color: white; gap: .65rem; font-size: clamp(1.05rem, 2.2vw, 1.55rem); margin-right: auto; }
.vsv-masthead .brand img { width: 3rem; height: 3rem; }
.vsv-masthead .brand-mobile { display: none; }
.vsv-masthead .masthead-actions { display: flex; align-items: center; gap: .8rem; margin: 0; }
.vsv-masthead .utility-link { color: white; }
.vsv-masthead .utility-link:hover { color: var(--yellow); }
.vsv-masthead .masthead-join { min-height: 2.6rem; padding: .38rem .9rem; }
.masthead-teamshop { display: grid; justify-items: center; gap: .06rem; padding: .28rem .53rem; border: 1px solid #e6b1b8; border-radius: .35rem; background: #fff3f4; color: #842536; font: 800 .71rem/1.1 var(--display); text-decoration: none; }
.masthead-teamshop:hover { background: #ffe6e9; }
.vsv-masthead .masthead-teamshop::before { width: 4.5rem; height: .98rem; }
.vsv-masthead[data-menu-ready] .menu-toggle { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; background: #ffffff14; color: white; border: 1px solid #ffffff53; border-radius: .35rem; padding: .45rem .68rem; min-width: 6rem; min-height: 2.75rem; }
.vsv-masthead[data-menu-ready] .menu-toggle:hover { background: #ffffff24; }
.vsv-masthead .menu-icon { margin-right: 0; }
.vsv-masthead[data-navigation-open] .menu-icon { background: transparent; }
.vsv-masthead[data-navigation-open] .menu-icon::before { top: 0; transform: rotate(45deg); }
.vsv-masthead[data-navigation-open] .menu-icon::after { top: 0; transform: rotate(-45deg); }
.vsv-masthead .masthead-banner :focus-visible { outline-color: var(--yellow); }

.vsv-masthead .navigation { display: block; background: #101f3e; color: white; border: 0; }
.vsv-masthead[data-menu-ready] .navigation {
  position: absolute;
  inset: 100% 0 auto;
  max-height: calc(100dvh - var(--masthead-size));
  overflow: auto;
  overscroll-behavior: contain;
  box-shadow: 0 1rem 2rem #07142b38;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-.55rem);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.vsv-masthead[data-navigation-open] .navigation { visibility: visible; opacity: 1; transform: none; pointer-events: auto; }
body.vsv-menu-open { overflow: hidden; }
.vsv-menu-body { max-width: 58rem; padding-block: clamp(1rem, 2.7vw, 2.1rem); }
.vsv-masthead .main-menu { display: block; }
.vsv-masthead .main-menu > li { display: block; border-bottom: 1px solid #ffffff25; min-height: 0; }
.vsv-masthead .main-menu > li > a, .vsv-masthead .nav-group > summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 3rem;
  padding: .65rem .16rem;
  color: #fff;
  white-space: normal;
  box-shadow: none;
  font: 740 clamp(1.18rem, 2.3vw, 1.75rem)/1.24 var(--display);
}
.vsv-masthead .nav-group > summary::after { color: var(--yellow); font-size: 1.32rem; margin-inline-start: .5rem; }
.vsv-masthead .main-menu > li > a[aria-current="page"], .vsv-masthead .main-menu > li > a:hover, .vsv-masthead .nav-group > summary:hover, .vsv-masthead .nav-group--active > summary { color: var(--yellow); }
.vsv-masthead .nav-dropdown { position: static; width: auto; max-width: none; border: 0; margin: 0 0 .76rem; border-radius: .4rem; padding: .23rem .55rem .32rem; background: #ffffff0e; box-shadow: none; }
.vsv-masthead .nav-dropdown a { color: #f0f4ff; padding: .5rem .65rem; line-height: 1.4; font-size: 1rem; }
.vsv-masthead .nav-dropdown .nav-overview { color: var(--yellow); }
.vsv-masthead .nav-dropdown a:hover, .vsv-masthead .nav-dropdown a[aria-current="page"] { color: var(--navy); background: white; }
.vsv-masthead .main-menu > li > a.nav-shop { display: inline-grid; justify-items: start; align-items: center; gap: .24rem; width: auto; min-height: 3rem; margin: .52rem 0; padding: .42rem .72rem; color: #842536; background: #fff3f4; border: 1px solid #e6b1b8; font-size: .92rem; }
.vsv-masthead .navigation :focus-visible { outline-color: var(--yellow); }
.masthead-marks { display: flex; flex: none; align-items: center; gap: .46rem; }
.masthead-partners { display: flex; flex: none; align-items: center; gap: clamp(.18rem, .45vw, .48rem); }
.masthead-partners::before {
  content: "";
  order: 1;
  width: 2px;
  height: 1.55rem;
  border-radius: 2px;
  background: #ffffffc9;
}
.masthead-social { display: flex; align-items: center; gap: .16rem; }
.masthead-social a {
  display: grid;
  place-items: center;
  inline-size: 2rem;
  min-block-size: 2.75rem;
  border-radius: .3rem;
}
.masthead-social a:hover { background: #ffffff19; }
.masthead-social img { width: 1.125rem; height: 1.125rem; }
.vsv-masthead .main-menu > .masthead-social-menu { display: none; }
@media (max-width: 35.999rem) {
  .masthead-social--header { display: none; }
  .vsv-masthead .main-menu > .masthead-social-menu { display: block; }
  .masthead-social--menu a { inline-size: 2.75rem; }
}
.masthead-partners a { display: grid; min-height: 2.75rem; min-width: 2.75rem; place-items: center; border-radius: .3rem; }
.masthead-partners a:hover { background: #ffffff19; }
.masthead-adidas { order: 2; }
.masthead-ats-logo {
  display: block;
  width: 6.05rem;
  aspect-ratio: 1268 / 479;
  overflow: hidden;
  position: relative;
  mix-blend-mode: screen;
}
/* Show the mark above the address line in the original artwork. */
.masthead-ats-logo img {
  position: absolute;
  top: -98.75%;
  left: -6.31%;
  width: 114.2%;
  max-width: none;
  height: auto;
  filter: invert(1) contrast(1.4);
}
.masthead-adidas img { width: 1.88rem; height: auto; }

@media (max-width: 58rem) {
  .vsv-masthead .utility-link { display: none; }
}
@media (max-width: 52rem) {
  .vsv-masthead { --masthead-size: 4rem; }
  .vsv-masthead .masthead-inner { gap: clamp(.3rem, 1.8vw, 1rem); }
  .vsv-masthead .brand {
    gap: clamp(.28rem, 1.2vw, .65rem);
    min-height: 2.75rem;
    font-size: clamp(.68rem, 3.25vw, 1.05rem);
    letter-spacing: -.025em;
    line-height: 1.05;
  }
  .vsv-masthead .brand img { width: clamp(2.15rem, 10.1vw, 2.8rem); height: clamp(2.15rem, 10.1vw, 2.8rem); }
  .vsv-masthead .brand-full, .vsv-masthead .masthead-actions { display: none; }
  .vsv-masthead .brand-mobile { display: block; }
  .masthead-partners { gap: .18rem; }
  .masthead-ats-logo { width: clamp(4.2rem, 20.5vw, 6.1rem); }
  .masthead-adidas img { width: clamp(1.48rem, 6.9vw, 1.88rem); height: auto; }
  .vsv-masthead[data-menu-ready] .menu-toggle {
    min-width: 5.12rem;
    gap: .35rem;
    padding: .35rem .43rem;
    font-size: .79rem;
  }
  .vsv-masthead .masthead-inner .menu-icon { margin-right: 0; }
}
@media (max-width: 22rem) {
  .vsv-masthead .shell { width: 100%; padding-inline: .5rem; }
}
@media (min-width: 52.001rem) {
  .vsv-masthead[data-menu-ready] .menu-toggle { display: none; }
  .vsv-masthead[data-menu-ready] .navigation {
    position: relative;
    inset: auto;
    max-height: none;
    overflow: visible;
    visibility: visible;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    box-shadow: none;
    background: #1b3058;
  }
  .vsv-menu-body { max-width: 82rem; padding-block: 0; }
  .vsv-masthead .main-menu { display: flex; justify-content: space-between; gap: 0 .45rem; }
  .vsv-masthead .main-menu > li { border: 0; }
  .vsv-masthead .main-menu > .nav-mobile-only { display: none; }
  .vsv-masthead .main-menu > li > a, .vsv-masthead .nav-group > summary {
    min-height: 2.85rem;
    padding: .5rem .35rem;
    font-size: clamp(.78rem, 1.08vw, .98rem);
    white-space: nowrap;
  }
  .vsv-masthead .main-menu > li:first-child > a { padding-inline-start: 0; }
  .vsv-masthead .main-menu > li > a[href="/news/"] { padding-inline-end: 0; }
  .vsv-masthead .brand img { transform: translateX(-.15rem); }
  .vsv-masthead .masthead-social--header a:last-child { justify-items: end; }
  .vsv-masthead .nav-group > summary::after { margin-left: .13rem; font-size: .95rem; }
  .vsv-masthead .nav-dropdown {
    position: absolute;
    inset: 100% auto auto 0;
    width: max-content;
    max-width: min(20rem, 36vw);
    max-height: 65dvh;
    overflow: auto;
    margin: 0;
    padding: .35rem;
    background: #16284c;
    box-shadow: 0 .55rem 1.4rem #0813295e;
    border: 1px solid #ffffff29;
  }
  .vsv-masthead .main-menu > li:last-of-type .nav-dropdown,
  .vsv-masthead .nav-funding .nav-dropdown { inset-inline: auto 0; }
  .vsv-masthead .nav-dropdown a { font-size: .91rem; }
}
@media (prefers-reduced-motion: reduce) {
  .vsv-masthead[data-menu-ready] .navigation { transition: none; }
}

/* The old mobile rule applies up to 62rem. The shared menu is desktop from 52rem. */
.masthead.vsv-masthead[data-menu-ready] .navigation { display: block; }
@media (max-width: 52rem) {
  html[data-vsv-menu-loading] .vsv-masthead:not([data-menu-ready]) .navigation {
    display: none;
  }
  .masthead.vsv-masthead[data-menu-ready] .navigation {
    max-height: calc(100vh - var(--masthead-size));
    max-height: calc(100dvh - var(--masthead-size));
  }
}


.vsv-masthead .nav-group--active > summary {
  box-shadow: none;
}

@media (max-width: 52rem) {
  /* Do not show a partially visible panel while opening or closing the menu. */
  .masthead.vsv-masthead {
    view-transition-name: none;
  }

  .masthead.vsv-masthead[data-menu-ready]:not([data-navigation-open]) .navigation {
    display: none;
  }

  .masthead.vsv-masthead[data-menu-ready][data-navigation-open] .navigation {
    display: block;
    overflow-y: auto;
    transition: none;
  }
}
/* Give text-only subpages the same title panel as pages with a header photo. */
main .page-head:not(.page-head--photo) .page-lead-copy {
  padding: clamp(1.5rem, 3.65vw, 3.45rem);
  border-inline-start: 0;
  border-radius: 1rem;
  background: radial-gradient(ellipse at 10% 100%, #1a3671, var(--navy) 75%);
}

main .page-head:not(.page-head--photo) .page-lead-copy h1 {
  color: #fff;
}

main .page-head:not(.page-head--photo) .page-lead-copy h1::before {
  content: "";
  display: block;
  width: 2.5rem;
  height: .2rem;
  margin-bottom: .95rem;
  border-radius: 1rem;
  background: var(--yellow);
}

main .page-head:not(.page-head--photo) .page-lead-copy :is(p, .article-meta) {
  color: #e5edff;
}

main .page-head .article-meta a {
  color: inherit;
}

.masthead.vsv-masthead .nav-dropdown a:is(:hover, :focus-visible, [aria-current="page"]) {
  background: #2a426b;
  color: var(--yellow, #ffdd46);
}

@media (min-width: 52.001rem) {
  .masthead.vsv-masthead .nav-dropdown a[href="/geschichte/"] {
    white-space: nowrap;
  }

  main .page-head--history .page-lead-copy h1 {
    hyphens: none;
    overflow-wrap: normal;
    white-space: nowrap;
  }

  main .showcase-slide--geschichte-banner .showcase-title {
    hyphens: none;
    overflow-wrap: normal;
  }
}

@media (min-width: 55.001rem) {
  .page-head--history .page-lead {
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.5fr);
  }
}

/* Keep in-page destinations below the fixed-height parts of the sticky header. */
html {
  --vsv-anchor-header-height: 4rem;
  scroll-padding-block-start: calc(var(--vsv-anchor-header-height) + .75rem);
}

/* The scroll container now owns the offset for fragment targets. */
main[id]:target,
main :target {
  scroll-margin-block-start: 0 !important;
}

@media (min-width: 52.001rem) {
  html {
    --vsv-anchor-header-height: 7.5rem;
  }
}

/* The content title follows the same scale on photo and text-led pages. */
main .page-head .page-lead-copy h1 {
  font-size: clamp(2rem, 4.5vw, 3.85rem);
}

main .page-head:not(.page-head--history) .page-lead-copy h1 {
  hyphens: manual;
}

main .page-head .page-lead-copy .page-title--single-word {
  font-size: clamp(1.7rem, 6.7vw, 3.85rem);
}
