/* Animierter Kreis-Button für die Galerie */
.gallery-circle-btn {
    position: fixed;
    bottom: 95px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8A2BE2 0%, #6A0DAD 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.4);
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    overflow: hidden;
}

.gallery-circle-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(138, 43, 226, 0.6);
}

.gallery-circle-btn:active {
    transform: scale(0.95);
}

.gallery-circle-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.gallery-circle-btn i {
    font-size: 24px;
    color: white;
    z-index: 2;
}

/* Pulsierender Ring-Effekt */
.gallery-pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.6);
    animation: gallery-pulse 2s infinite;
    z-index: 1;
}

@keyframes gallery-pulse {
    0% {
        transform: scale(0.8);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.3;
    }
    100% {
        transform: scale(0.8);
        opacity: 0.8;
    }
}

/* Galerie Overlay (Dark Mode Violet) */
.gallery-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(5px);
}

.gallery-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Galerie Popup */
.gallery-popup {
    width: 90%;
    max-width: 500px;
    background: rgba(30, 0, 50, 0.85);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    border: 1px solid rgba(138, 43, 226, 0.2);
    backdrop-filter: blur(10px);
}

.gallery-overlay.active .gallery-popup {
    transform: translateY(0);
}

/* Popup Header */
.gallery-header {
    background: linear-gradient(90deg, rgba(106, 13, 173, 0.8) 0%, rgba(138, 43, 226, 0.8) 100%);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.gallery-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: white;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.gallery-close-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    font-size: 18px;
    transition: all 0.2s ease;
}

.gallery-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* Popup Content */
.gallery-content {
    padding: 25px;
}

.gallery-description {
    margin-bottom: 25px;
    text-align: center;
}

.gallery-description p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
}

/* Externe Links Styling */
.gallery-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.gallery-link {
    display: flex;
    align-items: center;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(138, 43, 226, 0.2);
    position: relative;
    overflow: hidden;
}

.gallery-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(138, 43, 226, 0.2), transparent);
    transition: left 0.7s ease;
}

.gallery-link:hover::before {
    left: 100%;
}

.gallery-link:hover {
    background: rgba(138, 43, 226, 0.15);
    transform: translateX(5px);
    border-color: rgba(138, 43, 226, 0.4);
}

.gallery-link-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: linear-gradient(135deg, #8A2BE2 0%, #6A0DAD 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.gallery-link-icon i {
    font-size: 22px;
    color: white;
}

.gallery-link-content {
    flex-grow: 1;
}

.gallery-link-content h3 {
    margin: 0 0 5px 0;
    font-size: 1.2rem;
    color: white;
    font-weight: 600;
}

.gallery-link-content p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.gallery-link-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.gallery-link:hover .gallery-link-arrow {
    background: rgba(138, 43, 226, 0.3);
    transform: rotate(-45deg);
}

.gallery-link-arrow i {
    font-size: 16px;
    color: white;
}

/* Footer Info */
.gallery-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.gallery-footer p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Responsive Anpassungen */
@media (max-width: 600px) {
    .gallery-popup {
        width: 95%;
        max-width: 95%;
    }
    
    .gallery-link {
        padding: 15px;
    }
    
    .gallery-link-icon {
        width: 45px;
        height: 45px;
        margin-right: 12px;
    }
    
    .gallery-link-content h3 {
        font-size: 1.1rem;
    }
    
    .gallery-link-content p {
        font-size: 0.85rem;
    }
}