/* ==================================================
   TOPBAR / NAVIGATION (FIX)
================================================== */

.topbar {
    background: #111;
    border-bottom: 1px solid #1a1a1a;
    padding: 12px 40px;
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    font-size: 32px;
    color: #ff1a1a;
    font-weight: 700;
    letter-spacing: 2px;
}

/* NAV LINKS */
.topnav {
    display: flex;
    gap: 30px;
}

.topnav a {
    font-size: 18px;
    color: #ccc;
    transition: 0.2s;
}

.topnav a:hover,
.topnav a.active {
    color: #ff1a1a;
}

/* ==================================================
   WIP MODE – HEADER & NAV KOMPLETT AUS
================================================== */

body.wip-active .topbar {
    display: none !important;
}

/* ==================================================
   HERO / CENTER
================================================== */

.hero {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #0c0c0c;
    padding: 40px 20px;
}

.hero-center h1 {
    margin-bottom: 6px;
}

.hero-center .subtitle {
    margin-top: -20px;
}


.hero-inner {
    width: 100%;
}

.subtitle {
    margin-top: auto;
    opacity: 1;
}

.hero-logo-wrap {
    max-height: 360px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;

    /* 🔑 Abstand nach unten, damit Text Luft bekommt */
    margin-bottom: 100px;
}


.hero-logo-wrap img {
    max-height: 100%;
    width: auto;
    object-fit: contain;
    display: block;

    /* 🔑 Visueller Ausgleich für die Ohren */
    transform: translateY(40px);
}

.hero-logo-wrap {
    animation: glowBreath 6s ease-in-out infinite;
    will-change: transform, filter;
}

@keyframes glowBreath {
    0% {
        filter: drop-shadow(0 0 5px rgba(255, 26, 26, 0.35));
        transform: scale(1);
    }
    50% {
        filter: drop-shadow(0 0 10px rgba(255, 26, 26, 0.65));
        transform: scale(1.015);
    }
    100% {
        filter: drop-shadow(0 0 5px rgba(255, 26, 26, 0.35));
        transform: scale(1);
    }
}



/* ==================================================
   WIP PANEL
================================================== */

.wip-panel {
    background: #111;
    border: 1px solid #1f1f1f;
    border-radius: 14px;
    padding: 42px 48px;
    text-align: center;
    max-width: 420px;
    margin: 0 auto;
}

.wip-panel h1 {
    font-size: 42px;
    color: #ff1a1a;
    margin-bottom: 18px;
}

.wip-panel p {
    color: #aaa;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.wip-login-btn {
    padding: 10px 28px;
    background: #ff1a1a;
    color: #fff;
    font-size: 18px;
    letter-spacing: 1px;
    cursor: pointer;
    border: none;
    font-family: 'Teko', sans-serif;
}

.wip-login-btn:hover {
    background: #cc0000;
}

/* ==================================================
   TEAM PAGE
================================================== */

.team-page {
    padding: 60px 40px 120px;
}

/* ==================================================
   SECTION TITLE
================================================== */

.team-section-title {
    margin: 100px auto 30px;
    text-align: center;
    font-size: 28px;
    letter-spacing: 2px;
    color: #fff;
}

/* ==================================================
   TEAM SECTION = EIN PANEL
================================================== */
.team-section {
    max-width: 1550px;
    margin: 0 auto 80px;
    padding: 40px 40px;   /* vorher war deutlich mehr */

    background: #0f0f0f;
    border: 1px solid #1f1f1f;
    border-radius: 26px;
}

.team-section-title {
    margin: 40px auto 18px;
    text-align: center;
    font-size: 22px;
    letter-spacing: 3px;
    color: #ccc;
    position: relative;
    text-transform: uppercase;
}

.team-section-title::after {
    content: "";
    display: block;
    width: 80px;
    height: 2px;
    margin: 10px auto 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,26,26,0.8),
        transparent
    );
}


/* ==================================================
   PLAYER GRID (IM PANEL)
================================================== */

.team-grid {
    display: grid;

    /* 🔒 feste Kartenbreite */
    grid-template-columns: repeat(auto-fit, 260px);

    /* gleichmäßiger Abstand */
    gap: 36px;

    /* 🔑 gesamtes Grid zentrieren */
    justify-content: center;
}



/* ==================================================
   PLAYER CARD (KEIN PANEL!)
================================================== */

.player-card {
    width: 260px;
    padding: 24px 20px 28px;
    text-align: center;

    background: #0b0b0b;
    border-radius: 18px;
}

/* ==================================================
   AVATAR
================================================== */

.player-avatar {
    width: 160px;
    height: 220px;
    object-fit: cover;
    border-radius: 18px;
    margin: 0 auto 20px;
    display: block;

    background: #000;
    border: 1px solid #2a2a2a;
}

/* ==================================================
   TEXT
================================================== */

.player-name {
    font-size: 24px;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}

.player-elo {
    font-size: 16px;
    margin-bottom: 6px;
}

.player-status {
    font-size: 14px;
    letter-spacing: 1px;
}

.player-status.active {
    color: #7cff7c;
}

.player-status.inactive {
    color: #ff4c4c;
}

/* ==================================================
   ELO COLORS
================================================== */

.elo-0   { color: #cfd8dc; }
.elo-5   { color: #6fa8dc; }
.elo-10  { color: #4a6cff; }
.elo-15  { color: #7a4cff; }
.elo-20  { color: #b44cff; }
.elo-25  { color: #ff4c4c; }
.elo-30  { color: #ffb300; }
.elo-none{ color: #777; }

/* ==================================================
   MITSPIELEN – RBZB APPLY PANEL
================================================== */

.join-page {
    display: flex;
    justify-content: center;
    padding: 80px 20px 120px;
}

.join-panel {
    width: 100%;
    max-width: 520px;
	margin: 40px auto;
    background: #0f0f0f;
    border: 1px solid #1f1f1f;
    border-radius: 24px;

    padding: 50px 46px 56px;
    text-align: center;

    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
}

/* Titel */
.join-title {
    font-size: 42px;
    color: #ff1a1a;
    margin-bottom: 14px;
}

/* Untertitel */
.join-subtitle {
    font-size: 15px;
    line-height: 1.6;
    color: #aaa;
    margin-bottom: 40px;
}

/* ==================================================
   FORM
================================================== */

.join-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 14px;
    color: #bbb;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

/* INPUTS */
.form-group input {
    width: 100%;
    height: 44px;

    background: #0c0c0c;
    border: 1px solid #262626;
    border-radius: 10px;

    padding: 0 14px;
    font-family: 'Teko', sans-serif;
    font-size: 18px;
    color: #fff;

    transition: border 0.2s, box-shadow 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: #ff1a1a;
    box-shadow: 0 0 0 2px rgba(255,26,26,0.15);
}

/* ==================================================
   SUBMIT BUTTON
================================================== */

.btn-submit {
    margin-top: 28px;

    height: 48px;
    background: #ff1a1a;
    border: none;
    border-radius: 12px;

    font-size: 20px;
    letter-spacing: 1px;
    color: #fff;
    cursor: pointer;

    transition: background 0.2s, transform 0.15s;
}

.btn-submit:hover {
    background: #cc0000;
    transform: translateY(-1px);
}

/* ==================================================
   PAGE WRAPPER – GLOBAL
================================================== */

.page-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 60px 120px;
}

/* ==================================================
   PAGE HEADER (Titel + Untertitel)
================================================== */

.page-header {
    margin-bottom: 60px;
}

.page-title {
    font-size: 48px;
    font-weight: 800;
    color: #ff1a1a;
    letter-spacing: 2px;
    margin-bottom: 14px;
}

.page-subtitle {
    font-size: 15px;
    color: #aaa;
    line-height: 1.6;
    max-width: 520px;
}

/* ==================================================
   JOIN PAGE LAYOUT
================================================== */

/* ==================================================
   MITSPIELEN – SAUBERES ZENTRIERTES LAYOUT
================================================== */

.join-page {
    padding: 10px 10px 10px;
    display: flex;
    flex-direction: column;   /* 🔥 DAS FEHLT */
    align-items: center;
    gap: 60px;                /* Abstand Header → Panel */
    justify-content: center;
}

.join-panel {
    width: 100%;
    max-width: 520px;
	margin-top: 0; 
    display: flex;
    flex-direction: column;   /* 🔑 WICHTIG */
    align-items: center;      /* 🔑 WICHTIG */

    background: #0f0f0f;
    border: 1px solid #1f1f1f;
    border-radius: 26px;

    padding: 60px 50px 56px;
}

.join-title {
    font-size: 44px;
    font-weight: 800;
    color: #ff1a1a;
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-align: center;
}

.join-subtitle {
    font-size: 14px;
    color: #aaa;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 20px;
}


/* ==================================================
   FORM
================================================== */

.join-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.form-group label {
    font-size: 13px;
    color: #aaa;
    margin-bottom: 6px;
    display: block;
}

.form-group input {
    width: 100%;
    padding: 12px 14px;

    background: #0c0c0c;
    border: 1px solid #1f1f1f;
    border-radius: 10px;

    color: #fff;
    font-size: 14px;
}

.form-group input:focus {
    outline: none;
    border-color: #ff1a1a;
}

.btn-submit {
    margin-top: 28px;
    padding: 14px;

    background: #ff1a1a;
    color: #fff;

    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;

    border: none;
    cursor: pointer;
}

.btn-submit:hover {
    background: #e60000;
}

/* =========================
   MODAL OVERLAY
========================= */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-overlay:not(.active) {
    display: none;
}

.modal-box {
    background: #0f0f0f;
    border: 1px solid #1f1f1f;
    border-radius: 18px;
    padding: 32px 36px;
    max-width: 420px;
    width: 90%;
    text-align: center;
}

.modal-box h3 {
    color: #ff1a1a;
    font-size: 26px;
    margin-bottom: 14px;
}

.modal-box p {
    color: #ccc;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 22px;
}

.modal-box button {
    background: #ff1a1a;
    color: #fff;
    border: none;
    padding: 10px 26px;
    border-radius: 12px;
    font-size: 16px;
    cursor: pointer;
}

.modal-box button:hover {
    background: #cc0000;
}

/* =========================
   GLOBAL PAGE HEADER
========================= */

.page-header {
    text-align: center;
    margin-top: -30px;
    margin-bottom: -30px;
}

.page-title {
    font-size: 48px;
    color: #ff1a1a;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.page-subtitle {
    font-size: 14px;
    color: #aaa;
    line-height: 1.6;
}

@media (max-width: 1100px) {
    .join-page .page-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }
}


@media (max-width: 1400px) {
    .team-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1100px) {
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 800px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
}
/* ==================================================
   GLOBAL PAGE HEADER – HARTE FESTLEGUNG
   (überschreibt Seiten-spezifische Layouts)
================================================== */

.page-header {
    min-height: 260px;          /* 🔑 sorgt für identische Höhe */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;

    margin-bottom: 10px;
}

.page-header .page-title {
    margin: 0 0 12px;
}

.page-header .page-subtitle {
    margin: 0;
    max-width: 600px;
    line-height: 1.5;
}
.content-panel {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
	font-size: 18px;
    text-align: left;
}

.content-panel p {
    margin-bottom: 18px;
    line-height: 1.6;
}

.content-panel ul {
    margin: 15px 0 25px 20px;
}

.content-panel li {
    margin-bottom: 8px;
}
.about-panel .about-content {
    max-width: 820px;      /* perfekte Lesebreite für 1440p */
    margin: 0 auto;        /* Text mittig im Panel */
    line-height: 1.7;
    font-size: 16.5px;
}
.about-content {
    text-align: center;
}
.about-content h3,
.about-content .center {
    text-align: center;
}
.download-panel {
    display: none;
    margin-top: 32px;
}

.download-panel.active {
    display: block;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 28px;
    max-width: 1200px;
    margin: 0 auto;
}

.download-card {
    background: #0b0b0b;
    border-radius: 16px;
    padding: 20px;
    text-align: center;

    /* ❌ Schatten weg */
    box-shadow: none;

    /* dezente Linie statt Glow */
    border: 1px solid rgba(255,255,255,0.06);
}

.download-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255,0,0,0.4);
}


.download-card img {
    max-width: 100%;
    border-radius: 12px;
    margin-bottom: 18px;
}
.download-btn {
    display: inline-block;
    padding: 12px 26px;
    background: #ff1a1a;
    color: #fff;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s ease, transform .2s ease;
}

.download-btn:hover {
    background: #ff3333;
    transform: scale(1.05);
}

.download-btn.download-locked {
    pointer-events: none;
    opacity: 0.4;
}
