:root {
    --deep-black: #030303;
    --dark-purple: #0f051a;
    --neon-purple: #a855f7;
    --card-bg: #0d0d0d;
    --text-gray: #a0a0a0;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--deep-black);
    color: white;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

/* --- Navigation (Statisch) --- */
.main-nav {
    position: absolute; /* Scrollt mit weg */
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 25px 0;
}

.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
}

.nav-item {
    color: white;
    text-decoration: none;
    margin-right: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.nav-item:hover { color: var(--neon-purple); }

.nav-logo img {
    height: 55px;
    filter: drop-shadow(0 0 15px rgba(168, 85, 247, 0.4));
}

.links-right { display: flex; align-items: center; gap: 15px; }

.server-status {
    background: rgba(255,255,255,0.05);
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255,255,255,0.1);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 10px #22c55e;
}

.btn-copy {
    background: var(--neon-purple);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.85rem;
    transition: var(--transition);
}

.btn-discord-icon {
    background: #1a1a1a;
    padding: 10px;
    border-radius: 8px;
    display: inline-flex; /* Damit der Button nur so breit wie das Icon ist */
    align-items: center;
    justify-content: center;
    border: 1px solid #333;
    transition: var(--transition); /* Falls du die Variable definiert hast */
    text-decoration: none; /* Entfernt das Unterstreichen des Links */
}

.btn-discord-icon i { 
    color: white; 
    font-size: 20px; 
    display: block;
}

.btn-discord-icon:hover {
    background: #5865F2;
    border-color: #5865F2;
    transform: translateY(-1px);
}

/* --- Hero --- */
.hero {
    height: 95vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: radial-gradient(circle at center, var(--dark-purple) 0%, var(--deep-black) 100%);
    position: relative;
}

.main-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2.5rem, 8vw, 4.8rem);
    font-weight: 900;
    letter-spacing: -1px;
}

.highlight {
    color: var(--neon-purple);
    text-shadow: 0 0 40px rgba(168, 85, 247, 0.5);
}

.hero-desc {
    color: var(--text-gray);
    margin: 25px auto;
    max-width: 750px;
    font-size: 1.25rem;
}

.btn-primary-glow {
    background: var(--neon-purple);
    color: white;
    padding: 20px 50px;
    border-radius: 12px;
    font-weight: 900;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.4);
    transition: var(--transition);
}

.btn-primary-glow:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 50px rgba(168, 85, 247, 0.7);
}

/* Wave Divider */
.custom-shape-divider-top {
    position: absolute;
    top: -1px; /* Verhindert einen feinen weißen Spalt */
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 10;
}

.custom-shape-divider-top svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    /* Hier kannst du die Höhe einstellen (flacher = kleinerer Wert) */
    height: 40px; 
}

.custom-shape-divider-top .shape-fill {
    /* Diese Farbe sollte die Farbe der Sektion SEIN, aus der die Welle kommt */
    fill: #0a0a0a; 
}

/* --- Features --- */
.features {
    background: #0a0a0a;
    padding: 120px 10%;
    text-align: center;
}

.sub-headline {
    color: var(--text-gray);
    font-size: clamp(2rem, 5vw, 2rem);
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.card {
    background: var(--card-bg);
    border: 1px solid #1a1a1a;
    padding: 60px 40px;
    border-radius: 24px;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--neon-purple);
}

.card.featured {
    background: linear-gradient(145deg, #160a26 0%, #0d0d0d 100%);
    border-color: rgba(168, 85, 247, 0.4);
}

.card-icon-wrapper {
    font-size: 3.5rem;
    margin-bottom: 25px;
}

/* --- Join Section (Komplette Überarbeitung) --- */
.join { 
    padding: 120px 10%; 
    text-align: center; 
    background-color: var(--deep-black); 
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    margin-bottom: 10px;
    letter-spacing: 2px;
    color: white;
}

.section-subtitle {
    color: var(--text-gray);
    margin-bottom: 50px;
    font-size: 1.1rem;
}

/* Edition Selector */
.edition-selector {
    background: var(--card-bg);
    padding: 5px;
    border-radius: 50px;
    display: inline-flex;
    margin-bottom: 50px;
    border: 1px solid #1a1a1a;
    width: 450px;
    max-width: 100%;
    position: relative; /* Basis für den lila Slider */
    overflow: hidden;
}

/* Das lila Element, das sich bewegt */
.tab-indicator {
    position: absolute;
    top: 5px;
    left: 5px;
    bottom: 5px;
    width: calc(50% - 5px);
    background: var(--neon-purple);
    border-radius: 50px;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1;
}

.tab {
    flex: 1;
    border: none;
    padding: 15px 0;
    font-weight: 800;
    cursor: pointer;
    background: transparent;
    color: var(--text-gray);
    transition: color 0.3s ease;
    position: relative;
    z-index: 2; /* Über dem lila Hintergrund */
    text-transform: uppercase;
}

.tab.active {
    color: white;
}

/* Die Haupt-Card */
.join-card {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    background: var(--card-bg);
    border-radius: 24px;
    max-width: 1100px;
    margin: 0 auto;
    overflow: hidden;
    text-align: left;
    border: 1px solid #1a1a1a;
}

.join-content-left {
    padding: 60px;
    position: relative;
}

/* Sanftes Einblenden der Inhalte */
.edition-content {
    animation: fadeInSlide 0.5s ease forwards;
}

@keyframes fadeInSlide {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.edition-label {
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 40px;
    color: white;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 35px;
}

.step-number {
    background: #a855f7; /* Blaues Akzent-Icon */  
    color: white;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.step-title {
    display: block;
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 4px;
    color: white;
}

.step-text p {
    color: var(--text-gray);
    font-size: 1rem;
}

.ip-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    background: #1a2233; /* Dunkler Kontrast */
    border: 1px solid #a855f7;
    padding: 2px 10px;
    border-radius: 6px;
    transition: all 0.2s;
}

.copy-icon {
    font-size: 0.8rem;
    opacity: 0.7;
}

.copy-tooltip {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #a855f7; /* Das Blau aus deinem Bild */
    color: white;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.copy-tooltip.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Der kleine Pfeil unten am Tooltip */
.copy-tooltip::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #a855f7;
}

.join-content-right {
    background: #a855f7;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.minecraft-img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
}


.minecraft-img:hover {
    transform: scale(1.02);
}

/* Responsive */
@media (max-width: 950px) {
    .join-card {
        grid-template-columns: 1fr;
    }
    .join-content-right {
        order: -1; 
        padding: 40px;
    }
    .join-content-left {
        padding: 40px 30px;
    }
}

/* Minecraft UI Mockup */
.minecraft-ui {
    background: #c6c6c6;
    width: 420px;
    padding: 20px;
    border: 4px solid #555;
    color: #333;
    font-family: 'Inter', sans-serif;
}

.ui-title { text-align: center; margin-bottom: 20px; font-weight: bold; }
.ui-label { font-size: 0.8rem; color: #555; margin-bottom: 5px; }
.ui-input { background: #000; color: white; padding: 12px; border: 2px solid #a0a0a0; margin-bottom: 20px; }
.ui-row { display: flex; gap: 10px; }
.ui-btn { 
    background: #a8a8a8; 
    flex: 1; 
    text-align: center; 
    padding: 10px; 
    border: 2px solid #555; 
    font-size: 0.9rem;
}
.ui-btn.gray { background: #888; }

/* --- Footer --- */
footer {
    padding: 80px 20px;
    text-align: center;
    border-top: 1px solid #111;
}

.footer-logo { height: 40px; margin-bottom: 20px; opacity: 0.6; }
.copyright { font-size: 1rem; margin-bottom: 5px; }
.disclaimer { color: #555; font-size: 0.8rem; margin-bottom: 20px; }
.footer-links a { color: var(--text-gray); text-decoration: none; margin: 0 10px; }