body {
    margin: 0;
    background-color: var(--bottom-bg-color-body);
    color: var(--bottom-text-color-body);
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
    overflow-x: hidden; /* Verhindert horizontalen Overflow */
}

.bottomSize14 {
    font-size: 16px;
}

.bottomSize16 {
    font-size: 16px;
}

.bottomInputDm {
    width: 100px;
    font-size: 14px;
}

.bottomInputMsg {
    width: 100%;
    max-width: 750px;
    font-size: 14px;
    box-sizing: border-box;
}

.bottomInputSubmit {
    font-size: 20px;
    padding: 8px 15px;
    border: none;
    background-color: var(--bottom-bg-color-input);
    color: var(--bottom-text-color-input);
    cursor: pointer;
    border-radius: 5px;
}

.bottomDmMsgLine {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    width: 100%; /* Verhindert Overflow */
    box-sizing: border-box;
}

.bottomSubmitLine {
    display: flex;
    justify-content: center; /* Button bleibt mittig */
    align-items: center;
    gap: 20px;
    margin-bottom: 10px; /* Abstand nach unten */
    width: 100%; /* Verhindert Overflow */
}

/* Standard: StatusContainer bleibt neben dem Button */
.bottomStatusContainer {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
    position: absolute;
    left: 10px;
    bottom: 20px; /* Höhe des Buttons */
    max-width: calc(100% - 20px);
    white-space: nowrap;
    overflow: hidden;
    box-sizing: border-box;
}

/* Standard: StatusContainer bleibt neben dem Button */
.bottomCounterContainer {
    position: absolute;
    bottom: 75px; /* Höhe über dem Submit-Button */
    left: 50%;
    transform: translateX(-50%);
    font-size: 16px;
    white-space: nowrap;
    overflow: hidden;
    box-sizing: border-box;
    z-index: 10; /* optional, damit es überlappt falls nötig */
}

.bottomStatus {
    font-weight: bold;
}

/* Fehlernachricht */
.bottomErrorMsg {
    color: var(--bottom-text-color-error);
    background: var(--bottom-bg-color-error);
    padding: 5px 10px;
    border-radius: 5px;
    display: inline-block;
    margin-bottom: 10px;
}

#entitySelect {
    /*margin: -10px;*/
    font-family: monospace;
}


.bottomImgIcons {
    cursor: pointer;
    width: 35px;
    box-sizing: border-box; /* Wichtig */
}

.bottomIconContainer {
    display: flex;
    /*margin-top: 5px;*/
    gap: 10px;
}

.bottomImgIcons.active {
    border: 2px solid var(--bottom-img-icon-active);
    border-radius: 5px;
    background-color: var(--bottom-bg-color-icon-active);
    /*padding: 2px;*/
}

.statusImageBottom {
    vertical-align: -3px;
    margin-left: 5px; /* Abstand zwischen Text und Bild */
}


    @media (max-width: 1180px) {
    .bottomStatusContainer {
        font-size: 14px;
    }
}

@media (max-width: 1080px) {
    .bottomStatusContainer {
        font-size: 12px;
    }
}

/* Media Query für Smartphones */
@media (max-width: 970px) {
    .bottomDmMsgLine {
        display: flex;
        width: 100%;
        justify-content: flex-start; /* Span und Input links ausrichten */
        gap: 0;
        /*margin-bottom: 0;*/
    }

    .bottomDmMsgLine span {
        margin-left: 10px; /* Kleiner Abstand links vor "DM:" */
        margin-right: 0;  /* Abstand zwischen Span und Input entfernen */
    }

    .bottomInputDm {
        width: 50px; /* Klein genug für 5 Zeichen */
        max-width: 100%; /* Sicherstellen, dass es den verfügbaren Platz nutzt */
        flex-shrink: 0; /* Verhindert Verkleinerung */
        text-align: center;
        font-size: xx-small;
    }

    .bottomInputMsg {
        flex-grow: 1; /* Nutzt den restlichen Platz */
        width: auto;
        margin-right: 10px;
    }

    .bottomInputSubmit {
        font-size: 16px; /* Kleinere Schriftgröße */
        padding: 6px 12px; /* Weniger Padding für kleinere Größe */
    }

    .bottomSubmitLine {
        /*flex-direction: column;*/
        align-items: flex-end; /* Button rechts angelehnt */
        /*margin-right: 10px;*/
        /*padding-right: 10px;*/
        width: auto;
        max-width: 100%; /* Verhindert Overflow */
        margin-left: 90px;
    }

    .bottomStatusContainer {
        position: absolute; /* Entfernt den Container aus dem Layoutfluss */
        flex-direction: column;
        align-items: flex-start;
        gap: 1px; /* Weniger Abstand zwischen den zeilen für mobile Ansicht */
        bottom: 15px;
        white-space: nowrap;
        font-size: smaller;
        overflow: hidden;
        box-sizing: border-box;
    }

    .bottomIconContainer {
        display: flex;
        margin-left: -10px;
        padding-bottom: 2px;
        gap: 10px;
    }

    .bottomImgIcons {
        width: 25px;
    }
}

@media (max-width: 768px) {
    .bottomCounterContainer {
        bottom: 88px;
        left: 62%;
        font-size: 14px;
    }

    .bottomInputMsg {
        max-width: 180px;
    }

    .bottomSize16 {
        font-size: 14px;
    }
}

@media (max-width: 468px) {
    .bottomInputMsg {
        max-width: 150px;
    }
}
