/* INFINITE SCROLL STYLE - Herzensbilder Studio */

:root {
    --bg-color: #fafafa;
    --text-color: #1a1a1a;
    --accent-color: #dcb387; 
    --line-color: rgba(0,0,0,0.05);
    
    --font-serif: 'Prata', serif;
    --font-sans: 'Inter', sans-serif;
    
    --transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-sans);
    font-weight: 300;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3 { font-family: var(--font-serif); font-weight: 400; line-height: 1.1; }
h1 { font-size: 5rem; letter-spacing: -1px; margin-bottom: 30px; }
h1 em { font-style: italic; color: var(--accent-color); }
h2 { font-size: 3rem; margin-bottom: 20px; }
h3 { font-size: 4rem; letter-spacing: -1px; }

p { font-size: 1rem; color: #555; font-weight: 300; }
a { text-decoration: none; color: inherit; transition: var(--transition); }

/* Helpers */
.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.container.small { max-width: 700px; text-align: center; }
.screen { min-height: 100vh; position: relative; padding: 100px 40px; }

/* Logo & CTA */
.brand-logo {
    position: fixed; top: 40px; left: 40px;
    font-family: var(--font-serif); font-size: 1.5rem;
    color: #1a1a1a; /* Fixed dark color */
    z-index: 1000;
    /* Remove mix-blend-mode for cleaner colors */
}
.brand-logo span.studio {
    color: #dcb387;
    font-weight: 300;
}
.brand-logo:hover span.studio {
    color: #c5a085;
}

.floating-cta {
    position: fixed; bottom: 40px; right: 40px;
    width: 60px; height: 60px;
    background: var(--text-color); color: #fff; border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    font-size: 1.5rem; z-index: 999; box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.floating-cta:hover { transform: scale(1.1); background: var(--accent-color); }

/* Hero */
.hero { display: flex; align-items: center; justify-content: space-between; padding: 0; overflow: hidden; height: 100vh; }
.hero-content { flex: 1; padding-left: 10%; display: flex; flex-direction: column; justify-content: center; height: 100%; z-index: 2; }
.hero-content .subtitle { text-transform: uppercase; letter-spacing: 3px; font-size: 0.8rem; margin-bottom: 20px; color: #999; }
.hero-img { flex: 1; height: 100%; position: relative; overflow: hidden; }
.hero-img img { width: 100%; height: 120%; object-fit: cover; }

.scroll-down-container { margin-top: 60px; display: flex; align-items: center; gap: 20px; }
.scroll-down-container p { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px; transform: rotate(-90deg); margin-left: -20px; }
.arrow-down svg { animation: bounce 2s infinite; }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(10px); } }

/* Pulsierendes Herz */
.pulse-heart {
    display: inline-block;
    animation: heartbeat 2.5s ease-in-out infinite;
    transform-origin: center;
}
@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    10% { transform: scale(1.15); color: var(--accent-color); }
    20% { transform: scale(1); }
    30% { transform: scale(1.15); color: var(--accent-color); }
    40% { transform: scale(1); }
}

/* Intro */
.intro { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.intro-icon { margin-bottom: 40px; color: var(--accent-color); }
.intro-content { max-width: 700px; margin: 0 auto; text-align: center; }
.intro-lead { font-size: 0.9rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-color); margin-bottom: 1.5rem; font-weight: 400; }
.intro-statement { font-family: var(--font-serif); font-size: 1.6rem; font-weight: 300; line-height: 1.4; color: var(--text-color); margin-bottom: 0.5rem; }
.intro-statement strong { color: var(--accent-color); font-weight: 400; font-style: italic; }
.intro-line { width: 40px; height: 1px; background: var(--accent-color); margin: 2.5rem auto; }
.intro-body { font-size: 1.1rem; line-height: 1.8; color: #555; max-width: 600px; margin: 0 auto; }
.intro-body p { margin-bottom: 1.5rem; }
.intro-body p:last-child { margin-bottom: 0; }
.arrow-next { margin-top: 60px; opacity: 0.5; }

/* PROJECT SECTIONS (The new Infinite Flow) */
.portfolio-flow { padding-bottom: 150px; }

.project-section {
    display: flex;
    min-height: 100vh;
    padding: 100px 40px;
    border-top: 1px solid var(--line-color);
    position: relative;
}
.project-section.reverse { flex-direction: row-reverse; }

/* Sticky Header (Left Side) */
.project-header {
    width: 30%;
    position: sticky; /* Sticky magic */
    top: 150px;
    height: fit-content;
    padding-right: 40px;
    z-index: 10;
}
.project-section.reverse .project-header { padding-right: 0; padding-left: 60px; }

.project-header .num { font-size: 1rem; color: var(--accent-color); font-family: var(--font-serif); display: block; margin-bottom: 20px; }
.project-header .desc { margin-top: 20px; font-family: var(--font-serif); font-style: italic; color: #999; }

/* Image Grid (Right Side) */
.image-grid {
    width: 70%;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-gap: 40px;
    position: relative;
}

.img-wrapper {
    position: relative;
    overflow: hidden;
    background: #eee; /* Placeholder color */
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.img-wrapper img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.7s ease;
    display: block;
    object-position: center center; /* Default: Mitte */
}

/* STANDARD POSITIONEN */
.img-wrapper img.focus-center { object-position: center center; }

/* FEINE ABSTUFUNGEN nahe der Mitte (nur wenige mm Verschiebung) */
.img-wrapper img.focus-center-left { object-position: 45% center; } /* Etwas links von Mitte */
.img-wrapper img.focus-center-right { object-position: 55% center; } /* Etwas rechts von Mitte */
.img-wrapper img.focus-center-up { object-position: center 45%; } /* Etwas über Mitte */
.img-wrapper img.focus-center-down { object-position: center 55%; } /* Etwas unter Mitte */

/* HOCH/UNTEN mit feiner Abstufung */
.img-wrapper img.focus-top { object-position: center 15%; }
.img-wrapper img.focus-top-high { object-position: center 5%; } /* Extrem oben */
.img-wrapper img.focus-top-low { object-position: center 30%; } /* Leicht oben */
.img-wrapper img.focus-bottom { object-position: center 85%; }
.img-wrapper img.focus-bottom-high { object-position: center 70%; } /* Leicht unten */
.img-wrapper img.focus-bottom-low { object-position: center 95%; } /* Extrem unten */

/* LINKS/RECHTS mit feiner Abstufung */
.img-wrapper img.focus-left { object-position: 25% center; }
.img-wrapper img.focus-left-more { object-position: 10% center; } /* Extrem links */
.img-wrapper img.focus-right { object-position: 75% center; }
.img-wrapper img.focus-right-more { object-position: 90% center; } /* Extrem rechts */

/* DIAGONALEN (Ecke) */
.img-wrapper img.focus-top-left { object-position: 25% 20%; }
.img-wrapper img.focus-top-left-extreme { object-position: 10% 10%; } /* Ecke */
.img-wrapper img.focus-top-right { object-position: 75% 20%; }
.img-wrapper img.focus-top-right-extreme { object-position: 90% 10%; }
.img-wrapper img.focus-bottom-left { object-position: 25% 80%; }
.img-wrapper img.focus-bottom-left-extreme { object-position: 10% 90%; }
.img-wrapper img.focus-bottom-right { object-position: 75% 80%; }
.img-wrapper img.focus-bottom-right-extreme { object-position: 90% 90%; }

/* GOLDENER SCHNITT (ästhetisch ausgewogen) */
.img-wrapper img.focus-golden-top-left { object-position: 38.2% 38.2%; }
.img-wrapper img.focus-golden-top-right { object-position: 61.8% 38.2%; }
.img-wrapper img.focus-golden-bottom-left { object-position: 38.2% 61.8%; }
.img-wrapper img.focus-golden-bottom-right { object-position: 61.8% 61.8%; }

.img-wrapper:hover img { transform: scale(1.05); }

/* Grid Layout per Section - Compact Version */
/* Image 1: Big Feature */
.image-grid .img-wrapper:nth-child(1) {
    grid-column: 1 / 8;
    height: 550px;
    z-index: 2;
}

/* Image 2: Offset overlap - closer to image 1 */
.image-grid .img-wrapper:nth-child(2) {
    grid-column: 6 / 12;
    height: 380px;
    margin-top: -150px;
    z-index: 3;
}

/* Image 3: Small detail - much closer to image 2 */
.image-grid .img-wrapper:nth-child(3) {
    grid-column: 3 / 8;
    height: 450px;
    margin-top: -200px;
    z-index: 1;
}

/* Reverse Layout adjustments */
.project-section.reverse .image-grid .img-wrapper:nth-child(1) { grid-column: 5 / 12; }
.project-section.reverse .image-grid .img-wrapper:nth-child(2) { grid-column: 2 / 8; }
.project-section.reverse .image-grid .img-wrapper:nth-child(3) { grid-column: 5 / 10; }

/* Reveal Animations */
.reveal-up {
    opacity: 0; transform: translateY(60px) scale(0.95);
    transition: opacity 1s ease, transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal-up.active { opacity: 1; transform: translateY(0) scale(1); }

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }

/* Footer */
.contact { background: #f9f9f9; display: flex; flex-direction: column; align-items: center; text-align: center; }
.contact-wrapper { max-width: 800px; width: 100%; }
.big-mail { display: block; font-family: var(--font-serif); font-size: 5vw; margin: 40px 0 80px; position: relative; white-space: nowrap; }
.arrow-diag { font-size: 2vw; position: absolute; top: 0; right: -40px; opacity: 0.5; transition: var(--transition); }
.big-mail:hover .arrow-diag { transform: translate(10px, -10px); opacity: 1; color: var(--accent-color); }
.footer-meta { display: flex; justify-content: space-between; text-align: left; border-top: 1px solid #ddd; padding-top: 40px; margin-bottom: 60px; }
.col span { display: block; text-transform: uppercase; font-size: 0.8rem; color: #999; margin-bottom: 10px; letter-spacing: 1px; }
.col a { display: block; margin-bottom: 5px; }
.col a:hover { color: var(--accent-color); }
.copyright { font-size: 0.8rem; opacity: 0.4; }

/* Responsive */
@media (max-width: 1024px) {
    h1 { font-size: 3.5rem; }
    .hero { flex-direction: column; height: auto; padding-top: 100px; }
    .hero-content { padding: 40px; width: 100%; text-align: center; }
    .hero-img { width: 100%; height: 50vh; }
    .scroll-down-container { display: none; }
    
    .project-section { flex-direction: column; display: block; padding: 60px 20px; }
    .project-section.reverse { flex-direction: column; }
    
    .project-header { position: relative; top: 0; width: 100%; margin-bottom: 40px; padding: 0 !important; text-align: center; }
    
    .image-grid { display: flex; flex-direction: column; width: 100%; gap: 20px; }
    
    .img-wrapper, .image-grid .img-wrapper:nth-child(1), .image-grid .img-wrapper:nth-child(2), .image-grid .img-wrapper:nth-child(3) {
        width: 100%; height: auto; margin: 0; aspect-ratio: 3/4; grid-column: auto;
    }
    
    .big-mail { font-size: 7vw; white-space: nowrap; }
    .footer-meta { flex-direction: column; gap: 40px; text-align: center; }
}
