:root {
    --primary-color: #333;
    --accent-color: #d63384; /* Ein dezentes Kunst-Magenta oder Gold? Nehmen wir ein cleanes Grau/Schwarz */
    --bg-light: #f8f9fa;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: var(--bg-light);
    color: #333;
}

/* Navbar */
.navbar-brand {
    font-weight: 700;
    letter-spacing: 1px;
}

/* Masonry Grid via CSS Columns */
.masonry-grid {
    column-count: 1;
    column-gap: 1.5rem;
}
@media (min-width: 576px) { .masonry-grid { column-count: 2; } }
@media (min-width: 992px) { .masonry-grid { column-count: 3; } }
@media (min-width: 1400px) { .masonry-grid { column-count: 4; } }

.masonry-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
}

/* Cards */
.artwork-card {
    border: none;
    background: white;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 8px;
    overflow: hidden;
}

.artwork-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.artwork-card img {
    width: 100%;
    height: auto;
    display: block;
}

.artwork-info {
    padding: 1rem;
}

.artwork-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
    color: #000;
}

.artwork-meta {
    font-size: 0.85rem;
    color: #666;
}

/* Sidebar / Filters */
.filter-sidebar {
    background: white;
    padding: 1.5rem;
    height: 100vh;
    position: sticky;
    top: 0;
    overflow-y: auto;
    border-right: 1px solid #eee;
}

.filter-group {
    margin-bottom: 2rem;
}

.filter-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    color: #999;
    margin-bottom: 0.8rem;
}

.tag-cloud .badge {
    font-weight: 400;
    margin-right: 3px;
    margin-bottom: 3px;
    cursor: pointer;
    text-decoration: none;
}
.tag-cloud .badge:hover {
    background-color: #333 !important;
    color: white !important;
}

.year-list a {
    display: block;
    padding: 2px 0;
    color: #555;
    text-decoration: none;
    font-size: 0.9rem;
}
.year-list a:hover, .year-list a.active {
    color: var(--accent-color);
    font-weight: 600;
}

/* Search Bar */
.main-search {
    border-radius: 50px;
    padding: 0.7rem 1.5rem;
    border: 1px solid #ddd;
    box-shadow: none;
    background-color: #f1f1f1;
}
.main-search:focus {
    background-color: white;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.05);
    border-color: #ccc;
}

/* Range Slider */
.range-slider-container {
    position: relative;
    height: 20px;
    margin-top: 10px;
}

.range-slider-container input[type=range] {
    position: absolute;
    width: 100%;
    pointer-events: none; /* Allows click through */
    -webkit-appearance: none;
    background: transparent;
    z-index: 2;
    top: 0;
}

.range-slider-container input[type=range]::-webkit-slider-thumb {
    pointer-events: auto;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #333;
    cursor: pointer;
    margin-top: -6px; /* center on track */
    border: 2px solid white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* Firefox thumb */
.range-slider-container input[type=range]::-moz-range-thumb {
    pointer-events: auto;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #333;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.range-slider-container input[type=range]:focus {
    outline: none;
}

.range-slider-container input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 100%;
    cursor: pointer;
    background: transparent; 
}

/* Track for Firefox */
.range-slider-container input[type=range]::-moz-range-track {
    width: 100%;
    height: 4px;
    background: transparent;
    border-radius: 2px;
}

.slider-track {
    width: 100%;
    height: 4px;
    background: #e9ecef;
    position: absolute;
    top: 6px; /* Half of thumb height roughly, adjusted visually */
    border-radius: 2px;
    z-index: 1;
}

.slider-track-highlight {
    height: 4px;
    background: #333;
    position: absolute;
    top: 6px;
    z-index: 1;
    border-radius: 2px;
}

/* Color Badges */
.color-badge {
    display: inline-block;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    border: 2px solid transparent; /* Platzhalter für Border */
}

.color-badge:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.color-badge.active {
    border: 2px solid #333 !important; /* Dunkler Rand bei Auswahl */
    box-shadow: 0 0 0 2px white, 0 2px 5px rgba(0,0,0,0.3); /* Doppelter Rand Effekt */
    transform: scale(1.1);
}
