/* CSS für alle Unterseiten - Responsive Design */
/* Erweitert die mk_neu.css für Unterseiten */

/* Grundlegende Struktur für Unterseiten */
.subpage-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1em 2em;
    background-color: white;
}

/* Header für Unterseiten */
.subpage-header {
    text-align: center;
    margin-bottom: 2em;
}

.subpage-header h1 {
    color: #333;
    margin-bottom: 0.5em;
    font-size: 2.5em;
}

.subpage-header h2 {
    color: #555;
    font-size: 1.8em;
    margin-bottom: 1em;
}

/* Navigation für Unterseiten - nur mit Zurück-Link */
.subpage-nav {
    background-color: black;
    padding: 1em;
    margin: 0 -2em 2em -2em;
    border-radius: 5px;
}

.subpage-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
}

.subpage-nav li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 0.8em 1.5em;
    border-radius: 25px;
    transition: all 0.3s ease;
    background-color: #797676;
}

.subpage-nav li a:hover {
    background-color: #777;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}



/* Tabellen für Unterseiten */
.subpage-table {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 2em auto;
    border-collapse: collapse;
    background-color: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 5px;
    overflow: hidden;
}

.subpage-table th {
    background: linear-gradient(135deg, #fa4e4e, #f8342a);
    color: white;
    padding: 12px 8px;
    text-align: left;
    font-weight: bold;
}

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

.subpage-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.subpage-table tr:hover {
    background-color: #f0f0f0;
}

/* Inhaltsbereiche */
.subpage-content {
    margin: 2em 0;
    line-height: 1.6;
}

.subpage-content img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Zurück-Links */
.back-link {
    display: inline-block;
    margin: 2em 0;
    padding: 12px 24px;
    background-color: #333;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.back-link:hover {
    background-color: #555;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Responsive Design für Unterseiten */
@media (max-width: 1200px) {
    .subpage-container {
        padding: 0.8em 1.5em;
        margin: 0 1em;
    }
    
    .subpage-nav {
        margin: 0 -1.5em 2em -1.5em;
    }
    
    .subpage-table {
        font-size: 0.95em;
    }
}

@media (max-width: 1024px) {
    .subpage-container {
        padding: 0.6em 1.2em;
    }
    
    .subpage-header h1 {
        font-size: 2.2em;
    }
    
    .subpage-header h2 {
        font-size: 1.6em;
    }
    
    .subpage-nav {
        padding: 0.8em;
        margin: 0 -1.2em 2em -1.2em;
    }
    
    .subpage-nav li a {
        padding: 0.7em 1.3em;
        font-size: 0.95em;
    }
}

@media (max-width: 768px) {
    .subpage-container {
        padding: 0.5em 1em;
        margin: 0;
    }
    
    .subpage-header {
        margin-bottom: 1.5em;
    }
    
    .subpage-header h1 {
        font-size: 2em;
    }
    
    .subpage-header h2 {
        font-size: 1.4em;
    }
    
    .subpage-nav {
        padding: 0.7em;
        margin: 0 -1em 1.5em -1em;
    }
    
    .subpage-nav li a {
        padding: 0.6em 1.2em;
        font-size: 0.9em;
    }
    
    .subpage-table {
        font-size: 0.9em;
        overflow-x: auto;
    }
    
    .subpage-table th,
    .subpage-table td {
        padding: 8px 6px;
        min-width: 80px;
    }
    
    .subpage-content {
        margin: 1.5em 0;
    }
    
    .back-link {
        padding: 10px 20px;
        font-size: 0.9em;
        margin: 1.5em 0;
    }
}

@media (max-width: 480px) {
    .subpage-container {
        padding: 0.4em 0.8em;
    }
    
    .subpage-header {
        margin-bottom: 1em;
    }
    
    .subpage-header h1 {
        font-size: 1.8em;
    }
    
    .subpage-header h2 {
        font-size: 1.2em;
    }
    
    .subpage-nav {
        padding: 0.6em;
        margin: 0 -0.8em 1em -0.8em;
    }
    
    .subpage-nav li a {
        padding: 0.5em 1em;
        font-size: 0.8em;
    }
    
    .subpage-table {
        font-size: 0.8em;
    }
    
    .subpage-table th,
    .subpage-table td {
        padding: 6px 4px;
        min-width: 60px;
    }
    
    .subpage-content {
        margin: 1em 0;
        font-size: 0.9em;
    }
    
    .back-link {
        padding: 8px 16px;
        font-size: 0.8em;
        margin: 1em 0;
    }
}

/* Spezielle Anpassungen für verschiedene Unterseiten-Typen */
.roster-page .subpage-table th:nth-child(1),
.roster-page .subpage-table td:nth-child(1) {
    width: auto;
    min-width: 80px;
    text-align: center;
}

.roster-page .subpage-table th:nth-child(2),
.roster-page .subpage-table td:nth-child(2) {
    width: auto;
    min-width: 120px;
}

.roster-page .subpage-table th:nth-child(3),
.roster-page .subpage-table td:nth-child(3) {
    width: auto;
    min-width: 100px;
}

.roster-page .subpage-table th:nth-child(4),
.roster-page .subpage-table td:nth-child(4) {
    width: auto;
    min-width: 100px;
}

.history-page .subpage-table th:nth-child(1),
.history-page .subpage-table td:nth-child(1) {
    width: auto;
    min-width: 80px;
    font-weight: bold;
    white-space: nowrap; /* Verhindert Zeilenumbrüche in der ersten Spalte */
}

.history-page .subpage-table th:nth-child(2),
.history-page .subpage-table td:nth-child(2) {
    width: auto;
    min-width: 200px;
}

/* Spezielle Anpassungen für Success-Seite */
.success-page .subpage-table th:nth-child(1),
.success-page .subpage-table td:nth-child(1) {
    width: auto;
    min-width: 80px;
    font-weight: bold;
    white-space: nowrap; /* Verhindert Zeilenumbrüche in der ersten Spalte */
}

.success-page .subpage-table th:nth-child(2),
.success-page .subpage-table td:nth-child(2) {
    width: auto;
    min-width: 300px; /* Reduziert von der Standard-Breite */
}

/* Spezielle Anpassungen für News-Seite */
.news-page .subpage-table th:nth-child(1),
.news-page .subpage-table td:nth-child(1) {
    width: auto;
    min-width: 100px;
    font-weight: bold;
    white-space: nowrap; /* Verhindert Zeilenumbrüche in der Datum-Spalte */
}

.news-page .subpage-table th:nth-child(2),
.news-page .subpage-table td:nth-child(2) {
    width: auto;
    min-width: 400px; /* Ausreichend für News-Text */
}

/* Verbesserte Lesbarkeit für lange Texte */
.subpage-content p {
    margin-bottom: 1em;
    text-align: justify;
}

.subpage-content h3,
.subpage-content h4 {
    color: #333;
    margin: 1.5em 0 0.5em 0;
    border-bottom: 2px solid #787878;
    padding-bottom: 0.3em;
}

/* Zentrierung für Achievements-Summary */
.achievements-summary {
    text-align: center;
}

.achievements-summary ul {
    text-align: center;
    list-style-position: inside;
    padding-left: 0; /* Entfernt den Standard-Links-Einzug */
}

/* Playoffs-Sektion Styles */
.section-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2em 0;
    gap: 20px;
}

.section-header h2 {
    color: #333;
    margin: 0;
    font-size: 2.2em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}



.playoff-round {
    margin: 2em 0;
    background: white;
    padding: 2em;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 2px solid #e9ecef;
}

.round-title {
    color: #fa4e4e;
    font-size: 1.8em;
    margin-bottom: 0.5em;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.game-date {
    text-align: center;
    color: #6c757d;
    font-size: 1.1em;
    margin-bottom: 1.5em;
    font-style: italic;
}

.playoff-game {
    width: 100%;
    margin: 0 auto 1.5em auto;
    border-collapse: collapse;
}

.playoff-games {
    width: 100%;
    margin: 0 auto;
    border-collapse: collapse;
}

.playoff-game td,
.playoff-games td {
    padding: 12px 8px;
    text-align: center;
    font-size: 1.1em;
}

.team-name {
    font-weight: bold;
    color: #333;
    width: 40%;
}

.team-name.winner {
    color: #28a745;
    font-weight: bold;
}

.result {
    font-size: 1.3em;
    font-weight: bold;
    color: #495057;
    width: 20%;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 8px;
    padding: 8px 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.separator {
    font-size: 1.5em;
    font-weight: bold;
    color: #6c757d;
    width: 10%;
}

.champion-announcement {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 1.5em;
    border-radius: 10px;
    text-align: center;
    margin-top: 1.5em;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.champion-announcement h4 {
    margin: 0;
    font-size: 1.4em;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.champion {
    font-size: 1.2em;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.playoffs-explanation {
    margin: 30px 0;
    padding: 25px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.playoffs-explanation p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #333;
    text-align: justify;
}

.playoffs-explanation p:first-child {
    color: #333;
    font-size: 1.2em;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
    text-align: center;
}

/* Responsive Design für Playoffs */
@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .section-header h2 {
        font-size: 1.8em;
    }
    
    .section-header img {
        height: 60px;
        width: 60px;
    }
    
    .playoff-round {
        padding: 1.5em;
        margin: 1.5em 0;
    }
    
    .round-title {
        font-size: 1.5em;
    }
    
    .playoff-game,
    .playoff-games {
        font-size: 0.9em;
    }
    
    .playoff-game td,
    .playoff-games td {
        padding: 8px 4px;
    }
    
    .team-name {
        width: 30%;
        font-size: 0.9em;
    }
    
    .score {
        width: 20%;
        font-size: 1.1em;
    }
    
    .separator {
        width: 10%;
    }
}

@media (max-width: 480px) {
    .section-header h2 {
        font-size: 1.5em;
    }
    
    .section-header img {
        height: 50px;
        width: 50px;
    }
    
    .playoff-round {
        padding: 1em;
        margin: 1em 0;
    }
    
    .round-title {
        font-size: 1.3em;
    }
    
    .playoff-game,
    .playoff-games {
        font-size: 0.8em;
    }
    
    .playoff-game td,
    .playoff-games td {
        padding: 6px 2px;
    }
    
    .team-name {
        width: 25%;
        font-size: 0.8em;
    }
    
    .score {
        width: 25%;
        font-size: 1em;
    }
    
    .separator {
        width: 10%;
    }
    
    .champion-announcement {
        padding: 1em;
    }
    
    .champion-announcement h4 {
        font-size: 1.2em;
    }
}
