/* Grundlegendes Reset & Styling */
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: 'Poppins', sans-serif;
    color: #ffffff;
    background-color: #23272A; /* Discord Dunkelgrau */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden; /* Wichtig für Partikel-JS */

    /* NEU: Fügt einen 3D-Raum für den Tilt-Effekt hinzu */
    perspective: 1000px;
}

/* NEU: Keyframe-Animation für das Einblenden der Karte */
@keyframes cardEntry {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Partikel-JS Hintergrund */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #23272A;
    background-image: url('');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 50% 50%;
    z-index: 0; /* Hinter allem anderen */
}

/* Haupt-Container für die Karte */
.card-container {
    background-color: #2C2F33; /* Discord fast schwarz */
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    overflow: hidden; /* Wichtig für abgerundete Ecken des Banners */
    max-width: 480px; /* Etwas breiter als vorher */
    width: 90%;
    z-index: 1; /* Über dem Partikel-Hintergrund */
    position: relative; /* Für den Banner */

    /* NEU: Animationen anwenden */
    /* 1. Die Einblend-Animation beim Laden */
    animation: cardEntry 0.7s ease-out forwards;
    
    /* 2. Transition für den 3D-Tilt (wenn die Maus die Karte verlässt) */
    transition: transform 0.4s ease-out;
    
    /* Behält die 3D-Eigenschaften bei */
    transform-style: preserve-3d;
}

/* Banner-Bereich */
.banner-area {
    height: 120px;
    background-color: #202225;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Inhaltspanel unter dem Banner */
.invite-panel {
    padding: 20px 30px 30px 30px;
    position: relative;
    /* NEU: Verhindert, dass 3D-Effekte "durchscheinen" */
    transform: translateZ(20px);
}

/* Server-Avatar (oder Icon) */
.server-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background-color: #36393F;
    margin: -65px auto 20px auto;
    border: 6px solid #2C2F33;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 50px;
    font-weight: bold;
    overflow: hidden;
    /* NEU: Hebt das Icon im 3D-Raum hervor */
    transform: translateZ(50px);
}

/* Server-Logo Bild innerhalb des Icons */
.server-icon img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover; 
}

h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #FFFFFF;
    min-height: 32px; 
}

p {
    font-size: 15px;
    font-weight: 400;
    color: #B9BBBE;
    margin-bottom: 25px;
    line-height: 1.5;
}

/* Styling für die Mitglieder-Statistik (MODERNISIERT) */
.member-stats {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
    font-size: 14px;
    font-weight: 500;
}

.member-stats > span {
    display: inline-flex; 
    align-items: center;
    background-color: #202225;
    border-radius: 20px;
    padding: 8px 14px;
    color: #B9BBBE;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.member-stats > span:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

#online-count, #total-count {
    color: #FFFFFF;
    font-weight: 700;
    margin-right: 6px;
    font-size: 15px;
}

.dot {
    height: 9px; 
    width: 9px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 9px;
    flex-shrink: 0;
}

.dot-online {
    background-color: #43B581;
}

.dot-total {
    background-color: #747F8D;
}

/* Der Einladungs-Button */
.cta-button {
    display: block;
    width: 100%;
    padding: 14px 0;
    background-color: #5865F2;
    color: #ffffff;
    text-decoration: none;
    font-size: 17px;
    font-weight: 600;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-sizing: border-box;
    letter-spacing: 0.5px;
    /* NEU: Hebt den Button im 3D-Raum hervor */
    transform: translateZ(30px);
}

.cta-button:hover {
    background-color: #4A56C4;
    transform: translateY(-2px) translateZ(30px); /* Behält 3D-Position bei */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}