
/*

    detours
        
    Design + Entwicklung: Leon Klaßen—www.leonklassen.com
        
    2024

*/



*,
*: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:'DT-Fredoka-SemiBold';
    font-style: normal;
    font-weight: normal;
    src: url( 'fonts/Fredoka-SemiBold.ttf' ) format( 'truetype' );
}

@font-face {
    font-family:'DT-Fredoka_SemiExpanded-Light';
    font-style: normal;
    font-weight: normal;
    src: url( 'fonts/Fredoka_SemiExpanded-Light.ttf' ) format( 'truetype' );
}

@font-face {
    font-family:'DT-Fredoka_Expanded-Bold';
    font-style: normal;
    font-weight: normal;
    src: url( 'fonts/Fredoka_Expanded-Bold.ttf' ) format( 'truetype' );
}



/* vars ——————————————————————————————————————————————————————————————————————————————————————————— */


:root {

    --color-background: #000000;
    --color-green: #00FF00;

    --font-small-family: 'DT-Fredoka-SemiBold', sans-serif;
    --font-small-size: 0.875rem;
    --font-small-lineheight: 1em; 
    --font-normal-family: 'DT-Fredoka-SemiBold', sans-serif;
    --font-normal-size: 1.25rem;
    --font-normal-lineheight: 1.2em;
    --font-medium-family: 'DT-Fredoka_Expanded-Bold', sans-serif;
    --font-medium-size: 1.875rem;
    --font-medium-lineheight: 1em;
    --font-large-family: 'DT-Fredoka_Expanded-Bold', sans-serif;
    --font-large-size: 4.375rem;
    --font-large-lineheight: 0.85em;
    --font-largelight-family: 'DT-Fredoka_SemiExpanded-Light', sans-serif;
    --font-largelight-size: 4.375rem;
    --font-largelight-lineheight: 0.85em;
    --font-title-family: 'DT-Fredoka_Expanded-Bold', sans-serif;
    --font-title-size: 10rem;
    --font-title-lineheight: 0.875em;
    
}


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

    :root {
    
        --font-small-size: 0.875rem;
        --font-small-lineheight: 1em; 
        --font-normal-size: 1.25rem;
        --font-normal-lineheight: 1.2em;
        --font-medium-size: 1.68rem;
        --font-medium-lineheight: 1em;
        --font-large-size: 3.93rem;
        --font-large-lineheight: 0.85em;
        --font-largelight-size: 3.93rem;
        --font-largelight-lineheight: 0.85em;
        --font-title-size: 9rem;
        --font-title-lineheight: 0.875em;
    
    }
    
}


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

    :root {
    
        --font-small-size: 0.875rem;
        --font-small-lineheight: 1em; 
        --font-normal-size: 1.125rem;
        --font-normal-lineheight: 1.2em;
        --font-medium-size: 1.56rem;
        --font-medium-lineheight: 1em;
        --font-large-size: 3.125rem;
        --font-large-lineheight: 0.85em;
        --font-largelight-size: 3.125rem;
        --font-largelight-lineheight: 0.85em;
        --font-title-size: 5.625rem;
        --font-title-lineheight: 0.88em;
    
    }
    
}


@media (prefers-contrast: more) {

    :root {
    
        --color-green: white;
        
    }
    
}



/* allgemein ——————————————————————————————————————————————————————————————————————————————————————————— */


body {
    position: relative;
    margin: 0px;
    padding: 0px;
    font-size: var( --font-normal-size );
    line-height: var( --font-normal-lineheight );
    font-family: var( --font-normal-family );
    background-color: var( --color-background );
    color: var( --color-green );
    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%;
    
    padding: 16px;
    min-height: 100vh;
}


::selection {
    background: var( --color-green );
    color: var( --color-background );
    text-shadow: none;
}

::-moz-selection {
    background: var( --color-green );
    color: var( --color-background );
    text-shadow: none;
}

em {
    font-style: normal;
}

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

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

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

    body {
        padding: 0px;    
        padding-top: 16px;
        padding-bottom: 16px;   
    }   
    
}



/* page ————————————————————————————————————————————————————————————————————————————————————————— */


.page {
    position: relative;
    border: 2px solid var( --color-green );
    border-radius: 36px;
    padding-left: 16px;
    padding-right: 16px;
    text-transform: lowercase;
}

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

    .page {
        border-radius: 28px;
    }
    
}

.page .intro {
    font-family: var( --font-large-family );
    font-size: var( --font-large-size );
    line-height: var( --font-large-lineheight );
}

.page .intro em {
    font-family: var( --font-largelight-family );
    font-size: var( --font-largelight-size );
    line-height: var( --font-largelight-lineheight );
}

.page .intro p {
    margin-left: 32px;
    text-indent: -32px;
    margin-top: 13px;
    margin-bottom: 13px;
}

.page .intro p + p {
    margin-top: 0px;
}

.page .intro p:has( + p ) {
    margin-bottom: 0px;
}

.page .intro a {
    position: relative;
}

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

    .page .intro {
        font-size: var( --font-medium-size );
        line-height: var( --font-medium-lineheight );
    }
    
    .page .intro em {
        font-size: var( --font-medium-size );
        line-height: var( --font-medium-lineheight );
    }

    .page .intro p {
        margin-left: 16px;
        text-indent: -16px;
    }

}

.page .seperator {
    position: relative;
    border-top: 2px solid var( --color-green );
    padding-top: 16px;
    padding-bottom: 16px;
    height: 100px;
    display: flex;
    flex-wrap: wrap;
    row-gap: 32px;
    width: 100%;
    overflow: hidden;
}

.page .seperator:first-child {
    border-top: 0px none;
}

.page .seperator div {
    position: relative;
    height: 100%;
    flex-basis: 0px;
    flex-grow: 1;
    min-width: 16px;
    transition: flex-basis .2s;
}

.page .seperator div:hover {
    flex-basis: 5px;
}

.page .seperator div:nth-child( odd ) {
    transform: scaleX( -1 );
}

.page .seperator div svg {
    position: absolute;
    width: 100%;
    height: 100%;
}

.page .seperator div svg line {
    stroke: var( --color-green );
    stroke-width: 2;
}

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

    .page .seperator {
        height: 80px;
    }
    
    .page .seperator div {
        min-width: 12px;
    }
    
}

@media (prefers-reduced-motion) {
    
    .page .seperator div:hover {
        flex-basis: 0px;
    }

}

.page nav {
    position: sticky;
    top: 0px;
    margin-top: 0px;
    z-index: 9999;
    background-color: var( --color-green );
    color: var( --color-background );
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-left: -18px;
    margin-right: -18px;
    padding-left: 18px;
    padding-right: 18px;
    height: 64px;
}

.page nav ul {
    display: flex;
    font-family: var( --font-medium-family );
    font-size: var( --font-medium-size );
    line-height: var( --font-medium-lineheight );
    gap: 16px;
}

.page nav ul li {
    height: 40px;
}

.page nav ul li a {
    display: block;
    position: relative;
    border: 2px solid var( --color-background );
    height: 40px;
    border-radius: 20px;
    padding-top: 2px;
    padding-left: 32px;
    padding-right: 32px;
    transition: color .2s, background-color .2s;
}

.page nav ul li a:hover,
.page nav ul li a.selected {
    background-color: var( --color-background );
    color: var( --color-green );
}

.page nav .menuicon {
    position: relative;
    height: 64px;
    width: 80px;
    margin-left: -16px;
    display: none;
    border: none;
    background-color: transparent;
    cursor: pointer;
}

.page nav .menuicon::before,
.page nav .menuicon::after {
    content: "";
    display: block;
    position: absolute;
    width: auto;
    height: 2px;
    left: 16px;
    right: 16px;
    background-color: var( --color-background );
}

.page nav .menuicon::before {
    top: 26px;
}

.page nav .menuicon::after {
    bottom: 26px;
}

.page nav.foldout .menuicon::before {
    top: 31px;
    transform: rotateZ( 45deg );
}

.page nav.foldout .menuicon::after {
    bottom: 31px;
    transform: rotateZ( -45deg );
}

.page nav .poweredby {
    display: flex;
    gap: 32px;    
    align-items: center;
}

.page nav .poweredby .label {
    font-family: var( --font-small-family );
    font-size: var( --font-small-size );
    line-height: var( --font-small-lineheight );
}

.page nav .poweredby .logo {
    display: block;
    padding: 0px;
    margin: 0px;
    height: 40px;
    width: auto;
}

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

    .page nav ul {
        position: absolute;
        top: 64px;
        width: 100%;
        left: 0px;
        background-color: var( --color-green );
        flex-direction: column;
        align-items: flex-start;
        padding-left: 18px;
        padding-right: 18px;
        padding-bottom: 16px;
        display: none;
    }
    
    .page nav.foldout ul {
        display: flex;
    }
    
    .page nav ul li a {
        padding-top: 4px;
    }
    
    .page nav .menuicon {
        display: block;
    }
    
    .page nav .poweredby { 
        width: 100%;
        justify-content: flex-end;
        gap: 16px;
    }
    
}

.page .ticker {
    position: relative;
    width: calc( 100% + 18px + 18px );
    margin-left: -18px;
    background-color: var( --color-green );  
    color: var( --color-background );  
    overflow: hidden;
    white-space: nowrap;
    pointer-events: none;
    -webkit-user-select: none; 
    -moz-user-select: none; 
    -ms-user-select: none; 
    user-select: none;
}

.page .ticker.large {
    font-family: var( --font-title-family );
    font-size: var( --font-title-size );
    line-height: var( --font-title-lineheight );
    padding-top: 5px;
    padding-top: 21px;
    padding-bottom: 40px;
}

.page .ticker.small {
    font-family: var( --font-large-family );
    font-size: var( --font-large-size );
    line-height: var( --font-large-lineheight );
    padding-top: 15px;
    padding-bottom: 13px;
}

.page .ticker::before {
    content: "";
    display: block;
    position: absolute;
    left: 18px;
    right: 18px;
    height: 2px;
    top: 0px;
    background-color: var( --color-background );
}

.page .ticker.noborder::before {
    display: none;
}

.page .ticker .frame {
    display: inline-block;
    position: relative;
    width: auto;
}

.page .ticker .frame .bar {
    display: inline-block;
    position: relative;
    width: auto;
    animation: ticker_r_to_l 50s infinite linear;
}


.page .ticker.l_to_r .frame .bar {
    animation: ticker_l_to_r 50s infinite linear;
}

.page .ticker .frame .bar p {
    padding-left: 16px;
    padding-right: 16px;
}

.page .ticker .frame .bar p:nth-child( 2 ) {
    position: absolute;
    left: 100%;
    top: 0px;
}

.page .ticker .frame .bar p:nth-child( 3 ) {
    position: absolute;
    left: 200%;
    top: 0px;
}

@keyframes ticker_r_to_l {
    
    from {
        left: 0%;
    }
    
    to {
        left: -100%;
    }
    
}

@keyframes ticker_l_to_r {
    
    from {
        left: -100%;
    }
    
    to {
        left: 0%;
    }
    
}

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

    .page .ticker.large {
        padding-top: 11px;
        padding-bottom: 30px;
    }

}

@media (prefers-reduced-motion) {

    .page .ticker {
        white-space: normal;    
    }
        
    .page .ticker.large {
        font-family: var( --font-large-family );
        font-size: var( --font-large-size );
        line-height: var( --font-large-lineheight );
        padding-top: 15px;
        padding-bottom: 13px;
    }

    .page .ticker .frame .bar {
        animation: none !important;
    }
    
}

.page section {
    border-top: 2px solid var( --color-green );
}

.page section h2 {
    font-family: var( --font-title-family );
    font-size: var( --font-title-size );
    line-height: var( --font-title-lineheight ); 
    padding-top: 4px;
    padding-bottom: 6px;
    -webkit-user-select: none; 
    -moz-user-select: none; 
    -ms-user-select: none; 
    user-select: none;
}

@media only screen and (max-width: 500px ) {
    
    .page section h2 {
        padding-top: 4px;
        padding-bottom: 11px;
    }

}

.page section.stops {
    border-top: 0px none;
}

.page section.stops .stops {
    width: calc( 100% + 16px + 16px );
    margin-left: -16px;
    overflow: hidden;
    padding-top: 80px;
    margin-top: -80px;
}

.page section.stops .stops .wrapper {
    position: relative;
    width: calc( 100% + 2px );
    margin-bottom: 16px;
}

.page section.stops .stops .wrapper .strip {
    display: flex;
    transition: transform .5s;
}

.page section.stops .stops .wrapper .strip .element {
    padding-left: 16px;
    padding-right: 16px;
    border-right: 2px solid var( --color-green );
}

.page section.stops .stops .wrapper .strip .element .block {
    border-top: 2px solid var( --color-green );
}

.page section.stops .stops .wrapper .strip .element .block.number {
    font-family: var( --font-title-family );
    font-size: var( --font-title-size );
    line-height: var( --font-title-lineheight ); 
    padding-top: 0px;
    padding-bottom: 7px;
    -webkit-user-select: none; 
    -moz-user-select: none; 
    -ms-user-select: none; 
    user-select: none;
}

.page section.stops .stops .wrapper .strip .element .block.title {
    font-family: var( --font-large-family );
    font-size: var( --font-large-size );
    line-height: var( --font-large-lineheight ); 
    padding-top: 13px;
    padding-bottom: 13px;
}

.page section.stops .stops .wrapper .strip .element .block.title p {
    margin-left: 32px;
    text-indent: -32px;
}

.page section.stops .stops .wrapper .strip .element .block.meta {
    font-family: var( --font-medium-family );
    font-size: var( --font-medium-size );
    line-height: var( --font-medium-lineheight ); 
    padding-top: 13px;
    padding-bottom: 13px;
}

.page section.stops .stops .wrapper .strip .element .block.text {
    padding-top: 12px;
    padding-bottom: 12px;
}

.page section.stops .stops .wrapper .strip .element .block.credits {
    font-family: var( --font-small-family );
    font-size: var( --font-small-size );
    line-height: var( --font-small-lineheight ); 
    padding-top: 14px;
    margin-bottom: -2px;
}

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

    .page section.stops .stops {
        position: relative;
        margin-top: 0px;
        padding-top: 82px;
    }
    
    .page section.stops .stops::before {
        content: "";
        display: block;
        position: absolute;
        top: 0px;
        left: 16px;
        right: 16px;
        width: auto;
        height: 2px;
        background-color: var( --color-green );
    }
    
}

@media only screen and (max-width: 500px ) {
    
    .page section.stops .stops .wrapper .strip .element .block.number {
        padding-top: 6px;
        padding-bottom: 11px;
    }
    
}

@media (prefers-reduced-motion) {

    .page section.stops .stops .wrapper .strip {
        transition: none;
    }

}

.page section.onboard .gallery {
    width: calc( 100% + 16px + 16px );
    margin-left: -16px;
    overflow: hidden;
}

.page section.onboard .gallery .wrapper {
    position: relative;
    width: calc( 66.66666666% - 16px );
    margin-left: auto;
    margin-right: auto;
}

.page section.onboard .gallery .wrapper .strip {
    display: flex;
    transition: transform .5s;
}

.page section.onboard .gallery .wrapper .strip .element {
    padding-left: 8px;
    padding-right: 8px;
}

.page section.onboard .gallery .wrapper .strip .element figure {
    position: relative;
}

.page section.onboard .gallery .wrapper .strip .element figure img,
.page section.onboard .gallery .wrapper .strip .element figure video {
    display: block;
    padding: 0px;
    margin: 0px;
    width: 100%;
    height: auto;
    pointer-events: none;
}

.page section.onboard .gallery .wrapper .strip .element figure video {
    aspect-ratio: 3 / 2;
    height: auto;
    object-fit: cover;
}

.page section.onboard .gallery .wrapper .strip .element figure .video-wrapper {
    position: relative;
}

.page section.onboard .gallery .wrapper .strip .element figure .play {
    position: absolute;
    inset: 0px;
    margin: auto;
    width: 128px;
    height: 128px;
    pointer-events: all;
    cursor: pointer;
    transition: scale .2s;
}

.page section.onboard .gallery .wrapper .strip .element figure .play:hover {
    scale: 1.1;
}

.page section.onboard .gallery .wrapper .strip .element figure .play svg {
    fill: var( --color-green );
}

.page section.onboard .gallery .wrapper .strip .element figure figcaption {
    min-height: 96px;
    padding-top: 12px;
    padding-bottom: 12px;
    transition: opacity .5s;
}

.page section.onboard .gallery .wrapper .strip .element.hidden figure figcaption {
    opacity: 0;
}

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

    .page section.onboard .gallery {
        position: relative;
        padding-top: 82px;
    }
    
    .page section.onboard .gallery::before {
        content: "";
        display: block;
        position: absolute;
        top: 0px;
        left: 16px;
        right: 16px;
        width: auto;
        height: 2px;
        background-color: var( --color-green );
    }
    
    .page section.onboard .gallery .wrapper {
        width: calc( 100% + 16px );
        margin-left: -8px;
    }
    
    .page section.onboard .gallery .wrapper .strip .element figure figcaption {
        min-height: 0px;
        padding-left: 16px;
        padding-right: 16px;
    }

}

@media (prefers-reduced-motion) {

    .page section.onboard .gallery .wrapper .strip {
        transition: none;
    }    

}

.page section.contact {
    border-top: 0px none;    
}

.page section.contact h2 {
    border-top: 2px solid var( --color-green );
}

.page section.contact .slot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 2px solid var( --color-green );
}

.page section.contact .slot p {
    font-family: var( --font-large-family );
    font-size: var( --font-large-size );
    line-height: var( --font-large-lineheight ); 
    padding-top: 13px;
    padding-bottom: 13px;
}

.page section.contact .slot .poweredby {
    display: flex;
    gap: 32px;    
    align-items: center;
}

.page section.contact .slot .poweredby .label {
    font-family: var( --font-small-family );
    font-size: var( --font-small-size );
    line-height: var( --font-small-lineheight );
}

.page section.contact .slot .poweredby .logo {
    display: block;
    padding: 0px;
    margin: 0px;
    height: 64px;
    width: auto;
}

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

    .page section.contact .slot {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .page section.contact .slot .poweredby {
        padding-top: 16px;
        padding-bottom: 16px;
        width: 100%;
        border-top: 2px solid var( --color-green );
        justify-content: flex-end;
        gap: 16px;
    }
    
    .page section.contact .slot .poweredby .logo {
        height: 40px;
    }
    
}

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

    .page section.contact .slot p {
        font-size: var( --font-medium-size );
        line-height: var( --font-medium-lineheight ); 
    }

}

.page section.text:first-child {
    border-top: 0px none;
}

.page section.text p {
    padding-top: 12px;
    padding-bottom: 12px;
    font-size: var( --font-small-size );
    line-height: var( --font-small-lineheight ); 
}

.page section.text p + p {
    padding-top: 0px;
}

.page section.text p strong {
    display: block;
    font-weight: normal;
    font-family: var( --font-large-family );
    border-top: 2px solid var( --color-green );
    border-bottom: 2px solid var( --color-green );
    padding-top: 12px;
    padding-bottom: 12px;
}

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

    .page section.text h2 {
        font-size: var( --font-large-size );
        line-height: var( --font-large-lineheight ); 
    }

}

.page footer {
    border-top: 2px solid var( --color-green );
    font-family: var( --font-small-family );
    font-size: var( --font-small-size );
    line-height: var( --font-small-lineheight ); 
}

.page footer ul {
    display: flex;
    gap: 32px;
    padding-top: 14px;
    padding-bottom: 14px;
}

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

    .page footer ul {
        flex-direction: column;
        gap: 16px;
    }

}



/* arrows —————————————————————————————————————————————————————————————————————————————————————————————— */


.page section.stops .stops .wrapper .arrows,
.page section.onboard .gallery .wrapper .arrows {
    position: absolute;
    width: 64px;
    height: 64px;
    border: 2px solid var( --color-green );
    border-radius: 50%;
    background-color: transparent;
    font: inherit;
    color: inherit;
    overflow: hidden;
    cursor: pointer;
    transition: background-color .2s, color .2s;
}

.page section.stops .stops .wrapper .arrows {
    top: -80px;
}

.page section.stops .stops .wrapper .arrows.disabled {
    pointer-events: none;
    border: 2px dashed var( --color-green );
}

.page section.stops .stops .wrapper .arrows.disabled + .arrows.disabled,
.page section.stops .stops .wrapper .arrows.disabled:has( + .arrows.disabled ) {
    display: none;
}

.page section.onboard .gallery .wrapper .arrows {
    bottom: 16px;
}

@media (hover: hover) {

    .page section.stops .stops .wrapper .arrows:hover,
    .page section.onboard .gallery .wrapper .arrows:hover {
        background-color: var( --color-green );
        color: var( --color-background );
    }

}

.page section.stops .stops .wrapper .arrows.left {
    right: 96px;
}

.page section.onboard .gallery .wrapper .arrows.left {
    right: 88px;
}

.page section.stops .stops .wrapper .arrows.right {
    right: 16px;
}

.page section.onboard .gallery .wrapper .arrows.right {
    right: 8px;
}

.page section.stops .stops .wrapper .arrows::before,
.page section.onboard .gallery .wrapper .arrows::before {
    display: block;
    position: absolute;
    width: 100%;
    text-align: center;
    top: 14px;
    font-family: var( --font-largelight-family );
    font-size: 40px;
    line-height: 24px; 
}

.page section.stops .stops .wrapper .arrows.left::before,
.page section.onboard .gallery .wrapper .arrows.left::before {
    content: "<";
    right: 2px;
}

.page section.stops .stops .wrapper .arrows.right::before,
.page section.onboard .gallery .wrapper .arrows.right::before {
    content: ">";
    left: 2px;
}


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

    .page section.stops .stops .wrapper .arrows,
    .page section.onboard .gallery .wrapper .arrows {
        width: 48px;
        height: 48px;
    }
    
    .page section.stops .stops .wrapper .arrows,
    .page section.onboard .gallery .wrapper .arrows {
        top: -64px;
        bottom: auto;
    }

    .page section.stops .stops .wrapper .arrows.left {
        right: auto;
        left: 16px;
    }
    
    .page section.onboard .gallery .wrapper .arrows.left {
        left: 24px;
        right: auto;
    }
    
    .page section.onboard .gallery .wrapper .arrows.right {
        right: 24px;
    }

    .page section.stops .stops .wrapper .arrows::before,
    .page section.onboard .gallery .wrapper .arrows::before {
        /*padding-top: 6px;*/
        top: 7px;
    }
    
}


