/* --- GRUNDEINSTELLUNGEN --- */
:root {
    --bg-pink: #dfc5c5;
    --bg-blue: #9ebad5;
    --text-color: #1a1a1a;
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Manrope', sans-serif;
}

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

html {
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--text-color);
    width: 100%;
    overflow-x: hidden;
}

/* --- BILDER & HOVER --- */
img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease, filter 0.3s ease;
}

/* Damit der Link den ganzen Platz im Placeholder einnimmt */
.img-placeholder a {
    display: block;
    width: 100%;
    height: 100%;
}

/* HOVER: Reinzoomen und aufhellen bei verlinkten Bildern */
a:hover img {
    transform: scale(1.03); 
    filter: brightness(1.08); 
    cursor: pointer;
}

/* Spezial-Klasse für volle Sichtbarkeit */
.contain-img {
    object-fit: contain !important;
}

/* --- PLATZHALTER --- */
.img-placeholder {
    background-color: transparent; 
    overflow: visible; /* Wichtig für Pop-Effekte */
    position: relative;
    /* Übergang für den Pop-Effekt */
    transition: z-index 0.3s, transform 0.3s; 
}
.img-placeholder::before { display: none; }

/* --- ABSCHNITTE --- */
.panel {
    width: 100%;
    height: 100vh;
    overflow: hidden;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    position: relative;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pink-bg { background-color: var(--bg-pink); }
.blue-bg { background-color: var(--bg-blue); }

/* --- TYPOGRAFIE --- */
h1, h2, h3 { font-family: var(--font-serif); font-weight: 400; line-height: 0.9; }
h1 { font-size: 7rem; margin-bottom: 20px; }
h2 { font-size: 4.5rem; margin-bottom: 30px; }
h3 { font-size: 1.2rem; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 10px; }
p { font-size: 1rem; line-height: 1.6; color: #333; }
.num { font-family: var(--font-sans); font-size: 1.2rem; position: absolute; top: 40px; left: 40px; font-weight: bold; }

/* --- LAYOUT GRID --- */
.content-grid {
    width: 100%;
    max-width: 1200px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

/* --- SECTION 1: INTRO --- */
.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    height: 100%;
}
.title-area h1 { margin-left: -20px; z-index: 2; position: relative;}
.image-area { display: flex; justify-content: center; align-items: center; height: 100%; }
.rotate-right { width: 400px; height: 70%; max-height: 550px; transform: rotate(5deg); } 
.footer-area {
    grid-column: 1 / -1;
    display: flex; justify-content: space-between;
    margin-top: auto; padding-top: 20px; border-top: 1px solid #333; font-size: 0.8rem;
}

/* --- SECTION 2: ABOUT ME --- */
.two-columns { display: grid; grid-template-columns: 40% 60%; align-items: center; gap: 50px; height: 100%;}
.text-col .desc { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 20px; }
.img-col { height: 100%; display: flex; align-items: center; }
.img-col .img-placeholder { width: 100%; height: 80%; max-height: 600px; }

/* --- SECTION 3: WORK --- */
.centered-layout { text-align: center; }
.work-gallery { 
    display: flex; 
    justify-content: center; 
    align-items: center;
    gap: 60px;
    height: 70%;
}
.work-gallery .img-placeholder { width: 45%; height: 60%; max-height: 400px; }
.work-gallery .img-placeholder:nth-child(2) { 
    width: 32%; 
    height: auto; 
    aspect-ratio: 1 / 1; 
    max-height: none;
    transform: translateY(50px);
}
.offset-down { margin-top: 0; }
.caption { text-align: left; margin-top: 10px; font-size: 0.8rem; }

/* --- SECTION 4: SHOOT CONCEPT --- */
.mosaic-layout { display: flex; flex-direction: column; height: 100%; justify-content: center;}

/* Oberes Bild: Breit, linksbündig */
.mosaic-layout .wide-img { 
    width: 70%; 
    height: 45%; 
    max-height: none;
    margin-bottom: 20px; 
    align-self: flex-start;
    z-index: 1;
}

/* Container unten: Flexbox */
.bottom-row { 
    display: flex; 
    justify-content: flex-start; /* Links starten */
    align-items: flex-end; 
    height: 45%; 
    padding-right: 50px;
    position: relative; 
}

/* Textblock: Nach rechts verschoben */
.bottom-row .text-block { 
    width: 300px; 
    margin-bottom: 40px; 
    z-index: 3; 
    margin-left: 150px; 
}

/* Unteres Bild: Absolut, rechts, doppelt so breit */
.bottom-row .tall-img { 
    position: absolute; 
    right: -20px; 
    bottom: 0;
    width: 700px; /* Doppelt so breit */
    height: 180%; 
    max-height: 800px; 
    z-index: 2;
    transform: translateY(50px); 
}

/* --- SECTION 5: PLAY ON COLOR --- */
.overlap-layout { display: flex; align-items: center; justify-content: center; height: 100%; }
.images-wrapper { position: relative; width: 600px; height: 80%; max-height: 600px; }

/* Hinteres Bild */
.img-back { 
    width: 60%; height: 70%; 
    position: absolute; left: 0; top: 0; z-index: 1; 
}
/* Vorderes Bild */
.img-front { 
    width: 60%; height: 70%; 
    position: absolute; right: 0; bottom: 0; z-index: 2; 
    box-shadow: -10px -10px 0px rgba(0,0,0,0.1); 
}
.text-abs { position: absolute; bottom: 20px; left: 0; width: 300px; z-index: 3; }

/* Die Klasse für den "Nach Vorne"-Effekt (JavaScript) */
.pop-to-front {
    z-index: 10 !important; /* Ganz nach vorne */
    transform: scale(1.05); /* Leicht vergrößern */
}

/* --- SECTION 6: FOOTER --- */
.footer-layout { height: 100%; display: flex; flex-direction: column; justify-content: space-between; }
.center-piece { position: relative; display: flex; justify-content: center; align-items: center; flex-grow: 1; }
.center-piece .img-placeholder { width: 550px; height: 80%; max-height: 700px; position: absolute; z-index: 1; opacity: 1; }
.center-piece h2 { z-index: 2; text-align: center; color: #fff; text-shadow: 0 0 30px rgba(0,0,0,0.5); }
.contact-info { display: flex; justify-content: space-between; border-top: 1px solid #333; padding-top: 20px; }

/* --- ANIMATION: FLY IN --- */
.fly-in {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}
.fly-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- RESPONSIVE (HANDY) --- */
@media (max-width: 900px) {
    html { scroll-snap-type: none; }
    .panel { height: auto; display: block; overflow: visible; }
    h1 { font-size: 3.5rem; margin-left: 0 !important; }
    h2 { font-size: 3rem; }
    
    .intro-grid, .two-columns { display: flex; flex-direction: column; gap: 30px; }
    .rotate-right { width: 100%; height: 400px; transform: none; }
    .img-col .img-placeholder { height: 400px; width: 100%; }
    
    .work-gallery { flex-direction: column; height: auto; }
    .work-gallery .img-placeholder { width: 100%; height: 300px; }
    .work-gallery .img-placeholder:nth-child(2) { width: 100%; aspect-ratio: auto; height: 300px; transform: none; } 
    
    .mosaic-layout { display: flex; height: auto; }
    .mosaic-layout .wide-img { width: 100%; height: 350px; }
    
    /* Mobile Reset für Section 4 */
    .bottom-row { flex-direction: column-reverse; height: auto; align-items: flex-start; padding-right: 0; position: static; }
    .bottom-row .text-block { margin-left: 0; width: 100%; }
    .bottom-row .tall-img { 
        position: relative; 
        width: 100%; 
        height: 450px; 
        transform: none; 
        right: auto; bottom: auto; max-height: none;
    }
    
    .images-wrapper { width: 100%; height: auto; display: flex; flex-direction: column; gap: 20px; }
    .img-back, .img-front { position: relative; width: 100%; height: 400px; top: auto; right: auto; bottom: auto; left: auto; }
    .text-abs { position: relative; bottom: auto; width: 100%; margin-top: 20px; }
    
    .center-piece .img-placeholder { width: 100%; height: auto; max-height: 500px; position: relative; }
    .contact-info { flex-direction: column; gap: 30px; text-align: center; }
}

/* --- SOCIAL MEDIA SEITE --- */
.scrollable-page {
    height: auto !important; min-height: 100vh; overflow-y: auto !important; display: block !important; padding-top: 100px; padding-bottom: 100px;
}
.back-btn {
    position: fixed; top: 30px; left: 40px; text-decoration: none; color: var(--text-color); font-weight: bold; font-size: 1.2rem; z-index: 100; background: rgba(255,255,255,0.5); padding: 10px 20px; border-radius: 30px; backdrop-filter: blur(5px); transition: background 0.3s;
}
.back-btn:hover { background: white; }
.insta-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 40px; margin-top: 50px; width: 100%; }
.insta-item { width: auto; max-width: 500px; background: transparent; display: flex; justify-content: center; }