/**
 * Torrausch.net - Modern Stylesheet
 * Bootstrap 5.3 Custom Theme
 */

/* ========================================
   ROOT VARIABLES - Colors from Screenshot
   ======================================== */
:root {
    --primary-blue: #003d82;
    --secondary-blue: #0056b3;
    --light-blue: #4a90e2;
    --dark-bg: #1a1a1a;
    --light-gray: #f8f9fa;
    --border-color: #000000;
    --text-light: #ffffff;
    --text-dark: #333333;
    --link-color: #0056b3;
    --link-hover: #003d82;
}

/* ========================================
   GLOBAL STYLES
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #e5e5e5;
}

.wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container-fluid {
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ========================================
   HEADER STYLES
   ======================================== */
.site-header {
    background-color: var(--text-light);
    border-bottom: 3px solid var(--primary-blue);
    padding: 20px 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.logo-section {
    flex: 0 0 auto;
}

.logo-player {
    max-height: 80px;
    width: auto;
}

.title-section {
    flex: 1 1 auto;
    text-align: center;
}

.site-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.site-tagline {
    font-size: 1.2rem;
    color: var(--secondary-blue);
    margin: 0;
}

.flags-section {
    flex: 0 0 auto;
}

.header-flags {
    max-height: 80px;
    width: auto;
}

/* ========================================
   NAVIGATION STYLES
   ======================================== */
.main-navigation {
    background: linear-gradient(180deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    padding: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.main-navigation .navbar-nav {
    width: 100%;
    justify-content: center;
}

.main-navigation .nav-link {
    color: var(--text-light) !important;
    padding: 15px 25px;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border-right: 1px solid rgba(255,255,255,0.1);
}

.main-navigation .nav-item:last-child .nav-link {
    border-right: none;
}

.main-navigation .nav-link:hover,
.main-navigation .nav-link.active {
    background-color: rgba(255,255,255,0.15);
}

.main-navigation .nav-link i {
    margin-right: 5px;
}

.navbar-toggler {
    background-color: rgba(255,255,255,0.2);
    border: none;
}

.navbar-toggler-icon {
    filter: invert(1);
}

/* ========================================
   BREADCRUMB STYLES
   ======================================== */
.breadcrumb-section {
    background-color: var(--dark-bg);
    padding: 10px 0;
    margin-bottom: 20px;
}

.breadcrumb-content {
    color: var(--text-light);
    font-size: 0.9rem;
}

.breadcrumb-content a {
    color: var(--light-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-content a:hover {
    color: var(--text-light);
}

.breadcrumb-content .separator {
    margin: 0 8px;
    opacity: 0.6;
}

.breadcrumb-content .current {
    font-weight: 500;
}

/* ========================================
   MAIN CONTENT AREA
   ======================================== */
.main-container {
    flex: 1;
    padding: 20px 0;
}

/* ========================================
   CONTENT BOXES (Like old table design)
   ======================================== */
.content-box {
    background-color: var(--text-light);
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.content-box-header {
    background: linear-gradient(180deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--text-light);
    padding: 8px 15px;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border-color);
}

.content-box-body {
    padding: 15px;
}

.content-box-body.no-padding {
    padding: 0;
}

/* ========================================
   SIDEBAR STYLES
   ======================================== */
.sidebar {
    padding-right: 15px;
}

.sidebar-section {
    margin-bottom: 20px;
}

.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-list li {
    border-bottom: 1px solid var(--border-color);
}

.sidebar-list li:last-child {
    border-bottom: none;
}

.sidebar-list a {
    display: flex;
    align-items: center;
    padding: 10px;
    color: var(--text-dark);
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.sidebar-list a:hover {
    background-color: var(--light-gray);
}

.sidebar-list img.flag-icon {
    width: 35px;
    height: auto;
    margin-right: 10px;
}

.sidebar-list i {
    margin-right: 8px;
    color: var(--primary-blue);
}

/* ========================================
   ARTICLE/NEWS STYLES
   ======================================== */
.article-item {
    margin-bottom: 20px;
}

.article-header {
    background: linear-gradient(180deg, #4a90e2 0%, #357abd 100%);
    color: var(--text-light);
    padding: 8px 15px;
    font-size: 0.9rem;
    font-weight: 500;
    border-bottom: 1px solid var(--border-color);
}

.article-body {
    padding: 15px;
    text-align: justify;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.article-body img.flag-icon {
    float: left;
    margin: 0 15px 15px 0;
    max-width: 50px;
    height: auto;
}

.article-list {
    list-style: none;
    padding: 0;
}

.article-list li {
    padding: 8px 0;
    border-bottom: 1px dotted #ccc;
}

.article-list li:last-child {
    border-bottom: none;
}

/* Legacy HTML Support - für alte Font-Tags etc. */
.article-body font,
.content-box-body font {
    /* Modernize old font tags */
}

.article-body font[size="-1"],
.content-box-body font[size="-1"] {
    font-size: 0.9rem;
}

.article-body center,
.content-box-body center {
    text-align: center;
    display: block;
    margin: 10px 0;
}

/* Bilder in Artikeln */
.article-body img:not(.flag-icon),
.content-box-body img:not(.flag-icon) {
    max-width: 100%;
    height: auto;
    margin: 10px 0;
}

/* Alle Bilder in content-col dürfen nicht überbrechen */
.content-col img {
    max-width: 100%;
    height: auto;
}

/* ========================================
   TWO COLUMN LAYOUT (Like old table layout)
   ======================================== */
.content-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
    width: 100%;
}

.content-col {
    min-width: 0;
}

/* Artikel innerhalb der Spalten dürfen nicht brechen */
.content-col .content-box {
    width: 100%;
    box-sizing: border-box;
}

.content-col .article-item {
    margin-bottom: 15px;
    width: 100%;
    box-sizing: border-box;
}

/* Responsive: auf Mobile untereinander */
@media (max-width: 768px) {
    .content-row {
        grid-template-columns: 1fr;
    }
}

.two-column-section {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.column-left,
.column-right {
    flex: 1;
}

/* ========================================
   FOOTER STYLES
   ======================================== */
.site-footer {
    background-color: var(--dark-bg);
    color: var(--text-light);
    padding: 20px 0;
    margin-top: auto;
    border-top: 3px solid var(--primary-blue);
}

.footer-content {
    font-size: 0.85rem;
}

.footer-content a {
    color: var(--light-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-content a:hover {
    color: var(--text-light);
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.text-uppercase {
    text-transform: uppercase;
}

.spacer-small {
    height: 10px;
}

.spacer-medium {
    height: 20px;
}

.spacer-large {
    height: 30px;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1200px) {
    .container-fluid {
        max-width: 100%;
    }
}

@media (max-width: 992px) {
    .site-title {
        font-size: 2rem;
    }
    
    .site-tagline {
        font-size: 1rem;
    }
    
    .header-content {
        justify-content: center;
        text-align: center;
    }
    
    .logo-section,
    .flags-section {
        display: none;
    }
    
    .two-column-section {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .site-title {
        font-size: 1.5rem;
    }
    
    .main-navigation .nav-link {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .sidebar {
        padding-right: 0;
        margin-top: 20px;
    }
}

@media (max-width: 576px) {
    body {
        font-size: 13px;
    }
    
    .content-box-header {
        font-size: 0.85rem;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
    .main-navigation,
    .breadcrumb-section,
    .sidebar,
    .site-footer {
        display: none;
    }
    
    .main-container {
        padding: 0;
    }
}

/* ============================================
   INFO PAGES - Impressum, DSGVO, Disclaimer
   ============================================ */

/* DSGVO Content */
.dsgvo-content h3,
.impressum-content h3,
.disclaimer-content h3 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #003366;
    border-bottom: 2px solid #0066cc;
    padding-bottom: 0.5rem;
    font-weight: 600;
}

.dsgvo-content h4,
.impressum-content h4,
.disclaimer-content h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #0066cc;
    font-weight: 600;
}

.dsgvo-content p,
.impressum-content p,
.disclaimer-content p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.dsgvo-content ul,
.impressum-content ul,
.disclaimer-content ul,
.news-text ul {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.dsgvo-content ul li,
.impressum-content ul li,
.disclaimer-content ul li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.dsgvo-content .lead,
.impressum-content .lead,
.disclaimer-content .lead {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 2rem;
}

.dsgvo-content address,
.impressum-content address {
    background-color: #f8f9fa;
    padding: 1rem;
    border-left: 3px solid #0066cc;
    margin: 1rem 0;
    font-style: normal;
}

.impressum-content .operator-info {
    background-color: #e7f3ff;
    padding: 1.25rem;
    border-left: 4px solid #0066cc;
    margin: 1.5rem 0;
    font-style: normal;
    border-radius: 4px;
}

.impressum-content .about-box {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-left: 4px solid #28a745;
    border-radius: 4px;
    margin: 1.5rem 0;
}

.impressum-content .footer-note {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
    margin-top: 1.5rem;
}

.dsgvo-content .alert,
.impressum-content .alert,
.disclaimer-content .alert {
    margin: 1.5rem 0;
    border-radius: 8px;
}

.dsgvo-content .alert h4,
.impressum-content .alert h4,
.disclaimer-content .alert h4 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.disclaimer-content .alert-warning {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
}

.dsgvo-content .alert-info,
.impressum-content .alert-info,
.disclaimer-content .alert-info {
    background-color: #e7f3ff;
    border-left: 4px solid #0066cc;
}

.disclaimer-content .alert-primary {
    background-color: #cfe2ff;
    border-left: 4px solid #0d6efd;
}

.dsgvo-content strong,
.impressum-content strong,
.disclaimer-content strong {
    color: #003366;
}

.dsgvo-content hr,
.impressum-content hr,
.disclaimer-content hr {
    border-top: 2px solid #dee2e6;
    margin: 2rem 0;
}

/* Links in Info Pages */
.dsgvo-content a,
.impressum-content a,
.disclaimer-content a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.2s;
}

.dsgvo-content a:hover,
.impressum-content a:hover,
.disclaimer-content a:hover {
    color: #004499;
    text-decoration: underline;
}

/* ============================================
   REGELN PAGE - Spielregeln
   ============================================ */

.regeln-content {
    padding: 0;
}

.regeln-header {
    background: linear-gradient(135deg, #0066cc 0%, #003366 100%);
    color: white;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    text-align: center;
}

.regeln-header h2 {
    margin: 0 0 1rem 0;
    font-size: 2rem;
    font-weight: 700;
}

.regeln-header .lead {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin: 0;
}

/* Quick Navigation Index */
.rules-index {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #0066cc;
    margin-bottom: 2rem;
}

.rules-index h4 {
    color: #003366;
    margin-bottom: 1rem;
}

.index-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.index-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #dee2e6;
}

.index-list li:last-child {
    border-bottom: none;
}

.index-list a {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.index-list a:hover {
    color: #004499;
    padding-left: 5px;
}

/* Rule Sections */
.rule-section {
    margin-bottom: 3rem;
    scroll-margin-top: 100px; /* For anchor links */
}

.rule-header {
    background-color: #003366;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px 8px 0 0;
    margin-bottom: 0;
}

.rule-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.rule-subsection {
    background-color: white;
    border: 1px solid #dee2e6;
    border-top: none;
    padding: 1.5rem;
}

.rule-subsection:last-child {
    border-radius: 0 0 8px 8px;
}

.rule-subsection h4 {
    color: #0066cc;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e7f3ff;
}

.rule-content p {
    line-height: 1.7;
    margin-bottom: 1rem;
}

.rule-content ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.rule-content ul li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Info Boxes */
.info-box {
    background-color: #e7f3ff;
    border-left: 4px solid #0066cc;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 4px;
}

.info-box strong {
    color: #003366;
}

/* TK Calculation */
.tk-calculation {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.tk-calculation h5 {
    color: #003366;
    margin-bottom: 1rem;
}

.tk-value {
    color: #0066cc;
    font-weight: 700;
    font-size: 1.1rem;
}

/* Pokal Bonus Boxes */
.pokal-bonus {
    background-color: #fff;
    border: 2px solid #0066cc;
    border-radius: 8px;
    padding: 1rem;
    height: 100%;
}

.pokal-bonus h6 {
    color: #003366;
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.pokal-bonus ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pokal-bonus ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e7f3ff;
}

.pokal-bonus ul li:last-child {
    border-bottom: none;
}

/* Bonus Calculation */
.bonus-calculation {
    margin: 1.5rem 0;
}

.bonus-calculation h5 {
    color: #003366;
    margin-bottom: 1rem;
}

.bonus-box {
    background: linear-gradient(135deg, #e7f3ff 0%, #ffffff 100%);
    border: 2px solid #0066cc;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    height: 100%;
}

.bonus-box i {
    font-size: 2rem;
    color: #0066cc;
    margin-bottom: 0.5rem;
}

.bonus-box h6 {
    color: #003366;
    font-weight: 700;
    margin: 0.5rem 0;
}

.bonus-box .example {
    background-color: #fff;
    padding: 0.75rem;
    border-radius: 4px;
    margin-top: 1rem;
    font-size: 0.9rem;
}

/* Newspaper Bonus */
.newspaper-bonus {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.bonus-option {
    background-color: white;
    border: 2px solid #28a745;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    height: 100%;
}

.bonus-option i {
    font-size: 2rem;
    color: #28a745;
    margin-bottom: 0.5rem;
}

.bonus-option h6 {
    color: #003366;
    font-weight: 600;
    margin: 0.5rem 0;
}

.bonus-value {
    color: #28a745;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

/* NMR Penalty */
.nmr-penalty {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 4px;
}

.nmr-penalty h6 {
    color: #856404;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* Generator Modes */
.generator-modes {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.generator-modes h6 {
    color: #003366;
    margin-bottom: 0.75rem;
}

.generator-modes ul {
    margin: 0;
}

/* Process Steps */
.process-steps {
    display: flex;
    justify-content: space-between;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.step {
    flex: 1;
    min-width: 200px;
    text-align: center;
    padding: 1rem;
}

.step-number {
    display: inline-block;
    width: 50px;
    height: 50px;
    line-height: 50px;
    background-color: #0066cc;
    color: white;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.step p {
    margin: 0;
    color: #555;
}

/* Vacation Options */
.vacation-options {
    margin: 1.5rem 0;
}

.option-box {
    background-color: #e7f3ff;
    border: 2px solid #0066cc;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    height: 100%;
}

.option-box i {
    font-size: 2rem;
    color: #0066cc;
    margin-bottom: 0.5rem;
}

.option-box h6 {
    color: #003366;
    font-weight: 700;
    margin: 0.5rem 0;
}

/* Europapokal Info */
.europapokal-info {
    background-color: #fff;
    border: 2px solid #0066cc;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.europapokal-info h6 {
    color: #003366;
    font-weight: 700;
    margin-bottom: 1rem;
}

.europapokal-link {
    text-align: center;
    margin: 1.5rem 0;
}

/* Rules Footer */
.rules-footer {
    margin-top: 3rem;
    padding-top: 2rem;
}

.footer-box {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    height: 100%;
    text-align: center;
}

.footer-box h5 {
    color: #003366;
    margin-bottom: 1rem;
}

.footer-box p {
    color: #555;
    margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .regeln-header h2 {
        font-size: 1.5rem;
    }
    
    .process-steps {
        flex-direction: column;
    }
    
    .step {
        margin-bottom: 1rem;
    }
    
    .bonus-box,
    .bonus-option,
    .option-box {
        margin-bottom: 1rem;
    }
}

/* ============================================
   REKORDE - Record Boxes
   ============================================ */

.record-box {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
}

.record-title {
    background: linear-gradient(135deg, #003d82 0%, #0056b3 100%);
    color: white;
    padding: 12px 15px;
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.record-table {
    margin-bottom: 0;
    font-size: 0.9rem;
}

.record-table thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    padding: 8px;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.record-table tbody td {
    padding: 8px;
    vertical-align: middle;
}

.record-table tbody tr:last-child td {
    border-bottom: none;
}

/* Responsive */
@media (max-width: 992px) {
    .record-box {
        margin-bottom: 1rem !important;
    }
}

/* ============================================
   ANMELDUNG PAGE - Trainer Registration
   ============================================ */

.section-title {
    color: #003366;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e7f3ff;
}

/* Leagues Grid */
.leagues-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.league-card {
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.3s;
}

.league-card:hover {
    border-color: #0066cc;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.15);
    transform: translateY(-2px);
}

.league-logo {
    width: 100%;
    height: auto;
    max-height: 67px;
    object-fit: contain;
    display: block;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.league-info {
    text-align: center;
    margin-bottom: 0.75rem;
}

.league-info .badge {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
}

/* Form Elements */
.form-label {
    font-weight: 600;
    color: #003366;
}

.form-label i {
    color: #0066cc;
    margin-right: 0.25rem;
}

.form-control:focus,
.form-select:focus {
    border-color: #0066cc;
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
}

/* Captcha Display */
.captcha-display {
    background-color: #0066cc;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 3px;
    min-width: 100px;
    justify-content: center;
}

/* Success Header */
.content-box-header.success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

/* Next Steps Boxes */
.next-steps-box {
    background-color: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    height: 100%;
    transition: all 0.3s;
}

.next-steps-box:hover {
    border-color: #0066cc;
    transform: translateY(-2px);
}

.next-steps-box i {
    font-size: 2.5rem;
    color: #0066cc;
    margin-bottom: 1rem;
}

.next-steps-box h6 {
    color: #003366;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.next-steps-box p {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

/* Info Box in Anmeldung */
.info-box {
    background-color: #e7f3ff;
    border-left: 4px solid #0066cc;
    padding: 1.5rem;
    border-radius: 4px;
}

.info-box h5 {
    color: #003366;
    font-weight: 700;
    margin-bottom: 1rem;
}

.info-box p {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.info-box p:last-child {
    margin-bottom: 0;
}

/* League Logo Wrapper */
.league-logo-wrapper {
    width: 100%;
    height: 67px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.league-logo {
    width: 100%;
    height: auto;
    max-height: 67px;
    object-fit: contain;
    display: block;
    border-radius: 4px;
}

/* Placeholder when no image */
.league-logo-placeholder {
    width: 100%;
    height: 67px;
    background: linear-gradient(135deg, #0066cc 0%, #003366 100%);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 0.5rem;
}

.league-logo-placeholder i {
    font-size: 2rem;
    margin-bottom: 0.25rem;
}

.league-logo-placeholder span {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.2;
}

/* ============================================
   TEAMS.PHP - CUSTOM STYLES
   Füge diesen Code in assets/css/style.css ein
   ============================================ */

/* Team-Link Styling */
.team-link {
    color: #212529;
    text-decoration: none;
    transition: color 0.2s ease;
}

.team-link:hover {
    color: #0d6efd;
    text-decoration: none;
}

.team-link i {
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.team-link:hover i {
    opacity: 1;
}

/* Teams Table */
.teams-table thead {
    background-color: #f8f9fa;
}

.teams-table thead th {
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
    padding: 12px 15px;
}

.teams-table tbody td {
    vertical-align: middle;
    padding: 15px;
}

.teams-table tbody tr {
    transition: background-color 0.2s ease;
}

/* Status Button - Freie Teams */
.btn-team-status {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 6px;
    border: 1px solid;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-team-status-free {
    color: #198754;
    border-color: #198754;
}

.btn-team-status-free:hover {
    background: #198754;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(25, 135, 84, 0.3);
}

/* Status Button - Besetzte Teams */
.btn-team-status-busy {
    color: #0d6efd;
    border-color: #0d6efd;
}

.btn-team-status-busy:hover {
    background: #0d6efd;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.3);
}

/* EC-Platz Form */
.form-ec-inline {
    display: flex;
    gap: 8px;
    align-items: center;
}

.select-ec {
    padding: 6px 10px;
    font-size: 0.875rem;
    border: 1px solid #ced4da;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 70px;
}

.select-ec:hover {
    border-color: #0d6efd;
}

.select-ec:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
    outline: none;
}

/* EC Button */
.btn-team-ec {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 6px;
    border: 1px solid #ffc107;
    background: white;
    color: #997404;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-team-ec:hover {
    background: #ffc107;
    color: #000;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
}

.btn-team-ec i {
    font-size: 0.9rem;
}

/* Delete Button */
.btn-team-delete {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 6px;
    border: 1px solid #dc3545;
    background: white;
    color: #dc3545;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-team-delete:hover {
    background: #dc3545;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

/* Card Headers mit Icons */
.card-header h5 {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 600;
}

.card-header h5 i {
    font-size: 1.3rem;
}

.card-header .badge {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.4em 0.8em;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .form-ec-inline {
        flex-direction: column;
        align-items: stretch;
    }
    
    .select-ec {
        width: 100%;
    }
    
    .btn-team-status,
    .btn-team-ec,
    .btn-team-delete {
        width: 100%;
        justify-content: center;
    }
    
    .teams-table tbody td {
        padding: 10px;
        font-size: 0.9rem;
    }
}

/* Hover-Effekt für Tabellenzeilen */
.teams-table tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.02) !important;
}

/* Badge-Styling für inaktive Teams */
.teams-table .badge {
    font-size: 0.8rem;
    padding: 0.35em 0.65em;
}

/* Smooth Transitions für alle Interaktionen */
button, select, a {
    transition: all 0.2s ease;
}

/* Icon-Größenanpassung in Buttons */
.btn-team-status i,
.btn-team-delete i {
    font-size: 0.9rem;
}

/* ============================================
   LIGA NEWS - League News Display
   Offizielle Ligaleiter-Nachrichten auf Liga-Startseite
   ============================================ */

/* News Item Styling */
.news-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.news-header h4 {
    color: #2c3e50;
    font-weight: 600;
}

/* News Text Content */
.news-text {
    line-height: 1.6;
    color: #333;
}

.news-text h3 {
    font-size: 1.1rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.news-text p {
    margin-bottom: 0.8rem;
}

.news-text strong, 
.news-text em {
    font-weight: 600;
}

/* ============================================
   ZEITUNG PAGE - Zeitungsartikel Anzeige
   Für: includes/pages/zeitung.php
   Zeigt alle Zeitungsartikel einer Liga/Saison
   ============================================ */

/* Artikel-Container */
.zeitung-artikel {
    padding: 0;
}

/* Artikel-Überschrift */
.zeitung-artikel h3 {
    color: #212529;
    font-weight: 600;
    line-height: 1.3;
}

/* Artikel-Metadaten (Datum, Autor, etc.) */
.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

/* Artikel-Haupttext */
.article-text {
    font-size: 1rem;
    line-height: 1.7;
    color: #495057;
    text-align: justify;
}

.article-text p {
    margin-bottom: 1rem;
}

/* Artikel-Footer (Vereinsinfos am Ende) */
.article-footer {
    background-color: #f8f9fa;
    padding: 1rem;
    margin: 0 -1.5rem -1.5rem;
    border-bottom-left-radius: 0.375rem;
    border-bottom-right-radius: 0.375rem;
    border-top: 2px solid #dee2e6;
    box-shadow: 0 -2px 4px rgba(0,0,0,0.05);
}

/* Responsive: Mobile Ansicht */
@media (max-width: 768px) {
    .article-meta {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    /* Verstecke Trennzeichen zwischen Meta-Infos auf Mobile */
    .article-meta span.mx-2 {
        display: none;
    }
}

/* ============================================
   SIDEBAR/CONTENT ALIGNMENT FIX
   Sorgt dafür dass Sidebar und Content auf gleicher Höhe starten
   ============================================ */

.sidebar .sidebar-section:first-child .content-box {
    margin-top: 0;
}

/* ============================================
   KALENDER - ZAT Overview Page
   ============================================ */

/* Next ZAT row highlighting */
.table-warning {
    background-color: #fff3cd !important;
}

.table-warning td {
    border-color: #ffe69c !important;
}

/* Hover effect for table rows */
.table-hover tbody tr:hover {
    background-color: #f8f9fa;
    transition: background-color 0.15s ease-in-out;
}

/* Status badges sizing */
.badge {
    font-size: 0.85rem;
    padding: 0.35em 0.65em;
}

/* Icon styling for countdown */
.bi-alarm,
.bi-exclamation-triangle,
.bi-exclamation-circle {
    vertical-align: middle;
}

/* Card header link styling */
.card-header a.text-white:hover {
    text-decoration: underline !important;
    opacity: 0.9;
}

/* Placeholder card styling */
.card-body i[style*="font-size: 4rem"] {
    display: block;
}

/* Responsive table on mobile */
@media (max-width: 768px) {
    .table thead {
        display: none;
    }
    
    .table td {
        display: block;
        text-align: right;
        padding: 0.5rem;
        border: none;
    }
    
    .table td:before {
        content: attr(data-label);
        float: left;
        font-weight: bold;
    }
    
    .table tbody tr {
        border-bottom: 2px solid #dee2e6;
        margin-bottom: 1rem;
        display: block;
    }
}

/* Countdown text emphasis */
span.text-danger.fw-bold {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* ============================================
   LIGA ARCHIV - Archive Page Styling
   ============================================ */

/* Archiv Season Cards */
.card.shadow-sm {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card.shadow-sm:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15) !important;
}

/* Season Header Gradient */
.card-header.text-white h2 {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: 1px;
}

/* Event Type Badges */
.badge.bg-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%) !important;
    box-shadow: 0 2px 4px rgba(13, 110, 253, 0.3);
    padding: 0.5rem 1rem;
    font-weight: 600;
    position: relative;
    z-index: 10;
}

.badge.bg-warning {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%) !important;
    box-shadow: 0 2px 4px rgba(255, 193, 7, 0.3);
    padding: 0.5rem 1rem;
    font-weight: 600;
    position: relative;
    z-index: 10;
}

/* Event Name Headers */
.archiv-event-name {
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(0, 61, 130, 0.1);
}

/* Winner Cards */
.winner-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    z-index: 1;
}

.winner-card:hover {
    border-color: #0d6efd;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.15);
    transform: translateY(-2px);
    z-index: 2;
}

/* Team Logo Container */
.team-logo-container {
    position: relative;
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}

.team-logo-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
    border: 3px solid #dee2e6;
    background: white;
    padding: 8px;
}

.team-logo-container .trophy-placeholder {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #003d82 0%, #0056b3 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

/* Winner Info */
.winner-info {
    flex-grow: 1;
}

.winner-info .team-name {
    font-size: 1.75rem;
    font-weight: 700;
    color: #212529;
    line-height: 1.2;
}

.winner-info .trainer-name {
    font-size: 1.25rem;
    color: #495057;
    font-weight: 500;
}

.winner-info .trainer-name strong {
    color: #212529;
}

.winner-info .stats {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.winner-info .stats .badge {
    font-size: 1rem;
    padding: 0.6rem 1.2rem;
    font-weight: 600;
}

/* Action Button */
.col-auto .btn-lg {
    min-width: 160px;
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    white-space: nowrap;
}

/* Event Sections Grid */
.event-section {
    padding: 2rem;
    border-bottom: 1px solid #e9ecef;
    min-height: 200px;
}

.event-section:last-child {
    border-bottom: none;
}

/* Responsive Grid Fix */
@media (max-width: 768px) {
    .event-section {
        border-right: none !important;
        border-bottom: 1px solid #e9ecef !important;
    }
}

/* Alert Boxes in Archive */
.event-section .alert {
    margin-bottom: 0;
    border-radius: 8px;
}

/* Statistics Footer */
.archive-stats {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    padding: 2rem;
}

.archive-stats .stat-item {
    text-align: center;
    padding: 1rem;
}

.archive-stats .stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #003d82;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.archive-stats .stat-label {
    font-size: 0.9rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Empty State */
.empty-archive {
    padding: 4rem 2rem;
    text-align: center;
}

.empty-archive i {
    font-size: 5rem;
    color: #dee2e6;
    margin-bottom: 1.5rem;
}

.empty-archive h5 {
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.empty-archive p {
    color: #adb5bd;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .winner-card {
        margin-bottom: 1rem;
    }
    
    .card-header h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .team-logo-container {
        width: 80px;
        height: 80px;
    }
    
    .team-logo-container .trophy-placeholder {
        width: 80px;
        height: 80px;
    }
    
    .winner-info .team-name {
        font-size: 1.25rem;
    }
    
    .winner-info .trainer-name {
        font-size: 1rem;
    }
    
    .col-auto .btn-lg {
        width: 100%;
        min-width: auto;
    }
    
    .archive-stats .stat-value {
        font-size: 2rem;
    }
}

/* ============================================
   LIGA STATISTIK - Ewige Tabellen
   Für: includes/pages/liga-statistik.php
   ============================================ */

/* Ewige Tabelle - Kompaktes Design wie Original */
.ewige-tabelle {
    font-size: 0.9rem;
}

.ewige-tabelle thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    padding: 8px;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.ewige-tabelle tbody td {
    padding: 6px 8px;
    vertical-align: middle;
}

.ewige-tabelle tbody tr:hover {
    background-color: #f8f9fa;
}

/* Team-Links schwarz statt blau */
.ewige-tabelle .team-link {
    color: #000;
    text-decoration: none;
}

.ewige-tabelle .team-link:hover {
    text-decoration: underline;
    color: #000;
}

/* Tab-Styling für Statistik-Seite */
.nav-tabs .nav-link {
    color: #495057;
    border: 1px solid transparent;
    border-top-left-radius: 0.25rem;
    border-top-right-radius: 0.25rem;
}

.nav-tabs .nav-link:hover {
    border-color: #e9ecef #e9ecef #dee2e6;
    background-color: #f8f9fa;
}

.nav-tabs .nav-link.active {
    color: #495057;
    background-color: #fff;
    border-color: #dee2e6 #dee2e6 #fff;
    font-weight: 600;
}

.nav-pills .nav-link {
    color: #495057;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.nav-pills .nav-link:hover {
    background-color: #e9ecef;
}

.nav-pills .nav-link.active {
    background-color: #0d6efd;
    color: #fff;
    border-color: #0d6efd;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .ewige-tabelle {
        font-size: 0.8rem;
    }
    
    .nav-tabs .nav-link,
    .nav-pills .nav-link {
        font-size: 0.875rem;
        padding: 0.5rem 0.75rem;
    }
}

/* Forum Posts Liste */
.forum-posts-list,
.sidebarItemList {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Einzelner Post - Box mit 24px Avatar links */
.box24.sidebarItem {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #e5e5e5;
}

.box24.sidebarItem:last-child {
    border-bottom: none;
}

.box24.sidebarItem:hover {
    background-color: #f8f9fa;
}

/* Avatar Bild */
.userAvatarImage {
    flex-shrink: 0;
    border-radius: 3px;
    display: block;
}

/* Content Bereich */
.sidebarItemTitle {
    flex: 1;
    min-width: 0;
}

.sidebarItemTitle h3 {
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}

.sidebarItemTitle h3 a {
    color: #333;
    text-decoration: none;
}

.sidebarItemTitle h3 a:hover {
    color: #0066cc;
    text-decoration: underline;
}

/* Meta-Info (User + Zeit) */
.sidebarItemTitle small {
    display: block;
    font-size: 12px;
    color: #888;
    margin-top: 2px;
}

.sidebarItemTitle small a.userLink {
    color: #666;
    text-decoration: none;
    font-weight: 500;
}

.sidebarItemTitle small a.userLink:hover {
    color: #0066cc;
}

.separatorLeft {
    margin-left: 8px;
    padding-left: 8px;
    border-left: 1px solid #ddd;
}

/* ============================================
   ENCRYPT.PHP - Passwort Verschlüsselung
   ============================================ */

.font-monospace {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.input-group input[readonly] {
    background-color: #f8f9fa;
}

/* Responsive Anmeldung */
@media (max-width: 768px) {
    .leagues-grid {
        grid-template-columns: 1fr;
    }
    
    .next-steps-box {
        margin-bottom: 1rem;
    }
}

/* Spielplan: Mobile Version standardmäßig verstecken */
.spielplan-mobile {
    display: none;
}