/* =========================================================
   PC-TECHNIK CHAT-WIDGET
   Eigene Styles – beeinflussen die restliche Webseite nicht.
   ========================================================= */

#pc-chat-button {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 54px;
    height: 54px;
    border: 0;
    border-radius: 50%;
    background: #73be1d56;
    color: #fff;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

#pc-chat-button:hover {
    opacity: 0.92;
    transform: scale(1.03);
}

#pc-chat-window {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 350px;
    height: 500px;
    max-width: calc(100vw - 40px);
    max-height: calc(100vh - 40px);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.22);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 100000;
    box-sizing: border-box;
}

#pc-chat-header {
    background: #6074e7;
    color: #fff;
    padding: 16px 18px;
    min-height: 54px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 18px;
    font-weight: 700;
}

#pc-chat-close {
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 2px 5px;
}

#pc-chat-body {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    box-sizing: border-box;
    background: #fff;
}

#pc-chat-body p {
    margin: 0 0 12px 0;
}

.pc-chat-Willkommen   {
    background: #f3f7f4;
    color: #0d0e0d;
    border: 1px solid #eeeeee;
    border-radius: 8px;
    padding: 12px;
    font-size: 14px;
    line-height: 1.5;
}

.pc-chat-user-message {
    margin-left: 28px !important;
    padding: 10px 12px;
    border-radius: 8px;
    background: #f1f1f1;
    color: #333;
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
}

.pc-chat-bot-message {
    margin-right: 10px !important;
    background: #f3f7f4;
    color: #0d0e0d;
    border: 1px solid #eeeeee;
    border-radius: 8px;
    padding: 12px;
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
}

.pc-chat-bot-message h2 {
    margin: 10px 0 8px 0;
    font-size: 17px;
}

.pc-chat-bot-message strong {
    font-weight: 700;
}

.pc-chat-bot-message ul {
    margin: 8px 0;
    padding-left: 20px;
}

.pc-chat-bot-message li {
    margin-bottom: 5px;
}

.pc-chat-bot-message code {
    background: rgba(0, 0, 0, 0.12);
    padding: 2px 5px;
    border-radius: 4px;
    font-family: Consolas, monospace;
    font-size: 13px;
}

.pc-chat-bot-message pre {
    background: #222;
    color: rgb(10, 179, 10);
    padding: 12px;
    border-radius: 6px;
    overflow-x: auto;
    margin: 10px 0;
    white-space: pre-wrap;
}

.pc-chat-bot-message pre code {
    background: transparent;
    padding: 0;
    color: #fff;
}

#pc-chat-footer {
    padding: 10px;
    border-top: 1px solid #ddd;
    display: flex;
    gap: 8px;
    box-sizing: border-box;
    background: #fff;
}

#pc-chat-input {
    flex: 1;
    min-width: 0;
    padding: 9px 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    outline: none;
    font-family: inherit;
    font-size: 14px;
    box-sizing: border-box;
}

#pc-chat-input:focus {
    border-color: #854fff;
}

#pc-chat-send {
    flex: 0 0 auto;
    background: #84a189;
    color: #fff;
    border: none;
    padding: 9px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
}

#pc-chat-send:hover {
    opacity: 0.9;
}

.pc-chat-error {
    background: #ffdddd;
    color: #990000;
    border: 1px solid #ffbbbb;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 12px;
}

@media (max-width: 480px) {
    #pc-chat-window {
        right: 10px;
        bottom: 10px;
        width: calc(100vw - 20px);
        height: min(500px, calc(100vh - 20px));
        max-width: none;
        max-height: none;
    }

    #pc-chat-button {
        right: 15px;
        bottom: 15px;
    }
}
