/* Grundlegendes Design der Seite */
html { 
    scroll-behavior: smooth; 
}
body { 
    background-color: #000000; 
    color: #ffffff; 
    font-family: Arial, sans-serif; 
    margin: 0; 
    padding: 0; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    min-height: 100vh; 
    text-align: center; 
}

/* Das starre obere Menü-Frame */
.top-navbar { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    z-index: 1000; 
    overflow: hidden; 
}
.nav-container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 15px 115px; 
    background-color: #050505; 
    position: relative; 
    z-index: 1002; 
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.9); 
}
.nav-left { 
    display: flex; 
    align-items: center; 
}
.menu-icon { 
    width: 38px; 
    height: 38px; 
    display: flex; 
    flex-direction: column; 
    justify-content: space-between; 
    cursor: pointer; 
    margin-right: 20px; 
}
.menu-icon span { 
    display: block; 
    height: 4px; 
    width: 100%; 
    background-color: #ffffff; 
    border-radius: 2px; 
    transition: background-color 0.3s ease;
}
.menu-icon:hover span { 
    background-color: #ff3333; 
}
.brand-name { 
    color: #ffffff; 
    text-decoration: none; 
    font-weight: bold; 
    font-size: 22px; 
    letter-spacing: 1px; 
    transition: color 0.3s ease;
}
.brand-name:hover { 
    color: #ff3333; 
}
.nav-right { 
    display: flex; 
    align-items: center; 
}
.search-icon { 
    width: 24px; 
    height: 24px; 
    cursor: pointer; 
    margin-right: 25px; 
    fill: none; 
    stroke: #ffffff; 
    stroke-width: 2.5; 
    stroke-linecap: round; 
    stroke-linejoin: round; 
    transition: stroke 0.3s ease;
}
.search-icon:hover { 
    stroke: #ff3333; 
}
.auth-button { 
    background-color: transparent; 
    color: #ffffff; 
    border: 2px solid #ffffff; 
    padding: 10px 20px; 
    font-weight: bold; 
    font-size: 14px; 
    border-radius: 4px; 
    cursor: pointer; 
    transition: all 0.3s ease;
}
.auth-button:hover { 
    background-color: #ff3333; 
    border-color: #ff3333; 
    color: #ffffff;
    transform: translateY(-2px); 
}
.auth-button.logged-in {
    border-color: #00ff00;
    color: #00ff00;
}
.navbar-gradient-edge { 
    height: 190px; 
    width: 100%; 
    position: relative; 
    z-index: 1001; 
    background: linear-gradient(to bottom, #660000 0px, #660000 4px, #440000 30px, #220000 80px, #110000 130px, #000000 100% ); 
}

/* Hauptinhalt-Container */
.main-content { 
    margin-top: 240px; 
    padding: 20px; 
    max-width: 1000px; 
    width: 100%; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    box-sizing: border-box; 
}
.image-frame-main { 
    position: relative; 
    width: 100%; 
    height: 500px; 
    border: 1px solid #333333; 
    border-radius: 8px; 
    overflow: hidden; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.7); 
    background-color: #111111; 
}
.main-showcase-image { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    display: none; 
    transition: transform 0.4s ease; 
}
.image-frame-main:hover .main-showcase-image { 
    transform: scale(1.1); 
}

/* News & Buttons */
.news-title { 
    color: #ffffff; 
    font-size: 36px; 
    font-weight: bold; 
    letter-spacing: 2px; 
    margin: 40px 0 20px 0; 
}
.news-btn-container { 
    display: flex; 
    gap: 20px; 
    margin-bottom: 30px; 
}
.news-button { 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    gap: 12px; 
    background-color: transparent; 
    color: #ffffff; 
    border: 2px solid #ffffff; 
    padding: 12px 30px; 
    font-size: 16px; 
    font-weight: bold; 
    text-transform: uppercase; 
    border-radius: 4px; 
    cursor: pointer; 
    min-width: 190px; 
    transition: all 0.3s ease;
}
.btn-icon { 
    transition: transform 0.3s ease; 
}
.play-icon { 
    width: 24px; 
    height: 24px; 
    fill: #ffffff; 
}
.arrow-icon { 
    width: 18px; 
    height: 18px; 
    fill: none; 
    stroke: #ffffff; 
    stroke-width: 2.5; 
    stroke-linecap: round; 
    stroke-linejoin: round; 
}
.news-button.primary { 
    background-color: #ff3333; 
    border-color: #ff3333; 
}
.news-button.primary:hover { 
    background-color: #cc0000; 
    border-color: #cc0000; 
    transform: translateY(-2px); 
}
.news-button.secondary:hover { 
    border-color: #ff3333; 
    color: #ff3333; 
    transform: translateY(-2px); 
}

/* Scroll Indikator & Unterer Kasten */
.scroll-indicator { 
    margin: 20px 0 60px 0; 
    animation: bounce 2s infinite; 
    cursor: pointer; 
}
.scroll-indicator svg { 
    width: 32px; 
    height: 32px; 
    fill: none; 
    stroke: #ff3333; 
    stroke-width: 3; 
    stroke-linecap: round; 
    stroke-linejoin: round; 
}
@keyframes bounce { 
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); } 
    40% { transform: translateY(-10px); } 
    60% { transform: translateY(-5px); } 
}
.box-wrapper { 
    width: 100%; 
    display: flex; 
    flex-direction: column; 
    align-items: flex-start; 
    margin-top: 180px; 
}
.games-title { 
    color: #ffffff; 
    font-size: 36px; 
    font-weight: bold; 
    letter-spacing: 2px; 
    margin: 0 0 30px 0; 
    text-transform: uppercase; 
}
.games-grid {
    display: flex;
    gap: 30px; 
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap; 
    margin-bottom: 60px;
}
.content-box { 
    width: 100%; 
    max-width: 485px; 
    height: 500px; 
    background-color: #0b0b0b; 
    border: 1px solid #222222; 
    border-radius: 8px; 
    overflow: hidden; 
    margin-bottom: 50px; 
    box-shadow: 0 8px 25px rgba(0,0,0,0.5); 
    text-align: left; 
    display: flex; 
    flex-direction: column; 
}
.image-frame-box { 
    width: 100%; 
    height: 325px; 
    overflow: hidden; 
    border-bottom: 1px solid #222222; 
    position: relative;
}
.content-box-image { 
    width: 100%; 
    height: 100%; 
    background-color: #1a1a1a; 
    object-fit: cover; 
    transition: transform 0.4s ease; 
    display: none;
}
.image-frame-box:hover .content-box-image { 
    transform: scale(1.1); 
}
.content-box-text { 
    padding: 20px 25px; 
    flex-grow: 1; 
    display: flex; 
    align-items: flex-start; 
}
.content-box-text p { 
    color: #cccccc; 
    font-size: 14px; 
    line-height: 1.5; 
    margin: 0; 
    display: -webkit-box; 
    -webkit-line-clamp: 5; 
    -webkit-box-orient: vertical; 
    overflow: hidden; 
}

/* Dropdown & Modal Overlays */
.auth-dropdown-wrapper {
    position: relative;
    display: inline-block;
}
.dropdown-menu-content {
    display: none; 
    position: absolute;
    top: calc(100% + 10px); 
    right: 0;
    background-color: #0b0b0b;
    border: 1px solid #222222;
    border-radius: 4px;
    min-width: 160px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.8);
    z-index: 1100;
    padding: 5px 0;
}
.dropdown-menu-content.show {
    display: block;
}
.dropdown-item-link {
    display: block;
    color: #cccccc;
    padding: 12px 20px;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: left;
    transition: all 0.2s ease;
    cursor: pointer;
}
.dropdown-item-link:hover {
    background-color: #111111;
    color: #ffffff;
}
.dropdown-item-link.logout-item:hover {
    color: #ff3333;
    background-color: #1a0505;
}
.btn-auth-content {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-user-icon {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: #00ff00; 
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.modal-overlay {
    display: none; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85); 
    z-index: 2000; 
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.modal-overlay.active {
    display: flex;
    opacity: 1;
}
.modal-box {
    background-color: #0b0b0b;
    border: 1px solid #222222;
    border-radius: 8px;
    width: 100%;
    max-width: 400px;
    padding: 40px 30px;
    box-sizing: border-box;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    text-align: left;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}
.modal-overlay.active .modal-box {
    transform: translateY(0);
}
.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    color: #cccccc;
    cursor: pointer;
    transition: color 0.3s ease;
}
.modal-close:hover {
    color: #ff3333;
}
.modal-title {
    font-size: 24px;
    font-weight: bold;
    color: #ffffff;
    margin: 0 0 25px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    color: #aaaaaa;
    font-size: 14px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.form-control {
    width: 100%;
    background-color: #111111;
    border: 1px solid #333333;
    color: #ffffff;
    padding: 12px 15px;
    font-size: 15px;
    border-radius: 4px;
    box-sizing: border-box;
}
.form-control:focus {
    outline: none;
    border-color: #ff3333; 
}
.form-checkbox-group {
    display: none; 
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    cursor: pointer;
}
.form-checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #ff3333;
    cursor: pointer;
}
.form-checkbox-label {
    color: #aaaaaa;
    font-size: 14px;
    user-select: none;
}
.form-submit-btn {
    width: 100%;
    background-color: #ff3333;
    color: #ffffff;
    border: none;
    padding: 14px;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;

margin-top: 10px;
}
.form-submit-btn:hover {
background-color: #cc0000;
}
.form-switch-text {
text-align: center;
margin-top: 20px;
font-size: 14px;
color: #aaaaaa;
}
.form-switch-link {
color: #ff3333;
text-decoration: none;
font-weight: bold;
cursor: pointer;
}
.modal-status-message {
display: none;
padding: 12px;
margin-bottom: 20px;
border: 1px solid transparent;
border-radius: 4px;
font-size: 14px;
font-weight: bold;
text-align: center;
background-color: #111111;
}
/* Profil-spezifische Buttons */
.profile-btn-container {
display: flex;
flex-wrap: wrap;
gap: 10px;
margin-top: 25px;
}
.profile-btn {
flex: 1;
padding: 12px;
font-size: 14px;
font-weight: bold;
text-transform: uppercase;
border: none;
border-radius: 4px;
cursor: pointer;
transition: background-color 0.3s ease;
min-width: 100px;
color: #ffffff;
}
.profile-btn.save { background-color: #00ff00; color: #000000; }
.profile-btn.save:hover { background-color: #00cc00; }
.profile-btn.cancel { background-color: #222222; border: 1px solid #333333; }
.profile-btn.cancel:hover { background-color: #333333; }
.profile-btn.delete { background-color: #ff3333; }
.profile-btn.delete:hover { background-color: #cc0000; }
/* Flexible Fußzeile */
.site-footer {
width: 100%;
max-width: 1000px;
margin: 80px auto 40px auto;
padding: 0 20px;
box-sizing: border-box;
}
.footer-container {
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: 115px;
}
.footer-column {
flex: 1;
display: flex;
flex-direction: column;
}
.footer-column.left { align-items: flex-start; text-align: left; }
.footer-column.center { align-items: center; text-align: center; }
.footer-column.right { align-items: flex-end; text-align: right; }
.footer-title {
color: #ffffff;
font-size: 16px;
font-weight: bold;
letter-spacing: 2px;
text-transform: uppercase;
margin: 0;
padding-bottom: 12px;
}
.footer-gradient-line {
width: 100%;
max-width: 120px;
height: 4px;
background: linear-gradient(to bottom, #660000 0px, #660000 1px, #220000 3px, #000000 100%);
}
.footer-column.left .footer-gradient-line { margin: 0; }
.footer-column.center .footer-gradient-line { margin: 0 auto; }
.footer-column.right .footer-gradient-line { margin: 0 0 0 auto; }
/* CSS-Weiche für die Formular-Umschaltung */
.modal-box.register-mode .login-only { display: none !important; }
.modal-box.register-mode .register-only { display: block !important; }
.modal-box.register-mode .register-only.form-checkbox-group { display: flex !important; }
/* CSS-Weiche für den Passwort-Vergessen-Modus */
.modal-box.forgot-mode .login-only { display: none !important; }
.modal-box.forgot-mode .register-only { display: none !important; }
.modal-box.forgot-mode .forgot-only { display: block !important; }
.modal-box.forgot-mode .forgot-only.form-submit-btn { display: block !important; }

/* Verhindert Hover-Effekte, Farbwechsel und Mauszeiger zu 100% am News-Button */
.news-button.primary.disabled-video,
.news-button.primary.disabled-video:hover {
    opacity: 0.25 !important;
    background-color: transparent !important;
    border-color: #ffffff !important;
    color: #ffffff !important;
    cursor: not-allowed !important;
    transform: none !important;
    pointer-events: none !important;
}

/* Der schwebende Videoplayer (Modal) */
.video-modal-video {
    width: 100%;
    max-width: 800px;
    border: 2px solid #222222;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.9);
    background-color: #000000;
}

/* ======================================================= */
/* NEUES LAYOUT: PLATZIERUNG DES WATCH-BUTTONS NEBEN KACHEL 1 */
/* ======================================================= */

/* Zwingt das Grid, Kachel und Button bündig an der Oberkante auszurichten */
.games-grid {
    display: flex !important;
    gap: 30px !important;
    width: 100% !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
    flex-wrap: wrap !important;
    margin-bottom: 60px !important;
}

/* Container für den Button direkt rechts neben der Box */
.game-watch-btn-outer-container {
    display: inline-flex !important;
    margin-top: 0 !important;
}

/* Setzt exakt das originale Design und die Größe des News-Buttons ein */
.game-watch-btn-outer-container .news-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    background-color: #ff3333 !important;
    color: #ffffff !important;
    border: 2px solid #ff3333 !important;
    padding: 12px 30px !important;
    font-size: 16px !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    min-width: 190px !important; /* Exakt die Breite des News-Buttons */
    white-space: nowrap !important;
    transition: all 0.3s ease !important;
}

/* Hover-Effekt für den aktiven Spiele-Button */
.game-watch-btn-outer-container .news-button:hover {
    background-color: #cc0000 !important;
    border-color: #cc0000 !important;
    transform: translateY(-2px) !important;
}

/* Inaktiver Zustand (Maus prallt bei leerem Ordner komplett ab) */
.game-watch-btn-outer-container .news-button.disabled-video,
.game-watch-btn-outer-container .news-button.disabled-video:hover {
    opacity: 0.25 !important;
    background-color: transparent !important;
    border-color: #ffffff !important;
    color: #ffffff !important;
    cursor: not-allowed !important;
    transform: none !important;
    pointer-events: none !important; /* Blockiert Hover und Klicks komplett */
}

/* ======================================================= */
/* TEXT POPUP DESIGN & ANZEIGE-WEICHE (Vollständig korrigiert) */
/* ======================================================= */

/* Zwingt das Popup, sich im aktiven Zustand sichtbar zu schalten */
#text-modal.modal-overlay.active {
    display: flex !important;
    opacity: 1 !important;
}

/* Das schwebende Text-Popup-Fenster selbst */
/* Das schwebende Text-Popup-Fenster selbst (Breite verdoppelt!) */
.text-modal-box {
    width: 100% !important;
    max-width: 1200px !important; /* Von 600px auf 1200px erhöht für doppelte Breite */
    background-color: #0b0b0b !important;
    border: 1px solid #222222 !important;
    border-radius: 8px !important;
    padding: 40px 30px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.9) !important;
    text-align: left !important;
    color: #cccccc !important;
    line-height: 1.6 !important;
    position: relative !important;
    box-sizing: border-box !important;
}

/* Titel im Text-Popup */
.text-modal-content h3 {
    color: #ffffff !important;
    margin-top: 0 !important;
    font-size: 24px !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    border-bottom: 1px solid #222222 !important;
    padding-bottom: 15px !important;
    margin-bottom: 20px !important;
}

/* Der Fließtext im Popup */
#text-modal-body-element {
    font-size: 15px !important;
    color: #cccccc !important;
    margin: 0 !important;
    white-space: pre-wrap !important; /* Behält deine echten Zeilenumbrüche aus der Textdatei bei! */
}

/* Styling für die Learn-More-Buttons in den Spiele-Spalten */
.game-watch-btn-outer-container .news-button.secondary {
    background-color: transparent !important;
    border: 2px solid #ffffff !important;
    color: #ffffff !important;
}

/* Hover-Effekt für die aktiven Spiele-Learn-More-Buttons */
.game-watch-btn-outer-container .news-button.secondary:hover {
    border-color: #ff3333 !important;
    color: #ff3333 !important;
    background-color: transparent !important;
    transform: translateY(-2px) !important;
}
/* Inaktiver Zustand für Learn-More-Buttons bei leeren Ordnern */
.news-button.secondary.disabled-text,
.news-button.secondary.disabled-text:hover {
    opacity: 0.25 !important;
    background-color: transparent !important;
    border-color: #555555 !important;
    color: #aaaaaa !important;
    cursor: not-allowed !important;
    transform: none !important;
    pointer-events: none !important; /* Blockiert Klicks und Hover vollständig */
}

/* Leaderboard Tabellen-Styling im Pop-Up Modal */
.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    font-size: 14px;
    color: #cccccc;
    text-align: left;
}

.leaderboard-table th {
    background-color: #111111;
    color: #ff3333;
    padding: 12px;
    border-bottom: 2px solid #222222;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.leaderboard-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #1a1a1a;
}

.leaderboard-table tbody tr:hover {
    background-color: #151515;
    color: #ffffff;
}

/* Logo in der Navigationsleiste */
.brand-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.brand-logo-img {
    height: 42px; /* Skaliert das Bild sauber in die Höhe der Navbar */
    width: auto;
    object-fit: contain;
    border-radius: 4px;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.brand-logo-link:hover .brand-logo-img {
    transform: scale(1.05);
    filter: brightness(1.1);
}