/* ============================================================
   Maximilian Brahm – Eishockey Karriere
   KEV Krefeld: Gelb #FFD700, Schwarz #1a1a1a, Weiß #fff
   ============================================================ */

:root {
    --kev-yellow: #FFD700;
    --kev-yellow-dark: #e6c200;
    --kev-black: #1a1a1a;
    --kev-dark: #111111;
    --kev-gray: #2d2d2d;
    --kev-light: #f5f5f5;
    --kev-white: #ffffff;
    --text-muted: #888;
    --border: #333;
    --shadow: 0 4px 20px rgba(0,0,0,0.4);
}

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

body {
    font-family: 'Roboto', sans-serif;
    background: var(--kev-black);
    color: var(--kev-white);
    min-height: 100vh;
    font-size: 14px;
}

a { color: var(--kev-yellow); text-decoration: none; }
a:hover { color: #ff3333; }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ── NAVBAR ─────────────────────────────────────────────────── */
.navbar {
    background: var(--kev-dark);
    border-bottom: 3px solid var(--kev-yellow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--kev-white);
}

.nav-logo { font-size: 1.4rem; }

.nav-links {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-links a {
    color: #ccc;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--kev-black);
    background: var(--kev-yellow);
}

.nav-logout {
    border: 1px solid #444 !important;
}
.nav-logout:hover {
    background: #333 !important;
    color: #fff !important;
}

/* Dropdown Navigation */
.nav-item.nav-dropdown {
    position: relative;
}

.nav-item.nav-dropdown > .nav-link {
    padding-right: 25px; 
    position: relative;
    display: flex; /* Flexbox für bessere Ausrichtung des Pfeils */
    align-items: center;
    justify-content: center;
}

.nav-item.nav-dropdown > .nav-link::after {
    content: '▼'; 
    font-size: 0.6em;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.2s;
}

.nav-item.nav-dropdown:hover > .nav-link::after {
    transform: translateY(-50%) rotate(180deg);
}

.dropdown-menu {
    display: none;
    position: absolute;
    background: var(--kev-dark);
    min-width: 180px;
    box-shadow: var(--shadow);
    z-index: 101;
    border-radius: 8px;
    padding: 8px 0;
    margin-top: 5px;
    border: 1px solid var(--border);
    list-style: none;
}

.nav-item.nav-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li a {
    color: #ccc;
    padding: 10px 16px;
    display: block;
    white-space: nowrap;
    font-size: 0.9rem;
    background: transparent; /* Sicherstellen, dass das Standard-Link-Hover-Verhalten nicht stört */
}

.dropdown-menu li a:hover {
    background: var(--kev-yellow);
    color: var(--kev-black);
    border-radius: 0;
}

/* Mobile Anpassung */
@media (max-width: 768px) {
    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }
    .nav-links li {
        width: 100%;
    }
    .nav-item.nav-dropdown .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        border: none;
        padding: 0;
        margin-top: 0;
        background: var(--kev-gray);
    }
    .nav-item.nav-dropdown > .nav-link::after {
        content: '▶';
        right: 15px;
        transform: translateY(-50%); /* Zurücksetzen der Rotation */
    }
    .nav-item.nav-dropdown.active > .nav-link::after {
        content: '▼';
        transform: translateY(-50%) rotate(0deg);
    }
    .dropdown-menu li a {
        padding-left: 30px;
    }
}


/* ── LOGIN PAGE ─────────────────────────────────────────────── */
.login-page {
    background: linear-gradient(135deg, var(--kev-dark) 0%, #1a1400 50%, var(--kev-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    background: var(--kev-gray);
    border: 1px solid var(--kev-yellow);
    border-radius: 16px;
    padding: 50px 40px;
    width: 100%;
    max-width: 420px;
    text-align: center;
    box-shadow: 0 0 40px rgba(255,215,0,0.3);
}

.kev-badge {
    display: inline-block;
    background: var(--kev-yellow);
    padding: 15px 25px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.kev-text {
    display: block;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--kev-black);
    line-height: 1;
}

.kev-sub {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: rgba(0,0,0,0.7);
}

.login-container h1 {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 2rem;
    margin-bottom: 4px;
}

.login-subtitle {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 0.9rem;
}

.login-form .input-group {
    margin-bottom: 16px;
}

.login-form input {
    width: 100%;
    padding: 14px 18px;
    background: var(--kev-black);
    border: 1px solid #444;
    border-radius: 8px;
    color: var(--kev-white);
    font-size: 1rem;
    transition: border-color 0.2s;
}

.login-form input:focus {
    outline: none;
    border-color: var(--kev-yellow);
}

.btn-login {
    width: 100%;
    padding: 14px;
    background: var(--kev-yellow);
    color: var(--kev-black);
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    font-family: 'Roboto Condensed', sans-serif;
    letter-spacing: 1px;
}

.btn-login:hover { background: var(--kev-yellow-dark); }

.error-msg {
    background: rgba(255,215,0,0.1);
    border: 1px solid var(--kev-yellow);
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 16px;
    font-size: 0.9rem;
    color: #FFD700;
}

.login-hint {
    margin-top: 20px;
    font-size: 0.8rem;
    color: #555;
}

/* ── HERO ────────────────────────────────────────────────────── */
.hero {
    background: linear-gradient(135deg, var(--kev-dark) 0%, #1a1400 50%, #1a1a1a 100%);
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
    border-bottom: 4px solid var(--kev-yellow);
}

.hero-content {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    background: var(--kev-yellow);
    color: var(--kev-black);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero-name {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: -2px;
}

.hero-name span {
    color: var(--kev-yellow);
}

.hero-tagline {
    font-size: 1.2rem;
    color: #aaa;
    margin-top: 12px;
}

.hero-number {
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 20rem;
    font-weight: 900;
    color: rgba(255,215,0,0.05);
    line-height: 1;
    user-select: none;
    z-index: 1;
}

/* ── STATS ───────────────────────────────────────────────────── */
.stats-overview, .season-stats {
    padding: 50px 20px;
    background: var(--kev-dark);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.stat-card {
    background: var(--kev-gray);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px 20px;
    text-align: center;
    transition: transform 0.2s, border-color 0.2s;
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: var(--kev-yellow);
}

.stat-icon { font-size: 2rem; margin-bottom: 10px; }

.stat-value {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--kev-yellow);
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 6px;
}

/* ── SECTION TITLE ───────────────────────────────────────────── */
.section-title {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--kev-yellow);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ── ABOUT ───────────────────────────────────────────────────── */
.about-section {
    padding: 50px 20px;
    background: var(--kev-black);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.about-card {
    background: var(--kev-gray);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.about-icon { font-size: 1.8rem; }

.about-info {
    display: flex;
    flex-direction: column;
}

.about-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-value {
    font-weight: 700;
    font-size: 1.05rem;
}

/* ── PAGE HEADER ─────────────────────────────────────────────── */
.page-header {
    background: linear-gradient(135deg, var(--kev-dark) 0%, #1a1400 100%);
    padding: 50px 20px;
    border-bottom: 3px solid var(--kev-yellow);
}

.page-header h1 {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    text-transform: uppercase;
}

.page-header p {
    color: var(--text-muted);
    margin-top: 6px;
}

/* ── GAMES TABLE ─────────────────────────────────────────────── */
.recent-games, .games-section {
    padding: 50px 20px;
    background: var(--kev-black);
}

.games-table-wrapper {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.games-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--kev-gray);
}

.games-table th {
    background: var(--kev-dark);
    color: var(--text-muted);
    padding: 14px 16px;
    text-align: left;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid var(--kev-yellow);
}

.games-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
}

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

.games-table tr:hover td { background: rgba(255,215,0,0.08); }

.no-data td {
    text-align: center;
    color: var(--text-muted);
    padding: 40px !important;
    font-style: italic;
}

.result-win { color: #4caf50; font-weight: 700; }
.result-loss { color: var(--kev-yellow); font-weight: 700; }
.result-draw { color: #ff9800; font-weight: 700; }

.btn-delete {
    background: none;
    border: 1px solid #444;
    color: #888;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s;
}
.btn-delete:hover { border-color: var(--kev-yellow); color: var(--kev-yellow); }

/* ── FORM ────────────────────────────────────────────────────── */
.add-game-section, .upload-section {
    padding: 40px 20px;
    background: var(--kev-dark);
}

.form-card {
    background: var(--kev-gray);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
}

.form-card h2 {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 1.4rem;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input {
    background: var(--kev-black);
    border: 1px solid #444;
    border-radius: 8px;
    color: var(--kev-white);
    padding: 10px 14px;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--kev-yellow);
}

.btn-primary {
    background: var(--kev-yellow);
    color: var(--kev-black);
    border: none;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Roboto Condensed', sans-serif;
    letter-spacing: 1px;
    transition: background 0.2s;
}
.btn-primary:hover { background: var(--kev-yellow-dark); }

.upload-note {
    margin-top: 12px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* ── TIMELINE ────────────────────────────────────────────────── */
.timeline-section { padding: 50px 20px; }

.timeline {
    position: relative;
    padding-left: 50px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--kev-yellow), transparent);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-dot {
    position: absolute;
    left: -42px;
    top: 6px;
    width: 16px;
    height: 16px;
    background: var(--kev-yellow);
    border-radius: 50%;
    border: 3px solid var(--kev-black);
}

.add-dot {
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #666;
}

.timeline-content {
    background: var(--kev-gray);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
}

.current .timeline-content {
    border-color: var(--kev-yellow);
}

.timeline-year {
    font-size: 0.8rem;
    color: var(--kev-yellow);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 6px;
}

.timeline-content h3 {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.timeline-stats {
    display: flex;
    gap: 20px;
    margin-top: 12px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.add-hint { color: var(--text-muted); font-style: italic; }

/* ── GALLERY ─────────────────────────────────────────────────── */
.gallery-section { padding: 50px 20px; }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: transform 0.2s;
}

.gallery-item:hover { transform: scale(1.03); }
.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255,215,0,0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
    color: white;
    font-size: 2rem;
}

.gallery-caption {
    padding: 10px;
    background: var(--kev-gray);
    font-size: 0.85rem;
    color: #ccc;
}

.gallery-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.gallery-empty-icon { font-size: 4rem; margin-bottom: 12px; }

/* ── LIGHTBOX ────────────────────────────────────────────────── */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.9);
}

.lightbox-content {
    position: relative;
    z-index: 1000;
    text-align: center;
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
    border: 2px solid var(--kev-yellow);
}

.lightbox-content p {
    margin-top: 12px;
    color: #ccc;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: var(--kev-yellow);
    color: var(--kev-black);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
}

/* ── FOOTER ──────────────────────────────────────────────────── */
.footer {
    background: var(--kev-dark);
    border-top: 2px solid var(--kev-yellow);
    padding: 24px 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 768px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .nav-links { gap: 4px; }
    .nav-links a { padding: 6px 8px; font-size: 0.8rem; }
    .hero-number { display: none; }

    .timeline { padding-left: 30px; }
    .timeline::before { left: 8px; }
    .timeline-dot { left: -28px; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .nav-links a span { display: none; }
}

/* ── FLASH MESSAGES ──────────────────────────────────────────── */
.flash-msg {
    max-width: 1100px;
    margin: 16px auto;
    padding: 14px 20px;
    border-radius: 8px;
    font-weight: 500;
}
.flash-msg.success { background: rgba(76,175,80,0.15); border: 1px solid #4caf50; color: #4caf50; }
.flash-msg.error   { background: rgba(255,215,0,0.1);  border: 1px solid var(--kev-yellow); color: var(--kev-yellow); }

/* ── SEASON FILTER ───────────────────────────────────────────── */
.season-filter-bar {
    padding: 20px;
    background: var(--kev-dark);
    border-bottom: 1px solid var(--border);
}
.season-filter-bar .container { display: flex; gap: 10px; flex-wrap: wrap; }
.season-tab {
    padding: 8px 20px;
    border-radius: 20px;
    border: 1px solid var(--border);
    color: #ccc;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s;
}
.season-tab:hover, .season-tab.active {
    background: var(--kev-yellow);
    color: var(--kev-black);
    border-color: var(--kev-yellow);
}

/* ── FORM WIDE ───────────────────────────────────────────────── */
.form-group-wide { grid-column: 1 / -1; }

/* ── TIMELINE LINK ───────────────────────────────────────────── */
.timeline-link {
    display: inline-block;
    margin-top: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--kev-yellow);
}

/* ── CAREER TOTAL ────────────────────────────────────────────── */
.career-total { margin-bottom: 40px; }

/* ── GALLERY EXTRAS ──────────────────────────────────────────── */
.gallery-item { position: relative; }
.gallery-delete { position: absolute; top: 6px; right: 6px; }
.btn-gallery-delete {
    background: rgba(0,0,0,0.7);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}
.gallery-item:hover .btn-gallery-delete { opacity: 1; }
.gallery-date { float: right; font-size: 0.75rem; color: var(--text-muted); }

/* ── JS-FREE (JS entfernt) ───────────────────────────────────── */

/* ── TOURNAMENT STYLES ───────────────────────────────────────── */
.tournament-section { padding: 40px 20px; background: var(--kev-black); }

.tournament-card {
    background: var(--kev-gray);
    border: 1px solid var(--kev-yellow);
    border-radius: 16px;
    padding: 32px;
}

.tournament-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.tournament-badge {
    display: inline-block;
    background: var(--kev-yellow);
    color: var(--kev-black);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tournament-card h2 {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    text-transform: uppercase;
}

.tournament-dates {
    color: var(--text-muted);
    margin-top: 4px;
    font-size: 0.95rem;
}

.tournament-placement {
    text-align: center;
    font-size: 3.5rem;
    line-height: 1;
}
.tournament-placement span {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tournament-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.t-info-item {
    background: var(--kev-black);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.t-info-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.t-info-value {
    font-weight: 600;
    font-size: 0.95rem;
}

.tournament-notes {
    background: rgba(255,215,0,0.06);
    border: 1px solid rgba(255,215,0,0.2);
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #ccc;
    line-height: 1.6;
}

.tournament-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-link {
    display: inline-block;
    padding: 8px 18px;
    border: 1px solid var(--kev-yellow);
    color: var(--kev-yellow);
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s;
}
.btn-link:hover {
    background: var(--kev-yellow);
    color: var(--kev-black);
}

/* ── ÜBER TELČ ───────────────────────────────────────────────── */
.about-telc { padding: 40px 20px; background: var(--kev-dark); }

.telc-card {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
    background: var(--kev-gray);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
}

.telc-card h3 {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 1.4rem;
    margin-bottom: 14px;
}

.telc-card p { line-height: 1.7; color: #ccc; font-size: 0.95rem; }

.telc-facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 20px;
}

.telc-fact {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--kev-black);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 0.9rem;
}

.telc-map-placeholder {
    background: var(--kev-black);
    border: 1px solid var(--border);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    text-align: center;
    height: 100%;
    min-height: 200px;
}

.map-icon { font-size: 4rem; margin-bottom: 10px; }

/* ── TURNIERBAUM ─────────────────────────────────────────────── */
.bracket-section { padding: 40px 20px; background: var(--kev-black); }

.bracket-hint {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 0.9rem;
}

.bracket-round { margin-bottom: 36px; }

.round-label {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--kev-yellow);
    margin-bottom: 14px;
    padding-left: 12px;
    border-left: 3px solid var(--kev-yellow);
}

.bracket-games {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 16px;
}

.bracket-game {
    background: var(--kev-gray);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.bracket-game.played { border-color: rgba(255,215,0,0.3); }
.bracket-game.upcoming { border-left: 3px solid var(--kev-yellow); }

.bracket-game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: var(--kev-dark);
    font-size: 0.8rem;
}

.game-round-badge {
    background: rgba(255,215,0,0.15);
    color: var(--kev-yellow);
    padding: 2px 10px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.game-datetime { color: var(--text-muted); }

.bracket-matchup {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bracket-team {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--kev-black);
    border-radius: 8px;
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.bracket-team.winner {
    background: rgba(255,215,0,0.1);
    border-color: var(--kev-yellow);
}

.team-flag { font-size: 1.2rem; }

.team-name {
    flex: 1;
    font-weight: 600;
    font-size: 0.95rem;
}

.team-score {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--kev-yellow);
    min-width: 30px;
    text-align: right;
}

.bracket-team.winner .team-score { color: var(--kev-yellow); }

.vs-divider {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 2px;
}

.game-note {
    padding: 8px 14px;
    font-size: 0.85rem;
    color: #bbb;
    border-top: 1px solid var(--border);
}

/* Game Edit */
.game-edit { padding: 10px 14px; border-top: 1px solid var(--border); }
.game-edit summary {
    cursor: pointer;
    font-size: 0.82rem;
    color: var(--text-muted);
    user-select: none;
}
.game-edit summary:hover { color: var(--kev-yellow); }
.game-edit-form { margin-top: 12px; }
.edit-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 768px) {
    .tournament-info-grid { grid-template-columns: 1fr 1fr; }
    .telc-card { grid-template-columns: 1fr; }
    .bracket-games { grid-template-columns: 1fr; }
    .edit-grid { grid-template-columns: 1fr 1fr; }
    .tournament-header { flex-direction: column; gap: 16px; }
}

/* ── GRUPPEN ─────────────────────────────────────────────────── */
.groups-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 30px;
}

.group-card {
    background: var(--kev-gray);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.group-maxi {
    border-color: var(--kev-yellow);
    box-shadow: 0 0 16px rgba(255,215,0,0.2);
}

.group-header {
    background: var(--kev-dark);
    padding: 10px 14px;
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid var(--border);
}

.group-maxi .group-header {
    background: var(--kev-yellow);
    color: var(--kev-black);
    border-bottom-color: var(--kev-yellow);
}

.group-team {
    padding: 9px 14px;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--border);
    color: #ccc;
}
.group-team:last-child { border-bottom: none; }

.team-maxi {
    color: var(--kev-yellow) !important;
    font-weight: 700;
}

/* ── MAXI HIGHLIGHT ──────────────────────────────────────────── */
.bracket-team.maxi-team {
    background: rgba(255,215,0,0.08);
    border-color: rgba(255,215,0,0.4);
}

.game-maxi {
    border-color: var(--kev-yellow) !important;
    box-shadow: 0 0 12px rgba(255,215,0,0.15);
}

/* ── DAY BLOCK ───────────────────────────────────────────────── */
.day-block { margin-bottom: 48px; }

.day-header {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 1.3rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--kev-white);
    background: var(--kev-dark);
    border-left: 4px solid var(--kev-yellow);
    padding: 14px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .groups-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── TOURNAMENT BANNER ───────────────────────────────────────── */
.next-tournament { padding: 40px 20px; background: var(--kev-dark); }

.tournament-banner {
    background: var(--kev-gray);
    border: 2px solid var(--kev-yellow);
    border-radius: 16px;
    padding: 28px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    box-shadow: 0 0 30px rgba(255,215,0,0.15);
}

.tb-label {
    font-size: 0.8rem;
    color: var(--kev-yellow);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.tournament-banner h2 {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 1.7rem;
    font-weight: 900;
}

.countdown {
    text-align: center;
    background: var(--kev-yellow);
    border-radius: 12px;
    padding: 16px 24px;
    min-width: 90px;
}

.countdown-num {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    color: var(--kev-black);
    line-height: 1;
}

.countdown-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--kev-black);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Admin-Link in Navbar */
.nav-admin {
    background: rgba(255,215,0,0.1) !important;
    border: 1px solid var(--kev-yellow) !important;
    color: var(--kev-yellow) !important;
}
.nav-admin:hover {
    background: var(--kev-yellow) !important;
    color: var(--kev-black) !important;
}

@media (max-width: 768px) {
    .tournament-banner { flex-direction: column; }
}

/* ── VIDEOS ──────────────────────────────────────────────────── */
.videos-section { padding: 50px 20px; background: var(--kev-black); }

.videos-empty {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.video-card {
    background: var(--kev-gray);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s;
}
.video-card:hover { transform: translateY(-4px); border-color: var(--kev-yellow); }

.video-thumb {
    position: relative;
    aspect-ratio: 16/9;
    background: #000;
    overflow: hidden;
}
.video-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 3rem;
    background: #111;
}

.video-play-btn {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    transition: opacity 0.2s;
}
.video-card:hover .video-play-btn { opacity: 1; }

.video-type-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--kev-yellow);
    color: var(--kev-black);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
}

.video-info { padding: 14px; }
.video-info h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.video-info p { font-size: 0.85rem; color: #aaa; margin-bottom: 6px; }
.video-date { font-size: 0.8rem; color: var(--text-muted); }

/* Video Lightbox */
.video-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.92);
}
.video-lightbox-content {
    position: relative;
    width: 90vw;
    max-width: 900px;
}
.video-embed-wrapper { width: 100%; }
.video-embed-wrapper iframe, .video-embed-wrapper video {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 8px;
    border: 2px solid var(--kev-yellow);
}
.video-lightbox-title {
    text-align: center;
    margin-top: 12px;
    color: #ccc;
    font-size: 0.95rem;
}

/* Video Hint */
.video-hint {
    margin-top: 16px;
    background: rgba(255,215,0,0.06);
    border: 1px solid rgba(255,215,0,0.2);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.85rem;
    color: #bbb;
    line-height: 1.6;
}

/* Admin Video List */
.videos-admin-list { display: flex; flex-direction: column; gap: 12px; }
.video-admin-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background: var(--kev-gray);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 16px;
    gap: 12px;
}
.vai-info { flex: 1; }
.vai-type {
    background: var(--kev-yellow);
    color: var(--kev-black);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    margin-right: 8px;
}

@media (max-width: 768px) {
    .videos-grid { grid-template-columns: 1fr; }
}

/* ── TEAM PAGE ───────────────────────────────────────────────── */
.team-section { padding: 40px 20px; background: var(--kev-black); }

.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 10px;
}

.staff-card {
    background: var(--kev-gray);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px;
    text-align: center;
}

.staff-icon { font-size: 1.8rem; margin-bottom: 6px; }
.staff-role { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.staff-name { font-weight: 700; font-size: 0.9rem; }

.players-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
}

.player-card {
    background: var(--kev-gray);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 12px;
    text-align: center;
    transition: transform 0.15s, border-color 0.15s;
}
.player-card:hover { transform: translateY(-3px); border-color: var(--kev-yellow); }

.player-maxi {
    border-color: var(--kev-yellow) !important;
    background: rgba(255,215,0,0.08) !important;
    box-shadow: 0 0 16px rgba(255,215,0,0.2);
}

.player-number {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--kev-yellow);
    line-height: 1;
    margin-bottom: 6px;
}

.player-maxi .player-number { font-size: 2.2rem; }

.player-name { font-weight: 700; font-size: 0.85rem; line-height: 1.3; }
.player-dob { font-size: 0.75rem; color: var(--text-muted); margin-top: 4px; }

.team-source {
    margin-top: 24px;
    font-size: 0.8rem;
    color: #555;
    text-align: right;
}

@media (max-width: 480px) {
    .players-grid { grid-template-columns: repeat(3, 1fr); }
    .staff-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── TEAM HEADER ─────────────────────────────────────────────── */
.team-header-inner {
    display: flex;
    align-items: center;
    gap: 28px;
}

.kev-logo-img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    filter: drop-shadow(0 0 12px rgba(255,215,0,0.3));
}

.team-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 10px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* ── PLAYER AVATARS ──────────────────────────────────────────── */
.player-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2d2d2d, #1a1a1a);
    border: 2px solid #444;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    position: relative;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #888;
    transition: border-color 0.2s;
}

.player-card:hover .player-avatar { border-color: var(--kev-yellow); color: var(--kev-yellow); }

.avatar-maxi {
    background: linear-gradient(135deg, #2a2000, #1a1400) !important;
    border-color: var(--kev-yellow) !important;
    color: var(--kev-yellow) !important;
    box-shadow: 0 0 16px rgba(255,215,0,0.3);
}

.player-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.player-pos-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    background: var(--kev-yellow);
    color: var(--kev-black);
    font-size: 0.55rem;
    font-weight: 900;
    padding: 1px 4px;
    border-radius: 4px;
    line-height: 1.4;
}

/* ── FONT SIZE TWEAKS ────────────────────────────────────────── */
.games-table td { font-size: 0.875rem; padding: 11px 14px; }
.games-table th { font-size: 0.75rem; }
.stat-value { font-size: 2.4rem; }
.about-value { font-size: 0.95rem; }
.section-title { font-size: 1.5rem; }
.player-name { font-size: 0.78rem; }
.player-dob { font-size: 0.68rem; }
.player-number { font-size: 1.5rem; }
.player-maxi .player-number { font-size: 1.8rem; }
.t-info-value { font-size: 0.85rem; }
.timeline-content h3 { font-size: 1.2rem; }

@media (max-width: 768px) {
    .team-header-inner { flex-direction: column; text-align: center; }
    .team-meta { justify-content: center; }
    .kev-logo-img { width: 80px; height: 80px; }
}

/* ── PLAYER PHOTO AVATAR ─────────────────────────────────────── */
.player-avatar {
    width: 80px !important;
    height: 80px !important;
    font-size: 1.4rem !important;
}

.player-card.player-maxi .player-avatar {
    width: 90px !important;
    height: 90px !important;
    border-width: 3px !important;
}

/* ── HERO PHOTO ──────────────────────────────────────────────── */
.hero-profile {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-top: 12px;
}

.hero-photo {
    width: 130px;
    height: 160px;
    object-fit: cover;
    object-position: top;
    border-radius: 12px;
    border: 3px solid var(--kev-yellow);
    box-shadow: 0 0 24px rgba(255,215,0,0.3);
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .hero-profile { flex-direction: column; gap: 16px; }
    .hero-photo { width: 100px; height: 120px; }
}

/* ── REGIONALLIGA ────────────────────────────────────────────── */
.row-home td { background: rgba(255,215,0,0.04); }
.row-home td:first-child { border-left: 3px solid var(--kev-yellow); }

.rl-result {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--kev-yellow);
}

.badge-home {
    background: var(--kev-yellow);
    color: var(--kev-black);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ── SPIELFORM BADGE ─────────────────────────────────────────── */
.spielform-badge {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--kev-white);
    background: rgba(255,255,255,0.08);
    padding: 3px 10px;
    border-radius: 6px;
    border: 1px solid #444;
    display: inline-block;
}

/* ── TERMINE ─────────────────────────────────────────────────── */
.termine-list { position: relative; }

.termine-month {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--kev-yellow);
    padding: 20px 0 10px 60px;
    border-bottom: 1px solid #222;
    margin-bottom: 4px;
}

.termine-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid #1a1a1a;
    transition: background 0.2s;
}
.termine-item:hover { background: rgba(255,255,255,0.02); border-radius: 8px; }

.termine-tournament { background: rgba(255,215,0,0.03); }
.termine-today { background: rgba(76,175,80,0.06) !important; }
.termine-past { opacity: 0.55; }

.termine-date-col {
    min-width: 40px;
    text-align: center;
    flex-shrink: 0;
}
.termine-day {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 1.6rem;
    font-weight: 900;
    line-height: 1;
    color: var(--kev-white);
}
.termine-weekday {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.termine-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-top: 6px;
    flex-shrink: 0;
}
.dot-tournament { background: var(--kev-yellow); box-shadow: 0 0 8px rgba(255,215,0,0.5); }
.dot-future { background: #4caf50; }
.dot-past { background: #444; }

.termine-content { flex: 1; }

.termine-header { display: flex; gap: 8px; align-items: center; margin-bottom: 4px; flex-wrap: wrap; }

.termine-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.badge-tournament { background: var(--kev-yellow); color: var(--kev-black); }
.badge-training { background: #2d4a2d; color: #8bc34a; border: 1px solid #3d6a3d; }
.badge-game { background: #2a2d4a; color: #7c8bff; border: 1px solid #3a4a7a; }

.termine-title {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.termine-meta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.termine-map-link {
    display: inline-block;
    margin-top: 6px;
    font-size: 0.78rem;
    color: var(--kev-yellow);
    border: 1px solid rgba(255,215,0,0.3);
    padding: 2px 10px;
    border-radius: 10px;
    transition: all 0.2s;
}
.termine-map-link:hover { background: var(--kev-yellow); color: var(--kev-black); }

/* ── GEBURTSTAGE ─────────────────────────────────────────────── */
.bday-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bday-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--kev-gray);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 16px;
    transition: border-color 0.2s;
}

.bday-item-today {
    border-color: #4caf50 !important;
    background: rgba(76,175,80,0.08) !important;
}

.bday-item-maxi {
    border-color: var(--kev-yellow) !important;
    background: rgba(255,215,0,0.05) !important;
}

.bday-date {
    text-align: center;
    min-width: 44px;
    background: var(--kev-black);
    border-radius: 8px;
    padding: 6px 8px;
    flex-shrink: 0;
}

.bday-day {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 1.4rem;
    font-weight: 900;
    line-height: 1;
    color: var(--kev-white);
}

.bday-month {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.bday-info { flex: 1; }
.bday-name { font-weight: 700; font-size: 0.9rem; }
.bday-age  { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }

.bday-countdown {
    text-align: center;
    min-width: 50px;
    flex-shrink: 0;
}

.bday-days {
    display: block;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--kev-yellow);
    line-height: 1;
}

.bday-days-label {
    display: block;
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bday-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 10px;
    display: inline-block;
}

.bday-today { background: #4caf50; color: white; }
.bday-soon  { background: rgba(255,215,0,0.2); color: var(--kev-yellow); border: 1px solid rgba(255,215,0,0.4); }

/* ── HERO VIDEO BACKGROUND ───────────────────────────────────── */
.hero-video {
    position: relative;
    overflow: hidden;
    min-height: 420px;
}

.hero-video-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    opacity: 0.35;
    filter: brightness(0.7) saturate(0.8);
}

.hero-video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(0,0,0,0.75) 0%,
        rgba(26,20,0,0.6) 50%,
        rgba(0,0,0,0.5) 100%
    );
    z-index: 1;
}

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

.hero-u9 {
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'Roboto Condensed', sans-serif;
    font-size: clamp(8rem, 20vw, 18rem);
    font-weight: 900;
    color: rgba(255,215,0,0.08);
    line-height: 1;
    user-select: none;
    z-index: 2;
    letter-spacing: -8px;
    pointer-events: none;
}

@media (max-width: 768px) {
    .hero-u9 { display: none; }
    .hero-video { min-height: 340px; }
}
