.lncu-speechbubble-block {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    width: 1100px;
    max-width: 100%;
    margin: 0 auto;
    --speechbubble-avatar-width: 130px;
    --speechbubble-tip-width: 15px;
    --speechbubble-tip-height: 30px;
    --speechbubble-border-width: 3px;
}

.lncu-speechbubble-avatar {
    display: flex;
    flex-shrink: 0;
    position: relative;
    justify-content: center;
    align-items: center;
    width: var(--speechbubble-avatar-width);
    height: 140px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    order: 0;
}

.lncu-avatar-right {
    justify-content: flex-end;
}

.lncu-avatar-right .lncu-speechbubble-avatar {
    order: 1;
}

.lncu-speechbubble-schutzbrille {
    position: absolute;
    width: 65px;
    top: 47px;
    left: 32px;
}

.lncu-speechbubble-content {
    display: flex;
    position: relative;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 1rem;
    min-width: var(--speechbubble-avatar-width);
    max-width: 100%;
    width: fit-content;
    min-height: 45px;
    padding: 1rem;
    border-radius: 1rem;
    border: 3px solid var(--bricks-color-white);
    z-index: 2;
    background-color: var(--bricks-color-blue-600);
}

/* Sprechblasen-Hintergrund immer weiß wenn Standalone 
#brx-content > .lncu-speechbubble-block > .lncu-speechbubble-content, .lncu-content-section-container > .lncu-speechbubble-block > .lncu-speechbubble-content,  .lncu-content-section-container > .brxe-block > .lncu-speechbubble-block > .lncu-speechbubble-content {
    background-color: var(--bricks-color-white);
}*/

#brx-content > .lncu-speechbubble-block {
    padding: 1rem 0;
}

.lncu-speechbubble-content::after{
    content: '';
    position: absolute;
    top: calc(50% - var(--speechbubble-tip-height) / 2);
    width: var(--speechbubble-tip-width);
    height: var(--speechbubble-tip-height);
    background-color: inherit;
    left: calc(-1 * var(--speechbubble-tip-width) + 1px);
    clip-path: polygon(0% 50%, 100% 100%, 100% 0%);
}

.lncu-avatar-right .lncu-speechbubble-content::after{
    left: unset;
    right: calc(-1 * var(--speechbubble-tip-width) + 1px);
    clip-path: polygon(100% 50%, 0% 0%, 0% 100%);
}

.lncu-speechbubble-content::before{
    content: '';
    position: absolute;
    top: calc((50% - var(--speechbubble-tip-height) / 2) - var(--speechbubble-border-width));
    width: calc(var(--speechbubble-tip-width) + var(--speechbubble-border-width));
    height: calc(var(--speechbubble-tip-height) + var(--speechbubble-border-width)*2);
    background-color: var(--bricks-color-white);
    left: calc(-1 * var(--speechbubble-tip-width) - var(--speechbubble-border-width));
    clip-path: polygon(0% 50%, 100% 100%, 100% 0%);
}

.lncu-avatar-right .lncu-speechbubble-content::before {
    left: unset;
    right: calc(-1 * var(--speechbubble-tip-width) - var(--speechbubble-border-width));
    clip-path: polygon(100% 50%, 0% 0%, 0% 100%);
}

.lncu-speechbubble-block.animate .lncu-speechbubble-avatar {
    opacity: 0;
    transform: translateX(-2rem);
}

.lncu-speechbubble-block.lncu-avatar-right.animate .lncu-speechbubble-avatar {
    opacity: 0;
    transform: translateX(2rem);
}

.lncu-speechbubble-block.animate .lncu-speechbubble-content {
    opacity: 0;
    transform: scale(0.95);
}

.lncu-speechbubble-block.animation .lncu-speechbubble-avatar {
    animation: avatarSlideIn 0.7s ease-out forwards;
    animation-delay: var(--animation-delay);
}


.lncu-speechbubble-block.animation .lncu-speechbubble-content {
    animation: speechbubblePopIn 0.7s ease-out forwards;
    animation-delay: var(--animation-delay);
}

@keyframes avatarSlideIn {
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes speechbubblePopIn {
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/*Mindsets*/
.lncu-speechbubble-mindset {
    --glow-rgb: 255, 204, 0;
    --glow-alpha: 0.55;
    --glow-scale: 1.15;
    --glow-speed: 3s;
    --glow-shift: 1rem;
    --glow-shift-speed: 5s;
    --icon-size: 2rem;
    --icon-stroke-width: 0;

    position: absolute;
    display: block;
    top: 0.5rem;
    left: 2rem;
    overflow: visible;
    will-change: transform;
    transform-origin: center;
    animation: mindset-shift var(--glow-shift-speed) ease-in-out infinite;
}

.lncu-speechbubble-mindset > svg {
    display: block;
    width: var(--icon-size);
    filter: var(--icon-filter);
    stroke: white;
    stroke-width: var(--icon-stroke-width);
}

@keyframes mindset-shift {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(var(--glow-shift)); }
}

.lncu-speechbubble-mindset::after {
    content: '';
    display: block;
    position: absolute;
    inset: -1.5rem;
    background: radial-gradient(closest-side, rgba(var(--glow-rgb), var(--glow-alpha)) 0%, rgba(var(--glow-rgb), 0) 100%);
    filter: blur(0.3rem);
    pointer-events: none;
    z-index: 1;
    animation: mindset-pulse var(--glow-speed) ease-in-out infinite;
}

@keyframes mindset-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: .75;
    }
    50% {
        transform: scale(var(--glow-scale));
        opacity: 1;
    }
}

.lncu-speechbubble-mindset.idea {
    --glow-rgb: 255, 204, 0;
    color: rgb(var(--glow-rgb));
}

.lncu-speechbubble-mindset.question {
    --glow-rgb: 160, 32, 240;
    --icon-size: 3rem;
    --icon-stroke-width: 12px;
    color: rgb(var(--glow-rgb));
}

.lncu-speechbubble-mindset.exclamation {
    --glow-rgb: 255, 160, 0;
    --icon-size: 3rem;
    --icon-stroke-width: 12px;
    color: rgb(var(--glow-rgb));
}

@media (max-width: 1100px) {
    #brx-content > .lncu-speechbubble-block {
        padding: 1rem;
    }
}

@media (max-width: 478px) {
    .lncu-speechbubble-block {
        flex-direction: column;
        align-items: flex-start;
    }

    .lncu-avatar-right {
        align-items: flex-end;
    }

    .lncu-speechbubble-avatar {
        order: 0 !important;
    }

    .lncu-speechbubble-content::after {
        top: calc(-1 * var(--speechbubble-tip-width) + 1px);
        width: var(--speechbubble-tip-height);
        height: var(--speechbubble-tip-width);
        clip-path: polygon(50% 0%, 0% 100%, 100% 100%) !important;
        left: calc(var(--speechbubble-avatar-width) / 2 - var(--speechbubble-tip-width));
        right: unset;
    }

    .lncu-avatar-right .lncu-speechbubble-content::after{
        right: calc(var(--speechbubble-avatar-width) / 2 - var(--speechbubble-tip-width));
        left: unset;
    }

    .lncu-speechbubble-content::before {
        top: calc(-1 * var(--speechbubble-tip-width) - var(--speechbubble-border-width));
        width: calc(var(--speechbubble-tip-height) + var(--speechbubble-border-width)*2);
        height: calc(var(--speechbubble-tip-width) + var(--speechbubble-border-width));
        clip-path: polygon(50% 0%, 0% 100%, 100% 100%) !important;
        left: calc(var(--speechbubble-avatar-width) / 2 - var(--speechbubble-tip-width) - var(--speechbubble-border-width));
        right: unset;
    }

     .lncu-avatar-right .lncu-speechbubble-content::before{
        right: calc(var(--speechbubble-avatar-width) / 2 - var(--speechbubble-tip-width) - var(--speechbubble-border-width));
        left: unset;
    }
}

@media print {

    .lncu-speechbubble-block.animate .lncu-speechbubble-avatar {
        opacity: 1;
        transform: translateX(0);
    }

    .lncu-speechbubble-block.lncu-avatar-right.animate .lncu-speechbubble-avatar {
        opacity: 1;
        transform: translateX(0);
    }

    .lncu-speechbubble-block.animate .lncu-speechbubble-content {
        opacity: 1;
        transform: scale(1);
    }

    .lncu-speechbubble-content.white {
        background-color: var(--bricks-color-blue-600) !important;
    }
}
