/* ============================================================
   Chat – Mobile Version (max-width: 900px)
   ============================================================ */
@media (max-width: 900px) {
 
/* ==============================
   Chat-Liste
   ============================== */
.chat-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 350px;
    overflow-y: auto;
    padding-left: 4px;
    padding-right: 4px;
    margin: 0;
    width: 100%;
    box-sizing: border-box;

    /* Firefox */
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,0.3) transparent;
}

/* Nur für WebKit-Browser (Chrome, Safari) */
@media screen and (-webkit-min-device-pixel-ratio:0) {
    .chat-list::-webkit-scrollbar {
        width: 6px;
    }
    .chat-list::-webkit-scrollbar-track {
        background: #f0f0f0;
    }
    .chat-list::-webkit-scrollbar-thumb {
        background-color: rgba(0,0,0,0.3);
        border-radius: 3px;
    }
    .chat-list::-webkit-scrollbar-thumb:hover {
        background-color: rgba(0,0,0,0.5);
    }
}
    /* ==============================
       Chat-Kacheln – volle Breite
       ============================== */
    .chat-item {
        display: grid;
        grid-template-columns: 70px 1fr; /* linke Spalte fix, rechte breiter */
        grid-template-rows: auto auto;
        gap: 1px 6px;
        padding: 6px 10px;           /* mehr Innenabstand = breiter */
        border-radius: 6px;
        background: #F3F6FB;
        border: 1px solid #E1E5EB;
        max-width: 100%;
        width: 100%;
    }

    .chat-left {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding-top: 0;
        padding-bottom: 0;
        gap: 2px;
    }

    .chat-tag {
        font-size: 10px;
        font-weight: 600;
        text-transform: uppercase;
        padding: 1px 6px;
        border-radius: 999px;
        width: fit-content;
        max-width: 100%;
        white-space: nowrap;
    }

    .chat-time {
        font-size: 8px;
        color: var(--color-muted);
        text-align: center;
        margin-top: -1px;
        margin-bottom: -2px;
    }

    .chat-right {
        grid-column: 2;
        grid-row: 1 / span 2;
        display: flex;
        align-items: center;
        word-break: break-word;
    }

    .chat-text {
        font-size: 12px;
        line-height: 1.2;
    }

    /* ==============================
       Chat-Popup / Textarea
       ============================== */
    #chat-popup-input .popup-content {
        width: 95%;
        max-width: 320px;
    }

    .chat-textarea {
        width: 100%;
        height: 120px;
        padding: 10px;
        font-size: 1rem;
        border-radius: 8px;
        border: 1px solid #bcd;
        background: #f8fbff;
        outline: none;
        transition: border 0.2s;
    }

    .chat-textarea:focus {
        border-color: #4a90e2;
    }

    .chat-button-row {
        display: flex;
        gap: 8px;
        margin-top: 12px;
    }

    .cancel-btn {
        flex: 1;
        padding: 8px;
        border-radius: 6px;
        border: none;
        background: #ddd;
        color: #333;
        font-size: 0.9rem;
        cursor: pointer;
        transition: background 0.2s;
    }

    .cancel-btn:hover {
        background: #ccc;
    }

    .send-btn {
        flex: 2;
        padding: 8px;
        border-radius: 6px;
        border: none;
        background: #4a90e2;
        color: white;
        font-size: 0.9rem;
        font-weight: 600;
        cursor: pointer;
        transition: background 0.2s;
    }

    .send-btn:hover {
        background: #3572b0;
    }

    #chat-player-grid .bier-player-btn {
        background: #e9f2ff;
        border: 1px solid #bcd;
        color: #2a4d7a;
        padding: 8px 12px;
        border-radius: 6px;
        font-size: 0.9rem;
        font-weight: 500;
        transition: all 0.2s;
    }

    #chat-player-grid .bier-player-btn:hover {
        background: #d6e8ff;
        border-color: #4a90e2;
        color: #1c3f6e;
        transform: translateY(-1px);
    }

    /* ==============================
       Chat-Button oben rechts
       ============================== */
    .chat-action {
        position: absolute;
        top: -12px;
        right: -8px;
        display: flex;
        flex-direction: column;
        align-items: center;
        z-index: 10;
    }

    .chat-button {
        font-size: 40px;  /* etwas größer für Mobil */
        background: none;
        border: none;
        cursor: pointer;
        padding: 2px;
        line-height: 1;
    }

    .chat-label {
        font-size: 11px;
        color: #666;
        margin-top: 2px;
        font-weight: 500;
    }

 /* ==============================
   Bier-Kachel Container
   ============================== */
.beer-container {
    position: sticky;
    top: 0;
    z-index: 5;
    padding-bottom: 4px; /* Abstand zum Chat */
    padding-left: 0;
    padding-right: 0;
    width: 100%;
}

/* Bier-Kachel – MOBILE VERSION (sichtbar, hell, vereinsgelb) */
.chat-item.beer-item {
    display: grid;
    grid-template-columns: 60px 1fr;
    align-items: center;
    padding: 6px 10px;
    border-radius: 8px;

    background: var(--color-accent);   /* Vereinsgelb */
    border: 1px solid #bfa200;         /* etwas dunkleres Gelb */
    color: #1a1a1a;                    /* guter Kontrast */
    font-weight: 600;

    max-width: 100%;
    width: 100%;
}

/* Linke Seite */
.beer-left {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
}

/* Bier-Tag */
.beer-left .chat-tag {
    background: #fff3a0;               /* helles Gelb */
    color: #5a4e1a;                    /* warmes Dunkelgelb */
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 999px;
}

/* Rechte Seite */
.beer-right {
    display: flex;
    align-items: center;
}

/* Spielername */
.beer-player {
    font-weight: 700;
    color: #1a1a1a;                    /* dunkler Text */
    margin-left: 4px;
}

/* Zeit */
.beer-time {
    font-size: 10px;
    color: #5a4e1a;                    /* dezentes Dunkelgelb */
    margin-left: 6px;
} 
}