/* =========================================
   1. FONTS & VARIABLEN
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@900&family=Inter:wght@400;700&display=swap');

:root {
    --pink-light: #fce7f3;
    --rose-dark: #f43f5e;
    --accent-red: #e11d48;
    --text-gray: #6b7280;
    --wave-height: clamp(40px, 6vw, 70px);
    --wave-width: clamp(300px, 60vw, 500px);
}

/* =========================================
   2. GRUNDSTYLING
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: white;
    color: black;
    overflow-x: hidden;
    line-height: 1.5;
}

.font-serif {
    font-family: 'Playfair Display', serif;
}

/* =========================================
   3. NAVIGATION
   ========================================= */
nav {
    display: flex;
    justify-content: flex-end;
    padding: 2.5rem;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: black;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--rose-dark);
}

/* =========================================
   4. TEXTE & ÜBERSCHRIFTEN
   ========================================= */
.title-main {
    font-family: 'Playfair Display', serif;
    font-size: clamp(4rem, 12vw, 9rem);
    font-weight: 900;
    margin-bottom: 4rem;
    letter-spacing: -0.05em;
    text-align: center;
}

/* Dancing Words (Projekte Seite) */
.dancing-word {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    line-height: 0.95;
    text-transform: lowercase;
    cursor: pointer;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: block;
}

.dancing-word:hover {
    transform: scale(1.1);
}

.accent-red {
    color: var(--accent-red);
}

.italic {
    font-style: italic;
}

.about-text {
    color: var(--text-gray);
    line-height: 1.8;
    font-size: 1rem;
}

.about-text-main {
    color: var(--text-gray);
    line-height: 1.8;
    font-size: 1rem;
}


/* =========================================
   RESPONSIVE ANPASSUNGEN (MOBILE)
   ========================================= */

@media (max-width: 768px) {

    /* Profilbilder für Mobile anpassen */
    .profile-img,
    .content-img {
        width: 100%;
        max-width: 300px;
        height: auto;
        margin: 0 auto;
        display: block;
    }
}

/* =========================================
   6. PROJEKT KARTEN
   ========================================= */
.project-card {
    position: relative;
    aspect-ratio: 1 / 1;
    background-color: #f3f4f6;
    border-radius: 2.5rem;
    overflow: hidden;
    cursor: pointer;
    width: 100%;
    /* Für <a>-Tags: Unterstrich entfernen */
    text-decoration: none;
    display: block;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.2, 1, 0.3, 1);
}

.project-card:hover img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-overlay span {
    font-weight: 700;
    text-transform: uppercase;
    color: black;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

/* =========================================
   7. BUTTONS
   ========================================= */
.btn-primary {
    margin-top: 4rem;
    background-color: var(--pink-light);
    color: var(--rose-dark);
    padding: 1.2rem 2.8rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--rose-dark);
    color: white;
    transform: scale(1.05);
}

/* =========================================
   8. ANIMATIONEN (REVEAL & FLY-IN)
   ========================================= */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Spezielles Einfliegen für Bilder */
.reveal.fly-in {
    opacity: 0;
    transform: translateY(120px) scale(0.9);
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.fly-in.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Buchstaben-Welle */
.letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.letter.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

.delay-3 {
    transition-delay: 0.6s;
}

/* =========================================
   9. FOOTER & WACKELN
   ========================================= */
footer {
    margin-top: 40px;
    width: 100%;
}

.footer-content {
    background-color: var(--pink-light);
    padding: 5rem 2rem 7rem;
    text-align: center;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.wiggle-contact {
    display: inline-block;
    cursor: pointer;
    transition: color 0.3s ease;
}

.wiggle-contact:hover {
    animation: wiggle 0.4s ease-in-out infinite;
    color: var(--rose-dark);
}

@keyframes wiggle {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-3deg);
    }

    75% {
        transform: rotate(3deg);
    }
}

/* =========================================
   10. PROFIL & CONTENT BILDER (ABOUT)
   ========================================= */
.profile-img {
    width: 220px;
    height: 280px;
    object-fit: cover;
    border-radius: 4rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.content-img {
    width: 190px;
    height: 250px;
    object-fit: cover;
    border-radius: 3.5rem;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .grid-cols-2 {
        gap: 1rem;
    }

    .title-main {
        font-size: 4rem;
    }

    .service-text {
        font-size: 1.8rem;
    }

    .nav-link {
        font-size: 0.65rem;
    }
}

/* =========================================
   ERWEITERTE NAVIGATION & RESPONSIVE
   ========================================= */

/* Desktop-Standard (über 768px) */
.nav-list {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle .bar {
    width: 25px;
    height: 2px;
    background-color: black;
    transition: all 0.3s ease-in-out;
}

/* MOBIL-STYLING (max-width: 768px) */
@media (max-width: 768px) {
    nav {
        padding: 1.5rem;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-list {
        position: fixed;
        left: 0;
        top: 0;
        flex-direction: column;
        background-color: white;
        width: 100%;
        height: 100vh;
        justify-content: center;
        align-items: center;
        gap: 3rem;
        z-index: 1000;

        clip-path: circle(0% at 100% 0%);
        transition: clip-path 0.6s cubic-bezier(0.77, 0, 0.175, 1);
        pointer-events: none;
    }

    .nav-list.active {
        clip-path: circle(150% at 100% 0%);
        pointer-events: all;
    }

    .nav-link {
        font-size: 1.5rem;
    }

    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
        background-color: var(--rose-dark);
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
        background-color: var(--rose-dark);
    }

    .grid-cols-2 {
        display: grid;
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }

    .title-main {
        font-size: 3.5rem;
        margin-bottom: 2rem;
    }

    .service-text {
        font-size: 1.8rem;
    }

    .profile-img,
    .content-img {
        width: 100%;
        height: auto;
    }
}


/* =========================================
   RESPONSIVE WAVE SYSTEM
   ========================================= */

/* Grundform */
.wave {
    width: 100%;
    height: var(--wave-height);
    background-repeat: repeat-x;
    background-size: var(--wave-width) var(--wave-height);
}

/* Container */
.full-width-wave {
    width: 100%;
    margin: clamp(2rem, 6vw, 5rem) 0;
}

/* OBERE WELLE */
.wave-top {
    background-position: calc(var(--wave-width) / 2) 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 45'%3E%3Cpath d='M0,45 C150,45 150,0 300,0 C450,0 450,45 600,45 L600,45 L0,45 Z' fill='%23fce7f3'/%3E%3C/svg%3E");
    margin-bottom: calc(var(--wave-height) * -0.25);
}

/* UNTERE WELLE */
.wave-bottom {
    background-position: 0 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 45'%3E%3Cpath d='M0,0 C150,0 150,45 300,45 C450,45 450,0 600,0 L600,0 L0,0 Z' fill='%23fce7f3'/%3E%3C/svg%3E");
    margin-top: calc(var(--wave-height) * -0.25);
}

/* CONTENT */
.wave-content {
    background-color: var(--pink-light);
    padding: clamp(10px, 3vw, 25px) 0;
}

/* SERVICES */
.service-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.service-text {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 4vw, 3rem);
    color: var(--accent-red);
    font-weight: 900;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.service-text:hover {
    transform: scale(1.1) rotate(-2deg);
}

@media (max-width: 768px) {
    .service-container {
        flex-direction: column;
        gap: 2rem;
        padding: 2rem 0;
    }

    .service-text {
        font-size: 2.2rem;
    }
}


/* =========================================
   11. PROJEKTDETAIL-SEITE
   ========================================= */

/* Zurück-Button */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-gray);
    text-decoration: none;
    margin: 0 2.5rem 2rem;
    transition: color 0.3s ease;
}

.back-btn:hover {
    color: var(--rose-dark);
}

.back-btn svg {
    transition: transform 0.3s ease;
}

.back-btn:hover svg {
    transform: translateX(-4px);
}

/* Projekttitel */
.project-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1;
    text-align: center;
    padding: 0 2rem 3rem;
}

/* Galerie */
.gallery-wrapper {
    width: 100%;
    padding: 0 2rem 3rem;
}

.gallery-main {
    max-width: 900px;
    margin: 0 auto;
}

.gallery-hero {
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 2.5rem;
    cursor: pointer;
    display: block;
    transition: transform 0.5s cubic-bezier(0.2, 1, 0.3, 1);
    background-color: #f9f9f9;
}

.gallery-hero:hover {
    transform: scale(1.01);
}

.gallery-thumbs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 0.75rem;
}

.gallery-thumb {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 0.8rem;
    cursor: pointer;
    opacity: 0.55;
    transition: opacity 0.3s ease, transform 0.3s ease;
    flex-shrink: 0;
}

.gallery-thumb:hover,
.gallery-thumb.active {
    opacity: 1;
    transform: scale(1.05);
}

/* Info-Band */
.info-band {
    background-color: var(--pink-light);
    padding: 2.5rem 2rem;
}

.info-grid {
    max-width: 600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    text-align: center;
}

.info-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent-red);
    margin-bottom: 0.4rem;
}

.info-value {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 900;
    color: black;
}

/* Text-Content */
.content-section {
    max-width: 700px;
    margin: 0 auto;
    padding: 4rem 2rem 6rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.content-heading {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 0.75rem;
    color: black;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox.open {
    opacity: 1;
    pointer-events: all;
}

.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 1rem;
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
    transition: transform 0.2s ease;
}

.lightbox-close:hover {
    transform: scale(1.2);
}

/* Mobile Projektdetail */
@media (max-width: 768px) {
    .gallery-thumbs {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        gap: 0.6rem;
        padding-bottom: 0.5rem;
        /* scrollbar verstecken aber scrollen erlauben */
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .gallery-thumbs::-webkit-scrollbar {
        display: none;
    }

    .gallery-thumb {
        width: 80px;
        height: 80px;
        flex-shrink: 0;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .back-btn {
        margin: 0 1.5rem 1.5rem;
    }

    .project-title {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }
}