
/*

    ra9
    
    Design: BOROS
    Entwicklung: Leon Klaßen—www.leonklassen.com
    
    2025

*/



*,
*:before,
*:after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

ol, ul {
    list-style: none;
}

b, strong {
    font-weight: bold;
}

i, em {
    font-style: italic;
}

dialog:modal {
    max-width: 100%;
    max-height: 100%;
}



/* ### FONTS ### */


@font-face {
    font-family:'HelveticaNeuePro';
    font-style: normal;
    font-weight: normal;
    src: url( 'fonts/NeueHelveticaPro55Roman/font.woff2' ) format( 'woff2' );
}

@font-face {
    font-family:'HelveticaNeuePro';
    font-style: normal;
    font-weight: bold;
    src: url( 'fonts/NeueHelveticaPro75Bold/font.woff2' ) format( 'woff2' );
}



/* ### VARS ### */


:root {

    --color-dark: #000000;
    --color-light: #ffffff;
    --color-grey: #A4A798;

}



/* ### GENERAL ### */


body {
    margin: 0px;
    padding: 0px;
    font-size: 1.875rem;
    line-height: 1.15em;
    font-family: 'HelveticaNeuePro', 'Helvetica Neue', sans-serif;
    background-color: var( --color-light );
    color: var( --color-dark );
    cursor: default;
    -webkit-user-select: text; 
    -moz-user-select: text; 
    -ms-user-select: text; 
    user-select: text;
    font-weight: normal;
    min-height:100%;
    height: 100%;
    width: 100%;
}

::selection {
    background: var( --color-dark );
    color: var( --color-light );
}

::-moz-selection {
    background: var( --color-dark );
    color: var( --color-light );
}

a {
    color: inherit;
    text-decoration: inherit;
    cursor: pointer;
}

button {
    background-color: transparent;
    text-align: left;   
    color: inherit;     
}

a:hover {

}

strong {
    font-weight: bold;
}

em {
    font-style: normal;
}

button:focus-visible,
a:focus-visible,
*[tabindex = "0"]:focus-visible {
    outline: 3px solid black;
    outline-offset: 5px;
    border-radius: 10px;
}


@media only screen and (max-width: 550px ) {

    body {
        font-size: 0.9375rem;
        line-height: 1.3em;
    }

}



/* ### HEADER ### */


.floating-logo {
    position: fixed;
    left: 35px;
    top: 20px;
    width: 95px;
    height: auto;
    z-index: 10;
}

.floating-logo .part-nine,
.floating-logo .part-ra {
    transition: fill .5s;
}

.floating-logo.light .part-ra {
    fill: white;
}

.floating-logo.light .part-nine {
    fill: rgba( 255, 255, 255, 0.5 );
}

header {
    position: relative;
    height: 50px;
}

header .menu-button {
    position: absolute;
    right: 32px;
    top: 13px;
    width: 34px;
    height: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-top: 2px;
    padding-bottom: 2px;
    cursor: pointer;
    z-index: 2;
}

header .menu-button span {
    display: block;
    background-color: black;
    width: 100%;
    height: 2px;
    transition: opacity .5s, transform .5s;
}

header.menu-visible .menu-button span:nth-child( 2 ) {
    opacity: 0;
}

header.menu-visible .menu-button span:nth-child( 1 ) {
    transform: translate3d( 0px, 9px, 0px ) rotateZ( 45deg );
}

header.menu-visible .menu-button span:nth-child( 3 ) {
    transform: translate3d( 0px, -9px, 0px ) rotateZ( -45deg );
}

header nav {
    height: 50px;
    padding-left: 32px;
    padding-right: 32px;
    opacity: 0;
    transition: opacity .5s;
}

header.menu-visible nav {
    opacity: 1;
}

header nav ul {
    display: flex;
    height: 50px;
    gap: 50px;
    align-items: center;
    padding-top: 7px;
    flex-wrap: wrap;
    row-gap: 0px;
    padding-right: 66px;
}

header a {
    transition: color .5s;
    cursor: pointer;
}

header a:hover {
    color: var( --color-grey );
}


@media only screen and (max-width: 550px ) {

    .floating-logo {
        left: 34px;
    }
    
    header .menu-button {
        right: 32px;
    }
    
    header nav ul {
        gap: 15px;
        row-gap: 0px;
    }
    
}



/* ### CONTENT ### */

main:not( :has( .intro ) ) {
    padding-top: 70px;
}


section {
    
}


section.intro .wp-block-group.is-vertical {
    background-color: var( --color-dark );
    color: var( --color-light );
    padding-top: 50px;
    padding-bottom: 150px;
}

section.intro .wp-block-group.is-vertical p:first-child {
    margin-top: 0px;
}

section.intro .wp-block-group.is-vertical p:last-child {
    margin-bottom: 0px;
}


.wp-block-image {
    position: relative;
    overflow: hidden;
    height: 45vw;
}

.wp-block-image > img {
    position: absolute;
    /*top: -5000px;
    bottom: -5000px;
    margin-top: auto;
    margin-bottom: auto;*/
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wp-block-image:not( .top-aligned ) > img {
    top: -50px;
    height: calc( 100% + 100px );
}

.wp-block-heading {
    padding-left: 32px;
    padding-right: 32px;
}

h1.wp-block-heading {
    font-size: 5rem;
    line-height: 1.0625em;
    font-weight: bold;
    margin-top: 35px;
    margin-bottom: 50px;
}

section.intro  h1.wp-block-heading {
    background-color: var( --color-light );
    color: var( --color-dark );
    margin-top: 0px;
    margin-bottom: 0px;
    padding-top: 55px;
    padding-bottom: 20px;
}

h2.wp-block-heading {
    font-size: 2.8125rem;
    line-height: 1em;
    margin-top: 35px;
}

h3.wp-block-heading {
    font-size: 5rem;
    line-height: 1.0625em;
    font-weight: bold;
    margin-top: 35px;
    margin-bottom: 50px;
}

h2.wp-block-heading + h3.wp-block-heading {
    margin-top: 20px;
}

h4.wp-block-heading {
    font-size: 2.8125rem;
    line-height: 1em;
    font-weight: bold;
    margin-top: 100px;  
    margin-bottom: 50px;
}

.page:not( .home) h4.wp-block-heading {
    padding-left: calc( 32px + 25vw );
    padding-right: calc( 32px + 10vw );
}


p {
    padding-left: calc( 32px + 25vw );
    padding-right: calc( 32px + 10vw );
    margin-top: 50px;
    margin-bottom: 50px;
}

p + p {
    margin-top: 1.15em;
}

p:has( + p ) {
    margin-bottom: 1.15em;
}

p > a {
    text-decoration: underline;
    cursor: pointer;
}

section.intro p {
    font-size: 2.8125rem;
    line-height: 1.1em;
    padding-left: 32px;
    padding-right: calc( 32px + 16vw );
}


ol.wp-block-list {
    padding-left: 32px;
    padding-right: 32px;
    margin-top: 50px;
    margin-bottom: 50px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    row-gap: 30px;
    column-gap: 10px;
    counter-reset: item;
}

ol.wp-block-list:last-child {
    margin-bottom: 100px;
}

ol.wp-block-list > li {
    border-bottom: 1px solid black;
    counter-increment: item;
    display: flex;
    gap: 20px;
    align-items: center;
    text-wrap: balance;
}

ol.wp-block-list > li:nth-child( even ) {
    transition-delay: .3s;
}

ol.wp-block-list > li::before {
    display: block;
    content: counter(item);    
    font-size: 8.125rem;
    line-height: 1em;
    color: var( --color-grey );
    font-weight: bold;
    width: 5rem;
    text-align: center;
    flex-shrink: 0;
    margin-bottom: -20px;
}

ul.wp-block-list {
    list-style: disc;
    padding-left: calc( 32px + 25vw + 1em );
    padding-right: calc( 32px + 10vw );
    margin-top: 50px;
    margin-bottom: 50px;
}


.animationscroll {
    transition: transform 1s, opacity 1s;
}

.animationscroll.hidden {
    opacity: 0;
    transform: translate3d( 0px, 50px, 0 );
}


@media (prefers-reduced-motion) {

    .animationscroll {
        transition: opacity 1s;
    }

}


@media only screen and (max-width: 550px ) {

    .wp-block-image {
        height: 75vw;
    }

    .wp-block-heading {
        padding-left: 32px;
        padding-right: 32px;
    }

    h1.wp-block-heading {
        font-size: 3rem;
        line-height: 1.0625em;
    }
    
    h2.wp-block-heading {
        font-size: 1.25rem;
        line-height: 1.25em;
        margin-top: 25px;
    }
    
    h3.wp-block-heading {
        font-size: 2.5rem;
        line-height: 1.125em;
        margin-top: 25px;
        margin-bottom: 25px;
    }
        
    h2.wp-block-heading + h3.wp-block-heading {
        margin-top: 10px;
    }
        
    h4.wp-block-heading {
        font-size: 1.25rem;
        line-height: 1.25em;
        margin-top: 50px;
        margin-bottom: 25px;
    }
    
    .page:not( .home) h4.wp-block-heading {
        padding-left: calc( 32px + 15vw );
        padding-right: 32px;
    }

    p {
        padding-left: calc( 32px + 15vw );
        padding-right: 32px;
        margin-top: 25px;
        margin-bottom: 25px;
    }
    
    section.intro p {
        font-size: 1.25rem;
        line-height: 1.25em;
        padding-left: 32px;
        padding-right: 32px;
    }
    
    ol.wp-block-list {
        padding-left: 32px;
        padding-right: 32px;
        grid-template-columns: 1fr;
    }
    
    ol.wp-block-list > li:nth-child( even ) {
        transition-delay: 0s;
    }
    
    ol.wp-block-list {
        row-gap: 15px;
        margin-top: 25px;
        margin-bottom: 25px;
    }
    
    ol.wp-block-list:last-child {
        margin-bottom: 75px;
    }
    
    ol.wp-block-list > li::before {
        font-size: 3.75rem;
        line-height: 1.4em;
        margin-bottom: -15px;
        width: 2rem;
    }

    ul.wp-block-list {
        list-style: disc;
        padding-left: calc( 32px + 15vw + 1em );
        padding-right: 32px;
    }

}



/* ### HERO ### */


.hero {
    position: relative;  
    /*z-index: 10;*/
}

.hero .logo {
    position: absolute;
    left: 0px;
    top: 0px;
    background-color: var( --color-dark );
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: opacity 1s;
    z-index: 20;
}

.hero.no-animation .logo {
    transition-duration: 0s;
}

.hero .logo.fade {
    opacity: 0;
}

.hero .logo svg {
    display: block;
    height: 220px;
    width: auto;
    overflow: visible;
    transition: opacity 1s;
}

.hero .logo svg .part-ra,
.hero .logo svg .part-nine {
    transition: opacity 1s, transform 1s;
}

@media (prefers-reduced-motion) {

    .hero .logo svg .part-ra,
    .hero .logo svg .part-nine {
        transition: opacity 1s;
    }
    
}

.hero.no-animation .logo svg .part-ra,
.hero.no-animation .logo svg .part-nine {
    transition-duration: 0s;
}

.hero .logo svg.fade-parts .part-ra {
    transform: translate3d( -200px, 0px, 0 );
    opacity: 0;
}

.hero .logo svg.fade-parts .part-nine {
    transform: translate3d( 200px, 0px, 0 );
    opacity: 0;
}

.hero .logo svg.fade {
    opacity: 0;
}


.hero .wp-block-image {
    transition: height 2s;
}

@media (prefers-reduced-motion) {

    .hero .wp-block-image {
        transition: height 0s;
    }

}

.hero.no-animation .wp-block-image {
    transition-duration: 0s;
}

.hero.full-screen .wp-block-image {
    height: 100svh !important;
}


@media only screen and (max-width: 550px ) {
    
    .hero .logo svg {
        height: 120px;
    }
    
}



/* ### FOOTER ### */

footer {
    display: flex;
    align-items: flex-end;
    padding-left: 32px;
    padding-right: 32px;
    margin-top: 200px;
    margin-bottom: 32px;
}

footer > .logolink > .logo {
    display: block;
    width: 195px;
    height: auto;
    margin-right: calc( 25vw - 195px );
}

footer > nav > ul {
    font-weight: bold;
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
    margin-bottom: -10px;
}

footer a {
    transition: color .5s;
    cursor: pointer;
}

footer a:hover {
    color: var( --color-grey );
}


@media only screen and (max-width: 550px ) {

    footer {
        justify-content: space-between;
        font-size: 1.25rem;
        line-height: 1.25em;
        margin-top: 100px;
    }
    
    footer > .logolink > .logo {
        width: 105px;
        margin-right: 0px;
    }
    
    footer > nav > ul {
        flex-direction: column;
        gap: 0px;
        margin-bottom: -7px;
    }
    
    /*footer { 
        flex-direction: column;
        align-items: flex-start;
        gap: 50px;
        padding-left: 16px;
        padding-right: 16px;
    }
    
    footer > .logolink > .logo {
        margin-right: 0px;
    }
    
    footer > nav > ul {
        flex-direction: column;
        gap: 30px;
        margin-bottom: 0px;
    }*/
    
}