/* Support.me Konsole — „Einladen"-Button + Dialog (invite.js), CXHUB-Stil */

.cn-einladen {
  position: fixed;
  z-index: 120;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 16px 0 14px;
  border: none;
  border-radius: 999px;
  background: #191c1f;
  color: #ffffff;
  font: 510 14px/1 -apple-system, 'SF Pro Text', 'Inter', BlinkMacSystemFont, system-ui, sans-serif;
  letter-spacing: -0.005em;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(25, 28, 31, 0.18);
  transition: background-color 150ms cubic-bezier(0.32, 0.72, 0, 1), box-shadow 150ms cubic-bezier(0.32, 0.72, 0, 1), transform 150ms cubic-bezier(0.32, 0.72, 0, 1);
  animation: cn-einladen-rein 320ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
.cn-einladen:hover { background: #0f0b0a; box-shadow: 0 8px 20px rgba(25, 28, 31, 0.24); }
.cn-einladen:active { transform: scale(0.97); }
.cn-einladen:focus-visible { outline: 3px solid rgba(39, 106, 135, 0.35); outline-offset: 2px; }
@keyframes cn-einladen-rein { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (max-width: 720px) {
  .cn-einladen { width: 36px; padding: 0; justify-content: center; }
  .cn-einladen span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

/* Schleier + Dialog: Glas kondensiert (Blur + Scale), Abgang schneller */
.cn-dlg-schleier {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  background: rgba(25, 28, 31, 0.20);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: cn-dlg-schleier 220ms cubic-bezier(0.4, 0, 0.2, 1) both;
  overflow-y: auto;
}
.cn-dlg-schleier--weg { animation: cn-dlg-schleier-weg 160ms cubic-bezier(0.4, 0, 0.2, 1) both; }
@keyframes cn-dlg-schleier { from { opacity: 0; } to { opacity: 1; } }
@keyframes cn-dlg-schleier-weg { from { opacity: 1; } to { opacity: 0; } }

.cn-dlg {
  width: min(520px, 100%);
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(25, 28, 31, 0.18), 0 0 0 1px rgba(25, 28, 31, 0.06);
  color: #191c1f;
  font: 400 15px/1.45 -apple-system, 'SF Pro Text', 'Inter', BlinkMacSystemFont, system-ui, sans-serif;
  animation: cn-dlg-rein 400ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes cn-dlg-rein {
  from { opacity: 0; transform: translateY(8px) scale(0.94); filter: blur(8px); }
  to   { opacity: 1; transform: none; filter: none; }
}
.cn-dlg-inhalt { padding: 28px 28px 24px; }
.cn-dlg-kopf { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.cn-dlg-titel { margin: 0 0 6px; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.cn-dlg-sub { margin: 0; font-size: 14px; line-height: 1.5; color: #505a63; max-width: 44ch; }
.cn-dlg-zu {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 999px;
  background: rgba(25, 28, 31, 0.05);
  color: #505a63;
  cursor: pointer;
  transition: background-color 150ms cubic-bezier(0.32, 0.72, 0, 1);
}
.cn-dlg-zu:hover { background: rgba(25, 28, 31, 0.09); color: #191c1f; }

.cn-dlg-form { display: flex; flex-direction: column; gap: 16px; }
.cn-feld { display: flex; flex-direction: column; gap: 7px; }
.cn-feld-label { font-size: 12px; font-weight: 600; letter-spacing: 0.02em; color: #656d76; }
.cn-feld-hinweis { font-size: 12.5px; color: #79828a; line-height: 1.45; }
.cn-feld input,
.cn-feld textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid #e2e2e7;
  background: #f6f7f8;
  color: #191c1f;
  font: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color 120ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 120ms cubic-bezier(0.4, 0, 0.2, 1), background-color 120ms cubic-bezier(0.4, 0, 0.2, 1);
}
.cn-feld input { height: 46px; }
.cn-feld textarea { resize: vertical; min-height: 84px; }
.cn-feld input::placeholder, .cn-feld textarea::placeholder { color: #8d969e; }
.cn-feld input:focus, .cn-feld textarea:focus {
  background: #ffffff;
  border-color: #4d90ad;
  box-shadow: 0 0 0 4px rgba(77, 144, 173, 0.18);
}
.cn-dlg-fehler { margin: 0; min-height: 0; font-size: 13.5px; color: #c0362c; }
.cn-dlg-fehler:empty { display: none; }
.cn-dlg-vorschau { display: flex; flex-direction: column; gap: 8px; }
.cn-dlg-vorschau iframe {
  width: 100%;
  height: 380px;
  border: 0.5px solid #e2e2e7;
  border-radius: 14px;
  background: #f4f4f4;
}
.cn-dlg-fuss { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 4px; }

.cn-btn {
  height: 42px;
  padding: 0 20px;
  border-radius: 999px;
  font: 600 14.5px/1 -apple-system, 'SF Pro Text', 'Inter', BlinkMacSystemFont, system-ui, sans-serif;
  cursor: pointer;
  transition: background-color 150ms cubic-bezier(0.32, 0.72, 0, 1), transform 150ms cubic-bezier(0.32, 0.72, 0, 1), box-shadow 150ms cubic-bezier(0.32, 0.72, 0, 1);
}
.cn-btn:active:not(:disabled) { transform: scale(0.97); }
.cn-btn:disabled { opacity: 0.55; cursor: default; }
.cn-btn:focus-visible { outline: 3px solid rgba(39, 106, 135, 0.35); outline-offset: 2px; }
.cn-btn--ink { border: none; background: #191c1f; color: #ffffff; box-shadow: 0 6px 16px rgba(25, 28, 31, 0.18); }
.cn-btn--ink:hover:not(:disabled) { background: #0f0b0a; }
.cn-btn--leise { border: 1px solid #e2e2e7; background: #ffffff; color: #191c1f; }
.cn-btn--leise:hover:not(:disabled) { background: #f6f7f8; }

.cn-dlg-erfolg { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 12px 8px 4px; }
.cn-dlg-erfolg .cn-dlg-fuss { justify-content: center; margin-top: 16px; }
.cn-dlg-haken {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: rgba(26, 127, 55, 0.12);
  color: #1a7f37;
  animation: cn-haken 420ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes cn-haken { from { opacity: 0; transform: scale(0.8); } to { opacity: 1; transform: none; } }

@media (max-width: 480px) {
  .cn-dlg-inhalt { padding: 22px 20px 20px; }
  .cn-dlg-fuss .cn-btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .cn-einladen, .cn-dlg, .cn-dlg-haken { animation: cn-dlg-schleier 180ms cubic-bezier(0.4, 0, 0.2, 1) both !important; filter: none; }
  .cn-einladen:active, .cn-btn:active:not(:disabled) { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .cn-dlg-schleier { backdrop-filter: none; background: rgba(25, 28, 31, 0.45); }
}
