/* Sonoma — Teilen-Button: weisse Pille, deutlich abgesetzt */

.sharediv {
  position: relative;
  top: 22px;
  right: 22px;
  padding-bottom: 26px;
  z-index: 3;
}

.share-icon {
  padding: 0;
  margin: 0;
  vertical-align: middle;
  width: 18px;
  height: 18px;
}

/* Das Symbol ist ein schwarzes Bild — "color" greift dort nicht.
   Im Dunkelmodus wird es deshalb invertiert, damit es zum Text passt. */
@media (prefers-color-scheme: dark) {
  /* invertiert (schwarz -> weiss), dann auf denselben Grauwert wie der
     Text heruntergezogen: brightness(.70) von Weiss ergibt etwa #b3b3b3,
     das entspricht --pk-text-dim. */
  .share-icon { filter: invert(1) brightness(.70); opacity: 1; }
}

.sharebutton,
sharebutton {
  display: inline-block;
  height: 42px;
  width: auto;
  min-width: 108px;
  padding: 0 18px;
  line-height: 42px;
  text-align: center;
  vertical-align: middle;
  text-decoration: none;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.021em;
  white-space: nowrap;
  border-radius: 980px;
  cursor: pointer;
  /* Bewusst zurueckhaltend: Teilen ist die unwichtigste Aktion der Seite
     und war als weisse Pille das dominanteste Element. */
  color: var(--pk-text-dim, #adadb4);
  background-color: var(--pk-chip, rgba(255,255,255,.08));
  border: 1px solid var(--pk-hairline, rgba(255,255,255,.10));
  -webkit-backdrop-filter: saturate(180%) blur(14px);
          backdrop-filter: saturate(180%) blur(14px);
  box-shadow: none;
  transition: transform .22s cubic-bezier(.25,.1,.25,1), box-shadow .22s cubic-bezier(.25,.1,.25,1);
}

@media screen and (min-width: 600px) {
  .sharebutton, sharebutton { min-width: 118px; }
}

.sharebutton:hover, sharebutton:hover {
  color: var(--pk-text, #f5f5f7);
  opacity: 1;
  transform: scale(1.05);
  background-color: var(--pk-chip-hover, rgba(255,255,255,.15));
  box-shadow: none;
}

.sharebutton:active, sharebutton:active { transform: scale(.95); }

.sharebutton.sharebutton-primary,
.sharebutton.sharebutton-primary:hover,
.sharebutton.sharebutton-primary:focus {
  color: var(--pk-text-dim, #adadb4);
  filter: none;
}

/* Hinweis-Box nach dem Kopieren */
.toastdiv { display: flex; align-items: center; justify-content: center; }

.toastbox {
  width: 260px;
  padding: 11px;
  background-color: rgba(28, 28, 31, 0.92);
  color: #f5f5f7;
  border-radius: 14px;
  font-size: 14px;
  position: fixed;
  top: 105%;
  transition: transform .3s cubic-bezier(.25,.1,.25,1);
  z-index: 4;
  text-align: center;
}

.toastbox.toast-tox--active { transform: translateY(-150px); }

/* Der Text "Teilen" bleibt auch auf dem Handy sichtbar */
@media screen and (max-width: 600px) {
  .sharebutton-mb { display: inline !important; }
  .sharebutton-img { position: relative; left: 0; }
}
