/* Wolkenreich Chatbot Widget — Stand 28.05.2026 */

/* ── Hero/Beta-Page Styles (optional, nur fuer Beta-Test-Page) ── */
.wlk-beta-wrap { max-width: 980px; margin: 0 auto; padding: 48px 24px 80px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; color: #242424; }
.wlk-beta-hero { display: grid; grid-template-columns: 280px 1fr; gap: 40px; align-items: center; margin-bottom: 56px; }
.wlk-beta-photo { position: relative; }
.wlk-beta-photo img { width: 100%; height: auto; border-radius: 18px; box-shadow: 0 24px 60px rgba(16, 72, 93, 0.18); display: block; }
.wlk-beta-photo-badge { position: absolute; bottom: -14px; left: 50%; transform: translateX(-50%); background: #10485D; color: #fff; font-size: 13px; font-weight: 600; padding: 8px 18px; border-radius: 100px; white-space: nowrap; box-shadow: 0 8px 22px rgba(16, 72, 93, 0.28); }
.wlk-beta-eyebrow { display: inline-block; background: #ffeac4; color: #8a5a00; font-size: 12px; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; padding: 4px 12px; border-radius: 100px; margin-bottom: 14px; }
.wlk-beta-h1 { font-size: 38px; line-height: 1.15; margin: 0 0 14px; color: #10485D; font-weight: 700; }
.wlk-beta-h1 span { color: #2297C3; }
.wlk-beta-sub { font-size: 17px; line-height: 1.55; color: #4a5560; margin: 0 0 24px; }
.wlk-beta-rotator { background: linear-gradient(135deg, #f1f5f7, #ffffff); border: 1px solid #e6ebef; border-left: 4px solid #2297C3; border-radius: 12px; padding: 14px 18px; margin-bottom: 22px; min-height: 56px; display: flex; align-items: center; }
.wlk-beta-rotator-text { font-size: 15px; color: #10485D; font-style: italic; transition: opacity 0.4s ease; }
.wlk-beta-rotator-text.fade { opacity: 0; }
.wlk-beta-cta { display: inline-flex; align-items: center; gap: 10px; background: #10485D; color: #fff; padding: 14px 26px; border: none; border-radius: 12px; font-size: 16px; font-weight: 700; cursor: pointer; text-decoration: none; box-shadow: 0 12px 30px rgba(16, 72, 93, 0.28); transition: transform 0.15s ease, background 0.15s ease; }
.wlk-beta-cta:hover { background: #0e3f50; transform: translateY(-2px); }
.wlk-beta-meta { display: flex; gap: 24px; margin-top: 18px; font-size: 13px; color: #6b7785; flex-wrap: wrap; }
.wlk-beta-meta-item { display: inline-flex; align-items: center; gap: 6px; }
.wlk-beta-meta-dot { width: 6px; height: 6px; border-radius: 50%; background: #2297C3; display: inline-block; }
.wlk-beta-section { margin: 48px 0 0; }
.wlk-beta-section h2 { font-size: 22px; color: #10485D; margin: 0 0 18px; font-weight: 700; }
.wlk-beta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.wlk-beta-card { background: #fff; border: 1px solid #e6ebef; border-radius: 14px; padding: 22px; }
.wlk-beta-card-icon { width: 36px; height: 36px; border-radius: 8px; background: #e6f4f9; color: #10485D; display: flex; align-items: center; justify-content: center; font-size: 18px; margin-bottom: 12px; font-weight: 700; }
.wlk-beta-card h3 { margin: 0 0 6px; font-size: 16px; color: #10485D; }
.wlk-beta-card p { margin: 0; font-size: 14px; line-height: 1.5; color: #6b7785; }
.wlk-beta-feedback { background: #fff7e6; border: 1px solid #ffe0a8; border-radius: 14px; padding: 22px 26px; margin-top: 32px; }
.wlk-beta-feedback h3 { margin: 0 0 10px; font-size: 16px; color: #6b5500; }
.wlk-beta-feedback ul { margin: 0; padding-left: 20px; }
.wlk-beta-feedback li { font-size: 14px; line-height: 1.5; color: #6b5500; margin-bottom: 4px; }
@media (max-width: 720px) {
  .wlk-beta-hero { grid-template-columns: 1fr; gap: 24px; }
  .wlk-beta-photo { max-width: 240px; margin: 0 auto; }
  .wlk-beta-h1 { font-size: 30px; }
}

/* ── Chatbot Widget (Floating Bubble + Teaser + Panel) ── */
#wlk-chatbot { --wlk-primary: #10485D; --wlk-accent: #2297C3; --wlk-charcoal: #242424; --wlk-bg: #fff; --wlk-border: #e6ebef; --wlk-muted: #6b7785; --wlk-radius: 14px; --wlk-shadow: 0 18px 50px rgba(16,72,93,.18); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; color: var(--wlk-charcoal); }
/* Shopify-RTE-Override: Theme setzt margin-block auf alle img in .rte — wir wollen das nicht. */
#wlk-chatbot img { margin: 0 !important; margin-block: 0 !important; }
#wlk-chatbot[data-position="left"] #wlk-toggle { left: 24px; right: auto; }
#wlk-chatbot[data-position="left"] #wlk-panel { left: 24px; right: auto; }
#wlk-toggle { position: fixed; bottom: 24px; right: 24px; z-index: 2147483647; width: 60px; height: 60px; border-radius: 50%; background: var(--wlk-primary); color: #fff; border: none; cursor: pointer; box-shadow: var(--wlk-shadow); display: flex; align-items: center; justify-content: center; transition: transform .2s ease, background .2s ease; }
#wlk-toggle:hover { transform: scale(1.05); background: #0e3f50; }
#wlk-toggle .wlk-toggle-pulse { position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--wlk-accent); opacity: 0; animation: wlk-pulse 2.4s ease-out infinite; }
@keyframes wlk-pulse { 0% { opacity: .7; transform: scale(.95); } 100% { opacity: 0; transform: scale(1.25); } }
#wlk-panel { position: fixed; bottom: 100px; right: 24px; z-index: 2147483646; width: 380px; max-width: calc(100vw - 32px); height: 580px; max-height: calc(100vh - 140px); background: var(--wlk-bg); border-radius: var(--wlk-radius); box-shadow: var(--wlk-shadow); display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--wlk-border); }
#wlk-panel[hidden] { display: none; }
.wlk-header { padding: 16px 18px; background: var(--wlk-primary); color: #fff; display: flex; align-items: center; justify-content: space-between; }
.wlk-header-info { display: flex; flex-direction: column; }
.wlk-header-title { font-weight: 600; font-size: 15px; }
.wlk-header-sub { font-size: 12px; opacity: .78; }
#wlk-close { background: transparent; border: none; color: #fff; cursor: pointer; padding: 4px; display: flex; opacity: .85; }
#wlk-close:hover { opacity: 1; }
.wlk-consent { position: absolute; top: 56px; left: 0; right: 0; bottom: 0; z-index: 2; padding: 28px 22px; background: #fff; display: flex; flex-direction: column; justify-content: center; font-size: 14px; line-height: 1.55; }
.wlk-consent[hidden] { display: none; }
.wlk-consent-badge { display: inline-block; align-self: flex-start; background: #fef3c7; color: #92400e; padding: 4px 10px; border-radius: 12px; font-size: 11px; font-weight: 600; letter-spacing: 0.3px; text-transform: uppercase; margin-bottom: 12px; }
.wlk-consent-title { font-weight: 700; margin: 0 0 10px; font-size: 19px; color: var(--wlk-primary); }
.wlk-consent p { margin: 0 0 16px; color: var(--wlk-charcoal); }
.wlk-consent a { color: var(--wlk-accent); text-decoration: underline; }
#wlk-consent-accept { background: var(--wlk-primary); color: #fff; border: none; padding: 14px 20px; border-radius: 10px; cursor: pointer; font-weight: 700; font-size: 15px; width: 100%; box-shadow: 0 8px 22px rgba(16,72,93,0.28); transition: transform 0.15s ease, background 0.15s ease; }
#wlk-consent-accept:hover { background: #0e3f50; transform: translateY(-1px); }
.wlk-consent-hint { margin-top: 14px; font-size: 12px; color: var(--wlk-muted); text-align: center; }
#wlk-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; background: linear-gradient(180deg,#fafbfc 0%,#fff 100%); }
.wlk-msg { max-width: 85%; padding: 10px 14px; border-radius: 16px; font-size: 14px; line-height: 1.5; word-wrap: break-word; }
.wlk-msg-user { align-self: flex-end; background: var(--wlk-primary); color: #fff; border-bottom-right-radius: 4px; }
.wlk-msg-bot { align-self: flex-start; background: #f1f5f7; color: var(--wlk-charcoal); border-bottom-left-radius: 4px; }
.wlk-msg-bot a { color: var(--wlk-accent); text-decoration: underline; }
.wlk-msg-system { align-self: center; background: #fff7e6; color: #6b5500; font-size: 12px; padding: 6px 12px; border-radius: 12px; border: 1px solid #ffe0a8; }
.wlk-typing { align-self: flex-start; background: #f1f5f7; padding: 12px 16px; border-radius: 16px; border-bottom-left-radius: 4px; display: inline-flex; gap: 4px; }
.wlk-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--wlk-muted); animation: wlk-typing 1.2s ease-in-out infinite; }
.wlk-typing span:nth-child(2) { animation-delay: .15s; }
.wlk-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes wlk-typing { 0%, 60%, 100% { opacity: .35; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-4px); } }
.wlk-quick { display: flex; gap: 8px; padding: 8px 16px 0; flex-wrap: wrap; }
.wlk-quick[hidden] { display: none; }
.wlk-quick-btn { background: #fff; color: var(--wlk-primary); border: 1px solid var(--wlk-border); padding: 6px 12px; border-radius: 16px; cursor: pointer; font-size: 12px; font-weight: 500; }
.wlk-quick-btn:hover { background: #f1f5f7; border-color: var(--wlk-accent); }
#wlk-form { display: flex; gap: 8px; padding: 12px 16px; background: #fff; }
#wlk-input { flex: 1; resize: none; border: 1px solid var(--wlk-border); border-radius: 12px; padding: 10px 14px; font-size: 14px; font-family: inherit; outline: none; max-height: 100px; line-height: 1.4; }
#wlk-input:focus { border-color: var(--wlk-accent); }
#wlk-send { background: var(--wlk-primary); color: #fff; border: none; border-radius: 12px; width: 42px; height: 42px; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
#wlk-send:hover { background: #0e3f50; }
#wlk-send:disabled { background: var(--wlk-muted); cursor: not-allowed; }
.wlk-foot { padding: 6px 16px 10px; text-align: center; font-size: 11px; color: var(--wlk-muted); background: #fff; }

/* ── Teaser-Sprechblase ── */
.wlk-teaser { position: fixed; bottom: 100px; left: 24px; z-index: 2147483645; display: flex; align-items: center; gap: 10px; background: #fff; padding: 10px 32px 10px 10px; border-radius: 14px; box-shadow: 0 14px 36px rgba(16, 72, 93, 0.18); border: 1px solid #e6ebef; cursor: pointer; max-width: 360px; opacity: 0; transform: translateY(8px); transition: opacity 0.35s ease, transform 0.35s ease; }
.wlk-teaser.visible { opacity: 1; transform: translateY(0); }
.wlk-teaser[hidden] { display: none !important; }
#wlk-chatbot:not([data-position="left"]) .wlk-teaser { left: auto; right: 24px; padding: 10px 10px 10px 32px; }
.wlk-teaser::after { content: ""; position: absolute; bottom: -8px; left: 28px; width: 16px; height: 16px; background: #fff; border-right: 1px solid #e6ebef; border-bottom: 1px solid #e6ebef; transform: rotate(45deg); }
#wlk-chatbot:not([data-position="left"]) .wlk-teaser::after { left: auto; right: 28px; }
.wlk-teaser-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 2px solid #2297C3; }
.wlk-teaser-body { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.wlk-teaser-name { font-size: 11px; font-weight: 700; color: #10485D; letter-spacing: 0.2px; line-height: 1.2; margin-bottom: 1px; }
.wlk-teaser-text { font-size: 13px; line-height: 1.3; color: #242424; transition: opacity 0.3s ease; }
.wlk-teaser-text.fade { opacity: 0; }
.wlk-teaser-close { position: absolute; top: 4px; right: 6px; background: transparent; border: none; color: #6b7785; font-size: 22px; line-height: 1; cursor: pointer; padding: 4px 8px; border-radius: 50%; transition: background 0.15s ease; }
.wlk-teaser-close:hover { background: #f1f5f7; color: #242424; }
#wlk-chatbot:not([data-position="left"]) .wlk-teaser-close { left: 6px; right: auto; }

@media (max-width: 640px) {
  #wlk-panel { bottom: 0; right: 0; left: 0; width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 16px 16px 0 0; }
  #wlk-toggle { bottom: 16px; width: 56px; height: 56px; }
  #wlk-chatbot[data-position="left"] #wlk-toggle { left: 16px; right: auto; }
  #wlk-chatbot:not([data-position="left"]) #wlk-toggle { right: 16px; }
  .wlk-teaser { display: none !important; }
}
