/* Teilen: native Details-Steuerung, 44-px-Tippflächen, keine externen Widgets. */
.q-teilen {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed var(--linie, #e6ddd2);
  color: var(--fg, #221c17);
  font-family: var(--text, system-ui, sans-serif);
  font-size: 15px;
  line-height: 1.45;
}
.q-teilen *, .q-teilen *::before, .q-teilen *::after { box-sizing: border-box; }
.q-teilen [hidden] { display: none !important; }
.q-teilen__knopf {
  width: fit-content;
  min-height: 44px;
  padding: 10px 4px;
  cursor: pointer;
  font-weight: 700;
}
.q-teilen__knopf::marker { color: var(--akzent, #c8441f); }
.q-teilen__optionen { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.q-teilen__aktion {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid var(--rand, #9a8c81);
  border-radius: var(--radius-karte, 4px);
  background: var(--flaeche, #fff);
  color: var(--fg, #221c17);
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}
.q-teilen__aktion:hover { text-decoration: underline; text-underline-offset: 3px; }
.q-teilen__aktion:disabled { opacity: .6; cursor: wait; }
.q-teilen__knopf:focus-visible, .q-teilen__aktion:focus-visible, .q-teilen__link:focus-visible {
  outline: 3px solid var(--akzent, #c8441f);
  outline-offset: 3px;
}
.q-teilen__status { margin: 8px 0 0; }
.q-teilen__status:empty { display: none; }
.q-teilen__label { display: block; margin-top: 8px; }
.q-teilen__link {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  margin-top: 4px;
  padding: 8px;
  background: var(--flaeche, #fff);
  color: var(--fg, #221c17);
  border: 1px solid var(--rand, #9a8c81);
  font: inherit;
}
@media print { .q-teilen { display: none; } }

/* Gemeinsame Icon-Leiste oben an der Witzkarte. */
.q-witz { position: relative; }
.q-merk-titelzeile > .q-teilen { flex: none; margin: 0 0 0 auto; padding: 0; border: 0; }
.q-merk-titelzeile > .q-merk + .q-teilen { margin-left: 0; }
.q-teilen__knopf { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; list-style: none; border: 1.5px solid var(--rand); border-radius: var(--radius-karte); }
.q-teilen__knopf::-webkit-details-marker { display: none; }
.q-teilen[open] { z-index: 5; }
.q-teilen__menue { position: absolute; z-index: 6; top: 100%; left: 0; right: 0; padding: 12px; background: var(--flaeche, #fff); border: 1px solid var(--rand); box-shadow: 0 8px 20px #0002; }
.q-teilen__optionen { margin-top: 0; }
.q-merk-titelzeile { position: relative; }
.q-witz--aktionen .q-merk-titelzeile > .q-teilen { margin-left: 0; }
.q-witz--aktionen .q-teilen__knopf { width: auto; gap: var(--space-2); padding-inline: var(--space-3); font: 700 16px/1.45 var(--font-text); }
.q-teilen__knopf:focus-visible { outline-color: var(--fokus); }
