#profile-container {
    padding: 2rem; opacity: 0; transform: translateY(20px);
    animation: fadeIn 0.6s ease-out forwards;
}
@keyframes fadeIn { to { opacity: 1; transform: translateY(0); } }

.profile-header { text-align: center; margin-bottom: 2.5rem; padding-bottom: 2rem; border-bottom: 1px solid var(--border-color); }
.profile-image-view { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; border: 4px solid var(--primary); box-shadow: 0 0 30px -5px var(--glow-color); margin: 0 auto 1.5rem auto; }
.social-icons-view { display: flex; justify-content: center; gap: 1.5rem; margin-bottom: 1.5rem; }
.social-icons-view a { font-size: 1.8rem; color: var(--text-secondary); transition: var(--transition); }
.social-icons-view a:hover { color: var(--primary-light); transform: translateY(-5px) scale(1.1); }
.social-icons-view a[aria-label*="Instagram"]:hover { color: #E1306C; }
.social-icons-view a[aria-label*="TikTok"]:hover { color: #00f2ea; }
.social-icons-view a[aria-label*="X"]:hover { color: #FFFFFF; }
.social-icons-view a[aria-label*="Reddit"]:hover { color: #FF4500; }
.social-icons-view a[aria-label*="Discord"]:hover { color: #5865F2; }
.profile-bio-view { font-size: 1.1rem; color: var(--text-secondary); max-width: 60ch; margin: 0 auto; font-style: italic; }
.profile-longtext-view { font-family: "Lora", serif; font-size: 1.1rem; line-height: 1.8; color: var(--text-secondary); }
.profile-longtext-view p { margin-bottom: 1rem; }

/*
==========================================================================
== NEUES REDIRECT-OVERLAY DESIGN ==
==========================================================================
*/
#main-container.fade-out {
    opacity: 0;
    transform: scale(0.98);
}

.redirect-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    
    display: flex;
    justify-content: center;
    align-items: center;
    
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.redirect-overlay.show {
    opacity: 1;
    visibility: visible;
}

.redirect-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    color: var(--text-primary);
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.5s ease 0.3s, opacity 0.5s ease 0.3s; /* Startet mit Verzögerung */
}

.redirect-overlay.show .redirect-content {
    transform: translateY(0);
    opacity: 1;
}

#redirect-icon {
    font-size: 4rem; /* Großes Icon */
}

#redirect-message {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.redirect-loader {
    width: 100px;
    height: 4px;
    background-color: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
}

.redirect-loader::before {
    content: '';
    display: block;
    width: 0;
    height: 100%;
    background-color: var(--primary);
    border-radius: 2px;
    animation: loading 1.5s ease-in-out forwards; /* Dauer der Animation */
}

@keyframes loading {
    to {
        width: 100%;
    }
}