/* Light Pillar Background Styles */
.light-pillar-fallback {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.1);
    color: #888;
    font-size: 14px;
}

.light-pillar-container {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

/* Footer Styles - Super schmal und minimal */
.footer {
    background: rgba(15, 15, 15, 0.3); /* Transparent für Glass-Effekt */
    color: #ffffff;
    padding: 0.4rem 0;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .footer {
        padding: 0.3rem 0;
    }
    .footer-section ul li a {
        font-size: 0.75rem;
        padding: 0.2rem 0.4rem;
    }
    .footer-section ul {
        gap: 1rem;
    }
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-section h3,
.footer-section h4 {
    display: none; /* Verstecke Überschriften */
}

.footer-section p {
    display: none; /* Verstecke Beschreibungen */
}

.footer-section ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.footer-section ul li {
    margin: 0;
}

.footer-section ul li a {
    color: #b9bbbe;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.footer-section ul li a:hover {
    color: #5865f2;
    background: rgba(88, 101, 242, 0.1);
}

.footer-bottom {
    display: none; /* Verstecke Copyright */
}

/* Ensure no scrolling on homepage */
html, body {
    height: 100%;
    overflow-x: hidden;
    background: transparent; /* Transparent für Background-Effekte */
}

body {
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    position: relative;
    height: calc(100vh - 50px); /* Subtract footer height */
    overflow: hidden;
}

@media (max-width: 768px) {
    main {
        height: calc(100vh - 45px); /* Smaller footer on mobile */
    }
}

#app {
    height: 100%;
    overflow: hidden;
}


/* Reset und Basis-Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

*:focus,
*:focus-visible {
    outline: none !important;
}
:root {
    /* Discord Dark Theme Farben - Dunkler für mehr Kontrast */
    --discord-dark: #2c2f33;
    --discord-darker: #23272a;
    --discord-darkest: #18191c;
    --discord-light: #40444b;
    --discord-lighter: #4f545c;
    --discord-accent: #5865f2;
    --discord-accent-hover: #4752c4;
    --discord-green: #57f287;
    --discord-red: #ed4245;
    --discord-yellow: #fee75c;
    --discord-text: #dcddde;
    --discord-text-muted: #72767d;
    --discord-text-link: #00b0f4;
    --discord-border: #40444b;
    --discord-shadow: rgba(0, 0, 0, 0.5);
    --discord-glow: rgba(88, 101, 242, 0.4);
    --discord-card: #2c2f33;
    --discord-card-hover: #36393f;
}
body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--discord-text);
    background: transparent; /* Transparent, damit Background-Effekte sichtbar sind */
    background-attachment: fixed;
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    -ms-overflow-style: none;
    position: relative;
    scrollbar-width: none;
}

body::-webkit-scrollbar {
    display: none;
}

/* Animated background overlay - deaktiviert, da Fluid-Effekt verwendet wird */
/* body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(114, 137, 218, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(67, 181, 129, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(250, 166, 26, 0.05) 0%, transparent 50%);
    animation: backgroundShift 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
} */

@keyframes backgroundShift {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}
html {
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    background: #000000; /* Schwarzer Fallback-Hintergrund, verhindert weißen Flash */
}

/* Schwarzer Fallback-Hintergrund Layer - hinter den Background-Effekten */
html::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000000;
    z-index: -3; /* Hinter allen Background-Effekten */
    pointer-events: none;
}

/* Scrolling nur auf Desktop deaktivieren, auf Mobile erlauben */
@media (min-width: 769px) {
    html:has(.hero):not(:has(.features)),
    body:has(.hero):not(:has(.features)) {
        overflow: hidden !important;
        height: 100vh !important;
    }
    .hero {
        height: 100vh !important;
        overflow: hidden !important;
    }
}
html::-webkit-scrollbar {
    display: none;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 15, 15, 0.3); /* Transparent für Glass-Effekt */
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: relative;
}
.nav-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--discord-accent);
    text-shadow: 0 0 10px var(--discord-glow);
    margin-left: -20px; /* Move logo to the very left edge */
    padding-left: 20px; /* Add padding to compensate for the removed left padding */
}
.logo-img {
    width: 40px;
    height: 40px;
    margin-right: 0.5rem;
    animation: glow 2s ease-in-out infinite alternate;
    filter: drop-shadow(0 0 15px var(--discord-glow));
}
@keyframes glow {
    from { filter: drop-shadow(0 0 5px var(--discord-accent)); }
    to { filter: drop-shadow(0 0 15px var(--discord-accent)); }
}
.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
}

/* Desktop-only Elemente */
.desktop-only {
    display: flex !important;
}

/* Mobile-only Elemente */
.mobile-only {
    display: none !important;
}
.nav-menu a {
    text-decoration: none;
    color: var(--discord-text);
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}
.nav-menu a:hover {
    color: var(--discord-accent);
    background: rgba(114, 137, 218, 0.1);
    box-shadow: 0 0 10px rgba(114, 137, 218, 0.2);
}
.nav-menu a.active {
    color: var(--discord-accent);
    background: rgba(114, 137, 218, 0.2);
    box-shadow: 0 0 15px rgba(114, 137, 218, 0.3);
}
.login-btn {
    background: linear-gradient(135deg, var(--discord-accent), var(--discord-accent-hover));
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--discord-glow);
}
.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--discord-glow);
}
/* Old user profile styles removed - replaced with new profile avatar link */
/* Old profile actions styles removed - no longer needed */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1005;
}
.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--discord-text);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}
/* Hamburger active state (turn into X) */
.hamburger.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}
/* Language Switcher */
.language-switcher {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1006;
}
.lang-btn {
    background: transparent;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    outline: none;
}
.lang-btn:hover {
    background: rgba(88, 101, 242, 0.1);
    box-shadow: 0 0 15px var(--discord-glow);
    transform: scale(1.05);
}
.lang-btn:focus,
.lang-btn:focus-visible,
.lang-btn:active {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}
.flag-icon {
    width: 24px;
    height: 18px;
    border-radius: 2px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.language-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--discord-border);
    border-radius: 12px;
    padding: 0.5rem;
    margin-top: 0.5rem;
    min-width: 140px;
    max-height: 300px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px var(--discord-shadow);
    z-index: 1006;
}
.language-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.lang-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    color: var(--discord-text);
}
.lang-option:hover {
    background: rgba(88, 101, 242, 0.1);
    color: var(--discord-accent);
}
.lang-option span {
    font-size: 0.9rem;
    font-weight: 500;
}
/* Hero Section */
.hero {
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    background: transparent; /* Transparent für Fluid-Effekt */
    color: var(--discord-text);
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 0;
    transition: padding-top 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero:has(.public-servers-overlay:not(.collapsed)) {
    padding-top: 360px;
}
/* Hero::before Overlay - deaktiviert für Fluid-Effekt */
/* .hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(114, 137, 218, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(67, 181, 129, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(250, 166, 26, 0.05) 0%, transparent 50%);
    animation: backgroundShift 20s ease-in-out infinite;
} */
@keyframes backgroundShift {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}
.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}
.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0;
    line-height: 1.2;
    text-shadow: 0 0 20px rgba(114, 137, 218, 0.3);
}
.highlight {
    background: linear-gradient(45deg, var(--discord-accent), var(--discord-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px var(--discord-glow);
}
.hero-title-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.pre-alpha-badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(51, 0, 255, 0.2); /* Blau transparent für Glassmorphism */
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 20px;
    border: 1px solid rgba(51, 0, 255, 0.3);
    box-shadow: 0 4px 15px rgba(51, 0, 255, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: pulseBadge 2s ease-in-out infinite;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}
.pre-alpha-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 3s infinite;
}
@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}
@keyframes pulseBadge {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(51, 0, 255, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 25px rgba(51, 0, 255, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
}
.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    opacity: 1;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 0, 0, 0.3);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}
.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 1;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 0, 0, 0.3);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}
.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}
.btn-primary, .btn-secondary {
    padding: 1rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    min-width: 160px;
    max-width: 200px;
    height: 56px;
    flex: 1;
    justify-content: center;
    box-sizing: border-box;
}
.btn-primary {
    background: linear-gradient(135deg, var(--discord-accent), var(--discord-green));
    color: white;
    box-shadow: 0 4px 15px var(--discord-glow);
}
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}
.btn-primary:hover::before {
    left: 100%;
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--discord-glow);
}
.btn-secondary {
    background: transparent;
    color: var(--discord-text);
    border: 2px solid var(--discord-accent);
    backdrop-filter: blur(10px);
}
.btn-secondary:hover {
    background: var(--discord-accent);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--discord-glow);
}
.hero-visual {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}
.hero-logo {
    width: 300px;
    height: auto;
    max-height: 300px;
    object-fit: contain;
}

/* Server Counter Styles */
.server-counter {
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    min-width: 200px;
}

.counter-icon {
    font-size: 2rem;
    color: var(--discord-accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.counter-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.counter-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--discord-text);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.counter-label {
    font-size: 0.9rem;
    color: var(--discord-text-muted);
    font-weight: 500;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}
/* Features Section */
.features {
    height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    background: #0f0f0f;
    position: relative;
    margin: 0;
    padding: 0;
    z-index: 1;
}
.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 10% 20%, rgba(114, 137, 218, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(67, 181, 129, 0.05) 0%, transparent 50%);
}
.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--discord-text);
    position: relative;
    z-index: 1;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
}
.feature-card {
    background: rgba(20, 20, 20, 0.9);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    border: 1px solid var(--discord-border);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--discord-accent), var(--discord-green));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}
.feature-card:hover::before {
    transform: scaleX(1);
}
.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px var(--discord-shadow);
    border-color: var(--discord-accent);
}
.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--discord-accent), var(--discord-green));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
    box-shadow: 0 0 20px var(--discord-glow);
    transition: all 0.3s ease;
}
.feature-card:hover .feature-icon {
    transform: scale(1.1);
    box-shadow: 0 0 30px var(--discord-glow);
}
.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--discord-text);
}
.feature-card p {
    color: var(--discord-text-muted);
    line-height: 1.6;
}
/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
}
.modal-content {
    background: rgba(15, 15, 15, 0.3);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    margin: 5% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    position: relative;
    animation: modalSlideIn 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px var(--discord-shadow);
}
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: var(--discord-text-muted);
    z-index: 1;
    transition: color 0.3s ease;
}
.close:hover {
    color: var(--discord-text);
}
.login-container {
    padding: 2rem;
}
.login-header {
    text-align: center;
    margin-bottom: 2rem;
}
.login-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 20px var(--discord-glow));
}
.login-header h2 {
    margin-bottom: 0.5rem;
    color: var(--discord-text);
}
.login-header p {
    color: var(--discord-text-muted);
}
.form-group {
    margin-bottom: 1.5rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--discord-text);
    font-weight: 500;
}
.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--discord-border);
    border-radius: 10px;
    font-size: 1rem;
    background: rgba(20, 20, 20, 0.9);
    color: var(--discord-text);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}
.form-group input:focus {
    outline: none;
    border-color: var(--discord-accent);
    box-shadow: 0 0 10px var(--discord-glow);
}
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}
.form-options label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--discord-text-muted);
}
.forgot-password {
    color: var(--discord-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}
.forgot-password:hover {
    color: var(--discord-accent-hover);
    text-decoration: underline;
}
.login-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--discord-border);
}
.login-footer a {
    color: var(--discord-accent);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}
.login-footer a:hover {
    color: var(--discord-accent-hover);
    text-decoration: underline;
}
/* Login Options */
.login-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
}
.login-option {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem 2rem;
    border: 2px solid var(--discord-border);
    border-radius: 12px;
    background: rgba(20, 20, 20, 0.9);
    color: var(--discord-text);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    backdrop-filter: blur(10px);
}
.login-option:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--discord-shadow);
}
.login-option:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.discord-login {
    border-color: #5865f2;
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.1), rgba(88, 101, 242, 0.05));
}
.discord-login:hover:not(:disabled) {
    border-color: #5865f2;
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.2), rgba(88, 101, 242, 0.1));
    box-shadow: 0 8px 25px rgba(88, 101, 242, 0.3);
}
.discord-login i {
    color: #5865f2;
    font-size: 1.2rem;
}
.google-login {
    border-color: #ea4335;
    background: linear-gradient(135deg, rgba(234, 67, 53, 0.1), rgba(234, 67, 53, 0.05));
}
.google-login:hover:not(:disabled) {
    border-color: #ea4335;
    background: linear-gradient(135deg, rgba(234, 67, 53, 0.2), rgba(234, 67, 53, 0.1));
    box-shadow: 0 8px 25px rgba(234, 67, 53, 0.3);
}
.google-login i {
    color: #ea4335;
    font-size: 1.2rem;
}
.coming-soon {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--discord-yellow);
    color: #000;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    transform: rotate(15deg);
}
/* Loading Animation */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
.loading-spinner {
    text-align: center;
    color: white;
}
.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}
.loading-spinner p {
    font-size: 16px;
    font-weight: 500;
    margin: 0;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* Responsive Design */
@media (max-width: 768px) {
    /* Mobile Scrolling nur für Features und Server Seiten aktivieren */
    /* Home-Seite behält overflow: hidden */
    /* Spezifische Anpassungen für Features-Seite */
    .features {
        height: auto !important;
        min-height: 100vh;
        overflow: visible;
        padding-top: 100px; /* Abstand für Header */
    }
    /* Features-Seite Container ermöglicht Scrolling */
    .features .container {
        overflow: visible;
        height: auto;
    }
    /* Features-Seite: Body und HTML Scrolling aktivieren */
    body.features-page, html.features-page,
    body[data-page="features"], html[data-page="features"] {
        overflow: auto !important;
        height: auto !important;
    }
    /* Spezifische Anpassungen für Server-Seite */
    .dashboard-main {
        overflow: visible;
        height: auto;
        min-height: 100vh;
    }
    .server-portal, .server-dashboard {
        overflow: visible;
        height: auto;
        min-height: 100vh;
    }
    /* Server-Seite Container ermöglicht Scrolling */
    .server-portal .container, .server-dashboard .container {
        overflow: visible;
        height: auto;
    }
    /* Server-Seite: Body und HTML Scrolling aktivieren */
    body.server-page, html.server-page,
    body[data-page="server"], html[data-page="server"] {
        overflow: auto !important;
        height: auto !important;
    }
    /* Alternative Lösung: Direkte Überschreibung für Features und Server Seiten */
    .features, .server-portal, .server-dashboard {
        overflow: visible !important;
    }
    /* Features und Server Seiten: Body Scrolling aktivieren */
    .features ~ body, .server-portal ~ body, .server-dashboard ~ body,
    .features ~ html, .server-portal ~ html, .server-dashboard ~ html {
        overflow: auto !important;
        height: auto !important;
    }
    .hamburger {
        display: flex;
        margin-left: auto;
        z-index: 1005;
        /* Ensure proper positioning */
        position: relative;
        align-self: center;
    }
    .navbar {
        padding: 0.75rem 0;
        align-items: center;
        justify-content: space-between;
        height: 70px;
        box-sizing: border-box;
    }
    .nav-container {
        padding: 0 1rem;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
        position: relative;
        height: 100%;
    }
    .nav-logo {
        margin-left: 0;
        padding-left: 0;
        font-size: 1.25rem;
    }
    .logo-img {
        width: 35px;
        height: 35px;
    }
    .nav-menu {
        position: fixed;
        left: 0;
        top: 70px;
        display: flex;
        flex-direction: column;
        background-color: rgba(15, 15, 15, 0.95);
        width: 100%;
        text-align: center;
        transition: 0.3s ease;
        box-shadow: 0 10px 27px var(--discord-shadow);
        backdrop-filter: blur(20px);
        padding: 1rem 0.75rem 2rem;
        gap: 0.5rem;
        height: calc(100vh - 70px);
        overflow-y: auto;
        overflow-x: hidden;
        z-index: 1004;
        border-top: 1px solid var(--discord-border);
        transform: translateX(-100%);
        pointer-events: auto; /* Sicherstellen, dass Klicks funktionieren */
    }
    .nav-menu li {
        width: 100%;
        margin: 0;
        padding: 0;
        list-style: none;
        text-align: center;
        display: flex;
        justify-content: center;
        align-items: center;
        pointer-events: auto !important;
        position: relative;
        z-index: 1005;
    }
    
    .nav-menu li * {
        pointer-events: auto !important;
    }
    .nav-menu a,
    .nav-menu .login-btn {
        display: block;
        width: 100%;
        padding: 0.9rem 1rem;
        border-radius: 10px;
        text-decoration: none;
        color: var(--discord-text);
        transition: all 0.3s ease;
        border: none;
        background: none;
        font-size: 1rem;
        font-weight: 500;
        text-align: center;
    }
    .nav-menu .login-btn {
        margin: 0 auto;
        max-width: 200px;
    }
    /* Desktop-only Elemente auf Mobile verstecken */
    .desktop-only {
        display: none !important;
    }
    
    /* Mobile Auth Container - Server und Profile nebeneinander */
    .nav-menu .mobile-auth-container {
        width: 100%;
        margin: 0.5rem 0;
        padding: 0;
    }
    
    .nav-menu .mobile-auth-buttons {
        display: flex;
        gap: 0.75rem;
        justify-content: center;
        align-items: center;
        width: 100%;
        margin: 0;
        padding: 0;
    }
    
    .nav-menu .mobile-auth-buttons .server-section,
    .nav-menu .mobile-auth-buttons .profile-section {
        display: flex !important;
        width: auto;
        flex: 0 0 auto;
        margin: 0;
        padding: 0;
        position: relative; /* Für Dropdown-Positionierung */
    }
    
    /* Mobile Dropdowns zentrieren - vollständig zentriert im Menü */
    .nav-menu .mobile-auth-buttons .server-dropdown,
    .nav-menu .mobile-auth-buttons .profile-menu {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) translateY(-10px) !important;
        margin-top: 0 !important;
        z-index: 1020 !important; /* Sehr hoch für Überlagerung */
        pointer-events: auto;
        max-width: 90vw;
        width: 280px;
        background: rgba(15, 15, 15, 0.98) !important; /* Fast undurchsichtig */
        backdrop-filter: blur(50px) saturate(180%) !important;
        -webkit-backdrop-filter: blur(50px) saturate(180%) !important;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8) !important; /* Stärkerer Schatten für bessere Abdeckung */
    }
    
    /* Profile-Dropdown noch undurchsichtiger für bessere Abdeckung */
    .nav-menu .mobile-auth-buttons .profile-menu {
        background: rgba(15, 15, 15, 1.0) !important; /* Vollständig undurchsichtig */
        backdrop-filter: blur(60px) saturate(200%) !important;
        -webkit-backdrop-filter: blur(60px) saturate(200%) !important;
        box-shadow: 0 8px 40px rgba(0, 0, 0, 0.95) !important; /* Noch stärkerer Schatten */
    }
    
    /* Schließen-Button für Mobile-Dropdowns */
    .nav-menu .mobile-auth-buttons .server-dropdown .dropdown-close-btn,
    .nav-menu .mobile-auth-buttons .profile-menu .dropdown-close-btn {
        position: absolute;
        top: 12px;
        right: 12px;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        color: rgba(255, 255, 255, 0.9);
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1021;
        transition: all 0.2s ease;
        font-size: 14px;
    }
    
    .nav-menu .mobile-auth-buttons .server-dropdown .dropdown-close-btn:hover,
    .nav-menu .mobile-auth-buttons .profile-menu .dropdown-close-btn:hover {
        background: rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 255, 255, 0.3);
        color: #ffffff;
        transform: scale(1.1);
    }
    
    .nav-menu .mobile-auth-buttons .server-dropdown .dropdown-close-btn:active,
    .nav-menu .mobile-auth-buttons .profile-menu .dropdown-close-btn:active {
        transform: scale(0.95);
    }
    
    /* Server-Button z-index reduzieren wenn Profile-Dropdown offen ist */
    .nav-menu .mobile-auth-buttons .profile-menu.active ~ .server-section .server-dropdown-btn,
    .nav-menu .mobile-auth-buttons .profile-menu.active ~ * .server-dropdown-btn {
        z-index: 1010 !important; /* Niedriger als Profile-Dropdown */
        position: relative;
    }
    
    /* Scrollbar im Mobile Server-Dropdown deaktivieren */
    .nav-menu .mobile-auth-buttons .server-dropdown {
        overflow-y: hidden !important;
        max-height: none !important;
    }
    
    .nav-menu .mobile-auth-buttons .server-dropdown .server-dropdown-list {
        overflow-y: hidden !important;
        max-height: none !important;
    }
    
    .nav-menu .mobile-auth-buttons .server-dropdown.active,
    .nav-menu .mobile-auth-buttons .profile-menu.active {
        transform: translate(-50%, -50%) translateY(0) !important;
        pointer-events: auto;
    }
    
    .nav-menu .mobile-auth-buttons .server-dropdown-btn {
        margin: 0;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        white-space: nowrap;
        pointer-events: auto !important;
        position: relative;
        z-index: 1005 !important; /* Niedriger als Dropdowns (1020) */
        cursor: pointer;
        background: transparent;
        border: none;
        color: var(--discord-text);
    }
    
    .nav-menu .mobile-auth-buttons .profile-avatar {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 40px;
        height: 40px;
        margin: 0;
        pointer-events: auto !important;
        position: relative;
        z-index: 1009; /* Höher als Dropdown */
        cursor: pointer;
    }
    
    .nav-menu .mobile-auth-buttons .profile-avatar img {
        pointer-events: none; /* Bild selbst nicht klickbar, nur Container */
    }
    
    .nav-menu .mobile-auth-buttons .profile-avatar .avatar-img {
        width: 40px;
        height: 40px;
    }
    
    /* Alte Profile/Server Sections im Mobile-Menü verstecken (falls vorhanden) */
    .nav-menu .server-section:not(.desktop-only),
    .nav-menu .profile-section:not(.desktop-only) {
        display: none !important;
    }
    .nav-menu a:hover,
    .nav-menu .login-btn:hover {
        background: rgba(114, 137, 218, 0.1);
        color: var(--discord-accent);
        transform: translateX(5px);
    }
    /* Mobile language switcher positioning */
    .language-switcher {
        position: absolute;
        right: 60px;
        top: 50%;
        transform: translateY(-50%);
        text-align: center;
        z-index: 1006;
    }
    .nav-menu.active {
        transform: translateX(0) !important;
        pointer-events: auto !important; /* Sicherstellen, dass Klicks funktionieren wenn Menü aktiv ist */
    }
    /* Profile dropdown visible in header on mobile */
    .profile-section {
        position: relative;
        margin: 0 auto;
        text-align: center;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .profile-menu {
        position: absolute;
        top: 100%;
        right: 0;
        width: 280px;
        background: rgba(15, 15, 15, 0.3);
        backdrop-filter: blur(40px) saturate(180%);
        -webkit-backdrop-filter: blur(40px) saturate(180%);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        box-shadow: 0 8px 25px var(--discord-shadow);
        z-index: 1006;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        pointer-events: auto;
    }
    
    .profile-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    /* Verbesserte mobile Hero-Section - KEIN Scrolling */
    .hero {
        min-height: 100vh;
        height: 100vh;
        width: 100vw;
        padding: 0;
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow-y: auto; /* Mobile kann scrollen */
    }
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1rem;
        padding: 1.5rem 1rem 1rem;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    .hero-content {
        order: 2;
        margin-bottom: 0.75rem;
    }
    .hero-title-container {
        gap: 10px;
        margin-bottom: 0.5rem;
        justify-content: center;
    }
    .hero-content h1 {
        font-size: 2rem;
        margin-bottom: 0;
        line-height: 1.1;
    }
    .pre-alpha-badge {
        font-size: 0.6rem;
        padding: 4px 10px;
    }
    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
        color: rgba(255, 255, 255, 0.95);
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 0, 0, 0.3);
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
    }
    .hero-description {
        font-size: 0.85rem;
        margin-bottom: 1rem;
        line-height: 1.5;
        padding: 0 0.5rem;
        color: rgba(255, 255, 255, 0.9);
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 0, 0, 0.3);
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
    }
    .hero-buttons {
        justify-content: center;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        padding: 0 0.5rem;
    }
    .btn-primary, .btn-secondary {
        flex: 1 1 auto;
        min-width: 110px;
        max-width: 150px;
        padding: 0.65rem 0.75rem;
        font-size: 0.8rem;
        border-radius: 18px;
        height: 42px;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: inline-flex;
    }
    .btn-primary i, .btn-secondary i {
        font-size: 0.75rem;
        flex-shrink: 0;
    }
    .hero-visual {
        order: 1;
        margin-top: 0;
        margin-bottom: 0.75rem;
        gap: 1rem;
    }
    .hero-logo {
        width: 180px;
        height: auto;
        max-height: 180px;
    }
    .server-counter {
        min-width: 180px;
    }
    .counter-icon {
        font-size: 1.5rem;
    }
    .counter-number {
        font-size: 1.5rem;
    }
    .counter-label {
        font-size: 0.85rem;
        object-fit: contain;
    }
    /* Verbesserte mobile Features-Section */
    .features {
        height: auto !important;
        min-height: 100vh;
        width: 100vw;
        padding: 2rem 0;
        margin: 0;
        padding-top: 100px; /* Abstand für Header */
    }
    .features .container {
        height: auto;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        padding: 2rem 1rem;
        min-height: 100vh;
    }
    .features h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
        padding: 0 1rem;
        margin-top: 20px; /* Zusätzlicher Abstand nach oben */
    }
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 0.5rem;
    }
    .feature-card {
        padding: 1.5rem;
        margin: 0 0.5rem;
    }
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    .feature-card h3 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
    .feature-card p {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    /* Mobile Server Dashboard Anpassungen */
    .dashboard-main {
        margin-top: 80px;
        padding-top: 1rem;
    }
    .server-portal, .server-dashboard {
        padding: 1rem;
    }
    .portal-header, .dashboard-header {
        text-align: center;
        margin-bottom: 2rem;
    }
    .portal-header h1, .dashboard-header h2 {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
    }
    .portal-header p {
        font-size: 1rem;
        color: var(--discord-text-muted);
    }
    .server-grid, .feature-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .dashboard-section {
        margin-bottom: 2rem;
    }
    .dashboard-section h3 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
        text-align: center;
    }
    .back-btn {
        width: 100%;
        margin-bottom: 1rem;
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    .server-info {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    .server-icon {
        width: 60px;
        height: 60px;
    }
}
@media (max-width: 480px) {
    /* Mobile Scrolling nur für Features und Server Seiten aktivieren */
    /* Home-Seite behält overflow: hidden */
    /* Spezifische Anpassungen für Features-Seite */
    .features {
        height: auto !important;
        min-height: 100vh;
        overflow: visible;
        padding-top: 100px; /* Abstand für Header */
    }
    /* Features-Seite Container ermöglicht Scrolling */
    .features .container {
        overflow: visible;
        height: auto;
    }
    /* Features-Seite: Body und HTML Scrolling aktivieren */
    body.features-page, html.features-page,
    body[data-page="features"], html[data-page="features"] {
        overflow: auto !important;
        height: auto !important;
    }
    /* Spezifische Anpassungen für Server-Seite */
    .dashboard-main {
        overflow: visible;
        height: auto;
        min-height: 100vh;
    }
    .server-portal, .server-dashboard {
        overflow: visible;
        height: auto;
        min-height: 100vh;
    }
    /* Server-Seite Container ermöglicht Scrolling */
    .server-portal .container, .server-dashboard .container {
        overflow: visible;
        height: auto;
    }
    /* Server-Seite: Body und HTML Scrolling aktivieren */
    body.server-page, html.server-page,
    body[data-page="server"], html[data-page="server"] {
        overflow: auto !important;
        height: auto !important;
    }
    /* Alternative Lösung: Direkte Überschreibung für Features und Server Seiten */
    .features, .server-portal, .server-dashboard {
        overflow: visible !important;
    }
    /* Features und Server Seiten: Body Scrolling aktivieren */
    .features ~ body, .server-portal ~ body, .server-dashboard ~ body,
    .features ~ html, .server-portal ~ html, .server-dashboard ~ html {
        overflow: auto !important;
        height: auto !important;
    }
    .hero-content {
        order: 2;
    }
    .hero-title-container {
        gap: 8px;
        margin-bottom: 0.4rem;
        justify-content: center;
    }
    .hero-content h1 {
        font-size: 1.75rem;
        line-height: 1.1;
    }
    .pre-alpha-badge {
        font-size: 0.55rem;
        padding: 3px 8px;
    }
    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
        color: rgba(255, 255, 255, 0.95);
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 0, 0, 0.3);
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
    }
    .hero-description {
        font-size: 0.8rem;
        margin-bottom: 0.85rem;
        padding: 0 0.25rem;
        line-height: 1.4;
        color: rgba(255, 255, 255, 0.9);
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 0, 0, 0.3);
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
    }
    .hero-buttons {
        max-width: 100%;
        gap: 0.45rem;
        padding: 0 0.5rem;
    }
    .btn-primary, .btn-secondary {
        flex: 1 1 auto;
        min-width: 95px;
        max-width: 130px;
        padding: 0.6rem 0.65rem;
        font-size: 0.75rem;
        height: 40px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .btn-primary i, .btn-secondary i {
        font-size: 0.7rem;
        flex-shrink: 0;
    }
    .hero-logo {
        width: 160px;
        max-height: 160px;
    }
    .server-counter {
        min-width: 170px;
    }
    .counter-icon {
        font-size: 1.4rem;
    }
    .counter-number {
        font-size: 1.4rem;
    }
    .counter-label {
        font-size: 0.8rem;
    }
    .hero-container {
        padding: 1.25rem 0.75rem 0.75rem;
        gap: 0.85rem;
    }
    .hero-visual {
        order: 1;
        margin-top: 0;
        margin-bottom: 0.75rem;
        gap: 0.75rem;
    }
    .features .container {
        padding: 1.5rem 0.75rem;
    }
    .features h2 {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
        margin-top: 20px; /* Zusätzlicher Abstand nach oben */
    }
    .features-grid {
        gap: 1.25rem;
        padding: 0 0.25rem;
    }
    .feature-card {
        padding: 1.25rem;
        margin: 0 0.25rem;
    }
    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    .feature-card h3 {
        font-size: 1rem;
    }
    .feature-card p {
        font-size: 0.9rem;
    }
    /* Mobile Server Dashboard Anpassungen für kleine Geräte */
    .dashboard-main {
        margin-top: 80px;
        padding-top: 0.75rem;
    }
    .server-portal, .server-dashboard {
        padding: 0.75rem;
    }
    .portal-header, .dashboard-header {
        margin-bottom: 1.5rem;
    }
    .portal-header h1, .dashboard-header h2 {
        font-size: 1.5rem;
    }
    .portal-header p {
        font-size: 0.9rem;
    }
    .dashboard-section {
        margin-bottom: 1.5rem;
    }
    .dashboard-section h3 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
    .back-btn {
        padding: 0.625rem;
        font-size: 0.85rem;
    }
    .server-icon {
        width: 50px;
        height: 50px;
    }
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    /* Mobile language switcher refined */
    .language-switcher {
        position: absolute;
        right: 50px;
        top: 50%;
        transform: translateY(-50%);
        margin-left: 0;
        z-index: 1002;
    }
    .lang-btn {
        width: 32px;
        height: 32px;
    }
    .flag-icon {
        width: 18px;
        height: 14px;
    }
    .language-menu {
        right: -10px;
        min-width: 100px;
    }
}
/* Profile Section */
/* Server Dropdown Section */
.server-section {
    position: relative;
    margin-left: 1rem;
    display: none; /* Hidden by default */
}

.server-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(114, 137, 218, 0.1);
    border: 2px solid var(--discord-accent);
    border-radius: 8px;
    color: var(--discord-accent);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 600;
}

.server-dropdown-btn:hover {
    background: rgba(114, 137, 218, 0.2);
    border-color: var(--discord-accent-hover);
    box-shadow: 0 0 15px rgba(114, 137, 218, 0.3);
}

.server-dropdown-btn i:last-child {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.server-dropdown.active .server-dropdown-btn i:last-child {
    transform: rotate(180deg);
}

.server-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 280px;
    max-width: 320px;
    background: rgba(15, 15, 15, 0.3);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 8px 25px var(--discord-shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1007; /* Höherer z-index für Desktop */
    margin-top: 10px;
    max-height: 400px;
    overflow-y: auto;
    pointer-events: auto;
}

.server-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.server-dropdown-list {
    padding: 8px 0;
}

.server-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--discord-text);
    text-decoration: none;
    transition: background-color 0.2s ease;
    font-size: 14px;
}

.server-dropdown-item:hover {
    background-color: rgba(15, 15, 15, 0.5);
}

.server-dropdown-item.add-server {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--discord-accent);
    font-weight: 600;
}

.server-dropdown-item.add-server:hover {
    background-color: rgba(114, 137, 218, 0.1);
}

.server-dropdown-item i {
    width: 20px;
    text-align: center;
    color: var(--discord-text-muted);
}

.server-dropdown-item.add-server i {
    color: var(--discord-accent);
}

.server-dropdown-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.server-dropdown-empty {
    padding: 16px;
    text-align: center;
    color: var(--discord-text-muted);
    font-size: 13px;
}

.server-dropdown-empty i {
    display: block;
    margin-bottom: 8px;
    font-size: 24px;
    opacity: 0.5;
}

.server-dropdown-loading {
    padding: 24px 16px;
    text-align: center;
    color: var(--discord-text-muted);
    font-size: 13px;
}

.loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--discord-border);
    border-top-color: var(--discord-accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 12px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.add-server-text {
    transition: all 0.2s ease;
}

/* Mobile responsive for server dropdown */
@media (max-width: 768px) {
    .server-section {
        margin-left: 0.5rem;
    }
    
    .server-dropdown {
        right: auto;
        left: 0;
        min-width: 250px;
    }
    
    .server-dropdown-btn {
        padding: 6px 12px;
        font-size: 13px;
        gap: 6px;
    }
}

/* Profile Section */
.profile-section {
    position: relative;
    margin-left: 1rem;
    display: none; /* Hidden by default */
    z-index: 1008; /* Höher als andere Elemente */
    pointer-events: auto;
}
.profile-section.show {
    display: flex;
    align-items: center;
}
.profile-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    position: relative;
    z-index: 1008; /* Höher als Dropdown */
}
.avatar-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--discord-accent);
    transition: all 0.3s ease;
    object-fit: cover;
    background-color: var(--discord-dark);
}
.avatar-img:hover {
    border-color: var(--discord-accent-hover);
    transform: scale(1.05);
    box-shadow: 0 0 15px var(--discord-glow);
}
/* Profile Menu Styles */
.profile-menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 280px;
    background: rgba(15, 15, 15, 0.3);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 8px 25px var(--discord-shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1007; /* Höherer z-index für Desktop */
    margin-top: 10px;
    pointer-events: auto;
}
.profile-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}
.profile-header {
    display: flex;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.menu-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
    object-fit: cover;
}
.profile-info {
    display: flex;
    flex-direction: column;
}
.username {
    font-weight: 600;
    color: var(--discord-text);
    font-size: 14px;
}
.discriminator {
    color: var(--discord-text-muted);
    font-size: 12px;
}
.profile-actions {
    padding: 8px 0;
}
.profile-link {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: var(--discord-text);
    text-decoration: none;
    transition: background-color 0.2s ease;
    font-size: 14px;
}
.profile-link:hover {
    background-color: rgba(15, 15, 15, 0.5);
}
.profile-link i {
    margin-right: 12px;
    width: 16px;
    text-align: center;
    color: var(--discord-text-muted);
    flex-shrink: 0; /* Verhindert, dass Icon schrumpft */
}
.profile-link span {
    flex: 1;
    margin-left: 0; /* Kein zusätzlicher Abstand */
}

/* Mobile Profile-Links: Konsistenter Abstand zwischen Icon und Text */
@media (max-width: 768px) {
    .nav-menu .mobile-auth-buttons .profile-menu .profile-link {
        display: flex;
        align-items: center;
        gap: 12px; /* Konsistenter Abstand für alle Links */
    }
    
    .nav-menu .mobile-auth-buttons .profile-menu .profile-link i {
        width: 16px;
        flex-shrink: 0;
        margin-right: 0; /* Gap übernimmt den Abstand */
        padding: 0;
    }
    
    .nav-menu .mobile-auth-buttons .profile-menu .profile-link span {
        margin-left: 0;
        padding: 0;
        flex: 1;
    }
}
/* Profile Page Styles */
.profile-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #0f0f0f;
    padding: 120px 0 2rem 0;
    position: relative;
    overflow-x: hidden;
}
.profile-page .container {
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.profile-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(88, 101, 242, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(87, 242, 135, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(254, 231, 92, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    animation: backgroundShift 20s ease-in-out infinite;
}
.profile-header-section {
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}
.profile-banner {
    background: rgba(44, 47, 51, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid var(--discord-border);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    box-shadow: 0 10px 25px var(--discord-shadow);
    transition: all 0.3s ease;
}
.profile-banner:hover {
    box-shadow: 0 15px 35px var(--discord-shadow);
    transform: translateY(-2px);
}
.profile-avatar-large {
    flex-shrink: 0;
    position: relative;
}
.avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--discord-accent);
    box-shadow: 0 8px 25px var(--discord-glow);
    transition: all 0.3s ease;
}
.avatar-large:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 35px var(--discord-glow);
}
.profile-info-large {
    flex: 1;
}
.profile-name {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--discord-text);
    margin: 0 0 0.5rem 0;
    text-shadow: 0 0 10px var(--discord-glow);
}
.profile-tag {
    font-size: 1.1rem;
    color: var(--discord-text-muted);
    margin: 0 0 1.5rem 0;
}
.profile-stats {
    display: flex;
    gap: 2rem;
}
.stat-item {
    text-align: center;
    padding: 1rem;
    background: rgba(64, 68, 75, 0.5);
    border-radius: 12px;
    border: 1px solid var(--discord-border);
    transition: all 0.3s ease;
}
.stat-item:hover {
    background: rgba(88, 101, 242, 0.1);
    border-color: var(--discord-accent);
    transform: translateY(-2px);
}
.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--discord-accent);
    text-shadow: 0 0 10px var(--discord-glow);
}
.stat-label {
    font-size: 0.9rem;
    color: var(--discord-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.5rem;
}
.profile-content {
    margin-top: 2rem;
    position: relative;
    z-index: 1;
}
.profile-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}
.profile-card {
    background: rgba(44, 47, 51, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid var(--discord-border);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px var(--discord-shadow);
    transition: all 0.3s ease;
}
.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--discord-shadow);
    border-color: var(--discord-accent);
}
.profile-card h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--discord-text);
    margin: 0 0 1.5rem 0;
    text-shadow: 0 0 5px var(--discord-glow);
}
.profile-card h3 i {
    color: var(--discord-accent);
    text-shadow: 0 0 10px var(--discord-glow);
}
.info-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--discord-border);
    transition: all 0.3s ease;
}
.info-item:hover {
    background: rgba(88, 101, 242, 0.05);
    border-radius: 8px;
    padding: 0.75rem;
    margin: 0 -0.75rem;
}
.info-item:last-child {
    border-bottom: none;
}
.info-label {
    font-weight: 500;
    color: var(--discord-text-muted);
}
.info-value {
    font-weight: 600;
    color: var(--discord-text);
}
.status-online {
    color: var(--discord-green);
    text-shadow: 0 0 5px rgba(87, 242, 135, 0.3);
}
.settings-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--discord-border);
    transition: all 0.3s ease;
}
.setting-item:hover {
    background: rgba(88, 101, 242, 0.05);
    border-radius: 8px;
    padding: 0.75rem;
    margin: 0 -0.75rem;
}
.setting-item:last-child {
    border-bottom: none;
}
.setting-label {
    font-weight: 500;
    color: var(--discord-text-muted);
}
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--discord-light);
    transition: .4s;
    border-radius: 24px;
    border: 1px solid var(--discord-border);
}
.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: var(--discord-text);
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px var(--discord-shadow);
}
input:checked + .slider {
    background-color: var(--discord-accent);
    box-shadow: 0 0 10px var(--discord-glow);
}
input:checked + .slider:before {
    transform: translateX(26px);
}
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: rgba(64, 68, 75, 0.3);
    border: 1px solid var(--discord-border);
    border-radius: 8px;
    transition: all 0.3s ease;
}
.activity-item:hover {
    background: rgba(88, 101, 242, 0.1);
    border-color: var(--discord-accent);
    transform: translateX(5px);
}
.activity-icon {
    width: 40px;
    height: 40px;
    background: var(--discord-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px var(--discord-glow);
    color: white;
}
.activity-content {
    flex: 1;
}
.activity-text {
    display: block;
    font-weight: 500;
    color: var(--discord-text);
    margin-bottom: 0.25rem;
}
.activity-time {
    font-size: 0.8rem;
    color: var(--discord-text-muted);
}
/* Profile Grid Responsive Design */
@media (max-width: 768px) {
    .profile-grid {
        grid-template-columns: 1fr;
    }
}
/* Dashboard Styles */
.dashboard-main {
    min-height: 100vh;
    background: var(--discord-background);
    padding-top: 80px;
    position: relative;
}
.dashboard-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(99, 102, 241, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}
/* Server Portal */
.server-portal {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}
.portal-header {
    text-align: center;
    margin-bottom: 3rem;
}
.portal-header h1 {
    color: var(--discord-text);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}
.portal-header p {
    color: var(--discord-text-muted);
    font-size: 1.1rem;
}
.server-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}
.server-card {
    background: rgba(15, 15, 15, 0.3);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 16px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.server-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--discord-accent), var(--discord-green));
    opacity: 0;
    transition: opacity 0.3s ease;
}
.server-card:hover {
    transform: translateY(-4px);
    border-color: var(--discord-accent);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
    background: rgba(15, 15, 15, 0.4);
}
.server-card:hover::before {
    opacity: 1;
}
.server-card-content {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.server-icon-container {
    position: relative;
    flex-shrink: 0;
}
.server-icon {
    width: 128px;
    height: 128px;
    border-radius: 16px;
    object-fit: cover;
    border: 2px solid var(--discord-border);
    transition: all 0.3s ease;
}
.server-card:hover .server-icon {
    border-color: var(--discord-accent);
    transform: scale(1.05);
}
.bot-indicator {
    position: absolute;
    bottom: -4px;
    right: -4px;
    background: var(--discord-accent);
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    border: 2px solid var(--discord-card);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.server-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.server-info h3 {
    color: var(--discord-text);
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 15ch;
}
.server-info p {
    color: var(--discord-text-muted);
    margin: 0;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.server-info p i {
    font-size: 0.8rem;
    color: var(--discord-accent);
}
.bot-status {
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}
.bot-status.online {
    background: rgba(87, 242, 135, 0.15);
    color: #57f287;
    border: 1px solid rgba(87, 242, 135, 0.3);
}
.bot-status.offline {
    background: rgba(237, 66, 69, 0.15);
    color: #ed4245;
    border: 1px solid rgba(237, 66, 69, 0.3);
}
.server-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
}
.btn-configure, .btn-invite {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}
.btn-configure::before, .btn-invite::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}
.btn-configure:hover::before, .btn-invite:hover::before {
    left: 100%;
}
.btn-configure {
    background: linear-gradient(135deg, var(--discord-green), #4ade80);
    color: #000;
    box-shadow: 0 4px 15px rgba(87, 242, 135, 0.3);
}
.btn-configure:hover {
    background: linear-gradient(135deg, #4ade80, var(--discord-green));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(87, 242, 135, 0.4);
}
.btn-invite {
    background: linear-gradient(135deg, var(--discord-accent), var(--discord-accent-hover));
    color: white;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
}
.btn-invite:hover {
    background: linear-gradient(135deg, var(--discord-accent-hover), var(--discord-accent));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.4);
}
.btn-configure i, .btn-invite i {
    font-size: 0.85rem;
}
/* Add Server Card */
.add-server-card {
    border: 2px dashed var(--discord-text-muted);
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 140px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.add-server-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--discord-accent), var(--discord-green));
    opacity: 0;
    transition: opacity 0.3s ease;
}
.add-server-card:hover {
    border-color: var(--discord-accent);
    background: rgba(88, 101, 242, 0.08);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}
.add-server-card:hover::before {
    opacity: 1;
}
.add-server-card:hover .add-server-icon {
    transform: scale(1.1);
    background: linear-gradient(135deg, var(--discord-accent), var(--discord-accent-hover));
}
.add-server-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: var(--discord-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
}
.add-server-card h3 {
    color: var(--discord-text);
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}
.add-server-card p {
    color: var(--discord-text-muted);
    margin: 0;
    font-size: 0.9rem;
}
/* Server separator line */
.server-separator {
    width: 100%;
    margin: 2rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    grid-column: 1 / -1; /* Span full width of grid */
}
.server-separator hr {
    width: 100%;
    max-width: 400px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--discord-accent), transparent);
    border: none;
    border-radius: 1px;
    opacity: 0.6;
}
/* Not invited server styling */
.server-info p.not-invited {
    color: #ff4444;
    font-weight: 500;
}
/* Notification styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 10000;
    animation: slideIn 0.3s ease-out;
    max-width: 300px;
    word-wrap: break-word;
}
.notification.info {
    background: linear-gradient(135deg, #7289da, #5865f2);
    box-shadow: 0 4px 15px rgba(114, 137, 218, 0.3);
}
.notification.error {
    background: linear-gradient(135deg, #ed4245, #d73a49);
    box-shadow: 0 4px 15px rgba(237, 66, 69, 0.3);
}
.notification.success {
    background: linear-gradient(135deg, #3ba55c, #2d7d46);
    box-shadow: 0 4px 15px rgba(59, 165, 92, 0.3);
}
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
/* No Servers Card */
.no-servers-card {
    border: 2px dashed var(--discord-text-muted);
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 140px;
    transition: all 0.3s ease;
}
.no-servers-card:hover {
    border-color: var(--discord-text-muted);
    background: rgba(114, 118, 125, 0.05);
}
.no-servers-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: var(--discord-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--discord-text);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    opacity: 0.6;
}
.no-servers-card h3 {
    color: var(--discord-text);
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}
.no-servers-card p {
    color: var(--discord-text-muted);
    margin: 0;
    font-size: 0.9rem;
}
/* Server Dashboard */
.server-dashboard {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}
.dashboard-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.back-btn {
    background: rgba(15, 15, 15, 0.3);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--discord-text);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}
.back-btn:hover {
    background: rgba(15, 15, 15, 0.4);
    border-color: var(--discord-accent);
}
.server-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.server-info .server-icon {
    width: 80px;
    height: 80px;
    border-radius: 16px;
}
.server-details h2 {
    color: var(--discord-text);
    margin: 0 0 0.5rem 0;
    font-size: 1.8rem;
}
.server-details span {
    color: var(--discord-text-muted);
    font-size: 1rem;
}
/* Dashboard Content */
.dashboard-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}
.dashboard-section {
    background: rgba(15, 15, 15, 0.3);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.dashboard-section h3 {
    color: var(--discord-text);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}
.feature-card {
    background: rgba(15, 15, 15, 0.3);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}
.feature-card:hover {
    transform: translateY(-2px);
    border-color: var(--discord-accent);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background: rgba(15, 15, 15, 0.4);
}
.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--discord-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
}
.feature-card h4 {
    color: var(--discord-text);
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}
.feature-card p {
    color: var(--discord-text-muted);
    margin: 0 0 1rem 0;
    font-size: 0.9rem;
    line-height: 1.4;
}
.feature-btn {
    background: var(--discord-accent);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}
.feature-btn:hover {
    background: #7c3aed;
    transform: translateY(-1px);
}
/* Dashboard Responsive */
@media (max-width: 768px) {
    .server-portal,
    .server-dashboard {
        padding: 1rem;
    }
    .portal-header h1 {
        font-size: 1.8rem;
    }
    .server-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .feature-grid {
        grid-template-columns: 1fr;
    }
    .server-card {
        min-height: 140px;
        padding: 1.25rem;
    }
    .server-info h3 {
        font-size: 1.1rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 15ch;
    }
    .server-card-content {
        flex-direction: row;
        text-align: left;
        margin-bottom: 0.75rem;
    }
            .server-icon {
            width: 120px;
            height: 120px;
        }
    .server-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    .btn-configure, .btn-invite {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
    .add-server-card,
    .no-servers-card {
        min-height: 120px;
        padding: 1.25rem;
    }
    .add-server-icon,
    .no-servers-icon {
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }
}
@media (max-width: 480px) {
    .navbar {
        padding: 0.6rem 0;
        height: 60px;
    }
    .nav-logo {
        font-size: 1.1rem;
    }
    .logo-img {
        width: 30px;
        height: 30px;
    }
    .nav-menu {
        top: 60px;
        height: calc(100vh - 60px);
    }
    main {
        height: calc(100vh - 40px);
    }
    .footer {
        padding: 0.25rem 0;
    }
    .footer-section ul li a {
        font-size: 0.7rem;
        padding: 0.15rem 0.3rem;
    }
    .footer-section ul {
        gap: 0.75rem;
    }
    .server-grid {
        gap: 0.75rem;
    }
    .server-card {
        padding: 1rem;
        min-height: 130px;
    }
    .server-card-content {
        gap: 0.75rem;
        margin-bottom: 0.5rem;
    }
            .server-icon {
            width: 104px;
            height: 104px;
        }
    .server-info h3 {
        font-size: 1.1rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 15ch;
    }
    .server-info p {
        font-size: 0.85rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    .server-actions {
        gap: 0.4rem;
    }
    .btn-configure, .btn-invite {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
    .add-server-card,
    .no-servers-card {
        padding: 1rem;
        min-height: 110px;
    }
    .add-server-icon,
    .no-servers-icon {
        width: 48px;
        height: 48px;
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
    }
}
/* Server Error Styles */
.server-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 2rem;
    background: rgba(237, 66, 69, 0.1);
    border: 1px solid rgba(237, 66, 69, 0.3);
    border-radius: 12px;
    margin: 2rem auto;
    max-width: 500px;
}
.server-error.token-expired {
    background: rgba(254, 231, 92, 0.1);
    border: 1px solid rgba(254, 231, 92, 0.3);
}
.server-error.token-expired .error-icon {
    color: var(--discord-yellow);
}
.error-icon {
    font-size: 3rem;
    color: var(--discord-red);
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}
.server-error h3 {
    color: var(--discord-text);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}
.server-error p {
    color: var(--discord-text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}
.retry-btn {
    background: var(--discord-accent);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.retry-btn:hover {
    background: var(--discord-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.3);
}
.retry-btn i {
    font-size: 0.9rem;
}
.error-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}
.logout-btn {
    background: var(--discord-red);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}
.logout-btn:hover {
    background: #c53030;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(237, 66, 69, 0.3);
}
.logout-btn i {
    font-size: 0.9rem;
}
/* Spezielle Scrolling-Regeln für Features und Server Seiten */
@media (max-width: 768px) {
    /* Features-Seite: Scrolling erzwingen */
    .features {
        overflow: visible !important;
    }
    /* Server-Seite: Scrolling erzwingen */
    .server-portal, .server-dashboard {
        overflow: visible !important;
    }
    /* Direkte Überschreibung der globalen overflow-Regeln für diese Seiten */
    .features, .server-portal, .server-dashboard {
        overflow: visible !important;
    }
    /* Container dieser Seiten ebenfalls scrollbar machen */
    .features .container, .server-portal .container, .server-dashboard .container {
        overflow: visible !important;
        height: auto !important;
    }
    /* Features und Server Seiten: Alle übergeordneten Elemente scrollbar machen */
    .features, .server-portal, .server-dashboard {
        overflow: visible !important;
        height: auto !important;
        min-height: 100vh;
    }
    /* Zusätzliche Sicherheit: Alle direkten Kinder scrollbar machen */
    .features > *, .server-portal > *, .server-dashboard > * {
        overflow: visible !important;
    }
    /* WICHTIG: Body und HTML Scrolling für Features und Server Seiten aktivieren */
    /* Diese Regel überschreibt die globalen overflow: hidden Regeln */
    /* Nur aktivieren wenn KEIN .hero Element vorhanden ist (nicht auf Home-Seite) */
    body:has(.features):not(:has(.hero)), body:has(.server-portal):not(:has(.hero)), body:has(.server-dashboard):not(:has(.hero)),
    html:has(.features):not(:has(.hero)), html:has(.server-portal):not(:has(.hero)), html:has(.server-dashboard):not(:has(.hero)) {
        overflow: auto !important;
        height: auto !important;
    }
    /* Alternative: Direkte Überschreibung der globalen body/html Regeln */
    /* Wenn :has() nicht funktioniert, verwenden wir diese Fallback-Lösung */
    .features ~ body, .server-portal ~ body, .server-dashboard ~ body,
    .features ~ html, .server-portal ~ html, .server-dashboard ~ html {
        overflow: auto !important;
        height: auto !important;
    }
    /* Zusätzliche Fallback-Lösung: JavaScript-basierte Selektoren */
    /* Diese Klassen werden per JavaScript hinzugefügt */
    body.features-page, body.server-page,
    html.features-page, html.server-page {
        overflow: auto !important;
        height: auto !important;
    }
}
@media (max-width: 480px) {
    /* Features-Seite: Scrolling erzwingen */
    .features {
        overflow: visible !important;
    }
    /* Server-Seite: Scrolling erzwingen */
    .server-portal, .server-dashboard {
        overflow: visible !important;
    }
    /* Direkte Überschreibung der globalen overflow-Regeln für diese Seiten */
    .features, .server-portal, .server-dashboard {
        overflow: visible !important;
    }
    /* Container dieser Seiten ebenfalls scrollbar machen */
    .features .container, .server-portal .container, .server-dashboard .container {
        overflow: visible !important;
        height: auto !important;
    }
    /* Features und Server Seiten: Alle übergeordneten Elemente scrollbar machen */
    .features, .server-portal, .server-dashboard {
        overflow: visible !important;
        height: auto !important;
        min-height: 100vh;
    }
    /* Zusätzliche Sicherheit: Alle direkten Kinder scrollbar machen */
    .features > *, .server-portal > *, .server-dashboard > * {
        overflow: visible !important;
    }
    /* WICHTIG: Body und HTML Scrolling für Features und Server Seiten aktivieren */
    /* Diese Regel überschreibt die globalen overflow: hidden Regeln */
    /* Nur aktivieren wenn KEIN .hero Element vorhanden ist (nicht auf Home-Seite) */
    body:has(.features):not(:has(.hero)), body:has(.server-portal):not(:has(.hero)), body:has(.server-dashboard):not(:has(.hero)),
    html:has(.features):not(:has(.hero)), html:has(.server-portal):not(:has(.hero)), html:has(.server-dashboard):not(:has(.hero)) {
        overflow: auto !important;
        height: auto !important;
    }
    /* Alternative: Direkte Überschreibung der globalen body/html Regeln */
    /* Wenn :has() nicht funktioniert, verwenden wir diese Fallback-Lösung */
    .features ~ body, .server-portal ~ body, .server-dashboard ~ body,
    .features ~ html, .server-portal ~ html, .server-dashboard ~ html {
        overflow: auto !important;
        height: auto !important;
    }
    /* Zusätzliche Fallback-Lösung: JavaScript-basierte Selektoren */
    /* Diese Klassen werden per JavaScript hinzugefügt */
    body.features-page, body.server-page,
    html.features-page, html.server-page {
        overflow: auto !important;
        height: auto !important;
    }
}

/* Coming Soon Overlay Styles */
.coming-soon-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 50%, #0f0f0f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999; /* Unter dem Header (z-index: 1000) */
    overflow: hidden;
    padding-top: 80px; /* Padding statt top, um Spalt zu vermeiden */
    box-sizing: border-box;
}

.coming-soon-content {
    text-align: center;
    max-width: 800px;
    padding: 2rem;
    animation: fadeInUp 1s ease-out;
}

.coming-soon-icon {
    font-size: 4rem;
    color: var(--discord-accent);
    margin-bottom: 1.5rem;
    animation: pulse 2s infinite;
}

.coming-soon-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--discord-text);
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--discord-accent), var(--discord-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.coming-soon-content p {
    font-size: 1.25rem;
    color: var(--discord-text-muted);
    margin-bottom: 3rem;
    line-height: 1.6;
}

.coming-soon-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.coming-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    background: rgba(44, 47, 51, 0.3);
    border: 1px solid var(--discord-border);
    border-radius: 12px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.coming-feature:hover {
    transform: translateY(-5px);
    background: rgba(44, 47, 51, 0.5);
    border-color: var(--discord-accent);
    box-shadow: 0 10px 30px rgba(88, 101, 242, 0.2);
}

.coming-feature i {
    font-size: 2rem;
    color: var(--discord-accent);
    margin-bottom: 0.75rem;
}

.coming-feature span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--discord-text);
}

.coming-soon-footer {
    border-top: 1px solid var(--discord-border);
    padding-top: 2rem;
}

.coming-soon-footer p {
    font-size: 1rem;
    color: var(--discord-text-muted);
    margin: 0;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Responsive Design für Hero Buttons */
@media (max-width: 1024px) {
    .hero-buttons {
        flex-wrap: wrap;
        gap: 0.65rem;
    }
    .btn-primary, .btn-secondary {
        min-width: 135px;
        max-width: 175px;
        padding: 0.8rem 1.15rem;
        font-size: 0.9rem;
        height: 50px;
    }
}

/* Responsive Design für Coming Soon */
@media (max-width: 768px) {
    .coming-soon-overlay {
        padding-top: 70px; /* Angepasst für mobile Header-Höhe */
    }
    
    .coming-soon-content {
        padding: 1rem;
        max-width: 90%;
    }
    
    .coming-soon-content h1 {
        font-size: 2.5rem;
    }
    
    .coming-soon-content p {
        font-size: 1.1rem;
    }
    
    .coming-soon-features {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .coming-feature {
        padding: 1rem;
    }
    
    .coming-feature i {
        font-size: 1.5rem;
    }
    
    .coming-feature span {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .coming-soon-overlay {
        padding-top: 60px; /* Noch kleiner für sehr kleine Bildschirme */
    }
    
    .coming-soon-content h1 {
        font-size: 2rem;
    }
    
    .coming-soon-features {
        grid-template-columns: 1fr 1fr;
    }
}

/* Public Servers Slider Styles */
.public-servers-overlay {
    position: absolute;
    top: 80px; /* Direkt am Header */
    left: 0;
    right: 0;
    padding: 25px 20px 20px 20px;
    background: linear-gradient(to bottom, rgba(15, 15, 15, 0.3) 0%, rgba(15, 15, 15, 0.2) 70%, transparent 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    z-index: 10;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease, visibility 0.4s ease, max-height 0.4s ease, padding 0.4s ease;
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    max-height: 1000px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.public-servers-overlay.collapsed {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    max-height: 0;
    padding: 0;
    overflow: hidden;
}

.public-servers-container {
    max-width: 1600px;
    margin: 0 auto;
    pointer-events: all;
}

.slider-toggle-btn {
    position: fixed;
    top: 80px; /* Direkt am Header, kein Abstand */
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 14px;
    background: rgba(15, 15, 15, 0.3); /* Transparent für Glassmorphism */
    border: 1px solid rgba(88, 101, 242, 0.15);
    border-radius: 0 0 8px 8px;
    border-top: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 10px;
    font-weight: 500;
    pointer-events: all;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    z-index: 999;
}

.public-servers-overlay:not(.collapsed) ~ .slider-toggle-btn {
    top: calc(80px + 345px); /* Direkt am Header + Slider-Höhe */
}

.slider-toggle-btn:hover {
    background: rgba(20, 20, 20, 0.9);
    border-color: rgba(88, 101, 242, 0.35);
    box-shadow: 0 3px 12px rgba(88, 101, 242, 0.12);
    color: rgba(255, 255, 255, 0.85);
}

.slider-toggle-btn i {
    transition: transform 0.3s ease;
    font-size: 9px;
}

.slider-toggle-btn span {
    font-family: inherit;
    letter-spacing: 0.3px;
}

.servers-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    overflow: visible;
}

.servers-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    justify-content: center;
    will-change: transform;
    transform: translateX(0);
}

.servers-slider::-webkit-scrollbar {
    display: none;
}

.server-item-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    will-change: transform, opacity;
}

.server-panel {
    position: relative;
    flex-shrink: 0;
    min-width: 240px;
    width: 240px;
    height: 240px;
    background: rgba(30, 30, 30, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease, transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-size: cover;
    background-position: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Nur animieren wenn Overlay nicht collapsed ist */
.public-servers-overlay:not(.collapsed) .server-panel {
    opacity: 0;
    transform: translateY(20px);
    animation: slideInPanel 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.public-servers-overlay.collapsed .server-panel {
    opacity: 0;
    transform: translateY(20px);
    animation: none;
}

@keyframes slideInPanel {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.public-servers-overlay:not(.collapsed) .server-panel:nth-child(1) { animation-delay: 0.1s; }
.public-servers-overlay:not(.collapsed) .server-panel:nth-child(2) { animation-delay: 0.15s; }
.public-servers-overlay:not(.collapsed) .server-panel:nth-child(3) { animation-delay: 0.2s; }
.public-servers-overlay:not(.collapsed) .server-panel:nth-child(4) { animation-delay: 0.25s; }
.public-servers-overlay:not(.collapsed) .server-panel:nth-child(5) { animation-delay: 0.3s; }
.public-servers-overlay:not(.collapsed) .server-panel:nth-child(6) { animation-delay: 0.35s; }
.public-servers-overlay:not(.collapsed) .server-panel:nth-child(7) { animation-delay: 0.4s; }
.public-servers-overlay:not(.collapsed) .server-panel:nth-child(8) { animation-delay: 0.45s; }
.public-servers-overlay:not(.collapsed) .server-panel:nth-child(n+9) { animation-delay: 0.5s; }

.server-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.15), rgba(114, 137, 218, 0.08));
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: inherit;
}

.server-panel:hover::before {
    opacity: 1;
}

.server-panel:hover {
    transform: translateY(-8px);
    border-color: rgba(88, 101, 242, 0.4);
}

.server-panel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(26, 26, 26, 0.3) 0%, rgba(26, 26, 26, 0.95) 100%);
    z-index: 1;
}

.server-panel-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.server-panel-icon {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.server-panel-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.server-panel-icon i {
    font-size: 30px;
    color: rgba(255, 255, 255, 0.5);
}

.server-panel-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.server-panel-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
    align-items: center;
    max-width: 240px;
}

.server-tag {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(88, 101, 242, 0.15);
    border: 1px solid rgba(88, 101, 242, 0.3);
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
    color: rgba(88, 101, 242, 1);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.3px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.server-tag:hover {
    background: rgba(88, 101, 242, 0.25);
    border-color: rgba(88, 101, 242, 0.5);
    transform: translateY(-1px);
}

.server-panel-description {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

.server-panel-stats {
    display: flex;
    gap: 10px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

.server-panel-stats i {
    margin-right: 5px;
    color: #5865f2;
}

.upvote-display {
    display: flex;
    align-items: center;
    gap: 5px;
}

.upvote-display i {
    color: #5865f2;
}

.like-display {
    display: flex;
    align-items: center;
    gap: 5px;
}

.like-display i {
    color: #ed4245;
}

.vote-display {
    display: flex;
    align-items: center;
    gap: 5px;
}

.vote-display i {
    color: #ed4245;
}

/* Action buttons container */
.server-action-buttons {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    gap: 8px;
    z-index: 3;
}

/* Upvote button (daily, determines ranking) */
.server-upvote-btn {
    width: 36px;
    height: 36px;
    background: rgba(88, 101, 242, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(88, 101, 242, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5865f2;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 15px rgba(88, 101, 242, 0.3);
}

.server-upvote-btn:hover:not(:disabled) {
    background: rgba(88, 101, 242, 0.4);
    border-color: #5865f2;
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(88, 101, 242, 0.5);
}

.server-upvote-btn:active:not(:disabled) {
    transform: scale(0.95);
}

.server-upvote-btn.upvoted {
    background: rgba(67, 181, 129, 0.3);
    border-color: rgba(67, 181, 129, 0.6);
    color: #43b581;
    cursor: not-allowed;
}

.server-upvote-btn.vote-success {
    animation: voteSuccess 0.5s ease;
}

/* Like button (one-time, permanent) */
.server-like-btn {
    width: 36px;
    height: 36px;
    background: rgba(237, 66, 69, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(237, 66, 69, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ed4245;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 15px rgba(237, 66, 69, 0.3);
}

.server-like-btn:hover:not(:disabled) {
    background: rgba(237, 66, 69, 0.4);
    border-color: #ed4245;
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(237, 66, 69, 0.5);
}

.server-like-btn:active:not(:disabled) {
    transform: scale(0.95);
}

.server-like-btn.liked {
    background: rgba(67, 181, 129, 0.3);
    border-color: rgba(67, 181, 129, 0.6);
    color: #43b581;
    cursor: not-allowed;
}

.server-like-btn.vote-success {
    animation: voteSuccess 0.5s ease;
}

/* Legacy vote button support */
.server-vote-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    background: rgba(237, 66, 69, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(237, 66, 69, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ed4245;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 3;
    box-shadow: 0 3px 15px rgba(237, 66, 69, 0.3);
}

.server-vote-btn:hover:not(:disabled) {
    background: rgba(237, 66, 69, 0.4);
    border-color: #ed4245;
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(237, 66, 69, 0.5);
}

.server-vote-btn:active:not(:disabled) {
    transform: scale(0.95);
}

.server-vote-btn.voted {
    background: rgba(67, 181, 129, 0.3);
    border-color: rgba(67, 181, 129, 0.6);
    color: #43b581;
    cursor: not-allowed;
}

.server-vote-btn.vote-success {
    animation: voteSuccess 0.5s ease;
}

.vote-checkmark {
    position: absolute;
    font-size: 12px;
    font-weight: bold;
}

@keyframes voteSuccess {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1);
    }
}

.server-badge-official {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #5865f2, #7289da);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    z-index: 3;
    box-shadow: 0 3px 10px rgba(88, 101, 242, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.server-panel-invite {
    position: absolute;
    bottom: 12px;
    right: 12px;
    padding: 5px 10px;
    background: rgba(67, 181, 129, 0.2);
    border: 1.5px solid rgba(67, 181, 129, 0.5);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #43b581;
    font-size: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    z-index: 3;
    backdrop-filter: blur(10px);
    width: auto;
    height: auto;
}

.server-panel-invite::before {
    content: 'Beitreten';
}

.server-panel-invite i {
    display: none;
}

.server-panel-invite:hover {
    background: rgba(67, 181, 129, 0.3);
    border-color: #43b581;
    transform: translateY(-1px);
}

.slider-arrow {
    min-width: 50px;
    width: 50px;
    height: 50px;
    background: rgba(88, 101, 242, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(88, 101, 242, 0.3);
    border-radius: 50%;
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.slider-arrow:hover {
    background: rgba(88, 101, 242, 0.5);
    border-color: #5865f2;
    transform: scale(1.1);
}

.slider-arrow:active {
    transform: scale(0.95);
}

.slider-arrow-left {
    margin-right: -10px;
}

.slider-arrow-right {
    margin-left: -10px;
}

.loading-panel,
.empty-panel,
.error-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    min-width: 300px;
    width: 100%;
    text-align: center;
    background: transparent;
    border: none;
    box-shadow: none;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(88, 101, 242, 0.2);
    border-top-color: #5865f2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .slider-arrow {
        display: none;
    }
    
    .servers-slider-wrapper {
        justify-content: flex-start;
    }
    
    .servers-slider {
        overflow-x: scroll;
        scroll-snap-type: x mandatory;
        justify-content: flex-start;
    }
    
    .server-panel {
        scroll-snap-align: start;
    }
}

@media (max-width: 768px) {
    .public-servers-overlay {
        padding: 15px 0 12px 0;
        top: 80px; /* Mini Abstand zum Header */
        background: linear-gradient(to bottom, rgba(15, 15, 15, 0.3) 0%, rgba(15, 15, 15, 0.2) 70%, transparent 100%);
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .public-servers-container {
        width: 100%;
        padding: 0;
    }
    
    .slider-toggle-btn {
        padding: 4px 10px;
        font-size: 9px;
        gap: 3px;
        top: 70px; /* Direkt am Header (Mobile: 70px Navbar-Höhe) */
    background: rgba(15, 15, 15, 0.3);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    }
    
    .public-servers-overlay:not(.collapsed) ~ .slider-toggle-btn {
        top: calc(70px + 280px); /* Direkt am Header + Slider-Höhe */
    }
    
    .slider-toggle-btn i {
        font-size: 7px;
    }
    
    .hero:has(.public-servers-overlay:not(.collapsed)) {
        padding-top: 295px;
    }
    
    .servers-slider-wrapper {
        overflow-x: visible;
        justify-content: center;
        padding: 0 10px;
    }
    
    .servers-slider {
        overflow-x: scroll;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start;
        padding: 20px 10px;
        gap: 15px;
        width: 100%;
    }
    
    .server-item-wrapper {
        gap: 8px;
    }
    
    .server-panel {
        min-width: 200px;
        width: 200px;
        height: 200px;
        scroll-snap-align: center;
        flex-shrink: 0;
    }
    
    .server-panel-name {
        font-size: 1.2rem;
    }
    
    .server-panel-tags {
        max-width: 200px;
    }
    
    .server-tag {
        font-size: 0.65rem;
        padding: 2px 6px;
    }
    
    .server-panel-icon {
        width: 50px;
        height: 50px;
    }
    
    .server-panel-icon i {
        font-size: 25px;
    }
    
    .server-action-buttons {
        top: 12px;
        right: 12px;
        gap: 6px;
    }
    
    .server-upvote-btn,
    .server-like-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .server-vote-btn {
        top: 15px;
        right: 15px;
        width: 32px;
        height: 32px;
    }
    
    .server-badge-official {
        font-size: 0.6rem;
        padding: 4px 10px;
    }
    
    .server-panel-invite {
        bottom: 10px;
        right: 10px;
        padding: 4px 8px;
        font-size: 9px;
    }
    
    .server-panel-invite::before {
        content: 'Join';
    }
}

@media (max-width: 480px) {
    .public-servers-overlay {
        padding: 12px 0 8px 0;
        top: 70px; /* Mini Abstand zum Header */
        background: linear-gradient(to bottom, rgba(15, 15, 15, 0.3) 0%, rgba(15, 15, 15, 0.2) 70%, transparent 100%);
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .slider-toggle-btn {
        padding: 3px 8px;
        font-size: 8px;
        gap: 2px;
        top: 70px; /* Direkt am Header (Mobile: 70px Navbar-Höhe) */
    background: rgba(15, 15, 15, 0.3);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    }
    
    .public-servers-overlay:not(.collapsed) ~ .slider-toggle-btn {
        top: calc(70px + 250px); /* Direkt am Header + Slider-Höhe */
    }
    
    .slider-toggle-btn i {
        font-size: 6px;
    }
    
    .hero:has(.public-servers-overlay:not(.collapsed)) {
        padding-top: 265px;
    }
    
    .servers-slider-wrapper {
        padding: 0 5px;
    }
    
    .servers-slider {
        padding: 15px 5px;
        gap: 12px;
    }
    
    .server-item-wrapper {
        gap: 6px;
    }
    
    .server-panel {
        min-width: 180px;
        width: 180px;
        height: 180px;
        scroll-snap-align: center;
    }
    
    .server-panel-content {
        padding: 15px;
    }
    
    .server-panel-tags {
        max-width: 180px;
        gap: 4px;
    }
    
    .server-tag {
        font-size: 0.6rem;
        padding: 2px 6px;
        border-radius: 10px;
    }
    
    .server-panel-icon {
        top: 15px;
        left: 15px;
        width: 45px;
        height: 45px;
    }
    
    .server-panel-invite {
        bottom: 8px;
        right: 8px;
        padding: 4px 8px;
        font-size: 8px;
    }
    
    .server-panel-invite::before {
        content: 'Join';
    }
    
    .server-action-buttons {
        top: 10px;
        right: 10px;
        gap: 5px;
    }
    
    .server-upvote-btn,
    .server-like-btn {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .server-vote-btn {
        top: 12px;
        right: 12px;
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
    
    .server-badge-official {
        font-size: 0.55rem;
        padding: 3px 8px;
    }
}
}