/********** Template CSS **********/
:root {
    --primary: #305ECB;
    --secondary: #8D9297;
    --light: #F8F9FA;
    --dark: #182333;
}

.back-to-top {
    position: fixed;
    display: none !important;
    right: 25px;
    bottom: 25px;
    z-index: 99;
}

/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    font-weight: 500;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-outline-primary:hover {
    color: #FFFFFF;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 38px;
    height: 45px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}


/*** Navbar ***/
.navbar.sticky-top {
    top: -100px;
    transition: .5s;
}

.navbar .navbar-nav .nav-link {
    margin-left: 30px;
    padding: 25px 0;
    color: var(--secondary);
    font-weight: 500;
    text-transform: uppercase;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--primary);
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link {
        margin-left: 0;
        padding: 10px 0;
    }

    /* .navbar .navbar-nav {
        margin-top: 25px;
        border-top: 1px solid #EEEEEE;
    } */
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        right: 0;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }

}

/*** Header ***/
.carousel-item {
    height: 100%;
}

.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    text-align: start;
    background-size: cover;
    background-position: center;
    z-index: 1;
    height: 100% !important;
    background-color: white;
}


.carousel-item.c-item1 .carousel-caption {
    background-image: url(../images/beautiful_house.jpg);
}

.carousel-item.c-item2 .carousel-caption {
    background-image: url(../images/emtpy_room.jpg);
}

.carousel-item.c-item3 .carousel-caption {
    background-image: url(../images/alt_neu_haus.jpg);
}

.carousel-item.c-item4 .carousel-caption {
    background-image: url(../images/firmenwagen.jpg);
}

.carousel-control-prev,
.carousel-control-next {
    width: 15%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 4rem;
    height: 4rem;
    background-color: var(--dark);
    border: 15px solid var(--dark);
    border-radius: 50px;
}

.carousel-caption .breadcrumb-item+.breadcrumb-item::before {
    content: "\f111";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--primary);
}

#header-carousel {
    height: calc(100vh - 77.4px);
}

#header-carousel .carousel-inner {
    height: 100%;
}

.scroll-down-animation {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    display: grid;
    place-items: center;
    transform: translate(-50%, 0);
    width: 40px;
    height: 40px;
    cursor: pointer;
}

.scroll-down-animation i {
    animation: moveUpDown 1s infinite alternate;
    -webkit-animation: moveUpDown 1s infinite alternate;
}

@keyframes moveUpDown {
    from {
        translate: 0;
    }

    to {
        translate: 0 10px;
    }

}

@-webkit-keyframes moveUpDown {
    from {
        translate: 0;
    }

    to {
        translate: 0 10px;
    }

}

@media (max-width: 768px) {

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 3rem;
        height: 3rem;
        border-width: 12px;
    }

}

.page-header {
    background: linear-gradient(rgba(0, 0, 0, .65), rgba(0, 0, 0, .65)), url(../images/trockenbau_baustelle_2.jpg) center center no-repeat;
    background-size: cover;
}

.page-header.trockenbau {
    background: linear-gradient(rgba(0, 0, 0, .65), rgba(0, 0, 0, .65)), url(../images/Trockenbau_paranoma.jpg) center center no-repeat;
    background-position: bottom;
    background-size: fill;
}

.page-header.fassadenbau {
    background: linear-gradient(rgba(0, 0, 0, .65), rgba(0, 0, 0, .65)), url(../images/alt_neu_haus.jpg) center center no-repeat;
    background-position: center;
    background-size: cover;
}

.page-header .breadcrumb-item+.breadcrumb-item::before {
    color: #999999;
}


/*** Facts ***/
.facts-overlay {
    position: absolute;
    padding: 30px;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(0, 0, 0, .65);
}

.facts-overlay h1 {
    font-size: 120px;
    color: transparent;
    -webkit-text-stroke: 2px var(--primary);
}

.facts-overlay a:hover {
    color: var(--primary) !important;
}


/*** Service ***/
.service-text::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 0;
    top: 0;
    left: 0;
    background: var(--primary);
    opacity: 0;
    transition: .5s;
}

.service-item:hover .service-text::before {
    height: 100%;
    opacity: 1;
}

.service-text * {
    position: relative;
    transition: .5s;
    z-index: 1;
}

.service-item:hover .service-text * {
    color: #FFFFFF !important;
}


/*** Appointment ***/
.appointment {
    background: linear-gradient(rgba(0, 0, 0, 1), rgba(0, 0, 0, .1)), url(../images/trockenbau_baustelle_2.jpg) center center no-repeat;
    background-size: cover;
}


/*** Team ***/
.team-text {
    position: absolute;
    width: 75%;
    bottom: 30px;
    left: 0;
    transition: .5s;
}

.team-item:hover .team-text {
    width: 100%;
}

.team-text * {
    transition: .5s;
}

.team-item:hover .team-text * {
    letter-spacing: 2px;
}


/*** Testimonial ***/
.testimonial-carousel .owl-item img {
    width: 100px;
    height: 100px;
}

.testimonial-carousel .owl-nav {
    margin-top: 30px;
    display: flex;
    justify-content: start;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    margin-right: 15px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    border: 2px solid var(--primary);
    border-radius: 50px;
    font-size: 18px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: #FFFFFF;
    background: var(--primary);
}


/*** Footer ***/
.footer {
    color: #999999;
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #999999;
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: #999999;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--light);
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .menu {
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: var(--light);
}

.footer .copyright a:hover {
    color: var(--primary);
}

/* My-fixes */
/* nav */
@media screen and (max-width: 995px) {
    .logo-nav {
        width: 150px !important;
    }

    .navbar {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
}

#Dienstleistungen {
    scroll-margin-top: 4rem;
}

@media screen and (min-width: 992px) {
    .nav-item.dropdown {
        position: relative;
    }

    .nav-item.dropdown .dropdown-menu {
        position: absolute;
        left: 50%;
        transform: translateX(-40%);
    }

    .dropdown-menu i {
        display: block !important;
        width: 25px;
        height: 25px;
        position: absolute;
        color: white;
        left: 50%;
        transform: translateX(-50%);
        top: -15px;
        z-index: 9;
        color: rgba(0, 128, 0.8);
    }

}

@media screen and (width<=992px) {

    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: inherit;
    }

    #Dienstleistungen {
        scroll-margin-top: 3rem;
    }

}

/* carousel */
.carousel-item img {
    max-height: 82vh;
}

.carousel-caption .c-text {
    font-size: clamp(.8rem, 2.5vw, 1.7rem);
    padding: 0 .4rem;
    line-height: 1.2;
    animation-duration: 1.6s;
    font-weight: 700;
}

.animate__delay-400ms {
    animation-delay: 400ms;
}

@media screen and (max-width: 435px) {

    #u-btn {
        font-size: .8rem;
    }
}

@media screen and (max-width: 340px) {
    #u-btn {
        font-size: .6rem;
    }
}

/* Slider Gallery */
#carousel-gallery {
    display: flex;
    justify-content: center;
    width: 100%;
    list-style: none;
}

#carousel-gallery li {
    cursor: pointer;
    flex-basis: 8rem;
}

/* about */
@media screen and (max-width: 553px) {
    #expBox {
        height: auto !important;
        width: fit-content !important;
        padding-bottom: .5rem !important;
        padding-right: .5rem !important;
    }

    #expBox>div {
        flex-direction: row !important;
        align-items: center;
        gap: .3rem;
    }

    #expBox>div * {
        padding: 0 !important;
        margin: 0 !important;
    }

    #expBox>div h5,
    #expBox>div h2 {
        font-size: large !important;
    }

}

@media screen and (max-width: 397px) {
    #aboutBox img {
        margin-left: -12% !important;
    }
}

/* Datenschutz */
#datenschutz [data-bs-toggle="collapse"] {
    cursor: pointer;
}

#datenschutz h5::after {
    content: "\25BC";
    font-size: 1rem;
}

/* onSubmit effect */
#contactformular {
    transition: all 1.5s;
}

#contactformular.show {
    box-shadow: 0px 0px 20px 1px rgba(0, 128, 0, 0.5) !important;
}

.modal {
    position: fixed;
    top: -30rem;
    transition: all .5s;
    pointer-events: none;
    height: min-content;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 99999;
}

.modal-body {
    max-width: 30rem;
    color: white;
    border-radius: 1rem;
    margin-left: 1.4rem;
    margin-right: 1.4rem;
}

.modal.show {
    top: 3rem;
}

.bitte-warten.show {
    display: block !important;
}

.fade-out {
    opacity: 0;
    transition: opacity 1s;
}