@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100;0,300;0,600;0,700;1,100;1,300;1,700&display=swap');

:root {

    --color-id-oyster: rgb(242, 239, 234);
    --color-id-perla: rgb(230, 226, 217);
    --color-id-urban-grey: rgb(58, 64, 56);
    --color-id-cobalt: rgb(0, 30, 52);
    --color-id-accent: rgb(229, 133, 46);

    --color-default-bg: var(--color-id-oyster);
    --color-default-fg: var(--color-id-urban-grey);

    --header-height: 110px;
    --spacer-small: 2rem;
    --spacer-medium: 4rem;
    --spacer-large: 8rem;
    --focus-outline: 2px solid var(--color-id-accent);
    --focus-outline-offset: 2px;
}

*, *:before, *:after {
    box-sizing: border-box;
}
html, body {
    padding: 0;
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    line-height: 1.7;
    background: var(--color-default-bg);
    color: var(--color-default-fg);
}

*:focus-visible {
    outline: var(--focus-outline);
    outline-offset: var(--focus-outline-offset);
}

#scrollcontent {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden !important;
}
#scrollcontent > * {
    width: 100%;
}
#scrollcontent:before, #scrollcontent:after {
    content: '';
    display: block;
    clear: both;
}
html, body, .page {
    height: 100%;
    width: 100%;
}

html, body, .page {
    position: unset;
    overflow: unset;
}

p {
    margin-top: 0;
}

#menupanel {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    color: var(--color-id-urban-grey);
    overflow: auto;
}
#menupanel .closeicon {
    position: fixed;
    top: 1rem;
    right: 1rem;
}
#menupanel .backdrop {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    overflow: hidden;
}
#menupanel .backdrop > * {
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    aspect-ratio: 1/1;
    min-width: 150%;
    min-height: 150%;
    background: var(--color-id-perla);
    pointer-events: none;
    border-bottom-left-radius: 100%;
    box-shadow: 0 0 100px rgba(0,0,0,0.15);
}
#menupanel .content {
    position: relative;
    margin: 0 auto;
    max-width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    min-height: 100%;
    padding:  4rem 1.5rem 4rem 1.5rem;
    width: auto;
}
#menupanel .content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
#menupanel .content ul a {
    text-decoration: none;
    color: inherit;
    font-weight: 700;
    font-size: min(36px, 6vw);
    padding: 0.25em;
    display: block;
}
#menupanel .content ul li.is-active a {
    color: var(--color-id-accent);
    position: relative;
}
#menupanel .content ul li.is-active a:before {
    content: '';
    display: block;
    position: absolute;
    top: 50%;
    right: 100%;
    height: 0.7em;
    background: currentColor;
    left: -100vw;
    margin-right: 0.2em;
    transform: translateY(-50%);
}

.is-menupanel #menupanel { display: block; }


.closeicon:before, .menuicon:before {
    content: '';
    width: 0;
    height: 0;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: var(--color-id-accent);
    border-radius: 100%;
    pointer-events: none;
    transition: opacity 1s;
    opacity: 0;
    animation-duration: 2s;
    animation-iteration-count: infinite;
    animation-direction: alternate;
    animation-fill-mode: both;
    animation-timing-function: ease-in-out;
    animation-name: iconspot;
}
@media(hover:hover){
    .closeicon:hover:before, .menuicon:hover:before {
        opacity: 0.5;
    }
}
@keyframes iconspot {
    0% {
        width: 40%;
        height: 40%;
    }
    100% {
        width: 90%;
        height: 90%;
    }
}

.contact-sticky-link {
    display: none;
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    text-decoration: none;
    z-index: 10;
}
.contact-sticky-link > span {
    font-size: 0.8rem;
    font-weight: bold;
    width: 4em;
    height: 4em;
    border-radius: 100em;
    background: transparent;
    color: var(--color-id-accent);
    border: 2px solid var(--color-id-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.contact-sticky-link > span > svg {
    width: 2em;
    height: 2em;
}
.contact-sticky-link > span, .contact-sticky-link > span > span, .contact-sticky-link > span > svg {
    transition: all 0.5s;
    transform-style: preserve-3d;
}
@media(hover:hover){
    .contact-sticky-link:hover > span {
        color: #fff;
        background: var(--color-id-accent);
        transform: rotateY(180deg);
    }
    .contact-sticky-link:hover > span > span, .contact-sticky-link:hover > span > svg {
        transform: rotateY(-180deg);
    }
}
form .control {
    position: relative;
}
form .control .label {
    display: table;
    background: var(--color-id-urban-grey);
    color: var(--color-id-perla);
    padding: 0.2em 1em;
    border-radius: 10em;
    font-size: 12px;
    font-weight: bold;
    transform: translate(1em, 50%);
}
form .control .label.label-required:after {
    content: '';
    display: inline-block;
    vertical-align: super;
    width: 6px;
    height: 6px;
    border-radius: 100px;
    background: var(--color-id-accent);
    margin-left: 0.5em;
}

input,textarea,select {
    font: inherit;
    font-size: 16px;
    line-height: 1.5;
    font-weight: normal;
    box-shadow: none;
    border-radius: 0;
    padding: 1em;
    border: 1px solid currentColor;
    background: transparent;
    color: inherit;
    width: 100%;
    margin-bottom: 1em;
    
}
input,textarea,select {
    background: linear-gradient(transparent, transparent);
}
input:focus,textarea:focus,select:focus {
    background: linear-gradient(currentColor -100000%, transparent 8000%);
}
textarea {
    min-height: 9em;
}
input[type="checkbox"],input[type="radio"] {
    width: auto;
}

input[type="radio"] {
    opacity: 0;
}
input[type="radio"],
input[type="radio"] ~ label > svg.radio-off,
input[type="radio"] ~ label > svg.radio-on {
    position: absolute;
    left: 0;
    top: 0.25em;
    width: 1em;
    height: 1em;
    margin: 0;
}
input[type="radio"]:checked ~ label > svg.radio-off,
input[type="radio"]:not(:checked) ~ label > svg.radio-on {
    display: none;
}
input[type="radio"] ~ label {
    padding-left: 1.5em;
    cursor: pointer;
}
input[type="radio"]:focus-visible ~ label > svg {
    outline: var(--focus-outline);
    outline-offset: var(--focus-outline-offset);
}


.button-icon {
    position: relative;
    width: 2em;
    height: 2em;
    padding: 0;
    margin: 0;
    box-shadow: none;
    border: none;
    background: transparent;
    color: inherit;
    cursor: pointer;
    
}
.button-icon > svg {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
}

.header {
    position: fixed;
    z-index: 100;
    width: 100%;
    height: var(--header-height);
    color: #fff;
    background: var(--color-id-cobalt);
}
.header .logo {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translate(-50%, 0);
}
.header .logo img {
    display: block;
    max-width: 200px;
    margin: 0 auto;
}
.header .nav-main {
    position: absolute;
    left: 50%;
    top: 65px;
    transform: translate(-50%,0);
}
.header .nav-lang {
    position: absolute;
    right: 10px;
    top: 10px;
}
.header .nav-lang li:not(.is-active) {
    font-weight: 300;
}
.header .nav-lang a {
    padding-left: 0.5em;
    padding-right: 0.5em;
}
.header .nav-lang a > span {
    border-bottom: 3px solid transparent;
    border-top: 3px solid transparent;
}
.header .nav-lang li.is-active a > span {
    border-bottom-color: var(--color-id-accent);
}
.header nav {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-indent: 0.1em;
}
.header nav ul {
    height: 40px;
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: row;
}
.header nav li {
    position: relative;
}
.header nav a {
    height: 100%;
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 1em;
    text-decoration: none;
    color: inherit;
    white-space: nowrap;
}
.header nav a > span {
    position: relative;
    z-index: 2;
}
.header nav a:before {
    content: '';
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: var(--color-id-accent);
    border-radius: 100%;
    pointer-events: none;
    transition: opacity 2s, width 1s, height 1s;
    opacity: 0; 
    width: 0;
    height: 0;
}
@media(hover:hover){
    .header nav li:not(.is-active) a:hover:before {
        opacity: 0.4;
        width: 3em;
        height: 3em;
    }
}

.header .nav-main li.is-active:before,
.header .nav-main li.is-active:after {
    content: '';
    display: block;
    position: absolute;
    z-index: 1;
    height: 1em;
    border-left: 2px solid var(--color-id-accent);
    transform: rotate(24deg);
}
.header .nav-main li.is-active:before {
    left: 50%;
    top: 0;
    transform-origin: bottom left;
    margin-left: 0.3em;
}
.header .nav-main li.is-active:after {
    left: 50%;
    bottom: 0;
    transform-origin: top left;
    margin-left: -0.3em;
}
.header .nav-lang {
    margin-left: auto;
}
.header .menuicon {
    display: none;
    position: absolute;
    top: 1.25em;
    right: 1.25em;
}

@media(max-width: 1100px){
    body {
        --header-height: 60px;
    }
    .header .logo img {
        max-width: 150px;
    }
    .header .nav-main {
        display: none;
    }
    .header .nav-lang {
        right: 60px;
    }
    .header .menuicon {
        display: block;
    }
}
@media(max-width: 500px){
    .header .logo {
        left: 15px;
        transform: none;
    }
    .header .logo img {
        max-width: 125px;
    }
}

.header {
    max-height: var(--header-height);
}
.page.tpl-hero .header {
    transition: max-height 0.5s 0.7s;
}
.page.tpl-hero .header > * {
    transition: all 0.7s ease-out;
}
body:not(.is-scrolled) .page.tpl-hero .header {
    position: absolute;
    max-height: 0px;
}
body:not(.is-scrolled) .page.tpl-hero .header .logo {
    top: -100px;
}
body:not(.is-scrolled) .page.tpl-hero .header .nav-main {
    top: 10px;
}
body .hero .scrolltip {
    z-index: 1; 
    position: absolute;
    bottom: 1em;
    left: 50%;
    margin: 0;
    margin-left: -1.2em;
    transform-origin: center;
    transition: all 0.5s;
}
body.is-scrolled .hero .scrolltip {
    transform: scale(0);
    opacity: 0;
}

.section-lead:first-child {
    margin-top: var(--header-height);
    font-size: min(5vw, 1.5rem);
    max-width: 800px;
    padding-top: var(--spacer-medium);
    margin-bottom: var(--spacer-large);
    
    
    padding-top: calc(var(--header-height) + var(--spacer-medium));
    margin-top: 0;
    
}

.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
    color: #fff;
}
.hero > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.hero > .content {
    padding: 1.5em;
    position: absolute;
    top: var(--header-height);
    left: 50%;
    transform: translate(-50%);
    max-width: 100%;
    max-height: 100%;
}
.hero > .content > img {
    display: block;
    max-width: 375px;
    width: 60vw;
    height: auto;
}

.footer {
    margin: auto 0 0 0; 
    background: var(--color-id-cobalt);
    color: var(--color-id-oyster);
}

nav.nav-footer {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-indent: 0.1em;
    margin: 0 3rem;
}
nav.nav-footer ul {
    height: 4rem;
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: row;
}
nav.nav-footer li {
    position: relative;
}
nav.nav-footer a {
    height: 100%;
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 2em 2em 2em 0;
    text-decoration: none;
    color: inherit;
    white-space: nowrap;
}

@media(max-width: 700px){
    nav.nav-footer {
        margin-left: 1.5rem;
        margin-right: 1.5em;
    }
}

.h1 {
    font-size: min(3rem, 4vw);
    line-height: 1.2;
    font-weight: 100;
    margin: 0;
    padding: 0;
    color: inherit;
    margin-bottom: 1.5rem
}
.h1 .line {
    display: block;
    white-space: nowrap;
}
.h1 .line:not(.supertitle) {
    margin-left: -0.1em;
}
.fx-title-lines .line {
    opacity: 0;
}
.h1 .supertitle {
    font-size: 0.25em;
    line-height: 1.5;
    font-weight: bold;
    margin-bottom: 0.75em;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    opacity: 0.5;
    white-space: normal;
}

@media(max-width: 1000px){
    .h1 {
        font-size: min(3rem, 3.75vw);
    }   
}
@media(max-width: 700px){
    .h1 {
        font-size: min(3rem, 5.0vw);
        line-height: 1.25;
    }
    .h1 .supertitle {
        font-size: 0.3em;
    }
}

@media(max-width: 500px){
    .h1 {
        font-size: min(3rem, 5.5vw);
        font-weight: 300;
        line-height: 1.3;
    }
    .h1 .supertitle {
        font-size: 0.375em;
    }
}

.mask-circle {
    border-radius: 100vw;
    overflow: hidden;
    aspect-ratio: 1/1;
    object-fit: cover;
    object-position: center;
}
.mask-square {
    border-radius: 0;
    overflow: hidden;
    aspect-ratio: 1/1;
    object-fit: cover;
    object-position: center;
}

.button {
    background: transparent;
    color: inherit;
    border: 1px solid currentColor;
    box-shadow: none;
    border-radius: 1000em;
    text-decoration: none;
    font: inherit;
    font-weight: 600;
    text-align: left;
    padding: 0.75em 1.5em;
    margin: 0.5em 0;
    display: inline-block;
    position: relative;
    cursor: pointer;
}

.button.button-arrow {
    color: inherit;
    width: 2.4rem;
    height: 2.4rem;
    padding: 0;
    transition: color 0.75s, padding 0.75s, border-color 0.75s;
}
.button.button-arrow:after {
    content: '';
    display: block;
    width: 40%;
    height: 40%;
    border-top: 3px solid currentColor;
    border-right: 3px solid currentColor;
    transform-origin: 50%;
    transform: translate(-70%, -50%) rotate(45deg);
    position: absolute;
    left: 50%;
    top: 50%;
}
.button.button-arrow.button-arrow-down:after {
    transform: translate(-50%, -70%) rotate(135deg);
}
.button.button-arrow.button-arrow-more {
    color: var(--color-id-accent);
    border: 2px solid var(--color-id-accent);
}
.button.button-arrow.button-arrow:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 100vw;
    border: 4px solid transparent;
    border-left-color: currentColor;
    border-right-color: currentColor;
    margin: -30px;
    animation: rotating 2s linear infinite;
    opacity: 0;
    transition: opacity 0.5s, margin 0.5s;
    pointer-events: none;
}
@keyframes rotating {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
@media(hover:hover){
    .button.button-arrow.button-arrow:hover:before {
        opacity: 0.25;
        margin: -10px;
    }
}

.button.button-more {
    color: inherit;
    padding-right: 3em;
    transition: color 0.75s, padding 0.75s, border-color 0.75s;
}
.button.button-more:after {
    content: '';
    display: block;
    width: 0.8em;
    height: 0.8em;
    border-top: 3px solid var(--color-id-accent);
    border-right: 3px solid var(--color-id-accent);
    transform-origin: top right;
    transform: rotate(45deg);
    position: absolute;
    right: 1em;
    top: 50%;
}
@media(hover:hover){
    .button.button-more:hover {
        padding-right: 6em;
        border-color: var(--color-id-accent);
    }
}

.button.button-submit {
    display: table;
    background: var(--color-id-cobalt);
    color: var(--color-id-perla);
    font-weight: 700;
    margin-left: auto;
    margin-right: 0;
    border: none;
}

#form-container-messages {
    height: 160px;
    padding: 30px 0;
    position: relative;
}
.form-message {
    display: block;
    max-width: 100%;
    margin: 0;
    padding: 20px;
    border-width: 0;
    border-bottom-width: 2px;
    border-style: solid;
    background-color: #fff;
    position: absolute;
    left: -100vw;
    opacity: 1;
    transition: all 0.5s;
    width: 100%;
    border-width: 0;
    border-left-width: 4px;
}
.form-message:before {
    content: '';
    display: none;
    position: absolute;
    width: 20px;
    height: 20px;
    transform-origin: center;
    transform: rotate(45deg) translate(-50%, 0);
    background-color: #fff;
    top: 0;
    left: 30px;
}
.form-message-success {
    color: darkgreen;
}
.form-message-validation {
    color: darkred;
}
.form-message-error {
    color: darkred;
}

form:not([data-status]) #form-container-messages { height: 0; padding: 0; margin: 0; }
form[data-status^="success"] .form-message-success,
form[data-status^="error-validation"] .form-message-validation,
form[data-status^="error-write"] .form-message-error,
form[data-status^="error-email"] .form-message-error {
    left: 0;
    opacity: 1;
}
form[data-status^="submit"] [type="submit"]{
    pointer-events: none;
    opacity: 0.5;
    transition: opacity 0.5s;
}

#datenschutz {
    grid-area: 1/3/2/11;
}
#datenschutz,
#datenschutz h1 {
    margin-top: 0 !important;
}
#datenschutz a[href] {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid var(--color-id-accent);
}
#datenschutz a[href*="legally-ok"] {
    border: none;
}
#datenschutz ul {
    padding: 1em;
}
#datenschutz #jmdcontent {
    margin-bottom: 3rem;
}
#datenschutz #jmdcontent ~ * {
        font-size: 14px;
}

#imprint_service {
    grid-column-end: 13;
}
#imprint_service p > span {
    display: inline-block;
}

