@charset "UTF-8";

@font-face { font-family: 'Raleway-Light';
	src: url('../fonts/Raleway-Light.woff')  format('woff')}

@font-face { font-family: 'Raleway-Regular';
	src: url('../fonts/Raleway-Regular.woff')  format('woff')}

@font-face { font-family: 'Raleway-Semibold';
	src: url('../fonts/Raleway-Semibold.woff')  format('woff')}

@font-face { font-family: 'Raleway-Medium';
	src: url('../fonts/Raleway-Medium.woff')  format('woff')}

@font-face { font-family: 'Avenir-Light';
	src: url('../fonts/Avenir-Light.woff')  format('woff')}

@font-face { font-family: 'Avenir-Medium';
	src: url('../fonts/Avenir-Medium.woff')  format('woff')}

@font-face { font-family: 'Avenir-Book';
	src: url('../fonts/Avenir-Book.woff')  format('woff')}

@font-face { font-family: 'AvenirNext-Light';
	src: url('../fonts/AvenirNext-Light.woff')  format('woff')}

:root {
	--dark-grey: #464646;
	--medium-grey: #808080;
	--light-red: #D57A6F;
	--blue: #5B37BE;
	--light-red: #F6BBBA;
	--lighter-red: #ffd3ce;
	--lightest-red: #FAF2F1;
	--contrast-red: #D83A2C;
	--light-grey: #d8d8d8;
	--very-light-grey: #f6f6f6;
	--old-white: #f8eef3;
	--internal-margin: calc(25px + (50 - 25) * ((100vw - 600px) / (1080 - 600)));
	--outer-shadow: 6px 6px 0px var(--medium-grey);
	--outer-shadow-red: 6px 6px 0px var(--light-red);
	--outer-shadow-inverted: 6px 6px 0px var(--medium-grey);
	--outer-shadow-small: 3px 3px 0px var(--light-red);
	--inner-shadow: inset 7px 7px 0px var(--light-red);
	--inner-shadow-small: inset 3px 3px 0px var(--light-red);
	--inner-shadow-padding: 20px 12px 12px 20px;
	--outer-shadow-bottom: 0px 3px 3px rgba(0, 0, 0, 0.3);
	--outer-shadow-top: 0px -3px 3px rgba(0, 0, 0, 0.3);
	--outer-shadow-left: -3px 0px 3px rgba(0, 0, 0, 0.3);
	--outer-shadow-right: 3px 0px 3px rgba(0, 0, 0, 0.3);
	--inner-shadow-top: inset 0px 3px 3px rgba(178, 178, 178, 1);
	--inner-shadow-recess: inset 0 0 8px rgba(0, 0, 0, 0.3);
	--outer-shadow-recess: 0 0 8px rgba(0, 0, 0, 0.3);
	--context-menu-width: 600px;
	--white-passepartout: 15px solid var(--old-white);
	--border-thick: 3.5px solid var(--dark-grey);
	--border-thick-dotted: 3.5px dotted var(--blue);
	--border-thick-red: 8px solid var(--light-red);
	--border-thin: 2.5px solid var(--medium-grey);
	--border-thin-red: 3px solid var(--light-red);
	--transition-linear: 0.1s linear;
	--background-hatch: repeating-linear-gradient(-45deg,white 0px, white 2px,var(--light-red) 2px,var(--light-red) 4px);
  --p-small: clamp(14px, 2.6vw, 16px);
	--h3: clamp(22px, 3.5vw, 28px);
	--header-height: calc(clamp(26px, 3.7vw, 30px) * 1.3 + 4%);
	--mapfilter-neu: invert(1) hue-rotate(180deg) saturate(0.5) contrast(1.05);
	--max-width: 850px;
	--max-width-margin: calc((100vw - var(--max-width))/2);
	--max-width-padding: 700px;
	--max-width-padding-amount: calc((var(--max-width) - var(--max-width-padding)) / 2);
	--flex-gap: calc(10px + 4vw);
}

html {
	scroll-behavior: smooth;
	word-break: normal;
}

body{
	position: absolute;
	top: 0;
	margin: 0;
	background: var(--lighter-red);
	color: var(--dark-grey)
}

a {
		color: var(--medium-grey);
		text-decoration: none;
    font-family: Raleway-medium;
		font-size: clamp(15.5px, 1.5vw, 18px);
		cursor: pointer;
		border-bottom: var(--border-thin);
}

p {
		font-family: Raleway-medium;
		font-size: clamp(15.5px, 1.5vw, 18px);
		line-height: 1.3;
		hyphens: auto;
		-webkit-hyphens: auto;
		text-align: justify;
}

button {
	all: unset;
}

h1, #header {
	font-size: clamp(36px, 4vw, 50px);
	font-family: Avenir-Medium;
	line-height: 1.5;
}

h2 {
	font-size: clamp(22px, 3.7vw, 30px);
	font-family: Avenir-Book;
	line-height: 1.3;
}

h3, .nav-item {
	font-size: clamp(20px, 3.5vw, 26px);
	font-family: Avenir-Book;
	line-height: 1.3;
}

h4 {
	font-size: 18px;
	font-family: Avenir-Light;
	line-height: 28px;
}

h5, li {
	font-size: clamp(14px, 3.5vw, 20px);
	font-family: Avenir-Light;
	line-height: 1.3;
}

.p-small {
  font-size: clamp(12px, 2.6vw, 14px);
	font-family: Raleway-Regular;
	line-height: 1.3;
}

ul {
  list-style-type: none;
	margin: 0;
	padding: 0;
}

.weiterbauen-title {
	width: 60vw;
	left: 2.5vw;
	position: relative;
}

.weiterbauen-title  h2 {
	font-size: 30px;
	margin-bottom: 10px;
	letter-spacing: 0.265em;
}

.weiterbauen-title p {
	line-height: 0;
}

.weiterbauen-menu {
	z-index: 3;
	position: relative;
	left: 2.5vw;
}

.active {
	border-bottom: 3px solid #464646;
}

.weiterbauen-menu li {
	font-size: 20px;
	text-transform: lowercase;
	display: inline;
	margin-right: 10px;
	cursor: pointer;
}

#construction-notice {
	width: 75%;
	left:12.5%;
	position: absolute;
	top: 25%;
}

.tiles {
  width: 500px;
	height: 330px;
	position: relative;
	flex-direction: row;
	cursor: pointer;
}

canvas {
	width: 100%!important;
	height: 100%!important;
	filter: brightness(130%) saturate(70%) contrast(120%);
	pointer-events: none;
}

#model-wrapper {
	position: relative;
	top: 100px;
	width: 100vw;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-evenly;
	padding-bottom: 100px;
}

.header {
	width: 95vw;
	margin: 0;
	padding: 2vh 2.5vw 2vh 2.5vw;
	position: fixed;
	top: 0;
}

.header h1 {
	margin: 0;
}

.header h1:first-of-type {
	float: left;
}

.header h1:last-of-type {
	float: right;
}

.header-gallery {
	padding-left: var(--flex-gap);
	padding-right: var(--flex-gap);
	margin: 0;
	position: absolute;
	width: calc(100vw - var(--flex-gap) - var(--flex-gap));
	top: 0;
}

.header-gallery h4 {
	float: left;
}

.header-gallery h4:last-of-type {
	float: right;
}

.header-gallery h4:first-of-type {
	float: left;
	left: 2vw;
	position: fixed;
	margin-right: 2vw;
	cursor: pointer;
}

.header-gallery span {
	font-size: 32px;
	top: -3px;
	position: absolute;
}

.header span, #close-fullScreen span {
	scale: 200%;
	transform-origin: right;
	margin-left: 30px;
	cursor: pointer;
}

.header span:last-of-type, #close-fullScreen span {
		text-shadow:  0 0 5px var(--lightest-red), 0 0 10px var(--lightest-red), 0 0 15px var(--lightest-red), 0 0 20px var(--lightest-red);
}

.hide {
	display: none!important;
}

.white {
	background-color: white;
	overflow: hidden;
}

.moveUp {
	z-index: 2;
}

.moveDown {
	z-index: 0;
}

.shrink-width {
	width: calc(100vw - 650px)!important;
}

.tiles:hover > canvas {
	filter: brightness(160%) saturate(70%) contrast(120%);
	cursor: pointer;
}

canvas {
	filter: brightness(120%) saturate(70%) contrast(160%);
}

.tiles:hover > .caption {
	display: initial;
}

.info-text {
	top: 0;
	width: 100vw;
	height: 100vh;
	right: 0;
	max-width: 650px;
	position: fixed;
	padding-top: 100px;
	padding-left: 20px;
	padding-right: 20px;
	box-sizing: border-box;
	overflow-y: scroll;
	scrollbar-width: 0;
	background-color: var(--lighter-red);
	z-index: 1;
	border-left: var(--border-thick);
}

.info-text img {
	width: 100%;
}

.info-text img + em {
	margin-bottom: 2em;
	font-size: var(--p-small);
	display: block;
}

.info-text span, .info-text hr {
	color: var(--medium-grey);
}

.tiles > .caption {
	display: none;
	width: 100%;
	height: 100%;
}

.tiles h1, .tiles h5 {
	position: absolute;
	text-align: center;
	width: 100%;
	margin: 0;
	pointer-events: none;
	font-family: Avenir-Light;
}

.tiles h1 {
	top: 25%;
	text-transform: uppercase;
}

.tiles h5 {
	bottom: 5%;
	z-index: 1;
}

.fallback-img {
		z-index: 0;
	  position: absolute;
		width: 80%;
		filter: brightness(170%) saturate(90%) contrast(100%);
		top: 50%;
		left: 50%;
		transform: translate(-50%, -15%);
}

#title {
	text-transform: uppercase;
}

.gallery {
	flex-wrap: wrap;
	column-gap: var(--flex-gap);
	row-gap: var(--flex-gap);
	align-content: start;
	margin: 0px var(--flex-gap) 0px var(--flex-gap);
	position: relative;
	top: 100px;
	width: calc(100vw - var(--flex-gap) - var(--flex-gap));
	display: flex;
	justify-content: space-evenly;
	align-items: center;
	padding-bottom: calc(var(--flex-gap) / 2);
	padding-top: calc(var(--flex-gap) / 2);
	overflow-x: scroll;
}

.gallery img {
	position: relative;
	flex-direction: row;
	flex-grow: 3;
	flex-shrink: 1;
	cursor: pointer;
	width: 200px;
	max-width: 1000px;
	max-height: 800px;
	filter: drop-shadow(var(--outer-shadow-small));
	object-fit: cover;
	border: var(--white-passepartout);
	box-sizing: content-box;
}

.gallery img:hover {
	filter: brightness(105%) saturate(110%) contrast(100%);
}

.fallback-img:hover {
	filter: brightness(300%) saturate(70%) contrast(100%);
}

.gallery:last-of-type {
	padding-bottom: 100px;
}

#fullScreen {
	position: fixed;
	height: 100vh;
	width: 100vw;
	backdrop-filter: blur(50px) brightness(130%);
	-webkit-backdrop-filter: blur(50px) brightness(130%);
	z-index: 2;
	top: 0;
	left: 0;
	display: flex;
	justify-content: space-around;
	overflow:hidden;
}

#fullScreen img {
	position: relative;
	top: 0;
	left: 0;
	width: 1000px;
	height: 1000px;
	cursor: move;
	object-fit: contain;
}

#close-fullScreen {
	position: fixed;
	top: 2vw;
	right: 2vw;
	z-index: 3;
}

#gallery-model canvas {
	pointer-events: auto;
	cursor: pointer;
	filter: contrast(130%) brightness(120%);
}

.loader {
  margin: auto;
  border: 8px solid var(--old-white);
  border-radius: 50%;
  border-top: 8px solid var(--light-red);
  width: 50px;
  height: 50px;
  animation: spinner 4s linear infinite;
	position: absolute;
	left: calc(50% - 33px);
	top: 50%;
}

@keyframes spinner {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@media only screen and (max-width:1080px) {
   #gallery-renders {
		 margin-top: 100px;
	 }
	 .header-gallery h4:first-of-type {
	 	left: 1vw;
	 }
	 #fullScreen img {
		width: 450px;
		height: 450px;
		object-fit: contain;
	}
	 .tiles h1 {
	 	text-transform: uppercase;
	 }
	 .tiles h5 {
	 	z-index: 1;
	 }
	 #gallery-model > .loader {
		 display: none!important;
	 }
	 #fullScreen {
		 padding-top: 50px;
	 }
}

@media only screen and (max-width: 600px) {
	.weiterbauen-title  h2 {
		font-size: 25px;
		margin-bottom: 0px;
		letter-spacing: 0.265em;
	}
	.weiterbauen-menu li {
		font-size: 16.75px;
		text-transform: lowercase;
		display: inline;
		margin-right: 10px;
		cursor: pointer;
	}
}

@media (hover:none) {
	.tiles:hover > .caption {
	 display: none;
	}
	.gallery img:hover {
		filter: none;
	}
}