/* =====================
   Grundlegendes
===================== */
html { overflow-y: scroll; }
body {
    background: #111827;
    color: #fff;
    font-family: Arial, sans-serif;
    margin: 0;
}

/* =====================
   Header
===================== */
header {
    width: 100%;
    background: rgba(31,41,55,0.95);
    backdrop-filter: blur(6px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.8rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo-text { font-size: 1.5rem; font-weight: 700; color: #fff; letter-spacing: 1px; }

header nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 1rem 0;
}
header nav a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    position: relative;
    transition: color 0.3s;
}
header nav a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    left: 0;
    bottom: -4px;
    background: #34d399;
    transition: width 0.3s;
}
header nav a:hover { color: #34d399; }
header nav a:hover::after { width: 100%; }

/* =====================
   Buttons
===================== */
.btn, .btn-unban {
    border: none;
    border-radius: 0.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}
.btn { padding: 0.6rem 1.4rem; color: #fff; background: #059669; }
.btn:hover { background: #10b981; }
.btn-unban { padding: 0.4rem 0.8rem; color: #fff; background: #e11d48; }
.btn-unban:hover { background: #be123c; }

/* =====================
   Container & Grid
===================== */
.container { max-width: 1100px; margin: 0 auto; padding: 2rem 1rem; }

.grid, .grid-2, .grid-3, .grid-three { display: grid; gap: 1.5rem; }
@media(min-width:768px){
    .grid-2 { grid-template-columns: 1fr 1fr; }
    .grid-3 { grid-template-columns: 2fr 1fr; }
    .grid-three { grid-template-columns: 1fr 1fr 1fr; }
}

/* =====================
   Hero
===================== */
.hero {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 2rem;
}
.hero img { width: 100%; height: 300px; object-fit: cover; }
.hero-content {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}
.hero-content h2 { font-size: 2rem; margin-bottom: 1rem; }

/* =====================
   Karten / Cards
===================== */
.card, .discord-card, .server-info-card {
    background: #1f2937;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
    color: #fff;
    display: flex;
    flex-direction: column;
}
.card img, .server-info-card img { width: 100%; height: 180px; object-fit: cover; }
.card-content, .server-info-card .card-content, .discord-card .card-content { padding: 1rem; flex:1; display:flex; flex-direction:column; text-align:center; gap:0.5rem; }
.card-content h4 { font-weight: bold; margin-bottom: 0.5rem; }
.card-content p { font-size: 0.9rem; color: #d1d5db; margin-bottom: 0.75rem; }

/* Discord Widget */
.discord-card iframe { border-radius: 0.5rem; width:100%; height:300px; }

/* Server Info Bars */
.status-row, .players-row, .ping-row { display:flex; align-items:center; gap:0.5rem; }
.status-bar, .ping-bar, .players-bar { flex:1; height:10px; background:#374151; border-radius:5px; overflow:hidden; margin-left:0.5rem; }
#status-bar-fill, #ping-bar-fill, #players-bar-fill {
    width:0; height:100%; transition: width 0.5s, background 0.5s; animation: pulse 1.5s infinite alternate;
}
#status-bar-fill { background: linear-gradient(90deg, #34d399, #059669); }
#ping-bar-fill { background: linear-gradient(90deg, #a3e635, #84cc16); }
#players-bar-fill { background: #3b82f6; }
@keyframes pulse { 0% { opacity:0.6 } 50% { opacity:1 } 100% { opacity:0.6 } }

/* =====================
   Changelog
===================== */
.changelog .entry { margin-bottom: 1rem; }
.changelog .date { color: #34d399; font-weight: bold; }
.changelog-section { margin-top: 2rem; }

/* =====================
   Forms / Suche
===================== */
.search-form { margin:1rem auto; max-width:800px; display:flex; gap:0.5rem; }
.search-form input[type="text"] { flex:1; padding:0.5rem; border-radius:0.5rem; border:none; }
.search-form .btn { background:#2563eb; color:#fff; }
.search-form .btn:hover { background:#1d4ed8; }

/* =====================
   Misc / Labels / Nachrichten
===================== */
.label { color:#9ca3af; }
.online { color:#34d399; }
.message {
    margin:1rem auto;
    padding:1rem;
    background:#166534;
    border:1px solid #15803d;
    color:#bbf7d0;
    border-radius:0.5rem;
    max-width:800px;
    text-align:center;
}
.more-content { display:none; padding-top:0.5rem; color:#d1d5db; font-size:0.9rem; }

/* =====================
   Kategorien / Accordion
===================== */
.category { border:1px solid #374151; border-radius:.5rem; margin-bottom:1rem; overflow:hidden; }
.category-header { background:#1f2937; color:#d1d5db; padding:.75rem 1rem; cursor:pointer; font-weight:bold; }
.category-content { display:none; padding:.75rem 1rem; background:#111827; color:#d1d5db; }
.category-content p, .category-content li { margin:.5rem 0; }
