/* Basis-Layout */
body {
    font-family: sans-serif;
    background: #868686;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.8s ease;
}

body.loaded {
    opacity: 1;
}

/* Überschrift (Header) */
.site-header {
    text-align: center;
    margin-bottom: 20px;
}

.site-header h1 {
    font-size: 2.5rem;
    color: #ffffff;
    margin: 0;
}

/* Filter-Info */
.filter-info {
    text-align: center;
    margin-bottom: 30px;
}

.filter-text {
    display: inline-block;
    background-color: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 1rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
}

/* Lade-Animation */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #868686;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    color: white;
    font-size: 18px;
}

#loader div.spinner {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #3498db;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Menü-Button */
.menu-toggle {
    width: 50px;
    height: 50px;
    background: #333;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    user-select: none;
    cursor: default;
    transition: background 0.3s ease;
}

.menu-toggle:hover {
    background: #555;
}

/* Menü */
#menu {
    display: none;
    position: fixed;
    top: 80px;
    left: 20px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 999;
}

#menu.active {
    display: block;
}

.menu-group h3 {
    margin-top: 10px;
    margin-bottom: 5px;
}

.menu-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-group ul li {
    margin: 5px 0;
}

.menu-group ul li a {
    text-decoration: none;
    color: #333;
    padding: 5px 10px;
    display: block;
    border-radius: 5px;
}

.menu-group ul li a:hover {
    background-color: #3498db;
    color: white;
}

/* Galerie */
.gallery {
    margin-top: 120px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

/* Galerie-Item */
.gallery-item {
    position: relative;
    width: 150px;
    height: 150px;
    overflow: hidden;
    border-radius: 75px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Bild im Galerie-Item */
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 75px;
    display: block;
}

/* Link um das Bild */
.gallery-item a {
    display: block; /* Macht den Link zum Block-Element */
    width: 100%; /* Der Link füllt den gesamten Container */
    height: 100%; /* Der Link hat die gleiche Höhe wie der Container */
    text-decoration: none; /* Entfernt den Unterstrich des Links */
}
/* Hover-Text Komplett */
.hover-text {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    opacity: 0;
    background-color: rgba(0,0,0,0.7);
    border-radius: 10px;
    padding: 10px 14px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* ID */
.hover-id {
    font-weight: bold;
    font-size: 16px;
    color: #ffffff;
}

/* Titel */
.hover-title {
    font-size: 14px;
    margin-top: 4px;
    color: #dddddd;
}

/* Animation beim Hover */
@keyframes floatUp {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Hover-Effekte */
.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.gallery-item:hover .hover-text {
    animation: floatUp 0.4s forwards;
}
