@media only screen and (min-width: 320px) {
    header#masthead .logo {
        width: 185px;
        height: 124px;
        position: absolute;
        margin-left: -4px;
        /*background-image: url(/wp-content/uploads/2016/12/logo_ohne_Hintergrund.png);*/
        background-image: url(https://wolf-bedachungen-fassaden-holzbau.de/wp-content/uploads/2024/07/wolf-bedachungen-logo-ani.gif);
        background-repeat: no-repeat;
        background-size: contain;
        z-index: 999;
    }
}

@media only screen and (min-width: 768px) {
    header#masthead .logo {
        width: 186px;
        margin-left: 9px;
    }
}

@media only screen and (min-width: 1280px) {
    header#masthead .logo {
        width: 330px;
        margin-left: 30px;
    }
}

body.home header#masthead .logo {
    margin-top: 46px;
}

body:not(.home) header#masthead .logo {
    margin-top: 14px;
}

@media only screen and (min-width: 320px) {
    header .activity-item--first .title {
        font-family: Raleway;
        font-size: 40px;
        font-weight: bold;
        font-style: normal;
        font-stretch: normal;
        color: #ed1c23;
        position: absolute;
        padding-bottom: 52px;
        padding-top: 17px;
        right: 7%;
        position: absolute;
    }
}
@media only screen and (min-width: 768px) {
    header .activity-item--first .title {
        font-size: 38px;
        padding-bottom: 71px;
        right: 30%;
        padding-top: 8px;
    }
}
@media only screen and (min-width: 1280px) {
    header .activity-item--first .title {
        font-size: 88px;
        padding-bottom: 71px;
        right: 30%;
        padding-top: 48px;
    }
}

@media only screen and (min-width: 320px) {
    header .activity-item--first .subline {
        position: absolute; 
        font-family: Raleway;
        font-size: 14px;
        font-weight: 500;
        font-style: normal;
        font-stretch: normal;
        text-align: center;
        color: #ffffff;
        padding-bottom: 26px;
        padding-top: 58px;
        right: 7%;
        position: absolute;
    }
}
@media only screen and (min-width: 768px) {
    header .activity-item--first .subline {
        font-size: 21px;
        padding-bottom: 35px;
        right: 30%;
        padding-top: 54px;
    }
}
@media only screen and (min-width: 1280px) {
    header .activity-item--first .subline {
        font-size: 29px;
        padding-bottom: 35px;
        right: 30%;
        padding-top: 134px;
    }
}


@media only screen and (min-width: 320px) {
    header .activity-item--first .link-title-wrapper {
        position: absolute;
        right: 0;

        display: -ms-flexbox;
        display: -webkit-flex;
        display: flex;
        padding-top: 83px;
    }
}
@media only screen and (min-width: 768px) {
    header .activity-item--first .link-title-wrapper {
        padding-top: 56px;
    }
}
@media only screen and (min-width: 1280px) {
    header .activity-item--first .link-title-wrapper {
        padding-top: 166px;
    }
}

@media only screen and (min-width: 320px) {
    header .activity-item--first .link-title {
        padding-bottom: 6px;
        right: 0;
        font-family: Raleway;
        font-size: 14px;
        font-weight: 500;
        font-style: normal;
        font-stretch: normal;
        text-align: center;
        color: #ffffff;

    }
}
@media only screen and (min-width: 768px) {
    header .activity-item--first .link-title {
        font-size: 21px;
        padding-bottom: 16px;
    }
}


header .activity-item--first {
    /*-ms-box-orient: horizontal;
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;

    flex-direction: column;
    -webkit-flex-direction: column;
    justify-content: flex-end;

    display: -webkit-flex;
    -webkit-justify-content: flex-end;
    display: flex;
    justify-content: flex-end;
    flex-direction: column;*/
}

@media only screen and (min-width: 320px) {

    header .activity-item--first .link {
        background-image: url(./../images/arrow-front.png);
        width: 28px;
        height: 28px;
        background-repeat: no-repeat;
        background-position: center;
        background-size: cover;
        margin-top: -3px;
        margin-left: 27px;
        margin-right: 20px;
    }
}
@media only screen and (min-width: 768px) {
    header .activity-item--first img {
        margin-right: 19px;
        width: 28px;
        height: 28px;
    }
}

.byline,
.posted-on {
    display: none !important;
}

#menu-mainmenu {
    z-index: 99999;
    list-style-type: none;
    text-align: right;
    display: -webkit-box;
    position: absolute;
    right: 20px;
}

#menu-mainmenu li {
    padding-left: 20px;
}
#menu-mainmenu li.current-menu-item {
    font-weight: bold;
}

@media only screen and (min-width: 320px) {
    #menu-mainmenu {
        display: none;
    }
}
@media only screen and (min-width: 768px) {
    #menu-mainmenu {
        display: -webkit-box;
        margin-left: 0;
        left: 24%;
    }
}
@media only screen and (min-width: 1280px) {
    #menu-mainmenu {
        left: auto;
        right: 20px;
    }
}

#menu-mainmenu li a:hover{
    text-decoration: underline;
}

header .activity-item--first .title img {
    width: 100%;
    height: 56px;
}

/* IPHONE */
@media only screen
and (min-width: 320px)
and (max-width: 812px) {
    header .activity-item--first .title img {
        height: 30px;
    }

    header#masthead .logo {
        width: 139px;
        height: 87px;
    }
}