body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    background-color: #000000;
    color: #ffffff;
    scroll-behavior: smooth;
}

/* Fixierte Navigationsleiste */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    position: fixed;
    width: calc(100% - 4rem);
    top: 0;
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

h1 {
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 1px;
}

nav a, nav a:visited {
    color: #fff;
    text-decoration: none;
    margin-left: 2rem;
    font-size: 1rem;
    transition: color 0.3s;
}

nav a:hover {
    color: #aaa;
}

/* Hero-Header Section */
.hero-header {
    height: 70vh;
    padding: 100px 2rem 0 2rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    background-image: url('images/header.jpg');
    background-size: cover;
    background-position: center;
    box-sizing: border-box;
}

.hero-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.hero-content h2 {
    font-size: 3rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #ddd;
}

.cta-scroll {
    display: inline-block;
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    margin-top: 2.5rem;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    transition: border-color 0.3s;
}

.cta-scroll:hover {
    border-color: rgba(255, 255, 255, 1);
}

.cta-scroll span {
    margin-left: 0.5rem;
    display: inline-block;
    transition: transform 0.3s;
}

.cta-scroll:hover span {
    transform: translateY(3px);
}

main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Portfolio Header mit Filtern */
.portfolio-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6rem 0 2rem 0;
    border-bottom: 1px solid #333;
    margin-bottom: 4rem;
}

.portfolio-title p {
    margin: 0;
    font-size: 0.9rem;
    color: #aaa;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.portfolio-title h2 {
    margin: 0.5rem 0 0 0;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 3.5rem;
    font-weight: 600;
    color: #fff;
}

/* --- KORREKTUR: Filter-Container wird zu Flexbox mit Abstand --- */
.filter-controls {
    display: flex;
    flex-wrap: wrap; /* Erlaubt das Umbrechen der Buttons */
    gap: 0.5rem; /* Fügt 0.5rem Abstand horizontal UND vertikal hinzu */
    justify-content: flex-start; /* Hält die Buttons auf Desktop rechtsbündig */
}

.filter-controls button {
    font-family: inherit;
    font-size: 1rem;
    background-color: transparent;
    color: #fff;
    border: 1px solid #555;
    border-radius: 20px;
    padding: 0.5rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    margin-left: 0; /* WICHTIG: Der alte margin wird entfernt */
}
/* --- ENDE KORREKTUR --- */


.filter-controls button:hover {
    border-color: #fff;
}

.filter-controls button.active {
    background-color: #fff;
    color: #000;
    border-color: #fff;
}

/* --- KORREKTUR: Wiederhergestellte Galerie-Stile --- */
.gallery {
    column-count: 3;
    column-gap: 2.5rem;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 2.5rem; /* Vertikaler Abstand */
}

.gallery-item img {
    width: 100%; /* Wichtig für die Skalierung! */
    height: auto;
    display: block;
    cursor: pointer;
    transition: opacity 0.3s ease-out;
}

.gallery-item:hover img {
    opacity: 0.9;
}

.gallery-item.hide {
    display: none;
}

.artwork-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-top: 1rem;
}

.artwork-info .details {
    flex-grow: 1;
}

.artwork-info .title {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
    color: #fff;
}

.artwork-info .medium {
    margin: 0.25rem 0 0 0;
    font-size: 0.9rem;
    color: #aaa;
    line-height: 1.4;
}

.artwork-info .year {
    font-size: 1rem;
    color: #aaa;
    margin-left: 1rem;
    white-space: nowrap;
}
/* --- ENDE KORREKTUR --- */


.modal{display:none;position:fixed;z-index:100;padding-top:60px;left:0;top:0;width:100%;height:100%;overflow:auto;background-color:rgba(0,0,0,.95)}
.modal-content{margin:auto;display:block;width:auto;max-width:90%;max-height:85vh;object-fit:contain;animation:zoom .3s ease}
@keyframes zoom{from{transform:scale(.95);opacity:0}to{transform:scale(1);opacity:1}}
.close{position:absolute;top:20px;right:35px;color:#f1f1f1;font-size:40px;font-weight:700;transition:.3s;cursor:pointer}
.close:focus,.close:hover{color:#bbb;text-decoration:none}
footer{text-align:center;padding:3rem 2rem;margin-top:4rem;font-size:.9rem;color:#666}
.social-links{margin-top:1rem}
.social-links a{color:#666;text-decoration:none;margin:0 1rem;transition:color .3s}
.social-links a:hover{color:#fff}


/* === RESPONSIVE ANPASSUNGEN === */
@media (max-width: 1024px) {
    .hero-header {
        background-image: url('images/header-2.jpg');
        align-items: flex-start;
        padding-top: 150px;
        height: 75vh; /* <--- DURCH DIESE ZEILE ERSETZEN (z.B. 75% der Bildschirmhöhe) */
        /* aspect-ratio wird entfernt oder auskommentiert */
    }
    
    .hero-content h2 {
        font-size: 2.5rem;
    }

    .gallery {
        column-count: 2;
    }
}

@media (max-width: 768px) {
    main {
        padding: 0 1rem;
    }
    header {
        flex-direction: column;
        align-items: center;
    }

    h1 {
        margin-bottom: 0.5rem;
    }
    
    nav {
        text-align: center;
        width: 100%;
    }
    nav a {
        margin: 0 0.75rem;
    }
    
    .hero-header {
        align-items: flex-end;
        justify-content: center;
        text-align: center;
        padding: 2rem 1rem 4rem 1rem; 
        height: auto;
        height: 90vh; /* <--- DURCH DIESE ZEILE ERSETZEN (z.B. 90% der Bildschirmhöhe) */
        /* aspect-ratio wird entfernt oder auskommentiert */
    }

    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }

    .portfolio-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
        padding-top: 4rem;
    }
     .portfolio-title h2 {
        font-size: 2.5rem;
    }

    .gallery {
        column-count: 1;
    }
}
