/* ===========================
   GFHL GLOBAL LAYOUT
   =========================== */

body {
    margin: 0;
    padding: 0;
    background: #f4f6f9;
    font-family: "Inter", Arial, sans-serif;
    color: #222;
}

#content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}


/* ===========================
   NAVIGATION
   =========================== */

.navbar {
    background: #002244;
    padding: 12px 20px;
    margin-bottom: 25px;
}

.navbar a {
    color: #fff;
    margin-right: 20px;
    text-decoration: none;
    font-weight: 500;
}

.navbar a:hover {
    text-decoration: underline;
}


/* ===========================
   TEAM HEADER
   =========================== */

.team-header {
    background: linear-gradient(135deg, #003366, #0055aa);
    color: white;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.team-header h1 {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
}


/* ===========================
   TABLES (GLOBAL)
   =========================== */

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 25px;
    font-size: 14px;
    background: white;
}

table th {
    background: #003366;
    color: #fff;
    padding: 10px;
    text-align: left;
}

table td {
    padding: 8px 10px;
    border-bottom: 1px solid #ddd;
}

table tr:hover td {
    background: #f5f8ff;
}


/* ===========================
   STHS-SPEZIFISCHE KLASSEN
   =========================== */

.STHSWarning {
    background: #ffdddd;
    border-left: 4px solid #cc0000;
    padding: 10px;
    margin-bottom: 20px;
}

.STHSIndex_Main {
    background: white;
    padding: 20px;
    border-radius: 8px;
}

.STHSTeamStat_Table,
.STHSRoster_GoaliesTable,
.STHSRoster_ForwardTable,
.STHSRoster_DefenseTable {
    background: white;
    border-radius: 6px;
    overflow: hidden;
}


/* ===========================
   RESPONSIVE DESIGN
   =========================== */

@media (max-width: 768px) {
    table, thead, tbody, th, td, tr {
        display: block;
    }

    table tr {
        margin-bottom: 15px;
    }

    table td {
        border: none;
        padding-left: 0;
    }

    .team-header h1 {
        font-size: 24px;
    }
}

/* TEAM BANNER */
.team-banner {
    width: 100%;
    height: 120px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.team-banner-inner {
    width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
}

.team-banner-logo {
    height: 90px;
    width: auto;
}

.team-banner-text {
    text-align: center;
    color: white;
    text-shadow: 0 0 5px rgba(0,0,0,0.7);
}

.team-banner-name {
    font-size: 32px;
    font-weight: 700;
}

.team-banner-record {
    font-size: 18px;
    margin-top: 5px;
}

/* MENU */
.team-menu {
    width: 100%;
    background: rgba(0,0,0,0.55);
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 10px 0;
    flex-wrap: nowrap;
}

.team-menu a {
    color: white;
    text-decoration: none;
    padding: 6px 12px;
    font-weight: 600;
    border-radius: 4px;
    transition: 0.2s;
}

.team-menu a:hover {
    background: rgba(255,255,255,0.18);
}

/* WARNING */
.team-warning {
    text-align: center;
    font-size: 12px;
    color: #666;
    margin: 10px 0;
}

/* STATS BLOCK */
.team-stats-block {
    width: 1200px;
    margin: 20px auto;
    padding: 15px;
    background: rgba(255,255,255,0.9);
    border: 4px solid transparent;
    border-radius: 8px;
}

.team-stats-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 600;
}

/* TABLE WRAPPER */
.STHSTable {
    width: 1200px !important;
    margin: 20px auto !important;
    border: 4px solid transparent;
    border-radius: 8px;
    border-image: inherit;
}
.team-banner {
    width: 100%;
    height: 120px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.team-banner-inner {
    width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.team-banner-left,
.team-banner-right {
    width: 20%;
    text-align: center;
}

.team-banner-center {
    width: 60%;
    text-align: center;
    color: white;
    text-shadow: 0 0 5px rgba(0,0,0,0.7);
}

.team-banner-logo {
    height: 90px;
}

.team-banner-farmlogo {
    height: 60px;
}

.team-banner-name {
    font-size: 28px;
    font-weight: bold;
}

.team-banner-record {
    font-size: 14px;
    line-height: 1.4;
}

.team-banner-farmname {
    font-size: 12px;
    color: white;
    margin-top: 4px;
}

.team-menu {
    width: 100%;
    background: #e0e0e0;
    padding: 10px 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.team-menu a {
    padding: 6px 12px;
    background: #ffffff;
    border-radius: 4px;
    text-decoration: none;
    color: #000;
    font-weight: 600;
}

.team-menu a:hover {
    background: #d0d0d0;
}

.team-warning {
    text-align: center;
    font-size: 12px;
    color: #666;
    margin: 10px 0;
}

/* Tabellenrahmen in Teamfarbe */
.STHSTable {
    border: 4px solid transparent !important;
    border-image: url(/1/images/banner_<?php echo $Team; ?>.png) 30 stretch !important;
}

/* Game Center Logos */
.GameCenterTeamLeft {
    float: left;
    margin-right: 8px;
    height: 40px;
}

.GameCenterTeamRight {
    float: right;
    margin-left: 8px;
    height: 40px;
}

/* Team Leaders Fix */
.TeamLeaderImage {
    float: none !important;
    display: block;
    margin: 0 auto;
}

.team-banner-center,
.team-banner-center * {
    color: white !important;
}

.team-menu {
    flex-wrap: wrap;
}
#STHSPHPTeamStat_SubHeader {
    display: none !important;
}
.STHSPHPTeamMenu,
.STHSPHPTeamMenuRow,
.STHSPHPTeamProMenu {
    display: none !important;
}
.team-banner-center,
.team-banner-center * {
    color: white !important;
}
.team-menu {
    flex-wrap: wrap;
}

.STHSPHPTeam_ProPrimaryTable,
.STHSPHPTeam_ProSecondaryTable,
.STHSPHPTeam_ProRosterTable,
.STHSPHPTeam_ProStatTable {
    border: 4px solid transparent !important;
    border-image: url(/1/images/banner_<?php echo $Team; ?>.png) 30 stretch !important;
}

.TeamLeaderImage {
    float: none !important;
    display: block;
    margin: 0 auto;
}
