/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base styling */
html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    height: 100vh;
    font-family: monospace;
    color: #111;
    line-height: 1.7;
}

/* einheitliche content achse */
:root {
    --content-left: 2rem;
    --content-right: 2rem;
}

/* Globaler Content-Abstand */
.page-content {
    padding-left: var(--content-left);
    padding-right: var(--content-right);
    max-width: 1600px;
    margin: auto;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0.9rem var(--content-left);
    z-index: 1000;
    background: rgba(245,245,245,0);
    display: flex;
    justify-content: flex-end;
    gap: 1.1rem;
}

.nav a {
    background: rgba(0,0,0,0.75);
    color: #fff;
    text-decoration: none;
    padding: 8px 22px;
    border-radius: 28px;
    font-size: 0.82rem;
    letter-spacing: 0.03em;
    transition: 0.25s ease;
}

.nav a:hover { background: rgba(0,0,0,0.45); transform: translateY(-1px); }
.nav a.active { background: rgba(0,0,0,0.45); }


/* Floating Contact Knopf – Desktop & Mobile */
.nav-contact {
    position: fixed;
    right: 2rem;
    bottom: 2rem;
    background: rgba(0,0,0,0.75);
    color: #fff;
    padding: 0.9rem 1.6rem;
    border-radius: 32px;
    font-size: 0.95rem;
    text-decoration: none;
    letter-spacing: 0.03em;
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
    transition: 0.25s ease;
    z-index: 2000;
}

.nav-contact:hover {
    background: rgba(205, 14, 150, 0.63);
    transform: translateY(-2px);
}

p {
    margin-top: 0;
    margin-bottom: 30px;
    max-width: 850px;
    text-align: justify;
    padding-left: var(--content-left);
}

/* Work / Spotlight */
.work {
    padding-top: 1rem;
}

.work-title {
    font-size: 2.1rem;
    margin-bottom: 1rem;
    color: rgb(34, 34, 34);
    padding-left: var(--content-left);
}

/* Galerie */
.grid-wrapper {
    position: relative;
    padding-left: var(--content-left);
}

.grid {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 0.75rem;

    scrollbar-width: thin;
    scrollbar-color: #111 transparent;
}

.grid::-webkit-scrollbar {
    height: 6px;
}

.grid::-webkit-scrollbar-thumb {
    background: #111;
    border-radius: 999px;
}

.item {
    flex: 0 0 260px;
    scroll-snap-align: start;
}

.img-wrapper {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.grid img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: 20px;
    transition: transform 0.4s ease;
}

.img-wrapper:hover img {
    transform: scale(1.08);
}

.description {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;

    padding: 1rem 1.2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.65), rgba(0,0,0,0));
    color: #fff;
    font-size: 0.9rem;
    line-height: 1.45;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.description p {
    max-width: 85%;
    text-align: left;
    margin: 0;
}

.img-wrapper:hover .description {
    opacity: 1;
}

/* About */
.about {
    padding-top: 5rem;
    padding-bottom: 6rem;
}

.about-container {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    padding-left: var(--content-left);
}

.about-image img {
    max-width: clamp(130px, 17vw, 220px);
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    object-fit: cover;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 2.1rem;
    margin-bottom: 0.8rem;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Contact */
.contact {
    padding-top: 5rem;
    padding-bottom: 6rem;
    text-align: center;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    opacity: 0.6;
    font-size: 0.4rem;
    margin-top: 4rem;
}

/* Mobile */
@media (max-width: 768px) {

    :root {
        --content-left: 1rem;
        --content-right: 1rem;
    }

    body {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    /* Navigation */
    .nav {
        justify-content: space-between;
        padding: 0.6rem 1rem;
        gap: 0.4rem;
        backdrop-filter: blur(8px);
        background: rgba(255,255,255,0.35);
    }

    .nav a {
        padding: 6px 14px;
        font-size: 0.75rem;
        border-radius: 22px;
    }

    /* Floating Contact Button */
    .nav-contact {
        position: fixed;
        right: 1rem;
        bottom: 1rem;
        padding: 0.7rem 1.2rem;
        font-size: 0.8rem;
        z-index: 3000;
        pointer-events: auto;
    }

    /* Hero – Weißraum reduziert */
    .hero {
        min-height: 16vh;
        padding-top: 1rem;
        padding-bottom: 1rem;
        display: flex;
        align-items: center;
    }

    /* Galerie – 2‑Spalten‑Grid mit Hochkantbildern */
    .grid-wrapper {
        padding-left: 0;
        padding-right: 0;
    }

    .grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        overflow: visible;
        scroll-snap-type: none;
        padding-bottom: 0;
    }

    .item {
        flex: none;
        width: 100%;
    }

    .img-wrapper {
        border-radius: 16px;
        overflow: hidden;
    }

    .grid img {
        width: 100%;
        height: auto;               
        object-fit: cover;
        border-radius: 16px;
        display: block;
    }

    .description {
        font-size: 0.75rem;
        padding: 0.6rem;
    }

    /* About */
    .about-container {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        padding-left: 0;
        padding-right: 0;
    }

    .about-image img {
        max-width: 70vw;
        border-radius: 18px;
    }

    /* Footer */
    footer {
        font-size: 0.55rem;
        padding: 2rem 1rem;
        margin-top: 3rem;
    }
}


