/* prefixed by https://autoprefixer.github.io (PostCSS: v7.0.26, autoprefixer: v9.7.3) */

:root {
    --stagger-delay: 100ms;
}

@font-face {
    font-family: 'Baloo2Medium';
    src: url('../fonts/Baloo_2/Baloo2-Medium.ttf') format('truetype');
}

@font-face {
    font-family: 'Baloo2Bold';
    src: url('../fonts/Baloo_2/Baloo2-Bold.ttf') format('truetype');
}

@font-face {
    font-family: 'Baloo2SemiBold';
    src: url('../fonts/Baloo_2/Baloo2-SemiBold.ttf') format('truetype');
}

@font-face {
    font-family: 'Baloo2ExtraBold';
    src: url('../fonts/Baloo_2/Baloo2-ExtraBold.ttf') format('truetype');
}

@font-face {
    font-family: 'Baloo2Regular';
    src: url('../fonts/Baloo_2/Baloo2-Regular.ttf') format('truetype');
}

html {
    scroll-behavior: smooth;
}


body {
    padding: 0;
    margin: 0;
    background-color: rgb(243, 243, 243);
    font-family: 'Baloo2Regular';
    padding-top: 40px;
}

#viewport {
    position: absolute;
    top: -100vh;
    width: 100vw;
    height: 100vh;
}

nav ul li {
    font-size: 1.3em;
}

nav ul li a:hover {
    cursor: pointer;
}

nav ul .nav-item button {
    font-size: 1.3em;
    font-weight: 400;
    line-height: 1.5;
}

.section-wrapper {
    position: relative;
    padding-bottom: 50px;
    background-color: rgba(255, 255, 255, .5);
    min-height: 80vh;
    /*border-bottom: 1px solid rgba(0,0,0,1);*/
}

.section-wrapper:nth-child(odd) {
    background-color: rgb(230, 230, 230);
}

.section-wrapper:nth-child(even) {
    background-color: rgb(243, 243, 243);
}

#home {
    background-color: rgb(243, 243, 243);
    overflow: hidden;
    min-height: 90vh;
}

h1 {
    font-family: Baloo2SemiBold;
}

h2 {
    font-family: 'Baloo2Regular';
}

/*
.section-wrapper::after {
    position: absolute;
    bottom: 0vh;
    content: "";
    width: 100%;
    height: 10vh;
    background-color: red;
    box-shadow: 0 4px 5px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    z-index: -1;
}
*/

@-webkit-keyframes animatedBackground {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 0 100%;
    }
}

@keyframes animatedBackground {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 0 100%;
    }
}

.head-img {
    position: absolute;
    background-position: center;
    /* Center the image */
    background-repeat: no-repeat;
    /* Do not repeat the image */
    background-size: cover;
    /* Resize the background image to cover the entire container */
    height: 100%;
    width: 100%;
    background-image: url("./../images/header.jpg");
    -webkit-clip-path: polygon(50% 0%, 100% 0, 100% 88%, 50% 100%, 0 88%, 0% 0%);
    clip-path: polygon(50% 0%, 100% 0, 100% 88%, 50% 100%, 0 88%, 0% 0%);
    opacity: .7;

    background-position: 0px 0px;
    background-repeat: repeat-x;
    -webkit-animation-duration: 30s;
    animation-duration: 30s;
    -webkit-animation: animatedBackground 40s linear;
    animation: animatedBackground 40s linear;
    -webkit-animation-iteration-count: infinite;
    animation-iteration-count: infinite;
    -webkit-animation-direction: alternate;
    animation-direction: alternate;
}

#home:focus .head-img {
    -webkit-transform: scale(1.2);
    -ms-transform: scale(1.2);
    transform: scale(1.2);
}

.head-img::after {
    position: absolute;
    content: " ";
    left: 0;
    bottom: 0;
    background-color: rgb(92, 184, 49);
    height: 15%;
    width: 100%;
    -webkit-clip-path: polygon(49.93% 75.89%, 100% 0px, 100% 85%, 50% 100%, 0px 85%, 0% 0%);
    clip-path: polygon(49.93% 75.89%, 100% 0px, 100% 85%, 50% 100%, 0px 85%, 0% 0%);
}

.head:last-child {
    content: "";
    position: absolute;
    height: 100%;
    width: 100%;
}

.head div {
    text-align: center;
    margin: 0;
    width: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    color: black;
}

#gotoabout {
    position: absolute;
    bottom: 10%;
    left: 50%;
    -webkit-transform: translate(-50%, 0%);
    -ms-transform: translate(-50%, 0%);
    transform: translate(-50%, 0%);
}

#gotoabout i {
    font-size: 3rem;
    color: white;
}

@-webkit-keyframes fromleft {
    from {
        -webkit-transform: scale(.9, .9);
        transform: scale(.9, .9);
    }

    to {
        -webkit-transform: scale(1, 1);
        transform: scale(1, 1);
    }
}

@keyframes fromleft {
    from {
        -webkit-transform: scale(.9, .9);
        transform: scale(.9, .9);
    }

    to {
        -webkit-transform: scale(1, 1);
        transform: scale(1, 1);
    }
}

.head>div>h1 {
    width: 100%;
    -webkit-animation-duration: 20s;
    animation-duration: 20s;
    -webkit-animation-name: fromleft;
    animation-name: fromleft;
    -webkit-animation-iteration-count: infinite;
    animation-iteration-count: infinite;
    -webkit-animation-direction: alternate;
    animation-direction: alternate;
}

@-webkit-keyframes cardEntrance {
    from {
        opacity: 0;
        -webkit-transition: scale(0.3);
        -o-transition: scale(0.3);
        transition: scale(0.3);
        -webkit-filter: hue-rotate(180deg);
        filter: hue-rotate(180deg);
    }

    to {
        opacity: 1;
        -webkit-transform: scale(1);
        transform: scale(1);
        -webkit-filter: hue-rotate(0deg);
        filter: hue-rotate(0deg);
    }
}

@keyframes cardEntrance {
    from {
        opacity: 0;
        -webkit-transition: scale(0.3);
        -o-transition: scale(0.3);
        transition: scale(0.3);
        -webkit-filter: hue-rotate(180deg);
        filter: hue-rotate(180deg);
    }

    to {
        opacity: 1;
        -webkit-transform: scale(1);
        transform: scale(1);
        -webkit-filter: hue-rotate(0deg);
        filter: hue-rotate(0deg);
    }
}

.entranceAnim {
    -webkit-animation: cardEntrance 1000ms ease-out;
    animation: cardEntrance 1000ms ease-out;
    -webkit-animation-fill-mode: backwards;
    animation-fill-mode: backwards;
}

#about .entranceAnim:nth-child(1) {
    -webkit-animation-delay: calc(1 * var(--stagger-delay));
    animation-delay: calc(1 * var(--stagger-delay));
}

#about .entranceAnim:nth-child(2) {
    -webkit-animation-delay: calc(2 * var(--stagger-delay));
    animation-delay: calc(2 * var(--stagger-delay));
}

#about .entranceAnim:nth-child(3) {
    -webkit-animation-delay: calc(3 * var(--stagger-delay));
    animation-delay: calc(3 * var(--stagger-delay));
}

#about .entranceAnim:nth-child(4) {
    -webkit-animation-delay: calc(4 * var(--stagger-delay));
    animation-delay: calc(4 * var(--stagger-delay));
}

.head>div>h2 {
    width: 100%;
    -webkit-animation-duration: 20s;
    animation-duration: 20s;
    -webkit-animation-name: fromright;
    animation-name: fromright;
    -webkit-animation-iteration-count: infinite;
    animation-iteration-count: infinite;
    -webkit-animation-direction: alternate;
    animation-direction: alternate;
}

.section-wrapper>.heading {
    position: relative;
    width: 100%;
    padding-top: 45px;
}

.section-wrapper>.heading>h1 {
    font-family: Baloo2SemiBold;
    text-align: center;
    width: 100%;
    padding-top: 3vh;
}

.section-wrapper>.heading:after {
    margin: 0;
    width: 5%;
    height: 5%;
    position: absolute;
    bottom: -10%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    content: "";
    background-color: rgb(92, 184, 49);
    -webkit-transition: all 1s ease-out;
    -o-transition: all 1s ease-out;
    transition: all 1s ease-out;
}

.section-wrapper>.heading:hover:after {
    opacity: 1;
    margin: 0;
    width: 10%;
    height: 5%;
    -webkit-transition: all 1s ease-in;
    -o-transition: all 1s ease-in;
    transition: all 1s ease-in;
    position: absolute;
    bottom: -10%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    content: "";
    background-color: rgb(92, 184, 49);
}

.section {
    padding-top: 10px;
}

.section .container .row>div {
    padding: 10px;
}

.mw-card {
    border: 1px solid #ccc;
    border-radius: 10px;
    -webkit-box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    padding: 10px 20px;
    width: 100%;
}

.mw-card>h4 {
    border-bottom: 1px solid white;
}

#myList {
    display: contents;
    position: relative;
    text-decoration: none;
    list-style-type: none;
}

.clear {
    clear: both;
}

#myInput {
    width: 60%;
    margin: 0 auto;
}

#myList>li {
    position: relative;
    display: block;
    float: left;
}

.mw-li-item {
    color: white;
    padding: 5px 5px;
    margin: 5px;
    background-color: rgb(197, 197, 197);
    font-size: 1.3rem;
}

#myList>.mw-li-item[name="info"] {
    display: none;
    font-size: 1.5em;
    background-color: rgb(92, 184, 49);
    text-align: center;
    padding: 10px;
    left: 47%;
    -webkit-transform: translate(-50%, 0);
    -ms-transform: translate(-50%, 0);
    transform: translate(-50%, 0);
}

footer {
    padding: 10px;
    background-color: rgba(92, 184, 49, 0.438);
}

.footer-ul {
    text-decoration: none;
    text-align: left;
    padding: 0;
}

.footer-ul>li {
    text-decoration: none;
    list-style-type: none;
}

footer>.container>.row:nth-child(2) {
    text-align: center;
    text-decoration: none;
    color: grey;
}

footer>.container>.row:nth-child(2) a {
    text-align: center;
    text-decoration: none;
    color: inherit;
}

footer>.container>.row:first-of-type>div {
    padding: 12px;
}

footer>.container>.row:first-of-type>div>.row>div:nth-child(2) {
    padding-top: 10px;
}

footer>.container>.row:nth-child(1)>div:nth-child(1) img {
    width: 70%;
}

footer .footer-header h3 {
    position: relative;
}

footer .footer-header h3::after {
    position: absolute;
    content: "";
    bottom: 0;
    left: 0;
    width: 50px;
    border-bottom: 2px solid green;
}

footer a {
    text-decoration: none;
    color: inherit;
}

footer .modal_btn {
    cursor: pointer;
}

.mw-big-card>.mw-big-card-header {
    top: 20%;
    -webkit-hyphens: manual;
    -ms-hyphens: manual;
    hyphens: manual;
    font-size: 1.3rem;
    text-align: center;
    padding: 10px;
    width: 100%;
    background-color: rgba(56, 107, 33, 0.5);
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.mw-card-flip:nth-of-type(odd)>.mw-big-card-header {
    float: right;
    /*
    background-image: linear-gradient(to right, rgba(150, 194, 129, .5), rgb(92, 184, 49, .5));
    */
    background-color: rgba(95, 190, 51, 0.5);
}

.mw-big-card:hover {
    -webkit-box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
}

.mw-big-card>.mw-big-card-body {
    position: relative;
    float: right;
    top: 0;
    width: 100%;
    padding: 30px 20px;
}

.mw-big-card {
    position: relative;
    display: table;
    border-radius: 10px;
    -webkit-box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    background-color: linear-gradient(to right, rgba(201, 209, 197, .5), rgba(150, 194, 129, .5));
    -webkit-transition: 0.3s;
    -o-transition: 0.3s;
    transition: 0.3s;
    height: 100%;
    width: 80%;
    color: black;
    margin: 0 auto;
}

.card {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    background: #353535;
    font-size: 1.5rem;
    line-height: 3rem;
    color: #fff;
    -webkit-box-shadow: rgba(3, 8, 20, 0.1) 0px 0.15rem 0.5rem, rgba(2, 8, 20, 0.1) 0px 0.075rem 0.175rem;
    box-shadow: rgba(3, 8, 20, 0.1) 0px 0.15rem 0.5rem, rgba(2, 8, 20, 0.1) 0px 0.075rem 0.175rem;
    height: 100%;
    width: 100%;
    border-radius: 4px;
    -webkit-transition: all 500ms;
    -o-transition: all 500ms;
    transition: all 500ms;
    overflow: hidden;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.card>div {
    font-size: 1rem;
    color: rgb(92, 184, 49);
}

.card-tall img {
    height: 100%;
}

.card-wide img {
    width: 100%;
}

.card:hover {
    -webkit-box-shadow: rgba(2, 8, 20, 0.1) 0px 0.35em 1.175em, rgba(2, 8, 20, 0.08) 0px 0.175em 0.5em;
    box-shadow: rgba(2, 8, 20, 0.1) 0px 0.35em 1.175em, rgba(2, 8, 20, 0.08) 0px 0.175em 0.5em;
    -webkit-transform: translateY(-3px) scale(1.1);
    -ms-transform: translateY(-3px) scale(1.1);
    transform: translateY(-3px) scale(1.1);
}

@media screen and (min-width:990px) {
    .card-wide {
        -ms-grid-column-span: 2;
        grid-column: span 2 / auto;
    }

    .card-tall {
        -ms-grid-row-span: 2;
        grid-row: span 2 / auto;
    }
}


@media screen and (max-width:990px) {
    .card-wide {
        -ms-grid-column-span: 2;
        grid-column: span 2 / auto;
    }

    .card-tall {
        grid-row: auto / auto;
    }
}

@media screen and (max-width:768px) {
    .card-wide {
        -ms-grid-column-span: 2;
        grid-column: span 2 / auto;
    }

    .card-tall {
        -ms-grid-column-span: 2;
        grid-column: span 2 / auto;
    }
}


.contact-grid {
    padding-top: 50px;
    font-size: 1.2rem;
    text-align: center;
    display: -ms-grid;
    display: grid;
    gap: 1rem;

    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    grid-auto-rows: 150px;
}

#kontakt .anim:nth-child(1) {
    -webkit-animation-delay: calc(1 * var(--stagger-delay));
    animation-delay: calc(1 * var(--stagger-delay));
}

#kontakt .anim:nth-child(2) {
    -webkit-animation-delay: calc(2 * var(--stagger-delay));
    animation-delay: calc(2 * var(--stagger-delay));
}

#kontakt .anim:nth-child(3) {
    -webkit-animation-delay: calc(3 * var(--stagger-delay));
    animation-delay: calc(3 * var(--stagger-delay));
}

#kontakt .anim:nth-child(4) {
    -webkit-animation-delay: calc(4 * var(--stagger-delay));
    animation-delay: calc(4 * var(--stagger-delay));
}

.galerie-grid .card {
    background-color: rgba(255, 255, 255, 0.281);
}

@media screen and (min-width:768px) {
    #galerie>.section .container:first-child {
        display: none;
    }

    .galerie-grid {
        padding-top: 50px;
        font-size: 1.2rem;
        text-align: center;
        display: -ms-grid;
        display: grid;
        gap: 1rem;

        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        grid-auto-rows: 300px;
    }
}

#imgSlider {
    margin-top: 5vh;
    margin-bottom: 5vh;
}

#galerie .carousel-item img {
    min-height: 70vh;
    width: 100%;
}

@media screen and (max-width:768px) {
    #galerie>.section .container:last-child {
        display: none;
    }

    #galerie>.section .container:first-child {
        display: block;
    }
}

.galerie-grid .card {
    background-color: rgba(255, 255, 255, 0.281);
}

/*
.filter {
    position: relative;
    -webkit-filter: contrast(140%) sepia(50%);
    filter: contrast(140%) sepia(50%);
  }

.filter::before {
    content: "";
    display: block;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    position: absolute;
    pointer-events: none;
    mix-blend-mode: lighten;
    background: rgba(161, 44, 199, 0.31);
  }
  */
.filter {
    position: relative;
    -webkit-filter: contrast(75%) brightness(115%) saturate(85%);
    filter: contrast(75%) brightness(115%) saturate(85%);
}

.filter::before {
    content: "";
    display: block;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    position: absolute;
    pointer-events: none;
    mix-blend-mode: soft-light;
    background: rgba(192, 80, 55, 0.2);
}


@-webkit-keyframes scaleImg {
    0% {
        -webkit-transform: scale(1);
        transform: scale(1);
    }

    100% {
        -webkit-transform: scale(1.2);
        transform: scale(1.2);
    }
}


@keyframes scaleImg {
    0% {
        -webkit-transform: scale(1);
        transform: scale(1);
    }

    100% {
        -webkit-transform: scale(1.2);
        transform: scale(1.2);
    }
}

.galerie-grid .card img {
    -webkit-animation-name: scaleImg;
    animation-name: scaleImg;
    -webkit-animation-duration: 20s;
    animation-duration: 20s;
    -webkit-animation-iteration-count: infinite;
    animation-iteration-count: infinite;
    -webkit-animation-timing-function: ease-in-out;
    animation-timing-function: ease-in-out;
    -webkit-animation-direction: alternate;
    animation-direction: alternate;
}

@-webkit-keyframes moveX {
    0% {
        -webkit-transform: translateX(0%);
        transform: translateX(0%);
    }

    100% {
        -webkit-transform: translateX(8%);
        transform: translateX(8%);
    }
}

@keyframes moveX {
    0% {
        -webkit-transform: translateX(0%);
        transform: translateX(0%);
    }

    100% {
        -webkit-transform: translateX(8%);
        transform: translateX(8%);
    }
}

.galerie-grid .card-tall img {
    height: 100%;
    -webkit-animation-name: moveX;
    animation-name: moveX;
    -webkit-animation-duration: 20s;
    animation-duration: 20s;
    -webkit-animation-iteration-count: infinite;
    animation-iteration-count: infinite;
    -webkit-animation-timing-function: ease-in-out;
    animation-timing-function: ease-in-out;
    -webkit-animation-direction: alternate;
    animation-direction: alternate;
}

@-webkit-keyframes moveY {
    0% {
        -webkit-transform: translateY(0%);
        transform: translateY(0%);
    }

    100% {
        -webkit-transform: translateY(8%);
        transform: translateY(8%);
    }
}

@keyframes moveY {
    0% {
        -webkit-transform: translateY(0%);
        transform: translateY(0%);
    }

    100% {
        -webkit-transform: translateY(8%);
        transform: translateY(8%);
    }
}

.galerie-grid .card-wide img {
    width: 100%;
    -webkit-animation-name: moveY;
    animation-name: moveY;
    -webkit-animation-duration: 20s;
    animation-duration: 20s;
    -webkit-animation-iteration-count: infinite;
    animation-iteration-count: infinite;
    -webkit-animation-timing-function: ease-in-out;
    animation-timing-function: ease-in-out;
    -webkit-animation-direction: alternate;
    animation-direction: alternate;
}

.leistungen-grid {
    text-align: center;
    display: -ms-grid;
    display: grid;
    gap: 1rem;

    -ms-grid-columns: 1fr 1rem 1fr 1rem 1fr;

    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 200px;
}

.leistungen-grid {
    grid-column: last-col / span 1;
    grid-row: 1 / last-line;
    -ms-grid-row: span 9000;
    grid-row-start: span 9000;
}

.leistungen-grid .card-wide {
    grid-row: auto / span 3;
}


#leistungen .card {
    line-height: 1.5rem;
    font-size: 1rem;
}

.leistungen-grid {
    margin-top: 3rem;
}

.leistungen-grid:nth-of-type(odd)>.card {
    background-color: rgba(95, 190, 51, 0.5);
}

.leistungen-grid:nth-of-type(even)>.card {
    background-color: rgba(56, 109, 32, 0.5);
}

#leistungen .leistungen-grid>.card-tall {
    font-size: 3rem;
    line-height: 3rem;
}

#leistungen .leistungen-grid>.card-wide {
    font-size: 1.3rem;
    line-height: 1.3rem;
    padding: 0 20px;
}


#scrollToTop {
    position: fixed;
    bottom: 8%;
    right: 2rem;
    z-index: 1000;
    font-size: 3rem;
    color: gray;
    -webkit-transition: all 500ms;
    -o-transition: all 500ms;
    transition: all 500ms;
}

#scrollToTop:hover {
    color: black;
    cursor: pointer;
}

.scrollHide {
    right: -3rem !important;
}


/* width */
::-webkit-scrollbar {
    width: 20px;
}

/* Track */
::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 5px grey;
    box-shadow: inset 0 0 5px grey;
    border-radius: 10px;
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: rgb(92, 184, 49);
    border-radius: 10px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: rgb(72, 146, 37);
}


#kontakt .tel a {
    color: white;
    text-decoration: none;
}



/* Kontaktformular */

#kontaktformular {
    width: 100%; 
}

#kontaktformular input[type=text],
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    margin-top: 6px;
    margin-bottom: 16px;
    resize: vertical;
}

#kontaktformular input[type=submit] {
    background-color: #4CAF50;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#kontaktformular input[type=submit]:hover {
    background-color: #45a049;
}

#inputBtn {
    display: none;
}

input:valid:focus {
    outline: 0;
    border: none;
    box-shadow: 0 0 2px 2px rgba(0, 200, 0, 0.3);
  }

#contactForm input:valid {
    border: 2px solid rgb(52, 139, 2);
}

#contactForm input:invalid {
    border: 2px solid rgb(226, 99, 14);
}

#contactForm textarea:valid {
    border: 2px solid rgb(52, 139, 2);
}

#contactForm textarea:invalid {
    border: 2px solid rgb(226, 99, 14);
}

#kontaktformular .link-blue {
    color: blue;
    cursor: pointer;
}

#emailSendSuccess {
    display: none;
}

#emailSendFailed {
    display: none;
}