/*
Theme Name: TU WIEN Hochbau_1
Author: JBR
Author URI: http://h1.tuwien.ac.at
Description: www.raumposition.at
Version: 2.0
License: GNU General Public License
License URI: license.txt
*/

/* =Reset default browser CSS. Based on work by Eric Meyer: http://meyerweb.com/eric/tools/css/reset/index.html
-------------------------------------------------------------- */
.wp-block-media-text {
	// This block's direction should not be manipulated by rtl, as the mediaPosition control does.
	/*!rtl:begin:ignore*/
	direction: ltr;
	/*!rtl:end:ignore*/
	display: grid;
	grid-template-columns: 50% 1fr;
	grid-template-rows: auto;
	// This block has customizable padding, border-box makes that more predictable.
	box-sizing: border-box;

	&.has-media-on-the-right {
		grid-template-columns: 1fr 50%;
	}
}

.wp-block-media-text.is-vertically-aligned-top {
	.wp-block-media-text__content,
	.wp-block-media-text__media {
		align-self: start;
	}
}
.wp-block-media-text,
.wp-block-media-text.is-vertically-aligned-center {
	.wp-block-media-text__content,
	.wp-block-media-text__media {
		align-self: center;
	}
}

.wp-block-media-text.is-vertically-aligned-bottom {
	.wp-block-media-text__content,
	.wp-block-media-text__media {
		align-self: end;
	}
}

.wp-block-media-text .wp-block-media-text__media {
	/*!rtl:begin:ignore*/
	grid-column: 1;
	grid-row: 1;
	/*!rtl:end:ignore*/
	margin: 0;
}

.wp-block-media-text .wp-block-media-text__content {
	direction: ltr;
	/*!rtl:begin:ignore*/
	grid-column: 2;
	grid-row: 1;
	/*!rtl:end:ignore*/
	padding: 0 8% 0 8%;
	word-break: break-word;
}

.wp-block-media-text.has-media-on-the-right .wp-block-media-text__media {
	/*!rtl:begin:ignore*/
	grid-column: 2;
	grid-row: 1;
	/*!rtl:end:ignore*/
}

.wp-block-media-text.has-media-on-the-right .wp-block-media-text__content {
	/*!rtl:begin:ignore*/
	grid-column: 1;
	grid-row: 1;
	/*!rtl:end:ignore*/
}

.wp-block-media-text__media img,
.wp-block-media-text__media video {
	height: auto;
	max-width: unset;
	width: 100%;
	vertical-align: middle;
}

.wp-block-media-text.is-image-fill .wp-block-media-text__media {
	height: 100%;
	min-height: 250px;
	background-size: cover;
}

.wp-block-media-text.is-image-fill .wp-block-media-text__media > a {
	display: block;
	height: 100%;
}

.wp-block-media-text.is-image-fill .wp-block-media-text__media img {
	// The image is visually hidden but accessible to assistive technologies.
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}
/*
* Here we here not able to use a mobile first CSS approach.
* Custom widths are set using inline styles, and on mobile,
* we need 100% width, so we use important to overwrite the inline style.
* If the style were set on mobile first, on desktop styles,
* we would have no way of setting the style again to the inline style.
*/
@media (max-width: #{ ($break-small) }) {
	.wp-block-media-text.is-stacked-on-mobile {
		grid-template-columns: 100% !important;
		.wp-block-media-text__media {
			grid-column: 1;
			grid-row: 1;
		}
		.wp-block-media-text__content {
			grid-column: 1;
			grid-row: 2;
		}
	}
}


/* 
// 
//  FORCE ADJUSTMENTS
//
*/
	

figure{margin:0}

figcaption{margin: 5px 0 10px 0}

/* 
// 
//  RESET
//
*/
	


html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {
	border: 0;
	font-family: inherit;
	font-size: 100%;
	font-style: inherit;
	font-weight: inherit;
	margin: 0;
	outline: 0;
	padding: 0;
	vertical-align: baseline;
}
:focus {/* remember to define focus styles! */
	outline: 0;
	color: #1982d1;
	}

html, body, .wrapper{
   xheight: 101%;
}

body{
	background-color:#f5f2eb;
	margin-bottom: 50px; /*inhertied from bottom footer (height)*/
	background-repeat: repeat-x;
	background-size: cover;
	background-attachment: fixed;
	
}



/* 
// 
//  SITEWIDE
//
*/
	
.addClear:after{
	content: ".";
	visibility: hidden;
	display: block;
	clear: both;
	height: 0px;
}



a:link{color: black; text-decoration: none; border-bottom:1px solid black; padding: 0 0 1px 0;}
a:visited{color: black; text-decoration: none;}
a:hover{color: #debd36; text-decoration: none; border-bottom:1px solid #debd36; padding: 0 0 1px 0;}
a:active {color: #debd36;} 

em{font-style: italic !important;}
strong{font-weight: normal; font-family: 'Graebenbach-Medium', sans-serif;}
small{font-size: 60%;}

.left{float: left;}
.right{float: right;}

/* font settings including pure-grids */
html, button, input, select, textarea,
.pure-g [class *= "pure-u"] {
    font-family: Graebenbach-Medium, sans-serif; 
    font-weight: normal;
    font-size: 62.5%;
    line-height: 130%;
    color: black;
}

.mobileShow{display: none;}

/* 
// 
//  HEADER
//
*/

header{
	position: relative;
	color: #debd36;
	margin: 30px 30px 0px 30px;
	z-index: 50;
	border-bottom: 1px solid black;
	xwidth: 100%;
	xheight: auto;
}

header img{
	float: left;
	width: auto;
	height: 94px;
	margin: 0;
}

header p{
	font-size: 19px;
	line-height: 22px;
	letter-spacing: 0.05em;
	width: 820px;
}

header .links a{
	display: block;
	height: 20px;
	padding: 0 0 3px 0;
	width: 68px;
	text-align: right;
	float: right;
	clear: both;
	font-size: 11px;
	letter-spacing: 0.15em;
	font-family: 'Graebenbach-Medium';
	text-decoration: none;
}

header .links a:hover{
	text-align: left;
	text-indent: -2000px;
	background: url(images/tu_hochbau_nav_block.png) no-repeat transparent;
	background-position: 100% -32px;
}

header .bar {
	border-top: 1px solid black;
	height: 30px;
}



/* 
// 
//  NAVIGATION
//
*/

nav{
	padding-left: 120px;

}

nav .menu > li:hover{
	xborder-left:1px solid black;
	xborder-right:1px solid black;
}

nav .menu > li{
	float: left;
	list-style-type: none;
	margin-right:30px;
	padding: 0 15px 0 15px;
}

nav .menu > li > a{
	display: block;
	padding: 12px 0px 7px 0px;
	border: none;
	font-size: 26px;

  font-family: "lektorat-display-variable",sans-serif;
  font-variation-settings: 'wght' 600, 'wdth' 62;

	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: black;
	text-decoration: none;
}


nav .sub-menu{

}

nav .sub-menu li{

	list-style-type: none;
    border-top: 1px solid black;
    height: 30px;
	
}

	nav .sub-menu li:last-child{
    xpadding-bottom:7px;

}

nav .sub-menu li a{
	font-size: 15px;
	line-height: 30px;
	letter-spacing: 0.05em;
	color: black;
	text-decoration: none;
	border: none;
}

nav .sub-menu li a:hover{
	color: #debd36;
	padding: 0;
}

nav .sub-menu li.current-menu-item a{
	color: #debd36;
}


/* 
// 
//  MAIN (and standard pages)
//
*/

.backgroundContainer{
	xbackground-color: transparent;
    xbackground-repeat: no-repeat;
    xbackground-attachment: fixed;
    background-size: 80px,20px 100%;
    background-position: top;
    xpadding-bottom: 100px;
    z-index: -1;
    xmin-height: 90%;
}

main{
	position: relative;
	margin: 0px 30px 0 30px;
	z-index: 20;
}

main h1{
	border-top: 0px solid black;
	margin: 0;
	padding: 15px 0 15px 0;
	color: black;
	font-family: 'Graebenbach-Medium', sans-serif;
	font-size: 70px;
	line-height: 100%;

}

main h2{
	border-top: 1px solid black;
	margin: 0 0 0px 0 ;
	padding: 5px 0px;
	color: black;
	font-family: 'Graebenbach-Medium', sans-serif;
	font-size: 32px;
	line-height: 130%;
	letter-spacing: 0em;
}

main h3{
	border-top: 1px solid black;
	margin: 0 0 5px 0 ;
	padding: 5px 0px;
	color: black;
	font-family: 'Graebenbach-Medium', sans-serif;
	font-size: 24px;
	line-height: 130%;
	letter-spacing: 0em;
}

main h4{
	border-top: 0px solid black;
	margin: 0 0 5px 0 ;
	padding: 5px 0px;
	color: black;
	font-family: 'Graebenbach-Medium', sans-serif;
	font-weight: normal;
	font-size: 24px;
	line-height: 130%;
	letter-spacing: 0em;
}

main h5{
	border-top: 1px solid black;
	margin: 0 0 5px 0 ;
	padding: 5px 0px;
	color: black;
	font-family: "Graebenbach-Medium",sans-serif;
	font-size: 16px;
	line-height: 130%;
	letter-spacing: 0em;
}


main h6{
	border-top: 0px solid black;	
	font-size: 14px; 
	line-height: 130%;
	color: black;
	margin: 0 0 5px 0 ;
	padding: 5px 0px;
}

main h6 sub, main h6 sup{
	font-size: 9px; 
}



main p, main ul{
	font-family: 'Graebenbach-Medium', sans-serif;
	font-size: 16px;
	line-height: 130%;
	color: black;
	margin: 0;
	letter-spacing: 0.02em;
	padding-bottom: 15px;
	max-width: 1024px;
}

main p:first-child{
	
}

main p:last-child{

}
main p:first-child{

}

 p:first-of-type {
 	border-top: 0;
}


main ul{
	padding: 15px 20px 15px 40px;
}
main ul li{
	margin-bottom: 8px;
}
main ul ul{
	padding-bottom: 5px;
}

main hr{
	background: none;
	height: 1px;
	border: none;
	border-top: solid 1px black;
	margin: 0 auto;
	display: none;
}

main p img{
	max-width: 100% !important;
	height: auto;
}


/* 
// 
//  LANDING PAGES (top level navigation)
//
*/

.pano img{width: 100%}


xmain.landing *{
	xbackground: #d5cfb6; 
}

xmain.landing p{
	font-size: 23px;
	line-height: 36px;
	font-family: 'Graebenbach-Medium', sans-serif;
}

xmain.landing strong{
	color: #debd36;
}

xmain.landing hr{
	margin: 1px;
	height: 1px;
	background: none;
	border: none;
}

main p sub, main p sup{
	font-size: 60%; 
	padding-left: 2px;
	font-weight: normal;
}




/* 
// 
//  SINGLE POST VIEW (single.php)
//
*/

a.return{
	color: #000;
	background: #fff;
	display: block;
	letter-spacing: 0.2em;
	height: auto;
	margin-bottom: 12px;
	padding: 10px 20px;
	font-family: "Graebenbach-Medium",sans-serif;
	text-transform: uppercase;
	font-size: 12px;
}

.single h3{
	xfont-family: "Graebenbach-Medium",sans-serif;
	xpadding-top: 10px;
}

.single h2{
	xpadding-top: 25px;
}

/* 
// 
//  PAGE » AUSHANG (page_aushang.php)
//
*/

main.aushang {
	margin: 10px 20px;

}


.item{
    display: block;
    border: 1px solid black;
    margin: 10px;
    aspect-ratio: 1/1.30;
    background-size: 100% 100%;
    background-position: center;
}

a.item:hover{ background: none; padding: 0; border:1px solid black;}

 .item h2{
	font-size: 18px;
	line-height: 130%;
	padding: 0;
	letter-spacing: 0;
	margin-bottom: 3px;
	border:0;
}


 .item p{
	font-size: 12px;
	line-height: 130%;
	margin-bottom: 3px;
	padding: 0;
	border: 0;
	
}

.item p:first-child{	padding: 0;}

.item .hide{
	opacity: 0;
	height: 100%;
	padding: 10px;
}
 .item .hide:hover{
	opacity: 1;
}
	
 .item:hover{
	background-image: none !important;

}


/* 
// 
//  PAGE » PERSONEN 
//
*/

.personen main p a{
	
}

.personen main p a:hover{
	
}

/* 
// 
//  PAGE » PROJEKTE
//
*/



/* 
// 
//  PAGE » KARL-KUPSKY-PREIS + ENTWURFSARBEITEN + PFANN-OHMANN-PREIS (.thumbnails)
//
*/





/* Copyright legibility */ 


/* 
// 
//  FOOTER
//
*/

footer
{
    position:relative; 
    height:50px; /* same value needs to be set to body as margin-bottom */
    margin:0px 30px 30px 30px;
	border-top: 1px solid black;
	border-bottom: 1px solid black;
    z-index: 40;
   
}

footer a.topLink{
	color: black;
	text-decoration: none;
	float: left;
	margin: 19px 0 0 35px;
	font-size: 11px;
	xletter-spacing: 0.2em;
	font-family: 'Graebenbach-Medium';
}

footer nav{
	padding: 15px 0 10px 15px;
}

footer nav .menu li a{
	color: black;
	xfont-size: 12px;
	padding: 5px 10px 0 0;
	margin: 0 14px 0 0;
}

footer nav .menu li:last-child a{
	margin: 0;
}

footer nav .menu li a:hover{
	xtext-indent: 2000px;
	xbackground: url(images/tu_hochbau_nav_block.png) no-repeat transparent;
	xbackground-position: 0px -60px;
}
footer nav .menu > li:hover{border:0}

#copyright{
	position: fixed;
	bottom: 60px;
	right: 20px;
}

#copyright p{
	color: black;
	position: relative;
	z-index: 10;
}


/* 
// 
//  RESPONSIVES BEHAVIOR 
//
*/

@media screen and (max-width: 981px){
	/*small screens and tablets*/
	main{
		xmax-width: 90%;
		xmargin: 0 auto;
	}
	
	header{
		xwidth: 90%;
		xpadding: 3% 5%;
	} 
	
	header .left{
		xmax-width: 500px;
	}
	
	header .links{
		xwidth: 100px;
		xfloat: right;
	}
	
	nav{
		xpadding: 13% 0 20px 5%;
	}
	
	nav .menu>li>a{
		xpadding: 7px 15px 20px 0;
		xmargin-right: 30px;
		xfont-size: 14px;
		xwidth: 10.5em;
	}
	
	nav .sub-menu{
		xmin-width: 1px;
	}
	
	nav .sub-menu li a{
		xfont-size: 1.4em;
		xline-height: 1.8em;
	}
	
	footer{
		xwidth: 100%;
	}	
		
	footer nav .menu li a{
		xwidth: 7em;
		xpadding: 5px 30% 0 0;
		xmargin: 0 20% 0 0;
	}
	
	footer a.topLink{
		xmargin-left: 5%;
	}	
	
	footer nav{
		xwidth: auto;
		xpadding-left: 12%;
	}
}


@media screen and (max-width: 750px){
	/*mobile styles*/
	
	.mobileHide{display: none;}
	.mobileShow{display: block;}
	
	body{
		position: relative;
		margin:0;
		xbackground-image: url(images/tu_hochbau_entwerfen_bg_mobile.jpg) !important;
		background-repeat: no-repeat;
		/*background-size: cover;*/
		background-attachment: fixed;
		xbackground-color: #a68e28;
	}
		
	.backgroundContainer{
		padding: 10px 0 35px 0;
		min-height: 1px;
		background-image: none !important;
	}
	
	header {
		width: 100%;
		margin: 10px 0 10px 0;
	}
	
	header p{
		font-size: 1.2em;
		line-height: 1.4em;
		padding-top: 3px;
		letter-spacing: 0;
	}
	
	header img{
		display: none;;
	}
	
	x.links{
		position: fixed;
		clear: both;
		width: 100%;
		background: #debd36;
		padding: 10px 0;
		margin-top: 46px;
		z-index: 50;
	}
	
	x.links a{
		display: block;
	    width: 33%;
	    float: left;
	    color: #000;
	    font-size: 1.3em;
	    text-align: center;
	    text-decoration: none;
	    text-transform: uppercase;
	    font-family: 'Graebenbach-Medium';
	    letter-spacing: 0.1em;
	}
	
	.links a:hover{
		text-decoration: underline;
		background: none;
	}
	
	nav{
		xpadding-top: 100px;
	}
	
	nav .menu>li{
		clear: both;
		padding-bottom: 5px;
	}
	
	nav .menu>li>a{
		font-size: 1.8em;
		padding: 10px 0 7px 0;
		border-bottom: 1px solid black;
		margin-bottom: 3px;
	}
	
	#mainNav .menu>li:hover>a, #mainNav .menu>li.current-menu-item>a, #mainNav .menu>li.current_page_parent>a{
		background: none;
		text-indent: 0;
		color: #000;
		border-bottom: 0px;
		margin-bottom: 2px;
	}
	
	nav .sub-menu{
		margin-right: 3px;
		padding: 10px 10px 10px 20px;
		min-width: 120px;
	}
	
	nav .sub-menu li:last-child{
    padding-bottom:15px;

}

	#mainNav nav li.sub-menue-visible-parent{
		color: red !important;
	}
	
	
	main{
		min-height: 250px;
	}
	
	main h1{
		font-size: 22px;
		line-height: 22px;
	}
	
	main h2{
		font-size: 18px;
		line-height: 18px;
	}
	
	main p{
		font-size: 15px;
		line-height: 21px;
	}
	
	main a{
		word-wrap: break-word;
	}
	
	main.landing p, .projekte main h1{
		font-size: 16px;
		line-height: 24px;
		font-family: 'Graebenbach-Medium', sans-serif;
	}
	
	 .item{
		xheight: 105px;
	}
	
	
	
	.single h3{
		font-size: 18px;
	}

	.single h2{
		padding-top: 25px;
	}
	
	#copyright{
		display: none;
	}
	
}

/* Landscape */
@media screen and (max-width: 750px) and (orientation: landscape) {
	body{
		background-size: cover;
	}
}

