:root {
    --main-color: #9f1533;
    --alt-color: #eba2b2;
    --main-gray: #252525;
    --alt-gray: #bbbbbb;
    --alt-darker-gray: #1d1d1d;
    --main-contrast: #ffffff;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--main-gray);
    margin: 32px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--main-contrast);
    max-width: 100vw;
    overflow-x: hidden;
}

.highlight {
    color: var(--main-color);
}

.white {
    color: var(--main-contrast);
}

.unselectable {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.reveal {
    opacity: 1;
    transform: translateY(0);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.12s;
}

header {
    position: sticky;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 90vw;
    top: 32px;
    left: 5vw;
    z-index: 10;
}

.title {
    color: var(--alt-gray);
    font-weight: bold;
    z-index: 10;
    text-shadow: #000 0 0 5px;
}

a {
    color: var(--alt-gray);
    text-decoration: none;
    transition: 0.2s;
}

header a {
    z-index: 10;
    text-shadow: #000 0 0 5px;
}

a:hover {
    color: var(--main-contrast);
}

a.portfolio {
    color: var(--main-contrast);
    white-space: pre;
    line-height: 1.8em;
}

a.portfolio:hover {
    text-decoration: underline;
}

nav {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 32vw; /* Eigentlich: 25vw */
}

nav.portfolio {
    width: 25vw;
    justify-content: flex-end;
}

.top-shadow {
    position: absolute;
    width: 150vw;
    height: 50vh;
    top: -32px;
    left: -25vw;
    box-shadow: inset 0 100px 100px #00000077;
    pointer-events: none;
    z-index: 9;
}

main {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 64px;
}

main.impressum {
    margin-bottom: 64px;
}

.top {
    position: relative;
    display: flex;
    /*top: -96px;*/
    height: calc(100vh - 192px);
    padding: 64px;
    align-items: center;
    justify-content: space-between;
    border-radius: 40px;
}

.welcome {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    transform: translateY(-16px);
}

.heading {
    font-size: 100px;
    font-variant: small-caps;
    font-weight: bold;
    line-height: 0.8;
    letter-spacing: -4px;
}

.eyebrow {
    text-transform: uppercase;
    font-size: 16px;
    font-weight: bold;
    color: var(--alt-gray);
}

.introduction {
    padding-top: 14px;
    font-variant: normal;
    font-size: 16px;
    color: var(--alt-gray);
}

.hero {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 62vw;
}

.hero-icon {
    height: auto;
    width: 27vw;
    transform: translateX(4.8vw);
    z-index: 20;
}

.impressum-top {
    max-width: calc(100vw - 64px);
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 96px 0 0;
}

.impressum-icon {
    height: 18vh;
    width: auto;
    z-index: 20;
}

.buttons {
    position: relative;
    display: flex;
    gap: 8px;
}

.buttons > button {
    position: relative;
    display: flex;
    padding: 8px 12px;
    color: var(--main-contrast);
    border-color: var(--main-contrast);
    border-width: 2px;
    border-style: solid;
    background-color: #00000000;
    font-size: 20px;
    align-items: center;
    cursor: pointer;
    overflow: hidden;
}

.buttons > button>span {
    z-index: 10;
}

.buttons > button::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #ffffff28;
    transform: translateX(-12px) translateY(100%);
    transition: 0.2s ease-in-out;
}

.buttons > button:hover::after {
    transform: translateX(-12px) translateY(0);
}

.buttons > button + .highlight {
    color: var(--main-contrast);
    background-color: #9f1533;
    border: none;
    text-align: center;
}

.buttons > button + .highlight::after {
    transform: translateX(calc(100% - 12px));
}

.buttons > button + .highlight:hover::after {
    transform: translateX(-12px);
}

.circle {
    position: absolute;
    border-radius: 50%;
    aspect-ratio: 1/1;
    z-index: -1;
    box-shadow:  #25252577 0 0 100px 5px;
}

.c0 {
    background-color: #4D4D4D;
    min-height: 110vh;
    width: 90vw;
    right: calc(-45vw - 32px);
}

.c1 {
    background-color: #434343;
    min-height: 120vh;
    width: 110vw;
    right: calc(-55vw - 32px);
}

.c2 {
    background-color: #393939;
    min-height: 130vh;
    width: 130vw;
    right: calc(-65vw - 32px);
}

.c3 {
    background-color: #2F2F2F;
    min-height: 140vh;
    width: 150vw;
    right: calc(-75vw - 32px);
}

.impressum-c0 {
    background-color: #4D4D4D;
    min-width: 50vw;
    width: 50vw;
    top: calc(-25vw + 18vh + 32px);
}

.impressum-c1 {
    background-color: #434343;
    min-width: 70vw;
    width: 70vw;
    top: calc(-35vw + 18vh + 32px);
}

.impressum-c2 {
    background-color: #393939;
    min-width: 90vw;
    width: 90vw;
    top: calc(-45vw + 18vh + 32px);
}

.impressum-c3 {
    background-color: #2F2F2F;
    min-width: 110vw;
    width: 110vw;
    top: calc(-55vw + 18vh + 32px);
}

.scroll-indicator-container {
    position: absolute;
    display: grid;
    left: -32px;
    bottom: 0;
    width: 100vw;
    place-items: center;
    align-items: flex-end;
    height: 30px;
}

.scroll-indicator-inner-container {
    position: relative;
    display: flex;
    justify-content: center;
    animation: scroll-bounce 4s 2s infinite;
}

.scroll-indicator {
    position: absolute;
    width: 60px;
    height: 1px;
    background-color: var(--alt-gray);
}

.scroll-indicator.left {
    transform: rotate(30deg) translateX(-30px);
}

.scroll-indicator.right {
    transform: rotate(-30deg) translateX(30px);
}

@keyframes scroll-bounce {
    0%, 50% {
        translate: 0 0;
    }

    10%, 30% {
        translate: 0 -5px;
    }

    20% {
        translate: 0 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .scroll-indicator-inner-container {
        animation: none;
    }
}

.main-container {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 32px; 
    margin: 0 64px;
}

.impressum-container {
    margin: 0;
    padding: 0 64px;
}

.main-header {
    font-weight: bold;
    font-size: 40px;
    scroll-margin-top: 20vh;
}

.secondary-header {
    text-wrap: nowrap;
    font-weight: bold;
    font-size: 32px;
    scroll-margin-top: 20vh;
    margin-right: 32px;
}

.card-container {
    position: relative;
    display: flex;
    gap: 64px;
}

.card {
    position: relative;
    display: flex;
    background-color: #242222;
    border-radius: 32px;
    border: #581e2a solid 1px;
    padding: 32px;
    box-shadow:  #00000055 0 0 24px 8px;
    max-width: calc(50vw - 192px);
    align-items: center;
    gap: 32px;
}

.card.impressum {
    background-color: var(--alt-darker-gray);
    border-color: #474747;
    max-width: calc(100vw - 192px);
    width: calc(100vw - 192px);
    align-items: start;
    font-size: 1.05rem;
}

.card-container.portfolio {
    max-width: calc(100vw - 192px);
    width: calc(100vw - 192px);
    gap: 32px;
}

.card.portfolio {
    background-color: var(--alt-darker-gray);
    border-color: #474747;
    max-width: 100%;
    width: 100%;
    align-items: start;
    font-size: 1.05rem;
}

.card-main-content {
    display: flex;
    flex-direction: column;
}

.team-photo {
    aspect-ratio: 1/1;
    height: 12vw;
    border-radius: 8px;
    box-shadow: #00000055 0 0 24px 4px;
}

.team-photo.portfolio {
    max-width: 12vw; 
    width: 12vw; 
    height: 16vw;
}

.portfolio-slider-wrapper {
    position: relative;
    height: 15vw;
    min-width: 26.6666666666666666666666666666667vw;
    aspect-ratio: 16 / 9;
    border-radius: 32px;
    box-shadow: #00000055 0 0 24px 4px;
    overflow: hidden;
}

.portfolio-photo-container {
    display: flex;
    height: 15vw;
    aspect-ratio: 16 / 9;
    overflow-x: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
}

.portfolio-photo {
    height: 15vw;
    width: auto;
    border-radius: 32px;
    box-shadow: #00000055 0 0 24px 4px;
    cursor: zoom-in;
}

.portfolio-photo.scroll {
    flex: 0 0 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    scroll-snap-align: start;
    border-radius: 0;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: #00000055;
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.slider-arrow:hover {
    background: #000000bb;
}

.slider-arrow.prev { left: 12px; }
.slider-arrow.next { right: 12px; }

.card-header {
    font-weight: bold;
    font-size: 22px;
}

.alias {
    font-weight: normal;
    font-size: 16px;
    color: var(--alt-gray);
}

.card-title {
    font-size: 12px;
    font-style: italic;
    color: var(--alt-color)
}

.divider {
    background-color: var(--main-contrast);
    height: 3px;
    border-radius: 8px;
    width: 100%;
}

.card-divider {
    background-color: var(--main-color);
    height: 3px;
    border-radius: 8px;
    width: 100%;
    margin: 20px 0;
}

.card-divider.impressum {
    background-color: #474747;
    width: calc(100vw - 256px);
}

.card-desc {
    color: var(--alt-gray);
}

.card-desc.impressum {
    height: 100%;
    align-items: center;
}

.card-desc.impressum > ul {
    line-height: 1.4rem;
    margin: 0.7rem 0;
}

footer {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    width: calc(100vw - 256px);
    height: 24vh;
    padding: 0 128px 36px 128px;
    background-color: var(--alt-darker-gray);
    transform: translateX(-32px) translateY(32px);
}

.copyright {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.copyright > div {
    inline-size: max-content;
    font-size: 12px;
    color: var(--alt-gray);
}

footer .icon {
    width: 140px;
}

footer nav {
    flex-direction: column;
    font-size: 12px;
    gap: 4px;
}

.footer-heading {
    font-variant: small-caps;
    font-weight: bold;
    margin-bottom: 8px;
}

footer nav.left {
    text-align: left;
    align-items: flex-start;
}

footer nav.left > a::before {
    content: "";
    position: absolute;
    width: 8px;
    height: 2px;
    margin-top: 8px;
    transform: translateX(-24px);
    background-color: #ffffff;
    border-radius: 100px;
    opacity: 0;
    transition: 0.2s;
}

footer nav.left > a:hover::before {
    transform: translateX(-12px);    
    opacity: 1;
}

footer nav.right {
    text-align: right;
    align-items: flex-end;
}

footer nav.right > a::after {
    content: "";
    position: absolute;
    width: 8px;
    height: 2px;
    margin-top: 8px;
    margin-left: 16px;
    background-color: #ffffff;
    border-radius: 100px;
    opacity: 0;
    transition: 0.2s;
}

footer nav.right > a:hover::after {
    margin-left: 4px;
    opacity: 1;
}

.copyright-container {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    bottom: 16px;
}

.separator {
    width: 30vw;
    height: 2px;
    background-color: #303030;
}

.copyright-lbl {
    inline-size: max-content;
    font-size: 10px;
    color: var(--alt-gray);
}

.big-image-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000000aa;
    z-index: 500;
    display: none;
    align-items: center;
    justify-content: center;
}

.big-image {
    border-radius: 16px;
    z-index: 501;
    max-width: 80vw;
    max-height: 80vh;
    min-height: 80vh;
}

.big-image-close {
    position: absolute;
    top: 32px;
    right: 32px;
    font-size: 4em;
    line-height: 0.5em;
    cursor: pointer;
    background-color: #9f153355;
    aspect-ratio: 1 / 1;
    height: 48px; 
    text-align: center;
    border-radius: 8px;
}

/* HANDY */

@media (max-width: 600px) {
    html, body {
        width: 100%;
        overflow-x: clip;
        margin: 0;
        padding: 0;
    }
    
    header {
        max-width: 100vw; 
    }

    .impressum-c0 {
        background-color: #4D4D4D;
        min-width: 150vw;
        width: 150vw;
        top: calc(-75vw + 18vh + 32px);
        left: -25vw;
    }

    .impressum-c1 {
        background-color: #434343;
        min-width: 200vw;
        width: 200vw;
        top: calc(-100vw + 18vh + 32px);
        left: -50vw;
    }

    .impressum-c2 {
        background-color: #393939;
        min-width: 250vw;
        width: 250vw;
        top: calc(-125vw + 18vh + 32px);
        left: -75vw;
    }

    .impressum-c3 {
        background-color: #2F2F2F;
        min-width: 300vw;
        width: 300vw;
        top: calc(-150vw + 18vh + 32px);
        left: -100vw;
    }
    
    .secondary-header {
        text-wrap: wrap;
    }

    .nowrap {
        text-wrap: nowrap;
    }

    .big-image {
        min-height: 1vh;
        width: 80vw;
        height: auto;
    }

    .big-image-close {
        display: none;
    }

    .card-container {
        display: flex;
        flex-direction: column;
    }

    .team-photo.portfolio {
        aspect-ratio: 3 / 4;
        max-width: calc(100vw - 192px); 
        width: calc(100vw - 192px); 
        height: auto;
    }

    .card {
        display: flex;
        flex-direction: column;
        max-width: calc(100vw - 192px);
        width: calc(100vw - 192px);
    }

    .card.portfolio {
        max-width: calc(100vw - 192px);
        width: calc(100vw - 192px);
    }

    .portfolio-slider-wrapper {
        max-width: calc(100vw - 128px);
        width: calc(100vw - 128px);
        height: auto;
    }

    .portfolio-photo-container {
        max-width: calc(100vw - 128px);
        width: calc(100vw - 128px);
        height: auto;
    }

    .portfolio-photo {
        max-width: calc(100vw - 128px);
        width: calc(100vw - 128px);
        height: auto;
    } 

    .card-container.portfolio > .portfolio-slider-wrapper,
    .card-container.portfolio > .portfolio-photo {
        order: 2;
    }

    .card-container.portfolio > .card.portfolio {
        order: 1;
    }

    footer {
        width: 100vw;
        height: 36vh;
        padding: 0 0 36px 0;
        background-color: var(--alt-darker-gray);
        transform: translateX(0) translateY(32px);
    }

    footer nav.left {
        transform: translate(12vw, -80px);
    }

    footer nav.right {
        transform: translate(-12vw, -80px);
    }

    footer .copyright {
        transform: translateY(64px);
    }
}