/* 
 * WM 2026 Tippspiel - Styles
 * Inspiriert von invictus-lead-generation.de
 * Mobile First Approach
 */

/* ===== CSS Variables ===== */
:root {
    /* Colors - Dark Theme inspired by Invictus */
    --color-primary: #0a1628;
    --color-primary-light: #0f2341;
    --color-secondary: #1a3a5c;
    
    /* Accent - Türkis/Teal wie Invictus */
    --color-accent: #4fd1c5;
    --color-accent-hover: #38b2ac;
    --color-accent-light: rgba(79, 209, 197, 0.1);
    
    /* Gold für Spezialaktionen */
    --color-gold: #f6e05e;
    --color-gold-dark: #d69e2e;
    
    /* Text */
    --color-text: #ffffff;
    --color-text-muted: #a0aec0;
    --color-text-dark: #1a202c;
    
    /* Backgrounds */
    --color-bg: #0a1628;
    --color-bg-card: rgba(15, 35, 65, 0.8);
    --color-bg-input: rgba(26, 58, 92, 0.5);
    
    /* Status Colors */
    --color-success: #48bb78;
    --color-error: #fc8181;
    --color-warning: #f6ad55;
    
    /* Borders */
    --color-border: rgba(79, 209, 197, 0.2);
    
    /* Typography */
    --font-display: 'Bebas Neue', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 20px rgba(79, 209, 197, 0.3);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Background Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(79, 209, 197, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(79, 209, 197, 0.05) 0%, transparent 50%),
        linear-gradient(180deg, var(--color-primary) 0%, var(--color-bg) 100%);
    z-index: -1;
    pointer-events: none;
}

.main {
    flex: 1;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-accent-hover);
}

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

/* ===== Container ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

h1 { font-size: clamp(2.5rem, 8vw, 4.5rem); }
h2 { font-size: clamp(2rem, 6vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 4vw, 2rem); }
h4 { font-size: clamp(1.25rem, 3vw, 1.5rem); }

.text-accent { color: var(--color-accent); }
.text-muted { color: var(--color-text-muted); }
.text-center { text-align: center; }

/* ===== Header ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    gap: var(--space-md);
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
}

.logo__text {
    font-family: var(--font-display);
    font-size: 1.75rem;
    color: var(--color-text);
    letter-spacing: 0.05em;
}

.logo__accent {
    color: var(--color-accent);
}

/* Navigation */
.nav {
    display: none;
    align-items: center;
    gap: var(--space-lg);
}

@media (min-width: 768px) {
    .nav {
        display: flex;
    }
}

.nav__link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: var(--space-sm) 0;
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width var(--transition-base);
}

.nav__link:hover,
.nav__link--active {
    color: var(--color-text);
}

.nav__link:hover::after,
.nav__link--active::after {
    width: 100%;
}

.nav__link--admin {
    color: var(--color-gold);
}

/* Header Actions */
.header__actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.user-badge {
    display: none;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--color-bg-card);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
}

@media (min-width: 640px) {
    .user-badge {
        display: flex;
    }
}

.user-badge__name {
    color: var(--color-accent);
    font-weight: 500;
}

/* Nav Toggle (Mobile) */
.nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

@media (min-width: 768px) {
    .nav-toggle {
        display: none;
    }
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: var(--transition-fast);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Nav */
.mobile-nav {
    display: none;
    flex-direction: column;
    padding: var(--space-md);
    background: var(--color-primary);
    border-bottom: 1px solid var(--color-border);
}

.mobile-nav.active {
    display: flex;
}

@media (min-width: 768px) {
    .mobile-nav {
        display: none !important;
    }
}

.mobile-nav__link {
    padding: var(--space-md);
    color: var(--color-text);
    font-weight: 500;
    border-bottom: 1px solid var(--color-border);
}

.mobile-nav__link:last-child {
    border-bottom: none;
}

.mobile-nav__link--logout {
    color: var(--color-error);
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 2px solid transparent;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    white-space: nowrap;
}

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

.btn--primary:hover {
    background: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
    color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn--outline {
    background: transparent;
    color: var(--color-text);
    border-color: var(--color-border);
}

.btn--outline:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

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

.btn--gold:hover {
    background: var(--color-gold-dark);
    border-color: var(--color-gold-dark);
}

.btn--sm {
    padding: var(--space-sm) var(--space-md);
    font-size: 0.75rem;
}

.btn--lg {
    padding: var(--space-lg) var(--space-2xl);
    font-size: 1rem;
}

.btn--full {
    width: 100%;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* ===== Forms ===== */
.form {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.form-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-input {
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text);
    background: var(--color-bg-input);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px var(--color-accent-light);
}

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

.form-input--pin {
    font-size: 1.5rem;
    text-align: center;
    letter-spacing: 0.5em;
    font-family: var(--font-display);
}

.form-hint {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.form-error {
    font-size: 0.75rem;
    color: var(--color-error);
}

/* Score Input */
.score-input {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.score-input__field {
    width: 60px;
    height: 60px;
    padding: 0;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    background: var(--color-bg-input);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text);
}

.score-input__field:focus {
    border-color: var(--color-accent);
    outline: none;
}

.score-input__separator {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-muted);
}

/* ===== Cards ===== */
.card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    backdrop-filter: blur(10px);
}

.card--glow {
    box-shadow: var(--shadow-glow);
}

.card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--color-border);
}

.card__title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    letter-spacing: 0.05em;
}

/* ===== Hero Section ===== */
.hero {
    padding: var(--space-3xl) 0;
    text-align: center;
}

.hero__badge {
    display: inline-block;
    padding: var(--space-sm) var(--space-md);
    background: var(--color-accent-light);
    color: var(--color-accent);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-lg);
}

.hero__title {
    margin-bottom: var(--space-md);
}

.hero__subtitle {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto var(--space-xl);
}

.hero__actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    align-items: center;
}

@media (min-width: 480px) {
    .hero__actions {
        flex-direction: row;
        justify-content: center;
    }
}

/* ===== Stats Grid ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    margin: var(--space-xl) 0;
}

@media (min-width: 640px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    text-align: center;
}

.stat-card__value {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--color-accent);
    line-height: 1;
}

.stat-card__label {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: var(--space-sm);
}

/* ===== Match Card ===== */
.match-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
}

.match-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-2px);
}

.match-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md);
    background: rgba(0, 0, 0, 0.2);
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.match-card__phase {
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.match-card__body {
    padding: var(--space-lg);
}

.match-card__teams {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: var(--space-md);
}

.match-card__team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    text-align: center;
}

.match-card__team:last-child {
    /* Umgekehrte Reihenfolge für Auswärtsteam */
}

.match-card__flag {
    font-size: 2rem;
}

.match-card__team-name {
    font-size: 0.875rem;
    font-weight: 600;
}

.match-card__vs {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--color-text-muted);
}

.match-card__score {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-display);
    font-size: 2rem;
}

.match-card__score-value {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-secondary);
    border-radius: var(--radius-md);
}

.match-card__info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px solid var(--color-border);
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.match-card__prediction {
    margin-top: var(--space-md);
    padding: var(--space-md);
    background: var(--color-accent-light);
    border-radius: var(--radius-md);
    text-align: center;
}

.match-card__prediction-label {
    font-size: 0.75rem;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-xs);
}

.match-card__prediction-value {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--color-text);
}

.match-card__footer {
    padding: var(--space-md);
    background: rgba(0, 0, 0, 0.2);
}

/* Status badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-sm);
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-full);
}

.badge--live {
    background: var(--color-error);
    color: white;
    animation: pulse 2s infinite;
}

.badge--upcoming {
    background: var(--color-accent-light);
    color: var(--color-accent);
}

.badge--finished {
    background: var(--color-text-muted);
    color: var(--color-primary);
}

.badge--points {
    background: var(--color-gold);
    color: var(--color-primary);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* ===== Leaderboard ===== */
.leaderboard {
    overflow-x: auto;
}

.leaderboard__table {
    width: 100%;
    border-collapse: collapse;
}

.leaderboard__table th,
.leaderboard__table td {
    padding: var(--space-md);
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.leaderboard__table th {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(0, 0, 0, 0.2);
}

.leaderboard__table tr:hover {
    background: var(--color-bg-input);
}

.leaderboard__table tr.current-user {
    background: var(--color-accent-light);
}

.leaderboard__rank {
    font-family: var(--font-display);
    font-size: 1.25rem;
    min-width: 50px;
}

.leaderboard__rank--top {
    color: var(--color-gold);
}

.leaderboard__name {
    font-weight: 600;
}

.leaderboard__points {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--color-accent);
}

/* ===== Match List ===== */
.match-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.match-list__date {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.match-list__date:first-child {
    margin-top: 0;
}

.match-list__date-text {
    font-family: var(--font-display);
    font-size: 1.25rem;
    white-space: nowrap;
}

.match-list__date-line {
    flex: 1;
    height: 1px;
    background: var(--color-border);
}

.match-list__grid {
    display: grid;
    gap: var(--space-sm);
}

/* Desktop: 1 Spalte, kompakte horizontale Cards */
@media (min-width: 768px) {
    .match-list__grid {
        grid-template-columns: 1fr;
        max-width: 1000px;
        margin: 0 auto;
    }
    
    /* Kompakte horizontale Match Card */
    .match-card {
        display: flex;
        align-items: center;
        padding: 0;
    }
    
    .match-card__header {
        padding: var(--space-sm) var(--space-md);
        background: transparent;
        border-right: 1px solid var(--color-border);
        min-width: 130px;
        flex-direction: column;
        gap: 2px;
        text-align: center;
        flex-shrink: 0;
    }
    
    .match-card__phase {
        font-size: 0.7rem;
    }
    
    .match-card__body {
        flex: 1;
        padding: var(--space-sm) var(--space-md);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: var(--space-md);
    }
    
    .match-card__teams {
        display: flex;
        align-items: center;
        gap: var(--space-md);
    }
    
    .match-card__team {
        flex-direction: row;
        gap: var(--space-sm);
        min-width: 160px;
    }
    
    .match-card__team:first-child {
        justify-content: flex-end;
        text-align: right;
    }
    
    .match-card__team:last-child {
        justify-content: flex-start;
        flex-direction: row-reverse;
        text-align: left;
    }
    
    .match-card__flag {
        font-size: 1.5rem;
    }
    
    .match-card__flag .fi {
        font-size: 1.5rem;
    }
    
    .match-card__team-name {
        font-size: 0.85rem;
        white-space: nowrap;
    }
    
    .match-card__vs {
        font-size: 1rem;
        min-width: 50px;
        text-align: center;
    }
    
    .match-card__score {
        font-size: 1.25rem;
        min-width: 80px;
        justify-content: center;
    }
    
    .match-card__score-value {
        width: 30px;
        height: 30px;
        font-size: 1.1rem;
    }
    
    .match-card__info {
        display: none;
    }
    
    .match-card__prediction {
        margin-top: 0;
        padding: var(--space-xs) var(--space-sm);
        display: inline-flex;
        align-items: center;
        gap: var(--space-xs);
        font-size: 0.75rem;
        background: var(--color-accent-light);
        border-radius: var(--radius-sm);
        white-space: nowrap;
    }
    
    .match-card__prediction-label {
        margin-bottom: 0;
        display: flex;
        align-items: center;
        gap: var(--space-xs);
    }
    
    .match-card__prediction-value {
        font-size: 0.9rem;
    }
    
    .match-card__footer {
        padding: var(--space-sm) var(--space-md);
        background: transparent;
        border-left: 1px solid var(--color-border);
        min-width: 220px;
        flex-shrink: 0;
    }
    
    .match-card__footer .text-muted {
        font-size: 0.7rem;
    }
    
    .prediction-form {
        display: flex;
        align-items: center;
        gap: var(--space-sm);
    }
    
    .prediction-form__inputs {
        gap: var(--space-xs);
    }
    
    .prediction-form__team {
        gap: var(--space-xs);
    }
    
    .prediction-form__flag {
        display: none;
    }
    
    .score-input__field {
        width: 40px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    .prediction-form .btn {
        padding: var(--space-xs) var(--space-sm);
        font-size: 0.75rem;
    }
    
    /* Hover-Effekt für kompakte Cards */
    .match-card:hover {
        transform: none;
        box-shadow: var(--shadow-glow);
    }
}

/* Große Bildschirme: noch mehr Platz */
@media (min-width: 1200px) {
    .match-list__grid {
        max-width: 1100px;
    }
    
    .match-card__team {
        min-width: 200px;
    }
    
    .match-card__header {
        min-width: 150px;
    }
    
    .match-card__footer {
        min-width: 250px;
    }
}

/* ===== Section ===== */
.section {
    padding: var(--space-2xl) 0;
}

.section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
    gap: var(--space-md);
}

.section__title {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.section__icon {
    font-size: 2rem;
}

/* ===== Auth Pages ===== */
.auth-page {
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl) var(--space-md);
}

.auth-card {
    width: 100%;
    max-width: 420px;
}

.auth-card__header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.auth-card__title {
    margin-bottom: var(--space-sm);
}

.auth-card__subtitle {
    color: var(--color-text-muted);
}

.auth-card__footer {
    margin-top: var(--space-xl);
    text-align: center;
    color: var(--color-text-muted);
}

/* ===== Alert ===== */
.alert {
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
    font-size: 0.875rem;
}

.alert--success {
    background: rgba(72, 187, 120, 0.1);
    border: 1px solid var(--color-success);
    color: var(--color-success);
}

.alert--error {
    background: rgba(252, 129, 129, 0.1);
    border: 1px solid var(--color-error);
    color: var(--color-error);
}

.alert--info {
    background: var(--color-accent-light);
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
}

/* ===== Group Filter ===== */
.group-filter {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
}

.group-filter__btn {
    padding: var(--space-sm) var(--space-md);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-muted);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.group-filter__btn:hover,
.group-filter__btn--active {
    color: var(--color-primary);
    background: var(--color-accent);
    border-color: var(--color-accent);
}

/* ===== Footer ===== */
.footer {
    background: var(--color-primary);
    border-top: 1px solid var(--color-border);
    padding: var(--space-2xl) 0;
    margin-top: auto;
}

.footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
    text-align: center;
}

@media (min-width: 768px) {
    .footer__inner {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer__tagline {
    color: var(--color-text-muted);
    font-size: 0.875rem;
    margin-top: var(--space-xs);
}

.footer__links {
    display: flex;
    gap: var(--space-lg);
}

.footer__links a {
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

.footer__links a:hover {
    color: var(--color-accent);
}

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

.footer__points {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-sm);
}

.points-info {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

/* ===== Flag Icons ===== */
.flag {
    display: inline-block;
    width: 1.5em;
    height: 1.125em;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.flag--sm {
    width: 1.25em;
    height: 0.9375em;
}

.flag--lg {
    width: 2em;
    height: 1.5em;
}

.flag--xl {
    width: 3em;
    height: 2.25em;
    border-radius: 4px;
}

/* Platzhalter für unbekannte Teams (K.O.-Runde) */
.flag-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5em;
    height: 1.125em;
    background: linear-gradient(135deg, var(--color-secondary), var(--color-primary-light));
    border: 1px dashed var(--color-border);
    border-radius: 2px;
    font-size: 0.75em;
    color: var(--color-text-muted);
    font-weight: 600;
}

.flag-placeholder.sm { width: 1.25em; height: 0.9375em; font-size: 0.65em; }
.flag-placeholder.lg { width: 2em; height: 1.5em; font-size: 0.9em; }
.flag-placeholder.xl { width: 3em; height: 2.25em; font-size: 1.1em; }

.match-card__flag .fi {
    font-size: 2rem;
}

.prediction-form__flag .fi {
    font-size: 1.5rem;
}

/* ===== Utilities ===== */
.hidden { display: none !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-md { margin-bottom: var(--space-md) !important; }
.mb-lg { margin-bottom: var(--space-lg) !important; }
.mb-xl { margin-bottom: var(--space-xl) !important; }
.mt-md { margin-top: var(--space-md) !important; }
.mt-lg { margin-top: var(--space-lg) !important; }
.mt-xl { margin-top: var(--space-xl) !important; }

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

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* Stagger children */
.stagger > * {
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

.stagger > *:nth-child(1) { animation-delay: 0.1s; }
.stagger > *:nth-child(2) { animation-delay: 0.2s; }
.stagger > *:nth-child(3) { animation-delay: 0.3s; }
.stagger > *:nth-child(4) { animation-delay: 0.4s; }
.stagger > *:nth-child(5) { animation-delay: 0.5s; }
.stagger > *:nth-child(6) { animation-delay: 0.6s; }

/* ===== Loading Spinner ===== */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--color-border);
    border-top-color: var(--color-accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* ===== Prediction Form ===== */
.prediction-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    align-items: center;
}

.prediction-form__inputs {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.prediction-form__team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    min-width: 80px;
}

.prediction-form__flag {
    font-size: 1.5rem;
}

.prediction-form__name {
    font-size: 0.75rem;
    font-weight: 500;
    text-align: center;
}

.prediction-form__separator {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--color-text-muted);
}

/* ===== Empty State ===== */
.empty-state {
    text-align: center;
    padding: var(--space-3xl) var(--space-lg);
}

.empty-state__icon {
    font-size: 4rem;
    margin-bottom: var(--space-lg);
}

.empty-state__title {
    margin-bottom: var(--space-md);
}

.empty-state__text {
    color: var(--color-text-muted);
    margin-bottom: var(--space-xl);
}
