:root {
    --sc-primary: #1a93ee;
    --sc-dark: #0f141a;
    --sc-light: #ffffff;
    --sc-text-main: #1c1e21;
    --sc-text-sub: #1a93ee;
    --sc-border: #eef0f5;
    --sc-muted: #f2f2f5;
    --sc-soft: #fcfcfd;
    --sc-shadow: 0 25px 90px rgba(0, 0, 0, 0.2);
}

.sc-widget-root {
    position: fixed;
    right: 0;
    bottom: 0;
    z-index: 999999;
    overflow: visible;
}

.studio-connect-widget {
    font-family: 'Rubik', sans-serif !important;
    overflow: visible;
}

.studio-connect-launcher,
.sc-launcher,
#sc-launcher,
.studio-assist-launcher,
.scp-launcher {
    position: fixed;
    bottom: 18px;
    right: 18px;
    z-index: 999999;
    width: 60px;
    min-width: 60px;
    height: 60px;
    border-radius: 999px;
    border: none !important;
    outline: none !important;
    background: linear-gradient(135deg, #4cb5ff, var(--sc-primary));
    color: #ffffff;
    font-size: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    padding: 0;
    line-height: 1;
    text-align: center;
    cursor: pointer;
    overflow: hidden;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
    transform: translateZ(0);
    transform-origin: right center;
    box-shadow: 0 10px 24px rgba(10, 16, 30, 0.22);
    transition: width 280ms cubic-bezier(0.22, 0.61, 0.36, 1), padding 280ms cubic-bezier(0.22, 0.61, 0.36, 1), gap 280ms cubic-bezier(0.22, 0.61, 0.36, 1), background 200ms ease, box-shadow 220ms ease;
    will-change: width;
}

.studio-connect-launcher::before,
.studio-connect-launcher::after {
    content: none !important;
}

.studio-connect-widget:not(.is-open) .studio-connect-launcher:not(.is-state-open):not(.is-state-hint):hover,
.studio-connect-widget:not(.is-open) .studio-connect-launcher:not(.is-state-open):not(.is-state-hint):focus-visible {
    width: 210px;
    gap: 10px;
    padding-right: 16px;
    box-shadow: 0 12px 28px rgba(10, 16, 30, 0.3);
}

.studio-connect-launcher.is-pulsing {
    animation: sc-pulse 1.6s ease-out;
}

.studio-connect-launcher.is-shaking .studio-connect-launcher-icon i {
    animation: sc-shake 420ms ease-in-out;
}

.studio-connect-launcher-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    min-width: 60px;
    height: 60px;
    margin-left: 0;
    border-radius: 50%;
    overflow: hidden;
    transition: width 280ms cubic-bezier(0.22, 0.61, 0.36, 1), height 280ms cubic-bezier(0.22, 0.61, 0.36, 1), min-width 280ms cubic-bezier(0.22, 0.61, 0.36, 1), margin-left 280ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.studio-connect-launcher-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: none;
    display: block;
}

.studio-connect-launcher-icon i {
    display: none;
    align-items: center;
    justify-content: center;
    width: 1em;
    height: 1em;
    font-size: 22px;
    line-height: 1;
    transition: transform 0.2s ease;
}


.studio-connect-launcher-label,
.studio-connect-launcher-helptext {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    opacity: 0;
    max-width: 0;
    overflow: hidden;
    transform: translateX(6px);
    transition: opacity 220ms ease, transform 260ms cubic-bezier(0.22, 0.61, 0.36, 1), max-width 260ms cubic-bezier(0.22, 0.61, 0.36, 1);
    pointer-events: none;
}

.studio-connect-widget:not(.is-open) .studio-connect-launcher:not(.is-state-open):not(.is-state-hint):hover .studio-connect-launcher-label,
.studio-connect-widget:not(.is-open) .studio-connect-launcher:not(.is-state-open):not(.is-state-hint):focus-visible .studio-connect-launcher-label,
.studio-connect-widget:not(.is-open) .studio-connect-launcher:not(.is-state-open):not(.is-state-hint):hover .studio-connect-launcher-helptext,
.studio-connect-widget:not(.is-open) .studio-connect-launcher:not(.is-state-open):not(.is-state-hint):focus-visible .studio-connect-launcher-helptext {
    opacity: 1;
    max-width: 140px;
    transform: translateX(0);
}

.studio-connect-widget.is-open .studio-connect-launcher .studio-connect-launcher-label,
.studio-connect-widget.is-open .studio-connect-launcher .studio-connect-launcher-helptext,
.studio-connect-launcher.is-state-open .studio-connect-launcher-label,
.studio-connect-launcher.is-state-open .studio-connect-launcher-helptext,
.studio-connect-launcher.is-state-hint .studio-connect-launcher-label,
.studio-connect-launcher.is-state-hint .studio-connect-launcher-helptext {
    opacity: 0;
    max-width: 0;
    transform: translateX(6px);
}

.studio-connect-launcher.is-state-open .studio-connect-launcher-icon i,
.studio-connect-launcher.is-state-hint .studio-connect-launcher-icon i {
    display: inline-flex;
}

.studio-connect-launcher.is-state-open .studio-connect-launcher-avatar,
.studio-connect-launcher.is-state-hint .studio-connect-launcher-avatar {
    display: none;
}

.studio-connect-widget.is-open .studio-connect-launcher {
    background: var(--sc-dark);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.08) !important;
}

#sc-widget.is-open #sc-launcher {
    background: var(--sc-dark) !important;
}

.studio-connect-widget.is-open .studio-connect-launcher-icon i {
    transform: rotate(90deg);
}

@keyframes sc-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(26, 147, 238, 0.4);
    }
    70% {
        box-shadow: 0 0 0 14px rgba(26, 147, 238, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(26, 147, 238, 0);
    }
}

@keyframes sc-shake {
    0%,
    100% { transform: translateX(0) rotate(0deg); }
    20% { transform: translateX(-1px) rotate(-10deg); }
    40% { transform: translateX(1px) rotate(8deg); }
    60% { transform: translateX(-1px) rotate(-6deg); }
    80% { transform: translateX(1px) rotate(4deg); }
}

@keyframes sc-fade-out {
    from {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
    to {
        opacity: 0;
        transform: translate3d(0, 0, 0) scale(0.9);
    }
}

.studio-connect-panel {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 420px;
    height: 720px;
    max-height: 85vh;
    z-index: 9997;
    background: var(--sc-light);
    border-radius: 20px;
    box-shadow: var(--sc-shadow);
    border: 1px solid var(--sc-border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 220ms ease, transform 220ms ease;
}

.studio-connect-widget.is-open .studio-connect-panel {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transform: translateY(0);
}

.studio-connect-widget.is-open .studio-connect-panel.sc-is-closing {
    opacity: 0;
    transform: translateY(8px) scale(0.99);
    pointer-events: none;
}

.studio-connect-header {
    height: 80px;
    background: var(--sc-dark);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 18px;
    color: #ffffff;
    flex: 0 0 auto;
    border-radius: 20px 20px 0 0;
}

.studio-connect-header-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.studio-connect-header-text {
    flex: 1;
}

.studio-connect-header-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.studio-connect-social {
    color: #c7cdd8;
    font-size: 14px;
    transition: color 0.2s ease;
}

.studio-connect-social:hover {
    color: #ffffff;
}

.studio-connect-close {
    border: none;
    background: transparent;
    color: #ffffff;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 4px;
}

.sc-header-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    border-radius: 999px;
    padding: 0;
    color: #d3dceb;
    transition: background 0.2s ease, color 0.2s ease;
}

.sc-header-icon:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.sc-header-icon svg {
    width: 15px;
    height: 15px;
    display: block;
}

.sc-header-icon,
.sc-header-icon:focus,
.sc-header-icon:focus-visible,
.sc-header-icon:active {
    outline: none !important;
    box-shadow: none !important;
    border-color: transparent !important;
}

#studio-connect-close:focus,
#studio-connect-close:focus-visible,
#studio-connect-close:active {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

.studio-connect-header-actions {
    position: relative;
}

.sc-search-popover {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(300px, calc(100vw - 40px));
    border: 1px solid #d9e0ec;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(16, 29, 54, 0.18);
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    pointer-events: none;
    z-index: 20;
}

.sc-search-popover.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.sc-search-popover__input {
    width: 100%;
    border: 1px solid #d7deea;
    border-radius: 9px;
    padding: 7px 9px;
    font-size: 12px;
}

.sc-search-popover__hint {
    font-size: 11px;
    color: #8b9bb4;
    padding: 4px 2px 0;
    font-style: italic;
}

.sc-search-popover__results {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 208px;
    overflow-y: auto;
}

.sc-search-popover__result {
    width: 100%;
    border: 1px solid #e3e9f3;
    background: #f8fafe;
    color: #1c1e21;
    border-radius: 9px;
    padding: 7px 9px;
    font-size: 12px;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.sc-search-popover__result:hover {
    background: #edf4ff;
    border-color: #c9daf7;
}

.sc-search-popover__empty {
    font-size: 12px;
    color: #6f7785;
    padding: 4px 2px;
}

.studio-connect-title {
    font-weight: 700;
    font-size: 18px;
    color: #ffffff;
}

.studio-connect-subtitle {
    font-size: 12px;
    color: #8b9bb4;
    display: flex;
    align-items: center;
    gap: 6px;
}

.studio-connect-body {
    flex: 1 1 auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    min-height: 0;
    overflow: hidden;
}

.studio-connect-topic-header {
    display: none !important;
    min-height: 0;
    max-height: 0;
    overflow: hidden;
    padding: 0;
    margin: 0;
    border: 0;
}

.studio-connect-topic-header.is-visible,
.sc-topic-header__row,
.sc-topic-back,
.sc-topic-chip,
.sc-topic-header__recent,
.sc-topic-header__tips,
.sc-context-tip {
    display: none !important;
}

.studio-connect-chat-area {
    flex: 1 1 auto;
    padding: 20px 20px 10px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    opacity: 1;
    transform: none;
}

.studio-connect-chat-area.sc-is-resetting {
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 220ms ease, transform 220ms ease;
}

.studio-connect-chat-area::-webkit-scrollbar {
    width: 6px;
}

.studio-connect-chat-area::-webkit-scrollbar-track {
    background: transparent;
}

.studio-connect-chat-area::-webkit-scrollbar-thumb {
    background: #d2d2d7;
    border-radius: 8px;
}

.studio-connect-chat-area {
    scrollbar-color: #d2d2d7 transparent;
    scrollbar-width: thin;
}

.studio-connect-messages {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.studio-connect-message {
    display: flex;
}

.studio-connect-message.bot {
    align-items: flex-end;
    gap: 8px;
}

.studio-connect-message.user {
    justify-content: flex-end;
}

.sc-bubble-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 85%;
}

.sc-bubble-wrap--user {
    align-items: flex-end;
}

.studio-connect-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 auto;
}

.sc-avatar-wrapper,
.sc-avatar-container {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
    z-index: 1;
}

.sc-avatar-wrapper::after,
.sc-avatar-container::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #2ecc71;
    border: 2px solid #ffffff;
    right: 0;
    bottom: 2px;
    z-index: 2;
    box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.35);
}

.sc-glow-pulse::after,
.sc-pulse-green::after {
    animation: sc-glow-pulse 1.75s ease-in-out infinite;
}

@keyframes sc-glow-pulse {
    0% {
        transform: scale(1);
        opacity: 0.95;
        box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.4);
    }
    70% {
        transform: scale(1.2);
        opacity: 0.55;
        box-shadow: 0 0 0 7px rgba(46, 204, 113, 0);
    }
    100% {
        transform: scale(1);
        opacity: 0.95;
        box-shadow: 0 0 0 0 rgba(46, 204, 113, 0);
    }
}

@keyframes sc-pulse-green {
    0% {
        transform: scale(1);
        opacity: 0.95;
        box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.4);
    }
    70% {
        transform: scale(1.2);
        opacity: 0.55;
        box-shadow: 0 0 0 7px rgba(46, 204, 113, 0);
    }
    100% {
        transform: scale(1);
        opacity: 0.95;
        box-shadow: 0 0 0 0 rgba(46, 204, 113, 0);
    }
}

.studio-connect-bubble {
    max-width: 100%;
    padding: 14px 18px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.studio-connect-bubble.is-revealing {
    animation: sc-bubble-in 0.25s ease;
}

@keyframes sc-bubble-in {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.studio-connect-bubble.bot {
    background: #e3f2fd;
    color: #2f2f2f;
    border-radius: 18px 18px 18px 4px;
    align-self: flex-start;
}

.studio-connect-bubble.user {
    border: none;
    color: #2f2f2f;
    align-self: flex-end;
    background: linear-gradient(135deg, #f3f4f6, #e7e9ee);
    border-radius: 16px 16px 4px 16px;
}

.sc-msg-meta {
    font-size: 11px;
    opacity: .65;
    margin-top: 4px;
    line-height: 1.1;
    color: rgba(47, 47, 47, 0.58);
}

.sc-msg-meta--bot {
    text-align: left;
}

.sc-msg-meta--user {
    text-align: right;
}

.studio-connect-option-dock {
    flex: 0 0 auto;
    padding: 12px 20px 14px;
    border-top: 1px solid var(--sc-border);
    background: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: sticky;
    bottom: 0;
    z-index: 2;
}

.studio-connect-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 10px;
    align-items: stretch;
    justify-content: flex-start;
}

.studio-connect-options.is-disabled {
    opacity: 0.6;
    pointer-events: none;
}

.studio-connect-widget .studio-connect-option-btn,
.studio-connect-widget .studio-connect-calculator-btn,
.studio-connect-widget .studio-connect-copy,
.studio-connect-widget .sc-proactive-link,
.studio-connect-widget .sc-proactive-main {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: normal !important;
    padding-top: 0;
    padding-bottom: 1px !important; /* <--- Korrigiert von 3px auf 1px */
}

.studio-connect-widget .studio-connect-option-btn,
.studio-connect-widget .studio-connect-calculator-btn,
.studio-connect-widget .studio-connect-copy {
    height: 38px;
    min-height: 38px;
}

.studio-connect-widget .studio-connect-option-btn *,
.studio-connect-widget .studio-connect-calculator-btn *,
.studio-connect-widget .studio-connect-copy * {
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

.studio-connect-option-btn {
    border: none;
    outline: none;
    box-shadow: none;
    background: var(--sc-primary);
    color: #ffffff;
    border-radius: 50px;
    padding: 0 16px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1;
    min-height: 38px;
    height: 38px;
    vertical-align: middle;
    flex: 0 1 auto;
    white-space: nowrap;
    max-width: 100%;
}

.studio-connect-option-btn:hover {
    background: #136db5;
}

.studio-connect-back-btn {
    background: #eef3fb;
    color: #1c1e21;
}

.studio-connect-back-btn:hover {
    background: #dbe6f6;
}

.sc-back-row,
.sc-back-link,
.sc-pill-back {
    display: none !important;
}

.sc-msg-appear {
    opacity: 0;
    transform: translateY(6px);
}

.sc-msg-appear.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 180ms ease, transform 180ms ease;
}

.studio-connect-widget button:focus-visible,
.studio-connect-widget [role="button"]:focus-visible,
.studio-connect-option-btn:focus-visible,
.studio-connect-calculator-btn:focus-visible,
.studio-connect-copy:focus-visible {
    outline: 3px solid rgba(26, 147, 238, 0.45);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(26, 147, 238, 0.2);
}

.studio-connect-launcher:focus,
.studio-connect-launcher:focus-visible,
#sc-launcher:focus,
#sc-launcher:focus-visible {
    outline: none !important;
    border: none !important;
    box-shadow: 0 0 0 2px rgba(26, 147, 238, 0.35), 0 10px 24px rgba(10, 16, 30, 0.22) !important;
}

.studio-connect-calculator {
    display: none;
    border-radius: 14px;
    padding: 12px;
    gap: 10px;
    flex-direction: column;
    background: #f7f8fb;
}

.studio-connect-calculator.is-visible {
    display: flex;
}

.studio-connect-hint {
    font-size: 11px;
    color: #8b9bb4;
    font-style: italic;
}

.studio-connect-label {
    font-size: 12px;
    color: #7b7e87;
}

#studio-connect-words {
    border: 1px solid #d7deea;
    background: #ffffff;
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 14px;
    color: #1c1e21;
}

#studio-connect-words.is-invalid {
    border-color: #e04646;
    background: #fff3f3;
    box-shadow: 0 0 0 3px rgba(224, 70, 70, 0.2);
}

.studio-connect-result {
    font-size: 13px;
    color: #2f2f2f;
    min-height: 18px;
}

#studio-connect-result.is-success {
    background: #e9f7ef;
    border: 1px solid #cfe9d8;
    color: #1f5d3a;
    padding: 6px 10px;
    border-radius: 10px;
}

.studio-connect-calculator-btn {
    border: none;
    background: var(--sc-primary);
    color: #ffffff;
    border-radius: 50px;
    padding: 0 16px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1;
    min-height: 38px;
    height: 38px;
    vertical-align: middle;
}

.studio-connect-calculator-btn:hover {
    background: #136db5;
}

.studio-connect-copy-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.studio-connect-copy {
    border: 1px solid #d7deea;
    background: #f5f7fb;
    color: #1c1e21;
    border-radius: 12px;
    padding: 0 16px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-shadow: 0 10px 20px rgba(26, 40, 70, 0.08);
    text-align: center;
    position: relative;
    line-height: 1;
    min-height: 38px;
    height: 38px;
    vertical-align: middle;
}

.studio-connect-copy i {
    color: var(--sc-primary);
}

.studio-connect-copy.is-primary {
    background: #1a93ee;
    border: none;
    color: #ffffff;
    box-shadow: none;
}

.studio-connect-copy.is-primary:hover {
    background: #136db5;
    box-shadow: none;
}

.studio-connect-copy.is-primary i {
    color: #ffffff;
}

.studio-connect-copy:hover {
    transform: none;
    box-shadow: 0 18px 26px rgba(26, 40, 70, 0.16);
    background: #e4e9f2;
}

.sc-contact-btn {
    width: 100%;
    display: grid;
    grid-template-columns: 26px 1fr 26px;
    column-gap: 8px;
    padding-inline: 16px;
    align-items: center;
}

.sc-contact-btn .sc-contact-icon,
.sc-contact-btn .sc-contact-spacer {
    width: 26px;
    flex: 0 0 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: center;
}

.sc-contact-btn .sc-contact-label {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    justify-self: center;
    line-height: 1;
}

.sc-contact-btn .sc-contact-spacer {
    visibility: hidden;
}

.sc-contact-btn:hover {
    transform: none;
    box-shadow: 0 10px 20px rgba(26, 40, 70, 0.08);
}

.studio-connect-copy.inline {
    border-color: var(--sc-primary);
    color: var(--sc-primary);
    background: transparent;
    font-size: 13px;
    padding: 0 8px;
    margin: 0 2px;
    box-shadow: none;
    min-height: 28px;
    height: 28px;
}

.studio-connect-copy.inline:hover {
    transform: none;
    box-shadow: none;
}


.studio-connect-copy-hint {
    margin-top: 8px;
    font-size: 11px;
    color: #7b7e87;
}

.sc-copy-toast {
    position: fixed;
    z-index: 999999;
    padding: 8px 12px;
    border-radius: 12px;
    background: rgba(15, 20, 26, 0.92);
    color: #fff;
    font-size: 12px;
    box-shadow: 0 12px 24px rgba(15, 20, 26, 0.24);
    opacity: 0;
    transform: translate(-50%, -95%);
    transition: opacity 160ms ease, transform 160ms ease;
    pointer-events: none;
    white-space: nowrap;
}

.sc-copy-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, -110%);
}

.sc-copy-toast-check {
    margin-left: 6px;
    opacity: 0.9;
}

.studio-connect-typing {
    font-size: 13px;
    color: #7b7e87;
    letter-spacing: 2px;
    animation: sc-typing 1s ease-in-out infinite;
}

.studio-connect-bubble.is-typing {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    padding: 10px 14px;
}

.studio-connect-typing-dots {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.studio-connect-typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #7b7e87;
    animation: sc-typing-bounce 1.1s infinite ease-in-out;
}

.studio-connect-typing-dots span:nth-child(2) {
    animation-delay: 0.15s;
}

.studio-connect-typing-dots span:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes sc-typing-bounce {
    0%,
    80%,
    100% {
        transform: translateY(0);
        opacity: 0.5;
    }
    40% {
        transform: translateY(-4px);
        opacity: 1;
    }
}

@keyframes sc-typing {
    0%,
    100% {
        opacity: 0.3;
    }
    50% {
        opacity: 1;
    }
}

.studio-connect-footer {
    flex: 0 0 auto;
    padding: 10px 20px calc(10px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid #222;
    background: var(--sc-dark);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 44px;
    position: relative;
    overflow: visible;
    z-index: 3;
}

.studio-connect-home {
    border: 1px solid #222;
    background: transparent;
    color: #ffffff;
    border-radius: 999px;
    min-height: 32px;
    padding-block: 6px;
    padding-inline: 12px;
    font-size: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    position: relative;
    pointer-events: auto;
    z-index: 9999;
    text-align: center;
    line-height: 1;
}

.studio-connect-home:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: #2d3138;
}

.sc-tooltip {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -100%) translateY(-6px);
    background: #1f242c;
    color: #ffffff;
    font-size: 11px;
    padding: 6px 10px;
    border-radius: 10px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    white-space: nowrap;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 9999;
}

.sc-tooltip.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -100%) translateY(0);
}

.studio-connect-home-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 16px;
    height: 16px;
    border-radius: 999px;
    background: #22c55e;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.7);
    transition: opacity 180ms ease, transform 180ms ease;
}

.studio-connect-home-badge::before {
    content: '✓';
}

.studio-connect-home.has-copy-feedback .studio-connect-home-badge {
    opacity: 1;
    transform: scale(1);
}

.studio-connect-footer-socials {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.studio-connect-footer-socials .studio-connect-social {
    min-width: 32px;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.studio-connect-toast {
    position: absolute;
    top: 90px;
    left: 50%;
    right: auto;
    bottom: auto;
    background: #222222;
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 12px;
    opacity: 0;
    transform: translate(-50%, -6px);
    transition: opacity 220ms ease, transform 220ms ease;
    pointer-events: none;
    z-index: 2147483647;
}

.studio-connect-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.sc-list {
    list-style: none;
    padding: 0;
    margin: 6px 0 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sc-list li {
    position: relative;
    padding-left: 26px;
    line-height: 1.5;
    word-break: break-word;
}

.sc-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.2em;
    width: 16px;
    height: 16px;
    background-image: url("https://dev.pascal-krell.de/wp-content/uploads/2025/08/check-mark-icon.svg");
    background-size: contain;
    background-repeat: no-repeat;
}

@media (max-width: 480px) {
    .studio-connect-panel {
        width: 100%;
        height: 80vh; /* Fallback fuer aeltere Browser */
        height: 80dvh; /* Dynamische Viewport Height fuer moderne Mobile-Browser */
        right: 12px;
        left: 12px;
        bottom: 90px;
    }

    .studio-connect-launcher {
        right: 16px;
        bottom: 20px;
    }
}

.sc-start-tools {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 4px;
}

.sc-recent-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.sc-recent-label {
    font-size: 11px;
    font-weight: 500;
    color: #565c68;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.sc-chip-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: stretch;
    justify-content: flex-start;
}

.sc-chip {
    border: 1px solid #d7deea;
    background: #ffffff;
    color: #1c1e21;
    border-radius: 999px;
    padding: 0 12px;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    height: 38px;
    vertical-align: middle;
    flex: 0 1 auto;
    white-space: nowrap;
    max-width: 100%;
}

@media (max-width: 540px) {
    .studio-connect-options,
    .sc-chip-wrap {
        gap: 8px;
    }

    .studio-connect-option-btn,
    .sc-chip {
        white-space: normal;
    }
}

.sc-chip--compact {
    padding: 0 10px;
    font-size: 11px;
    min-height: 34px;
    height: 34px;
}

.sc-chip.is-active {
    background: #1f6feb;
    border-color: #1f6feb;
    color: #fff;
}


.sc-friction-panel {
    border: 1px solid #f1d4a9;
    background: #fff8ed;
    border-radius: 12px;
    padding: 10px;
    position: relative;
}

.sc-friction-close {
    position: absolute;
    right: 8px;
    top: 6px;
    border: none;
    background: transparent;
    cursor: pointer;
}

.sc-friction-actions {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sc-proactive-bubble,
.sc-launcher-hint {
    position: fixed;
    right: 24px;
    bottom: 100px;
    z-index: 999999;
    background: #0f141a;
    border: 1px solid #1c222d;
    border-radius: 16px;
    box-shadow: 0 18px 38px rgba(8, 12, 18, 0.34);
    opacity: 0;
    transform: translate3d(24px, 18px, 0) scale(0.94);
    padding: 10px 12px;
    width: min(320px, calc(100vw - 32px));
    max-width: calc(100vw - 32px);
    transition: opacity 260ms ease, transform 260ms ease;
    pointer-events: auto;
}

.sc-proactive-overlay,
.sc-hint-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 999990;
}

.sc-proactive-bubble::after {
    content: '';
    position: absolute;
    right: 20px;
    bottom: -8px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #0f141a;
    filter: drop-shadow(0 1px 0 #1c222d);
}

.sc-proactive-bubble.is-visible {
    animation: sc-proactive-enter 620ms cubic-bezier(0.22, 1, 0.3, 1) forwards;
}

@keyframes sc-proactive-enter {
    0% {
        opacity: 0;
        transform: translate3d(24px, 20px, 0) scale(0.94);
    }
    62% {
        opacity: 1;
        transform: translate3d(-5px, -2px, 0) scale(1.015);
    }
    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
}

.sc-proactive-main {
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: #ffffff;
    width: 100%;
    text-align: left;
    padding: 2px;
    margin: 0;
    position: relative;
    z-index: 2;
    min-height: 36px;
    pointer-events: auto;
}

.sc-proactive-avatar-wrap .studio-connect-avatar {
    width: 40px;
    height: 40px;
}

.sc-proactive-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.sc-proactive-label {
    font-size: 12px;
    line-height: 1.2;
    font-weight: 700;
    color: #ffffff;
}

.sc-proactive-text {
    font-size: 13px;
    line-height: 1.35;
    color: #d1d5db;
}

.sc-proactive-close {
    position: absolute;
    top: 4px;
    right: 6px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.72);
    z-index: 3;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    pointer-events: auto;
}


.sc-proactive-links {
    margin-top: 10px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.sc-proactive-link {
    border: 1px solid #2c3544;
    background: #161d27;
    color: #c9d5e8;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 11px;
    cursor: pointer;
    min-height: 36px;
    pointer-events: auto;
}

.sc-proactive-bubble button,
.sc-proactive-bubble .sc-proactive-close,
.sc-launcher-hint button,
.sc-launcher-hint .sc-hint-close {
    pointer-events: auto;
}

.sc-proactive-bubble.is-scrolled-out {
    opacity: 0;
    transform: translate3d(0, 12px, 0) scale(0.96);
    pointer-events: none;
}

.sc-proactive-bubble.sc-fade-out {
    animation: sc-fade-out 300ms ease forwards;
}

@media (max-width: 640px) {
    .sc-proactive-bubble {
        right: 16px;
        bottom: 88px;
        width: min(290px, calc(100vw - 32px));
    }
}


.sc-callback-form {
    border-radius: 14px;
    padding: 12px 12px 10px;
    background: #f7f8fb;
    display: flex;
    flex-direction: column;
    gap: 8px;
}


.studio-connect-option-dock:has(.sc-callback-form) {
    padding-bottom: 10px;
    gap: 8px;
}

.sc-callback-form .studio-connect-option-btn {
    margin-bottom: 0;
}

.sc-callback-hint {
    font-size: 11px;
    color: #6f7785;
    line-height: 1.35;
}

.sc-callback-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.sc-callback-field {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.sc-callback-field--full {
    grid-column: 1 / -1;
}

.sc-callback-input[name="name"] {
    grid-column: 1 / -1;
}

.sc-callback-input,
.sc-callback-textarea {
    width: 100%;
    border: 1px solid #d7deea;
    background: #ffffff;
    border-radius: 10px;
    padding: 7px 10px;
    font-size: 13px;
    color: #1c1e21;
    min-height: 36px;
}

.sc-callback-input[type="time"] {
    height: 36px;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid rgba(28, 87, 137, 0.18);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.85);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.sc-callback-input[type="time"]:focus {
    border-color: rgba(26, 147, 238, 0.55);
    box-shadow: 0 0 0 3px rgba(26, 147, 238, 0.12);
    background: rgba(255, 255, 255, 0.96);
    outline: none;
}

.sc-callback-input[type="time"]::-webkit-calendar-picker-indicator {
    opacity: 0.7;
    cursor: pointer;
}

.sc-callback-input:focus,
.sc-callback-textarea:focus {
    border-color: rgba(26, 147, 238, 0.5);
    box-shadow: 0 0 0 2px rgba(26, 147, 238, 0.12);
    outline: none;
}

.sc-callback-input.is-invalid,
.sc-callback-textarea.is-invalid {
    border-color: rgba(182, 52, 52, 0.46);
    background: #fff9f9;
}

.sc-callback-field-error {
    min-height: 12px;
    font-size: 11px;
    color: #b34a4a;
    opacity: 0.86;
    line-height: 1.25;
}

.sc-callback-textarea {
    min-height: 74px;
    resize: vertical;
}


.sc-callback-form .studio-connect-option-btn:disabled {
    opacity: 0.56;
    cursor: not-allowed;
}

.sc-callback-status {
    min-height: 12px;
    font-size: 11px;
    line-height: 1.3;
}

.sc-callback-status.is-success {
    color: #1f7a46;
}

.sc-callback-status.is-error {
    color: #b63434;
}


@media (max-width: 540px) {
    .sc-callback-grid {
        grid-template-columns: 1fr;
    }
}

.studio-connect-widget .studio-connect-option-btn,
.studio-connect-widget .studio-connect-calculator-btn,
.studio-connect-widget .studio-connect-copy,
.studio-connect-widget .studio-connect-option-btn:hover,
.studio-connect-widget .studio-connect-calculator-btn:hover,
.studio-connect-widget .studio-connect-copy:hover {
    transform: none !important;
    top: auto !important;
}


/* Erzwungener Hover-State fuer den Launcher (Feinjustierte Breite) */
#sc-widget:not(.is-open) #sc-launcher:not(.is-state-open):not(.is-state-hint):hover,
#sc-widget:not(.is-open) #sc-launcher:not(.is-state-open):not(.is-state-hint):focus-visible {
    width: 215px !important;
    gap: 10px !important;
    padding-right: 16px !important;
    box-shadow: 0 12px 28px rgba(10, 16, 30, 0.3) !important;
}

#sc-widget:not(.is-open) #sc-launcher:not(.is-state-open):not(.is-state-hint):hover .studio-connect-launcher-label,
#sc-widget:not(.is-open) #sc-launcher:not(.is-state-open):not(.is-state-hint):focus-visible .studio-connect-launcher-label {
    opacity: 1 !important;
    max-width: 145px !important;
    transform: translateX(0) !important;
}

/* Avatar beim Aufklappen dezent verkleinern und minimal einrücken */
#sc-widget:not(.is-open) #sc-launcher:not(.is-state-open):not(.is-state-hint):hover .studio-connect-launcher-icon,
#sc-widget:not(.is-open) #sc-launcher:not(.is-state-open):not(.is-state-hint):focus-visible .studio-connect-launcher-icon {
    width: 56px !important;
    min-width: 56px !important;
    height: 56px !important;
    margin-left: 2px !important;
}

/* Blauen Fokus-Ring (Border) entfernen und eigenen Schatten setzen, wenn das Portal geöffnet ist */
#sc-widget.is-open #sc-launcher {
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.08) !important;
}
#sc-widget.is-open #sc-launcher:focus,
#sc-widget.is-open #sc-launcher:focus-visible,
#sc-widget.is-open #sc-launcher:active {
    outline: none !important;
    border: none !important;
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.08) !important;
}
