@charset "utf-8";

.memo-info {
    position: fixed;
    bottom: 1rem;
    right: 3rem;
    z-index: 999;
    transform: translateX(500px);
    opacity: 0;
}

.memo-info-container {
    width: 150px;
    transition: transform 0.3s ease;
}

.memo-info-container:hover {
    transform: scale(1.1);
}

.memo-info-container img{
    width: 150px;
}

@media (max-width: 575.98px) {
    .memo-info-container,
    .memo-info-container img{
        width: 100px;
    }
}

.memo-info.drive-in {
    animation: driveIn 1s ease-out forwards;
}

@keyframes driveIn {
    0% {
        transform: translate(300px, -300px);
        opacity: 0;
    }
    60% {
        transform: translate(7px, -7px);
        opacity: 1;
    }
    80% {
        transform: translate(-4px, 4px);
    }
    100% {
        transform: translate(0, 0);
        opacity: 1;
    }
}



.speech-bubble {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 0.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    max-width: 200px;
    width: 200px;
    text-align: center;
    font-size: 0.9rem;
    color: #333;
    opacity: 0;
    animation: fadeInSpeech 1s ease-out 1s forwards;
    border: 2px solid #666;
    font-size: 0.75rem;
}


.speech-bubble::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #666;
    z-index: 0;
}

.speech-bubble::before {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-1px);
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 7px solid white;
    z-index: 1;
}



@keyframes fadeInSpeech {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.close-bubble {
    position: absolute;
    top: 4px;
    right: 6px;
    background: none;
    border: none;
    font-size: 1rem;
    color: #666;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.close-bubble:hover {
    color: #000;
}

.bubble-buttons {
    display: flex;
    gap: 0.5rem;
    margin: 0.5rem 0;
    justify-content: center;
}

.bubble-btn {
    padding: 0.2rem 0.4rem;
    border: none;
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
    text-decoration: none;
    color: white;
}

.bubble-btn.yes {
    background-color: #ff600f;
}

.bubble-btn.no {
    background-color: #000;
}

.dont-show-again {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    text-align: center;
}

.dont-show-again input[type="checkbox"] {
    transform: scale(0.9);
    margin-right: 0.25rem;
    vertical-align: middle;
}

.memo-chat-modal .input-group .btn{
    padding: inherit;
}

button#memoChatReset {
    background: none;
    border: none;
    color: #ff600f;
    font-size: 19px;
    cursor: pointer;
}

/* ############# */

/* Optional: im Chat normale Bilder */
.memo-chat-message img {
    max-width: 100%;
    height: auto;
    cursor: zoom-in;
}

/* Lightbox Overlay */
.memo-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.75);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

.memo-lightbox.is-open {
    opacity: 1;
    pointer-events: auto;
}

.memo-lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 12px 50px rgba(0, 0, 0, 0.45);
}

/* Close Button */
.memo-lightbox__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: none;
    background: #ff600f;
    padding-bottom: 6px;
    color: #fff;
    font-size: 28px;
    line-height: 44px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.memo-lightbox__close:active {
    transform: scale(0.96);
}

/* Scroll lock */
body.memo-lightbox-open {
    overflow: hidden;
}

/* ######### */

/* Standard: Ton an → icon-on sichtbar */
.sound-toggle .icon-off {
    display: none;
    color: #000;
    opacity: 0.5;
    cursor: pointer;
}
.sound-toggle .icon-on {
    display: inline-block;
    color: #ff600f;
    cursor: pointer;
}

/* Checkbox verstecken */
.sound-toggle input[type="checkbox"] {
    display: none;
}

.sound-toggle {
    cursor: pointer;
    font-size: 24px;
    display: inline-flex;
    align-items: center;
    width: 3rem;
}

/* Wenn checkbox aktiv (checked) → Ton aus */
.sound-toggle input[type="checkbox"]:checked ~ .icon-off {
    display: inline-block;
}
.sound-toggle input[type="checkbox"]:checked ~ .icon-on {
    display: none;
}

#memoChatReset {
    background: none;
    border: none;
    color: #ff600f;
    font-size: 19px;
    transition: color 0.2s ease;
}

#memoChatReset i {
    display: inline-block;
    transition: transform 0.2s ease;
}

/* Beim Hover Vor- und Zurück-Rotation */
#memoChatReset:hover i {
    animation: rotateWiggle 0.4s ease-in-out;
}

/* Keyframes: kurz nach rechts, dann nach links, dann zurück */
@keyframes rotateWiggle {
    0%   { transform: rotate(0deg); }
    25%  { transform: rotate(90deg); }
    75%  { transform: rotate(-90deg); }
    100% { transform: rotate(0deg); }
}

/* CHAT */

.memo-chat-modal {
    border: 2px solid #666;
    position: fixed;
    right: 10px;
    border-radius: 0.5rem;
    bottom: 155px;
    width: 360px;
    max-width: 94%;
    height:  360px;
    background: rgba(0, 0, 0, 0.4);
    z-index: 9999;
}
.memo-chat-head {
    padding: 0.2rem 0.5rem;
    color: #ff600f;
    border-radius: 4px;
}

.memo-chat-head h2 {
    font-size: 22px;
    margin-bottom: 0;
}

.memo-chat-content {
    background: #fff;
    border-radius: 0.5rem;
    padding:0.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 12px rgba(0,0,0,0.2);
}
.memo-chat-close {
    align-self: flex-end;
    cursor: pointer;
    font-size: 20px;
    color:#666;
}
.memo-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
    border: none;
    font-size: 14px;
}
.memo-chat-message {
    margin-bottom: 8px;
}
.memo-chat-message.user {
    text-align: right;
    color: #ff600f;
    font-weight: 600;
}
.memo-chat-message.assistant {
    text-align: left;

}
.memo-chat-input-row {
    display: flex;
    padding: 0.5rem;
    background: #fff;
    -webkit-border-bottom-right-radius: 4px;
    -webkit-border-bottom-left-radius: 4px;
    -moz-border-radius-bottomright: 4px;
    -moz-border-radius-bottomleft: 4px;
    border-bottom-right-radius: 4px;
    border-bottom-left-radius: 4px;
}
.memo-chat-input-row input {
    flex: 1;
}

.memo-chat-messages {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 15px;
}

.memo-chat-message {
    max-width: 75%;
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.4;
    position: relative;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.memo-chat-message.assistant {
    align-self: flex-start;
    background: rgba(120, 120, 120, 0.15);
    color: #222;
}

.memo-chat-bugreport-cta {
    display: grid;
    gap: 0.6rem;
    margin-top: 0.75rem;
    padding: 0.75rem;
    border: 1px solid rgba(255, 96, 15, 0.28);
    border-radius: 0.6rem;
    background: rgba(255, 96, 15, 0.08);
}

.memo-chat-bugreport-text {
    color: #4b5563;
    font-size: 0.9rem;
}

.memo-chat-bugreport-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 34px;
    padding: 0.45rem 0.75rem;
    border-radius: 0.45rem;
    background: #ff600f;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.memo-chat-bugreport-link:hover,
.memo-chat-bugreport-link:focus {
    background: #e65300;
    color: #fff;
    text-decoration: none;
}

.memo-chat-message.assistant::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 16px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid rgba(120, 120, 120, 0.15);
}

.memo-chat-message.user {
    align-self: flex-end;
    background: rgba(255, 96, 15, 0.15);
    color: #ff600f;
}

.memo-chat-message.user::after {
    content: "";
    position: absolute;
    bottom: -8px;
    right: 16px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid rgba(255, 96, 15, 0.15);
}

.memo-chat-modal::before {
    content: "";
    position: absolute;
    top: 100%;
    left: 75%;
    transform: translateX(-50%) translateY(-1px);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 15px solid white;
    z-index: 1;
}

.memo-chat-modal::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 75%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 17px solid transparent;
    border-right: 17px solid transparent;
    border-top: 17px solid #666;
    z-index: 0;
}

/* Leichtes „Atmen“ im Idle-Zustand (optional) */
#memoImage.brummi-idle {
    animation: brummiIdle 4s ease-in-out infinite;
}

@keyframes brummiIdle {
    0%   { transform: translateY(0); }
    50%  { transform: translateY(-3px); }
    100% { transform: translateY(0); }
}

/* Deutlichere Animation beim Sprechen */
#memoImage.brummi-talking {
    animation: brummiTalking 0.35s ease-in-out infinite;
    filter: drop-shadow(0 0 6px rgba(255, 96, 15, 0.6));
}

@keyframes brummiTalking {
    0%   { transform: translateY(0) scale(1); }
    50%  { transform: translateY(-5px) scale(1.05); }
    100% { transform: translateY(0) scale(1); }
}

/* BRUMMI SNEAK */

.memo-info.drive-out {
    animation: driveOutLeftDown 0.7s ease-in forwards;
}

@keyframes driveOutLeftDown {
    0% {
        transform: translate(0, 0);
        opacity: 1;
    }
    100% {
        transform: translate(-250px, 250px);
        opacity: 0.5;
    }
}

.memo-sneak {
    position: fixed;
    right: 0;
    bottom: 0;
    z-index: 998;
    cursor: pointer;
    display: none;
    animation: sneakFadeIn 0.5s ease;
}

.memo-sneak img {
    width: 90px;
    height: auto;
    display: block;
    transform-origin: bottom right;
    transition: transform 0.2s ease;
}

.memo-sneak img {
    width: 90px;
    height: auto;
    display: block;
    transform-origin: bottom right;
    transition: transform 0.2s ease;
}

/*.memo-sneak:hover img {
    transform: scale(1.2);
}*/

@media (max-width: 575.98px) {
    .memo-sneak img {
        width: 70px;
    }
}

@keyframes sneakFadeIn {
    from {
        opacity: 0.5;
        transform: translate(20px, 20px);
    }
    to {
        opacity: 1;
        transform: translate(0, 0);
    }
}

/* ######## ANPASSUNGEN MIT AUGEN ########### */

.memo-sneak {
    position: fixed;
    right: 0;
    bottom: 0;
    z-index: 998;
    cursor: pointer;
    display: none;
    animation: sneakFadeIn 0.3s ease forwards;
}

.memo-sneak-face {
    position: relative;
}

.memo-sneak img {
    width: 90px;
    height: auto;
    display: block;
    transform-origin: bottom right;
    transition: transform 0.2s ease;
}

.sneak-eye {
    position: absolute;
    width: 18.7px;
    height: 20.5px;
    background: #fff;
    border-radius: 50%;
    overflow: hidden;
    pointer-events: none;
}

.sneak-eye.eye-left {
    width: 11px;
    height: 16px;
}

.eye-left {
    left: 11px;
    top: 46px;
}

.eye-right {
    left: 62px;
    top: 30px;
}

.pupil {
    position: absolute;
    left: 3px;
    top: 3px;
    width: 12px;
    height: 12px;
    background: #000;
    border-radius: 50%;
    transform: translate(0, 0);
}

.sneak-eye.eye-left .pupil {
    width: 9px;
    height: 10px;
    left: 1px;
    top: 2px;
}

.pupil::after {
    content: "";
    position: absolute;
    top: 1.3px;
    left: 1.3px;
    width: 3px;
    height: 3px;
    background: #fff;
    border-radius: 50%;
    opacity: 0.95;
}

.eye-right .pupil::after{
    width: 4px;
    height: 4px;
    top: 1.5px;
    left: 1.5px;
}
