* {
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background-color: #ffffff;
    color: #333333;
    margin: 0;
    padding: 0;
    padding-top: 44px; 
}

h1, h2, h3 {
    color: #222222;
    font-weight: normal;
}

.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 38px;
    background-color: #2e3133; 
    border-bottom: none;
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0 20px;
}

.nav-links {
    display: flex;
    gap: 15px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    display: inline-block;
    text-decoration: none;
    color: #ffffff;
    font-weight: bold;
    font-size: 0.95rem; 
    text-transform: uppercase; 
    padding: 4px 12px; 
    border-radius: 2px; 
    transition: background 0.2s, color 0.2s;
}

.nav-links li a:hover {
    color: #eb008b;
}

.nav-links li a.active {
    background-color: #eb008b;
    color: #ffffff;
}

.nav-links li a.active:hover {
    background-color: #c40074; 
    color: #ffffff;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #ffffff;
    padding: 0;
}

.hamburger:hover {
    color: #eb008b;
}

.content-wrapper {
    padding: 0 20px 20px 20px;
    max-width: 1600px;
    margin: 0 auto;
}

.masonry {
    column-count: 4; 
    column-gap: 4px; 
}

.masonry-item {
    position: relative;
    display: inline-block;
    width: 100%;
    margin-bottom: 4px; 
    border-radius: 4px; 
    border: 1px solid #dcdcdc; 
    overflow: hidden;
    background: #ffffff;
    text-decoration: none;
    color: inherit;
    break-inside: avoid; 
}

.masonry-item img {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
    background-color: #f0f0f0;
    transition: transform 0.3s ease;
}

.masonry-item:not(.intro-tile):hover img {
    transform: scale(1.03); 
}

.intro-tile {
    background-color: #ffffff;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 15px; 
    border: none; 
}

.intro-logo img {
    max-width: 140px;
    height: auto;
    display: block;
}

.intro-title {
    font-size: 1.3rem;
    margin: 0;
    color: #333333;
    line-height: 1.3;
}

.search-form {
    position: relative;
    display: block;
    width: 100%;
}

.search-form input[type="text"] {
    width: 100%;
    padding: 10px 50px 10px 15px; 
    background-color: #ffffff;
    border: 1px solid #cccccc;
    border-radius: 2px; 
    font-size: 1rem;
    color: #333333;
    outline: none;
    box-sizing: border-box;
    transition: border 0.2s;
}

.search-form input[type="text"]:focus {
    border-color: #888888;
}

.search-form button {
    position: absolute;
    top: 3px;
    right: 3px;
    bottom: 3px; 
    width: 40px; 
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    background-color: #eb008b; 
    color: #ffffff;
    border: none;
    border-radius: 2px; 
    cursor: pointer;
    transition: background 0.2s;
}

.search-form button:hover {
    background-color: #c40074; 
}

.search-form button svg {
    display: block;
}

/* --- HIER: Overlay transparenter & Schrift kleiner --- */
.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.55); /* Etwas transparenter */
    color: #ffffff;
    padding: 8px 14px; 
    border-radius: 0 0 4px 0; 
    font-weight: bold;
    font-size: 0.85rem; /* Eine Nummer kleiner */
    z-index: 2;
    pointer-events: none;
}

.masonry-item:hover .category-overlay {
    color: #eb008b;
}

.gallery-footer-info {
    margin-top: 30px;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

.gallery-description {
    margin-top: 0;
    margin-bottom: 20px;
    line-height: 1.6;
    color: #444444;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 2px; 
    align-items: center;
}

/* --- HIER: Knöpfe (Tags) Schrift schmaler --- */
.tag {
    background: #666666;
    color: #ffffff;
    padding: 8px 16px; 
    border-radius: 3px; 
    font-size: 0.95rem; 
    font-weight: normal; /* Schrift schmaler gemacht, Boxgröße bleibt gleich */
}

a.tag {
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
}

a.tag:hover {
    background: #444444;
    color: #ffffff;
    transform: scale(1.05);
}

.tags span {
    font-size: 1rem; 
    color: #666; 
    width: 100px; 
    flex-shrink: 0;
    margin-right: 0; 
    align-self: center;
    font-weight: bold;
}

.back-link {
    display: inline-block;
    margin: 20px 0; 
    text-decoration: none;
    color: #eb008b; 
    font-weight: bold;
    transition: color 0.2s;
}

.back-link:hover {
    color: #c40074; 
}

.related-section { 
    margin-top: 40px; 
    border-top: 1px solid #e0e0e0; 
    padding-top: 30px; 
}

.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
}

.lightbox img {
    max-width: 100%;
    max-height: 100vh;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #ffffff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    background: rgba(0,0,0,0.5);
    width: 50px;
    height: 50px;
    border-radius: 25px;
    border: none;
    outline: none;
    transition: color 0.2s, background 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
}
.lightbox-close:hover { 
    color: #eb008b; 
    background: rgba(0,0,0,0.8);
}

@media (max-width: 1024px) {
    .masonry { column-count: 3; } 
}

@media (max-width: 768px) {
    .masonry { column-count: 2; } 
}

@media (max-width: 600px) {
    .hamburger {
        display: block;
    }
    
    .nav-links {
        display: none; 
        position: absolute;
        top: 38px; 
        left: 0;
        width: 100%;
        background-color: #2e3133;
        flex-direction: column;
        padding: 10px 20px 20px 20px;
        border-top: 1px solid #444; 
        box-shadow: 0 5px 10px rgba(0,0,0,0.2);
    }
    .nav-links.active {
        display: flex; 
    }
}

@media (max-width: 480px) {
    .content-wrapper {
        padding: 0;
    }
    .masonry { 
        column-count: 1; 
        column-gap: 0;
        display: flex;
        flex-direction: column;
    }
    .masonry-item {
        margin-bottom: 0; 
        border: none; 
        border-radius: 0; 
        border-bottom: 1px solid #e0e0e0; 
    }
    .intro-tile {
        border: none !important; 
        border-radius: 0;
    }
}