/* =========================================================================
   WhatsApp-Chat-Mockup – umgesetzt in reinem CSS (Ersatz für React/Tailwind).
   Eigene, in sich geschlossene WhatsApp-Optik (bewusst nicht in der
   Markenpalette, damit es als echter WhatsApp-Chat erkennbar bleibt).
   ========================================================================= */

.phone-mock { position: relative; margin-inline: auto; width: 100%; max-width: 288px; user-select: none; }

/* Telefon-Rahmen */
.phone {
  position: relative;
  width: 100%;
  height: 560px;
  background: #17181c;
  border-radius: 42px;
  padding: 10px;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.6), 0 0 0 2px rgba(255,255,255,0.03) inset;
  transition: transform .3s cubic-bezier(.22,.61,.36,1);
}
.phone-mock:hover .phone { transform: translateY(-6px) rotate(.4deg); }

/* Seitentasten */
.phone-side { position: absolute; width: 3px; background: #3a3d44; border-radius: 3px; }
.phone-side-l1 { left: -3px; top: 96px; height: 30px; border-radius: 3px 0 0 3px; }
.phone-side-l2 { left: -3px; top: 138px; height: 42px; border-radius: 3px 0 0 3px; }
.phone-side-l3 { left: -3px; top: 190px; height: 42px; border-radius: 3px 0 0 3px; }
.phone-side-r1 { right: -3px; top: 128px; height: 56px; border-radius: 0 3px 3px 0; }

/* Bildschirm */
.phone-screen {
  position: relative; isolation: isolate;
  display: flex; flex-direction: column;
  height: 100%; width: 100%;
  overflow: hidden; border-radius: 32px;
  background: #efeae2; color: #111b21;
  font-family: var(--font-body, "Inter", system-ui, sans-serif);
}

/* Statusleiste */
.wa-status {
  display: flex; align-items: center; justify-content: space-between;
  background: #008069; color: #fff; padding: 6px 14px 4px; font-size: 11px; font-weight: 700;
}
.wa-status-icons { display: inline-flex; align-items: center; gap: 5px; }
.wa-status-icons svg { height: 12px; width: 12px; }
.wa-status-icons .wa-batt { width: 20px; height: 11px; }

/* Kopfzeile */
.wa-header {
  display: flex; align-items: center; justify-content: space-between;
  background: #008069; color: #fff; padding: 6px 10px;
}
.wa-header-left { display: flex; align-items: center; gap: 7px; min-width: 0; }
.wa-iconbtn { background: none; border: 0; padding: 0; color: rgba(255,255,255,0.92); cursor: pointer; display: inline-flex; }
.wa-iconbtn svg { width: 15px; height: 15px; }
.wa-avatar {
  display: grid; place-items: center; flex-shrink: 0;
  width: 30px; height: 30px; border-radius: 50%; overflow: hidden;
  background: #0b7a63; color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .02em;
}
.wa-avatar img { width: 100%; height: 100%; object-fit: cover; }
.wa-peer { display: flex; flex-direction: column; min-width: 0; }
.wa-peer-name { font-size: 12px; font-weight: 600; line-height: 1.1; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wa-peer-status { font-size: 9.5px; font-weight: 500; color: #a7f3d0; margin-top: 1px; }
.wa-header-right { display: flex; align-items: center; gap: 12px; }

/* Chatfläche */
.wa-chat {
  position: relative; flex: 1 1 auto; min-height: 0;
  display: flex; flex-direction: column; justify-content: flex-start;
  gap: 6px; padding: 10px; overflow: hidden;
  background: #efeae2;
  background-image: radial-gradient(rgba(0,0,0,0.02) 1px, transparent 1px);
  background-size: 14px 14px;
}
.wa-day {
  align-self: center; background: rgba(255,255,255,0.92); color: #54656f;
  font-size: 9px; font-weight: 600; padding: 2px 10px; border-radius: 999px; margin-bottom: 2px;
}
.wa-msgs { display: flex; flex-direction: column; justify-content: flex-start; gap: 6px; }

/* Nachrichten */
.wa-msg { display: flex; opacity: 0; transform: translateY(8px) scale(.96); transition: opacity .35s cubic-bezier(.22,.61,.36,1), transform .35s cubic-bezier(.22,.61,.36,1); }
.wa-msg.show { opacity: 1; transform: none; }
.wa-out { justify-content: flex-end; }
.wa-in  { justify-content: flex-start; }
.wa-bubble {
  position: relative; max-width: 85%;
  padding: 5px 9px 4px; border-radius: 12px; font-size: 11px; line-height: 1.32;
  box-shadow: 0 1px 1px rgba(0,0,0,0.06);
}
.wa-out .wa-bubble { background: #dcf8c6; border-top-right-radius: 3px; }
.wa-in  .wa-bubble { background: #ffffff; border-top-left-radius: 3px; }
.wa-bubble p { margin: 0; }
.wa-meta { display: flex; align-items: center; justify-content: flex-end; gap: 3px; margin-top: 2px; font-size: 8.5px; color: rgba(0,0,0,0.42); }
.wa-check { width: 13px; height: 9px; color: #34b7f1; }

/* „tippt“-Indikator */
.wa-typing { display: flex; justify-content: flex-start; opacity: 0; transform: translateY(6px); transition: opacity .25s ease, transform .25s ease; }
.wa-typing.show { opacity: 1; transform: none; }
.wa-typing-bubble { display: inline-flex; align-items: center; gap: 6px; background: #fff; border-radius: 12px; border-top-left-radius: 3px; padding: 6px 10px; box-shadow: 0 1px 1px rgba(0,0,0,0.06); }
.wa-typing-bubble > span:first-child { font-size: 9px; font-weight: 600; color: #059669; }
.wa-dots { display: inline-flex; gap: 3px; }
.wa-dots i { width: 5px; height: 5px; border-radius: 50%; background: #10b981; display: inline-block; animation: wa-bounce .9s infinite ease-in-out; }
.wa-dots i:nth-child(2) { animation-delay: .15s; }
.wa-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes wa-bounce { 0%,60%,100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-3px); opacity: 1; } }

/* Eingabeleiste */
.wa-input { display: flex; align-items: center; gap: 6px; background: #f0f2f5; padding: 8px; }
.wa-input-icon { color: #54656f; }
.wa-field { flex: 1 1 auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; background: #fff; border-radius: 999px; padding: 7px 12px; color: #8696a0; font-size: 11.5px; }
.wa-field-icons { display: inline-flex; align-items: center; gap: 10px; color: #8696a0; }
.wa-field-icons svg { width: 15px; height: 15px; }
.wa-mic { display: grid; place-items: center; flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; background: #00a884; color: #fff; border: 0; cursor: pointer; }
.wa-mic svg { width: 15px; height: 15px; }

/* Home-Indikator */
.wa-home { display: flex; justify-content: center; background: #f0f2f5; padding: 3px 0 7px; }
.wa-home span { width: 96px; height: 4px; border-radius: 999px; background: #b7bec5; }

@media (prefers-reduced-motion: reduce) {
  .wa-msg { opacity: 1; transform: none; }
  .wa-typing { display: none; }
  .wa-dots i { animation: none; }
}
