/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    min-height: 100vh;
    background-repeat: no-repeat;
    background-size: cover;
    font-family: monospace;
    color: #111;
    line-height: 1.7;
}

:root {
    --content-left: 2rem;
    --content-right: 2rem;
    --section-space: 2rem;
}

.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 Button – 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: 3000;
}

.nav-contact:hover { background: rgba(205, 14, 150, 0.63); transform: translateY(-2px); }

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;

    padding-left: var(--content-left);
    padding-right: var(--content-right);

    padding-top: 6rem;
    padding-bottom: 6rem;

    position: relative;
}

.hero-content {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;

    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Editorial H1 */
.multi-image-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;

    width: 100%;
    max-width: 900px;
    margin: 0 auto;

    text-transform: uppercase;

    opacity: 0;
    transform: translateY(20px);
    animation: editorialFade 1.4s ease forwards;
}

.multi-image-text .line {
    display: inline-flex;
    justify-content: center;
    gap: 0.08em;
    line-height: 0.9;
    margin-bottom: 0.15em;
}

.multi-image-text span {
    font-size: clamp(3.4rem, 10vw, 6rem);
    font-weight: 900;
    display: inline-block;
    color: transparent;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    -webkit-background-clip: text;
    background-clip: text;
    transition: background-size 0.4s ease;
}

.multi-image-text span:hover { background-size: 160%; }

.multi-image-text .space { width: 0.45em; }

.multi-image-text .g1 { background-image: url("Luftballons.webp"); }
.multi-image-text .g2 { background-image: url("Luftballons.webp"); }
.multi-image-text .g3 { background-image: url("tilstranden.webp"); }
.multi-image-text .g4 { background-image: url("tilstranden.webp"); }
.multi-image-text .g5 { background-image: url("Baumtraumioo.webp"); }
.multi-image-text .g6 { background-image: url("Baumtraumioo.webp"); }

@keyframes editorialFade {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Spotlight */
.work {
    padding-top: var(--section-space);
    padding-bottom: var(--section-space);
}

.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;
    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.5;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.img-wrapper:hover .description {
    opacity: 1;
}

/* About */
.about {
    padding-top: var(--section-space);
    padding-bottom: var(--section-space);
}

.about-container {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    padding-left: var(--content-left);
}

.about-image img {
    max-width: clamp(364px, 17vw, 220px);
}

.about-text { flex: 1; }

.about-text h2 {
    font-size: 2.1rem;
    margin-bottom: 0.8rem;
}

.about-text p {
    font-size: 1.1rem;
    text-align: justify;
    text-align-last: left;
    line-height: 1.7;
}

.about--reverse .about-container {
    flex-direction: row-reverse;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    opacity: 0.6;
    font-size: 0.4rem;
    margin-top: var(--section-space);
}

/* Mobile */
@media (max-width: 768px) {

    :root {
        --content-left: 0.8rem;
        --content-right: 0.8rem;
        --section-space: 1.2rem;
    }

    body {
        font-size: 0.9rem;
        line-height: 1.55;
    }

    /* Navigation */
    .nav {
        justify-content: space-between;
        padding: 0.5rem 0.8rem;
        gap: 0.4rem;
        backdrop-filter: blur(8px);
        background: rgba(255,255,255,0.35);
    }

    .nav a {
        padding: 6px 12px;
        font-size: 0.72rem;
        border-radius: 20px;
    }

    /* Text-me Button */
    .nav-contact {
        right: 0.8rem;
        bottom: 0.8rem;
        padding: 0.65rem 1.1rem;
        font-size: 0.78rem;
    }

    /* HERO – Abstände optimiert */
    .hero {
        min-height: auto;
        padding-top: 10rem;   /* größerer Abstand zur Navigation */
        padding-bottom: 2rem; /* kleinerer Abstand zu Spotlight */
    }
    
    .work-title {
        display: none;
    }

    .multi-image-text {
        max-width: 78%;
        margin: 0 auto;
        text-align: center;
    }

    .multi-image-text .line span {
        font-size: clamp(2rem, 7vw, 2.4rem);
        line-height: 1.15;
        background-size: 130%;
    }

    .multi-image-text .line {
        gap: 0.04em;
        margin-bottom: 0.08em;
    }

    .multi-image-text .space {
        width: 0.22em;
    }

    /* Spotlight Galerie – 2 Spalten Grid */
    .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;
    }

    .grid img {
        width: 100%;
        height: 200px;
        object-fit: cover;
        border-radius: 16px;
    }

    .description {
        font-size: 0.75rem;
        padding: 0.6rem;
    }

    /* About Sections */
    .about-container {
        flex-direction: column;
        gap: 1.2rem;
        padding-left: 0;
        padding-right: 0;
    }

    .about-image img {
        max-width: 260px;
    }

    .about-text p {
        font-size: 1rem;
        line-height: 1.55;
        text-align: left;
    }

    .about--reverse .about-container {
        flex-direction: column;
    }

    /* Footer */
    footer {
        font-size: 0.5rem;
        margin-top: 1.2rem;
    }
}
