@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&display=swap');

* {
    box-sizing: border-box;
    font-family: 'Open Sans', 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: 600; 
    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; 
}

.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: 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 {
    display: block;
    width: 100%;
    background-color: transparent !important;
}

/* FIX: Zwingt den Browser zu echter Transparenz ohne Karo-Muster / Zielflaggen-Effekt */
.intro-logo img {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    background: transparent !important;
    background-color: transparent !important;
}

.intro-title {
    font-size: 1.1rem;
    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;
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.55); 
    color: #ffffff;
    padding: 8px 14px; 
    border-radius: 0 0 4px 0; 
    font-weight: normal; 
    font-size: 14px; 
    z-index: 2;
    pointer-events: none;
}

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

/* ========================================================
   Info-Box: Beschreibung (kleiner)
======================================================== */
.gallery-description {
    margin-top: 0;
    margin-bottom: 20px;
    line-height: 1.6;
    color: #444444;
    font-size: 0.9rem;
}

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

/* ========================================================
   Info-Box: Tag-Buttons (Größer, aber kleine Schrift)
======================================================== */
.tag {
    background: #666666;
    color: #ffffff;
    padding: 8px 16px; 
    border-radius: 3px; 
    font-size: 0.85rem; 
    font-weight: normal; 
}

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

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

/* ========================================================
   Info-Box: Taxonomie Titel
======================================================== */
.tags span {
    font-size: 0.9rem; 
    color: #444444; 
    width: 100px; 
    flex-shrink: 0;
    margin-right: 0; 
    align-self: center;
    font-weight: normal; 
}

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

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

.related-section { 
    margin-top: 40px; 
    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: 700;
    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);
}

.ad-mobile {
    display: none;
}
.ad-desktop {
    display: block;
    width: 100%;
}

.site-footer {
    width: 100%;
    background-color: #f4f4f4;
    border-top: 1px solid #e0e0e0;
    padding: 14px 20px;
    margin-top: 40px;
    color: #777777;
    font-size: 0.85rem;
}

.footer-inner {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

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

.footer-links li a {
    color: #666666;
    text-decoration: none;
    transition: color 0.2s;
}

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

/* ========================================================
   Cookie Banner
======================================================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #2e3133; 
    color: #ffffff;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
    transform: translateY(100%);
    transition: transform 0.4s ease-in-out;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner-text {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.cookie-banner-text a {
    color: #eb008b;
    text-decoration: underline;
}

.cookie-banner-text a:hover {
    color: #c40074;
}

.cookie-btn {
    background-color: #eb008b;
    color: #ffffff;
    border: none;
    padding: 10px 24px;
    border-radius: 3px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.95rem;
    transition: background 0.2s;
    margin-left: 20px;
    white-space: nowrap;
}

.cookie-btn:hover {
    background-color: #c40074;
}

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

@media (max-width: 768px) {
    .masonry { column-count: 2; } 
    
    .ad-mobile {
        display: block;
        width: 100%;
    }
    .ad-desktop {
        display: none;
    }
}

@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; 
    }
    
    .cookie-banner {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 20px;
    }
    
    .cookie-btn {
        width: 100%;
        margin-left: 0;
        padding: 12px;
    }
}

@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; 
    }
    .intro-tile {
        border: none !important; 
        border-radius: 0;
    }
    .footer-inner {
        justify-content: center;
        text-align: center;
    }
}