/* ============================================
   Global Styles
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0f172a;
    min-height: 100vh;
    color: white;
}

/* Animated Background */
body::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: transparent;
    background-size: 50px 50px;
    animation: none;
    top: -50%;
    left: -50%;
    z-index: 0;
}

/* ============================================
   Page Header
   ============================================ */

.page-header {
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.98) 0%, rgba(12, 74, 110, 0.6) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid #0e7490;
    padding: 2rem 0;
    position: relative;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0;
    color: white;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    color: #22d3ee;
}

.header-emblem {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.header-emblem-ring {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 2px solid #0e7490;
    box-shadow: 0 0 0 3px rgba(14, 116, 144, 0.15), 0 0 20px rgba(34, 211, 238, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 40% 35%, rgba(14, 116, 144, 0.25) 0%, rgba(17, 24, 39, 0.6) 70%);
}

.header-emblem-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.05rem;
}

.header-emblem-trophy {
    font-size: 1.5rem;
    color: #22d3ee;
    filter: drop-shadow(0 0 4px rgba(34, 211, 238, 0.5));
    line-height: 1;
}

.header-emblem-year {
    font-size: 0.85rem;
    font-weight: 900;
    line-height: 1;
    color: #22d3ee;
    letter-spacing: -0.5px;
}

/* ============================================
   Site Header
   ============================================ */

.site-header {
    background: rgba(10, 18, 35, 0.98);
    border-bottom: 1px solid rgba(14, 116, 144, 0.25);
    padding: 1.1rem 0;
    text-align: center;
    position: relative;
    z-index: 1;
}

.site-header-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.site-header-title {
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, #22d3ee 0%, #0e7490 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
    margin: 0;
}

.site-header-divider {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #0e7490;
    font-size: 0.75rem;
}

.site-header-divider span {
    display: block;
    height: 1px;
    width: 24px;
    background: linear-gradient(90deg, transparent, #0e7490);
}

.site-header-divider span:last-child {
    background: linear-gradient(90deg, #0e7490, transparent);
}

.site-header-subtitle {
    font-size: 0.78rem;
    color: #94a3b8;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 0;
}

/* ── Navbar Logo Ring (Brand) ── */
.nav-logo-ring {
    height: 44px;
    padding: 0 0.6rem;
    border-radius: 10px;
    border: 2px solid #0e7490;
    box-shadow: 0 0 0 3px rgba(14, 116, 144, 0.12), 0 0 10px rgba(34, 211, 238, 0.08);
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: linear-gradient(135deg, rgba(14, 116, 144, 0.2) 0%, rgba(17, 24, 39, 0.7) 100%);
    flex-shrink: 0;
}

.nav-logo-trophy {
    font-size: 1.5rem;
    color: #22d3ee;
    filter: drop-shadow(0 0 5px rgba(34, 211, 238, 0.55));
    flex-shrink: 0;
}

.nav-logo-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    line-height: 1;
}

.nav-logo-year {
    font-size: 0.75rem;
    font-weight: 900;
    background: linear-gradient(135deg, #22d3ee 0%, #0e7490 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.3px;
}

.nav-logo-divider {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    color: #0e7490;
    font-size: 0.38rem;
}

.nav-logo-divider span {
    display: block;
    height: 1px;
    width: 8px;
    background: #0e7490;
}

.nav-logo-sub {
    font-size: 0.34rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #7dd3e8;
    text-transform: uppercase;
}

/* ============================================
   Navigation
   ============================================ */

.navbar-custom {
    background: rgba(17, 24, 39, 0.95) !important;
    backdrop-filter: blur(10px);
    border-top: 2px solid #0e7490;
    border-bottom: 2px solid #0e7490;
    padding: 1rem 0 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.navbar-custom .navbar-brand {
    display: flex !important;
    align-items: center;
    padding: 0;
    text-decoration: none;
    flex-shrink: 0;
}

.navbar-brand-emblem {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid #0e7490;
    box-shadow: 0 0 0 2px rgba(14, 116, 144, 0.15), 0 0 12px rgba(34, 211, 238, 0.12);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 40% 35%, rgba(14, 116, 144, 0.25) 0%, rgba(17, 24, 39, 0.6) 70%);
    gap: 0.05rem;
    transition: box-shadow 0.3s ease;
}

.navbar-brand:hover .navbar-brand-emblem {
    box-shadow: 0 0 0 3px rgba(14, 116, 144, 0.25), 0 0 18px rgba(34, 211, 238, 0.25);
}

.navbar-brand-emblem i {
    font-size: 1rem;
    color: #22d3ee;
    filter: drop-shadow(0 0 3px rgba(34, 211, 238, 0.4));
    line-height: 1;
}

.navbar-brand-emblem span {
    font-size: 0.6rem;
    font-weight: 900;
    color: #22d3ee;
    letter-spacing: -0.5px;
    line-height: 1;
}

.navbar-custom .navbar-collapse {
    flex-basis: 100%;
}

.navbar-custom .navbar-nav {
    width: 100%;
}

@media (min-width: 992px) {
    .navbar-custom .navbar-collapse {
        flex: 1;
        flex-basis: auto;
        flex-wrap: nowrap;
    }

    .navbar-custom .navbar-nav {
        width: auto;
        flex: 1;
        flex-wrap: nowrap;
        margin-left: 0 !important;
        margin-right: 0.75rem !important;
    }

    .navbar-auth-desktop {
        flex-shrink: 0;
    }
}

.navbar-custom .nav-link {
    color: #e0e0e0 !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem !important;
    margin: 0.25rem 0;
    border-radius: 6px;
    white-space: nowrap;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
    color: #22d3ee !important;
    background: rgba(14, 116, 144, 0.15);
}

.navbar-custom .navbar-toggler {
    border: 2px solid #0e7490 !important;
    padding: 0.4rem 0.75rem;
    background-color: rgba(17, 24, 39, 0.5);
    border-radius: 6px;
    margin-left: auto !important;
}

.navbar-custom .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%2322d3ee' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    background-size: 1.5rem;
}

.dropdown-menu {
    background: rgba(17, 24, 39, 0.98) !important;
    border: 1px solid rgba(14, 116, 144, 0.3) !important;
    border-radius: 6px !important;
}

.dropdown-menu .dropdown-item {
    color: #e0e0e0 !important;
    padding: 0.6rem 1rem !important;
}

.dropdown-menu .dropdown-item:hover {
    background: rgba(14, 116, 144, 0.2) !important;
    color: #22d3ee !important;
}

.btn-login {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: linear-gradient(135deg, #0e7490 0%, #0891b2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-login:hover {
    box-shadow: 0 6px 18px rgba(14, 116, 144, 0.4);
    color: white;
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 2rem;
}

.trophy-icon {
    font-size: 8rem;
    margin-bottom: 2rem;
}

/* Hero Emblem */
.hero-emblem {
    margin-bottom: 2.5rem;
}

.hero-emblem-ring {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    border: 3px solid #0e7490;
    box-shadow: 0 0 0 6px rgba(14, 116, 144, 0.15), 0 0 40px rgba(34, 211, 238, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 40% 35%, rgba(14, 116, 144, 0.25) 0%, rgba(17, 24, 39, 0.6) 70%);
    margin: 0 auto;
}

.hero-emblem-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
}

.hero-emblem-trophy {
    font-size: 3rem;
    color: #22d3ee;
    filter: drop-shadow(0 0 8px rgba(34, 211, 238, 0.5));
}

.hero-emblem-year {
    font-size: 2.6rem;
    font-weight: 900;
    line-height: 1;
    color: #22d3ee;
    letter-spacing: -1px;
}

.hero-emblem-divider {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #0e7490;
    font-size: 1rem;
    width: 100%;
    justify-content: center;
}

.hero-emblem-divider span {
    display: block;
    height: 1px;
    width: 28px;
    background: #0e7490;
}

.hero-emblem-sub {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: #7dd3e8;
    text-transform: uppercase;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    color: #22d3ee;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    color: #e0e0e0;
    max-width: 600px;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 8px;
    border: none;
    background: linear-gradient(135deg, #0e7490 0%, #0891b2 100%);
    color: white;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.btn-primary-large:hover {
    box-shadow: 0 8px 24px rgba(14, 116, 144, 0.5);
    color: white;
}

.btn-secondary-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 8px;
    border: 2px solid #0e7490;
    background: transparent;
    color: #22d3ee;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.btn-secondary-large:hover {
    background: #0e7490;
    color: white;
}

/* ============================================
   Welcome Text
   ============================================ */

.welcome-text {
    max-width: 680px;
    width: 100%;
    margin-top: 3rem;
    padding: 2rem 2.5rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(14, 116, 144, 0.3);
    border-radius: 14px;
    backdrop-filter: blur(10px);
    text-align: left;
    color: #cbd5e1;
    line-height: 1.75;
}

.welcome-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #22d3ee;
    margin-bottom: 1rem;
}

.welcome-text p {
    font-size: 0.97rem;
    margin-bottom: 0.85rem;
}

.welcome-text p:last-child {
    margin-bottom: 0;
}

.welcome-text strong {
    color: #e2e8f0;
    font-weight: 700;
}

.welcome-text {
    max-width: 760px;
    width: 100%;
    margin-top: 2.25rem;
    padding: 1.5rem 1.75rem;
    background: rgba(34, 211, 238, 0.04);
    border: 1px solid rgba(34, 211, 238, 0.25);
    border-radius: 14px;
    backdrop-filter: blur(10px);
    text-align: left;
}

.welcome-footer {
    color: #64748b;
    font-size: 0.88rem !important;
    border-top: 1px solid rgba(14, 116, 144, 0.2);
    padding-top: 0.85rem;
    margin-top: 0.25rem;
}

/* ============================================
   Turnier-Update
   ============================================ */

.turnier-update,
.turnier-fazit {
    max-width: 760px;
    width: 100%;
    margin-top: 2.25rem;
    padding: 1.5rem 1.75rem;
    background: rgba(34, 211, 238, 0.04);
    border: 1px solid rgba(34, 211, 238, 0.25);
    border-radius: 14px;
    backdrop-filter: blur(10px);
    text-align: left;
}

.turnier-update-inner {
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

.turnier-update-ball {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wm-ball-img {
    width: 140px;
    height: 140px;
    filter: drop-shadow(0 4px 16px rgba(34, 211, 238, 0.35));
    transition: transform 0.4s ease;
}

.wm-ball-img:hover {
    transform: rotate(15deg) scale(1.06);
}

.turnier-update-content {
    flex: 1;
    min-width: 0;
    color: #cbd5e1;
    line-height: 1.75;
}

.update-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #22d3ee;
    margin-bottom: 1rem;
}

.turnier-update-content p {
    font-size: 0.97rem;
    margin-bottom: 0.85rem;
}

.turnier-update-content p:last-of-type {
    margin-bottom: 0;
}

.turnier-update-content strong {
    color: #e2e8f0;
    font-weight: 700;
}

.vote-hint-btn {
    display: inline-flex;
    align-items: center;
    margin-top: 1rem;
    padding: 0.55rem 1.2rem;
    background: rgba(34, 211, 238, 0.12);
    border: 1px solid rgba(34, 211, 238, 0.45);
    border-radius: 8px;
    color: #22d3ee;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.vote-hint-btn:hover {
    background: rgba(34, 211, 238, 0.22);
    border-color: #22d3ee;
    color: #67e8f9;
}

@media (max-width: 600px) {
    .turnier-update,
    .turnier-fazit,
    .welcome-text {
        padding: 1.25rem;
    }
    .turnier-update-inner {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    .wm-ball-img {
        width: 110px;
        height: 110px;
    }
}

/* ============================================
   Features
   ============================================ */

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
    padding: 0 2rem;
    max-width: 1200px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.feature {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #0e7490;
}

.feature i {
    font-size: 3rem;
    color: #22d3ee;
    margin-bottom: 1rem;
}

.feature h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: white;
}

.feature p {
    color: #ccc;
    font-size: 0.95rem;
}

/* ============================================
   Schedule Table
   ============================================ */

.container-schedule {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.page-title {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #0e7490;
}

.page-title h1 {
    font-size: 3rem;
    font-weight: 800;
    color: #22d3ee;
    margin-bottom: 0.5rem;
}

.page-title p {
    color: #ccc;
    font-size: 1.1rem;
}

.schedule-table {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(14, 116, 144, 0.3);
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    margin-bottom: 2rem;
}

.schedule-table-header {
    background: rgba(14, 116, 144, 0.2);
    border-bottom: 2px solid #0e7490;
    padding: 1rem;
}

.schedule-table-header h3 {
    margin: 0;
    color: #22d3ee;
    font-weight: 700;
    font-size: 1.1rem;
}

.schedule-table table {
    width: 100%;
    margin: 0;
    color: white;
}

.schedule-table thead {
    background: rgba(255, 255, 255, 0.05);
}

.schedule-table th {
    padding: 0.8rem;
    color: #22d3ee;
    font-weight: 600;
    text-align: left;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(14, 116, 144, 0.3);
}

.schedule-table td {
    padding: 0.8rem;
    border-bottom: 1px solid rgba(14, 116, 144, 0.1);
    font-size: 0.9rem;
}

.schedule-table tbody tr:hover {
    background: rgba(14, 116, 144, 0.15);
}

.match-time {
    color: #22d3ee;
    font-weight: 600;
    white-space: nowrap;
    display: block;
}

.group-label {
    display: block;
    font-size: 0.8rem;
    color: #999;
    font-weight: 500;
    margin-top: 0.05rem;
}

.match-number {
    background: rgba(14, 116, 144, 0.25);
    color: #22d3ee;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.8rem;
    white-space: nowrap;
}

.team-cell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.team-flag-small {
    display: inline-block;
    width: 24px;
    height: 16px;
    border-radius: 3px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.team-name-cell {
    min-width: 150px;
}

/* ===== Wrapper für Kompakt-Ansicht (bewusst ohne .schedule-table) ===== */
.schedule-table--flat {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(14, 116, 144, 0.3);
    border-radius: 12px;
    overflow-x: auto;
    backdrop-filter: blur(10px);
    margin-bottom: 2rem;
}
.schedule-table--flat table {
    width: 100%;
    margin: 0;
    color: white;
    border-collapse: collapse;
}
.schedule-table--flat thead {
    background: rgba(255, 255, 255, 0.05);
}
.schedule-table--flat th {
    padding: 0.8rem;
    color: #22d3ee;
    font-weight: 600;
    text-align: left;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(14, 116, 144, 0.3);
}
.schedule-table--flat td {
    padding: 0.6rem 0.8rem;
    border-bottom: 1px solid rgba(14, 116, 144, 0.1);
    font-size: 0.85rem;
}
.schedule-table--flat tbody tr:hover {
    background: rgba(14, 116, 144, 0.15);
}

/* ===== schedule-table--flat innerhalb gs-card: kein Extra-Rahmen, einheitlicher Kopf ===== */
.gs-card .schedule-table--flat {
    border: none;
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
    margin-bottom: 0;
}
.gs-card .schedule-table--flat thead {
    background: rgba(14, 116, 144, 0.35);
    border-bottom: 2px solid rgba(34, 211, 238, 0.4);
}
.gs-card .schedule-table--flat th {
    color: #93c5fd;
    font-weight: 700;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.gs-card .schedule-table--flat td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.gs-card .schedule-table--flat tbody tr:hover {
    background: rgba(255, 255, 255, 0.05) !important;
}
.gs-card .schedule-table--flat .other-pairings-separator td {
    background: rgba(14, 116, 144, 0.25) !important;
    color: #93c5fd !important;
    border-top: 2px solid rgba(34, 211, 238, 0.4);
}

/* Light-Mode Override */
[data-theme="light"] .gs-card .schedule-table--flat thead {
    background: rgba(14, 116, 144, 0.18);
    border-bottom-color: rgba(14, 116, 144, 0.4);
}
[data-theme="light"] .gs-card .schedule-table--flat th {
    color: #1d4ed8;
}
[data-theme="light"] .gs-card .schedule-table--flat td {
    border-bottom-color: rgba(0, 0, 0, 0.07);
}
[data-theme="light"] .gs-card .schedule-table--flat .other-pairings-separator td {
    background: rgba(14, 116, 144, 0.1) !important;
    color: #1d4ed8 !important;
    border-top-color: rgba(14, 116, 144, 0.4);
}

/* ===== Kompakte Spielplan-Tabelle ===== */
.compact-schedule-table {
    width: 100%;
    font-size: 0.85rem;
}
.compact-schedule-table .col-nr   { width: 42px; }
.compact-schedule-table .col-date { white-space: nowrap; color: #22d3ee; font-weight: 600; }
.compact-schedule-table .col-home { width: 22%; }
.compact-schedule-table .col-score{ width: 70px; }
.compact-schedule-table .col-away { width: 22%; }
.compact-schedule-table .col-stadium { font-size: 0.78rem; color: #aaa; white-space: nowrap; }
.compact-schedule-table .col-type { white-space: nowrap; }

.compact-date {
    font-size: 0.82rem;
    white-space: nowrap;
}
.compact-score {
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.05em;
    white-space: nowrap;
}
.compact-type-badge {
    background: rgba(14, 116, 144, 0.2);
    color: #22d3ee;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

[data-theme="light"] .btn-schedule-toggle {
    background: rgba(14, 116, 144, 0.08);
    border-color: rgba(14, 116, 144, 0.35);
    color: #0e7490;
}
[data-theme="light"] .btn-schedule-toggle.active {
    background: rgba(14, 116, 144, 0.2);
    border-color: #0e7490;
    color: #0e4f5c;
}
[data-theme="light"] .compact-schedule-table .col-date { color: #0e7490; }
[data-theme="light"] .compact-type-badge { background: rgba(14,116,144,0.12); color: #0e7490; }
[data-theme="light"] .compact-score { color: #1a1a2e; }

.score-cell {
    font-weight: 800;
    color: #22d3ee;
    font-size: 1rem;
    min-width: 60px;
    text-align: center;
}

.match-vs {
    text-align: center;
    color: #999;
    font-weight: 600;
    min-width: 30px;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.status-open {
    background: rgba(34, 211, 238, 0.15);
    color: #22d3ee;
}

.status-finished {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
}

.status-locked {
    background: rgba(255, 152, 0, 0.2);
    color: #ff9800;
}

.no-games {
    text-align: center;
    padding: 3rem 1rem;
    color: #ccc;
}

.no-games i {
    font-size: 4rem;
    color: #22d3ee;
    margin-bottom: 1rem;
}

/* ============================================
   Footer
   ============================================ */

.footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 991px) {
    .navbar-custom .container-fluid {
        justify-content: flex-start !important;
    }

    .navbar-nav .nav-item.border-top {
        border-top: 1px solid rgba(14, 116, 144, 0.3) !important;
    }

    .navbar-nav .nav-item.border-top .btn-login {
        color: white !important;
    }

    .navbar-auth-desktop {
        display: none !important;
    }
}

@media (min-width: 992px) {
    .navbar-nav .nav-item.border-top {
        display: none !important;
    }

    .navbar-auth-desktop {
        display: flex !important;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .trophy-icon {
        font-size: 5rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-primary-large,
    .btn-secondary-large {
        width: 100%;
        justify-content: center;
    }

    .page-title h1 {
        font-size: 2rem;
    }

    /* Responsive Schedule Table - Compact Card Layout */
    .schedule-table table {
        display: block;
        width: 100%;
    }

    .schedule-table thead {
        display: none;
    }

    .schedule-table tbody {
        display: flex;
        flex-direction: column;
        gap: 0.8rem;
    }

    .schedule-table tbody tr {
        display: grid;
        grid-template-columns: 1fr auto auto auto 1fr;
        grid-template-rows: auto auto;
        border: 1px solid rgba(14, 116, 144, 0.3);
        border-radius: 8px;
        padding: 0.7rem;
        background: rgba(255, 255, 255, 0.05);
        gap: 0.5rem 0.4rem;
        align-items: center;
    }

    .schedule-table tbody tr:hover {
        background: rgba(255, 255, 255, 0.05);
    }

    /* Hide all td by default */
    .schedule-table td {
        display: none !important;
    }

    /* Top Left: Spiel Number */
    .schedule-table td:nth-child(1) {
        display: block !important;
        grid-column: 1;
        grid-row: 1;
        color: #22d3ee;
        font-weight: 700;
        font-size: 1.1rem;
        padding: 0 !important;
        border: none !important;
        align-self: start;
    }

    /* Top Right: Date Time */
    .schedule-table td:nth-child(2) {
        display: block !important;
        grid-column: 2;
        grid-row: 1;
        color: #e0e0e0;
        font-size: 0.9rem;
        padding: 0 !important;
        border: none !important;
        text-align: right;
        align-self: start;
    }

    .schedule-table td:nth-child(2)::before {
        content: '';
    }

    /* Bottom Left: Home Team */
    .schedule-table td:nth-child(3) {
        display: flex !important;
        grid-column: 1;
        grid-row: 2;
        align-items: center;
        gap: 0.3rem;
        padding: 0 !important;
        border: none !important;
        margin: 0;
        min-width: 0;
    }

    /* Bottom Center: Score cells */
    .schedule-table td:nth-child(4) {
        grid-column: 2;
        grid-row: 2;
        display: block !important;
        padding: 0 !important;
        border: none !important;
        margin: 0;
        color: #22d3ee;
        font-weight: 800;
        font-size: 1rem;
        text-align: center;
    }

    .schedule-table td:nth-child(5) {
        grid-column: 3;
        grid-row: 2;
        display: block !important;
        padding: 0 !important;
        border: none !important;
        margin: 0;
        color: #22d3ee;
        font-weight: 800;
        font-size: 1rem;
        text-align: center;
    }

    .schedule-table td:nth-child(6) {
        grid-column: 4;
        grid-row: 2;
        display: block !important;
        padding: 0 !important;
        border: none !important;
        margin: 0;
        color: #22d3ee;
        font-weight: 800;
        font-size: 1rem;
        text-align: center;
    }

    /* Away Team (Flag + Name) */
    .schedule-table td:nth-child(7) {
        display: flex !important;
        grid-column: 5;
        grid-row: 2;
        align-items: flex-start;
        gap: 0.3rem;
        padding: 0 !important;
        border: none !important;
        margin: 0;
        justify-self: end;
        min-width: 0;
    }

    .schedule-table td:nth-child(7) .team-cell {
        flex-direction: column;
        align-items: flex-end;
    }

    .schedule-table td:nth-child(7) .team-name-cell {
        text-align: right;
        max-width: 60px;
    }

    /* Hide Stadium and Status */
    .schedule-table td:nth-child(8),
    .schedule-table td:nth-child(9) {
        display: none !important;
    }

    /* Kompakte Tabelle: Card-Transforms komplett deaktivieren */
    .schedule-table--flat table {
        display: table !important;
        width: 100%;
    }
    .schedule-table--flat thead {
        display: table-header-group !important;
    }
    .schedule-table--flat tbody {
        display: table-row-group !important;
        flex-direction: unset !important;
        gap: unset !important;
    }
    .schedule-table--flat tbody tr {
        display: table-row !important;
        grid-template-columns: unset !important;
        border: none !important;
        border-radius: 0 !important;
        padding: 0 !important;
        background: none !important;
        gap: unset !important;
    }
    .schedule-table--flat tbody tr:hover {
        background: rgba(14, 116, 144, 0.15) !important;
    }
    .schedule-table--flat td,
    .schedule-table--flat th {
        display: table-cell !important;
        padding: 0.45rem 0.35rem !important;
        border-bottom: 1px solid rgba(14, 116, 144, 0.1) !important;
        font-size: 0.78rem;
    }
    .schedule-table--flat .compact-hide {
        display: none !important;
    }
    .schedule-table--flat .team-name-cell {
        min-width: 0;
        max-width: 72px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 0.78rem;
    }
    .schedule-table--flat .team-cell {
        gap: 0.2rem;
        flex-wrap: nowrap;
    }

    .team-cell {
        display: flex;
        align-items: center;
        gap: 0.3rem;
        min-width: 0;
    }

    .team-name-cell {
        min-width: 0;
        font-size: 0.9rem;
        color: #e0e0e0;
        word-break: break-word;
        overflow-wrap: break-word;
        line-height: 1.2;
    }

    .team-flag-small {
        width: 20px;
        height: 13px;
        border-radius: 2px;
        flex-shrink: 0;
    }

    .match-number {
        background: rgba(14, 116, 144, 0.25);
        color: #22d3ee;
        padding: 0.2rem 0.5rem;
        border-radius: 4px;
        font-weight: 600;
        font-size: 0.85rem;
    }

    .score-cell {
        color: #22d3ee;
        font-weight: 800;
        font-size: 1.15rem;
    }

    .match-vs {
        color: #22d3ee;
        font-weight: 800;
        font-size: 1.15rem;
        margin: 0 0.2rem;
    }
}

/* ============================================
   Group Tip Buttons (Profile Overview)
   ============================================ */

.btn-group-tip {
    border: 2px solid #22d3ee;
    color: #22d3ee;
    background: rgba(34, 211, 238, 0.12);
    font-weight: 600;
    transition: all 0.2s ease;
    position: relative;
    letter-spacing: 0.02em;
}

.btn-group-tip:hover {
    background: rgba(34, 211, 238, 0.28);
    border-color: #67e8f9;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(34, 211, 238, 0.35);
}

.btn-group-tip.completed {
    border-color: #4ade80;
    color: #4ade80;
    background: rgba(74, 222, 128, 0.14);
}

.btn-group-tip.completed:hover {
    background: rgba(74, 222, 128, 0.28);
    border-color: #86efac;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(74, 222, 128, 0.35);
}

/* ============================================
   Group Standings Card (own container, no schedule-table)
   ============================================ */

.gs-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(14, 116, 144, 0.35);
    border-radius: 10px;
    overflow: hidden;
}

.gs-card-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(14, 116, 144, 0.3);
    background: rgba(14, 116, 144, 0.15);
}

.gs-card-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #22d3ee;
}

/* ============================================
   Tip Input Table
   ============================================ */

.tip-table-wrap {
    overflow-x: auto;
}

.tip-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .85rem;
}

.tip-table thead tr {
    background: rgba(14, 116, 144, 0.35);
    border-bottom: 2px solid rgba(34, 211, 238, 0.4);
}

.tip-table thead th {
    padding: .45rem .6rem;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #93c5fd;
    white-space: nowrap;
}

.tip-table .tt-home  { text-align: right; }
.tip-table .tt-score { text-align: center; }

.tip-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    transition: background 0.15s;
}

.tip-table tbody tr:hover { background: rgba(255,255,255,0.04) !important; }

.tip-table .tt-row-finished { background: rgba(14, 116, 144, 0.08); }
.tip-table .tt-row-locked   { background: rgba(255, 255, 255, 0.03); }

.tip-table td {
    padding: .5rem .6rem;
    vertical-align: middle;
}

.tip-table .tt-date-cell  { font-size: .78rem; color: #9ca3af; white-space: nowrap; }
.tip-table .tt-home-cell  { text-align: right; }
.tip-table .tt-input-cell { text-align: center; width: 52px; padding: .35rem .2rem; }
.tip-table .tt-colon      { text-align: center; padding: .35rem .1rem; font-weight: 800; color: #22d3ee; width: 14px; }
.tip-table .tt-away-cell  { }
.tip-table .tt-status-cell{ text-align: center; white-space: nowrap; }

.tt-team {
    display: flex;
    align-items: center;
    gap: .35rem;
    min-width: 0;
}

.tt-team-home {
    justify-content: flex-end;
}

.tip-input {
    width: 46px;
    text-align: center;
    background: rgba(14, 116, 144, 0.25);
    border: 1px solid rgba(34, 211, 238, 0.4);
    color: white;
    border-radius: 6px;
    font-weight: 700;
    font-size: .9rem;
    padding: .25rem .2rem;
    display: inline-block;
}

.tip-input:focus {
    background: rgba(14, 116, 144, 0.45);
    border-color: #22d3ee;
    box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.2);
    outline: none;
    color: white;
}

.tip-score-locked {
    font-size: 1rem;
    font-weight: 700;
    color: #6b7280;
}

/* Mobile: card per game row */
@media (max-width: 768px) {
    .tip-table thead          { display: none; }
    .tip-table,
    .tip-table tbody          { display: block; width: 100%; }

    .tip-table tbody tr {
        display: grid;
        grid-template-columns: 1fr auto auto auto 1fr;
        grid-template-rows: auto auto;
        padding: .55rem .6rem;
        gap: .3rem .25rem;
        border: 1px solid rgba(14, 116, 144, 0.25);
        border-radius: 8px;
        margin-bottom: .45rem;
        background: rgba(255, 255, 255, 0.04);
        align-items: center;
    }

    .tip-table td              { display: none; padding: 0; border: none; vertical-align: middle; }

    /* Row 1 left: match number */
    .tip-table td:nth-child(1) {
        display: flex !important;
        align-items: center;
        grid-column: 1; grid-row: 1;
    }

    /* Row 1 right: date */
    .tip-table td:nth-child(2) {
        display: block !important;
        grid-column: 5; grid-row: 1;
        text-align: right;
        font-size: .72rem;
        color: #9ca3af;
    }

    /* Row 2: Home team (right-aligned) */
    .tip-table td:nth-child(3) {
        display: flex !important;
        grid-column: 1; grid-row: 2;
        justify-content: flex-end;
    }

    /* Row 2: Home input */
    .tip-table td:nth-child(4) {
        display: flex !important;
        align-items: center;
        justify-content: center;
        grid-column: 2; grid-row: 2;
    }

    /* Row 2: Colon */
    .tip-table td:nth-child(5) {
        display: flex !important;
        align-items: center;
        justify-content: center;
        grid-column: 3; grid-row: 2;
    }

    /* Row 2: Away input */
    .tip-table td:nth-child(6) {
        display: flex !important;
        align-items: center;
        justify-content: center;
        grid-column: 4; grid-row: 2;
    }

    /* Row 2: Away team */
    .tip-table td:nth-child(7) {
        display: flex !important;
        grid-column: 5; grid-row: 2;
    }

    /* Status: hidden on mobile (row color indicates state) */
    .tip-table td:nth-child(8) { display: none !important; }

    .tip-table .tt-row-finished { background: rgba(14,116,144,0.15); border-color: rgba(34,211,238,0.2); }
    .tip-table .tt-row-locked   { background: rgba(255,255,255,0.02); opacity: .75; }

    .tip-input { width: 42px; font-size: .85rem; }

    .tip-table .team-name-cell { max-width: 70px; font-size: .78rem; }
}

/* ============================================
   Group Standings Table
   ============================================ */

.group-standings {
    overflow-x: auto;
}

.group-standings table {
    width: 100%;
    border-collapse: collapse;
    font-size: .82rem;
}

.group-standings thead tr {
    background: rgba(14, 116, 144, 0.35);
    border-bottom: 2px solid rgba(34, 211, 238, 0.4);
}

.group-standings thead th {
    padding: .45rem .5rem;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #93c5fd;
    text-align: center;
    white-space: nowrap;
}

.group-standings thead th:nth-child(2) {
    text-align: left;
}

.group-standings tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    transition: background 0.15s;
}

.group-standings tbody tr:hover {
    background: rgba(255, 255, 255, 0.05) !important;
}

.group-standings td {
    padding: .45rem .5rem;
    text-align: center;
    white-space: nowrap;
}

.group-standings td:nth-child(2) {
    text-align: left;
}

.group-standings .gs-rank {
    font-weight: 700;
    font-size: .9rem;
    width: 24px;
}

.group-standings .gs-team {
    display: flex;
    align-items: center;
    gap: .4rem;
    min-width: 0;
}

.group-standings .gs-team img {
    height: 16px;
    width: auto;
    flex-shrink: 0;
}

.group-standings .gs-team span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.group-standings .gs-pkt {
    font-weight: 800;
    font-size: .95rem;
    color: #22d3ee;
}

.group-standings .gs-adv {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    margin-left: .3rem;
    flex-shrink: 0;
}

.group-standings .gs-third {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fbbf24;
    margin-left: .3rem;
    flex-shrink: 0;
}

.group-standings .row-adv   { background: rgba(74, 222, 128, 0.12); }
.group-standings .row-third { background: rgba(251, 191, 36, 0.10); }
.group-standings .gs-row-tied { outline: 1px solid rgba(251, 191, 36, 0.45); }

.gs-rank-override-th {
    text-align: center;
    white-space: nowrap;
    font-size: .72rem;
    color: rgba(255,255,255,.6);
}
.gs-rank-override-td { text-align: center; }

.gs-rank-input {
    width: 2.8rem;
    padding: .2rem .3rem;
    text-align: center;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 4px;
    color: #e2e8f0;
    font-size: .85rem;
}
.gs-rank-input:focus {
    outline: none;
    border-color: rgba(34,211,238,.6);
    background: rgba(34,211,238,.08);
}
.gs-rank-input-tied {
    border-color: rgba(251,191,36,.7);
    background: rgba(251,191,36,.1);
    color: #fbbf24;
}
.gs-rank-input-tied:focus {
    border-color: #fbbf24;
    background: rgba(251,191,36,.18);
}

.gs-info-card .gs-card-header {
    border-bottom-color: rgba(34,211,238,.25);
}
.gs-info-card ol li { color: #cbd5e1; }
.gs-info-card ol li strong { color: #e2e8f0; }
.gs-info-card p { color: #94a3b8; }

@media (max-width: 768px) {
    /* Reset schedule-table card layout for group standings */
    .group-standings table  { display: table !important; }
    .group-standings thead  { display: table-header-group !important; }
    .group-standings tbody  { display: table-row-group !important; flex-direction: unset !important; gap: unset !important; }
    .group-standings tbody tr { display: table-row !important; grid-template-columns: unset !important; padding: 0 !important; border-radius: 0 !important; }
    .group-standings td     { display: table-cell !important; }
    .group-standings thead th { font-size: .65rem; padding: .35rem .3rem; }
    .group-standings td     { font-size: .75rem; padding: .35rem .3rem; }
}

/* ============================================
   Responsive Design - Mobile
   ============================================ */

@media (max-width: 768px) {
    .page-header {
        padding: 1.5rem 1rem;
    }

    .header-title {
        font-size: 1.75rem;
    }

    .header-title i {
        font-size: 2rem;
    }

    .navbar-custom {
        padding: 0.75rem 0 !important;
    }

    .navbar-custom .navbar-brand {
        display: none;
    }

    .navbar-custom .nav-link {
        font-size: 0.95rem;
        padding: 0.4rem 0.8rem !important;
    }

    .btn-login {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 1rem 0.5rem;
    }

    .header-title {
        font-size: 1.35rem;
        gap: 0.5rem;
    }

    .header-title i {
        font-size: 1.5rem;
    }

    .navbar-custom .nav-link {
        font-size: 0.85rem;
        padding: 0.35rem 0.6rem !important;
    }

    .btn-login {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }
}

/* ============================================
   Form Controls
   ============================================ */

.form-control:disabled,
.form-control-disabled {
    background-color: rgba(14, 116, 144, 0.1);
    border-color: rgba(34, 211, 238, 0.2);
    color: #94a3b8;
    cursor: not-allowed;
    opacity: 0.8;
}

.form-control:disabled::placeholder,
.form-control-disabled::placeholder {
    color: #64748b;
}

/* ============================================
   Rules Page
   ============================================ */

.container-main {
    position: relative;
    z-index: 1;
    padding: 2rem 1rem;
}

.rules-container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 2rem;
    background: rgba(17, 24, 39, 0.85);
    border: 1px solid rgba(14, 116, 144, 0.3);
    border-radius: 12px;
    color: #e0e0e0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
}

.rules-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #22d3ee;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.rules-title i {
    color: #22d3ee;
}

.rules-content h2 {
    color: #22d3ee;
    margin-bottom: 1rem;
    border-bottom: 2px solid #0e7490;
    padding-bottom: 0.5rem;
}

.rules-intro {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: #a0aec0;
}

.rules-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.rules-table thead {
    background: rgba(14, 116, 144, 0.6);
    color: white;
}

.rules-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    border: 1px solid rgba(14, 116, 144, 0.3);
}

.rules-table td {
    padding: 0.8rem 1rem;
    border: 1px solid rgba(14, 116, 144, 0.2);
}

.rules-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.03);
}

.rules-table tbody tr:hover {
    background: rgba(14, 116, 144, 0.1);
}

.rules-table .category-header {
    background: rgba(14, 116, 144, 0.25);
    font-weight: 600;
    color: #22d3ee;
}

.rules-table .category-header td {
    border-left: 4px solid #0e7490;
}

.points-column {
    text-align: center;
    width: 100px;
}

.points {
    text-align: center;
    font-weight: 700;
    color: #22d3ee;
    font-size: 1.1rem;
}

.rules-notes {
    background: rgba(14, 116, 144, 0.1);
    border-left: 4px solid #0e7490;
    padding: 1.5rem;
    border-radius: 4px;
}

.rules-notes h3 {
    color: #22d3ee;
    margin-bottom: 1rem;
}

.rules-notes ul {
    margin-left: 1.5rem;
    color: #a0aec0;
}

.rules-notes li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .rules-container {
        margin: 1rem;
        padding: 1rem;
    }

    .rules-title {
        font-size: 1.5rem;
    }

    .rules-table {
        font-size: 0.85rem;
    }

    .rules-table th,
    .rules-table td {
        padding: 0.6rem 0.8rem;
    }

    .points-column {
        width: 80px;
    }
}

/* ============================================
   Theme Toggle Button (Fixed)
   ============================================ */

.theme-toggle-nav {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid #0e7490;
    background: transparent;
    color: #22d3ee;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
    padding: 0;
}

.theme-toggle-nav:hover {
    background: rgba(14, 116, 144, 0.2);
    transform: rotate(20deg);
}

/* ============================================
   Light Mode
   ============================================ */

[data-theme="light"] body {
    background: #f0f9ff;
    color: #0f172a;
}

[data-theme="light"] .theme-toggle-nav {
    border-color: #0891b2;
    color: #0891b2;
}

[data-theme="light"] .theme-toggle-nav:hover {
    background: rgba(8, 145, 178, 0.1);
}

[data-theme="light"] .navbar-brand-emblem {
    border-color: #0891b2;
    background: radial-gradient(circle at 40% 35%, rgba(8, 145, 178, 0.15) 0%, rgba(240, 249, 255, 0.6) 70%);
    box-shadow: 0 0 0 2px rgba(8, 145, 178, 0.12), 0 0 12px rgba(8, 145, 178, 0.1);
}

[data-theme="light"] .navbar-brand-emblem i,
[data-theme="light"] .navbar-brand-emblem span {
    color: #0891b2;
    filter: none;
}

/* ============================================
   Back-to-Top Button
   ============================================ */

.back-to-top {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid #0e7490;
    background: rgba(17, 24, 39, 0.92);
    color: #22d3ee;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(10px);
    padding: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    transform: translateY(8px);
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.back-to-top:hover {
    box-shadow: 0 6px 20px rgba(14, 116, 144, 0.45);
    transform: translateY(-3px);
}

[data-theme="light"] .back-to-top {
    background: rgba(240, 249, 255, 0.95);
    border-color: #0891b2;
    color: #0891b2;
    box-shadow: 0 4px 14px rgba(8, 145, 178, 0.2);
}

/* Header */
[data-theme="light"] .page-header {
    background: linear-gradient(135deg, #ffffff 0%, #e0f2fe 100%);
    border-bottom-color: #0891b2;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .header-title {
    color: #0891b2;
    text-shadow: none;
}

[data-theme="light"] .header-emblem-ring {
    border-color: #0891b2;
    background: radial-gradient(circle at 40% 35%, rgba(8, 145, 178, 0.15) 0%, rgba(240, 249, 255, 0.6) 70%);
    box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.12), 0 0 20px rgba(8, 145, 178, 0.12);
}

[data-theme="light"] .header-emblem-trophy,
[data-theme="light"] .header-emblem-year {
    color: #0891b2;
}

/* Navbar */
[data-theme="light"] .navbar-custom {
    background: rgba(255, 255, 255, 0.97) !important;
    border-bottom-color: #0891b2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .navbar-custom .nav-link {
    color: #1e293b !important;
}

[data-theme="light"] .navbar-custom .nav-link:hover,
[data-theme="light"] .navbar-custom .nav-link.active {
    color: #0891b2 !important;
    background: rgba(8, 145, 178, 0.08);
}

[data-theme="light"] .navbar-custom .navbar-toggler {
    border-color: #0891b2 !important;
    background-color: rgba(240, 249, 255, 0.8);
}

/* Dropdown */
[data-theme="light"] .dropdown-menu {
    background: #ffffff !important;
    border-color: rgba(8, 145, 178, 0.25) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .dropdown-menu .dropdown-item {
    color: #1e293b !important;
}

[data-theme="light"] .dropdown-menu .dropdown-item:hover {
    background: rgba(8, 145, 178, 0.08) !important;
    color: #0891b2 !important;
}

/* Hero */
[data-theme="light"] .hero {
    color: #0f172a;
}

[data-theme="light"] .hero h1 {
    color: #0891b2;
    text-shadow: none;
}

[data-theme="light"] .hero p {
    color: #334155;
}

[data-theme="light"] .hero-emblem-ring {
    border-color: #0891b2;
    background: radial-gradient(circle at 40% 35%, rgba(8, 145, 178, 0.12) 0%, rgba(240, 249, 255, 0.6) 70%);
}

[data-theme="light"] .hero-emblem-trophy,
[data-theme="light"] .hero-emblem-year,
[data-theme="light"] .hero-emblem-sub {
    color: #0891b2;
    filter: none;
}

[data-theme="light"] .hero-emblem-divider {
    color: #0891b2;
}

[data-theme="light"] .hero-emblem-divider span {
    background: #0891b2;
}

/* Features */
[data-theme="light"] .feature {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(8, 145, 178, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .feature:hover {
    background: #ffffff;
    border-color: #0891b2;
    box-shadow: 0 4px 16px rgba(8, 145, 178, 0.15);
}

[data-theme="light"] .feature h3 {
    color: #0f172a;
}

[data-theme="light"] .feature p {
    color: #475569;
}

/* Page Title */
[data-theme="light"] .page-title {
    border-bottom-color: #0891b2;
}

[data-theme="light"] .page-title h1 {
    color: #0891b2;
}

[data-theme="light"] .page-title p {
    color: #475569;
}

/* Schedule Table */
[data-theme="light"] .schedule-table {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(8, 145, 178, 0.25);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .schedule-table-header {
    background: rgba(8, 145, 178, 0.08);
    border-bottom-color: #0891b2;
}

[data-theme="light"] .schedule-table table {
    color: #0f172a;
}

[data-theme="light"] .schedule-table thead {
    background: rgba(8, 145, 178, 0.06);
}

[data-theme="light"] .schedule-table th {
    color: #0369a1;
    border-bottom-color: rgba(8, 145, 178, 0.2);
}

[data-theme="light"] .schedule-table td {
    border-bottom-color: rgba(8, 145, 178, 0.08);
}

[data-theme="light"] .schedule-table tbody tr:hover {
    background: rgba(8, 145, 178, 0.04);
}

[data-theme="light"] .match-time {
    color: #0891b2;
}

[data-theme="light"] .match-number {
    background: rgba(8, 145, 178, 0.12);
    color: #0891b2;
}

[data-theme="light"] .score-cell {
    color: #0891b2;
}

[data-theme="light"] .match-vs {
    color: #64748b;
}

[data-theme="light"] .group-label {
    color: #64748b;
}

/* Compact Schedule Table Light Mode */
[data-theme="light"] .schedule-table--flat {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(8, 145, 178, 0.25);
}

[data-theme="light"] .schedule-table--flat table {
    color: #0f172a;
}

[data-theme="light"] .schedule-table--flat thead {
    background: rgba(8, 145, 178, 0.06);
}

[data-theme="light"] .schedule-table--flat th {
    color: #0369a1;
    border-bottom-color: rgba(8, 145, 178, 0.2);
}

[data-theme="light"] .schedule-table--flat td {
    border-bottom-color: rgba(8, 145, 178, 0.08);
    color: #0f172a;
}

[data-theme="light"] .schedule-table--flat tbody tr:hover {
    background: rgba(8, 145, 178, 0.04);
}

[data-theme="light"] .schedule-table--flat .col-date {
    color: #0369a1;
}

[data-theme="light"] .schedule-table--flat .col-stadium {
    color: #64748b;
}

[data-theme="light"] .team-name-cell {
    color: #0f172a;
}

[data-theme="light"] .status-open {
    background: rgba(8, 145, 178, 0.1);
    color: #0891b2;
}

[data-theme="light"] .no-games {
    color: #475569;
}

[data-theme="light"] .no-games i {
    color: #0891b2;
}

/* Footer */
[data-theme="light"] .footer {
    color: rgba(15, 23, 42, 0.5);
    border-top-color: rgba(8, 145, 178, 0.2);
}

/* Group Standings Card */
[data-theme="light"] .gs-card {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(8, 145, 178, 0.25);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .gs-card-header {
    background: rgba(8, 145, 178, 0.08);
    border-bottom-color: rgba(8, 145, 178, 0.2);
}

[data-theme="light"] .group-standings table {
    color: #0f172a;
}

[data-theme="light"] .group-standings thead tr {
    background: rgba(8, 145, 178, 0.12);
    border-bottom-color: rgba(8, 145, 178, 0.35);
}

[data-theme="light"] .group-standings thead th {
    color: #0369a1;
}

[data-theme="light"] .group-standings tbody tr {
    border-bottom-color: rgba(8, 145, 178, 0.08);
}

[data-theme="light"] .group-standings tbody tr:hover {
    background: rgba(8, 145, 178, 0.04) !important;
}

[data-theme="light"] .group-standings .gs-pkt {
    color: #0891b2;
}

[data-theme="light"] .group-standings .row-adv {
    background: rgba(74, 222, 128, 0.12);
}

[data-theme="light"] .group-standings .row-third {
    background: rgba(251, 191, 36, 0.1);
}

[data-theme="light"] .gs-rank-input {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.12);
    color: #0f172a;
}

[data-theme="light"] .gs-rank-input:focus {
    border-color: rgba(8, 145, 178, 0.6);
    background: rgba(8, 145, 178, 0.06);
    color: #0f172a;
}

[data-theme="light"] .gs-rank-input-tied {
    border-color: rgba(251, 191, 36, 0.7);
    background: rgba(251, 191, 36, 0.1);
    color: #92400e;
}

[data-theme="light"] .gs-info-card ol li {
    color: #334155;
}

[data-theme="light"] .gs-info-card ol li strong {
    color: #0f172a;
}

[data-theme="light"] .welcome-text strong {
    color: #0e7490;
    font-weight: 700;
}

[data-theme="light"] .gs-info-card p {
    color: #475569;
}

/* Tip Input Table */
[data-theme="light"] .tip-table tbody tr {
    border-bottom-color: rgba(8, 145, 178, 0.12);
}

[data-theme="light"] .tip-table tbody tr:hover {
    background: rgba(8, 145, 178, 0.04) !important;
}

[data-theme="light"] .tip-table thead tr {
    background: rgba(8, 145, 178, 0.12);
    border-bottom-color: rgba(8, 145, 178, 0.35);
}

[data-theme="light"] .tip-table thead th {
    color: #0369a1;
}

[data-theme="light"] .tip-table .tt-row-finished {
    background: rgba(8, 145, 178, 0.06);
}

[data-theme="light"] .tip-table .tt-row-locked {
    background: rgba(0, 0, 0, 0.02);
    opacity: 0.85;
}

[data-theme="light"] .tip-table .tt-date-cell {
    color: #64748b;
}

[data-theme="light"] .tip-table .tt-colon {
    color: #0891b2;
}

[data-theme="light"] .tip-input {
    background: rgba(8, 145, 178, 0.08);
    border-color: rgba(8, 145, 178, 0.35);
    color: #0f172a;
}

[data-theme="light"] .tip-input:focus {
    background: rgba(8, 145, 178, 0.15);
    border-color: #0891b2;
    box-shadow: 0 0 0 2px rgba(8, 145, 178, 0.15);
    color: #0f172a;
}

[data-theme="light"] .tip-score-locked {
    color: #94a3b8;
}

/* Btn Group Tip */
[data-theme="light"] .btn-group-tip {
    background: rgba(8, 145, 178, 0.08);
    border-color: #0891b2;
    color: #0891b2;
}

[data-theme="light"] .btn-group-tip:hover {
    background: rgba(8, 145, 178, 0.18);
    border-color: #0369a1;
    color: #0f172a;
    box-shadow: 0 4px 14px rgba(8, 145, 178, 0.25);
}

[data-theme="light"] .btn-group-tip.completed {
    background: rgba(74, 222, 128, 0.1);
    border-color: #22c55e;
    color: #15803d;
}

/* Form Controls */
[data-theme="light"] .form-control:disabled,
[data-theme="light"] .form-control-disabled {
    background-color: rgba(8, 145, 178, 0.05);
    border-color: rgba(8, 145, 178, 0.2);
    color: #64748b;
}

/* Rules Page */
[data-theme="light"] .rules-container {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(8, 145, 178, 0.25);
    color: #0f172a;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .rules-intro {
    color: #475569;
}

[data-theme="light"] .rules-content h2 {
    color: #0891b2;
    border-bottom-color: #0891b2;
}

[data-theme="light"] .rules-table thead {
    background: rgba(8, 145, 178, 0.2);
    color: #0f172a;
}

[data-theme="light"] .rules-table th {
    border-color: rgba(8, 145, 178, 0.25);
}

[data-theme="light"] .rules-table td {
    border-color: rgba(8, 145, 178, 0.15);
}

[data-theme="light"] .rules-table tbody tr:nth-child(even) {
    background: rgba(8, 145, 178, 0.04);
}

[data-theme="light"] .rules-table tbody tr:hover {
    background: rgba(8, 145, 178, 0.08);
}

[data-theme="light"] .rules-table .category-header {
    background: rgba(8, 145, 178, 0.12);
    color: #0891b2;
}

[data-theme="light"] .rules-table .category-header td {
    border-left-color: #0891b2;
}

[data-theme="light"] .points {
    color: #0891b2;
}

[data-theme="light"] .rules-notes {
    background: rgba(8, 145, 178, 0.06);
    border-left-color: #0891b2;
}

[data-theme="light"] .rules-notes h3 {
    color: #0891b2;
}

[data-theme="light"] .rules-notes ul {
    color: #475569;
}

/* ── Countdown ─────────────────────────────────────────────────────────── */
.countdown-block {
    margin: 1.5rem auto 0.5rem;
    text-align: center;
}

.countdown-label {
    font-size: 0.85rem;
    color: var(--text-muted, #94a3b8);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
}

.countdown-timer {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(34, 211, 238, 0.08);
    border: 1px solid rgba(34, 211, 238, 0.25);
    border-radius: 1rem;
    padding: 0.75rem 1.5rem;
    margin-bottom: 0.5rem;
}

.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 2.8rem;
}

.countdown-value {
    font-size: 2rem;
    font-weight: 700;
    color: #22d3ee;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.countdown-name {
    font-size: 0.65rem;
    color: var(--text-muted, #94a3b8);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.2rem;
}

.countdown-sep {
    font-size: 1.6rem;
    font-weight: 700;
    color: #22d3ee;
    opacity: 0.5;
    margin-bottom: 0.9rem;
    align-self: flex-start;
    padding-top: 0.1rem;
}

.countdown-deadline-info {
    font-size: 0.8rem;
    color: var(--text-muted, #94a3b8);
}

.countdown-expired {
    display: inline-flex;
    align-items: center;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 0.75rem;
    padding: 0.6rem 1.2rem;
    color: #f87171;
    font-size: 0.95rem;
    font-weight: 600;
    margin: 1rem 0 0.5rem;
}

[data-theme="light"] .countdown-timer {
    background: rgba(8, 145, 178, 0.07);
    border-color: rgba(8, 145, 178, 0.25);
}

[data-theme="light"] .countdown-value {
    color: #0891b2;
}

[data-theme="light"] .countdown-sep {
    color: #0891b2;
}

/* ── Spielerliste Mobile-Cards ─────────────────────────────────────────── */
.spieler-card {
    border: 1px solid rgba(34, 211, 238, 0.15);
    border-radius: 0.75rem;
    margin-bottom: 0.6rem;
    overflow: hidden;
}

.spieler-card-top {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.8rem;
    background: rgba(34, 211, 238, 0.06);
    border-bottom: 1px solid rgba(34, 211, 238, 0.1);
}

.spieler-card-nr {
    font-size: 0.8rem;
    color: var(--text-muted, #94a3b8);
    min-width: 1.2rem;
}

.spieler-card-nick {
    font-weight: 700;
    font-size: 1rem;
}

.spieler-card-bottom {
    display: flex;
    gap: 0;
}

.spieler-card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.5rem 0.8rem;
    font-size: 0.9rem;
}

.spieler-card-info + .spieler-card-info {
    border-left: 1px solid rgba(34, 211, 238, 0.1);
}

.spieler-card-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted, #94a3b8);
}

[data-theme="light"] .spieler-card {
    border-color: rgba(8, 145, 178, 0.2);
}

[data-theme="light"] .spieler-card-top {
    background: rgba(8, 145, 178, 0.06);
    border-bottom-color: rgba(8, 145, 178, 0.12);
}

[data-theme="light"] .spieler-card-info + .spieler-card-info {
    border-left-color: rgba(8, 145, 178, 0.12);
}

/* ── Posts Feed ────────────────────────────────────────────────────────── */
.posts-feed {
    padding: 0.5rem 0;
}

.post-item {
    display: flex;
    gap: 0.9rem;
    padding: 1rem 1.25rem;
    align-items: flex-start;
}

.post-item-divider {
    border-top: 1px solid rgba(34, 211, 238, 0.1);
}

.post-avatar {
    flex-shrink: 0;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    background: rgba(34, 211, 238, 0.18);
    border: 1px solid rgba(34, 211, 238, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    color: var(--accent, #22d3ee);
    line-height: 1;
}

.post-body {
    flex: 1;
    min-width: 0;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.4rem 0.6rem;
    margin-bottom: 0.35rem;
}

.post-author {
    font-weight: 700;
    color: var(--accent, #22d3ee);
    font-size: 0.95rem;
}

.post-location {
    font-size: 0.78rem;
    color: var(--text-muted, #94a3b8);
}

.post-message {
    font-size: 0.92rem;
    line-height: 1.55;
    word-break: break-word;
}

[data-theme="light"] .post-item-divider {
    border-top-color: rgba(8, 145, 178, 0.12);
}

[data-theme="light"] .post-avatar {
    background: rgba(8, 145, 178, 0.1);
    border-color: rgba(8, 145, 178, 0.3);
    color: #0891b2;
}

[data-theme="light"] .post-author {
    color: #0891b2;
}

[data-theme="light"] .turnier-update,
[data-theme="light"] .turnier-fazit {
    background: rgba(8, 145, 178, 0.04);
    border-color: rgba(8, 145, 178, 0.25);
}

[data-theme="light"] .update-title {
    color: #0891b2;
}

[data-theme="light"] .turnier-update-content {
    color: #334155;
}

[data-theme="light"] .turnier-update-content strong {
    color: #0e7490;
}

[data-theme="light"] .vote-hint-btn {
    background: rgba(8, 145, 178, 0.08);
    border-color: rgba(8, 145, 178, 0.4);
    color: #0891b2;
}

[data-theme="light"] .vote-hint-btn:hover {
    background: rgba(8, 145, 178, 0.16);
    border-color: #0891b2;
    color: #0369a1;
}
