/* Test only on the German home page: animation does not intercept the home link. */
.site-header .header-logo-motion{position:relative;display:inline-flex;flex:0 0 auto;width:clamp(120px,9vw,156px);height:70px}
.site-header .header-logo-motion .brand{width:100%;height:100%}
.site-header .header-logo-motion__frame{position:absolute;left:-50%;top:0;width:200%;height:100%;border:0;visibility:hidden;pointer-events:none}
.site-header .header-logo-motion.is-ready .header-logo-motion__frame{visibility:visible}
.site-header .header-logo-motion.is-ready .brand img{opacity:0}
@media(min-width:1101px) and (max-width:1280px){.site-header .header-logo-motion{width:120px}}
@media(max-width:1100px){.site-header .header-logo-motion{width:112px;height:56px}}

/* Fade the moving fragments before they meet the edge of the rendering area. */
.site-header .header-logo-motion:not(.is-flat) .header-logo-motion__frame{-webkit-mask-image:linear-gradient(to right,transparent,black 16%,black 84%,transparent),linear-gradient(to bottom,transparent,black 16%,black 84%,transparent);-webkit-mask-composite:source-in;mask-image:linear-gradient(to right,transparent,black 16%,black 84%,transparent),linear-gradient(to bottom,transparent,black 16%,black 84%,transparent);mask-composite:intersect}

/* Avoid flashing the fallback while the animation initializes. If it cannot start, the timeout restores it. */
html.header-motion-loading .site-header .header-logo-motion:not(.is-ready) .brand img{opacity:0}
