/* =======================
   Basis
======================= */

html {
    box-sizing: border-box;
	scroll-behavior: smooth;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

body {
    margin: 0px;
    padding: 0px;
    font-family: Arial, sans-serif;
    background-color: #FFFFFF;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
}

.container {
    width: 1200px;
    max-width: 100%;
    margin: 0px auto;
    padding-left: 0px;
    padding-right: 0px;
}

.page-content {
    overflow: hidden;
}

/* =======================
   Desktop 1024-1199
======================= */

@media only screen and (min-width: 1024px) and (max-width: 1199px) {

    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

}

/* =======================
   Mobile <=1023
======================= */

@media only screen and (max-width: 1023px) {

    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

}

/* =======================
   Kleine Smartphones
======================= */

@media only screen and (max-width: 560px) {

    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

}





/* =======================
   Anker
======================= */

#anker, 
#service, 
#wissen,
#standorte,
#faq,
#berechnung,
#bewertungen,
#ablauf,
#kontakt,
#checkliste {
	scroll-margin-top: 0px;
}

#abmeldung {
	scroll-margin-top: 80px;
}

@media only screen and (max-width: 1023px) {
	#anker, 
	#service, 
	#wissen,
	#standorte,
	#faq,
	#berechnung,
	#bewertungen,
	#ablauf,
	#kontakt,
	#checkliste {
		scroll-margin-top: 50px;
	}
	
	#abmeldung {
	scroll-margin-top: 100px;
	}
	
}



/* =======================
   Scroll to top
======================= */

.scroll-top-button {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 54px;
    height: 54px;
    border: 0px;
    padding: 0px;
    background-color: #E2001A;
    border-radius: 8px;
    cursor: pointer;
    z-index: 999;

    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
}

.scroll-top-button.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.scroll-top-button:hover {
    transform: scale(1.05);
}

.scroll-top-button:active {
    transform: scale(0.96);
}

.scroll-top-icon {
    display: block;
    width: 30px;
    height: 15px;
    background-image: url("../images/icons3.png");
    background-repeat: no-repeat;
    background-position: 0px -133px;
}


/* =======================
   CTA Schubladen Desktop
======================= */

.cta-drawer-wrap {
    position: fixed;
    top: 230px;
    right: 0px;
    z-index: 950;
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: flex-end;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.cta-drawer-wrap.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.cta-drawer {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 58px;
    height: 56px;
    padding: 0px 16px 0px 14px;
    background-color: #009036;
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 10px 0px 0px 10px;
    overflow: hidden;
    box-shadow: 0px 6px 16px rgba(0,0,0,0.22);

    transition: width 0.35s ease, box-shadow 0.25s ease;
}

.cta-drawer:hover {
    width: 170px;
    box-shadow: 0px 8px 20px rgba(0,0,0,0.28);
}

.cta-drawer-icon {
    display: inline-block;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    background-image: url("../images/icons1.png");
    background-repeat: no-repeat;
}

.cta-drawer-text {
    margin-left: 16px;
    color: #FFFFFF;
    font-size: 17px;
    font-weight: bold;
    line-height: 1.2;
    white-space: nowrap;

    opacity: 0;
    transform: translateX(8px);
    transition: opacity 0.18s ease, transform 0.25s ease;
}

.cta-drawer:hover .cta-drawer-text {
    opacity: 1;
    transform: translateX(0px);
    transition-delay: 0.1s;
}

.icon-cta-phone {
    background-position: 0px -52px;
}

.icon-cta-mail {
    background-position: 0px 3px;
}

.icon-cta-location {
    background-position: 5px -108px;
}


/* Mobile: CTA-Schubladen aus */
@media only screen and (max-width: 1023px) {
    .cta-drawer-wrap {
        display: none;
    }

    .scroll-top-button {
        right: 14px;
        bottom: 14px;
        width: 50px;
        height: 50px;
    }
}



