@charset "utf-8";


/* LISTE */

.contentcard.chats .content .liste {
    width: 350px;
    display: inline-block;
    padding-right: 16px;
}



.contentcard.chats .content .liste .chat {
    padding: 8px;
    background-color: #ffffff;
    color: #4f4f4f;
    border-radius: 0px;
    border-bottom: 1px solid #818181;
    transition: all .3s;
    position: relative;
}

.contentcard.chats .content .liste .chat .chat_bild {
    width: 48px;
    height: 48px;
    background-size: cover;
    background-position: center center;
    border-radius: 50%;
    display: inline-flex;
    vertical-align: middle;
    margin-right: 8px;
    font-size: 38px;
    background-color: #c9c9c9;
    color: #6e6e6e;
    justify-content: center;
    align-items: center;
}

.contentcard.chats .content .liste .chat .chat_inhalt {
    display: inline-block;
    width: calc(100% - 84px);
    vertical-align: middle;
}




.contentcard.chats .content .liste .chat .chat_inhalt * {
    font-size: 10px;
}


.contentcard.chats .content .liste .chat .chat_inhalt .chat_titel {
    font-weight: bold;
    font-size: 14px;
}

.chat.neue_nachrichten {
    background-color: #ffecec;
}


.contentcard.chats .content .liste .chat:hover {
    cursor: pointer;
    background-color: #eefaeb;
}

.contentcard.chats .content .liste .chat.ausgewaehlter_raum {
    background-color: #adff7f;
}

.contentcard.chats .content .liste .chat:first-of-type {
    border-radius: 4px 4px 0px 0px;
}

.contentcard.chats .content .liste .chat:last-of-type {
    border-radius: 4px;
    border-bottom: none;
}

.contentcard.chats .content .liste .chat .neu_anzahl {
    display: inline-block;
    width: 15px;
    height: 15px;
    font-size: 15px;
    text-align: center;
    color: #ffff;
    border-radius: 50%;
    padding: 4px;
    background-color: #b24949;
    position: absolute;
    right: 16px;
    bottom: 16px;
}





/* ANZEIGE */


.contentcard.chats .content .anzeige {
    display: inline-flex;
    flex-direction: column;
    width: calc(100% - 570px);
    height: calc(100% - 30px);
    position: absolute;
    vertical-align: top;
    background-color: #fff;
}


.contentcard.chats .anzeige .filedropmeldung {
    height: 93%;
    width: 97%;
    position: absolute;
    display: inline-flex;
    bottom: 0;
    left: 0;
    background-color: #ffffff8a;
    z-index: 100;
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
}

.contentcard.chats .chat_schreiben {
    bottom: 8px;
    position: absolute;
    text-align: center;
    width: 100%;
}


.contentcard.chats .chat_nachrichten {
    text-align: center;
    max-height: calc(100% - 140px);
    flex-grow: 1;
    overflow-y: scroll;
}

.contentcard.chats .chat_titelzeile {
    padding: 16px;
    color: #424242;
    border-bottom: 1px solid #959595;
    background-color: #eefaeb;
    font-weight: bold;
    display: inline-flex;
    width: calc(100% - 32px);
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.uniknopf.raum_einstellungen_knopf {
    display: inline-block;
}

.contentcard.chats .schreibbereich {
    width: calc(100% - 128px);
    min-width: unset;
    min-height: 40px;
    height: 40px;
    max-height: 150px;
    vertical-align: middle;
    font-size: 14px;
    padding: 10px;
    transition: all .1s linear;
}

#popup .link_mit_loeschen {
    display: inline-flex;
    flex-direction: row;
    width: 100%;
    align-items: center;
    justify-content: space-between;
}

#popup .link_mit_loeschen .uniknopf {
    flex-grow: 4;
}


/* DATEI UPLOAD STUFF */

form.chat_upload_container {
    display: none;
}



.contentcard.chats .chat_schreiben .datei_container {
    display: none;
    width: calc(100% - 50px);
    height: 125px;
    flex-direction: row;
    background-color: #e1e1e1;
    align-items: center;
    border-radius: 8px;
    padding: 8px;
    justify-content: space-between;
}

.contentcard.chats .chat_schreiben .datei_inhalt {
    display: inline-flex;
    flex-direction: row;
    width: 100%;
    align-items: flex-end;
    gap: 10px;
}

.contentcard.chats .chat_schreiben .datei_symbol img {
    aspect-ratio: 1/1;
    height: 100px;
    object-fit: contain;
    border-radius: 8px;
    padding: 6px;
    background-color: #b8b8b8;
}

.contentcard.chats .chat_schreiben .datei_titel {
    font-weight: bold;
}




.contentcard.chats .chat_senden_knopf {
    display: inline-block;
    margin-left: 6px;
    vertical-align: middle;
    margin-bottom: 4px;
}


.contentcard.chats .chat_senden_knopf img {
    width: 28px;
    padding: 6px;
    background-color: #ffffff;
    border-radius: 8px;
    border: 1px solid #b0b0b0;
}

.contentcard.chats .chat_anhang_knopf {
    display: inline-block;
    margin-left: 6px;
    vertical-align: middle;
    margin-bottom: 4px;
}

.contentcard.chats .chat_anhang_knopf img {
    width: 28px;
    padding: 6px;
    background-color: #ffffff;
    border-radius: 8px;
    border: 1px solid #b0b0b0;
}


/* NACHRICHTEN STYLE */

.contentcard.chats .nachricht_container:first-of-type {
    margin-top: 12px;
}

.contentcard.chats .nachricht_container.eigene {
    text-align: right;
    padding-right: 18px;
}

.contentcard.chats .nachricht_container:not(.eigene) {
    text-align: left;
    padding-left: 18px;
}


.contentcard.chats .chat_nachrichten .nachricht {
    display: inline-block;
    padding: 8px;
    color: #343434;
    border-radius: 10px;
    text-align: left;
    margin-bottom: 12px;
    max-width: 60%;
    position: relative;
}


.contentcard.chats .chat_nachrichten .nachricht_container .nachricht {
    background-color: #eef0f5;
}

.contentcard.chats .chat_nachrichten .nachricht_container.eigene .nachricht {
    background-color: #eef5ee;
}

.contentcard.chats .nachricht_datum {
    text-align: right;
    font-size: 75%;
    display: inline-block;
    vertical-align: middle;
}

.contentcard.chats .nachricht_benutzer {
    font-size: 75%;
}

.contentcard.chats .nachricht_inhalt {
    padding: 8px;
}


.grosses_emoji .nachricht_inhalt {
    font-size: 32px;
}

.contentcard.chats .nachricht_container.datum {
    text-align: center;
}

.contentcard.chats .nachricht_container.datum .nachricht {
    background-color: #92b1dd;
    font-weight: bold;
    transform: scale(0.75);
}

.contentcard.chats .nachricht_container.system {
    text-align: center;
}

.contentcard.chats .nachricht_container.system .nachricht {
    background-color: #92b1dd;
    font-weight: bold;
    transform: scale(0.75);
}

.contentcard.chats .nachricht_container:hover .aktionen {
    opacity: 1;
    pointer-events: all;
    cursor: pointer;
}

.contentcard.chats .nachricht_container .aktionen {
    position: absolute;
    background-color: #ffffffe8;
    z-index: 2;
    padding: 8px;
    border-radius: 50%;
    bottom: -16px;
    right: -16px;
    opacity: 0;
    pointer-events: none;
    transition: all .3s;
}

.contentcard.chats .nachricht_container .aktionen img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.chat_nachrichten.gesperrt .nachricht_container {
    pointer-events: none;
    opacity: 0.7;
}

img.gelesen_status {
    height: 14px;
    vertical-align: middle;
    float: right;
}

img.gelesen_status.ungelesen {
    filter: grayscale(1)brightness(0);
    opacity: 0.25;
}


.nachricht_container:not(.eigene) .nachricht img.gelesen_status {
    display: none;
}



/* DATEIEN */
.contentcard.chats .nachricht_datei {
    padding: 6px;
    height: 150px;
    background-color: #dadada;
    border-radius: 8px;
    display: inline-flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-evenly;
    transition: all .2s;
    cursor: pointer;
}

.contentcard.chats .nachricht_container .nachricht_datei:has(video) {
    height: 250px;
}

.contentcard.chats .nachricht_datei video {
    height: 180px;
}

.contentcard.chats .nachricht_datei:hover {
    background-color: #cacaca;
}


.contentcard.chats .nachricht_container.eigene .nachricht_datei {
    background-color: #dce3dc;
}


.contentcard.chats .nachricht_container.eigene .nachricht_datei:hover {
    background-color: #cad6ca;
}


.contentcard.chats img.dateityp {
    height: 48px;
    border-radius: 4px;
}


.contentcard.chats .download_symbol {
    width: 100%;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid #dce3dc;
    background-color: #cbd1cb;
    margin-top: 6px;
}

.contentcard.chats .download_symbol img {
    height: 24px;
}

.contentcard.chats .download_symbol:hover {
    background-color: #b9bfb9;
    cursor: pointer;
}

.contentcard.chats .nachricht_datei:has(video) {
    flex-direction: column;
}


.contentcard.chats .nachricht_datei video {
    max-height: 150px;
    aspect-ratio: 4/3;
    max-width: 300px;
    object-fit: contain;
    padding: 4px;
    margin-top: 4px;
    border-radius: 4px;
    transition: all .3s;
}



/* NAchricht antworten */


.contentcard.chats .nachricht_container .nachricht .nachricht_antwort {
    padding: 6px;
    background-color: #d4d8e4;
    margin-bottom: 4px;
    border-radius: 0px 6px 6px 0px;
    border-left: 3px solid;
    cursor: pointer;
}

.contentcard.chats .nachricht_container .nachricht .nachricht_antwort.eigene {
    background-color: #e7f1e7;
}

.contentcard.chats .chat_nachrichten .nachricht_container.eigene img.symbol {
    background-color: #cddecd;
}

.contentcard.chats .chat_nachrichten .nachricht_container img.symbol {
    background-color: #d2d6e1;
}


.contentcard.chats .nachricht_container .nachricht img.symbol {
    max-height: calc(100% - 16px);
    aspect-ratio: 4/3;
    max-width: 300px;
    object-fit: contain;
    padding: 4px;
    margin-top: 4px;
    border-radius: 4px;
    transition: all .3s;
}


.contentcard.chats .antwort_container .gelesen_status {
    display: none;
}

.nachricht_container .nachricht img.symbol:hover {
    background-color: rgb(211, 204, 204);
    cursor: pointer;
}

.contentcard.chats .nachricht_container .nachricht .nachricht_antwort img.symbol {
    max-height: calc(100% - 16px);
    aspect-ratio: 4/3;
    max-width: 300px;
    object-fit: contain;
    padding: 4px;
    margin-top: 4px;
    border-radius: 4px;
    transition: all .3s;
}

.contentcard.chats .antwort_container {
    position: relative;
    margin-bottom: 4px;
    padding: 8px;
    background-color: #ededed;
    width: 80%;
    display: inline-block;
    border-radius: 8px;
    opacity: 0;
    max-height: 0px;
    pointer-events: none;
    transition: opacity .3s;
}

.contentcard.chats .antwort_container img.symbol {
    max-height: 100px;
    aspect-ratio: 4/3;
    max-width: 220px;
    object-fit: contain;
    padding: 4px;
    margin-top: 4px;
    border-radius: 4px;
}

.contentcard.chats .antwort_container.sichtbar {
    opacity: 1;
    max-height: 200px;
    width: calc(100% - 50px);
    display: inline-flex;
    margin: 12px 0px;
    pointer-events: all;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
}
.contentcard.chats .antwort_container .antwort_inhalt {
    vertical-align: middle;
    display: inline-block;
    width: calc(90% - 12px);
    padding: 6px;
    border-radius: 10px;
    text-align: left;
    background-color: #e7eaf1;
}

.contentcard.chats .antwort_container .antwort_inhalt .nachricht_inhalt {
    max-height: 150px;
    overflow-y: scroll;
}


.contentcard.chats .antwort_container .antwort_inhalt.eigene {
    background-color: #e7f1e7;
}


.contentcard.chats .antwort_container .antwort_inhalt .nachricht_antwort {
    display: none;
}

.contentcard.chats .antwort_container .antwort_inhalt .aktionen {
    display: none;
}

.contentcard.chats .antwort_knopf {
    display: inline-block;
    padding: 4px;
    vertical-align: middle;
    cursor: pointer;
    border-radius: 50%;
    background-color: #edc1c1;
}


.contentcard.chats .antwort_knopf:hover {
    background-color: #dda4a4;
}

.contentcard.chats .antwort_knopf img {
    width: 24px;
}

.contentcard.chats .chat_titelzeile img.zurueckknopf {
    width: 24px;
    margin-right: 16px;
    padding-right: 16px;
    border-right: 2px solid;
    vertical-align: middle;
    display: none;
}

/*  NEUE NACHRICHTEN CONTAINER  */

.contentcard.chats div#neue_nachricht_container {
    display: none;
    opacity: 0;
    width: calc(100% - 16px);
    bottom: 0px;
    left: 8px;
    position: absolute;
    background-color: #bebebe8f;
    backdrop-filter: blur(4px);
    border-radius: 10px;
    padding: 14px 0px;
    flex-direction: column;
    align-items: center;
    transition: opacity .25s, bottom .25s;
}

.contentcard.chats div#neue_nachricht_container:hover {
    background-color: #d4d4d48f;
    cursor: pointer;
}

.contentcard.chats div#neue_nachricht_container img.gelesen_status.ungelesen {
    display: none;
}

.contentcard.chats div#neue_nachricht_container .aktionen {
    display: none;
}

.contentcard.chats div#neue_nachricht_container .nachricht {
    background-color: #fff;
    padding: 8px;
    border-radius: 8px;
}

.contentcard.chats .grosses_emoji .nachricht_antwort .nachricht_inhalt {
    font-size: unset;
}


@media screen and (max-width: 1200px) {

    .contentcard.chats .content .anzeige {
        width: calc(90% - 20px);
        display: none;
    }

    .contentcard.chats .nachricht_container .nachricht img.symbol {
        max-width: calc(100% - 8px);
    }

    .contentcard.chats .content .liste {
        width: calc(100% - 16px);
        display: none;
    }
    
    .contentcard.chats .chat_titelzeile img.zurueckknopf {
        display: inline-block;
    }
    
    .contentcard.chats .content .anzeige.angezeigt {
        display: block;
    }
    
    .contentcard.chats .content .liste.angezeigt {
        display: block;
    }
}


