
  /* =================================================================== */
  /* DEMO PAGE STYLES (Nur für diese Demo-Seite)                        */
  /* =================================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.demo-container {
  max-width: 800px;
  background: white;
  border-radius: 20px;
  padding: 60px 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.demo-container h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #2d3436;
}

.demo-container p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #636e72;
  margin-bottom: 2rem;
}

.features {
  background: #f8f9fa;
  padding: 30px;
  border-radius: 12px;
  margin: 40px 0;
}

.features h2 {
  color: #2d3436;
  margin-bottom: 1rem;
}

.features ul {
  list-style: none;
  padding: 0;
}

.features li {
  padding: 8px 0;
  color: #636e72;
  line-height: 1.8;
}

.features li:before {
  content: "✓ ";
  color: #00b894;
  font-weight: bold;
  margin-right: 8px;
}

.cta-box {
  background: #fff3cd;
  border-left: 4px solid #f1c40f;
  padding: 20px;
  border-radius: 8px;
  margin: 30px 0;
}

.cta-box strong {
  color: #2d3436;
}

/* =================================================================== */
/* METZ CHAT WIDGET STYLES (Das ist der eigentliche Widget-Code)       */
/* =================================================================== */

:root {
  --metz-yellow: #f1c40f;
  --metz-yellow-dark: #f39c12;
  --metz-blue: #49acf2;
  --text: #333;
  --text-muted: #666;
}

/* Chat Bubble Button */
.metz-chat-bubble {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--metz-yellow) 0%, var(--metz-yellow-dark) 100%);
  border: none;
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(241, 196, 15, 0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 9999;
  outline: none;
}

.metz-chat-bubble:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(241, 196, 15, 0.6);
}

.metz-chat-bubble:active {
  transform: scale(0.95);
}

.metz-chat-bubble svg {
  width: 28px;
  height: 28px;
  fill: var(--text);
}

/* Unread Badge */
.metz-chat-bubble-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 24px;
  height: 24px;
  background: #e74c3c;
  color: white;
  border-radius: 12px;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  padding: 0 6px;
  box-shadow: 0 2px 8px rgba(231, 76, 60, 0.4);
  animation: badge-pulse 2s infinite;
}

.metz-chat-bubble-badge.show {
  display: flex;
}

@keyframes badge-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* Chat Window */
.metz-chat-window {
  position: fixed;
  right: 20px;
  bottom: 90px;
  width: 380px;
  height: 600px;
  max-width: calc(100vw - 40px);
  max-height: calc(100vh - 120px);
  background: white;
  border-radius: 16px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: scale(0.8) translateY(20px);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 9998;
}

.metz-chat-window.show {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: all;
}

/* Chat Header */
.metz-chat-header {
  background: linear-gradient(135deg, var(--metz-yellow) 0%, var(--metz-yellow-dark) 100%);
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.metz-chat-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.metz-chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 18px;
  background: #49ace2;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
}

.metz-chat-header-info h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.metz-chat-header-info p {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
  opacity: 0.9;
}

.metz-chat-header-status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #2ecc71;
  border-radius: 50%;
  margin-right: 6px;
}

.metz-chat-close {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  color: var(--text);
}

.metz-chat-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Chat Messages */
.metz-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  background: #fafafa;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.metz-chat-messages::-webkit-scrollbar {
  width: 6px;
}

.metz-chat-messages::-webkit-scrollbar-track {
  background: transparent;
}

.metz-chat-messages::-webkit-scrollbar-thumb {
  background: #ddd;
  border-radius: 3px;
}

/* Message */
.metz-chat-message {
  display: flex;
  gap: 12px;
  animation: message-slide-in 0.3s ease;
}

@keyframes message-slide-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.metz-chat-message.user {
  flex-direction: row-reverse;
}

.metz-chat-message-avatar {
  width: 32px;
  height: 32px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: white;
  flex-shrink: 0;
}

.metz-chat-message.agent .metz-chat-message-avatar {
  background: #49ace2;
}

.metz-chat-message.user .metz-chat-message-avatar {
  background: var(--metz-blue);
}

.metz-chat-bubble-text {
  max-width: 70%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.4;
}

.metz-chat-message.agent .metz-chat-bubble-text {
  background: white;
  color: var(--text);
  border-bottom-left-radius: 4px;
}

.metz-chat-message.user .metz-chat-bubble-text {
  background: var(--metz-blue);
  color: white;
  border-bottom-right-radius: 4px;
}

.metz-chat-bubble-text p {
  margin: 0;
}

.metz-chat-message-time {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  opacity: 0.7;
}

/* Chat Input */
.metz-chat-input {
  padding: 16px 20px;
  background: white;
  border-top: 1px solid #eee;
  flex-shrink: 0;
}

.metz-chat-input form {
  display: flex;
  gap: 12px;
  align-items: center;
}

.metz-chat-input-field {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 24px;
  font-size: 14px;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s;
}

.metz-chat-input-field:focus {
  border-color: var(--metz-blue);
  box-shadow: 0 0 0 3px rgba(73, 172, 242, 0.1);
}

.metz-chat-input-button {
  width: 44px;
  height: 44px;
  background: var(--metz-yellow);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
  color: var(--text);
}

.metz-chat-input-button:hover {
  background: var(--metz-yellow-dark);
  transform: scale(1.1);
}

.metz-chat-input-button:active {
  transform: scale(0.95);
}

  /* Link-Buttons schlicht */
  .btn {
      display: inline-block;
      padding: 12px 18px;
      border: 1px solid #cfcfcf;
      border-radius: 6px;
      background: #fff;
      color: #111;
      text-decoration: none;
      font-size: 16px;
      line-height: 1;
  }


  .btn:hover { background: #f2f2f2; }
  .btn:active { transform: translateY(1px); }


  /* Tastaturfokus gut sichtbar, aber schlicht */
  .btn:focus { outline: 2px solid #000; outline-offset: 2px; }

  /* Container für die drei Buttons */
  .wrap {
      display: grid;
      gap: 16px;
      padding: 24px;
      text-align: center;
  }

/* Mobile Responsive */
@media (max-width: 480px) {
  .metz-chat-window {
    width: calc(100vw - 32px);
    height: calc(100vh - 120px);
    right: 16px;
    bottom: 90px;
  }

  .metz-chat-bubble {
    right: 16px;
    bottom: 16px;
  }
}
