#chatOpenBtn {
    position: absolute;
    top: -6vh;
    
    padding: 1.2vh 2.8vh;
    border-radius: 5vh;

    border: 0.15vh solid rgba(255,255,255,0.12);
    outline: none;

    font-size: 1.6vh;
    font-weight: 600;
    color: rgba(255,255,255,0.9);

    background: linear-gradient(
        135deg,
        rgba(255,255,255,0.08),
        rgba(0,0,0,0.45)
    );

    cursor: pointer;
    transition: all .25s ease;
}
/* ===== CHAT ROOT ===== */

#rsdChat {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 900;
    font-family: "Inter", "Nunito", sans-serif;
    height: 74%;
}
/* ===== OVERLAY ===== */

#chatOverlay {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: .3s;
}

/* ===== PANEL ===== */

#chatPanel {

    width: 100%;
    max-width: 80vh;
    height: 100%;

    background: linear-gradient(
        180deg,
        rgb(41, 47, 74),
        rgb(40, 46, 95)
    );

    display: flex;
    flex-direction: column;

    overflow: hidden;

    transform: scale(0.95);
    opacity: 0;

    box-sizing: border-box;

    transition: all 0.35s cubic-bezier(.25,.8,.25,1);
}

/* ===== OPEN STATE ===== */

#rsdChat.open {
    pointer-events: all;
    bottom: 10vh;
}

#rsdChat.open #chatOverlay {
    opacity: 1;
}

#rsdChat.open #chatPanel {
    transform: scale(1);
    opacity: 1;
}


/* ===== HEADER ===== */

#rsdChatHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 0.5vh 1vh;

    background: linear-gradient(
        180deg,
        rgba(255,255,255,0.05),
        rgba(0,0,0,0.25)
    );
}

/* LEFT SIDE (Logo + Text) */
.chatHeaderLeft {
    display: flex;
    align-items: center;
    gap: 1.2vh;
}

/* LOGO */
.chatHeaderLeft img {
    height: 3.8vh;
    width: auto;

    filter: drop-shadow(0 0 0.6vh rgba(0,255,200,0.4));
}

/* TEXT */
.chatHeaderLeft span {
    font-weight: bold;
    font-size: 2vh;
    color: rgba(255,255,255,0.9);
}

/* RIGHT SIDE */
.chatHeaderControls {
    display: flex;
    gap: 1vh;
}

#chatMenu{
    width: 4.5vh;
    height: 4.5vh;

    border-radius: 50%;
    border: none;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    background: rgba(255,255,255,0.08);

    box-shadow:
        0 0 1vh rgba(0,0,0,0.3);

    transition: all .2s ease;
}

#chatMenu:hover{
    transform: scale(1.1);
    background: rgba(255,255,255,0.15);
}

#chatMenu:active{
    transform: scale(0.95);
}

#rsdChatHeader span {
    cursor: pointer;
}

.chatHeaderControls button{
    padding: 0.6vh 1.4vh;
    border-radius: 0.2vh;

    border: 0.12vh solid rgba(255,255,255,0.12);
    outline: none;

    background: linear-gradient(
        135deg,
        rgba(255,255,255,0.08),
        rgba(0,0,0,0.4)
    );

    cursor: pointer;
    transition: all .2s ease;

    display: flex;
    align-items: center;
    justify-content: center;
}

.chatHeaderControls button img{
    width: 1.6vh;  /* 🔥 kleiner */
    height: 1.6vh;

    object-fit: contain;

    pointer-events: none; 

    opacity: 0.85;
    transition: all .2s ease;
}

.chatHeaderControls button:hover img{
    opacity: 1;
    transform: scale(1.1);
}

.chatHeaderControls button:hover{
    background: rgba(255,255,255,0.15);
    transform: scale(1.05);
}


.chatHeaderControls button:active{
    transform: scale(0.95);
}

/* ===== LOGIN ===== */

#chatLoginContent {
    padding: 1.5vh;
    display: flex;            
    flex-direction: column;
    gap: 1.8vh;       
}
#chatLoginContent > div {
    flex-direction: column;
    gap: 0.5vh;
}
#chatLoginContent span {
    font-size: 1.3vh;
    opacity: 0.7;
    padding-left: 0.3vh;
}

#chatLoginContent input,
#chatLoginContent select {
    padding: 1.2vh 1.4vh;
    border-radius: 1.2vh;
    box-sizing: border-box;
    font-size: 1.8vh;
    color: white;

    background: linear-gradient(
        135deg,
        rgba(0, 25, 20, 0.08),
        rgba(0, 0, 0, 0.1)
    );

    border: 0.12vh solid rgba(0,255,200,0.15);
    outline: none;
    transition: all .25s ease;
    width: 100%;
}

/* ===== CHECKBOX ALS FELD ===== */

.checkbox {
    display: flex;
    align-items: center;
    gap: 1.2vh;

    padding: 1.2vh 1.4vh;
    border-radius: 1.2vh;

    background: linear-gradient(
        135deg,
        rgba(0, 25, 20, 0.08),
        rgba(0, 0, 0, 0.1)
    );

    border: 0.12vh solid rgba(0,255,200,0.15);

    cursor: pointer;
    transition: all .25s ease;
}

/* Hover wie bei Inputs */
.checkbox:hover {
    border: 0.12vh solid rgba(0,255,200,0.3);

    box-shadow:
        inset 0 0 1vh rgba(0,0,0,0.6),
        0 0 2vh rgba(0,255,200,0.2);
}

/* ===== INPUT VERSTECKEN ===== */

.checkbox input {
    display: none;
}

/* ===== BOX ===== */

.checkmark {
    width: 2vh;
    height: 2vh;

    border-radius: 0.5vh;

    background: rgba(0,0,0,0.4);

    border: 0.12vh solid rgba(0,255,200,0.3);

    display: flex;
    align-items: center;
    justify-content: center;

    transition: all .2s ease;
}

/* ===== CHECK ICON ===== */

.checkmark::after {
    content: "";
    width: 0.6vh;
    height: 1.2vh;

    border: solid white;
    border-width: 0 0.25vh 0.25vh 0;

    transform: rotate(45deg) scale(0);
    transition: transform .2s ease;
}

/* ===== CHECKED ===== */

.checkbox input:checked + .checkmark {
    background: rgba(0,255,200,0.6);

    box-shadow:
        0 0 1.5vh rgba(0,255,200,0.6);
}

.checkbox input:checked + .checkmark::after {
    transform: rotate(45deg) scale(1);
}

/* ===== TEXT ===== */

.checkbox {
    font-size: 1.5vh;
    color: rgba(255,255,255,0.85);
}

#chatLoginContent input:focus,
#chatLoginContent select:focus {
    border: 0.12vh solid rgba(0,255,200,0.6);

    box-shadow:
        inset 0 0 1vh rgba(0,0,0,0.6),
        0 0 2vh rgba(0,255,200,0.4),
        0 0 6vh rgba(0,255,200,0.2);
}

/* ===== PLACEHOLDER ===== */

#chatLoginContent input::placeholder {
    color: rgba(255,255,255,0.35);
}

/* ===== SELECT CUSTOM STYLE ===== */

#chatLoginContent select {
    appearance: none;
    cursor: pointer;

    padding-right: 4vh; /* Platz für Pfeil */

    background-image: url("data:image/svg+xml;utf8,<svg fill='rgb(0,255,200)' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 1.2vh center;
    background-size: 2vh;
}
#chatLoginContent option {
    background: #021212;
    color: white;
}
#chatLoginContent input:hover,
#chatLoginContent select:hover {
    border: 0.12vh solid rgba(0,255,200,0.3);

    box-shadow:
        inset 0 0 1vh rgba(0,0,0,0.6),
        0 0 2vh rgba(0,255,200,0.2);
}
#chatLoginContent input:active,
#chatLoginContent select:active {
    transform: scale(0.98);
}
#chatLoginContent button {
    margin-top: 1vh;
    padding: 1.2vh;
    border-radius: 2vh;
    border: none;

    background: linear-gradient(
        135deg,
        rgba(32, 91, 94, 0.7),
        rgba(13, 109, 109, 0.768)
    );

    color: #021212;

    box-shadow:
        0 0 2vh rgba(0, 29, 23, 0.5),
        0 0 4vh rgba(0, 13, 10, 0.2);
    color: rgb(255, 255, 255);
    font-weight: bold;
}
#chatLoginContent button:disabled {
    margin-top: 1vh;
    padding: 1.2vh;
    border-radius: 2vh;
    border: none;

    background: linear-gradient(
        135deg,
        rgba(40, 40, 40, 0.6),
        rgba(20, 20, 20, 0.7)
    );

    color: rgba(255, 255, 255, 0.4);

    box-shadow:
        inset 0 0 1vh rgba(0,0,0,0.6);

    cursor: not-allowed;

    opacity: 0.6;
}
#chatPasswordField {
    display:  none;
}
#chatPasswordField div {
    color: rgb(255, 175, 36);
}
#chatStatusText {
    color: rgb(255, 72, 91);
    font-size: 1.8vh;
    font-weight: bold;
}
#chatHeaderControls{
    display:flex;
    gap:1vh;
}

#rsdChat.fullscreen{
    height: 100%;
}

#rsdChat.fullscreen #chatPanel{
    width: 100%;
    max-width: none; 

    height: 100%;
    border-radius: 0; 

    transform: scale(1);
}
#chatInputArea{
    display: flex;
    align-items: center;
    gap: 1vh;

    padding: 1vh;

    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(1.5vh);

    border-top: 0.1vh solid rgba(255,255,255,0.08);
}
#chatInput{
    flex: 1;

    padding: 1.2vh 1.6vh;
    border-radius: 2vh;

    border: 0.1vh solid rgba(0,255,200,0.15);
    outline: none;

    font-size: 1.6vh;

    background: rgba(255,255,255,0.06);
    color: white;

    transition: all .2s ease;
}

/* Fokus Glow */
#chatInput:focus{
    border: 0.1vh solid rgba(0,255,200,0.6);

    box-shadow:
        0 0 1vh rgba(0,255,200,0.4);
}

/* Placeholder */
#chatInput::placeholder{
    color: rgba(255,255,255,0.4);
}
#chatSend{
    width: 4.5vh;
    height: 4.5vh;

    border-radius: 50%;
    border: none;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    background: linear-gradient(
        135deg,
        rgba(0,255,200,0.9),
        rgba(0,200,255,0.7)
    );

    box-shadow:
        0 0 1.5vh rgba(0,255,200,0.6);

    transition: all .2s ease;
}

#chatSend:hover{
    transform: scale(1.1);
}

#chatSend:active{
    transform: scale(0.95);
}
#chatContent{
    display: none;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}
#chatMessages{
    flex: 1;
    overflow-y: auto;

    padding: 1vh;

    display: flex;
    flex-direction: column;
    gap: 1vh;

    min-height: 0;
}