select {
    width: 100%;
    padding: 12px 16px;
    background: var(--surface);
    border: 2px solid var(--surface-light);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 16px;
    transition: var(--transition);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* --- LOGOUT MODAL --- */
.logout-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease-out;
}

.logout-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    pointer-events: none;
}

.logout-modal-content {
    position: relative;
    z-index: 100000;
    background: var(--surface);
    border-radius: 16px;
    padding: 2rem;
    max-width: 420px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    animation: slideUp 0.3s ease-out;
    pointer-events: all;
}

.logout-modal-content button {
    pointer-events: all;
    cursor: pointer;
}

.logout-modal-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.logout-modal-content h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.logout-modal-content p {
    margin: 0 0 1.5rem 0;
    color: var(--text-secondary);
    font-size: 1rem;
}

.logout-user-info {
    background: var(--surface-light);
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.logout-user-info strong {
    color: var(--accent);
}

.logout-modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.logout-modal-buttons .btn {
    flex: 1;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

/* Team Assignment Controls */
.team-assignment-controls {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.team-assignment-controls input {
    flex: 1;
}

@media (max-width: 768px) {
    .team-assignment-controls {
        flex-direction: column;
    }
    
    .team-assignment-controls .team-assign-btn {
        width: 100%;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100px);
    }
}

/* Confirm Modal Display Control */
#confirmModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    display: none;
}

#confirmModal.confirm-modal-show {
    display: flex !important;
}

#confirmModal.confirm-modal-hidden {
    display: none !important;
}

/* --- FORM ERROR & SUCCESS MESSAGES --- */
.form-error,
.form-success {
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    animation: slideIn 0.3s ease-out;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.form-error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(220, 38, 38, 0.05) 100%);
    border-left: 4px solid #ef4444;
    color: #991b1b;
}

.form-success {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(21, 128, 61, 0.05) 100%);
    border-left: 4px solid #22c55e;
    color: #14532d;
}

[data-theme="dark"] .form-error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(220, 38, 38, 0.1) 100%);
    color: #fca5a5;
}

[data-theme="dark"] .form-success {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2) 0%, rgba(21, 128, 61, 0.1) 100%);
    color: #86efac;
}

.form-error::before,
.form-success::before {
    content: '';
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.form-error::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ef4444' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='15' y1='9' x2='9' y2='15'/%3E%3Cline x1='9' y1='9' x2='15' y2='15'/%3E%3C/svg%3E");
}

.form-success::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322c55e' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E");
}

.form-error ul,
.form-success ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.form-error li,
.form-success li {
    margin: 0.25rem 0;
    font-weight: 500;
}

.form-error li::before {
    content: '• ';
    margin-right: 0.5rem;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue:wght@400;700&family=Montserrat:wght@400;600;700&display=swap');
@media (max-width: 568px) {
    .settings-row-flex {
        flex-direction: row;
        align-items: center;
        gap: 8px;
    }
    .settings-install-group {
        flex: 1;
        justify-content: flex-end;
        align-items: center;
        gap: 8px;
        width: auto;
    }
    #appInstalledText {
        margin-left: 8px;
        font-size: 15px;
        text-align: right;
        padding: 0;
        display: inline-block;
    }
}
/* --- SETTINGS MOBILE OPTIMIERUNG --- */
@media (max-width: 568px) {
    .card {
        max-width: 100vw;
        border-radius: 10px;
        margin: 0 -6px 16px -6px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        padding: 10px 4px 14px 4px;
    }
    .form-group {
        margin-bottom: 12px;
    }
    .checkbox-group {
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin-bottom: 16px;
    }
    .theme-toggle-group {
        flex-direction: row !important;
        gap: 4px;
        width: auto;
        justify-content: flex-start;
    }
    .theme-toggle-btn {
        width: auto;
        min-width: 0;
        font-size: 14px;
        padding: 8px 12px;
    }
    .settings-install-group {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        width: 100%;
    }
    .btn, .btn-primary, .btn-secondary {
        font-size: 15px;
        padding: 12px 0;
        min-height: 44px;
    }
    #appInstalledText {
        font-size: 15px;
        text-align: center;
        padding: 8px 0 0 0;
        display: block;
    }
}
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

/* Theme Toggle Button Group (Modus rechts) */
.theme-toggle-group {
    display: flex;
    gap: 8px;
}
.theme-toggle-btn {
    padding: 8px 18px;
    border: 2px solid var(--surface-light);
    background: var(--surface);
    color: var(--text-primary);
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s, color 0.18s, border-color 0.18s;
    outline: none;
}
.theme-toggle-btn.active,
.theme-toggle-btn:focus {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: #fff;
}
.theme-toggle-btn:hover:not(.active) {
    background: var(--surface-light);
    color: var(--primary-color);
}
/* Settings Flex Row für Button rechts */
.settings-row-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 8px;
}
.settings-row-flex .btn {
    margin-top: 0;
    white-space: nowrap;
}
/* Toggle Switch für Push-Benachrichtigungen */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 26px;
    margin-left: 8px;
}

/* Settings Section Styles */
.settings-section {
    padding: 0;
}

.settings-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 0;
}

.settings-info {
    flex: 1;
}

.settings-info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 600;
}

.settings-info p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--surface-light);
    transition: .3s;
    border-radius: 26px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: var(--primary-color);
    transition: .3s;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0,0,0,0.10);
}
.toggle-switch input:checked + .slider {
    background: var(--primary-color);
}
.toggle-switch input:checked + .slider:before {
    transform: translateX(20px);
    background: #fff;
}
.toggle-switch input:focus + .slider {
    box-shadow: 0 0 1px var(--primary-color);
}
.card-header {
    display: flex;
    align-items: center;
    font-size: 18px;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--surface-light);
    letter-spacing: 0.5px;
    justify-content: space-between;
}
.card-section {
    padding-bottom: 1rem;
}
/* --- Mini-Scoreboard Sticky Header --- */

/* --- Mini-Scoreboard Sticky Header --- */
.mini-scoreboard {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    max-width: 800px;
    width: 100%;
    height: var(--header-height);
    background: rgba(16,28,44,0.98);
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
    z-index: 1002;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(.4,0,.2,1), transform 0.35s cubic-bezier(.4,0,.2,1);
}
.mini-scoreboard.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}
.mini-scoreboard .mini-team-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}
.mini-scoreboard .mini-score {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    letter-spacing: 2px;
}
.mini-scoreboard .mini-divider {
    font-size: 24px;
    color: #fff;
    margin: 0 8px;
}
@media (max-width: 568px) {
    .mini-scoreboard {
        gap: 12px;
    }
    .mini-scoreboard .mini-score {
        font-size: 18px;
    }
    .mini-scoreboard .mini-team-logo {
        width: 32px;
        height: 32px;
    }
    .mini-scoreboard .mini-divider {
        font-size: 18px;
        margin: 0 4px;
    }
}
:root {
    --header-height: 72px;
}

.header {
        height: var(--header-height);
        min-height: var(--header-height);
        line-height: var(--header-height);
}

.main {
    padding-top: calc(var(--header-height) + 12px) !important;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}
@media (max-width: 568px) {
    :root {
        --header-height: 56px;
    }
    .main {
        padding-top: 0 !important;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}
/* --- FIFA Scoreboard Card mit Stadion-Hintergrund --- */
.scoreboard-card {
        max-width: 700px;
        margin: 0 auto 32px auto;
        border-radius: 22px;
        box-shadow: 0 4px 24px rgba(0, 168, 107, 0.2);
        background: var(--surface);
        /* border: 1.5px solid #e6e9f0; */
        overflow: hidden;
        padding: 0 0 0 0;
}
.scoreboard-bg {
        background: linear-gradient(180deg, var(--background) 60%, var(--primary-color) 100%);
        min-height: 220px;
        padding: 28px 24px 32px 24px;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        position: relative;
}
.scoreboard-header {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        align-items: center;
        margin-bottom: 20px;
}
.scoreboard-content {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: start;
        margin-bottom: 10px;
}
.scoreboard-team {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        color: #fff;
        text-shadow: 0 2px 8px #000a;
        font-size: 20px;
        font-weight: 700;
}
.scoreboard-score {
        min-width: 120px;
        background: rgba(0,0,0,0.55);
        border-radius: 16px;
        padding: 16px 32px;
        font-size: 56px;
        color: #fff;
        font-weight: 900;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 16px;
        box-shadow: 0 2px 12px #0006;
}

/* Score Farben nach Status */
.score-scheduled {
    color: #ffffff;
}

.score-live {
    color: #fbbf24; /* Gelb */
    animation: scorePulse 2s ease-in-out infinite;
}

.score-finished {
    color: #ffffff;
}

@keyframes scorePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

.scoreboard-score-divider {
        font-size: 44px;
        font-weight: 400;
        opacity: 0.7;
}
.scoreboard-team-name {
        margin-top: 18px;
        font-size: 20px;
        font-weight: 700;
        text-align: center;
        padding: 4px 12px;
}
.scoreboard-team-logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
}
@media (max-width: 568px) {
    .scoreboard-card {
        max-width: 100vw;
        border-radius: 12px;
        margin: 0 -4px 18px -4px;
    }
    .scoreboard-bg {
        min-height: 140px;
        padding: 16px 6px 18px 6px;
    }
    .scoreboard-header {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        align-items: center;
        margin-bottom: 20px;
    }
    .scoreboard-content {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: start;
        margin-bottom: 10px;
    }
    .team-column {
        text-align: center;
    }
    .scoreboard-footer {
        display: grid;
        grid-template-columns: 1fr 1fr;
        font-size: 12px;
        padding-left: 14px;
    }
    .scoreboard-team {
        height: 100px;              /* FIXE HÖHE */
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .scoreboard-score {
        min-width: 80px;
        font-size: 37px;
        padding: 6px 12px;
        border-radius: 8px;
        margin-top: 15px;
    }
    .scoreboard-team-name {
        margin-top: 8px;
        font-size: 12px;
        font-weight: 600;
        line-height: 1.2;
        min-height: 36px;           /* RESERVIERT PLATZ */
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    } 
    .scoreboard-score-divider {
        font-size: 22px;
    }
    .scoreboard-team-logo {
        width: 72px;
        height: 72px;
    }
}

/* --- Live-Ticker Card --- */
.ticker-card {
        max-width: 700px;
        margin: 0 auto 32px auto;
        border-radius: 22px;
        box-shadow: 0 4px 24px rgba(0, 168, 107, 0.2);
        background: var(--surface);
        /*border: 1.5px solid #e6e9f0;*/
        overflow: hidden;
        padding: 0 0 0 0;
}
@media (max-width: 568px) {
    .ticker-card {
        max-width: 100vw;
        border-radius: 12px;
        margin: 0 -4px 16px -4px;
    }
}
.fifa-card.single-card {
        max-width: 520px;
        margin: 0 auto 28px auto;
        background: var(--surface);
        border-radius: 22px;
        box-shadow: 0 4px 24px rgba(0,0,0,0.10);
        border: 1.5px solid #e6e9f0;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        transition: box-shadow 0.2s, border-radius 0.2s;
        padding: 0 0 0 0;
}

@media (max-width: 568px) {
    .fifa-card.single-card {
        max-width: 100vw;
        margin: 0 -4px 16px -4px;
        border-radius: 12px;
        border-width: 1px;
    }
}
.fifa-divider {
        width: 100%;
        height: 2px;
        background: linear-gradient(90deg, #FFD700 0%, #00a86b 100%);
        opacity: 0.18;
        margin: 0 0 0 0;
}
@media (max-width: 568px) {
    .fifa-card {
        max-width: 100vw;
        margin: 0 -8px 18px -8px;
        border-radius: 12px;
        border-width: 2px;
    }
}

@media (max-width: 568px) {
    .match-score {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        gap: 4px;
    }
    .team {
        align-items: center;
        justify-content: center;
    }
    .score-center {
        justify-content: center;
        align-items: center;
        display: flex;
    }
    .score-display {
        min-width: 70px;
        padding: 4px 4px;
        gap: 2px;
    }
    .team-logo {
        font-size: 28px;
        width: 36px;
        height: 36px;
    }
    .team-score {
        font-size: 22px;
        min-width: 24px;
    }
    .score-divider {
        font-size: 16px;
    }
}
:root[data-theme="light"] .menu-button {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
}
:root[data-theme="dark"] .menu-button {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
}
:root[data-theme="dark"] .menu-button svg .line-top,
:root[data-theme="dark"] .menu-button svg .line-mid,
:root[data-theme="dark"] .menu-button svg .line-bot {
    fill: var(--accent-gold) !important;
    filter: none !important;
}
/* Theme-Fix: Erzwinge Farben für alle Hauptbereiche */
body {
    background: var(--background) !important;
    color: var(--text-primary) !important;
}
.container {
    background: var(--background) !important;
    color: var(--text-primary) !important;
}
.header {
    background: var(--surface) !important;
    color: var(--text-primary) !important;
}
/* Footer-Style am Ende überschreiben für Theme-Support */
.footer {
    background: var(--surface) !important;
    color: var(--text-secondary) !important;
    text-align: center;
    padding: 24px 0 12px;
    font-size: 14px;
    border-top: 1px solid var(--surface-light);
    margin-top: 40px;
}
/* ...existing code... */


/* FIFA-Style Dark Mode (jetzt wirklich am Ende!) */
/* --- DARK THEME GANZ AM ENDE, damit nichts überschreibt --- */
:root[data-theme="dark"] {
    --background: #232a3d;
    --surface: #232a3d;
    --surface-light: #2d3650;
    --text-primary: #f5f6fa;
    --text-secondary: #b0b6c3;
    --primary-color: #00a86b;
    --primary-dark: #00794d;
    --primary-light: #00e08a;
    --accent-gold: #FFD700;
    --accent-red: #E10600;
    --success: #00c851;
    --warning: #ffbb33;
    --border-radius: 18px;
    --shadow: 0 4px 24px rgba(0, 168, 107, 0.12);
}
.menu-button.active svg .line-top {
    transform: translateY(7px) rotate(45deg);
}
.menu-button.active svg .line-mid {
    opacity: 0;
}
.menu-button.active svg .line-bot {
    transform: translateY(-7px) rotate(-45deg);
}
.menu-button svg .line-top,
.menu-button svg .line-mid,
.menu-button svg .line-bot {
    transition: transform 0.3s cubic-bezier(.4,0,.2,1), opacity 0.2s;
}
.menu-button,
.menu-button *,
.menu-button:active,
.menu-button:focus,
.menu-button:hover {
    cursor: pointer !important;
}
.menu-button svg {
    pointer-events: none;
}


:root {
    --primary-color: #003399; /* FIFA-Blau */
    --primary-dark: #002266;
    --primary-light: #0055ff;
    --accent-gold: #FFD700;
    --accent-red: #E10600;
    --background: #f5f6fa;
    --surface: #ffffff;
    --surface-light: #e6e9f0;
    --text-primary: #22223b;
    --text-secondary: #4a4e69;
    --error: #E10600;
    --success: #00c851;
    --warning: #ffbb33;
    --border-radius: 18px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 4px 24px rgba(0, 51, 153, 0.08);
}

/* Light Mode */
[data-theme="light"] {
    --background: #f5f5f5;
    --surface: #ffffff;
    --surface-light: #e8e8e8;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --secondary-color: #f0f0f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 16px 80px;
    overflow-x: hidden;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    max-width: 800px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--background);
    border-bottom: 1px solid var(--surface-light);
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header .logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header h1 {
    font-size: 24px;
    font-weight: 700;
}

.back-button, .logout-button, .theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--surface);
    color: var(--text-primary);
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.back-button:hover, .logout-button:hover, .theme-toggle:hover {
    background: var(--surface-light);
    transform: scale(1.05);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--surface);
    color: var(--text-primary);
    text-decoration: none;
    border: 2px solid var(--accent);
    cursor: pointer;
    transition: var(--transition);
    overflow: hidden;
    position: relative;
}

.header-avatar:hover {
    transform: scale(1.05);
    border-color: var(--primary-color);
}

.header-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header-avatar svg {
    width: 24px;
    height: 24px;
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: var(--error);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
}

.live-indicator .pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
    animation: pulse 1.5s infinite;
}

/* Main Content */
.welcome {
    text-align: center;
    padding: 40px 20px;
}

.welcome h2 {
    font-size: 32px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome p {
    color: var(--text-secondary);
    font-size: 18px;
}

/* Action Cards */


.card p {
    color: var(--text-secondary);
}

.settings-section {
    background: var(--surface);
    border-radius: 22px;
    padding: 24px 24px 20px 24px;
    max-width: 700px;
    width: 100%;
    margin: 0 auto 24px auto;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
    border: 1.5px solid #e6e9f0;
    overflow: hidden;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.settings-section .settings-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--surface-light);
    letter-spacing: 0.5px;
}
.settings-section .form-group {
    margin-bottom: 16px;
}
.settings-section label,
.settings-section span {
    font-weight: 600;
    color: var(--text-secondary);
}
.settings-section input,
.settings-section select,
.settings-section button {
    margin-top: 8px;
}
.settings-section button {
    cursor: pointer;
}
/* Games Grid */
.games-section {
    margin: 40px 0;
}

.games-section h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.game-card {
    background: var(--surface);
    border-radius: var(--border-radius);
    padding: 24px;
    border: 2px solid var(--surface-light);
    transition: var(--transition);
}

.game-card.active {
    border-color: var(--primary-color);
    box-shadow: 0 4px 16px rgba(0, 168, 107, 0.1);
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.game-status {
    padding: 4px 12px;
    background: var(--error);
    color: white;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
}

.game-time {
    font-family: 'Courier New', monospace;
    font-size: 18px;
    font-weight: 700;
}

.game-score {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.team {
    flex: 1;
    text-align: center;
}

.team-name {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.score {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color);
}

.vs {
    font-size: 24px;
    color: var(--text-secondary);
}

/* Results List */
.results-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.result-card {
    background: var(--surface);
    border-radius: var(--border-radius);
    padding: 16px;
}

.result-time {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.result-score {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.result-score .team {
    flex: 1;
    font-size: 14px;
}

.score-display {
    display: flex;
    gap: 8px;
    font-size: 48px;
    font-weight: 700;
    color: var(--accent-gold);
    letter-spacing: 2px;
}

.score-display .winner {
    color: var(--primary-color);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state svg {
    margin-bottom: 20px;
    opacity: 0.3;
}

.empty-state p {
    margin: 8px 0;
}

.empty-state .hint {
    font-size: 14px;
    opacity: 0.7;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-secondary);
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="date"],
input[type="time"],
textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--surface);
    border: 2px solid var(--surface-light);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 16px;
    transition: var(--transition);
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 168, 107, 0.1);
}

textarea {
    resize: vertical;
    font-family: inherit;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 168, 107, 0.3);
}

.btn-secondary {
    background: var(--surface-light);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: var(--surface);
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-primary {
    background: linear-gradient(90deg, var(--primary-color) 60%, var(--accent-gold) 100%);
    color: #fff;
}
.btn-primary:hover {
    background: linear-gradient(90deg, var(--primary-light) 60%, var(--accent-gold) 100%);
    color: #fff;
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 6px 18px rgba(0, 51, 153, 0.15);
}
.btn-secondary {
    background: var(--surface-light);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}
.btn-secondary:hover {
    background: var(--surface);
    color: var(--accent-gold);
    border-color: var(--accent-gold);
}

.btn-danger {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border: none;
}
.btn-danger:hover {
    background: linear-gradient(135deg, #f5576c 0%, #f093fb 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(245, 87, 108, 0.3);
}

.alert-success {
    background: rgba(0, 200, 81, 0.1);
    border: 1px solid var(--success);
    color: var(--success);
}

.alert-error {
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid var(--error);
    color: var(--error);
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    background: var(--background);
    border-top: 1px solid var(--surface-light);
    padding: 8px;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    border-radius: 8px;
}

.nav-item:hover {
    background: var(--surface-light);
}

.nav-item.active {
    color: var(--primary-color);
}

.nav-item span {
    font-size: 12px;
}

/* Admin-spezifische Styles entfernt */
.admin-section {
    background: var(--surface);
    border-radius: var(--border-radius);
    padding: 24px;
    margin-bottom: 24px;
}

.game-form .team-input {
    margin-bottom: 20px;
}

.vs-divider {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-secondary);
    margin: 20px 0;
}

.admin-game-card {
    background: var(--background);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
}
/* Admin- und Redakteur-Styles entfernt */

.game-info {
    margin-bottom: 16px;
}

.game-info .teams {
    font-weight: 600;
    margin-bottom: 4px;
}

.game-info .vs {
    color: var(--text-secondary);
    margin: 0 8px;
}

.game-info .game-time {
    font-size: 12px;
    color: var(--text-secondary);
}

.score-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.score-inputs {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
}

.score-inputs input {
    width: 80px;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
}

.score-inputs span {
    font-size: 24px;
    color: var(--text-secondary);
}

.game-actions {
    display: flex;
    gap: 8px;
}

.game-actions .btn {
    flex: 1;
}


/* PWA Install Prompt */
.pwa-install {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 400px;
    width: calc(100% - 32px);
    z-index: 999;
}

.install-prompt {
    background: var(--surface);
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    border: 2px solid var(--primary-color);
}

.install-prompt h3, .prompt-content h3 {
    margin-bottom: 12px;
}

.install-prompt p, .prompt-content p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.install-prompt .btn, .prompt-content .btn {
    width: 100%;
    margin-bottom: 8px;
}

/* Footer */
.footer {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 24px 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.footer .version {
    font-size: 12px;
    opacity: 0.5;
}

/* Responsive */
@media (max-width: 568px) {
    .container {
        padding: 0 12px 80px;
    }

    .welcome h2 {
        font-size: 28px;
    }

    .games-grid {
        grid-template-columns: 1fr;
    }

    .score {
        font-size: 36px;
    }
}

/* Sidebar Menu */
.sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background: var(--surface);
    z-index: 2000;
    transition: left 0.3s ease;
    box-shadow: 2px 0 16px rgba(0, 0, 0, 0.3);
}

.sidebar.active {
    left: 0;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--surface-light);
}

.sidebar-header h3 {
    font-size: 20px;
    color: var(--primary-color);
}

.close-sidebar {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: var(--transition);
}

.close-sidebar:hover {
    background: var(--surface-light);
}

/* Admin-spezifische Styles entfernt */

/* --- FIFA Style Sidebar Items --- */
.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 0;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 24px;
    margin: 0 12px;
    border-radius: 14px;
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    background: none;
    border: none;
    cursor: pointer;
    transition: background 0.18s, color 0.18s, box-shadow 0.18s;
    box-shadow: none;
    text-decoration: none;
    letter-spacing: 0.5px;
    outline: none;
}

.sidebar-item:hover, .sidebar-item:focus {
    background: linear-gradient(90deg, var(--primary-color) 60%, var(--accent-gold) 100%);
    color: #fff;
    box-shadow: 0 2px 12px rgba(0,51,153,0.10);
}

.sidebar-item.active {
    background: linear-gradient(90deg, var(--primary-color) 60%, var(--accent-gold) 100%);
    color: #fff;
    box-shadow: 0 4px 18px rgba(0,51,153,0.13);
}

.sidebar-divider {
    height: 1.5px;
    background: linear-gradient(90deg, var(--primary-color) 60%, var(--accent-gold) 100%);
    opacity: 0.18;
    margin: 14px 18px;
    border-radius: 2px;
}

/* Sidebar-Gruppe (aufklappbar) */


.menu-button {
    background: none;
    border: 0 !important;
    box-shadow: none;
    cursor: pointer !important;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: box-shadow 0.2s, transform 0.2s;
    font-size: 25px;
    line-height: 1;
    width: 48px;
    height: 48px;
    border-radius: 12px;
}


.menu-button:hover {
    transform: scale(1.08) rotate(-6deg);
    box-shadow: 0 4px 16px rgba(0, 168, 107, 0.18), 0 1px 4px rgba(255, 215, 0, 0.12);
    background: rgba(0,168,107,0.07);
}

.match-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--surface-light);
}

.match-status {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    justify-self: start;
}

.match-status.live {
    background: var(--error);
    color: white;
    animation: pulse 2s infinite;
}

.match-status.finished {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-secondary);
}

.match-time {
    font-family: 'Courier New', monospace;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    justify-self: center;
}

.match-half {
    color: var(--text-secondary);
    font-size: 14px;
    justify-self: end;
}

.match-score {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 40px;
        margin-bottom: 32px;
}



.team {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.team-logo {
    font-size: 64px;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background);
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.team-info {
    text-align: center;
}

.team-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.team-formation {
    color: var(--text-secondary);
    font-size: 12px;
}

.score-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.score-display {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--background);
    padding: 20px 32px;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 168, 107, 0.2);
}

.team-score {
    font-size: 72px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    min-width: 80px;
    text-align: center;
}

.score-divider {
    font-size: 48px;
    color: var(--text-secondary);
    font-weight: 300;
}

.match-stats {
    background: var(--background);
    border-radius: 8px;
    padding: 20px;
}

.stat-item {
    margin-bottom: 20px;
}

.stat-label {
    display: block;
    text-align: center;
    color: var(--text-secondary);
    font-size: 12px;
    margin-bottom: 8px;
}

.stat-bar {
    height: 24px;
    background: var(--surface-light);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    margin-bottom: 8px;
}

.stat-bar-fill {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    transition: width 0.5s ease;
}

.stat-bar-fill.home {
    background: var(--primary-color);
    color: white;
}

.stat-bar-fill.away {
    background: var(--text-secondary);
    color: white;
}

.stat-values {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 600;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.stat-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px;
    background: var(--surface);
    border-radius: 8px;
}

.stat-box .stat-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-box .stat-label {
    font-size: 11px;
    color: var(--text-secondary);
}

/* Live Ticker */
.live-ticker {
    background: var(--surface);
    border-radius: var(--border-radius);
    padding: 24px;
    margin-bottom: 24px;
}

.ticker-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--surface-light);
}

.ticker-header h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    color: var(--primary-color);
}

.ticker-timeline {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ticker-item {
    display: grid;
    grid-template-columns: 30px 30px 1fr auto;
    gap: 12px;
    padding: 5px;
    background: var(--background);
    border-radius: 8px;
    transition: var(--transition);
    animation: slideUp 0.3s ease-out;
}

.ticker-item:hover {
    background: var(--surface-light);
}

.ticker-item.goal {
    border-left: 4px solid var(--primary-color);
}

.ticker-item.card {
    border-left: 4px solid var(--warning);
}

.ticker-time {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    color: var(--text-secondary);
    font-size: 14px;
}

.ticker-icon {
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ticker-content {
    line-height: 1.6;
}

.ticker-content strong {
    color: var(--primary-color);
}

.ticker-player {
    color: var(--text-primary);
    font-weight: 600;
}

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.game-card, .result-card, .admin-game-card {
    animation: slideUp 0.3s ease-out;
}

/* Responsive */
@media (max-width: 568px) {
    .container {
        padding: 80px 12px 80px;
    }

    .menu-button {
        font-size: 22px;
        width: 36px;
        height: 36px;
        border: 0 !important;
        box-shadow: none;
    }

    .match-score {
        gap: 16px;
    }

    .team-logo {
        font-size: 40px;
        width: 70px;
        height: 70px;
    }

    .team-name {
        font-size: 14px;
    }

    .team-score {
        font-size: 48px;
        min-width: 60px;
    }

    .score-divider {
        font-size: 32px;
    }

    .score-display {
        padding: 12px 20px;
        gap: 8px;
    }

    .match-header {
        gap: 12px;
        font-size: 14px;
    }

    .match-time {
        font-size: 20px;
    }

    .stat-grid {
        grid-template-columns: 1fr;
    }

    .ticker-item {
        grid-template-columns: 30px 30px 1fr auto;
        gap: 8px;
        padding: 5px;
    }
}

/* ============================================
    Redakteur- und Admin-Styles entfernt
    ============================================ */

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.match-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 24px;
    background: var(--background);
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}

.match-display .team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.match-display .score {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
}

.match-display .score-divider {
    font-size: 32px;
    font-weight: 300;
    color: var(--text-secondary);
}

.game-selector {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.game-selector-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--surface);
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
    border: 2px solid transparent;
}

.game-selector-item:hover {
    background: var(--surface-light);
    transform: translateX(4px);
}

.game-selector-item.active {
    border-color: var(--primary-color);
    background: var(--surface-light);
}

.game-selector-item .vs {
    color: var(--text-secondary);
    font-size: 14px;
}

.ticker-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ticker-list-item {
    background: var(--surface);
    border-radius: var(--border-radius);
    padding: 16px;
    border-left: 4px solid var(--text-secondary);
    transition: var(--transition);
}

.ticker-list-item:hover {
    background: var(--surface-light);
}

.ticker-list-item.goal {
    border-left-color: var(--success);
}

.ticker-list-item.card {
    border-left-color: var(--warning);
}

.ticker-list-item.substitution {
    border-left-color: var(--primary-color);
}

.ticker-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.ticker-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ticker-list-item .ticker-time {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 16px;
}

.ticker-list-item .ticker-icon {
    font-size: 20px;
}

.ticker-list-item .ticker-type {
    background: var(--surface-light);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ticker-actions {
    display: flex;
    gap: 8px;
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    background: var(--surface-light);
    color: var(--text-primary);
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    position: relative; /* Für absolute positionierte Badges */
}

.btn-icon:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

.btn-icon.btn-danger:hover {
    background: var(--error);
}

.ticker-content {
    color: var(--text-secondary);
    line-height: 1.6;
}

.ticker-content strong {
    color: var(--text-primary);
}

.team-badge {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-top: 8px;
}

@media (max-width: 568px) {
    .match-display {
        flex-direction: column;
        gap: 16px;
    }
    
    .ticker-meta {
        flex-wrap: wrap;
        gap: 8px;
    }
}

/* --- PROFILE PAGE STYLES --- */
.profile-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.profile-avatar {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.profile-details {
    flex: 1;
}

.profile-details h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.75rem;
    color: var(--text-primary);
}

.profile-email {
    margin: 0 0 0.75rem 0;
    color: var(--text-secondary);
    font-size: 1rem;
}

.profile-meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.profile-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* --- ADMIN: AVATAR GALERIE --- */
.avatar-card {
    background: var(--surface);
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.avatar-card:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 12px rgba(0, 168, 107, 0.1);
    transform: translateY(-2px);
}

.avatar-card-image {
    border: 2px solid var(--accent);
}

.profile-badge-user {
    background: var(--surface-light);
    color: var(--text-primary);
}

.profile-badge-admin {
    background: #ef4444;
    color: white;
}

.profile-badge-site_manager {
    background: #f97316;
    color: white;
}

.profile-badge-reporter {
    background: #3b82f6;
    color: white;
}

.profile-badge-verified {
    background: var(--success);
    color: white;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.profile-stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.profile-stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 600;
}

.profile-stat-value {
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 500;
}

.profile-actions {
    display: flex;
    gap: 1rem;
    flex-direction: column;
}

.profile-actions .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.push-status {
    margin-top: 1rem;
}

/* --- PROFILE: ADRESSEN & KONTAKTE --- */
.profile-section {
    padding: 1rem 0;
}

.profile-empty {
    color: var(--text-secondary);
    font-style: italic;
    text-align: center;
    padding: 2rem;
}

.address-list,
.contact-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.address-item,
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--surface-light);
    border-radius: 8px;
    transition: var(--transition);
}

.address-item:hover,
.contact-item:hover {
    background: var(--surface-hover);
}

.address-type-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
}

.address-content {
    flex: 1;
    line-height: 1.6;
}

.address-actions,
.contact-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-icon {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative; /* Für absolute positionierte Badges */
}

.btn-icon:hover {
    background: var(--accent-alpha);
    color: var(--accent);
}

.btn-icon.btn-danger:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.contact-item {
    align-items: center;
}

.contact-icon {
    font-size: 1.5rem;
}

.contact-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.contact-type {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-value {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 500;
}

/* --- PROFILE: ROLLEN --- */
.role-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.role-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--surface-light);
    border-radius: 8px;
    border-left: 4px solid var(--accent);
    transition: var(--transition);
}

.role-item:hover {
    background: var(--surface-hover);
    transform: translateX(4px);
}

.role-player {
    border-left-color: #10b981;
}

.role-coach {
    border-left-color: #f59e0b;
}

.role-referee {
    border-left-color: #ef4444;
}

.role-manager {
    border-left-color: #8b5cf6;
}

.role-icon {
    font-size: 2rem;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border-radius: 50%;
}

.role-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.role-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.role-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.role-date {
    font-size: 0.75rem;
    color: var(--text-secondary);
    opacity: 0.8;
}

.role-actions {
    display: flex;
    gap: 0.5rem;
}

.role-profile-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.55rem 1.25rem;
    border-radius: 8px;
    background: rgba(255, 215, 0, 0.15);
    color: var(--accent-gold);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    border: 1.5px solid var(--accent-gold);
    transition: all 0.2s ease;
}

.role-profile-link:hover {
    background: var(--accent-gold);
    color: #1a1a2e;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.role-profile-link svg {
    transition: transform 0.2s ease;
}

.role-profile-link:hover svg {
    transform: translateX(3px);
}

/* --- PROFILE: SPIELER --- */
.player-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.player-info-item {
    padding: 1rem;
    background: var(--surface-light);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.player-info-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.player-info-value {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.player-position-badge {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    display: inline-block;
    width: fit-content;
    color: white;
    font-size: 1rem;
}

.position-gk {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.position-df {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.position-mf {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.position-fw {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.player-jersey-number {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (max-width: 568px) {
    .profile-info {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-stats {
        grid-template-columns: 1fr;
    }
    
    .address-item,
    .contact-item {
        flex-direction: column;
        gap: 0.75rem;
    }

    .address-actions,
    .contact-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .role-item {
        flex-direction: column;
        text-align: center;
    }
    
    .player-info-grid {
        grid-template-columns: 1fr;
    }
}

/* --- ADMIN BEREICH --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--surface-light);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
    border: 2px solid transparent;
}

.stat-card:hover {
    background: var(--surface-hover);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.stat-icon {
    font-size: 2.5rem;
    width: 4rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-alpha);
    border-radius: 12px;
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

/* Admin Tabs Navigation */
.admin-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--surface-light);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.admin-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    white-space: nowrap;
}

.admin-tab svg {
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.admin-tab:hover {
    color: var(--text-primary);
    background: var(--surface-light);
}

.admin-tab:hover svg {
    opacity: 1;
}

.admin-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
    background-color: var(--primary-color);
}

.admin-tab.active svg {
    opacity: 1;
}

.admin-tab-content {
    display: none;
}

.admin-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

/* Show tab immediately if hash matches (prevents FOUC during pagination) */
#tab-vereine:target,
#tab-benutzer:target,
#tab-wettbewerbe:target,
#tab-spiele:target {
    display: block;
}

/* Pagination Button Styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 0.5rem 0.75rem;
    min-width: 40px;
    font-size: 0.875rem;
    width: auto !important; /* Override any global btn width */
    flex-shrink: 0;
}

.pagination-num {
    min-width: 44px; /* Touch-friendly minimum */
}

@media (max-width: 568px) {
    .pagination {
        gap: 0.25rem !important;
    }
    
    .pagination-btn {
        padding: 0.5rem 0.6rem;
        min-width: 36px;
        font-size: 0.8125rem;
        width: auto !important;
    }
    
    .pagination-num {
        min-width: 40px;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.admin-table {
    overflow-x: auto;
}

.admin-table table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    text-align: left;
    padding: 1rem;
    background: var(--surface-light);
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--surface);
}

.admin-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--surface-light);
    color: var(--text-primary);
}

.admin-table tr:hover td {
    background: var(--surface-light);
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--accent-alpha);
    color: var(--accent);
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
}

@media (max-width: 568px) {
    .admin-tabs {
        gap: 0;
        margin-bottom: 1.5rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .admin-tab {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
        gap: 0.375rem;
    }
    
    .admin-tab svg {
        width: 16px;
        height: 16px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-icon {
        font-size: 1.75rem;
        width: 3rem;
        height: 3rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    .admin-table {
        font-size: 0.875rem;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 0.75rem 0.5rem;
    }
}

/* --- VEREIN & CLUB DETAIL SEITE --- */
.page-header {
    margin-bottom: 2rem;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 1.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--surface);
    border-radius: 12px;
    border: 2px solid var(--surface-light);
    font-weight: 600;
    transition: var(--transition);
}

.back-button:hover {
    color: var(--accent);
    background: var(--surface-light);
    border-color: var(--accent);
    transform: translateX(-4px);
}

.back-button svg {
    transition: var(--transition);
}

.back-button:hover svg {
    transform: translateX(-2px);
}

.page-header h2 {
    margin: 0;
    padding: 0 0.5rem;
}

/* --- KADER VERWALTUNG --- */

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--surface);
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease-out;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--surface-light);
}

.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--surface-light);
    color: var(--text-primary);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding: 1.5rem;
    border-top: 1px solid var(--surface-light);
}

.modal-large {
    max-width: 800px;
}

.squad-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

.squad-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.squad-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: var(--surface-light);
    border-radius: 12px;
    transition: var(--transition);
}

.squad-item:hover {
    background: var(--surface-hover);
}

.squad-player-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.shirt-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background: var(--accent-alpha);
    color: var(--accent);
    border-radius: 8px;
    font-size: 1.25rem;
    font-weight: 700;
}

.squad-meta {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.loading {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
}

.error {
    text-align: center;
    padding: 2rem;
    color: #f44336;
}

/* --- TEAM CARDS (Mobile) --- */
.team-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.team-card {
    background: var(--surface-light);
    border-radius: 12px;
    padding: 1rem;
    transition: var(--transition);
}

.team-card:hover {
    background: var(--surface-hover);
}

.team-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--surface);
}

.team-card-header h4 {
    margin: 0;
    font-size: 1.125rem;
    color: var(--text-primary);
}

.team-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.team-card-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
}

.team-card-info strong {
    color: var(--text-secondary);
}

.team-card-info span {
    color: var(--text-primary);
}

.team-card-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.team-card-actions .btn {
    flex: 1;
    min-width: fit-content;
}

/* Desktop/Mobile Toggle */
.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

@media (max-width: 568px) {
    .desktop-only {
        display: none;
    }
    
    .mobile-only {
        display: flex;
    }
    
    .club-details,
    .verein-details {
        flex-direction: column;
    }
    
    .club-logo-large {
        width: 80px;
        height: 80px;
    }
    
    .club-info-grid,
    .verein-info-grid {
        grid-template-columns: 1fr;
    }
    
    .page-header h2 {
        font-size: 1.5rem;
    }
    
    .squad-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .btn-group {
        width: 100%;
        justify-content: flex-end;
    }
    
    .modal-content {
        margin: 0;
        max-height: 100vh;
        border-radius: 0;
    }
    
    .modal-large {
        max-width: 100%;
    }
    
    /* Coaches Modal Responsive */
    .coach-modal-grid {
        grid-template-columns: 1fr !important;
    }
    
    .coach-list-section,
    .coach-add-section {
        width: 100%;
    }
}

/* =====================================
   Live-Ticker Erweiterungen
   ===================================== */

/* Wichtige Events hervorheben */
.ticker-item.important {
    border-left: 4px solid var(--primary-color);
    background: linear-gradient(90deg, rgba(0, 168, 107, 0.05), transparent);
}

/* Event-Typ-spezifische Border-Farben */
.ticker-item.goal {
    border-left: 4px solid var(--success, #10b981);
}

/* Eigentor: Roter Akzent + dezenter roter Hintergrund */
.ticker-item.own-goal {
    border-left: 4px solid #ef4444;
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.08), transparent);
}

.ticker-item.own-goal .ticker-type-label {
    color: #ef4444;
}

.ticker-item.own-goal .ticker-icon {
    filter: none;
}

.ticker-item.own-goal .ticker-goal-player-photo {
    border-color: #ef4444;
}

.ticker-item.own-goal .ticker-goal-minute {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

/* Eigentor-Badge */
.ticker-own-goal-badge {
    display: inline-block;
    background: #ef4444;
    color: #fff;
    font-size: 0.625rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    margin-top: 0.25rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.ticker-item.card.card-red {
    border-left-color: #ef4444;
}

.ticker-item.card.card-yellow-red {
    border-left-color: #f97316;
}

.ticker-item.substitution {
    border-left: 4px solid #3b82f6;
}

.ticker-item.system {
    border-left: 4px solid var(--text-secondary, #888);
    background: var(--surface-light, rgba(255,255,255,0.03));
}

.ticker-item.info {
    border-left: 4px solid transparent;
}

/* Type Label (TOR!, Gelbe Karte, etc.) */
.ticker-type-label {
    display: inline-block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.15rem;
}

.ticker-item.goal .ticker-type-label {
    color: var(--success, #10b981);
}

.ticker-item.card .ticker-type-label {
    color: var(--warning, #f59e0b);
}

.ticker-item.card.card-red .ticker-type-label {
    color: #ef4444;
}

.ticker-item.card.card-yellow-red .ticker-type-label {
    color: #f97316;
}

/* ===================================
   Karten: Team + Spieler-Anzeige
   =================================== */

/* Team-Zeile */
.ticker-card-team {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.25rem;
}

.ticker-card-team-logo {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex-shrink: 0;
}

.ticker-card-team-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}

/* Spieler-Zeile */
.ticker-card-player {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.15rem;
}

.ticker-card-player-photo {
    width: 22px;
    height: 22px;
    max-width: 22px;
    max-height: 22px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid var(--warning, #f59e0b);
    flex-shrink: 0;
    background: var(--surface-light);
}

.ticker-card-player-photo.card-red {
    border-color: #ef4444;
}

.ticker-card-player-photo.card-yellow-red {
    border-color: #f97316;
}

.ticker-card-player-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Ticker-Nachricht */
.ticker-message {
    margin-top: 0.15rem;
    line-height: 1.5;
}

/* Leere Minute (Info-Events) */
.ticker-time-empty {
    color: var(--text-secondary, #888);
    opacity: 0.5;
}

/* Ticker Actions (für Admin-Interface) */
.ticker-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.ticker-item:hover .ticker-actions {
    opacity: 1;
}

/* Live-Badge Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

.badge.live {
    animation: pulse 2s ease-in-out infinite;
}

/* Score Animation */
@keyframes scoreChange {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
        color: var(--primary-color);
    }
    100% {
        transform: scale(1);
    }
}

/* Ticker-Eintrag Fade-In */
@keyframes tickerFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ticker-item.new {
    animation: tickerFadeIn 0.4s ease-out;
}

/* ===================================
   Tor-Event: Team + Spieler im Content
   =================================== */
.ticker-goal-team {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
    padding-left: 6px;
}

.ticker-goal-team-logo {
    width: 18px;
    height: 18px;
    max-width: 18px;
    max-height: 18px;
    object-fit: contain;
    border-radius: 2px;
    flex-shrink: 0;
}

.ticker-goal-team-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.ticker-goal-player {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.15rem;
}

.ticker-goal-player-photo {
    width: 30px;
    height: 30px;
    max-width: 30px;
    max-height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid var(--success, #10b981);
    flex-shrink: 0;
    background: var(--surface-light);
}

.ticker-goal-player-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.ticker-goal-minute {
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--success, #10b981);
    background: rgba(0, 168, 107, 0.1);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    flex-shrink: 0;
}

/* ===================================
   Auswechslung: Team + Spieler RAUS/REIN
   =================================== */

/* Substitution Label */
.ticker-item.substitution .ticker-type-label {
    color: #3b82f6;
}

/* Team-Zeile: Logo + Name */
.ticker-sub-team {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.ticker-sub-team-logo {
    width: 18px;
    height: 18px;
    max-width: 18px;
    max-height: 18px;
    object-fit: contain;
    border-radius: 2px;
    flex-shrink: 0;
}

.ticker-sub-team-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}

/* Spieler-Zeile (RAUS / REIN) */
.ticker-sub-player {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.15rem;
}

.ticker-sub-player-photo {
    width: 22px;
    height: 22px;
    max-width: 22px;
    max-height: 22px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--surface-light);
}

.ticker-sub-player-name {
    font-size: 0.85rem;
    font-weight: 600;
}

.ticker-sub-arrow {
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* RAUS: Rot */
.ticker-sub-out .ticker-sub-player-photo {
    border: 1.5px solid #ef4444;
}

.ticker-sub-out .ticker-sub-arrow {
    color: #ef4444;
}

.ticker-sub-out .ticker-sub-player-name {
    color: #ef4444;
}

/* REIN: Grün */
.ticker-sub-in .ticker-sub-player-photo {
    border: 1.5px solid #22c55e;
}

.ticker-sub-in .ticker-sub-arrow {
    color: #22c55e;
}

.ticker-sub-in .ticker-sub-player-name {
    color: #22c55e;
}

/* --- ROLE ASSIGN CONTAINER --- */
.role-assign-container {
    display: flex;
    gap: 0.5rem;
}

.role-assign-container select {
    flex: 1;
}

@media (max-width: 568px) {
    .role-assign-container {
        gap: 0.75rem;
    }
    
    .role-assign-container select,
    .role-assign-container button {
        flex: 1;
        min-width: 0;
    }
    
    .role-assign-container button {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* === CARD GRID LAYOUT (einheitlich für Listen) === */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 0.75rem;
}

.club-item,
.users-item,
.persons-item,
.leagues-item,
.seasons-item,
.competitions-item,
.games-item,
.live-ticker-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--surface-light);
    border-radius: 8px;
    transition: all var(--transition);
}

.club-item:hover,
.users-item:hover,
.persons-item:hover,
.leagues-item:hover,
.seasons-item:hover,
.competitions-item:hover,
.games-item:hover,
.live-ticker-item:hover {
    background: var(--surface-hover);
}

.club-header,
.users-header,
.persons-header,
.leagues-header,
.seasons-header,
.competitions-header,
.games-header,
.live-ticker-header {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    color: var(--primary-color);
    border-bottom: 1px solid var(--surface);
    width: 100%;
    padding: 0.5rem;
}

.club-header:hover,
.users-header:hover,
.persons-header:hover,
.leagues-header:hover,
.seasons-header:hover,
.competitions-header:hover,
.games-header:hover,
.live-ticker-header:hover {
    border-bottom: 1px solid var(--surface-light);
}

.club-content,
.users-content,
.persons-content,
.leagues-content,
.seasons-content,
.competitions-content,
.games-content,
.live-ticker-content {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.club-field,
.users-field,
.persons-field,
.leagues-field,
.seasons-field,
.competitions-field,
.games-field,
.live-ticker-field {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.club-field-label,
.users-field-label,
.persons-field-label,
.leagues-field-label,
.seasons-field-label,
.competitions-field-label,
.games-field-label,
.live-ticker-field-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
    min-width: 100px;
}

.club-field-value,
.users-field-value,
.persons-field-value,
.leagues-field-value,
.seasons-field-value,
.competitions-field-value,
.games-field-value,
.live-ticker-field-value {
    font-size: 0.875rem;
    color: var(--text-primary);
    text-align: right;
    word-break: break-word;
}

.club-actions,
.users-actions,
.persons-actions,
.leagues-actions,
.seasons-actions,
.competitions-actions,
.games-actions,
.live-ticker-actions {
    display: flex;
    gap: 0.5rem;
    width: 100%;
    justify-content: flex-end;
}

/* Squad Management Cards */
.squad-player-card {
    background: var(--card-bg);
    border: 2px solid var(--surface-light);
    border-radius: 8px;
    padding: 0.75rem;
    transition: var(--transition);
}

.squad-player-card:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(0,168,107,0.1);
}

/* Nicht spielberechtigte Spieler */
.squad-player-card.player-not-eligible {
    opacity: 0.7;
    border-color: var(--error);
    background: rgba(255, 0, 0, 0.05);
    position: relative;
}

.squad-player-card.player-not-eligible:hover {
    opacity: 0.85;
    border-color: var(--error);
    box-shadow: 0 2px 8px rgba(244, 67, 54, 0.2);
    cursor: help;
}

.squad-player-card.player-not-eligible::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    pointer-events: none;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: 6px;
}

.btn-accent {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
    border: none;
}

.btn-accent:hover {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
}

/* Squad Controls Row */
.squad-controls-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.5rem;
}

.squad-position-select {
    flex: 1;
    font-size: 0.85rem;
    padding: 0.25rem;
}

.squad-captain-btn {
    font-size: 0.75rem;
    padding: 0.375rem 0.5rem;
    flex-shrink: 0;
    min-width: 40px;
}

.squad-remove-btn {
    font-size: 0.85rem;
    padding: 0.375rem 0.5rem;
    flex-shrink: 0;
    min-width: 40px;
}

/* Squad Bench Controls */
.squad-bench-controls {
    display: flex;
    gap: 0.5rem;
}

.squad-bench-move {
    flex: 1;
    font-size: 0.75rem;
    padding: 0.375rem;
}

.squad-bench-remove {
    font-size: 0.75rem;
    padding: 0.375rem;
}

@media (max-width: 568px) {
    .squad-position-select {
        flex: 1;
        min-width: 0;
        padding: 0.5rem 0.25rem;
        font-size: 0.8rem;
    }
    
    .squad-captain-btn {
        flex: none;
        width: 36px;
        padding: 0.5rem 0.25rem;
    }
    
    .squad-remove-btn {
        flex: none;
        width: 36px;
        padding: 0.5rem 0.25rem;
    }
    
    .squad-bench-move {
        flex: none;
        width: 70%;
    }
    
    .squad-bench-remove {
        flex: none;
        width: 30%;
    }
}

/* ============================================= */
/* Next-Games-Preview (kein Featured Game)       */
/* ============================================= */
.next-games-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0 !important;
}

.next-game-item {
    display: grid;
    grid-template-columns: 70px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.15s ease;
}

.next-game-item:last-child {
    border-bottom: none;
}

.next-game-item:hover {
    background: var(--hover-bg, rgba(0,168,107,0.05));
}

.next-game-item.live {
    background: rgba(0,168,107,0.08);
}

.next-game-date {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
    white-space: nowrap;
}

.next-game-matchup {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.next-game-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}

.next-game-team {
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.next-game-vs {
    font-size: 0.7rem;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.next-game-time {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-align: right;
    white-space: nowrap;
}

.next-game-score {
    font-size: 0.9rem;
    font-weight: 700;
    text-align: right;
    white-space: nowrap;
}

.next-game-score.live {
    color: var(--primary-color);
}

.next-game-league {
    grid-column: 2;
    font-size: 0.7rem;
    color: var(--text-secondary);
    opacity: 0.7;
    margin-top: -4px;
}

@media (max-width: 480px) {
    .next-game-item {
        grid-template-columns: 60px 1fr auto;
        gap: 8px;
        padding: 10px 12px;
    }
    
    .next-game-team {
        font-size: 0.8rem;
    }
    
    .next-game-logo {
        width: 20px;
        height: 20px;
    }
}