/* WM 2026 Quotenrechner & Dashboard - CSS Design-System */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --bg-primary: #080c14;
    --bg-card: rgba(15, 23, 42, 0.65);
    --bg-card-hover: rgba(22, 34, 62, 0.8);
    --bg-header: rgba(10, 15, 30, 0.9);
    --bg-modal: #0f172a;
    
    --color-gold: #e5c158;
    --color-gold-glow: rgba(229, 193, 88, 0.35);
    --color-gold-dark: #b89330;
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --color-accent: #38bdf8;
    --color-success: #10b981;
    --color-danger: #f43f5e;
    --color-draw: #64748b;
    
    --border-glow: rgba(229, 193, 88, 0.15);
    --border-standard: rgba(255, 255, 255, 0.07);
    --border-active: rgba(56, 189, 248, 0.4);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Reset & Basis */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Scrollbar Design */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-gold-dark);
}

/* Layout-Struktur */
.app-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header & Banner */
.app-header {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: var(--glass-shadow);
    border: 1px solid var(--border-standard);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(8, 12, 20, 0.95) 100%);
}

.header-banner {
    position: relative;
    height: 220px;
    background-image: url('banner.png');
    background-size: cover;
    background-position: center top;
    display: flex;
    align-items: flex-end;
}

.header-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(8, 12, 20, 0.95) 0%, rgba(8, 12, 20, 0.3) 70%, rgba(0, 0, 0, 0.1) 100%);
}

.header-title-container {
    position: relative;
    z-index: 10;
    padding: 30px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 20px;
}

.header-title-group h1 {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, var(--color-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.header-title-group p {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-top: 5px;
}

.live-ticker {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid var(--color-success);
    color: var(--color-success);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.2);
    max-width: 100%;
    overflow: hidden;
}

.live-ticker-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-success);
    border-radius: 50%;
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.8); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 8px var(--color-success); }
    100% { transform: scale(0.8); opacity: 0.5; }
}

/* Navigations-Tabs */
.navigation-bar {
    display: flex;
    background-color: var(--bg-header);
    border-top: 1px solid var(--border-standard);
    padding: 0 20px;
    overflow-x: auto;
}

.nav-tab {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    padding: 18px 24px;
    cursor: pointer;
    position: relative;
    transition: var(--transition-smooth);
    white-space: nowrap;
}

.nav-tab:hover {
    color: var(--text-primary);
}

.nav-tab.active {
    color: var(--color-gold);
}

.nav-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 24px;
    right: 24px;
    height: 3px;
    background-color: var(--color-gold);
    border-radius: 3px 3px 0 0;
    box-shadow: 0 0 10px var(--color-gold-glow);
}

/* Tab-Inhalte */
.tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-content.active {
    display: block;
}

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

/* Dashboard Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
    width: 100%;
}

@media (min-width: 900px) {
    .dashboard-grid {
        grid-template-columns: 2fr 3fr;
    }
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.section-title::before {
    content: '';
    display: block;
    width: 4px;
    height: 20px;
    background-color: var(--color-gold);
    border-radius: 2px;
}

/* Next Match Highlight Card */
.highlight-card {
    background: linear-gradient(145deg, rgba(229, 193, 88, 0.08) 0%, rgba(15, 23, 42, 0.75) 100%);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid var(--border-glow);
    box-shadow: var(--glass-shadow);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden; /* Sicherung gegen Ausbrechen */
    width: 100%;
}

.highlight-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, var(--color-gold-glow) 0%, rgba(0,0,0,0) 70%);
    pointer-events: none;
}

.next-match-meta {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-gold);
    font-weight: 600;
    margin-bottom: 20px;
}

.next-match-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 15px;
}

.next-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    text-align: center;
}

.next-flag {
    font-size: 3.5rem;
    filter: drop-shadow(0 8px 10px rgba(0,0,0,0.4));
    line-height: 1;
    margin-bottom: 10px;
    transition: var(--transition-smooth);
}

.next-team:hover .next-flag {
    transform: scale(1.1) translateY(-4px);
}

.next-name {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.next-vs {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 12px;
    border-radius: 50%;
    border: 1px solid var(--border-standard);
}

.next-match-time {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 15px;
}

.next-match-countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 auto 25px auto;
    padding: 8px 16px;
    background: rgba(229, 193, 88, 0.06);
    border: 1px solid rgba(229, 193, 88, 0.2);
    border-radius: 30px;
    max-width: fit-content;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.countdown-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.countdown-time {
    color: var(--color-gold);
    font-weight: 700;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
    text-shadow: 0 0 10px rgba(229, 193, 88, 0.3);
}

.countdown-live-notice {
    color: var(--color-success);
    font-weight: 700;
    animation: liveTextPulse 1.5s infinite alternate;
}

.next-match-odds-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 25px;
}

.odd-badge {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-standard);
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.odd-badge strong {
    display: block;
    font-size: 1.1rem;
    color: var(--color-gold);
    margin-top: 4px;
}

.btn {
    background: none;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-gold {
    background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-dark) 100%);
    color: #080c14;
    box-shadow: 0 4px 15px rgba(229, 193, 88, 0.3);
}

.btn-gold:hover {
    box-shadow: 0 6px 20px rgba(229, 193, 88, 0.45);
}

.btn-outline {
    border: 1px solid var(--border-standard);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.05);
    border-color: var(--text-secondary);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
    border-radius: 14px;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
    border-radius: 8px;
}

/* Match Cards (Listings) */
.matches-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.match-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-standard);
    border-radius: 16px;
    padding: 15px 20px;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.match-card:hover {
    background-color: var(--bg-card-hover);
    border-color: var(--border-active);
    box-shadow: 0 6px 18px rgba(56, 189, 248, 0.15);
}

.match-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.match-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.team-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.team-info.team-right {
    justify-content: flex-end;
    text-align: right;
}

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

.team-name-text {
    font-weight: 600;
    font-size: 0.95rem;
    white-space: normal;
    word-break: break-word;
}

.match-score {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    background: rgba(255,255,255,0.03);
    padding: 6px 16px;
    border-radius: 8px;
    border: 1px solid var(--border-standard);
    min-width: 80px;
    text-align: center;
}

.score-placeholder {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.match-odds-mini {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    border-top: 1px solid rgba(255,255,255,0.03);
    padding-top: 8px;
}

.match-odds-mini span {
    background: rgba(255, 255, 255, 0.02);
    padding: 2px 8px;
    border-radius: 4px;
}

.match-odds-mini span::before {
    content: 'Odds: ';
    color: var(--text-muted);
}

/* Gruppen Tab */
.groups-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.group-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-standard);
    border-radius: 20px;
    padding: 20px;
    box-shadow: var(--glass-shadow);
    display: flex;
    flex-direction: column;
}

.group-card h3 {
    font-size: 1.2rem;
    color: var(--color-gold);
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-standard);
    padding-bottom: 8px;
}

.group-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.group-table th {
    color: var(--text-muted);
    text-align: left;
    font-weight: 500;
    padding: 6px 4px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.group-table td {
    padding: 8px 4px;
    border-bottom: 1px solid rgba(255,255,255,0.02);
}

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

.row-qualified td {
    color: var(--color-accent);
}

.row-third td {
    color: rgba(56, 189, 248, 0.7);
}

.group-card .btn {
    margin-top: auto;
    width: 100%;
}

/* Turnierbaum (Bracket) */
.bracket-wrapper {
    position: relative;
    padding: 20px 0;
    width: 100%;
}

.bracket-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px 16px;
    border-radius: 30px;
    width: fit-content;
    margin: 0 auto 15px auto;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.bracket-controls span {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-gold);
    min-width: 45px;
    text-align: center;
    font-family: var(--font-heading);
}

.zoom-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
    outline: none;
    user-select: none;
}

.zoom-btn:hover {
    background: var(--color-gold);
    color: #000;
    border-color: var(--color-gold);
}

.tool-btn {
    background: none;
    border: none;
    padding: 6px 14px;
    border-radius: 16px;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
    user-select: none;
    outline: none;
    font-family: var(--font-heading);
}

.tool-btn:hover {
    color: #fff;
}

.tool-btn.active-tool {
    background: var(--color-gold) !important;
    color: #000 !important;
    box-shadow: 0 2px 8px rgba(229, 193, 88, 0.4);
}

.bracket-scroll-area {
    overflow: hidden; /* Deaktiviert natives Scrollen, um Layout-Sprünge zu verhindern */
    touch-action: none; /* Deaktiviert Standard-Touch-Gesten des Browsers */
    position: relative;
    width: 100%;
    height: 70vh; /* Feste Viewport-Höhe */
    min-height: 500px;
    cursor: grab;
    border-radius: 16px;
    background: rgba(10, 15, 30, 0.85); /* Solid background to replace expensive blur */
    border: 1px solid rgba(255, 255, 255, 0.08);
    user-select: none;
    outline: none;
}

.bracket-scroll-area:active {
    cursor: grabbing;
}

.bracket-scroll-area.pan-mode-active,
.bracket-scroll-area.pan-mode-active .bracket-match-card,
.bracket-scroll-area.pan-mode-active .podium-widget {
    cursor: grab !important;
}

.bracket-scroll-area.pan-mode-active:active,
.bracket-scroll-area.pan-mode-active:active .bracket-match-card,
.bracket-scroll-area.pan-mode-active:active .podium-widget {
    cursor: grabbing !important;
}

/* Die Hilfs-Container-Klassen sind im neuen System nicht mehr nötig und werden hier bereinigt */

.bracket-container {
    position: absolute;
    top: 0;
    left: 0;
    transform-origin: 0 0;
    display: flex;
    gap: 45px;
    width: 1750px; /* Breite für 5 Spalten + Weltmeister-Widget */
    height: 1800px; /* Großzügige Höhe, damit sich die 16 K.o.-Spiele schön verteilen */
    padding: 40px 20px;
    will-change: transform;
}

.bracket-column {
    display: flex;
    flex-direction: column;
    min-width: 240px;
    height: 100%;
}

.bracket-column h3 {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-standard);
    padding-bottom: 10px;
}

.bracket-matches-list {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    flex: 1;
    gap: 15px;
}

.bracket-match-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-standard);
    border-radius: 12px;
    padding: 10px 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: border-color 0.2s ease, box-shadow 0.2s ease; /* Specific properties for high performance */
}

.bracket-match-card:hover {
    border-color: var(--color-gold);
    box-shadow: 0 4px 15px var(--border-glow);
}

.bracket-team {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.bracket-team.winner-text {
    color: var(--text-primary);
    font-weight: 700;
}

.bracket-score {
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--color-gold);
}

.bracket-divider {
    height: 1px;
    background-color: var(--border-standard);
    margin: 6px 0;
}

.podium-widget {
    background: linear-gradient(135deg, rgba(229,193,88,0.15) 0%, rgba(15,23,42,0.85) 100%);
    border: 2px solid var(--color-gold);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(229, 193, 88, 0.2);
    min-width: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    align-self: center;
}

.trophy {
    font-size: 4rem;
    filter: drop-shadow(0 0 15px var(--color-gold));
    margin-bottom: 10px;
}

.podium-widget h2 {
    font-size: 1.25rem;
    color: var(--color-gold);
    text-transform: uppercase;
    margin-bottom: 15px;
}

.champion-name {
    font-size: 1.4rem;
    font-weight: 800;
}

/* KI-Analyse Tab */
.analysis-container {
    background-color: var(--bg-card);
    border: 1px solid var(--border-standard);
    border-radius: 24px;
    padding: 30px;
    box-shadow: var(--glass-shadow);
}

.select-hint {
    text-align: center;
    color: var(--text-secondary);
    padding: 50px 0;
    font-style: italic;
}

.analysis-meta-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-standard);
    padding-bottom: 15px;
    margin-bottom: 30px;
}

.odds-src {
    background: rgba(255,255,255,0.03);
    padding: 2px 10px;
    border-radius: 4px;
    border: 1px solid var(--border-standard);
}

.analysis-teams-display {
    display: flex;
    align-items: center;
    justify-content: space-around;
    margin-bottom: 40px;
    gap: 20px;
}

.team-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
}

.flag-big {
    font-size: 5rem;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.5));
    line-height: 1;
    margin-bottom: 15px;
}

.team-panel h3 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.rank-badge {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-standard);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.vs-badge {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-muted);
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-standard);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* Quoten visualisieren */
.odds-visualizer {
    margin-bottom: 40px;
}

.odds-visualizer h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.odds-bar {
    height: 55px;
    display: flex;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
}

.odd-segment {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: #080c14;
    transition: var(--transition-smooth);
    text-align: center;
    line-height: 1.2;
    padding: 0 4px;
}

.seg-home {
    background-color: var(--color-accent);
}

.seg-draw {
    background-color: var(--color-draw);
    color: #ffffff;
}

.seg-away {
    background-color: var(--color-gold);
}

.odds-bar-legend {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* KI Analyse Output */
.ai-analysis-output {
    background: transparent;
    border: none;
    padding: 0;
    min-height: auto;
    margin-top: 25px;
}

.ai-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 150px;
}

.ai-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 40px 0;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-standard);
    border-top: 4px solid var(--color-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.mock-warning {
    background: rgba(229, 193, 88, 0.1);
    border: 1px solid rgba(229, 193, 88, 0.3);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.85rem;
    color: var(--color-gold);
    margin-bottom: 25px;
}

/* Formatierung KI-Output */
.ai-analysis-output h4 {
    font-size: 1.2rem;
    color: var(--color-gold);
    margin-top: 25px;
    margin-bottom: 10px;
}

.ai-analysis-output h4:first-of-type {
    margin-top: 0;
}

.ai-analysis-output p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
    text-align: justify;
}

.ai-analysis-output ul {
    margin-left: 20px;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.ai-analysis-output li {
    margin-bottom: 8px;
}

.ai-analysis-output strong {
    color: var(--text-primary);
}

/* Einstellungs-Tab */
.settings-container {
    background-color: var(--bg-card);
    border: 1px solid var(--border-standard);
    border-radius: 24px;
    padding: 30px;
    box-shadow: var(--glass-shadow);
    max-width: 600px;
    margin: 0 auto;
}

.settings-group {
    margin-bottom: 25px;
}

.settings-group label {
    display: block;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.settings-group input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-standard);
    border-radius: 10px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.settings-group input:focus {
    border-color: var(--color-accent);
    outline: none;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.15);
}

.settings-group p {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 6px;
}

.settings-group p a {
    color: var(--color-accent);
    text-decoration: none;
}

.settings-group p a:hover {
    text-decoration: underline;
}

.settings-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    border-top: 1px solid var(--border-standard);
    padding-top: 25px;
}

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background-color: var(--bg-modal);
    border: 1px solid var(--color-gold-glow);
    border-radius: 24px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    transform: scale(0.9);
    transition: var(--transition-smooth);
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-standard);
    padding-bottom: 15px;
}

.modal-header h3 {
    font-size: 1.25rem;
    color: var(--color-gold);
}

.modal-match-details {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 35px;
}

.modal-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    text-align: center;
}

.modal-flag {
    font-size: 3rem;
    margin-bottom: 5px;
}

.modal-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.modal-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-inputs input {
    width: 60px;
    height: 50px;
    text-align: center;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border-standard);
    border-radius: 10px;
    color: var(--text-primary);
}

.modal-inputs input:focus {
    border-color: var(--color-gold);
    outline: none;
}

.modal-inputs span {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-muted);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.modal-user-tip-input-box {
    background: rgba(56, 189, 248, 0.03);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(56, 189, 248, 0.15);
    margin-bottom: 20px;
}

.modal-real-result-banner {
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    padding: 15px;
    border: 1px solid var(--border-standard);
    margin-bottom: 20px;
    text-align: center;
}

/* Torschützen responsive layout (Version v95) */
.match-scorers-container {
    display: flex;
    justify-content: space-between;
    font-size: 0.76rem;
    color: var(--text-secondary);
    width: 100%;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed rgba(255,255,255,0.08);
    gap: 20px;
    line-height: 1.4;
}

.scorers-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.scorers-column.home-column {
    text-align: left;
    align-items: flex-start;
}

.scorers-column.away-column {
    text-align: right;
    align-items: flex-end;
}

.scorers-team-flag-label {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--color-gold);
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.match-predictions-comparison {
    background: rgba(0,0,0,0.25);
    border-radius: 16px;
    border: 1px solid var(--border-standard);
    padding: 18px;
    margin-bottom: 20px;
}

.prediction-box {
    background: rgba(255,255,255,0.02);
    border-radius: 12px;
    padding: 12px;
    border: 1px solid rgba(255,255,255,0.04);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 85px;
}

.prediction-box.ki-box {
    background: rgba(229, 193, 88, 0.03);
    border-color: rgba(229, 193, 88, 0.1);
}

.prediction-box.real-box {
    background: rgba(56, 189, 248, 0.03);
    border-color: rgba(56, 189, 248, 0.1);
}

/* Fixtures in modal */
.group-fixtures-list {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 25px;
    padding-right: 5px;
}

.fixture-row {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-standard);
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 10px;
}

.fixture-meta {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.fixture-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.f-team {
    font-size: 0.85rem;
    font-weight: 600;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.f-team.team-right {
    text-align: right;
}

.f-score {
    width: 55px;
    height: 32px;
    text-align: center;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border-standard);
    border-radius: 6px;
    color: var(--text-primary);
    font-weight: 700;
}

.f-score:focus {
    border-color: var(--color-gold);
    outline: none;
}

/* Live Simulation Styles */
.live-pulse-badge {
    background: rgba(244, 63, 94, 0.15);
    border: 1px solid var(--color-danger);
    color: var(--color-danger);
    padding: 4px 10px;
    border-radius: 5px;
    font-weight: 700;
    font-size: 0.85rem;
    animation: livePulse 1.5s infinite;
}

@keyframes livePulse {
    0% { opacity: 0.8; }
    50% { opacity: 1; box-shadow: 0 0 10px rgba(244, 63, 94, 0.3); }
    100% { opacity: 0.8; }
}

.live-score-text {
    color: var(--color-danger) !important;
    font-weight: 800;
    animation: liveTextPulse 1s infinite alternate;
}

@keyframes liveTextPulse {
    0% { text-shadow: 0 0 2px rgba(244, 63, 94, 0.2); }
    100% { text-shadow: 0 0 8px rgba(244, 63, 94, 0.6); }
}

.match-card.live-match {
    border-color: var(--color-danger) !important;
    background: linear-gradient(145deg, rgba(244, 63, 94, 0.03) 0%, rgba(15, 23, 42, 0.8) 100%) !important;
}

.finished-badge {
    background: rgba(100, 116, 139, 0.2);
    border: 1px solid var(--color-draw);
    color: var(--text-secondary);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Multi-User & Admin Lock Screen Styles */

.header-right-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

@media (min-width: 768px) {
    .header-right-meta {
        flex-direction: row;
        align-items: center;
    }
}

.user-selector-container {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-standard);
    padding: 6px 12px;
    border-radius: 50px;
}

.user-selector-container label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.user-select {
    background: none;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    outline: none;
    cursor: pointer;
}

.user-select option {
    background-color: var(--bg-modal);
    color: var(--text-primary);
}

.btn-add-user {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 50%;
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1;
}

/* Leaderboard */
.leaderboard-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-standard);
    border-radius: 20px;
    padding: 20px;
    box-shadow: var(--glass-shadow);
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
}

.leaderboard-table th {
    text-align: left;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-standard);
}

.leaderboard-table td {
    padding: 12px 6px;
    border-bottom: 1px solid rgba(255,255,255,0.02);
    font-size: 0.95rem;
}

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

.rank-col {
    width: 40px;
    font-weight: 800;
}

.rank-1 { color: #ffd700; } /* Gold */
.rank-2 { color: #c0c0c0; } /* Silver */
.rank-3 { color: #cd7f32; } /* Bronze */

.name-col {
    font-weight: 600;
}

.points-col {
    text-align: right;
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--color-gold);
    font-size: 1.1rem;
}

/* Admin Lock Screen */
.admin-lock-screen {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid var(--border-standard);
    padding: 40px;
    text-align: center;
    max-width: 500px;
    margin: 40px auto;
    box-shadow: var(--glass-shadow);
}

.lock-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 15px;
}

.admin-lock-screen h3 {
    font-size: 1.4rem;
    color: var(--color-gold);
    margin-bottom: 10px;
}

.admin-lock-screen p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 25px;
}

.lock-input-group {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.admin-lock-screen input {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-standard);
    color: var(--text-primary);
    padding: 12px 16px;
    border-radius: 10px;
    outline: none;
    font-size: 0.95rem;
    flex: 1;
    max-width: 250px;
}

.admin-lock-screen input:focus {
    border-color: var(--color-gold);
}

/* Modal Close Button */
.modal-close-btn {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-smooth);
    line-height: 1;
}

.modal-close-btn:hover {
    color: var(--color-gold);
}

/* Tipp-Badges auf Spielkarten */
.user-tip-badge {
    margin: 8px auto 0 auto;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.72rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: table;
    font-weight: 600;
    max-width: 95%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-tip-badge.exact {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    color: #34d399;
}

.user-tip-badge.tendency {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.3);
    color: #fbbf24;
}

.user-tip-badge.wrong {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.user-tip-badge.open-tip {
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.user-tip-badge.open-tip:hover {
    border-color: var(--color-gold);
    color: var(--color-gold);
}

/* Tipp-Badges im Bracket */
.bracket-tip-badge {
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 6px;
    margin-top: 6px;
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: block;
    font-weight: 600;
}

.bracket-tip-badge.exact {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    color: #34d399;
}

.bracket-tip-badge.tendency {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.3);
    color: #fbbf24;
}

.bracket-tip-badge.wrong {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #f87171;
}

/* User Auth Widget in Header */
.user-auth-widget {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-standard);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
}

.auth-user-name {
    color: var(--text-primary);
}

.auth-role-badge {
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    background: var(--color-gold);
    color: #080c14;
    font-weight: 800;
    text-transform: uppercase;
}

/* ==========================================================================
   Tooltips, User Profiles & Admin User Management
   ========================================================================== */

/* Tooltips */
.tooltip-container {
    position: relative;
    display: inline-block;
    cursor: help;
    margin-left: 6px;
    vertical-align: middle;
}

.tooltip-trigger {
    font-size: 0.72rem;
    font-weight: 700;
    font-style: normal;
    line-height: 1;
    color: var(--text-muted);
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tooltip-trigger:hover {
    color: var(--color-gold);
    background: rgba(229, 193, 88, 0.15);
    border-color: var(--color-gold);
}

.tooltip-content {
    visibility: hidden;
    width: 250px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    color: var(--text-primary);
    text-align: left;
    border-radius: 12px;
    padding: 12px 16px;
    position: absolute;
    z-index: 1000;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-standard);
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.4;
    pointer-events: none;
}

.tooltip-content::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: rgba(15, 23, 42, 0.95) transparent transparent transparent;
}

.tooltip-container:hover .tooltip-content,
.tooltip-container:focus-within .tooltip-content {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

/* User Profile settings card */
.user-profile-card {
    background: rgba(30, 41, 59, 0.45);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    border: 1px solid var(--border-standard);
    padding: 24px;
    margin-bottom: 25px;
    box-shadow: var(--glass-shadow);
}

.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 16px;
    margin-bottom: 20px;
}

.profile-title h3 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin: 0;
}

.profile-title p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 4px 0 0 0;
}

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

.profile-stat-box {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.profile-stat-val {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--color-gold);
    margin-bottom: 4px;
}

.profile-stat-lbl {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.profile-info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.profile-info-lbl {
    color: var(--text-muted);
}

.profile-info-val {
    color: var(--text-primary);
    font-weight: 600;
}

.email-verification-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

.email-verification-badge.verified {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

.email-verification-badge.unverified {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

#admin-settings-container {
    max-width: 1000px;
}

/* Admin User Management Panel */
.admin-card {
    background: rgba(30, 41, 59, 0.3);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    border: 1px solid var(--border-standard);
    padding: 24px;
    margin-bottom: 25px;
}

.admin-card-title {
    font-size: 1.2rem;
    color: var(--color-gold);
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 10px;
}

/* User management Table */
.table-responsive {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid var(--border-standard);
    background: rgba(0, 0, 0, 0.25);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
}

.admin-table th {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-standard);
}

.admin-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

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

.admin-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.btn-danger-sm {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.btn-danger-sm:hover {
    background: rgba(239, 68, 68, 0.3);
    border-color: #ef4444;
    color: #ffffff;
}

/* Settings sub-sections collapse */
.collapse-container {
    border: 1px solid var(--border-standard);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.15);
    margin-top: 15px;
    overflow: hidden;
}

.collapse-header {
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    user-select: none;
}

.collapse-header:hover {
    background: rgba(255, 255, 255, 0.05);
}

.collapse-header h4 {
    margin: 0;
    font-size: 1rem;
    color: var(--text-secondary);
}

.collapse-content {
    padding: 20px;
    border-top: 1px solid var(--border-standard);
    display: none;
}

.collapse-container.active .collapse-content {
    display: block;
}

.collapse-arrow {
    transition: transform 0.3s ease;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.collapse-container.active .collapse-arrow {
    transform: rotate(180deg);
}

/* Tooltip Left-alignment & Overflow Fixes */
.tooltip-container.tooltip-left .tooltip-content {
    left: auto;
    right: 0;
    transform: translateX(0);
}

.tooltip-container.tooltip-left .tooltip-content::after {
    left: auto;
    right: 12px;
    margin-left: 0;
}

.tooltip-container.tooltip-left:hover .tooltip-content,
.tooltip-container.tooltip-left:focus-within .tooltip-content {
    transform: translateY(-5px);
}

.tooltip-container:hover {
    z-index: 1100;
}

/* Favorite Team Next Match Card */
.fav-team-card {
    background: linear-gradient(145deg, rgba(56, 189, 248, 0.08) 0%, rgba(15, 23, 42, 0.75) 100%);
    border-radius: 20px;
    padding: 24px;
    border: 1px solid rgba(56, 189, 248, 0.25);
    box-shadow: var(--glass-shadow);
    margin-top: 20px;
    position: relative;
    overflow: visible;
}

.fav-team-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, rgba(0,0,0,0) 70%);
    pointer-events: none;
}

#fav-match-countdown,
[id^="fav-match-countdown-"] {
    background: rgba(56, 189, 248, 0.06);
    border: 1px solid rgba(56, 189, 248, 0.2);
}

#fav-match-countdown .countdown-time,
[id^="fav-match-countdown-"] .countdown-time {
    color: var(--color-accent);
}

.fav-team-badge-label:has(input:checked) {
    border-color: var(--color-accent) !important;
    background: rgba(56, 189, 248, 0.12) !important;
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.15);
}

.fav-team-badge-label:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
}

@media (max-width: 767px) {
    .header-banner {
        height: auto !important;
        min-height: 200px;
        padding-top: 50px;
        align-items: stretch !important;
        background-position: center bottom !important;
    }
    .user-auth-widget {
        top: 12px !important;
        right: 12px !important;
    }
    .user-auth-widget button, .user-auth-widget .btn {
        padding: 5px 10px !important;
        font-size: 0.75rem !important;
    }
    .header-title-container {
        padding: 15px !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 15px !important;
    }
    .header-title-group h1 {
        font-size: 1.7rem !important;
    }
    .header-title-group p {
        font-size: 0.85rem !important;
    }
}

/* Schedule list grouping and layout */
.schedule-matches-list {
    display: flex;
    flex-direction: column;
    gap: 35px;
    margin-top: 10px;
}

.schedule-day-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.schedule-day-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: linear-gradient(90deg, rgba(229, 193, 88, 0.08) 0%, rgba(15, 23, 42, 0) 100%);
    border-left: 4px solid var(--color-gold);
    border-radius: 4px 12px 12px 4px;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.schedule-day-header .day-title {
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
}

.schedule-day-header .day-subtitle {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-gold);
    background: rgba(229, 193, 88, 0.12);
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid rgba(229, 193, 88, 0.25);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Highlight für den aktiven Spieltag im Spielplan */
.schedule-day-section.active-day-highlight .schedule-day-header {
    background: linear-gradient(90deg, rgba(56, 189, 248, 0.15) 0%, rgba(15, 23, 42, 0) 100%);
    border-left-color: var(--color-accent);
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.08);
}

.schedule-day-section.active-day-highlight .day-subtitle {
    color: var(--color-accent);
    background: rgba(56, 189, 248, 0.15);
    border-color: rgba(56, 189, 248, 0.25);
}

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

/* Responsive queries */
@media (max-width: 1100px) {
    .schedule-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .schedule-grid {
        grid-template-columns: minmax(0, 1fr) !important;
    }
    .schedule-day-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding: 10px 14px;
    }
    .schedule-day-header .day-subtitle {
        font-size: 0.75rem;
        align-self: flex-start;
    }
}

/* ==========================================================================
   Premium Mobile Navigation System
   ========================================================================== */

/* Mobile Bottom Navigation Bar */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: auto;
    min-height: 70px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.9) 0%, rgba(8, 12, 20, 0.98) 100%);
    backdrop-filter: blur(20px) saturate(190%);
    -webkit-backdrop-filter: blur(20px) saturate(190%);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: none; /* Hidden on desktop */
    justify-content: space-around;
    align-items: center;
    z-index: 999;
    padding: 10px 10px calc(10px + env(safe-area-inset-bottom)) 10px;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.5);
}

.mobile-nav-tab {
    background: none;
    border: none;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: 4px;
    cursor: pointer;
    transition: var(--transition-smooth);
    padding: 6px 0;
    position: relative;
    outline: none;
}

.mobile-nav-tab:active {
    transform: scale(0.92);
}

.mobile-nav-tab.active {
    color: var(--color-gold);
}

.mobile-nav-icon {
    font-size: 1.15rem;
    padding: 6px 18px;
    border-radius: 20px;
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.mobile-nav-tab.active .mobile-nav-icon {
    background: rgba(229, 193, 88, 0.15) !important;
    color: var(--color-gold) !important;
    transform: translateY(-2px) scale(1.05);
    box-shadow: inset 0 0 4px rgba(229, 193, 88, 0.1);
}

.mobile-nav-label {
    font-size: 0.72rem;
    font-weight: 600;
    font-family: var(--font-body);
    letter-spacing: 0.2px;
    transition: color 0.25s ease;
}

.mobile-nav-tab.active .mobile-nav-label {
    font-weight: 700 !important;
    color: var(--color-gold) !important;
}

/* Mobile "Mehr" Sheet Backdrop */
.mobile-more-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(4, 6, 10, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-more-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

/* Mobile "Mehr" Sheet/Drawer */
.mobile-more-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(20, 28, 48, 0.96) 0%, rgba(8, 12, 20, 0.99) 100%);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px 24px 0 0;
    padding: 16px 20px calc(24px + env(safe-area-inset-bottom)) 20px;
    z-index: 1001;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.1, 0.76, 0.55, 0.94);
    box-shadow: 0 -15px 40px rgba(0, 0, 0, 0.6);
}

.mobile-more-sheet.active {
    transform: translateY(0);
}

.sheet-handle {
    width: 44px;
    height: 5px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 3px;
    margin: 0 auto 16px auto;
}

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

.sheet-header h3 {
    font-size: 1.15rem;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.sheet-close-btn {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.sheet-close-btn:hover, .sheet-close-btn:active {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
}

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

.sheet-grid-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
    color: var(--text-secondary);
    outline: none;
}

.sheet-grid-item:active {
    transform: scale(0.95);
    background: rgba(255, 255, 255, 0.06);
}

.sheet-grid-item.active {
    background: rgba(229, 193, 88, 0.08);
    border-color: rgba(229, 193, 88, 0.3);
    color: var(--color-gold);
}

.sheet-item-icon {
    font-size: 1.8rem;
}

.sheet-item-label {
    font-size: 0.82rem;
    font-weight: 600;
    font-family: var(--font-body);
}

/* Global Classes for Meine Tipps */
.mytips-matches-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 600px;
    overflow-y: auto;
    padding-right: 5px;
}

/* Global Classes for Team Statistics */
.stats-team-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 15px;
}

.stats-team-games-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 250px;
    overflow-y: auto;
    padding-right: 5px;
}

.stats-team-game-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: rgba(255,255,255,0.02);
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.03);
    gap: 10px;
    flex-wrap: wrap;
}

.stats-group-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    text-align: center;
}

/* Bracket Mobile Tabs */
.bracket-mobile-tabs {
    display: none;
    gap: 8px;
    margin-bottom: 20px;
    background: rgba(15, 23, 42, 0.45);
    padding: 6px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

.bracket-tab-btn {
    flex: 1;
    min-width: 90px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    display: inline-block;
}

.bracket-tab-btn.active {
    background: var(--color-gold);
    color: #000;
    box-shadow: 0 4px 10px var(--color-gold-glow);
}

/* Mobile-Responsive Rule Overrides */
@media (max-width: 768px) {
    /* Hide desktop navigation bar */
    .navigation-bar {
        display: none !important;
    }
    
    /* Show mobile navigation bar */
    .mobile-bottom-nav {
        display: flex;
    }
    
    /* Ensure content is not hidden behind bottom nav */
    .app-container {
        padding-bottom: calc(90px + env(safe-area-inset-bottom)) !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    /* Highlight-Karte für Mobilgeräte optimieren (Verhindert Abschneiden & Layout-Sprünge) */
    .highlight-card {
        padding: 20px 15px !important;
        border-radius: 16px !important;
    }
    .next-match-meta {
        font-size: 0.72rem !important;
        margin-bottom: 15px !important;
        letter-spacing: 0.05em !important;
    }
    .next-match-teams {
        gap: 8px !important;
        margin-bottom: 15px !important;
    }
    .next-flag {
        font-size: 2.5rem !important;
        margin-bottom: 6px !important;
    }
    .next-name {
        font-size: 0.95rem !important;
    }
    .next-vs {
        font-size: 0.85rem !important;
        padding: 6px 10px !important;
    }
    .next-match-time {
        font-size: 0.85rem !important;
        margin-bottom: 12px !important;
    }
    .next-match-countdown {
        font-size: 0.8rem !important;
        padding: 6px 12px !important;
        margin-bottom: 15px !important;
    }
    .next-match-odds-summary {
        gap: 6px !important;
        margin-bottom: 15px !important;
    }
    .odd-badge {
        padding: 8px 6px !important;
        font-size: 0.7rem !important;
    }
    .btn-next-analyze, #btn-next-tip {
        font-size: 0.82rem !important;
        padding: 8px 12px !important;
    }

    /* Header-Bereich auf Mobilgeräten verkleinern */
    .header-banner {
        height: 160px !important;
    }
    .header-title-container {
        padding: 15px !important;
        gap: 10px !important;
    }
    .header-title-group h1 {
        font-size: 1.6rem !important;
    }
    .header-title-group p {
        font-size: 0.82rem !important;
    }
    .live-ticker {
        padding: 4px 10px !important;
        font-size: 0.75rem !important;
    }

    /* Kacheln (Match-Cards) auf Mobilgeräten optimieren */
    .match-card {
        padding: 10px 12px !important;
        border-radius: 12px !important;
    }
    .match-body {
        gap: 6px !important;
    }
    .team-info {
        gap: 6px !important;
    }
    .team-flag {
        font-size: 1.4rem !important;
    }
    .team-name-text {
        font-size: 0.85rem !important;
        font-weight: 500 !important;
    }
    .match-score {
        font-size: 1.05rem !important;
        padding: 4px 10px !important;
        min-width: 65px !important;
    }
    .match-odds-mini {
        gap: 8px !important;
        padding-top: 6px !important;
        margin-top: 6px !important;
        font-size: 0.7rem !important;
    }
    .match-card-badges {
        margin-top: 8px !important;
        gap: 6px !important;
    }
    .user-tip-badge {
        padding: 3px 8px !important;
        font-size: 0.68rem !important;
    }
    .match-meta {
        font-size: 0.68rem !important;
        margin-bottom: 6px !important;
    }

    /* Favoriten-Karte auf Mobilgeräten optimieren */
    .fav-team-card {
        padding: 15px !important;
        border-radius: 16px !important;
    }
    .fav-match-row {
        padding-bottom: 12px !important;
    }

    /* Leaderboard auf Mobilgeräten optimieren */
    .leaderboard-card {
        padding: 12px !important;
        border-radius: 16px !important;
    }
    .leaderboard-table td {
        padding: 10px 4px !important;
        font-size: 0.85rem !important;
    }
    .leaderboard-table th {
        font-size: 0.72rem !important;
    }

    /* Sonstige Karten auf Mobilgeräten optimieren */
    .user-profile-card {
        padding: 15px !important;
        margin-bottom: 20px !important;
    }
    
    /* Meine Tipps Mobile Optimierungen: Kachel-Stile entfernen und Vollbild-Scrollen aktivieren */
    #mytips-overview-card.user-profile-card {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        backdrop-filter: none !important;
        margin-bottom: 10px !important;
    }
    
    .mytips-matches-container {
        max-height: none !important;
        overflow-y: visible !important;
        padding-right: 0 !important;
    }
    
    /* Turnierbaum Mobile View Overrides: Natives Scrolling und Kompaktierung */
    .bracket-scroll-area {
        background: transparent !important;
        border: none !important;
        border-radius: 0 !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        height: 75vh !important;
        overflow: auto !important; /* Natives 2D Scrolling */
        touch-action: auto !important; /* Standard-Touchgesten wieder zulassen */
        -webkit-overflow-scrolling: touch !important;
    }
    
    .bracket-container {
        width: 1400px !important; /* Kompakte Breite auf Mobile */
        height: 1100px !important; /* Kompakte Höhe auf Mobile */
        gap: 20px !important;
        padding: 15px 10px !important;
        transform: none !important; /* JavaScript Zoom/Pan deaktivieren */
    }
    
    .bracket-column {
        min-width: 180px !important; /* Schmalere Spalten */
    }
    
    .bracket-column h3 {
        font-size: 0.8rem !important;
        margin-bottom: 10px !important;
        padding-bottom: 5px !important;
    }
    
    .bracket-matches-list {
        gap: 8px !important;
    }
    
    .bracket-match-card {
        padding: 6px 10px !important;
        border-radius: 8px !important;
        box-shadow: 0 2px 6px rgba(0,0,0,0.15) !important;
    }
    
    .bracket-match-meta {
        font-size: 0.55rem !important;
        margin-bottom: 4px !important;
        padding-bottom: 2px !important;
    }
    
    .bracket-team {
        font-size: 0.75rem !important;
    }
    
    .bracket-score {
        font-size: 0.75rem !important;
    }
    
    .bracket-divider {
        margin: 4px 0 !important;
    }
    
    .bracket-tip-badge {
        font-size: 0.65rem !important;
        padding: 2px 4px !important;
        margin-top: 4px !important;
        border-radius: 4px !important;
    }
    
    .bracket-controls {
        display: none !important; /* Zoom-Steuerung auf Mobile ausblenden */
    }
    
    .podium-widget {
        padding: 15px !important;
        min-width: 180px !important;
        border-radius: 12px !important;
    }
    
    .trophy {
        font-size: 2.5rem !important;
        margin-bottom: 5px !important;
    }
    
    .champion-name {
        font-size: 1rem !important;
    }
    
    /* Team-Statistiken Mobile Overrides */
    .stats-team-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    .stats-team-games-list {
        max-height: none !important;
        overflow-y: visible !important;
        padding-right: 0 !important;
    }
    .stats-group-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }
    
    .schedule-day-header {
        padding: 8px 12px !important;
    }
    .schedule-day-header .day-title {
        font-size: 0.9rem !important;
    }

    /* Mobile Overrides for Modal, Badges, and Predictions */
    .modal-team {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
    }
    .predictions-grid {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }
    .highlight-tip-badge {
        padding: 4px 10px !important;
        font-size: 0.72rem !important;
        border-radius: 6px !important;
        white-space: normal !important;
        word-break: break-word !important;
    }
    .highlight-tip-badge strong {
        font-size: 0.82rem !important;
    }
    .next-name {
        font-size: 0.85rem !important;
        white-space: normal !important;
        word-break: break-word !important;
    }
    .modal-content {
        width: 100% !important;
        height: 100% !important;
        max-height: 100vh !important;
        border-radius: 0 !important;
        border: none !important;
        padding: 30px 15px 120px 15px !important; /* Genügend Platz unten für Buttons */
    }
    
    .modal-actions {
        flex-direction: column-reverse !important;
        align-items: stretch !important;
        gap: 10px !important;
    }
    
    .modal-actions .btn {
        width: 100% !important;
        justify-content: center !important;
        text-align: center !important;
        padding: 10px 16px !important;
        font-size: 0.95rem !important;
        margin: 0 !important;
    }
    
    .modal-user-tip-input-box {
        padding: 12px 10px !important;
        margin-bottom: 15px !important;
        background: transparent !important; /* Kachel auf Mobile weglassen */
        border: none !important;
    }
    
    .modal-real-result-banner {
        padding: 10px !important;
        margin-bottom: 15px !important;
        background: transparent !important; /* Kachel auf Mobile weglassen */
        border: none !important;
        border-bottom: 1px solid var(--border-standard) !important;
        border-radius: 0 !important;
    }
    
    .match-predictions-comparison {
        padding: 12px 10px !important;
        background: transparent !important; /* Kachel auf Mobile weglassen */
        border: none !important;
        margin-bottom: 15px !important;
    }
    
    .prediction-box {
        min-height: auto !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 8px 12px !important;
        gap: 10px !important;
    }
    
    .prediction-box > div {
        margin: 0 !important;
    }
    
    .prediction-box > div:nth-child(1) {
        font-size: 0.75rem !important;
        text-align: left !important;
        flex: 1 !important;
    }
    
    .prediction-box > div:nth-child(2) {
        font-size: 1.15rem !important;
        text-align: center !important;
        flex: 1 !important;
    }
    
    .prediction-box > div:nth-child(3) {
        font-size: 0.75rem !important;
        text-align: right !important;
        flex: 1.2 !important;
    }
    .fav-match-meta {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 4px !important;
    }
    .live-ticker span {
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: calc(100vw - 80px) !important;
        font-size: 0.72rem !important;
    }
    .modal-real-result-details {
        gap: 8px !important;
    }
    .modal-real-flag {
        font-size: 1.4rem !important;
    }
    .modal-real-name {
        font-size: 0.8rem !important;
    }
    .modal-real-score {
        padding: 2px 8px !important;
        font-size: 1.1rem !important;
    }
}

/* Global Classes for Highlights & Predictions */
.highlight-tip-badge {
    padding: 6px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    display: inline-block;
    white-space: nowrap;
}
.highlight-tip-badge strong {
    font-size: 1rem;
}
.predictions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.modal-real-result-details {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 1.35rem;
    font-weight: 800;
}
.modal-real-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}
.modal-real-flag {
    font-size: 1.8rem;
}
.modal-real-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}
.modal-real-score {
    background: var(--color-gold);
    color: #000;
    padding: 3px 12px;
    border-radius: 6px;
    font-size: 1.25rem;
}

/* --- Tipp Modal Layout (Desktop-first) --- */
.tipp-match-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 15px 0;
    width: 100%;
}

.tipp-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    text-align: center;
    min-width: 0;
}

.tipp-team-left {
    align-items: center;
}

.tipp-team-right {
    align-items: center;
}

.tipp-flag {
    font-size: 2.2rem;
    margin-bottom: 6px;
    line-height: 1;
}

.tipp-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.tipp-inputs-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.tipp-input {
    width: 70px;
    height: 50px;
    text-align: center;
    border-radius: 10px;
    border: 1px solid var(--border-standard);
    background: rgba(0, 0, 0, 0.4);
    color: var(--text-primary);
    font-size: 1.4rem;
    font-weight: 800;
    outline: none;
    transition: border-color var(--transition-fast);
}

.tipp-input:focus {
    border-color: var(--color-gold);
    box-shadow: 0 0 0 2px rgba(229, 193, 88, 0.25);
}

.tipp-separator {
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--text-muted);
}

/* --- Mobile Media Query for Tipp Modal --- */
@media (max-width: 576px) {
    .tipp-match-container {
        flex-direction: column;
        gap: 12px;
        margin: 10px 0;
    }

    .tipp-team {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 10px;
        width: 100%;
    }

    .tipp-flag {
        font-size: 1.8rem;
        margin-bottom: 0;
    }

    .tipp-name {
        font-size: 1rem;
    }

    .tipp-inputs-wrapper {
        margin: 4px 0;
    }

    /* 2x2 Layout for statistics cards on mobile */
    .profile-stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        margin-bottom: 16px !important;
    }

    .profile-stat-box {
        padding: 10px !important;
    }

    .profile-stat-val {
        font-size: 1.35rem !important;
    }

    .profile-stat-lbl {
        font-size: 0.68rem !important;
    }

    .match-card-scorers {
        padding: 0 10px !important;
        font-size: 0.68rem !important;
    }

    /* Settings & Admin Panel Mobile Optimizations */
    .settings-container {
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
        box-shadow: none !important;
        max-width: 100% !important;
    }
    
    .collapse-content {
        padding: 10px !important;
    }
    
    .admin-card {
        background: transparent !important;
        border: none !important;
        padding: 15px 0 !important;
        margin-bottom: 20px !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
    }
    
    .admin-card-title {
        font-size: 1rem !important;
        margin-bottom: 12px !important;
        padding-bottom: 8px !important;
    }
    
    .settings-buttons {
        flex-direction: column !important;
        gap: 10px !important;
        padding-top: 15px !important;
    }
    
    .settings-buttons .btn {
        width: 100% !important;
        margin: 0 !important;
        justify-content: center !important;
        text-align: center !important;
        display: flex !important;
    }
    
    .admin-table {
        min-width: 500px !important;
    }
    
    .admin-table th, 
    .admin-table td {
        padding: 10px 8px !important;
        font-size: 0.78rem !important;
        white-space: nowrap !important;
    }

    .profile-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
    }

    .profile-header .btn {
        width: 100% !important;
        justify-content: center !important;
    }

    .profile-info-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 6px !important;
    }

    /* Mobile Overrides for Schedule Grid & Match Cards */
    .schedule-grid {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 12px !important;
    }

    .match-body {
        gap: 4px !important;
    }

    .team-info {
        gap: 4px !important;
    }

    .team-flag {
        font-size: 1.25rem !important;
    }

    .team-name-text {
        font-size: 0.82rem !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }

    .match-score {
        font-size: 0.95rem !important;
        padding: 4px 6px !important;
        min-width: 55px !important;
    }

    /* Mobile Overrides for KI-Analyse Tab */
    .analysis-container {
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
        box-shadow: none !important;
    }
    
    .analysis-meta-header {
        margin-bottom: 20px !important;
        padding-bottom: 10px !important;
        font-size: 0.75rem !important;
    }
    
    .analysis-teams-display {
        margin-bottom: 25px !important;
        gap: 10px !important;
    }
    
    .flag-big {
        font-size: 2.8rem !important;
        margin-bottom: 8px !important;
    }
    
    .team-panel h3 {
        font-size: 1rem !important;
        margin-bottom: 4px !important;
    }
    
    .rank-badge {
        font-size: 0.72rem !important;
        padding: 2px 6px !important;
    }
    
    .vs-badge {
        font-size: 0.95rem !important;
        width: 32px !important;
        height: 32px !important;
    }
    
    .odds-visualizer {
        padding: 12px !important;
        margin-bottom: 20px !important;
        border-radius: 12px !important;
    }
    
    .odds-visualizer h4 {
        font-size: 0.82rem !important;
        margin-bottom: 10px !important;
    }
    
    .odds-bar {
        height: 48px !important;
        font-size: 0.75rem !important;
    }
    
    .odds-bar-legend {
        font-size: 0.7rem !important;
        margin-top: 6px !important;
    }
    
    .ai-analysis-output {
        font-size: 0.88rem !important;
        line-height: 1.5 !important;
    }

    .ai-saved-indicator {
        padding: 12px !important;
        font-size: 0.82rem !important;
        margin-bottom: 15px !important;
    }

    /* Torschützen mobile stacking */
    .match-scorers-container {
        flex-direction: column !important;
        gap: 12px !important;
        align-items: stretch !important;
        text-align: left !important;
        border-top: 1px dashed rgba(255,255,255,0.08) !important;
        padding-top: 10px !important;
    }
    
    .scorers-column.home-column,
    .scorers-column.away-column {
        text-align: left !important;
        align-items: flex-start !important;
    }
    
    .scorers-column.away-column .scorers-team-flag-label {
        flex-direction: row !important;
    }
}




