/*
    
## ## ## ## ##  ##              ## ## ## ## ##  ## ## ## ## ##  ## ## ## ## ##  ##          ##  ## ## ## ## ##  ## ## ## ## ##
##              ##              ##          ##  ##          ##  ##          ##  ## ##       ##  ##                    ##
##              ##              ##          ##  ##          ##  ##          ##  ##  ##      ##  ##                    ##
##    ## ## ##  ##              ##          ##  ## ## ## ##     ##          ##  ##    ##    ##  ## ## ## ## ##        ##
##          ##  ##              ##          ##  ##          ##  ##          ##  ##      ##  ##  ##                    ##
##          ##  ##              ##          ##  ##          ##  ##          ##  ##        ##    ##                    ##
## ## ## ## ##  ## ## ## ## ##  ## ## ## ## ##  ## ## ## ## ##  ## ## ## ## ##  ##          ##  ## ## ## ## ##        ##

/**** SITE SETTINGS ****/
html {
    scroll-behavior: smooth;
    text-rendering: optimizeSpeed;
    shape-rendering: optimizeSpeed;
    image-rendering: auto;
}
body * {
    box-sizing: border-box;
}
body {
    padding: 0;
    margin: 0;
    overflow-x: hidden;
}

/* ACCESSIBILITY SETTINGS */
.skip-link {
    position: absolute;
    top: -5rem;
    left: 1rem;
    z-index: 9999;
}
.skip-link:focus {
    top: 1rem;
}

/* DEFAULT VALUES */ 
.content {
    padding: calc(1rem + 10vh) calc(1rem + 10vw);
    margin: auto;
}
.inner {
    max-width: 1920px;
    margin: auto;
}
.flex {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 3rem;
}
.grid {
    display: grid;
    justify-content: space-between;
}
img {
    width: 100%;
}
a {
    text-decoration: none;
}

/* TEXT DECORATIONS */
.has-lines {
    position: relative;
    margin: 0 0 3.75rem;
    padding: 0 0 1.5rem;
}
.has-lines::before,
.has-lines::after {
    content: "";
    position: absolute;
    width: 5.625rem;
    height: .25rem;
}
.has-lines::before {
    bottom: 0;
    left: calc(50% - 3.75rem);
}
.has-lines::after {
    bottom: -0.625rem;
    left: calc(50% - 1.25rem);
}
.has-lines h2 {
    margin: 0;
    text-align: center;
}

/* BUTTON & SELECTION */
.button,
input[type=submit],
button {
    display: inline-block;
    font-size: .875rem;
    font-weight: 600;
    padding: .6rem 1.75rem;
    height: fit-content;
    width: fit-content;
    cursor: pointer;
    border-radius: .25rem;
    text-transform: uppercase;
    transition: all .5s ease-in-out;
}

/* LIST & LIST ITEMS */
li, ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}
ul {
    flex-direction: column;
    align-items: baseline;
    padding: 0;
}

/**** SECTION 1: HEADER ****/
header {
    z-index: 2;
    position: fixed;
    width: 100%;
    height: var(--logo-height);
}
.bottommenu,
.topmenu {
    padding: 0;
}
.bottommenu .inner,
.topmenu .inner {
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
}
.bottommenu #nav {
    position: absolute;
    bottom: 0;
    right: 1rem;
}
.bottommenu .social-bar {
    position: absolute;
    top: 0;
    right: 0;
}
.bottommenu .social-bar .social-item {
    display: block;
    padding: 1.25rem;
}
.bottommenu .social-bar img {
    width: 2.5rem;
    height: auto;
}

/* LOGO */
.logo {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
}
.logo svg {
    shape-rendering: auto;
}
.logo svg .st5 {
    animation: animate 15s 0s linear forwards infinite;
}
.logo svg .st6 {
    animation: animate 15s .1s linear forwards infinite;
}

@-webkit-keyframes animate {
    0% {
        opacity: 0;
        fill: none;
        stroke-dashoffset: 1800
    }

    30% {
        opacity: 1;
        fill: none;
        stroke-dashoffset: 1800
    }

    90% {
        fill: #fff0
    }

    to {
        opacity: 1;
        fill: hsla(0,0%,100%,0);
        stroke-dashoffset: 0
    }
}

@keyframes animate {
    0% {
        opacity: 0;
        fill: none;
        stroke-dashoffset: 1800
    }

    30% {
        opacity: 1;
        fill: none;
        stroke-dashoffset: 1800
    }

    90% {
        fill: hsla(0,0%,100%,0)
    }

    to {
        opacity: 1;
        stroke-dashoffset: 0
    }
}

/* NAVIGATION */
nav {
    display: flex;
    gap: 1rem;
}
nav ul {
    display: flex;
    flex-direction: row;
    margin: 0;
}
nav li {
    height: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
}
.topmenu nav li {
    height: 60px;
}
.dropdown li {
    height: fit-content;
}
.bottommenu nav li a {
    position: relative;
    padding: .5rem 0;
    font-size: .935rem;
}
.bottommenu .nav-list > li > a {
    text-transform: uppercase;
}
.bottommenu .nav-list > li > a::after {
    content: "";
    position: absolute;
    width: 100%;
    height: .125rem;
    bottom: 0;
    left: 0;
    visibility: hidden;
    -webkit-transform: scaleX(0);
    transform: scaleX(0);
    -webkit-transition: all .3s ease-in-out 0s;
    transition: all .3s ease-in-out 0s;
}
.bottommenu nav li a:hover::after {
    visibility: visible;
    transform: scaleX(1);
}
.bottommenu nav li i {
    font-size: .935rem;
}
.bottommenu nav.visible {
    visibility: visible;
}

/* DROPDOWN MENU */
.dropdown {
    visibility: collapse;
    display: none;
    position: fixed;
    gap: 0;
    top: var(--logo-height);
    opacity: 0;
}
.dropdown.vertical {
    flex-direction: column;
}
.dropdown.horizontal {
    flex-direction: row;
}
.menuitem.horizontal:hover > .dropdown.horizontal,
.menuitem.vertical:hover > .dropdown.vertical {
    display: flex;
    visibility: visible;
    opacity: 1;
}
.bottommenu nav .dropdown li {
    width: 100%;
}
.bottommenu nav .dropdown li a {
    padding: .75rem;
    width: 100%;
    font-size: .925rem;
}

/* BURGERMENU */
#burgermenu {
    display: none;
    cursor: pointer;
    width: 2.5rem;
    padding: 0;
    border: 0;
    border-radius: 0;
}
#burgermenu .burger {
    position: relative;
    height: 1.5rem;
}
#burgermenu .burger .line {
    position: absolute;
    width: 2.5rem;
    height: 3.5px;
    border-radius: 1rem;
    transition: all 200ms;
}
#burgermenu .burger .line:nth-child(1) {
    top: 0;
}
#burgermenu .burger .line:nth-child(2) {
    top: calc(50% - 1px);
}
#burgermenu .burger .line:nth-child(3) {
    top: calc(100% - 2px);
}
#burgermenu[data-open="true"] .burger .line:nth-child(1) {
    top: calc(50% - 1px);
    transform: rotate(45deg);
}
#burgermenu[data-open="true"] .burger .line:nth-child(2) {
    opacity: 0;
}
#burgermenu[data-open="true"] .burger .line:nth-child(3) {
    top: calc(50% - 1px);
    transform: rotate(-45deg);
}
#burgermenu .burger .line {
    transition: top 0.2s 0.2s, transform 0.2s, opacity 0.2s;
}
#burgermenu[data-open="true"] .burger .line {
    transition: top 0.2s, transform 0.2s 0.2s, opacity 0.2s 0.15s;
}
#burgermenu[data-open="true"] .burger .line:nth-child(2) {
    opacity: 0;
}

/**** SECTION 2: MAIN ****/

/* HERO */
#hero {
    position: relative;
    overflow: hidden;
}
#hero::before {
    content: "";
    position: absolute;
    bottom: 0;
    top: 0;
    left: 0;
    right: 0;
}
#hero .inner{
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: none;
    height: fit-content;
    overflow: hidden;
}
#hero .inner::before {
    content: "";
    position: absolute;
    top: 100%;
    left: -50%;
    width: 100%;
    height: 100%;
    -webkit-transform-origin: right;
    transform-origin: right;
    -webkit-transform: skewY(4deg);
    transform: skewY(4deg);
}
#hero .inner::after {
    content: "";
    position: absolute;
    top: 100%;
    right: -50%;
    width: 100%;
    height: 100%;
    -webkit-transform-origin: left;
    transform-origin: left;
    -webkit-transform: skewY(-4deg);
    transform: skewY(-4deg);
}
#hero .content {
    position: absolute;
    left: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 1rem;
    width: 100%;
    max-width: 85rem;
    transform: translateX(-50%);
    z-index: 1;
}
#hero img {
    height: 60vh;
    width: 100%;
    object-fit: cover;
}
#hero h1 {
    text-align: center;
}
.right h2 {
    font-size: calc(1rem + 1vw);
    margin-bottom: 1rem;
}
.teaser {
    align-items: center;
}

/* SLIDER */
.slider-container {
    width: 100%;
    margin: auto;
    overflow: hidden;
    position: relative;
}
.slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
}
.slide {
    min-width: 100%;
    box-sizing: border-box;
    height: 90vh;
    display: flex;
    justify-content: center;
}
.slide img {
    object-fit: cover;
}
.prev, 
.next {
    cursor: pointer;
    position: absolute;
    z-index: 1;
    top: 40%;
    width: 5rem;
    height: 5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    user-select: none;
    transition: 0.6s ease;
}
.next {
    right: 0;
}
.left,
.right {
    width: 100%;
}

/* ABOUT */
#about .inner {
    align-items: center;
}
#about .button {
    margin-top: 1rem;
}

/* TEASERBOX */
#teaserbox .grid{
    gap: 1rem;
    grid-template-columns: repeat(3, 1fr);
}
.box {
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
#teaserbox .box {
    position: relative;
}
#teaserbox .box .box-thumbnail {
    height: 30rem;
}
#teaserbox .box .box-thumbnail img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}
#teaserbox .box .box-content {
    position: absolute;
    bottom: 0;
    padding: 1.5rem;
    width: 100%;
}
#teaserbox .box h3 {
    font-size: 1.35rem;
    margin: 0 0 .5rem;
}
#teaserbox .box p {
    font-size: 1rem;
    margin: 0;
}
#teaserbox .box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: .2s ease-in-out;
}
.all {
    display: flex;
    justify-content: space-between;
    margin: 0 0 1rem 0;
}
.all div {
    display: flex;
    align-items: center;
}
.all a {
    display: flex;
    gap: 1rem;
}
.all span,
.all i {
    font-size: 1.5rem;
}
.all a {
    align-items: center;
    gap: 1rem;
}
.all a:hover i {
    transform: rotate(-35deg);
}

/* CALL TO ACTION */
#contact .inner {
    align-items: center;
}
form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0 0 0;
}
.form h3 {
    margin: 0;
}
.form h4 {
    margin: 0;
}
.info {
    justify-content: space-between;
    gap: .5rem;
}
.info input {
    width: 100%;
    padding: .5rem 1rem;
    border: none;
    font-size: 1rem;
}
textarea {
    padding: .5rem 1rem;
    font-size: 1rem;
    border: none;
    resize: none;
}
#recaptcha {
    display: flex;
    align-items: center;
    gap: 2rem;
}
.alert {
    display: none;
    padding: 10px 0;
}
.alert i {
    padding-right: 5px;
}
.option {
    gap: 1rem;
    padding: 1rem 0;
    align-items: center;
}
.option .number,
.option .address {
    display: flex;
    align-items: center;
    margin-top: 1rem;
    font-size: 18px;
    gap: 1rem;
}
.buttons {
    gap: 1rem;
}

/* TEASER */
.teaser {
    position: relative;
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
    padding: 7.5rem 3.5rem;
    margin: 5rem 0;
    background: url('../img/rohrimpuls-fussbodenheizung_einfraesen.webp');
    background-size: cover;
}
#teasertwo {
    background: url('../img/rohrimpuls-fussbodenheizung-reinigen.webp');
    background-size: cover;
}
.teaser::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.teaser > div {
    z-index: 1;
}
.teaser div:nth-of-type(1) {
    grid-column: 1;
}
.teaser div:nth-of-type(2) {
    grid-column: 2;
}
.teaser div:nth-of-type(3) {
    grid-column: 3;
}
.teaser i{
    font-size: 2rem;
    height: 5rem;
    width: 5rem;
    border-radius: 5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}
.teaser h3 {
    margin: 0 0 1rem;
}
.teaser p {
    margin: 0;
}
li i {
    font-size: 5px;
}
a i {
    font-size: 2rem;
}
#linkblock {
    min-width: 30%;
    flex-direction: column;
    gap: 0;
}
#linkblock li::before {
    content: "•";
}
#linkblock #more::before {
    content: none;
}
#selection {
    display: flex;
    align-items: center;
    width: fit-content;
    cursor: pointer;
    gap: 1rem;
    padding: 0;
    border: 0;
    border-radius: 0;
}
#selection span {
    display: flex;
    align-items: center;
    cursor: pointer;
    height: 2rem;
}
#selection label {
    cursor: pointer;
}
#more {
    visibility: collapse;
    opacity: 0;
}

/* SCROLLBAR */
::-webkit-scrollbar {
    width: .75rem;
}
::-webkit-scrollbar-thumb {
    border-radius: .375rem;
}

/**** SECTION 3: FOOTER ****/

/* TOPFOOTER */
#topfooter {
    padding: 3rem 1rem;
    background-image: linear-gradient(#00324200,#003242e6),url(../img/footer-background.webp);
    background-position: top;
    background-size: cover;
    background-attachment: fixed;
}
#topfooter .grid {
    grid-template-columns: 9fr 4fr 6fr 4fr;
    gap: 2rem;
}
#topfooter .box:first-of-type {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}
#topfooter nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}
#topfooter nav li {
    height: fit-content;
}
#topfooter nav a {
    padding: 0;
}
#topfooter img {
    width: 10rem;
    margin: 1rem 0;
}
#topfooter h3 {
    position: relative;
    padding: 0 0 .75rem;
    margin: 0 0 1.25rem;
    line-height: 1;
    font-weight: 400;
    font-size: 1.125rem;
    text-transform: uppercase;
}
#topfooter h3::after {
    content: '';
    display: block;
    position: absolute;
    bottom: 0;
    width: 2.5rem;
    height: .25rem;
}
#topfooter i {
    margin: 0 .25rem 0 0;
    font-size: 1rem;
}
#topfooter p {
    margin: 0 0 .5rem;
    font-weight: 500;
}
#topfooter a {
    transition: .2s ease-in-out;
    font-weight: 500;
}

/* BOTTOMFOOTER */
#bottomfooter {
    padding: 1.25rem 1rem; 
}
#bottomfooter .inner {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}
#bottomfooter a {
    margin: 0 .5rem 0 0;
    font-size: 1rem;
}
#bottomfooter p {
    margin: 0;
    font-size: 1rem;
}
#bottomfooter strong {
    font-weight: 700;
}
#bottomfooter .copyright {
    font-size: .875rem;
    font-weight: 500;
}

/* COOKIE POPUP */
#popup {
    position: fixed;
    margin: 2rem;
    bottom: 0;
    right: 0;
    z-index: 4;
    padding: 1rem 2rem;
    max-width: 25rem;
    border-radius: 2rem;
}
#popup h3 {
    display: flex;
    align-items: center;
    gap: 10px;
}
.select {
    gap: 1rem;
    justify-content: left;
    margin-top: 2rem;
}
.select .button {
    width: 100%;
}