/* color definitions */

:root {
	--color-blue: #16397b;
	--color-blue-02: #5367b0;
	--color-softwhite: #ebeeff;
	--color-softwhite: #a7acc6;
	--color-orange: #f47955;
	--font-size-01: 0.85rem;
	--font-size-02: 1.5rem;
	--font-size-03: 2.5rem;
	--font-size-04: 3rem;
	--grid-gap: 1vw;
	--default-margin: 4vw;
	--default-section-margin: 20vh;
	--maingrid-col-count: 12;
	--maingrid-col02-pos: calc(100vw / var(--maingrid-col-count) *  1 + var(--grid-gap) *  1);
	--maingrid-col03-pos: calc(100vw / var(--maingrid-col-count) *  2 + var(--grid-gap) *  2);
	--maingrid-col04-pos: calc(100vw / var(--maingrid-col-count) *  3 + var(--grid-gap) *  3);
	--maingrid-col05-pos: calc(100vw / var(--maingrid-col-count) *  4 + var(--grid-gap) *  4);
	--maingrid-col06-pos: calc(100vw / var(--maingrid-col-count) *  5 + var(--grid-gap) *  5);
	--maingrid-col07-pos: calc(100vw / var(--maingrid-col-count) *  6 + var(--grid-gap) *  6);
	--maingrid-col08-pos: calc(100vw / var(--maingrid-col-count) *  7 + var(--grid-gap) *  7);
	--maingrid-col09-pos: calc(100vw / var(--maingrid-col-count) *  8 + var(--grid-gap) *  8);
	--maingrid-col10-pos: calc(100vw / var(--maingrid-col-count) *  9 + var(--grid-gap) *  9);
	--maingrid-col11-pos: calc(100vw / var(--maingrid-col-count) * 10 + var(--grid-gap) * 10);
	--maingrid-col12-pos: calc(100vw / var(--maingrid-col-count) * 11 + var(--grid-gap) * 11);
	font-size: 1.5vw;
}

/* general */

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	height: 100vh;
	min-height: 100vh;
}

body {
	background-color: var(--color-blue);
	margin: 0;
	font-size: 1rem;
	-moz-text-size-adjust: none;
	-webkit-text-size-adjust: none;
	-ms-text-size-adjust: none;
	text-size-adjust: none;
}

html,
body {
	overscroll-behavior: none;
}

body,
form input,
form textarea {
	color: white;
	font-family: futura-pt, sans-serif;
	font-weight: 400;
	font-style: normal;
}

a,
a:hover,
a:visited,
a:active {
	color: white;
	text-decoration: none;
	outline: none;
}

a:hover {
	color: black;
}

strong {
	font-weight: normal;
}

.centered {
	text-align: center;
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
}

.image-fill {
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
}

.image-contain {
	background-size: contain;
	background-position: center center;
	background-repeat: no-repeat;
}

.main-grid {
	display: grid;
	grid-template-columns: repeat(var(--maingrid-col-count), 1fr);
	gap: var(--grid-gap);
}

/* general structure */

.site-main{
	position: relative;
	z-index: 1;
}

/* main menu */

.main_menu.open .menu_btn > span {
	transform: rotate(45deg);
}
.main_menu.open .menu_btn > span::before {
	top: 0;
	transform: rotate(0deg);
}
.main_menu.open .menu_btn > span::after {
	top: 0;
	transform: rotate(90deg);
}
.main_menu.open .menu_box {
	left: 0 !important;
}
.menu_btn {
	position: fixed;
	top: var(--default-margin);
	left: var(--default-margin);
	width: 26px;
	height: 26px;
	cursor: pointer;
	z-index: 101;
}
.menu_btn > span,
.menu_btn > span::before,
.menu_btn > span::after {
	display: block;
	position: absolute;
	width: 100%;
	height: 2px;
	background-color: white;
	transition-duration: 0.25s;
}
.menu_btn > span::before {
	content: "";
	top: -8px;
}

.menu_btn > span::after {
	content: "";
	top: 8px;
}

.menu_box {
	display: block;
	position: fixed;
	top: 0;
	left: -100%;
	width: 40%;
	height: 100%;
	margin: 0;
	padding: 80px 0;
	background-color: var(--color-orange);
	transition-duration: 0.25s;
	padding: 0 var(--default-margin);
	z-index: 100;
}

.menu_box ul {
	list-style: none;
}

.menu_box ul li a {
	display: block;
	padding: 0.5em 0;
	color: var(--color-blue);
	font-size: var(--font-size-02);
	text-decoration: none;
	transition-duration: 0.25s;
	text-transform: uppercase;
}

.menu_box ul li a:hover {
	color: var(--color-blue);
	text-decoration: underline;
}

.menu_box ul:nth-child(1) {
	margin-top: calc(var(--default-margin) + 2em);
}

.menu_box ul:nth-child(2) {
	margin-top: 2rem;
}

.menu_box ul:nth-child(2) li {
	float: left;
	padding-right: 1em;
}

.menu_box ul:nth-child(2) li:last-child {
	padding-right: 0;
}

.menu_box ul:nth-child(2) li a {
	text-transform: none;
}

/* current section display */

.current-section {
	position: fixed;
	top: calc(var(--default-margin) - 13px);
	left: calc(var(--default-margin) + 26px + 16px);
	z-index: 101;
	list-style-type: none;
	text-transform: uppercase;
}

.current-section > li {
	display: none;
}

.current-section > li.active {
	display: block;
}

/* language switch */

.lang_switch {
	position: fixed;
	top: calc(var(--default-margin) - 0.5em);
	right: var(--default-margin);
	z-index: 101;
}

.lang_switch a {
	text-decoration: none;
	margin-left: 0.25em;
	cursor: pointer;
}

.lang_switch a:hover {
	color: white;
}

.lang_switch a.active {
	cursor: default;
	color: var(--color-orange);
}

.lang_switch a:first-child {
	margin-left: 0;
}

/* call to action */
	
a.calltoaction {
	font-weight: 500;
	font-size: var(--font-size-02);
	margin-bottom: 1rem;
	text-transform: uppercase;
	display: block;
	border: 1px solid white;
	border-right: none;
	padding: 0.6rem 0.2rem;
	position: fixed;
	top: 30%;
	right: 0;
	z-index: 199;
	writing-mode: vertical-rl;
	cursor: pointer;
	color: white;
	background-color: var(--color-orange);
}

a.calltoaction:hover {
	color: var(--color-blue);
	cursor: pointer;
}

a.calltoaction.hidden {
	display: none;
}

/* charts */

section {
	position: relative;
	font-size: 2vw;
}

section.fill-screen {
	overflow: hidden;
	height: 100vh;
	min-height: 60vw;
}

section .chart-image {
	width: 100%;
	height: 100%;
	overflow: hidden;
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
}

section .chart-content {
	width: 100%;
	margin: var(--default-section-margin) 0 var(--default-section-margin) 0;
}

section .chart-content .headline,
section#vacancies .headline,
section#houses .headline {
	color: var(--color-orange);
	font-size: var(--font-size-04);
	text-transform: uppercase;
	margin-bottom: 3rem;
	font-family: "trajan-pro-3", serif;
	line-height: 1.25em;
}

section .chart-content .text {
	color: white;
}

/* intro */

section#intro .slideshow {
	width: 100%;
	height: 100%;
	color: var(--color-orange)
}

section#intro .slideshow > div {
	background-repeat: no-repeat;
	background-size: cover;
	position: absolute;
	top: 0;
	left: -15%;
	width: 130%;
	height: 100%;
	opacity: 0;
}

.thetailory_logo {
	background-repeat: no-repeat;
	background-size: cover;
	background-image: url("../img/the_tailory_logo_white_subline.svg");
	text-indent: -999px;
	overflow: hidden;
	width: 35vw;
	aspect-ratio: 10 / 2.04;
}

section#intro .headline {
	position: absolute;
	left: 50%;
	bottom: 2em;
	transform: translate(-50%, 0);
	text-align: center;
	color: var(--color-orange);
	font-size: var(--font-size-02);
	line-height: 1.25em;
	width: 60%;
}

/* buildings */

section#houses {
	margin-top: var(--default-section-margin);
}

section#houses .chart-content-wrapper {
	height: 100%;
}

section#houses .text-container {
	position: absolute;
	top: 4vw;
	left: var(--maingrid-col02-pos);
}

section#houses .text-container .headline {
	margin-bottom: 2rem;
}

section#houses .text-container .text {
	color: var(--color-softwhite);
    transition: opacity 0.3s ease;
	opacity: 1;
}

section#houses.photo-open .text-container .text {
	opacity: 0;
}

section#houses .ensemble-wrapper {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 100vw;
	aspect-ratio: 1 / 1;
    transition: left 0.3s ease;
}

@media (orientation: portrait) {
	section#houses .ensemble-wrapper {
		width: auto;
		height: 100vh;
	}
}

@media (orientation: landscape) and (min-aspect-ratio: 4/3) {
	section#houses .ensemble-wrapper {
		top: 57.5%;
	}
}

section#houses .ensemble-wrapper #ensemble {
	width: 100%;
	height: 100%;
	z-index: 9;
	background-repeat: no-repeat;
	background-size: cover;
	background-image: url("../media/the_tailory_ensemble.jpg");
	background-position: center center;
	opacity: 0.25;
}

section#houses .ensemble-wrapper #ensembleanim_imagetext {
	background-repeat: no-repeat;
	background-size: cover;
	background-image: url("../media/the_tailory_ensemble_beschriftung.png");
	background-position: center center;
	position: absolute;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
    transition: opacity 0.3s ease;
}

section#houses .ensemble-wrapper #ensemble-clickable-areas {
	position: absolute;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
}

section#houses .ensemble-wrapper #ensemble-clickable-areas svg > * {
	fill: transparent;
	cursor: pointer;
	/*
	fill: lime;
	fill-opacity: 0.3;
	*/
}

section#houses.photo-open .ensemble-wrapper {
	left: 70%;
}

section#houses .ensemble-wrapper #ensemble-highlight {
	position: absolute;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
}

section#houses .ensemble-wrapper #ensemble-highlight > div {
	position: absolute;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
	opacity: 0;
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center center;
    transition: opacity 0.3s ease;
}

section#houses .ensemble-wrapper #ensemble-highlight > div.highlighted {
	opacity: 1;
}

section#houses.photo-open .ensemble-wrapper #ensemble-highlight > div.highlighted {
	opacity: 0;
}

section#houses.photo-open .ensemble-wrapper #ensemble-highlight > div.active {
	opacity: 1;
}

section#houses .ensemble-wrapper #ensemble-highlight > #taubenstrasse24 {
	background-image: url("../media/the_tailory_ensemble_taubenstrasse24.png");
}

section#houses .ensemble-wrapper #ensemble-highlight > #taubenstrasse25 {
	background-image: url("../media/the_tailory_ensemble_taubenstrasse25.png");
}

section#houses .ensemble-wrapper #ensemble-highlight > #jaegerstrasse33 {
	background-image: url("../media/the_tailory_ensemble_jaegerstrasse33.png");
}

section#houses .ensemble-wrapper #ensemble-highlight > #jaegerstrasse32 {
	background-image: url("../media/the_tailory_ensemble_jaegerstrasse32.png");
}

section#houses .ensemble-wrapper #ensemble-highlight > #jaegerstrasse31 {
	background-image: url("../media/the_tailory_ensemble_jaegerstrasse31.png");
}

section#houses .ensemble-wrapper #ensemble-highlight > #jaegerstrasse27 {
	background-image: url("../media/the_tailory_ensemble_jaegerstrasse27.png");
}

section#houses .ensemble-wrapper #ensemble-highlight > #jaegerstrasse28 {
	background-image: url("../media/the_tailory_ensemble_jaegerstrasse28.png");
}

section#houses .ensemble-wrapper #ensemble-highlight > #oberwallstrasse6 {
	background-image: url("../media/the_tailory_ensemble_oberwallstrasse6.png");
}

section#houses .ensemble-wrapper #ensemble-highlight > #oberwallstrasse7 {
	background-image: url("../media/the_tailory_ensemble_oberwallstrasse7.png");
}

section#houses .ensemble-photos {
	position: absolute;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
	pointer-events: none;
}

section#houses .ensemble-photos > div {
	position: absolute;
	left: var(--maingrid-col02-pos);
	top: 50%;
	transform: translate(0%, -50%);
	width: 30%;
	aspect-ratio: 1/1;
	background-size: cover;
	background-repeat: no-repeat;
	border: 1px solid white;
	transition: opacity 0.3s ease;
	opacity: 0;
}

section#houses .ensemble-photos > div > div {
	position: absolute;
	left: 0;
	top: calc(100% + 1em);
	color: white;
	letter-spacing: 0.25em;
	text-transform: uppercase;
	font-size: var(--font-size-01);
	line-height: 1em;
}

section#houses .ensemble-photos > div.active {
	opacity: 1;
	pointer-events: auto;
	cursor: pointer;
}

section#houses .ensemble-photos > #taubenstrasse24 {
	background-image: url("../media/taubenstrasse24.webp");
}

section#houses .ensemble-photos > #taubenstrasse25 {
	background-image: url("../media/taubenstrasse25.webp");
}

section#houses .ensemble-photos > #oberwallstrasse7 {
	background-image: url("../media/oberwallstrasse7.webp");
}

section#houses .ensemble-photos > #oberwallstrasse6 {
	background-image: url("../media/oberwallstrasse6.webp");
}

section#houses .ensemble-photos > #jaegerstrasse33 {
	background-image: url("../media/jaegerstrasse33.webp");
}

section#houses .ensemble-photos > #jaegerstrasse32 {
	background-image: url("../media/jaegerstrasse32.webp");
}

section#houses .ensemble-photos > #jaegerstrasse31 {
	background-image: url("../media/jaegerstrasse31.webp");
}

section#houses .ensemble-photos > #jaegerstrasse28 {
	background-image: url("../media/jaegerstrasse28.webp");
}

section#houses .ensemble-photos > #jaegerstrasse27 {
	background-image: url("../media/jaegerstrasse27.webp");
}

/* history */

section#history .chart-content > div {
	flex: 1;
	box-sizing: border-box;
}

section#history .chart-content > .headline {
	grid-column: 2 / span 10;
}

section#history .chart-content > .headline .sharp-s {
	font-family: castoro-titling, sans-serif;
	font-weight: 400;
	font-style: normal;
	text-transform: lowercase;
	font-size: 108.1%;
}

section#history .chart-content > .photo-slideshow {
	grid-column: 2 / span 4;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	position: relative;
}

section#history .chart-content > .photo-slideshow > .slide {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-size: cover;
	background-repeat: no-repeat;
}

section#history .chart-content > .text {
	grid-column: 6 / span 5;
	color: var(--color-softwhite);
	hyphens: auto;
	padding-left: calc(var(--grid-gap) * 3);
	line-height: 1.3em;
}

section#history .chart-content .text strong {
	color: #fff;
}

/* siteplan */

section#siteplan {
	background-color: var(--color-blue);
	color: black;
}

section#siteplan .canvas-wrapper {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 100vw;
	aspect-ratio: 1 / 1;
}

@media (orientation: portrait) {
	section#siteplan .canvas-wrapper {
		width: auto;
		height: 100vh;
	}
}

@media (orientation: landscape) and (min-aspect-ratio: 4/3) {
	section#siteplan .canvas-wrapper {
		top: 57.5%;
	}
}

section#siteplan .canvas-wrapper canvas {
	width: 100%;
	height: 100%;
	z-index: 9;
}

section#siteplan .canvas-wrapper .siteplananim_dimmed {
	background-image: url('../media/lageplan/the_tailory_anim_blau.webp');
	background-size: contain;
	background-repeat:  no-repeat;
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	z-index: 9;
}

section#siteplan .canvas-wrapper img {
	z-index: 10;
}

section#siteplan .canvas-wrapper .label-wrapper {
	z-index: 11;
}

section#siteplan .canvas-wrapper .label-wrapper .label {
	position: absolute;
	z-index: 12;
	border-left: 1.5px solid var(--color-blue);
	height: 8%;
}

section#siteplan .canvas-wrapper .label-wrapper .label.short {
	height: 6%;
}

section#siteplan .canvas-wrapper .label-wrapper .label > div {
	position: absolute;
	white-space: nowrap;
	width: auto;
	padding: 0.3em 0.6em;
	background-color: var(--color-blue);
	color: white;
	text-transform: uppercase;
}

section#siteplan .canvas-wrapper .label-wrapper .label > div,
section#siteplan .canvas-wrapper .label-wrapper .label.parking {
	font-size: clamp(8px, 0.6em, 12px);
}

section#siteplan .canvas-wrapper .label-wrapper .public_transportation {
	margin-top: 0.25em;
	margin-bottom: 0.25em;
}

section#siteplan .canvas-wrapper .label-wrapper .label > div .ubahn,
section#siteplan .canvas-wrapper .label-wrapper .label > div .sbahn,
section#siteplan .canvas-wrapper .label-wrapper .label > div .fernverkehr,
section#siteplan .canvas-wrapper .label-wrapper .label > div .fussweg {
	background-repeat: no-repeat;
	background-size: contain;
	background-image: url("../img/ubahn.svg");
	background-position: center center;
	height: 1.85em;
	aspect-ratio: 1 / 1;
	display: inline-block;
	margin-right: 1em;
}

section#siteplan .canvas-wrapper .label-wrapper .label > div .sbahn {
	background-image: url("../img/sbahn.svg");
}

section#siteplan .canvas-wrapper .label-wrapper .label > div .fernverkehr {
	background-image: url("../img/fernverkehr.svg");
	aspect-ratio: 10 / 7.03;
}

section#siteplan .canvas-wrapper .label-wrapper .label > div .fussweg {
	background-size: cover;
	background-image: url("../img/fussweg.svg");
	aspect-ratio: 4 / 6;
}

section#siteplan .canvas-wrapper .label-wrapper .label.parking {
	background-color: var(--color-blue);
	background-repeat: no-repeat;
	background-size: contain;
	width: 2.5em;
	height: 2.5em;
	background-image: url("../img/parken.svg");
	padding: 0;
	margin: 0;
	transform: translate(-50%, -50%);
	border: none;
}

section#siteplan .canvas-wrapper .label-wrapper .label.parking > span {
	position: absolute;
	top: calc(2.5em / 2 + 0.5em);
	left: 0;
	display: block;
	color: var(--color-blue);
	font-weight: 500;
	font-size: 1.5em;
	letter-spacing: -0.05em;
	text-shadow: 0 0 3px white; 
}

section#siteplan .canvas-wrapper .label-wrapper .label.parking.count-top > span {
	top: auto;
	bottom: calc(2.5em / 2 + 0.5em);
}

section#siteplan .canvas-wrapper .label-wrapper .label.upwards > div {
	top: 0;
}

section#siteplan .canvas-wrapper .label-wrapper .label.downwards > div {
	bottom: 0;
}

section#siteplan .canvas-wrapper .label-wrapper .label.rightwards > div {
	left: 0;
}

section#siteplan .canvas-wrapper .label-wrapper .label.leftwards > div {
	right: 0;
}

section#siteplan .canvas-wrapper .label-wrapper .label#the_tailory {
	border-color: var(--color-orange);
}

section#siteplan .canvas-wrapper .label-wrapper .label#the_tailory > div {
	background-color: var(--color-orange);
}

section#siteplan .canvas-wrapper .label-wrapper .label#the_tailory > div > div {
	background-color: var(--color-orange);
	background-repeat: no-repeat;
	background-size: contain;
	background-image: url("../img/the_tailory_logo_white.svg");
	text-indent: -999px;
	overflow: hidden;
	width: 5.5rem;
	aspect-ratio: 9.14 / 1;
	margin: 0.05rem;
}

section#siteplan .canvas-wrapper .labels_wordcloud {
	background-image: url('../media/the_tailory_anim_wordclouds.svg');
	background-size: contain;
	background-repeat:  no-repeat;
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	z-index: 11;
}

section#siteplan ul.subsections {
	position: fixed;
	top: 20%;
	right: -10vw;
	z-index: 199;
	writing-mode: vertical-rl;
}

section#siteplan ul.subsections li {
	font-weight: 500;
	font-size: var(--font-size-01);
	margin-bottom: 1rem;
	text-transform: uppercase;
	display: inline-block;
	border: 1px solid white;
	border-right: none;
	padding: 0.6rem calc(1rem + 10vw) 0.6rem 0.2rem;
	cursor: pointer;
	color: white;
	background-color: var(--color-blue);
}

section#siteplan ul.subsections li.active {
	background-color: var(--color-orange);
}

section#siteplan ul.subsections li:hover {
	cursor: pointer;
}

/* define initital states */

section#siteplan .canvas-wrapper .siteplananim_dimmed,
section#siteplan .canvas-wrapper .labels_parking .label,
section#siteplan .canvas-wrapper .labels_public_transportation .label {
	opacity: 0;
}

/* location */

section#location .text {
	grid-column-start: 3;
	grid-column-end: 11;
	margin-bottom: 2em;
	color: var(--color-softwhite);
	hyphens: auto;
}

section#location .text strong {
	color: #fff;
}

section#location .impressions {
	margin-top: calc(var(--default-section-margin) / 2);
	margin-bottom: calc(var(--default-section-margin));
	grid-column: span 12;
}

section#location .impressions .text {
	text-transform: uppercase;
	color: white;
	margin: 1em 0;
	text-align: center;
	font-size: var(--font-size-01);
	letter-spacing: 0.25em;
	-webkit-hyphens: none;
    -moz-hyphens: none;
    -ms-hyphens: none;
    hyphens: none;
}

section#location .impressions > div {
	grid-column: span 4;
}

section#location .impressions > div > .image {
	width: 100%;
	aspect-ratio: 5 / 4;
	overflow: hidden;
}

section#location .impressions > div > .image > img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* numbers */

section#features {
	margin-top: var(--default-section-margin);
}

section#features .thetailory_logo {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%,-50%);
}

section#features .features {
	row-gap: calc(var(--grid-gap)*4);
}

section#features .features > div {
	grid-column: span 5;
}

section#features .features > div:nth-child(1),
section#features .features > div:nth-child(3),
section#features .features > div:nth-child(5),
section#features .features > div:nth-child(7) {
	grid-column: 3 / span 4;
}

section#features .features > div img {
	width: 100%;
}

section#features .features > div .orange {
	font-size: 2.5rem;
	color: var(--color-orange);
	font-weight: 500;
	letter-spacing: -0.05em;
	font-family: "trajan-pro-3", serif;
	line-height: 1em;
	text-transform: lowercase;
}

section#features .features > div .white {
	color: white;
	letter-spacing: 0.25em;
	text-transform: uppercase;
	font-size: var(--font-size-01);
	line-height: 1em;
}

section#features .features > div .lowercase {
	text-transform: lowercase;
	font-size: 0.6em;
	letter-spacing: 0;
}

/* numbers */

section#numbers .chart-content {
	margin-bottom: 0;
}

section#numbers .chart-content-wrapper {
	display: flex;
	align-items: center;
	height: 100%;
}

section#numbers .headline {
	grid-column: 2 / span 8;
}

section#numbers .numbers {
	grid-column: 1 / span 12;
	row-gap: calc(3 * var(--grid-gap));
	margin-top: calc(var(--default-section-margin)/2);
}

section#numbers .numbers > div {
	text-align: center;
}

section#numbers .numbers > div:nth-child(1),
section#numbers .numbers > div:nth-child(4) {
	grid-column: 3 / span 2;
}

section#numbers .numbers > div:nth-child(2),
section#numbers .numbers > div:nth-child(5) {
	grid-column: 6 / span 2;
}

section#numbers .numbers > div:nth-child(3),
section#numbers .numbers > div:nth-child(6) {
	grid-column: 9 / span 2;
}

section#numbers .numbers > div .number {
	font-size: 3.5rem;
	color: var(--color-orange);
	font-weight: 500;
	letter-spacing: -0.05em;
	font-family: "trajan-pro-3", serif;
}

section#numbers .numbers > div .number .lowercase {
	text-transform: lowercase;
	font-size: 0.6em;
	letter-spacing: 0;
}

section#numbers .numbers > div .label {
	color: white;
	letter-spacing: 0.25em;
	text-transform: uppercase;
	font-size: 0.9rem;
}

/* ensemble */

section#vacancies {
	margin-top: var(--default-section-margin);
}

section#vacancies .chart-content-wrapper {
	height: 100%;
}

section#vacancies .text-container {
	position: absolute;
	top: 4vw;
	left: var(--maingrid-col02-pos);
}

section#vacancies .text-container .headline {
	margin-bottom: 2rem;
}

section#vacancies .text-container .text {
	color: var(--color-softwhite);
}

section#vacancies .ensemble-wrapper {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 100vw;
	aspect-ratio: 1 / 1;
}

@media (orientation: portrait) {
	section#vacancies .ensemble-wrapper {
		width: auto;
		height: 100vh;
	}
}

@media (orientation: landscape) and (min-aspect-ratio: 4/3) {
	section#vacancies .ensemble-wrapper {
		top: 57.5%;
	}
}

section#vacancies .ensemble-wrapper div#ensemble {
	width: 100%;
	height: 100%;
	z-index: 9;
	background-repeat: no-repeat;
	background-size: cover;
	background-image: url("../media/the_tailory_ensemble.jpg");
	background-position: center center;
}

section#vacancies .ensemble-wrapper div#ensembleanim_imagetext {
	background-repeat: no-repeat;
	background-size: cover;
	background-image: url("../media/the_tailory_ensemble_beschriftung.png");
	background-position: center center;
	position: absolute;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
}

section#vacancies .ensemble-wrapper #ensemble-clickable-areas {
	position: absolute;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
}

section#vacancies .ensemble-wrapper #ensemble-clickable-areas svg > * {
	fill: transparent;
	cursor: pointer;
	/*
	fill: lime;
	fill-opacity: 0.3;
	*/
}

section#vacancies .ensemble-wrapper .label-wrapper .label {
	position: absolute;
	z-index: 12;
	border-left: 1.5px solid var(--color-orange);
	height: 15%;
}

section#vacancies .ensemble-wrapper .label-wrapper .label > div {
	position: absolute;
	white-space: nowrap;
	width: auto;
	padding: 0.3em 0.6em;
	background-color: var(--color-orange);
	color: white;
	font-size: clamp(8px, 0.6em, 12px);
	font-size: clamp(12px, 1.2em, 18px);
	font-weight: 500;
	cursor: pointer;
}

section#vacancies .ensemble-wrapper .label-wrapper .label.upwards > div {
	top: 0;
}

section#vacancies .ensemble-wrapper .label-wrapper .label.downwards > div {
	bottom: 0;
}

section#vacancies .ensemble-wrapper .label-wrapper .label.rightwards > div {
	left: 0;
}

section#vacancies .ensemble-wrapper .label-wrapper .label.leftwards > div {
	right: 0;
}

section#vacancies .ensemble-wrapper .label-wrapper .label#taubenstrasse24 {
	left: 63%;
	top: 20%;
}

section#vacancies .ensemble-wrapper .label-wrapper .label#oberwallstrasse7 {
	left: 26%;
	top: 20%;
}

section#vacancies .ensemble-wrapper .label-wrapper .label#oberwallstrasse6 {
	left: 31%;
	top: 35%;
}

section#vacancies .ensemble-wrapper .label-wrapper .label#jaegerstrasse33 {
	left: 43%;
	top: 46%;
}

section#vacancies .ensemble-wrapper .label-wrapper .label#jaegerstrasse32 {
	left: 51%;
	top: 27%;
	height: 21%;
}

section#vacancies .ensemble-wrapper .label-wrapper .label#jaegerstrasse28 {
	left: 61%;
	top: 33%;
}

section#vacancies .ensemble-wrapper .label-wrapper .label#jaegerstrasse27 {
	left: 70%;
	top: 30%;
}

.overlay-container {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.6);
	justify-content: center;
	align-items: center;
	z-index: 200;
}

.overlay {
	position: absolute;
	top: var(--default-margin);
	left: var(--default-margin);
	bottom: var(--default-margin);
	right: var(--default-margin);
	overflow-y: auto;
	background-color: var(--color-orange);
}

.close-overlay {
	position: fixed;
	top: calc(var(--default-margin) + (var(--default-margin) / 2));
	right: calc(var(--default-margin) + (var(--default-margin) /2));
	cursor: pointer;
	width: var(--default-margin);
	aspect-ratio: 1 / 1;
	background-image: url(../img/close.svg);
	background-repeat: no-repeat;
	background-size: cover;
	text-indent: -999px;
	overflow: hidden;
}

.overlay-content {
	padding: 4vw;
}

.overlay-content .location-wrapper,
.overlay-content .location-vacancies-overview {
	grid-column: span 8;
	margin-bottom: 12em;
}

.overlay-content .location-wrapper:last-child {
	margin-bottom: 0;
}

.overlay-content,
.overlay-content .location-wrapper {
	display: grid;
	grid-template-columns: repeat(8, 1fr);
	gap: var(--grid-gap);
}

.overlay-content .location-name,
.overlay-content .headline {
	font-size: var(--font-size-03);
	color: var(--color-blue);
	text-transform: uppercase;
	grid-column: span 8;
	margin-bottom: 1em;
	font-family: "trajan-pro-3", serif;
}


.overlay-content .location-vacancies-overview {
	grid-column: span 8;
	color: var(--color-blue);
}

.overlay-content .location-vacancies-overview .location-vacancies-headline {
	font-size: var(--font-size-02);
	font-weight: 500;
	color: var(--color-blue);
	text-transform: uppercase;
	margin-bottom: 1em;
}

.overlay-content .location-vacancies-group-headline {
	font-size: var(--font-size-02);
	font-weight: 500;
	color: var(--color-blue);
	text-transform: uppercase;
	margin-bottom: 2em;
	margin-bottom: 2em;
	grid-column: span 8;
}

.overlay-content .location-vacancies-overview table {
	width: 100%;
	font-size: var(--font-size-02);
	font-weight: 500;
}

.overlay-content .location-vacancies-overview table thead th {
	text-align: left;
	text-transform: uppercase;
	font-weight: 500;
	color: white;
	margin-bottom: 1em;
	font-size: var(--font-size-01);
	padding-bottom: 0.5em;
}

.overlay-content .location-vacancies-overview table td {
	padding-bottom: 0.125em;
}

.overlay-content .location-vacancies-overview .notice-sign {
	font-weight: 300;
	font-size: 0.85em;
}

.overlay-content .location-vacancies-overview .notice {
	margin-top: 1em;
}

.overlay-content .location-info {
	grid-column: 1 / span 4;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--grid-gap);
}

.overlay-content .location-info > div {
	grid-column: span 2;
	margin-bottom: 1.25em;
}

.overlay-content .location-info .number {
	font-size: var(--font-size-02);
	font-weight: 500;
	color: var(--color-blue);
	margin-bottom: 0.25em;
}

.overlay-content .location-info .label + .number {
	margin-top: 2em;
}

.overlay-content .location-info .label {
	color: white;
	text-transform: uppercase;
	font-weight: 500;
	font-size: var(--font-size-01);
}

.overlay-content .location-features {
	grid-column: 6 / span 3;
}

.overlay-content .location-features ul {
	list-style-type: square;
	padding-left: 1em;
}

.overlay-content .location-features ul li {
	margin-bottom: 0.25em;
}

.overlay-content .location-photos {
	grid-column: 1 / span 8;
	display: grid;
	grid-template-columns: repeat(8, 1fr);
	gap: var(--grid-gap);
	margin-bottom: 4em;
}

.overlay-content .location-photos > div {
	grid-column: span 4;
	aspect-ratio: 4/3;
	overflow: hidden;
}

.overlay-content .location-photos > div img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
}

.overlay-content .location-floorplans {
	grid-column: span 8;
	margin-top: 3em;
}

.overlay-content .location-floorplans img {
	width: 100%;
}

/* contact form */

section#contact a,
section#contact a:hover {
	color: var(--color-orange);
}

section#contact a:hover {
	text-decoration: underline;
}

section#contact .chart-content > .headline {
	grid-column: 2 / span 6;
}

section#contact .chart-content > form {
	grid-column: 2 / span 5;
}

section#contact .chart-content > .text {
	grid-column: 7 / span 4;
	padding-left: 2rem;
}

section#contact .chart-content > form,
section#contact .chart-content > .text,
section#contact label,
section#contact input,
section#contact textarea {
	font-size: var(--font-size-01);
}

section#contact label {
	display: block;
	margin-bottom: 5px;
}

section#contact input[type="text"],
section#contact input[type="email"],
section#contact input[type="tel"],
section#contact textarea {
	width: 100%;
	padding: 10px;
	margin-bottom: 1em;
	border: 1px solid var(--color-softwhite);
	box-sizing: border-box;
	background-color: var(--color-blue-02);
	color: white;
}

section#contact input::placeholder,
section#contact textarea::placeholder,
section#contact input::-webkit-input-placeholder,
section#contact textarea::-webkit-input-placeholder {
	opacity: 1;
	color: white;
}

section#contact input:focus,
section#contact textarea:focus {
    outline: none;
	border-color: var(--color-orange);
}

section#contact textarea {
	height: 100px;
}

section#contact .privacy_policy {
	display: flex;
    align-items: center;
	margin-bottom: 2em;
}

section#contact .privacy_policy > div:first-child {
	flex: 0 0 auto;
	margin-right: 20px;
}

section#contact .privacy_policy > div:last-child {
	flex: 1;
}

section#contact .switch_box > input[type="checkbox"] {
	font-size: 20px;
	-webkit-appearance: none;
	   -moz-appearance: none;
	        appearance: none;
	width: 3em;
	height: 1.5em;
	background-color: var(--color-blue-02);
	border-radius: 3em;
	position: relative;
	cursor: pointer;
	outline: none;
	-webkit-transition: all .2s ease-in-out;
	transition: all .2s ease-in-out;
}

section#contact .switch_box > input[type="checkbox"]:checked {
	background-color: var(--color-blue-02);
}

section#contact .switch_box > input[type="checkbox"]:after {
	position: absolute;
	content: "";
	width: 1.5em;
	height: 1.5em;
	border-radius: 50%;
	background: var(--color-orange);
	-webkit-transform: scale(.7);
	        transform: scale(.7);
	left: 0;
	-webkit-transition: all .2s ease-in-out;
	transition: all .2s ease-in-out;
}

section#contact .switch_box > input[type="checkbox"]:checked:after {
	left: calc(100% - 1.5em);
}

section#contact .form-legend {
	margin-top: 1em;
	margin-bottom: 1em;
}

section#contact #submitButton {
	background-color: var(--color-orange);
	color: white;
	padding: 10px 20px;
	border: none;
	border-radius: 5px;
	cursor: pointer;
}

section#contact #submitButton:disabled {
	background-color: var(--color-blue-02);
	cursor: not-allowed;
}

section#contact #response-message {
	grid-column: 2 / span 10;
	margin-bottom: 1em;
	font-size: var(--font-size-01);
	display: none; /* initial state */
}

/* footer */

footer {
	background-color: var(--color-orange);
	min-height: 40vh;
	position: relative;
	z-index: 0;
}

footer .footer-content {
	padding: 2rem 0;
}

footer .footer-content > div:nth-child(1) {
	grid-column: 2 / span 4;
}

footer .footer-content > div:nth-child(2) {
	grid-column: 8 / span 4;
	position: relative;
}

footer .footer-content > div:nth-child(2) .tailory,
footer .footer-content > div:nth-child(2) .cellsgroup {
	position: absolute;
	top: 0;
	right: 0;
}

footer .footer-content > div:nth-child(2) .cellsgroup {
	top: auto;
	bottom: 0;
}

footer .footer-content .footer-menu {
	margin-top: 2rem;
}

/* imprint and privacy */

.overlay-content .text-body {
	grid-column: 2 / span 6;
}

.overlay-content .text-body h1,
.overlay-content .text-body h2,
.overlay-content .text-body h3,
.overlay-content .text-body h4 {
	font-weight: 500;
	margin-top: 2em;
	margin-bottom: 1em;
	color: var(--color-blue);
	text-transform: uppercase;
}

.overlay-content .text-body h1:first-child,
.overlay-content .text-body h2:first-child,
.overlay-content .text-body h3:first-child,
.overlay-content .text-body h4:first-child {
	margin-top: 0;
}

.overlay-content .text-body p {
	margin-bottom: 1em;
}

.overlay-content .text-body ul {
	margin-bottom: 1em;
	margin-left: 1em;
}

.overlay-content .text-body ul li {
	list-style-type: square;
}

.overlay-content .text-body strong {
	font-weight: 700;
}

/* media queries */

@media only screen and (orientation: portrait) {
	:root {
		--default-section-margin: 10vh;
	}
	.menu_box {
		width: 100%;
	}
}