/* ============================================ */
/* 1. GRUNDEINSTELLUNGEN & VARIABLEN            */
/* ============================================ */
: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;
}

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

.img-placeholder a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

a:hover img {
    transform: scale(1.03); 
    filter: brightness(1.08); 
    cursor: pointer;
}

.contain-img {
    object-fit: contain !important;
}

/* ============================================ */
/* 3. LAYOUT STRUKTUR (PANELS)                  */
/* ============================================ */
.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); }

.content-grid {
    width: 100%;
    max-width: 1200px;
    height: 100%;
    /* WICHTIG: Begrenzt die Gesamthöhe, damit nichts rausläuft */
    max-height: 100vh; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

/* ============================================ */
/* 4. 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: 15px; }

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; 
}

/* Style für lange Texte */
.long-text p {
    margin-bottom: 15px;
    font-size: 0.95rem;
    line-height: 1.7;
    text-align: justify;
}

/* ============================================ */
/* 5. STANDARD SEKTIONEN (Intro, About, Work)   */
/* ============================================ */

/* --- 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;
}
.small-tag { font-size: 1rem; margin-bottom: 10px; font-weight: bold;}

/* --- 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; }


/* ============================================ */
/* 6. SPEZIAL-SEKTION: AUMATT (ANPASSUNG)       */
/* ============================================ */

.aumatt-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Grid-Reihen: Oben 35% Platz, Unten der Rest */
    grid-template-rows: 35vh 1fr; 
    gap: 20px 60px;
    height: 100%;
    max-height: calc(100vh - 80px); 
    padding-top: 60px;
    align-items: start;
}

/* 1. Bild Oben Links */
.top-left-img {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    width: 100%;
    height: 100%; /* Nutzt die vollen 35vh Höhe */
    display: flex;
    align-items: flex-end; 
    justify-content: flex-start;
    overflow: hidden;
}
.top-left-img img {
    /* Das Bild passt sich perfekt ein (Container füllen ohne Beschnitt) */
    width: 100%;
    height: 100%;
    object-fit: contain; 
    object-position: bottom left; /* Bild klebt unten links in der Box */
}

/* 2. Text Unten Links */
.bottom-left-text {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
    padding-top: 20px;
    z-index: 10;
    overflow-y: auto; /* Scrollbar, falls Text zu lang */
    max-height: 100%;
}

/* 3. Bild Rechts (Hoch) */
.right-tall-img {
    grid-column: 2 / 3;
    grid-row: 1 / 3;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.right-tall-img img {
    /* Nutzt den ganzen rechten Platz, ohne abzuschneiden */
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}


/* ============================================ */
/* 7. SPEZIAL-SEKTION: PODCAST                  */
/* ============================================ */

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    height: 100%;
    max-height: calc(100vh - 80px);
    padding-top: 40px;
}

.text-side { 
    z-index: 2;
    overflow-y: auto;
    max-height: 100%;
}

.centered-images {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
}
.images-wrapper { 
    position: relative; 
    width: 100%; 
    height: 100%; 
    max-height: 50vh; /* Bildbereich ist max. 50% hoch */
    max-width: 500px; 
}
.img-back { 
    width: 60%; height: 70%; 
    position: absolute; left: 0; top: 0; z-index: 1; 
}
.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); 
}
.pop-to-front {
    z-index: 10 !important;
    transform: scale(1.05);
}


/* ============================================ */
/* 8. 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; }

.social-link {
    text-decoration: none;
    color: var(--text-color);
    position: relative;
    font-weight: 500;
}
.social-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--text-color);
    transition: width 0.3s ease;
}
.social-link:hover::after { width: 100%; }


/* ============================================ */
/* 9. EXTRAS                                    */
/* ============================================ */
.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);
}

.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; }


/* ============================================ */
/* 10. MOBILE OPTIMIERUNG (unter 900px)         */
/* ============================================ */

@media (max-width: 900px) {
    html { scroll-snap-type: none; }
    
    .panel { 
        height: auto; 
        min-height: 100vh; 
        display: block; 
        overflow: visible; 
        padding: 80px 20px 40px 20px; 
    }
    
    .content-grid {
        display: flex;
        flex-direction: column;
        gap: 40px; 
        max-height: none; 
    }

    h1 { font-size: 3.5rem; margin-left: 0 !important; }
    h2 { font-size: 3rem; }
    .num { position: relative; top: auto; left: auto; margin-bottom: 20px; display: block; }
    .long-text p { text-align: left; } 
    .text-side, .bottom-left-text { overflow-y: visible; max-height: none; }

    .intro-grid { display: flex; flex-direction: column; gap: 30px; }
    .rotate-right { width: 100%; height: auto; aspect-ratio: 4/5; transform: none; max-height: 500px;}
    .footer-area { flex-direction: column; gap: 20px; text-align: left; }
    .align-right { text-align: left; }

    .two-columns { display: flex; flex-direction: column-reverse; gap: 30px; }
    .text-col .desc { grid-template-columns: 1fr; gap: 15px; }
    .img-col .img-placeholder { height: auto; width: 100%; aspect-ratio: 3/4; }

    .work-gallery { flex-direction: column; height: auto; gap: 40px; }
    .work-gallery .img-placeholder { width: 100%; height: auto; max-height: none; aspect-ratio: 16/9; }
    .work-gallery .img-placeholder:nth-child(2) { width: 100%; aspect-ratio: 16/9; height: auto; transform: none; } 

    /* AUMATT MOBILE */
    .aumatt-grid {
        display: flex;
        flex-direction: column;
        height: auto;
        max-height: none;
        padding-top: 20px;
        gap: 40px;
    }
    .top-left-img {
        height: 250px; 
        align-items: center; 
        justify-content: center;
    }
    .top-left-img img { object-position: center; } 
    
    .right-tall-img { height: auto; }
    .right-tall-img img { max-height: 500px; aspect-ratio: 4/5; }

    /* PODCAST MOBILE */
    .split-layout {
        display: flex;
        flex-direction: column;
        gap: 40px;
        height: auto;
        max-height: none;
    }
    .reverse-layout { flex-direction: column-reverse; } 
    
    .text-side { width: 100%; }
    .images-wrapper { height: 350px; width: 100%; max-width: none; margin-bottom: 20px; max-height: none; }
    .img-back, .img-front { width: 80%; height: 80%; }
    
    .center-piece { display: flex; flex-direction: column; gap: 20px; margin-bottom: 40px; }
    .center-piece .img-placeholder { width: 100%; height: auto; max-height: 500px; position: relative; aspect-ratio: 3/4; }
    .center-piece h2 { text-shadow: none; color: var(--text-color); }
    .contact-info { flex-direction: column; gap: 30px; text-align: center; }
}