:root {
    --primary-blue: #0f172a;
    --accent-gold: #fbbf24;
    --accent-gold-hover: #d97706;
    --bg-soft: #f1f5f9;
    --card-white: #ffffff;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --success-green: #10b981;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-image: url('wm2026-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--text-dark);
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
   
    z-index: -1;
}

h1, h2, h3, .display-countdown, .team-name {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
}

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    padding: 15px 0;
}

.navbar-brand {
    font-family: 'Oswald', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-blue) !important;
    letter-spacing: -0.5px;
}

.navbar-brand span {
    color: var(--accent-gold);
}

.nav-link {
    color: var(--text-dark) !important;
    font-weight: 600;
    font-size: 0.95rem;
    margin-left: 10px;
}

.nav-link:hover {
    color: var(--accent-gold-hover) !important;
}

/* Hero / Countdown */
.hero-section {
    padding: 80px 0 60px;
    text-align: center;
}

.next-match-badge {
    background: var(--primary-blue);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-block;
    margin-bottom: 20px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.2);
    letter-spacing: 1px;
}

.display-countdown {
    font-size: 5rem;
    line-height: 1;
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-weight: 700;
}

.countdown-label {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Match Cards */
.match-card {
    background: var(--card-white);
    border: none;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
    border-top: 4px solid transparent;
}

.match-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-top: 4px solid var(--accent-gold);
}

.match-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.teams-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.team {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 35%;
    text-align: center;
}

.team-flag {
    width: 56px;
    height: 56px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: 0.3s;
}

.match-card:hover .team-flag {
    border-color: var(--accent-gold);
    transform: scale(1.1);
}

.team-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary-blue);
    line-height: 1.2;
}

/* Score Inputs */
.score-input-group {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    width: 30%;
}

.score-input {
    width: 50px;
    height: 50px;
    background: #f1f5f9;
    border: 2px solid #e2e8f0;
    color: var(--primary-blue);
    text-align: center;
    font-family: 'Oswald', sans-serif;
    font-size: 1.8rem;
    border-radius: 12px;
    font-weight: 700;
    transition: 0.3s;
}

.score-input:focus {
    background: white;
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    outline: none;
    box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.1);
}

.score-input[readonly] {
    background: #e2e8f0;
    cursor: not-allowed;
}

.vs-badge {
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-muted);
}

/* Buttons */
.btn-tip {
    width: 100%;
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-hover) 100%);
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.3);
}

.btn-tip:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(251, 191, 36, 0.4);
}

.btn-tip.has-tip {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
}

.btn-tip.has-tip:hover {
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
}

.btn-tip.saved {
    background: linear-gradient(135deg, var(--success-green) 0%, #059669 100%);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
    pointer-events: none;
}

/* Inputs mit bestehendem Tipp */
.score-input.has-tip {
    background: #eff6ff;
    border-color: #3b82f6;
    color: #1e40af;
}

.score-input.has-tip:focus {
    background: white;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

/* Leaderboard */
.leaderboard-card {
    background: var(--card-white);
    border-radius: 16px;
    padding: 30px 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}

.leaderboard-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f1f5f9;
}

.leaderboard-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 10px;
    border-radius: 12px;
    transition: 0.3s;
    margin-bottom: 10px;
}

.leaderboard-item:hover {
    background: #f8fafc;
}

.leaderboard-item.current-user {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 15px 20px;
    margin: 10px -10px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rank-badge {
    min-width: 32px;
    height: 32px;
    background: #f1f5f9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.rank-badge.rank-1 {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #78350f;
}

.rank-badge.rank-2 {
    background: linear-gradient(135deg, #c0c0c0 0%, #e5e5e5 100%);
    color: #44403c;
}

.rank-badge.rank-3 {
    background: linear-gradient(135deg, #cd7f32 0%, #daa06d 100%);
    color: #78350f;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.points {
    font-family: 'Oswald', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-blue);
    line-height: 1;
}

.points-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Footer */
footer {
    padding: 60px 0 40px;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 991px) {
    .display-countdown {
        font-size: 3rem;
    }
    
    .leaderboard-card {
        margin-top: 40px;
    }
}

/* Siegerpodest */
.podium-wrapper {
    perspective: 1000px;
}

.podium-container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 20px;
    padding: 40px 20px;
    background: linear-gradient(180deg, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0.8) 100%);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.podium-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: radial-gradient(ellipse at top, rgba(251, 191, 36, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.podium-place {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    animation: podiumEntrance 0.6s ease-out;
}

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

.podium-first {
    animation-delay: 0.2s;
    z-index: 3;
}

.podium-second {
    animation-delay: 0s;
    z-index: 2;
}

.podium-third {
    animation-delay: 0.1s;
    z-index: 1;
}

.podium-crown {
    position: absolute;
    top: -35px;
    font-size: 2rem;
    color: var(--accent-gold);
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(251, 191, 36, 0.4));
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.podium-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Oswald', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border: 4px solid white;
    transition: transform 0.3s;
}

.podium-first .podium-avatar {
    width: 100px;
    height: 100px;
    font-size: 2.2rem;
    border: 5px solid var(--accent-gold);
}

.podium-place:hover .podium-avatar {
    transform: scale(1.1) rotate(5deg);
}

.podium-rank {
    font-size: 2rem;
    margin-bottom: 10px;
}

.podium-first .podium-rank {
    font-size: 2.5rem;
    color: #ffd700;
    filter: drop-shadow(0 2px 8px rgba(255, 215, 0, 0.6));
}

.podium-second .podium-rank {
    color: #c0c0c0;
    filter: drop-shadow(0 2px 8px rgba(192, 192, 192, 0.6));
}

.podium-third .podium-rank {
    color: #cd7f32;
    filter: drop-shadow(0 2px 8px rgba(205, 127, 50, 0.6));
}

.podium-name {
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-blue);
    text-transform: uppercase;
    margin-bottom: 5px;
    text-align: center;
}

.podium-first .podium-name {
    font-size: 1.3rem;
}

.podium-points {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 20px;
}

.podium-first .podium-points {
    font-size: 1rem;
    color: var(--accent-gold);
}

.podium-pedestal {
    width: 120px;
    border-radius: 12px 12px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    position: relative;
    transition: transform 0.3s;
}

.podium-place:hover .podium-pedestal {
    transform: translateY(-5px);
}

.podium-pedestal-1 {
    height: 180px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
}

.podium-pedestal-2 {
    height: 140px;
    background: linear-gradient(135deg, #c0c0c0 0%, #e5e5e5 100%);
}

.podium-pedestal-3 {
    height: 110px;
    background: linear-gradient(135deg, #cd7f32 0%, #daa06d 100%);
}

.podium-number {
    font-family: 'Oswald', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* Responsive Podium */
@media (max-width: 768px) {
    .podium-container {
        gap: 10px;
        padding: 30px 10px;
    }
    
    .podium-pedestal {
        width: 90px;
    }
    
    .podium-pedestal-1 {
        height: 140px;
    }
    
    .podium-pedestal-2 {
        height: 110px;
    }
    
    .podium-pedestal-3 {
        height: 85px;
    }
    
    .podium-avatar {
        width: 60px;
        height: 60px;
        font-size: 1.3rem;
    }
    
    .podium-first .podium-avatar {
        width: 75px;
        height: 75px;
        font-size: 1.6rem;
    }
    
    .podium-name {
        font-size: 0.9rem;
    }
    
    .podium-first .podium-name {
        font-size: 1rem;
    }
    
    .podium-points {
        font-size: 0.75rem;
    }
    
    .podium-number {
        font-size: 2rem;
    }
    
    .podium-crown {
        top: -25px;
        font-size: 1.5rem;
    }
}

/* Leere Podest-Plätze */
.podium-empty {
    opacity: 0.6;
}

.podium-empty .podium-avatar {
    border-style: dashed;
    border-color: #cbd5e1;
    background: #f8fafc !important;
}

.podium-empty .podium-pedestal {
    opacity: 0.4;
}

.podium-empty:hover .podium-avatar {
    transform: none;
}

.podium-empty:hover .podium-pedestal {
    transform: none;
}

/* Toast-Animationen */
@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* Footer */
.site-footer {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #1e293b 100%);
    color: white;
    padding: 40px 0;
    margin-top: 80px;
    border-top: 3px solid var(--accent-gold);
}

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

.footer-left .copyright {
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.9;
}

.footer-right {
    display: flex;
    gap: 30px;
    align-items: center;
}

.footer-link {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: 0.3s;
    position: relative;
    opacity: 0.9;
}

.footer-link:hover {
    color: var(--accent-gold);
    opacity: 1;
    transform: translateY(-2px);
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: width 0.3s;
}

.footer-link:hover::after {
    width: 100%;
}

/* Footer Responsive */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-right {
        flex-direction: column;
        gap: 15px;
    }
}
