/* ============================================================
   1. PopUp: Teilnehmerliste (Wer kommt?)
   ============================================================ */

/* Popup-Hintergrund */
.popup {
	position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35); /* moderner Overlay */
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px); /* leichter Glas-Effekt */
    z-index: 9999;
}

/* Popup unsichtbar */
.popup.hidden {
    display: none;
}

/* Popup-Inhalt */
.popup-content {
    background: #f5f6f7;
    padding: 20px;
    border-radius: 14px;
    width: 300px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 12px 28px rgba(0,0,0,0.18);
    position: relative;
    opacity: 0;
    transform: translateY(-10px);
    animation: popupFadeIn 0.25s ease-out forwards;
}
.popup-content h2 {
    margin-top: 5px;
    margin-bottom: 15px;
    text-align: center;
}

/* Spieler-Liste im Popup */
.popup-spieler {
    width: calc(50% - 8px);
    padding: 10px 12px;
    border-radius: 10px;
    background: #ffffff;
    cursor: pointer;
    text-align: center;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.popup-spieler:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

#popup-spieler-liste {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.status-kommt {
    background: #d4f8d4; /* sehr helles Grün */
    color: #2e7d32;      /* ruhiges Dunkelgrün */
}

.status-kommt-nicht {
    background: #f8d4d4; /* sehr helles Rot */
    color: #b71c1c;      /* gedecktes Dunkelrot */
}

.status-offen {
    background: #e5e7eb; /* neutrales, modernes Grau */
    color: #374151;      /* dunkles Grau */
}

.status-vielleicht {
    background: #f7e8a4; /* helles Gelb */
    color: #5a4e1a;      /* warmes Dunkelgelb */
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 14px;
    font-size: 22px;
    font-weight: bold;
    color: #555;
    cursor: pointer;
    transition: color 0.2s;
}

.popup-close:hover {
    color: #000;
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================
 /* BIER -PopUP */ 
/*   ============================================================ */

/* ----------------------------------------------------------- */

.bier-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 20px 0;
}

.bier-player-btn {
    padding: 12px;
    background: #f2f2f2;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    font-size: 16px;
    border: none;
}

.bier-player-btn:hover {
    background: #e0e0e0;
}

.bier-cancel {
    width: 100%;
    padding: 12px;
    background: #ddd;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
	margin-top: 16px; /* Abstand nach oben */
}

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

/* -------------------------------------------------------------
   Modernes Bier-Popup – gleiche Optik wie Chat, aber ohne 2/3-Logik
   ------------------------------------------------------------- */

/* Popup etwas breiter */
#bier-popup .popup-content {
    width: 480px;
    max-width: 90%;
}

/* Spieler-Buttons modernisieren – gleiche Optik wie Chat */
#bier-player-grid .bier-player-btn {
    background: #e9f2ff;              /* helles Chat-Blau */
    border: 1px solid #bcd;
    color: #2a4d7a;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

#bier-player-grid .bier-player-btn:hover {
    background: #d6e8ff;
    border-color: #4a90e2;            /* kräftiges Chat-Blau */
    color: #1c3f6e;
    transform: translateY(-2px);
}

/* Abbrechen-Button modernisieren – gleiche Optik wie Chat-Abbrechen */
#bier-popup .bier-cancel {
    width: 100%;
    padding: 10px;
    background: #f2f2f2;
    border: 1px solid #ccc;
    color: #444;
    border-radius: 8px;
    font-size: 1rem;
    transition: background 0.2s ease;
}

#bier-popup .bier-cancel:hover {
    background: #e0e0e0;
}


/* --------------------------------------------
 chat-PopUp
 -------------------------------------------- */

.chat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 Spalten */
    gap: 6px;
    margin: 15px 0;
	justify-items: center;    /* Buttons horizontal zentriert */
}

.chat-grid button {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    box-sizing: border-box;
    text-align: center;
    cursor: pointer;

    background-color: #e6f2ff; /* leicht blau */
    border: 1px solid #b3d7ff;
}

/* Popup 2 breiter ---------------------- */
#chat-popup-input .popup-content {
    width: 520px;
    max-width: 90%;
    background: linear-gradient(
        135deg,
        #1D4A7A 0%,
        var(--color-primary-dark) 100%
    );
    color: white;
}

/* Textfeld schöner */
.chat-textarea {
    width: 100%;
    height: 140px;
    padding: 12px;
    font-size: 1.1rem;
    border-radius: 10px;
    border: 1px solid #bcd;
    background: #f8fbff;
    outline: none;
    transition: border 0.2s;
}

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

/* Button-Reihe */
.chat-button-row {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}


/* Abbrechen = 1/3 */
.cancel-btn {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    border: none;
    background: #ddd;
    color: #333;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

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

/* Senden = 2/3 */
.send-btn {
    flex: 2;
    padding: 10px;
    border-radius: 8px;
    border: none;
    background: #4a90e2;   /* dein Blau */
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.send-btn:hover {
    background: #3a78c2;
}

#chat-popup-input .popup-content #chat-input-title {
    margin-top: 0;
    margin-bottom: 18px;
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--color-accent);   /* #2d3e50; */
    letter-spacing: 0.3px;
    text-align: center; /* wichtig, sonst überschreibt die alte Regel */
}

/* Abmelde-Button*/
.abmelde-gruende {
    display: flex;
    gap: 10px;
    margin: 10px 0 15px 0;
}

.abmelde-gruende button {
    flex: 1;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #bcd;
    background: var(--color-accent);
    color: #2a3f6c;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.abmelde-gruende button:hover {
    background: #e6c200; /* etwas dunkleres Gelb */
    border-color: #e6c200;
    transform: translateY(-2px);
}

/* macht Abmelde-Button im normalen Chat-Modus unsichtbar */
.hidden {
    display: none !important;
}

.emoji-bar {
    margin: 8px 0;
    padding: 6px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.emoji-bar button {
    font-size: 1.4rem;
    background: var(--color-hellgrau);
    border: 1px solid var(--color-dunkelgrau);
    border-radius: 6px;
    padding: 4px 6px;
    cursor: pointer;
}

.emoji-bar button:hover {
    background: var(--color-hellblau);
}