/* Chatbot colourclean.de – nutzt die Farben und Schriften der Website */
.ccb { --ccb-ink: var(--text-dark, #14151f); --ccb-paper: var(--bg-light, #f7f5f1); --ccb-card: #fff; --ccb-warm: var(--bg-warm, #efebe3);
  --ccb-accent: var(--accent, #ec7635); --ccb-accent-dim: var(--accent-dim, #c25c22); --ccb-muted: var(--text-muted, #71757f);
  --ccb-line: var(--border, #dcdee2); --ccb-dark: var(--bg-dark, #0d0f17);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; color: var(--ccb-ink); }
.ccb *, .ccb *::before, .ccb *::after { box-sizing: border-box; }

/* Startknopf: gleicher Stil wie der frühere „Jetzt anfragen“-Button (Orange mit Schwarz), erscheint erst unterhalb des Hero-Bereichs. */
html.ccb-active .floating-cta { display: none !important; }
.ccb-launcher { position: fixed; right: 32px; bottom: 32px; z-index: 95; height: 54px; padding: 0 22px 0 18px; border-radius: 999px; border: 0;
  background: var(--ccb-accent); color: var(--ccb-dark); cursor: pointer; display: flex; align-items: center; gap: 10px;
  font: 700 0.9rem/1 'Inter', system-ui, sans-serif; letter-spacing: .01em;
  box-shadow: 0 8px 32px oklch(72% 0.19 48 / 0.45), 0 2px 6px rgba(13, 15, 23, 0.25);
  transform: translateY(90px); opacity: 0; pointer-events: none; transition: transform .35s ease, opacity .35s ease, box-shadow .2s; }
.ccb-launcher.is-shown { transform: translateY(0); opacity: 1; pointer-events: auto; }
.ccb-launcher.is-shown:hover { box-shadow: 0 12px 40px oklch(72% 0.19 48 / 0.6), 0 2px 6px rgba(13, 15, 23, 0.25); transform: translateY(-2px); }
.ccb-launcher:focus-visible, .ccb button:focus-visible, .ccb a:focus-visible, .ccb input:focus-visible, .ccb textarea:focus-visible, .ccb select:focus-visible { outline: 3px solid var(--ccb-dark); outline-offset: 2px; }
.ccb-launcher svg { width: 22px; height: 22px; stroke-width: 2.2; }
.ccb-launcher-text { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-align: left; }
.ccb-launcher-text small { font-size: 0.72rem; font-weight: 600; opacity: .78; letter-spacing: 0; }
.ccb-launcher-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--ccb-dark); animation: ccb-pulse 2s ease-in-out infinite; }
@keyframes ccb-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.7); } }

/* Hinweis-Sprechblase: dunkle Schrift auf Weiß, oranger Rand, gut lesbar auf hellen und dunklen Abschnitten. */
.ccb-bubble { position: fixed; right: 32px; bottom: 100px; z-index: 95; max-width: 310px; display: flex; gap: 10px; align-items: flex-start;
  background: #fff; color: var(--ccb-dark); border: 2px solid var(--ccb-accent); border-radius: 16px 16px 4px 16px; padding: 12px 36px 12px 12px;
  font-size: 0.95rem; font-weight: 500; line-height: 1.45; box-shadow: 0 18px 44px -14px rgba(13, 15, 23, 0.55); cursor: pointer; animation: ccb-in .25s ease; }
.ccb-bubble .ccb-avatar { width: 36px; height: 36px; }
.ccb-bubble-text span { display: block; }
.ccb-bubble-close { position: absolute; top: 4px; right: 4px; border: 0; background: none; width: 30px; height: 30px; cursor: pointer; color: #4b4f58; font-size: 20px; line-height: 1; }
.ccb-bubble small { display: block; color: #4b4f58; font-size: 0.76rem; font-weight: 500; margin-top: 4px; }

.ccb-bubble--exit { max-width: 390px; cursor: default; }
.ccb-bubble--exit strong { display: block; font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: 1.15rem; line-height: 1.25; margin-bottom: 4px; }
.ccb-bubble--exit .ccb-actions { margin-top: 12px; flex-wrap: nowrap; }
.ccb-bubble--exit .ccb-btn { padding: 9px 16px; font-size: 0.86rem; }

.ccb-panel { position: fixed; right: 32px; bottom: 32px; z-index: 99980; width: 390px; height: min(660px, calc(100vh - 64px)); display: flex; flex-direction: column;
  background: var(--ccb-paper); border: 1px solid var(--ccb-line); border-radius: 18px; overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(13, 15, 23, 0.55); animation: ccb-in .22s ease; }
.ccb-head { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 16px; background: var(--ccb-dark); color: #fff; }
.ccb-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--ccb-accent); display: grid; place-items: center; flex: none; color: var(--ccb-dark); }
.ccb-avatar svg { width: 18px; height: 18px; }
.ccb-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.ccb-title { flex: 1; min-width: 0; }
.ccb-title strong { display: block; font-size: 0.95rem; }
.ccb-title span { display: block; font-size: 0.75rem; opacity: .75; }
.ccb-icon-btn { border: 0; background: transparent; color: inherit; width: 36px; height: 36px; border-radius: 8px; cursor: pointer; display: grid; place-items: center; }
.ccb-icon-btn:hover { background: rgba(255,255,255,.1); }
.ccb-icon-btn svg { width: 18px; height: 18px; }

.ccb-log { flex: 1; overflow-y: auto; padding: 16px 14px 8px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.ccb-notice { background: var(--ccb-warm); border-radius: 12px; padding: 12px 14px; font-size: 0.82rem; line-height: 1.5; color: var(--ccb-ink); display: grid; gap: 8px; }
.ccb-notice-ok { justify-self: start; border: 1px solid var(--ccb-dark); background: var(--ccb-dark); color: #fff; border-radius: 999px; padding: 6px 14px; font: inherit; font-weight: 600; font-size: 0.8rem; cursor: pointer; }
.ccb-notice-ok:hover { background: #262833; }
.ccb-notice strong { display: block; margin-bottom: 2px; }
.ccb-notice a { color: var(--ccb-accent-dim); }
.ccb-msg { max-width: 88%; padding: 10px 13px; border-radius: 14px; font-size: 0.93rem; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.ccb-msg a { color: var(--ccb-accent-dim); font-weight: 600; }
.ccb-msg--bot { hyphens: auto; -webkit-hyphens: auto; text-wrap: pretty; }
.ccb-msg p { margin: 0; }
.ccb-msg p + p { margin-top: 8px; }
.ccb-msg p.ccb-ask { font-weight: 600; color: var(--ccb-dark); }
.ccb-msg--bot { align-self: flex-start; background: var(--ccb-card); border: 1px solid var(--ccb-line); border-bottom-left-radius: 4px; }
.ccb-turn { align-self: flex-start; display: flex; align-items: flex-end; gap: 8px; max-width: 94%; }
.ccb-turn > .ccb-avatar { width: 28px; height: 28px; }
.ccb-turn > .ccb-avatar svg { width: 15px; height: 15px; }
.ccb-turn > .ccb-msg { max-width: none; min-width: 0; }
.ccb-cards { margin-left: 36px; }
.ccb-msg--user { align-self: flex-end; background: color-mix(in oklch, var(--ccb-accent) 22%, #fff); border: 1px solid color-mix(in oklch, var(--ccb-accent) 45%, #fff); color: var(--ccb-dark); border-bottom-right-radius: 4px; }
.ccb-msg--error { align-self: stretch; background: #fff3ee; border: 1px solid #f2c3ad; font-size: 0.85rem; }
.ccb-typing { align-self: flex-start; display: flex; gap: 4px; padding: 12px 14px; background: var(--ccb-card); border: 1px solid var(--ccb-line); border-radius: 14px; }
.ccb-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ccb-muted); animation: ccb-dot 1s infinite ease-in-out; }
.ccb-typing i:nth-child(2) { animation-delay: .15s; } .ccb-typing i:nth-child(3) { animation-delay: .3s; }

/* Antwortvorschläge stehen wie eigene Nachrichten rechts (WhatsApp-Prinzip). */
.ccb-quick { align-self: flex-end; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; max-width: 88%; }
.ccb-quick-label { font-size: 0.72rem; color: var(--ccb-muted); margin-bottom: 2px; }
.ccb-chip { border: 1.5px solid var(--ccb-accent); background: #fff; color: var(--ccb-dark); border-radius: 14px 14px 4px 14px; padding: 8px 13px; font: inherit; font-size: 0.88rem; font-weight: 500; cursor: pointer; text-align: right; }
.ccb-chip:hover { background: color-mix(in oklch, var(--ccb-accent) 22%, #fff); }

.ccb-cards { align-self: flex-start; display: flex; flex-direction: column; gap: 6px; max-width: 88%; }
.ccb-card-link { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ccb-ink); background: var(--ccb-card); border: 1px solid var(--ccb-line);
  border-radius: 10px; padding: 9px 11px; font-size: 0.85rem; line-height: 1.35; cursor: pointer; font-family: inherit; text-align: left; width: 100%; }
.ccb-card-link:hover { border-color: var(--ccb-accent); }
.ccb-card-link svg { width: 18px; height: 18px; flex: none; color: var(--ccb-accent-dim); }
.ccb-card-link--download img { width: 44px; height: 62px; object-fit: cover; object-position: top; border-radius: 6px; border: 1px solid var(--ccb-line); flex: none; }
.ccb-card-link span small { display: block; color: var(--ccb-muted); font-size: 0.72rem; }

.ccb-box { align-self: stretch; background: var(--ccb-card); border: 1px solid var(--ccb-line); border-radius: 14px; padding: 14px; display: grid; gap: 10px; font-size: 0.88rem; }
.ccb-box h3 { margin: 0; font-size: 0.98rem; }
.ccb-box p { margin: 0; color: var(--ccb-muted); font-size: 0.82rem; line-height: 1.45; }
.ccb-field { display: grid; gap: 4px; }
.ccb-field label { font-size: 0.78rem; color: var(--ccb-muted); }
.ccb-field input, .ccb-field select, .ccb-field textarea { width: 100%; border: 1px solid var(--ccb-line); border-radius: 8px; padding: 9px 10px; font: inherit; font-size: 0.9rem; background: #fff; color: var(--ccb-ink); }
.ccb-field textarea { min-height: 70px; resize: vertical; }
.ccb-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ccb-check { display: flex; gap: 8px; align-items: flex-start; font-size: 0.78rem; line-height: 1.4; color: var(--ccb-ink); }
.ccb-check input { margin-top: 2px; accent-color: var(--ccb-accent); }
.ccb-check a { color: var(--ccb-accent-dim); }
.ccb-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ccb-btn { border: 0; border-radius: 999px; padding: 11px 18px; font: inherit; font-weight: 700; font-size: 0.9rem; cursor: pointer; background: var(--ccb-accent); color: var(--ccb-dark); }
.ccb-btn:disabled { opacity: .6; cursor: default; }
.ccb-btn--ghost { background: transparent; border: 1px solid var(--ccb-line); color: var(--ccb-ink); font-weight: 600; }
.ccb-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ccb-form-error { color: #a33a12; font-size: 0.8rem; }

.ccb-input { display: flex; gap: 8px; padding: 10px 12px 12px; border-top: 1px solid var(--ccb-line); background: var(--ccb-paper); }
.ccb-input textarea { flex: 1; resize: none; border: 1px solid var(--ccb-line); border-radius: 12px; padding: 10px 12px; font: inherit; font-size: 0.93rem; max-height: 120px; min-height: 44px; background: #fff; color: var(--ccb-ink); }
.ccb-send { width: 44px; height: 44px; flex: none; border-radius: 50%; border: 0; background: var(--ccb-accent); color: var(--ccb-dark); cursor: pointer; display: grid; place-items: center; }
.ccb-send:disabled { opacity: .5; cursor: default; }
.ccb-send svg { width: 18px; height: 18px; }
.ccb-foot { text-align: center; font-size: 0.68rem; color: var(--ccb-muted); padding: 0 12px 8px; background: var(--ccb-paper); }

.ccb-video { position: fixed; inset: 0; z-index: 99995; background: rgba(13,15,23,.8); display: grid; place-items: center; padding: 16px; }
.ccb-video-inner { width: min(860px, 100%); background: var(--ccb-dark); border-radius: 14px; overflow: hidden; color: #fff; }
.ccb-video-frame { position: relative; aspect-ratio: 16 / 9; max-width: 100%; }
.ccb-video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ccb-video-consent { padding: 24px; display: grid; gap: 12px; }
.ccb-video-consent p { margin: 0; font-size: 0.9rem; line-height: 1.5; opacity: .9; }
.ccb-video-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; font-size: 0.85rem; }
.ccb-video-bar a { color: #fff; }

@keyframes ccb-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes ccb-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ccb-dot { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }

@media (max-width: 640px) {
  .ccb-launcher { right: max(16px, env(safe-area-inset-right, 16px)); bottom: max(20px, env(safe-area-inset-bottom, 20px)); height: 52px; padding: 0 18px 0 16px; font-size: 0.86rem; }
  .ccb-bubble { right: 16px; left: 16px; max-width: none; bottom: 84px; }
  .ccb-panel { inset: 0; width: 100%; height: 100%; height: 100dvh; border-radius: 0; border: 0; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
  .ccb-row { grid-template-columns: 1fr; }
  /* Ab 16px zoomt iOS beim Antippen eines Feldes nicht in die Seite. */
  .ccb-input textarea, .ccb-field input, .ccb-field select, .ccb-field textarea { font-size: 16px; }
  .ccb-icon-btn { width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) { .ccb *, .ccb-panel, .ccb-bubble { animation: none !important; transition: none !important; } }
.ccb [hidden], .ccb-panel[hidden], .ccb-launcher[hidden] { display: none !important; }
