/*Typografie------------------------------------------------------------*/
h1,
h2,
h3,
p,
.nav a,
.button,
.button-home,
.project-name,
time {
    font-family: system-ui, sans-serif;
}

h1 {
    color: #989898d1;
    font-weight: 100;
    font-size: 3rem;
    letter-spacing: 2rem;
    margin: 0;
}

h1:not(.title-project) {
    padding-top: 45vh;
    text-align: center;
}

h2,
h3 {
    color: #555;
    margin: 0;
}

p,
time {
    font-size: 1rem;
    letter-spacing: 0.025em;
    line-height: 1.8rem;
    color: #555;
    font-weight: 400;
    max-width: 600px;
}

time {
    font-size: 0.7rem;
    color: #9b9b9b;
}

/*Alle Seiten------------------------------------------------------------*/
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

::-webkit-scrollbar {
    width: 0.2rem;
}

::-webkit-scrollbar-track {
    background: #6c6c6c3d;
}

::-webkit-scrollbar-thumb {
    background: #6c6c6c;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

body {
    background: url(Bilder/hintergrund.jpg);
    background-size: cover;
    margin: 0;
    width: 100%;
    overflow-x: hidden;
}

input {
    display: none;
}

.nav {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 999;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 2.8125rem;
    padding: 1.5rem 1.25rem;
    margin: 0;
}

.nav ul {
    display: flex;
    gap: 1.6875rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.nav li {
    margin: 0;
    list-style: none;
}

.nav a {
    font-size: 0.875rem;
    letter-spacing: 0.02em;
    text-decoration: none;
    color: #555;
    display: inline-block;
    text-align: center;
    font-weight: 600;
}

.nav li a:hover {
    opacity: 0.5;
}

.logo {
    width: 100%;
    max-width: 50px;
    position: fixed;
    top: 0;
    left: 0;
    margin: 10px;
    opacity: 0.6;
}

.visit {
    pointer-events: none;
    opacity: 0.5;
}

.hero {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    height: 100vh;
    padding: 0 80px;
}

.hero img:not(.introduction img) {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.origami {
    width: 40%;
}

.feder {
    height: 80%;
    width: auto;
    padding-bottom: 8%;
}

.fisch {
    width: 22%;
}

.introduction {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.introduction p {
    text-align: center;
    margin-top: 6px;
}

.arrow-downward {
    max-width: 3em;
    opacity: 0.6;
    animation: float-wobble 4s ease-in-out infinite;
}

/*Content*/
.units-wrap {
    margin: 20px auto 0 auto;
    max-width: 70%;
    display: flex;
    flex-direction: column;
    padding-left: 40px;
    padding-right: 40px;
}

.unit {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    column-gap: 100px;
    max-width: 100%;
}

.index .unit,
.blog .unit {
    column-gap: 80px;
    margin-top: 80px;
}

.unit-centered {
    margin-top: 70px;
    justify-content: center;
    text-align: center;
    flex-direction: column;
}

.unit-centered .description {
    margin: 12px auto 0 auto;
    max-width: 500px;
}

.img-wrap {
    flex: 1;
    display: flex;
    justify-content: center;
}

.unit img:not(img.slide) {
    width: 80%;
    height: auto;
    display: block;
    margin: 0;
}

.text-wrap {
    flex: 1;
    min-width: 300px;
}

.button,
.button-home {
    display: inline-block;
    font-size: 1rem;
    border-radius: 0.25rem;
    text-decoration: none;
    padding: 10px 42px 10px 42px;
    white-space: nowrap;
    transition: background-color 0.3s ease;
    background-color: rgba(68, 68, 68, 0.82);
    color: #ffffff;
    margin-top: 18px;
}

.button-home {
    border: 1pt solid rgba(74, 74, 74, 0.3);
    background-color: rgba(255, 255, 255, 0);
    color: #585858;
}

.button:hover {
    background-color: rgba(185, 185, 185, 0.82);
}

.button-home:hover {
    background-color: rgba(68, 68, 68, 0.82);
    color: #f4f4f4;
}

.project-image--steps {
    width: 100%;
    margin-top: 100px;
}

.projects-wrap {
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    text-shadow: 0 0 12px #3d3d3d;
    align-items: center;
    gap: 40px;
    margin-top: 50px;
}

.angle-box {
    width: 150px;
    height: 300px;
    transform: skewX(-30deg);
    overflow: hidden;
    border: solid 1pt #555;
    z-index: 1;
    background-color: white;
}

.gradientoverlay {
    width: 100%;
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.8;
}

.project {
    position: relative;
}

.project-name {
    position: absolute;
    color: #fff;
    z-index: 2;
    bottom: 2px;
    left: -55px;
    font-size: 1em;
    font-weight: 700;
    letter-spacing: 0.125rem;
    line-height: 1em;
    pointer-events: none;
    max-width: 100px;
    text-align: left;
}

.preview-wrap {
    transform: skewX(30deg);
}

.preview {
    position: relative;
    transform: scale(0.7);
    bottom: 250px;
    right: 55px;
    transform-origin: center center;
    filter: grayscale(100%);
    transition:
        transform 0.36s ease,
        filter 0.36s ease;
}

.preview-visit {
    position: relative;
    transform: scale(0.7);
    bottom: 250px;
    right: 55px;
    transform-origin: center center;
    pointer-events: none;
}

.preview:hover {
    transform: scale(0.8);
    filter: grayscale(0%);
    opacity: 1;
}

.social-media:hover {
    transform: scale(1.2);
    opacity: 1;
}

footer {
    margin: 80px 0 20px 0;
    padding-top: 24px;
    border-top: 1pt solid rgba(128, 128, 128, 0.3);
    width: 100vw;
}

.footer-content {
    display: flex;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    justify-content: space-between;
}

footer p {
    color: #939393;
    font-size: 0.6rem;
    line-height: 1rem;
}

.arrow-scrollup {
    width: 32px;
    margin-top: 12px;
    opacity: 0.3;
    transition: transform 0.2s ease;
    transform: scaleY(-1);
}

.origami,
.feder,
.fisch-home,
.origami-home,
.fisch,
video {
    opacity: 0.15;
    pointer-events: none;
}

/*Startseite------------------------------------------------------------*/
@keyframes float-wobble {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) rotate(0deg);
    }
    100% {
        transform: translateY(0) rotate(0deg);
    }
}

@keyframes fadeInContainer {
    to {
        opacity: 1;
    }
}
/*Hero Section*/
video {
    mix-blend-mode: multiply;
    max-height: 80%;
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.index .introduction,
.SEBASTIAN-TRAN {
    opacity: 0;
    animation: fadeInContainer 4s ease 4s forwards;
}

img.fisch-home {
    max-width: 47%;
    margin: 0 auto;
}

/*Projekte*/
/*Hero*/
.projectpage .hero {
    height: 200px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 80px;
    align-items: flex-start;
    justify-content: center;
}

.title-project {
    font-size: 5rem;
    line-height: 5rem;
    letter-spacing: 0.05em;
    margin: 0 auto;
}

.subtitle {
    font-size: 1rem;
    font-weight: normal;
    color: #9b9b9b;
    white-space: nowrap;
    margin: 0 auto;
    margin-top: 30px;
}

/*Content*/
.projectpage .unit {
    margin-top: 32px;
}

.tagline-wrap {
    background-color: rgba(185, 185, 185, 0.82);
    padding: 12px 36px 12px 36px;
    transform: skewX(-30deg);
    max-width: 500px;
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    margin-top: 20px;
}

.tagline {
    transform: skewX(30deg);
    font-size: 1.25rem;
    line-height: 1.8rem;
    font-weight: 500;
    color: #fff;
    margin: 0;
}

.project-image {
    height: 100%;
    animation: float-wobble 4s ease-in-out infinite;
    max-width: 500px;
}

input[type="radio"] {
    display: none;
}

#open:checked ~ .sliderwrapper {
    display: flex;
    opacity: 1;
    visibility: visible;
    position: fixed;
}

#close:checked ~ .sliderwrapper {
    display: none;
}

.sliderwrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(14, 14, 14, 0.9);
    z-index: 9998;
    visibility: hidden;
    opacity: 0;
    transition:
        opacity 0.5s ease,
        visibility 0.5s ease;
    display: none;
    justify-content: center;
    align-items: flex-start;
    overflow: auto;
    padding-top: 3rem;
}

.slide {
    width: 90%;
    height: auto;
    margin: 0 auto;
    margin-bottom: 6rem;
    display: block;
}

.closeslider {
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 9999;
    width: 2rem;
    height: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    color: #f0f0f0;
    font-size: 2rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    mix-blend-mode: difference;
}

.closeslider::after {
    content: "×";
    font-weight: bold;
    font-size: 2rem;
}

.projectpage .projects-wrap {
    margin-top: 120px;
}

/*Kontakt*/
.social-media {
    width: 100px;
    height: auto;
    display: block;
    opacity: 0.8;
}

.social-media--con {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 0 auto;
    margin-top: 60px;
}

.socials-container {
    display: inline-flex;
    justify-content: flex-start;
    align-items: space-between;
}

/*-----------------------------------------------------------------------------------------------*/
/*MOBIL------------------------------------------------------------------------------------------*/
@media (max-width: 1024px) {
    /*mTypografie---------------------------------------------*/
    h1 {
        text-align: center;
        letter-spacing: 0.3em;
        font-size: 2.7rem;
        line-height: 3rem;
    }

    h1:not(.title-project) {
        padding-top: 45vh;
        margin-right: -0.3em;
    }

    h2,
    h3 {
        letter-spacing: 0.05em;
        line-height: 2rem;
        margin-top: 12px;
    }

    .button,
    .button-home {
        text-align: center;
    }

    /*mAlle Seiten---------------------------------------------*/
    input {
        display: block;
    }

    :root {
        --bar-width: 30px;
        --bar-height: 3px;
        --hamburger-gap: 5px;
        --hamburger-margin: 10px;
        --animation-timing: 200ms ease-in-out;
        --hamburger-height: calc(var(--bar-height) * 3 + var(--hamburger-gap) * 2);
        --background: white;
        --foreground: #aaaaaa;
    }

    .hamburger-menu {
        --x-width: calc(var(--hamburger-height) * 1.41421356237);
        display: flex;
        flex-direction: column;
        gap: var(--hamburger-gap);
        position: fixed;
        align-items: flex-end;
        top: var(--hamburger-margin);
        right: var(--hamburger-margin);
        z-index: 1000;
        cursor: pointer;
    }

    .hamburger-menu:has(input:checked) {
        --background: #aaaaaa;
        --foreground: white;
    }

    .hamburger-menu::before,
    .hamburger-menu::after,
    .hamburger-menu input {
        content: "";
        width: var(--bar-width);
        height: var(--bar-height);
        background-color: var(--foreground);
        border-radius: 9999px;
        transform-origin: left center;
        transition:
            opacity var(--animation-timing),
            width var(--animation-timing),
            rotate var(--animation-timing),
            translate var(--animation-timing),
            background-color var(--animation-timing);
    }

    .hamburger-menu input {
        appearance: none;
        padding: 0;
        margin: 0;
        pointer-events: none;
    }

    .hamburger-menu:has(input:checked)::before {
        rotate: 45deg;
        width: var(--x-width);
        translate: 0 calc(var(--bar-height) / -2);
    }

    .hamburger-menu:has(input:checked)::after {
        rotate: -45deg;
        width: var(--x-width);
        translate: 0 calc(var(--bar-height) / 2);
    }

    .hamburger-menu input:checked {
        opacity: 0;
        width: 0;
    }

    .hamburger-menu:has(input:checked) + .nav {
        translate: 0;
    }

    .nav {
        width: 100%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.42);
        backdrop-filter: blur(5px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        padding: 0;
        transition: translate var(--animation-timing);
        translate: 200%;
    }

    .nav li {
        text-align-last: center;
    }

    .nav a {
        font-size: 2.9rem;
        font-weight: 800;
        text-shadow: 0 0 12px rgb(0, 0, 0, 0.42);
        color: white;
    }

    .logo {
        max-width: 120px;
        opacity: 1;
        margin: 0;
        filter: invert(1);
        position: relative;
    }

    video {
        max-width: 450px;
        top: 45%;
    }

    .feder {
        width: 100%;
        max-width: 200px;
        height: auto;
        padding-bottom: 215px;
    }

    .tagline-wrap {
        max-width: 70%;
        margin: 0 auto;
        padding: 0.25rem 2.4rem 0.375rem;
    }

    .introduction {
        margin-bottom: 70px;
    }

    .introduction p {
        opacity: 0.8;
    }
    .arrow-downward {
        max-width: 2.5em;
        opacity: 0.5;
    }

    .subtitle {
        padding: 0;
    }

    .units-wrap {
        row-gap: 30px;
        max-width: 1200px;
    }

    .unit {
        flex-direction: column;
        margin-top: 0;
        margin-right: auto;
        margin-left: auto;
        max-width: 700px;
        row-gap: 20px;
    }

    .unit:nth-child(odd) {
        flex-direction: column-reverse;
    }

    .text-wrap {
        display: flex;
        flex-direction: column;
        min-width: 0;
    }

    .projects-wrap {
        gap: 30px;
        flex-wrap: wrap;
        padding-left: 50px;
        padding-right: 50px;
    }

    .project-name {
        font-size: 1rem;
        margin-left: 67px;
    }

    .angle-box {
        flex-wrap: wrap;
        width: 260px;
        height: 90px;
    }

    .gradientoverlay {
        height: 220px;
    }

    .preview-wrap {
        transform: skewX(30deg);
    }

    .preview,
    .preview-visit {
        bottom: 160px;
        left: 91px;
        transform-origin: center;
        transform: scale(1);
        max-width: 330px;
    }

    .preview:hover {
        transform: scale(1.1);
    }

    .social-media {
        margin: 0 auto;
        max-width: 95%;
    }

    footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-content {
        display: block;
        width: fit-content;
        margin: 0 auto;
        text-align: center;
    }

    /*mStartseite-------------------------------------*/
    img.fisch-home {
        max-height: 100%;
        padding-left: 50px;
        padding-right: 50px;
    }

    img.origami-home {
        max-width: 460px;
    }

    /*mProjektseiten----------------------------------*/

    .title-project {
        text-align: center;
        font-size: 2.7rem;
        line-height: 1.2;
        max-width: 90vw;
        margin: 0 auto;
        padding: 0 1rem;
        box-sizing: border-box;
    }

    .subtitle {
        text-align: center;
        margin: 0 auto 0 auto;
        font-size: 0.8rem;
        text-wrap: auto;
    }

    .tagline {
        text-align: end;
    }

    .projectpage .units-wrap .unit {
        display: flex;
        flex-direction: column;
        max-width: 100%;
        margin: 0;
    }

    .projectpage .unit img {
        max-width: 100%;
    }

    .project-image--steps {
        display: none;
    }

    /*mBlog--------------------------------------------*/
    .hero img:not(.introduction img, .feder) {
        width: 70%;
        max-width: 370px;
        top: 47%;
    }

    .blog .hero img:not(.introduction img) {
        top: 45%;
        width: 100%;
        max-width: 600px;
    }

    .blog-img {
        max-width: 550px;
    }
}
