@import url('https://fonts.googleapis.com/css?family=Roboto');

/* Global */
* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Roboto', sans-serif;
    background-color: #101214;
    color: #fff;
    line-height: 1.5;
    position: relative;
    overflow-x: hidden;
}

/* Logo im Hintergrund
body::before {
    content: "";
    position: fixed;
    inset: 2rem clamp(2rem, 8vw, 8rem);
    background: url("images/logo.svg") center center / contain no-repeat;
    opacity: 0.04;
    pointer-events: none;
    z-index: 0;
}
*/

h1,
h2,
h3,
p {
    margin-top: 0;
}

h2 {
    color: #A1B891;
}

a {
    color: #A88567;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

ul,
ol {
    margin: 0 0 1rem 1.25rem;
    padding: 0;
}

li {
    margin-bottom: 0.4rem;
}

li::marker {
    color: #A1B891;
}

.grid-2 {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(280px, 360px) minmax(500px, 1000px);
    gap: 4rem;
    align-items: start;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 4rem clamp(2rem, 6vw, 8rem) 2rem;
}

.grid-2,
footer,
.legal-page {
    position: relative;
    z-index: 1;
}

/* section 1 */

.section-1 {
    position: sticky;
    top: 2rem;
    align-self: start;
    text-align: center;
}

.photo-frame {
    position: relative;
    display: block;
    width: 220px;
    max-width: 40%;
    margin: 0 auto 16px auto;
    overflow: hidden;
}

.photo {
    display: block;
    width: 100%;
    height: auto;
}

.photo-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 9px 4px #101214;
    pointer-events: none;
}

.section-1 h1 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.section-1 p {
    font-size: 1.05rem;
    margin-bottom: 0.35rem;
}

.section-1 a {
    display: inline-block;
    font-size: 1.4rem;
    padding: 0.5rem;
}

.section-1 a:hover {
    color: #A1B891;
}

/* section 2 */

.section-2 {
    max-width: 950px;
}

.section-2 h2 {
    font-size: 1.5rem;
    margin-top: 1.75rem;
    margin-bottom: 0.6rem;
}

.section-2 h2:first-child {
    margin-top: 0;
}

.section-2 h3 {
    font-size: 1.15rem;
    margin-top: 1.1rem;
    margin-bottom: 0;
}

.project-meta {
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    font-style: italic;
}

.project-details {
    margin-left: 1.25rem;
}

.section-2 p {
    font-size: 1.05rem;
    margin-bottom: 1rem;
}

.section-2 a {
    display: inline-block;
    margin-right: 1rem;
    margin-bottom: 0.5rem;
}

.section-2 a:hover {
    color: #A1B891;
}


/* footer */

footer {
    margin-top: auto;
    text-align: center;
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(207, 227, 207, 0.2);
    font-size: 0.95rem;
}

.footer-logo {
    display: block;
    width: 74px;
    height: auto;
    margin: 0 auto 0.75rem auto;
    opacity: 0.9;
}

footer a {
    margin-left: 1rem;
}

footer a:hover {
    color: #A1B891;
}

/* legal sub-pages */
.legal-page {
    flex: 1;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 1.5rem 2rem;
}

.legal-page h1 {
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.legal-page h2 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
}

.legal-page p {
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.legal-page a:hover {
    color: #A1B891;
}

/* media queries */
@media (max-width: 900px) {
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 2rem 1.5rem;
    }

    .section-1 {
        position: static;
        top: auto;
    }

    .section-1,
    .section-2 {
        width: 100%;
        max-width: none;
    }

    .section-2 {
        padding: 0;
    }
}

@media (max-width: 480px) {
    .photo-frame {
        width: 120px;
        max-width: 50%;
    }

    .section-1 h2 {
        font-size: 1.6rem;
    }

    .section-2 h2 {
        font-size: 1.3rem;
    }

    .section-2 h3 {
        font-size: 1.05rem;
    }

    .legal-page h1 {
        font-size: 1.6rem;
    }

    .legal-page h2 {
        font-size: 1.15rem;
    }

    footer a {
        display: inline-block;
        margin: 0.4rem 0.5rem 0 0.5rem;
    }
}