/**
 * Premier League Darts Köln — Main Stylesheet
 *
 * Brand Colors:
 *   Primary (Red):  #c41e2a
 *   Accent (Gold):  #d4a017
 *   Dark:           #1a1a2e
 *   Light BG:       #f5f5f5
 */

/* ═══════════════════════════════════════════════════════════════════════
   CSS Variables
   ═══════════════════════════════════════════════════════════════════════ */

:root {
    --primary: #c41e2a;
    --primary-dark: #a01822;
    --primary-light: #e8343f;
    --accent: #d4a017;
    --accent-dark: #b8890f;
    --accent-light: #f0c040;

    --dark: #1a1a2e;
    --dark-2: #2d2d44;
    --gray-900: #1f2937;
    --gray-800: #374151;
    --gray-700: #4b5563;
    --gray-600: #6b7280;
    --gray-500: #9ca3af;
    --gray-400: #d1d5db;
    --gray-300: #e5e7eb;
    --gray-200: #f3f4f6;
    --gray-100: #f9fafb;

    --white: #ffffff;
    --bg: #f5f5f5;
    --text: #1f2937;
    --text-light: #6b7280;
    --text-muted: #9ca3af;

    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;

    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-round: 50%;

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);

    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --navbar-height: 60px;
}

/* ═══════════════════════════════════════════════════════════════════════
   Reset & Base
   ═══════════════════════════════════════════════════════════════════════ */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* ═══════════════════════════════════════════════════════════════════════
   Navbar
   ═══════════════════════════════════════════════════════════════════════ */

.navbar {
    background: var(--white);
    border-bottom: 2px solid var(--primary);
    height: var(--navbar-height);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.navbar-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    height: 100%;
    gap: 1.5rem;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--dark);
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.brand-icon {
    width: 36px;
    height: 36px;
    background: var(--primary);
    color: white;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.brand-logo {
    width: 65px;
    height: 65px;
    border-radius: 0;
    object-fit: contain;
    flex-shrink: 0;
    position: relative;
    z-index: 10;
}

.brand-text {
    font-size: 1.1rem;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex: 1;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.75rem;
    color: var(--gray-700);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--radius);
    transition: all 0.2s;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--primary);
    background: rgba(196, 30, 42, 0.05);
}

.nav-link.active {
    color: var(--primary);
    background: rgba(196, 30, 42, 0.1);
}

/* Live indicator dot in navigation */
.live-nav-dot {
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    animation: navDotPulse 1.5s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes navDotPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 4px rgba(239, 68, 68, 0.6); }
    50% { opacity: 0.4; box-shadow: none; }
}

/* Nav "Mehr" Dropdown */
.nav-more {
    position: relative;
}

.nav-more-trigger {
    cursor: pointer;
    background: none;
    border: none;
}

.nav-more-arrow {
    font-size: 0.6rem;
    margin-left: 0.1rem;
    transition: transform 0.2s;
}

.nav-more-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    min-width: 230px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s;
    z-index: 200;
    padding: 0.4rem 0;
}

.nav-more-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-more-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1rem;
    color: var(--text);
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.15s;
    white-space: nowrap;
}

.nav-more-item:hover {
    background: rgba(196, 30, 42, 0.05);
    color: var(--primary);
}

.nav-more-item i:first-child {
    width: 20px;
    text-align: center;
    color: var(--gray-500);
    font-size: 0.9rem;
}

.nav-more-item:hover i:first-child {
    color: var(--primary);
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
}

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--gray-700);
    cursor: pointer;
    padding: 0.5rem;
}

/* User Menu */
.user-menu {
    position: relative;
}

.user-menu-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-lg);
    padding: 0.3rem 0.75rem 0.3rem 0.3rem;
    cursor: pointer;
    transition: all 0.2s;
}

.user-menu-trigger:hover {
    border-color: var(--primary);
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: white;
    border-radius: var(--radius-round);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

.user-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
}

.user-menu-trigger i.fa-chevron-down {
    font-size: 0.7rem;
    color: var(--gray-500);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
    z-index: 200;
}

.user-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    color: var(--text);
    font-size: 0.9rem;
    transition: background 0.15s;
}

.dropdown-item:hover {
    background: var(--gray-100);
    color: var(--primary);
}

.dropdown-divider {
    height: 1px;
    background: var(--gray-200);
    margin: 0.25rem 0;
}

/* Notification Bell */
.notif-bell {
    position: relative;
    cursor: pointer;
    padding: 0.4rem;
    font-size: 1.1rem;
    color: var(--text-muted);
    transition: color 0.2s;
}
.notif-bell:hover { color: var(--primary); }
.notif-badge {
    position: absolute;
    top: -2px; right: -4px;
    background: var(--primary);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    min-width: 16px; height: 16px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    line-height: 1;
}
.notif-dropdown {
    position: absolute;
    top: 100%; right: 0;
    width: 320px;
    max-width: calc(100vw - 2rem);
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    z-index: 1000;
    overflow: hidden;
}
.notif-header {
    padding: 0.75rem 1rem;
    font-weight: 700;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--gray-200);
}
.notif-list { max-height: 300px; overflow-y: auto; }
.notif-empty { padding: 1.5rem; text-align: center; color: var(--text-muted); font-size: 0.85rem; }
.notif-item {
    display: flex; gap: 0.75rem; padding: 0.75rem 1rem;
    cursor: pointer; transition: background 0.15s;
    border-bottom: 1px solid var(--gray-50);
}
.notif-item:hover { background: var(--gray-50); }
.notif-unread { background: rgba(196,30,42,0.04); }
.notif-item-icon { color: var(--primary); margin-top: 0.15rem; flex-shrink: 0; }
.notif-item-content { flex: 1; min-width: 0; }
.notif-item-title { font-weight: 600; font-size: 0.85rem; }
.notif-item-msg { font-size: 0.8rem; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Live Nav Dot */
.live-nav-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: #22c55e; display: inline-block;
    margin-left: 4px; vertical-align: middle;
    animation: livePulse 1.5s infinite;
}
@keyframes livePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* "Mehr" Dropdown in Navbar */
.nav-dropdown-wrap {
    position: relative;
}
.nav-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: none;
    border: none;
    font-family: inherit;
    cursor: pointer;
}
.nav-dropdown-trigger .fa-chevron-down {
    transition: transform 0.2s;
}
.nav-dropdown-wrap.open .nav-dropdown-trigger .fa-chevron-down {
    transform: rotate(180deg);
}
.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 200;
    padding: 0.35rem 0;
}
.nav-dropdown-wrap.open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 1rem;
    color: var(--text);
    font-size: 0.85rem;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
}
.nav-dropdown-item:hover {
    background: var(--gray-100);
    color: var(--primary);
}
.nav-dropdown-item.active {
    color: var(--primary);
    font-weight: 600;
}
.nav-dropdown-item i {
    width: 18px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.nav-dropdown-item:hover i,
.nav-dropdown-item.active i {
    color: var(--primary);
}

/* Mobile Section Label */
.mobile-section-label {
    padding: 0.5rem 1rem 0.25rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════════════════
   Samsung-Style "Mehr" Bottom Sheet
   ═══════════════════════════════════════════════════════════════════════ */

.mehr-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 199;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.mehr-overlay.open {
    display: block;
    opacity: 1;
}

.mehr-sheet {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-radius: 20px 20px 0 0;
    z-index: 200;
    padding: 0.5rem 1rem calc(60px + env(safe-area-inset-bottom, 0) + 0.75rem);
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
    box-shadow: 0 -8px 40px rgba(0,0,0,0.15);
    max-height: 80vh;
    overflow-y: auto;
}
.mehr-sheet.open {
    transform: translateY(0);
}

.mehr-handle {
    display: flex;
    justify-content: center;
    padding: 0.5rem 0 0.75rem;
    cursor: pointer;
}
.mehr-handle span {
    width: 36px;
    height: 4px;
    background: var(--gray-400);
    border-radius: 4px;
}

.mehr-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    padding: 0 0 0.75rem;
}

.mehr-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 0.75rem 0.25rem;
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--text);
    font-size: 0.7rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
    transition: background 0.15s;
    -webkit-tap-highlight-color: transparent;
}
.mehr-tile:hover,
.mehr-tile:active {
    background: var(--gray-100);
    color: var(--text);
}

.mehr-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.mehr-user-section {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem 0;
    border-top: 1px solid var(--gray-200);
}

.mehr-user-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.65rem 0.75rem;
    border-radius: var(--radius-lg);
    background: var(--gray-100);
    color: var(--text);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s;
}
.mehr-user-btn:hover { background: var(--gray-200); color: var(--text); }
.mehr-logout { color: var(--danger); }
.mehr-logout:hover { background: rgba(239,68,68,0.1); color: var(--danger); }

.mehr-install {
    padding: 0.5rem 0 0.25rem;
}
.mehr-install-btn {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px dashed var(--primary);
    border-radius: var(--radius-lg);
    background: rgba(196,30,42,0.05);
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 700;
    font-family: var(--font);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s;
}
.mehr-install-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

@media (max-width: 768px) {
    .navbar-menu { display: none; }
    .user-name { display: none; }
    .navbar-toggle { display: none; }
    .mehr-sheet { display: block; }
    .brand-text { font-size: 1rem; }
}

@media (min-width: 769px) {
    .mehr-overlay, .mehr-sheet { display: none !important; }
}

/* ═══════════════════════════════════════════════════════════════════════
   Bottom Navigation (Mobile App-Style)
   ═══════════════════════════════════════════════════════════════════════ */

.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--gray-300);
    z-index: 100;
    padding-bottom: env(safe-area-inset-bottom, 0);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
}

@media (max-width: 768px) {
    .bottom-nav {
        display: flex;
        justify-content: space-around;
        align-items: stretch;
    }
    /* Push content above bottom nav */
    body { padding-bottom: calc(60px + env(safe-area-inset-bottom, 0)); }
    .footer { margin-bottom: 0; }
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    flex: 1;
    padding: 8px 4px;
    min-height: 56px;
    color: var(--gray-600);
    text-decoration: none;
    font-size: 0.65rem;
    font-weight: 500;
    border: none;
    background: none;
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.bottom-nav-item i {
    font-size: 1.2rem;
    line-height: 1;
}

.bottom-nav-item.active {
    color: var(--primary);
}

.bottom-nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 25%;
    right: 25%;
    height: 3px;
    background: var(--primary);
    border-radius: 0 0 3px 3px;
}

.bottom-nav-item:hover {
    color: var(--primary);
}

.bottom-nav-live-dot {
    position: absolute;
    top: 6px;
    right: calc(50% - 16px);
    width: 7px;
    height: 7px;
    background: #ef4444;
    border-radius: 50%;
    animation: navDotPulse 1.5s ease-in-out infinite;
}

/* ═══════════════════════════════════════════════════════════════════════
   Main Content
   ═══════════════════════════════════════════════════════════════════════ */

.main-content {
    flex: 1;
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
    width: 100%;
}

/* ═══════════════════════════════════════════════════════════════════════
   PWA Install Banner
   ═══════════════════════════════════════════════════════════════════════ */

.pwa-install-banner {
    background: linear-gradient(135deg, #1a1a2e, #2d2d44);
    color: white;
}
.pwa-install-inner {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.6rem 1.25rem; max-width: 1100px; margin: 0 auto;
    font-size: 0.85rem;
}
.pwa-install-inner > i { font-size: 1.2rem; color: var(--accent); }
.pwa-install-inner > span { flex: 1; }
.pwa-dismiss {
    background: none; border: none; color: rgba(255,255,255,0.6);
    font-size: 1.2rem; cursor: pointer; padding: 0 0.25rem;
}
.pwa-dismiss:hover { color: white; }

/* iOS Install Hint */
.ios-install-hint {
    position: fixed;
    bottom: calc(70px + env(safe-area-inset-bottom, 0));
    left: 1rem;
    right: 1rem;
    z-index: 300;
    animation: iosHintSlideUp 0.3s ease;
}
.ios-install-inner {
    background: var(--dark);
    color: white;
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-xl);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    position: relative;
    font-size: 0.9rem;
    line-height: 1.7;
}
.ios-install-inner::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid var(--dark);
}
.ios-install-close {
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    font-size: 1.3rem;
    color: rgba(255,255,255,0.6);
    cursor: pointer;
    line-height: 1;
}
.ios-install-close:hover { color: white; }
.ios-install-inner p { margin: 0; }

@keyframes iosHintSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════════════════════════
   QR Scanner Modal
   ═══════════════════════════════════════════════════════════════════════ */

.qr-modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.85);
    z-index: 10000; display: flex; align-items: center; justify-content: center;
    padding: 1rem;
}
.qr-modal {
    background: var(--white); border-radius: var(--radius-xl);
    max-width: 440px; width: 100%; overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.qr-modal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1rem 1.25rem; border-bottom: 1px solid var(--gray-200);
}
.qr-modal-header h3 { margin: 0; font-size: 1rem; }
.qr-modal-close {
    background: none; border: none; font-size: 1.5rem;
    cursor: pointer; color: var(--text-muted); line-height: 1;
}
.qr-modal-close:hover { color: var(--text-dark); }
.qr-reader { width: 100%; min-height: 300px; background: #000; }
.qr-result {
    padding: 1.25rem; text-align: center;
}
.qr-result-success {
    background: #f0fdf4; color: #166534;
}
.qr-result-success i { font-size: 2.5rem; color: #22c55e; display: block; margin-bottom: 0.5rem; }
.qr-result-error {
    background: #fef2f2; color: #991b1b;
}
.qr-result-error i { font-size: 2.5rem; color: #ef4444; display: block; margin-bottom: 0.5rem; }
.qr-result h4 { margin: 0 0 0.25rem; font-size: 1.1rem; }
.qr-result p { margin: 0; font-size: 0.85rem; opacity: 0.8; }
.qr-result .btn { margin-top: 1rem; }

/* Check-in Button (Dashboard) */
.checkin-section { margin-bottom: 1.5rem; }
.checkin-bar {
    background: linear-gradient(135deg, #1a1a2e, #2d2d44);
    border-radius: var(--radius-xl); padding: 1rem 1.5rem;
    display: flex; align-items: center; gap: 1rem;
    color: white;
}
.checkin-info { flex: 1; }
.checkin-title { font-weight: 800; font-size: 1rem; }
.checkin-subtitle { font-size: 0.8rem; opacity: 0.7; margin-top: 0.15rem; }
.btn-checkin {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white; border: none; border-radius: 50px;
    padding: 0.65rem 1.5rem; font-weight: 700; font-size: 0.9rem;
    cursor: pointer; transition: all 0.3s;
    display: flex; align-items: center; gap: 0.5rem;
    white-space: nowrap;
}
.btn-checkin:not(:disabled) {
    animation: checkinPulse 2s infinite;
}
.btn-checkin:not(:disabled):hover {
    transform: scale(1.05);
}
.btn-checkin:disabled {
    background: var(--gray-600); cursor: not-allowed; opacity: 0.6;
}
.btn-checkin .checkin-countdown { font-size: 0.75rem; font-weight: 400; opacity: 0.8; }
@keyframes checkinPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.4); }
    50% { box-shadow: 0 0 0 10px rgba(34,197,94,0); }
}
.checkin-done {
    background: #166534 !important; animation: none !important;
}

/* ═══════════════════════════════════════════════════════════════════
   Dein Spieltag — Unified Card (Dashboard)
   ═══════════════════════════════════════════════════════════════════ */
.spieltag-section { margin-bottom: 1.5rem; }
.spieltag-card {
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 100%);
    color: white; border-radius: var(--radius-xl);
    overflow: hidden; box-shadow: 0 4px 24px rgba(0,0,0,0.12);
}
.spieltag-header {
    display: flex; align-items: center; gap: 1rem;
    padding: 1.25rem 1.5rem;
}
.spieltag-icon { font-size: 2rem; opacity: 0.8; flex-shrink: 0; }
.spieltag-info { flex: 1; min-width: 0; }
.spieltag-title { font-weight: 800; font-size: 1.1rem; line-height: 1.3; }
.spieltag-detail { font-size: 0.82rem; opacity: 0.7; margin-top: 0.15rem; }
.spieltag-countdown { text-align: center; min-width: 70px; flex-shrink: 0; }
.spieltag-days {
    font-size: 2.5rem; font-weight: 900; line-height: 1;
    color: #f59e0b; transition: color 0.3s;
}
.spieltag-days.spieltag-today { color: #22c55e; }
.spieltag-days-label { font-size: 0.72rem; text-transform: uppercase; opacity: 0.65; letter-spacing: 0.5px; }
.spieltag-actions {
    display: flex; align-items: center; gap: 1rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255,255,255,0.05);
    border-top: 1px solid rgba(255,255,255,0.08);
    flex-wrap: wrap;
}
.spieltag-checkin-info { font-size: 0.85rem; opacity: 0.8; flex: 1; min-width: 120px; }
.spieltag-confirmed { font-size: 0.8rem; opacity: 0.6; white-space: nowrap; }
.spieltag-confirmed i { margin-right: 0.2rem; }

/* Check-in Button (in Spieltag-Card) */
.btn-spieltag-checkin {
    background: #22c55e; color: white; border: none;
    padding: 0.55rem 1.25rem; border-radius: var(--radius);
    font-weight: 700; font-size: 0.88rem; cursor: pointer;
    transition: all 0.3s; display: flex; align-items: center; gap: 0.4rem;
    white-space: nowrap; font-family: var(--font);
}
.btn-spieltag-checkin:hover:not(:disabled) { background: #16a34a; transform: scale(1.02); }
.btn-spieltag-checkin:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-spieltag-checkin.pulsing {
    animation: spieltagPulse 1.5s infinite;
}
@keyframes spieltagPulse {
    0%,100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.5); }
    50% { box-shadow: 0 0 0 8px rgba(34,197,94,0); }
}
.btn-spieltag-checkin.checked-in {
    background: rgba(34,197,94,0.2); color: #86efac;
    pointer-events: none; animation: none;
}

/* Link im Spieltag-Card */
.btn-spieltag-link {
    display: flex; align-items: center; gap: 0.3rem;
    color: rgba(255,255,255,0.6); font-size: 0.82rem; font-weight: 600;
    text-decoration: none; padding: 0.4rem 0.7rem;
    border: 1px solid rgba(255,255,255,0.15); border-radius: var(--radius);
    transition: all 0.2s; white-space: nowrap;
}
.btn-spieltag-link:hover { color: white; border-color: rgba(255,255,255,0.4); }

@media (max-width: 768px) {
    .spieltag-header { flex-wrap: wrap; }
    .spieltag-icon { display: none; }
    .spieltag-actions { gap: 0.5rem; }
}

/* QR Modal Tabs (QR scannen / Code eingeben) */
.qr-tabs {
    display: flex; border-bottom: 2px solid var(--gray-200);
}
.qr-tab {
    flex: 1; padding: 0.65rem 0.75rem; border: none; background: none;
    font-size: 0.85rem; font-weight: 600; cursor: pointer;
    color: var(--text-muted); transition: all 0.2s;
    display: flex; align-items: center; justify-content: center; gap: 0.4rem;
    font-family: var(--font);
}
.qr-tab.active {
    color: var(--primary); border-bottom: 2px solid var(--primary);
    margin-bottom: -2px;
}
.qr-tab:hover:not(.active) { color: var(--text-dark); background: var(--gray-50); }

/* PIN Input Section */
.pin-input-section {
    padding: 2rem 1.5rem; text-align: center;
}
.pin-instruction {
    font-size: 0.9rem; color: var(--text-dark); margin: 0 0 1.25rem;
    font-weight: 500;
}
.pin-digits {
    display: flex; justify-content: center; gap: 0.75rem; margin-bottom: 1.5rem;
}
.pin-digit {
    width: 56px; height: 64px; text-align: center; font-size: 1.75rem;
    font-weight: 800; border: 2px solid var(--gray-300); border-radius: var(--radius);
    background: var(--white); color: var(--text-dark);
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: var(--font);
}
.pin-digit:focus {
    border-color: var(--primary); outline: none;
    box-shadow: 0 0 0 3px rgba(196, 30, 42, 0.15);
}

/* Admin PIN Display (in QR modal) */
.admin-pin-display {
    margin-top: 1rem; padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, #1a1a2e, #2d2d44);
    border-radius: var(--radius); display: inline-flex;
    align-items: center; gap: 0.75rem;
}
.admin-pin-label {
    color: rgba(255,255,255,0.7); font-size: 0.85rem; font-weight: 600;
}
.admin-pin-code {
    color: #f59e0b; font-size: 1.75rem; font-weight: 900;
    letter-spacing: 0.5rem; font-family: var(--font);
}

/* Admin QR Display Modal */
.qr-display-content { padding: 1.5rem; text-align: center; }
.qr-display-content canvas { max-width: 280px; margin: 0 auto; }
.qr-display-actions {
    display: flex; gap: 0.5rem; justify-content: center;
    margin-top: 1rem; flex-wrap: wrap;
}

/* Admin QR Inline Card (Dashboard) */
.admin-qr-card {
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 100%);
    color: white; border-radius: var(--radius-xl);
    padding: 1.25rem; margin-bottom: 1.5rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
}
.admin-qr-card-header {
    display: flex; align-items: center; gap: 0.75rem;
    margin-bottom: 1rem;
}
.admin-qr-card-header h3 {
    margin: 0; font-size: 1rem; font-weight: 700;
}
.admin-qr-card-header i { font-size: 1.25rem; color: #f59e0b; }
.admin-qr-card-body {
    display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap;
    justify-content: center;
}
.admin-qr-card-empty {
    text-align: center; padding: 0.5rem 0;
}
.admin-qr-inline {
    display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
}
.admin-qr-inline-qr canvas { max-width: 160px; border-radius: 8px; }
.admin-qr-inline-pin {
    display: flex; align-items: center; gap: 0.5rem;
    background: rgba(255,255,255,0.1); border-radius: var(--radius);
    padding: 0.5rem 1rem;
}
.admin-qr-inline-pin-label {
    color: rgba(255,255,255,0.7); font-size: 0.8rem; font-weight: 600;
}
.admin-qr-inline-pin-code {
    color: #f59e0b; font-size: 1.5rem; font-weight: 900;
    letter-spacing: 0.4rem; font-family: var(--font);
}
.admin-qr-inline-actions {
    display: flex; gap: 0.5rem;
}
.admin-qr-inline-actions .btn {
    color: rgba(255,255,255,0.7); border-color: rgba(255,255,255,0.2);
    font-size: 0.75rem;
}
.admin-qr-inline-actions .btn:hover {
    color: white; border-color: rgba(255,255,255,0.4);
}

/* ═══════════════════════════════════════════════════════════════════════
   Late Check-in (Verspätungs-Freigabe)
   ═══════════════════════════════════════════════════════════════════════ */

/* Late Dialog im QR-Modal */
.late-dialog {
    border: 2px solid rgba(245, 158, 11, 0.4);
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border-radius: var(--radius-xl);
}

/* Late Waiting State (Spinner) */
.late-waiting { text-align: center; }
.late-waiting-content { padding: 1rem 0; }
.late-waiting-spinner {
    width: 48px; height: 48px; margin: 0 auto 1rem;
    border: 4px solid #e5e7eb; border-top: 4px solid #f59e0b;
    border-radius: 50%;
    animation: late-spin 1s linear infinite;
}
@keyframes late-spin { to { transform: rotate(360deg); } }
.late-waiting h4 { color: var(--text-dark); margin: 0 0 0.5rem; }
.late-waiting p { color: var(--text-muted); font-size: 0.85rem; margin: 0 0 0.25rem; }
.late-waiting-timer {
    font-size: 0.8rem; color: #f59e0b; font-weight: 600; margin-top: 0.5rem;
}

/* Late request button in QR modal */
.btn-late-request {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    color: white !important; font-weight: 700;
    border: none !important;
}
.btn-late-request:hover {
    background: linear-gradient(135deg, #d97706, #b45309) !important;
}

/* Dashboard Spieltag-Card: Late-Button */
.btn-spieltag-checkin.btn-late {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    animation: none;
}
.btn-spieltag-checkin.btn-late:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
    transform: scale(1.02);
}

/* Dashboard: Late pending state */
.btn-spieltag-checkin.late-pending {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24; pointer-events: none;
    animation: latePulse 2s ease-in-out infinite;
}
@keyframes latePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* ═══════════════════════════════════════════════════════════════════════
   Footer
   ═══════════════════════════════════════════════════════════════════════ */

.footer {
    background: var(--dark);
    color: var(--gray-400);
    padding: 1rem;
    font-size: 0.85rem;
    margin-top: auto;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-sep {
    margin: 0 0.5rem;
    opacity: 0.5;
}

.footer-version {
    opacity: 0.5;
}

/* ── Powered by Vision 180 — Global Footer Banner ────────────────── */
.vision180-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 1rem 1rem;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.vision180-divider {
    width: 100%;
    max-width: 500px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary) 30%, var(--primary) 70%, transparent);
    opacity: 0.3;
}

.vision180-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}

.vision180-powered {
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--gray-600);
}

.vision180-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem;
}

.vision180-logo {
    height: 42px;
    width: auto;
    filter: drop-shadow(0 0 8px rgba(196, 30, 42, 0.15));
    transition: filter 0.3s ease, transform 0.3s ease;
}
.vision180-logo:hover {
    filter: drop-shadow(0 0 16px rgba(196, 30, 42, 0.35));
    transform: scale(1.05);
}

.vision180-tagline {
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--gray-600);
    letter-spacing: 0.08em;
}

/* ═══════════════════════════════════════════════════════════════════════
   Hero
   ═══════════════════════════════════════════════════════════════════════ */

.hero {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
    color: white;
    padding: 2.5rem 2rem;
    border-radius: var(--radius-xl);
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(196, 30, 42, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(212, 160, 23, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.hero-title i {
    color: var(--primary);
    margin-right: 0.5rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.hero-welcome {
    font-size: 0.95rem;
    opacity: 0.8;
}

/* ═══════════════════════════════════════════════════════════════════════
   Matchday Banner
   ═══════════════════════════════════════════════════════════════════════ */

.matchday-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: var(--radius-lg);
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 rgba(196, 30, 42, 0); }
    50% { box-shadow: 0 0 20px rgba(196, 30, 42, 0.3); }
}

.banner-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.banner-icon {
    font-size: 1.5rem;
    animation: flicker 1s infinite alternate;
}

@keyframes flicker {
    from { opacity: 0.8; }
    to { opacity: 1; }
}

.banner-text {
    flex: 1;
}

.banner-text strong {
    display: block;
    font-size: 1.1rem;
}

.banner-text span {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* ═══════════════════════════════════════════════════════════════════════
   Section Titles
   ═══════════════════════════════════════════════════════════════════════ */

.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(to right, var(--primary), transparent);
    margin-left: 0.5rem;
}

/* ═══════════════════════════════════════════════════════════════════════
   League Cards
   ═══════════════════════════════════════════════════════════════════════ */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.league-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.league-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.league-card-badge {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    flex-shrink: 0;
}

.liga-1 .league-card-badge {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.liga-2 .league-card-badge {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
}

.league-card-body {
    flex: 1;
    min-width: 0;
}

.league-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark);
}

.league-card-desc {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 0.15rem;
}

.league-card-stats {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.league-card-stats i {
    margin-right: 0.25rem;
}

.league-card-arrow {
    color: var(--gray-400);
    font-size: 1.1rem;
    transition: transform 0.2s;
}

.league-card:hover .league-card-arrow {
    transform: translateX(4px);
    color: var(--primary);
}

/* ═══════════════════════════════════════════════════════════════════════
   Stats Grid
   ═══════════════════════════════════════════════════════════════════════ */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    text-align: center;
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.stat-icon {
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* ═══════════════════════════════════════════════════════════════════════
   Action Cards (Admin Quick Actions)
   ═══════════════════════════════════════════════════════════════════════ */

.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.action-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text);
    transition: all 0.2s;
}

.action-card:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.action-card i {
    font-size: 1.5rem;
}

.action-card span {
    font-size: 0.85rem;
    font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════════════
   Info Cards (Public Section)
   ═══════════════════════════════════════════════════════════════════════ */

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.info-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
}

.info-card i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.info-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.info-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════════════════
   Buttons
   ═══════════════════════════════════════════════════════════════════════ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.6rem 1.25rem;
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    white-space: nowrap;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-dark);
    color: white;
}

.btn-secondary {
    background: var(--gray-200);
    color: var(--text);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--gray-300);
    color: var(--text);
}

.btn-gold {
    background: var(--accent);
    color: white;
}

.btn-gold:hover:not(:disabled) {
    background: var(--accent-dark);
    color: white;
}

.btn-danger {
    background: #dc2626;
    color: white;
}
.btn-danger:hover:not(:disabled) {
    background: #b91c1c;
    color: white;
}

.btn-sm {
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
}

.btn-full {
    width: 100%;
}

/* ═══════════════════════════════════════════════════════════════════════
   Forms
   ═══════════════════════════════════════════════════════════════════════ */

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.4rem;
}

.form-label i {
    color: var(--gray-500);
    font-size: 0.8rem;
}

.form-input {
    width: 100%;
    padding: 0.65rem 0.85rem;
    font-family: var(--font);
    font-size: 0.95rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    background: var(--white);
    transition: border-color 0.2s, box-shadow 0.2s;
    color: var(--text);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(196, 30, 42, 0.1);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-hint {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.input-group {
    display: flex;
    position: relative;
}

.input-group .form-input {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-addon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    background: var(--gray-100);
    border: 1px solid var(--gray-300);
    border-left: none;
    border-radius: 0 var(--radius) var(--radius) 0;
    cursor: pointer;
    color: var(--gray-600);
    transition: color 0.2s;
}

.input-addon:hover {
    color: var(--primary);
}

.form-check {
    margin-bottom: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
}

/* ═══════════════════════════════════════════════════════════════════════
   Alerts
   ═══════════════════════════════════════════════════════════════════════ */

.alert {
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-danger {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-warning {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}

.alert-info {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

/* ═══════════════════════════════════════════════════════════════════════
   Auth Layout
   ═══════════════════════════════════════════════════════════════════════ */

.auth-body {
    background: linear-gradient(135deg, var(--dark) 0%, #0f0f1e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1rem;
}

.auth-container {
    width: 100%;
    max-width: 400px;
}

.auth-brand {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo {
    width: 64px;
    height: 64px;
    background: var(--primary);
    color: white;
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin: 0 auto 1rem;
    box-shadow: 0 4px 20px rgba(196, 30, 42, 0.4);
}

.auth-title {
    color: white;
    font-size: 1.5rem;
    font-weight: 800;
}

.auth-subtitle {
    color: var(--accent);
    font-size: 1.1rem;
    font-weight: 600;
}

.auth-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
}

.auth-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-form {
    margin-bottom: 1rem;
}

.auth-card-footer {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
    font-size: 0.85rem;
    color: var(--text-light);
}

.auth-footer {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.8rem;
    color: var(--gray-500);
}

/* ═══════════════════════════════════════════════════════════════════════
   Toast Notifications
   ═══════════════════════════════════════════════════════════════════════ */

.toast {
    position: fixed;
    top: calc(var(--navbar-height) + 1rem);
    right: 1rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 1rem 1.5rem;
    z-index: 1000;
    transform: translateX(120%);
    transition: transform 0.3s ease;
    border-left: 4px solid var(--success);
    max-width: 400px;
}

.toast.show {
    transform: translateX(0);
}

.toast-error {
    border-left-color: var(--danger);
}

.toast-warning {
    border-left-color: var(--warning);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
}

.toast-success .fa-check-circle { color: var(--success); }
.toast-error .fa-exclamation-circle { color: var(--danger); }

/* ═══════════════════════════════════════════════════════════════════════
   Loading Spinner
   ═══════════════════════════════════════════════════════════════════════ */

.loading-spinner {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

.loading-spinner i {
    color: var(--primary);
    margin-bottom: 1rem;
}

/* ═══════════════════════════════════════════════════════════════════════
   Utility Classes
   ═══════════════════════════════════════════════════════════════════════ */

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

.hidden { display: none !important; }

/* ═══════════════════════════════════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════════════════════════════════ */

@media (max-width: 640px) {
    .hero { padding: 1.5rem 1rem; }
    .hero-title { font-size: 1.5rem; }
    .hero-subtitle { font-size: 1rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .card-grid { grid-template-columns: 1fr; }
    .action-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-container { flex-direction: column; gap: 0.5rem; text-align: center; }
    .main-content { padding: 1rem 0.75rem; }
    .page-header { flex-direction: column; align-items: stretch; gap: 0.75rem; }
    .nav-more-dropdown { min-width: 0; width: calc(100vw - 2rem); left: auto; right: -1rem; }
}

/* ═══════════════════════════════════════════════════════════════════════
   Liga-Tabs (shared: Tabelle + Spielplan)
   ═══════════════════════════════════════════════════════════════════════ */

.league-tabs,
.md-league-selector {
    display: flex; gap: 0; background: var(--gray-100);
    border-radius: var(--radius-lg); padding: 4px;
    border: 1px solid var(--gray-200);
}

.league-tab {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.65rem 1.5rem; border: none;
    border-radius: calc(var(--radius-lg) - 2px);
    background: transparent;
    font-weight: 700; font-size: 0.95rem; cursor: pointer;
    transition: all 0.2s ease; font-family: var(--font);
    color: var(--gray-500); min-height: 44px;
    position: relative;
}
.league-tab:hover {
    color: var(--text); background: rgba(255,255,255,0.5);
}

/* Active Liga 1 — Red */
.league-tab.active[data-league="1"] {
    background: var(--primary);
    color: white;
    box-shadow: 0 2px 8px rgba(196, 30, 42, 0.35);
}
.league-tab.active[data-league="1"] .tab-badge {
    background: rgba(255,255,255,0.25);
    color: white;
}

/* Active Liga 2 — Gold */
.league-tab.active[data-league="2"] {
    background: var(--accent);
    color: white;
    box-shadow: 0 2px 8px rgba(212, 160, 23, 0.35);
}
.league-tab.active[data-league="2"] .tab-badge {
    background: rgba(255,255,255,0.25);
    color: white;
}

/* Fallback active (when no data-league matched) */
.league-tab.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 2px 8px rgba(196, 30, 42, 0.35);
}

.tab-badge {
    width: 26px; height: 26px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 0.8rem; flex-shrink: 0;
    transition: all 0.2s;
}

/* Inactive badge colors */
.league-tab:not(.active) .liga-1-bg {
    background: rgba(196, 30, 42, 0.12); color: var(--primary);
}
.league-tab:not(.active) .liga-2-bg {
    background: rgba(212, 160, 23, 0.12); color: var(--accent);
}

/* Active badge — white translucent */
.league-tab.active .liga-1-bg,
.league-tab.active .liga-2-bg {
    background: rgba(255,255,255,0.25); color: white;
}

@media (max-width: 640px) {
    .league-tabs,
    .md-league-selector { width: 100%; }
    .league-tab { flex: 1; justify-content: center; font-size: 0.9rem; padding: 0.6rem 1rem; }
}
