/* ===== CONCIERGE CHAT WIDGET ===== */

:root {
  --cc-gold: #C8A96A;
  --cc-dark: #0d0f12;
  --cc-dark2: #1a1a2e;
  --cc-white: #FFFFFF;
  --cc-grey: #666666;
  --cc-border: rgba(200,169,106,0.3);
}

/* Trigger Button */
.cc-trigger {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--cc-gold);
  border: none;
  cursor: pointer;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(200,169,106,0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cc-trigger:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(200,169,106,0.5);
}

.cc-trigger svg {
  width: 28px;
  height: 28px;
  fill: var(--cc-dark);
}

.cc-trigger--pulse {
  animation: cc-pulse 2s ease-in-out 1;
}

@keyframes cc-pulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(200,169,106,0.4); }
  50% { box-shadow: 0 4px 32px rgba(200,169,106,0.7); }
}

/* Chat Window */
.cc-window {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 380px;
  height: 520px;
  background: var(--cc-dark);
  border: 1px solid var(--cc-border);
  border-radius: 16px;
  z-index: 9999;
  display: none;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  font-family: 'Montserrat', sans-serif;
}

.cc-window--open {
  display: flex;
}

/* Header */
.cc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--cc-border);
  background: var(--cc-dark2);
}

.cc-header__title {
  color: var(--cc-gold);
  font-size: 14px;
  font-weight: 600;
}

.cc-header__subtitle {
  color: var(--cc-grey);
  font-size: 11px;
  margin-top: 2px;
}

.cc-header__close {
  background: none;
  border: none;
  color: var(--cc-grey);
  cursor: pointer;
  font-size: 20px;
  padding: 4px;
  line-height: 1;
}

.cc-header__close:hover {
  color: var(--cc-white);
}

/* Messages Area */
.cc-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cc-messages::-webkit-scrollbar {
  width: 4px;
}

.cc-messages::-webkit-scrollbar-thumb {
  background: var(--cc-border);
  border-radius: 4px;
}

/* Message Bubbles */
.cc-msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--cc-white);
  word-wrap: break-word;
}

.cc-msg--bot {
  align-self: flex-start;
  background: var(--cc-dark2);
  border-radius: 16px 16px 16px 4px;
}

.cc-msg--user {
  align-self: flex-end;
  background: rgba(200,169,106,0.15);
  border-radius: 16px 16px 4px 16px;
}

.cc-msg--typing {
  align-self: flex-start;
  background: var(--cc-dark2);
  border-radius: 16px 16px 16px 4px;
  padding: 14px 20px;
}

.cc-typing-dots {
  display: flex;
  gap: 4px;
}

.cc-typing-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cc-gold);
  animation: cc-dot 1.4s infinite;
}

.cc-typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.cc-typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes cc-dot {
  0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); }
  40% { opacity: 1; transform: scale(1); }
}

/* Quick Reply Buttons */
.cc-quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.cc-quick-reply {
  background: transparent;
  border: 1px solid var(--cc-gold);
  color: var(--cc-gold);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-family: 'Montserrat', sans-serif;
  cursor: pointer;
  transition: background 0.2s;
}

.cc-quick-reply:hover {
  background: rgba(200,169,106,0.1);
}

/* CTA Buttons in Chat */
.cc-cta {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  text-decoration: none;
  margin-top: 8px;
  text-align: center;
}

.cc-cta--primary {
  background: var(--cc-gold);
  color: var(--cc-dark);
}

.cc-cta--ghost {
  background: transparent;
  border: 1px solid var(--cc-gold);
  color: var(--cc-gold);
}

/* Input Area */
.cc-input-area {
  padding: 12px 16px;
  border-top: 1px solid var(--cc-border);
  display: flex;
  gap: 8px;
  align-items: center;
  background: var(--cc-dark2);
}

.cc-input {
  flex: 1;
  background: var(--cc-dark);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 24px;
  padding: 10px 16px;
  color: var(--cc-white);
  font-size: 14px;
  font-family: 'Montserrat', sans-serif;
  outline: none;
}

.cc-input::placeholder {
  color: var(--cc-grey);
}

.cc-input:focus {
  border-color: var(--cc-border);
}

.cc-send {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--cc-gold);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.cc-send:hover {
  transform: scale(1.05);
}

.cc-send:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.cc-send svg {
  width: 18px;
  height: 18px;
  fill: var(--cc-dark);
}

/* Privacy Notice */
.cc-privacy {
  padding: 8px 16px;
  text-align: center;
  font-size: 11px;
  color: var(--cc-grey);
}

.cc-privacy a {
  color: var(--cc-gold);
  text-decoration: underline;
}

/* Mobile */
@media (max-width: 768px) {
  .cc-window {
    bottom: 0;
    right: 0;
    width: 100vw;
    height: calc(100vh - env(safe-area-inset-top));
    border-radius: 0;
    border: none;
  }

  .cc-trigger {
    bottom: 80px;
    right: 16px;
  }
}

/* Auf /reisedesign/ ausblenden */
body.page-reisedesign .cc-trigger,
body.page-reisedesign .cc-window {
  display: none !important;
}
