/* lila rgb(80, 81, 158)   = #50519E */
/* bg   rgb(236, 240, 245) = #WCF0F5 */
/* pink rgb(255, 39, 97)   = #FF2761 */

/*fluid videos iframe*/
.video {
    margin:0;
	position: relative;
	padding-bottom: 56.05%; /* 16:9 */
	padding-top: 0px;
	height: 0;
    overflow: hidden;
/*    z-index: -1;*/
}
.video iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}


/*body and standard text*/
body {
    font-family: 'Vista-Slab', serif; font-weight: 300; font-style: normal;
    color: rgb(80, 81, 158);
    
    font-size: 16px;
    font-weight: 400; 
    margin: 0; padding: 0;
    letter-spacing: 0.023em;
    line-height: 1.5em;

    background-color: rgb(236, 240, 245);
	
    -webkit-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
    -ms-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}


h1 { margin: 0 0 1em 0; font-size: 2.8em; font-weight: 600; font-family: 'Rift-Soft', sans-serif; font-weight: 700; font-style: italic; }
h2 { margin: 0 0 0.5em 0; font-size: 1.9em; font-weight: 600; line-height: 1.1em;  letter-spacing: 0.01em; font-family:'Rift-Soft', sans-serif;font-weight: 700; font-style: italic;}
h3 { margin: 0 0 0.2em 0; font-size: 1.7em; letter-spacing: 0.02em; font-weight: 600; line-height: 0.9em;font-family:'Rift-Soft', sans-serif; font-weight: 700; font-style: italic;}
h4 { margin: 0 0 0.5em 0; font-size: 1em; letter-spacing: 0.02em; font-weight: 500; line-height: 0.9em; }
h5 { margin: 0 0 0.5em 0; font-size: 1em; letter-spacing: 0.02em; font-weight: 500; line-height: 0.9em; font-family:'Rift-Soft', sans-serif; font-weight: 700; font-style: italic; }



p { margin: 0 0 1em 0; padding: 0 0 0em 0;}

a { 
    color: rgb(80, 81, 158);
    text-decoration: none;
    
    transition-duration: 0.20s;
    transition-timing-function: ease-in-out;
}

a:visited { color: rgb(80, 81, 158); }
a:hover { color: rgb(255, 39, 97); }

img.portrait {max-height:403px;  max-width:400px; margin:auto; }


::-moz-selection { /* Code for Firefox */
    color: rgb(226, 230, 234);
    background: rgb(255, 39, 97);
}
::selection {
    color: rgb(226, 230, 234); 
    background: rgb(255, 39, 97);
}
a::-moz-selection { /* Code for Firefox */
    color: rgb(80, 81, 158);
    background: rgb(255, 39, 97);
}
a::selection {
    color: rgb(80, 81, 158); 
    background: rgb(255, 39, 97);
}

/*page*/

#page {
    max-width: 1060px;
    margin: 0 auto;
    padding: 0 30px 0 30px;
    position: relative;
}



/* ____________ header ________________________________________ */

header{
    height: 150px;
}

header a.logo {
    position: absolute;
    display:block;
    width: 100%;
    top:35px;

    
/*
    background:url(../images/logo_portfolio.png) no-repeat 0 0;
    background-size:contain;
*/
}

header a.logo span{
    font-weight: 600;
    font-size: 2.7em;
    letter-spacing: 0.02em;
    border-bottom-style: none;
    border-bottom-color: rgb(255, 39, 97);
    font-family:'Rift-Soft', serif; font-weight: 700; font-style: italic;
	line-height:0.8em;
    
}


header div.hero {   
}




/* ____________ navigation _____________________________________ */

nav {
    position: absolute;
    right: 0px;
    padding: 20px 20px 30px 0px; margin: 0px;
}

nav::after {content:''; display:block; clear:both;}

nav a.mobile_menu {
    width: 32px; height: 32px;
    background: url(../images/icon_menu.svg) no-repeat 0 0;
    background-size: contain;
    position: absolute;
    top: 35px; left:50%; margin-left: -16px;
    display:none;
}

nav ul { list-style: none; margin: 0px; padding: 0px; }
nav ul::after { content: ""; display: block; clear: both; }


nav ul li:hover > ul {display: block; }

nav ul li a {
    display: inline-block;
    padding: 4px 8px;  
    width: 130px; 
    position: relative;
}

nav ul ul {
    position:absolute;
    z-index:1000;
    display: none;
    margin: 0px;
    padding-left:0px;
}

nav ul ul li {
    position: relative;
    background-color: rgba(244, 248, 253, 0.9)
}


/* top level */

nav > ul {}
nav > ul > li { float: left; }
nav > ul > li > a {  padding: 10px 10px 5px 10px; width: auto; }




nav > ul > li > a[aria-haspopup="true"].nested::after {
	content:'';
	display: block;
	width: 0;
	height: 0;
	position: absolute;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 4px solid rgb(80, 81, 158);
	right: 23px;
	top: 33px;
    z-index: 1001;
}

/*section*/

section { padding: 0;}

/*clearing everything with a float property*/
section::after {content:''; display:block; clear:both;}



/* ____________ menu _________________________________________ */

.menu {
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-column-gap: 20px;
	grid-row-gap: 40px;
}

.item {
    
    color:rgb(80, 81, 158) !important;
    
    -webkit-filter: brightness(100%);
    -webkit-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
    -ms-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}

.item:hover {
    -webkit-filter: brightness(117%);
    color:rgb(255, 39, 97) !important;
}

.item:nth-child(2n) {
    text-align: right;
}

.item img {
    width:100%;
    padding:0;

}

/* ____________ attribution _______________________________________*/

div.attribution {
    text-align: right;
    width: 100%;
    padding: 5px 0px 0px 0px;
    font-size: 0.7em;
    letter-spacing: 0.04em;
    font-weight: 400;
    line-height: 1em;
}

div.attributionaside {
    float: right;
    padding: 5px 0px 5px 0px;
    font-size: 0.7em;
    letter-spacing: 0.04em;
    font-weight: 400;
    line-height: 1em;
}
    
/* ____________ reel ______________________________________________*/

section.reel {
    padding-bottom: 70px;
}


/* ____________ project ____________________________________________*/

section.project aside {
    width:100%;
    padding-bottom: 25px;
    }

section.project aside.half {
    width:49%;
    float:left;
    text-align: left;
}

section.project aside.second {
    margin-left: 20px;
}

section.project aside.text {
    min-height: 150px;
}

section.project aside.trenner {
    padding: 0px;
    margin: 0px;
}

section.project aside video {
    display:block;
}

section.project aside img {
    width:100%;
    display:block;
}

section.project h2 {
	color: rgb(80, 81, 158);
}

div.credits {
    padding-bottom: 20px;
}

.boxed {
	line-height:2em;
    padding: 4px 7px 4px 7px;
    margin-right:3px;
    border-color: rgb(186, 198, 201);
    border-width: 1px;
    border-style: solid;
    white-space: nowrap; 
}
a.boxed { border-color:rgb(186, 198, 201);}
a.boxed:hover{ border-color: rgb(255, 39, 97);}

div.ttt {
	font-family:'Rift-Soft'; font-weight: 700; font-style: italic;
	font-size: 1.3em;
    display: block;
    float: left;
    width: 50px;
    margin-right: 7px;
	padding-top: 4px;
}


/*______________footer_________________________________________________*/

footer {
    font-size: 0.8em;
    margin: 100px 40px 40px 0px;
}
footer span {
    margin: 0 5px 0 5px;
}

footer .content {
    display:inline;
}


/*______________ media queries _________________________________________*/

@media screen and (max-width: 1000px) {
    
	.menu {
		display: grid;
		grid-template-columns: 1fr;
	}
    
    header {height: 150px}
    
    header a.logo {
    position:relative;
    float: left;
    display:block;
    width: 100%;
    }

    header a.logo span{
        font-size: 1.9em;
    }
    
}

@media screen and (max-width: 750px) {
    
    header a.logo {
		float: none;
		left:50%;
		margin-left:-43px;
        text-align: left;
        font-size: 1em;
        margin-bottom: 10px;
    }
    
    #page {
        padding: 0 15px 0 15px;
    }
    
    header {
        height: auto;
        min-height: 100px;
    }
    
    h3 { 
        margin: 0 0 0.2em 0; 
        font-size: 1.2em; 
        letter-spacing: 0.04em; 
        font-weight: 600; 
        line-height: 1em;
    }
    
    h4 { 
        margin: 0 0 0.5em 0;
        font-size: 0.9em;
        letter-spacing: 0.04em;
        font-weight: 500; 
        line-height: 1em;
    }
    
    section {
        padding-top: 10px;
    }
	
	/* Rahmen */
	html:before, html:after {
	height: 10px;
	}

	html:after {
	bottom: 0;
	}
	
	html {
	border-left: 10px solid rgb(80, 81, 158);
	border-right: 10px solid rgb(80, 81, 158);
	}
    
	/* navigation change */
    
    nav > ul > li > a[aria-haspopup="true"].nested::after {display:none;}
    
    nav { 
        padding: 50px 15px 30px 15px;
        position: relative;
        height:0px;
        overflow: hidden;
    }
	
    nav a.mobile_menu {display:block;}
    
    nav ul, nav ul ul, nav ul ul ul { display: block; position: static; }
	nav > ul { padding: 0px; }
	nav > ul > li { float: none; margin-top: 25px; }
    
    nav ul li a {
        width: auto;
        display: block;
        margin: 8px 10px;
        padding: 6px 15px 6px 2px;
        border-bottom: 1px solid rgba(80, 81, 158, 0.5);
    }

    nav ul li a:hover {
        border-color: #ff42a1;
    }
    
    nav ul ul li { background: none;}
    nav ul ul li a {margin-left: 40px;}
    
    nav a[aria-haspopup="true"]::after {display: none; }

    nav > ul > li > a[aria-haspopup="true"].nested::after {
        position: absolute;
        right: 15px;
        top: 16px;
    }
}

    
@media screen and (max-width: 520px) {
    
    .trenner {
    display: none;
	}
    
    div.credits {
    padding-bottom: 12px;
    line-height: 2.2em;
    }
    
    #page {
        padding: 0 8px 0 8px;
    }
    
    h2 { 
        margin: 0 0 0.3em 0;
        font-size: 1.4em;
        font-weight: 600;
        line-height: 1.1em; 
        letter-spacing: 0.1em;
    }
    
     h3 { 
        margin: 0 0 0.2em 0; 
        font-size: 1.2em; 
        letter-spacing: 0.04em; 
        font-weight: 600; 
        line-height: 1em;
    }
    
    h4 { 
        margin: 0 0 0.4em 0;
        font-size: 0.9em;
        letter-spacing: 0.04em;
        font-weight: 500; 
        line-height: 1em;
    }
     
    header {
        min-height: 100px;
    }
    
    header a.logo span{
        font-size: 1.8em;
    }
    
}