/*
Fonts
==================================================
*/
/* <editor-fold desc="Fonts"> */
@font-face {
    font-family: 'Montserrat';
    font-style: italic;
    font-weight: 100 900;
    font-display: swap;
    src: url(../font/Montserrat-latin-italic.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url(../font/Montserrat-latin.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* </editor-fold> */


/*
Reset
==================================================
*/
/* <editor-fold desc="Reset"> */
* {
    margin: 0;
    padding: 0;
}
/* </editor-fold> */


/*
Variablen
==================================================
*/
/* <editor-fold desc="Variablen"> */
html {
    background: #eaf7fd;

    --bg: #fff;
    --color-whitebtn: #3881c4;

    --size-bubble: min(93vw, 100vh, 37.5rem);
    --gap-bubble: 10vw;
    --scale-overlay: 1;
    --size-backbtn: 10rem;

    --transparent-after-intro: 1;
    --opaque-after-intro: 0;
}
.intro-after {
    --transparent-after-intro: 0;
    --opaque-after-intro: 1;
}
.bg-blue {
    --bg: #5692ce;
}
.bg-violet {
    --bg: #a4167f;
}
.bg-lime {
    --bg: #aabf22;
}
.bg-red {
    --bg: #d2001f;
}
.bg-green {
    --bg: #10350d;
}
/* </editor-fold> */


/*
Hauptbereiche
==================================================
*/
/* <editor-fold desc="Hauptbereiche"> */
html:not(.anim-ready) * {
    transition: none !important;
    visibility: hidden;
}
html.view-details {
    overflow: hidden;
}
body {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.125rem;
    line-height: 1.7;
    background: url(/wp-content/uploads/2025/02/skyline.svg);
}
body.et_cover_background {
    background-size: contain !important;
    background-position: center 100% !important;
}
article {
    overflow: hidden;
}
section {
    display: flex;
    flex-direction: column;
}
/* </editor-fold> */


/*
Grundeinstellungen
==================================================
*/
/* <editor-fold desc="Grundeinstellungen"> */
.et_builder_inner_content, .et_pb_column {
    z-index: auto;
}
.et_pb_section {
    background: none;
}
.bubble, .detail-content {
    color: #fff;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin: 0;
    padding-bottom: 0.75em;
    text-transform: uppercase;
    color: inherit;
}

h1, .detail-content h2 {
    font-size: 3.75rem;
}
h2 {
    font-size: 2.5rem;
    margin-top: 0;
}
/* </editor-fold> */


/*
Links, Buttons
==================================================
*/
/* <editor-fold desc="Links, Buttons"> */
a:link, a:visited {
    transition: 0.5s;
    text-decoration: underline;
    color: inherit;
}
.btn-skip-intro,
.bubble p:last-child a,
.detail-content .et_pb_column_1_2 p:last-child a,
.detail-content .et_pb_column_1_4:first-child a {
    font-size: inherit;
    font-weight: 600;
    display: inline-block;
    margin-top: 1em;
    padding: 0.6em 1em;
    text-decoration: none;
    text-transform: uppercase;
    border: 1px solid transparent;
    border-radius: 1.5em;
}

.bubble p:last-child a {
    padding-right: 2.5em;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960" fill="%23ffffff"><path d="m321-80-71-71 329-329-329-329 71-71 400 400L321-80Z"/></svg>') no-repeat calc(100% - 0.6em) 50%;
    background-size: 1.4em;
}
.bubble p:last-child a:is(:hover, :focus) {
    border-color: currentColor;
}

.btn-skip-intro,
.detail-content .et_pb_column_1_2 p:last-child a {
    color: var(--color-whitebtn);
    background: #fff;
    box-shadow: 0 20px 30px #00000029;
}

.detail-content .et_pb_column_1_4:first-child a {
    border-color: currentColor;
    border-radius: 50%;
    text-align: center;
    padding-top: 2rem;
    width: var(--size-backbtn);
    height: var(--size-backbtn);
    margin: 0 0 calc(-1 * var(--size-backbtn) / 3);
}
.detail-content .et_pb_column_1_4:first-child a:is(:hover, :focus) {
    background: #fff;
    color: var(--color-whitebtn);
}
/* </editor-fold> */


/*
Intro
==================================================
*/
/* <editor-fold desc="Intro"> */
.btn-skip-intro {
    position: fixed;
    bottom: 30px;
    left: 50%;
    cursor: pointer;
    transform: translateX(-50%);
}

.transparent-after-intro {
    transition: 0.5s;
    opacity: var(--transparent-after-intro);
}
.opaque-after-intro {
    transition: 0.5s;
    opacity: var(--opaque-after-intro);
}
/* </editor-fold> */


/*
3d-iFrame
==================================================
Der 3d-iFrame liegt komplett über dem normalen Content, muss daher "durchklickbar" sein.
Je nach Anforderung kann er natürlich auch unter dem Content oder irgendwo in der Mitte liegen.
Es ist nur zu beachten, dass das komplette 3d in einer "flachen" Ebene stattfindet.
Ein Content kann also nicht gleichzeitig 3d-Objekte vor und hinter sich haben.
Dafür wäre es noch denkbar, mit mehreren 3d-iFrames zu arbeiten - das wird aber schnell sehr komplex und ist auch bzgl. Performance vmtl. nicht so gut.
*/
/* <editor-fold desc="3d-iFrame"> */
#application-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    transition: 0.5s 0.5s;
    pointer-events: none;
    border: none;
}
#application-canvas:not(.act) {
    opacity: 0;
}

#application-splash-wrapper {
    display: none;
}
/* </editor-fold> */


/*
Bubbles
==================================================
*/
/* <editor-fold desc="Bubbles"> */
.wrap-bubble {
    min-height: 100vh;
}
.wrap-bubble:not(.animate-in) {
    visibility: hidden;
}
.wrap-bubble:not(.intersecting-50, .intersecting-75, .intersecting-100) .bubble {
    transform: var(--trans-reveal);
}
.wrap-bubble:not(.intersecting-50, .intersecting-75, .intersecting-100).at-top .bubble {
    transform: var(--trans-leave);
}

.bubble {
    position: fixed;
    top: calc(50% - var(--size-bubble) / 2);
    left: 0;
    width: var(--size-bubble);
    height: var(--size-bubble);
    margin: 0 3vw;
    transition: 1s;
    border-radius: 50%;
    background-color: var(--bg);
    --trans-reveal: translateY(100vh);
    --trans-leave: translateY(-100vh);
}
.r {
    right: 0;
    left: auto;
    align-self: flex-end;
}

/* "Bubble-Reveal-Positionierung */
.reveal-t {
    --trans-reveal: translateY(-100vh);
}
.reveal-l {
    --trans-reveal: translateX(-100vw);
}
.reveal-r {
    --trans-reveal: translateX(100vw);
}
.leave-b {
    --trans-leave: translateY(100vh);
}
.leave-l {
    --trans-leave: translateX(-100vw);
}
.leave-r {
    --trans-leave: translateX(100vw);
}

/* "Runder" Text in den Bubbles */
.bubble .et_pb_text_inner {
    position: relative;
    width: 100%;
    height: 100%;
    margin: auto;
    text-align: center;
}
.bubble .et_pb_text_inner:before, .bubble:before {
    width: 50%;
    height: 100%;
    content: "";
    shape-margin: 7%;
}
.bubble:before {
    float: left;
    shape-outside: polygon(0 0, 98% 0, 50% 6%, 23.4% 17.3%, 6% 32.6%, 0 50%, 6% 65.6%, 23.4% 82.7%, 50% 94%, 98% 100%, 0 100%);
}
.bubble .et_pb_text_inner:before {
    float: right;
    shape-outside: polygon(2% 0%, 100% 0%, 100% 100%, 2% 100%, 50% 94%, 76.6% 82.7%, 94% 65.6%, 100% 50%, 94% 32.6%, 76.6% 17.3%, 50% 6%);
}

/* Bubble-Content */
.bubble .et_pb_text_inner > *:first-child {
    padding-top: 20%;
}

/* Bubble-Übergangsanimation zu Detailseiten */
.bubble:after {
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    width: 100%;
    height: 100%;
    content: "";
    transition: 1s;
    transform: translate(-50%, -50%) scale(var(--scale-overlay));
    transform-origin: center;
    border-radius: 50%;
    background: inherit;
    z-index: -1;
}
.bubble.act {
    --scale-overlay: 6;
}
/* </editor-fold> */


/*
Detailseiten
==================================================
*/
/* <editor-fold desc="Detailseiten"> */
.detail-content {
    position: fixed;
    top: 0;
    left: 0;
    overflow-y: auto;
    width: 100%;
    height: 100%;
    background-color: var(--bg);
    padding-bottom: 0;
    display: flex;
    flex-direction: column;
}
.detail-content:not(.act) {
    pointer-events: none;
    opacity: 0;
}
.detail-content {
    transition: 1.5s;
}

.detail-content .et_pb_row {
    margin: 0 auto;
}
.detail-content .et_pb_row_4col:last-child {
    padding-bottom: 0;
    margin-top: auto;
}
/* Detailseiten-Content */
.detail-content .et_pb_column_1_2 img {
    margin-left: -27%;
}
.detail-content .et_pb_column_1_4:first-child {
    height: 100%;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}
.detail-content .et_pb_column_1_4 img {
    aspect-ratio: 2;
    object-fit: cover;
    border-radius: 12em 12em 0 0;
}

/* </editor-fold> */