
@font-face {
    font-family: 'Inter';
    src: url('Inter.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --width: 75rem;
    --padding-horizontal: 6rem;
    --padding-vertical: 6rem;
    --spacing: 1.5rem;
    color-scheme: light dark;
    --color-background: #F2F2F2;
    --color-text: #404040;
    --color-subtext:#6a6a6a;
    --color-button: #FFFFFF;
    --color-text-inverse: #FFFFFF;
}

@media (prefers-color-scheme: dark) {
    :root {
        --color-background: #151515;
        --color-text: #EAEAEA;
        --color-button: #2B2B2B;
        --color-text-inverse: #FFFFFF;
    }
}

html {
    font-size: 17pt;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--color-background);
    color: var(--color-text);
    font-family: 'Inter', sans-serif;
    line-height: 1.0;
    -webkit-text-size-adjust: none;
}

.site-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

.site-main {
    width: 100%;
    max-width: var(--width);
}

.inner {
    padding: var(--padding-vertical) var(--padding-horizontal);
}

/* Container Components */
.container-default {
    margin: 6rem 0;
    padding: 0 6rem;
}

.project-list {
    display: flex;
    flex-direction: column;
    gap: 6rem;
}

/* Typography Styles */

.container-page h2,
.container-page h3{
    line-height: 1.4;
}

.content-60 h2 {
    color: var(--color-text-inverse);
    font-size: clamp(2rem, 10vw, 4rem);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.075rem;
    margin-bottom: var(--spacing);
}

.content-60 p {
    color: var(--color-text-inverse);
    font-size: clamp(0.9rem, 0.8rem + 0.5vw, 1rem);
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: var(--spacing);
}

.container-default h1, 
.container-default h2 {
    color: var(--color-text);
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.05rem;
    margin-bottom: var(--spacing);
}


.container-default p {
    color: var(--color-text);
    font-size: clamp(0.9rem, 0.8rem + 0.5vw, 1rem);
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: var(--spacing);
}

.container-page{
    color: var(--color-text);
}

.container-page p,
.container-page ul:not(.buttons) li,
.container-page ol li {
    color: var(--color-text);
    font-size: clamp(0.9rem, 0.8rem + 0.5vw, 1rem);
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: var(--spacing);
}

/* Avatar */
.avatar {
    width: 6rem;
    height: 6rem;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: var(--spacing);
    display: block;
    margin-left: 0;
    margin-right: auto;

}

/* Buttons */
.buttons {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 1rem;
    margin-top: 3rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 3.75rem;
    padding: 0 1.875rem;
    background-color: var(--color-button);
    color: var(--color-text);
    text-decoration: none;
    font-weight: 700;
    border-radius: 0.5rem;
    transition: transform 0.25s ease;
}

.btn:hover {
    transform: scale(1.0775);
}

.btn .icon {
    margin-left: 1rem;
}

/* Card Styling */
.card {
    border-radius: 1.25rem;
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax style from template */
    overflow: hidden;
    min-height: 35rem;
    display: flex;
    opacity: 0;
    transition: opacity 700ms ease;
    will-change: opacity;
    text-decoration: none;
    color: inherit;
    -webkit-text-decoration: none;
}

.card:hover,
.card:focus,
.card:active,
.card:visited,
.card h2,
.card p,
.card .btn,
.card .icon {
    text-decoration: none;
    -webkit-text-decoration: none;
}

.card-in-view {
    opacity: 1;
}

.card-inner {
    padding: var(--padding-vertical) var(--padding-horizontal);
    width: 100%;
    display: flex;
    align-items: center;
}

.content-60 {
    width: 60%;
}

.reverse .card-inner {
    justify-content: flex-end;
}

.icons {
    display: flex;
    gap: 1.5rem;
    font-size: 1.75em;
    margin: 3rem 0;
}

.icons a {
    color: var(--color-text);
    text-decoration: none;
    transition: transform 0.25s ease;
    display: inline-block;
}

.icons svg {
    width: 1em;
    height: 1em;
    display: block;
}

.icons a:hover {
    transform: scale(1.2);
}





.resume-list {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.resume-item {
    display: grid;
    grid-template-columns: 8rem minmax(0, 1fr);
    gap: 2.5rem;
    align-items: start;
}

.resume-year {
    margin: 0;
    margin-bottom: 0 !important;
    color: var(--color-subtext);
    font-weight: 400;
}

.resume-content h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.4;
}

.resume-content p {
    margin-top: 0.35rem;
    margin-bottom: 0;
    color: var(--color-subtext);
}

.resume-image-frame {
    margin: 1.75rem 0 0;
    padding: 1.35rem;
    max-width: 18rem;
    border-radius: 1rem;
    background: var(--color-button);
}

.resume-image {
    margin: 0;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 0.35rem;
}


/* Scroll to Top Button */

.scroll-top-btn {
    --scroll-progress: 0%;
    position: fixed;
    right: var(--spacing);
    bottom: var(--spacing);
    width: 3.5rem;
    height: 3.5rem;
    border: 0;
    border-radius: 999px;
    padding: 0;
    display: grid;
    place-items: center;
    cursor: pointer;
    color: var(--color-text);
    background:
        radial-gradient(circle, var(--color-button) 65%, transparent 66%),
        conic-gradient(var(--color-text) var(--scroll-progress), rgba(127, 127, 127, 0.25) 0);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px) scale(0.95);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s linear;
    z-index: 1000;
}

.scroll-top-btn span {
    font-size: 1.2rem;
    line-height: 1;
    font-weight: 700;
}

.scroll-top-btn.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.scroll-top-btn:hover {
    transform: translateY(0) scale(1.06);
}

.scroll-top-btn:focus-visible {
    outline: 2px solid var(--color-text);
    outline-offset: 0.2rem;
}

img {
    margin: 2rem 0;
    height: auto;
    border-radius: 0.75rem;
    margin-left: auto;
    margin-right: auto;
    display: block;
    max-width: 100%;
}


@media (max-width: 1300px){
    html { font-size: 14pt; }
    .inner { padding: 4rem 3rem; }
    .container-default { padding: 0 0; }
    .content-60 { width: 70%; }
    .card { min-height: 30rem; }
    .card-inner { padding: 2rem; }
    .text-style-1 { line-height: 1; }
    .project-list { gap: 4rem; }
}


/* Mobile Adjustments */
@media (max-width: 900px) {
    html { font-size: 12pt; }
    .container-default { padding: 0 0; }
    .inner, .card-inner { padding: 2rem; }
    .content-60 { width: 100%; }
    .container-default p, .content-60 p { line-height: 1.6; font-weight: 500;}
    .card { background-attachment: scroll; min-height: auto; }
    .resume-item { grid-template-columns: 1fr; gap: 0.75rem; }
    .resume-image-frame { max-width: 100%; }
    .scroll-top-btn {
        width: 3.1rem;
        height: 3.1rem;
        right: 1rem;
        bottom: 1rem;
    }
    .buttons{ flex-direction: column; gap: 1rem; }
}


/* Animate */

/* Startzustand */
h1,
h2,
h3,
p,
li,
figure,
img {
    opacity: 0;
    transform: translateY(10px);
    /* minimal von unten */
    transition: opacity 600ms ease, transform 600ms ease;
    will-change: opacity, transform;
}

/* Sobald im Viewport */
.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Optional: Barrierefreiheit */
@media (prefers-reduced-motion: reduce) {

    h1,
    h2,
    h3,
    p,
    li,
    figure,
    img {
        transition: none;
        opacity: 1;
        transform: none;
    }

    .card {
        transition: none;
        opacity: 1;
    }
}
