@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;800;900&family=Inter:wght@300;400;700&display=swap');
@import url(fontawesome-all.min.css);

/* --- L.S. REALTIME - DEFINITIVE EDITION --- */

:root {
    --lila: #7000ff;
    --blau: #00f2ff;
    --bg-dark: #050608;
    --gradient: linear-gradient(135deg, var(--lila), var(--blau));
    --border: rgba(255, 255, 255, 0.1);
}

/* --- 1. CORE RESET --- */
* { margin: 0; padding: 0; box-sizing: border-box; list-style: none !important; }
html { scroll-behavior: smooth; }
body {
    background-color: var(--bg-dark);
    color: rgba(255, 255, 255, 0.85);
    font-family: 'Inter', sans-serif;
    font-size: 13pt;
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- 2. SIDEBAR (PC) --- */
#sidebar {
    width: 20em; height: 100vh; position: fixed; left: 0; top: 0;
    background: rgba(10, 11, 16, 0.95); backdrop-filter: blur(25px);
    border-right: 1px solid var(--border); padding: 3em 2.5em; z-index: 10000;
}
#sidebar .inner img { width: 100%; margin-bottom: 2.5em; filter: drop-shadow(0 0 15px var(--lila)); }
#sidebar nav a {
    color: rgba(255,255,255,0.4); text-transform: uppercase; font-weight: 800;
    letter-spacing: 0.2em; font-size: 0.8em; padding: 1.2em 0; display: block;
    transition: 0.3s; border: none !important;
}
#sidebar nav a:hover, #sidebar nav a.active { color: var(--blau); transform: translateX(12px); text-shadow: 0 0 20px var(--blau); }

/* --- 3. WRAPPER --- */
#wrapper { margin-left: 20em; width: calc(100% - 20em); }
.wrapper > .inner { padding: 7rem 6rem; max-width: 1300px; margin: 0 auto; }

h1 { font-family: 'Poppins'; font-size: 5rem; font-weight: 900; color: #fff; letter-spacing: -3px; }
h2 { font-family: 'Poppins'; font-size: 2.5rem; font-weight: 800; color: #fff; margin-bottom: 2em; display: flex; align-items: center; gap: 20px; }
h2::before { content: ''; width: 45px; height: 5px; background: var(--gradient); border-radius: 10px; box-shadow: 0 0 15px var(--blau); }

/* --- 4. KEYBOARD SHORTCUTS (DASHBOARD LOOK) --- */
.shortcut-category {
    margin-bottom: 3rem;
}

.shortcut-category h3 {
    font-size: 1rem;
    color: var(--blau);
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 0.5rem;
}

.shortcut-item {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    padding: 1rem 1.5rem;
    border-radius: 15px;
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s;
}

.shortcut-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(10px);
    border-color: var(--blau);
}

/* Der mechanische Tasten-Look */
kbd {
    display: inline-block;
    background: linear-gradient(180deg, #2a2d35 0%, #111 100%);
    color: var(--blau);
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 0.9em;
    padding: 5px 15px;
    border-radius: 8px;
    border: 1px solid #444;
    box-shadow: 0 4px 0 #000, 0 8px 15px rgba(0,0,0,0.5);
    margin-right: 20px;
    min-width: 60px;
    text-align: center;
    line-height: 1.2;
}

.shortcut-desc {
    color: #fff;
    font-weight: 500;
    font-size: 1rem;
}

/* --- 5. FRAKTIONS-TABELLE --- */
.table-container { background: rgba(255,255,255,0.01); border-radius: 30px; padding: 10px;  }
table {
    width: 100%;
    border-spacing: 0 15px;
    border-collapse: separate;
    /* WICHTIG: Erzwingt, dass Spalten immer gleich breit bleiben */
    table-layout: fixed; 
}

/* Definition der Spaltenbreiten */
table th:nth-child(1), table td:nth-child(1) {border-radius: 20px 0 0 20px; width: 30%; text-align: center;} /* Fraktion */
table th:nth-child(2), table td:nth-child(2) { width: 30%; text-align: center; }/* Status */
table th:nth-child(3), table td:nth-child(3) {border-radius: 0 20px 20px 0;  width: 30%; text-align: center; }/* Button */

table tr { background: rgba(255, 255, 255, 0.03); border-radius: 20px; transition: 0.3s; }
table td { padding: 1.5rem 2.5rem; vertical-align: middle; font-size: 1.2rem; }
/* Rundungen der Zeilen */
table tr td:first-child { 
    border-radius: 20px 0 0 20px; 
    font-weight: 900; 
}
table tr td:last-child { 
    border-radius: 0 20px 20px 0; 
    padding-right: 3rem;
    text-align: right; /* Button klebt sauber rechts */
}
table thead th {
    color: var(--blau);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 3px;
    padding: 1rem;
    opacity: 0.6;
}

/* --- 6. BUTTONS --- */
.button {
    display: inline-flex; align-items: center; justify-content: center;
    background: transparent; border: 2px solid var(--blau) !important;
    color: #fff !important; border-radius: 12px;
    padding: 1.2rem 2.5rem; font-size: 0.85rem; font-weight: 900;
    text-transform: uppercase; transition: 0.3s; cursor: pointer;
}
.button:hover { background: var(--gradient) !important; border-color: transparent !important; box-shadow: 0 0 25px rgba(0, 242, 255, 0.5); transform: translateY(-5px); }
.button.primary { background: var(--gradient) !important; border: none !important; }


/* --- 7. MOBILE OPTIMIERUNG --- */
@media screen and (max-width: 1280px) {
    #sidebar { width: 100%; height: auto; position: relative; display: block; padding: 1.5rem; border-right: none; border-bottom: 2px solid var(--lila); }
    #sidebar .inner img { max-width: 150px; margin-bottom: 1rem; margin-left: auto; margin-right: auto; display: block; }
    #sidebar nav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; }
    #wrapper { margin-left: 0; width: 100%; }
    .wrapper > .inner { padding: 3rem 1.2rem; }
    
    /* Tabelle am Handy zu Cards */
    table, thead, tbody, th, td, tr { display: block; width: 100%; }
    table tr { margin-bottom: 1.5rem; padding: 1.5rem; border-left: 4px solid var(--lila); }
    table td { padding: 0.5rem 0 !important; text-align: left !important; font-size: 1rem; }
    table td:first-child { font-size: 1.3rem; }
    .button { width: 100%; }
    .button.small {
    min-width: 220px; /* Alle Buttons exakt gleich breit */
    justify-content: center;
    margin: 0;
}
}