Zend certified PHP/Magento developer

Invalid template file although the files exists!

With Magento ver. 2.3.2 I get errors regarding a custom theme:

1 exception(s):
Exception #0 (MagentoFrameworkExceptionValidatorException): 
Invalid template file: 'ComSpirit_ThemeOptions::preloades-style.phtml' 
in module: 'ComSpirit_ThemeOptions' block's name: 'preloader.options.styles'

Exception #0 (MagentoFrameworkExceptionValidatorException): 
Invalid template file: 'ComSpirit_ThemeOptions::preloades-style.phtml' 
in module: 'ComSpirit_ThemeOptions' block's name: 'preloader.options.styles'
<pre>#1 ComSpiritThemeOptionsBlockViewStylesInterceptor->fetchView() 
called at [vendor/magento/framework/View/Element/Template.php:305]

The template file exists and is called from app/design/frontend/ComSpirit/Optonet/ComSpirit_ThemeOptions/layout/default.xml

<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <body>
        <referenceContainer name="after.body.start">
            <block class="ComSpiritThemeOptionsBlockViewStyles" template="ComSpirit_ThemeOptions::preloades-style.phtml" name="preloader.options.styles" />
        </referenceContainer>
    </body>
</page>

This is my folder structure:

My folder structure

This is the content of the file:

<?php /**  */ ?>
<?php
$optionsHelper = $this->helper('ComSpiritThemeOptionsHelperData');
?>
<style>

    #page-preloader{
        background-color: <?php echo $optionsHelper->getBodyBackgroundColor() ?: '#ffffff' ?>;
        <?php if ($optionsHelper->isBodyBackgroundImage()) : ?>
            background-image: <?php echo $optionsHelper->getBodyBackgroundImage() ? 'url(' . $this->getBaseUrl() . 'pub/media/theme_options/' . $optionsHelper->getBodyBackgroundImage() . ')' : 'none' ?>;
            background-size: <?php echo $optionsHelper->getBodyBackgroundImageSize(); ?>;
            background-attachment: <?php echo $optionsHelper->getBodyBackgroundImageAttachment(); ?>;
            background-position: <?php echo $optionsHelper->getBodyBackgroundImagePosition(); ?>;
            background-repeat: <?php echo $optionsHelper->getBodyBackgroundImageRepeat(); ?>;
        <?php endif; ?>
    }  

    #page-preloader .spinner:before{
        background-color: <?php echo $optionsHelper->getPrimaryColor() ?: '#30a0dd' ?>;
    }
    #page-preloader .spinner:after{
        background-color: <?php echo $optionsHelper->getSecondaryColor() ?: '#3bb141' ?>;
    }

</style>

I have no idea what’s going on, any help would be appreciated 🙂