/* =========================================================
   XPROMEDIA — Contact popup widget
   Loaded on every page. Purely additive: relies only on the
   tokens already defined in css/style.css (:root variables)
   and does not redefine or override any existing selector.
   ========================================================= */

.xpm-contact-btn{
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 900;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--black, #0a0a0a);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--white, #fff);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.xpm-contact-btn:hover{
  background: #1a1a1a;
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(0,0,0,0.55);
}
.xpm-contact-btn:focus-visible{
  outline: 2px solid var(--red, #e5202c);
  outline-offset: 3px;
}
.xpm-contact-btn svg{ width: 23px; height: 23px; display:block; }
.xpm-contact-btn .xpm-dot{
  position: absolute;
  top: 9px;
  right: 9px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red, #e5202c);
  border: 2px solid var(--black, #0a0a0a);
}
.xpm-contact-btn .xpm-icon-close{ display: none; }
.xpm-contact-btn.xpm-open .xpm-icon-chat,
.xpm-contact-btn.xpm-open .xpm-dot{ display: none; }
.xpm-contact-btn.xpm-open .xpm-icon-close{ display: flex; }

.xpm-panel{
  position: fixed;
  right: 24px;
  bottom: 96px;
  z-index: 900;
  width: 380px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 140px);
  overflow-y: auto;
  background: var(--black, #0a0a0a);
  color: var(--white, #fff);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.55);
  padding: 26px 24px 22px;
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
}
.xpm-panel.xpm-visible{
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.xpm-panel .xpm-eyebrow{
  color: var(--red, #e5202c);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 10px;
}
.xpm-panel h2{
  font-family: var(--font, inherit);
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  line-height: 1.2;
  margin: 0 0 8px;
  color: var(--white, #fff);
}
.xpm-panel .xpm-sub{
  font-size: 13px;
  color: var(--gray-300, #d8d6d2);
  line-height: 1.5;
  margin: 0 0 20px;
}

.xpm-field{ margin-bottom: 13px; }
.xpm-field label{
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-300, #d8d6d2);
  margin-bottom: 6px;
}
.xpm-field label .xpm-optional{
  text-transform: none;
  letter-spacing: 0;
  opacity: 0.6;
  font-weight: 500;
}
.xpm-field input[type="text"],
.xpm-field input[type="email"],
.xpm-field textarea{
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 4px;
  color: var(--white, #fff);
  font-family: var(--font, inherit);
  font-size: 14px;
  padding: 11px 12px;
  box-sizing: border-box;
  transition: border-color .2s ease, background .2s ease;
}
.xpm-field input::placeholder,
.xpm-field textarea::placeholder{ color: rgba(255,255,255,0.32); }
.xpm-field input:focus,
.xpm-field textarea:focus{
  outline: none;
  border-color: var(--red, #e5202c);
  background: rgba(255,255,255,0.09);
}
.xpm-field textarea{ resize: vertical; min-height: 88px; }

.xpm-consent{
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 6px 0 16px;
}
.xpm-consent input{ margin-top: 3px; flex-shrink: 0; accent-color: var(--red, #e5202c); }
.xpm-consent label{
  font-size: 12px;
  line-height: 1.5;
  color: var(--gray-300, #d8d6d2);
}
.xpm-consent a{ color: var(--white, #fff); text-decoration: underline; text-decoration-color: rgba(255,255,255,0.4); }
.xpm-consent a:hover{ text-decoration-color: var(--red, #e5202c); }

/* Honeypot — invisible to real visitors, still reachable by naive bots */
.xpm-hp{
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  margin: 0;
}

.xpm-submit{
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--red, #e5202c);
  color: #fff;
  border: none;
  border-radius: 3px;
  font-family: var(--font, inherit);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.05em;
  padding: 13px 20px;
  cursor: pointer;
  transition: background .2s ease;
}
.xpm-submit:hover{ background: var(--red-dark, #b8121c); }
.xpm-submit:disabled{ opacity: 0.6; cursor: default; }

.xpm-note{
  margin: 12px 0 0;
  font-size: 12.5px;
  line-height: 1.5;
  min-height: 0;
}
.xpm-note.xpm-error{ color: #ff8f8f; }

.xpm-success-state{
  text-align: center;
  padding: 22px 4px 8px;
}
.xpm-success-state svg{ width: 40px; height: 40px; color: var(--red, #e5202c); margin: 0 auto 14px; display: block; }
.xpm-success-state p{
  font-size: 15px;
  font-weight: 700;
  color: var(--white, #fff);
  margin: 0;
}

/* "NACHRICHT" trigger reuses the existing .contact-item look (see
   css/style.css) but is a <button> rather than an <a> — this resets
   default button chrome so it matches ANRUFEN / WHATSAPP exactly.
   Scoped to the element type, so plain .contact-item links elsewhere
   are completely unaffected. */
button.contact-item{
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

@media (max-width: 480px){
  .xpm-contact-btn{ right: 16px; bottom: 16px; }
  .xpm-panel{
    right: 16px;
    left: 16px;
    width: auto;
    max-width: none;
    bottom: 88px;
    max-height: calc(100vh - 116px);
  }
}
