:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --background-color: #f8f9fa;
    --text-color: #333;
    --light-gray: #ecf0f1;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
}


header {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0 5%;
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60px;
}

nav a {
    text-decoration: none;
    color: var(--primary-color);
    padding: 0 20px;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--secondary-color);
}


    padding: 60px 5%;
    max-width: 1200px;
    margin: 0 auto;
    border-bottom: 1px solid var(--light-gray);
}

section:last-of-type {
    border-bottom: none;
}

h1, h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 40px;
}

h1 { font-size: 2.5em; }
h2 { font-size: 2em; }


.gallery-container {
    column-count: 3; 
    column-gap: 20px;
}

.gallery-item {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden; 
    cursor: pointer;
    margin-bottom: 20px;
    display: inline-block;
    width: 100%;

    break-inside: avoid;
}

.gallery-item img {
    width: 100%;
    height: auto; 
    display: block;
    transition: transform 0.3s ease-in-out; 
}

.gallery-item:hover img {
    transform: scale(1.03); 
}


.gallery-item h3, .gallery-item p {
    padding: 0 20px;
    margin: 10px 0;
}

.gallery-item h3 {
    margin-top: 20px;
    color: var(--primary-color);
}

.gallery-item .dimensions {
    font-style: italic;
    color: #777;
    font-size: 0.9em;
}

.gallery-item .jahr {
    font-style: bold;
    color: #777;
    font-size: 0.9em;
}

.gallery-item .price {
    font-weight: bold;
    color: var(--secondary-color);
    font-size: 1.1em;
    padding-bottom: 20px;
}

.kuratorin {
    text-align: center;
    margin-top: -30px;
    margin-bottom: 40px;
    color: #555;
}


.artist-bio {
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}


.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    border: 1px solid var(--light-gray);
    border-radius: 5px;
    margin-bottom: 10px;
}

.accordion-header {
    background-color: white;
    color: var(--primary-color);
    cursor: pointer;
    padding: 18px;
    width: 100%;
    text-align: left;
    border: none;
    font-size: 1.1em;
    font-weight: 500;
}

.accordion-header:hover {
    background-color: #fdfdfd;
}

.accordion-content {
    padding: 0 18px;
    background-color: white;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}
.accordion-content p {
    line-height: 1.7;
}


#kontakt {
    text-align: center;
}

.contact-email {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 20px;
    transition: background-color 0.3s;
}

.contact-email:hover {
    background-color: #2980b9;
}


footer {
    text-align: center;
    padding: 20px;
    background-color: var(--primary-color);
    color: white;
    font-size: 0.9em;
}

.credit-line a,
.credit-line a:visited {
    color: #FFFFFF;          
    text-decoration: none;   
}

.credit-line a:hover {
    text-decoration: underline; 
}


.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 85%;
    max-width: 1200px;
}

#lightbox-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

.close-lightbox {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-lightbox:hover {
    color: #bbb;
}


@media screen and (max-width: 1000px) {

    .gallery-container {
        column-count: 2;
    }
}

@media screen and (max-width: 768px) {
    h1 { font-size: 2em; }
    h2 { font-size: 1.5em; }

    nav a {
        padding: 0 10px;
        font-size: 0.9em;
    }
}

@media screen and (max-width: 600px) {

    .gallery-container {
        column-count: 1;
    }
}
.credit-line {
    margin-top: 8px; 
    font-size: 0.8em; 
    color: rgba(255, 255, 255, 0.6); 
    letter-spacing: 0.5px; 
}