/* D-159 (port of D-154 c1, c3, c4): fixes for the channel landing page /preisfehler/ only.
   Linked by the page branch through <RouteStyles> when the slug is `preisfehler`. The page body
   (content/pages/preisfehler.mdx) is unchanged. */

/* The red squiggle under "Preisfehler" in the h1 was half the word's height and hung 45% below
   it, so it struck through the next line ("Bevor sie", "sind"). It now sits under its own word. */
body .nectar-highlighted-text h1 em .nectar-scribble.squiggle-underline-2 {
  height: 0.28em;
  bottom: -0.14em;
}

/* The hero pair in the site's one button style (globals.css, D-159): ink on the brand green and
   blue instead of white labels at 1.9:1 and 2.4:1. The colours are inline styles in the page-builder
   markup, so only !important reaches them. Both channels stay, WhatsApp first. */
body .wpb_wrapper a.nectar-button[href*='whatsapp.com/channel'],
body .wpb_wrapper a.nectar-button[href*='t.me/produktjagd'] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  /* Equal size: the labels differ in length, so both take one width. */
  min-width: 15rem;
  min-height: 56px;
  padding: 0 22px !important;
  border-radius: 4px;
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  font-size: 17px;
  line-height: 1.2;
  letter-spacing: 0;
  color: #222222 !important;
  box-shadow: 0 1px 2px rgba(34, 34, 34, .12), 0 6px 16px -6px rgba(34, 34, 34, .28);
}
body .wpb_wrapper a.nectar-button[href*='whatsapp.com/channel'] { background-color: var(--pj-join-wa) !important; }
body .wpb_wrapper a.nectar-button[href*='t.me/produktjagd'] { background-color: var(--pj-join-tg) !important; }
body .wpb_wrapper a.nectar-button[href*='whatsapp.com/channel'] :is(span, i),
body .wpb_wrapper a.nectar-button[href*='t.me/produktjagd'] :is(span, i) { color: #222222 !important; }
/* The theme pins the icon to the right edge and slides it on hover; the homepage pair leads with
   the icon and does not move on hover. */
body .wpb_wrapper a.nectar-button[href*='whatsapp.com/channel'] i,
body .wpb_wrapper a.nectar-button[href*='t.me/produktjagd'] i {
  position: static;
  order: -1;
  margin: 0;
  height: auto;
  font-size: 24px;
  line-height: 1;
  /* The theme's hover-slide transform has a higher specificity than this rule. */
  transform: none !important;
  opacity: 1;
}
body .wpb_wrapper a.nectar-button[href*='whatsapp.com/channel'] span,
body .wpb_wrapper a.nectar-button[href*='t.me/produktjagd'] span { position: static; left: auto; transform: none; }

/* On phones the theme lays the two "beitreten" links out in one row, about 158px each, so each
   label broke onto two lines and its arrow hung alone. Stacked, each link fits on one line. */
@media only screen and (max-width: 690px) {
  body .column_element_direction_phone_horizontal > .vc_column-inner > .wpb_wrapper {
    flex-direction: column;
  }
  body .nectar-cta .link_wrap a.link_text[href*='whatsapp.com/channel'],
  body .nectar-cta .link_wrap a.link_text[href*='t.me/produktjagd'] {
    white-space: nowrap;
  }
}

/* D-165: the two "beitreten" text links were 213 and 218px wide at every width ("WhatsApp Kanal"
   against "Telegram Gruppe"), so the pair was not equal. Both take one width now, wider than either
   label; the text stays centred as before. */
body .nectar-cta .link_wrap a.link_text[href*='whatsapp.com/channel'],
body .nectar-cta .link_wrap a.link_text[href*='t.me/produktjagd'] {
  box-sizing: border-box;
  min-width: 15rem;
  justify-content: center;
  text-align: center;
}
