:root {
    --yellow: #F4C012;
}

* {
    margin: 0;
    padding: 0;
    font-family: inherit;
    line-height: inherit;
}

li {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

body {
    font-family: menlo, consolas, monospace;
    line-height: 1;
}

@media screen and (max-width: 700px) {
    body {
        font-size: 0.8rem;
    }
}

main {
    padding-bottom: 10vh;
    margin: 40vh 5% 0 26rem;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

@media screen and (max-width: 1024px) {
    main {
        margin: 5%;
    }
    .headerwrap {
        display: flex;
        flex-direction: row-reverse;
        gap: 3rem;
        padding: 0 5%;
        justify-content: space-between;
        align-items: flex-start;
    }
}

@media screen and (max-width: 780px) {
    .headerwrap {
        flex-direction: column;
        align-items: flex-end;
        
    }
}


.hero {
    & .image {
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100vh;
        object-fit: cover;
        z-index: -1;
    }
    
    & .headline {
        position: absolute;
        top: -1.5em;
        right: 5%;
        background: var(--yellow);
        color: #fff;
        text-transform: lowercase;
        width: 20ch;
        min-width: 20ch;
        padding: 3em 1.2em 0.5em;
        transform: rotate(-5deg);
        letter-spacing: .1em;
    }
    
    & .headline::after {
        content: '-----------------';
    }

    & .headline_small {
        line-height: 1.4;
    }
    
    & .headline_small::after {
        content: '---';
    }
    
    & .headline_big {
        text-transform: uppercase;
        display: flex;
        position: relative;
        font-size: 2em;
    }
    
    & .headline_dark {
        color: var(--yellow);
        display: block;
        z-index: 1;
    }
    
    & .headline_dark::after {
        content: '';
        position: absolute;
        background: #000;
        inset: -5px -12px;
        height: 100%;
        z-index: -1;
        width: 2.22em;
        height: 115%;
        transform: rotate(-5deg)
    }
    
    & .headline_second {
        position: relative;
        z-index: 2;
    }
}

@media screen and (max-width: 1024px) {
    .hero {
        display: flex;
        justify-content: flex-end;
        font-size: clamp(0.65rem, 1.6vw, 0.9rem);
        & .headline {
            position: static;
            margin: -1.5rem 5% 0 0;
        }
    }
}

@media screen and (max-width: 550px) {
    .hero {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
}

.lang {
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    margin-left: 5%;
    gap: 1rem;
    a {
        display: block;
        padding: 1rem 0;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        font-size: 0.8rem;
        opacity: 0.5;
        &[aria-current] {
            font-weight: bold;
            opacity: 1;
        }
    }
}

@media screen and (max-width: 1024px) {
    & .lang {
        position: absolute;
    }
}

@media screen and (max-width: 550px) {
    .lang {
        position: static;
    }
}

nav {
    position: fixed;
    margin-left: -2rem;
    top: 20vh;
    & ul {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    & li {
        width: fit-content;
        transform: rotate(-5deg);
        transform-origin: 0 0;
    }
    & a {
        border: none;
        cursor: pointer;
        font-size: 1.5rem;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        display: block;
        background: var(--yellow);
        color: #000;
        font-weight: bold;
        padding: 1rem 1rem 1rem 4rem;
        &[aria-current=true],
        &:hover {
            background: #000;
            color: var(--yellow);
        }
        &:active {
            position: relative;
            top: 2px;
            left: 2px;
        }
    }
}

@media screen and (max-width: 1024px) {
    & nav {
        position: static;
        display: flex;
        margin: 5rem 0;
        & ul {
            flex-direction: row;
            flex-wrap: wrap;
            transform: rotate(-5deg);
            justify-content: flex-end;
        }
        & li {
            transform: rotate(0);
        }
        & a {
            padding-left: 1rem;
            font-size: 1rem;
            white-space: nowrap;
        }
    }
}

@media screen and (max-width: 780px) {
    & nav {
        margin: 0;
        & ul {
            justify-content: center;
            transform: rotate(0);
        }
    }
    
}

.definition {
    position: relative;
    color: #000;
    font-size: 1.25rem;
    line-height: 1.5;
    padding: 5%;
    max-width: 47vw;
    margin: 10vh 0;
    &::before {
        content: '';
        background: var(--yellow);
        opacity: 0.8;
        position: absolute;
        transform: rotate(-5deg);
        inset: 0;
        z-index: -1;
    }
}

@media screen and (max-width: 1024px) {
    .definition {
        max-width: none;
        margin: 0;
    }
}

@media screen and (max-width: 780px) {
    .definition {
        font-size: 0.9rem;
        overflow: hidden;
        margin-top: 2rem;
        hyphens: auto;
        &::before {
            inset: -2rem;
            transform: rotate(0);
        }
    }
}


h2 {
    align-self: flex-start;
    font-size: 3rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 1em 0;
    background: #000;
    color: var(--yellow);
    padding: 1rem 5%;
    width: fit-content;
    hyphens: auto;
}

@media screen and (max-width: 700px) {
    h2 {
        font-size: 1.5rem;
    }
}

.news {
    width: 100%;
    
}

.newslist {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 10vh;
    & li {
        background: rgba(255,255,255,0.8);
        padding: 1rem 5%;
        line-height: 1.5;
    }
    & h3 {
        font-size: 1.25rem;
    }

    & p {
        margin-bottom: 1em;
    }
}

@media screen and (max-width: 780px) {
    .newslist {
        & li {
            font-size: 0.9rem;
        }
    }
}

.image {
    display: block;
    
    max-width: 100%;
    height: auto;
}

figure {
    margin: 1rem 0;
}

figcaption {
    font-size: 0.8rem;
    margin-bottom: 1.5rem;
    background: white;
    padding: .4rem 1rem;
}

.textbox {
    background: rgba(255,255,255,0.9);
    padding: 1rem 5%;
    line-height: 1.5;
    & p {
        margin: 1rem 0;
    }
    & h3 {
        font-size: 1.25rem;
        margin: 1rem 0;
    }
    & a {
        text-decoration: underline;
        text-decoration-thickness: 1px;
        text-underline-offset: 3px;
    }
    & ul:not([class]) li {
        list-style: disc outside;
        margin-left: 1em;
    }
}

.howto {
    margin-bottom: 10vh;
}

.contactboxes {
    display: flex;
    gap: 3rem;
    margin-bottom: 1rem;
}

@media screen and (max-width: 700px) {
    .contactboxes {
        flex-direction: column;
        gap: 1.5rem;
    }
}

.textlist {
    margin: 1rem 0;
    & li {
        text-indent: -3ch;
        margin-left: 3ch;
        &::before {
            content: '-> '
        }
    }
}

.buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 1.5rem 0;
}

.button {
    white-space: nowrap;
    -webkit-appearance: none;
    appearance: none;
    border: none;
    text-decoration: none !important;
    font-weight: bold;
    display: block;
    width: fit-content;
    line-height: 1;
    padding: 1rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: var(--yellow);
    &:focus, &:hover, &:active {
        background: #000;
        color: var(--yellow);
    }
}

.full {
    width: 100%;
}

.peoplewrap {
    padding: 5%;
    margin-bottom: 10vh;
    background: rgba(255,255,255,0.9);
    
}

.people {
    
    line-height: 1.5;
    display: grid;
    gap: 2.5rem;
    grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
    width: 100%;
    margin: 0 0 2rem 0;

    &.wide {
        grid-template-columns: repeat(auto-fit, minmax(29rem, 1fr));
        @media screen and (max-width: 700px) {
            grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
        }
    }

    & article {
        display: flex;
        flex-direction: column;
        position: relative;
        line-height: 1.4;
    }

    & h3 {
        margin-top: .5rem;
        line-height: 1.4;
        font-size: 1rem;
        margin-bottom: 0.25em;
        
    }

    & img {
        display: block;
        margin-top: 1rem;
        max-width: 100%;
        height: auto;
    }



    & small {
        margin: -0.2rem 0;
        display: block;
    }

    & p {
        margin-top: 0.5rem;
        margin-bottom: 0;
        font-size: 0.85rem;
        hyphens: auto;
    }

    & .year {
        width: fit-content;
        background: var(--yellow);
        color: #fff;
        padding: .1em 1em;
        order: -1;
    }

    & .work {
        display: flex;
        gap: 0.5em;
        &::before {
            content: '';
            background: url(img/icon_pencil.svg) 50% 50% no-repeat;
            background-size: contain;
            display: block;
            height: 1em;
            min-width: 1.1em;
            margin-top: 2px;
          }
        & a {
            text-decoration: underline;
            text-decoration-thickness: 1px;
            text-underline-offset: 3px;
            &::after {
                content: '';
                position: absolute;
                background: url(img/icon_external.svg) 50% 50% no-repeat;
                background-size: contain;
                display: inline-block;
                height: 1em;
                min-width: 1.1em;
                text-decoration: none;
                transform: translateX(5px) translateY(2px);
              }
        }
    }
    & .published {
        display: flex;
        gap: 0.5em;
        margin-top: 0.25em;
        &::before {
            content: '';
            background: url(img/icon_news.svg) 50% 50% no-repeat;
            background-size: contain;
            display: block;
            height: 1.3em;
            min-width: 1.1em;
          }
    }
}

.awardlist {
    border-collapse: collapse;
    & tr {
        border-top: 1px dashed #000;
        border-bottom: 1px dashed #000;
    }
    & td, & th {
        padding: 1em 0;
        vertical-align: top;
        line-height: 1.25;
        font-size: 0.85rem;
    }
    & a {
        text-decoration: underline;
        text-decoration-thickness: 1px;
        text-underline-offset: 3px;
        text-decoration-color: #aaa;
        &::after {
            content: '';
            position: absolute;
            background: url(img/icon_external.svg) 50% 50% no-repeat;
            background-size: contain;
            display: inline-block;
            height: 1em;
            min-width: 1.1em;
            text-decoration: none;
            transform: translateX(5px) translateY(2px);
          }
    }
    & th {
        background: var(--yellow);
        color: #fff;
        padding: 0 0.5em;
        vertical-align: middle;
    }
    & td:nth-child(2) {
        padding-left: 1rem;
    }
    & td:nth-child(3) {
        padding-left: 1rem;
    }
    & td:nth-child(4) {
        display: flex;
        padding-left: 1rem;
        gap: 0.5rem;
        &::before {
            content: '';
            background: url(img/icon_news.svg) 50% 50% no-repeat;
            background-size: contain;
            display: inline-block;
            height: 1.3em;
            min-width: 1.1em;
          }
    }

    @media screen and (max-width: 700px) {
        & td {
            display: block;
            padding: 0.1rem 0;
            &:nth-child(2) {
                margin-top: 0.5rem;
            }
            &:last-child {
                margin-bottom: 0.5rem;
            }
        }
        & th {
            margin-top: 0.5rem!important;
        }
    }
}

.logos {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 1rem;
    max-width: 900px;
    & figure {
        background: rgba(255,255,255,0.9);
        padding: 1em;
        display: flex;

        &:nth-child(2) {
            grid-row: span 2;
        }
    }
    & a {
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 2%;
    }
    & img {
        display: block;
        width: 100%;
        height: auto;
        
        &.nost {
            margin-top: 2vw;
            margin-bottom: 2vw;
        }
    }
    
}


.aboutintro {
    & a {
        &::after {
            content: '';
            background: url(img/icon_external.svg) 50% 50% no-repeat;
            background-size: contain;
            display: inline-block;
            height: 1em;
            min-width: 1.1em;
            text-decoration: none;
            transform: translateX(5px) translateY(2px);
          }
    }
}

small {
    color: #888;
    font-size: 0.85rem;
}

.gap {
    margin: 1rem 0;
}

footer {
    display: flex;
    justify-content: flex-end;
    padding: 1rem 5%;
    & ul {
        display: flex;
        gap: 1rem;
    }
    & a {
        color: var(--yellow);
        background: black;
        display: block;
        padding: 0.5rem 1rem;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        font-size: 0.8rem;
    }
}