.collapse-transition {
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.collapse-transition.open {
    max-height: 300px; /* ausreichend für ein paar Zeilen Text */
    opacity: 1;
}
/* Optionaler Smooth-Transition Effekt */
#changeNoteContainer {
    transition: height 0.3s ease, opacity 0.3s ease;
}
:root {
    --bs-primary: #F57C00;
    --bs-secondary: #212121;
    --bs-body-bg: #F5F5F5;
    --bs-body-color: #212121;
    --bs-link-color: #F57C00;
    --bs-link-hover-color: #E65100;
    --bs-border-radius: 0.25rem;
}
.chat-body {
    height: 320px;
    overflow-y: auto;
    background-color: #fff;
}

.chat-block {
    display: flex;
    align-items: flex-end;
    margin-bottom: 0.75rem;
}

.justify-content-end {
    justify-content: flex-end !important;
}

.justify-content-start {
    justify-content: flex-start !important;
}

.chat-bubble {
    background-color: #f1f1f1;
    border-radius: 1rem;
    max-width: 75%;
    word-wrap: break-word;
    margin-top: 2px;
    padding: 0.35rem 0.75rem 0.45rem 0.75rem;
    box-shadow: 0 1px 4px #0001;
    position: relative;
}

.chat-bubble-own {
    background-color: #d1e7dd;
}

.chat-bubble audio {
    width: 100%;
    max-width: 250px;
    min-width: 120px;
    outline: none;
    display: block;
}

.avatar-container {
    width: 38px;
    min-width: 38px;
    text-align: center;
    margin-right: 7px;
}

.avatar-img, .avatar-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    background: #ececec;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.95rem;
}

.chat-meta {
    font-size: 10px;
    color: #8b8b8b;
    margin-bottom: 0px;
}

.chat-date-banner {
    text-align: center;
    font-size: 12px;
    color: #6c757d;
    margin: 1rem 0 0.5rem 0;
}

.emoji-picker {
    position: absolute;
    bottom: 60px;
    left: 10px;
    z-index: 1000;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 0.5rem;
    padding: 0.5rem;
    display: none;
    max-width: 300px;
    max-height: 200px;
    overflow-y: auto;
}

.emoji-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.emoji-item {
    cursor: pointer;
    font-size: 1.25rem;
}

.recording {
    color: red !important;
}

.osm-map-embed {
    width: 220px;
    height: 120px;
    border-radius: 0.5rem;
    border: 1px solid #ddd;
    margin-top: 0.5rem;
    display: block;
}

#chatImageModal .modal-dialog {
    max-width: 98vw;
    max-height: 90vh;
    margin: auto;
    display: flex;
    align-items: center;
}

#chatImageModal .modal-content {
    background: transparent;
    border: none;
    box-shadow: none;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#chatImageModal .modal-body {
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

#chatImageModal .btn-close {
    background-color: #fff9;
    border-radius: 50%;
}

#chatImageModalDownload {
    box-shadow: 0 2px 6px #0003;
}

.list-group-tooltip-dark {
    background: #222 !important;
    color: #fff !important;
    border-radius: 0.5rem;
}

    .list-group-tooltip-dark .list-group-item {
        background: transparent !important;
        color: #fff !important;
        border: none !important;
        padding: 0.35rem 0.85rem;
    }

    .list-group-tooltip-dark .avatar-placeholder {
        background: #444 !important;
        color: #fff !important;
    }

    .list-group-tooltip-dark .badge {
        background: #343a40 !important;
        color: #fff !important;
        margin-left: 0.5rem;
    }


[data-bs-theme="dark"] .chatbox-v3 {
    background-color: #21262d !important; /* dunkle Karte */
    color: #eaeaea;
    border-color: #222 !important;
}

    [data-bs-theme="dark"] .chatbox-v3 .card-header,
    [data-bs-theme="dark"] .chatbox-v3 .card-footer {
        background-color: #23272f !important;
        color: #eaeaea;
        border-color: #222 !important;
    }

[data-bs-theme="dark"] .chat-body {
    background-color: #161b22 !important;
    color: #eaeaea;
}

[data-bs-theme="dark"] .chat-bubble {
    background-color: #283142 !important;
    color: #eaeaea;
}

[data-bs-theme="dark"] .chat-bubble-own {
    background-color: #234e2a !important; /* dezentes grün, wie WhatsApp */
    color: #eaeaea;
}

[data-bs-theme="dark"] .chat-meta {
    color: #7d8590 !important;
}

[data-bs-theme="dark"] .chat-date-banner {
    color: #7d8590 !important;
}

[data-bs-theme="dark"] .emoji-picker {
    background: #23272f !important;
    border-color: #333 !important;
    color: #eaeaea;
}

[data-bs-theme="dark"] .avatar-img,
[data-bs-theme="dark"] .avatar-placeholder {
    background: #303846 !important;
    color: #fff !important;
}

[data-bs-theme="dark"] .btn-link,
[data-bs-theme="dark"] .btn-outline-primary,
[data-bs-theme="dark"] .form-control {
    color: #eaeaea;
    background-color: #21262d;
    border-color: #333;
}

[data-bs-theme="dark"] .form-control::placeholder {
    color: #999 !important;
}

    [data-bs-theme="dark"] .form-control:focus {
        background-color: #23272f;
        color: #fff;
    }

[data-bs-theme="dark"] .btn-outline-primary {
    border-color: #4184e6;
    color: #8ab4f8;
}

[data-bs-theme="dark"] .modal-content {
    background: #21262d;
    color: #fff;
}

[data-bs-theme="dark"] .list-group-tooltip-dark {
    background: #23272f !important;
    color: #fff !important;
}

[data-bs-theme="dark"] .emoji-grid .emoji-item {
    background: none;
    color: #fff;
}

.footer-theme {
    transition: background-color 0.3s, color 0.3s;
}

/* Light-Mode */
[data-bs-theme="light"] .footer-theme {
    background-color: #f8f9fa !important; /* oder dein Wunschwert */
    color: #212529 !important;
}
/* Dark-Mode */
[data-bs-theme="dark"] .footer-theme {
    background-color: #181b1f !important; /* wie bg-dark, ggf. anpassen */
    color: #f8f9fa !important;
}
.WrappedColumnClass {
    white-space: normal;
    word-wrap: break-word;
}
.breadcrumb-custom-divider {
    --bs-breadcrumb-divider: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Cpath d='M2.5 0L1 1.5 3.5 4 1 6.5 2.5 8l4-4-4-4z' fill='%236c757d'/%3E%3C/svg%3E");
}
