/* ===== VARIABLES ===== */
:root {
    --bg-primary: #1a1a2e;
    --bg-secondary: #16213e;
    --bg-card: #1f2b47;
    --bg-card-hover: #263352;
    --gold: #d4a843;
    --gold-light: #f0d060;
    --gold-dark: #b8902e;
    --silver: #c0c0c0;
    --bronze: #cd7f32;
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
    --text-muted: #6b7280;
    --border-color: #2d3748;
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Inter', sans-serif;
    --radius: 12px;
    --radius-sm: 8px;
}

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

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ===== DISCIPLINE LOGOS ===== */
.discipline-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
    margin-bottom: 2px;
    filter: invert();
}

.discipline-logo-header {
    width: 60px;
    height: 60px;
    object-fit: cover;
    margin-bottom: -16px;
    margin-top: -16px;
    margin-left: -30px;
    filter: invert();
}

/* ===== SORTABLE HEADERS ===== */
.sortable,
.sortable-oly {
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}


.sortable.active,
.sortable-oly.active {
    background: rgba(212, 168, 67, 0.15);
    border-radius: 6px;
}

.sortable.active small,
.sortable-oly.active small {
    color: var(--gold);
    font-weight: 600;
}

.sortable.active .discipline-logo,
.sortable-oly.active .discipline-logo {
    filter: drop-shadow(0 0 4px rgba(212, 168, 67, 0.6));
}

/* ===== HEADER ===== */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.menu-btn,
.trophy-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
}

.trophy-btn {
    color: var(--gold);
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.logo-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
}

.logo-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 2px;
}

.logo-subtitle {
    font-size: 0.65rem;
    color: var(--gold-dark);
    letter-spacing: 3px;
    font-weight: 600;
}

/* ===== SIDEBAR ===== */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 200;
    opacity: 0;
    transition: opacity 0.3s;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

.sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background: var(--bg-secondary);
    z-index: 300;
    transition: left 0.3s ease;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border-color);
}

.sidebar.active {
    left: 0;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-header h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--gold);
}

.sidebar-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
}

.sidebar-nav {
    padding: 12px 0;
    display: flex;
    flex-direction: column;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.92rem;
    transition: background 0.2s;
}


.sidebar-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.sidebar-icon-fa {
    width: 28px;
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.sidebar-divider {
    height: 1px;
    background: var(--border-color);
    margin: 8px 20px;
}

/* ===== RULES MODAL ===== */
.rules-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 400;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.rules-modal.active {
    display: flex;
}

.rules-modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    width: 100%;
    max-width: 500px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.rules-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.rules-modal-header h2 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--gold);
}

.rules-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
}

.rules-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.rules-body ul {
    list-style: none;
    padding: 0;
}

.rules-body ul li {
    position: relative;
    padding: 8px 0 8px 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    border-bottom: 1px solid rgba(45, 55, 72, 0.3);
}

.rules-body ul li:last-child {
    border-bottom: none;
}

.rules-body ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: 700;
}

.rules-body .rules-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 40px 0;
}

.rules-body .rules-empty i {
    font-size: 2rem;
    margin-bottom: 12px;
    display: block;
}


/* ===== MAIN NAV ===== */
.main-nav {
    display: flex;
    justify-content: center;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 8px 16px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.nav-item.active{
    color: var(--text-primary);
    background: rgba(212, 168, 67, 0.1);
}

/* ===== SUB NAV / TABS ===== */
.sub-nav {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
    overflow-x: auto;
    scrollbar-width: none;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
}

.sub-nav::-webkit-scrollbar {
    display: none;
}

.tab {
    flex-shrink: 0;
    padding: 8px 16px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 20px;
    transition: all 0.2s;
    font-family: var(--font-body);
    -webkit-tap-highlight-color: transparent;  
    touch-action: manipulation;                
}

.tab.active {
    background: var(--gold);
    color: var(--bg-primary);
    font-weight: 600;
}


/* ===== HOME PAGE ===== */
.home-hero {
    text-align: center;
    padding: 40px 20px 30px;
}

.home-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 16px;
    filter: invert();
}

.home-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--gold);
    letter-spacing: 2px;
    line-height: 1.2;
}

.home-subtitle {
    color: var(--text-secondary);
    margin-top: 8px;
    font-size: 0.95rem;
}

/* Stats */
.home-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 0 12px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 16px 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gold);
}

.stat-label {
    font-size: 0.72rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Podium */
.home-podium {
    padding: 0 12px;
    margin-bottom: 30px;
}

.home-podium h2 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 40px;
    text-align: center;
}

.podium {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 8px;
    height: 180px;
}

.podium-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.podium-bar {
    width: 80px;
    border-radius: 8px 8px 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 12px 4px;
}

.podium-item:nth-child(1) .podium-bar {
    height: 120px;
    background: linear-gradient(180deg, rgba(192, 192, 192, 0.2), rgba(192, 192, 192, 0.05));
    border: 1px solid var(--silver);
}

.podium-item:nth-child(2) .podium-bar {
    height: 140px;
    background: linear-gradient(180deg, rgba(212, 168, 67, 0.2), rgba(212, 168, 67, 0.05));
    border: 1px solid var(--gold);
}

.podium-item:nth-child(3) .podium-bar {
    height: 100px;
    background: linear-gradient(180deg, rgba(205, 127, 50, 0.2), rgba(205, 127, 50, 0.05));
    border: 1px solid var(--bronze);
}

.podium-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    border: 2px solid var(--border-color);
    overflow: hidden;
}

.podium-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.podium-name {
    font-size: 0.8rem;
    font-weight: 500;
}

.podium-score {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
}

.podium-item:nth-child(1) .podium-avatar { border-color: var(--silver); }
.podium-item:nth-child(2) .podium-avatar { border-color: var(--gold); }
.podium-item:nth-child(3) .podium-avatar { border-color: var(--bronze); }

.podium-item:nth-child(1) .podium-score { color: var(--silver); }
.podium-item:nth-child(2) .podium-score { color: var(--gold); }
.podium-item:nth-child(3) .podium-score { color: var(--bronze); }

/* CTA Buttons */
.home-cta {
    display: flex;
    gap: 12px;
    padding: 0 12px;
    justify-content: center;
}

.cta-btn {
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--gold);
    color: var(--bg-primary);
}



.cta-btn.cta-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}


/* ===== PAGES ===== */
.page {
    display: none;
    padding: 0 12px;
    max-width: 600px;
    margin: 0 auto;
}

.page.active {
    display: block;
}

/* Remove old .content wrapper styles, use .page instead */
.section {
    display: none;
    padding: 20px 0;
}

.section.active {
    display: block;
}


/* ===== CONTENT ===== */
.content {
    padding: 20px 12px;
    max-width: 600px;
    margin: 0 auto;
}

.section {
    display: none;
}

.section.active {
    display: block;
}

/* ===== SECTION HEADER ===== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
    text-align: center;
}

.section-title h1 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.section-title p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

.laurel {
    font-size: 1.8rem;
}

/* ===== TABLE ===== */
.table-container {
    background: var(--bg-secondary);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.table-header {
    display: grid;
    grid-template-columns: 44px 1fr 52px 52px 52px 58px;
    align-items: center;
    padding: 12px 8px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-align: center;
}

.table-header.medal-header {
    grid-template-columns: 44px 1fr 44px 44px 44px 50px;
}

.table-header.normierte-header {
    grid-template-columns: 44px 1fr 60px 80px;
}

.table-header .col-rank,
.table-header .col-player {
    text-align: left;
    padding-left: 4px;
}

.table-header .col-score i {
    font-size: 1rem;
    margin-bottom: 2px;
    color: var(--text-muted);
}

.table-header .col-total i {
    color: var(--gold);
}

.table-header .col-medal {
    text-align: center;
    font-size: 1rem;
}

/* Ersetze .section Regeln mit: */
.wertung-section {
    display: none;
    padding: 20px 0;
}

.wertung-section.active {
    display: block;
}

/* ===== PLAYER ROWS ===== */
.player-row {
    display: grid;
    grid-template-columns: 44px 1fr 52px 52px 52px 58px;
    align-items: center;
    padding: 10px 8px;
    border-bottom: 1px solid rgba(45, 55, 72, 0.5);
    transition: background 0.2s;
    animation: fadeIn 0.3s ease forwards;
    opacity: 0;
}

.player-row.medal-row {
    grid-template-columns: 44px 1fr 44px 44px 44px 50px;
}

.player-row.normierte-row {
    grid-template-columns: 44px 1fr 60px 80px;
}

.player-row:last-child {
    border-bottom: none;
}


/* Top 3 */
.player-row.rank-1 {
    background: rgba(212, 168, 67, 0.08);
    border-left: 3px solid var(--gold);
}

.player-row.rank-2 {
    background: rgba(192, 192, 192, 0.05);
    border-left: 3px solid var(--silver);
}

.player-row.rank-3 {
    background: rgba(205, 127, 50, 0.05);
    border-left: 3px solid var(--bronze);
}

/* Player details (sub-text) */
.player-details {
    display: flex;
    flex-direction: column;
}

.player-meta {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 1px;
}

/* Rank badge */
.rank-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.8rem;
}

.rank-1 .rank-badge {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #1a1a2e;
    box-shadow: 0 2px 8px rgba(212, 168, 67, 0.4);
}

.rank-2 .rank-badge {
    background: linear-gradient(135deg, #e0e0e0, #a0a0a0);
    color: #1a1a2e;
}

.rank-3 .rank-badge {
    background: linear-gradient(135deg, #e8984c, #a0622a);
    color: #1a1a2e;
}

.rank-default .rank-badge {
    color: var(--text-secondary);
}

/* Player info */
.player-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.player-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-secondary);
    border: 2px solid var(--border-color);
    flex-shrink: 0;
}

.rank-1 .player-avatar { border-color: var(--gold); }
.rank-2 .player-avatar { border-color: var(--silver); }
.rank-3 .player-avatar { border-color: var(--bronze); }

.player-name {
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Scores */
.score {
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.score-total {
    text-align: center;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

.rank-1 .score-total {
    color: var(--gold);
}

/* Medal specific */
.medal-gold { color: var(--gold); font-weight: 600; }
.medal-silver { color: var(--silver); font-weight: 600; }
.medal-bronze { color: var(--bronze); font-weight: 600; }

/* ===== OLYMPIADE SELECTOR ===== */
.olympiade-selector {
    margin-bottom: 16px;
    text-align: center;
}

.olympiade-selector select {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    font-size: 0.9rem;
    font-family: var(--font-body);
    cursor: pointer;
    width: 100%;
    max-width: 300px;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23a0aec0' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.olympiade-selector select:focus {
    outline: none;
    border-color: var(--gold);
}

/* ===== PROGRESS BAR (normierte) ===== */
.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--bg-card);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 4px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold));
    border-radius: 3px;
    transition: width 0.5s ease;
}

/* ===== FOOTER ===== */
.footer {
    text-align: center;
    padding: 20px 16px 40px;
    color: var(--text-muted);
    font-size: 0.75rem;
}

.footer i {
    margin-right: 4px;
}

.footer small {
    display: block;
    margin-top: 4px;
    font-style: italic;
    opacity: 0.7;
}

/* ===== LOADING ===== */
.loading {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

.loading i {
    font-size: 1.5rem;
    animation: spin 1s linear infinite;
    margin-bottom: 8px;
    display: block;
}

img.player-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
    flex-shrink: 0;
}

/* ===== PAGES (Main Nav switching) ===== */
.page {
    display: none;
}

.page.active {
    display: block;
}

/* ===== GALLERIE GRID ===== */
.gallerie-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    border-radius: var(--radius);
    overflow: hidden;
}

.gallerie-item {
    aspect-ratio: 1;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.gallerie-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}



.gallerie-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.2s;
}


/* ===== LIGHTBOX ===== */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 92vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
    user-select: none;
}

.lightbox-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 1.4rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 1.2rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }



.lightbox-counter {
    margin-top: 16px;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* ===== GALLERIE EMPTY STATE ===== */
.gallerie-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.gallerie-empty i {
    font-size: 2.5rem;
    margin-bottom: 12px;
    display: block;
}

/* ===== INFO HINT BUTTON ===== */
.info-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    margin-bottom: 16px;
    background: rgba(212, 168, 67, 0.08);
    border: 1px solid rgba(212, 168, 67, 0.2);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    width: fit-content;
}

.info-hint i {
    color: var(--gold);
    font-size: 0.9rem;
}

.info-hint span {
    font-size: 0.8rem;
    color: var(--text-secondary);
}





/* ===== INFO MODAL ===== */
.info-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 400;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.info-modal.active {
    display: flex;
}

.info-modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    width: 100%;
    max-width: 520px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.info-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.info-modal-header h2 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--gold);
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
}

.info-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.info-body h3 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--text-primary);
    margin: 20px 0 8px;
}

.info-body h3:first-child {
    margin-top: 8px;
}

.info-body p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 8px;
}

.info-intro {
    font-size: 0.9rem !important;
    color: var(--text-primary) !important;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 12px !important;
}

.info-body ul {
    list-style: none;
    padding: 0;
    margin: 8px 0;
}

.info-body ul li {
    position: relative;
    padding: 5px 0 5px 16px;
    font-size: 0.83rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.info-body ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: 700;
}

.info-note {
    font-style: italic;
    color: var(--gold-dark) !important;
    font-size: 0.8rem !important;
}

.info-formula {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-family: monospace;
    font-size: 0.82rem;
    color: var(--gold-light);
    text-align: center;
    margin: 12px 0;
}

.info-example {
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    padding: 12px;
    margin: 12px 0;
}

.info-example-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 0.8rem;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(45, 55, 72, 0.5);
}

.info-example-row:last-child {
    border-bottom: none;
}

.info-example-calc {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.info-example-calc strong {
    color: var(--gold);
}


/* ===== RESPONSIVE GALLERIE ===== */
@media (min-width: 500px) {
    .gallerie-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 768px) {
    .gallerie-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 6px;
    }
}


.rank-1 img.player-avatar { border-color: var(--gold); }
.rank-2 img.player-avatar { border-color: var(--silver); }
.rank-3 img.player-avatar { border-color: var(--bronze); }

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.player-row:nth-child(1) { animation-delay: 0.03s; }
.player-row:nth-child(2) { animation-delay: 0.06s; }
.player-row:nth-child(3) { animation-delay: 0.09s; }
.player-row:nth-child(4) { animation-delay: 0.12s; }
.player-row:nth-child(5) { animation-delay: 0.15s; }
.player-row:nth-child(6) { animation-delay: 0.18s; }
.player-row:nth-child(7) { animation-delay: 0.21s; }
.player-row:nth-child(8) { animation-delay: 0.24s; }
.player-row:nth-child(9) { animation-delay: 0.27s; }
.player-row:nth-child(10) { animation-delay: 0.30s; }
.player-row:nth-child(11) { animation-delay: 0.33s; }
.player-row:nth-child(12) { animation-delay: 0.36s; }
.player-row:nth-child(13) { animation-delay: 0.39s; }
.player-row:nth-child(14) { animation-delay: 0.42s; }
.player-row:nth-child(15) { animation-delay: 0.45s; }
.player-row:nth-child(n+16) { animation-delay: 0.48s; }

/* ===== RESPONSIVE ===== */
@media (min-width: 768px) {
    .content {
        max-width: 700px;
    }

    .table-header,
    .player-row {
        grid-template-columns: 50px 1.2fr 65px 65px 65px 72px;
    }

    .table-header.medal-header,
    .player-row.medal-row {
        grid-template-columns: 50px 1.2fr 50px 50px 50px 60px;
    }

    .table-header.normierte-header,
    .player-row.normierte-row {
        grid-template-columns: 50px 1.2fr 70px 100px;
    }
}

@media (hover: hover) {
    .nav-item:hover {
        color: var(--text-primary);
        background: rgba(212, 168, 67, 0.1);
    }

    .tab:hover:not(.active) {
        background: rgba(255, 255, 255, 0.05);
        color: var(--text-primary);
    }

    .player-row:hover {
        background: var(--bg-card-hover);
    }

    .sortable:hover,
    .sortable-oly:hover {
        background: rgba(212, 168, 67, 0.1);
        border-radius: 6px;
    }

    .sidebar-item:hover {
        background: rgba(212, 168, 67, 0.1);
    }

    .info-hint:hover {
        background: rgba(212, 168, 67, 0.15);
        border-color: var(--gold);
    }

    .info-hint:hover span {
        color: var(--text-primary);
    }

    .gallerie-item:hover img {
        transform: scale(1.05);
    }

    .gallerie-item:hover::after {
        background: rgba(0, 0, 0, 0.1);
    }

    .cta-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(212, 168, 67, 0.3);
    }

    .cta-btn.cta-secondary:hover {
        background: var(--bg-card-hover);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }

    .lightbox-close:hover,
    .lightbox-prev:hover,
    .lightbox-next:hover {
        background: rgba(255, 255, 255, 0.25);
    }
}