/**
 GLOBALE VARIABLEN
 */
 :root {
    --border-radius: 5px;
}

@font-face {
    font-family: 'SiemensSans';
    font-style: bold;
    font-weight: 600;
    src: local(''),
        url('../assets/fonts/SiemensSans_Prof_Bold.woff2') format('woff2'),
        url('../assets/fonts/SiemensSans_Prof_Bold.woff') format('woff');
}
@font-face {
    font-family: 'SiemensSans';
    font-style: normal;
    font-weight: 400;
    src: local(''),
        url('../assets/fonts/SiemensSans_Prof_Roman.woff2') format('woff2'),
        url('../assets/fonts/SiemensSans_Prof_Roman.woff') format('woff');
}

html, body {
    margin: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #000;
    font-family: 'SiemensSans';
}

.nav-hidden {
    display: none;
}

.blurred {
    filter: blur(5px);
}

/* Start screen */
#startscreen {
    background-color: rgba(0, 0, 0, 0.6);
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 999;
    color:var(--quaternary-color);
    background-image: url('../assets/startscreen_title.png');
    background-position: center bottom;
    background-repeat: no-repeat;
    background-size: 100% auto;
}
#startscreen-logo {
    position: absolute;
    top: 39px;
    right: 38px;
    width: 198px;
}
#startscreen-content {
    position: absolute;
    bottom: 67px;
    left: 94px;
}
#startscreen-content h1 {
    font-size: 59px;
    margin: 0;
    line-height: 1.3;
    letter-spacing: -1.5px;
}
#startscreen-content p {
    font-size: 27px;
    margin: 0;
    letter-spacing: 0.54px;
}

/* Overlays */
#mapoverlay, #infooverlay, #helpoverlay, #infosolution {
    position: absolute;
    top: 0px;
    right: 0px;
    bottom: 0px;
    left: 0px;
    z-index: 100;
}
#mapoverlay {
    margin: 10px;
    background-color: #ffffff;
    background-image: url('../assets/uebersicht.jpg');
    background-position: center 35px;
    background-repeat: no-repeat;
    background-size: 100% auto;
    aspect-ratio: calc(1920 / 952);
    bottom: auto;
    left: auto;
    width: 80%;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.6);
}
.mapmenu {
    background-color: #ffffff;
    text-align: right;
}
button.btnclose {
    background-color: var(--primary-color);
    color: var(--tertiary-color);
    border: none;
    height: 30px;
    width: 30px;
    margin: 3px;
    cursor: pointer;
    font-weight: bold;
}
#infooverlay, #helpoverlay, #infosolution {
    background-color: rgba(0, 0, 0, 0.4);
    background-position: center bottom;
    background-repeat: no-repeat;
    background-size: 100% auto;
    cursor: pointer;
}
#infooverlay {
    background-image: url('../assets/pokal.png');
}
#helpoverlay {
    background-color: var(--tertiary-color);
    background-image: url('../assets/help.jpg');
}
#infosolution {
    background-color: var(--tertiary-color);
    background-image: url('../assets/info_solution.png');
}
/* Menu */
#menu {
    z-index: 50;
    position: absolute;
    top: 10px;
    right: 10px;
}
#menu .icon {
    cursor: pointer;
    padding: 2px;
    width: 38px;
    height: 38px;
    margin-bottom: 5px;
    background: var(--primary-secondary-gradient);
}

#togglemap2 img, #menu .icon img {
    cursor: pointer;
    pointer-events: none;
}


#togglehelp.btnclose {
    position: absolute;
    right: 10px;
    top: 10px;
    pointer-events: none;
}

/*
#togglescenes, #togglemode {
    position: absolute;
    bottom: 30px;
    background-color: var(--primary-color);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    z-index: 8;
    display: flex;
    justify-content: space-around;
    align-items: center;
    color: #000000;
    font-size: 40px;
    cursor: pointer;
    display: none;
}
#togglescenes {
    left: calc(50% - 65px);
}
#togglemode {
    left: calc(50% + 5px);
}
#togglescenes img, #togglemode img {
    width: 25px;
    height: auto;
    pointer-events: none;
}
*/

#togglefootermenu {
    position: absolute;
    bottom: 30px;
    background-color: var(--primary-color);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    z-index: 8;
    display: flex;
    justify-content: space-around;
    align-items: center;
    color: #000000;
    font-size: 40px;
    cursor: pointer;
}
#togglefootermenu {
    left: calc(50% - 30px);
}
#togglefootermenu img {
    width: 40px;
    height: auto;
    pointer-events: none;
}
#nav-titles {
    position: absolute;
    opacity: 0;
    transition-duration: 500ms;
}
#nav-titles.active {
    opacity: 1;
    text-shadow: 0 0 3px #000000;
}
#nav-titles .nav-title {
    color: #ffffff;
}
#nav-titles .nav-title:nth-child(1) {
    transform: translateX(-140px) translateY(-151px) rotate(-40deg)
}
#nav-titles .nav-title:nth-child(2) {
    transform: translateX(-63px) translateY(-195px) rotate(0deg);
}
#nav-titles .nav-title:nth-child(3) {
    transform: translateX(33px) translateY(-179px) rotate(40deg);
}




#textoverlay {
    position: absolute;
    color: var(--quaternary-color);
    font-size: 34px;
    font-weight: bold;
    text-align: center;
    top: 60px;
    right: 10%;
    left: 10%;
    text-shadow: 0 0 10px rgba(0,0,0,0.9);
    opacity: 1;
}
#textoverlay.hidden {
    opacity: 0;
}

#scenetitle {
    display: none;
    position: absolute;
    left: 10px;
    top: 10px;
    display: inline-block;
    background-color: var(--primary-color-semitransparent);
    color: var(--quaternary-color);
    padding: 6px;
    font-size: 20px;
}

/* Scene selector */
#sceneselector {
    background-color: var(--primary-color);
    position: absolute;
    bottom: 20px;
    left: calc(50% - 515px);
    width: 1030px;
    height: 155px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 5px;
    border-radius: var(--border-radius);
    transition-duration: 0.5s;
    z-index: 10;
}
#sceneselectorhandle {
    position: absolute;
    width: 40px;
    height: 40px;
    top: -30px;
    color: var(--quaternary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: var(--primary-secondary-gradient);
    border-radius: 50%;
}
#sceneselectorhandle img {
    width: 30px;
    height: auto;
    pointer-events: none;
    transform: rotate(45deg);
}
#sceneselector.hidden {
    bottom: -100%;
}
#sceneselector .scene {
    position: relative;
    background: var(--quaternary-color);
    width: 140px;
    height: 140px;
    background-size: 100% 100%;
    transition-duration: 0.5s;
    background-position: center center;
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
}
#sceneselector .scene .scene-bg {
    width: 100%;
    height: 100%;
    transition-duration: 0.5s;
    transform: rotate(0deg) scale(1.05);
    background-size: 100% 100%;
}
#sceneselector .scene:hover .scene-bg {
    transition-duration: 0.2s;
    transform: rotate(5deg) scale(1.10);
}
#sceneselector .scene h2 {
    color: var(--primary-color);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 0;
    left: 0;
    background-color: var(--quaternary-color);
    text-align: center;
    margin: 0;
    padding: 5px;
    font-size: 20px;
    opacity: 1;
    transition-duration: 0.5s;
    display: none;
}
#sceneselector .scene:hover h2 {
    opacity: 1;
}

#scenetooltip {
    z-index: 999;
    position: absolute;
    top: calc(var(--mouse-y, 0) * 100%);
    left: calc(var(--mouse-x, 0) * 100%);
    min-width: 100px;
    max-width: 130px;
    min-height: 10px;
    background-color: white;
    color: var(--primary-color);
    overflow: hidden;
    transform: translateX(-50%) translateY(-110%);
    border-radius: 4px;
    padding: 4px 6px;
    text-align: center;
    font-weight: bold;
    box-shadow: 0 0 5px #000;
}
#scenetooltip.hidden {
    display: none;
}

#sceneselector .scene.active {
    opacity: 1;
    outline: 3px solid var(--tertiary-color);
}

/* Progressbar */
#progressbar {
    position: absolute;
    top: 50%;
    left: calc(50% - 125px);
    z-index: 10;
    width: 250px;
    height: 20px;
    border: 1px solid var(--primary-color);
}
#progressbar-inner {
    width: 50%;
    height: 100%;
    background-color: var(--primary-color);
}


/* Tooltips */
.switchspot-tooltip, .infospot-tooltip {
    background: var(--tertiary-color);
    color: #ffffff;
    width: 320px;
    border-bottom: 5px solid var(--tertiary-color);
    display: none;
}
.switchspot-tooltip {
    margin-top: 65px;
    min-height: 180px;
}
.infospot-tooltip {
    padding: 20px;
    min-height: 160px;
}
.infospot-tooltip h2 {
    margin: 0 0 10px;
}
.infospot-tooltip p {
    margin: 0;
}
.infospot-button {
    margin: 15px 0 0 0;
    display: inline-block;
    background: linear-gradient(60deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 10px 30px;
    font-weight: bold;
    color: #000000;
    text-decoration: none;
}
.infospot-button:hover {
    background: var(--primary-color);
}
body.vr .infospot-button {
    display: none;
}
.switchspot-tooltip:after, .infospot-tooltip:after {
	top: 100%;
	left: 50%;
	border: solid transparent;
	content: " ";
	height: 0;
	width: 0;
	position: absolute;
	pointer-events: none;
	border-color: rgba(255, 255, 255, 0);
	border-top-color: var(--tertiary-color);
	border-width: 20px;
	margin-left: -20px;
}



.minipano-overlay {
    position: absolute;
    top: 2px;
    right: 2px;
    bottom: 2px;
    left: 2px;
}
.minipano-title {
    margin: 0;
    padding: 6px 3px;
    background-color: var(--primary-color-semitransparent);
    display: inline-block;
    font-weight: bold;
    font-size: 18px;
}
.minipano-subtitle {
    margin: 0;
    padding: 3px;
    background-color: rgba(255,255,255,0.8);
    display: inline-block;
    font-size: 16px;
    color: #000000;
}




#footermenu {
    position: absolute;
    bottom: 20px;
    left: calc(50% + 20px);
    transform: translateX(-50%);
}

#footermenu ul {
    list-style-type: none;
}

#footermenu .footermenu-item {
    position: absolute;
    bottom: 0px;
    right: 0px;
    z-index: -1;
    display: block;
    text-decoration: none;
    color: #000000;
    font-size: 1em;
    width: 83px;
    height: 76px;
    text-align: center;
    line-height: 55px;
    background-color: var(--primary-color);
    -webkit-transition: transform 0.3s ease-out, opacity 1s ease;
    -moz-transition: transform 0.3s ease-out, opacity 1s ease;
    -o-transition: transform 0.3s ease-out, opacity 1s ease;
    transition: transform 0.3s ease-out, opacity 1s ease;
    clip-path: url(#clippath);
    opacity: 0;
    transform: scale(0.5);
    cursor: pointer;
}
#footermenu .footermenu-item:hover {
    background-color: var(--secondary-color);
}
#footermenu .footermenu-item img {
    height: 30px;
    padding-top: 25%;
    pointer-events: none;
}

#footermenu.active .footermenu-item {
    transition-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#footermenu.active .footermenu-item:nth-child(2) {
    transform: translate3d(0,-75px,0);
    opacity: 1;
}

#footermenu.active .footermenu-item:nth-child(1),
#footermenu.active .footermenu-item:nth-child(3) {
    animation-duration: 0.5s;
    animation-delay: 0.2s;
    animation-fill-mode: forwards;
    animation-timing-function: ease-in-out;
    opacity: 1;
    transform: translate3d(0,-75px,0);
}

#footermenu.active .footermenu-item:nth-child(1) {
    animation-name: firstchild;
}

#footermenu.active .footermenu-item:nth-child(3) {
    animation-name: lastchild;
}

@keyframes firstchild {
    0% {
        opacity: 0;
        transform: translate3d(0,-75px,0);
    }
    50% {
        opacity: 0;
    }
    100% {
        opacity: 1;
        transform: translate3d(-3.5em,-53px,0) rotate(-41deg);
    }
}

@keyframes lastchild {
    0% {
        opacity: 0;
        transform: translate3d(0em,-75px,0);
    }
    50% {
        opacity: 0;
    }
    100% {
        opacity: 1;
        transform: translate3d(3.53em,-53px,0) rotate(41deg);
    }
}