/**
 * home.css - Nur Styles für die Startseite
 * FINALE VERSION - Mit korrigierten Button-Abständen
 */

/* HERO */
.hero {
    text-align: center;
    padding: 5rem 2rem 4rem;
    background: radial-gradient(ellipse at 50% 0%, rgba(108, 63, 197, 0.18) 0%, transparent 70%);
}

.hero h1 {
    font-family: 'Rajdhani', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1.1;
    margin-bottom: 0.75rem;
}

.hero h1 span { color: var(--accent2); }

.hero p {
    color: var(--muted);
    font-size: 1.1rem;
    max-width: 560px;
    margin: 0 auto 2rem;
}

/* BADGES */
.hero-badges {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.badge {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.35rem 1rem;
    font-size: 0.8rem;
    color: var(--muted);
    font-weight: 600;
    transition: all 0.2s ease;
}

.badge.active { 
    border-color: var(--accent2); 
    color: var(--accent2); 
}

/* ============================================
   BUTTON STYLES
   ============================================ */

.btn-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.btn {
    display: inline-block;
    padding: 0.7rem 1.8rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent2);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(108, 63, 197, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--accent2);
    color: var(--accent2);
    transform: translateY(-2px);
    background: rgba(139, 92, 246, 0.05);
}

/* Popup Button */
.popup-button {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    background: var(--accent);
    color: white;
    text-decoration: none;
    border-radius: 999px;
    font-weight: 600;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
}

.popup-button:hover {
    background: var(--accent2);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(108, 63, 197, 0.4);
}

/* ============================================
   CARDS
   ============================================ */

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    transition: all 0.2s ease;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 0;
}

.card:hover { 
    border-color: var(--accent2);
    box-shadow: 0 8px 24px rgba(108, 63, 197, 0.2);
}

.card h2 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: 0.5px;
    color: var(--text);
}

.card h2 .icon { 
    margin-right: 0.5rem; 
    color: var(--accent2);
}

.card p {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* MAP CARD */
.map-card { 
    padding: 0; 
    overflow: hidden; 
}

.map-header {
    padding: 1.5rem 2rem 1rem;
}

.map-header h2 {
    margin-bottom: 0;
}

.map-embed {
    width: 100%;
    height: 420px;
    border: none;
    display: block;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.map-footer {
    padding: 1rem 2rem;
    display: flex;
    justify-content: flex-end;
}

/* MODS GRID */
.mods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.mod-item {
    background: var(--card2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.2s ease;
}

.mod-item:hover {
    border-color: var(--accent2);
    transform: translateY(-2px);
}

.mod-name {
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.mod-desc {
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.mod-tag {
    display: inline-block;
    background: rgba(108, 63, 197, 0.2);
    color: var(--accent2);
    border-radius: 999px;
    padding: 0.1rem 0.6rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* INFO GRID */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.info-item {
    background: var(--card2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem 1rem;
    text-align: center;
    transition: all 0.2s ease;
}

.info-item:hover {
    border-color: var(--accent2);
    transform: translateY(-2px);
}

.info-item .label {
    font-size: 0.75rem;
    color: var(--muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.4rem;
}

.info-item .value {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--cyan);
}

/* RULE ITEMS */
.rule-item {
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid var(--border);
}

.rule-item:hover {
    border-color: var(--accent2) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 63, 197, 0.2);
}

/* TIMELINE */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1rem;
    position: relative;
    padding-left: 1.5rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent), transparent);
}

.timeline-item {
    position: relative;
    padding-left: 1.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 8px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent2);
    border: 2px solid var(--bg);
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.3);
}

.timeline-item h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.timeline-item p {
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.6;
}

/* SECTION LABEL */
.section-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent2);
    margin-bottom: 0.5rem;
    display: block;
}

/* MAIN CONTAINER - WICHTIG FÜR ABSTÄNDE */
main {
    max-width: 860px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* FOOTER BUTTONS (z.B. "Alle Regeln im Detail") */
.card .btn-group {
    margin-top: 2rem;
    justify-content: center;
}

.card .btn-primary {
    min-width: 200px;
    text-align: center;
}

/* RESPONSIVE */
@media (max-width: 600px) {
    .hero { 
        padding: 3rem 1rem 2rem; 
    }
    
    .hero h1 {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    .hero-badges {
        gap: 0.5rem;
    }
    
    .badge {
        padding: 0.25rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .btn-group {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
        white-space: normal;
    }
    
    .map-embed { 
        height: 300px; 
    }
    
    .map-footer { 
        justify-content: center; 
    }
    
    .info-grid { 
        grid-template-columns: 1fr 1fr; 
    }
    
    .timeline {
        padding-left: 1rem;
    }
    
    .timeline-item {
        padding-left: 1rem;
    }
    
    .timeline-item::before {
        left: -1rem;
        width: 10px;
        height: 10px;
    }
    
    .card .btn-primary {
        width: 100%;
        max-width: 100%;
    }
}

/* Server-Status Badges */
.badge.online {
    border-color: #10b981 !important;
    color: #4ade80 !important;
    background: rgba(16, 185, 129, 0.1) !important;
}

.badge.offline {
    border-color: #ef4444 !important;
    color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.1) !important;
}

.badge.unknown {
    border-color: #6b7280 !important;
    color: #9ca3af !important;
    background: rgba(107, 114, 128, 0.1) !important;
}