/* Element Style */

a {
    color: var(--second);
}

p a {
    color: var(--link);
    font-weight: 900;
}

h3 > a {
    font-size: inherit;
} 
.header .h_2.v-c,.header .h_2.v-c a {
    color: var(--headline);
}
body {
    height: 100%;
    width: 100%;
    overflow: hidden;
    max-height: 1080px;
    max-width: 1920px;
    margin: auto;

}
footer {
    height: 50px;
    background-color: rgba(256,256,256,0.8);
}
footer a {
    font-size: var(--fs-4);
}
footer .footer {
/*    text-align: center;*/
    padding-top: 16px;
    padding-left: 35px;
}
footer .footer a {
    padding: 10px;
}
h1 {
    margin-top: 20px;
}
h2 {
    color: var(--main);
}


header {
    height: 200px;
}
header .h_1 {
    grid-column: 1;
    padding-left: 40px;
}
header .h_2 {
    grid-column: 2;
    margin-right: 20px;
    justify-self: end;
    text-align: left;
    margin-top: 13px;
}
header .h_2 p {
    font-size: 25px;
    margin-top: 0;
}
header .v_1 {
    margin: 11px 0px 20px 0px;
}
header .v_1 form {
    float: left;
    margin-left: 79px;
    position: relative;
}
header .v_1 form button {
    position: absolute;
    background: none;
    border: none;
    left: -45px;
    top: 4px;
}
header .v_1 form input {
    line-height: 2;
    width: 182px;
}
header .v_2 .h_1, header .v_2 .h_2 {
    display: inline-block;
}
header a {
    font-size: 25px;
}
html {
    height: 100%;
    width: 100%;
    display: flex;
}
img {
    max-width: 100%;
}
nav {
    background: var(--main-1);
    grid-column: 1;
}
nav a {
    color: white;
    font-size: var(--fs-4);
}
.main-wrapper ul {
    list-style: none;
    font-size: var(--fs-6);
    padding-inline-start: 0px;
}
.main-wrapper ul li::before {
    content: "\2022";
    color: var(--red);
    font-weight: bold;
    display: inline-block;
    width: 1em;
}
/* Mixed Style */

.slideshow-container {
    box-sizing: border-box;
    text-align: center;
}
.slideshow-container p {
    margin: 10px 0px;
    text-align: center;
}

.slideshow-container .mySlides img {
    max-height: 300px;
    max-width: 100%;
}
.slideshow-container .row .column img {
    width: auto;
    max-height: 100%;
}

.container {
    position: relative;
}
.mySlides {
    text-align: center;
}

.cursor {
    cursor: pointer;
}

#referenceSlider.slideshow-container {
    position: relative;
    margin-top: 150px;
    height: 500px;
}
#referenceSlider .prev,
#referenceSlider .next {
    cursor: pointer;
    position: absolute;
    bottom: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: black;
    font-weight: bold;
    font-size: 20px;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
}


#referenceSlider .next {
    right: 0;
    border-radius: 3px 0 0 3px;
}
#referenceSlider .prev {
    left: 0;
}

.prev:hover,
.next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}


.numbertext {
    color: #f2f2f2;
    font-size: 12px;
    padding: 8px 12px;
    position: absolute;
    top: 0;
}


.caption-container {
    text-align: center;
    background-color: #222;
    padding: 2px 16px;
    color: white;
}
.row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-gap: 10px;
}
.row:after {
    content: "";
    display: table;
    clear: both;
}

.demo {
    opacity: 0.6;
}

.active,
.demo:hover {
    opacity: 1;
}


::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: none;
}

::-webkit-scrollbar-thumb {
    background: #888;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* ID Style */
.blog {
    margin-top: 30px;
}
.blog h2 {
    margin-top: 0px;
    margin-bottom: 5px;
    text-align: left;
}
.blog-post-preview {
    margin-top: 30px;
}
.blog-post-preview img {
    max-height: 340px;
    margin-top: 10px;
}
.blog-post-preview p {
    margin-bottom: 5px;
    text-align: left;
}
.blog-slider {
    position: relative;
    height: auto;
}
.blog-slider .prev, .blog-slider .next {
    position: absolute;
    top: 50%;
    color: black;
}
.blog-slider .prev {
    left: 10px;
}
.blog-slider .next {
    right: 10px;
}
.font-s-3 {
    font-size: var(--fs-3);
}
.left-wrapper {
    grid-column: 1;
    grid-row: 2 /span 2;
    position: relative;
    text-align: center;
    overflow-y: scroll;
}
.left-wrapper .main-btn {
    color: white;
    border: 3px solid white;
    display: inline-block;
    padding: 20px;
    font-size: 30px;
    position: relative;
    top: calc(100% - 100px);
}
.logo{
    width: 100%;
    position: relative;
    top: -40px;
    max-width: 450px;
}

.main-wrapper .left-wrapper {
    overflow-y: unset;
}
.left-wrapper .column {
    height: 120px;
    max-width: 180px;
}
.main-wrapper .left-wrapper .column {
    height: 90px;
}
.main-btn:hover {
    background: rgba(255,255,255,0.3);
}
.main-wrapper {
    background-color: var(--main-1-bg);
    height: calc(100% - 50px);
    grid-column: 2;
    grid-row: 1/span 3;
    display: grid;
    grid-template-rows: 230px calc(100% - 230px);
}
.main-wrapper main {
    height: 100%;
    overflow-y: scroll;
    padding: 0 30px 0 40px;
}
#scrollTopButton {
    display: none;
    position: absolute;
    right: 75px;
    bottom: 75px;
    background: gray;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    opacity: 0.8;
    text-align: center;
}
#scrollTopButton p {
    margin-top: 7px;
    font-size: 30px;;

}
#site-wrapper {
    background: lightgrey no-repeat;
    background-size: cover;
    background-position: left top;
    height: 100%;
    width: 100%;
    grid-template-columns: calc(96% - 600px) 600px 4%;
    grid-template-rows: 75px calc(100% - 125px) 50px;
    transition: background 0.5s linear;
}

.reference.grid {
    grid-template-columns: 1fr 1fr;
    grid-gap: 10px;
}
.reference .reference-child {
    cursor: pointer;
}
/* Screen Style */
/* @media only screen and (max-width: 1000 px) {}
*/

/* Navigation Desktop */

@media only screen and (min-width: 1301px) {
    .left-wrapper .column {
        height: 160px;
        max-width: 180px;
    }
    .child-items {
        display: none;
        position: absolute;
        z-index:1;
    }
    body.Home nav {
        display: none;
    }
    .menu {
        text-align: left;
        padding-left: 0px;
    }
    .menu li:hover > .child-items, .child-items:hover {
        display: block;
        margin-top: 18px;
    }
/*    .menu > li > a {
        padding-left: 20px;
    }*/
    .menu  a:hover{
        color: black;
    }

    .menu li .child-items ul {
        list-style: none;
        padding-left: 0px;
        width: fit-content;
        background: rgba(145, 145, 145, 0.60);;
    }
    .menu li .child-items ul li {
        padding: 5px 20px;
    }

    .menu li.active > a {
        color: var(--main-2);
        font-weight: bold;
    }

    .active + .child-items {
        display: block;
    }

    .main-wrapper .oval {
        display: flex;
    }
    nav {
        text-align: center;
    }
    nav ul.menu {
/*        display: inline-flex;*/
        list-style: none;
        margin: 0px;
        padding-top: 16px;
    }
    .child-items li.child-site:first-child a {
        padding-top: 0px;
    }

    .sidenav {
        width: 300px;
        padding-bottom: 20px;
        float: left;
    }

    .sidenav ul {
        margin: 0px 30px 0px 0px;
        padding-left: 50px;
        list-style: none;
    }

    .sidenav ul li {
        margin-bottom: 4px;
    }

    .sidenav ul li:not(:first-child):before {
        content: "";
        position: absolute;
        height: 1px;
        width: 100px;
        border-bottom: 2px solid var(--main);
    }

    .sidenav ul li p, .sidenav ul li a {
        line-height: 25px;
        padding-top: 10px;
        display: block;
        text-decoration: none;
        font-size: var(--fs-6);
    }

    .sidenav ul li.active {
        color: var(--main-2);
        font-weight: bold;
    }


}


/* mobile menü */

@media screen and (min-width: 1300px) {
    nav ul.menu {
        max-height: 20px;
    }
    nav .menu li{
        max-width: 150px;
    }
    nav a#nav-m,
    nav a.close {
        display: none;
    }

    nav > ul > li {
        height: 60px;
    }
/*    nav > ul > li.parent-menu {
        width: 130px;
    }*/

}


@media screen and (max-width: 1300px) {
    #site-wrapper {
        grid-template-rows: 50px calc(100% - 100px) 50px;
    }
    nav {
        margin: 0 auto;
        width: 100%;
        text-align: right;
        grid-column: 1 / span 2;
        background: grey;
    }
    .main-wrapper {
        grid-row: 2/span 2;
    }
    .menu li > .child-items {
        display: block;
    }
    nav > ul {
        width: 800px;
        float: right;
        margin: 0;
        height: 100vh;
        z-index: 1;
        overflow: scroll;
    }
    nav .parent-menu ul li:last-child {
        border-bottom: none;
    }
    nav .child-items ul {
        padding: 0px;
    }
    nav ul li {
        list-style: none;
        margin: 0;
        display: inline;
    }


    nav ul li a {
        position: relative;
        display: inline-block;
    }

    .header.wrapper {
        overflow: unset;
    }

    nav {
        position: relative;
    }

    /*Formatierung Mobiles Menue*/
    nav > ul {
        top: 3em;
        position: absolute;
        background: var(--second);
        width: 100%;
        left: -100%;
        list-style-type: none;
        margin: 0;
        padding: 0;

        -webkit-transition: all 0.6s ease;
        -moz-transition: all 0.6s ease;
        -o-transition: all 0.6s ease;
        transition: all 0.6s ease;
    }


    nav ul li {
        display: block;
        text-align: left;
        padding: 0em 0.5em;
        border-bottom: 1px solid var(--main);
    }


    nav ul li a {
        text-decoration: none;
        font-weight: bold;
        color: white;
        padding: 1em 0;
    }


    nav ul.menu li a:hover {
        border-bottom: 0;
    }


    /*Hamburger-Icon*/
    nav a#nav-m i,
    nav a.close i {
        width: auto;
        margin-right: 10px;
        font-size: 30px;
        margin-top: 8px;
    }


    nav > .close,
    nav a#nav-m:target {
        display: none;
    }


    nav a:target ~ ul,
    nav a:target ~ .close {
        display: inline-block;
    }


    nav a:target ~ .close {
        margin-left: 0px;
    }


    nav a:target ~ ul {
        left: 0;
    }
    #referenceSlider.slideshow-container {
        margin-top: 50px;
    }
    #scrollTopButton {
        display: block;
    }
    .slideshow-container {
        position: relative;
        width: 100%;
    }

}

@media screen and (max-width: 600px) {
    #site-wrapper {
        height: 100%;
        width: 100%;
        grid-template-columns: 100%;
        grid-template-rows: 50px calc(100% - 100px) 50px;
    }
    nav {
        margin: 0 auto;
        width: 100%;
        text-align: right;
        grid-column: 1;
        background: grey;
    }
    .main-wrapper {
        grid-column: 1 ;
        grid-row: 2/span 2;
    }
    header .v_1 {
        height: 45px;
        margin-top: 10px;
    }
    footer .footer a {
        padding: 5px;
    }
}
