/* WordPress integration layer */
.nav-links a:not(.nav-order-link) {
  padding: 8px 12px;
  font-size: 14px;
  color: var(--text-2);
  border-radius: 8px;
  transition: 140ms;
  display: inline-block;
  white-space: nowrap;
}
.nav-links a:not(.nav-order-link):hover { color: var(--text); background: var(--bg-2); }
.nav-order-link {
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  border-radius: 8px;
  border: 1px solid color-mix(in oklch, var(--primary) 30%, transparent);
  background: var(--primary-soft);
}

.mj-page { padding-bottom: var(--pad); }
.mj-page-hero {
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.mj-page-title {
  font-family: var(--font-head);
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
}
.mj-page-content {
  padding-top: 48px;
  padding-bottom: 48px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-2);
  max-width: 820px;
}
.mj-page-content h2,
.mj-page-content h3 {
  font-family: var(--font-head);
  color: var(--text);
  letter-spacing: -0.01em;
}
.mj-page-content a { color: var(--primary); font-weight: 500; }
.mj-page-content ul { padding-left: 1.25em; }

.topic-pill-wrap { position: relative; }
.topic-pill-wrap input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.topic-pill-wrap .topic-pill {
  display: inline-block;
  cursor: pointer;
}
.topic-pill-wrap input:checked + .topic-pill,
.topic-pill.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}
.mj-form-error {
  color: #b42318;
  background: #fef3f2;
  border: 1px solid #fecdca;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin: 0 0 16px;
  font-size: 14px;
}

.region-loc-link {
  margin-top: 20px;
}
.region-loc-link .link-arrow {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.mj-shop-hero { margin-bottom: 0; }
.mj-woo-content { max-width: none; }

/* WhatsApp floating button */
a.fab.fab-whatsapp {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9990;
  width: 56px;
  height: 56px;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow:
    0 4px 16px rgba(37, 211, 102, 0.45),
    0 2px 6px rgba(15, 23, 42, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

a.fab.fab-whatsapp:hover {
  color: #fff;
  background: #20bd5a;
  transform: translateY(-2px) scale(1.04);
  box-shadow:
    0 8px 24px rgba(37, 211, 102, 0.5),
    0 4px 10px rgba(15, 23, 42, 0.14);
}

a.fab.fab-whatsapp:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

a.fab.fab-whatsapp svg {
  display: block;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.nav-panel .nav-links a[aria-current="page"] {
  color: var(--primary);
  background: var(--primary-soft);
  font-weight: 600;
}

@media (max-width: 720px) {
  a.fab.fab-whatsapp {
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    right: calc(16px + env(safe-area-inset-right, 0px));
    width: 52px;
    height: 52px;
  }

  a.fab.fab-whatsapp svg {
    width: 28px;
    height: 28px;
  }
}

/* Alte Plugin-Buttons ausblenden, falls noch Reste im DOM */
#qlwapp,
.qlwapp,
.wp-whatsapp-chat,
[class*="qlwapp"] {
  display: none !important;
}

/* Kontaktformular: Honeypot (für Menschen unsichtbar) */
.mj-hp-fields {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  pointer-events: none;
}
.mj-hp-input {
  display: block;
  height: 0;
  opacity: 0;
}
.mj-form,
.contact-form {
  position: relative;
}
