
/*

    dhl-architekten
    Design and Development: 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:'PublicSans';
    font-style: normal;
    font-weight: normal;
    src: url('fonts/PublicSans/PublicSans-Regular.otf') format('opentype');
}

@font-face {
    font-family:'PublicSans';
    font-style: italic;
    font-weight: normal;
    src: url('fonts/PublicSans/PublicSans-Italic.otf') format('opentype');
}

@font-face {
    font-family:'PublicSans';
    font-style: normal;
    font-weight: 500;
    src: url('fonts/PublicSans/PublicSans-SemiBold.otf') format('opentype');
}

@font-face {
    font-family:'PublicSans';
    font-style: normal;
    font-weight: bold;
    src: url('fonts/PublicSans/PublicSans-ExtraBold.otf') format('opentype');
}

@font-face {
    font-family:'PublicSans';
    font-style: italic;
    font-weight: bold;
    src: url('fonts/PublicSans/PublicSans-ExtraBoldItalic.otf') format('opentype');
}



/* ### VARS ### */


:root {

    --font-normal-size: 1.0625rem;
    --font-normal-lineheight: 1.375em;
    --font-normal-letterspacing: 0em;
    
    --font-medium-size: 1.375rem;
    --font-medium-lineheight: 1.2727em;
    --font-medium-letterspacing: -0.022em;
    
    --font-large-size: 2.25rem;
    --font-large-lineheight: 1.1em;
    --font-large-letterspacing: -0.022em;

}


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

    :root {
    
        --font-large-size: 1.5rem;
        --font-large-lineheight: 1.25em;
        --font-large-letterspacing: -0.022em;
    }

}



/* ### GENERAL ### */

body {
    margin: 0px;
    padding: 0px;
    font-size: var( --font-normal-size );
    line-height: var( --font-normal-lineheight );
    font-family: 'PublicSans', 'Helvetica Neue', sans-serif;
    background-color: white;
    color: black;
    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: black;
    color: var( --color-background );
}

::-moz-selection {
    background: black;
    color: var( --color-background );
}*/

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: italic;
}

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



/* ### GENERAL SPECIFIC ### */


html {
    scroll-behavior: smooth;
}



/* ### HEADER ### */


header {
    position: fixed;
    width: 100%;
    height: 3.125rem;
    left: 0px;
    top: 0px;
    background-color: white;
    z-index: 9999;
    transition: background-color .2s;
}

header.transparent:not( header:has( + nav.main-menu.animated ) ) {
    background-color: transparent;
}

header > .wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    padding-left: 32px;
    padding-right: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-left: auto;
    margin-right: auto;
    max-width: 1800px;
}

header > .wrapper .logolink {
    font-size: var( --font-medium-size );
    line-height: var( --font-medium-lineheight );
    letter-spacing: var( --font-medium-letterspacing );
    font-weight: bold;
    position: relative;
    transition: opacity .2s;
}

header.transparent:not( header:has( + nav.main-menu.animated ) ) > .wrapper .logolink {
    opacity: 0;
}

header > .wrapper .menu-button {
    width: 32px;
    height: 50px;
    padding-top: 16px;
    padding-bottom: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

header > .wrapper .menu-button span {
    width: 100%;
    height: 2px;
    background-color: black;
    transition: transform .2s;
}

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

header > .wrapper .menu-button.expanded span:nth-child( 1 ) {
    transform: translate3d( 0px, 8px, 0 ) rotateZ( -45deg );
}

header > .wrapper .menu-button.expanded span:nth-child( 3 ) {
    transform: translate3d( 0px, -8px, 0 ) rotateZ( 45deg );
}

nav.main-menu {
    position: fixed;
    background-color: white;
    width: 100%;
    left: 0px;
    top: 3.125rem;
    max-height: calc( 100svh - 3.125rem );
    overflow: hidden;
    overflow-y: auto;
    z-index: 9991;
    font-size: var( --font-large-size );
    line-height: var( --font-large-lineheight );
    letter-spacing: var( --font-large-letterspacing );
    display: none;
    opacity: 0;
    transform: translate3d( 0, -100px, 0 );
    transition: opacity .3s, transform .3s;
}

nav.main-menu.visible {
    display: block;
}

nav.main-menu.animated {
    opacity: 1;
    transform: translate3d( 0, 0px, 0 );
}

nav.main-menu > .wrapper {
    padding: 32px;
    padding-top: 64px;
    padding-bottom: 48px;
    margin-left: auto;
    margin-right: auto;
    max-width: 1800px;
}

nav.main-menu > .wrapper li:not( :first-child ) {
    margin-top: 8px;
}

.main-menu-back {
    position: fixed;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    background-color: black;
    opacity: .4;
    z-index: 9990;
    display: none;
}

.main-menu-back.visible {
    display: block;
}


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

    header.transparent:not( header:has( + nav.main-menu.animated ) ) {
        background-color: white;
    }
    
    header > .wrapper {
        padding-left: 16px;
        padding-right: 16px;
    }
    
    nav.main-menu > .wrapper {
        padding-left: 16px;
        padding-right: 16px;
    }
    
    header.transparent:not( header:has( + nav.main-menu.animated ) ) > .wrapper .logolink {
        opacity: 1;
    }

}



/* ### PAGE ### */


main {
    padding-top: 64px;
    padding-bottom: 80px;
    margin-top: 3.125rem;
    margin-left: auto;
    margin-right: auto;
}

main > .content.hidden {
    display: none;
}

main > section > .wrapper {
    position: relative;
    width: 100%;
    padding-left: 32px;
    padding-right: 32px;
    max-width: 1800px;
    margin-left: auto;
    margin-right: auto;
}

main h1 {
    font-size: var( --font-large-size );
    line-height: var( --font-large-lineheight );
    letter-spacing: var( --font-large-letterspacing );
    font-weight: bold;
}

main h1:not( :first-child ) {
    margin-top: 80px;
}

main h1:not( :last-child ) {
    margin-bottom: 80px;
}

main h3.wp-block-heading {
    font-size: var( --font-medium-size );
    line-height: var( --font-medium-lineheight );
    letter-spacing: var( --font-medium-letterspacing );
}

main h3.wp-block-heading:not( :first-child ) {
    margin-top: 80px;
}

main h3.wp-block-heading:not( :last-child ) {
    margin-bottom: 32px;
}

main p {
    max-width: 900px;
}

main p + p {
    margin-top: var( --font-normal-lineheight );
}

main p a {
    text-decoration: underline;
}

main p.has-large-font-size {
    font-size: var( --font-medium-size );
    line-height: var( --font-medium-lineheight );
    letter-spacing: var( --font-medium-letterspacing );
    /*max-width: calc( 100% - 300px );*/
}

main p.has-large-font-size:not( :first-child ) {
    margin-top: 80px;
}

main p.has-large-font-size:not( :last-child ) {
    margin-bottom: 80px;
}

main .wp-block-columns {
    display: flex;
    gap: 64px;
}

main .wp-block-columns:not( :first-child ) {
    margin-top: 80px;
}

main .wp-block-columns:not( :last-child ) {
    margin-bottom: 80px;
}

main .wp-block-columns .wp-block-column {
    flex-basis: 50%;
    flex-grow: 1;
    flex-shrink: 1;
}

main .wp-block-columns.team .wp-block-column {
    flex-basis: unset;
    flex-grow: unset;
    flex-shrink: unset;
}

main .wp-block-table {
    max-width: 900px;
}

main .wp-block-table:not( :first-child ) {
    margin-top: 80px;
}

main .wp-block-table:not( :last-child ) {
    margin-bottom: 80px;
}

main .wp-block-table tr td:nth-child( 2 ) {
    padding-left: 64px;
}

main .wp-block-table.team tr:not( :first-child ) td {
    padding-top: var( --font-normal-lineheight );
}

main .wp-block-list {
    margin-top: var( --font-normal-lineheight );
    list-style: disc;
    padding-left: 1.2em;
    max-width: 900px;
}

main .wp-block-list:not( :first-child ) {
    margin-top: var( --font-normal-lineheight );
}

main .wp-block-list:not( :last-child ) {
    margin-bottom: var( --font-normal-lineheight );
}

main .wp-block-image {
    position: relative;
    width: 100%;
}

main .wp-block-image img {
    display: block;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    width: 100%;
    height: auto;
}

main > .content > .wrapper > .wp-block-image {
    position: relative;
    width: 100%;
    height: auto;
    display: flex;
}

main > .content > .wrapper > .wp-block-image:not( :first-child ) {
    margin-top: 80px;
}

main > .content > .wrapper > .wp-block-image:not( :last-child ) {
    margin-bottom: 80px;
}

main > .content > .wrapper > .wp-block-image img {
    position: relative;
    aspect-ratio: 4 / 3;
    width: auto;
    height: 100%;
    max-width: calc( 100% - 300px );
    max-height: calc( 100vh - 32px - 32px - 3.125rem );
    overflow: hidden;
    flex-shrink: 0;
}

main .wp-block-gallery .wp-block-image figcaption {
    display: none;
}

main .wp-block-gallery,
main .intro {
    position: relative;
    width: 100%;
    height: auto;
}

main .wp-block-gallery {
    scroll-snap-align: start;
    scroll-margin-top: calc( 3.125rem + 32px );
}

main .intro {
    margin-top: -32px;
}

main .wp-block-gallery .wrapper,
main .intro .wrapper {
    position: relative;
    width: 100%;
    height: auto;
    display: flex;
    gap: 32px;
    align-items: center;
}

main .intro .wrapper {
    align-items: flex-start;
}

main .wp-block-gallery .wrapper .strip-wrapper,
main .intro .wrapper .image-wrapper {
    position: relative;
    aspect-ratio: 4 / 3;
    width: calc( 100% - 300px );
    max-width: calc( ( 100vh - 32px - 32px - 3.125rem ) / 3 * 4 );
    height: auto;
    overflow: hidden;
}

main .intro .wp-block-gallery {
    pointer-events: none;
}

main .intro .wp-block-gallery .wrapper .strip-wrapper {
    width: 100%;
    max-width: none;
}

main .wp-block-gallery .wrapper .strip-wrapper .strip {
    position: relative;
    display: flex;
    transition: transform .6s;
}

main .wp-block-gallery .wrapper .strip-wrapper .strip figure {
    transition: transform .6s;
}

main .wp-block-gallery .wrapper .strip-wrapper .strip figure.faded {
    transform: scale( 0.7 );
}

main .wp-block-gallery .wrapper .arrows {
    position: absolute;
    top: 0px;
    width: 32px;
    height: 24px;
    cursor: pointer;
    transition: opacity .2s;
}

main .wp-block-gallery .wrapper .arrows.disabled {
    pointer-events: none;
}

main .wp-block-gallery .wrapper .arrows::after {
    content: "";
    display: block;
    position: absolute;
    width: 16px;
    height: 16px;
    border-left: 2px solid black;
    border-top: 2px solid black;
    left: 3px;
    top: 4px;
    transform: rotateZ( -45deg );
}

main .wp-block-gallery .wrapper .arrows.disabled::after {
    border-left: 2px dotted black;
    border-top: 2px dotted black;
}

main .wp-block-gallery .wrapper .arrows.left {
    left: 0px;
}

main .wp-block-gallery .wrapper .arrows.right {
    right: 0px;
    transform: rotateZ( 180deg );
}

main .wp-block-gallery .wrapper .caption,
main .intro .wrapper .caption {
    position: relative;
    flex-basis: 0px;
    flex-grow: 1;
    max-width: 500px;
}

main .intro .wrapper .caption {
    font-size: var( --font-medium-size );
    line-height: var( --font-medium-lineheight );
    letter-spacing: var( --font-medium-letterspacing );
    position: relative;
    top: -70.5px;
    padding-right: 16px;
    pointer-events: none;
}

main .wp-block-gallery .wrapper .caption .number {
    position: relative;
    width: 100%;
    height: 24px; 
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
}

main .wp-block-gallery .wrapper .caption .text {
    position: absolute;
    width: 100%;
    left: 0px;
    top: 100%;
    margin-top: 32px;
    hyphens: auto;
    opacity: 0;
    transition: opacity .2s;
}

/*main .intro .wrapper .image-wrapper .wp-block-image {
    position: absolute;
    left: 0px;
    top: 0px;
    width: 100%;
    aspect-ratio: 4 / 3;
    transition: opacity .5s;
}

main .intro .wrapper .image-wrapper .wp-block-image:first-child {
    position: relative;
}

main .intro .wrapper .image-wrapper .wp-block-image:first-child img {
    display: block !important;
}*/

main .introtext {
    margin-top: 32px;
    padding-right: 32px;
    scroll-margin-top: calc( 3.125rem + 32px );
}

main .introtext p:first-child {
    font-size: var( --font-large-size );
    line-height: var( --font-large-lineheight );
    letter-spacing: var( --font-large-letterspacing );
    max-width: calc( 100% - 300px );
}

main .introscrolldown {
    position: sticky;
    margin-right: auto;
    margin-bottom: 0px;
    bottom: 32px;
    width: 32px;
    height: 32px;
    display: block;
    margin-top: -32px;
}

main .introscrolldown::before {
    content: "";
    display: block;
    position: absolute;
    width: 2px;
    height: 100%;
    background-color: black;
    top: 0px;
    left: 15px;
}

main .introscrolldown::after {
    content: "";
    display: block;
    position: absolute;
    width: 16px;
    height: 16px;
    border-left: 2px solid black;
    border-bottom: 2px solid black;
    left: 8px;
    top: 13px;
    transform: rotateZ( -45deg );
}


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

    main .wp-block-columns {
        flex-direction: column;
        gap: 80px;
    }

}


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

    main > section > .wrapper {
        padding-left: 16px;
        padding-right: 16px;
    }
    
    main > .content > .wrapper > .wp-block-image {
        width: calc( 100% + 32px );
        margin-left: -16px;
    }
    
    main > .content > .wrapper > .wp-block-image img {
        width: 100%;
        height: auto;
        max-width: 100%;
        max-height: none;
    }
    
    main .wp-block-table tr {
        display: flex;
        flex-direction: column;
    }
    
    main .wp-block-table tr + tr {
        margin-top: var( --font-normal-lineheight );
    }
    
    main .wp-block-table tr td:nth-child( 2 ) {
        padding-left: 0px;
    }

    main .wp-block-gallery,
    main .intro {
        width: calc( 100% + 32px );
        margin-left: -16px;
    }
    
    main .intro .wp-block-gallery {
        width: 100%;
        margin-left: 0px;
    }
    
    main .wp-block-gallery .wrapper {
        flex-direction: column;
    }
    
    main .wp-block-gallery .wrapper .strip-wrapper,
    main .intro .wrapper .image-wrapper {
        width: 100%;
        max-width: 100%;
    }
    
    main .intro .wrapper {
        flex-direction: column-reverse;
    }
    
    main .intro .wrapper .caption {
        width: 100%;
        flex-basis: unset;
        top: 0px;
        padding-left: 16px;
        padding-right: 16px;
    }
    
    main .wp-block-gallery .wrapper .caption {
        flex-basis: auto;
        width: calc( 100% - 32px );
        /*margin-left: 16px;*/
        max-width: none;
    }
    
    main .wp-block-gallery .wrapper .caption .text {
        position: relative;
        top: 0px;
    }
    
    main .introtext {
        padding-right: 0px;
    }

    main .introtext p:first-child {
        max-width: 100%;
    }

    main .introscrolldown {
        display: none;
    }
    
}



/* ### PROJECTS + ALLLINK ### */


main #projekte {
    scroll-margin-top: calc( 3.125rem + 32px );
}

main .projects {
    margin-top: 80px; 
}

main .projects li {
    position: relative;
    width: 100%;
}

main .projects li + li {
    margin-top: 32px;
}

main .projects li a {
    width: 100%;
    display: flex;
    gap: 32px;
    align-items: center;
}

main .projects li:nth-child( even ) a {
    flex-direction: row-reverse;
}

main .projects li a .thumbnail {
    position: relative;
    aspect-ratio: 4 / 3;
    width: calc( 100% - 300px );
    max-width: calc( ( 100vh - 32px - 32px - 3.125rem ) / 3 * 4 );
    height: auto;
    overflow: hidden;
    flex-shrink: 0;
}

main .projects li a .thumbnail img {
    display: block;
    width: 100%;
    height: auto;
}

main .projects li a .title {
    flex-basis: 0px;
    flex-grow: 1;
    padding-right: 16px;
}

main .projects li a .title h3 {
    font-size: var( --font-medium-size );
    line-height: var( --font-medium-lineheight );
    letter-spacing: var( --font-medium-letterspacing );
    font-weight: bold;
    margin-bottom: 32px;
}

main .projects li a .title .projectlink {
    text-decoration: underline;
}

main .alllink {
    font-size: var( --font-medium-size );
    line-height: var( --font-medium-lineheight );
    letter-spacing: var( --font-medium-letterspacing );
    margin-top: 64px;
    border-top: 1px solid rgba(0,0,0,0.1);
    max-width: unset;
    padding-top: 64px;
}

main .alllink button {
    cursor: pointer;
    text-decoration: underline;
}


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

    main .projects li + li {
        margin-top: 64px;
    }
    
    main .projects li a,
    main .projects li:nth-child( even ) a { 
        flex-direction: column;
    }
    
    main .projects li a .thumbnail {
        width: 100%;
        max-width: none;
    }
    
}



/* ### PROJECTGRID ### */


main > section:has( .projectgrid.more ) {
    background-color: rgb( 250, 248, 247 );    
}

main .projectgrid {
    position: relative;
}

main .projectgrid.more {
    margin-top: 80px;
    margin-bottom: -80px;
    padding-top: 80px;
    padding-bottom: 80px;
}

main .projectgrid.additional {
    margin-top: 64px;
}

main .projectgrid h3 {
    font-size: var( --font-medium-size );
    line-height: var( --font-medium-lineheight );
    letter-spacing: var( --font-medium-letterspacing );
    font-weight: bold;
    margin-bottom: 64px;
}

main .projectgrid ul {
    position: relative;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 32px;
    row-gap: 64px;
}

main .projectgrid ul li a {
    width: 100%;
}

main .projectgrid ul li a .thumbnail {
    width: 100%;
}

main .projectgrid ul li a .thumbnail img {
    display: block;
    width: 100%;
    height: auto;
}

main .projectgrid ul li a .title {
    margin-top: 16px;
    padding-right: 16px;
}

main .projectgrid ul li a .title h4 {
    font-size: var( --font-medium-size );
    line-height: var( --font-medium-lineheight );
    letter-spacing: var( --font-medium-letterspacing );
    font-weight: bold;
    margin-bottom: 16px;
}

main .projectgrid ul li a .title .projectlink {
    text-decoration: underline;
}


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

    main .projectgrid ul {
        grid-template-columns: 1fr 1fr;   
    }

}


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

    main .projectgrid.more {
        margin-left: -16px;
        margin-right: -16px;
        padding-left: 16px;
        padding-right: 16px;
    }
    
    main .projectgrid ul {
        grid-template-columns: 1fr;   
    }
    
    main .projectgrid ul li a .title {
        margin-top: 32px;
    }
    
}



/* ### NEWS ### */


main ul.news {
    display: flex;
    flex-direction: column;
    gap: 64px;
}

main ul.news li {
    display: flex;
    gap: 32px;
}

main ul.news li .date,
main ul.news li .title,
main ul.news li .thumbnail {
    flex-basis: 0px;
    flex-shrink: 0;
}

main ul.news li .date,
main ul.news li .title h3 {
    font-size: var( --font-medium-size );
    line-height: var( --font-medium-lineheight );
    letter-spacing: var( --font-medium-letterspacing );
}

main ul.news li .title h3 {
    font-weight: bold;
}

main ul.news li .title {
    padding-right: 16px;
}

main ul.news li .title h3 {
    margin-bottom: 32px;
}

main ul.news li .date {
    flex-grow: 1;
}

main ul.news li .title {
    flex-grow: 2;
}

main ul.news li .thumbnail {
    flex-grow: 1;
    margin-top: 5px;
}

main ul.news li .thumbnail {
    position: relative;
}

main ul.news li .thumbnail img {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
}


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

    main ul.news li {
        flex-direction: column;
    }
    
    main ul.news li .title {
        margin-top: -32px;
        padding-right: 0px;
    }

}



/* ### QUICKLINKS ### */


main > section:has( .quicklinks ) {
    background-color: rgb( 250, 248, 247 );
    padding-top: 80px;
    padding-bottom: 80px;
    margin-top: 80px;
    margin-bottom: -80px;
}

main .quicklinks {
    display: flex;
    gap: 160px;
    /*margin-top: 80px;*/
}

main .quicklinks .quicklink {
    flex-basis: 0px;
    flex-grow: 1;
}

main .quicklinks .quicklink .thumbnail {
    position: relative;
    width: 100%;
}

main .quicklinks .quicklink .thumbnail img {
    display: block;
    width: 100%;
    height: auto;
}

main .quicklinks .quicklink .title {
    padding-right: 16px;
}

main .quicklinks .quicklink .title h4 {
    font-size: var( --font-medium-size );
    line-height: var( --font-medium-lineheight );
    letter-spacing: var( --font-medium-letterspacing );
    font-weight: bold;
    margin-top: 32px;
    margin-bottom: 32px;
    text-wrap: balance;
}

main .quicklinks .quicklink .title strong {
    font-weight: normal;
}

main .quicklinks .quicklink .title .projectlink {
    text-decoration: underline;
}


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

    main .quicklinks {
        flex-direction: column;
        gap: 64px;
    }
    
}



/* ### FOOTER ### */


footer {
    position: relative;
    width: 100%;
    background-color: black;
    color: white;    
}

footer > .wrapper {
    padding: 32px;
    margin-left: auto;
    margin-right: auto;
    max-width: 1800px;
}

footer > .wrapper .logo {
    font-size: var( --font-medium-size );
    line-height: var( --font-medium-lineheight );
    letter-spacing: var( --font-medium-letterspacing );
    font-weight: bold;
    margin-bottom: 32px;
}

footer > .wrapper p + p {
    margin-top: var( --font-normal-lineheight );
}

footer > .wrapper nav {
    margin-top: var( --font-normal-lineheight );
}
    

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

    footer > .wrapper {
        padding-left: 16px;
        padding-right: 16px;
    }

}


