body {
    font-family: sans-serif;
    margin: 0;
    background: radial-gradient(ellipse at bottom, #4f789d 0%, #1d3a5c 100%);
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
}

header, footer {
    background-color: rgba(0, 0, 0, 0.7);
    border-bottom: 1px solid #00aaff;
    box-shadow: 0 0 10px rgba(0, 170, 255, 0.5);
    padding: 1rem 2rem;
    color: #eee;
}

footer {
    border-bottom: none;
    border-top: 1px solid #555;
    text-align: center;
    margin-top: 2rem;
}

footer a { color: #00aaff; }

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
}

/* --- Logo --- */
.logo a {
    font-size: 1.8rem;
    font-weight: bold;
    text-decoration: none;
    color: #fff;
    padding-right: 2rem;
    text-shadow: 0 0 5px rgba(0,170,255,0.7),
                 0 0 10px rgba(0,170,255,0.7),
                 0 0 20px rgba(0,170,255,0.7);
}

/* --- Main Navigation --- */
.main-nav {
    display: flex;
    justify-content: center;
    flex-grow: 1;
}

.main-nav a {
    margin: 0 1rem;
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: #ccc;
    font-weight: bold;
    border-radius: 5px;
    transition: color 0.3s, text-shadow 0.3s, background-color 0.3s;
}

.main-nav a:hover {
    color: #fff;
    background-color: rgba(0, 170, 255, 0.15);
    text-shadow: 0 0 8px #00ffaa;
}

/* --- Account Navigation (Login/Logout) --- */
.account-nav {
    display: flex;
    align-items: center;
}

.account-nav a, #account-menu a {
    text-decoration: none;
    color: #eee;
    transition: color 0.3s, text-shadow 0.3s;
    margin-left: 0.5rem;
}
.account-nav a:hover, #account-menu a:hover {
    color: #fff;
    text-shadow: 0 0 5px #00ffaa;
}
#account-menu span {
    margin-right: 1rem;
}

.lang-switch button {
    background: none;
    border: 1px solid #888;
    color: #ccc;
    padding: 5px 10px;
    margin-left: 5px;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 4px;
}

.lang-switch button.active {
    color: #fff;
    border-color: #00aaff;
    background-color: rgba(0, 170, 255, 0.2);
    box-shadow: 0 0 8px rgba(0, 170, 255, 0.7);
}

/* === Main Content Layout === */
main > .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

main {
    padding: 2rem 0;
}

.hero, .play-cta, .home-content-grid {
    width: 100%;
    max-width: 1200px; /* Or your desired max-width */
    padding: 0 2rem;
    box-sizing: border-box;
}

.hero, .play-cta {
    margin-bottom: 2rem;
}

.hero {
    text-align: center;
    padding: 1.5rem;
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid #555;
    border-radius: 8px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: transparent;
    background: linear-gradient(45deg, #00aaff, #00ffaa, #00aaff);
    -webkit-background-clip: text;
    background-clip: text;
    animation: glitter 2s ease-in-out infinite;
    text-shadow: 0 0 10px #00aaff, 0 0 20px #00aaff;
    background-size: 200% 200%;
}

@keyframes glitter { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

.subtitle {
    font-size: 1.1rem;
    color: #ccc;
}

.play-cta {
    text-align: center;
    padding: 2rem;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

.cta-button {
    display: inline-block;
    padding: 0.8rem 3rem;
    font-size: 1.6rem;
    font-weight: bold;
    color: gold;
    background: linear-gradient(145deg, #2a2a2a, #4b4b4b);
    text-decoration: none;
    border: 1px solid gold;
    border-radius: 8px;
    transition: transform 0.2s, box-shadow 0.3s, background 0.3s;
    cursor: pointer;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.7);
}

.cta-button:hover {
    transform: translateY(-3px);
    background: linear-gradient(145deg, #3c3c3c, #5a5a5a);
    box-shadow: 0 0 15px rgba(255, 215, 0, 1), 0 0 25px rgba(255, 215, 0, 0.8);
}

/* --- Two-Column Layout for Events & News --- */
.home-content-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* Left column (events) is smaller than the right (news) */
    gap: 2rem; /* Space between the two columns */
    align-items: start; /* Align items to the top of the grid */
}

.events, .news {
    background-color: rgba(0, 0, 0, 0.4);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #555;
}

.events h2, .news h2 {
    border-bottom: 2px solid #888;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    margin-top: 0;
}

.events h2 { color: #ffc107; } /* Events title color */
.news h2 { color: #00ffaa; } /* News title color */

.events-grid, .news-grid {
    display: grid;
    gap: 1.5rem;
}

.news-grid {
    grid-template-columns: 1fr; /* News items stack vertically */
}

.events article, .news article {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 5px;
}

.events article { border-left: 3px solid #ffc107; } /* Event item border color */
.news article { border-left: 3px solid #00aaff; } /* News item border color */

.events article h3, .news article h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.events article span, .news article span {
    font-size: 0.8rem;
    color: #999;
}

/* --- Spiel Info Modal --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: radial-gradient(ellipse at center, #1d3a5c 0%, #102a4c 100%);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid #00aaff;
    box-shadow: 0 0 20px rgba(0, 170, 255, 0.5);
    max-width: 600px;
    width: 90%;
    position: relative;
    color: #eee;
    line-height: 1.6;
}

.modal-content h2 {
    color: #00ffaa;
    text-shadow: 0 0 8px #00ffaa;
    margin-top: 0;
    font-size: 2rem;
    border-bottom: 1px solid #00aaff;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.modal-closing-text {
    margin-top: 1.5rem;
    font-style: italic;
    color: #ccc;
}

.modal-close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 2rem;
    font-weight: bold;
    color: #ccc;
    cursor: pointer;
    transition: color 0.3s, text-shadow 0.3s;
}

.modal-close-btn:hover {
    color: #fff;
    text-shadow: 0 0 8px #00ffaa;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .home-content-grid {
        grid-template-columns: 1fr; /* Stack columns on smaller screens */
    }
}
