/* Park-to-Fly24 – Chat-Widget
   Farben in Blau-Tönen für Airportpark24.
   Alle Klassen mit Präfix "ptf-", damit nichts mit der Seite kollidiert. */

.ptf-chat, .ptf-chat * { box-sizing: border-box; }

.ptf-chat {
  --ptf-primary:      #12508f;   /* kräftiges Blau (Header, Launcher) */
  --ptf-primary-dark: #0d3c6b;
  --ptf-user-bubble:  #d6e6f5;   /* helles Blau für Nutzer-Nachrichten */
  --ptf-bot-bubble:   #eef3f8;   /* dezentes Blau-Grau für Bot-Nachrichten */
  --ptf-text:         #1a2430;
  --ptf-muted:        #5a6b7d;
  --ptf-border:       #dbe3ec;
  --ptf-orange:		  #f2ad04;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ptf-text);
}

/* --- Launcher-Button unten rechts --- */
.ptf-launcher {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 60px;
  height: 60px;
  border: none;
  border-radius: 50%;
  background: var(--ptf-orange);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2147483000;
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.ptf-launcher:hover { background: var(--ptf-primary-dark); }
.ptf-launcher:focus-visible { outline: 3px solid #ffd24a; outline-offset: 2px; }
.ptf-launcher svg { width: 28px; height: 28px; }

/* --- Chat-Fenster --- */
.ptf-panel {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 380px;
  max-width: calc(100vw - 40px);
  height: 560px;
  max-height: calc(100vh - 40px);
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 2147483000;
}
.ptf-panel.ptf-open { display: flex; }

/* --- Kopfzeile --- */
.ptf-header {
  background: var(--ptf-primary);
  color: #fff;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.ptf-header-title { font-weight: 600; font-size: 15px; }
.ptf-header-sub   { font-size: 12px; opacity: 0.85; }
.ptf-header-text  { flex: 1; min-width: 0; }
.ptf-close {
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  padding: 4px 6px;
  border-radius: 6px;
}
.ptf-close:hover { background: rgba(255, 255, 255, 0.15); }
.ptf-close:focus-visible { outline: 2px solid #ffd24a; outline-offset: 1px; }

/* --- Nachrichtenbereich --- */
.ptf-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #fbfcfb;
}
.ptf-msg {
  max-width: 85%;
  padding: 9px 12px;
  border-radius: 12px;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.ptf-msg-bot {
  align-self: flex-start;
  background: var(--ptf-bot-bubble);
  border-bottom-left-radius: 4px;
}
.ptf-msg-user {
  align-self: flex-end;
  background: var(--ptf-user-bubble);
  border-bottom-right-radius: 4px;
}
.ptf-msg a { color: var(--ptf-primary); }

/* --- Tipp-Anzeige --- */
.ptf-typing { align-self: flex-start; display: flex; gap: 4px; padding: 12px; }
.ptf-typing span {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ptf-muted);
  animation: ptf-bounce 1.2s infinite ease-in-out;
}
.ptf-typing span:nth-child(2) { animation-delay: 0.2s; }
.ptf-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes ptf-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-5px); opacity: 1; }
}

/* --- Eingabezeile --- */
.ptf-input-row {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid var(--ptf-border);
  background: #fff;
}
.ptf-input {
  flex: 1;
  border: 1px solid var(--ptf-border);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  resize: none;
  max-height: 100px;
  outline: none;
}
.ptf-input:focus { border-color: var(--ptf-primary); }
.ptf-send {
  border: none;
  background: var(--ptf-primary);
  color: #fff;
  border-radius: 10px;
  padding: 0 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
}
.ptf-send:hover { background: var(--ptf-primary-dark); }
.ptf-send:disabled { opacity: 0.5; cursor: default; }
.ptf-send:focus-visible { outline: 2px solid #ffd24a; outline-offset: 1px; }
.ptf-send svg { width: 20px; height: 20px; }

/* --- Fußzeile mit Kontakt --- */
.ptf-footer {
  font-size: 11px;
  color: var(--ptf-muted);
  text-align: center;
  padding: 6px 10px 10px;
  background: #fff;
}
.ptf-footer a { color: var(--ptf-primary); text-decoration: none; }

/* --- Mobil: Vollbild --- */
@media (max-width: 480px) {
  .ptf-panel {
    right: 0; bottom: 0;
    width: 100vw; height: 100vh;
    max-width: 100vw; max-height: 100vh;
    border-radius: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ptf-launcher, .ptf-typing span { transition: none; animation: none; }
}
