body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #e8f4fd !important;
    font-family: Arial, sans-serif;
}

.main-content {
    margin-left: 250px;
    margin-top: 20px;
    padding: 20px;
    transition: margin-left 0.3s;
}

body.sidebar-collapsed .main-content {
    margin-left: 60px;
}

.welcome-section {
    text-align: center;
    margin-bottom: 40px;
}

.welcome-section h1 {
    color: #333;
    font-size: 2.5em;
    margin-bottom: 10px;
}

.welcome-section p {
    color: #666;
    font-size: 1.2em;
}

.game-options {
    max-width: 800px;
    margin: 0 auto 40px;
    background: linear-gradient(90deg, #e3f0ff 0%, #90caf9 100%);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Neues kompaktes Zeitauswahl-Design */
.time-selection-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    max-width: 600px;
    margin: 0 auto;
}

.time-selection-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    border-radius: 15px;
    z-index: 0;
}

.time-tabs {
    display: flex;
    gap: 0;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.15);
    padding: 4px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.time-tab {
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    flex: 1;
    position: relative;
    overflow: hidden;
}

.time-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.time-tab:hover::before {
    left: 100%;
}

.time-tab:hover {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.time-tab.active {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%);
    color: #1976D2;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    font-weight: 800;
}

.time-content {
    flex: 1;
    min-height: 80px;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
}

.time-options {
    display: none;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.time-options.active {
    display: flex;
}

.time-button {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #495057;
    border: 2px solid #dee2e6;
    padding: 20px 24px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2em;
    font-weight: 700;
    width: 120px;
    height: 60px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.time-button:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    border-color: #2196F3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.time-button.selected {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white;
    border-color: #1976D2;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.play-button {
    background: linear-gradient(135deg, #1976D2 0%, #1565C0 100%);
    color: white;
    border: none;
    padding: 16px 28px;
    border-radius: 12px;
    font-size: 1.1em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    min-width: 150px;
    justify-content: center;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(25, 118, 210, 0.3);
    overflow: hidden;
}

.play-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s;
}

.play-button:hover::before {
    left: 100%;
}

.play-button:hover {
    background: linear-gradient(135deg, #1565C0 0%, #0D47A1 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(25, 118, 210, 0.4);
}



.stats-section {
    max-width: 800px;
    margin: 0 auto;
}

.stats-section h2 {
    color: #333;
    text-align: center;
    margin-bottom: 30px;
}

.stats-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 200px;
}

.stat-card {
    background: linear-gradient(90deg, #e3f0ff 0%, #90caf9 100%);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.stat-card i {
    font-size: 2em;
    color: #1976D2;
    margin-bottom: 10px;
}

.stat-card h3 {
    color: #333;
    margin: 10px 0;
}

.stat-card p {
    color: #666;
    font-size: 1.5em;
    font-weight: bold;
    margin: 0;
}

.message-count {
    background-color: #ff4444;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
    position: relative;
    margin-left: 8px;
    display: inline-block;
}

.message-count.hidden {
    display: none;
}

/* Rankings-Sektion - jetzt modular in rankings.css */

/* Hauptbereich mit zwei Spalten */
.main-content-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.left-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Neue Container für Spielzeit-Auswahl und Statistiken nebeneinander */
.game-stats-container {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    justify-content: center;
    min-height: 450px;
    align-items: flex-start;
}

/* Statistiken links, Spielzeit-Auswahl rechts */
.game-options {
    order: 2;
}

.stats-section {
    order: 1;
}

.right-column {
    display: flex;
    flex-direction: column;
}

/* Social Posts Sektion */
.social-posts-section {
    background: linear-gradient(90deg, #e3f0ff 0%, #90caf9 100%);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: 450px;
    position: sticky;
    top: 20px;
    position: relative;
    margin-top: -20px;
}

.social-posts-section::before {
    content: 'Coming Soon';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(25, 118, 210, 0.95);
    color: white;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1.2em;
    font-weight: 700;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.social-posts-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border-radius: 15px;
    z-index: 5;
    pointer-events: none;
}

.social-posts-section h2 {
    color: #1976d2;
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.4em;
    font-weight: 600;
}

.social-posts-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-height: 380px;
    overflow-y: auto;
}

.social-post {
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    filter: blur(2px);
    opacity: 0.7;
    pointer-events: none;
}

.social-post:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.post-author i {
    font-size: 1.2em;
    color: #1976d2;
}

.author-name {
    font-weight: 600;
    color: #333;
    font-size: 0.95em;
}

.post-time {
    color: #666;
    font-size: 0.85em;
}

.post-content {
    margin-bottom: 12px;
}

.post-content p {
    color: #333;
    line-height: 1.4;
    margin: 0;
    font-size: 0.95em;
}

.post-actions {
    display: flex;
    gap: 16px;
}

.post-action {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 4px;
    filter: blur(1px);
    opacity: 0.6;
    pointer-events: none;
}

.post-action:hover {
    background: none;
    color: #666;
}

.post-action i {
    font-size: 0.9em;
}

.load-more-posts {
    text-align: center;
    padding: 10px 0;
}

.load-more-btn {
    background: linear-gradient(135deg, #1976D2 0%, #1565C0 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 auto;
    filter: blur(1px);
    opacity: 0.6;
    pointer-events: none;
}

.load-more-btn:hover {
    background: linear-gradient(135deg, #1976D2 0%, #1565C0 100%);
    transform: none;
    box-shadow: none;
}

/* Scrollbar für Social Posts */
.social-posts-container::-webkit-scrollbar {
    width: 6px;
}

.social-posts-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.social-posts-container::-webkit-scrollbar-thumb {
    background: rgba(25, 118, 210, 0.3);
    border-radius: 3px;
}

.social-posts-container::-webkit-scrollbar-thumb:hover {
    background: rgba(25, 118, 210, 0.5);
}

/* Rankings-Styles - jetzt modular in rankings.css */

/* Rankings-Content-Styles - jetzt modular in rankings.css */



/* ===== MOBILE FIRST RESPONSIVE DESIGN ===== */

/* Tablet (768px - 1023px) */
@media (max-width: 1023px) {
    .main-content {
        margin-left: 60px;
        padding: 15px;
    }
    
    .welcome-section h1 {
        font-size: 2.2em;
    }
    
    .welcome-section p {
        font-size: 1.1em;
    }
    
    .game-options {
        max-width: 90%;
        padding: 25px;
    }
    
    .rankings-section {
        max-width: 90%;
        padding: 25px;
    }
    
    .rankings-tabs {
        gap: 0;
        padding: 3px;
        border-radius: 10px;
    }
    
    .ranking-tab {
        padding: 10px 16px;
        font-size: 0.9em;
        border-radius: 6px;
    }
    
    .ranking-content {
        padding: 15px;
        min-height: 180px;
    }
    
    .current-rating {
        top: 15px;
        right: 15px;
    }
    
    .rating-value {
        font-size: 2em;
    }
    
    .ranking-graph-container {
        height: 100px;
    }
    
    .stats-section {
        max-width: 90%;
    }
    
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .main-content-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .social-posts-section {
        position: static;
        max-height: 400px;
    }
    
    .social-posts-container {
        max-height: 300px;
    }
}

/* Mobile (unter 768px) */
@media (max-width: 767px) {
    /* Sidebar standardmäßig zusammengefaltet auf Mobile */
    .sidebar {
        width: 40px !important;
        align-items: center !important;
    }
    
    .sidebar .sidebar-logo {
        display: none !important;
    }
    
    .sidebar button span {
        opacity: 0 !important;
        width: 0 !important;
        overflow: hidden !important;
    }
    
    .sidebar .toggle-btn {
        margin-left: 0 !important;
    }
    
    .main-content {
        margin-left: 40px;
        padding: 10px;
    }
    
    .welcome-section {
        margin-bottom: 30px;
    }
    
    .welcome-section h1 {
        font-size: 1.8em;
        margin-bottom: 8px;
    }
    
    .welcome-section p {
        font-size: 1em;
    }
    
    .game-options {
        max-width: 95%;
        padding: 20px;
        margin-bottom: 30px;
    }
    
    .time-selection-container {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
        border-radius: 12px;
        max-width: 95%;
    }
    
    .time-tabs {
        gap: 0;
        padding: 3px;
        border-radius: 10px;
    }
    
    .time-tab {
        padding: 10px 16px;
        font-size: 0.9em;
        border-radius: 6px;
    }
    
    .time-tab {
        padding: 8px 12px;
        font-size: 0.8em;
    }
    
    .time-content {
        min-height: 60px;
    }
    
    .time-options {
        gap: 12px;
    }
    
    .time-button {
        padding: 18px 20px;
        font-size: 1.1em;
        width: 110px;
        height: 55px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
    }
    
    .play-button {
        padding: 12px 20px;
        font-size: 1em;
        min-width: 120px;
    }
    
    /* Rankings-Styles - jetzt modular in rankings.css */
    
    .stats-section {
        max-width: 95%;
    }
    
    .stats-section h2 {
        font-size: 1.3em;
        margin-bottom: 20px;
    }
    

    
    .stat-card {
        padding: 18px;
    }
    
    .stat-card i {
        font-size: 1.8em;
    }
    
    .stat-card h3 {
        font-size: 1em;
    }
    
    .stat-card p {
        font-size: 1.3em;
    }
    
    .main-content-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .game-stats-container {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    
    .stats-grid {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        min-width: auto;
    }
    
    .social-posts-section {
        position: static;
        padding: 20px;
        height: 280px;
    }
    
    .social-posts-container {
        max-height: 200px;
    }
    
    .social-post {
        padding: 12px;
    }
    
    .post-actions {
        gap: 12px;
    }
}

/* Very Small Mobile (unter 480px) */
@media (max-width: 479px) {
    .main-content {
        padding: 8px;
    }
    
    .welcome-section h1 {
        font-size: 1.6em;
    }
    
    .game-options {
        padding: 15px;
    }
    
    .time-selection-container {
        padding: 12px;
        gap: 12px;
        border-radius: 10px;
        max-width: 98%;
    }
    
    .time-tabs {
        gap: 0;
        padding: 2px;
        border-radius: 8px;
    }
    
    .time-tab {
        padding: 8px 12px;
        font-size: 0.8em;
        border-radius: 5px;
    }
    
    .time-tab {
        padding: 6px 10px;
        font-size: 0.75em;
    }
    
    .time-button {
        padding: 16px 18px;
        font-size: 1em;
        width: 100px;
        height: 50px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
    }
    
    .play-button {
        padding: 10px 16px;
        font-size: 0.9em;
        min-width: 100px;
    }
    
    /* Rankings-Styles - jetzt modular in rankings.css */
    
    .stat-card {
        padding: 15px;
    }
    
    .social-posts-section {
        height: 200px;
    }
}
  