body {
    height: 100vh;
    margin: 0;
    position: relative;
}

#fullscreen-icon {
    width: 20px;
    height: 20px;
    cursor: pointer;
    margin-left: 0px;
}

.chat-container.fullscreen {
    width: 95%;
    height: 95%;
    top: 30px;
    right: 2%;
    
}


.chat-icon {
    position: fixed;
    bottom: 5px; /* Abstand vom unteren Rand */
    right: 5px; /* Abstand vom rechten Rand */
    width: 110px;
    height: 110px;
    cursor: pointer;
    z-index: 10000; /* Erhöhter z-index */
}
.chat-icon img {
    width: 100%;
    height: auto; /* Beibehaltung des Seitenverhältnisses */
    object-fit: cover; /* Stellt sicher, dass das Bild den gesamten Raum füllt */
    border-radius: 50%; /* Macht das Bild zu einem Kreis */
    border: 3px solid blue; /* Fügt einen blauen Rand hinzu */
}

.chat-container {
    font-family: Arial, sans-serif;
    background-color: #004085; /* Dunkleres Blau */
    color: white;
    width: 35%;
    height: 80%;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999; /* Erhöhter z-index */
    display: none;
}
.chat-header {
    background-color: #003366;
    padding: 10px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #004085;
    position: relative;
}

.chat-header h1 {
    margin: 0;
    font-size: 20px;
    flex-grow: 1;
    text-align: center;
    z-index: 1;
}

.chat-header-icon-container {
    position: absolute;
    top: -25px; /* Hält die untere Seite bündig */
    left: 10px; /* Abstand vom linken Rand */
    z-index: 2;
}

.chat-header-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.header-icon {
    width: 20px;
    height: 20px;
    cursor: pointer;
    z-index: 1;
}

.header-icon img {
    width: 100%;
    height: 100%;
}

.chat-window {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.chat-container pre code {
}

.chat-container code {
}

.message {
    margin: 10px 0;
    padding: 10px 15px;
    border-radius: 20px;
    max-width: 60%;
    word-wrap: break-word;
    max-width: 100%; /* Stellt sicher, dass es nicht breiter wird */
}

.received {
    background-color: #0056b3;
    align-self: flex-start;
}

.sent {
    background-color: #0d6efd;
    align-self: flex-end;
}

.message_loading {
    align-self: flex-start; /* Linksbündig ausrichten */
    margin-left: 10px;
}

.input-container {
    display: flex;
    padding: 10px;
    background-color: #003366;
    border-top: 1px solid #004085;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

input[type="text"] {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 20px;
    margin-right: 10px;
    font-size: 16px;
    box-sizing: border-box; /* Neu hinzugefügt */
}

.chat-window a {
    color: #aab1e2;
}

.connection-lost {
    color: red;
    font-size: 16px;
    text-align: center;
    width: 100%;
}

button {
    background-color: #0d6efd;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 16px;
    box-sizing: border-box; /* Neu hinzugefügt */
}

button:hover {
    background-color: #0a58ca;
}

/* Media Query für kleine Bildschirme */
@media (max-width: 768px) {
    .chat-container {
        width: 90%;
        margin-left: 5%;
    }
}

.main-inner {
    position: relative;
}
