.wg-contact-button {
  position: fixed;
  right: calc(var(--s3) + env(safe-area-inset-right, 0px));
  bottom: calc(var(--s3) + env(safe-area-inset-bottom, 0px) + 60px);
  z-index: 901;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  box-sizing: border-box;
  border: 2px solid var(--limette);
  border-radius: 50%;
  background: var(--footer);
  color: var(--limette);
  box-shadow: var(--schatten-dunkel);
  transition: background var(--tempo), box-shadow var(--tempo);
}
.wg-contact-button[hidden] { display: none; }
.wg-contact-button svg,.wg-popup-close svg { display: block; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wg-contact-button:hover { background: var(--petrol); box-shadow: var(--schatten); }
.wg-contact-button:focus-visible,.wg-popup-close:focus-visible { outline: var(--fokus) solid var(--limette); outline-offset: 4px; }
.wg-contact-dialog {
  width: min(560px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  padding: 0;
  border: 1px solid var(--limette);
  border-radius: var(--radius);
  background: var(--petrol);
  color: var(--weiss);
  box-shadow: 0 24px 70px #06131799;
  overflow: hidden;
}
.wg-contact-dialog::backdrop { background: #061317b8; }
.wg-popup-shell { display: flex; flex-direction: column; max-height: inherit; min-width: 0; }
.wg-popup-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s3);
  flex: 0 0 auto;
  padding: var(--s4) var(--s4) var(--s3);
  border-bottom: 1px solid var(--linie);
}
.wg-popup-head h2 { margin: 0; font-family: var(--titel); font-size: var(--h2); line-height: var(--titelhoehe); }
.wg-popup-close {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--limette);
  border-radius: 50%;
  background: transparent;
  color: var(--limette);
  cursor: pointer;
}
.wg-popup-close:hover { background: var(--karte); }
.wg-popup-body { min-width: 0; overflow-y: auto; overscroll-behavior: contain; padding: var(--s3) var(--s4) var(--s4); }
.wg-popup-body > p:first-child { margin: 0 0 var(--s4); color: var(--weich); }
.wg-contact-dialog .wg-cf7 label,.wg-contact-dialog .wg-cf7 .wpcf7-list-item-label { color: var(--gedaempft); }
.wg-contact-dialog .wg-cf7 .wpcf7-acceptance a { color: var(--petrol); }
.wg-contact-dialog .wg-cf7 input[type="text"],.wg-contact-dialog .wg-cf7 input[type="email"],.wg-contact-dialog .wg-cf7 textarea {
  background: var(--creme);
  color: var(--petrol);
}
.wg-contact-dialog .wg-cf7 .wpcf7-not-valid-tip { color: var(--petrol); }
.wg-contact-dialog .wg-cf7 input[type="text"]:focus,.wg-contact-dialog .wg-cf7 input[type="email"]:focus,.wg-contact-dialog .wg-cf7 textarea:focus {
  outline-color: var(--limette);
}
@media (max-width: 480px) {
  .wg-contact-dialog {
    width: calc(100% - 16px);
    max-height: calc(100dvh - 16px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  }
  .wg-popup-head { padding: var(--s3); }
  .wg-popup-body { padding: var(--s3); }
}
@media (prefers-reduced-motion: reduce) {
  .wg-contact-button { transition: none; }
}