/* ============================================================
   Bukett · share.css
   Owns the article "TEILEN" share row + advertorial product/social
   links. Standalone namespace (.gm-share / .gm-advlinks) so it does
   NOT collide with legacy .art-share-top rules in main.css.

   Bild #6 fix: the old row rendered fixed 38px circles around TEXT
   labels ("Facebook", "Link kopieren", …) which overflowed the circle
   and overlapped. Here the buttons hold real inline-SVG icons only, in
   an evenly-spaced, accessible row. Uses the same design tokens
   (--color-*, --font-*, --r-pill) defined in tokens.css.
   ============================================================ */

/* ── Share row ──────────────────────────────────────────── */
.gm-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  max-width: var(--article-max, 680px);
  margin: 28px auto 0;
  padding: 16px 48px 0;
  border-top: 1px solid var(--color-line, #e6e1d8);
}

.gm-share__label {
  font-family: var(--font-body, "Helvetica Neue", Helvetica, Arial, sans-serif);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: var(--tr-eyebrow, 0.14em);
  text-transform: uppercase;
  color: var(--color-muted, #8a8a8a);
  margin-right: 4px;
  flex: 0 0 auto;
}

/* One shared pill for both <a> and <button>. Fixed square → perfectly
   round, icon centred. No text inside, so nothing can overflow. */
.gm-share__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  padding: 0;
  margin: 0;
  border: 1px solid var(--color-line, #e6e1d8);
  border-radius: var(--r-pill, 999px);
  background: transparent;
  color: var(--color-ink, #1a1a1a); /* Bild #6: default BLACK (was warm grey/burgundy on live); per-network brand tint only on hover below */
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  text-decoration: none;
  line-height: 0;
  transition: border-color 0.18s ease, color 0.18s ease,
              background 0.18s ease, transform 0.12s ease;
}

/* main.css `.art-body a {color:primary}` (0,1,1) leaks onto the share <a>
   icons (the row sits inside .art-body) → they rendered burgundy while the
   <button> icons were black. Re-assert the black default at (0,2,0); the
   per-network :hover tints below still win on hover. */
.gm-share .gm-share__btn { color: var(--color-ink, #1a1a1a); }

.gm-share__icon {
  width: 18px;
  height: 18px;
  display: block;
  pointer-events: none;
}

.gm-share__btn:hover,
.gm-share__btn:focus-visible {
  border-color: var(--color-primary, #7a1f26);
  color: var(--color-primary, #7a1f26);
  background: var(--color-surface-warm, #fbf9f4);
}

.gm-share__btn:focus-visible {
  outline: 2px solid var(--color-primary, #7a1f26);
  outline-offset: 2px;
}

.gm-share__btn:active { transform: scale(0.94); }

/* Per-network hover tint (subtle — brand colour on hover only). */
.gm-share__btn--x:hover,
.gm-share__btn--x:focus-visible          { border-color: #000;     color: #000; }
.gm-share__btn--facebook:hover,
.gm-share__btn--facebook:focus-visible   { border-color: #1877f2; color: #1877f2; }
.gm-share__btn--linkedin:hover,
.gm-share__btn--linkedin:focus-visible   { border-color: #0a66c2; color: #0a66c2; }
.gm-share__btn--whatsapp:hover,
.gm-share__btn--whatsapp:focus-visible   { border-color: #25d366; color: #1da851; }

/* "Native share" button is hidden where the Web Share API is unavailable
   (desktop). article.js leaves it; we hide it unless the platform exposes
   navigator.share via the .has-webshare hook set below. */
.gm-share__btn--native { display: none; }
.has-webshare .gm-share__btn--native { display: inline-flex; }

/* ── Advertorial product + social links (Bild #6 / § owner) ──
   Hidden until article.js populates + reveals it. Empty advertorials and
   editorial (non-advertorial) articles never get any markup, so this stays
   invisible with zero layout footprint. */
.gm-advlinks {
  display: none;
}
.gm-advlinks.is-visible {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center; /* Bild #1: CTA + advertiser socials centred like the byline/tags above (was left-aligned in the centred column → looked shifted) */
  gap: 14px 18px;
  max-width: var(--article-max, 680px);
  margin: 18px auto 0;
  padding: 14px 48px 0;
}

.gm-advlinks__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--r-pill, 999px);
  background: var(--color-primary, #7a1f26);
  color: #fff;
  font-family: var(--font-body, "Helvetica Neue", Helvetica, Arial, sans-serif);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease;
}
.gm-advlinks__cta:hover,
.gm-advlinks__cta:focus-visible {
  background: #5f161c;
  box-shadow: 0 4px 14px rgba(122, 31, 38, 0.22);
}
.gm-advlinks__cta:focus-visible {
  outline: 2px solid var(--color-primary, #7a1f26);
  outline-offset: 2px;
}
.gm-advlinks__cta:active { transform: scale(0.98); }
.gm-advlinks__cta-arrow {
  width: 16px;
  height: 16px;
  display: block;
}

.gm-advlinks__socials {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.gm-advlinks__social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--color-line, #e6e1d8);
  border-radius: var(--r-pill, 999px);
  color: var(--color-ink-soft, #3d3a36);
  text-decoration: none;
  transition: border-color 0.18s ease, color 0.18s ease,
              background 0.18s ease, transform 0.12s ease;
}
.gm-advlinks__social:hover,
.gm-advlinks__social:focus-visible {
  border-color: var(--color-primary, #7a1f26);
  color: var(--color-primary, #7a1f26);
  background: var(--color-surface-warm, #fbf9f4);
}
.gm-advlinks__social:focus-visible {
  outline: 2px solid var(--color-primary, #7a1f26);
  outline-offset: 2px;
}
.gm-advlinks__social:active { transform: scale(0.94); }
.gm-advlinks__social-icon {
  width: 17px;
  height: 17px;
  display: block;
  pointer-events: none;
}

/* ── Mobile ─────────────────────────────────────────────── */
@media (max-width: 700px) {
  .gm-share { padding: 16px 24px 0; gap: 8px; }
  .gm-advlinks.is-visible { padding: 14px 24px 0; }
}

/* ── Order line lifted onto its own line (Papa 2026-05-30) ──
   Both the top "Infos und Bestellung" CTA and the order link pulled out of the
   bullet list get a little breathing room and wrap long raw URLs gracefully. */
.art-order-cta,
.art-order-line {
  margin: 18px 0;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

/* ── Bild #6: kill the burgundy fleuron (❦ ❦ ❦) ornaments ────
   Papa-feedback: the decorative triple-fleuron read as "weird red hearts".
   Removed site-wide (end ornament + any in-body fleuron divider). The thin
   rule the editor likes is the .gm-share border-top, which stays. */
hr.orn { display: none !important; }

/* ── Article colophon — the quiet sign-off under the share row ──
   Had NO dedicated CSS, AND sits inside .art-body so `.art-body p
   {margin:0 0 36px}` (0,1,1) blew a huge gap between the lines. Scope every
   rule under .art-colophon (0,2,0) so it beats the body-paragraph rule, and
   keep the column + left inset aligned with .gm-share. The print action is a
   subtle inline text-link in the byline (no lonely pill at the bottom). */
.art-colophon {
  max-width: var(--article-max, 680px);
  margin: 14px auto 0;
  padding: 0 48px 4px;
}
.art-colophon .art-colophon__byline {
  margin: 0;
  font-family: var(--font-body, "Helvetica Neue", Helvetica, Arial, sans-serif);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--color-muted, #8a8a8a);
}
.art-colophon .art-colophon__byline time { color: inherit; }
.art-colophon .art-colophon__meta {
  margin: 5px 0 0;
  font-family: var(--font-display, Georgia, "Times New Roman", serif);
  font-style: italic;
  font-size: 15px;
  line-height: 1.5;
  color: var(--color-ink-soft, #3d3a36);
}
/* inline "Drucken" — reads as a quiet text link, not a button */
.art-colophon__print {
  -webkit-appearance: none;
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: var(--color-line, #cfc7ba);
  transition: color 0.18s ease, text-decoration-color 0.18s ease;
}
.art-colophon__print:hover,
.art-colophon__print:focus-visible {
  color: var(--color-primary, #7a1f26);
  text-decoration-color: currentColor;
}
.art-colophon__print:focus-visible {
  outline: 2px solid var(--color-primary, #7a1f26);
  outline-offset: 2px;
}
@media (max-width: 700px) {
  .art-colophon { padding: 0 24px 4px; }
}
