* {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #a4bacb;
    color: #f2f2f2;
    position: absolute;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
}

#preloader{
    background: #a4bacb url(/images/loader.gif) no-repeat center center;
    height: 100vh;
    width: 100%;
    position: fixed;
    z-index: 100;
}

#header {
    width: 100%;
    height: 100vh;
    background-image: url(/images/background.jpg);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

#header2 {
    width: 100%;
    padding-bottom: 10vh;
    background-image: url(/images/painted_groß.png);
    background-size: cover;
    background-position: center;
    animation-name: slideshow;
    animation-duration: 20s;
    animation-iteration-count: infinite;
    background-attachment: fixed;
}
  
@keyframes slideshow {
    0%   {background-image: url(/images/painted_groß.png);}
    25%  {background-image: url(/images/altar_groß.png);}
    50%  {background-image: url(/images/poster_groß.png);}
    75%  {background-image: url(/images/bohrer_groß.png);}
    100% {background-image: url(/images/painted_groß.png);}
}

#header3 {
    width: 100%;
    height: 5%;
    background-size: cover;
    background-position: center;
}

/*-----container ist für die Breite, in dem die Inhalte gezeigt werden-----*/
.container {
    padding: 20px 10%;
}

.header-text {
    margin-top: 10%;
    font-size: 20px;
}

.header-text p {
    color: #e6e6e6;
}

#header .header-text h1 {
    font-size: 60px;
    margin-top: 2%;
    margin-bottom: 10%;
    font-weight: 600;
}

#header2 .header-text h1 {
    font-size: 60px;
    margin-top: 2%;
    margin-bottom: 10%;
    font-weight: 600;
}

#header3 .header-text h1 {
    font-size: 60px;
    margin-top: 2%;
    font-weight: 600;
}

.header-text h1 span {
    color:#6b708c;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

/*---Icons bei mobiler Ansicht der Navigation---*/
nav .fa-xmark{
    display: none;
}

nav .fa-bars{
    display: none;
}

.logo {
    margin-top: 3%;
    width: 80px;
}

nav ul li {
    display: inline-block;
    list-style: none;
    margin: 10px 20px;
}

nav ul li a {
    color: #f2f2f2;
    text-decoration: none;
    font-size: 20px;
    position: relative;
}

/*-----Hovern im Menü-----*/
nav ul li a::after { 
    content: '';
    width: 0;
    height: 3px;
    background: #6b708c; 
    position: absolute;
    left: 0;
    bottom: -6px;
    transition: 0.5s;
}

nav ul li a:hover::after {
    width: 100%;
}

/*-----about-----*/
#about {
    padding: 80px 0px 0px;
    color: #f2f2f2;
}

.row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.about-col-1 {
    flex-basis: 35%;
}

.about-col-1 img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 150px;
}

.about-col-2 {
    flex-basis: 60%;
    width: 100%;
}

/*----Über mich----*/
.subtitle {
    font-size: 40px;
    font-weight: 400;
    color: #f2f2f2;
    margin-bottom: 30px;
}

/*----Beschreibung----*/
.description {
    font-size: 16px;
    font-weight: 400;
    margin-top: 20px;
    margin-bottom: 30px;
    line-height: 180%;
}

/*----Fertigkeiten, Berufserfahrung, Ausbildung----*/
.tab-titles {
    display: flex;
    margin: 20px 0px 30px;
}

.tab-links {
    margin-right: 40px;
    font-size: 20px;
    font-weight: 400;
    cursor: pointer;
    position: relative;
}

.tab-links::after {
    content: '';
    width: 0px;
    height: 3px;
    background: #6b708c;
    position: absolute;
    left: 0px;
    bottom: -8px;
    transition: 0.5s;
}

.tab-links.active-link::after {
    width: 60%;
}

/*----Unterpunkte von Fähigkeiten etc.----*/
.tab-contents ul li {
    list-style: none;
    margin: 15px 100px 15px 0px;
}

.tab-contents ul li span {
    color: #f2f2f2;
    font-size: 16px;
}

.tab-contents {
    display: none;
    font-size: 16px;
    color: #dddddd;
}

.tab-contents.active-tab {
    display: flex;
}

/*------Portfolio-------*/
#portfolio {
    color: #f2f2f2;
}

.work-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 40px;
    margin-top: 50px;
}

.work {
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.work img {
    width: 100%;
    border-radius: 10px;
    display: block;
    transition: transform 0.5s;
}

.layer {
    width: 100%;
    height: 0%;
    background: linear-gradient(rgba(214, 214, 214, 0.6), #6b708c);
    border-radius: 10px;
    position: absolute;
    left: 0px;
    bottom: 0px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0px 40px;
    text-align: center;
    font-size: 16px;
    transition: height 0.5s;
}

.layer h3 {
    font-weight: 600;
    margin-bottom: 20px;
}

.layer a {
    margin-top: 20px;
    color: #6b708c;
    text-decoration: none;
    font-size: 18px;
    line-height: 60px;
    background: #f2f2f2;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
}

.work:hover img {
    transform: scale(1.1);
}

.work:hover .layer {
    height: 100%;
}

.btn {
    display: block;
    margin: 50px auto 100px;
    width: fit-content;
    background: #6b708c;
    font-size: 18px;
    padding: 15px 40px;
    border-radius: 6px;
    text-decoration: none;
    color: #f2f2f2;
    transition: font-size 0.5s;
}

.btn:hover {
    font-size: 20px;
}

/*-------------Kontakt-------------*/
.contact-left {
    flex-basis: 40%;
}

.contact-right {
    flex-basis: 60%;
    padding-top: 100px;
}

.contact-right p {
    margin-top: 30px;
    font-size: 20px;
    font-weight: 400;
}

.contact-right p i {
    color: #f2f2f2;
    margin-right: 15px;
    font-size: 40px;
}

.social-icons {
    margin-top: 20px;
    margin-bottom: 20px;
}

.social-icons a {
    text-decoration: none;
    font-size: 50px;
    margin-right: 20px;
    color: #6b708c;
    display: inline-block;
    transition: transform 0.5s;
}

.social-icons a:hover {
    color: #f2f2f2;
    transform: translateY(-4px);
}

.impressum {
    width: 100%;
    text-align: center;
    padding: 25px 0px;
    background: #262626;
    font-weight: 400;
    margin-top: 100px;
}

.contactnav li a{
    text-decoration: none;
    color: #f2f2f2;
    font-size: 20px;
}

.contactnav li{
    list-style: none;
    padding: 10px 0px 10px 0px;
}

/*---------alles für die Unterseite Portfolio (Header ganz oben Z.31)--------*/

#movies {
    margin-top: 5%;
    color: #f2f2f2;
}

.image2 {
    display: none;
}

#art {
    padding: 30px 0px 0px 0px;
    color: #f2f2f2;
}

.mySlides {
    display: none;
    border-radius: 10px;
    margin-bottom: 50px;
}

.mySlides img {
    border-radius: 10px;
}

.w3-content {
    max-width: 90%;
    margin-top: 30px;
}

.w3-white {
    color:#f2f2f2!important;
    background-color:#6b708c!important;
}

.w3-button {
    top: 58%;
}

.w3-button:hover {
    color:#f2f2f2!important;
    background-color:#353746!important;
}

.w3-display-right {
    border-radius: 10px 0px 0px 10px;
}

.w3-display-left {
    border-radius: 0px 10px 10px 00px;
}

.w3-display-topleft a {
    margin-left: 8px;
    text-decoration: none;
    font-size: 23px;
    transition: font-size 0.5s;
}

.w3-display-topleft a:hover {
    margin-left: 8px;
    text-decoration: none;
    font-size: 26px;
}

.w3-display-bottomright a {
    margin-left: 8px;
    text-decoration: none;
    font-size: 23px;
    transition: font-size 0.5s;
}

.w3-display-bottomright a:hover {
    margin-left: 8px;
    text-decoration: none;
    font-size: 26px;
}

.w3-display-topright a {
    margin-left: 8px;
    text-decoration: none;
    font-size: 23px;
    transition: font-size 0.5s;
}

.w3-display-topright a:hover {
    margin-left: 8px;
    text-decoration: none;
    font-size: 26px;
}

.w3-container.w3-display-topleft {
    border-radius: 10px 0px 10px 0px;
}

.w3-container.w3-display-bottomright {
    border-radius: 10px 0px 10px 0px; /*---aktuell nicht genutzt--*/
}

.w3-container.w3-display-topright {
    border-radius: 0px 10px 0px 10px; /*---aktuell nicht genutzt--*/
}


/*-----Fancybox------*/

.gallery_sec {
    width: 100%;
    padding: 0px;
  }

.row2 {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.row2 > div {
    margin: 10px;
}

.gallery_sec img {
    width: 100%;
    margin-bottom: 10px;
    height: 250px;
}

.gallery_sec a {
    position: relative;
    transition: 0.3s ease-in-out;
    -webkit-transition: 0.3s ease-in-out;
    -moz-transition: 0.3s ease-in-out;
    -ms-transition: 0.3s ease-in-out;
    -o-transition: 0.3s ease-in-out;
}
  
  
.gallery_sec a::before {
    position: absolute;
    content: "";
    width: 30px;
    height: 30px;
    background: none;
    background-size: contain;
    background-repeat: no-repeat;
    top:45%;
    left:50%;
    transform:translate(-50%, -50%);
}

.gallery_sec img {
    transition: 0.3s ease-in-out;
    -webkit-transition: 0.3s ease-in-out;
    -moz-transition: 0.3s ease-in-out;
    -ms-transition: 0.3s ease-in-out;
    -o-transition: 0.3s ease-in-out;
}
  
.gallery_sec a:hover img {
    position: relative;
    width: 100%; 
}
  
.gallery_sec a:hover img {
    opacity: 0.5;
}
  
.gallery_sec a:hover::before {
    position: absolute;
    content: "";
    width: 50px;
    height: 50px;
    background: url(/images/resize_hell.png);
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 99;
}

/*-----Button nach oben beim scrollen------*/
#myBtn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    font-size: 20px;
    border: none;
    outline: none;
    background-color: #f2f2f2;
    color: #6b708c;
    cursor: pointer;
    padding: 15px 17px;
    border-radius: 15px;
}
  
#myBtn:hover {
    background-color: #6b708c;
    color: #f2f2f2;
}

/*--------Unterseiten-----------*/

#subpage {
    color: #f2f2f2;
}

.subpage-col-1 {
    flex-basis: 55%;
}

.subpage-col-1 iframe {
    width: 100%;
    border-radius: 10px;
}

.subpage-col-1 img {
    width: 100%;
    border-radius: 10px;
}

.subpage-col-2 {
    flex-basis: 40%;
}

.page_subtitle {
    margin-top: 0%;
    font-size: 30px;
}

.page_subtitle p {
    color: #6b708c;
}

.model-col-1 {
    flex-basis: 55%;
}

.model-col-1 model-viewer{
    margin-left: 20%;
    height: 70vh;
}

/*---------------flipbook---------------*/

.flipbook-viewport{
	width:100%;
	height:100%;
}

.flipbook{
    margin-right: 0!important;
    margin-left: 12.5%!important;
}

.flipbook-viewport .flipbook{
	width:800px;
	height:400px;
}

.flipbook-viewport .page{
	width:400px;
	height:400px;
	background-color:white;
	background-repeat:no-repeat;
	background-size:100% 100%;
}

.flipbook .page{
	-webkit-box-shadow:0 0 20px rgba(0,0,0,0.2);
	-moz-box-shadow:0 0 20px rgba(0,0,0,0.2);
	-ms-box-shadow:0 0 20px rgba(0,0,0,0.2);
	-o-box-shadow:0 0 20px rgba(0,0,0,0.2);
	box-shadow:0 0 20px rgba(0,0,0,0.2);
}

.flipbook-viewport .page img{
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	margin: 0;
}

.flipbook-viewport .shadow{
	-webkit-box-shadow:0 0 20px #6b708c;
	-moz-box-shadow:0 0 20px #6b708c;
	-o-box-shadow:0 0 20px #6b708c;
	-ms-box-shadow:0 0 20px #6b708c;
	box-shadow:0 0 20px #6b708c;
}

.flipbook-viewport .double{
	width:800px;
	height:400px;
	background-size:100% 100%;
}

/*-----css für kleine Bildschirme (Smartphones)------*/
@media only screen and (max-width: 600px){
    #header{
        background-image: url(/images/background_phone.png);
        background-attachment: scroll;
    }
    #header .header-text{
        margin-top: 100%;
        font-size: 14px;
    }
    #header .header-text h1{
        font-size: 55px;
    }
    nav .fa-xmark, nav .fa-bars{
        display: block;
        font-size: 35px;
    }
    nav ul{
        background: #6b708c;
        position: fixed;
        top: 0;
        right: -200px;
        width: 200px;
        height: 100vh;
        padding-top: 50px;
        z-index: 2;
        transition: right 0.5s;
    }
    nav ul li{
        display: block;
        margin: 25px;
    }
    nav ul .fa-xmark{
        position: absolute;
        top: 25px;
        left: 25px;
        cursor: pointer;
    }
    nav ul .fa-bars{
        position: absolute;
        top: 25px;
        left: 25px;
        cursor: pointer;
    }
    .subtitle{
        font-size: 30px;
    }
    .description{
        font-size: 16px;
    }
    #about{
        padding: 40px 0px 0px;
    }
    .about-col-1, .about-col-2{
        flex-basis: 100%;
    }
    .about-col-1{
        margin-bottom: 30px;
    }
    .tab-links{
        font-size: 16px;
        margin-right: 8px;
    }
    .tab-contents ul li {
        list-style: none;
        margin: 15px 0px;
    }
    .tab-contents.active-tab {
        display: block;
    }
    .btn{
        margin: 50px auto 30px;
    }
    .contact-left, .contact-right{
        flex-basis: 100%;
    }
    #header2{
        height: 100vh;
        padding-bottom: 0;
        background-image: url(/images/painted_phone.png);
    }
    #header2 .header-text {
        margin-top: 100%;
    }
    #header2 .header-text h1 {
        font-size: 60px;
        margin-top: 0;
        margin-bottom: 0;
        font-weight: 600;
    }
    @keyframes slideshow {
        0%   {background-image: url(/images/painted_phone.png);}
        25%  {background-image: url(/images/altar_phone.png);}
        50%  {background-image: url(/images/poster_phone.png);}
        75%  {background-image: url(/images/bohrer_phone.png);}
        100% {background-image: url(/images/painted_phone.png);}
    }
    .w3-display-topleft {
        position: absolute;
        left: 0;
        top: 0;
        height: 20%;
        width: 100%;
    }
    .w3-display-topleft a {
        font-size: 16px;
    }
    .w3-container.w3-display-topleft {
        border-radius: 10px 10px 0px 0px;
    }
    .w3-large {
        font-size: 14px!important;
    }
    .w3-button {
        top: 65%;
        font-size: 13px;
        padding: 8px 10px;
    }
    .w3-content {
        max-width: 100%;
        margin-top: 30px;
    }
    #header3 {
        width: 100%;
        height: 5%;
    }
    #header3 .header-text h1 {
        font-size: 40px;
        margin-top: 0;
    }
    .about-col-1 img {
        margin-bottom: 30px;
    }
    #subpage{
        padding: 0;
    }
    .subpage-col-1, .subpage-col-2{
        flex-basis: 100%;
    }
    .subpage-col-1{
        margin-bottom: 30px;
    }
    .tab-titles {
        display: block;
        margin: 20px 0px 30px;
    }
    .tab-links {
        margin-right: 0;
        margin-bottom: 20px;
        width: 50%;
        font-size: 20px;
        color: #6b708c;
    }
    .tab-links::after {
        content: '';
        width: 0px;
        height: 3px;
        background: #f2f2f2;
        position: absolute;
        left: 0px;
        bottom: -8px;
        transition: 0.5s;
    }
    .image1{
        display: none;
    }
    .image2{
        display: block;
    }
    .model-col-1 model-viewer{
        margin-left: 20px;
        height: 60vh;
        justify-content: center;
    }
    .contactnav li a{
        text-decoration: none;
        color: #f2f2f2;
        font-size: 18px;
    }
    .contactnav li{
        list-style: none;
        padding: 10px 0px 10px 0px;
    }
    .social-icons a {
        text-decoration: none;
        font-size: 40px;
        margin-right: 20px;
        color: #6b708c;
        display: inline-block;
        transition: transform 0.5s;
    }
    .contact-right {
        padding-top: 30px;
    }
    .contact-right p {
        font-size: 18px;
    }
    .contact-right p i {
        font-size: 30px;
    }
    .flipbook-viewport{
        width:100%;
        height:100%;
    }
    .flipbook{
        margin-left: 0px;
        position: relative;
    }
    .flipbook-viewport .flipbook{
        width: 270px;
        height: 135px;
    }
    .flipbook-viewport .double{
        width: 270px;
        height: 135px;
    }
    .impressum {
        font-size: 14px;
        margin-top: 30px;
    }
}

/*-----css für mittlere Bildschirme (Tablets)------*/
@media only screen and (min-width: 600px) and (max-width: 1024px){
    #header{
        background-image: url(/images/background_phone.png);
        background-attachment: scroll;
    }
    #header .header-text{
        margin-top: 65%;
        font-size: 18px;
    }
    #header .header-text h1{
        font-size: 70px;
    }
    nav .fa-xmark, nav .fa-bars{
        display: block;
        font-size: 40px;
    }
    .logo{
        width: 90px;
        margin-top: 40px;
    }
    nav ul{
        background: #6b708c;
        position: fixed;
        top: 0;
        right: -200px;
        width: 200px;
        height: 100vh;
        padding-top: 50px;
        z-index: 2;
        transition: right 0.5s;
    }
    nav ul li{
        display: block;
        margin: 25px;
    }
    nav ul .fa-xmark{
        position: absolute;
        top: 25px;
        left: 25px;
        cursor: pointer;
    }
    nav ul .fa-bars{
        position: absolute;
        top: 25px;
        left: 25px;
        cursor: pointer;
    }
    .subtitle{
        font-size: 30px;
        margin-top: 40px;
    }
    .description{
        font-size: 18px;
        margin-bottom: 50px;
    }
    #about{
        padding: 40px 0px 0px;
    }
    .about-col-1, .about-col-2{
        flex-basis: 100%;
    }
    .about-col-1{
        margin-bottom: 3s0px;
    }
    .tab-links{
        font-size: 18px;
        margin-right: 8px;
    }
    .tab-contents{
        font-size: 18px;
    }
    .btn{
        margin: 50px auto 30px;
    }
    #header2{
        height: 100vh;
        padding-bottom: 0;
        background-image: url(/images/painted_phone.png);
    }
    #header2 .header-text {
        margin-top: 75%;
    }
    #header2 .header-text h1 {
        font-size: 60px;
        margin-top: 0;
        margin-bottom: 0;
        font-weight: 600;
    }
    @keyframes slideshow {
        0%   {background-image: url(/images/painted_phone.png);}
        25%  {background-image: url(/images/altar_phone.png);}
        50%  {background-image: url(/images/poster_phone.png);}
        75%  {background-image: url(/images/bohrer_phone.png);}
        100% {background-image: url(/images/painted_phone.png);}
    }
    .w3-display-topleft {
        position: absolute;
        left: 0;
        top: 0;
        height: 12%;
        width: 80%;
    }
    .w3-display-topleft a {
        font-size: 22px;
    }
    .w3-container.w3-display-topleft {
        border-radius: 10px 0px 10px 0px;
    }
    .w3-large {
        font-size: 20px!important;
    }
    .w3-button {
        top: 50%;
        font-size: 20px;
        padding: 8px 14px;
    }
    .w3-content {
        max-width: 100%;
        margin-top: 30px;
    }
    #header3 {
        width: 100%;
        height: 5%;
    }
    #header3 .header-text h1 {
        font-size: 40px;
        margin-top: 0;
    }
    .about-col-1 img {
        margin-bottom: 30px;
    }
    #subpage{
        padding: 0;
    }
    .subpage-col-1, .subpage-col-2{
        flex-basis: 100%;
    }
    .subpage-col-1{
        margin-bottom: 30px;
    }
    .tab-links {
        margin-right: 0;
        margin-bottom: 20px;
        width: 30%;
        font-size: 20px;
        color: #f2f2f2;
    }
    .tab-links::after {
        content: '';
        width: 0px;
        height: 3px;
        background: #6b708c;
        position: absolute;
        left: 0px;
        bottom: -8px;
        transition: 0.5s;
    }
    .work-list{
        display: block;
        margin: 50px;
    }
    .work{
        margin-bottom: 30px;
    }
    .image1{
        display: none;
    }
    .image2{
        display: block;
    }
    .model-col-1 model-viewer{
        margin-left: 50%;
        height: 60vh;
        justify-content: center;
    }
    .contactnav li a{
        text-decoration: none;
        color: #f2f2f2;
        font-size: 18px;
    }
    .contactnav li{
        list-style: none;
        padding: 10px 0px 10px 0px;
    }
    .social-icons a {
        text-decoration: none;
        font-size: 40px;
        margin-right: 20px;
        color: #6b708c;
        display: inline-block;
        transition: transform 0.5s;
    }
    .contact-right {
        padding-top: 30px;
    }
    .contact-right p {
        font-size: 18px;
    }
    .contact-right p i {
        font-size: 30px;
    }
    .flipbook-viewport{
        width:100%;
        height:100%;
    }
    .flipbook{
        position: relative;
    }
    .flipbook-viewport .flipbook{
        width: 500px;
        height: 250px;
    }
    .flipbook-viewport .double{
        width: 500px;
        height: 250px;
    }
    .impressum {
        font-size: 16px;
        margin-top: 30px;
    }

}