/* --- Variablen & Grundeinstellungen --- */
:root {
    --bg-color: #2e2827; 
    --text-color: #e0d8d6; 
    --accent-color: #a0908d; 
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Montserrat', sans-serif;
}

html {
    scroll-behavior: smooth;
}

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

/* --- Typografie --- */
h1, h2, h3, .title-font {
    font-family: var(--font-serif);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0;
}

h1 { font-size: 4rem; line-height: 0.9; }
h2 { font-size: 3rem; margin-bottom: 2rem; }
h3 { font-size: 1.2rem; margin-bottom: 0.5rem; color: var(--text-color); }
p { font-weight: 300; }
a { color: var(--text-color); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--accent-color); }

/* --- Layout Helfer --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 100px 0;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Platzhalter-Style */
.placeholder {
    background-color: #3d3534;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--accent-color);
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid #4a403e;
    width: 100%; 
}

/* --- Navigation --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(46, 40, 39, 0.95);
    padding: 1rem 0;
    z-index: 100;
    border-bottom: 1px solid #3d3534;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li { margin: 0 20px; }
nav ul li a { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }

/* --- Home Sektion (Hero - Zentriert) --- */
#home {
    background-image: url('bilder/header.JPG'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;       
    justify-content: center; 
    padding-left: 0;         
    box-sizing: border-box;    
    position: relative;
}

.overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.3); 
    z-index: 1;
}

.hero-text {
    position: relative;
    z-index: 2;
    color: #ffffff;
    text-align: center; 
    max-width: 900px;
}

.hero-text h1 {
    text-align: center; 
    letter-spacing: -0.02em;
    margin-bottom: 15px;
}

.hero-text .subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 0.1em;
}

/* --- About Sektion --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    width: 100%;
    max-height: 500px; 
    overflow: hidden;
    display: flex;
    justify-content: center;
}

.about-image img {
    width: 100%;
    height: 500px; 
    object-fit: cover; 
    object-position: center;
}

/* --- Work Sektion (Grid) --- */
.section-title { text-align: center; margin-bottom: 3rem; }

.work-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 30px;
}

.work-item { grid-column: span 6; }

/* Link um das Bild */
.work-link {
    display: block;
    transition: transform 0.3s ease;
    cursor: pointer;
    width: 100%;
}
.work-link:hover {
    transform: scale(1.02);
    opacity: 0.95;
}

/* Das Bild im Grid (Standard) */
.work-img { 
    height: 400px; 
    margin-bottom: 10px; 
    width: 100%; 
    object-fit: cover;
    object-position: center;
    display: block;
}

.caption { 
    font-size: 0.9rem; 
    color: var(--accent-color);
    text-align: left; /* Stellt sicher, dass Text linksbündig ist */
    margin-top: 10px; /* Kleiner Abstand zum Bild */
}

/* Grid Layout Positionen */
.item-1 { grid-column: 2 / span 5; }
.item-2 { grid-column: 8 / span 5; margin-top: 100px; }
.item-3 { grid-column: 1 / span 4; margin-top: -50px; }
.item-4 { grid-column: 6 / span 6; }
.item-quote { grid-column: 2 / span 5; margin-top: 50px; }
.item-quote .quote { font-size: 1.8rem; line-height: 1.4; }
.item-5 { grid-column: 8 / span 4; margin-top: 80px; }

/* --- SPEZIAL-ANPASSUNG (Links-Bündig Fix) --- */
/* Item 3 (Heft), Item 4 (FOOH), Item 5 (Schaeppi) */
.item-3 .work-img,
.item-4 .work-img,
.item-5 .work-img {
    object-fit: contain !important; 
    height: auto !important;
    max-height: 500px; 
    background: none;
    
    /* WICHTIG: Das Bild wird jetzt LINKS ausgerichtet, statt zentriert */
    object-position: left center !important; 
}

/* --- Experience --- */
.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 80px;
}
.exp-item { margin-bottom: 2rem; }

/* --- Contact --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.contact-image { 
    height: auto; 
    width: 100%; 
    max-height: 600px;
    object-fit: contain; 
}
.contact-info { padding-left: 30px; }

/* --- GALLERY SEITE Styles --- */
.gallery-header {
    min-height: 40vh; 
    padding-top: 150px;
    text-align: center;
}

.back-link {
    display: inline-block;
    margin-top: 20px;
    font-size: 0.9rem;
    border: 1px solid var(--accent-color);
    padding: 10px 20px;
    border-radius: 50px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr; 
    gap: 80px;
    padding-bottom: 100px;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 85vh; 
    object-fit: contain;
    margin: 0 auto;
}

/* --- SCROLL ANIMATION CSS (Basis) --- */
.animate-block {
    transition: transform 0.1s linear, opacity 0.1s linear;
    opacity: 0; 
    will-change: transform, opacity; 
}

/* --- Mobile Anpassungen --- */
@media (max-width: 900px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2.2rem; }
    
    #home { padding-left: 0; }
    
    .about-grid, .two-column, .contact-grid { 
        grid-template-columns: 1fr; 
        text-align: center; 
    }
    
    .about-image { max-height: 350px; }
    .about-image img { height: 350px; }
    
    .contact-info { padding-left: 0; }
    
    .work-grid { display: flex; flex-direction: column; }
    
    .work-item, .item-1, .item-2, .item-3, .item-4, .item-quote, .item-5 { 
        margin: 0 0 40px 0; 
        width: 100%; 
    }
    .item-3 { margin-top: 0; }

    /* Animation am Handy aus */
    .animate-block {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}