@font-face {
    font-family: "DemosNextPro";
    src: url("fonts/DemosNextPro/DemosNextPro-Medium.ttf") format("truetype");
}

@font-face {
    font-family: "DemosNextPro";
    font-weight: 400;
    src: url("fonts/DemosNextPro/DemosNextPro-Medium.ttf") format("truetype");
}

@font-face {
    font-family: "DemosNextPro";
    font-weight: 400;
    font-style: italic;
    src: url("fonts/DemosNextPro/DemosNextPro-MediumItalic.ttf") format("truetype");
}

@font-face {
    font-family: "Roboto";
    font-weight: 300;
    src: url("fonts/Roboto/Roboto-Light.ttf") format("truetype");
}

@font-face {
    font-family: "Roboto";
    font-weight: 300;
    font-style: italic;
    src: url("fonts/Roboto/Roboto-LightItalic.ttf") format("truetype");
}


* {
    box-sizing: border-box;
}

body {
    margin: 0;
    transition: opacity ease-in-out 1s;
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
    -khtml-user-select: none; /* Konqueror HTML */
    -moz-user-select: none; /* Old versions of Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none;
}

svg {
    display: block;
}

.wrapper {
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto 140px;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    position: relative;
    transition: background ease-in-out 1s;
}

.detail {
    justify-self: center;
    position: relative;
    display: flex;
    width: 100%;
    padding: 100px;
    height: 100%;
}


.detail:after {
    content: "";
    display: block;
    position: absolute;
    top: unset;
    bottom: calc( -100% + 100px);
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    z-index: 3;

}

.detail:before {
    content: "";
    display: block;
    position: absolute;
    top: calc( -100% + 100px);
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    z-index: 3;

}

.detail-wrapper {
    display: flex;
    position: absolute;
    top: 0;
    opacity: 0;
    left: 0;
    width: 100%;
    min-width: 100%;
    flex-grow: 1;
    z-index: 2;
}

.detail-wrapper.active.hide .detail-wrapper-image {
    top: -100%;
}

.detail-wrapper.active.hide .detail-wrapper-text {
    top: 100%;
}

.detail-wrapper.show {
    opacity: 1;
}


.detail-wrapper.show .detail-wrapper-image {
   top: 0;
}

.detail-wrapper.show .detail-wrapper-text {
    top: 0;
}

.detail-wrapper.active .detail-wrapper-image, .detail-wrapper.active .detail-wrapper-text {
    position: absolute;
    max-width: 50%;
    box-sizing: border-box;
    top: 0;
    transition: top ease .5s;
}

.detail-wrapper .detail-wrapper-image {
    position: absolute;
    max-width: 50%;
    box-sizing: border-box;
    top: -100%;
    transition: top ease .5s;
}

.detail-wrapper .detail-wrapper-text {
    position: absolute;
    max-width: 50%;
    box-sizing: border-box;
    top: 100%;
    transition: top ease .5s;
    height: 100%;
}

.detail-wrapper-text {
    right: 0;
}

.detail-wrapper-image {
    height: 100%;
}

.detail-wrapper.active {
    position: relative;
    opacity: 1;
}

.detail-wrapper h2 {
    font-family: "DemosNextPro", serif;
    color: #000000;
    font-size: 33px;
    font-weight: 400;
    font-style: normal;
    margin: 60px 0 20px 0;
}

.detail-wrapper h2:first-of-type {
    margin-top: 0;
}

.detail-wrapper p {
    font-family: "Roboto", serif;
    color: #171A1C;
    font-size: 20px;
    line-height: 28px;
    font-weight: 300;
    font-style: normal;
    margin: 0 0 10px 0;
    transition: opacity ease-in-out 1s;
}

.detail-wrapper-text {
    padding: 0 0 0 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.detail-wrapper p.en, .detail-wrapper h2.en {
    font-style: normal;
    color: #6F6F6F;
}

.detail-wrapper-image {
    width: 810px;
    padding: 0 140px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.detail-wrapper-image img {
    width: 100%;
    height: auto;
}

.detail-wrapper-divider {
    width: 1px;
    height: 645px;
    background-color: #004899;
    align-self: center;
    position: absolute;
    left: 50%;
}


.detail-wrapper .caption {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 0;
}

.caption .en {
    font-style: italic;
}

.tabs {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 87%;
    padding: 0 40px;
    flex-grow: 1;
    position: absolute;
    left: 0;
    bottom: 40px;
    z-index: 999;
    transition: opacity ease-in-out 1s;
}

.tab {
    width: 100px;
    height: 100px;
    border-radius: 100px;
    background-color: #757575;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 20px;
    z-index: 999;
}

.tab:hover {
    cursor: pointer;
}

.tab svg {
    max-width: 63px;
}

.tab[data-id='stiftung'] svg {
    max-width: unset;
}

.tab[data-id='kurswappen'] svg {
    max-width: 55px;
    margin-top: 8px;
}

.tab svg path {
    fill: #ffffff;
}

.tab.active {
    background-color: #004899;
    pointer-events: none;
}

.tab span {
    position: absolute;
    bottom: -28px;
    color: #757575;
    font-size: 16px;
    font-family: Roboto;
    font-weight: 300;
}

.tab.active span {
    color: #004899;
}

/* HANDLES */

.handles {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    padding: 0 40px;
    flex-grow: 1;
    align-self: start;
    z-index: 99;
}

.handles--movie {
    width: 100px;
    height: 100px;
    border-radius: 100px;
    background-color: #004899;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.handles--marks {
    width: 100px;
    height: 100px;
    border-radius: 100px;
    background-color: #004899;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    right: 40px;
    bottom: 40px;
    z-index: -1;
}

.handles--marks svg {
    max-width: 55px;
    margin-top: 8px;
}

/* VIDEO */

.video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    z-index: -1;
    opacity: 0;
    transition: opacity ease-in-out 1s;
}

.curtainVideo {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: transparent;
    transition: background-color ease-in-out 1s;
}


