@charset "utf-8";
/*media elements*/
@import url("form.css");

:root {
    --color-main: #3faa68;
    --color-main-dark: #224e40;
    --color-main-mid: #b1d4b4;
    --color-main-light: #cde4ce;
    --color-main-lighter: #e7f1e7;
    --color-darkgrey: #333;
    --color-white: #fff;
    --color-black: #000;

    --font-family-text: Source Sans Pro, system-ui, -apple-system, Segoe UI, roboto, ubuntu, cantarell, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
    --font-family-display: 'Playfair Display', Source Serif Pro, Apple Garamond, Baskerville, Times New Roman, Droid Serif, times, serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;

    --round-corner: 15px;
    --round-corner-button: 50px;
    --round-corner-small: 5px;
    --width-container-xs: 600;
    --width-container-lg: 1280px;
    --width-container-out-lg: 1600px;
    --width-container-head-lg: 2100px;

    --font-size-xxxs: 0.75rem;
    --font-size-xxs: 0.85rem;
    --font-size-xs: 1rem;
    --font-size-s: 1.25rem;
    --font-size-m: 1.5rem;
    --font-size-l: 1.75rem;
    --font-size-xl: 2rem;
    --font-size-xxl: 2.5rem;
}



/*basics*/
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    font-family: var(--font-family-text);
    color: var(--color-darkgrey);
    hyphens: auto;
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr auto;
    position: relative;
    padding-top: 80px;
}

main p {
    line-height: 26px;
}

p {
    margin-top: 0;
    margin-bottom: 1.5rem;
}

* p:last-child {
    margin-bottom: 0;
}

a {
    color: var(--color-main);
    text-decoration: none;
}

:is(h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6) {
    color: var(--color-main-dark);
    font-family: var(--font-family-display);
    hyphens: auto;
    font-weight: 600;
    letter-spacing: 0.05rem;
    margin: 0 0 0.8rem;
}

:is(h3, h4, h5, h6, .h3, .h4, .h5, .h6, .subheader) {
    font-family: var(--font-family-text);
}

h1,
.h1 {
    font-size: var(--font-size-xxl);
}

h2,
.h2 {
    font-size: var(--font-size-l);
}

h3,
.h3 {
    font-size: var(--font-size-m);
}

h4,
.h4,
.subheader {
    font-size: var(--font-size-s);
}

h5,
.h5 {
    font-size: var(--font-size-xs);
}

.subheader {
    display: block;
}

main ol {
    margin: 1rem 0;
    padding: 0;
    counter-reset: li;
    list-style: none;

    ol {
        margin: 0 0 0 2rem;
    }

    li {
        margin: 0;
        position: relative;
        padding-left: 3rem;
        margin: 1.5rem 0;

        &:before {
            content: counter(li);
            counter-increment: li;
            position: absolute;
            left: 0;
            top: 50%;
            margin-top: -1.3em;
            background: var(--color-main-mid);
            color: var(--color-main-dark);
            height: 2rem;
            width: 2rem;
            line-height: 2rem;
            text-align: center;
            font-weight: bold;
            border-radius: 2rem;
        }
    }
}
.blog-overview{
    margin: 2.5rem 0 1rem;
    .item{
        background-color: var(--color-white);
        border-radius: var(--round-corner-small);
        border: 1px solid var(--color-main-light);
        padding: 1rem;
        margin: 1rem 0;
    }
}
.link-overview{
    column-count: 2;
    column-gap: 15px;
    margin: 2rem 0;
    padding: 0;
    list-style: none;
    a{
        padding: 0.25rem 0 0.25rem 20px;
        display: block;
        position: relative;
        &:before{
            content: '';
            position: absolute;
            border-right:2px solid black;
            border-bottom:2px solid black;
            width:8px;
            height:8px;
            top: calc(50% - 4px);
            left: 0px;
            top: 50%;
            transform: translateY(-50%) rotate(-45deg);
        }
    }
}

.topline:before {
    height: 1px;
    width: 100%;
    background: var(--color-main-mid);
    content: "";
    display: block;
    margin: 2rem 0;
}

.center:is(h1, h2, h3, h4, h5, h6):after,
.banner .h1:after {
    width: 70px;
    height: 8px;
    display: block;
    margin: 1rem auto;
    background: var(--color-main-mid);
    content: " ";
    border-radius: var(--round-corner-button);
}


.center {
    text-align: center;
}

.lead {
    font-size: var(--font-size-s);
    line-height: 1.75rem;
    padding-bottom: 1.5rem;
    letter-spacing: 0.02em;
}

header {
    border-bottom: var(--color-main-light) 1px solid;
    position: fixed;
    display: block;
    height: 80px;
    width: 100%;
    background-color: var(--color-white);
    z-index: 50;
    top:0;

    :after {
        clear: both;
        content: " ";
        display: block;
    }
}

header .container {
    position: relative;
    padding: 0;

    .logo {
        float: left;

        a {
            padding: 1rem;
            display: block;

            img {
                width: 100%;
                max-height: 50px;
                min-width: 170px;
                height: 100%;
            }
        }
    }
}

header nav {
    float: right;
    text-align: right;
    text-transform: uppercase;

    .hamburger {
        cursor: pointer;
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-15px);

        span {
            display: block;
            width: 25px;
            height: 3px;
            margin: 5px auto;
            transition: all 0.3s ease-in-out;
            background-color: var(--color-black);
        }
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    ul.active {
        left: 0;
    }

    ul {
        position: fixed;
        background: #fff;
        text-align: center;
        transition: all 0.3s ease-in-out;
        left: -100%;
        top: 80px;
        gap: 0;
        margin: 0;
        padding: 0;
        list-style: none;
        display: block;
        flex-direction: column;
        align-items: center;
        hyphens: none;

        li {
            border-color: var(--color-main-light);
            border-style: solid;
            border-width: 0 0 1px 0;
            display: block;

            a {
                padding: 10px;
                display: block;
                width: 100%;
                text-align: center;
                color: var(--color-darkgrey);
                font-size: 0.8rem;
            }

            span:is(.ico-calc, .ico-faq, .ico-contact) {
                display: block;
                width: 25px;
                height: 25px;
                margin: 0.8rem auto 1rem;
            }
        }

        li.tel {
            text-transform: none !important;
            text-align: left;
            font-size: 0.85rem;
            padding: 1rem 1rem 1rem 80px;
            align-content: center;
            position: relative;

            span {
                font-weight: bold;
                font-size: 1.2rem;
                color: var(--color-main-dark);
            }

            .ico-phone {
                background: url(/img/phone-ico.svg) center center no-repeat;
                position: absolute;
                width: 40px;
                height: 40px;
                margin-top: -20px;
                margin-left: -20px;
                top: 50%;
                left: 40px;
            }
        }
    }
}

.nav-bg {
    transition: background-color 0.3s ease-in, backdrop-filter 0.3s ease-in;
    width: 0%;
    height: 0%;
    position: fixed;
    z-index: 2;
    background: rgba(0, 0, 0, 0);

}

.nav-bg.active {
    display: block;
    background: rgba(0, 0, 0, 0.3);
    width: 100%;
    height: 100%;
    backdrop-filter: blur(3px);
}

.ico-calc {
    background: url(/img/calc-ico.svg) no-repeat center center;

}

.ico-faq {
    background: url(/img/faq-ico.svg) no-repeat center center;
}

.ico-contact {
    background: url(/img/contact-ico.svg) no-repeat center center;
}

.banner {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 1fr;
    grid-column-gap: 0px;
    grid-row-gap: 0px;

    .banner-txt,
    .banner-img {
        overflow: hidden;
    }

    .banner-txt {
        grid-area: 1 / 1 / 2 / 2;
        align-content: center;

        div {
            padding: 1rem;
        }
    }

    .banner-img {
        grid-area: 1 / 2 / 2 / 3;

        img {
            object-fit: cover;
            height: 100%;
            width: 100%;
            opacity: 0.8;
        }
    }
}

.banner .h1:after {
    margin: 1rem 0;
}

.container {
    max-width: var(--width-container-xs);
    padding-left: var(--outer-margin-lg);
    padding-right: var(--outer-margin-lg);
    padding: 1rem;
    margin: auto;
}

.col-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
    grid-column-gap: 1.5rem;
    grid-row-gap: 0px;

    .item {
        margin: 1rem 0;
    }
}

.col-3 {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    grid-template-rows: auto;
    grid-column-gap: 1.5rem;
    grid-row-gap: 0px;

    .item {
        margin: 1rem 0;
    }
}

.col-4 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
    grid-column-gap: 1.5rem;
    grid-row-gap: 0px;

    .item {
        margin: 1rem 0;
    }
}

.col-5 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
    grid-column-gap: 1.5rem;
    grid-row-gap: 0px;

    .item {
        margin: 1rem 0;
    }
}

.indent-vertical {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.bg-light {
    background: var(--color-main-light);
}

.bg-lighter {
    background: var(--color-main-lighter);
}
.bg-mid {
    background: var(--color-main-mid);
    color: var(--color-white);
}
.bg-main {
    background: var(--color-main);
    color: var(--color-white);
}

.bg-dark {
    background: var(--color-main-dark);
    color: var(--color-main-lighter);
}

.highlight {
    margin: 2rem 0;
    padding: 50px;
    border-radius: var(--round-corner);
}

.blog-teaser {
    margin-bottom: 2rem;

    .item {
        border-radius: var(--round-corner-small);
        background: var(--color-white);
        border: 1px solid var(--color-main-lighter);
        padding: 1rem;

        &:hover {
            box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
        }
    }
}


.icon-cards {
    text-align: center;

    img {
        max-width: 230px;
    }

    .header {
        font-weight: bold;
        color: var(--color-main-dark);
        font-size: 1.15rem;
    }
}

.blog {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(5, 1fr);
    grid-column-gap: 3rem;
    grid-row-gap: 0px;
}

.blog-nav {
    grid-area: 1 / 1 / 6 / 2;
    margin: 3rem 0;

    ul {
        list-style: none;
        margin: 0;
        padding: 0;

        li a {
            padding: 0.8rem 0;
            display: block;
            border-bottom: 1px solid var(--color-main-light);
        }

        li:first-child a {
            border-top: 1px solid var(--color-main-light);
        }
    }

    .highlight {
        margin: 2rem 0;
        padding: 1rem;
    }
}

.blog-article {
    grid-area: 1 / 2 / 6 / 5;
    margin: 3rem 0;
}

footer {
    background-color: var(--color-main-light);
    font-weight: 500;
    color: var(--color-main-dark);
    padding: 2rem 0;

    a {
        color: var(--color-main-dark);
    }

    .logo img {
        max-width: 180px;
        margin-bottom: 0.5rem;
    }

    ul {
        list-style: none;
        margin: 0;
        padding: 0;

        li {
            padding: 0.2rem 0;
        }
    }

}
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  border: 0;
  white-space: nowrap;
}

@media (min-width: 768px) {
    body {
        padding-top: 0;
    }

    .nav-bg.active {
        display: none;
    }

    .container {
        max-width: none;
    }

    header {
        position: relative;
        height: auto;

        .container {
            nav ul {
                display: flex;
                flex-direction: row;
                position: inherit;
                align-items: normal;

                li {
                    border-width: 0 0 0 1px;

                    a {
                        width: 100px;
                    }
                }
            }

            .logo a img {
                width: 100%;
                min-width: 250px;
                max-height: 70px;
            }
        }
    }

    .hamburger {
        display: none;
    }
}

@media (min-width: 1280px) {

    .container {
        max-width: var(--width-container-lg);
    }

    .col-4 {
        grid-template-columns: repeat(4, 1fr);
    }

    .col-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .col-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .col-5 {
        grid-template-columns: repeat(5, 1fr);

        .item {
            grid-area: 1 / 1 / 2 / 3;

            +.item {
                grid-area: 1 / 3 / 2 / 4;

                +.item {
                    grid-area: 1 / 4 / 2 / 5;

                    +.item {
                        grid-area: 1 / 5 / 2 / 6;
                    }
                }
            }
        }
    }

    .highlight {
        margin: 2rem -50px;
    }

    .indent {
        padding-left: 12rem;
        padding-right: 12rem
    }
    .link-overview{
        column-count: 4;
    }
    .banner-txt div {
        max-width: calc(var(--width-container-lg) / 2);
        float: right;
        width: 100%;

        .lead {
            font-size: var(--font-size-l);
        }
    }

    .banner-img img {
        min-height: 450px
    }
}
@media (max-width: 768px){
    footer p{
        font-size: var(--font-size-xxs);
    }
    .link-overview{
        column-count: 1;
    }
    .banner {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        .banner-txt {
            grid-area: 2;
            text-align: center;
            .h1::after {
                margin: 1rem auto;
            }
        }
        .banner-img{
            grid-area: 2;
            height: 450px;
            grid-row: 1;
        }
    }
    .blog {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        grid-template-rows: 1fr;
        .blog-article{
            grid-area: 2;
            grid-row: 1;
        }
        .blog-nav{
            grid-area: 2;
        }
    }

}